]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/configure
Makefile.tpl ($(srcdir)/configure): Update dependencies.
[thirdparty/gcc.git] / libgomp / configure
CommitLineData
953ff289
DN
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
1cf3d07d
SE
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
953ff289
DN
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
a68ab351 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'
953ff289 461ac_subst_files=''
18c04407 462ac_pwd=`pwd`
953ff289
DN
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
1cf3d07d 871 if test ! -r $srcdir/$ac_unique_file; then
953ff289
DN
872 srcdir=..
873 fi
874else
875 ac_srcdir_defaulted=no
876fi
1cf3d07d 877if test ! -r $srcdir/$ac_unique_file; then
953ff289
DN
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
1cf3d07d 886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
953ff289
DN
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
1cf3d07d
SE
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
953ff289
DN
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
953ff289
DN
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]
627ab4b8
TT
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]
953ff289
DN
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
1cf3d07d
SE
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]
953ff289 1020 --disable-libtool-lock avoid locking (might break parallel builds)
c41303c6
RH
1021 --enable-maintainer-mode enable make rules and dependencies not useful
1022 (and sometimes confusing) to the casual installer
0f3e711e
JJ
1023 --enable-linux-futex use the Linux futex system call
1024 [default=default]
2fb31455 1025 --enable-tls Use thread-local storage [default=yes]
953ff289
DN
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)
1cf3d07d
SE
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]
953ff289
DN
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>
1cf3d07d 1043 CPP C preprocessor
953ff289
DN
1044 FC Fortran compiler command
1045 FCFLAGS Fortran compiler flags
953ff289
DN
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
d349482e 1138 cd $ac_popdir
953ff289
DN
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
deb984e6
PB
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
953ff289 1438echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
deb984e6
PB
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;}
953ff289
DN
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
18c04407
RW
1465 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1466echo "$as_me: error: in \`$ac_pwd':" >&2;}
953ff289
DN
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
18c04407
RW
1502
1503
1504
953ff289
DN
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
627ab4b8
TT
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
953ff289
DN
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.
953ff289
DN
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.
38d24731 1724# Reject install programs that cannot install multiple files.
953ff289
DN
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
38d24731
RW
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
953ff289
DN
1770 fi
1771 fi
1772 done
1773 done
1774 ;;
1775esac
1776done
1777
38d24731 1778rm -rf conftest.one conftest.two conftest.dir
953ff289
DN
1779
1780fi
1781 if test "${ac_cv_path_install+set}" = set; then
1782 INSTALL=$ac_cv_path_install
1783 else
38d24731
RW
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
953ff289 1786 # break other packages using the cache if that directory is
38d24731 1787 # removed, or if the value is a relative name.
953ff289
DN
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
5b043f08
GK
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
953ff289
DN
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
18c04407
RW
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
953ff289
DN
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;}
18c04407 2527 { (exit 1); exit 1; }; }; }
953ff289
DN
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
18c04407
RW
2613{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2614echo "$as_me: error: in \`$ac_pwd':" >&2;}
953ff289
DN
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;}
18c04407 2619 { (exit 77); exit 77; }; }; }
953ff289
DN
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
18c04407
RW
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.
953ff289
DN
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;}
18c04407 2652 { (exit 1); exit 1; }; }; }
953ff289
DN
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
18c04407
RW
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
953ff289
DN
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;}
18c04407 2696 { (exit 1); exit 1; }; }; }
953ff289
DN
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
18c04407
RW
2743{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2744echo "$as_me: error: in \`$ac_pwd':" >&2;}
953ff289
DN
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;}
18c04407 2749 { (exit 1); exit 1; }; }; }
953ff289
DN
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); } &&
d349482e
AT
2790 { ac_try='test -z "$ac_c_werror_flag"
2791 || test ! -s conftest.err'
953ff289
DN
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); } &&
d349482e
AT
2849 { ac_try='test -z "$ac_c_werror_flag"
2850 || test ! -s conftest.err'
953ff289
DN
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); } &&
d349482e
AT
2966 { ac_try='test -z "$ac_c_werror_flag"
2967 || test ! -s conftest.err'
953ff289
DN
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); } &&
d349482e
AT
3021 { ac_try='test -z "$ac_c_werror_flag"
3022 || test ! -s conftest.err'
953ff289
DN
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); } &&
d349482e
AT
3067 { ac_try='test -z "$ac_c_werror_flag"
3068 || test ! -s conftest.err'
953ff289
DN
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); } &&
d349482e
AT
3112 { ac_try='test -z "$ac_c_werror_flag"
3113 || test ! -s conftest.err'
953ff289
DN
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.
38d24731 3582# Reject install programs that cannot install multiple files.
953ff289
DN
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
38d24731
RW
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
953ff289
DN
3628 fi
3629 fi
3630 done
3631 done
3632 ;;
3633esac
3634done
3635
38d24731 3636rm -rf conftest.one conftest.two conftest.dir
953ff289
DN
3637
3638fi
3639 if test "${ac_cv_path_install+set}" = set; then
3640 INSTALL=$ac_cv_path_install
3641 else
38d24731
RW
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
953ff289 3644 # break other packages using the cache if that directory is
38d24731 3645 # removed, or if the value is a relative name.
953ff289
DN
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
748b9d7c
DF
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;;
a7415017 3711 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
748b9d7c
DF
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
1cf3d07d
SE
3721 if test $gcc_cv_prog_makeinfo_modern = no; then
3722 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3723 fi
748b9d7c
DF
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
953ff289 3737# Configure libtool
1cf3d07d
SE
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
953ff289
DN
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}
1cf3d07d
SE
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
953ff289
DN
3784else
3785 enable_shared=yes
3786fi;
1cf3d07d
SE
3787
3788
3789
3790
3791
3792
3793
3794
953ff289
DN
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}
1cf3d07d
SE
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
953ff289
DN
3815else
3816 enable_static=yes
3817fi;
1cf3d07d
SE
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
953ff289
DN
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}
1cf3d07d
SE
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
953ff289
DN
3863else
3864 enable_fast_install=yes
3865fi;
3866
1cf3d07d
SE
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
953ff289
DN
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.
1cf3d07d
SE
4006 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4007echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
953ff289
DN
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.
1cf3d07d 4017 [\\/]* | ?:[\\/]*)
953ff289 4018 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
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%/%"`
953ff289
DN
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
1cf3d07d 4046 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
953ff289 4047 for ac_dir in $PATH; do
1cf3d07d 4048 IFS="$lt_save_ifs"
953ff289
DN
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,
1cf3d07d 4053 # but apparently some variants of GNU ld only accept -v.
953ff289 4054 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
4055 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4056 *GNU* | *'with BFD'*)
953ff289 4057 test "$with_gnu_ld" != no && break
1cf3d07d
SE
4058 ;;
4059 *)
953ff289 4060 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
4061 ;;
4062 esac
953ff289
DN
4063 fi
4064 done
1cf3d07d 4065 IFS="$lt_save_ifs"
953ff289
DN
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
1cf3d07d
SE
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'*)
953ff289 4090 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
4091 ;;
4092*)
953ff289 4093 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
4094 ;;
4095esac
953ff289
DN
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
953ff289 4102
1cf3d07d
SE
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
953ff289
DN
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
1cf3d07d
SE
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
953ff289 4235fi
1cf3d07d
SE
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
953ff289 4256fi
1cf3d07d
SE
4257test -z "$NM" && NM=nm
4258
4259
4260
4261
4262
953ff289 4263
1cf3d07d
SE
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
18c04407 4271 (eval echo "\"\$as_me:4271: $ac_compile\"" >&5)
1cf3d07d
SE
4272 (eval "$ac_compile" 2>conftest.err)
4273 cat conftest.err >&5
18c04407 4274 (eval echo "\"\$as_me:4274: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
4275 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4276 cat conftest.err >&5
18c04407 4277 (eval echo "\"\$as_me:4277: output\"" >&5)
1cf3d07d
SE
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
953ff289
DN
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
1cf3d07d
SE
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 *)
82a6cadf
PB
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
1cf3d07d
SE
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
953ff289
DN
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.
1cf3d07d
SE
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.
953ff289
DN
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
d653fdfb 4544aix[4-9]*)
953ff289
DN
4545 lt_cv_deplibs_check_method=pass_all
4546 ;;
4547
4548beos*)
4549 lt_cv_deplibs_check_method=pass_all
4550 ;;
4551
1cf3d07d 4552bsdi[45]*)
953ff289
DN
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
1cf3d07d
SE
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
953ff289
DN
4575 ;;
4576
4577darwin* | rhapsody*)
953ff289
DN
4578 lt_cv_deplibs_check_method=pass_all
4579 ;;
4580
1cf3d07d
SE
4581freebsd* | dragonfly*)
4582 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
953ff289
DN
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.
1cf3d07d 4587 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
953ff289
DN
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
1cf3d07d
SE
4601hpux10.20* | hpux11*)
4602 lt_cv_file_magic_cmd=/usr/bin/file
953ff289 4603 case $host_cpu in
953ff289
DN
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'
953ff289
DN
4606 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4607 ;;
1cf3d07d
SE
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
953ff289
DN
4611 ;;
4612 *)
1cf3d07d
SE
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
953ff289
DN
4615 ;;
4616 esac
1cf3d07d
SE
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
953ff289
DN
4631 lt_cv_deplibs_check_method=pass_all
4632 ;;
4633
4634# This must be Linux ELF.
1cf3d07d 4635linux* | k*bsd*-gnu)
953ff289
DN
4636 lt_cv_deplibs_check_method=pass_all
4637 ;;
4638
1cf3d07d
SE
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)$'
953ff289 4642 else
1cf3d07d 4643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
953ff289
DN
4644 fi
4645 ;;
4646
1cf3d07d 4647newos6*)
953ff289
DN
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
1cf3d07d
SE
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
953ff289 4665osf3* | osf4* | osf5*)
953ff289
DN
4666 lt_cv_deplibs_check_method=pass_all
4667 ;;
4668
1cf3d07d 4669rdos*)
953ff289
DN
4670 lt_cv_deplibs_check_method=pass_all
4671 ;;
4672
4673solaris*)
4674 lt_cv_deplibs_check_method=pass_all
953ff289
DN
4675 ;;
4676
1cf3d07d 4677sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
953ff289
DN
4678 lt_cv_deplibs_check_method=pass_all
4679 ;;
4680
1cf3d07d 4681sysv4 | sysv4.3*)
953ff289 4682 case $host_vendor in
953ff289
DN
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 ;;
1cf3d07d
SE
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 ;;
953ff289
DN
4705 esac
4706 ;;
1cf3d07d
SE
4707
4708tpf*)
4709 lt_cv_deplibs_check_method=pass_all
4710 ;;
953ff289
DN
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
1cf3d07d 4718test -z "$deplibs_check_method" && deplibs_check_method=unknown
953ff289
DN
4719
4720
4721
4722
4723
953ff289 4724
953ff289 4725
953ff289 4726
953ff289 4727
953ff289 4728
953ff289 4729
953ff289
DN
4730
4731if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
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
953ff289
DN
4734echo "$as_me:$LINENO: checking for $ac_word" >&5
4735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 4736if test "${ac_cv_prog_AR+set}" = set; then
953ff289
DN
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4738else
1cf3d07d
SE
4739 if test -n "$AR"; then
4740 ac_cv_prog_AR="$AR" # Let the user override the test.
953ff289
DN
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
1cf3d07d 4749 ac_cv_prog_AR="${ac_tool_prefix}ar"
953ff289
DN
4750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 break 2
4752 fi
4753done
4754done
4755
4756fi
4757fi
1cf3d07d
SE
4758AR=$ac_cv_prog_AR
4759if test -n "$AR"; then
4760 echo "$as_me:$LINENO: result: $AR" >&5
4761echo "${ECHO_T}$AR" >&6
953ff289
DN
4762else
4763 echo "$as_me:$LINENO: result: no" >&5
4764echo "${ECHO_T}no" >&6
4765fi
4766
4767fi
1cf3d07d
SE
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
953ff289
DN
4772echo "$as_me:$LINENO: checking for $ac_word" >&5
4773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 4774if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
953ff289
DN
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4776else
1cf3d07d
SE
4777 if test -n "$ac_ct_AR"; then
4778 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
953ff289
DN
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
1cf3d07d 4787 ac_cv_prog_ac_ct_AR="ar"
953ff289
DN
4788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791done
4792done
4793
1cf3d07d 4794 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
953ff289
DN
4795fi
4796fi
1cf3d07d
SE
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
953ff289
DN
4801else
4802 echo "$as_me:$LINENO: result: no" >&5
4803echo "${ECHO_T}no" >&6
4804fi
4805
1cf3d07d 4806 AR=$ac_ct_AR
953ff289 4807else
1cf3d07d 4808 AR="$ac_cv_prog_AR"
953ff289
DN
4809fi
4810
1cf3d07d
SE
4811test -z "$AR" && AR=ar
4812test -z "$AR_FLAGS" && AR_FLAGS=cru
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
953ff289
DN
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
1cf3d07d 4904test -z "$STRIP" && STRIP=:
953ff289
DN
4905
4906
953ff289 4907
953ff289
DN
4908
4909
953ff289 4910
1cf3d07d
SE
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
953ff289
DN
5310# libtool support.
5311case $host in
1cf3d07d 5312ia64-*-hpux*)
953ff289 5313 # Find out which ABI we are using.
1cf3d07d 5314 echo 'int i;' > conftest.$ac_ext
953ff289
DN
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
1cf3d07d
SE
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.
18c04407 5333 echo '#line 5333 "configure"' > conftest.$ac_ext
1cf3d07d
SE
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
18c04407
RW
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
1cf3d07d
SE
5743See \`config.log' for more details." >&5
5744echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5745See \`config.log' for more details." >&2;}
18c04407 5746 { (exit 1); exit 1; }; }; }
1cf3d07d
SE
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:'`
18c04407 6435 (eval echo "\"\$as_me:6435: $lt_compile\"" >&5)
1cf3d07d
SE
6436 (eval "$lt_compile" 2>conftest.err)
6437 ac_status=$?
6438 cat conftest.err >&5
18c04407 6439 echo "$as_me:6439: \$? = $ac_status" >&5
1cf3d07d
SE
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:'`
18c04407 6757 (eval echo "\"\$as_me:6757: $lt_compile\"" >&5)
1cf3d07d
SE
6758 (eval "$lt_compile" 2>conftest.err)
6759 ac_status=$?
6760 cat conftest.err >&5
18c04407 6761 echo "$as_me:6761: \$? = $ac_status" >&5
1cf3d07d
SE
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:'`
18c04407 6862 (eval echo "\"\$as_me:6862: $lt_compile\"" >&5)
1cf3d07d
SE
6863 (eval "$lt_compile" 2>out/conftest.err)
6864 ac_status=$?
6865 cat out/conftest.err >&5
18c04407 6866 echo "$as_me:6866: \$? = $ac_status" >&5
1cf3d07d
SE
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:'`
18c04407 6917 (eval echo "\"\$as_me:6917: $lt_compile\"" >&5)
1cf3d07d
SE
6918 (eval "$lt_compile" 2>out/conftest.err)
6919 ac_status=$?
6920 cat out/conftest.err >&5
18c04407 6921 echo "$as_me:6921: \$? = $ac_status" >&5
1cf3d07d
SE
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
d653fdfb 7065 aix[3-9]*)
1cf3d07d
SE
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
d653fdfb 7299 aix[4-9]*)
1cf3d07d
SE
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.
d653fdfb 7319 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
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
d653fdfb 8379aix[4-9]*)
1cf3d07d
SE
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
18c04407 9714#line 9714 "configure"
1cf3d07d
SE
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
18c04407 9814#line 9814 "configure"
1cf3d07d
SE
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
d653fdfb 9997 aix[4-9]*)
1cf3d07d
SE
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.
18c04407 10169echo "$as_me:10169:" \
1cf3d07d
SE
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.
18c04407 10405echo "$as_me:10405:" \
1cf3d07d
SE
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 ;;
d653fdfb 10673 aix[4-9]*)
1cf3d07d
SE
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:'`
18c04407 11121 (eval echo "\"\$as_me:11121: $lt_compile\"" >&5)
1cf3d07d
SE
11122 (eval "$lt_compile" 2>conftest.err)
11123 ac_status=$?
11124 cat conftest.err >&5
18c04407 11125 echo "$as_me:11125: \$? = $ac_status" >&5
1cf3d07d
SE
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:'`
18c04407 11220 (eval echo "\"\$as_me:11220: $lt_compile\"" >&5)
1cf3d07d
SE
11221 (eval "$lt_compile" 2>out/conftest.err)
11222 ac_status=$?
11223 cat out/conftest.err >&5
18c04407 11224 echo "$as_me:11224: \$? = $ac_status" >&5
1cf3d07d
SE
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:'`
18c04407 11272 (eval echo "\"\$as_me:11272: $lt_compile\"" >&5)
1cf3d07d
SE
11273 (eval "$lt_compile" 2>out/conftest.err)
11274 ac_status=$?
11275 cat out/conftest.err >&5
18c04407 11276 echo "$as_me:11276: \$? = $ac_status" >&5
1cf3d07d
SE
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
d653fdfb 11417 aix[3-9]*)
1cf3d07d
SE
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
d653fdfb 11651 aix[4-9]*)
1cf3d07d
SE
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.
d653fdfb 11671 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
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
953ff289 11868 ;;
1cf3d07d
SE
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
953ff289 11878 ;;
1cf3d07d
SE
11879
11880 bsdi[45]*)
11881 export_dynamic_flag_spec_FC=-rdynamic
953ff289 11882 ;;
1cf3d07d
SE
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
953ff289 11903 ;;
1cf3d07d
SE
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
953ff289 11973 ;;
1cf3d07d
SE
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
953ff289 11979 ;;
953ff289 11980
1cf3d07d
SE
11981 freebsd1*)
11982 ld_shlibs_FC=no
953ff289 11983 ;;
1cf3d07d
SE
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
953ff289 11994 ;;
953ff289 11995
1cf3d07d
SE
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
953ff289 12109 ac_status=$?
1cf3d07d
SE
12110 grep -v '^ *+' conftest.er1 >conftest.err
12111 rm -f conftest.er1
12112 cat conftest.err >&5
953ff289 12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
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 ;;
953ff289 12306 esac
1cf3d07d
SE
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
953ff289 12376 ;;
1cf3d07d
SE
12377 esac
12378
12379 if test x$host_vendor = xsni; then
953ff289 12380 case $host in
1cf3d07d
SE
12381 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12382 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
12383 ;;
953ff289 12384 esac
1cf3d07d 12385 fi
953ff289 12386 fi
953ff289 12387
1cf3d07d
SE
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
953ff289 12391
1cf3d07d 12392with_gnu_ld_FC=$with_gnu_ld
953ff289 12393
953ff289 12394
953ff289 12395
953ff289 12396
1cf3d07d
SE
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
953ff289
DN
12423 ac_status=$?
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
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
953ff289
DN
12441 ac_status=$?
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
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
953ff289
DN
12458 fi
12459 ;;
1cf3d07d
SE
12460esac
12461
953ff289
DN
12462
12463
953ff289
DN
12464
12465
953ff289 12466
953ff289 12467
953ff289 12468
953ff289 12469
953ff289
DN
12470
12471
953ff289 12472
953ff289 12473
953ff289
DN
12474
12475
12476
12477
12478
12479
12480
12481
12482
c41303c6
RH
12483
12484
c41303c6 12485
c41303c6
RH
12486
12487
12488
953ff289 12489
953ff289 12490
953ff289 12491
953ff289 12492
953ff289 12493
953ff289
DN
12494
12495
953ff289 12496
953ff289 12497
953ff289 12498
953ff289 12499
953ff289 12500
953ff289 12501
953ff289 12502
1cf3d07d
SE
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
d653fdfb 12558aix[4-9]*)
1cf3d07d
SE
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
953ff289 12567 else
1cf3d07d
SE
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
953ff289 12599 fi
1cf3d07d
SE
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'
953ff289 12607 else
1cf3d07d 12608 dynamic_linker=no
953ff289 12609 fi
1cf3d07d 12610 ;;
953ff289 12611
1cf3d07d
SE
12612beos*)
12613 library_names_spec='${libname}${shared_ext}'
12614 dynamic_linker="$host_os ld.so"
12615 shlibpath_var=LIBRARY_PATH
12616 ;;
953ff289 12617
1cf3d07d
SE
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 ;;
953ff289 12631
1cf3d07d
SE
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 ;;
953ff289 12684
1cf3d07d
SE
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 ;;
953ff289 12693
1cf3d07d
SE
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`
953ff289 12726 else
1cf3d07d
SE
12727 case $host_os in
12728 freebsd[123]*) objformat=aout ;;
12729 *) objformat=elf ;;
12730 esac
953ff289 12731 fi
1cf3d07d
SE
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 ;;
953ff289 12764
1cf3d07d
SE
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 ;;
953ff289 12774
1cf3d07d
SE
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\""
953ff289 12890 cat >conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
12891 program main
12892
12893 end
953ff289 12894_ACEOF
1cf3d07d
SE
12895rm -f conftest.$ac_objext conftest$ac_exeext
12896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12897 (eval $ac_link) 2>conftest.er1
953ff289
DN
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
1cf3d07d
SE
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
953ff289 12919fi
1cf3d07d 12920
953ff289
DN
12921else
12922 echo "$as_me: failed program was:" >&5
12923sed 's/^/| /' conftest.$ac_ext >&5
12924
953ff289 12925fi
1cf3d07d
SE
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
953ff289 12941
1cf3d07d
SE
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 ;;
953ff289 12950
1cf3d07d
SE
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 ;;
953ff289 12968
1cf3d07d
SE
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
953ff289 13009 else
1cf3d07d 13010 shlibpath_overrides_runpath=yes
953ff289 13011 fi
1cf3d07d 13012 ;;
953ff289 13013
1cf3d07d
SE
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"
953ff289 13146fi
953ff289 13147
1cf3d07d
SE
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
953ff289 13199 else
1cf3d07d
SE
13200 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13201 hardcode_action_FC=immediate
953ff289
DN
13202 fi
13203else
1cf3d07d
SE
13204 # We cannot hardcode anything, or else we can only hardcode existing
13205 # directories.
13206 hardcode_action_FC=unsupported
953ff289 13207fi
1cf3d07d
SE
13208echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5
13209echo "${ECHO_T}$hardcode_action_FC" >&6
953ff289 13210
1cf3d07d
SE
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
953ff289 13219fi
953ff289 13220
1cf3d07d
SE
13221
13222
13223
13224
13225
13226
13227 fi # test -n "$compiler"
13228
13229 CC="$lt_save_CC"
13230fi # test "$_lt_disable_FC" != yes
953ff289
DN
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
1cf3d07d 13239FCFLAGS="$FCFLAGS -Wall"
953ff289 13240
1cf3d07d
SE
13241# For libtool versioning info, format is CURRENT:REVISION:AGE
13242libtool_VERSION=1:0:0
953ff289 13243
1cf3d07d
SE
13244
13245# Check header files.
953ff289
DN
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); } &&
d349482e
AT
13279 { ac_try='test -z "$ac_c_werror_flag"
13280 || test ! -s conftest.err'
953ff289
DN
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); } &&
d349482e
AT
13445 { ac_try='test -z "$ac_c_werror_flag"
13446 || test ! -s conftest.err'
953ff289
DN
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
a1b25e49
PG
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
953ff289
DN
13539
13540
13541
192a50ad
AT
13542
13543for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
953ff289
DN
13544do
13545as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13546if eval "test \"\${$as_ac_Header+set}\" = set"; then
13547 echo "$as_me:$LINENO: checking for $ac_header" >&5
13548echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13549if eval "test \"\${$as_ac_Header+set}\" = set"; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13551fi
13552echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13553echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13554else
13555 # Is the header compilable?
13556echo "$as_me:$LINENO: checking $ac_header usability" >&5
13557echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13558cat >conftest.$ac_ext <<_ACEOF
13559/* confdefs.h. */
13560_ACEOF
13561cat confdefs.h >>conftest.$ac_ext
13562cat >>conftest.$ac_ext <<_ACEOF
13563/* end confdefs.h. */
13564$ac_includes_default
13565#include <$ac_header>
13566_ACEOF
13567rm -f conftest.$ac_objext
13568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13569 (eval $ac_compile) 2>conftest.er1
13570 ac_status=$?
13571 grep -v '^ *+' conftest.er1 >conftest.err
13572 rm -f conftest.er1
13573 cat conftest.err >&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } &&
d349482e
AT
13576 { ac_try='test -z "$ac_c_werror_flag"
13577 || test ! -s conftest.err'
953ff289
DN
13578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579 (eval $ac_try) 2>&5
13580 ac_status=$?
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; } &&
13583 { ac_try='test -s conftest.$ac_objext'
13584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585 (eval $ac_try) 2>&5
13586 ac_status=$?
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }; then
13589 ac_header_compiler=yes
13590else
13591 echo "$as_me: failed program was:" >&5
13592sed 's/^/| /' conftest.$ac_ext >&5
13593
13594ac_header_compiler=no
13595fi
13596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13597echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13598echo "${ECHO_T}$ac_header_compiler" >&6
13599
13600# Is the header present?
13601echo "$as_me:$LINENO: checking $ac_header presence" >&5
13602echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13603cat >conftest.$ac_ext <<_ACEOF
13604/* confdefs.h. */
13605_ACEOF
13606cat confdefs.h >>conftest.$ac_ext
13607cat >>conftest.$ac_ext <<_ACEOF
13608/* end confdefs.h. */
13609#include <$ac_header>
13610_ACEOF
13611if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13613 ac_status=$?
13614 grep -v '^ *+' conftest.er1 >conftest.err
13615 rm -f conftest.er1
13616 cat conftest.err >&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } >/dev/null; then
13619 if test -s conftest.err; then
13620 ac_cpp_err=$ac_c_preproc_warn_flag
13621 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13622 else
13623 ac_cpp_err=
13624 fi
13625else
13626 ac_cpp_err=yes
13627fi
13628if test -z "$ac_cpp_err"; then
13629 ac_header_preproc=yes
13630else
13631 echo "$as_me: failed program was:" >&5
13632sed 's/^/| /' conftest.$ac_ext >&5
13633
13634 ac_header_preproc=no
13635fi
13636rm -f conftest.err conftest.$ac_ext
13637echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13638echo "${ECHO_T}$ac_header_preproc" >&6
13639
13640# So? What about this header?
13641case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13642 yes:no: )
13643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13644echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13646echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13647 ac_header_preproc=yes
13648 ;;
13649 no:yes:* )
13650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13651echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13653echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13654 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13655echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13656 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13657echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13659echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13660 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13661echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13662 (
13663 cat <<\_ASBOX
13664## ----------------------------------------------------- ##
13665## Report this to the GNU OpenMP Runtime Library lists. ##
13666## ----------------------------------------------------- ##
13667_ASBOX
13668 ) |
13669 sed "s/^/$as_me: WARNING: /" >&2
13670 ;;
13671esac
13672echo "$as_me:$LINENO: checking for $ac_header" >&5
13673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13674if eval "test \"\${$as_ac_Header+set}\" = set"; then
13675 echo $ECHO_N "(cached) $ECHO_C" >&6
13676else
13677 eval "$as_ac_Header=\$ac_header_preproc"
13678fi
13679echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13680echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13681
13682fi
13683if test `eval echo '${'$as_ac_Header'}'` = yes; then
13684 cat >>confdefs.h <<_ACEOF
13685#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13686_ACEOF
13687
13688fi
13689
13690done
13691
953ff289 13692
18cbfd85
PB
13693
13694
13695inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
13696
13697acx_cv_header_stdint=stddef.h
13698acx_cv_header_stdint_kind="(already complete)"
13699for i in stdint.h $inttype_headers; do
13700 unset ac_cv_type_uintptr_t
13701 unset ac_cv_type_uintmax_t
13702 unset ac_cv_type_int_least32_t
13703 unset ac_cv_type_int_fast32_t
13704 unset ac_cv_type_uint64_t
13705 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13706 echo "$as_me:$LINENO: checking for uintmax_t" >&5
13707echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
13708if test "${ac_cv_type_uintmax_t+set}" = set; then
13709 echo $ECHO_N "(cached) $ECHO_C" >&6
13710else
13711 cat >conftest.$ac_ext <<_ACEOF
13712/* confdefs.h. */
13713_ACEOF
13714cat confdefs.h >>conftest.$ac_ext
13715cat >>conftest.$ac_ext <<_ACEOF
13716/* end confdefs.h. */
13717#include <sys/types.h>
13718#include <$i>
13719
13720int
13721main ()
13722{
13723if ((uintmax_t *) 0)
13724 return 0;
13725if (sizeof (uintmax_t))
13726 return 0;
13727 ;
13728 return 0;
13729}
13730_ACEOF
13731rm -f conftest.$ac_objext
13732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733 (eval $ac_compile) 2>conftest.er1
13734 ac_status=$?
13735 grep -v '^ *+' conftest.er1 >conftest.err
13736 rm -f conftest.er1
13737 cat conftest.err >&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
d349482e
AT
13740 { ac_try='test -z "$ac_c_werror_flag"
13741 || test ! -s conftest.err'
18cbfd85
PB
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; } &&
13747 { ac_try='test -s conftest.$ac_objext'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13753 ac_cv_type_uintmax_t=yes
13754else
13755 echo "$as_me: failed program was:" >&5
13756sed 's/^/| /' conftest.$ac_ext >&5
13757
13758ac_cv_type_uintmax_t=no
13759fi
13760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13761fi
13762echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13763echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13764if test $ac_cv_type_uintmax_t = yes; then
13765 acx_cv_header_stdint=$i
13766else
13767 continue
13768fi
13769
13770 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13771echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13772if test "${ac_cv_type_uintptr_t+set}" = set; then
13773 echo $ECHO_N "(cached) $ECHO_C" >&6
13774else
13775 cat >conftest.$ac_ext <<_ACEOF
13776/* confdefs.h. */
13777_ACEOF
13778cat confdefs.h >>conftest.$ac_ext
13779cat >>conftest.$ac_ext <<_ACEOF
13780/* end confdefs.h. */
13781#include <sys/types.h>
13782#include <$i>
13783
13784int
13785main ()
13786{
13787if ((uintptr_t *) 0)
13788 return 0;
13789if (sizeof (uintptr_t))
13790 return 0;
13791 ;
13792 return 0;
13793}
13794_ACEOF
13795rm -f conftest.$ac_objext
13796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13797 (eval $ac_compile) 2>conftest.er1
13798 ac_status=$?
13799 grep -v '^ *+' conftest.er1 >conftest.err
13800 rm -f conftest.er1
13801 cat conftest.err >&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } &&
d349482e
AT
13804 { ac_try='test -z "$ac_c_werror_flag"
13805 || test ! -s conftest.err'
18cbfd85
PB
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5
13808 ac_status=$?
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; } &&
13811 { ac_try='test -s conftest.$ac_objext'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13814 ac_status=$?
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; }; then
13817 ac_cv_type_uintptr_t=yes
13818else
13819 echo "$as_me: failed program was:" >&5
13820sed 's/^/| /' conftest.$ac_ext >&5
13821
13822ac_cv_type_uintptr_t=no
13823fi
13824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13825fi
13826echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13827echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13828if test $ac_cv_type_uintptr_t = yes; then
13829 :
13830else
13831 acx_cv_header_stdint_kind="(mostly complete)"
13832fi
13833
13834 echo "$as_me:$LINENO: checking for int_least32_t" >&5
13835echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13836if test "${ac_cv_type_int_least32_t+set}" = set; then
13837 echo $ECHO_N "(cached) $ECHO_C" >&6
13838else
13839 cat >conftest.$ac_ext <<_ACEOF
13840/* confdefs.h. */
13841_ACEOF
13842cat confdefs.h >>conftest.$ac_ext
13843cat >>conftest.$ac_ext <<_ACEOF
13844/* end confdefs.h. */
13845#include <sys/types.h>
13846#include <$i>
13847
13848int
13849main ()
13850{
13851if ((int_least32_t *) 0)
13852 return 0;
13853if (sizeof (int_least32_t))
13854 return 0;
13855 ;
13856 return 0;
13857}
13858_ACEOF
13859rm -f conftest.$ac_objext
13860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13861 (eval $ac_compile) 2>conftest.er1
13862 ac_status=$?
13863 grep -v '^ *+' conftest.er1 >conftest.err
13864 rm -f conftest.er1
13865 cat conftest.err >&5
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); } &&
d349482e
AT
13868 { ac_try='test -z "$ac_c_werror_flag"
13869 || test ! -s conftest.err'
18cbfd85
PB
13870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13871 (eval $ac_try) 2>&5
13872 ac_status=$?
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; } &&
13875 { ac_try='test -s conftest.$ac_objext'
13876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877 (eval $ac_try) 2>&5
13878 ac_status=$?
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); }; }; then
13881 ac_cv_type_int_least32_t=yes
13882else
13883 echo "$as_me: failed program was:" >&5
13884sed 's/^/| /' conftest.$ac_ext >&5
13885
13886ac_cv_type_int_least32_t=no
13887fi
13888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13889fi
13890echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13891echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13892if test $ac_cv_type_int_least32_t = yes; then
13893 :
13894else
13895 acx_cv_header_stdint_kind="(mostly complete)"
13896fi
13897
13898 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13899echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13900if test "${ac_cv_type_int_fast32_t+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902else
13903 cat >conftest.$ac_ext <<_ACEOF
13904/* confdefs.h. */
13905_ACEOF
13906cat confdefs.h >>conftest.$ac_ext
13907cat >>conftest.$ac_ext <<_ACEOF
13908/* end confdefs.h. */
13909#include <sys/types.h>
13910#include <$i>
13911
13912int
13913main ()
13914{
13915if ((int_fast32_t *) 0)
13916 return 0;
13917if (sizeof (int_fast32_t))
13918 return 0;
13919 ;
13920 return 0;
13921}
13922_ACEOF
13923rm -f conftest.$ac_objext
13924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13925 (eval $ac_compile) 2>conftest.er1
13926 ac_status=$?
13927 grep -v '^ *+' conftest.er1 >conftest.err
13928 rm -f conftest.er1
13929 cat conftest.err >&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } &&
d349482e
AT
13932 { ac_try='test -z "$ac_c_werror_flag"
13933 || test ! -s conftest.err'
18cbfd85
PB
13934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935 (eval $ac_try) 2>&5
13936 ac_status=$?
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; } &&
13939 { ac_try='test -s conftest.$ac_objext'
13940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941 (eval $ac_try) 2>&5
13942 ac_status=$?
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; }; then
13945 ac_cv_type_int_fast32_t=yes
13946else
13947 echo "$as_me: failed program was:" >&5
13948sed 's/^/| /' conftest.$ac_ext >&5
13949
13950ac_cv_type_int_fast32_t=no
13951fi
13952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13953fi
13954echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13955echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13956if test $ac_cv_type_int_fast32_t = yes; then
13957 :
13958else
13959 acx_cv_header_stdint_kind="(mostly complete)"
13960fi
13961
13962 echo "$as_me:$LINENO: checking for uint64_t" >&5
13963echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13964if test "${ac_cv_type_uint64_t+set}" = set; then
13965 echo $ECHO_N "(cached) $ECHO_C" >&6
13966else
13967 cat >conftest.$ac_ext <<_ACEOF
13968/* confdefs.h. */
13969_ACEOF
13970cat confdefs.h >>conftest.$ac_ext
13971cat >>conftest.$ac_ext <<_ACEOF
13972/* end confdefs.h. */
13973#include <sys/types.h>
13974#include <$i>
13975
13976int
13977main ()
13978{
13979if ((uint64_t *) 0)
13980 return 0;
13981if (sizeof (uint64_t))
13982 return 0;
13983 ;
13984 return 0;
13985}
13986_ACEOF
13987rm -f conftest.$ac_objext
13988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13989 (eval $ac_compile) 2>conftest.er1
13990 ac_status=$?
13991 grep -v '^ *+' conftest.er1 >conftest.err
13992 rm -f conftest.er1
13993 cat conftest.err >&5
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); } &&
d349482e
AT
13996 { ac_try='test -z "$ac_c_werror_flag"
13997 || test ! -s conftest.err'
18cbfd85
PB
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14000 ac_status=$?
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; } &&
14003 { ac_try='test -s conftest.$ac_objext'
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5
14006 ac_status=$?
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; }; then
14009 ac_cv_type_uint64_t=yes
14010else
14011 echo "$as_me: failed program was:" >&5
14012sed 's/^/| /' conftest.$ac_ext >&5
14013
14014ac_cv_type_uint64_t=no
14015fi
14016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14017fi
14018echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14019echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14020if test $ac_cv_type_uint64_t = yes; then
14021 :
14022else
14023 acx_cv_header_stdint_kind="(lacks uint64_t)"
14024fi
14025
14026 break
14027done
14028if test "$acx_cv_header_stdint" = stddef.h; then
c663e301 14029 acx_cv_header_stdint_kind="(lacks uintmax_t)"
18cbfd85 14030 for i in stdint.h $inttype_headers; do
c663e301 14031 unset ac_cv_type_uintptr_t
18cbfd85
PB
14032 unset ac_cv_type_uint32_t
14033 unset ac_cv_type_uint64_t
14034 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
14035 echo "$as_me:$LINENO: checking for uint32_t" >&5
14036echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14037if test "${ac_cv_type_uint32_t+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14039else
14040 cat >conftest.$ac_ext <<_ACEOF
14041/* confdefs.h. */
14042_ACEOF
14043cat confdefs.h >>conftest.$ac_ext
14044cat >>conftest.$ac_ext <<_ACEOF
14045/* end confdefs.h. */
14046#include <sys/types.h>
14047#include <$i>
14048
14049int
14050main ()
14051{
14052if ((uint32_t *) 0)
14053 return 0;
14054if (sizeof (uint32_t))
14055 return 0;
14056 ;
14057 return 0;
14058}
14059_ACEOF
14060rm -f conftest.$ac_objext
14061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14062 (eval $ac_compile) 2>conftest.er1
14063 ac_status=$?
14064 grep -v '^ *+' conftest.er1 >conftest.err
14065 rm -f conftest.er1
14066 cat conftest.err >&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } &&
d349482e
AT
14069 { ac_try='test -z "$ac_c_werror_flag"
14070 || test ! -s conftest.err'
18cbfd85
PB
14071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14072 (eval $ac_try) 2>&5
14073 ac_status=$?
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; } &&
14076 { ac_try='test -s conftest.$ac_objext'
14077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078 (eval $ac_try) 2>&5
14079 ac_status=$?
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; }; then
14082 ac_cv_type_uint32_t=yes
14083else
14084 echo "$as_me: failed program was:" >&5
14085sed 's/^/| /' conftest.$ac_ext >&5
14086
14087ac_cv_type_uint32_t=no
14088fi
14089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14090fi
14091echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14092echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14093if test $ac_cv_type_uint32_t = yes; then
14094 acx_cv_header_stdint=$i
14095else
14096 continue
14097fi
14098
14099 echo "$as_me:$LINENO: checking for uint64_t" >&5
14100echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14101if test "${ac_cv_type_uint64_t+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14103else
14104 cat >conftest.$ac_ext <<_ACEOF
14105/* confdefs.h. */
14106_ACEOF
14107cat confdefs.h >>conftest.$ac_ext
14108cat >>conftest.$ac_ext <<_ACEOF
14109/* end confdefs.h. */
14110#include <sys/types.h>
14111#include <$i>
14112
14113int
14114main ()
14115{
14116if ((uint64_t *) 0)
14117 return 0;
14118if (sizeof (uint64_t))
14119 return 0;
14120 ;
14121 return 0;
14122}
14123_ACEOF
14124rm -f conftest.$ac_objext
14125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14126 (eval $ac_compile) 2>conftest.er1
14127 ac_status=$?
14128 grep -v '^ *+' conftest.er1 >conftest.err
14129 rm -f conftest.er1
14130 cat conftest.err >&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } &&
d349482e
AT
14133 { ac_try='test -z "$ac_c_werror_flag"
14134 || test ! -s conftest.err'
18cbfd85
PB
14135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14136 (eval $ac_try) 2>&5
14137 ac_status=$?
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); }; } &&
14140 { ac_try='test -s conftest.$ac_objext'
14141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14142 (eval $ac_try) 2>&5
14143 ac_status=$?
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); }; }; then
14146 ac_cv_type_uint64_t=yes
14147else
14148 echo "$as_me: failed program was:" >&5
14149sed 's/^/| /' conftest.$ac_ext >&5
14150
14151ac_cv_type_uint64_t=no
14152fi
14153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14154fi
14155echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14156echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
c663e301
JM
14157
14158 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14159echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14160if test "${ac_cv_type_uintptr_t+set}" = set; then
14161 echo $ECHO_N "(cached) $ECHO_C" >&6
18cbfd85 14162else
c663e301
JM
14163 cat >conftest.$ac_ext <<_ACEOF
14164/* confdefs.h. */
14165_ACEOF
14166cat confdefs.h >>conftest.$ac_ext
14167cat >>conftest.$ac_ext <<_ACEOF
14168/* end confdefs.h. */
14169#include <sys/types.h>
14170#include <$i>
14171
14172int
14173main ()
14174{
14175if ((uintptr_t *) 0)
14176 return 0;
14177if (sizeof (uintptr_t))
14178 return 0;
14179 ;
14180 return 0;
14181}
14182_ACEOF
14183rm -f conftest.$ac_objext
14184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14185 (eval $ac_compile) 2>conftest.er1
14186 ac_status=$?
14187 grep -v '^ *+' conftest.er1 >conftest.err
14188 rm -f conftest.er1
14189 cat conftest.err >&5
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); } &&
14192 { ac_try='test -z "$ac_c_werror_flag"
14193 || test ! -s conftest.err'
14194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14195 (eval $ac_try) 2>&5
14196 ac_status=$?
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); }; } &&
14199 { ac_try='test -s conftest.$ac_objext'
14200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201 (eval $ac_try) 2>&5
14202 ac_status=$?
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; }; then
14205 ac_cv_type_uintptr_t=yes
14206else
14207 echo "$as_me: failed program was:" >&5
14208sed 's/^/| /' conftest.$ac_ext >&5
14209
14210ac_cv_type_uintptr_t=no
14211fi
14212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18cbfd85 14213fi
c663e301
JM
14214echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14215echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
18cbfd85
PB
14216
14217 break
14218 done
14219fi
14220if test "$acx_cv_header_stdint" = stddef.h; then
14221 acx_cv_header_stdint_kind="(u_intXX_t style)"
14222 for i in sys/types.h $inttype_headers; do
14223 unset ac_cv_type_u_int32_t
14224 unset ac_cv_type_u_int64_t
14225 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14226 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14227echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14228if test "${ac_cv_type_u_int32_t+set}" = set; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14230else
14231 cat >conftest.$ac_ext <<_ACEOF
14232/* confdefs.h. */
14233_ACEOF
14234cat confdefs.h >>conftest.$ac_ext
14235cat >>conftest.$ac_ext <<_ACEOF
14236/* end confdefs.h. */
14237#include <sys/types.h>
14238#include <$i>
14239
14240int
14241main ()
14242{
14243if ((u_int32_t *) 0)
14244 return 0;
14245if (sizeof (u_int32_t))
14246 return 0;
14247 ;
14248 return 0;
14249}
14250_ACEOF
14251rm -f conftest.$ac_objext
14252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14253 (eval $ac_compile) 2>conftest.er1
14254 ac_status=$?
14255 grep -v '^ *+' conftest.er1 >conftest.err
14256 rm -f conftest.er1
14257 cat conftest.err >&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } &&
d349482e
AT
14260 { ac_try='test -z "$ac_c_werror_flag"
14261 || test ! -s conftest.err'
18cbfd85
PB
14262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14263 (eval $ac_try) 2>&5
14264 ac_status=$?
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); }; } &&
14267 { ac_try='test -s conftest.$ac_objext'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14270 ac_status=$?
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; }; then
14273 ac_cv_type_u_int32_t=yes
14274else
14275 echo "$as_me: failed program was:" >&5
14276sed 's/^/| /' conftest.$ac_ext >&5
14277
14278ac_cv_type_u_int32_t=no
14279fi
14280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14281fi
14282echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14283echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14284if test $ac_cv_type_u_int32_t = yes; then
14285 acx_cv_header_stdint=$i
14286else
14287 continue
14288fi
14289
14290 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14291echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14292if test "${ac_cv_type_u_int64_t+set}" = set; then
14293 echo $ECHO_N "(cached) $ECHO_C" >&6
14294else
14295 cat >conftest.$ac_ext <<_ACEOF
14296/* confdefs.h. */
14297_ACEOF
14298cat confdefs.h >>conftest.$ac_ext
14299cat >>conftest.$ac_ext <<_ACEOF
14300/* end confdefs.h. */
14301#include <sys/types.h>
14302#include <$i>
14303
14304int
14305main ()
14306{
14307if ((u_int64_t *) 0)
14308 return 0;
14309if (sizeof (u_int64_t))
14310 return 0;
14311 ;
14312 return 0;
14313}
14314_ACEOF
14315rm -f conftest.$ac_objext
14316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14317 (eval $ac_compile) 2>conftest.er1
14318 ac_status=$?
14319 grep -v '^ *+' conftest.er1 >conftest.err
14320 rm -f conftest.er1
14321 cat conftest.err >&5
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); } &&
d349482e
AT
14324 { ac_try='test -z "$ac_c_werror_flag"
14325 || test ! -s conftest.err'
18cbfd85
PB
14326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327 (eval $ac_try) 2>&5
14328 ac_status=$?
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; } &&
14331 { ac_try='test -s conftest.$ac_objext'
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14334 ac_status=$?
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; }; then
14337 ac_cv_type_u_int64_t=yes
14338else
14339 echo "$as_me: failed program was:" >&5
14340sed 's/^/| /' conftest.$ac_ext >&5
14341
14342ac_cv_type_u_int64_t=no
14343fi
14344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14345fi
14346echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14347echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
18cbfd85
PB
14348
14349 break
14350 done
14351fi
14352if test "$acx_cv_header_stdint" = stddef.h; then
14353 acx_cv_header_stdint_kind="(using manual detection)"
14354fi
14355
14356test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14357test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14358test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14359test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14360test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14361
14362# ----------------- Summarize what we found so far
14363
14364echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
14365echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
14366
14367case `$as_basename gstdint.h ||
14368$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14369 Xgstdint.h : 'X\(//\)$' \| \
14370 Xgstdint.h : 'X\(/\)$' \| \
14371 . : '\(.\)' 2>/dev/null ||
14372echo X/gstdint.h |
14373 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14374 /^X\/\(\/\/\)$/{ s//\1/; q; }
14375 /^X\/\(\/\).*/{ s//\1/; q; }
14376 s/.*/./; q'` in
14377 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14378echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14379 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14380echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14381 *) ;;
14382esac
14383
14384echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14385echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14386
14387# ----------------- done included file, check C basic types --------
14388
14389# Lacking an uintptr_t? Test size of void *
14390case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14391 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14392echo $ECHO_N "checking for void *... $ECHO_C" >&6
14393if test "${ac_cv_type_void_p+set}" = set; then
14394 echo $ECHO_N "(cached) $ECHO_C" >&6
14395else
14396 cat >conftest.$ac_ext <<_ACEOF
14397/* confdefs.h. */
14398_ACEOF
14399cat confdefs.h >>conftest.$ac_ext
14400cat >>conftest.$ac_ext <<_ACEOF
14401/* end confdefs.h. */
14402$ac_includes_default
14403int
14404main ()
14405{
14406if ((void * *) 0)
14407 return 0;
14408if (sizeof (void *))
14409 return 0;
14410 ;
14411 return 0;
14412}
14413_ACEOF
14414rm -f conftest.$ac_objext
14415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14416 (eval $ac_compile) 2>conftest.er1
14417 ac_status=$?
14418 grep -v '^ *+' conftest.er1 >conftest.err
14419 rm -f conftest.er1
14420 cat conftest.err >&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); } &&
d349482e
AT
14423 { ac_try='test -z "$ac_c_werror_flag"
14424 || test ! -s conftest.err'
18cbfd85
PB
14425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14426 (eval $ac_try) 2>&5
14427 ac_status=$?
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; } &&
14430 { ac_try='test -s conftest.$ac_objext'
14431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432 (eval $ac_try) 2>&5
14433 ac_status=$?
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; }; then
14436 ac_cv_type_void_p=yes
14437else
14438 echo "$as_me: failed program was:" >&5
14439sed 's/^/| /' conftest.$ac_ext >&5
14440
14441ac_cv_type_void_p=no
14442fi
14443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14444fi
14445echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14446echo "${ECHO_T}$ac_cv_type_void_p" >&6
14447
14448echo "$as_me:$LINENO: checking size of void *" >&5
14449echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14450if test "${ac_cv_sizeof_void_p+set}" = set; then
14451 echo $ECHO_N "(cached) $ECHO_C" >&6
14452else
14453 if test "$ac_cv_type_void_p" = yes; then
14454 # The cast to unsigned long works around a bug in the HP C Compiler
14455 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14456 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14457 # This bug is HP SR number 8606223364.
14458 if test "$cross_compiling" = yes; then
14459 # Depending upon the size, compute the lo and hi bounds.
14460cat >conftest.$ac_ext <<_ACEOF
14461/* confdefs.h. */
14462_ACEOF
14463cat confdefs.h >>conftest.$ac_ext
14464cat >>conftest.$ac_ext <<_ACEOF
14465/* end confdefs.h. */
14466$ac_includes_default
14467int
14468main ()
14469{
14470static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14471test_array [0] = 0
14472
14473 ;
14474 return 0;
14475}
14476_ACEOF
14477rm -f conftest.$ac_objext
14478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14479 (eval $ac_compile) 2>conftest.er1
14480 ac_status=$?
14481 grep -v '^ *+' conftest.er1 >conftest.err
14482 rm -f conftest.er1
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } &&
d349482e
AT
14486 { ac_try='test -z "$ac_c_werror_flag"
14487 || test ! -s conftest.err'
18cbfd85
PB
14488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14490 ac_status=$?
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; } &&
14493 { ac_try='test -s conftest.$ac_objext'
14494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495 (eval $ac_try) 2>&5
14496 ac_status=$?
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); }; }; then
14499 ac_lo=0 ac_mid=0
14500 while :; do
14501 cat >conftest.$ac_ext <<_ACEOF
14502/* confdefs.h. */
14503_ACEOF
14504cat confdefs.h >>conftest.$ac_ext
14505cat >>conftest.$ac_ext <<_ACEOF
14506/* end confdefs.h. */
14507$ac_includes_default
14508int
14509main ()
14510{
14511static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14512test_array [0] = 0
14513
14514 ;
14515 return 0;
14516}
14517_ACEOF
14518rm -f conftest.$ac_objext
14519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14520 (eval $ac_compile) 2>conftest.er1
14521 ac_status=$?
14522 grep -v '^ *+' conftest.er1 >conftest.err
14523 rm -f conftest.er1
14524 cat conftest.err >&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); } &&
d349482e
AT
14527 { ac_try='test -z "$ac_c_werror_flag"
14528 || test ! -s conftest.err'
18cbfd85
PB
14529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530 (eval $ac_try) 2>&5
14531 ac_status=$?
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; } &&
14534 { ac_try='test -s conftest.$ac_objext'
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14537 ac_status=$?
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; }; then
14540 ac_hi=$ac_mid; break
14541else
14542 echo "$as_me: failed program was:" >&5
14543sed 's/^/| /' conftest.$ac_ext >&5
14544
14545ac_lo=`expr $ac_mid + 1`
14546 if test $ac_lo -le $ac_mid; then
14547 ac_lo= ac_hi=
14548 break
14549 fi
14550 ac_mid=`expr 2 '*' $ac_mid + 1`
14551fi
14552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14553 done
14554else
14555 echo "$as_me: failed program was:" >&5
14556sed 's/^/| /' conftest.$ac_ext >&5
14557
14558cat >conftest.$ac_ext <<_ACEOF
14559/* confdefs.h. */
14560_ACEOF
14561cat confdefs.h >>conftest.$ac_ext
14562cat >>conftest.$ac_ext <<_ACEOF
14563/* end confdefs.h. */
14564$ac_includes_default
14565int
14566main ()
14567{
14568static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14569test_array [0] = 0
14570
14571 ;
14572 return 0;
14573}
14574_ACEOF
14575rm -f conftest.$ac_objext
14576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14577 (eval $ac_compile) 2>conftest.er1
14578 ac_status=$?
14579 grep -v '^ *+' conftest.er1 >conftest.err
14580 rm -f conftest.er1
14581 cat conftest.err >&5
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); } &&
d349482e
AT
14584 { ac_try='test -z "$ac_c_werror_flag"
14585 || test ! -s conftest.err'
18cbfd85
PB
14586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587 (eval $ac_try) 2>&5
14588 ac_status=$?
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); }; } &&
14591 { ac_try='test -s conftest.$ac_objext'
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14594 ac_status=$?
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; }; then
14597 ac_hi=-1 ac_mid=-1
14598 while :; do
14599 cat >conftest.$ac_ext <<_ACEOF
14600/* confdefs.h. */
14601_ACEOF
14602cat confdefs.h >>conftest.$ac_ext
14603cat >>conftest.$ac_ext <<_ACEOF
14604/* end confdefs.h. */
14605$ac_includes_default
14606int
14607main ()
14608{
14609static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14610test_array [0] = 0
14611
14612 ;
14613 return 0;
14614}
14615_ACEOF
14616rm -f conftest.$ac_objext
14617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14618 (eval $ac_compile) 2>conftest.er1
14619 ac_status=$?
14620 grep -v '^ *+' conftest.er1 >conftest.err
14621 rm -f conftest.er1
14622 cat conftest.err >&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } &&
d349482e
AT
14625 { ac_try='test -z "$ac_c_werror_flag"
14626 || test ! -s conftest.err'
18cbfd85
PB
14627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628 (eval $ac_try) 2>&5
14629 ac_status=$?
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; } &&
14632 { ac_try='test -s conftest.$ac_objext'
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14635 ac_status=$?
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
14638 ac_lo=$ac_mid; break
14639else
14640 echo "$as_me: failed program was:" >&5
14641sed 's/^/| /' conftest.$ac_ext >&5
14642
14643ac_hi=`expr '(' $ac_mid ')' - 1`
14644 if test $ac_mid -le $ac_hi; then
14645 ac_lo= ac_hi=
14646 break
14647 fi
14648 ac_mid=`expr 2 '*' $ac_mid`
14649fi
14650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14651 done
14652else
14653 echo "$as_me: failed program was:" >&5
14654sed 's/^/| /' conftest.$ac_ext >&5
14655
14656ac_lo= ac_hi=
14657fi
14658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14659fi
14660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14661# Binary search between lo and hi bounds.
14662while test "x$ac_lo" != "x$ac_hi"; do
14663 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14664 cat >conftest.$ac_ext <<_ACEOF
14665/* confdefs.h. */
14666_ACEOF
14667cat confdefs.h >>conftest.$ac_ext
14668cat >>conftest.$ac_ext <<_ACEOF
14669/* end confdefs.h. */
14670$ac_includes_default
14671int
14672main ()
14673{
14674static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14675test_array [0] = 0
14676
14677 ;
14678 return 0;
14679}
14680_ACEOF
14681rm -f conftest.$ac_objext
14682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14683 (eval $ac_compile) 2>conftest.er1
14684 ac_status=$?
14685 grep -v '^ *+' conftest.er1 >conftest.err
14686 rm -f conftest.er1
14687 cat conftest.err >&5
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); } &&
d349482e
AT
14690 { ac_try='test -z "$ac_c_werror_flag"
14691 || test ! -s conftest.err'
18cbfd85
PB
14692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693 (eval $ac_try) 2>&5
14694 ac_status=$?
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); }; } &&
14697 { ac_try='test -s conftest.$ac_objext'
14698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14699 (eval $ac_try) 2>&5
14700 ac_status=$?
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); }; }; then
14703 ac_hi=$ac_mid
14704else
14705 echo "$as_me: failed program was:" >&5
14706sed 's/^/| /' conftest.$ac_ext >&5
14707
14708ac_lo=`expr '(' $ac_mid ')' + 1`
14709fi
14710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14711done
14712case $ac_lo in
14713?*) ac_cv_sizeof_void_p=$ac_lo;;
18c04407
RW
14714'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14715echo "$as_me: error: in \`$ac_pwd':" >&2;}
14716{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18cbfd85
PB
14717See \`config.log' for more details." >&5
14718echo "$as_me: error: cannot compute sizeof (void *), 77
14719See \`config.log' for more details." >&2;}
18c04407 14720 { (exit 1); exit 1; }; }; } ;;
18cbfd85
PB
14721esac
14722else
14723 if test "$cross_compiling" = yes; then
18c04407
RW
14724 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14725echo "$as_me: error: in \`$ac_pwd':" >&2;}
14726{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
d349482e
AT
14727See \`config.log' for more details." >&5
14728echo "$as_me: error: cannot run test program while cross compiling
14729See \`config.log' for more details." >&2;}
18c04407 14730 { (exit 1); exit 1; }; }; }
18cbfd85
PB
14731else
14732 cat >conftest.$ac_ext <<_ACEOF
14733/* confdefs.h. */
14734_ACEOF
14735cat confdefs.h >>conftest.$ac_ext
14736cat >>conftest.$ac_ext <<_ACEOF
14737/* end confdefs.h. */
14738$ac_includes_default
14739long longval () { return (long) (sizeof (void *)); }
14740unsigned long ulongval () { return (long) (sizeof (void *)); }
14741#include <stdio.h>
14742#include <stdlib.h>
14743int
14744main ()
14745{
14746
14747 FILE *f = fopen ("conftest.val", "w");
14748 if (! f)
14749 exit (1);
14750 if (((long) (sizeof (void *))) < 0)
14751 {
14752 long i = longval ();
14753 if (i != ((long) (sizeof (void *))))
14754 exit (1);
14755 fprintf (f, "%ld\n", i);
14756 }
14757 else
14758 {
14759 unsigned long i = ulongval ();
14760 if (i != ((long) (sizeof (void *))))
14761 exit (1);
14762 fprintf (f, "%lu\n", i);
14763 }
14764 exit (ferror (f) || fclose (f) != 0);
14765
14766 ;
14767 return 0;
14768}
14769_ACEOF
14770rm -f conftest$ac_exeext
14771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14772 (eval $ac_link) 2>&5
14773 ac_status=$?
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14778 ac_status=$?
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; }; then
14781 ac_cv_sizeof_void_p=`cat conftest.val`
14782else
14783 echo "$as_me: program exited with status $ac_status" >&5
14784echo "$as_me: failed program was:" >&5
14785sed 's/^/| /' conftest.$ac_ext >&5
14786
14787( exit $ac_status )
18c04407
RW
14788{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14789echo "$as_me: error: in \`$ac_pwd':" >&2;}
18cbfd85
PB
14790{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14791See \`config.log' for more details." >&5
14792echo "$as_me: error: cannot compute sizeof (void *), 77
14793See \`config.log' for more details." >&2;}
18c04407 14794 { (exit 1); exit 1; }; }; }
18cbfd85
PB
14795fi
14796rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14797fi
14798fi
14799rm -f conftest.val
14800else
14801 ac_cv_sizeof_void_p=0
14802fi
14803fi
14804echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14805echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14806cat >>confdefs.h <<_ACEOF
14807#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14808_ACEOF
14809
14810 ;;
14811esac
14812
14813# Lacking an uint64_t? Test size of long
14814case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14815 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14816echo $ECHO_N "checking for long... $ECHO_C" >&6
14817if test "${ac_cv_type_long+set}" = set; then
14818 echo $ECHO_N "(cached) $ECHO_C" >&6
14819else
14820 cat >conftest.$ac_ext <<_ACEOF
14821/* confdefs.h. */
14822_ACEOF
14823cat confdefs.h >>conftest.$ac_ext
14824cat >>conftest.$ac_ext <<_ACEOF
14825/* end confdefs.h. */
14826$ac_includes_default
14827int
14828main ()
14829{
14830if ((long *) 0)
14831 return 0;
14832if (sizeof (long))
14833 return 0;
14834 ;
14835 return 0;
14836}
14837_ACEOF
14838rm -f conftest.$ac_objext
14839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14840 (eval $ac_compile) 2>conftest.er1
14841 ac_status=$?
14842 grep -v '^ *+' conftest.er1 >conftest.err
14843 rm -f conftest.er1
14844 cat conftest.err >&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); } &&
d349482e
AT
14847 { ac_try='test -z "$ac_c_werror_flag"
14848 || test ! -s conftest.err'
18cbfd85
PB
14849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850 (eval $ac_try) 2>&5
14851 ac_status=$?
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; } &&
14854 { ac_try='test -s conftest.$ac_objext'
14855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856 (eval $ac_try) 2>&5
14857 ac_status=$?
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; }; then
14860 ac_cv_type_long=yes
14861else
14862 echo "$as_me: failed program was:" >&5
14863sed 's/^/| /' conftest.$ac_ext >&5
14864
14865ac_cv_type_long=no
14866fi
14867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14868fi
14869echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14870echo "${ECHO_T}$ac_cv_type_long" >&6
14871
14872echo "$as_me:$LINENO: checking size of long" >&5
14873echo $ECHO_N "checking size of long... $ECHO_C" >&6
14874if test "${ac_cv_sizeof_long+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14876else
14877 if test "$ac_cv_type_long" = yes; then
14878 # The cast to unsigned long works around a bug in the HP C Compiler
14879 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14880 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14881 # This bug is HP SR number 8606223364.
14882 if test "$cross_compiling" = yes; then
14883 # Depending upon the size, compute the lo and hi bounds.
14884cat >conftest.$ac_ext <<_ACEOF
14885/* confdefs.h. */
14886_ACEOF
14887cat confdefs.h >>conftest.$ac_ext
14888cat >>conftest.$ac_ext <<_ACEOF
14889/* end confdefs.h. */
14890$ac_includes_default
14891int
14892main ()
14893{
14894static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14895test_array [0] = 0
14896
14897 ;
14898 return 0;
14899}
14900_ACEOF
14901rm -f conftest.$ac_objext
14902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14903 (eval $ac_compile) 2>conftest.er1
14904 ac_status=$?
14905 grep -v '^ *+' conftest.er1 >conftest.err
14906 rm -f conftest.er1
14907 cat conftest.err >&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } &&
d349482e
AT
14910 { ac_try='test -z "$ac_c_werror_flag"
14911 || test ! -s conftest.err'
18cbfd85
PB
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14914 ac_status=$?
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; } &&
14917 { ac_try='test -s conftest.$ac_objext'
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14920 ac_status=$?
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; }; then
14923 ac_lo=0 ac_mid=0
14924 while :; do
14925 cat >conftest.$ac_ext <<_ACEOF
14926/* confdefs.h. */
14927_ACEOF
14928cat confdefs.h >>conftest.$ac_ext
14929cat >>conftest.$ac_ext <<_ACEOF
14930/* end confdefs.h. */
14931$ac_includes_default
14932int
14933main ()
14934{
14935static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14936test_array [0] = 0
14937
14938 ;
14939 return 0;
14940}
14941_ACEOF
14942rm -f conftest.$ac_objext
14943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14944 (eval $ac_compile) 2>conftest.er1
14945 ac_status=$?
14946 grep -v '^ *+' conftest.er1 >conftest.err
14947 rm -f conftest.er1
14948 cat conftest.err >&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); } &&
d349482e
AT
14951 { ac_try='test -z "$ac_c_werror_flag"
14952 || test ! -s conftest.err'
18cbfd85
PB
14953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954 (eval $ac_try) 2>&5
14955 ac_status=$?
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; } &&
14958 { ac_try='test -s conftest.$ac_objext'
14959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14960 (eval $ac_try) 2>&5
14961 ac_status=$?
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); }; }; then
14964 ac_hi=$ac_mid; break
14965else
14966 echo "$as_me: failed program was:" >&5
14967sed 's/^/| /' conftest.$ac_ext >&5
14968
14969ac_lo=`expr $ac_mid + 1`
14970 if test $ac_lo -le $ac_mid; then
14971 ac_lo= ac_hi=
14972 break
14973 fi
14974 ac_mid=`expr 2 '*' $ac_mid + 1`
14975fi
14976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14977 done
14978else
14979 echo "$as_me: failed program was:" >&5
14980sed 's/^/| /' conftest.$ac_ext >&5
14981
14982cat >conftest.$ac_ext <<_ACEOF
14983/* confdefs.h. */
14984_ACEOF
14985cat confdefs.h >>conftest.$ac_ext
14986cat >>conftest.$ac_ext <<_ACEOF
14987/* end confdefs.h. */
14988$ac_includes_default
14989int
14990main ()
14991{
14992static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14993test_array [0] = 0
14994
14995 ;
14996 return 0;
14997}
14998_ACEOF
14999rm -f conftest.$ac_objext
15000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15001 (eval $ac_compile) 2>conftest.er1
15002 ac_status=$?
15003 grep -v '^ *+' conftest.er1 >conftest.err
15004 rm -f conftest.er1
15005 cat conftest.err >&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); } &&
d349482e
AT
15008 { ac_try='test -z "$ac_c_werror_flag"
15009 || test ! -s conftest.err'
18cbfd85
PB
15010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011 (eval $ac_try) 2>&5
15012 ac_status=$?
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; } &&
15015 { ac_try='test -s conftest.$ac_objext'
15016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017 (eval $ac_try) 2>&5
15018 ac_status=$?
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; }; then
15021 ac_hi=-1 ac_mid=-1
15022 while :; do
15023 cat >conftest.$ac_ext <<_ACEOF
15024/* confdefs.h. */
15025_ACEOF
15026cat confdefs.h >>conftest.$ac_ext
15027cat >>conftest.$ac_ext <<_ACEOF
15028/* end confdefs.h. */
15029$ac_includes_default
15030int
15031main ()
15032{
15033static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15034test_array [0] = 0
15035
15036 ;
15037 return 0;
15038}
15039_ACEOF
15040rm -f conftest.$ac_objext
15041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15042 (eval $ac_compile) 2>conftest.er1
15043 ac_status=$?
15044 grep -v '^ *+' conftest.er1 >conftest.err
15045 rm -f conftest.er1
15046 cat conftest.err >&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } &&
d349482e
AT
15049 { ac_try='test -z "$ac_c_werror_flag"
15050 || test ! -s conftest.err'
18cbfd85
PB
15051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052 (eval $ac_try) 2>&5
15053 ac_status=$?
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); }; } &&
15056 { ac_try='test -s conftest.$ac_objext'
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15059 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; }; then
15062 ac_lo=$ac_mid; break
15063else
15064 echo "$as_me: failed program was:" >&5
15065sed 's/^/| /' conftest.$ac_ext >&5
15066
15067ac_hi=`expr '(' $ac_mid ')' - 1`
15068 if test $ac_mid -le $ac_hi; then
15069 ac_lo= ac_hi=
15070 break
15071 fi
15072 ac_mid=`expr 2 '*' $ac_mid`
15073fi
15074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15075 done
15076else
15077 echo "$as_me: failed program was:" >&5
15078sed 's/^/| /' conftest.$ac_ext >&5
15079
15080ac_lo= ac_hi=
15081fi
15082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15083fi
15084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15085# Binary search between lo and hi bounds.
15086while test "x$ac_lo" != "x$ac_hi"; do
15087 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15088 cat >conftest.$ac_ext <<_ACEOF
15089/* confdefs.h. */
15090_ACEOF
15091cat confdefs.h >>conftest.$ac_ext
15092cat >>conftest.$ac_ext <<_ACEOF
15093/* end confdefs.h. */
15094$ac_includes_default
15095int
15096main ()
15097{
15098static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15099test_array [0] = 0
15100
15101 ;
15102 return 0;
15103}
15104_ACEOF
15105rm -f conftest.$ac_objext
15106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15107 (eval $ac_compile) 2>conftest.er1
15108 ac_status=$?
15109 grep -v '^ *+' conftest.er1 >conftest.err
15110 rm -f conftest.er1
15111 cat conftest.err >&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); } &&
d349482e
AT
15114 { ac_try='test -z "$ac_c_werror_flag"
15115 || test ! -s conftest.err'
18cbfd85
PB
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15118 ac_status=$?
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; } &&
15121 { ac_try='test -s conftest.$ac_objext'
15122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123 (eval $ac_try) 2>&5
15124 ac_status=$?
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; }; then
15127 ac_hi=$ac_mid
15128else
15129 echo "$as_me: failed program was:" >&5
15130sed 's/^/| /' conftest.$ac_ext >&5
15131
15132ac_lo=`expr '(' $ac_mid ')' + 1`
15133fi
15134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15135done
15136case $ac_lo in
15137?*) ac_cv_sizeof_long=$ac_lo;;
18c04407
RW
15138'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15139echo "$as_me: error: in \`$ac_pwd':" >&2;}
15140{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18cbfd85
PB
15141See \`config.log' for more details." >&5
15142echo "$as_me: error: cannot compute sizeof (long), 77
15143See \`config.log' for more details." >&2;}
18c04407 15144 { (exit 1); exit 1; }; }; } ;;
18cbfd85
PB
15145esac
15146else
15147 if test "$cross_compiling" = yes; then
18c04407
RW
15148 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15149echo "$as_me: error: in \`$ac_pwd':" >&2;}
15150{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
d349482e
AT
15151See \`config.log' for more details." >&5
15152echo "$as_me: error: cannot run test program while cross compiling
15153See \`config.log' for more details." >&2;}
18c04407 15154 { (exit 1); exit 1; }; }; }
18cbfd85
PB
15155else
15156 cat >conftest.$ac_ext <<_ACEOF
15157/* confdefs.h. */
15158_ACEOF
15159cat confdefs.h >>conftest.$ac_ext
15160cat >>conftest.$ac_ext <<_ACEOF
15161/* end confdefs.h. */
15162$ac_includes_default
15163long longval () { return (long) (sizeof (long)); }
15164unsigned long ulongval () { return (long) (sizeof (long)); }
15165#include <stdio.h>
15166#include <stdlib.h>
15167int
15168main ()
15169{
15170
15171 FILE *f = fopen ("conftest.val", "w");
15172 if (! f)
15173 exit (1);
15174 if (((long) (sizeof (long))) < 0)
15175 {
15176 long i = longval ();
15177 if (i != ((long) (sizeof (long))))
15178 exit (1);
15179 fprintf (f, "%ld\n", i);
15180 }
15181 else
15182 {
15183 unsigned long i = ulongval ();
15184 if (i != ((long) (sizeof (long))))
15185 exit (1);
15186 fprintf (f, "%lu\n", i);
15187 }
15188 exit (ferror (f) || fclose (f) != 0);
15189
15190 ;
15191 return 0;
15192}
15193_ACEOF
15194rm -f conftest$ac_exeext
15195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15196 (eval $ac_link) 2>&5
15197 ac_status=$?
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15201 (eval $ac_try) 2>&5
15202 ac_status=$?
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); }; }; then
15205 ac_cv_sizeof_long=`cat conftest.val`
15206else
15207 echo "$as_me: program exited with status $ac_status" >&5
15208echo "$as_me: failed program was:" >&5
15209sed 's/^/| /' conftest.$ac_ext >&5
15210
15211( exit $ac_status )
18c04407
RW
15212{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15213echo "$as_me: error: in \`$ac_pwd':" >&2;}
18cbfd85
PB
15214{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15215See \`config.log' for more details." >&5
15216echo "$as_me: error: cannot compute sizeof (long), 77
15217See \`config.log' for more details." >&2;}
18c04407 15218 { (exit 1); exit 1; }; }; }
18cbfd85
PB
15219fi
15220rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15221fi
15222fi
15223rm -f conftest.val
15224else
15225 ac_cv_sizeof_long=0
15226fi
15227fi
15228echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15229echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15230cat >>confdefs.h <<_ACEOF
15231#define SIZEOF_LONG $ac_cv_sizeof_long
15232_ACEOF
15233
15234 ;;
15235esac
15236
15237if test $acx_cv_header_stdint = stddef.h; then
15238 # Lacking a good header? Test size of everything and deduce all types.
15239 echo "$as_me:$LINENO: checking for int" >&5
15240echo $ECHO_N "checking for int... $ECHO_C" >&6
15241if test "${ac_cv_type_int+set}" = set; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15243else
15244 cat >conftest.$ac_ext <<_ACEOF
15245/* confdefs.h. */
15246_ACEOF
15247cat confdefs.h >>conftest.$ac_ext
15248cat >>conftest.$ac_ext <<_ACEOF
15249/* end confdefs.h. */
15250$ac_includes_default
15251int
15252main ()
15253{
15254if ((int *) 0)
15255 return 0;
15256if (sizeof (int))
15257 return 0;
15258 ;
15259 return 0;
15260}
15261_ACEOF
15262rm -f conftest.$ac_objext
15263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15264 (eval $ac_compile) 2>conftest.er1
15265 ac_status=$?
15266 grep -v '^ *+' conftest.er1 >conftest.err
15267 rm -f conftest.er1
15268 cat conftest.err >&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } &&
d349482e
AT
15271 { ac_try='test -z "$ac_c_werror_flag"
15272 || test ! -s conftest.err'
18cbfd85
PB
15273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15274 (eval $ac_try) 2>&5
15275 ac_status=$?
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); }; } &&
15278 { ac_try='test -s conftest.$ac_objext'
15279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15280 (eval $ac_try) 2>&5
15281 ac_status=$?
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); }; }; then
15284 ac_cv_type_int=yes
15285else
15286 echo "$as_me: failed program was:" >&5
15287sed 's/^/| /' conftest.$ac_ext >&5
15288
15289ac_cv_type_int=no
15290fi
15291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15292fi
15293echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15294echo "${ECHO_T}$ac_cv_type_int" >&6
15295
15296echo "$as_me:$LINENO: checking size of int" >&5
15297echo $ECHO_N "checking size of int... $ECHO_C" >&6
15298if test "${ac_cv_sizeof_int+set}" = set; then
15299 echo $ECHO_N "(cached) $ECHO_C" >&6
15300else
15301 if test "$ac_cv_type_int" = yes; then
15302 # The cast to unsigned long works around a bug in the HP C Compiler
15303 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15304 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15305 # This bug is HP SR number 8606223364.
15306 if test "$cross_compiling" = yes; then
15307 # Depending upon the size, compute the lo and hi bounds.
15308cat >conftest.$ac_ext <<_ACEOF
15309/* confdefs.h. */
15310_ACEOF
15311cat confdefs.h >>conftest.$ac_ext
15312cat >>conftest.$ac_ext <<_ACEOF
15313/* end confdefs.h. */
15314$ac_includes_default
15315int
15316main ()
15317{
15318static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15319test_array [0] = 0
15320
15321 ;
15322 return 0;
15323}
15324_ACEOF
15325rm -f conftest.$ac_objext
15326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15327 (eval $ac_compile) 2>conftest.er1
15328 ac_status=$?
15329 grep -v '^ *+' conftest.er1 >conftest.err
15330 rm -f conftest.er1
15331 cat conftest.err >&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); } &&
d349482e
AT
15334 { ac_try='test -z "$ac_c_werror_flag"
15335 || test ! -s conftest.err'
18cbfd85
PB
15336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15337 (eval $ac_try) 2>&5
15338 ac_status=$?
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; } &&
15341 { ac_try='test -s conftest.$ac_objext'
15342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15343 (eval $ac_try) 2>&5
15344 ac_status=$?
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; }; then
15347 ac_lo=0 ac_mid=0
15348 while :; do
15349 cat >conftest.$ac_ext <<_ACEOF
15350/* confdefs.h. */
15351_ACEOF
15352cat confdefs.h >>conftest.$ac_ext
15353cat >>conftest.$ac_ext <<_ACEOF
15354/* end confdefs.h. */
15355$ac_includes_default
15356int
15357main ()
15358{
15359static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15360test_array [0] = 0
15361
15362 ;
15363 return 0;
15364}
15365_ACEOF
15366rm -f conftest.$ac_objext
15367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15368 (eval $ac_compile) 2>conftest.er1
15369 ac_status=$?
15370 grep -v '^ *+' conftest.er1 >conftest.err
15371 rm -f conftest.er1
15372 cat conftest.err >&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); } &&
d349482e
AT
15375 { ac_try='test -z "$ac_c_werror_flag"
15376 || test ! -s conftest.err'
18cbfd85
PB
15377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378 (eval $ac_try) 2>&5
15379 ac_status=$?
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; } &&
15382 { ac_try='test -s conftest.$ac_objext'
15383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384 (eval $ac_try) 2>&5
15385 ac_status=$?
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; }; then
15388 ac_hi=$ac_mid; break
15389else
15390 echo "$as_me: failed program was:" >&5
15391sed 's/^/| /' conftest.$ac_ext >&5
15392
15393ac_lo=`expr $ac_mid + 1`
15394 if test $ac_lo -le $ac_mid; then
15395 ac_lo= ac_hi=
15396 break
15397 fi
15398 ac_mid=`expr 2 '*' $ac_mid + 1`
15399fi
15400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15401 done
15402else
15403 echo "$as_me: failed program was:" >&5
15404sed 's/^/| /' conftest.$ac_ext >&5
15405
15406cat >conftest.$ac_ext <<_ACEOF
15407/* confdefs.h. */
15408_ACEOF
15409cat confdefs.h >>conftest.$ac_ext
15410cat >>conftest.$ac_ext <<_ACEOF
15411/* end confdefs.h. */
15412$ac_includes_default
15413int
15414main ()
15415{
15416static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15417test_array [0] = 0
15418
15419 ;
15420 return 0;
15421}
15422_ACEOF
15423rm -f conftest.$ac_objext
15424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15425 (eval $ac_compile) 2>conftest.er1
15426 ac_status=$?
15427 grep -v '^ *+' conftest.er1 >conftest.err
15428 rm -f conftest.er1
15429 cat conftest.err >&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); } &&
d349482e
AT
15432 { ac_try='test -z "$ac_c_werror_flag"
15433 || test ! -s conftest.err'
18cbfd85
PB
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15436 ac_status=$?
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; } &&
15439 { ac_try='test -s conftest.$ac_objext'
15440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441 (eval $ac_try) 2>&5
15442 ac_status=$?
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; }; then
15445 ac_hi=-1 ac_mid=-1
15446 while :; do
15447 cat >conftest.$ac_ext <<_ACEOF
15448/* confdefs.h. */
15449_ACEOF
15450cat confdefs.h >>conftest.$ac_ext
15451cat >>conftest.$ac_ext <<_ACEOF
15452/* end confdefs.h. */
15453$ac_includes_default
15454int
15455main ()
15456{
15457static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15458test_array [0] = 0
15459
15460 ;
15461 return 0;
15462}
15463_ACEOF
15464rm -f conftest.$ac_objext
15465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15466 (eval $ac_compile) 2>conftest.er1
15467 ac_status=$?
15468 grep -v '^ *+' conftest.er1 >conftest.err
15469 rm -f conftest.er1
15470 cat conftest.err >&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); } &&
d349482e
AT
15473 { ac_try='test -z "$ac_c_werror_flag"
15474 || test ! -s conftest.err'
18cbfd85
PB
15475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5
15477 ac_status=$?
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); }; } &&
15480 { ac_try='test -s conftest.$ac_objext'
15481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482 (eval $ac_try) 2>&5
15483 ac_status=$?
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); }; }; then
15486 ac_lo=$ac_mid; break
15487else
15488 echo "$as_me: failed program was:" >&5
15489sed 's/^/| /' conftest.$ac_ext >&5
15490
15491ac_hi=`expr '(' $ac_mid ')' - 1`
15492 if test $ac_mid -le $ac_hi; then
15493 ac_lo= ac_hi=
15494 break
15495 fi
15496 ac_mid=`expr 2 '*' $ac_mid`
15497fi
15498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15499 done
15500else
15501 echo "$as_me: failed program was:" >&5
15502sed 's/^/| /' conftest.$ac_ext >&5
15503
15504ac_lo= ac_hi=
15505fi
15506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15507fi
15508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15509# Binary search between lo and hi bounds.
15510while test "x$ac_lo" != "x$ac_hi"; do
15511 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15512 cat >conftest.$ac_ext <<_ACEOF
15513/* confdefs.h. */
15514_ACEOF
15515cat confdefs.h >>conftest.$ac_ext
15516cat >>conftest.$ac_ext <<_ACEOF
15517/* end confdefs.h. */
15518$ac_includes_default
15519int
15520main ()
15521{
15522static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15523test_array [0] = 0
15524
15525 ;
15526 return 0;
15527}
15528_ACEOF
15529rm -f conftest.$ac_objext
15530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15531 (eval $ac_compile) 2>conftest.er1
15532 ac_status=$?
15533 grep -v '^ *+' conftest.er1 >conftest.err
15534 rm -f conftest.er1
15535 cat conftest.err >&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); } &&
d349482e
AT
15538 { ac_try='test -z "$ac_c_werror_flag"
15539 || test ! -s conftest.err'
18cbfd85
PB
15540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15541 (eval $ac_try) 2>&5
15542 ac_status=$?
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; } &&
15545 { ac_try='test -s conftest.$ac_objext'
15546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15547 (eval $ac_try) 2>&5
15548 ac_status=$?
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); }; }; then
15551 ac_hi=$ac_mid
15552else
15553 echo "$as_me: failed program was:" >&5
15554sed 's/^/| /' conftest.$ac_ext >&5
15555
15556ac_lo=`expr '(' $ac_mid ')' + 1`
15557fi
15558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15559done
15560case $ac_lo in
15561?*) ac_cv_sizeof_int=$ac_lo;;
18c04407
RW
15562'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15563echo "$as_me: error: in \`$ac_pwd':" >&2;}
15564{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18cbfd85
PB
15565See \`config.log' for more details." >&5
15566echo "$as_me: error: cannot compute sizeof (int), 77
15567See \`config.log' for more details." >&2;}
18c04407 15568 { (exit 1); exit 1; }; }; } ;;
18cbfd85
PB
15569esac
15570else
15571 if test "$cross_compiling" = yes; then
18c04407
RW
15572 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15573echo "$as_me: error: in \`$ac_pwd':" >&2;}
15574{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
d349482e
AT
15575See \`config.log' for more details." >&5
15576echo "$as_me: error: cannot run test program while cross compiling
15577See \`config.log' for more details." >&2;}
18c04407 15578 { (exit 1); exit 1; }; }; }
18cbfd85
PB
15579else
15580 cat >conftest.$ac_ext <<_ACEOF
15581/* confdefs.h. */
15582_ACEOF
15583cat confdefs.h >>conftest.$ac_ext
15584cat >>conftest.$ac_ext <<_ACEOF
15585/* end confdefs.h. */
15586$ac_includes_default
15587long longval () { return (long) (sizeof (int)); }
15588unsigned long ulongval () { return (long) (sizeof (int)); }
15589#include <stdio.h>
15590#include <stdlib.h>
15591int
15592main ()
15593{
15594
15595 FILE *f = fopen ("conftest.val", "w");
15596 if (! f)
15597 exit (1);
15598 if (((long) (sizeof (int))) < 0)
15599 {
15600 long i = longval ();
15601 if (i != ((long) (sizeof (int))))
15602 exit (1);
15603 fprintf (f, "%ld\n", i);
15604 }
15605 else
15606 {
15607 unsigned long i = ulongval ();
15608 if (i != ((long) (sizeof (int))))
15609 exit (1);
15610 fprintf (f, "%lu\n", i);
15611 }
15612 exit (ferror (f) || fclose (f) != 0);
15613
15614 ;
15615 return 0;
15616}
15617_ACEOF
15618rm -f conftest$ac_exeext
15619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15620 (eval $ac_link) 2>&5
15621 ac_status=$?
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625 (eval $ac_try) 2>&5
15626 ac_status=$?
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }; }; then
15629 ac_cv_sizeof_int=`cat conftest.val`
15630else
15631 echo "$as_me: program exited with status $ac_status" >&5
15632echo "$as_me: failed program was:" >&5
15633sed 's/^/| /' conftest.$ac_ext >&5
15634
15635( exit $ac_status )
18c04407
RW
15636{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15637echo "$as_me: error: in \`$ac_pwd':" >&2;}
18cbfd85
PB
15638{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15639See \`config.log' for more details." >&5
15640echo "$as_me: error: cannot compute sizeof (int), 77
15641See \`config.log' for more details." >&2;}
18c04407 15642 { (exit 1); exit 1; }; }; }
18cbfd85
PB
15643fi
15644rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15645fi
15646fi
15647rm -f conftest.val
15648else
15649 ac_cv_sizeof_int=0
15650fi
15651fi
15652echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15653echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15654cat >>confdefs.h <<_ACEOF
15655#define SIZEOF_INT $ac_cv_sizeof_int
15656_ACEOF
15657
15658
15659 echo "$as_me:$LINENO: checking for short" >&5
15660echo $ECHO_N "checking for short... $ECHO_C" >&6
15661if test "${ac_cv_type_short+set}" = set; then
15662 echo $ECHO_N "(cached) $ECHO_C" >&6
15663else
15664 cat >conftest.$ac_ext <<_ACEOF
15665/* confdefs.h. */
15666_ACEOF
15667cat confdefs.h >>conftest.$ac_ext
15668cat >>conftest.$ac_ext <<_ACEOF
15669/* end confdefs.h. */
15670$ac_includes_default
15671int
15672main ()
15673{
15674if ((short *) 0)
15675 return 0;
15676if (sizeof (short))
15677 return 0;
15678 ;
15679 return 0;
15680}
15681_ACEOF
15682rm -f conftest.$ac_objext
15683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15684 (eval $ac_compile) 2>conftest.er1
15685 ac_status=$?
15686 grep -v '^ *+' conftest.er1 >conftest.err
15687 rm -f conftest.er1
15688 cat conftest.err >&5
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); } &&
d349482e
AT
15691 { ac_try='test -z "$ac_c_werror_flag"
15692 || test ! -s conftest.err'
18cbfd85
PB
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15695 ac_status=$?
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; } &&
15698 { ac_try='test -s conftest.$ac_objext'
15699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700 (eval $ac_try) 2>&5
15701 ac_status=$?
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); }; }; then
15704 ac_cv_type_short=yes
15705else
15706 echo "$as_me: failed program was:" >&5
15707sed 's/^/| /' conftest.$ac_ext >&5
15708
15709ac_cv_type_short=no
15710fi
15711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15712fi
15713echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15714echo "${ECHO_T}$ac_cv_type_short" >&6
15715
15716echo "$as_me:$LINENO: checking size of short" >&5
15717echo $ECHO_N "checking size of short... $ECHO_C" >&6
15718if test "${ac_cv_sizeof_short+set}" = set; then
15719 echo $ECHO_N "(cached) $ECHO_C" >&6
15720else
15721 if test "$ac_cv_type_short" = yes; then
15722 # The cast to unsigned long works around a bug in the HP C Compiler
15723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15725 # This bug is HP SR number 8606223364.
15726 if test "$cross_compiling" = yes; then
15727 # Depending upon the size, compute the lo and hi bounds.
15728cat >conftest.$ac_ext <<_ACEOF
15729/* confdefs.h. */
15730_ACEOF
15731cat confdefs.h >>conftest.$ac_ext
15732cat >>conftest.$ac_ext <<_ACEOF
15733/* end confdefs.h. */
15734$ac_includes_default
15735int
15736main ()
15737{
15738static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15739test_array [0] = 0
15740
15741 ;
15742 return 0;
15743}
15744_ACEOF
15745rm -f conftest.$ac_objext
15746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15747 (eval $ac_compile) 2>conftest.er1
15748 ac_status=$?
15749 grep -v '^ *+' conftest.er1 >conftest.err
15750 rm -f conftest.er1
15751 cat conftest.err >&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } &&
d349482e
AT
15754 { ac_try='test -z "$ac_c_werror_flag"
15755 || test ! -s conftest.err'
18cbfd85
PB
15756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15757 (eval $ac_try) 2>&5
15758 ac_status=$?
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); }; } &&
15761 { ac_try='test -s conftest.$ac_objext'
15762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763 (eval $ac_try) 2>&5
15764 ac_status=$?
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }; then
15767 ac_lo=0 ac_mid=0
15768 while :; do
15769 cat >conftest.$ac_ext <<_ACEOF
15770/* confdefs.h. */
15771_ACEOF
15772cat confdefs.h >>conftest.$ac_ext
15773cat >>conftest.$ac_ext <<_ACEOF
15774/* end confdefs.h. */
15775$ac_includes_default
15776int
15777main ()
15778{
15779static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15780test_array [0] = 0
15781
15782 ;
15783 return 0;
15784}
15785_ACEOF
15786rm -f conftest.$ac_objext
15787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15788 (eval $ac_compile) 2>conftest.er1
15789 ac_status=$?
15790 grep -v '^ *+' conftest.er1 >conftest.err
15791 rm -f conftest.er1
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
d349482e
AT
15795 { ac_try='test -z "$ac_c_werror_flag"
15796 || test ! -s conftest.err'
18cbfd85
PB
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15799 ac_status=$?
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; } &&
15802 { ac_try='test -s conftest.$ac_objext'
15803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804 (eval $ac_try) 2>&5
15805 ac_status=$?
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; }; then
15808 ac_hi=$ac_mid; break
15809else
15810 echo "$as_me: failed program was:" >&5
15811sed 's/^/| /' conftest.$ac_ext >&5
15812
15813ac_lo=`expr $ac_mid + 1`
15814 if test $ac_lo -le $ac_mid; then
15815 ac_lo= ac_hi=
15816 break
15817 fi
15818 ac_mid=`expr 2 '*' $ac_mid + 1`
15819fi
15820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15821 done
15822else
15823 echo "$as_me: failed program was:" >&5
15824sed 's/^/| /' conftest.$ac_ext >&5
15825
15826cat >conftest.$ac_ext <<_ACEOF
15827/* confdefs.h. */
15828_ACEOF
15829cat confdefs.h >>conftest.$ac_ext
15830cat >>conftest.$ac_ext <<_ACEOF
15831/* end confdefs.h. */
15832$ac_includes_default
15833int
15834main ()
15835{
15836static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15837test_array [0] = 0
15838
15839 ;
15840 return 0;
15841}
15842_ACEOF
15843rm -f conftest.$ac_objext
15844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15845 (eval $ac_compile) 2>conftest.er1
15846 ac_status=$?
15847 grep -v '^ *+' conftest.er1 >conftest.err
15848 rm -f conftest.er1
15849 cat conftest.err >&5
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } &&
d349482e
AT
15852 { ac_try='test -z "$ac_c_werror_flag"
15853 || test ! -s conftest.err'
18cbfd85
PB
15854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15855 (eval $ac_try) 2>&5
15856 ac_status=$?
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; } &&
15859 { ac_try='test -s conftest.$ac_objext'
15860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15861 (eval $ac_try) 2>&5
15862 ac_status=$?
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; }; then
15865 ac_hi=-1 ac_mid=-1
15866 while :; do
15867 cat >conftest.$ac_ext <<_ACEOF
15868/* confdefs.h. */
15869_ACEOF
15870cat confdefs.h >>conftest.$ac_ext
15871cat >>conftest.$ac_ext <<_ACEOF
15872/* end confdefs.h. */
15873$ac_includes_default
15874int
15875main ()
15876{
15877static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15878test_array [0] = 0
15879
15880 ;
15881 return 0;
15882}
15883_ACEOF
15884rm -f conftest.$ac_objext
15885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15886 (eval $ac_compile) 2>conftest.er1
15887 ac_status=$?
15888 grep -v '^ *+' conftest.er1 >conftest.err
15889 rm -f conftest.er1
15890 cat conftest.err >&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } &&
d349482e
AT
15893 { ac_try='test -z "$ac_c_werror_flag"
15894 || test ! -s conftest.err'
18cbfd85
PB
15895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896 (eval $ac_try) 2>&5
15897 ac_status=$?
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); }; } &&
15900 { ac_try='test -s conftest.$ac_objext'
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15903 ac_status=$?
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; }; then
15906 ac_lo=$ac_mid; break
15907else
15908 echo "$as_me: failed program was:" >&5
15909sed 's/^/| /' conftest.$ac_ext >&5
15910
15911ac_hi=`expr '(' $ac_mid ')' - 1`
15912 if test $ac_mid -le $ac_hi; then
15913 ac_lo= ac_hi=
15914 break
15915 fi
15916 ac_mid=`expr 2 '*' $ac_mid`
15917fi
15918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15919 done
15920else
15921 echo "$as_me: failed program was:" >&5
15922sed 's/^/| /' conftest.$ac_ext >&5
15923
15924ac_lo= ac_hi=
15925fi
15926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15927fi
15928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15929# Binary search between lo and hi bounds.
15930while test "x$ac_lo" != "x$ac_hi"; do
15931 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15932 cat >conftest.$ac_ext <<_ACEOF
15933/* confdefs.h. */
15934_ACEOF
15935cat confdefs.h >>conftest.$ac_ext
15936cat >>conftest.$ac_ext <<_ACEOF
15937/* end confdefs.h. */
15938$ac_includes_default
15939int
15940main ()
15941{
15942static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15943test_array [0] = 0
15944
15945 ;
15946 return 0;
15947}
15948_ACEOF
15949rm -f conftest.$ac_objext
15950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15951 (eval $ac_compile) 2>conftest.er1
15952 ac_status=$?
15953 grep -v '^ *+' conftest.er1 >conftest.err
15954 rm -f conftest.er1
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } &&
d349482e
AT
15958 { ac_try='test -z "$ac_c_werror_flag"
15959 || test ! -s conftest.err'
18cbfd85
PB
15960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961 (eval $ac_try) 2>&5
15962 ac_status=$?
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }; } &&
15965 { ac_try='test -s conftest.$ac_objext'
15966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967 (eval $ac_try) 2>&5
15968 ac_status=$?
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; }; then
15971 ac_hi=$ac_mid
15972else
15973 echo "$as_me: failed program was:" >&5
15974sed 's/^/| /' conftest.$ac_ext >&5
15975
15976ac_lo=`expr '(' $ac_mid ')' + 1`
15977fi
15978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15979done
15980case $ac_lo in
15981?*) ac_cv_sizeof_short=$ac_lo;;
18c04407
RW
15982'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15983echo "$as_me: error: in \`$ac_pwd':" >&2;}
15984{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18cbfd85
PB
15985See \`config.log' for more details." >&5
15986echo "$as_me: error: cannot compute sizeof (short), 77
15987See \`config.log' for more details." >&2;}
18c04407 15988 { (exit 1); exit 1; }; }; } ;;
18cbfd85
PB
15989esac
15990else
15991 if test "$cross_compiling" = yes; then
18c04407
RW
15992 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15993echo "$as_me: error: in \`$ac_pwd':" >&2;}
15994{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
d349482e
AT
15995See \`config.log' for more details." >&5
15996echo "$as_me: error: cannot run test program while cross compiling
15997See \`config.log' for more details." >&2;}
18c04407 15998 { (exit 1); exit 1; }; }; }
18cbfd85
PB
15999else
16000 cat >conftest.$ac_ext <<_ACEOF
16001/* confdefs.h. */
16002_ACEOF
16003cat confdefs.h >>conftest.$ac_ext
16004cat >>conftest.$ac_ext <<_ACEOF
16005/* end confdefs.h. */
16006$ac_includes_default
16007long longval () { return (long) (sizeof (short)); }
16008unsigned long ulongval () { return (long) (sizeof (short)); }
16009#include <stdio.h>
16010#include <stdlib.h>
16011int
16012main ()
16013{
16014
16015 FILE *f = fopen ("conftest.val", "w");
16016 if (! f)
16017 exit (1);
16018 if (((long) (sizeof (short))) < 0)
16019 {
16020 long i = longval ();
16021 if (i != ((long) (sizeof (short))))
16022 exit (1);
16023 fprintf (f, "%ld\n", i);
16024 }
16025 else
16026 {
16027 unsigned long i = ulongval ();
16028 if (i != ((long) (sizeof (short))))
16029 exit (1);
16030 fprintf (f, "%lu\n", i);
16031 }
16032 exit (ferror (f) || fclose (f) != 0);
16033
16034 ;
16035 return 0;
16036}
16037_ACEOF
16038rm -f conftest$ac_exeext
16039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16040 (eval $ac_link) 2>&5
16041 ac_status=$?
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045 (eval $ac_try) 2>&5
16046 ac_status=$?
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); }; }; then
16049 ac_cv_sizeof_short=`cat conftest.val`
16050else
16051 echo "$as_me: program exited with status $ac_status" >&5
16052echo "$as_me: failed program was:" >&5
16053sed 's/^/| /' conftest.$ac_ext >&5
16054
16055( exit $ac_status )
18c04407
RW
16056{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16057echo "$as_me: error: in \`$ac_pwd':" >&2;}
18cbfd85
PB
16058{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16059See \`config.log' for more details." >&5
16060echo "$as_me: error: cannot compute sizeof (short), 77
16061See \`config.log' for more details." >&2;}
18c04407 16062 { (exit 1); exit 1; }; }; }
18cbfd85
PB
16063fi
16064rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16065fi
16066fi
16067rm -f conftest.val
16068else
16069 ac_cv_sizeof_short=0
16070fi
16071fi
16072echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16073echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16074cat >>confdefs.h <<_ACEOF
16075#define SIZEOF_SHORT $ac_cv_sizeof_short
16076_ACEOF
16077
16078
16079 echo "$as_me:$LINENO: checking for char" >&5
16080echo $ECHO_N "checking for char... $ECHO_C" >&6
16081if test "${ac_cv_type_char+set}" = set; then
16082 echo $ECHO_N "(cached) $ECHO_C" >&6
16083else
16084 cat >conftest.$ac_ext <<_ACEOF
16085/* confdefs.h. */
16086_ACEOF
16087cat confdefs.h >>conftest.$ac_ext
16088cat >>conftest.$ac_ext <<_ACEOF
16089/* end confdefs.h. */
16090$ac_includes_default
16091int
16092main ()
16093{
16094if ((char *) 0)
16095 return 0;
16096if (sizeof (char))
16097 return 0;
16098 ;
16099 return 0;
16100}
16101_ACEOF
16102rm -f conftest.$ac_objext
16103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16104 (eval $ac_compile) 2>conftest.er1
16105 ac_status=$?
16106 grep -v '^ *+' conftest.er1 >conftest.err
16107 rm -f conftest.er1
16108 cat conftest.err >&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); } &&
d349482e
AT
16111 { ac_try='test -z "$ac_c_werror_flag"
16112 || test ! -s conftest.err'
18cbfd85
PB
16113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114 (eval $ac_try) 2>&5
16115 ac_status=$?
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; } &&
16118 { ac_try='test -s conftest.$ac_objext'
16119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120 (eval $ac_try) 2>&5
16121 ac_status=$?
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); }; }; then
16124 ac_cv_type_char=yes
16125else
16126 echo "$as_me: failed program was:" >&5
16127sed 's/^/| /' conftest.$ac_ext >&5
16128
16129ac_cv_type_char=no
16130fi
16131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16132fi
16133echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16134echo "${ECHO_T}$ac_cv_type_char" >&6
16135
16136echo "$as_me:$LINENO: checking size of char" >&5
16137echo $ECHO_N "checking size of char... $ECHO_C" >&6
16138if test "${ac_cv_sizeof_char+set}" = set; then
16139 echo $ECHO_N "(cached) $ECHO_C" >&6
16140else
16141 if test "$ac_cv_type_char" = yes; then
16142 # The cast to unsigned long works around a bug in the HP C Compiler
16143 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16144 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16145 # This bug is HP SR number 8606223364.
16146 if test "$cross_compiling" = yes; then
16147 # Depending upon the size, compute the lo and hi bounds.
16148cat >conftest.$ac_ext <<_ACEOF
16149/* confdefs.h. */
16150_ACEOF
16151cat confdefs.h >>conftest.$ac_ext
16152cat >>conftest.$ac_ext <<_ACEOF
16153/* end confdefs.h. */
16154$ac_includes_default
16155int
16156main ()
16157{
16158static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16159test_array [0] = 0
16160
16161 ;
16162 return 0;
16163}
16164_ACEOF
16165rm -f conftest.$ac_objext
16166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16167 (eval $ac_compile) 2>conftest.er1
16168 ac_status=$?
16169 grep -v '^ *+' conftest.er1 >conftest.err
16170 rm -f conftest.er1
16171 cat conftest.err >&5
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); } &&
d349482e
AT
16174 { ac_try='test -z "$ac_c_werror_flag"
16175 || test ! -s conftest.err'
18cbfd85
PB
16176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177 (eval $ac_try) 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; } &&
16181 { ac_try='test -s conftest.$ac_objext'
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16184 ac_status=$?
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; }; then
16187 ac_lo=0 ac_mid=0
16188 while :; do
16189 cat >conftest.$ac_ext <<_ACEOF
16190/* confdefs.h. */
16191_ACEOF
16192cat confdefs.h >>conftest.$ac_ext
16193cat >>conftest.$ac_ext <<_ACEOF
16194/* end confdefs.h. */
16195$ac_includes_default
16196int
16197main ()
16198{
16199static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16200test_array [0] = 0
16201
16202 ;
16203 return 0;
16204}
16205_ACEOF
16206rm -f conftest.$ac_objext
16207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16208 (eval $ac_compile) 2>conftest.er1
16209 ac_status=$?
16210 grep -v '^ *+' conftest.er1 >conftest.err
16211 rm -f conftest.er1
16212 cat conftest.err >&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); } &&
d349482e
AT
16215 { ac_try='test -z "$ac_c_werror_flag"
16216 || test ! -s conftest.err'
18cbfd85
PB
16217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218 (eval $ac_try) 2>&5
16219 ac_status=$?
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; } &&
16222 { ac_try='test -s conftest.$ac_objext'
16223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224 (eval $ac_try) 2>&5
16225 ac_status=$?
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; }; then
16228 ac_hi=$ac_mid; break
16229else
16230 echo "$as_me: failed program was:" >&5
16231sed 's/^/| /' conftest.$ac_ext >&5
16232
16233ac_lo=`expr $ac_mid + 1`
16234 if test $ac_lo -le $ac_mid; then
16235 ac_lo= ac_hi=
16236 break
16237 fi
16238 ac_mid=`expr 2 '*' $ac_mid + 1`
16239fi
16240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16241 done
16242else
16243 echo "$as_me: failed program was:" >&5
16244sed 's/^/| /' conftest.$ac_ext >&5
16245
16246cat >conftest.$ac_ext <<_ACEOF
16247/* confdefs.h. */
16248_ACEOF
16249cat confdefs.h >>conftest.$ac_ext
16250cat >>conftest.$ac_ext <<_ACEOF
16251/* end confdefs.h. */
16252$ac_includes_default
16253int
16254main ()
16255{
16256static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16257test_array [0] = 0
16258
16259 ;
16260 return 0;
16261}
16262_ACEOF
16263rm -f conftest.$ac_objext
16264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16265 (eval $ac_compile) 2>conftest.er1
16266 ac_status=$?
16267 grep -v '^ *+' conftest.er1 >conftest.err
16268 rm -f conftest.er1
16269 cat conftest.err >&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); } &&
d349482e
AT
16272 { ac_try='test -z "$ac_c_werror_flag"
16273 || test ! -s conftest.err'
18cbfd85
PB
16274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16275 (eval $ac_try) 2>&5
16276 ac_status=$?
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); }; } &&
16279 { ac_try='test -s conftest.$ac_objext'
16280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281 (eval $ac_try) 2>&5
16282 ac_status=$?
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; }; then
16285 ac_hi=-1 ac_mid=-1
16286 while :; do
16287 cat >conftest.$ac_ext <<_ACEOF
16288/* confdefs.h. */
16289_ACEOF
16290cat confdefs.h >>conftest.$ac_ext
16291cat >>conftest.$ac_ext <<_ACEOF
16292/* end confdefs.h. */
16293$ac_includes_default
16294int
16295main ()
16296{
16297static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16298test_array [0] = 0
16299
16300 ;
16301 return 0;
16302}
16303_ACEOF
16304rm -f conftest.$ac_objext
16305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16306 (eval $ac_compile) 2>conftest.er1
16307 ac_status=$?
16308 grep -v '^ *+' conftest.er1 >conftest.err
16309 rm -f conftest.er1
16310 cat conftest.err >&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); } &&
d349482e
AT
16313 { ac_try='test -z "$ac_c_werror_flag"
16314 || test ! -s conftest.err'
18cbfd85
PB
16315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316 (eval $ac_try) 2>&5
16317 ac_status=$?
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; } &&
16320 { ac_try='test -s conftest.$ac_objext'
16321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322 (eval $ac_try) 2>&5
16323 ac_status=$?
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; }; then
16326 ac_lo=$ac_mid; break
16327else
16328 echo "$as_me: failed program was:" >&5
16329sed 's/^/| /' conftest.$ac_ext >&5
16330
16331ac_hi=`expr '(' $ac_mid ')' - 1`
16332 if test $ac_mid -le $ac_hi; then
16333 ac_lo= ac_hi=
16334 break
16335 fi
16336 ac_mid=`expr 2 '*' $ac_mid`
16337fi
16338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16339 done
16340else
16341 echo "$as_me: failed program was:" >&5
16342sed 's/^/| /' conftest.$ac_ext >&5
16343
16344ac_lo= ac_hi=
16345fi
16346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16347fi
16348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16349# Binary search between lo and hi bounds.
16350while test "x$ac_lo" != "x$ac_hi"; do
16351 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16352 cat >conftest.$ac_ext <<_ACEOF
16353/* confdefs.h. */
16354_ACEOF
16355cat confdefs.h >>conftest.$ac_ext
16356cat >>conftest.$ac_ext <<_ACEOF
16357/* end confdefs.h. */
16358$ac_includes_default
16359int
16360main ()
16361{
16362static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16363test_array [0] = 0
16364
16365 ;
16366 return 0;
16367}
16368_ACEOF
16369rm -f conftest.$ac_objext
16370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16371 (eval $ac_compile) 2>conftest.er1
16372 ac_status=$?
16373 grep -v '^ *+' conftest.er1 >conftest.err
16374 rm -f conftest.er1
16375 cat conftest.err >&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } &&
d349482e
AT
16378 { ac_try='test -z "$ac_c_werror_flag"
16379 || test ! -s conftest.err'
18cbfd85
PB
16380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381 (eval $ac_try) 2>&5
16382 ac_status=$?
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; } &&
16385 { ac_try='test -s conftest.$ac_objext'
16386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387 (eval $ac_try) 2>&5
16388 ac_status=$?
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); }; }; then
16391 ac_hi=$ac_mid
16392else
16393 echo "$as_me: failed program was:" >&5
16394sed 's/^/| /' conftest.$ac_ext >&5
16395
16396ac_lo=`expr '(' $ac_mid ')' + 1`
16397fi
16398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16399done
16400case $ac_lo in
16401?*) ac_cv_sizeof_char=$ac_lo;;
18c04407
RW
16402'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16403echo "$as_me: error: in \`$ac_pwd':" >&2;}
16404{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18cbfd85
PB
16405See \`config.log' for more details." >&5
16406echo "$as_me: error: cannot compute sizeof (char), 77
16407See \`config.log' for more details." >&2;}
18c04407 16408 { (exit 1); exit 1; }; }; } ;;
18cbfd85
PB
16409esac
16410else
16411 if test "$cross_compiling" = yes; then
18c04407
RW
16412 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16413echo "$as_me: error: in \`$ac_pwd':" >&2;}
16414{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
d349482e
AT
16415See \`config.log' for more details." >&5
16416echo "$as_me: error: cannot run test program while cross compiling
16417See \`config.log' for more details." >&2;}
18c04407 16418 { (exit 1); exit 1; }; }; }
18cbfd85
PB
16419else
16420 cat >conftest.$ac_ext <<_ACEOF
16421/* confdefs.h. */
16422_ACEOF
16423cat confdefs.h >>conftest.$ac_ext
16424cat >>conftest.$ac_ext <<_ACEOF
16425/* end confdefs.h. */
16426$ac_includes_default
16427long longval () { return (long) (sizeof (char)); }
16428unsigned long ulongval () { return (long) (sizeof (char)); }
16429#include <stdio.h>
16430#include <stdlib.h>
16431int
16432main ()
16433{
16434
16435 FILE *f = fopen ("conftest.val", "w");
16436 if (! f)
16437 exit (1);
16438 if (((long) (sizeof (char))) < 0)
16439 {
16440 long i = longval ();
16441 if (i != ((long) (sizeof (char))))
16442 exit (1);
16443 fprintf (f, "%ld\n", i);
16444 }
16445 else
16446 {
16447 unsigned long i = ulongval ();
16448 if (i != ((long) (sizeof (char))))
16449 exit (1);
16450 fprintf (f, "%lu\n", i);
16451 }
16452 exit (ferror (f) || fclose (f) != 0);
16453
16454 ;
16455 return 0;
16456}
16457_ACEOF
16458rm -f conftest$ac_exeext
16459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16460 (eval $ac_link) 2>&5
16461 ac_status=$?
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465 (eval $ac_try) 2>&5
16466 ac_status=$?
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; }; then
16469 ac_cv_sizeof_char=`cat conftest.val`
16470else
16471 echo "$as_me: program exited with status $ac_status" >&5
16472echo "$as_me: failed program was:" >&5
16473sed 's/^/| /' conftest.$ac_ext >&5
16474
16475( exit $ac_status )
18c04407
RW
16476{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16477echo "$as_me: error: in \`$ac_pwd':" >&2;}
18cbfd85
PB
16478{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16479See \`config.log' for more details." >&5
16480echo "$as_me: error: cannot compute sizeof (char), 77
16481See \`config.log' for more details." >&2;}
18c04407 16482 { (exit 1); exit 1; }; }; }
18cbfd85
PB
16483fi
16484rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16485fi
16486fi
16487rm -f conftest.val
16488else
16489 ac_cv_sizeof_char=0
16490fi
16491fi
16492echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16493echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16494cat >>confdefs.h <<_ACEOF
16495#define SIZEOF_CHAR $ac_cv_sizeof_char
16496_ACEOF
16497
16498
16499
16500 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
16501echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
16502 case "$ac_cv_sizeof_char" in
16503 1) acx_cv_type_int8_t=char ;;
16504 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
16505echo "$as_me: error: no 8-bit type" >&2;}
16506 { (exit please report a bug); exit please report a bug; }; }
16507 esac
16508 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
16509echo "${ECHO_T}$acx_cv_type_int8_t" >&6
16510
16511 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
16512echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
16513 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16514 2:*) acx_cv_type_int16_t=int ;;
16515 *:2) acx_cv_type_int16_t=short ;;
16516 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
16517echo "$as_me: error: no 16-bit type" >&2;}
16518 { (exit please report a bug); exit please report a bug; }; }
16519 esac
16520 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16521echo "${ECHO_T}$acx_cv_type_int16_t" >&6
16522
16523 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16524echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
16525 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16526 4:*) acx_cv_type_int32_t=int ;;
16527 *:4) acx_cv_type_int32_t=long ;;
16528 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16529echo "$as_me: error: no 32-bit type" >&2;}
16530 { (exit please report a bug); exit please report a bug; }; }
16531 esac
16532 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16533echo "${ECHO_T}$acx_cv_type_int32_t" >&6
16534fi
16535
16536# These tests are here to make the output prettier
16537
16538if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16539 case "$ac_cv_sizeof_long" in
16540 8) acx_cv_type_int64_t=long ;;
16541 esac
16542 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16543echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
16544 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16545echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
16546fi
16547
16548# Now we can use the above types
16549
16550if test "$ac_cv_type_uintptr_t" != yes; then
16551 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16552echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
16553 case $ac_cv_sizeof_void_p in
16554 2) acx_cv_type_intptr_t=int16_t ;;
16555 4) acx_cv_type_intptr_t=int32_t ;;
16556 8) acx_cv_type_intptr_t=int64_t ;;
16557 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16558echo "$as_me: error: no equivalent for intptr_t" >&2;}
16559 { (exit please report a bug); exit please report a bug; }; }
16560 esac
16561 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16562echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
16563fi
16564
16565# ----------------- done all checks, emit header -------------
16566 ac_config_commands="$ac_config_commands gstdint.h"
16567
16568
16569
16570
953ff289 16571# Check to see if -pthread or -lpthread is needed. Prefer the former.
124452c9 16572# In case the pthread.h system header is not found, this test will fail.
953ff289 16573XPCFLAGS=""
60def7ed 16574CFLAGS="$CFLAGS -pthread"
953ff289
DN
16575cat >conftest.$ac_ext <<_ACEOF
16576/* confdefs.h. */
16577_ACEOF
16578cat confdefs.h >>conftest.$ac_ext
16579cat >>conftest.$ac_ext <<_ACEOF
16580/* end confdefs.h. */
16581#include <pthread.h>
16582 void *g(void *d) { return NULL; }
16583int
16584main ()
16585{
16586pthread_t t; pthread_create(&t,NULL,g,NULL);
16587 ;
16588 return 0;
16589}
16590_ACEOF
16591rm -f conftest.$ac_objext conftest$ac_exeext
16592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16593 (eval $ac_link) 2>conftest.er1
16594 ac_status=$?
16595 grep -v '^ *+' conftest.er1 >conftest.err
16596 rm -f conftest.er1
16597 cat conftest.err >&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); } &&
d349482e
AT
16600 { ac_try='test -z "$ac_c_werror_flag"
16601 || test ! -s conftest.err'
953ff289
DN
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16604 ac_status=$?
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; } &&
16607 { ac_try='test -s conftest$ac_exeext'
16608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609 (eval $ac_try) 2>&5
16610 ac_status=$?
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; }; then
60def7ed 16613 XPCFLAGS=" -Wc,-pthread"
953ff289
DN
16614else
16615 echo "$as_me: failed program was:" >&5
16616sed 's/^/| /' conftest.$ac_ext >&5
16617
16618CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16619 cat >conftest.$ac_ext <<_ACEOF
16620/* confdefs.h. */
16621_ACEOF
16622cat confdefs.h >>conftest.$ac_ext
16623cat >>conftest.$ac_ext <<_ACEOF
16624/* end confdefs.h. */
16625#include <pthread.h>
16626 void *g(void *d) { return NULL; }
16627int
16628main ()
16629{
16630pthread_t t; pthread_create(&t,NULL,g,NULL);
16631 ;
16632 return 0;
16633}
16634_ACEOF
16635rm -f conftest.$ac_objext conftest$ac_exeext
16636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16637 (eval $ac_link) 2>conftest.er1
16638 ac_status=$?
16639 grep -v '^ *+' conftest.er1 >conftest.err
16640 rm -f conftest.er1
16641 cat conftest.err >&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } &&
d349482e
AT
16644 { ac_try='test -z "$ac_c_werror_flag"
16645 || test ! -s conftest.err'
953ff289
DN
16646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16647 (eval $ac_try) 2>&5
16648 ac_status=$?
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; } &&
16651 { ac_try='test -s conftest$ac_exeext'
16652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16653 (eval $ac_try) 2>&5
16654 ac_status=$?
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; }; then
16657 :
16658else
16659 echo "$as_me: failed program was:" >&5
16660sed 's/^/| /' conftest.$ac_ext >&5
16661
16662{ { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
16663echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
16664 { (exit 1); exit 1; }; }
16665fi
16666rm -f conftest.err conftest.$ac_objext \
16667 conftest$ac_exeext conftest.$ac_ext
16668fi
16669rm -f conftest.err conftest.$ac_objext \
16670 conftest$ac_exeext conftest.$ac_ext
16671
16672# Check for functions needed.
16673
16674
976e44e3
JJ
16675
16676for ac_func in getloadavg clock_gettime strtoull
953ff289
DN
16677do
16678as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16679echo "$as_me:$LINENO: checking for $ac_func" >&5
16680echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16681if eval "test \"\${$as_ac_var+set}\" = set"; then
16682 echo $ECHO_N "(cached) $ECHO_C" >&6
16683else
16684 cat >conftest.$ac_ext <<_ACEOF
16685/* confdefs.h. */
16686_ACEOF
16687cat confdefs.h >>conftest.$ac_ext
16688cat >>conftest.$ac_ext <<_ACEOF
16689/* end confdefs.h. */
16690/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16692#define $ac_func innocuous_$ac_func
16693
16694/* System header to define __stub macros and hopefully few prototypes,
16695 which can conflict with char $ac_func (); below.
16696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16697 <limits.h> exists even on freestanding compilers. */
16698
16699#ifdef __STDC__
16700# include <limits.h>
16701#else
16702# include <assert.h>
16703#endif
16704
16705#undef $ac_func
16706
16707/* Override any gcc2 internal prototype to avoid an error. */
16708#ifdef __cplusplus
16709extern "C"
16710{
16711#endif
16712/* We use char because int might match the return type of a gcc2
16713 builtin and then its argument prototype would still apply. */
16714char $ac_func ();
16715/* The GNU C library defines this for functions which it implements
16716 to always fail with ENOSYS. Some functions are actually named
16717 something starting with __ and the normal name is an alias. */
16718#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16719choke me
16720#else
16721char (*f) () = $ac_func;
16722#endif
16723#ifdef __cplusplus
16724}
16725#endif
16726
16727int
16728main ()
16729{
16730return f != $ac_func;
16731 ;
16732 return 0;
16733}
16734_ACEOF
16735rm -f conftest.$ac_objext conftest$ac_exeext
16736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16737 (eval $ac_link) 2>conftest.er1
16738 ac_status=$?
16739 grep -v '^ *+' conftest.er1 >conftest.err
16740 rm -f conftest.er1
16741 cat conftest.err >&5
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); } &&
d349482e
AT
16744 { ac_try='test -z "$ac_c_werror_flag"
16745 || test ! -s conftest.err'
953ff289
DN
16746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16747 (eval $ac_try) 2>&5
16748 ac_status=$?
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; } &&
16751 { ac_try='test -s conftest$ac_exeext'
16752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16753 (eval $ac_try) 2>&5
16754 ac_status=$?
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); }; }; then
16757 eval "$as_ac_var=yes"
16758else
16759 echo "$as_me: failed program was:" >&5
16760sed 's/^/| /' conftest.$ac_ext >&5
16761
16762eval "$as_ac_var=no"
16763fi
16764rm -f conftest.err conftest.$ac_objext \
16765 conftest$ac_exeext conftest.$ac_ext
16766fi
16767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16768echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16769if test `eval echo '${'$as_ac_var'}'` = yes; then
16770 cat >>confdefs.h <<_ACEOF
16771#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16772_ACEOF
16773
16774fi
16775done
16776
16777
d349482e
AT
16778# Check for broken semaphore implementation on darwin.
16779# sem_init returns: sem_init error: Function not implemented.
16780case "$host" in
16781 *-darwin*)
16782
16783cat >>confdefs.h <<\_ACEOF
16784#define HAVE_BROKEN_POSIX_SEMAPHORES 1
16785_ACEOF
16786
fe5568e9 16787 ;;
0f3e711e
JJ
16788esac
16789
16790 # Check whether --enable-linux-futex or --disable-linux-futex was given.
16791if test "${enable_linux_futex+set}" = set; then
16792 enableval="$enable_linux_futex"
16793
16794 case "$enableval" in
16795 yes|no|default) ;;
16796 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
16797echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
16798 { (exit 1); exit 1; }; } ;;
16799 esac
16800
16801else
16802 enable_linux_futex=default
16803fi;
16804
16805case "$target" in
fe5568e9
JJ
16806 *-linux*)
16807 case "$enable_linux_futex" in
16808 default)
16809 # If headers don't have gettid/futex syscalls definition, then
16810 # default to no, otherwise there will be compile time failures.
16811 # Otherwise, default to yes. If we don't detect we are
16812 # compiled/linked against NPTL and not cross-compiling, check
16813 # if programs are run by default against NPTL and if not, issue
16814 # a warning.
16815 enable_linux_futex=no
16816 cat >conftest.$ac_ext <<_ACEOF
16817/* confdefs.h. */
16818_ACEOF
16819cat confdefs.h >>conftest.$ac_ext
16820cat >>conftest.$ac_ext <<_ACEOF
16821/* end confdefs.h. */
16822#include <sys/syscall.h>
16823 int lk;
16824int
16825main ()
16826{
16827syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16828 ;
16829 return 0;
16830}
16831_ACEOF
16832rm -f conftest.$ac_objext conftest$ac_exeext
16833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16834 (eval $ac_link) 2>conftest.er1
16835 ac_status=$?
16836 grep -v '^ *+' conftest.er1 >conftest.err
16837 rm -f conftest.er1
16838 cat conftest.err >&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); } &&
16841 { ac_try='test -z "$ac_c_werror_flag"
16842 || test ! -s conftest.err'
16843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844 (eval $ac_try) 2>&5
16845 ac_status=$?
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; } &&
16848 { ac_try='test -s conftest$ac_exeext'
16849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850 (eval $ac_try) 2>&5
16851 ac_status=$?
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); }; }; then
0f3e711e
JJ
16854 save_LIBS="$LIBS"
16855 LIBS="-lpthread $LIBS"
16856 cat >conftest.$ac_ext <<_ACEOF
fe5568e9
JJ
16857/* confdefs.h. */
16858_ACEOF
16859cat confdefs.h >>conftest.$ac_ext
16860cat >>conftest.$ac_ext <<_ACEOF
16861/* end confdefs.h. */
16862#ifndef _GNU_SOURCE
16863 #define _GNU_SOURCE 1
16864 #endif
16865 #include <pthread.h>
16866 pthread_t th; void *status;
16867int
16868main ()
16869{
16870pthread_tryjoin_np (th, &status);
16871 ;
16872 return 0;
16873}
16874_ACEOF
16875rm -f conftest.$ac_objext conftest$ac_exeext
16876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16877 (eval $ac_link) 2>conftest.er1
16878 ac_status=$?
16879 grep -v '^ *+' conftest.er1 >conftest.err
16880 rm -f conftest.er1
16881 cat conftest.err >&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } &&
16884 { ac_try='test -z "$ac_c_werror_flag"
16885 || test ! -s conftest.err'
16886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887 (eval $ac_try) 2>&5
16888 ac_status=$?
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; } &&
16891 { ac_try='test -s conftest$ac_exeext'
16892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893 (eval $ac_try) 2>&5
16894 ac_status=$?
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; }; then
16897 enable_linux_futex=yes
16898else
16899 echo "$as_me: failed program was:" >&5
16900sed 's/^/| /' conftest.$ac_ext >&5
16901
16902if test x$cross_compiling = xno; then
16903 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
0f3e711e 16904 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
fe5568e9
JJ
16905 { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
16906If so, please configure with --disable-linux-futex" >&5
16907echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16908If so, please configure with --disable-linux-futex" >&2;}
16909 fi
16910 fi
16911 enable_linux_futex=yes
16912fi
16913rm -f conftest.err conftest.$ac_objext \
16914 conftest$ac_exeext conftest.$ac_ext
0f3e711e 16915 LIBS="$save_LIBS"
fe5568e9
JJ
16916else
16917 echo "$as_me: failed program was:" >&5
16918sed 's/^/| /' conftest.$ac_ext >&5
16919
16920fi
16921rm -f conftest.err conftest.$ac_objext \
16922 conftest$ac_exeext conftest.$ac_ext
16923 ;;
a1b25e49 16924 yes)
fe5568e9
JJ
16925 cat >conftest.$ac_ext <<_ACEOF
16926/* confdefs.h. */
16927_ACEOF
16928cat confdefs.h >>conftest.$ac_ext
16929cat >>conftest.$ac_ext <<_ACEOF
16930/* end confdefs.h. */
16931#include <sys/syscall.h>
16932 int lk;
16933int
16934main ()
16935{
16936syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16937 ;
16938 return 0;
16939}
16940_ACEOF
16941rm -f conftest.$ac_objext conftest$ac_exeext
16942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16943 (eval $ac_link) 2>conftest.er1
16944 ac_status=$?
16945 grep -v '^ *+' conftest.er1 >conftest.err
16946 rm -f conftest.er1
16947 cat conftest.err >&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); } &&
16950 { ac_try='test -z "$ac_c_werror_flag"
16951 || test ! -s conftest.err'
16952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953 (eval $ac_try) 2>&5
16954 ac_status=$?
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; } &&
16957 { ac_try='test -s conftest$ac_exeext'
16958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16959 (eval $ac_try) 2>&5
16960 ac_status=$?
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; }; then
16963 :
16964else
16965 echo "$as_me: failed program was:" >&5
16966sed 's/^/| /' conftest.$ac_ext >&5
16967
16968{ { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
16969echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
16970 { (exit 1); exit 1; }; }
16971fi
16972rm -f conftest.err conftest.$ac_objext \
16973 conftest$ac_exeext conftest.$ac_ext
16974 ;;
16975 esac
d349482e 16976 ;;
0f3e711e
JJ
16977 *)
16978 enable_linux_futex=no
16979 ;;
d349482e 16980esac
0f3e711e
JJ
16981if test x$enable_linux_futex = xyes; then
16982 :
16983fi
16984
d349482e 16985
a0884cf0
JJ
16986# Check for pthread_{,attr_}[sg]etaffinity_np.
16987cat >conftest.$ac_ext <<_ACEOF
16988/* confdefs.h. */
16989_ACEOF
16990cat confdefs.h >>conftest.$ac_ext
16991cat >>conftest.$ac_ext <<_ACEOF
16992/* end confdefs.h. */
16993#define _GNU_SOURCE
16994 #include <pthread.h>
16995int
16996main ()
16997{
16998cpu_set_t cpuset;
16999 pthread_attr_t attr;
17000 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
17001 if (CPU_ISSET (0, &cpuset))
17002 CPU_SET (1, &cpuset);
17003 else
17004 CPU_ZERO (&cpuset);
17005 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
17006 pthread_attr_init (&attr);
17007 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
17008 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
17009 ;
17010 return 0;
17011}
17012_ACEOF
17013rm -f conftest.$ac_objext conftest$ac_exeext
17014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17015 (eval $ac_link) 2>conftest.er1
17016 ac_status=$?
17017 grep -v '^ *+' conftest.er1 >conftest.err
17018 rm -f conftest.er1
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
17022 { ac_try='test -z "$ac_c_werror_flag"
17023 || test ! -s conftest.err'
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17026 ac_status=$?
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; } &&
17029 { ac_try='test -s conftest$ac_exeext'
17030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031 (eval $ac_try) 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; }; then
17035
17036cat >>confdefs.h <<\_ACEOF
17037#define HAVE_PTHREAD_AFFINITY_NP 1
17038_ACEOF
17039
17040else
17041 echo "$as_me: failed program was:" >&5
17042sed 's/^/| /' conftest.$ac_ext >&5
17043
17044fi
17045rm -f conftest.err conftest.$ac_objext \
17046 conftest$ac_exeext conftest.$ac_ext
17047
953ff289
DN
17048# At least for glibc, clock_gettime is in librt. But don't pull that
17049# in if it still doesn't give us the function we want.
17050if test $ac_cv_func_clock_gettime = no; then
17051 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
17052echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
17053if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
17054 echo $ECHO_N "(cached) $ECHO_C" >&6
17055else
17056 ac_check_lib_save_LIBS=$LIBS
17057LIBS="-lrt $LIBS"
17058cat >conftest.$ac_ext <<_ACEOF
17059/* confdefs.h. */
17060_ACEOF
17061cat confdefs.h >>conftest.$ac_ext
17062cat >>conftest.$ac_ext <<_ACEOF
17063/* end confdefs.h. */
17064
17065/* Override any gcc2 internal prototype to avoid an error. */
17066#ifdef __cplusplus
17067extern "C"
17068#endif
17069/* We use char because int might match the return type of a gcc2
17070 builtin and then its argument prototype would still apply. */
17071char clock_gettime ();
17072int
17073main ()
17074{
17075clock_gettime ();
17076 ;
17077 return 0;
17078}
17079_ACEOF
17080rm -f conftest.$ac_objext conftest$ac_exeext
17081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17082 (eval $ac_link) 2>conftest.er1
17083 ac_status=$?
17084 grep -v '^ *+' conftest.er1 >conftest.err
17085 rm -f conftest.er1
17086 cat conftest.err >&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); } &&
d349482e
AT
17089 { ac_try='test -z "$ac_c_werror_flag"
17090 || test ! -s conftest.err'
953ff289
DN
17091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092 (eval $ac_try) 2>&5
17093 ac_status=$?
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; } &&
17096 { ac_try='test -s conftest$ac_exeext'
17097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17098 (eval $ac_try) 2>&5
17099 ac_status=$?
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; }; then
17102 ac_cv_lib_rt_clock_gettime=yes
17103else
17104 echo "$as_me: failed program was:" >&5
17105sed 's/^/| /' conftest.$ac_ext >&5
17106
17107ac_cv_lib_rt_clock_gettime=no
17108fi
17109rm -f conftest.err conftest.$ac_objext \
17110 conftest$ac_exeext conftest.$ac_ext
17111LIBS=$ac_check_lib_save_LIBS
17112fi
17113echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
17114echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
17115if test $ac_cv_lib_rt_clock_gettime = yes; then
17116 LIBS="-lrt $LIBS"
c663e301
JM
17117
17118cat >>confdefs.h <<\_ACEOF
17119#define HAVE_CLOCK_GETTIME 1
953ff289
DN
17120_ACEOF
17121
17122fi
17123
17124fi
17125
17126# See if we support thread-local storage.
17127
17128 # Check whether --enable-tls or --disable-tls was given.
17129if test "${enable_tls+set}" = set; then
17130 enableval="$enable_tls"
17131
17132 case "$enableval" in
17133 yes|no) ;;
17134 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
17135echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
17136 { (exit 1); exit 1; }; } ;;
17137 esac
17138
17139else
17140 enable_tls=yes
17141fi;
17142
17143 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
17144echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
3afcaaf4 17145if test "${gcc_cv_have_tls+set}" = set; then
953ff289
DN
17146 echo $ECHO_N "(cached) $ECHO_C" >&6
17147else
17148
60e1758f 17149 if test "$cross_compiling" = yes; then
1cf3d07d 17150 cat >conftest.$ac_ext <<_ACEOF
597c25e6 17151__thread int a; int b; int main() { return a = b; }
953ff289 17152_ACEOF
597c25e6
DJ
17153rm -f conftest.$ac_objext conftest$ac_exeext
17154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17155 (eval $ac_link) 2>conftest.er1
953ff289
DN
17156 ac_status=$?
17157 grep -v '^ *+' conftest.er1 >conftest.err
17158 rm -f conftest.er1
17159 cat conftest.err >&5
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); } &&
d349482e
AT
17162 { ac_try='test -z "$ac_c_werror_flag"
17163 || test ! -s conftest.err'
953ff289
DN
17164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165 (eval $ac_try) 2>&5
17166 ac_status=$?
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; } &&
597c25e6 17169 { ac_try='test -s conftest$ac_exeext'
953ff289
DN
17170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171 (eval $ac_try) 2>&5
17172 ac_status=$?
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; }; then
3afcaaf4 17175 gcc_cv_have_tls=yes
953ff289
DN
17176else
17177 echo "$as_me: failed program was:" >&5
17178sed 's/^/| /' conftest.$ac_ext >&5
17179
3afcaaf4 17180gcc_cv_have_tls=no
953ff289 17181fi
597c25e6
DJ
17182rm -f conftest.err conftest.$ac_objext \
17183 conftest$ac_exeext conftest.$ac_ext
60e1758f 17184
1cf3d07d 17185
60e1758f
RH
17186else
17187 cat >conftest.$ac_ext <<_ACEOF
17188__thread int a; int b; int main() { return a = b; }
17189_ACEOF
17190rm -f conftest$ac_exeext
17191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17192 (eval $ac_link) 2>&5
17193 ac_status=$?
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17198 ac_status=$?
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); }; }; then
78e075d4 17201 chktls_save_LDFLAGS="$LDFLAGS"
60e1758f 17202 LDFLAGS="-static $LDFLAGS"
aad741f4
EB
17203 cat >conftest.$ac_ext <<_ACEOF
17204int main() { return 0; }
17205_ACEOF
17206rm -f conftest.$ac_objext conftest$ac_exeext
17207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17208 (eval $ac_link) 2>conftest.er1
17209 ac_status=$?
17210 grep -v '^ *+' conftest.er1 >conftest.err
17211 rm -f conftest.er1
17212 cat conftest.err >&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); } &&
17215 { ac_try='test -z "$ac_c_werror_flag"
17216 || test ! -s conftest.err'
17217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17218 (eval $ac_try) 2>&5
17219 ac_status=$?
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; } &&
17222 { ac_try='test -s conftest$ac_exeext'
17223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17224 (eval $ac_try) 2>&5
17225 ac_status=$?
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); }; }; then
17228 if test "$cross_compiling" = yes; then
18c04407
RW
17229 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17230echo "$as_me: error: in \`$ac_pwd':" >&2;}
17231{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
60e1758f
RH
17232See \`config.log' for more details." >&5
17233echo "$as_me: error: cannot run test program while cross compiling
17234See \`config.log' for more details." >&2;}
18c04407 17235 { (exit 1); exit 1; }; }; }
60e1758f
RH
17236else
17237 cat >conftest.$ac_ext <<_ACEOF
17238__thread int a; int b; int main() { return a = b; }
17239_ACEOF
17240rm -f conftest$ac_exeext
17241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17242 (eval $ac_link) 2>&5
17243 ac_status=$?
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247 (eval $ac_try) 2>&5
17248 ac_status=$?
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; }; then
3afcaaf4 17251 gcc_cv_have_tls=yes
60e1758f
RH
17252else
17253 echo "$as_me: program exited with status $ac_status" >&5
17254echo "$as_me: failed program was:" >&5
17255sed 's/^/| /' conftest.$ac_ext >&5
17256
17257( exit $ac_status )
3afcaaf4 17258gcc_cv_have_tls=no
60e1758f
RH
17259fi
17260rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17261fi
aad741f4
EB
17262else
17263 echo "$as_me: failed program was:" >&5
17264sed 's/^/| /' conftest.$ac_ext >&5
17265
3afcaaf4 17266gcc_cv_have_tls=yes
aad741f4
EB
17267fi
17268rm -f conftest.err conftest.$ac_objext \
17269 conftest$ac_exeext conftest.$ac_ext
78e075d4 17270 LDFLAGS="$chktls_save_LDFLAGS"
3afcaaf4 17271 if test $gcc_cv_have_tls = yes; then
78e075d4
JJ
17272 chktls_save_CFLAGS="$CFLAGS"
17273 thread_CFLAGS=failed
17274 for flag in '' '-pthread' '-lpthread'; do
17275 CFLAGS="$flag $chktls_save_CFLAGS"
17276 cat >conftest.$ac_ext <<_ACEOF
17277/* confdefs.h. */
17278_ACEOF
17279cat confdefs.h >>conftest.$ac_ext
17280cat >>conftest.$ac_ext <<_ACEOF
17281/* end confdefs.h. */
17282#include <pthread.h>
17283 void *g(void *d) { return NULL; }
17284int
17285main ()
17286{
17287pthread_t t; pthread_create(&t,NULL,g,NULL);
17288 ;
17289 return 0;
17290}
17291_ACEOF
17292rm -f conftest.$ac_objext conftest$ac_exeext
17293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17294 (eval $ac_link) 2>conftest.er1
17295 ac_status=$?
17296 grep -v '^ *+' conftest.er1 >conftest.err
17297 rm -f conftest.er1
17298 cat conftest.err >&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } &&
17301 { ac_try='test -z "$ac_c_werror_flag"
17302 || test ! -s conftest.err'
17303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304 (eval $ac_try) 2>&5
17305 ac_status=$?
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); }; } &&
17308 { ac_try='test -s conftest$ac_exeext'
17309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17311 ac_status=$?
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; }; then
17314 thread_CFLAGS="$flag"
17315else
17316 echo "$as_me: failed program was:" >&5
17317sed 's/^/| /' conftest.$ac_ext >&5
17318
17319fi
17320rm -f conftest.err conftest.$ac_objext \
17321 conftest$ac_exeext conftest.$ac_ext
17322 if test "X$thread_CFLAGS" != Xfailed; then
17323 break
17324 fi
17325 done
17326 CFLAGS="$chktls_save_CFLAGS"
17327 if test "X$thread_CFLAGS" != Xfailed; then
17328 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
17329 if test "$cross_compiling" = yes; then
18c04407
RW
17330 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17331echo "$as_me: error: in \`$ac_pwd':" >&2;}
17332{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
78e075d4
JJ
17333See \`config.log' for more details." >&5
17334echo "$as_me: error: cannot run test program while cross compiling
17335See \`config.log' for more details." >&2;}
18c04407 17336 { (exit 1); exit 1; }; }; }
78e075d4
JJ
17337else
17338 cat >conftest.$ac_ext <<_ACEOF
17339/* confdefs.h. */
17340_ACEOF
17341cat confdefs.h >>conftest.$ac_ext
17342cat >>conftest.$ac_ext <<_ACEOF
17343/* end confdefs.h. */
17344#include <pthread.h>
17345 __thread int a;
17346 static int *a_in_other_thread;
17347 static void *
17348 thread_func (void *arg)
17349 {
17350 a_in_other_thread = &a;
17351 return (void *)0;
17352 }
17353int
17354main ()
17355{
17356pthread_t thread;
17357 void *thread_retval;
17358 int *a_in_main_thread;
17359 if (pthread_create (&thread, (pthread_attr_t *)0,
17360 thread_func, (void *)0))
17361 return 0;
17362 a_in_main_thread = &a;
17363 if (pthread_join (thread, &thread_retval))
17364 return 0;
17365 return (a_in_other_thread == a_in_main_thread);
17366 ;
17367 return 0;
17368}
17369_ACEOF
17370rm -f conftest$ac_exeext
17371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17372 (eval $ac_link) 2>&5
17373 ac_status=$?
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377 (eval $ac_try) 2>&5
17378 ac_status=$?
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; }; then
3afcaaf4 17381 gcc_cv_have_tls=yes
78e075d4
JJ
17382else
17383 echo "$as_me: program exited with status $ac_status" >&5
17384echo "$as_me: failed program was:" >&5
17385sed 's/^/| /' conftest.$ac_ext >&5
17386
17387( exit $ac_status )
3afcaaf4 17388gcc_cv_have_tls=no
78e075d4
JJ
17389fi
17390rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17391fi
17392 CFLAGS="$chktls_save_CFLAGS"
17393 fi
17394 fi
60e1758f
RH
17395else
17396 echo "$as_me: program exited with status $ac_status" >&5
17397echo "$as_me: failed program was:" >&5
17398sed 's/^/| /' conftest.$ac_ext >&5
17399
17400( exit $ac_status )
3afcaaf4 17401gcc_cv_have_tls=no
60e1758f
RH
17402fi
17403rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17404fi
953ff289 17405fi
3afcaaf4
MR
17406echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
17407echo "${ECHO_T}$gcc_cv_have_tls" >&6
17408 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
953ff289
DN
17409
17410cat >>confdefs.h <<\_ACEOF
17411#define HAVE_TLS 1
17412_ACEOF
17413
17414 fi
17415
17416# See what sort of export controls are availible.
17417
17418 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
17419echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
6d26724a 17420if test "${libgomp_cv_have_attribute_visibility+set}" = set; then
953ff289
DN
17421 echo $ECHO_N "(cached) $ECHO_C" >&6
17422else
17423
17424 save_CFLAGS="$CFLAGS"
17425 CFLAGS="$CFLAGS -Werror"
17426 cat >conftest.$ac_ext <<_ACEOF
17427/* confdefs.h. */
17428_ACEOF
17429cat confdefs.h >>conftest.$ac_ext
17430cat >>conftest.$ac_ext <<_ACEOF
17431/* end confdefs.h. */
17432void __attribute__((visibility("hidden"))) foo(void) { }
17433int
17434main ()
17435{
17436
17437 ;
17438 return 0;
17439}
17440_ACEOF
17441rm -f conftest.$ac_objext
17442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17443 (eval $ac_compile) 2>conftest.er1
17444 ac_status=$?
17445 grep -v '^ *+' conftest.er1 >conftest.err
17446 rm -f conftest.er1
17447 cat conftest.err >&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); } &&
d349482e
AT
17450 { ac_try='test -z "$ac_c_werror_flag"
17451 || test ! -s conftest.err'
953ff289
DN
17452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453 (eval $ac_try) 2>&5
17454 ac_status=$?
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; } &&
17457 { ac_try='test -s conftest.$ac_objext'
17458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459 (eval $ac_try) 2>&5
17460 ac_status=$?
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }; }; then
6d26724a 17463 libgomp_cv_have_attribute_visibility=yes
953ff289
DN
17464else
17465 echo "$as_me: failed program was:" >&5
17466sed 's/^/| /' conftest.$ac_ext >&5
17467
6d26724a 17468libgomp_cv_have_attribute_visibility=no
953ff289
DN
17469fi
17470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17471 CFLAGS="$save_CFLAGS"
17472fi
6d26724a
RW
17473echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_visibility" >&5
17474echo "${ECHO_T}$libgomp_cv_have_attribute_visibility" >&6
17475 if test $libgomp_cv_have_attribute_visibility = yes; then
953ff289
DN
17476
17477cat >>confdefs.h <<\_ACEOF
17478#define HAVE_ATTRIBUTE_VISIBILITY 1
17479_ACEOF
17480
17481 fi
17482
17483 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
17484echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
6d26724a 17485if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then
953ff289
DN
17486 echo $ECHO_N "(cached) $ECHO_C" >&6
17487else
17488
17489 save_CFLAGS="$CFLAGS"
17490 CFLAGS="$CFLAGS -Werror"
17491 cat >conftest.$ac_ext <<_ACEOF
17492/* confdefs.h. */
17493_ACEOF
17494cat confdefs.h >>conftest.$ac_ext
17495cat >>conftest.$ac_ext <<_ACEOF
17496/* end confdefs.h. */
17497void __attribute__((dllexport)) foo(void) { }
17498int
17499main ()
17500{
17501
17502 ;
17503 return 0;
17504}
17505_ACEOF
17506rm -f conftest.$ac_objext
17507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17508 (eval $ac_compile) 2>conftest.er1
17509 ac_status=$?
17510 grep -v '^ *+' conftest.er1 >conftest.err
17511 rm -f conftest.er1
17512 cat conftest.err >&5
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); } &&
d349482e
AT
17515 { ac_try='test -z "$ac_c_werror_flag"
17516 || test ! -s conftest.err'
953ff289
DN
17517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518 (eval $ac_try) 2>&5
17519 ac_status=$?
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; } &&
17522 { ac_try='test -s conftest.$ac_objext'
17523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524 (eval $ac_try) 2>&5
17525 ac_status=$?
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; }; then
6d26724a 17528 libgomp_cv_have_attribute_dllexport=yes
953ff289
DN
17529else
17530 echo "$as_me: failed program was:" >&5
17531sed 's/^/| /' conftest.$ac_ext >&5
17532
6d26724a 17533libgomp_cv_have_attribute_dllexport=no
953ff289
DN
17534fi
17535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17536 CFLAGS="$save_CFLAGS"
17537fi
6d26724a
RW
17538echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_dllexport" >&5
17539echo "${ECHO_T}$libgomp_cv_have_attribute_dllexport" >&6
17540 if test $libgomp_cv_have_attribute_dllexport = yes; then
953ff289
DN
17541
17542cat >>confdefs.h <<\_ACEOF
17543#define HAVE_ATTRIBUTE_DLLEXPORT 1
17544_ACEOF
17545
17546 fi
17547
17548 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
17549echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
6d26724a 17550if test "${libgomp_cv_have_attribute_alias+set}" = set; then
953ff289
DN
17551 echo $ECHO_N "(cached) $ECHO_C" >&6
17552else
17553
17554 cat >conftest.$ac_ext <<_ACEOF
17555/* confdefs.h. */
17556_ACEOF
17557cat confdefs.h >>conftest.$ac_ext
17558cat >>conftest.$ac_ext <<_ACEOF
17559/* end confdefs.h. */
17560
953ff289 17561void foo(void) { }
8887708e 17562extern void bar(void) __attribute__((alias("foo")));
953ff289
DN
17563int
17564main ()
17565{
17566bar();
17567 ;
17568 return 0;
17569}
17570_ACEOF
17571rm -f conftest.$ac_objext conftest$ac_exeext
17572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17573 (eval $ac_link) 2>conftest.er1
17574 ac_status=$?
17575 grep -v '^ *+' conftest.er1 >conftest.err
17576 rm -f conftest.er1
17577 cat conftest.err >&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); } &&
d349482e
AT
17580 { ac_try='test -z "$ac_c_werror_flag"
17581 || test ! -s conftest.err'
953ff289
DN
17582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17583 (eval $ac_try) 2>&5
17584 ac_status=$?
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; } &&
17587 { ac_try='test -s conftest$ac_exeext'
17588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589 (eval $ac_try) 2>&5
17590 ac_status=$?
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; }; then
6d26724a 17593 libgomp_cv_have_attribute_alias=yes
953ff289
DN
17594else
17595 echo "$as_me: failed program was:" >&5
17596sed 's/^/| /' conftest.$ac_ext >&5
17597
6d26724a 17598libgomp_cv_have_attribute_alias=no
953ff289
DN
17599fi
17600rm -f conftest.err conftest.$ac_objext \
17601 conftest$ac_exeext conftest.$ac_ext
17602fi
6d26724a
RW
17603echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_alias" >&5
17604echo "${ECHO_T}$libgomp_cv_have_attribute_alias" >&6
17605 if test $libgomp_cv_have_attribute_alias = yes; then
953ff289
DN
17606
17607cat >>confdefs.h <<\_ACEOF
17608#define HAVE_ATTRIBUTE_ALIAS 1
17609_ACEOF
17610
17611 fi
17612
1cf3d07d
SE
17613
17614# Check whether --with-gnu-ld or --without-gnu-ld was given.
17615if test "${with_gnu_ld+set}" = set; then
17616 withval="$with_gnu_ld"
17617 test "$withval" = no || with_gnu_ld=yes
17618else
17619 with_gnu_ld=no
17620fi;
17621ac_prog=ld
17622if test "$GCC" = yes; then
17623 # Check if gcc -print-prog-name=ld gives a path.
17624 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17625echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
17626 case $host in
17627 *-*-mingw*)
17628 # gcc leaves a trailing carriage return which upsets mingw
17629 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17630 *)
17631 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17632 esac
17633 case $ac_prog in
17634 # Accept absolute paths.
17635 [\\/]* | ?:[\\/]*)
17636 re_direlt='/[^/][^/]*/\.\./'
17637 # Canonicalize the pathname of ld
17638 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17639 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17640 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17641 done
17642 test -z "$LD" && LD="$ac_prog"
17643 ;;
17644 "")
17645 # If it fails, then pretend we aren't using GCC.
17646 ac_prog=ld
17647 ;;
17648 *)
17649 # If it is relative, then search for the first ld in PATH.
17650 with_gnu_ld=unknown
17651 ;;
17652 esac
17653elif test "$with_gnu_ld" = yes; then
17654 echo "$as_me:$LINENO: checking for GNU ld" >&5
17655echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
17656else
17657 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17658echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
17659fi
17660if test "${lt_cv_path_LD+set}" = set; then
17661 echo $ECHO_N "(cached) $ECHO_C" >&6
17662else
17663 if test -z "$LD"; then
17664 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17665 for ac_dir in $PATH; do
17666 IFS="$lt_save_ifs"
17667 test -z "$ac_dir" && ac_dir=.
17668 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17669 lt_cv_path_LD="$ac_dir/$ac_prog"
17670 # Check to see if the program is GNU ld. I'd rather use --version,
17671 # but apparently some variants of GNU ld only accept -v.
17672 # Break only if it was the GNU/non-GNU ld that we prefer.
17673 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17674 *GNU* | *'with BFD'*)
17675 test "$with_gnu_ld" != no && break
17676 ;;
17677 *)
17678 test "$with_gnu_ld" != yes && break
17679 ;;
17680 esac
17681 fi
17682 done
17683 IFS="$lt_save_ifs"
17684else
17685 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17686fi
17687fi
17688
17689LD="$lt_cv_path_LD"
17690if test -n "$LD"; then
17691 echo "$as_me:$LINENO: result: $LD" >&5
17692echo "${ECHO_T}$LD" >&6
17693else
17694 echo "$as_me:$LINENO: result: no" >&5
17695echo "${ECHO_T}no" >&6
17696fi
17697test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17698echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17699 { (exit 1); exit 1; }; }
17700echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17701echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
17702if test "${lt_cv_prog_gnu_ld+set}" = set; then
17703 echo $ECHO_N "(cached) $ECHO_C" >&6
17704else
17705 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17706case `$LD -v 2>&1 </dev/null` in
17707*GNU* | *'with BFD'*)
17708 lt_cv_prog_gnu_ld=yes
17709 ;;
17710*)
17711 lt_cv_prog_gnu_ld=no
17712 ;;
17713esac
17714fi
17715echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17716echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
17717with_gnu_ld=$lt_cv_prog_gnu_ld
17718
17719
17720
17721
17722
17723
17724
953ff289
DN
17725 # If we're not using GNU ld, then there's no point in even trying these
17726 # tests. Check for that first. We should have already tested for gld
17727 # by now (in libtool), but require it now just to be safe...
17728 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17729 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17730
17731
17732
17733 # The name set by libtool depends on the version of libtool. Shame on us
17734 # for depending on an impl detail, but c'est la vie. Older versions used
17735 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17736 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17737 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
17738 # set (hence we're using an older libtool), then set it.
17739 if test x${with_gnu_ld+set} != xset; then
17740 if test x${ac_cv_prog_gnu_ld+set} != xset; then
17741 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
17742 with_gnu_ld=no
17743 else
17744 with_gnu_ld=$ac_cv_prog_gnu_ld
17745 fi
17746 fi
17747
17748 # Start by getting the version number. I think the libtool test already
17749 # does some of this, but throws away the result.
17750
17751 ldver=`$LD --version 2>/dev/null | head -1 | \
f210f1cd 17752 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
953ff289
DN
17753
17754 libgomp_gnu_ld_version=`echo $ldver | \
17755 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17756
17757 # Set --gc-sections.
17758 if test "$with_gnu_ld" = "notbroken"; then
17759 # GNU ld it is! Joy and bunny rabbits!
17760
17761 # All these tests are for C++; save the language and the compiler flags.
17762 # Need to do this so that g++ won't try to link in libstdc++
17763 ac_test_CFLAGS="${CFLAGS+set}"
17764 ac_save_CFLAGS="$CFLAGS"
17765 CFLAGS='-x c++ -Wl,--gc-sections'
17766
17767 # Check for -Wl,--gc-sections
17768 # XXX This test is broken at the moment, as symbols required for linking
17769 # are now in libsupc++ (not built yet). In addition, this test has
17770 # cored on solaris in the past. In addition, --gc-sections doesn't
17771 # really work at the moment (keeps on discarding used sections, first
17772 # .eh_frame and now some of the glibc sections for iconv).
17773 # Bzzzzt. Thanks for playing, maybe next time.
17774 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
17775echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
17776 if test "$cross_compiling" = yes; then
17777 ac_sectionLDflags=yes
17778else
17779 cat >conftest.$ac_ext <<_ACEOF
17780/* confdefs.h. */
17781_ACEOF
17782cat confdefs.h >>conftest.$ac_ext
17783cat >>conftest.$ac_ext <<_ACEOF
17784/* end confdefs.h. */
17785
17786 int main(void)
17787 {
17788 try { throw 1; }
17789 catch (...) { };
17790 return 0;
17791 }
17792
17793_ACEOF
17794rm -f conftest$ac_exeext
17795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17796 (eval $ac_link) 2>&5
17797 ac_status=$?
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801 (eval $ac_try) 2>&5
17802 ac_status=$?
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; }; then
17805 ac_sectionLDflags=yes
17806else
17807 echo "$as_me: program exited with status $ac_status" >&5
17808echo "$as_me: failed program was:" >&5
17809sed 's/^/| /' conftest.$ac_ext >&5
17810
17811( exit $ac_status )
17812ac_sectionLDflags=no
17813fi
17814rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17815fi
17816 if test "$ac_test_CFLAGS" = set; then
17817 CFLAGS="$ac_save_CFLAGS"
17818 else
17819 # this is the suspicious part
17820 CFLAGS=''
17821 fi
17822 if test "$ac_sectionLDflags" = "yes"; then
17823 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17824 fi
17825 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
17826echo "${ECHO_T}$ac_sectionLDflags" >&6
17827 fi
17828
17829 # Set linker optimization flags.
17830 if test x"$with_gnu_ld" = x"yes"; then
17831 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17832 fi
17833
17834
17835
17836
17837
17838
17839 # Check whether --enable-symvers or --disable-symvers was given.
17840if test "${enable_symvers+set}" = set; then
17841 enableval="$enable_symvers"
17842
17843 case "$enableval" in
17844 yes|no|gnu) ;;
17845 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
17846echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
17847 { (exit 1); exit 1; }; } ;;
17848 esac
17849
17850else
17851 enable_symvers=yes
17852fi;
17853
17854
17855# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
17856# don't know enough about $LD to do tricks...
17857
17858# FIXME The following test is too strict, in theory.
17859if test $enable_shared = no ||
17860 test "x$LD" = x ||
17861 test x$libgomp_gnu_ld_version = x; then
17862 enable_symvers=no
17863fi
17864
17865# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17866if test $enable_symvers != no; then
17867 echo "$as_me:$LINENO: checking for shared libgcc" >&5
17868echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
17869 ac_save_CFLAGS="$CFLAGS"
17870 CFLAGS=' -lgcc_s'
17871 cat >conftest.$ac_ext <<_ACEOF
17872/* confdefs.h. */
17873_ACEOF
17874cat confdefs.h >>conftest.$ac_ext
17875cat >>conftest.$ac_ext <<_ACEOF
17876/* end confdefs.h. */
17877
17878int
17879main ()
17880{
17881return 0;
17882 ;
17883 return 0;
17884}
17885_ACEOF
17886rm -f conftest.$ac_objext conftest$ac_exeext
17887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17888 (eval $ac_link) 2>conftest.er1
17889 ac_status=$?
17890 grep -v '^ *+' conftest.er1 >conftest.err
17891 rm -f conftest.er1
17892 cat conftest.err >&5
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); } &&
d349482e
AT
17895 { ac_try='test -z "$ac_c_werror_flag"
17896 || test ! -s conftest.err'
953ff289
DN
17897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898 (eval $ac_try) 2>&5
17899 ac_status=$?
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; } &&
17902 { ac_try='test -s conftest$ac_exeext'
17903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17904 (eval $ac_try) 2>&5
17905 ac_status=$?
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); }; }; then
17908 libgomp_shared_libgcc=yes
17909else
17910 echo "$as_me: failed program was:" >&5
17911sed 's/^/| /' conftest.$ac_ext >&5
17912
17913libgomp_shared_libgcc=no
17914fi
17915rm -f conftest.err conftest.$ac_objext \
17916 conftest$ac_exeext conftest.$ac_ext
17917 CFLAGS="$ac_save_CFLAGS"
17918 if test $libgomp_shared_libgcc = no; then
17919 cat > conftest.c <<EOF
17920int main (void) { return 0; }
17921EOF
17922 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17923 -shared -shared-libgcc -o conftest.so \
17924 conftest.c -v 2>&1 >/dev/null \
17925 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17926 rm -f conftest.c conftest.so
17927 if test x${libgomp_libgcc_s_suffix+set} = xset; then
17928 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
17929 cat >conftest.$ac_ext <<_ACEOF
17930/* confdefs.h. */
17931_ACEOF
17932cat confdefs.h >>conftest.$ac_ext
17933cat >>conftest.$ac_ext <<_ACEOF
17934/* end confdefs.h. */
17935
17936int
17937main ()
17938{
17939return 0;
17940 ;
17941 return 0;
17942}
17943_ACEOF
17944rm -f conftest.$ac_objext conftest$ac_exeext
17945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17946 (eval $ac_link) 2>conftest.er1
17947 ac_status=$?
17948 grep -v '^ *+' conftest.er1 >conftest.err
17949 rm -f conftest.er1
17950 cat conftest.err >&5
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); } &&
d349482e
AT
17953 { ac_try='test -z "$ac_c_werror_flag"
17954 || test ! -s conftest.err'
953ff289
DN
17955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956 (eval $ac_try) 2>&5
17957 ac_status=$?
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; } &&
17960 { ac_try='test -s conftest$ac_exeext'
17961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17962 (eval $ac_try) 2>&5
17963 ac_status=$?
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); }; }; then
17966 libgomp_shared_libgcc=yes
17967else
17968 echo "$as_me: failed program was:" >&5
17969sed 's/^/| /' conftest.$ac_ext >&5
17970
17971fi
17972rm -f conftest.err conftest.$ac_objext \
17973 conftest$ac_exeext conftest.$ac_ext
17974 CFLAGS="$ac_save_CFLAGS"
17975 fi
17976 fi
17977 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
17978echo "${ECHO_T}$libgomp_shared_libgcc" >&6
17979fi
17980
17981# For GNU ld, we need at least this version. The format is described in
17982# LIBGOMP_CHECK_LINKER_FEATURES above.
17983libgomp_min_gnu_ld_version=21400
17984# XXXXXXXXXXX libgomp_gnu_ld_version=21390
17985
17986# Check to see if unspecified "yes" value can win, given results above.
17987# Change "yes" into either "no" or a style name.
17988if test $enable_symvers = yes; then
17989 if test $with_gnu_ld = yes &&
17990 test $libgomp_shared_libgcc = yes;
17991 then
17992 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
17993 enable_symvers=gnu
17994 else
17995 # The right tools, the right setup, but too old. Fallbacks?
17996 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
17997echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
17998 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
17999echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
18000 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
18001echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
18002 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
18003echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
18004 if test $libgomp_gnu_ld_version -ge 21200 ; then
18005 # Globbing fix is present, proper block support is not.
18006 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
18007echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
18008 enable_symvers=no
18009 else
18010 # 2.11 or older.
18011 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
18012echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
18013 enable_symvers=no
18014 fi
18015 fi
18016 else
18017 # just fail for now
18018 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
18019echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
18020 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
18021echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
18022 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
18023echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
18024 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
18025echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
18026 enable_symvers=no
18027 fi
18028fi
18029
18030
18031
18032if test $enable_symvers != no; then
18033 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
18034 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
18035else
18036 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
18037 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
18038fi
18039
18040{ echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
18041echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
18042
18043
a68ab351
JJ
18044if test $enable_symvers = gnu; then
18045
18046cat >>confdefs.h <<\_ACEOF
18047#define LIBGOMP_GNU_SYMBOL_VERSIONING 1
18048_ACEOF
18049
18050fi
18051
953ff289
DN
18052# Get target configury.
18053. ${srcdir}/configure.tgt
18054CFLAGS="$save_CFLAGS $XCFLAGS"
18055
18056# Check for __sync_val_compare_and_swap, but only after the target has
18057# had a chance to set XCFLAGS.
18058
18059 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
18060echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
6d26724a 18061if test "${libgomp_cv_have_sync_builtins+set}" = set; then
953ff289
DN
18062 echo $ECHO_N "(cached) $ECHO_C" >&6
18063else
18064
18065 cat >conftest.$ac_ext <<_ACEOF
18066/* confdefs.h. */
18067_ACEOF
18068cat confdefs.h >>conftest.$ac_ext
18069cat >>conftest.$ac_ext <<_ACEOF
18070/* end confdefs.h. */
18071
18072int
18073main ()
18074{
18075int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
18076 ;
18077 return 0;
18078}
18079_ACEOF
18080rm -f conftest.$ac_objext conftest$ac_exeext
18081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18082 (eval $ac_link) 2>conftest.er1
18083 ac_status=$?
18084 grep -v '^ *+' conftest.er1 >conftest.err
18085 rm -f conftest.er1
18086 cat conftest.err >&5
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); } &&
d349482e
AT
18089 { ac_try='test -z "$ac_c_werror_flag"
18090 || test ! -s conftest.err'
953ff289
DN
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18093 ac_status=$?
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; } &&
18096 { ac_try='test -s conftest$ac_exeext'
18097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098 (eval $ac_try) 2>&5
18099 ac_status=$?
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; }; then
6d26724a 18102 libgomp_cv_have_sync_builtins=yes
953ff289
DN
18103else
18104 echo "$as_me: failed program was:" >&5
18105sed 's/^/| /' conftest.$ac_ext >&5
18106
6d26724a 18107libgomp_cv_have_sync_builtins=no
953ff289
DN
18108fi
18109rm -f conftest.err conftest.$ac_objext \
18110 conftest$ac_exeext conftest.$ac_ext
18111fi
6d26724a
RW
18112echo "$as_me:$LINENO: result: $libgomp_cv_have_sync_builtins" >&5
18113echo "${ECHO_T}$libgomp_cv_have_sync_builtins" >&6
18114 if test $libgomp_cv_have_sync_builtins = yes; then
953ff289
DN
18115
18116cat >>confdefs.h <<\_ACEOF
18117#define HAVE_SYNC_BUILTINS 1
18118_ACEOF
18119
18120 fi
18121
18122XCFLAGS="$XCFLAGS$XPCFLAGS"
18123
18124
18125
18126
18127
18128# Cleanup and exit.
18129CFLAGS="$save_CFLAGS"
18130cat >confcache <<\_ACEOF
18131# This file is a shell script that caches the results of configure
18132# tests run on this system so they can be shared between configure
18133# scripts and configure runs, see configure's option --config-cache.
18134# It is not useful on other systems. If it contains results you don't
18135# want to keep, you may remove or edit it.
18136#
18137# config.status only pays attention to the cache file if you give it
18138# the --recheck option to rerun configure.
18139#
18140# `ac_cv_env_foo' variables (set or unset) will be overridden when
18141# loading this file, other *unset* `ac_cv_foo' will be assigned the
18142# following values.
18143
18144_ACEOF
18145
18146# The following way of writing the cache mishandles newlines in values,
18147# but we know of no workaround that is simple, portable, and efficient.
18148# So, don't put newlines in cache variables' values.
18149# Ultrix sh set writes to stderr and can't be redirected directly,
18150# and sets the high bit in the cache file unless we assign to the vars.
18151{
18152 (set) 2>&1 |
18153 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18154 *ac_space=\ *)
18155 # `set' does not quote correctly, so add quotes (double-quote
18156 # substitution turns \\\\ into \\, and sed turns \\ into \).
18157 sed -n \
18158 "s/'/'\\\\''/g;
18159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18160 ;;
18161 *)
18162 # `set' quotes correctly as required by POSIX, so do not add quotes.
18163 sed -n \
18164 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18165 ;;
18166 esac;
18167} |
18168 sed '
18169 t clear
18170 : clear
18171 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18172 t end
18173 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18174 : end' >>confcache
18175if diff $cache_file confcache >/dev/null 2>&1; then :; else
18176 if test -w $cache_file; then
18177 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18178 cat confcache >$cache_file
18179 else
18180 echo "not updating unwritable cache $cache_file"
18181 fi
18182fi
18183rm -f confcache
18184
18185if test ${multilib} = yes; then
18186 multilib_arg="--enable-multilib"
18187else
18188 multilib_arg=
18189fi
18190
18191# Set up the set of libraries that we need to link against for libgomp.
192a50ad 18192# Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
953ff289
DN
18193# which will force linkage against -lpthread (or equivalent for the system).
18194# That's not 100% ideal, but about the best we can do easily.
18195if test $enable_shared = yes; then
18196 link_gomp="-lgomp %{static: $LIBS}"
18197else
18198 link_gomp="-lgomp $LIBS"
18199fi
18200
18201
18202
18203
18204if test "$ac_cv_fc_compiler_gnu" = yes; then
18205 USE_FORTRAN_TRUE=
18206 USE_FORTRAN_FALSE='#'
18207else
18208 USE_FORTRAN_TRUE='#'
18209 USE_FORTRAN_FALSE=
18210fi
18211
18212
03b8fe49
PB
18213# ??? 2006-01-24: Paulo committed to asking autoconf folk to document
18214# and export AC_COMPUTE_INT. If that happens, then we'll need to remove
18215# the underscore here and update the PREREQ. If it doesn't, then we'll
18216# need to copy this macro to our acinclude.m4.
18217save_CFLAGS="$CFLAGS"
18218for i in $config_path; do
18219 if test -f $srcdir/config/$i/omp-lock.h; then
a68ab351 18220 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
03b8fe49
PB
18221 break
18222 fi
18223done
18224
18225if test "$cross_compiling" = yes; then
18226 # Depending upon the size, compute the lo and hi bounds.
18227cat >conftest.$ac_ext <<_ACEOF
18228/* confdefs.h. */
18229_ACEOF
18230cat confdefs.h >>conftest.$ac_ext
18231cat >>conftest.$ac_ext <<_ACEOF
18232/* end confdefs.h. */
18233
18234int
18235main ()
18236{
18237static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
18238test_array [0] = 0
18239
18240 ;
18241 return 0;
18242}
18243_ACEOF
18244rm -f conftest.$ac_objext
18245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18246 (eval $ac_compile) 2>conftest.er1
18247 ac_status=$?
18248 grep -v '^ *+' conftest.er1 >conftest.err
18249 rm -f conftest.er1
18250 cat conftest.err >&5
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); } &&
d349482e
AT
18253 { ac_try='test -z "$ac_c_werror_flag"
18254 || test ! -s conftest.err'
03b8fe49
PB
18255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18256 (eval $ac_try) 2>&5
18257 ac_status=$?
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); }; } &&
18260 { ac_try='test -s conftest.$ac_objext'
18261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18262 (eval $ac_try) 2>&5
18263 ac_status=$?
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); }; }; then
18266 ac_lo=0 ac_mid=0
18267 while :; do
18268 cat >conftest.$ac_ext <<_ACEOF
18269/* confdefs.h. */
18270_ACEOF
18271cat confdefs.h >>conftest.$ac_ext
18272cat >>conftest.$ac_ext <<_ACEOF
18273/* end confdefs.h. */
18274
18275int
18276main ()
18277{
18278static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18279test_array [0] = 0
18280
18281 ;
18282 return 0;
18283}
18284_ACEOF
18285rm -f conftest.$ac_objext
18286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18287 (eval $ac_compile) 2>conftest.er1
18288 ac_status=$?
18289 grep -v '^ *+' conftest.er1 >conftest.err
18290 rm -f conftest.er1
18291 cat conftest.err >&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); } &&
d349482e
AT
18294 { ac_try='test -z "$ac_c_werror_flag"
18295 || test ! -s conftest.err'
03b8fe49
PB
18296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297 (eval $ac_try) 2>&5
18298 ac_status=$?
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); }; } &&
18301 { ac_try='test -s conftest.$ac_objext'
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18304 ac_status=$?
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18307 ac_hi=$ac_mid; break
18308else
18309 echo "$as_me: failed program was:" >&5
18310sed 's/^/| /' conftest.$ac_ext >&5
18311
18312ac_lo=`expr $ac_mid + 1`
18313 if test $ac_lo -le $ac_mid; then
18314 ac_lo= ac_hi=
18315 break
18316 fi
18317 ac_mid=`expr 2 '*' $ac_mid + 1`
18318fi
18319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18320 done
18321else
18322 echo "$as_me: failed program was:" >&5
18323sed 's/^/| /' conftest.$ac_ext >&5
18324
18325cat >conftest.$ac_ext <<_ACEOF
18326/* confdefs.h. */
18327_ACEOF
18328cat confdefs.h >>conftest.$ac_ext
18329cat >>conftest.$ac_ext <<_ACEOF
18330/* end confdefs.h. */
18331
18332int
18333main ()
18334{
18335static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
18336test_array [0] = 0
18337
18338 ;
18339 return 0;
18340}
18341_ACEOF
18342rm -f conftest.$ac_objext
18343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18344 (eval $ac_compile) 2>conftest.er1
18345 ac_status=$?
18346 grep -v '^ *+' conftest.er1 >conftest.err
18347 rm -f conftest.er1
18348 cat conftest.err >&5
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); } &&
d349482e
AT
18351 { ac_try='test -z "$ac_c_werror_flag"
18352 || test ! -s conftest.err'
03b8fe49
PB
18353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18354 (eval $ac_try) 2>&5
18355 ac_status=$?
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); }; } &&
18358 { ac_try='test -s conftest.$ac_objext'
18359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360 (eval $ac_try) 2>&5
18361 ac_status=$?
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; }; then
18364 ac_hi=-1 ac_mid=-1
18365 while :; do
18366 cat >conftest.$ac_ext <<_ACEOF
18367/* confdefs.h. */
18368_ACEOF
18369cat confdefs.h >>conftest.$ac_ext
18370cat >>conftest.$ac_ext <<_ACEOF
18371/* end confdefs.h. */
18372
18373int
18374main ()
18375{
18376static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
18377test_array [0] = 0
18378
18379 ;
18380 return 0;
18381}
18382_ACEOF
18383rm -f conftest.$ac_objext
18384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18385 (eval $ac_compile) 2>conftest.er1
18386 ac_status=$?
18387 grep -v '^ *+' conftest.er1 >conftest.err
18388 rm -f conftest.er1
18389 cat conftest.err >&5
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } &&
d349482e
AT
18392 { ac_try='test -z "$ac_c_werror_flag"
18393 || test ! -s conftest.err'
03b8fe49
PB
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18396 ac_status=$?
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; } &&
18399 { ac_try='test -s conftest.$ac_objext'
18400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401 (eval $ac_try) 2>&5
18402 ac_status=$?
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; }; then
18405 ac_lo=$ac_mid; break
18406else
18407 echo "$as_me: failed program was:" >&5
18408sed 's/^/| /' conftest.$ac_ext >&5
18409
18410ac_hi=`expr '(' $ac_mid ')' - 1`
18411 if test $ac_mid -le $ac_hi; then
18412 ac_lo= ac_hi=
18413 break
18414 fi
18415 ac_mid=`expr 2 '*' $ac_mid`
18416fi
18417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18418 done
18419else
18420 echo "$as_me: failed program was:" >&5
18421sed 's/^/| /' conftest.$ac_ext >&5
18422
18423ac_lo= ac_hi=
18424fi
18425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18426fi
18427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18428# Binary search between lo and hi bounds.
18429while test "x$ac_lo" != "x$ac_hi"; do
18430 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18431 cat >conftest.$ac_ext <<_ACEOF
18432/* confdefs.h. */
18433_ACEOF
18434cat confdefs.h >>conftest.$ac_ext
18435cat >>conftest.$ac_ext <<_ACEOF
18436/* end confdefs.h. */
18437
18438int
18439main ()
18440{
18441static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18442test_array [0] = 0
18443
18444 ;
18445 return 0;
18446}
18447_ACEOF
18448rm -f conftest.$ac_objext
18449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18450 (eval $ac_compile) 2>conftest.er1
18451 ac_status=$?
18452 grep -v '^ *+' conftest.er1 >conftest.err
18453 rm -f conftest.er1
18454 cat conftest.err >&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } &&
d349482e
AT
18457 { ac_try='test -z "$ac_c_werror_flag"
18458 || test ! -s conftest.err'
03b8fe49
PB
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest.$ac_objext'
18465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18467 ac_status=$?
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; }; then
18470 ac_hi=$ac_mid
18471else
18472 echo "$as_me: failed program was:" >&5
18473sed 's/^/| /' conftest.$ac_ext >&5
18474
18475ac_lo=`expr '(' $ac_mid ')' + 1`
18476fi
18477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18478done
18479case $ac_lo in
18480?*) OMP_LOCK_SIZE=$ac_lo;;
18481'') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18482echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18483 { (exit 1); exit 1; }; } ;;
18484esac
18485else
18486 if test "$cross_compiling" = yes; then
18c04407
RW
18487 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18488echo "$as_me: error: in \`$ac_pwd':" >&2;}
18489{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
d349482e
AT
18490See \`config.log' for more details." >&5
18491echo "$as_me: error: cannot run test program while cross compiling
18492See \`config.log' for more details." >&2;}
18c04407 18493 { (exit 1); exit 1; }; }; }
03b8fe49
PB
18494else
18495 cat >conftest.$ac_ext <<_ACEOF
18496/* confdefs.h. */
18497_ACEOF
18498cat confdefs.h >>conftest.$ac_ext
18499cat >>conftest.$ac_ext <<_ACEOF
18500/* end confdefs.h. */
18501
18502long longval () { return sizeof (omp_lock_t); }
18503unsigned long ulongval () { return sizeof (omp_lock_t); }
18504#include <stdio.h>
18505#include <stdlib.h>
18506int
18507main ()
18508{
18509
18510 FILE *f = fopen ("conftest.val", "w");
18511 if (! f)
18512 exit (1);
18513 if ((sizeof (omp_lock_t)) < 0)
18514 {
18515 long i = longval ();
18516 if (i != (sizeof (omp_lock_t)))
18517 exit (1);
18518 fprintf (f, "%ld\n", i);
18519 }
18520 else
18521 {
18522 unsigned long i = ulongval ();
18523 if (i != (sizeof (omp_lock_t)))
18524 exit (1);
18525 fprintf (f, "%lu\n", i);
18526 }
18527 exit (ferror (f) || fclose (f) != 0);
18528
18529 ;
18530 return 0;
18531}
18532_ACEOF
18533rm -f conftest$ac_exeext
18534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18535 (eval $ac_link) 2>&5
18536 ac_status=$?
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18540 (eval $ac_try) 2>&5
18541 ac_status=$?
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; }; then
18544 OMP_LOCK_SIZE=`cat conftest.val`
18545else
18546 echo "$as_me: program exited with status $ac_status" >&5
18547echo "$as_me: failed program was:" >&5
18548sed 's/^/| /' conftest.$ac_ext >&5
18549
18550( exit $ac_status )
18551{ { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18552echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18553 { (exit 1); exit 1; }; }
18554fi
18555rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18556fi
18557fi
18558rm -f conftest.val
18559if test "$cross_compiling" = yes; then
18560 # Depending upon the size, compute the lo and hi bounds.
18561cat >conftest.$ac_ext <<_ACEOF
18562/* confdefs.h. */
18563_ACEOF
18564cat confdefs.h >>conftest.$ac_ext
18565cat >>conftest.$ac_ext <<_ACEOF
18566/* end confdefs.h. */
18567
18568int
18569main ()
18570{
18571static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
18572test_array [0] = 0
18573
18574 ;
18575 return 0;
18576}
18577_ACEOF
18578rm -f conftest.$ac_objext
18579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18580 (eval $ac_compile) 2>conftest.er1
18581 ac_status=$?
18582 grep -v '^ *+' conftest.er1 >conftest.err
18583 rm -f conftest.er1
18584 cat conftest.err >&5
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); } &&
d349482e
AT
18587 { ac_try='test -z "$ac_c_werror_flag"
18588 || test ! -s conftest.err'
03b8fe49
PB
18589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590 (eval $ac_try) 2>&5
18591 ac_status=$?
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; } &&
18594 { ac_try='test -s conftest.$ac_objext'
18595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596 (eval $ac_try) 2>&5
18597 ac_status=$?
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); }; }; then
18600 ac_lo=0 ac_mid=0
18601 while :; do
18602 cat >conftest.$ac_ext <<_ACEOF
18603/* confdefs.h. */
18604_ACEOF
18605cat confdefs.h >>conftest.$ac_ext
18606cat >>conftest.$ac_ext <<_ACEOF
18607/* end confdefs.h. */
18608
18609int
18610main ()
18611{
18612static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18613test_array [0] = 0
18614
18615 ;
18616 return 0;
18617}
18618_ACEOF
18619rm -f conftest.$ac_objext
18620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18621 (eval $ac_compile) 2>conftest.er1
18622 ac_status=$?
18623 grep -v '^ *+' conftest.er1 >conftest.err
18624 rm -f conftest.er1
18625 cat conftest.err >&5
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); } &&
d349482e
AT
18628 { ac_try='test -z "$ac_c_werror_flag"
18629 || test ! -s conftest.err'
03b8fe49
PB
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; } &&
18635 { ac_try='test -s conftest.$ac_objext'
18636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637 (eval $ac_try) 2>&5
18638 ac_status=$?
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; }; then
18641 ac_hi=$ac_mid; break
18642else
18643 echo "$as_me: failed program was:" >&5
18644sed 's/^/| /' conftest.$ac_ext >&5
18645
18646ac_lo=`expr $ac_mid + 1`
18647 if test $ac_lo -le $ac_mid; then
18648 ac_lo= ac_hi=
18649 break
18650 fi
18651 ac_mid=`expr 2 '*' $ac_mid + 1`
18652fi
18653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18654 done
18655else
18656 echo "$as_me: failed program was:" >&5
18657sed 's/^/| /' conftest.$ac_ext >&5
18658
18659cat >conftest.$ac_ext <<_ACEOF
18660/* confdefs.h. */
18661_ACEOF
18662cat confdefs.h >>conftest.$ac_ext
18663cat >>conftest.$ac_ext <<_ACEOF
18664/* end confdefs.h. */
18665
18666int
18667main ()
18668{
18669static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
18670test_array [0] = 0
18671
18672 ;
18673 return 0;
18674}
18675_ACEOF
18676rm -f conftest.$ac_objext
18677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18678 (eval $ac_compile) 2>conftest.er1
18679 ac_status=$?
18680 grep -v '^ *+' conftest.er1 >conftest.err
18681 rm -f conftest.er1
18682 cat conftest.err >&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } &&
d349482e
AT
18685 { ac_try='test -z "$ac_c_werror_flag"
18686 || test ! -s conftest.err'
03b8fe49
PB
18687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18688 (eval $ac_try) 2>&5
18689 ac_status=$?
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); }; } &&
18692 { ac_try='test -s conftest.$ac_objext'
18693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694 (eval $ac_try) 2>&5
18695 ac_status=$?
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; }; then
18698 ac_hi=-1 ac_mid=-1
18699 while :; do
18700 cat >conftest.$ac_ext <<_ACEOF
18701/* confdefs.h. */
18702_ACEOF
18703cat confdefs.h >>conftest.$ac_ext
18704cat >>conftest.$ac_ext <<_ACEOF
18705/* end confdefs.h. */
18706
18707int
18708main ()
18709{
18710static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
18711test_array [0] = 0
18712
18713 ;
18714 return 0;
18715}
18716_ACEOF
18717rm -f conftest.$ac_objext
18718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18719 (eval $ac_compile) 2>conftest.er1
18720 ac_status=$?
18721 grep -v '^ *+' conftest.er1 >conftest.err
18722 rm -f conftest.er1
18723 cat conftest.err >&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } &&
d349482e
AT
18726 { ac_try='test -z "$ac_c_werror_flag"
18727 || test ! -s conftest.err'
03b8fe49
PB
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18730 ac_status=$?
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; } &&
18733 { ac_try='test -s conftest.$ac_objext'
18734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735 (eval $ac_try) 2>&5
18736 ac_status=$?
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; }; then
18739 ac_lo=$ac_mid; break
18740else
18741 echo "$as_me: failed program was:" >&5
18742sed 's/^/| /' conftest.$ac_ext >&5
18743
18744ac_hi=`expr '(' $ac_mid ')' - 1`
18745 if test $ac_mid -le $ac_hi; then
18746 ac_lo= ac_hi=
18747 break
18748 fi
18749 ac_mid=`expr 2 '*' $ac_mid`
18750fi
18751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18752 done
18753else
18754 echo "$as_me: failed program was:" >&5
18755sed 's/^/| /' conftest.$ac_ext >&5
18756
18757ac_lo= ac_hi=
18758fi
18759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18760fi
18761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18762# Binary search between lo and hi bounds.
18763while test "x$ac_lo" != "x$ac_hi"; do
18764 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18765 cat >conftest.$ac_ext <<_ACEOF
18766/* confdefs.h. */
18767_ACEOF
18768cat confdefs.h >>conftest.$ac_ext
18769cat >>conftest.$ac_ext <<_ACEOF
18770/* end confdefs.h. */
18771
18772int
18773main ()
18774{
18775static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18776test_array [0] = 0
18777
18778 ;
18779 return 0;
18780}
18781_ACEOF
18782rm -f conftest.$ac_objext
18783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18784 (eval $ac_compile) 2>conftest.er1
18785 ac_status=$?
18786 grep -v '^ *+' conftest.er1 >conftest.err
18787 rm -f conftest.er1
18788 cat conftest.err >&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); } &&
d349482e
AT
18791 { ac_try='test -z "$ac_c_werror_flag"
18792 || test ! -s conftest.err'
03b8fe49
PB
18793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794 (eval $ac_try) 2>&5
18795 ac_status=$?
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); }; } &&
18798 { ac_try='test -s conftest.$ac_objext'
18799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800 (eval $ac_try) 2>&5
18801 ac_status=$?
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; }; then
18804 ac_hi=$ac_mid
18805else
18806 echo "$as_me: failed program was:" >&5
18807sed 's/^/| /' conftest.$ac_ext >&5
18808
18809ac_lo=`expr '(' $ac_mid ')' + 1`
18810fi
18811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18812done
18813case $ac_lo in
18814?*) OMP_LOCK_ALIGN=$ac_lo;;
18815'') ;;
18816esac
18817else
18818 if test "$cross_compiling" = yes; then
18c04407
RW
18819 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18820echo "$as_me: error: in \`$ac_pwd':" >&2;}
18821{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
d349482e
AT
18822See \`config.log' for more details." >&5
18823echo "$as_me: error: cannot run test program while cross compiling
18824See \`config.log' for more details." >&2;}
18c04407 18825 { (exit 1); exit 1; }; }; }
03b8fe49
PB
18826else
18827 cat >conftest.$ac_ext <<_ACEOF
18828/* confdefs.h. */
18829_ACEOF
18830cat confdefs.h >>conftest.$ac_ext
18831cat >>conftest.$ac_ext <<_ACEOF
18832/* end confdefs.h. */
18833
18834long longval () { return __alignof (omp_lock_t); }
18835unsigned long ulongval () { return __alignof (omp_lock_t); }
18836#include <stdio.h>
18837#include <stdlib.h>
18838int
18839main ()
18840{
18841
18842 FILE *f = fopen ("conftest.val", "w");
18843 if (! f)
18844 exit (1);
18845 if ((__alignof (omp_lock_t)) < 0)
18846 {
18847 long i = longval ();
18848 if (i != (__alignof (omp_lock_t)))
18849 exit (1);
18850 fprintf (f, "%ld\n", i);
18851 }
18852 else
18853 {
18854 unsigned long i = ulongval ();
18855 if (i != (__alignof (omp_lock_t)))
18856 exit (1);
18857 fprintf (f, "%lu\n", i);
18858 }
18859 exit (ferror (f) || fclose (f) != 0);
18860
18861 ;
18862 return 0;
18863}
18864_ACEOF
18865rm -f conftest$ac_exeext
18866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18867 (eval $ac_link) 2>&5
18868 ac_status=$?
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18872 (eval $ac_try) 2>&5
18873 ac_status=$?
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); }; }; then
18876 OMP_LOCK_ALIGN=`cat conftest.val`
18877else
18878 echo "$as_me: program exited with status $ac_status" >&5
18879echo "$as_me: failed program was:" >&5
18880sed 's/^/| /' conftest.$ac_ext >&5
18881
18882fi
18883rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18884fi
18885fi
18886rm -f conftest.val
18887if test "$cross_compiling" = yes; then
18888 # Depending upon the size, compute the lo and hi bounds.
18889cat >conftest.$ac_ext <<_ACEOF
18890/* confdefs.h. */
18891_ACEOF
18892cat confdefs.h >>conftest.$ac_ext
18893cat >>conftest.$ac_ext <<_ACEOF
18894/* end confdefs.h. */
18895
18896int
18897main ()
18898{
18899static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
18900test_array [0] = 0
18901
18902 ;
18903 return 0;
18904}
18905_ACEOF
18906rm -f conftest.$ac_objext
18907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18908 (eval $ac_compile) 2>conftest.er1
18909 ac_status=$?
18910 grep -v '^ *+' conftest.er1 >conftest.err
18911 rm -f conftest.er1
18912 cat conftest.err >&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); } &&
d349482e
AT
18915 { ac_try='test -z "$ac_c_werror_flag"
18916 || test ! -s conftest.err'
03b8fe49
PB
18917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18918 (eval $ac_try) 2>&5
18919 ac_status=$?
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); }; } &&
18922 { ac_try='test -s conftest.$ac_objext'
18923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924 (eval $ac_try) 2>&5
18925 ac_status=$?
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); }; }; then
18928 ac_lo=0 ac_mid=0
18929 while :; do
18930 cat >conftest.$ac_ext <<_ACEOF
18931/* confdefs.h. */
18932_ACEOF
18933cat confdefs.h >>conftest.$ac_ext
18934cat >>conftest.$ac_ext <<_ACEOF
18935/* end confdefs.h. */
18936
18937int
18938main ()
18939{
18940static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
18941test_array [0] = 0
18942
18943 ;
18944 return 0;
18945}
18946_ACEOF
18947rm -f conftest.$ac_objext
18948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18949 (eval $ac_compile) 2>conftest.er1
18950 ac_status=$?
18951 grep -v '^ *+' conftest.er1 >conftest.err
18952 rm -f conftest.er1
18953 cat conftest.err >&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); } &&
d349482e
AT
18956 { ac_try='test -z "$ac_c_werror_flag"
18957 || test ! -s conftest.err'
03b8fe49
PB
18958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959 (eval $ac_try) 2>&5
18960 ac_status=$?
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; } &&
18963 { ac_try='test -s conftest.$ac_objext'
18964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18965 (eval $ac_try) 2>&5
18966 ac_status=$?
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); }; }; then
18969 ac_hi=$ac_mid; break
18970else
18971 echo "$as_me: failed program was:" >&5
18972sed 's/^/| /' conftest.$ac_ext >&5
18973
18974ac_lo=`expr $ac_mid + 1`
18975 if test $ac_lo -le $ac_mid; then
18976 ac_lo= ac_hi=
18977 break
18978 fi
18979 ac_mid=`expr 2 '*' $ac_mid + 1`
18980fi
18981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18982 done
18983else
18984 echo "$as_me: failed program was:" >&5
18985sed 's/^/| /' conftest.$ac_ext >&5
18986
18987cat >conftest.$ac_ext <<_ACEOF
18988/* confdefs.h. */
18989_ACEOF
18990cat confdefs.h >>conftest.$ac_ext
18991cat >>conftest.$ac_ext <<_ACEOF
18992/* end confdefs.h. */
18993
18994int
18995main ()
18996{
18997static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
18998test_array [0] = 0
18999
19000 ;
19001 return 0;
19002}
19003_ACEOF
19004rm -f conftest.$ac_objext
19005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19006 (eval $ac_compile) 2>conftest.er1
19007 ac_status=$?
19008 grep -v '^ *+' conftest.er1 >conftest.err
19009 rm -f conftest.er1
19010 cat conftest.err >&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); } &&
d349482e
AT
19013 { ac_try='test -z "$ac_c_werror_flag"
19014 || test ! -s conftest.err'
03b8fe49
PB
19015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016 (eval $ac_try) 2>&5
19017 ac_status=$?
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; } &&
19020 { ac_try='test -s conftest.$ac_objext'
19021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022 (eval $ac_try) 2>&5
19023 ac_status=$?
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); }; }; then
19026 ac_hi=-1 ac_mid=-1
19027 while :; do
19028 cat >conftest.$ac_ext <<_ACEOF
19029/* confdefs.h. */
19030_ACEOF
19031cat confdefs.h >>conftest.$ac_ext
19032cat >>conftest.$ac_ext <<_ACEOF
19033/* end confdefs.h. */
19034
19035int
19036main ()
19037{
19038static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
19039test_array [0] = 0
19040
19041 ;
19042 return 0;
19043}
19044_ACEOF
19045rm -f conftest.$ac_objext
19046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19047 (eval $ac_compile) 2>conftest.er1
19048 ac_status=$?
19049 grep -v '^ *+' conftest.er1 >conftest.err
19050 rm -f conftest.er1
19051 cat conftest.err >&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } &&
d349482e
AT
19054 { ac_try='test -z "$ac_c_werror_flag"
19055 || test ! -s conftest.err'
03b8fe49
PB
19056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19057 (eval $ac_try) 2>&5
19058 ac_status=$?
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); }; } &&
19061 { ac_try='test -s conftest.$ac_objext'
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19064 ac_status=$?
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; }; then
19067 ac_lo=$ac_mid; break
19068else
19069 echo "$as_me: failed program was:" >&5
19070sed 's/^/| /' conftest.$ac_ext >&5
19071
19072ac_hi=`expr '(' $ac_mid ')' - 1`
19073 if test $ac_mid -le $ac_hi; then
19074 ac_lo= ac_hi=
19075 break
19076 fi
19077 ac_mid=`expr 2 '*' $ac_mid`
19078fi
19079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19080 done
19081else
19082 echo "$as_me: failed program was:" >&5
19083sed 's/^/| /' conftest.$ac_ext >&5
19084
19085ac_lo= ac_hi=
19086fi
19087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19088fi
19089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19090# Binary search between lo and hi bounds.
19091while test "x$ac_lo" != "x$ac_hi"; do
19092 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19093 cat >conftest.$ac_ext <<_ACEOF
19094/* confdefs.h. */
19095_ACEOF
19096cat confdefs.h >>conftest.$ac_ext
19097cat >>conftest.$ac_ext <<_ACEOF
19098/* end confdefs.h. */
19099
19100int
19101main ()
19102{
19103static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
19104test_array [0] = 0
19105
19106 ;
19107 return 0;
19108}
19109_ACEOF
19110rm -f conftest.$ac_objext
19111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19112 (eval $ac_compile) 2>conftest.er1
19113 ac_status=$?
19114 grep -v '^ *+' conftest.er1 >conftest.err
19115 rm -f conftest.er1
19116 cat conftest.err >&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); } &&
d349482e
AT
19119 { ac_try='test -z "$ac_c_werror_flag"
19120 || test ! -s conftest.err'
03b8fe49
PB
19121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122 (eval $ac_try) 2>&5
19123 ac_status=$?
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; } &&
19126 { ac_try='test -s conftest.$ac_objext'
19127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128 (eval $ac_try) 2>&5
19129 ac_status=$?
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; }; then
19132 ac_hi=$ac_mid
19133else
19134 echo "$as_me: failed program was:" >&5
19135sed 's/^/| /' conftest.$ac_ext >&5
19136
19137ac_lo=`expr '(' $ac_mid ')' + 1`
19138fi
19139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19140done
19141case $ac_lo in
19142?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
19143'') ;;
19144esac
19145else
19146 if test "$cross_compiling" = yes; then
18c04407
RW
19147 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19148echo "$as_me: error: in \`$ac_pwd':" >&2;}
19149{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
d349482e
AT
19150See \`config.log' for more details." >&5
19151echo "$as_me: error: cannot run test program while cross compiling
19152See \`config.log' for more details." >&2;}
18c04407 19153 { (exit 1); exit 1; }; }; }
03b8fe49
PB
19154else
19155 cat >conftest.$ac_ext <<_ACEOF
19156/* confdefs.h. */
19157_ACEOF
19158cat confdefs.h >>conftest.$ac_ext
19159cat >>conftest.$ac_ext <<_ACEOF
19160/* end confdefs.h. */
19161
19162long longval () { return sizeof (omp_nest_lock_t); }
19163unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
19164#include <stdio.h>
19165#include <stdlib.h>
19166int
19167main ()
19168{
19169
19170 FILE *f = fopen ("conftest.val", "w");
19171 if (! f)
19172 exit (1);
19173 if ((sizeof (omp_nest_lock_t)) < 0)
19174 {
19175 long i = longval ();
19176 if (i != (sizeof (omp_nest_lock_t)))
19177 exit (1);
19178 fprintf (f, "%ld\n", i);
19179 }
19180 else
19181 {
19182 unsigned long i = ulongval ();
19183 if (i != (sizeof (omp_nest_lock_t)))
19184 exit (1);
19185 fprintf (f, "%lu\n", i);
19186 }
19187 exit (ferror (f) || fclose (f) != 0);
19188
19189 ;
19190 return 0;
19191}
19192_ACEOF
19193rm -f conftest$ac_exeext
19194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19195 (eval $ac_link) 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200 (eval $ac_try) 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; }; then
19204 OMP_NEST_LOCK_SIZE=`cat conftest.val`
19205else
19206 echo "$as_me: program exited with status $ac_status" >&5
19207echo "$as_me: failed program was:" >&5
19208sed 's/^/| /' conftest.$ac_ext >&5
19209
19210fi
19211rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19212fi
19213fi
19214rm -f conftest.val
19215if test "$cross_compiling" = yes; then
19216 # Depending upon the size, compute the lo and hi bounds.
19217cat >conftest.$ac_ext <<_ACEOF
19218/* confdefs.h. */
19219_ACEOF
19220cat confdefs.h >>conftest.$ac_ext
19221cat >>conftest.$ac_ext <<_ACEOF
19222/* end confdefs.h. */
19223
19224int
19225main ()
19226{
19227static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
19228test_array [0] = 0
19229
19230 ;
19231 return 0;
19232}
19233_ACEOF
19234rm -f conftest.$ac_objext
19235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19236 (eval $ac_compile) 2>conftest.er1
19237 ac_status=$?
19238 grep -v '^ *+' conftest.er1 >conftest.err
19239 rm -f conftest.er1
19240 cat conftest.err >&5
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); } &&
d349482e
AT
19243 { ac_try='test -z "$ac_c_werror_flag"
19244 || test ! -s conftest.err'
03b8fe49
PB
19245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246 (eval $ac_try) 2>&5
19247 ac_status=$?
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); }; } &&
19250 { ac_try='test -s conftest.$ac_objext'
19251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19252 (eval $ac_try) 2>&5
19253 ac_status=$?
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); }; }; then
19256 ac_lo=0 ac_mid=0
19257 while :; do
19258 cat >conftest.$ac_ext <<_ACEOF
19259/* confdefs.h. */
19260_ACEOF
19261cat confdefs.h >>conftest.$ac_ext
19262cat >>conftest.$ac_ext <<_ACEOF
19263/* end confdefs.h. */
19264
19265int
19266main ()
19267{
19268static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19269test_array [0] = 0
19270
19271 ;
19272 return 0;
19273}
19274_ACEOF
19275rm -f conftest.$ac_objext
19276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19277 (eval $ac_compile) 2>conftest.er1
19278 ac_status=$?
19279 grep -v '^ *+' conftest.er1 >conftest.err
19280 rm -f conftest.er1
19281 cat conftest.err >&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); } &&
d349482e
AT
19284 { ac_try='test -z "$ac_c_werror_flag"
19285 || test ! -s conftest.err'
03b8fe49
PB
19286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287 (eval $ac_try) 2>&5
19288 ac_status=$?
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; } &&
19291 { ac_try='test -s conftest.$ac_objext'
19292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293 (eval $ac_try) 2>&5
19294 ac_status=$?
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; }; then
19297 ac_hi=$ac_mid; break
19298else
19299 echo "$as_me: failed program was:" >&5
19300sed 's/^/| /' conftest.$ac_ext >&5
19301
19302ac_lo=`expr $ac_mid + 1`
19303 if test $ac_lo -le $ac_mid; then
19304 ac_lo= ac_hi=
19305 break
19306 fi
19307 ac_mid=`expr 2 '*' $ac_mid + 1`
19308fi
19309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19310 done
19311else
19312 echo "$as_me: failed program was:" >&5
19313sed 's/^/| /' conftest.$ac_ext >&5
19314
19315cat >conftest.$ac_ext <<_ACEOF
19316/* confdefs.h. */
19317_ACEOF
19318cat confdefs.h >>conftest.$ac_ext
19319cat >>conftest.$ac_ext <<_ACEOF
19320/* end confdefs.h. */
19321
19322int
19323main ()
19324{
19325static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
19326test_array [0] = 0
19327
19328 ;
19329 return 0;
19330}
19331_ACEOF
19332rm -f conftest.$ac_objext
19333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19334 (eval $ac_compile) 2>conftest.er1
19335 ac_status=$?
19336 grep -v '^ *+' conftest.er1 >conftest.err
19337 rm -f conftest.er1
19338 cat conftest.err >&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } &&
d349482e
AT
19341 { ac_try='test -z "$ac_c_werror_flag"
19342 || test ! -s conftest.err'
03b8fe49
PB
19343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344 (eval $ac_try) 2>&5
19345 ac_status=$?
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; } &&
19348 { ac_try='test -s conftest.$ac_objext'
19349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19350 (eval $ac_try) 2>&5
19351 ac_status=$?
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); }; }; then
19354 ac_hi=-1 ac_mid=-1
19355 while :; do
19356 cat >conftest.$ac_ext <<_ACEOF
19357/* confdefs.h. */
19358_ACEOF
19359cat confdefs.h >>conftest.$ac_ext
19360cat >>conftest.$ac_ext <<_ACEOF
19361/* end confdefs.h. */
19362
19363int
19364main ()
19365{
19366static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
19367test_array [0] = 0
19368
19369 ;
19370 return 0;
19371}
19372_ACEOF
19373rm -f conftest.$ac_objext
19374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19375 (eval $ac_compile) 2>conftest.er1
19376 ac_status=$?
19377 grep -v '^ *+' conftest.er1 >conftest.err
19378 rm -f conftest.er1
19379 cat conftest.err >&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); } &&
d349482e
AT
19382 { ac_try='test -z "$ac_c_werror_flag"
19383 || test ! -s conftest.err'
03b8fe49
PB
19384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385 (eval $ac_try) 2>&5
19386 ac_status=$?
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; } &&
19389 { ac_try='test -s conftest.$ac_objext'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; }; then
19395 ac_lo=$ac_mid; break
19396else
19397 echo "$as_me: failed program was:" >&5
19398sed 's/^/| /' conftest.$ac_ext >&5
19399
19400ac_hi=`expr '(' $ac_mid ')' - 1`
19401 if test $ac_mid -le $ac_hi; then
19402 ac_lo= ac_hi=
19403 break
19404 fi
19405 ac_mid=`expr 2 '*' $ac_mid`
19406fi
19407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19408 done
19409else
19410 echo "$as_me: failed program was:" >&5
19411sed 's/^/| /' conftest.$ac_ext >&5
19412
19413ac_lo= ac_hi=
19414fi
19415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19416fi
19417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19418# Binary search between lo and hi bounds.
19419while test "x$ac_lo" != "x$ac_hi"; do
19420 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19421 cat >conftest.$ac_ext <<_ACEOF
19422/* confdefs.h. */
19423_ACEOF
19424cat confdefs.h >>conftest.$ac_ext
19425cat >>conftest.$ac_ext <<_ACEOF
19426/* end confdefs.h. */
19427
19428int
19429main ()
19430{
19431static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19432test_array [0] = 0
19433
19434 ;
19435 return 0;
19436}
19437_ACEOF
19438rm -f conftest.$ac_objext
19439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19440 (eval $ac_compile) 2>conftest.er1
19441 ac_status=$?
19442 grep -v '^ *+' conftest.er1 >conftest.err
19443 rm -f conftest.er1
19444 cat conftest.err >&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); } &&
d349482e
AT
19447 { ac_try='test -z "$ac_c_werror_flag"
19448 || test ! -s conftest.err'
03b8fe49
PB
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; } &&
19454 { ac_try='test -s conftest.$ac_objext'
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19457 ac_status=$?
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; }; then
19460 ac_hi=$ac_mid
19461else
19462 echo "$as_me: failed program was:" >&5
19463sed 's/^/| /' conftest.$ac_ext >&5
19464
19465ac_lo=`expr '(' $ac_mid ')' + 1`
19466fi
19467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19468done
19469case $ac_lo in
19470?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
19471'') ;;
19472esac
19473else
19474 if test "$cross_compiling" = yes; then
18c04407
RW
19475 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19476echo "$as_me: error: in \`$ac_pwd':" >&2;}
19477{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
d349482e
AT
19478See \`config.log' for more details." >&5
19479echo "$as_me: error: cannot run test program while cross compiling
19480See \`config.log' for more details." >&2;}
18c04407 19481 { (exit 1); exit 1; }; }; }
03b8fe49
PB
19482else
19483 cat >conftest.$ac_ext <<_ACEOF
19484/* confdefs.h. */
19485_ACEOF
19486cat confdefs.h >>conftest.$ac_ext
19487cat >>conftest.$ac_ext <<_ACEOF
19488/* end confdefs.h. */
19489
19490long longval () { return __alignof (omp_nest_lock_t); }
19491unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
19492#include <stdio.h>
19493#include <stdlib.h>
19494int
19495main ()
19496{
19497
19498 FILE *f = fopen ("conftest.val", "w");
19499 if (! f)
19500 exit (1);
19501 if ((__alignof (omp_nest_lock_t)) < 0)
19502 {
19503 long i = longval ();
19504 if (i != (__alignof (omp_nest_lock_t)))
19505 exit (1);
19506 fprintf (f, "%ld\n", i);
19507 }
19508 else
19509 {
19510 unsigned long i = ulongval ();
19511 if (i != (__alignof (omp_nest_lock_t)))
19512 exit (1);
19513 fprintf (f, "%lu\n", i);
19514 }
19515 exit (ferror (f) || fclose (f) != 0);
19516
19517 ;
19518 return 0;
19519}
19520_ACEOF
19521rm -f conftest$ac_exeext
19522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19523 (eval $ac_link) 2>&5
19524 ac_status=$?
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528 (eval $ac_try) 2>&5
19529 ac_status=$?
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; }; then
19532 OMP_NEST_LOCK_ALIGN=`cat conftest.val`
19533else
19534 echo "$as_me: program exited with status $ac_status" >&5
19535echo "$as_me: failed program was:" >&5
19536sed 's/^/| /' conftest.$ac_ext >&5
19537
19538fi
19539rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19540fi
19541fi
19542rm -f conftest.val
a68ab351
JJ
19543if test "$cross_compiling" = yes; then
19544 # Depending upon the size, compute the lo and hi bounds.
19545cat >conftest.$ac_ext <<_ACEOF
19546/* confdefs.h. */
19547_ACEOF
19548cat confdefs.h >>conftest.$ac_ext
19549cat >>conftest.$ac_ext <<_ACEOF
19550/* end confdefs.h. */
03b8fe49 19551
a68ab351
JJ
19552int
19553main ()
19554{
19555static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) >= 0)];
19556test_array [0] = 0
19557
19558 ;
19559 return 0;
19560}
19561_ACEOF
19562rm -f conftest.$ac_objext
19563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19564 (eval $ac_compile) 2>conftest.er1
19565 ac_status=$?
19566 grep -v '^ *+' conftest.er1 >conftest.err
19567 rm -f conftest.er1
19568 cat conftest.err >&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } &&
19571 { ac_try='test -z "$ac_c_werror_flag"
19572 || test ! -s conftest.err'
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19575 ac_status=$?
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; } &&
19578 { ac_try='test -s conftest.$ac_objext'
19579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580 (eval $ac_try) 2>&5
19581 ac_status=$?
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); }; }; then
19584 ac_lo=0 ac_mid=0
19585 while :; do
19586 cat >conftest.$ac_ext <<_ACEOF
19587/* confdefs.h. */
19588_ACEOF
19589cat confdefs.h >>conftest.$ac_ext
19590cat >>conftest.$ac_ext <<_ACEOF
19591/* end confdefs.h. */
19592
19593int
19594main ()
19595{
19596static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) <= $ac_mid)];
19597test_array [0] = 0
19598
19599 ;
19600 return 0;
19601}
19602_ACEOF
19603rm -f conftest.$ac_objext
19604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19605 (eval $ac_compile) 2>conftest.er1
19606 ac_status=$?
19607 grep -v '^ *+' conftest.er1 >conftest.err
19608 rm -f conftest.er1
19609 cat conftest.err >&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } &&
19612 { ac_try='test -z "$ac_c_werror_flag"
19613 || test ! -s conftest.err'
19614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19615 (eval $ac_try) 2>&5
19616 ac_status=$?
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); }; } &&
19619 { ac_try='test -s conftest.$ac_objext'
19620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621 (eval $ac_try) 2>&5
19622 ac_status=$?
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; }; then
19625 ac_hi=$ac_mid; break
19626else
19627 echo "$as_me: failed program was:" >&5
19628sed 's/^/| /' conftest.$ac_ext >&5
19629
19630ac_lo=`expr $ac_mid + 1`
19631 if test $ac_lo -le $ac_mid; then
19632 ac_lo= ac_hi=
19633 break
19634 fi
19635 ac_mid=`expr 2 '*' $ac_mid + 1`
03b8fe49 19636fi
a68ab351
JJ
19637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19638 done
19639else
19640 echo "$as_me: failed program was:" >&5
19641sed 's/^/| /' conftest.$ac_ext >&5
19642
19643cat >conftest.$ac_ext <<_ACEOF
19644/* confdefs.h. */
19645_ACEOF
19646cat confdefs.h >>conftest.$ac_ext
19647cat >>conftest.$ac_ext <<_ACEOF
19648/* end confdefs.h. */
19649
19650int
19651main ()
19652{
19653static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) < 0)];
19654test_array [0] = 0
19655
19656 ;
19657 return 0;
19658}
19659_ACEOF
19660rm -f conftest.$ac_objext
19661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19662 (eval $ac_compile) 2>conftest.er1
19663 ac_status=$?
19664 grep -v '^ *+' conftest.er1 >conftest.err
19665 rm -f conftest.er1
19666 cat conftest.err >&5
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); } &&
19669 { ac_try='test -z "$ac_c_werror_flag"
19670 || test ! -s conftest.err'
19671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19672 (eval $ac_try) 2>&5
19673 ac_status=$?
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); }; } &&
19676 { ac_try='test -s conftest.$ac_objext'
19677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19678 (eval $ac_try) 2>&5
19679 ac_status=$?
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); }; }; then
19682 ac_hi=-1 ac_mid=-1
19683 while :; do
19684 cat >conftest.$ac_ext <<_ACEOF
19685/* confdefs.h. */
19686_ACEOF
19687cat confdefs.h >>conftest.$ac_ext
19688cat >>conftest.$ac_ext <<_ACEOF
19689/* end confdefs.h. */
19690
19691int
19692main ()
19693{
19694static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) >= $ac_mid)];
19695test_array [0] = 0
19696
19697 ;
19698 return 0;
19699}
19700_ACEOF
19701rm -f conftest.$ac_objext
19702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19703 (eval $ac_compile) 2>conftest.er1
19704 ac_status=$?
19705 grep -v '^ *+' conftest.er1 >conftest.err
19706 rm -f conftest.er1
19707 cat conftest.err >&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); } &&
19710 { ac_try='test -z "$ac_c_werror_flag"
19711 || test ! -s conftest.err'
19712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713 (eval $ac_try) 2>&5
19714 ac_status=$?
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); }; } &&
19717 { ac_try='test -s conftest.$ac_objext'
19718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719 (eval $ac_try) 2>&5
19720 ac_status=$?
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); }; }; then
19723 ac_lo=$ac_mid; break
19724else
19725 echo "$as_me: failed program was:" >&5
19726sed 's/^/| /' conftest.$ac_ext >&5
19727
19728ac_hi=`expr '(' $ac_mid ')' - 1`
19729 if test $ac_mid -le $ac_hi; then
19730 ac_lo= ac_hi=
19731 break
19732 fi
19733 ac_mid=`expr 2 '*' $ac_mid`
19734fi
19735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19736 done
19737else
19738 echo "$as_me: failed program was:" >&5
19739sed 's/^/| /' conftest.$ac_ext >&5
19740
19741ac_lo= ac_hi=
19742fi
19743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
03b8fe49 19744fi
a68ab351
JJ
19745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19746# Binary search between lo and hi bounds.
19747while test "x$ac_lo" != "x$ac_hi"; do
19748 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19749 cat >conftest.$ac_ext <<_ACEOF
19750/* confdefs.h. */
19751_ACEOF
19752cat confdefs.h >>conftest.$ac_ext
19753cat >>conftest.$ac_ext <<_ACEOF
19754/* end confdefs.h. */
19755
19756int
19757main ()
19758{
19759static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) <= $ac_mid)];
19760test_array [0] = 0
19761
19762 ;
19763 return 0;
19764}
19765_ACEOF
19766rm -f conftest.$ac_objext
19767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19768 (eval $ac_compile) 2>conftest.er1
19769 ac_status=$?
19770 grep -v '^ *+' conftest.er1 >conftest.err
19771 rm -f conftest.er1
19772 cat conftest.err >&5
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); } &&
19775 { ac_try='test -z "$ac_c_werror_flag"
19776 || test ! -s conftest.err'
19777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778 (eval $ac_try) 2>&5
19779 ac_status=$?
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; } &&
19782 { ac_try='test -s conftest.$ac_objext'
19783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784 (eval $ac_try) 2>&5
19785 ac_status=$?
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }; }; then
19788 ac_hi=$ac_mid
19789else
19790 echo "$as_me: failed program was:" >&5
19791sed 's/^/| /' conftest.$ac_ext >&5
19792
19793ac_lo=`expr '(' $ac_mid ')' + 1`
19794fi
19795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19796done
19797case $ac_lo in
19798?*) OMP_LOCK_25_SIZE=$ac_lo;;
19799'') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&5
19800echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&2;}
19801 { (exit 1); exit 1; }; } ;;
19802esac
19803else
19804 if test "$cross_compiling" = yes; then
18c04407
RW
19805 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19806echo "$as_me: error: in \`$ac_pwd':" >&2;}
19807{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
a68ab351
JJ
19808See \`config.log' for more details." >&5
19809echo "$as_me: error: cannot run test program while cross compiling
19810See \`config.log' for more details." >&2;}
18c04407 19811 { (exit 1); exit 1; }; }; }
a68ab351
JJ
19812else
19813 cat >conftest.$ac_ext <<_ACEOF
19814/* confdefs.h. */
19815_ACEOF
19816cat confdefs.h >>conftest.$ac_ext
19817cat >>conftest.$ac_ext <<_ACEOF
19818/* end confdefs.h. */
19819
19820long longval () { return sizeof (omp_lock_25_t); }
19821unsigned long ulongval () { return sizeof (omp_lock_25_t); }
19822#include <stdio.h>
19823#include <stdlib.h>
19824int
19825main ()
19826{
19827
19828 FILE *f = fopen ("conftest.val", "w");
19829 if (! f)
19830 exit (1);
19831 if ((sizeof (omp_lock_25_t)) < 0)
19832 {
19833 long i = longval ();
19834 if (i != (sizeof (omp_lock_25_t)))
19835 exit (1);
19836 fprintf (f, "%ld\n", i);
19837 }
19838 else
19839 {
19840 unsigned long i = ulongval ();
19841 if (i != (sizeof (omp_lock_25_t)))
19842 exit (1);
19843 fprintf (f, "%lu\n", i);
19844 }
19845 exit (ferror (f) || fclose (f) != 0);
19846
19847 ;
19848 return 0;
19849}
19850_ACEOF
19851rm -f conftest$ac_exeext
19852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19853 (eval $ac_link) 2>&5
19854 ac_status=$?
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19858 (eval $ac_try) 2>&5
19859 ac_status=$?
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); }; }; then
19862 OMP_LOCK_25_SIZE=`cat conftest.val`
19863else
19864 echo "$as_me: program exited with status $ac_status" >&5
19865echo "$as_me: failed program was:" >&5
19866sed 's/^/| /' conftest.$ac_ext >&5
19867
19868( exit $ac_status )
19869{ { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&5
19870echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&2;}
19871 { (exit 1); exit 1; }; }
19872fi
19873rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19874fi
19875fi
19876rm -f conftest.val
19877if test "$cross_compiling" = yes; then
19878 # Depending upon the size, compute the lo and hi bounds.
19879cat >conftest.$ac_ext <<_ACEOF
19880/* confdefs.h. */
19881_ACEOF
19882cat confdefs.h >>conftest.$ac_ext
19883cat >>conftest.$ac_ext <<_ACEOF
19884/* end confdefs.h. */
19885
19886int
19887main ()
19888{
19889static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) >= 0)];
19890test_array [0] = 0
19891
19892 ;
19893 return 0;
19894}
19895_ACEOF
19896rm -f conftest.$ac_objext
19897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19898 (eval $ac_compile) 2>conftest.er1
19899 ac_status=$?
19900 grep -v '^ *+' conftest.er1 >conftest.err
19901 rm -f conftest.er1
19902 cat conftest.err >&5
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); } &&
19905 { ac_try='test -z "$ac_c_werror_flag"
19906 || test ! -s conftest.err'
19907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19908 (eval $ac_try) 2>&5
19909 ac_status=$?
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); }; } &&
19912 { ac_try='test -s conftest.$ac_objext'
19913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19914 (eval $ac_try) 2>&5
19915 ac_status=$?
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); }; }; then
19918 ac_lo=0 ac_mid=0
19919 while :; do
19920 cat >conftest.$ac_ext <<_ACEOF
19921/* confdefs.h. */
19922_ACEOF
19923cat confdefs.h >>conftest.$ac_ext
19924cat >>conftest.$ac_ext <<_ACEOF
19925/* end confdefs.h. */
19926
19927int
19928main ()
19929{
19930static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) <= $ac_mid)];
19931test_array [0] = 0
19932
19933 ;
19934 return 0;
19935}
19936_ACEOF
19937rm -f conftest.$ac_objext
19938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19939 (eval $ac_compile) 2>conftest.er1
19940 ac_status=$?
19941 grep -v '^ *+' conftest.er1 >conftest.err
19942 rm -f conftest.er1
19943 cat conftest.err >&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); } &&
19946 { ac_try='test -z "$ac_c_werror_flag"
19947 || test ! -s conftest.err'
19948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19949 (eval $ac_try) 2>&5
19950 ac_status=$?
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); }; } &&
19953 { ac_try='test -s conftest.$ac_objext'
19954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19955 (eval $ac_try) 2>&5
19956 ac_status=$?
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); }; }; then
19959 ac_hi=$ac_mid; break
19960else
19961 echo "$as_me: failed program was:" >&5
19962sed 's/^/| /' conftest.$ac_ext >&5
19963
19964ac_lo=`expr $ac_mid + 1`
19965 if test $ac_lo -le $ac_mid; then
19966 ac_lo= ac_hi=
19967 break
19968 fi
19969 ac_mid=`expr 2 '*' $ac_mid + 1`
19970fi
19971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19972 done
19973else
19974 echo "$as_me: failed program was:" >&5
19975sed 's/^/| /' conftest.$ac_ext >&5
19976
19977cat >conftest.$ac_ext <<_ACEOF
19978/* confdefs.h. */
19979_ACEOF
19980cat confdefs.h >>conftest.$ac_ext
19981cat >>conftest.$ac_ext <<_ACEOF
19982/* end confdefs.h. */
19983
19984int
19985main ()
19986{
19987static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) < 0)];
19988test_array [0] = 0
19989
19990 ;
19991 return 0;
19992}
19993_ACEOF
19994rm -f conftest.$ac_objext
19995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19996 (eval $ac_compile) 2>conftest.er1
19997 ac_status=$?
19998 grep -v '^ *+' conftest.er1 >conftest.err
19999 rm -f conftest.er1
20000 cat conftest.err >&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); } &&
20003 { ac_try='test -z "$ac_c_werror_flag"
20004 || test ! -s conftest.err'
20005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006 (eval $ac_try) 2>&5
20007 ac_status=$?
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); }; } &&
20010 { ac_try='test -s conftest.$ac_objext'
20011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20012 (eval $ac_try) 2>&5
20013 ac_status=$?
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); }; }; then
20016 ac_hi=-1 ac_mid=-1
20017 while :; do
20018 cat >conftest.$ac_ext <<_ACEOF
20019/* confdefs.h. */
20020_ACEOF
20021cat confdefs.h >>conftest.$ac_ext
20022cat >>conftest.$ac_ext <<_ACEOF
20023/* end confdefs.h. */
20024
20025int
20026main ()
20027{
20028static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) >= $ac_mid)];
20029test_array [0] = 0
20030
20031 ;
20032 return 0;
20033}
20034_ACEOF
20035rm -f conftest.$ac_objext
20036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20037 (eval $ac_compile) 2>conftest.er1
20038 ac_status=$?
20039 grep -v '^ *+' conftest.er1 >conftest.err
20040 rm -f conftest.er1
20041 cat conftest.err >&5
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); } &&
20044 { ac_try='test -z "$ac_c_werror_flag"
20045 || test ! -s conftest.err'
20046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047 (eval $ac_try) 2>&5
20048 ac_status=$?
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; } &&
20051 { ac_try='test -s conftest.$ac_objext'
20052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20053 (eval $ac_try) 2>&5
20054 ac_status=$?
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; }; then
20057 ac_lo=$ac_mid; break
20058else
20059 echo "$as_me: failed program was:" >&5
20060sed 's/^/| /' conftest.$ac_ext >&5
20061
20062ac_hi=`expr '(' $ac_mid ')' - 1`
20063 if test $ac_mid -le $ac_hi; then
20064 ac_lo= ac_hi=
20065 break
20066 fi
20067 ac_mid=`expr 2 '*' $ac_mid`
20068fi
20069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20070 done
20071else
20072 echo "$as_me: failed program was:" >&5
20073sed 's/^/| /' conftest.$ac_ext >&5
20074
20075ac_lo= ac_hi=
20076fi
20077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20078fi
20079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20080# Binary search between lo and hi bounds.
20081while test "x$ac_lo" != "x$ac_hi"; do
20082 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20083 cat >conftest.$ac_ext <<_ACEOF
20084/* confdefs.h. */
20085_ACEOF
20086cat confdefs.h >>conftest.$ac_ext
20087cat >>conftest.$ac_ext <<_ACEOF
20088/* end confdefs.h. */
20089
20090int
20091main ()
20092{
20093static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) <= $ac_mid)];
20094test_array [0] = 0
20095
20096 ;
20097 return 0;
20098}
20099_ACEOF
20100rm -f conftest.$ac_objext
20101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20102 (eval $ac_compile) 2>conftest.er1
20103 ac_status=$?
20104 grep -v '^ *+' conftest.er1 >conftest.err
20105 rm -f conftest.er1
20106 cat conftest.err >&5
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); } &&
20109 { ac_try='test -z "$ac_c_werror_flag"
20110 || test ! -s conftest.err'
20111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20112 (eval $ac_try) 2>&5
20113 ac_status=$?
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); }; } &&
20116 { ac_try='test -s conftest.$ac_objext'
20117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20118 (eval $ac_try) 2>&5
20119 ac_status=$?
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }; }; then
20122 ac_hi=$ac_mid
20123else
20124 echo "$as_me: failed program was:" >&5
20125sed 's/^/| /' conftest.$ac_ext >&5
20126
20127ac_lo=`expr '(' $ac_mid ')' + 1`
20128fi
20129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20130done
20131case $ac_lo in
20132?*) OMP_LOCK_25_ALIGN=$ac_lo;;
20133'') ;;
20134esac
20135else
20136 if test "$cross_compiling" = yes; then
18c04407
RW
20137 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20138echo "$as_me: error: in \`$ac_pwd':" >&2;}
20139{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
a68ab351
JJ
20140See \`config.log' for more details." >&5
20141echo "$as_me: error: cannot run test program while cross compiling
20142See \`config.log' for more details." >&2;}
18c04407 20143 { (exit 1); exit 1; }; }; }
a68ab351
JJ
20144else
20145 cat >conftest.$ac_ext <<_ACEOF
20146/* confdefs.h. */
20147_ACEOF
20148cat confdefs.h >>conftest.$ac_ext
20149cat >>conftest.$ac_ext <<_ACEOF
20150/* end confdefs.h. */
20151
20152long longval () { return __alignof (omp_lock_25_t); }
20153unsigned long ulongval () { return __alignof (omp_lock_25_t); }
20154#include <stdio.h>
20155#include <stdlib.h>
20156int
20157main ()
20158{
20159
20160 FILE *f = fopen ("conftest.val", "w");
20161 if (! f)
20162 exit (1);
20163 if ((__alignof (omp_lock_25_t)) < 0)
20164 {
20165 long i = longval ();
20166 if (i != (__alignof (omp_lock_25_t)))
20167 exit (1);
20168 fprintf (f, "%ld\n", i);
20169 }
20170 else
20171 {
20172 unsigned long i = ulongval ();
20173 if (i != (__alignof (omp_lock_25_t)))
20174 exit (1);
20175 fprintf (f, "%lu\n", i);
20176 }
20177 exit (ferror (f) || fclose (f) != 0);
20178
20179 ;
20180 return 0;
20181}
20182_ACEOF
20183rm -f conftest$ac_exeext
20184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20185 (eval $ac_link) 2>&5
20186 ac_status=$?
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190 (eval $ac_try) 2>&5
20191 ac_status=$?
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; }; then
20194 OMP_LOCK_25_ALIGN=`cat conftest.val`
20195else
20196 echo "$as_me: program exited with status $ac_status" >&5
20197echo "$as_me: failed program was:" >&5
20198sed 's/^/| /' conftest.$ac_ext >&5
20199
20200fi
20201rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20202fi
20203fi
20204rm -f conftest.val
20205if test "$cross_compiling" = yes; then
20206 # Depending upon the size, compute the lo and hi bounds.
20207cat >conftest.$ac_ext <<_ACEOF
20208/* confdefs.h. */
20209_ACEOF
20210cat confdefs.h >>conftest.$ac_ext
20211cat >>conftest.$ac_ext <<_ACEOF
20212/* end confdefs.h. */
20213
20214int
20215main ()
20216{
20217static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) >= 0)];
20218test_array [0] = 0
20219
20220 ;
20221 return 0;
20222}
20223_ACEOF
20224rm -f conftest.$ac_objext
20225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20226 (eval $ac_compile) 2>conftest.er1
20227 ac_status=$?
20228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } &&
20233 { ac_try='test -z "$ac_c_werror_flag"
20234 || test ! -s conftest.err'
20235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236 (eval $ac_try) 2>&5
20237 ac_status=$?
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; } &&
20240 { ac_try='test -s conftest.$ac_objext'
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20243 ac_status=$?
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
20246 ac_lo=0 ac_mid=0
20247 while :; do
20248 cat >conftest.$ac_ext <<_ACEOF
20249/* confdefs.h. */
20250_ACEOF
20251cat confdefs.h >>conftest.$ac_ext
20252cat >>conftest.$ac_ext <<_ACEOF
20253/* end confdefs.h. */
20254
20255int
20256main ()
20257{
20258static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) <= $ac_mid)];
20259test_array [0] = 0
20260
20261 ;
20262 return 0;
20263}
20264_ACEOF
20265rm -f conftest.$ac_objext
20266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20267 (eval $ac_compile) 2>conftest.er1
20268 ac_status=$?
20269 grep -v '^ *+' conftest.er1 >conftest.err
20270 rm -f conftest.er1
20271 cat conftest.err >&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } &&
20274 { ac_try='test -z "$ac_c_werror_flag"
20275 || test ! -s conftest.err'
20276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277 (eval $ac_try) 2>&5
20278 ac_status=$?
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); }; } &&
20281 { ac_try='test -s conftest.$ac_objext'
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20284 ac_status=$?
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; }; then
20287 ac_hi=$ac_mid; break
20288else
20289 echo "$as_me: failed program was:" >&5
20290sed 's/^/| /' conftest.$ac_ext >&5
20291
20292ac_lo=`expr $ac_mid + 1`
20293 if test $ac_lo -le $ac_mid; then
20294 ac_lo= ac_hi=
20295 break
20296 fi
20297 ac_mid=`expr 2 '*' $ac_mid + 1`
20298fi
20299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20300 done
20301else
20302 echo "$as_me: failed program was:" >&5
20303sed 's/^/| /' conftest.$ac_ext >&5
20304
20305cat >conftest.$ac_ext <<_ACEOF
20306/* confdefs.h. */
20307_ACEOF
20308cat confdefs.h >>conftest.$ac_ext
20309cat >>conftest.$ac_ext <<_ACEOF
20310/* end confdefs.h. */
20311
20312int
20313main ()
20314{
20315static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) < 0)];
20316test_array [0] = 0
20317
20318 ;
20319 return 0;
20320}
20321_ACEOF
20322rm -f conftest.$ac_objext
20323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20324 (eval $ac_compile) 2>conftest.er1
20325 ac_status=$?
20326 grep -v '^ *+' conftest.er1 >conftest.err
20327 rm -f conftest.er1
20328 cat conftest.err >&5
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); } &&
20331 { ac_try='test -z "$ac_c_werror_flag"
20332 || test ! -s conftest.err'
20333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20334 (eval $ac_try) 2>&5
20335 ac_status=$?
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); }; } &&
20338 { ac_try='test -s conftest.$ac_objext'
20339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340 (eval $ac_try) 2>&5
20341 ac_status=$?
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; }; then
20344 ac_hi=-1 ac_mid=-1
20345 while :; do
20346 cat >conftest.$ac_ext <<_ACEOF
20347/* confdefs.h. */
20348_ACEOF
20349cat confdefs.h >>conftest.$ac_ext
20350cat >>conftest.$ac_ext <<_ACEOF
20351/* end confdefs.h. */
20352
20353int
20354main ()
20355{
20356static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) >= $ac_mid)];
20357test_array [0] = 0
20358
20359 ;
20360 return 0;
20361}
20362_ACEOF
20363rm -f conftest.$ac_objext
20364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20365 (eval $ac_compile) 2>conftest.er1
20366 ac_status=$?
20367 grep -v '^ *+' conftest.er1 >conftest.err
20368 rm -f conftest.er1
20369 cat conftest.err >&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } &&
20372 { ac_try='test -z "$ac_c_werror_flag"
20373 || test ! -s conftest.err'
20374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375 (eval $ac_try) 2>&5
20376 ac_status=$?
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; } &&
20379 { ac_try='test -s conftest.$ac_objext'
20380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381 (eval $ac_try) 2>&5
20382 ac_status=$?
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; }; then
20385 ac_lo=$ac_mid; break
20386else
20387 echo "$as_me: failed program was:" >&5
20388sed 's/^/| /' conftest.$ac_ext >&5
20389
20390ac_hi=`expr '(' $ac_mid ')' - 1`
20391 if test $ac_mid -le $ac_hi; then
20392 ac_lo= ac_hi=
20393 break
20394 fi
20395 ac_mid=`expr 2 '*' $ac_mid`
20396fi
20397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20398 done
20399else
20400 echo "$as_me: failed program was:" >&5
20401sed 's/^/| /' conftest.$ac_ext >&5
20402
20403ac_lo= ac_hi=
20404fi
20405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20406fi
20407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20408# Binary search between lo and hi bounds.
20409while test "x$ac_lo" != "x$ac_hi"; do
20410 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20411 cat >conftest.$ac_ext <<_ACEOF
20412/* confdefs.h. */
20413_ACEOF
20414cat confdefs.h >>conftest.$ac_ext
20415cat >>conftest.$ac_ext <<_ACEOF
20416/* end confdefs.h. */
20417
20418int
20419main ()
20420{
20421static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) <= $ac_mid)];
20422test_array [0] = 0
20423
20424 ;
20425 return 0;
20426}
20427_ACEOF
20428rm -f conftest.$ac_objext
20429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20430 (eval $ac_compile) 2>conftest.er1
20431 ac_status=$?
20432 grep -v '^ *+' conftest.er1 >conftest.err
20433 rm -f conftest.er1
20434 cat conftest.err >&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } &&
20437 { ac_try='test -z "$ac_c_werror_flag"
20438 || test ! -s conftest.err'
20439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440 (eval $ac_try) 2>&5
20441 ac_status=$?
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); }; } &&
20444 { ac_try='test -s conftest.$ac_objext'
20445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446 (eval $ac_try) 2>&5
20447 ac_status=$?
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; }; then
20450 ac_hi=$ac_mid
20451else
20452 echo "$as_me: failed program was:" >&5
20453sed 's/^/| /' conftest.$ac_ext >&5
20454
20455ac_lo=`expr '(' $ac_mid ')' + 1`
20456fi
20457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20458done
20459case $ac_lo in
20460?*) OMP_NEST_LOCK_25_SIZE=$ac_lo;;
20461'') ;;
20462esac
20463else
20464 if test "$cross_compiling" = yes; then
18c04407
RW
20465 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20466echo "$as_me: error: in \`$ac_pwd':" >&2;}
20467{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
a68ab351
JJ
20468See \`config.log' for more details." >&5
20469echo "$as_me: error: cannot run test program while cross compiling
20470See \`config.log' for more details." >&2;}
18c04407 20471 { (exit 1); exit 1; }; }; }
a68ab351
JJ
20472else
20473 cat >conftest.$ac_ext <<_ACEOF
20474/* confdefs.h. */
20475_ACEOF
20476cat confdefs.h >>conftest.$ac_ext
20477cat >>conftest.$ac_ext <<_ACEOF
20478/* end confdefs.h. */
20479
20480long longval () { return sizeof (omp_nest_lock_25_t); }
20481unsigned long ulongval () { return sizeof (omp_nest_lock_25_t); }
20482#include <stdio.h>
20483#include <stdlib.h>
20484int
20485main ()
20486{
20487
20488 FILE *f = fopen ("conftest.val", "w");
20489 if (! f)
20490 exit (1);
20491 if ((sizeof (omp_nest_lock_25_t)) < 0)
20492 {
20493 long i = longval ();
20494 if (i != (sizeof (omp_nest_lock_25_t)))
20495 exit (1);
20496 fprintf (f, "%ld\n", i);
20497 }
20498 else
20499 {
20500 unsigned long i = ulongval ();
20501 if (i != (sizeof (omp_nest_lock_25_t)))
20502 exit (1);
20503 fprintf (f, "%lu\n", i);
20504 }
20505 exit (ferror (f) || fclose (f) != 0);
20506
20507 ;
20508 return 0;
20509}
20510_ACEOF
20511rm -f conftest$ac_exeext
20512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20513 (eval $ac_link) 2>&5
20514 ac_status=$?
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20518 (eval $ac_try) 2>&5
20519 ac_status=$?
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); }; }; then
20522 OMP_NEST_LOCK_25_SIZE=`cat conftest.val`
20523else
20524 echo "$as_me: program exited with status $ac_status" >&5
20525echo "$as_me: failed program was:" >&5
20526sed 's/^/| /' conftest.$ac_ext >&5
20527
20528fi
20529rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20530fi
20531fi
20532rm -f conftest.val
20533if test "$cross_compiling" = yes; then
20534 # Depending upon the size, compute the lo and hi bounds.
20535cat >conftest.$ac_ext <<_ACEOF
20536/* confdefs.h. */
20537_ACEOF
20538cat confdefs.h >>conftest.$ac_ext
20539cat >>conftest.$ac_ext <<_ACEOF
20540/* end confdefs.h. */
20541
20542int
20543main ()
20544{
20545static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) >= 0)];
20546test_array [0] = 0
20547
20548 ;
20549 return 0;
20550}
20551_ACEOF
20552rm -f conftest.$ac_objext
20553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20554 (eval $ac_compile) 2>conftest.er1
20555 ac_status=$?
20556 grep -v '^ *+' conftest.er1 >conftest.err
20557 rm -f conftest.er1
20558 cat conftest.err >&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); } &&
20561 { ac_try='test -z "$ac_c_werror_flag"
20562 || test ! -s conftest.err'
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20565 ac_status=$?
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; } &&
20568 { ac_try='test -s conftest.$ac_objext'
20569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570 (eval $ac_try) 2>&5
20571 ac_status=$?
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; }; then
20574 ac_lo=0 ac_mid=0
20575 while :; do
20576 cat >conftest.$ac_ext <<_ACEOF
20577/* confdefs.h. */
20578_ACEOF
20579cat confdefs.h >>conftest.$ac_ext
20580cat >>conftest.$ac_ext <<_ACEOF
20581/* end confdefs.h. */
20582
20583int
20584main ()
20585{
20586static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) <= $ac_mid)];
20587test_array [0] = 0
20588
20589 ;
20590 return 0;
20591}
20592_ACEOF
20593rm -f conftest.$ac_objext
20594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20595 (eval $ac_compile) 2>conftest.er1
20596 ac_status=$?
20597 grep -v '^ *+' conftest.er1 >conftest.err
20598 rm -f conftest.er1
20599 cat conftest.err >&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); } &&
20602 { ac_try='test -z "$ac_c_werror_flag"
20603 || test ! -s conftest.err'
20604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20605 (eval $ac_try) 2>&5
20606 ac_status=$?
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); }; } &&
20609 { ac_try='test -s conftest.$ac_objext'
20610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20611 (eval $ac_try) 2>&5
20612 ac_status=$?
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); }; }; then
20615 ac_hi=$ac_mid; break
20616else
20617 echo "$as_me: failed program was:" >&5
20618sed 's/^/| /' conftest.$ac_ext >&5
20619
20620ac_lo=`expr $ac_mid + 1`
20621 if test $ac_lo -le $ac_mid; then
20622 ac_lo= ac_hi=
20623 break
20624 fi
20625 ac_mid=`expr 2 '*' $ac_mid + 1`
20626fi
20627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20628 done
20629else
20630 echo "$as_me: failed program was:" >&5
20631sed 's/^/| /' conftest.$ac_ext >&5
20632
20633cat >conftest.$ac_ext <<_ACEOF
20634/* confdefs.h. */
20635_ACEOF
20636cat confdefs.h >>conftest.$ac_ext
20637cat >>conftest.$ac_ext <<_ACEOF
20638/* end confdefs.h. */
20639
20640int
20641main ()
20642{
20643static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) < 0)];
20644test_array [0] = 0
20645
20646 ;
20647 return 0;
20648}
20649_ACEOF
20650rm -f conftest.$ac_objext
20651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20652 (eval $ac_compile) 2>conftest.er1
20653 ac_status=$?
20654 grep -v '^ *+' conftest.er1 >conftest.err
20655 rm -f conftest.er1
20656 cat conftest.err >&5
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); } &&
20659 { ac_try='test -z "$ac_c_werror_flag"
20660 || test ! -s conftest.err'
20661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662 (eval $ac_try) 2>&5
20663 ac_status=$?
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); }; } &&
20666 { ac_try='test -s conftest.$ac_objext'
20667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20668 (eval $ac_try) 2>&5
20669 ac_status=$?
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); }; }; then
20672 ac_hi=-1 ac_mid=-1
20673 while :; do
20674 cat >conftest.$ac_ext <<_ACEOF
20675/* confdefs.h. */
20676_ACEOF
20677cat confdefs.h >>conftest.$ac_ext
20678cat >>conftest.$ac_ext <<_ACEOF
20679/* end confdefs.h. */
20680
20681int
20682main ()
20683{
20684static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) >= $ac_mid)];
20685test_array [0] = 0
20686
20687 ;
20688 return 0;
20689}
20690_ACEOF
20691rm -f conftest.$ac_objext
20692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20693 (eval $ac_compile) 2>conftest.er1
20694 ac_status=$?
20695 grep -v '^ *+' conftest.er1 >conftest.err
20696 rm -f conftest.er1
20697 cat conftest.err >&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); } &&
20700 { ac_try='test -z "$ac_c_werror_flag"
20701 || test ! -s conftest.err'
20702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20703 (eval $ac_try) 2>&5
20704 ac_status=$?
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); }; } &&
20707 { ac_try='test -s conftest.$ac_objext'
20708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709 (eval $ac_try) 2>&5
20710 ac_status=$?
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; }; then
20713 ac_lo=$ac_mid; break
20714else
20715 echo "$as_me: failed program was:" >&5
20716sed 's/^/| /' conftest.$ac_ext >&5
20717
20718ac_hi=`expr '(' $ac_mid ')' - 1`
20719 if test $ac_mid -le $ac_hi; then
20720 ac_lo= ac_hi=
20721 break
20722 fi
20723 ac_mid=`expr 2 '*' $ac_mid`
20724fi
20725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20726 done
20727else
20728 echo "$as_me: failed program was:" >&5
20729sed 's/^/| /' conftest.$ac_ext >&5
20730
20731ac_lo= ac_hi=
20732fi
20733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20734fi
20735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20736# Binary search between lo and hi bounds.
20737while test "x$ac_lo" != "x$ac_hi"; do
20738 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20739 cat >conftest.$ac_ext <<_ACEOF
20740/* confdefs.h. */
20741_ACEOF
20742cat confdefs.h >>conftest.$ac_ext
20743cat >>conftest.$ac_ext <<_ACEOF
20744/* end confdefs.h. */
20745
20746int
20747main ()
20748{
20749static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) <= $ac_mid)];
20750test_array [0] = 0
20751
20752 ;
20753 return 0;
20754}
20755_ACEOF
20756rm -f conftest.$ac_objext
20757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20758 (eval $ac_compile) 2>conftest.er1
20759 ac_status=$?
20760 grep -v '^ *+' conftest.er1 >conftest.err
20761 rm -f conftest.er1
20762 cat conftest.err >&5
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); } &&
20765 { ac_try='test -z "$ac_c_werror_flag"
20766 || test ! -s conftest.err'
20767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20768 (eval $ac_try) 2>&5
20769 ac_status=$?
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); }; } &&
20772 { ac_try='test -s conftest.$ac_objext'
20773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20774 (eval $ac_try) 2>&5
20775 ac_status=$?
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); }; }; then
20778 ac_hi=$ac_mid
20779else
20780 echo "$as_me: failed program was:" >&5
20781sed 's/^/| /' conftest.$ac_ext >&5
20782
20783ac_lo=`expr '(' $ac_mid ')' + 1`
20784fi
20785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20786done
20787case $ac_lo in
20788?*) OMP_NEST_LOCK_25_ALIGN=$ac_lo;;
20789'') ;;
20790esac
20791else
20792 if test "$cross_compiling" = yes; then
18c04407
RW
20793 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20794echo "$as_me: error: in \`$ac_pwd':" >&2;}
20795{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
a68ab351
JJ
20796See \`config.log' for more details." >&5
20797echo "$as_me: error: cannot run test program while cross compiling
20798See \`config.log' for more details." >&2;}
18c04407 20799 { (exit 1); exit 1; }; }; }
a68ab351
JJ
20800else
20801 cat >conftest.$ac_ext <<_ACEOF
20802/* confdefs.h. */
20803_ACEOF
20804cat confdefs.h >>conftest.$ac_ext
20805cat >>conftest.$ac_ext <<_ACEOF
20806/* end confdefs.h. */
20807
20808long longval () { return __alignof (omp_nest_lock_25_t); }
20809unsigned long ulongval () { return __alignof (omp_nest_lock_25_t); }
20810#include <stdio.h>
20811#include <stdlib.h>
20812int
20813main ()
20814{
20815
20816 FILE *f = fopen ("conftest.val", "w");
20817 if (! f)
20818 exit (1);
20819 if ((__alignof (omp_nest_lock_25_t)) < 0)
20820 {
20821 long i = longval ();
20822 if (i != (__alignof (omp_nest_lock_25_t)))
20823 exit (1);
20824 fprintf (f, "%ld\n", i);
20825 }
20826 else
20827 {
20828 unsigned long i = ulongval ();
20829 if (i != (__alignof (omp_nest_lock_25_t)))
20830 exit (1);
20831 fprintf (f, "%lu\n", i);
20832 }
20833 exit (ferror (f) || fclose (f) != 0);
20834
20835 ;
20836 return 0;
20837}
20838_ACEOF
20839rm -f conftest$ac_exeext
20840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20841 (eval $ac_link) 2>&5
20842 ac_status=$?
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846 (eval $ac_try) 2>&5
20847 ac_status=$?
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; }; then
20850 OMP_NEST_LOCK_25_ALIGN=`cat conftest.val`
20851else
20852 echo "$as_me: program exited with status $ac_status" >&5
20853echo "$as_me: failed program was:" >&5
20854sed 's/^/| /' conftest.$ac_ext >&5
20855
20856fi
20857rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20858fi
20859fi
20860rm -f conftest.val
20861
20862# If the lock fits in an integer, then arrange for Fortran to use that
20863# integer. If it doesn't, then arrange for Fortran to use a pointer.
20864# Except that we don't have a way at present to multi-lib the installed
20865# Fortran modules, so we assume 8 bytes for pointers, regardless of the
20866# actual target.
20867OMP_LOCK_KIND=$OMP_LOCK_SIZE
20868OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
20869if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
20870 OMP_LOCK_KIND=8
20871fi
20872if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
20873 OMP_NEST_LOCK_KIND=8
20874fi
20875OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
20876OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
20877if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
20878 OMP_LOCK_25_KIND=8
20879fi
20880if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
20881 OMP_NEST_LOCK_25_KIND=8
20882fi
20883
20884
20885
20886
20887
20888
03b8fe49
PB
20889
20890
20891
20892
20893
20894
20895
20896CFLAGS="$save_CFLAGS"
20897
20898 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
20899
953ff289
DN
20900 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
20901
20902cat >confcache <<\_ACEOF
20903# This file is a shell script that caches the results of configure
20904# tests run on this system so they can be shared between configure
20905# scripts and configure runs, see configure's option --config-cache.
20906# It is not useful on other systems. If it contains results you don't
20907# want to keep, you may remove or edit it.
20908#
20909# config.status only pays attention to the cache file if you give it
20910# the --recheck option to rerun configure.
20911#
20912# `ac_cv_env_foo' variables (set or unset) will be overridden when
20913# loading this file, other *unset* `ac_cv_foo' will be assigned the
20914# following values.
20915
20916_ACEOF
20917
20918# The following way of writing the cache mishandles newlines in values,
20919# but we know of no workaround that is simple, portable, and efficient.
20920# So, don't put newlines in cache variables' values.
20921# Ultrix sh set writes to stderr and can't be redirected directly,
20922# and sets the high bit in the cache file unless we assign to the vars.
20923{
20924 (set) 2>&1 |
20925 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20926 *ac_space=\ *)
20927 # `set' does not quote correctly, so add quotes (double-quote
20928 # substitution turns \\\\ into \\, and sed turns \\ into \).
20929 sed -n \
20930 "s/'/'\\\\''/g;
20931 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20932 ;;
20933 *)
20934 # `set' quotes correctly as required by POSIX, so do not add quotes.
20935 sed -n \
20936 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20937 ;;
20938 esac;
20939} |
20940 sed '
20941 t clear
20942 : clear
20943 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20944 t end
20945 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20946 : end' >>confcache
20947if diff $cache_file confcache >/dev/null 2>&1; then :; else
20948 if test -w $cache_file; then
20949 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20950 cat confcache >$cache_file
20951 else
20952 echo "not updating unwritable cache $cache_file"
20953 fi
20954fi
20955rm -f confcache
20956
20957test "x$prefix" = xNONE && prefix=$ac_default_prefix
20958# Let make expand exec_prefix.
20959test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20960
20961# VPATH may cause trouble with some makes, so we remove $(srcdir),
20962# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20963# trailing colons and then remove the whole line if VPATH becomes empty
20964# (actually we leave an empty line to preserve line numbers).
20965if test "x$srcdir" = x.; then
20966 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20967s/:*\$(srcdir):*/:/;
20968s/:*\${srcdir}:*/:/;
20969s/:*@srcdir@:*/:/;
20970s/^\([^=]*=[ ]*\):*/\1/;
20971s/:*$//;
20972s/^[^=]*=[ ]*$//;
20973}'
20974fi
20975
20976DEFS=-DHAVE_CONFIG_H
20977
20978ac_libobjs=
20979ac_ltlibobjs=
20980for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20981 # 1. Remove the extension, and $U if already installed.
20982 ac_i=`echo "$ac_i" |
20983 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20984 # 2. Add them.
20985 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20986 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20987done
20988LIBOBJS=$ac_libobjs
20989
20990LTLIBOBJS=$ac_ltlibobjs
20991
20992
627ab4b8
TT
20993if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
20994 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
20995Usually this means the macro was only invoked conditionally." >&5
20996echo "$as_me: error: conditional \"GENINSRC\" was never defined.
20997Usually this means the macro was only invoked conditionally." >&2;}
20998 { (exit 1); exit 1; }; }
20999fi
953ff289
DN
21000if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21001 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21002Usually this means the macro was only invoked conditionally." >&5
21003echo "$as_me: error: conditional \"AMDEP\" was never defined.
21004Usually this means the macro was only invoked conditionally." >&2;}
21005 { (exit 1); exit 1; }; }
21006fi
21007if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21008 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21009Usually this means the macro was only invoked conditionally." >&5
21010echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21011Usually this means the macro was only invoked conditionally." >&2;}
21012 { (exit 1); exit 1; }; }
21013fi
748b9d7c
DF
21014if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
21015 { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
21016Usually this means the macro was only invoked conditionally." >&5
21017echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
21018Usually this means the macro was only invoked conditionally." >&2;}
21019 { (exit 1); exit 1; }; }
21020fi
c41303c6
RH
21021if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21022 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21023Usually this means the macro was only invoked conditionally." >&5
21024echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21025Usually this means the macro was only invoked conditionally." >&2;}
21026 { (exit 1); exit 1; }; }
21027fi
953ff289
DN
21028if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
21029 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
21030Usually this means the macro was only invoked conditionally." >&5
21031echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
21032Usually this means the macro was only invoked conditionally." >&2;}
21033 { (exit 1); exit 1; }; }
21034fi
21035if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
21036 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
21037Usually this means the macro was only invoked conditionally." >&5
21038echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
21039Usually this means the macro was only invoked conditionally." >&2;}
21040 { (exit 1); exit 1; }; }
21041fi
21042
21043: ${CONFIG_STATUS=./config.status}
21044ac_clean_files_save=$ac_clean_files
21045ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21046{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21047echo "$as_me: creating $CONFIG_STATUS" >&6;}
21048cat >$CONFIG_STATUS <<_ACEOF
21049#! $SHELL
21050# Generated by $as_me.
21051# Run this file to recreate the current configuration.
21052# Compiler output produced by configure, useful for debugging
21053# configure, is in config.log if it exists.
21054
21055debug=false
21056ac_cs_recheck=false
21057ac_cs_silent=false
21058SHELL=\${CONFIG_SHELL-$SHELL}
21059_ACEOF
21060
21061cat >>$CONFIG_STATUS <<\_ACEOF
21062## --------------------- ##
21063## M4sh Initialization. ##
21064## --------------------- ##
21065
21066# Be Bourne compatible
21067if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21068 emulate sh
21069 NULLCMD=:
21070 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21071 # is contrary to our usage. Disable this feature.
21072 alias -g '${1+"$@"}'='"$@"'
21073elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21074 set -o posix
21075fi
21076DUALCASE=1; export DUALCASE # for MKS sh
21077
21078# Support unset when possible.
21079if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21080 as_unset=unset
21081else
21082 as_unset=false
21083fi
21084
21085
21086# Work around bugs in pre-3.0 UWIN ksh.
21087$as_unset ENV MAIL MAILPATH
21088PS1='$ '
21089PS2='> '
21090PS4='+ '
21091
21092# NLS nuisances.
21093for as_var in \
21094 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21095 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21096 LC_TELEPHONE LC_TIME
21097do
21098 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21099 eval $as_var=C; export $as_var
21100 else
21101 $as_unset $as_var
21102 fi
21103done
21104
21105# Required to use basename.
21106if expr a : '\(a\)' >/dev/null 2>&1; then
21107 as_expr=expr
21108else
21109 as_expr=false
21110fi
21111
21112if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21113 as_basename=basename
21114else
21115 as_basename=false
21116fi
21117
21118
21119# Name of the executable.
21120as_me=`$as_basename "$0" ||
21121$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21122 X"$0" : 'X\(//\)$' \| \
21123 X"$0" : 'X\(/\)$' \| \
21124 . : '\(.\)' 2>/dev/null ||
21125echo X/"$0" |
21126 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21127 /^X\/\(\/\/\)$/{ s//\1/; q; }
21128 /^X\/\(\/\).*/{ s//\1/; q; }
21129 s/.*/./; q'`
21130
21131
21132# PATH needs CR, and LINENO needs CR and PATH.
21133# Avoid depending upon Character Ranges.
21134as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21135as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21136as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21137as_cr_digits='0123456789'
21138as_cr_alnum=$as_cr_Letters$as_cr_digits
21139
21140# The user is always right.
21141if test "${PATH_SEPARATOR+set}" != set; then
21142 echo "#! /bin/sh" >conf$$.sh
21143 echo "exit 0" >>conf$$.sh
21144 chmod +x conf$$.sh
21145 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21146 PATH_SEPARATOR=';'
21147 else
21148 PATH_SEPARATOR=:
21149 fi
21150 rm -f conf$$.sh
21151fi
21152
21153
21154 as_lineno_1=$LINENO
21155 as_lineno_2=$LINENO
21156 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21157 test "x$as_lineno_1" != "x$as_lineno_2" &&
21158 test "x$as_lineno_3" = "x$as_lineno_2" || {
21159 # Find who we are. Look in the path if we contain no path at all
21160 # relative or not.
21161 case $0 in
21162 *[\\/]* ) as_myself=$0 ;;
21163 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21164for as_dir in $PATH
21165do
21166 IFS=$as_save_IFS
21167 test -z "$as_dir" && as_dir=.
21168 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21169done
21170
21171 ;;
21172 esac
21173 # We did not find ourselves, most probably we were run as `sh COMMAND'
21174 # in which case we are not to be found in the path.
21175 if test "x$as_myself" = x; then
21176 as_myself=$0
21177 fi
21178 if test ! -f "$as_myself"; then
21179 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21180echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21181 { (exit 1); exit 1; }; }
21182 fi
21183 case $CONFIG_SHELL in
21184 '')
21185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21186for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21187do
21188 IFS=$as_save_IFS
21189 test -z "$as_dir" && as_dir=.
21190 for as_base in sh bash ksh sh5; do
21191 case $as_dir in
21192 /*)
21193 if ("$as_dir/$as_base" -c '
21194 as_lineno_1=$LINENO
21195 as_lineno_2=$LINENO
21196 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21197 test "x$as_lineno_1" != "x$as_lineno_2" &&
21198 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21199 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21200 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21201 CONFIG_SHELL=$as_dir/$as_base
21202 export CONFIG_SHELL
21203 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21204 fi;;
21205 esac
21206 done
21207done
21208;;
21209 esac
21210
21211 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21212 # uniformly replaced by the line number. The first 'sed' inserts a
21213 # line-number line before each line; the second 'sed' does the real
21214 # work. The second script uses 'N' to pair each line-number line
21215 # with the numbered line, and appends trailing '-' during
21216 # substitution so that $LINENO is not a special case at line end.
21217 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21218 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21219 sed '=' <$as_myself |
21220 sed '
21221 N
21222 s,$,-,
21223 : loop
21224 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21225 t loop
21226 s,-$,,
21227 s,^['$as_cr_digits']*\n,,
21228 ' >$as_me.lineno &&
21229 chmod +x $as_me.lineno ||
21230 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21231echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21232 { (exit 1); exit 1; }; }
21233
21234 # Don't try to exec as it changes $[0], causing all sort of problems
21235 # (the dirname of $[0] is not the place where we might find the
21236 # original and so on. Autoconf is especially sensible to this).
21237 . ./$as_me.lineno
21238 # Exit status is that of the last command.
21239 exit
21240}
21241
21242
21243case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21244 *c*,-n*) ECHO_N= ECHO_C='
21245' ECHO_T=' ' ;;
21246 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21247 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21248esac
21249
21250if expr a : '\(a\)' >/dev/null 2>&1; then
21251 as_expr=expr
21252else
21253 as_expr=false
21254fi
21255
21256rm -f conf$$ conf$$.exe conf$$.file
21257echo >conf$$.file
21258if ln -s conf$$.file conf$$ 2>/dev/null; then
21259 # We could just check for DJGPP; but this test a) works b) is more generic
21260 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21261 if test -f conf$$.exe; then
21262 # Don't use ln at all; we don't have any links
21263 as_ln_s='cp -p'
21264 else
21265 as_ln_s='ln -s'
21266 fi
21267elif ln conf$$.file conf$$ 2>/dev/null; then
21268 as_ln_s=ln
21269else
21270 as_ln_s='cp -p'
21271fi
21272rm -f conf$$ conf$$.exe conf$$.file
21273
21274if mkdir -p . 2>/dev/null; then
21275 as_mkdir_p=:
21276else
21277 test -d ./-p && rmdir ./-p
21278 as_mkdir_p=false
21279fi
21280
21281as_executable_p="test -f"
21282
21283# Sed expression to map a string onto a valid CPP name.
21284as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21285
21286# Sed expression to map a string onto a valid variable name.
21287as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21288
21289
21290# IFS
21291# We need space, tab and new line, in precisely that order.
21292as_nl='
21293'
21294IFS=" $as_nl"
21295
21296# CDPATH.
21297$as_unset CDPATH
21298
21299exec 6>&1
21300
21301# Open the log real soon, to keep \$[0] and so on meaningful, and to
21302# report actual input values of CONFIG_FILES etc. instead of their
21303# values after options handling. Logging --version etc. is OK.
21304exec 5>>config.log
21305{
21306 echo
21307 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21308## Running $as_me. ##
21309_ASBOX
21310} >&5
21311cat >&5 <<_CSEOF
21312
21313This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
21314generated by GNU Autoconf 2.59. Invocation command line was
21315
21316 CONFIG_FILES = $CONFIG_FILES
21317 CONFIG_HEADERS = $CONFIG_HEADERS
21318 CONFIG_LINKS = $CONFIG_LINKS
21319 CONFIG_COMMANDS = $CONFIG_COMMANDS
21320 $ $0 $@
21321
21322_CSEOF
21323echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21324echo >&5
21325_ACEOF
21326
21327# Files that config.status was made for.
21328if test -n "$ac_config_files"; then
21329 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21330fi
21331
21332if test -n "$ac_config_headers"; then
21333 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21334fi
21335
21336if test -n "$ac_config_links"; then
21337 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21338fi
21339
21340if test -n "$ac_config_commands"; then
21341 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21342fi
21343
21344cat >>$CONFIG_STATUS <<\_ACEOF
21345
21346ac_cs_usage="\
21347\`$as_me' instantiates files from templates according to the
21348current configuration.
21349
21350Usage: $0 [OPTIONS] [FILE]...
21351
21352 -h, --help print this help, then exit
21353 -V, --version print version number, then exit
21354 -q, --quiet do not print progress messages
21355 -d, --debug don't remove temporary files
21356 --recheck update $as_me by reconfiguring in the same conditions
21357 --file=FILE[:TEMPLATE]
21358 instantiate the configuration file FILE
21359 --header=FILE[:TEMPLATE]
21360 instantiate the configuration header FILE
21361
21362Configuration files:
21363$config_files
21364
21365Configuration headers:
21366$config_headers
21367
21368Configuration commands:
21369$config_commands
21370
21371Report bugs to <bug-autoconf@gnu.org>."
21372_ACEOF
21373
21374cat >>$CONFIG_STATUS <<_ACEOF
21375ac_cs_version="\\
21376GNU OpenMP Runtime Library config.status 1.0
21377configured by $0, generated by GNU Autoconf 2.59,
21378 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21379
21380Copyright (C) 2003 Free Software Foundation, Inc.
21381This config.status script is free software; the Free Software Foundation
21382gives unlimited permission to copy, distribute and modify it."
21383srcdir=$srcdir
21384INSTALL="$INSTALL"
21385_ACEOF
21386
21387cat >>$CONFIG_STATUS <<\_ACEOF
21388# If no file are specified by the user, then we need to provide default
21389# value. By we need to know if files were specified by the user.
21390ac_need_defaults=:
21391while test $# != 0
21392do
21393 case $1 in
21394 --*=*)
21395 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21396 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21397 ac_shift=:
21398 ;;
21399 -*)
21400 ac_option=$1
21401 ac_optarg=$2
21402 ac_shift=shift
21403 ;;
21404 *) # This is not an option, so the user has probably given explicit
21405 # arguments.
21406 ac_option=$1
21407 ac_need_defaults=false;;
21408 esac
21409
21410 case $ac_option in
21411 # Handling of the options.
21412_ACEOF
21413cat >>$CONFIG_STATUS <<\_ACEOF
21414 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21415 ac_cs_recheck=: ;;
21416 --version | --vers* | -V )
21417 echo "$ac_cs_version"; exit 0 ;;
21418 --he | --h)
21419 # Conflict between --help and --header
21420 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21421Try \`$0 --help' for more information." >&5
21422echo "$as_me: error: ambiguous option: $1
21423Try \`$0 --help' for more information." >&2;}
21424 { (exit 1); exit 1; }; };;
21425 --help | --hel | -h )
21426 echo "$ac_cs_usage"; exit 0 ;;
21427 --debug | --d* | -d )
21428 debug=: ;;
21429 --file | --fil | --fi | --f )
21430 $ac_shift
21431 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21432 ac_need_defaults=false;;
21433 --header | --heade | --head | --hea )
21434 $ac_shift
21435 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21436 ac_need_defaults=false;;
21437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21438 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21439 ac_cs_silent=: ;;
21440
21441 # This is an error.
21442 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21443Try \`$0 --help' for more information." >&5
21444echo "$as_me: error: unrecognized option: $1
21445Try \`$0 --help' for more information." >&2;}
21446 { (exit 1); exit 1; }; } ;;
21447
21448 *) ac_config_targets="$ac_config_targets $1" ;;
21449
21450 esac
21451 shift
21452done
21453
21454ac_configure_extra_args=
21455
21456if $ac_cs_silent; then
21457 exec 6>/dev/null
21458 ac_configure_extra_args="$ac_configure_extra_args --silent"
21459fi
21460
21461_ACEOF
21462cat >>$CONFIG_STATUS <<_ACEOF
21463if \$ac_cs_recheck; then
21464 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21465 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21466fi
21467
21468_ACEOF
21469
21470cat >>$CONFIG_STATUS <<_ACEOF
21471#
21472# INIT-COMMANDS section.
21473#
21474
21475
21476srcdir="$srcdir"
21477host="$host"
21478target="$target"
21479with_multisubdir="$with_multisubdir"
21480with_multisrctop="$with_multisrctop"
21481with_target_subdir="$with_target_subdir"
21482ac_configure_args="${multilib_arg} ${ac_configure_args}"
21483multi_basedir="$multi_basedir"
21484CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
21485CC="$CC"
21486AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21487
1cf3d07d
SE
21488
21489# The HP-UX ksh and POSIX shell print the target directory to stdout
21490# if CDPATH is set.
21491(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21492
21493sed_quote_subst='$sed_quote_subst'
21494double_quote_subst='$double_quote_subst'
21495delay_variable_subst='$delay_variable_subst'
21496macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21497macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21498enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21499enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21500pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21501enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21502host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21503host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21504host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21505build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21506build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21507build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21508SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21509Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21510GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21511EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21512FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21513LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21514NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21515LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21516max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21517ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21518exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21519lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21520lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21521lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21522reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21523reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21524deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21525file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21526AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21527AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21528STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21529RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21530old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21531old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21532old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21533CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21534CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21535compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21536GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21537lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21538lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21539lt_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"`'
21540objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21541SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21542ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21543MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21544lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21545lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21546lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21547lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21548lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21549need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21550libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21551shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21552extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21553archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21554enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21555export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21556whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21557compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21558old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21559old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21560archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21561archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21562module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21563module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21564with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21565allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21566no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21567hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21568hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21569hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21570hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21571hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21572hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21573hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21574hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21575inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21576link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21577fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21578always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21579export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21580exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21581include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21582prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21583file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21584variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21585need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21586need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21587version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21588runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21589shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21590shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21591libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21592library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21593soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21594postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21595postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21596finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21597finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21598hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21599sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21600sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21601hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21602enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21603enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21604enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21605old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21606striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21607predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
21608postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
21609predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
21610postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
21611compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
21612LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
21613old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21614compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
21615GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
21616lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
21617lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
21618lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
21619lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
21620lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
21621archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
21622enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
21623export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
21624whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
21625compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
21626old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21627old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21628archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21629archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21630module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21631module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21632with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
21633allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
21634no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
21635hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
21636hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
21637hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
21638hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
21639hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
21640hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
21641hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
21642hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
21643inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
21644link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
21645fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
21646always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
21647export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21648exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
21649include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
21650prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21651file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
21652hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
21653predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
21654postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
21655predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
21656postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
21657compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
21658
21659LTCC='$LTCC'
21660LTCFLAGS='$LTCFLAGS'
21661compiler='$compiler_DEFAULT'
21662
21663# Quote evaled strings.
21664for var in SED \
21665GREP \
21666EGREP \
21667FGREP \
21668LD \
21669NM \
21670LN_S \
21671lt_SP2NL \
21672lt_NL2SP \
21673reload_flag \
21674deplibs_check_method \
21675file_magic_cmd \
21676AR \
21677AR_FLAGS \
21678STRIP \
21679RANLIB \
21680CC \
21681CFLAGS \
21682compiler \
21683lt_cv_sys_global_symbol_pipe \
21684lt_cv_sys_global_symbol_to_cdecl \
21685lt_cv_sys_global_symbol_to_c_name_address \
21686SHELL \
21687ECHO \
21688lt_prog_compiler_no_builtin_flag \
21689lt_prog_compiler_wl \
21690lt_prog_compiler_pic \
21691lt_prog_compiler_static \
21692lt_cv_prog_compiler_c_o \
21693need_locks \
21694shrext_cmds \
21695export_dynamic_flag_spec \
21696whole_archive_flag_spec \
21697compiler_needs_object \
21698with_gnu_ld \
21699allow_undefined_flag \
21700no_undefined_flag \
21701hardcode_libdir_flag_spec \
21702hardcode_libdir_flag_spec_ld \
21703hardcode_libdir_separator \
21704fix_srcfile_path \
21705exclude_expsyms \
21706include_expsyms \
21707file_list_spec \
21708variables_saved_for_relink \
21709libname_spec \
21710library_names_spec \
21711soname_spec \
21712finish_eval \
21713old_striplib \
21714striplib \
21715predep_objects \
21716postdep_objects \
21717predeps \
21718postdeps \
21719compiler_lib_search_path \
21720LD_FC \
21721compiler_FC \
21722lt_prog_compiler_no_builtin_flag_FC \
21723lt_prog_compiler_wl_FC \
21724lt_prog_compiler_pic_FC \
21725lt_prog_compiler_static_FC \
21726lt_cv_prog_compiler_c_o_FC \
21727export_dynamic_flag_spec_FC \
21728whole_archive_flag_spec_FC \
21729compiler_needs_object_FC \
21730with_gnu_ld_FC \
21731allow_undefined_flag_FC \
21732no_undefined_flag_FC \
21733hardcode_libdir_flag_spec_FC \
21734hardcode_libdir_flag_spec_ld_FC \
21735hardcode_libdir_separator_FC \
21736fix_srcfile_path_FC \
21737exclude_expsyms_FC \
21738include_expsyms_FC \
21739file_list_spec_FC \
21740predep_objects_FC \
21741postdep_objects_FC \
21742predeps_FC \
21743postdeps_FC \
21744compiler_lib_search_path_FC; do
21745 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21746 *[\\\\\\\`\\"\\\$]*)
21747 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21748 ;;
21749 *)
21750 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21751 ;;
21752 esac
21753done
21754
21755# Double-quote double-evaled strings.
21756for var in reload_cmds \
21757old_postinstall_cmds \
21758old_postuninstall_cmds \
21759old_archive_cmds \
21760extract_expsyms_cmds \
21761old_archive_from_new_cmds \
21762old_archive_from_expsyms_cmds \
21763archive_cmds \
21764archive_expsym_cmds \
21765module_cmds \
21766module_expsym_cmds \
21767export_symbols_cmds \
21768prelink_cmds \
21769postinstall_cmds \
21770postuninstall_cmds \
21771finish_cmds \
21772sys_lib_search_path_spec \
21773sys_lib_dlsearch_path_spec \
21774old_archive_cmds_FC \
21775old_archive_from_new_cmds_FC \
21776old_archive_from_expsyms_cmds_FC \
21777archive_cmds_FC \
21778archive_expsym_cmds_FC \
21779module_cmds_FC \
21780module_expsym_cmds_FC \
21781export_symbols_cmds_FC \
21782prelink_cmds_FC; do
21783 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21784 *[\\\\\\\`\\"\\\$]*)
21785 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21786 ;;
21787 *)
21788 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21789 ;;
21790 esac
21791done
21792
21793# Fix-up fallback echo if it was mangled by the above quoting rules.
21794case \$lt_ECHO in
21795*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21796 ;;
21797esac
21798
21799ac_aux_dir='$ac_aux_dir'
21800xsi_shell='$xsi_shell'
21801lt_shell_append='$lt_shell_append'
21802
21803# See if we are running on zsh, and set the options which allow our
21804# commands through without removal of \ escapes INIT.
21805if test -n "\${ZSH_VERSION+set}" ; then
21806 setopt NO_GLOB_SUBST
21807fi
21808
21809
21810 PACKAGE='$PACKAGE'
21811 VERSION='$VERSION'
21812 TIMESTAMP='$TIMESTAMP'
21813 RM='$RM'
21814 ofile='$ofile'
21815
21816
21817
21818
21819
21820
18cbfd85
PB
21821GCC="$GCC"
21822CC="$CC"
21823acx_cv_header_stdint="$acx_cv_header_stdint"
21824acx_cv_type_int8_t="$acx_cv_type_int8_t"
21825acx_cv_type_int16_t="$acx_cv_type_int16_t"
21826acx_cv_type_int32_t="$acx_cv_type_int32_t"
21827acx_cv_type_int64_t="$acx_cv_type_int64_t"
21828acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
21829ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
21830ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
21831ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21832ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21833ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
21834ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21835ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21836ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
21837
21838
953ff289
DN
21839_ACEOF
21840
21841
21842
21843cat >>$CONFIG_STATUS <<\_ACEOF
21844for ac_config_target in $ac_config_targets
21845do
21846 case "$ac_config_target" in
21847 # Handling of arguments.
03b8fe49
PB
21848 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
21849 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
21850 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
21851 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
953ff289
DN
21852 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21853 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
21854 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
21855 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21856 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1cf3d07d 21857 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18cbfd85 21858 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
953ff289
DN
21859 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21860 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21861echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21862 { (exit 1); exit 1; }; };;
21863 esac
21864done
21865
21866# If the user did not use the arguments to specify the items to instantiate,
21867# then the envvar interface is used. Set only those that are not.
21868# We use the long form for the default assignment because of an extremely
21869# bizarre bug on SunOS 4.1.3.
21870if $ac_need_defaults; then
21871 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21872 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21873 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21874fi
21875
21876# Have a temporary directory for convenience. Make it in the build tree
21877# simply because there is no reason to put it here, and in addition,
21878# creating and moving files from /tmp can sometimes cause problems.
21879# Create a temporary directory, and hook for its removal unless debugging.
21880$debug ||
21881{
21882 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21883 trap '{ (exit 1); exit 1; }' 1 2 13 15
21884}
21885
21886# Create a (secure) tmp directory for tmp files.
21887
21888{
21889 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21890 test -n "$tmp" && test -d "$tmp"
21891} ||
21892{
21893 tmp=./confstat$$-$RANDOM
21894 (umask 077 && mkdir $tmp)
21895} ||
21896{
21897 echo "$me: cannot create a temporary directory in ." >&2
21898 { (exit 1); exit 1; }
21899}
21900
21901_ACEOF
21902
21903cat >>$CONFIG_STATUS <<_ACEOF
21904
21905#
21906# CONFIG_FILES section.
21907#
21908
21909# No need to generate the scripts if there are no CONFIG_FILES.
21910# This happens for instance when ./config.status config.h
21911if test -n "\$CONFIG_FILES"; then
21912 # Protect against being on the right side of a sed subst in config.status.
21913 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21914 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21915s,@SHELL@,$SHELL,;t t
21916s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21917s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21918s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21919s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21920s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21921s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21922s,@exec_prefix@,$exec_prefix,;t t
21923s,@prefix@,$prefix,;t t
21924s,@program_transform_name@,$program_transform_name,;t t
21925s,@bindir@,$bindir,;t t
21926s,@sbindir@,$sbindir,;t t
21927s,@libexecdir@,$libexecdir,;t t
21928s,@datadir@,$datadir,;t t
21929s,@sysconfdir@,$sysconfdir,;t t
21930s,@sharedstatedir@,$sharedstatedir,;t t
21931s,@localstatedir@,$localstatedir,;t t
21932s,@libdir@,$libdir,;t t
21933s,@includedir@,$includedir,;t t
21934s,@oldincludedir@,$oldincludedir,;t t
21935s,@infodir@,$infodir,;t t
21936s,@mandir@,$mandir,;t t
21937s,@build_alias@,$build_alias,;t t
21938s,@host_alias@,$host_alias,;t t
21939s,@target_alias@,$target_alias,;t t
21940s,@DEFS@,$DEFS,;t t
21941s,@ECHO_C@,$ECHO_C,;t t
21942s,@ECHO_N@,$ECHO_N,;t t
21943s,@ECHO_T@,$ECHO_T,;t t
21944s,@LIBS@,$LIBS,;t t
627ab4b8
TT
21945s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
21946s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
953ff289
DN
21947s,@build@,$build,;t t
21948s,@build_cpu@,$build_cpu,;t t
21949s,@build_vendor@,$build_vendor,;t t
21950s,@build_os@,$build_os,;t t
21951s,@host@,$host,;t t
21952s,@host_cpu@,$host_cpu,;t t
21953s,@host_vendor@,$host_vendor,;t t
21954s,@host_os@,$host_os,;t t
21955s,@target@,$target,;t t
21956s,@target_cpu@,$target_cpu,;t t
21957s,@target_vendor@,$target_vendor,;t t
21958s,@target_os@,$target_os,;t t
21959s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21960s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21961s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21962s,@CYGPATH_W@,$CYGPATH_W,;t t
21963s,@PACKAGE@,$PACKAGE,;t t
21964s,@VERSION@,$VERSION,;t t
21965s,@ACLOCAL@,$ACLOCAL,;t t
21966s,@AUTOCONF@,$AUTOCONF,;t t
21967s,@AUTOMAKE@,$AUTOMAKE,;t t
21968s,@AUTOHEADER@,$AUTOHEADER,;t t
21969s,@MAKEINFO@,$MAKEINFO,;t t
21970s,@install_sh@,$install_sh,;t t
21971s,@STRIP@,$STRIP,;t t
21972s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21973s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21974s,@mkdir_p@,$mkdir_p,;t t
21975s,@AWK@,$AWK,;t t
21976s,@SET_MAKE@,$SET_MAKE,;t t
21977s,@am__leading_dot@,$am__leading_dot,;t t
21978s,@AMTAR@,$AMTAR,;t t
21979s,@am__tar@,$am__tar,;t t
21980s,@am__untar@,$am__untar,;t t
21981s,@multi_basedir@,$multi_basedir,;t t
21982s,@toolexecdir@,$toolexecdir,;t t
21983s,@toolexeclibdir@,$toolexeclibdir,;t t
21984s,@CC@,$CC,;t t
21985s,@ac_ct_CC@,$ac_ct_CC,;t t
21986s,@EXEEXT@,$EXEEXT,;t t
21987s,@OBJEXT@,$OBJEXT,;t t
21988s,@DEPDIR@,$DEPDIR,;t t
21989s,@am__include@,$am__include,;t t
21990s,@am__quote@,$am__quote,;t t
21991s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21992s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21993s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21994s,@CCDEPMODE@,$CCDEPMODE,;t t
21995s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21996s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21997s,@CFLAGS@,$CFLAGS,;t t
21998s,@AR@,$AR,;t t
21999s,@ac_ct_AR@,$ac_ct_AR,;t t
22000s,@RANLIB@,$RANLIB,;t t
22001s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22002s,@PERL@,$PERL,;t t
748b9d7c
DF
22003s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
22004s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
953ff289 22005s,@LIBTOOL@,$LIBTOOL,;t t
1cf3d07d
SE
22006s,@SED@,$SED,;t t
22007s,@EGREP@,$EGREP,;t t
22008s,@FGREP@,$FGREP,;t t
22009s,@GREP@,$GREP,;t t
22010s,@LD@,$LD,;t t
22011s,@DUMPBIN@,$DUMPBIN,;t t
22012s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
22013s,@NM@,$NM,;t t
22014s,@LN_S@,$LN_S,;t t
22015s,@lt_ECHO@,$lt_ECHO,;t t
22016s,@CPP@,$CPP,;t t
22017s,@CPPFLAGS@,$CPPFLAGS,;t t
953ff289
DN
22018s,@enable_shared@,$enable_shared,;t t
22019s,@enable_static@,$enable_static,;t t
c41303c6
RH
22020s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22021s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22022s,@MAINT@,$MAINT,;t t
953ff289
DN
22023s,@FC@,$FC,;t t
22024s,@FCFLAGS@,$FCFLAGS,;t t
22025s,@LDFLAGS@,$LDFLAGS,;t t
22026s,@ac_ct_FC@,$ac_ct_FC,;t t
22027s,@libtool_VERSION@,$libtool_VERSION,;t t
953ff289
DN
22028s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
22029s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
22030s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
22031s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
22032s,@config_path@,$config_path,;t t
22033s,@XCFLAGS@,$XCFLAGS,;t t
22034s,@XLDFLAGS@,$XLDFLAGS,;t t
22035s,@link_gomp@,$link_gomp,;t t
22036s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
22037s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
03b8fe49
PB
22038s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
22039s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
22040s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
22041s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
22042s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
22043s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
a68ab351
JJ
22044s,@OMP_LOCK_25_SIZE@,$OMP_LOCK_25_SIZE,;t t
22045s,@OMP_LOCK_25_ALIGN@,$OMP_LOCK_25_ALIGN,;t t
22046s,@OMP_NEST_LOCK_25_SIZE@,$OMP_NEST_LOCK_25_SIZE,;t t
22047s,@OMP_NEST_LOCK_25_ALIGN@,$OMP_NEST_LOCK_25_ALIGN,;t t
22048s,@OMP_LOCK_25_KIND@,$OMP_LOCK_25_KIND,;t t
22049s,@OMP_NEST_LOCK_25_KIND@,$OMP_NEST_LOCK_25_KIND,;t t
953ff289
DN
22050s,@LIBOBJS@,$LIBOBJS,;t t
22051s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22052CEOF
22053
22054_ACEOF
22055
22056 cat >>$CONFIG_STATUS <<\_ACEOF
22057 # Split the substitutions into bite-sized pieces for seds with
22058 # small command number limits, like on Digital OSF/1 and HP-UX.
22059 ac_max_sed_lines=48
22060 ac_sed_frag=1 # Number of current file.
22061 ac_beg=1 # First line for current file.
22062 ac_end=$ac_max_sed_lines # Line after last line for current file.
22063 ac_more_lines=:
22064 ac_sed_cmds=
22065 while $ac_more_lines; do
22066 if test $ac_beg -gt 1; then
22067 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22068 else
22069 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22070 fi
22071 if test ! -s $tmp/subs.frag; then
22072 ac_more_lines=false
22073 else
22074 # The purpose of the label and of the branching condition is to
22075 # speed up the sed processing (if there are no `@' at all, there
22076 # is no need to browse any of the substitutions).
22077 # These are the two extra sed commands mentioned above.
22078 (echo ':t
22079 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22080 if test -z "$ac_sed_cmds"; then
22081 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22082 else
22083 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22084 fi
22085 ac_sed_frag=`expr $ac_sed_frag + 1`
22086 ac_beg=$ac_end
22087 ac_end=`expr $ac_end + $ac_max_sed_lines`
22088 fi
22089 done
22090 if test -z "$ac_sed_cmds"; then
22091 ac_sed_cmds=cat
22092 fi
22093fi # test -n "$CONFIG_FILES"
22094
22095_ACEOF
22096cat >>$CONFIG_STATUS <<\_ACEOF
22097for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22098 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22099 case $ac_file in
22100 - | *:- | *:-:* ) # input from stdin
22101 cat >$tmp/stdin
22102 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22103 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22104 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22105 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22106 * ) ac_file_in=$ac_file.in ;;
22107 esac
22108
22109 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22110 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22111$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22112 X"$ac_file" : 'X\(//\)[^/]' \| \
22113 X"$ac_file" : 'X\(//\)$' \| \
22114 X"$ac_file" : 'X\(/\)' \| \
22115 . : '\(.\)' 2>/dev/null ||
22116echo X"$ac_file" |
22117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22118 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22119 /^X\(\/\/\)$/{ s//\1/; q; }
22120 /^X\(\/\).*/{ s//\1/; q; }
22121 s/.*/./; q'`
22122 { if $as_mkdir_p; then
22123 mkdir -p "$ac_dir"
22124 else
22125 as_dir="$ac_dir"
22126 as_dirs=
22127 while test ! -d "$as_dir"; do
22128 as_dirs="$as_dir $as_dirs"
22129 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22130$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22131 X"$as_dir" : 'X\(//\)[^/]' \| \
22132 X"$as_dir" : 'X\(//\)$' \| \
22133 X"$as_dir" : 'X\(/\)' \| \
22134 . : '\(.\)' 2>/dev/null ||
22135echo X"$as_dir" |
22136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22137 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22138 /^X\(\/\/\)$/{ s//\1/; q; }
22139 /^X\(\/\).*/{ s//\1/; q; }
22140 s/.*/./; q'`
22141 done
22142 test ! -n "$as_dirs" || mkdir $as_dirs
22143 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22144echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22145 { (exit 1); exit 1; }; }; }
22146
22147 ac_builddir=.
22148
22149if test "$ac_dir" != .; then
22150 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22151 # A "../" for each directory in $ac_dir_suffix.
22152 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22153else
22154 ac_dir_suffix= ac_top_builddir=
22155fi
22156
22157case $srcdir in
22158 .) # No --srcdir option. We are building in place.
22159 ac_srcdir=.
22160 if test -z "$ac_top_builddir"; then
22161 ac_top_srcdir=.
22162 else
22163 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22164 fi ;;
22165 [\\/]* | ?:[\\/]* ) # Absolute path.
22166 ac_srcdir=$srcdir$ac_dir_suffix;
22167 ac_top_srcdir=$srcdir ;;
22168 *) # Relative path.
22169 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22170 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22171esac
22172
22173# Do not use `cd foo && pwd` to compute absolute paths, because
22174# the directories may not exist.
22175case `pwd` in
22176.) ac_abs_builddir="$ac_dir";;
22177*)
22178 case "$ac_dir" in
22179 .) ac_abs_builddir=`pwd`;;
22180 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22181 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22182 esac;;
22183esac
22184case $ac_abs_builddir in
22185.) ac_abs_top_builddir=${ac_top_builddir}.;;
22186*)
22187 case ${ac_top_builddir}. in
22188 .) ac_abs_top_builddir=$ac_abs_builddir;;
22189 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22190 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22191 esac;;
22192esac
22193case $ac_abs_builddir in
22194.) ac_abs_srcdir=$ac_srcdir;;
22195*)
22196 case $ac_srcdir in
22197 .) ac_abs_srcdir=$ac_abs_builddir;;
22198 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22199 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22200 esac;;
22201esac
22202case $ac_abs_builddir in
22203.) ac_abs_top_srcdir=$ac_top_srcdir;;
22204*)
22205 case $ac_top_srcdir in
22206 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22207 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22208 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22209 esac;;
22210esac
22211
22212
22213 case $INSTALL in
22214 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22215 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22216 esac
22217
d349482e
AT
22218 if test x"$ac_file" != x-; then
22219 { echo "$as_me:$LINENO: creating $ac_file" >&5
22220echo "$as_me: creating $ac_file" >&6;}
22221 rm -f "$ac_file"
22222 fi
953ff289
DN
22223 # Let's still pretend it is `configure' which instantiates (i.e., don't
22224 # use $as_me), people would be surprised to read:
22225 # /* config.h. Generated by config.status. */
22226 if test x"$ac_file" = x-; then
22227 configure_input=
22228 else
22229 configure_input="$ac_file. "
22230 fi
22231 configure_input=$configure_input"Generated from `echo $ac_file_in |
22232 sed 's,.*/,,'` by configure."
22233
22234 # First look for the input files in the build tree, otherwise in the
22235 # src tree.
22236 ac_file_inputs=`IFS=:
22237 for f in $ac_file_in; do
22238 case $f in
22239 -) echo $tmp/stdin ;;
22240 [\\/$]*)
22241 # Absolute (can't be DOS-style, as IFS=:)
22242 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22243echo "$as_me: error: cannot find input file: $f" >&2;}
22244 { (exit 1); exit 1; }; }
22245 echo "$f";;
22246 *) # Relative
22247 if test -f "$f"; then
22248 # Build tree
22249 echo "$f"
22250 elif test -f "$srcdir/$f"; then
22251 # Source tree
22252 echo "$srcdir/$f"
22253 else
22254 # /dev/null tree
22255 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22256echo "$as_me: error: cannot find input file: $f" >&2;}
22257 { (exit 1); exit 1; }; }
22258 fi;;
22259 esac
22260 done` || { (exit 1); exit 1; }
22261_ACEOF
22262cat >>$CONFIG_STATUS <<_ACEOF
22263 sed "$ac_vpsub
22264$extrasub
22265_ACEOF
22266cat >>$CONFIG_STATUS <<\_ACEOF
22267:t
22268/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22269s,@configure_input@,$configure_input,;t t
22270s,@srcdir@,$ac_srcdir,;t t
22271s,@abs_srcdir@,$ac_abs_srcdir,;t t
22272s,@top_srcdir@,$ac_top_srcdir,;t t
22273s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22274s,@builddir@,$ac_builddir,;t t
22275s,@abs_builddir@,$ac_abs_builddir,;t t
22276s,@top_builddir@,$ac_top_builddir,;t t
22277s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22278s,@INSTALL@,$ac_INSTALL,;t t
22279" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22280 rm -f $tmp/stdin
22281 if test x"$ac_file" != x-; then
22282 mv $tmp/out $ac_file
22283 else
22284 cat $tmp/out
22285 rm -f $tmp/out
22286 fi
22287
22288done
22289_ACEOF
22290cat >>$CONFIG_STATUS <<\_ACEOF
22291
22292#
22293# CONFIG_HEADER section.
22294#
22295
22296# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22297# NAME is the cpp macro being defined and VALUE is the value it is being given.
22298#
22299# ac_d sets the value in "#define NAME VALUE" lines.
22300ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22301ac_dB='[ ].*$,\1#\2'
22302ac_dC=' '
22303ac_dD=',;t'
22304# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22305ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22306ac_uB='$,\1#\2define\3'
22307ac_uC=' '
22308ac_uD=',;t'
22309
22310for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22311 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22312 case $ac_file in
22313 - | *:- | *:-:* ) # input from stdin
22314 cat >$tmp/stdin
22315 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22316 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22317 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22318 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22319 * ) ac_file_in=$ac_file.in ;;
22320 esac
22321
22322 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22323echo "$as_me: creating $ac_file" >&6;}
22324
22325 # First look for the input files in the build tree, otherwise in the
22326 # src tree.
22327 ac_file_inputs=`IFS=:
22328 for f in $ac_file_in; do
22329 case $f in
22330 -) echo $tmp/stdin ;;
22331 [\\/$]*)
22332 # Absolute (can't be DOS-style, as IFS=:)
22333 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22334echo "$as_me: error: cannot find input file: $f" >&2;}
22335 { (exit 1); exit 1; }; }
22336 # Do quote $f, to prevent DOS paths from being IFS'd.
22337 echo "$f";;
22338 *) # Relative
22339 if test -f "$f"; then
22340 # Build tree
22341 echo "$f"
22342 elif test -f "$srcdir/$f"; then
22343 # Source tree
22344 echo "$srcdir/$f"
22345 else
22346 # /dev/null tree
22347 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22348echo "$as_me: error: cannot find input file: $f" >&2;}
22349 { (exit 1); exit 1; }; }
22350 fi;;
22351 esac
22352 done` || { (exit 1); exit 1; }
22353 # Remove the trailing spaces.
22354 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22355
22356_ACEOF
22357
22358# Transform confdefs.h into two sed scripts, `conftest.defines' and
22359# `conftest.undefs', that substitutes the proper values into
22360# config.h.in to produce config.h. The first handles `#define'
22361# templates, and the second `#undef' templates.
22362# And first: Protect against being on the right side of a sed subst in
22363# config.status. Protect against being in an unquoted here document
22364# in config.status.
22365rm -f conftest.defines conftest.undefs
22366# Using a here document instead of a string reduces the quoting nightmare.
22367# Putting comments in sed scripts is not portable.
22368#
22369# `end' is used to avoid that the second main sed command (meant for
22370# 0-ary CPP macros) applies to n-ary macro definitions.
22371# See the Autoconf documentation for `clear'.
22372cat >confdef2sed.sed <<\_ACEOF
22373s/[\\&,]/\\&/g
22374s,[\\$`],\\&,g
22375t clear
22376: clear
22377s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22378t end
22379s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22380: end
22381_ACEOF
22382# If some macros were called several times there might be several times
22383# the same #defines, which is useless. Nevertheless, we may not want to
22384# sort them, since we want the *last* AC-DEFINE to be honored.
22385uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22386sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22387rm -f confdef2sed.sed
22388
22389# This sed command replaces #undef with comments. This is necessary, for
22390# example, in the case of _POSIX_SOURCE, which is predefined and required
22391# on some systems where configure will not decide to define it.
22392cat >>conftest.undefs <<\_ACEOF
22393s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22394_ACEOF
22395
22396# Break up conftest.defines because some shells have a limit on the size
22397# of here documents, and old seds have small limits too (100 cmds).
22398echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22399echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22400echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22401echo ' :' >>$CONFIG_STATUS
22402rm -f conftest.tail
22403while grep . conftest.defines >/dev/null
22404do
22405 # Write a limited-size here document to $tmp/defines.sed.
22406 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22407 # Speed up: don't consider the non `#define' lines.
22408 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22409 # Work around the forget-to-reset-the-flag bug.
22410 echo 't clr' >>$CONFIG_STATUS
22411 echo ': clr' >>$CONFIG_STATUS
22412 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22413 echo 'CEOF
22414 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22415 rm -f $tmp/in
22416 mv $tmp/out $tmp/in
22417' >>$CONFIG_STATUS
22418 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22419 rm -f conftest.defines
22420 mv conftest.tail conftest.defines
22421done
22422rm -f conftest.defines
22423echo ' fi # grep' >>$CONFIG_STATUS
22424echo >>$CONFIG_STATUS
22425
22426# Break up conftest.undefs because some shells have a limit on the size
22427# of here documents, and old seds have small limits too (100 cmds).
22428echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22429rm -f conftest.tail
22430while grep . conftest.undefs >/dev/null
22431do
22432 # Write a limited-size here document to $tmp/undefs.sed.
22433 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22434 # Speed up: don't consider the non `#undef'
22435 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22436 # Work around the forget-to-reset-the-flag bug.
22437 echo 't clr' >>$CONFIG_STATUS
22438 echo ': clr' >>$CONFIG_STATUS
22439 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22440 echo 'CEOF
22441 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22442 rm -f $tmp/in
22443 mv $tmp/out $tmp/in
22444' >>$CONFIG_STATUS
22445 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22446 rm -f conftest.undefs
22447 mv conftest.tail conftest.undefs
22448done
22449rm -f conftest.undefs
22450
22451cat >>$CONFIG_STATUS <<\_ACEOF
22452 # Let's still pretend it is `configure' which instantiates (i.e., don't
22453 # use $as_me), people would be surprised to read:
22454 # /* config.h. Generated by config.status. */
22455 if test x"$ac_file" = x-; then
22456 echo "/* Generated by configure. */" >$tmp/config.h
22457 else
22458 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22459 fi
22460 cat $tmp/in >>$tmp/config.h
22461 rm -f $tmp/in
22462 if test x"$ac_file" != x-; then
22463 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22464 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22465echo "$as_me: $ac_file is unchanged" >&6;}
22466 else
22467 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22468$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22469 X"$ac_file" : 'X\(//\)[^/]' \| \
22470 X"$ac_file" : 'X\(//\)$' \| \
22471 X"$ac_file" : 'X\(/\)' \| \
22472 . : '\(.\)' 2>/dev/null ||
22473echo X"$ac_file" |
22474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22475 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22476 /^X\(\/\/\)$/{ s//\1/; q; }
22477 /^X\(\/\).*/{ s//\1/; q; }
22478 s/.*/./; q'`
22479 { if $as_mkdir_p; then
22480 mkdir -p "$ac_dir"
22481 else
22482 as_dir="$ac_dir"
22483 as_dirs=
22484 while test ! -d "$as_dir"; do
22485 as_dirs="$as_dir $as_dirs"
22486 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22487$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22488 X"$as_dir" : 'X\(//\)[^/]' \| \
22489 X"$as_dir" : 'X\(//\)$' \| \
22490 X"$as_dir" : 'X\(/\)' \| \
22491 . : '\(.\)' 2>/dev/null ||
22492echo X"$as_dir" |
22493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22494 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22495 /^X\(\/\/\)$/{ s//\1/; q; }
22496 /^X\(\/\).*/{ s//\1/; q; }
22497 s/.*/./; q'`
22498 done
22499 test ! -n "$as_dirs" || mkdir $as_dirs
22500 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22501echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22502 { (exit 1); exit 1; }; }; }
22503
22504 rm -f $ac_file
22505 mv $tmp/config.h $ac_file
22506 fi
22507 else
22508 cat $tmp/config.h
22509 rm -f $tmp/config.h
22510 fi
22511# Compute $ac_file's index in $config_headers.
22512_am_stamp_count=1
22513for _am_header in $config_headers :; do
22514 case $_am_header in
22515 $ac_file | $ac_file:* )
22516 break ;;
22517 * )
22518 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22519 esac
22520done
22521echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22522$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22523 X$ac_file : 'X\(//\)[^/]' \| \
22524 X$ac_file : 'X\(//\)$' \| \
22525 X$ac_file : 'X\(/\)' \| \
22526 . : '\(.\)' 2>/dev/null ||
22527echo X$ac_file |
22528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22529 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22530 /^X\(\/\/\)$/{ s//\1/; q; }
22531 /^X\(\/\).*/{ s//\1/; q; }
22532 s/.*/./; q'`/stamp-h$_am_stamp_count
22533done
22534_ACEOF
22535cat >>$CONFIG_STATUS <<\_ACEOF
22536
22537#
22538# CONFIG_COMMANDS section.
22539#
22540for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22541 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22542 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22543 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22544$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22545 X"$ac_dest" : 'X\(//\)[^/]' \| \
22546 X"$ac_dest" : 'X\(//\)$' \| \
22547 X"$ac_dest" : 'X\(/\)' \| \
22548 . : '\(.\)' 2>/dev/null ||
22549echo X"$ac_dest" |
22550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22552 /^X\(\/\/\)$/{ s//\1/; q; }
22553 /^X\(\/\).*/{ s//\1/; q; }
22554 s/.*/./; q'`
22555 { if $as_mkdir_p; then
22556 mkdir -p "$ac_dir"
22557 else
22558 as_dir="$ac_dir"
22559 as_dirs=
22560 while test ! -d "$as_dir"; do
22561 as_dirs="$as_dir $as_dirs"
22562 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22563$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22564 X"$as_dir" : 'X\(//\)[^/]' \| \
22565 X"$as_dir" : 'X\(//\)$' \| \
22566 X"$as_dir" : 'X\(/\)' \| \
22567 . : '\(.\)' 2>/dev/null ||
22568echo X"$as_dir" |
22569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22571 /^X\(\/\/\)$/{ s//\1/; q; }
22572 /^X\(\/\).*/{ s//\1/; q; }
22573 s/.*/./; q'`
22574 done
22575 test ! -n "$as_dirs" || mkdir $as_dirs
22576 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22577echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22578 { (exit 1); exit 1; }; }; }
22579
22580 ac_builddir=.
22581
22582if test "$ac_dir" != .; then
22583 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22584 # A "../" for each directory in $ac_dir_suffix.
22585 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22586else
22587 ac_dir_suffix= ac_top_builddir=
22588fi
22589
22590case $srcdir in
22591 .) # No --srcdir option. We are building in place.
22592 ac_srcdir=.
22593 if test -z "$ac_top_builddir"; then
22594 ac_top_srcdir=.
22595 else
22596 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22597 fi ;;
22598 [\\/]* | ?:[\\/]* ) # Absolute path.
22599 ac_srcdir=$srcdir$ac_dir_suffix;
22600 ac_top_srcdir=$srcdir ;;
22601 *) # Relative path.
22602 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22603 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22604esac
22605
22606# Do not use `cd foo && pwd` to compute absolute paths, because
22607# the directories may not exist.
22608case `pwd` in
22609.) ac_abs_builddir="$ac_dir";;
22610*)
22611 case "$ac_dir" in
22612 .) ac_abs_builddir=`pwd`;;
22613 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22614 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22615 esac;;
22616esac
22617case $ac_abs_builddir in
22618.) ac_abs_top_builddir=${ac_top_builddir}.;;
22619*)
22620 case ${ac_top_builddir}. in
22621 .) ac_abs_top_builddir=$ac_abs_builddir;;
22622 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22623 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22624 esac;;
22625esac
22626case $ac_abs_builddir in
22627.) ac_abs_srcdir=$ac_srcdir;;
22628*)
22629 case $ac_srcdir in
22630 .) ac_abs_srcdir=$ac_abs_builddir;;
22631 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22632 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22633 esac;;
22634esac
22635case $ac_abs_builddir in
22636.) ac_abs_top_srcdir=$ac_top_srcdir;;
22637*)
22638 case $ac_top_srcdir in
22639 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22640 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22641 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22642 esac;;
22643esac
22644
22645
22646 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22647echo "$as_me: executing $ac_dest commands" >&6;}
22648 case $ac_dest in
22649 default-1 )
22650# Only add multilib support code if we just rebuilt the top-level
22651# Makefile.
22652case " $CONFIG_FILES " in
22653 *" Makefile "*)
22654 ac_file=Makefile . ${multi_basedir}/config-ml.in
22655 ;;
22656esac ;;
22657 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22658 # Strip MF so we end up with the name of the file.
22659 mf=`echo "$mf" | sed -e 's/:.*$//'`
22660 # Check whether this is an Automake generated Makefile or not.
22661 # We used to match only the files named `Makefile.in', but
22662 # some people rename them; so instead we look at the file content.
22663 # Grep'ing the first line is not enough: some people post-process
22664 # each Makefile.in and add a new line on top of each file to say so.
22665 # So let's grep whole file.
22666 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22667 dirpart=`(dirname "$mf") 2>/dev/null ||
22668$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22669 X"$mf" : 'X\(//\)[^/]' \| \
22670 X"$mf" : 'X\(//\)$' \| \
22671 X"$mf" : 'X\(/\)' \| \
22672 . : '\(.\)' 2>/dev/null ||
22673echo X"$mf" |
22674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22675 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22676 /^X\(\/\/\)$/{ s//\1/; q; }
22677 /^X\(\/\).*/{ s//\1/; q; }
22678 s/.*/./; q'`
22679 else
22680 continue
22681 fi
22682 # Extract the definition of DEPDIR, am__include, and am__quote
22683 # from the Makefile without running `make'.
22684 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22685 test -z "$DEPDIR" && continue
22686 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22687 test -z "am__include" && continue
22688 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22689 # When using ansi2knr, U may be empty or an underscore; expand it
22690 U=`sed -n 's/^U = //p' < "$mf"`
22691 # Find all dependency output files, they are included files with
22692 # $(DEPDIR) in their names. We invoke sed twice because it is the
22693 # simplest approach to changing $(DEPDIR) to its actual value in the
22694 # expansion.
22695 for file in `sed -n "
22696 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22697 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22698 # Make sure the directory exists.
22699 test -f "$dirpart/$file" && continue
22700 fdir=`(dirname "$file") 2>/dev/null ||
22701$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22702 X"$file" : 'X\(//\)[^/]' \| \
22703 X"$file" : 'X\(//\)$' \| \
22704 X"$file" : 'X\(/\)' \| \
22705 . : '\(.\)' 2>/dev/null ||
22706echo X"$file" |
22707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22708 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22709 /^X\(\/\/\)$/{ s//\1/; q; }
22710 /^X\(\/\).*/{ s//\1/; q; }
22711 s/.*/./; q'`
22712 { if $as_mkdir_p; then
22713 mkdir -p $dirpart/$fdir
22714 else
22715 as_dir=$dirpart/$fdir
22716 as_dirs=
22717 while test ! -d "$as_dir"; do
22718 as_dirs="$as_dir $as_dirs"
22719 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22720$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22721 X"$as_dir" : 'X\(//\)[^/]' \| \
22722 X"$as_dir" : 'X\(//\)$' \| \
22723 X"$as_dir" : 'X\(/\)' \| \
22724 . : '\(.\)' 2>/dev/null ||
22725echo X"$as_dir" |
22726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22727 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22728 /^X\(\/\/\)$/{ s//\1/; q; }
22729 /^X\(\/\).*/{ s//\1/; q; }
22730 s/.*/./; q'`
22731 done
22732 test ! -n "$as_dirs" || mkdir $as_dirs
22733 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22734echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22735 { (exit 1); exit 1; }; }; }
22736
22737 # echo "creating $dirpart/$file"
22738 echo '# dummy' > "$dirpart/$file"
22739 done
22740done
1cf3d07d
SE
22741 ;;
22742 libtool )
22743
22744 # See if we are running on zsh, and set the options which allow our
22745 # commands through without removal of \ escapes.
22746 if test -n "${ZSH_VERSION+set}" ; then
22747 setopt NO_GLOB_SUBST
22748 fi
22749
22750 cfgfile="${ofile}T"
22751 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22752 $RM "$cfgfile"
22753
22754 cat <<_LT_EOF >> "$cfgfile"
22755#! $SHELL
22756
22757# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22758# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
22759# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22760# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22761#
22762# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22763# 2006, 2007 Free Software Foundation, Inc.
22764#
22765# This file is part of GNU Libtool:
22766# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
22767#
22768# This program is free software; you can redistribute it and/or modify
22769# it under the terms of the GNU General Public License as published by
22770# the Free Software Foundation; either version 2 of the License, or
22771# (at your option) any later version.
22772#
22773# This program is distributed in the hope that it will be useful, but
22774# WITHOUT ANY WARRANTY; without even the implied warranty of
22775# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22776# General Public License for more details.
22777#
22778# You should have received a copy of the GNU General Public License
22779# along with this program; if not, a copy can be downloaded from
22780# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
22781# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22782# MA 02110-1301, USA.
22783#
22784# As a special exception to the GNU General Public License, if you
22785# distribute this file as part of a program that contains a
22786# configuration script generated by Autoconf, you may include it under
22787# the same distribution terms that you use for the rest of that program.
22788
22789
22790# The names of the tagged configurations supported by this script.
22791available_tags="FC "
22792
22793# ### BEGIN LIBTOOL CONFIG
22794
22795# Which release of libtool.m4 was used?
22796macro_version=$macro_version
22797macro_revision=$macro_revision
22798
22799# Whether or not to build shared libraries.
22800build_libtool_libs=$enable_shared
22801
22802# Whether or not to build static libraries.
22803build_old_libs=$enable_static
22804
22805# What type of objects to build.
22806pic_mode=$pic_mode
22807
22808# Whether or not to optimize for fast installation.
22809fast_install=$enable_fast_install
22810
22811# The host system.
22812host_alias=$host_alias
22813host=$host
22814host_os=$host_os
22815
22816# The build system.
22817build_alias=$build_alias
22818build=$build
22819build_os=$build_os
22820
22821# A sed program that does not truncate output.
22822SED=$lt_SED
22823
22824# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22825Xsed="\$SED -e 1s/^X//"
22826
22827# A grep program that handles long lines.
22828GREP=$lt_GREP
22829
22830# An ERE matcher.
22831EGREP=$lt_EGREP
22832
22833# A literal string matcher.
22834FGREP=$lt_FGREP
22835
22836# A BSD- or MS-compatible name lister.
22837NM=$lt_NM
22838
22839# Whether we need soft or hard links.
22840LN_S=$lt_LN_S
22841
22842# What is the maximum length of a command?
22843max_cmd_len=$max_cmd_len
22844
22845# Object file suffix (normally "o").
22846objext=$ac_objext
22847
22848# Executable file suffix (normally "").
22849exeext=$exeext
22850
22851# whether the shell understands "unset".
22852lt_unset=$lt_unset
22853
22854# turn spaces into newlines.
22855SP2NL=$lt_lt_SP2NL
22856
22857# turn newlines into spaces.
22858NL2SP=$lt_lt_NL2SP
22859
22860# How to create reloadable object files.
22861reload_flag=$lt_reload_flag
22862reload_cmds=$lt_reload_cmds
22863
22864# Method to check whether dependent libraries are shared objects.
22865deplibs_check_method=$lt_deplibs_check_method
22866
22867# Command to use when deplibs_check_method == "file_magic".
22868file_magic_cmd=$lt_file_magic_cmd
22869
22870# The archiver.
22871AR=$lt_AR
22872AR_FLAGS=$lt_AR_FLAGS
22873
22874# A symbol stripping program.
22875STRIP=$lt_STRIP
22876
22877# Commands used to install an old-style archive.
22878RANLIB=$lt_RANLIB
22879old_postinstall_cmds=$lt_old_postinstall_cmds
22880old_postuninstall_cmds=$lt_old_postuninstall_cmds
22881
22882# A C compiler.
22883LTCC=$lt_CC
22884
22885# LTCC compiler flags.
22886LTCFLAGS=$lt_CFLAGS
22887
22888# Take the output of nm and produce a listing of raw symbols and C names.
22889global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22890
22891# Transform the output of nm in a proper C declaration.
22892global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22893
22894# Transform the output of nm in a C name address pair.
22895global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22896
22897# The name of the directory that contains temporary libtool files.
22898objdir=$objdir
22899
22900# Shell to use when invoking shell scripts.
22901SHELL=$lt_SHELL
22902
22903# An echo program that does not interpret backslashes.
22904ECHO=$lt_ECHO
22905
22906# Used to examine libraries when file_magic_cmd begins with "file".
22907MAGIC_CMD=$MAGIC_CMD
22908
22909# Must we lock files when doing compilation?
22910need_locks=$lt_need_locks
22911
22912# Old archive suffix (normally "a").
22913libext=$libext
22914
22915# Shared library suffix (normally ".so").
22916shrext_cmds=$lt_shrext_cmds
22917
22918# The commands to extract the exported symbol list from a shared archive.
22919extract_expsyms_cmds=$lt_extract_expsyms_cmds
22920
22921# Variables whose values should be saved in libtool wrapper scripts and
22922# restored at link time.
22923variables_saved_for_relink=$lt_variables_saved_for_relink
22924
22925# Do we need the "lib" prefix for modules?
22926need_lib_prefix=$need_lib_prefix
22927
22928# Do we need a version for libraries?
22929need_version=$need_version
22930
22931# Library versioning type.
22932version_type=$version_type
22933
22934# Shared library runtime path variable.
22935runpath_var=$runpath_var
22936
22937# Shared library path variable.
22938shlibpath_var=$shlibpath_var
22939
22940# Is shlibpath searched before the hard-coded library search path?
22941shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22942
22943# Format of library name prefix.
22944libname_spec=$lt_libname_spec
22945
22946# List of archive names. First name is the real one, the rest are links.
22947# The last name is the one that the linker finds with -lNAME
22948library_names_spec=$lt_library_names_spec
22949
22950# The coded name of the library, if different from the real name.
22951soname_spec=$lt_soname_spec
22952
22953# Command to use after installation of a shared archive.
22954postinstall_cmds=$lt_postinstall_cmds
22955
22956# Command to use after uninstallation of a shared archive.
22957postuninstall_cmds=$lt_postuninstall_cmds
22958
22959# Commands used to finish a libtool library installation in a directory.
22960finish_cmds=$lt_finish_cmds
22961
22962# As "finish_cmds", except a single script fragment to be evaled but
22963# not shown.
22964finish_eval=$lt_finish_eval
22965
22966# Whether we should hardcode library paths into libraries.
22967hardcode_into_libs=$hardcode_into_libs
22968
22969# Compile-time system search path for libraries.
22970sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22971
22972# Run-time system search path for libraries.
22973sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22974
22975# Whether dlopen is supported.
22976dlopen_support=$enable_dlopen
22977
22978# Whether dlopen of programs is supported.
22979dlopen_self=$enable_dlopen_self
22980
22981# Whether dlopen of statically linked programs is supported.
22982dlopen_self_static=$enable_dlopen_self_static
22983
22984# Commands to strip libraries.
22985old_striplib=$lt_old_striplib
22986striplib=$lt_striplib
22987
22988
22989# The linker used to build libraries.
22990LD=$lt_LD
22991
22992# Commands used to build an old-style archive.
22993old_archive_cmds=$lt_old_archive_cmds
22994
22995# A language specific compiler.
22996CC=$lt_compiler
22997
22998# Is the compiler the GNU compiler?
22999with_gcc=$GCC
23000
23001# Compiler flag to turn off builtin functions.
23002no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23003
23004# How to pass a linker flag through the compiler.
23005wl=$lt_lt_prog_compiler_wl
23006
23007# Additional compiler flags for building library objects.
23008pic_flag=$lt_lt_prog_compiler_pic
23009
23010# Compiler flag to prevent dynamic linking.
23011link_static_flag=$lt_lt_prog_compiler_static
23012
23013# Does compiler simultaneously support -c and -o options?
23014compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23015
23016# Whether or not to add -lc for building shared libraries.
23017build_libtool_need_lc=$archive_cmds_need_lc
23018
23019# Whether or not to disallow shared libs when runtime libs are static.
23020allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23021
23022# Compiler flag to allow reflexive dlopens.
23023export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23024
23025# Compiler flag to generate shared objects directly from archives.
23026whole_archive_flag_spec=$lt_whole_archive_flag_spec
23027
23028# Whether the compiler copes with passing no objects directly.
23029compiler_needs_object=$lt_compiler_needs_object
23030
23031# Create an old-style archive from a shared archive.
23032old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23033
23034# Create a temporary old-style archive to link instead of a shared archive.
23035old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23036
23037# Commands used to build a shared archive.
23038archive_cmds=$lt_archive_cmds
23039archive_expsym_cmds=$lt_archive_expsym_cmds
23040
23041# Commands used to build a loadable module if different from building
23042# a shared archive.
23043module_cmds=$lt_module_cmds
23044module_expsym_cmds=$lt_module_expsym_cmds
23045
23046# Whether we are building with GNU ld or not.
23047with_gnu_ld=$lt_with_gnu_ld
23048
23049# Flag that allows shared libraries with undefined symbols to be built.
23050allow_undefined_flag=$lt_allow_undefined_flag
23051
23052# Flag that enforces no undefined symbols.
23053no_undefined_flag=$lt_no_undefined_flag
23054
23055# Flag to hardcode \$libdir into a binary during linking.
23056# This must work even if \$libdir does not exist
23057hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23058
23059# If ld is used when linking, flag to hardcode \$libdir into a binary
23060# during linking. This must work even if \$libdir does not exist.
23061hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23062
23063# Whether we need a single "-rpath" flag with a separated argument.
23064hardcode_libdir_separator=$lt_hardcode_libdir_separator
23065
23066# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23067# DIR into the resulting binary.
23068hardcode_direct=$hardcode_direct
23069
23070# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23071# DIR into the resulting binary and the resulting library dependency is
23072# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23073# library is relocated.
23074hardcode_direct_absolute=$hardcode_direct_absolute
23075
23076# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23077# into the resulting binary.
23078hardcode_minus_L=$hardcode_minus_L
23079
23080# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23081# into the resulting binary.
23082hardcode_shlibpath_var=$hardcode_shlibpath_var
23083
23084# Set to "yes" if building a shared library automatically hardcodes DIR
23085# into the library and all subsequent libraries and executables linked
23086# against it.
23087hardcode_automatic=$hardcode_automatic
23088
23089# Set to yes if linker adds runtime paths of dependent libraries
23090# to runtime path list.
23091inherit_rpath=$inherit_rpath
23092
23093# Whether libtool must link a program against all its dependency libraries.
23094link_all_deplibs=$link_all_deplibs
23095
23096# Fix the shell variable \$srcfile for the compiler.
23097fix_srcfile_path=$lt_fix_srcfile_path
23098
23099# Set to "yes" if exported symbols are required.
23100always_export_symbols=$always_export_symbols
23101
23102# The commands to list exported symbols.
23103export_symbols_cmds=$lt_export_symbols_cmds
23104
23105# Symbols that should not be listed in the preloaded symbols.
23106exclude_expsyms=$lt_exclude_expsyms
23107
23108# Symbols that must always be exported.
23109include_expsyms=$lt_include_expsyms
23110
23111# Commands necessary for linking programs (against libraries) with templates.
23112prelink_cmds=$lt_prelink_cmds
23113
23114# Specify filename containing input files.
23115file_list_spec=$lt_file_list_spec
23116
23117# How to hardcode a shared library path into an executable.
23118hardcode_action=$hardcode_action
23119
23120# Dependencies to place before and after the objects being linked to
23121# create a shared library.
23122predep_objects=$lt_predep_objects
23123postdep_objects=$lt_postdep_objects
23124predeps=$lt_predeps
23125postdeps=$lt_postdeps
23126
23127# The library search path used internally by the compiler when linking
23128# a shared library.
23129compiler_lib_search_path=$lt_compiler_lib_search_path
23130
23131# ### END LIBTOOL CONFIG
23132
23133_LT_EOF
23134
23135 case $host_os in
23136 aix3*)
23137 cat <<\_LT_EOF >> "$cfgfile"
23138# AIX sometimes has problems with the GCC collect2 program. For some
23139# reason, if we set the COLLECT_NAMES environment variable, the problems
23140# vanish in a puff of smoke.
23141if test "X${COLLECT_NAMES+set}" != Xset; then
23142 COLLECT_NAMES=
23143 export COLLECT_NAMES
23144fi
23145_LT_EOF
23146 ;;
23147 esac
23148
23149
23150ltmain="$ac_aux_dir/ltmain.sh"
23151
23152
23153 # We use sed instead of cat because bash on DJGPP gets confused if
23154 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23155 # text mode, it properly converts lines to CR/LF. This bash problem
23156 # is reportedly fixed, but why not run on old versions too?
23157 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23158 || (rm -f "$cfgfile"; exit 1)
23159
23160 case $xsi_shell in
23161 yes)
23162 cat << \_LT_EOF >> "$cfgfile"
23163# func_dirname file append nondir_replacement
23164# Compute the dirname of FILE. If nonempty, add APPEND to the result,
23165# otherwise set result to NONDIR_REPLACEMENT.
23166func_dirname ()
23167{
23168 case ${1} in
23169 */*) func_dirname_result="${1%/*}${2}" ;;
23170 * ) func_dirname_result="${3}" ;;
23171 esac
23172}
23173
23174# func_basename file
23175func_basename ()
23176{
23177 func_basename_result="${1##*/}"
23178}
23179
23180# func_stripname prefix suffix name
23181# strip PREFIX and SUFFIX off of NAME.
23182# PREFIX and SUFFIX must not contain globbing or regex special
23183# characters, hashes, percent signs, but SUFFIX may contain a leading
23184# dot (in which case that matches only a dot).
23185func_stripname ()
23186{
23187 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23188 # positional parameters, so assign one to ordinary parameter first.
23189 func_stripname_result=${3}
23190 func_stripname_result=${func_stripname_result#"${1}"}
23191 func_stripname_result=${func_stripname_result%"${2}"}
23192}
23193
23194# func_opt_split
23195func_opt_split ()
23196{
23197 func_opt_split_opt=${1%%=*}
23198 func_opt_split_arg=${1#*=}
23199}
23200
23201# func_lo2o object
23202func_lo2o ()
23203{
23204 case ${1} in
23205 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23206 *) func_lo2o_result=${1} ;;
23207 esac
23208}
23209_LT_EOF
23210 ;;
23211 *) # Bourne compatible functions.
23212 cat << \_LT_EOF >> "$cfgfile"
23213# func_dirname file append nondir_replacement
23214# Compute the dirname of FILE. If nonempty, add APPEND to the result,
23215# otherwise set result to NONDIR_REPLACEMENT.
23216func_dirname ()
23217{
23218 # Extract subdirectory from the argument.
23219 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23220 if test "X$func_dirname_result" = "X${1}"; then
23221 func_dirname_result="${3}"
23222 else
23223 func_dirname_result="$func_dirname_result${2}"
23224 fi
23225}
23226
23227# func_basename file
23228func_basename ()
23229{
23230 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23231}
23232
23233# func_stripname prefix suffix name
23234# strip PREFIX and SUFFIX off of NAME.
23235# PREFIX and SUFFIX must not contain globbing or regex special
23236# characters, hashes, percent signs, but SUFFIX may contain a leading
23237# dot (in which case that matches only a dot).
23238# func_strip_suffix prefix name
23239func_stripname ()
23240{
23241 case ${2} in
23242 .*) func_stripname_result=`$ECHO "X${3}" \
23243 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23244 *) func_stripname_result=`$ECHO "X${3}" \
23245 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23246 esac
23247}
23248
23249# sed scripts:
23250my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23251my_sed_long_arg='1s/^-[^=]*=//'
23252
23253# func_opt_split
23254func_opt_split ()
23255{
23256 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23257 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23258}
23259
23260# func_lo2o object
23261func_lo2o ()
23262{
23263 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23264}
23265_LT_EOF
23266esac
23267
23268case $lt_shell_append in
23269 yes)
23270 cat << \_LT_EOF >> "$cfgfile"
23271
23272# func_append var value
23273# Append VALUE to the end of shell variable VAR.
23274func_append ()
23275{
23276 eval "$1+=\$2"
23277}
23278_LT_EOF
23279 ;;
23280 *)
23281 cat << \_LT_EOF >> "$cfgfile"
23282
23283# func_append var value
23284# Append VALUE to the end of shell variable VAR.
23285func_append ()
23286{
23287 eval "$1=\$$1\$2"
23288}
23289_LT_EOF
23290 ;;
23291 esac
23292
23293
23294 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23295 || (rm -f "$cfgfile"; exit 1)
23296
23297 mv -f "$cfgfile" "$ofile" ||
23298 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23299 chmod +x "$ofile"
23300
23301
23302 cat <<_LT_EOF >> "$ofile"
23303
23304# ### BEGIN LIBTOOL TAG CONFIG: FC
23305
23306# The linker used to build libraries.
23307LD=$lt_LD_FC
23308
23309# Commands used to build an old-style archive.
23310old_archive_cmds=$lt_old_archive_cmds_FC
23311
23312# A language specific compiler.
23313CC=$lt_compiler_FC
23314
23315# Is the compiler the GNU compiler?
23316with_gcc=$GCC_FC
23317
23318# Compiler flag to turn off builtin functions.
23319no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
23320
23321# How to pass a linker flag through the compiler.
23322wl=$lt_lt_prog_compiler_wl_FC
23323
23324# Additional compiler flags for building library objects.
23325pic_flag=$lt_lt_prog_compiler_pic_FC
23326
23327# Compiler flag to prevent dynamic linking.
23328link_static_flag=$lt_lt_prog_compiler_static_FC
23329
23330# Does compiler simultaneously support -c and -o options?
23331compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
23332
23333# Whether or not to add -lc for building shared libraries.
23334build_libtool_need_lc=$archive_cmds_need_lc_FC
23335
23336# Whether or not to disallow shared libs when runtime libs are static.
23337allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
23338
23339# Compiler flag to allow reflexive dlopens.
23340export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
23341
23342# Compiler flag to generate shared objects directly from archives.
23343whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
23344
23345# Whether the compiler copes with passing no objects directly.
23346compiler_needs_object=$lt_compiler_needs_object_FC
23347
23348# Create an old-style archive from a shared archive.
23349old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
23350
23351# Create a temporary old-style archive to link instead of a shared archive.
23352old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
23353
23354# Commands used to build a shared archive.
23355archive_cmds=$lt_archive_cmds_FC
23356archive_expsym_cmds=$lt_archive_expsym_cmds_FC
23357
23358# Commands used to build a loadable module if different from building
23359# a shared archive.
23360module_cmds=$lt_module_cmds_FC
23361module_expsym_cmds=$lt_module_expsym_cmds_FC
23362
23363# Whether we are building with GNU ld or not.
23364with_gnu_ld=$lt_with_gnu_ld_FC
23365
23366# Flag that allows shared libraries with undefined symbols to be built.
23367allow_undefined_flag=$lt_allow_undefined_flag_FC
23368
23369# Flag that enforces no undefined symbols.
23370no_undefined_flag=$lt_no_undefined_flag_FC
23371
23372# Flag to hardcode \$libdir into a binary during linking.
23373# This must work even if \$libdir does not exist
23374hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
23375
23376# If ld is used when linking, flag to hardcode \$libdir into a binary
23377# during linking. This must work even if \$libdir does not exist.
23378hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
23379
23380# Whether we need a single "-rpath" flag with a separated argument.
23381hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
23382
23383# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23384# DIR into the resulting binary.
23385hardcode_direct=$hardcode_direct_FC
23386
23387# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23388# DIR into the resulting binary and the resulting library dependency is
23389# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23390# library is relocated.
23391hardcode_direct_absolute=$hardcode_direct_absolute_FC
23392
23393# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23394# into the resulting binary.
23395hardcode_minus_L=$hardcode_minus_L_FC
23396
23397# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23398# into the resulting binary.
23399hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
23400
23401# Set to "yes" if building a shared library automatically hardcodes DIR
23402# into the library and all subsequent libraries and executables linked
23403# against it.
23404hardcode_automatic=$hardcode_automatic_FC
23405
23406# Set to yes if linker adds runtime paths of dependent libraries
23407# to runtime path list.
23408inherit_rpath=$inherit_rpath_FC
23409
23410# Whether libtool must link a program against all its dependency libraries.
23411link_all_deplibs=$link_all_deplibs_FC
23412
23413# Fix the shell variable \$srcfile for the compiler.
23414fix_srcfile_path=$lt_fix_srcfile_path_FC
23415
23416# Set to "yes" if exported symbols are required.
23417always_export_symbols=$always_export_symbols_FC
23418
23419# The commands to list exported symbols.
23420export_symbols_cmds=$lt_export_symbols_cmds_FC
23421
23422# Symbols that should not be listed in the preloaded symbols.
23423exclude_expsyms=$lt_exclude_expsyms_FC
23424
23425# Symbols that must always be exported.
23426include_expsyms=$lt_include_expsyms_FC
23427
23428# Commands necessary for linking programs (against libraries) with templates.
23429prelink_cmds=$lt_prelink_cmds_FC
23430
23431# Specify filename containing input files.
23432file_list_spec=$lt_file_list_spec_FC
23433
23434# How to hardcode a shared library path into an executable.
23435hardcode_action=$hardcode_action_FC
23436
23437# Dependencies to place before and after the objects being linked to
23438# create a shared library.
23439predep_objects=$lt_predep_objects_FC
23440postdep_objects=$lt_postdep_objects_FC
23441predeps=$lt_predeps_FC
23442postdeps=$lt_postdeps_FC
23443
23444# The library search path used internally by the compiler when linking
23445# a shared library.
23446compiler_lib_search_path=$lt_compiler_lib_search_path_FC
23447
23448# ### END LIBTOOL TAG CONFIG: FC
23449_LT_EOF
23450
18cbfd85
PB
23451 ;;
23452 gstdint.h )
23453if test "$GCC" = yes; then
23454 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
23455else
23456 echo "/* generated for $CC */" > tmp-stdint.h
23457fi
23458
23459sed 's/^ *//' >> tmp-stdint.h <<EOF
23460
23461 #ifndef GCC_GENERATED_STDINT_H
23462 #define GCC_GENERATED_STDINT_H 1
23463
23464 #include <sys/types.h>
23465EOF
23466
23467if test "$acx_cv_header_stdint" != stdint.h; then
23468 echo "#include <stddef.h>" >> tmp-stdint.h
23469fi
23470if test "$acx_cv_header_stdint" != stddef.h; then
23471 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
23472fi
23473
23474sed 's/^ *//' >> tmp-stdint.h <<EOF
23475 /* glibc uses these symbols as guards to prevent redefinitions. */
23476 #ifdef __int8_t_defined
23477 #define _INT8_T
23478 #define _INT16_T
23479 #define _INT32_T
23480 #endif
23481 #ifdef __uint32_t_defined
23482 #define _UINT32_T
23483 #endif
23484
23485EOF
23486
23487# ----------------- done header, emit basic int types -------------
23488if test "$acx_cv_header_stdint" = stddef.h; then
23489 sed 's/^ *//' >> tmp-stdint.h <<EOF
23490
23491 #ifndef _UINT8_T
23492 #define _UINT8_T
1cf3d07d
SE
23493 #ifndef __uint8_t_defined
23494 #define __uint8_t_defined
18cbfd85
PB
23495 typedef unsigned $acx_cv_type_int8_t uint8_t;
23496 #endif
1cf3d07d 23497 #endif
18cbfd85
PB
23498
23499 #ifndef _UINT16_T
23500 #define _UINT16_T
1cf3d07d
SE
23501 #ifndef __uint16_t_defined
23502 #define __uint16_t_defined
18cbfd85
PB
23503 typedef unsigned $acx_cv_type_int16_t uint16_t;
23504 #endif
1cf3d07d 23505 #endif
18cbfd85
PB
23506
23507 #ifndef _UINT32_T
23508 #define _UINT32_T
1cf3d07d
SE
23509 #ifndef __uint32_t_defined
23510 #define __uint32_t_defined
18cbfd85
PB
23511 typedef unsigned $acx_cv_type_int32_t uint32_t;
23512 #endif
1cf3d07d 23513 #endif
18cbfd85
PB
23514
23515 #ifndef _INT8_T
23516 #define _INT8_T
1cf3d07d
SE
23517 #ifndef __int8_t_defined
23518 #define __int8_t_defined
18cbfd85
PB
23519 typedef $acx_cv_type_int8_t int8_t;
23520 #endif
1cf3d07d 23521 #endif
18cbfd85
PB
23522
23523 #ifndef _INT16_T
23524 #define _INT16_T
1cf3d07d
SE
23525 #ifndef __int16_t_defined
23526 #define __int16_t_defined
18cbfd85
PB
23527 typedef $acx_cv_type_int16_t int16_t;
23528 #endif
1cf3d07d 23529 #endif
18cbfd85
PB
23530
23531 #ifndef _INT32_T
23532 #define _INT32_T
1cf3d07d
SE
23533 #ifndef __int32_t_defined
23534 #define __int32_t_defined
18cbfd85
PB
23535 typedef $acx_cv_type_int32_t int32_t;
23536 #endif
1cf3d07d 23537 #endif
18cbfd85
PB
23538EOF
23539elif test "$ac_cv_type_u_int32_t" = yes; then
23540 sed 's/^ *//' >> tmp-stdint.h <<EOF
23541
23542 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
23543 #ifndef _INT8_T
23544 #define _INT8_T
23545 #endif
23546 #ifndef _INT16_T
23547 #define _INT16_T
23548 #endif
23549 #ifndef _INT32_T
23550 #define _INT32_T
23551 #endif
23552
23553 #ifndef _UINT8_T
23554 #define _UINT8_T
1cf3d07d
SE
23555 #ifndef __uint8_t_defined
23556 #define __uint8_t_defined
18cbfd85
PB
23557 typedef u_int8_t uint8_t;
23558 #endif
1cf3d07d 23559 #endif
18cbfd85
PB
23560
23561 #ifndef _UINT16_T
23562 #define _UINT16_T
1cf3d07d
SE
23563 #ifndef __uint16_t_defined
23564 #define __uint16_t_defined
18cbfd85
PB
23565 typedef u_int16_t uint16_t;
23566 #endif
1cf3d07d 23567 #endif
18cbfd85
PB
23568
23569 #ifndef _UINT32_T
23570 #define _UINT32_T
1cf3d07d
SE
23571 #ifndef __uint32_t_defined
23572 #define __uint32_t_defined
18cbfd85
PB
23573 typedef u_int32_t uint32_t;
23574 #endif
1cf3d07d 23575 #endif
18cbfd85
PB
23576EOF
23577else
23578 sed 's/^ *//' >> tmp-stdint.h <<EOF
23579
23580 /* Some systems have guard macros to prevent redefinitions, define them. */
23581 #ifndef _INT8_T
23582 #define _INT8_T
23583 #endif
23584 #ifndef _INT16_T
23585 #define _INT16_T
23586 #endif
23587 #ifndef _INT32_T
23588 #define _INT32_T
23589 #endif
23590 #ifndef _UINT8_T
23591 #define _UINT8_T
23592 #endif
23593 #ifndef _UINT16_T
23594 #define _UINT16_T
23595 #endif
23596 #ifndef _UINT32_T
23597 #define _UINT32_T
23598 #endif
23599EOF
23600fi
23601
23602# ------------- done basic int types, emit int64_t types ------------
23603if test "$ac_cv_type_uint64_t" = yes; then
23604 sed 's/^ *//' >> tmp-stdint.h <<EOF
23605
23606 /* system headers have good uint64_t and int64_t */
23607 #ifndef _INT64_T
23608 #define _INT64_T
23609 #endif
23610 #ifndef _UINT64_T
23611 #define _UINT64_T
23612 #endif
23613EOF
23614elif test "$ac_cv_type_u_int64_t" = yes; then
23615 sed 's/^ *//' >> tmp-stdint.h <<EOF
23616
23617 /* system headers have an u_int64_t (and int64_t) */
23618 #ifndef _INT64_T
23619 #define _INT64_T
23620 #endif
23621 #ifndef _UINT64_T
23622 #define _UINT64_T
1cf3d07d
SE
23623 #ifndef __uint64_t_defined
23624 #define __uint64_t_defined
18cbfd85
PB
23625 typedef u_int64_t uint64_t;
23626 #endif
1cf3d07d 23627 #endif
18cbfd85
PB
23628EOF
23629elif test -n "$acx_cv_type_int64_t"; then
23630 sed 's/^ *//' >> tmp-stdint.h <<EOF
23631
23632 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
23633 #ifndef _INT64_T
23634 #define _INT64_T
23635 typedef $acx_cv_type_int64_t int64_t;
23636 #endif
23637 #ifndef _UINT64_T
23638 #define _UINT64_T
1cf3d07d
SE
23639 #ifndef __uint64_t_defined
23640 #define __uint64_t_defined
18cbfd85
PB
23641 typedef unsigned $acx_cv_type_int64_t uint64_t;
23642 #endif
1cf3d07d 23643 #endif
18cbfd85
PB
23644EOF
23645else
23646 sed 's/^ *//' >> tmp-stdint.h <<EOF
23647
23648 /* some common heuristics for int64_t, using compiler-specific tests */
23649 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
23650 #ifndef _INT64_T
23651 #define _INT64_T
1cf3d07d 23652 #ifndef __int64_t_defined
18cbfd85
PB
23653 typedef long long int64_t;
23654 #endif
1cf3d07d 23655 #endif
18cbfd85
PB
23656 #ifndef _UINT64_T
23657 #define _UINT64_T
23658 typedef unsigned long long uint64_t;
23659 #endif
23660
23661 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
23662 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
23663 does not implement __extension__. But that compiler doesn't define
23664 __GNUC_MINOR__. */
23665 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
23666 # define __extension__
23667 # endif
23668
23669 # ifndef _INT64_T
23670 # define _INT64_T
23671 __extension__ typedef long long int64_t;
23672 # endif
23673 # ifndef _UINT64_T
23674 # define _UINT64_T
23675 __extension__ typedef unsigned long long uint64_t;
23676 # endif
23677
23678 #elif !defined __STRICT_ANSI__
23679 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23680
23681 # ifndef _INT64_T
23682 # define _INT64_T
23683 typedef __int64 int64_t;
23684 # endif
23685 # ifndef _UINT64_T
23686 # define _UINT64_T
23687 typedef unsigned __int64 uint64_t;
23688 # endif
23689 # endif /* compiler */
23690
23691 #endif /* ANSI version */
23692EOF
23693fi
23694
23695# ------------- done int64_t types, emit intptr types ------------
23696if test "$ac_cv_type_uintptr_t" != yes; then
23697 sed 's/^ *//' >> tmp-stdint.h <<EOF
23698
23699 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
1cf3d07d 23700 #ifndef __uintptr_t_defined
18cbfd85 23701 typedef u$acx_cv_type_intptr_t uintptr_t;
1cf3d07d
SE
23702 #endif
23703 #ifndef __intptr_t_defined
18cbfd85 23704 typedef $acx_cv_type_intptr_t intptr_t;
1cf3d07d 23705 #endif
18cbfd85
PB
23706EOF
23707fi
23708
23709# ------------- done intptr types, emit int_least types ------------
23710if test "$ac_cv_type_int_least32_t" != yes; then
23711 sed 's/^ *//' >> tmp-stdint.h <<EOF
23712
23713 /* Define int_least types */
23714 typedef int8_t int_least8_t;
23715 typedef int16_t int_least16_t;
23716 typedef int32_t int_least32_t;
23717 #ifdef _INT64_T
23718 typedef int64_t int_least64_t;
23719 #endif
23720
23721 typedef uint8_t uint_least8_t;
23722 typedef uint16_t uint_least16_t;
23723 typedef uint32_t uint_least32_t;
23724 #ifdef _UINT64_T
23725 typedef uint64_t uint_least64_t;
23726 #endif
23727EOF
23728fi
23729
23730# ------------- done intptr types, emit int_fast types ------------
23731if test "$ac_cv_type_int_fast32_t" != yes; then
23732 sed 's/^ *//' >> tmp-stdint.h <<EOF
23733
23734 /* Define int_fast types. short is often slow */
23735 typedef int8_t int_fast8_t;
23736 typedef int int_fast16_t;
23737 typedef int32_t int_fast32_t;
23738 #ifdef _INT64_T
23739 typedef int64_t int_fast64_t;
23740 #endif
23741
23742 typedef uint8_t uint_fast8_t;
23743 typedef unsigned int uint_fast16_t;
23744 typedef uint32_t uint_fast32_t;
23745 #ifdef _UINT64_T
23746 typedef uint64_t uint_fast64_t;
23747 #endif
23748EOF
23749fi
23750
23751if test "$ac_cv_type_uintmax_t" != yes; then
23752 sed 's/^ *//' >> tmp-stdint.h <<EOF
23753
23754 /* Define intmax based on what we found */
23755 #ifdef _INT64_T
23756 typedef int64_t intmax_t;
23757 #else
23758 typedef long intmax_t;
23759 #endif
23760 #ifdef _UINT64_T
23761 typedef uint64_t uintmax_t;
23762 #else
23763 typedef unsigned long uintmax_t;
23764 #endif
23765EOF
23766fi
23767
23768sed 's/^ *//' >> tmp-stdint.h <<EOF
23769
23770 #endif /* GCC_GENERATED_STDINT_H */
23771EOF
23772
23773if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
23774 rm -f tmp-stdint.h
23775else
23776 mv -f tmp-stdint.h gstdint.h
23777fi
23778
953ff289
DN
23779 ;;
23780 esac
23781done
23782_ACEOF
23783
23784cat >>$CONFIG_STATUS <<\_ACEOF
23785
23786{ (exit 0); exit 0; }
23787_ACEOF
23788chmod +x $CONFIG_STATUS
23789ac_clean_files=$ac_clean_files_save
23790
23791
23792# configure is writing to config.log, and then calls config.status.
23793# config.status does its own redirection, appending to config.log.
23794# Unfortunately, on DOS this fails, as config.log is still kept open
23795# by configure, so config.status won't be able to write to it; its
23796# output is simply discarded. So we exec the FD to /dev/null,
23797# effectively closing config.log, so it can be properly (re)opened and
23798# appended to by config.status. When coming back to configure, we
23799# need to make the FD available again.
23800if test "$no_create" != yes; then
23801 ac_cs_success=:
23802 ac_config_status_args=
23803 test "$silent" = yes &&
23804 ac_config_status_args="$ac_config_status_args --quiet"
23805 exec 5>/dev/null
23806 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23807 exec 5>>config.log
23808 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23809 # would make configure fail if this is the last instruction.
23810 $ac_cs_success || { (exit 1); exit 1; }
23811fi
23812