]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgfortran/configure
re PR libfortran/32972 (performance of pack/unpack)
[thirdparty/gcc.git] / libgfortran / configure
CommitLineData
6de9cd9a
DN
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
38d24731 3# Generated by GNU Autoconf 2.59 for GNU Fortran Runtime Library 0.3.
6de9cd9a 4#
38d24731 5# Copyright (C) 2003 Free Software Foundation, Inc.
6de9cd9a
DN
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
38d24731 12# Be Bourne compatible
6de9cd9a
DN
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+"$@"}'='"$@"'
38d24731
RW
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
6de9cd9a 21fi
38d24731 22DUALCASE=1; export DUALCASE # for MKS sh
6de9cd9a
DN
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.
38d24731 33$as_unset ENV MAIL MAILPATH
6de9cd9a
DN
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
38d24731 47 $as_unset $as_var
6de9cd9a
DN
48 fi
49done
50
51# Required to use basename.
38d24731 52if expr a : '\(a\)' >/dev/null 2>&1; then
6de9cd9a
DN
53 as_expr=expr
54else
55 as_expr=false
56fi
57
38d24731 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6de9cd9a
DN
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
38d24731 66as_me=`$as_basename "$0" ||
6de9cd9a
DN
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
38d24731
RW
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
6de9cd9a 71echo X/"$0" |
38d24731
RW
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
c0e7e2bf 76
f489fba1 77
38d24731
RW
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
f489fba1 85
38d24731
RW
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
f489fba1
FXC
97fi
98
f489fba1 99
38d24731
RW
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
f489fba1 116
38d24731
RW
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 '')
6de9cd9a 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78511f8b 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6de9cd9a
DN
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
38d24731
RW
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
6de9cd9a 137 /*)
38d24731 138 if ("$as_dir/$as_base" -c '
c0e7e2bf
JB
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
38d24731 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
c0e7e2bf 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
38d24731
RW
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
6de9cd9a
DN
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
38d24731
RW
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.
6de9cd9a 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
38d24731
RW
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
6de9cd9a
DN
165 sed '
166 N
38d24731
RW
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6de9cd9a 170 t loop
38d24731
RW
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
6de9cd9a 173 ' >$as_me.lineno &&
38d24731 174 chmod +x $as_me.lineno ||
6de9cd9a
DN
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
38d24731
RW
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
6de9cd9a
DN
182 # Exit status is that of the last command.
183 exit
184}
185
186
38d24731
RW
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= ;;
6de9cd9a
DN
192esac
193
38d24731 194if expr a : '\(a\)' >/dev/null 2>&1; then
6de9cd9a
DN
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
38d24731
RW
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
6de9cd9a 207 as_ln_s='cp -p'
38d24731
RW
208 else
209 as_ln_s='ln -s'
210 fi
6de9cd9a
DN
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
38d24731 216rm -f conf$$ conf$$.exe conf$$.file
6de9cd9a
DN
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
38d24731 225as_executable_p="test -f"
6de9cd9a
DN
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
38d24731
RW
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
6de9cd9a 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
6de9cd9a
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
38d24731
RW
398exec 6>&1
399
6de9cd9a
DN
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
38d24731
RW
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
6de9cd9a
DN
416# Identity of this package.
417PACKAGE_NAME='GNU Fortran Runtime Library'
418PACKAGE_TARNAME='libgfortran'
0dce3ca1
FXC
419PACKAGE_VERSION='0.3'
420PACKAGE_STRING='GNU Fortran Runtime Library 0.3'
6de9cd9a
DN
421PACKAGE_BUGREPORT=''
422
423# Factoring default headers for most tests.
424ac_includes_default="\
425#include <stdio.h>
38d24731 426#if HAVE_SYS_TYPES_H
6de9cd9a
DN
427# include <sys/types.h>
428#endif
38d24731 429#if HAVE_SYS_STAT_H
6de9cd9a
DN
430# include <sys/stat.h>
431#endif
38d24731 432#if STDC_HEADERS
6de9cd9a
DN
433# include <stdlib.h>
434# include <stddef.h>
435#else
38d24731 436# if HAVE_STDLIB_H
6de9cd9a
DN
437# include <stdlib.h>
438# endif
439#endif
38d24731
RW
440#if HAVE_STRING_H
441# if !STDC_HEADERS && HAVE_MEMORY_H
6de9cd9a
DN
442# include <memory.h>
443# endif
444# include <string.h>
445#endif
38d24731 446#if HAVE_STRINGS_H
6de9cd9a
DN
447# include <strings.h>
448#endif
38d24731 449#if HAVE_INTTYPES_H
6de9cd9a 450# include <inttypes.h>
38d24731
RW
451#else
452# if HAVE_STDINT_H
453# include <stdint.h>
454# endif
6de9cd9a 455#endif
38d24731 456#if HAVE_UNISTD_H
6de9cd9a
DN
457# include <unistd.h>
458#endif"
459
38d24731 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 build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir onestep_TRUE onestep_FALSE onestep 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 AM_FCFLAGS AM_CFLAGS CFLAGS LIBGFOR_USE_SYMVER_TRUE LIBGFOR_USE_SYMVER_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP CPPFLAGS enable_shared enable_static FC FCFLAGS LDFLAGS ac_ct_FC extra_ldflags_libgfortran FPU_HOST_HEADER LIBOBJS LTLIBOBJS'
6de9cd9a
DN
461ac_subst_files=''
462
463# Initialize some variables set by options.
464ac_init_help=
465ac_init_version=false
466# The variables have the same names as the options, with
467# dashes changed to underlines.
468cache_file=/dev/null
469exec_prefix=NONE
470no_create=
471no_recursion=
472prefix=NONE
473program_prefix=NONE
474program_suffix=NONE
475program_transform_name=s,x,x,
476silent=
477site=
478srcdir=
479verbose=
480x_includes=NONE
481x_libraries=NONE
482
483# Installation directory options.
484# These are left unexpanded so users can "make install exec_prefix=/foo"
485# and all the variables that are supposed to be based on exec_prefix
486# by default will actually change.
487# Use braces instead of parens because sh, perl, etc. also accept them.
488bindir='${exec_prefix}/bin'
489sbindir='${exec_prefix}/sbin'
490libexecdir='${exec_prefix}/libexec'
38d24731 491datadir='${prefix}/share'
6de9cd9a
DN
492sysconfdir='${prefix}/etc'
493sharedstatedir='${prefix}/com'
494localstatedir='${prefix}/var'
38d24731 495libdir='${exec_prefix}/lib'
6de9cd9a
DN
496includedir='${prefix}/include'
497oldincludedir='/usr/include'
38d24731
RW
498infodir='${prefix}/info'
499mandir='${prefix}/man'
6de9cd9a
DN
500
501ac_prev=
502for ac_option
503do
504 # If the previous option needs an argument, assign it.
505 if test -n "$ac_prev"; then
38d24731 506 eval "$ac_prev=\$ac_option"
6de9cd9a
DN
507 ac_prev=
508 continue
509 fi
510
38d24731 511 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
6de9cd9a
DN
512
513 # Accept the important Cygnus configure options, so we can diagnose typos.
514
38d24731 515 case $ac_option in
6de9cd9a
DN
516
517 -bindir | --bindir | --bindi | --bind | --bin | --bi)
518 ac_prev=bindir ;;
519 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
520 bindir=$ac_optarg ;;
521
522 -build | --build | --buil | --bui | --bu)
523 ac_prev=build_alias ;;
524 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
525 build_alias=$ac_optarg ;;
526
527 -cache-file | --cache-file | --cache-fil | --cache-fi \
528 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
529 ac_prev=cache_file ;;
530 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
531 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
532 cache_file=$ac_optarg ;;
533
534 --config-cache | -C)
535 cache_file=config.cache ;;
536
38d24731 537 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
6de9cd9a 538 ac_prev=datadir ;;
38d24731
RW
539 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
540 | --da=*)
6de9cd9a
DN
541 datadir=$ac_optarg ;;
542
543 -disable-* | --disable-*)
544 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
545 # Reject names that are not valid shell variable names.
38d24731 546 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
6de9cd9a
DN
547 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
548 { (exit 1); exit 1; }; }
38d24731
RW
549 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
550 eval "enable_$ac_feature=no" ;;
6de9cd9a
DN
551
552 -enable-* | --enable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
554 # Reject names that are not valid shell variable names.
38d24731 555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
6de9cd9a
DN
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
38d24731
RW
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 case $ac_option in
560 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561 *) ac_optarg=yes ;;
562 esac
563 eval "enable_$ac_feature='$ac_optarg'" ;;
6de9cd9a
DN
564
565 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
566 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
567 | --exec | --exe | --ex)
568 ac_prev=exec_prefix ;;
569 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
570 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
571 | --exec=* | --exe=* | --ex=*)
572 exec_prefix=$ac_optarg ;;
573
574 -gas | --gas | --ga | --g)
575 # Obsolete; use --with-gas.
576 with_gas=yes ;;
577
578 -help | --help | --hel | --he | -h)
579 ac_init_help=long ;;
580 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
581 ac_init_help=recursive ;;
582 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
583 ac_init_help=short ;;
584
585 -host | --host | --hos | --ho)
586 ac_prev=host_alias ;;
587 -host=* | --host=* | --hos=* | --ho=*)
588 host_alias=$ac_optarg ;;
589
590 -includedir | --includedir | --includedi | --included | --include \
591 | --includ | --inclu | --incl | --inc)
592 ac_prev=includedir ;;
593 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
594 | --includ=* | --inclu=* | --incl=* | --inc=*)
595 includedir=$ac_optarg ;;
596
597 -infodir | --infodir | --infodi | --infod | --info | --inf)
598 ac_prev=infodir ;;
599 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
600 infodir=$ac_optarg ;;
601
602 -libdir | --libdir | --libdi | --libd)
603 ac_prev=libdir ;;
604 -libdir=* | --libdir=* | --libdi=* | --libd=*)
605 libdir=$ac_optarg ;;
606
607 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
608 | --libexe | --libex | --libe)
609 ac_prev=libexecdir ;;
610 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
611 | --libexe=* | --libex=* | --libe=*)
612 libexecdir=$ac_optarg ;;
613
614 -localstatedir | --localstatedir | --localstatedi | --localstated \
38d24731
RW
615 | --localstate | --localstat | --localsta | --localst \
616 | --locals | --local | --loca | --loc | --lo)
6de9cd9a
DN
617 ac_prev=localstatedir ;;
618 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
38d24731
RW
619 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
620 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
6de9cd9a
DN
621 localstatedir=$ac_optarg ;;
622
623 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
624 ac_prev=mandir ;;
625 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
626 mandir=$ac_optarg ;;
627
628 -nfp | --nfp | --nf)
629 # Obsolete; use --without-fp.
630 with_fp=no ;;
631
632 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
633 | --no-cr | --no-c | -n)
634 no_create=yes ;;
635
636 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
637 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
638 no_recursion=yes ;;
639
640 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
641 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
642 | --oldin | --oldi | --old | --ol | --o)
643 ac_prev=oldincludedir ;;
644 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
645 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
646 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
647 oldincludedir=$ac_optarg ;;
648
649 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
650 ac_prev=prefix ;;
651 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
652 prefix=$ac_optarg ;;
653
654 -program-prefix | --program-prefix | --program-prefi | --program-pref \
655 | --program-pre | --program-pr | --program-p)
656 ac_prev=program_prefix ;;
657 -program-prefix=* | --program-prefix=* | --program-prefi=* \
658 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
659 program_prefix=$ac_optarg ;;
660
661 -program-suffix | --program-suffix | --program-suffi | --program-suff \
662 | --program-suf | --program-su | --program-s)
663 ac_prev=program_suffix ;;
664 -program-suffix=* | --program-suffix=* | --program-suffi=* \
665 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
666 program_suffix=$ac_optarg ;;
667
668 -program-transform-name | --program-transform-name \
669 | --program-transform-nam | --program-transform-na \
670 | --program-transform-n | --program-transform- \
671 | --program-transform | --program-transfor \
672 | --program-transfo | --program-transf \
673 | --program-trans | --program-tran \
674 | --progr-tra | --program-tr | --program-t)
675 ac_prev=program_transform_name ;;
676 -program-transform-name=* | --program-transform-name=* \
677 | --program-transform-nam=* | --program-transform-na=* \
678 | --program-transform-n=* | --program-transform-=* \
679 | --program-transform=* | --program-transfor=* \
680 | --program-transfo=* | --program-transf=* \
681 | --program-trans=* | --program-tran=* \
682 | --progr-tra=* | --program-tr=* | --program-t=*)
683 program_transform_name=$ac_optarg ;;
684
685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
686 | -silent | --silent | --silen | --sile | --sil)
687 silent=yes ;;
688
689 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
690 ac_prev=sbindir ;;
691 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
692 | --sbi=* | --sb=*)
693 sbindir=$ac_optarg ;;
694
695 -sharedstatedir | --sharedstatedir | --sharedstatedi \
696 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
697 | --sharedst | --shareds | --shared | --share | --shar \
698 | --sha | --sh)
699 ac_prev=sharedstatedir ;;
700 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
701 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
702 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
703 | --sha=* | --sh=*)
704 sharedstatedir=$ac_optarg ;;
705
706 -site | --site | --sit)
707 ac_prev=site ;;
708 -site=* | --site=* | --sit=*)
709 site=$ac_optarg ;;
710
711 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
712 ac_prev=srcdir ;;
713 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
714 srcdir=$ac_optarg ;;
715
716 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
717 | --syscon | --sysco | --sysc | --sys | --sy)
718 ac_prev=sysconfdir ;;
719 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
720 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
721 sysconfdir=$ac_optarg ;;
722
723 -target | --target | --targe | --targ | --tar | --ta | --t)
724 ac_prev=target_alias ;;
725 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
726 target_alias=$ac_optarg ;;
727
728 -v | -verbose | --verbose | --verbos | --verbo | --verb)
729 verbose=yes ;;
730
731 -version | --version | --versio | --versi | --vers | -V)
732 ac_init_version=: ;;
733
734 -with-* | --with-*)
735 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
736 # Reject names that are not valid shell variable names.
38d24731 737 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
6de9cd9a
DN
738 { echo "$as_me: error: invalid package name: $ac_package" >&2
739 { (exit 1); exit 1; }; }
38d24731
RW
740 ac_package=`echo $ac_package| sed 's/-/_/g'`
741 case $ac_option in
742 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
743 *) ac_optarg=yes ;;
744 esac
745 eval "with_$ac_package='$ac_optarg'" ;;
6de9cd9a
DN
746
747 -without-* | --without-*)
748 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
749 # Reject names that are not valid shell variable names.
38d24731 750 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
6de9cd9a
DN
751 { echo "$as_me: error: invalid package name: $ac_package" >&2
752 { (exit 1); exit 1; }; }
38d24731
RW
753 ac_package=`echo $ac_package | sed 's/-/_/g'`
754 eval "with_$ac_package=no" ;;
6de9cd9a
DN
755
756 --x)
757 # Obsolete; use --with-x.
758 with_x=yes ;;
759
760 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
761 | --x-incl | --x-inc | --x-in | --x-i)
762 ac_prev=x_includes ;;
763 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
764 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
765 x_includes=$ac_optarg ;;
766
767 -x-libraries | --x-libraries | --x-librarie | --x-librari \
768 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
769 ac_prev=x_libraries ;;
770 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
771 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
772 x_libraries=$ac_optarg ;;
773
774 -*) { echo "$as_me: error: unrecognized option: $ac_option
775Try \`$0 --help' for more information." >&2
776 { (exit 1); exit 1; }; }
777 ;;
778
779 *=*)
780 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
781 # Reject names that are not valid shell variable names.
782 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
783 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
784 { (exit 1); exit 1; }; }
38d24731
RW
785 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
786 eval "$ac_envvar='$ac_optarg'"
6de9cd9a
DN
787 export $ac_envvar ;;
788
789 *)
790 # FIXME: should be removed in autoconf 3.0.
791 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
792 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
793 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
794 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795 ;;
796
797 esac
798done
799
800if test -n "$ac_prev"; then
801 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
802 { echo "$as_me: error: missing argument to $ac_option" >&2
803 { (exit 1); exit 1; }; }
804fi
805
38d24731
RW
806# Be sure to have absolute paths.
807for ac_var in exec_prefix prefix
78511f8b 808do
38d24731 809 eval ac_val=$`echo $ac_var`
78511f8b 810 case $ac_val in
38d24731
RW
811 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
812 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
813 { (exit 1); exit 1; }; };;
814 esac
815done
816
817# Be sure to have absolute paths.
818for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
819 localstatedir libdir includedir oldincludedir infodir mandir
820do
821 eval ac_val=$`echo $ac_var`
822 case $ac_val in
823 [\\/$]* | ?:[\\/]* ) ;;
824 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825 { (exit 1); exit 1; }; };;
6de9cd9a
DN
826 esac
827done
828
829# There might be people who depend on the old broken behavior: `$host'
830# used to hold the argument of --host etc.
831# FIXME: To remove some day.
832build=$build_alias
833host=$host_alias
834target=$target_alias
835
836# FIXME: To remove some day.
837if test "x$host_alias" != x; then
838 if test "x$build_alias" = x; then
839 cross_compiling=maybe
840 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
841 If a cross compiler is detected then cross compile mode will be used." >&2
842 elif test "x$build_alias" != "x$host_alias"; then
843 cross_compiling=yes
844 fi
845fi
846
847ac_tool_prefix=
848test -n "$host_alias" && ac_tool_prefix=$host_alias-
849
850test "$silent" = yes && exec 6>/dev/null
851
852
853# Find the source files, if location was not specified.
854if test -z "$srcdir"; then
855 ac_srcdir_defaulted=yes
38d24731
RW
856 # Try the directory containing this script, then its parent.
857 ac_confdir=`(dirname "$0") 2>/dev/null ||
6de9cd9a
DN
858$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
859 X"$0" : 'X\(//\)[^/]' \| \
860 X"$0" : 'X\(//\)$' \| \
38d24731
RW
861 X"$0" : 'X\(/\)' \| \
862 . : '\(.\)' 2>/dev/null ||
6de9cd9a 863echo X"$0" |
38d24731
RW
864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
866 /^X\(\/\/\)$/{ s//\1/; q; }
867 /^X\(\/\).*/{ s//\1/; q; }
868 s/.*/./; q'`
6de9cd9a 869 srcdir=$ac_confdir
38d24731 870 if test ! -r $srcdir/$ac_unique_file; then
6de9cd9a
DN
871 srcdir=..
872 fi
873else
874 ac_srcdir_defaulted=no
875fi
38d24731
RW
876if test ! -r $srcdir/$ac_unique_file; then
877 if test "$ac_srcdir_defaulted" = yes; then
878 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
6de9cd9a 879 { (exit 1); exit 1; }; }
38d24731
RW
880 else
881 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
882 { (exit 1); exit 1; }; }
883 fi
6de9cd9a 884fi
38d24731
RW
885(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
886 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
6de9cd9a 887 { (exit 1); exit 1; }; }
38d24731
RW
888srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
889ac_env_build_alias_set=${build_alias+set}
890ac_env_build_alias_value=$build_alias
891ac_cv_env_build_alias_set=${build_alias+set}
892ac_cv_env_build_alias_value=$build_alias
893ac_env_host_alias_set=${host_alias+set}
894ac_env_host_alias_value=$host_alias
895ac_cv_env_host_alias_set=${host_alias+set}
896ac_cv_env_host_alias_value=$host_alias
897ac_env_target_alias_set=${target_alias+set}
898ac_env_target_alias_value=$target_alias
899ac_cv_env_target_alias_set=${target_alias+set}
900ac_cv_env_target_alias_value=$target_alias
901ac_env_CPP_set=${CPP+set}
902ac_env_CPP_value=$CPP
903ac_cv_env_CPP_set=${CPP+set}
904ac_cv_env_CPP_value=$CPP
905ac_env_CPPFLAGS_set=${CPPFLAGS+set}
906ac_env_CPPFLAGS_value=$CPPFLAGS
907ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
908ac_cv_env_CPPFLAGS_value=$CPPFLAGS
909ac_env_FC_set=${FC+set}
910ac_env_FC_value=$FC
911ac_cv_env_FC_set=${FC+set}
912ac_cv_env_FC_value=$FC
913ac_env_FCFLAGS_set=${FCFLAGS+set}
914ac_env_FCFLAGS_value=$FCFLAGS
915ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
916ac_cv_env_FCFLAGS_value=$FCFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
6de9cd9a
DN
921
922#
923# Report the --help message.
924#
925if test "$ac_init_help" = "long"; then
926 # Omit some internal or obsolete options to make the list less imposing.
927 # This message is too long to be a string in the A/UX 3.1 sh.
928 cat <<_ACEOF
0dce3ca1 929\`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
6de9cd9a
DN
930
931Usage: $0 [OPTION]... [VAR=VALUE]...
932
933To assign environment variables (e.g., CC, CFLAGS...), specify them as
934VAR=VALUE. See below for descriptions of some of the useful variables.
935
936Defaults for the options are specified in brackets.
937
938Configuration:
939 -h, --help display this help and exit
940 --help=short display options specific to this package
941 --help=recursive display the short help of all the included packages
942 -V, --version display version information and exit
943 -q, --quiet, --silent do not print \`checking...' messages
944 --cache-file=FILE cache test results in FILE [disabled]
945 -C, --config-cache alias for \`--cache-file=config.cache'
946 -n, --no-create do not create output files
947 --srcdir=DIR find the sources in DIR [configure dir or \`..']
948
38d24731
RW
949_ACEOF
950
951 cat <<_ACEOF
6de9cd9a
DN
952Installation directories:
953 --prefix=PREFIX install architecture-independent files in PREFIX
954 [$ac_default_prefix]
955 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
956 [PREFIX]
957
958By default, \`make install' will install all the files in
959\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
960an installation prefix other than \`$ac_default_prefix' using \`--prefix',
961for instance \`--prefix=\$HOME'.
962
963For better control, use the options below.
964
965Fine tuning of the installation directories:
966 --bindir=DIR user executables [EPREFIX/bin]
967 --sbindir=DIR system admin executables [EPREFIX/sbin]
968 --libexecdir=DIR program executables [EPREFIX/libexec]
38d24731 969 --datadir=DIR read-only architecture-independent data [PREFIX/share]
6de9cd9a
DN
970 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
971 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
972 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
973 --libdir=DIR object code libraries [EPREFIX/lib]
974 --includedir=DIR C header files [PREFIX/include]
975 --oldincludedir=DIR C header files for non-gcc [/usr/include]
38d24731
RW
976 --infodir=DIR info documentation [PREFIX/info]
977 --mandir=DIR man documentation [PREFIX/man]
6de9cd9a
DN
978_ACEOF
979
980 cat <<\_ACEOF
981
982Program names:
983 --program-prefix=PREFIX prepend PREFIX to installed program names
984 --program-suffix=SUFFIX append SUFFIX to installed program names
985 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
986
987System types:
988 --build=BUILD configure for building on BUILD [guessed]
989 --host=HOST cross-compile to build programs to run on HOST [BUILD]
96b8a615 990 --target=TARGET configure for building compilers for TARGET [HOST]
6de9cd9a
DN
991_ACEOF
992fi
993
994if test -n "$ac_init_help"; then
995 case $ac_init_help in
0dce3ca1 996 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
6de9cd9a
DN
997 esac
998 cat <<\_ACEOF
999
1000Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
96b8a615 1003 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
b808ac33 1004 --enable-intermodule build the library in one step
6de9cd9a
DN
1005 --enable-maintainer-mode enable make rules and dependencies not useful
1006 (and sometimes confusing) to the casual installer
96b8a615 1007 --enable-multilib build many library versions (default)
679c0f9a
TT
1008 --disable-dependency-tracking speeds up one-time build
1009 --enable-dependency-tracking do not reject slow dependency extractors
38d24731
RW
1010 --enable-shared[=PKGS]
1011 build shared libraries [default=yes]
1012 --enable-static[=PKGS]
1013 build static libraries [default=yes]
1cf3d07d
SE
1014 --enable-fast-install[=PKGS]
1015 optimize for fast installation [default=yes]
6de9cd9a 1016 --disable-libtool-lock avoid locking (might break parallel builds)
9cdc381b 1017 --disable-largefile omit support for large files
6de9cd9a
DN
1018
1019Optional Packages:
1020 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1021 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
57255173 1022 --with-build-libsubdir=DIR Directory where to find libraries for build system
1cf3d07d
SE
1023 --with-pic try to use only PIC/non-PIC objects [default=use
1024 both]
1025 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
6de9cd9a
DN
1026
1027Some influential environment variables:
1028 CC C compiler command
1029 CFLAGS C compiler flags
1030 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1031 nonstandard directory <lib dir>
38d24731
RW
1032 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1033 headers in a nonstandard directory <include dir>
1cf3d07d 1034 CPP C preprocessor
c7a35fe9
AS
1035 FC Fortran compiler command
1036 FCFLAGS Fortran compiler flags
6de9cd9a
DN
1037
1038Use these variables to override the choices made by `configure' or to help
1039it to find libraries and programs with nonstandard names/locations.
1040
1041_ACEOF
1042fi
1043
1044if test "$ac_init_help" = "recursive"; then
1045 # If there are subdirs, report their specific --help.
38d24731 1046 ac_popdir=`pwd`
6de9cd9a 1047 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
38d24731 1048 test -d $ac_dir || continue
6de9cd9a
DN
1049 ac_builddir=.
1050
38d24731 1051if test "$ac_dir" != .; then
6de9cd9a 1052 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38d24731
RW
1053 # A "../" for each directory in $ac_dir_suffix.
1054 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1055else
1056 ac_dir_suffix= ac_top_builddir=
1057fi
6de9cd9a
DN
1058
1059case $srcdir in
38d24731 1060 .) # No --srcdir option. We are building in place.
6de9cd9a 1061 ac_srcdir=.
38d24731
RW
1062 if test -z "$ac_top_builddir"; then
1063 ac_top_srcdir=.
1064 else
1065 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1066 fi ;;
1067 [\\/]* | ?:[\\/]* ) # Absolute path.
6de9cd9a 1068 ac_srcdir=$srcdir$ac_dir_suffix;
38d24731
RW
1069 ac_top_srcdir=$srcdir ;;
1070 *) # Relative path.
1071 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1072 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1073esac
1074
1075# Do not use `cd foo && pwd` to compute absolute paths, because
1076# the directories may not exist.
1077case `pwd` in
1078.) ac_abs_builddir="$ac_dir";;
1079*)
1080 case "$ac_dir" in
1081 .) ac_abs_builddir=`pwd`;;
1082 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1083 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1084 esac;;
1085esac
1086case $ac_abs_builddir in
1087.) ac_abs_top_builddir=${ac_top_builddir}.;;
1088*)
1089 case ${ac_top_builddir}. in
1090 .) ac_abs_top_builddir=$ac_abs_builddir;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1092 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1093 esac;;
1094esac
1095case $ac_abs_builddir in
1096.) ac_abs_srcdir=$ac_srcdir;;
1097*)
1098 case $ac_srcdir in
1099 .) ac_abs_srcdir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1101 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1102 esac;;
78511f8b 1103esac
38d24731
RW
1104case $ac_abs_builddir in
1105.) ac_abs_top_srcdir=$ac_top_srcdir;;
1106*)
1107 case $ac_top_srcdir in
1108 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1110 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1111 esac;;
1112esac
1113
1114 cd $ac_dir
1115 # Check for guested configure; otherwise get Cygnus style configure.
1116 if test -f $ac_srcdir/configure.gnu; then
1117 echo
1118 $SHELL $ac_srcdir/configure.gnu --help=recursive
1119 elif test -f $ac_srcdir/configure; then
1120 echo
1121 $SHELL $ac_srcdir/configure --help=recursive
1122 elif test -f $ac_srcdir/configure.ac ||
1123 test -f $ac_srcdir/configure.in; then
1124 echo
1125 $ac_configure --help
6de9cd9a
DN
1126 else
1127 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
38d24731
RW
1128 fi
1129 cd $ac_popdir
6de9cd9a
DN
1130 done
1131fi
1132
38d24731 1133test -n "$ac_init_help" && exit 0
6de9cd9a
DN
1134if $ac_init_version; then
1135 cat <<\_ACEOF
0dce3ca1 1136GNU Fortran Runtime Library configure 0.3
38d24731 1137generated by GNU Autoconf 2.59
6de9cd9a 1138
38d24731 1139Copyright (C) 2003 Free Software Foundation, Inc.
6de9cd9a
DN
1140This configure script is free software; the Free Software Foundation
1141gives unlimited permission to copy, distribute and modify it.
1142_ACEOF
38d24731 1143 exit 0
6de9cd9a 1144fi
38d24731
RW
1145exec 5>config.log
1146cat >&5 <<_ACEOF
6de9cd9a
DN
1147This file contains any messages produced by compilers while
1148running configure, to aid debugging if configure makes a mistake.
1149
0dce3ca1 1150It was created by GNU Fortran Runtime Library $as_me 0.3, which was
38d24731 1151generated by GNU Autoconf 2.59. Invocation command line was
6de9cd9a
DN
1152
1153 $ $0 $@
1154
1155_ACEOF
1156{
1157cat <<_ASUNAME
1158## --------- ##
1159## Platform. ##
1160## --------- ##
1161
1162hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167
1168/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1170
1171/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1172/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1173/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
38d24731 1174hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
6de9cd9a
DN
1175/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1176/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1177/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1178
1179_ASUNAME
1180
1181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182for as_dir in $PATH
1183do
1184 IFS=$as_save_IFS
1185 test -z "$as_dir" && as_dir=.
1186 echo "PATH: $as_dir"
1187done
1188
1189} >&5
1190
1191cat >&5 <<_ACEOF
1192
1193
1194## ----------- ##
1195## Core tests. ##
1196## ----------- ##
1197
1198_ACEOF
1199
1200
1201# Keep a trace of the command line.
1202# Strip out --no-create and --no-recursion so they do not pile up.
1203# Strip out --silent because we don't want to record it for future runs.
1204# Also quote any args containing shell meta-characters.
1205# Make two passes to allow for proper duplicate-argument suppression.
1206ac_configure_args=
1207ac_configure_args0=
1208ac_configure_args1=
38d24731 1209ac_sep=
6de9cd9a
DN
1210ac_must_keep_next=false
1211for ac_pass in 1 2
1212do
1213 for ac_arg
1214 do
1215 case $ac_arg in
1216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1219 continue ;;
38d24731 1220 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
6de9cd9a
DN
1221 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222 esac
1223 case $ac_pass in
1224 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225 2)
1226 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227 if test $ac_must_keep_next = true; then
1228 ac_must_keep_next=false # Got value, back to normal.
1229 else
1230 case $ac_arg in
1231 *=* | --config-cache | -C | -disable-* | --disable-* \
1232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234 | -with-* | --with-* | -without-* | --without-* | --x)
1235 case "$ac_configure_args0 " in
1236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237 esac
1238 ;;
1239 -* ) ac_must_keep_next=true ;;
1240 esac
1241 fi
38d24731
RW
1242 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243 # Get rid of the leading space.
1244 ac_sep=" "
6de9cd9a
DN
1245 ;;
1246 esac
1247 done
1248done
1249$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251
1252# When interrupted or exit'd, cleanup temporary files, and complete
1253# config.log. We remove comments because anyway the quotes in there
1254# would cause problems or look ugly.
38d24731
RW
1255# WARNING: Be sure not to use single quotes in there, as some shells,
1256# such as our DU 5.0 friend, will then `close' the trap.
6de9cd9a
DN
1257trap 'exit_status=$?
1258 # Save into config.log some information that might help in debugging.
1259 {
1260 echo
1261
1262 cat <<\_ASBOX
1263## ---------------- ##
1264## Cache variables. ##
1265## ---------------- ##
1266_ASBOX
1267 echo
1268 # The following way of writing the cache mishandles newlines in values,
38d24731 1269{
6de9cd9a 1270 (set) 2>&1 |
38d24731
RW
1271 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272 *ac_space=\ *)
6de9cd9a 1273 sed -n \
38d24731
RW
1274 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276 ;;
6de9cd9a 1277 *)
38d24731
RW
1278 sed -n \
1279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6de9cd9a 1280 ;;
38d24731
RW
1281 esac;
1282}
6de9cd9a
DN
1283 echo
1284
1285 cat <<\_ASBOX
1286## ----------------- ##
1287## Output variables. ##
1288## ----------------- ##
1289_ASBOX
1290 echo
1291 for ac_var in $ac_subst_vars
1292 do
38d24731
RW
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
6de9cd9a
DN
1295 done | sort
1296 echo
1297
1298 if test -n "$ac_subst_files"; then
1299 cat <<\_ASBOX
38d24731
RW
1300## ------------- ##
1301## Output files. ##
1302## ------------- ##
6de9cd9a
DN
1303_ASBOX
1304 echo
1305 for ac_var in $ac_subst_files
1306 do
38d24731
RW
1307 eval ac_val=$`echo $ac_var`
1308 echo "$ac_var='"'"'$ac_val'"'"'"
6de9cd9a
DN
1309 done | sort
1310 echo
1311 fi
1312
1313 if test -s confdefs.h; then
1314 cat <<\_ASBOX
1315## ----------- ##
1316## confdefs.h. ##
1317## ----------- ##
1318_ASBOX
1319 echo
38d24731 1320 sed "/^$/d" confdefs.h | sort
6de9cd9a
DN
1321 echo
1322 fi
1323 test "$ac_signal" != 0 &&
1324 echo "$as_me: caught signal $ac_signal"
1325 echo "$as_me: exit $exit_status"
1326 } >&5
38d24731
RW
1327 rm -f core *.core &&
1328 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
6de9cd9a 1329 exit $exit_status
38d24731 1330 ' 0
6de9cd9a
DN
1331for ac_signal in 1 2 13 15; do
1332 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333done
1334ac_signal=0
1335
1336# confdefs.h avoids OS command line length limits that DEFS can exceed.
38d24731
RW
1337rm -rf conftest* confdefs.h
1338# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339echo >confdefs.h
6de9cd9a
DN
1340
1341# Predefined preprocessor variables.
1342
1343cat >>confdefs.h <<_ACEOF
1344#define PACKAGE_NAME "$PACKAGE_NAME"
1345_ACEOF
1346
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350_ACEOF
1351
1352
1353cat >>confdefs.h <<_ACEOF
1354#define PACKAGE_VERSION "$PACKAGE_VERSION"
1355_ACEOF
1356
1357
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_STRING "$PACKAGE_STRING"
1360_ACEOF
1361
1362
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365_ACEOF
1366
1367
1368# Let the site file select an alternate cache file if it wants to.
1369# Prefer explicitly selected file to automatically selected ones.
38d24731
RW
1370if test -z "$CONFIG_SITE"; then
1371 if test "x$prefix" != xNONE; then
1372 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 else
1374 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1375 fi
6de9cd9a 1376fi
38d24731 1377for ac_site_file in $CONFIG_SITE; do
6de9cd9a
DN
1378 if test -r "$ac_site_file"; then
1379 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380echo "$as_me: loading site script $ac_site_file" >&6;}
1381 sed 's/^/| /' "$ac_site_file" >&5
1382 . "$ac_site_file"
1383 fi
1384done
1385
1386if test -r "$cache_file"; then
1387 # Some versions of bash will fail to source /dev/null (special
1388 # files actually), so we avoid doing that.
1389 if test -f "$cache_file"; then
1390 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391echo "$as_me: loading cache $cache_file" >&6;}
1392 case $cache_file in
38d24731
RW
1393 [\\/]* | ?:[\\/]* ) . $cache_file;;
1394 *) . ./$cache_file;;
6de9cd9a
DN
1395 esac
1396 fi
1397else
1398 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399echo "$as_me: creating cache $cache_file" >&6;}
1400 >$cache_file
1401fi
1402
1403# Check that the precious variables saved in the cache have kept the same
1404# value.
1405ac_cache_corrupted=false
38d24731
RW
1406for ac_var in `(set) 2>&1 |
1407 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
6de9cd9a
DN
1408 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409 eval ac_new_set=\$ac_env_${ac_var}_set
38d24731
RW
1410 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411 eval ac_new_val="\$ac_env_${ac_var}_value"
6de9cd9a
DN
1412 case $ac_old_set,$ac_new_set in
1413 set,)
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1417 ,set)
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1421 ,);;
1422 *)
1423 if test "x$ac_old_val" != "x$ac_new_val"; then
1424 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1425echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1426 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1427echo "$as_me: former value: $ac_old_val" >&2;}
1428 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1429echo "$as_me: current value: $ac_new_val" >&2;}
1430 ac_cache_corrupted=:
1431 fi;;
1432 esac
1433 # Pass precious variables to config.status.
1434 if test "$ac_new_set" = set; then
1435 case $ac_new_val in
38d24731
RW
1436 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1437 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
6de9cd9a
DN
1438 *) ac_arg=$ac_var=$ac_new_val ;;
1439 esac
1440 case " $ac_configure_args " in
1441 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1442 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1443 esac
1444 fi
1445done
1446if $ac_cache_corrupted; then
1447 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1448echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1449 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1450echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1451 { (exit 1); exit 1; }; }
1452fi
1453
38d24731
RW
1454ac_ext=c
1455ac_cpp='$CPP $CPPFLAGS'
1456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1458ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a
DN
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
78511f8b 1484
38d24731
RW
1485
1486 ac_config_headers="$ac_config_headers config.h"
96b8a615 1487
6de9cd9a 1488ac_aux_dir=
38d24731
RW
1489for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1490 if test -f $ac_dir/install-sh; then
6de9cd9a
DN
1491 ac_aux_dir=$ac_dir
1492 ac_install_sh="$ac_aux_dir/install-sh -c"
1493 break
38d24731 1494 elif test -f $ac_dir/install.sh; then
6de9cd9a
DN
1495 ac_aux_dir=$ac_dir
1496 ac_install_sh="$ac_aux_dir/install.sh -c"
1497 break
38d24731 1498 elif test -f $ac_dir/shtool; then
6de9cd9a
DN
1499 ac_aux_dir=$ac_dir
1500 ac_install_sh="$ac_aux_dir/shtool install -c"
1501 break
1502 fi
1503done
1504if test -z "$ac_aux_dir"; then
38d24731
RW
1505 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1506echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
6de9cd9a
DN
1507 { (exit 1); exit 1; }; }
1508fi
38d24731
RW
1509ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
6de9cd9a 1512
96b8a615 1513# Make sure we can run config.sub.
38d24731
RW
1514$ac_config_sub sun4 >/dev/null 2>&1 ||
1515 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1516echo "$as_me: error: cannot run $ac_config_sub" >&2;}
96b8a615
AJ
1517 { (exit 1); exit 1; }; }
1518
38d24731
RW
1519echo "$as_me:$LINENO: checking build system type" >&5
1520echo $ECHO_N "checking build system type... $ECHO_C" >&6
96b8a615
AJ
1521if test "${ac_cv_build+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1523else
38d24731
RW
1524 ac_cv_build_alias=$build_alias
1525test -z "$ac_cv_build_alias" &&
1526 ac_cv_build_alias=`$ac_config_guess`
1527test -z "$ac_cv_build_alias" &&
96b8a615
AJ
1528 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1529echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1530 { (exit 1); exit 1; }; }
38d24731
RW
1531ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1532 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1533echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
96b8a615
AJ
1534 { (exit 1); exit 1; }; }
1535
1536fi
38d24731
RW
1537echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1538echo "${ECHO_T}$ac_cv_build" >&6
96b8a615 1539build=$ac_cv_build
38d24731
RW
1540build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1541build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1542build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
96b8a615
AJ
1543
1544
891c05b1
JJ
1545 case ${build_alias} in
1546 "") build_noncanonical=${build} ;;
1547 *) build_noncanonical=${build_alias} ;;
1548esac
1549
1550 case ${host_alias} in
1551 "") host_noncanonical=${build_noncanonical} ;;
1552 *) host_noncanonical=${host_alias} ;;
1553esac
1554
1555 case ${target_alias} in
1556 "") target_noncanonical=${host_noncanonical} ;;
1557 *) target_noncanonical=${target_alias} ;;
1558esac
1559
57255173
PB
1560
1561# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1562# have matching libraries, they should use host libraries: Makefile.tpl
1563# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1564# However, they still use the build modules, because the corresponding
1565# host modules (e.g. bison) are only built for the host when bootstrap
1566# finishes. So:
1567# - build_subdir is where we find build modules, and never changes.
1568# - build_libsubdir is where we find build libraries, and can be overridden.
1569
1570# Prefix 'build-' so this never conflicts with target_subdir.
891c05b1 1571build_subdir="build-${build_noncanonical}"
57255173 1572
38d24731 1573# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
57255173 1574if test "${with_build_libsubdir+set}" = set; then
38d24731
RW
1575 withval="$with_build_libsubdir"
1576 build_libsubdir="$withval"
57255173
PB
1577else
1578 build_libsubdir="$build_subdir"
38d24731 1579fi;
891c05b1
JJ
1580# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1581if ( test $srcdir = . && test -d gcc ) \
1582 || test -d $srcdir/../host-${host_noncanonical}; then
1583 host_subdir="host-${host_noncanonical}"
1584else
1585 host_subdir=.
1586fi
1587# No prefix.
1588target_subdir=${target_noncanonical}
1589
1590
1591# -------
1592# Options
1593# -------
1594
38d24731
RW
1595echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1596echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1597# Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
891c05b1 1598if test "${enable_version_specific_runtime_libs+set}" = set; then
38d24731
RW
1599 enableval="$enable_version_specific_runtime_libs"
1600 case "$enableval" in
891c05b1
JJ
1601 yes) version_specific_libs=yes ;;
1602 no) version_specific_libs=no ;;
1603 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1604echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1605 { (exit 1); exit 1; }; };;
1606 esac
1607else
1608 version_specific_libs=no
38d24731
RW
1609fi;
1610echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1611echo "${ECHO_T}$version_specific_libs" >&6
891c05b1 1612
b808ac33 1613# Build with intermodule optimisations
38d24731
RW
1614echo "$as_me:$LINENO: checking for --enable-intermodule" >&5
1615echo $ECHO_N "checking for --enable-intermodule... $ECHO_C" >&6
1616# Check whether --enable-intermodule or --disable-intermodule was given.
b808ac33 1617if test "${enable_intermodule+set}" = set; then
38d24731
RW
1618 enableval="$enable_intermodule"
1619 case "$enable_intermodule" in
b808ac33
BF
1620 yes) onestep="-onestep";;
1621 *) onestep="";;
1622esac
1623else
1624 onestep=""
38d24731
RW
1625fi;
1626echo "$as_me:$LINENO: result: $enable_intermodule" >&5
1627echo "${ECHO_T}$enable_intermodule" >&6
b808ac33
BF
1628
1629
1630if test x$onestep = x-onestep; then
1631 onestep_TRUE=
1632 onestep_FALSE='#'
1633else
1634 onestep_TRUE='#'
1635 onestep_FALSE=
1636fi
1637
1638
891c05b1
JJ
1639
1640# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1641#
1642# You will slowly go insane if you do not grok the following fact: when
1643# building this library, the top-level /target/ becomes the library's /host/.
1644#
1645# configure then causes --target to default to --host, exactly like any
1646# other package using autoconf. Therefore, 'target' and 'host' will
1647# always be the same. This makes sense both for native and cross compilers
1648# just think about it for a little while. :-)
1649#
1650# Also, if this library is being configured as part of a cross compiler, the
1651# top-level configure script will pass the "real" host as $with_cross_host.
1652#
1653# Do not delete or change the following two lines. For why, see
1654# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
38d24731
RW
1655echo "$as_me:$LINENO: checking host system type" >&5
1656echo $ECHO_N "checking host system type... $ECHO_C" >&6
96b8a615
AJ
1657if test "${ac_cv_host+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659else
38d24731
RW
1660 ac_cv_host_alias=$host_alias
1661test -z "$ac_cv_host_alias" &&
1662 ac_cv_host_alias=$ac_cv_build_alias
1663ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1664 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1665echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
96b8a615
AJ
1666 { (exit 1); exit 1; }; }
1667
1668fi
38d24731
RW
1669echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1670echo "${ECHO_T}$ac_cv_host" >&6
96b8a615 1671host=$ac_cv_host
38d24731
RW
1672host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1673host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1674host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1675
1676
1677echo "$as_me:$LINENO: checking target system type" >&5
1678echo $ECHO_N "checking target system type... $ECHO_C" >&6
96b8a615
AJ
1679if test "${ac_cv_target+set}" = set; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1681else
38d24731
RW
1682 ac_cv_target_alias=$target_alias
1683test "x$ac_cv_target_alias" = "x" &&
1684 ac_cv_target_alias=$ac_cv_host_alias
1685ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1686 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1687echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
96b8a615
AJ
1688 { (exit 1); exit 1; }; }
1689
1690fi
38d24731
RW
1691echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1692echo "${ECHO_T}$ac_cv_target" >&6
96b8a615 1693target=$ac_cv_target
38d24731
RW
1694target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1695target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1696target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
96b8a615
AJ
1697
1698
1699# The aliases save the names the user supplied, while $host etc.
1700# will get canonicalized.
1701test -n "$target_alias" &&
1702 test "$program_prefix$program_suffix$program_transform_name" = \
1703 NONENONEs,x,x, &&
1704 program_prefix=${target_alias}-
1705target_alias=${target_alias-$host_alias}
1706
1707# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1708# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
679c0f9a 1709# 1.9.6: minimum required version
96b8a615
AJ
1710# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1711# of other PACKAGE_* variables will, however, and there's nothing
1712# we can do about that; they come from AC_INIT).
1713# foreign: we don't follow the normal rules for GNU packages (no COPYING
1714# file in the top srcdir, etc, etc), so stop complaining.
96b8a615
AJ
1715# -Wall: turns on all automake warnings...
1716# -Wno-portability: ...except this one, since GNU make is required.
d49ec2d1 1717am__api_version="1.9"
6de9cd9a
DN
1718# Find a good install program. We prefer a C program (faster),
1719# so one script is as good as another. But avoid the broken or
1720# incompatible versions:
1721# SysV /etc/install, /usr/sbin/install
1722# SunOS /usr/etc/install
1723# IRIX /sbin/install
1724# AIX /bin/install
1725# AmigaOS /C/install, which installs bootblocks on floppy discs
1726# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1727# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1728# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1729# OS/2's system install, which has a completely different semantic
1730# ./install, which can be erroneously created by make from ./install.sh.
38d24731
RW
1731# Reject install programs that cannot install multiple files.
1732echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1733echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6de9cd9a
DN
1734if test -z "$INSTALL"; then
1735if test "${ac_cv_path_install+set}" = set; then
1736 echo $ECHO_N "(cached) $ECHO_C" >&6
1737else
1738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739for as_dir in $PATH
1740do
1741 IFS=$as_save_IFS
1742 test -z "$as_dir" && as_dir=.
1743 # Account for people who put trailing slashes in PATH elements.
1744case $as_dir/ in
1745 ./ | .// | /cC/* | \
1746 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1747 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1748 /usr/ucb/* ) ;;
1749 *)
1750 # OSF1 and SCO ODT 3.0 have their own names for install.
1751 # Don't use installbsd from OSF since it installs stuff as root
1752 # by default.
1753 for ac_prog in ginstall scoinst install; do
1754 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 1755 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6de9cd9a
DN
1756 if test $ac_prog = install &&
1757 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1758 # AIX install. It has an incompatible calling convention.
1759 :
1760 elif test $ac_prog = install &&
1761 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1762 # program-specific install script used by HP pwplus--don't use.
1763 :
1764 else
38d24731
RW
1765 rm -rf conftest.one conftest.two conftest.dir
1766 echo one > conftest.one
1767 echo two > conftest.two
1768 mkdir conftest.dir
1769 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1770 test -s conftest.one && test -s conftest.two &&
1771 test -s conftest.dir/conftest.one &&
1772 test -s conftest.dir/conftest.two
1773 then
1774 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1775 break 3
1776 fi
6de9cd9a
DN
1777 fi
1778 fi
1779 done
1780 done
1781 ;;
1782esac
1783done
1784
38d24731 1785rm -rf conftest.one conftest.two conftest.dir
6de9cd9a
DN
1786
1787fi
1788 if test "${ac_cv_path_install+set}" = set; then
1789 INSTALL=$ac_cv_path_install
1790 else
f489fba1
FXC
1791 # As a last resort, use the slow shell script. Don't cache a
1792 # value for INSTALL within a source directory, because that will
6de9cd9a 1793 # break other packages using the cache if that directory is
f489fba1 1794 # removed, or if the value is a relative name.
6de9cd9a
DN
1795 INSTALL=$ac_install_sh
1796 fi
1797fi
38d24731
RW
1798echo "$as_me:$LINENO: result: $INSTALL" >&5
1799echo "${ECHO_T}$INSTALL" >&6
6de9cd9a
DN
1800
1801# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1802# It thinks the first close brace ends the variable substitution.
1803test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1804
1805test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1806
1807test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1808
38d24731
RW
1809echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1810echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6de9cd9a
DN
1811# Just in case
1812sleep 1
1813echo timestamp > conftest.file
1814# Do `set' in a subshell so we don't clobber the current shell's
1815# arguments. Must try -L first in case configure is actually a
1816# symlink; some systems play weird games with the mod time of symlinks
1817# (eg FreeBSD returns the mod time of the symlink's containing
1818# directory).
1819if (
1820 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1821 if test "$*" = "X"; then
1822 # -L didn't work.
1823 set X `ls -t $srcdir/configure conftest.file`
1824 fi
1825 rm -f conftest.file
1826 if test "$*" != "X $srcdir/configure conftest.file" \
1827 && test "$*" != "X conftest.file $srcdir/configure"; then
1828
1829 # If neither matched, then we have a broken ls. This can happen
1830 # if, for instance, CONFIG_SHELL is bash and it inherits a
1831 # broken ls alias from the environment. This has actually
1832 # happened. Such a system could not be considered "sane".
1833 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1834alias in your environment" >&5
1835echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1836alias in your environment" >&2;}
1837 { (exit 1); exit 1; }; }
1838 fi
1839
1840 test "$2" = conftest.file
1841 )
1842then
1843 # Ok.
1844 :
1845else
1846 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1847Check your system clock" >&5
1848echo "$as_me: error: newly created file is older than distributed files!
1849Check your system clock" >&2;}
1850 { (exit 1); exit 1; }; }
1851fi
38d24731
RW
1852echo "$as_me:$LINENO: result: yes" >&5
1853echo "${ECHO_T}yes" >&6
6de9cd9a 1854test "$program_prefix" != NONE &&
38d24731 1855 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6de9cd9a
DN
1856# Use a double $ so make ignores it.
1857test "$program_suffix" != NONE &&
38d24731 1858 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6de9cd9a
DN
1859# Double any \ or $. echo might interpret backslashes.
1860# By default was `s,x,x', remove it if useless.
1861cat <<\_ACEOF >conftest.sed
1862s/[\\$]/&&/g;s/;s,x,x,$//
1863_ACEOF
1864program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
38d24731 1865rm conftest.sed
6de9cd9a
DN
1866
1867# expand $ac_aux_dir to an absolute path
1868am_aux_dir=`cd $ac_aux_dir && pwd`
1869
1870test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1871# Use eval to expand $SHELL
1872if eval "$MISSING --run true"; then
1873 am_missing_run="$MISSING --run "
1874else
1875 am_missing_run=
1876 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1877echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1878fi
1879
c9e66eda 1880if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
d49ec2d1
KC
1881 # We used to keeping the `.' as first argument, in order to
1882 # allow $(mkdir_p) to be used without argument. As in
6de9cd9a 1883 # $(mkdir_p) $(somedir)
d49ec2d1
KC
1884 # where $(somedir) is conditionally defined. However this is wrong
1885 # for two reasons:
1886 # 1. if the package is installed by a user who cannot write `.'
1887 # make install will fail,
1888 # 2. the above comment should most certainly read
1889 # $(mkdir_p) $(DESTDIR)$(somedir)
1890 # so it does not work when $(somedir) is undefined and
1891 # $(DESTDIR) is not.
1892 # To support the latter case, we have to write
1893 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1894 # so the `.' trick is pointless.
1895 mkdir_p='mkdir -p --'
6de9cd9a
DN
1896else
1897 # On NextStep and OpenStep, the `mkdir' command does not
1898 # recognize any option. It will interpret all options as
1899 # directories to create, and then abort because `.' already
1900 # exists.
c9e66eda 1901 for d in ./-p ./--version;
6de9cd9a
DN
1902 do
1903 test -d $d && rmdir $d
1904 done
1905 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1906 if test -f "$ac_aux_dir/mkinstalldirs"; then
1907 mkdir_p='$(mkinstalldirs)'
1908 else
1909 mkdir_p='$(install_sh) -d'
1910 fi
1911fi
1912
1913for ac_prog in gawk mawk nawk awk
1914do
1915 # Extract the first word of "$ac_prog", so it can be a program name with args.
1916set dummy $ac_prog; ac_word=$2
38d24731
RW
1917echo "$as_me:$LINENO: checking for $ac_word" >&5
1918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6de9cd9a
DN
1919if test "${ac_cv_prog_AWK+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1921else
1922 if test -n "$AWK"; then
1923 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1924else
1925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926for as_dir in $PATH
1927do
1928 IFS=$as_save_IFS
1929 test -z "$as_dir" && as_dir=.
1930 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 1931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a
DN
1932 ac_cv_prog_AWK="$ac_prog"
1933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934 break 2
1935 fi
1936done
1937done
1938
1939fi
1940fi
1941AWK=$ac_cv_prog_AWK
1942if test -n "$AWK"; then
38d24731
RW
1943 echo "$as_me:$LINENO: result: $AWK" >&5
1944echo "${ECHO_T}$AWK" >&6
6de9cd9a 1945else
38d24731
RW
1946 echo "$as_me:$LINENO: result: no" >&5
1947echo "${ECHO_T}no" >&6
6de9cd9a
DN
1948fi
1949
1950 test -n "$AWK" && break
1951done
1952
38d24731
RW
1953echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1954echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1955set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1956if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6de9cd9a
DN
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1958else
1959 cat >conftest.make <<\_ACEOF
1960all:
38d24731 1961 @echo 'ac_maketemp="$(MAKE)"'
6de9cd9a
DN
1962_ACEOF
1963# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38d24731
RW
1964eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1965if test -n "$ac_maketemp"; then
1966 eval ac_cv_prog_make_${ac_make}_set=yes
1967else
1968 eval ac_cv_prog_make_${ac_make}_set=no
1969fi
6de9cd9a
DN
1970rm -f conftest.make
1971fi
38d24731
RW
1972if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1973 echo "$as_me:$LINENO: result: yes" >&5
1974echo "${ECHO_T}yes" >&6
6de9cd9a
DN
1975 SET_MAKE=
1976else
38d24731
RW
1977 echo "$as_me:$LINENO: result: no" >&5
1978echo "${ECHO_T}no" >&6
6de9cd9a
DN
1979 SET_MAKE="MAKE=${MAKE-make}"
1980fi
1981
1982rm -rf .tst 2>/dev/null
1983mkdir .tst 2>/dev/null
1984if test -d .tst; then
1985 am__leading_dot=.
1986else
1987 am__leading_dot=_
1988fi
1989rmdir .tst 2>/dev/null
1990
1991# test to see if srcdir already configured
1992if test "`cd $srcdir && pwd`" != "`pwd`" &&
1993 test -f $srcdir/config.status; then
1994 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1995echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1996 { (exit 1); exit 1; }; }
1997fi
1998
1999# test whether we have cygpath
2000if test -z "$CYGPATH_W"; then
2001 if (cygpath --version) >/dev/null 2>/dev/null; then
2002 CYGPATH_W='cygpath -w'
2003 else
2004 CYGPATH_W=echo
2005 fi
2006fi
2007
2008
2009# Define the identity of the package.
2010 PACKAGE='libgfortran'
0dce3ca1 2011 VERSION='0.3'
6de9cd9a
DN
2012
2013
6de9cd9a
DN
2014# Some tools Automake needs.
2015
2016ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2017
2018
2019AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2020
2021
2022AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2023
2024
2025AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2026
2027
2028MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2029
6de9cd9a
DN
2030install_sh=${install_sh-"$am_aux_dir/install-sh"}
2031
2032# Installed binaries are usually stripped using `strip' when the user
2033# run `make install-strip'. However `strip' might not be the right
2034# tool to use in cross-compilation environments, therefore Automake
2035# will honor the `STRIP' environment variable to overrule this program.
2036if test "$cross_compiling" != no; then
2037 if test -n "$ac_tool_prefix"; then
2038 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2039set dummy ${ac_tool_prefix}strip; ac_word=$2
38d24731
RW
2040echo "$as_me:$LINENO: checking for $ac_word" >&5
2041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6de9cd9a
DN
2042if test "${ac_cv_prog_STRIP+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2044else
2045 if test -n "$STRIP"; then
2046 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2047else
2048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049for as_dir in $PATH
2050do
2051 IFS=$as_save_IFS
2052 test -z "$as_dir" && as_dir=.
2053 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 2054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a
DN
2055 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057 break 2
2058 fi
2059done
2060done
2061
2062fi
2063fi
2064STRIP=$ac_cv_prog_STRIP
2065if test -n "$STRIP"; then
38d24731
RW
2066 echo "$as_me:$LINENO: result: $STRIP" >&5
2067echo "${ECHO_T}$STRIP" >&6
6de9cd9a 2068else
38d24731
RW
2069 echo "$as_me:$LINENO: result: no" >&5
2070echo "${ECHO_T}no" >&6
6de9cd9a
DN
2071fi
2072
2073fi
2074if test -z "$ac_cv_prog_STRIP"; then
2075 ac_ct_STRIP=$STRIP
2076 # Extract the first word of "strip", so it can be a program name with args.
2077set dummy strip; ac_word=$2
38d24731
RW
2078echo "$as_me:$LINENO: checking for $ac_word" >&5
2079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6de9cd9a
DN
2080if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082else
2083 if test -n "$ac_ct_STRIP"; then
2084 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2085else
2086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087for as_dir in $PATH
2088do
2089 IFS=$as_save_IFS
2090 test -z "$as_dir" && as_dir=.
2091 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 2092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a
DN
2093 ac_cv_prog_ac_ct_STRIP="strip"
2094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 break 2
2096 fi
2097done
2098done
2099
38d24731 2100 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6de9cd9a
DN
2101fi
2102fi
2103ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2104if test -n "$ac_ct_STRIP"; then
38d24731
RW
2105 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2106echo "${ECHO_T}$ac_ct_STRIP" >&6
6de9cd9a 2107else
38d24731
RW
2108 echo "$as_me:$LINENO: result: no" >&5
2109echo "${ECHO_T}no" >&6
6de9cd9a
DN
2110fi
2111
38d24731 2112 STRIP=$ac_ct_STRIP
6de9cd9a
DN
2113else
2114 STRIP="$ac_cv_prog_STRIP"
2115fi
2116
2117fi
2118INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2119
2120# We need awk for the "check" target. The system "awk" is bad on
2121# some platforms.
d49ec2d1
KC
2122# Always define AMTAR for backward compatibility.
2123
2124AMTAR=${AMTAR-"${am_missing_run}tar"}
2125
2126am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2127
2128
6de9cd9a
DN
2129
2130
2131
6de9cd9a 2132
38d24731
RW
2133echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2134echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2135 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6de9cd9a 2136if test "${enable_maintainer_mode+set}" = set; then
38d24731
RW
2137 enableval="$enable_maintainer_mode"
2138 USE_MAINTAINER_MODE=$enableval
6de9cd9a
DN
2139else
2140 USE_MAINTAINER_MODE=no
38d24731
RW
2141fi;
2142 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2143echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6de9cd9a
DN
2144
2145
2146if test $USE_MAINTAINER_MODE = yes; then
2147 MAINTAINER_MODE_TRUE=
2148 MAINTAINER_MODE_FALSE='#'
2149else
2150 MAINTAINER_MODE_TRUE='#'
2151 MAINTAINER_MODE_FALSE=
2152fi
2153
2154 MAINT=$MAINTAINER_MODE_TRUE
2155
2156
96b8a615 2157# Default to --enable-multilib
38d24731 2158# Check whether --enable-multilib or --disable-multilib was given.
96b8a615 2159if test "${enable_multilib+set}" = set; then
38d24731
RW
2160 enableval="$enable_multilib"
2161 case "$enableval" in
96b8a615
AJ
2162 yes) multilib=yes ;;
2163 no) multilib=no ;;
2164 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2165echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2166 { (exit 1); exit 1; }; } ;;
2167 esac
2168else
2169 multilib=yes
38d24731 2170fi;
96b8a615
AJ
2171
2172# We may get other options which we leave undocumented:
2173# --with-target-subdir, --with-multisrctop, --with-multisubdir
2174# See config-ml.in if you want the gory details.
2175
2176if test "$srcdir" = "."; then
2177 if test "$with_target_subdir" != "."; then
2178 multi_basedir="$srcdir/$with_multisrctop../.."
2179 else
2180 multi_basedir="$srcdir/$with_multisrctop.."
2181 fi
2182else
2183 multi_basedir="$srcdir/.."
2184fi
2185
2186
9f9ef303
FXC
2187# Even if the default multilib is not a cross compilation,
2188# it may be that some of the other multilibs are.
2189if test $cross_compiling = no && test $multilib = yes \
2190 && test "x${with_multisubdir}" != x ; then
2191 cross_compiling=maybe
2192fi
2193
38d24731 2194 ac_config_commands="$ac_config_commands default-1"
96b8a615
AJ
2195
2196
2197# Handy for debugging:
2198#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
2199
2200# Are we being configured with some form of cross compiler?
2201# NB: We don't actually need to know this just now, but when, say, a test
2202# suite is included, we'll have to know.
2203if test "$build" != "$host"; then
2204 LIBGFOR_IS_NATIVE=false
f02d008e 2205
96b8a615
AJ
2206else
2207 LIBGFOR_IS_NATIVE=true
2208fi
2209
96b8a615
AJ
2210# Calculate toolexeclibdir
2211# Also toolexecdir, though it's only used in toolexeclibdir
2212case ${version_specific_libs} in
2213 yes)
2214 # Need the gcc compiler version to know where to install libraries
2215 # and header files if --enable-version-specific-runtime-libs option
2216 # is selected.
2217 toolexecdir='$(libdir)/gcc/$(target_alias)'
140e859c 2218 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
96b8a615
AJ
2219 ;;
2220 no)
2221 if test -n "$with_cross_host" &&
2222 test x"$with_cross_host" != x"no"; then
2223 # Install a library built with a cross compiler in tooldir, not libdir.
2224 toolexecdir='$(exec_prefix)/$(target_alias)'
2225 toolexeclibdir='$(toolexecdir)/lib'
2226 else
2227 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2228 toolexeclibdir='$(libdir)'
2229 fi
2230 multi_os_directory=`$CC -print-multi-os-directory`
2231 case $multi_os_directory in
2232 .) ;; # Avoid trailing /.
2233 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2234 esac
2235 ;;
2236esac
2237
2238
6de9cd9a 2239
96b8a615
AJ
2240# Check the compiler.
2241# The same as in boehm-gc and libstdc++. Have to borrow it from there.
2242# We must force CC to /not/ be precious variables; otherwise
2243# the wrong, non-multilib-adjusted value will be used in multilibs.
2244# As a side effect, we have to subst CFLAGS ourselves.
6de9cd9a
DN
2245
2246
2247
6de9cd9a
DN
2248ac_ext=c
2249ac_cpp='$CPP $CPPFLAGS'
2250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2252ac_compiler_gnu=$ac_cv_c_compiler_gnu
2253if test -n "$ac_tool_prefix"; then
2254 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2255set dummy ${ac_tool_prefix}gcc; ac_word=$2
38d24731
RW
2256echo "$as_me:$LINENO: checking for $ac_word" >&5
2257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6de9cd9a
DN
2258if test "${ac_cv_prog_CC+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2260else
2261 if test -n "$CC"; then
2262 ac_cv_prog_CC="$CC" # Let the user override the test.
2263else
2264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265for as_dir in $PATH
2266do
2267 IFS=$as_save_IFS
2268 test -z "$as_dir" && as_dir=.
2269 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 2270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a
DN
2271 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273 break 2
2274 fi
2275done
2276done
2277
2278fi
2279fi
2280CC=$ac_cv_prog_CC
2281if test -n "$CC"; then
38d24731
RW
2282 echo "$as_me:$LINENO: result: $CC" >&5
2283echo "${ECHO_T}$CC" >&6
6de9cd9a 2284else
38d24731
RW
2285 echo "$as_me:$LINENO: result: no" >&5
2286echo "${ECHO_T}no" >&6
6de9cd9a
DN
2287fi
2288
2289fi
2290if test -z "$ac_cv_prog_CC"; then
2291 ac_ct_CC=$CC
2292 # Extract the first word of "gcc", so it can be a program name with args.
2293set dummy gcc; ac_word=$2
38d24731
RW
2294echo "$as_me:$LINENO: checking for $ac_word" >&5
2295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6de9cd9a
DN
2296if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2298else
2299 if test -n "$ac_ct_CC"; then
2300 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2301else
2302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303for as_dir in $PATH
2304do
2305 IFS=$as_save_IFS
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 2308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a
DN
2309 ac_cv_prog_ac_ct_CC="gcc"
2310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311 break 2
2312 fi
2313done
2314done
2315
2316fi
2317fi
2318ac_ct_CC=$ac_cv_prog_ac_ct_CC
2319if test -n "$ac_ct_CC"; then
38d24731
RW
2320 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2321echo "${ECHO_T}$ac_ct_CC" >&6
6de9cd9a 2322else
38d24731
RW
2323 echo "$as_me:$LINENO: result: no" >&5
2324echo "${ECHO_T}no" >&6
6de9cd9a
DN
2325fi
2326
38d24731 2327 CC=$ac_ct_CC
6de9cd9a
DN
2328else
2329 CC="$ac_cv_prog_CC"
2330fi
2331
2332if test -z "$CC"; then
38d24731
RW
2333 if test -n "$ac_tool_prefix"; then
2334 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6de9cd9a 2335set dummy ${ac_tool_prefix}cc; ac_word=$2
38d24731
RW
2336echo "$as_me:$LINENO: checking for $ac_word" >&5
2337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6de9cd9a
DN
2338if test "${ac_cv_prog_CC+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2340else
2341 if test -n "$CC"; then
2342 ac_cv_prog_CC="$CC" # Let the user override the test.
2343else
2344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345for as_dir in $PATH
2346do
2347 IFS=$as_save_IFS
2348 test -z "$as_dir" && as_dir=.
2349 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 2350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a
DN
2351 ac_cv_prog_CC="${ac_tool_prefix}cc"
2352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 break 2
2354 fi
2355done
2356done
2357
2358fi
2359fi
2360CC=$ac_cv_prog_CC
2361if test -n "$CC"; then
38d24731
RW
2362 echo "$as_me:$LINENO: result: $CC" >&5
2363echo "${ECHO_T}$CC" >&6
6de9cd9a 2364else
38d24731
RW
2365 echo "$as_me:$LINENO: result: no" >&5
2366echo "${ECHO_T}no" >&6
6de9cd9a
DN
2367fi
2368
38d24731
RW
2369fi
2370if test -z "$ac_cv_prog_CC"; then
2371 ac_ct_CC=$CC
2372 # Extract the first word of "cc", so it can be a program name with args.
2373set dummy cc; ac_word=$2
2374echo "$as_me:$LINENO: checking for $ac_word" >&5
2375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2376if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2378else
2379 if test -n "$ac_ct_CC"; then
2380 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2381else
2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383for as_dir in $PATH
2384do
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2389 ac_cv_prog_ac_ct_CC="cc"
2390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 break 2
f489fba1 2392 fi
38d24731
RW
2393done
2394done
2395
2396fi
2397fi
2398ac_ct_CC=$ac_cv_prog_ac_ct_CC
2399if test -n "$ac_ct_CC"; then
2400 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2401echo "${ECHO_T}$ac_ct_CC" >&6
2402else
2403 echo "$as_me:$LINENO: result: no" >&5
2404echo "${ECHO_T}no" >&6
2405fi
2406
2407 CC=$ac_ct_CC
2408else
2409 CC="$ac_cv_prog_CC"
2410fi
2411
6de9cd9a
DN
2412fi
2413if test -z "$CC"; then
2414 # Extract the first word of "cc", so it can be a program name with args.
2415set dummy cc; ac_word=$2
38d24731
RW
2416echo "$as_me:$LINENO: checking for $ac_word" >&5
2417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6de9cd9a
DN
2418if test "${ac_cv_prog_CC+set}" = set; then
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2420else
2421 if test -n "$CC"; then
2422 ac_cv_prog_CC="$CC" # Let the user override the test.
2423else
2424 ac_prog_rejected=no
2425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426for as_dir in $PATH
2427do
2428 IFS=$as_save_IFS
2429 test -z "$as_dir" && as_dir=.
2430 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 2431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a
DN
2432 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2433 ac_prog_rejected=yes
2434 continue
2435 fi
2436 ac_cv_prog_CC="cc"
2437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2438 break 2
2439 fi
2440done
2441done
2442
2443if test $ac_prog_rejected = yes; then
2444 # We found a bogon in the path, so make sure we never use it.
2445 set dummy $ac_cv_prog_CC
2446 shift
2447 if test $# != 0; then
2448 # We chose a different compiler from the bogus one.
2449 # However, it has the same basename, so the bogon will be chosen
2450 # first if we set CC to just the basename; use the full file name.
2451 shift
2452 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2453 fi
2454fi
2455fi
2456fi
2457CC=$ac_cv_prog_CC
2458if test -n "$CC"; then
38d24731
RW
2459 echo "$as_me:$LINENO: result: $CC" >&5
2460echo "${ECHO_T}$CC" >&6
6de9cd9a 2461else
38d24731
RW
2462 echo "$as_me:$LINENO: result: no" >&5
2463echo "${ECHO_T}no" >&6
6de9cd9a
DN
2464fi
2465
2466fi
2467if test -z "$CC"; then
2468 if test -n "$ac_tool_prefix"; then
38d24731 2469 for ac_prog in cl
6de9cd9a
DN
2470 do
2471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2472set dummy $ac_tool_prefix$ac_prog; ac_word=$2
38d24731
RW
2473echo "$as_me:$LINENO: checking for $ac_word" >&5
2474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6de9cd9a
DN
2475if test "${ac_cv_prog_CC+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477else
2478 if test -n "$CC"; then
2479 ac_cv_prog_CC="$CC" # Let the user override the test.
2480else
2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482for as_dir in $PATH
2483do
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 2487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a
DN
2488 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 break 2
2491 fi
2492done
2493done
2494
2495fi
2496fi
2497CC=$ac_cv_prog_CC
2498if test -n "$CC"; then
38d24731
RW
2499 echo "$as_me:$LINENO: result: $CC" >&5
2500echo "${ECHO_T}$CC" >&6
6de9cd9a 2501else
38d24731
RW
2502 echo "$as_me:$LINENO: result: no" >&5
2503echo "${ECHO_T}no" >&6
6de9cd9a
DN
2504fi
2505
2506 test -n "$CC" && break
2507 done
2508fi
2509if test -z "$CC"; then
2510 ac_ct_CC=$CC
38d24731 2511 for ac_prog in cl
6de9cd9a
DN
2512do
2513 # Extract the first word of "$ac_prog", so it can be a program name with args.
2514set dummy $ac_prog; ac_word=$2
38d24731
RW
2515echo "$as_me:$LINENO: checking for $ac_word" >&5
2516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6de9cd9a
DN
2517if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2519else
2520 if test -n "$ac_ct_CC"; then
2521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2522else
2523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524for as_dir in $PATH
2525do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 2529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a
DN
2530 ac_cv_prog_ac_ct_CC="$ac_prog"
2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 break 2
2533 fi
2534done
2535done
2536
2537fi
2538fi
2539ac_ct_CC=$ac_cv_prog_ac_ct_CC
2540if test -n "$ac_ct_CC"; then
38d24731
RW
2541 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2542echo "${ECHO_T}$ac_ct_CC" >&6
6de9cd9a 2543else
38d24731
RW
2544 echo "$as_me:$LINENO: result: no" >&5
2545echo "${ECHO_T}no" >&6
6de9cd9a
DN
2546fi
2547
2548 test -n "$ac_ct_CC" && break
2549done
2550
38d24731 2551 CC=$ac_ct_CC
6de9cd9a
DN
2552fi
2553
2554fi
2555
2556
2557test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2558See \`config.log' for more details." >&5
2559echo "$as_me: error: no acceptable C compiler found in \$PATH
2560See \`config.log' for more details." >&2;}
2561 { (exit 1); exit 1; }; }
2562
2563# Provide some information about the compiler.
38d24731
RW
2564echo "$as_me:$LINENO:" \
2565 "checking for C compiler version" >&5
6de9cd9a 2566ac_compiler=`set X $ac_compile; echo $2`
38d24731
RW
2567{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2568 (eval $ac_compiler --version </dev/null >&5) 2>&5
6de9cd9a
DN
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }
38d24731
RW
2572{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2573 (eval $ac_compiler -v </dev/null >&5) 2>&5
6de9cd9a
DN
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }
38d24731
RW
2577{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2578 (eval $ac_compiler -V </dev/null >&5) 2>&5
6de9cd9a
DN
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }
2582
2583cat >conftest.$ac_ext <<_ACEOF
2584/* confdefs.h. */
2585_ACEOF
2586cat confdefs.h >>conftest.$ac_ext
2587cat >>conftest.$ac_ext <<_ACEOF
2588/* end confdefs.h. */
2589
f02d008e
JD
2590int
2591main ()
2592{
2593
2594 ;
2595 return 0;
2596}
2597_ACEOF
2598# FIXME: Cleanup?
2599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2600 (eval $ac_link) 2>&5
2601 ac_status=$?
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; then
2604 gcc_no_link=no
2605else
2606 gcc_no_link=yes
2607fi
2608
2609if test x$gcc_no_link = xyes; then
2610 # Setting cross_compile will disable run tests; it will
2611 # also disable AC_CHECK_FILE but that's generally
2612 # correct if we can't link.
2613 cross_compiling=yes
2614 EXEEXT=
2615else
2616 cat >conftest.$ac_ext <<_ACEOF
2617/* confdefs.h. */
2618_ACEOF
2619cat confdefs.h >>conftest.$ac_ext
2620cat >>conftest.$ac_ext <<_ACEOF
2621/* end confdefs.h. */
2622
6de9cd9a
DN
2623int
2624main ()
2625{
2626
2627 ;
2628 return 0;
2629}
2630_ACEOF
2631ac_clean_files_save=$ac_clean_files
2632ac_clean_files="$ac_clean_files a.out a.exe b.out"
2633# Try to create an executable without -o first, disregard a.out.
2634# It will help us diagnose broken compilers, and finding out an intuition
2635# of exeext.
38d24731
RW
2636echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2637echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
6de9cd9a 2638ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
38d24731
RW
2639if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2640 (eval $ac_link_default) 2>&5
6de9cd9a
DN
2641 ac_status=$?
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; then
38d24731
RW
2644 # Find the output, starting from the most likely. This scheme is
2645# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2646# resort.
2647
2648# Be careful to initialize this variable, since it used to be cached.
2649# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2650ac_cv_exeext=
2651# b.out is created by i960 compilers.
2652for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
6de9cd9a
DN
2653do
2654 test -f "$ac_file" || continue
2655 case $ac_file in
38d24731
RW
2656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2657 ;;
2658 conftest.$ac_ext )
2659 # This is the source file.
6de9cd9a
DN
2660 ;;
2661 [ab].out )
2662 # We found the default executable, but exeext='' is most
2663 # certainly right.
2664 break;;
2665 *.* )
38d24731
RW
2666 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2667 # FIXME: I believe we export ac_cv_exeext for Libtool,
2668 # but it would be cool to find out if it's true. Does anybody
2669 # maintain Libtool? --akim.
2670 export ac_cv_exeext
6de9cd9a
DN
2671 break;;
2672 * )
2673 break;;
2674 esac
2675done
2676else
2677 echo "$as_me: failed program was:" >&5
2678sed 's/^/| /' conftest.$ac_ext >&5
2679
2680{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2681See \`config.log' for more details." >&5
2682echo "$as_me: error: C compiler cannot create executables
2683See \`config.log' for more details." >&2;}
2684 { (exit 77); exit 77; }; }
2685fi
2686
2687ac_exeext=$ac_cv_exeext
38d24731
RW
2688echo "$as_me:$LINENO: result: $ac_file" >&5
2689echo "${ECHO_T}$ac_file" >&6
6de9cd9a 2690
38d24731 2691# Check the compiler produces executables we can run. If not, either
6de9cd9a 2692# the compiler is broken, or we cross compile.
38d24731
RW
2693echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2694echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
6de9cd9a
DN
2695# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2696# If not cross compiling, check that we can run a simple program.
2697if test "$cross_compiling" != yes; then
2698 if { ac_try='./$ac_file'
38d24731
RW
2699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 (eval $ac_try) 2>&5
6de9cd9a
DN
2701 ac_status=$?
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; }; then
2704 cross_compiling=no
2705 else
2706 if test "$cross_compiling" = maybe; then
2707 cross_compiling=yes
2708 else
2709 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2710If you meant to cross compile, use \`--host'.
2711See \`config.log' for more details." >&5
2712echo "$as_me: error: cannot run C compiled programs.
2713If you meant to cross compile, use \`--host'.
2714See \`config.log' for more details." >&2;}
2715 { (exit 1); exit 1; }; }
2716 fi
2717 fi
2718fi
38d24731
RW
2719echo "$as_me:$LINENO: result: yes" >&5
2720echo "${ECHO_T}yes" >&6
6de9cd9a
DN
2721
2722rm -f a.out a.exe conftest$ac_cv_exeext b.out
2723ac_clean_files=$ac_clean_files_save
38d24731 2724# Check the compiler produces executables we can run. If not, either
6de9cd9a 2725# the compiler is broken, or we cross compile.
38d24731
RW
2726echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2727echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2728echo "$as_me:$LINENO: result: $cross_compiling" >&5
2729echo "${ECHO_T}$cross_compiling" >&6
2730
2731echo "$as_me:$LINENO: checking for suffix of executables" >&5
2732echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2734 (eval $ac_link) 2>&5
6de9cd9a
DN
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; then
2738 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2739# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2740# work properly (i.e., refer to `conftest.exe'), while it won't with
2741# `rm'.
2742for ac_file in conftest.exe conftest conftest.*; do
2743 test -f "$ac_file" || continue
2744 case $ac_file in
38d24731 2745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
6de9cd9a 2746 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
38d24731 2747 export ac_cv_exeext
6de9cd9a
DN
2748 break;;
2749 * ) break;;
2750 esac
2751done
2752else
2753 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2754See \`config.log' for more details." >&5
2755echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2756See \`config.log' for more details." >&2;}
2757 { (exit 1); exit 1; }; }
2758fi
2759
2760rm -f conftest$ac_cv_exeext
38d24731
RW
2761echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2762echo "${ECHO_T}$ac_cv_exeext" >&6
6de9cd9a
DN
2763
2764rm -f conftest.$ac_ext
2765EXEEXT=$ac_cv_exeext
2766ac_exeext=$EXEEXT
f02d008e 2767fi
38d24731
RW
2768echo "$as_me:$LINENO: checking for suffix of object files" >&5
2769echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
6de9cd9a
DN
2770if test "${ac_cv_objext+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2772else
2773 cat >conftest.$ac_ext <<_ACEOF
2774/* confdefs.h. */
2775_ACEOF
2776cat confdefs.h >>conftest.$ac_ext
2777cat >>conftest.$ac_ext <<_ACEOF
2778/* end confdefs.h. */
2779
2780int
2781main ()
2782{
2783
2784 ;
2785 return 0;
2786}
2787_ACEOF
2788rm -f conftest.o conftest.obj
38d24731
RW
2789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790 (eval $ac_compile) 2>&5
6de9cd9a
DN
2791 ac_status=$?
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; then
38d24731 2794 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
6de9cd9a 2795 case $ac_file in
38d24731 2796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
6de9cd9a
DN
2797 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2798 break;;
2799 esac
2800done
2801else
2802 echo "$as_me: failed program was:" >&5
2803sed 's/^/| /' conftest.$ac_ext >&5
2804
78511f8b
JB
2805{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2806See \`config.log' for more details." >&5
2807echo "$as_me: error: cannot compute suffix of object files: cannot compile
2808See \`config.log' for more details." >&2;}
2809 { (exit 1); exit 1; }; }
2810fi
2811
2812rm -f conftest.$ac_cv_objext conftest.$ac_ext
2813fi
38d24731
RW
2814echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2815echo "${ECHO_T}$ac_cv_objext" >&6
78511f8b
JB
2816OBJEXT=$ac_cv_objext
2817ac_objext=$OBJEXT
38d24731
RW
2818echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2819echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
78511f8b
JB
2820if test "${ac_cv_c_compiler_gnu+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2822else
2823 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
2824/* confdefs.h. */
2825_ACEOF
2826cat confdefs.h >>conftest.$ac_ext
2827cat >>conftest.$ac_ext <<_ACEOF
2828/* end confdefs.h. */
6de9cd9a 2829
6de9cd9a
DN
2830int
2831main ()
2832{
78511f8b
JB
2833#ifndef __GNUC__
2834 choke me
2835#endif
c0e7e2bf 2836
6de9cd9a
DN
2837 ;
2838 return 0;
2839}
2840_ACEOF
c0e7e2bf 2841rm -f conftest.$ac_objext
38d24731
RW
2842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843 (eval $ac_compile) 2>conftest.er1
6de9cd9a
DN
2844 ac_status=$?
2845 grep -v '^ *+' conftest.er1 >conftest.err
2846 rm -f conftest.er1
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
2849 (exit $ac_status); } &&
2850 { ac_try='test -z "$ac_c_werror_flag"
2851 || test ! -s conftest.err'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 (eval $ac_try) 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; } &&
2857 { ac_try='test -s conftest.$ac_objext'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 (eval $ac_try) 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
78511f8b 2863 ac_compiler_gnu=yes
6de9cd9a
DN
2864else
2865 echo "$as_me: failed program was:" >&5
2866sed 's/^/| /' conftest.$ac_ext >&5
2867
38d24731 2868ac_compiler_gnu=no
78511f8b 2869fi
38d24731 2870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
78511f8b
JB
2871ac_cv_c_compiler_gnu=$ac_compiler_gnu
2872
2873fi
38d24731
RW
2874echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2875echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
78511f8b
JB
2876GCC=`test $ac_compiler_gnu = yes && echo yes`
2877ac_test_CFLAGS=${CFLAGS+set}
2878ac_save_CFLAGS=$CFLAGS
38d24731
RW
2879CFLAGS="-g"
2880echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2881echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
78511f8b
JB
2882if test "${ac_cv_prog_cc_g+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2884else
38d24731 2885 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
2886/* confdefs.h. */
2887_ACEOF
2888cat confdefs.h >>conftest.$ac_ext
2889cat >>conftest.$ac_ext <<_ACEOF
2890/* end confdefs.h. */
c0e7e2bf 2891
6de9cd9a
DN
2892int
2893main ()
2894{
c0e7e2bf 2895
6de9cd9a
DN
2896 ;
2897 return 0;
2898}
2899_ACEOF
2900rm -f conftest.$ac_objext
38d24731
RW
2901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2902 (eval $ac_compile) 2>conftest.er1
6de9cd9a
DN
2903 ac_status=$?
2904 grep -v '^ *+' conftest.er1 >conftest.err
2905 rm -f conftest.er1
2906 cat conftest.err >&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
2908 (exit $ac_status); } &&
2909 { ac_try='test -z "$ac_c_werror_flag"
2910 || test ! -s conftest.err'
2911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912 (eval $ac_try) 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; } &&
2916 { ac_try='test -s conftest.$ac_objext'
2917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918 (eval $ac_try) 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; }; then
f489fba1
FXC
2922 ac_cv_prog_cc_g=yes
2923else
2924 echo "$as_me: failed program was:" >&5
2925sed 's/^/| /' conftest.$ac_ext >&5
2926
38d24731
RW
2927ac_cv_prog_cc_g=no
2928fi
2929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2930fi
2931echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2932echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2933if test "$ac_test_CFLAGS" = set; then
2934 CFLAGS=$ac_save_CFLAGS
2935elif test $ac_cv_prog_cc_g = yes; then
2936 if test "$GCC" = yes; then
2937 CFLAGS="-g -O2"
2938 else
2939 CFLAGS="-g"
2940 fi
2941else
2942 if test "$GCC" = yes; then
2943 CFLAGS="-O2"
2944 else
2945 CFLAGS=
2946 fi
2947fi
2948echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2949echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2950if test "${ac_cv_prog_cc_stdc+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2952else
2953 ac_cv_prog_cc_stdc=no
2954ac_save_CC=$CC
2955cat >conftest.$ac_ext <<_ACEOF
f489fba1
FXC
2956/* confdefs.h. */
2957_ACEOF
2958cat confdefs.h >>conftest.$ac_ext
2959cat >>conftest.$ac_ext <<_ACEOF
2960/* end confdefs.h. */
38d24731
RW
2961#include <stdarg.h>
2962#include <stdio.h>
2963#include <sys/types.h>
2964#include <sys/stat.h>
2965/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2966struct buf { int x; };
2967FILE * (*rcsopen) (struct buf *, struct stat *, int);
2968static char *e (p, i)
2969 char **p;
2970 int i;
2971{
2972 return p[i];
2973}
2974static char *f (char * (*g) (char **, int), char **p, ...)
2975{
2976 char *s;
2977 va_list v;
2978 va_start (v,p);
2979 s = g (p, va_arg (v,int));
2980 va_end (v);
2981 return s;
2982}
f489fba1 2983
38d24731
RW
2984/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2985 function prototypes and stuff, but not '\xHH' hex character constants.
2986 These don't provoke an error unfortunately, instead are silently treated
2987 as 'x'. The following induces an error, until -std1 is added to get
2988 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2989 array size at least. It's necessary to write '\x00'==0 to get something
2990 that's true only with -std1. */
2991int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2992
2993int test (int i, double x);
2994struct s1 {int (*f) (int a);};
2995struct s2 {int (*f) (double a);};
2996int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2997int argc;
2998char **argv;
f489fba1
FXC
2999int
3000main ()
3001{
38d24731 3002return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
f489fba1
FXC
3003 ;
3004 return 0;
3005}
3006_ACEOF
38d24731
RW
3007# Don't try gcc -ansi; that turns off useful extensions and
3008# breaks some systems' header files.
3009# AIX -qlanglvl=ansi
3010# Ultrix and OSF/1 -std1
3011# HP-UX 10.20 and later -Ae
3012# HP-UX older versions -Aa -D_HPUX_SOURCE
3013# SVR4 -Xc -D__EXTENSIONS__
3014for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3015do
3016 CC="$ac_save_CC $ac_arg"
3017 rm -f conftest.$ac_objext
3018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3019 (eval $ac_compile) 2>conftest.er1
6de9cd9a 3020 ac_status=$?
f489fba1
FXC
3021 grep -v '^ *+' conftest.er1 >conftest.err
3022 rm -f conftest.er1
3023 cat conftest.err >&5
6de9cd9a 3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
3025 (exit $ac_status); } &&
3026 { ac_try='test -z "$ac_c_werror_flag"
3027 || test ! -s conftest.err'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 (eval $ac_try) 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; } &&
3033 { ac_try='test -s conftest.$ac_objext'
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035 (eval $ac_try) 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3039 ac_cv_prog_cc_stdc=$ac_arg
3040break
f489fba1
FXC
3041else
3042 echo "$as_me: failed program was:" >&5
3043sed 's/^/| /' conftest.$ac_ext >&5
3044
38d24731
RW
3045fi
3046rm -f conftest.err conftest.$ac_objext
3047done
3048rm -f conftest.$ac_ext conftest.$ac_objext
3049CC=$ac_save_CC
3050
3051fi
3052
3053case "x$ac_cv_prog_cc_stdc" in
3054 x|xno)
3055 echo "$as_me:$LINENO: result: none needed" >&5
3056echo "${ECHO_T}none needed" >&6 ;;
3057 *)
3058 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3059echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3060 CC="$CC $ac_cv_prog_cc_stdc" ;;
3061esac
3062
3063# Some people use a C++ compiler to compile C. Since we use `exit',
3064# in C++ we need to declare it. In case someone uses the same compiler
3065# for both compiling C and C++ we need to have the C++ compiler decide
3066# the declaration of exit, since it's the most demanding environment.
3067cat >conftest.$ac_ext <<_ACEOF
3068#ifndef __cplusplus
3069 choke me
3070#endif
3071_ACEOF
3072rm -f conftest.$ac_objext
3073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3074 (eval $ac_compile) 2>conftest.er1
3075 ac_status=$?
3076 grep -v '^ *+' conftest.er1 >conftest.err
3077 rm -f conftest.er1
3078 cat conftest.err >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } &&
3081 { ac_try='test -z "$ac_c_werror_flag"
3082 || test ! -s conftest.err'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084 (eval $ac_try) 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; } &&
3088 { ac_try='test -s conftest.$ac_objext'
3089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090 (eval $ac_try) 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; }; then
3094 for ac_declaration in \
3095 '' \
3096 'extern "C" void std::exit (int) throw (); using std::exit;' \
3097 'extern "C" void std::exit (int); using std::exit;' \
3098 'extern "C" void exit (int) throw ();' \
3099 'extern "C" void exit (int);' \
3100 'void exit (int);'
3101do
3102 cat >conftest.$ac_ext <<_ACEOF
f489fba1
FXC
3103/* confdefs.h. */
3104_ACEOF
3105cat confdefs.h >>conftest.$ac_ext
3106cat >>conftest.$ac_ext <<_ACEOF
3107/* end confdefs.h. */
38d24731
RW
3108$ac_declaration
3109#include <stdlib.h>
f489fba1
FXC
3110int
3111main ()
3112{
38d24731 3113exit (42);
f489fba1
FXC
3114 ;
3115 return 0;
3116}
3117_ACEOF
3118rm -f conftest.$ac_objext
38d24731
RW
3119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3120 (eval $ac_compile) 2>conftest.er1
6de9cd9a 3121 ac_status=$?
f489fba1
FXC
3122 grep -v '^ *+' conftest.er1 >conftest.err
3123 rm -f conftest.er1
3124 cat conftest.err >&5
6de9cd9a 3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
3126 (exit $ac_status); } &&
3127 { ac_try='test -z "$ac_c_werror_flag"
3128 || test ! -s conftest.err'
3129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130 (eval $ac_try) 2>&5
3131 ac_status=$?
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; } &&
3134 { ac_try='test -s conftest.$ac_objext'
3135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3136 (eval $ac_try) 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; }; then
3140 :
6de9cd9a
DN
3141else
3142 echo "$as_me: failed program was:" >&5
3143sed 's/^/| /' conftest.$ac_ext >&5
3144
38d24731 3145continue
c0e7e2bf 3146fi
38d24731
RW
3147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3148 cat >conftest.$ac_ext <<_ACEOF
c0e7e2bf
JB
3149/* confdefs.h. */
3150_ACEOF
3151cat confdefs.h >>conftest.$ac_ext
3152cat >>conftest.$ac_ext <<_ACEOF
3153/* end confdefs.h. */
38d24731 3154$ac_declaration
6de9cd9a
DN
3155int
3156main ()
3157{
38d24731 3158exit (42);
6de9cd9a
DN
3159 ;
3160 return 0;
3161}
3162_ACEOF
38d24731
RW
3163rm -f conftest.$ac_objext
3164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3165 (eval $ac_compile) 2>conftest.er1
6de9cd9a
DN
3166 ac_status=$?
3167 grep -v '^ *+' conftest.er1 >conftest.err
3168 rm -f conftest.er1
3169 cat conftest.err >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
3171 (exit $ac_status); } &&
3172 { ac_try='test -z "$ac_c_werror_flag"
3173 || test ! -s conftest.err'
3174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175 (eval $ac_try) 2>&5
3176 ac_status=$?
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; } &&
3179 { ac_try='test -s conftest.$ac_objext'
3180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 (eval $ac_try) 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
3185 break
6de9cd9a
DN
3186else
3187 echo "$as_me: failed program was:" >&5
3188sed 's/^/| /' conftest.$ac_ext >&5
3189
3190fi
38d24731 3191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 3192done
38d24731
RW
3193rm -f conftest*
3194if test -n "$ac_declaration"; then
3195 echo '#ifdef __cplusplus' >>confdefs.h
3196 echo $ac_declaration >>confdefs.h
3197 echo '#endif' >>confdefs.h
6de9cd9a
DN
3198fi
3199
38d24731
RW
3200else
3201 echo "$as_me: failed program was:" >&5
3202sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 3203
38d24731
RW
3204fi
3205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a
DN
3206ac_ext=c
3207ac_cpp='$CPP $CPPFLAGS'
3208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210ac_compiler_gnu=$ac_cv_c_compiler_gnu
679c0f9a
TT
3211DEPDIR="${am__leading_dot}deps"
3212
38d24731 3213 ac_config_commands="$ac_config_commands depfiles"
679c0f9a
TT
3214
3215
3216am_make=${MAKE-make}
3217cat > confinc << 'END'
3218am__doit:
3219 @echo done
3220.PHONY: am__doit
3221END
3222# If we don't find an include directive, just comment out the code.
38d24731
RW
3223echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3224echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
679c0f9a
TT
3225am__include="#"
3226am__quote=
3227_am_result=none
3228# First try GNU make style include.
3229echo "include confinc" > confmf
3230# We grep out `Entering directory' and `Leaving directory'
3231# messages which can occur if `w' ends up in MAKEFLAGS.
3232# In particular we don't look at `^make:' because GNU make might
3233# be invoked under some other name (usually "gmake"), in which
3234# case it prints its new name instead of `make'.
3235if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3236 am__include=include
3237 am__quote=
3238 _am_result=GNU
3239fi
3240# Now try BSD make style include.
3241if test "$am__include" = "#"; then
3242 echo '.include "confinc"' > confmf
3243 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3244 am__include=.include
3245 am__quote="\""
3246 _am_result=BSD
3247 fi
3248fi
3249
3250
38d24731
RW
3251echo "$as_me:$LINENO: result: $_am_result" >&5
3252echo "${ECHO_T}$_am_result" >&6
679c0f9a
TT
3253rm -f confinc confmf
3254
38d24731 3255# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
679c0f9a 3256if test "${enable_dependency_tracking+set}" = set; then
38d24731 3257 enableval="$enable_dependency_tracking"
679c0f9a 3258
38d24731 3259fi;
679c0f9a
TT
3260if test "x$enable_dependency_tracking" != xno; then
3261 am_depcomp="$ac_aux_dir/depcomp"
3262 AMDEPBACKSLASH='\'
3263fi
3264
3265
3266if test "x$enable_dependency_tracking" != xno; then
3267 AMDEP_TRUE=
3268 AMDEP_FALSE='#'
3269else
3270 AMDEP_TRUE='#'
3271 AMDEP_FALSE=
3272fi
3273
3274
3275
3276
3277depcc="$CC" am_compiler_list=
3278
38d24731
RW
3279echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3280echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
679c0f9a
TT
3281if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283else
3284 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3285 # We make a subdir and do the tests there. Otherwise we can end up
3286 # making bogus files that we don't know about and never remove. For
3287 # instance it was reported that on HP-UX the gcc test will end up
3288 # making a dummy file named `D' -- because `-MD' means `put the output
3289 # in D'.
3290 mkdir conftest.dir
3291 # Copy depcomp to subdir because otherwise we won't find it if we're
3292 # using a relative directory.
3293 cp "$am_depcomp" conftest.dir
3294 cd conftest.dir
3295 # We will build objects and dependencies in a subdirectory because
3296 # it helps to detect inapplicable dependency modes. For instance
3297 # both Tru64's cc and ICC support -MD to output dependencies as a
3298 # side effect of compilation, but ICC will put the dependencies in
3299 # the current directory while Tru64 will put them in the object
3300 # directory.
3301 mkdir sub
3302
3303 am_cv_CC_dependencies_compiler_type=none
3304 if test "$am_compiler_list" = ""; then
3305 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3306 fi
3307 for depmode in $am_compiler_list; do
3308 # Setup a source with many dependencies, because some compilers
3309 # like to wrap large dependency lists on column 80 (with \), and
3310 # we should not choose a depcomp mode which is confused by this.
3311 #
3312 # We need to recreate these files for each test, as the compiler may
3313 # overwrite some of them when testing with obscure command lines.
3314 # This happens at least with the AIX C compiler.
3315 : > sub/conftest.c
3316 for i in 1 2 3 4 5 6; do
3317 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3318 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3319 # Solaris 8's {/usr,}/bin/sh.
3320 touch sub/conftst$i.h
3321 done
3322 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3323
3324 case $depmode in
3325 nosideeffect)
3326 # after this tag, mechanisms are not by side-effect, so they'll
3327 # only be used when explicitly requested
3328 if test "x$enable_dependency_tracking" = xyes; then
3329 continue
3330 else
3331 break
3332 fi
3333 ;;
3334 none) break ;;
3335 esac
3336 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3337 # mode. It turns out that the SunPro C++ compiler does not properly
3338 # handle `-M -o', and we need to detect this.
3339 if depmode=$depmode \
3340 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3341 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3342 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3343 >/dev/null 2>conftest.err &&
3344 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3345 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3346 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3347 # icc doesn't choke on unknown options, it will just issue warnings
3348 # or remarks (even with -Werror). So we grep stderr for any message
3349 # that says an option was ignored or not supported.
3350 # When given -MP, icc 7.0 and 7.1 complain thusly:
3351 # icc: Command line warning: ignoring option '-M'; no argument required
3352 # The diagnosis changed in icc 8.0:
3353 # icc: Command line remark: option '-MP' not supported
3354 if (grep 'ignoring option' conftest.err ||
3355 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3356 am_cv_CC_dependencies_compiler_type=$depmode
3357 break
3358 fi
3359 fi
3360 done
3361
3362 cd ..
3363 rm -rf conftest.dir
3364else
3365 am_cv_CC_dependencies_compiler_type=none
3366fi
3367
3368fi
38d24731
RW
3369echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3370echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
679c0f9a
TT
3371CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3372
3373
3374
3375if
3376 test "x$enable_dependency_tracking" != xno \
3377 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3378 am__fastdepCC_TRUE=
3379 am__fastdepCC_FALSE='#'
3380else
3381 am__fastdepCC_TRUE='#'
3382 am__fastdepCC_FALSE=
3383fi
3384
6de9cd9a 3385
6de9cd9a 3386
6de9cd9a 3387
17109ecb 3388# Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
96b8a615 3389if test "x$GCC" = "xyes"; then
eda4ed47 3390 AM_FCFLAGS="-I . -Wall -fno-repack-arrays -fno-underscoring"
e606fb39
AJ
3391 ## We like to use C99 routines when available. This makes sure that
3392 ## __STDC_VERSION__ is set such that libc includes make them available.
69a2d125 3393 AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
d1f37bc6
RS
3394 ## Compile the following tests with the same system header contents
3395 ## that we'll encounter when compiling our own source files.
3396 CFLAGS="-std=gnu99 $CFLAGS"
6de9cd9a
DN
3397fi
3398
e606fb39
AJ
3399
3400
d8163f5c 3401
c0e7e2bf 3402# Check for symbol versioning (copied from libssp).
38d24731
RW
3403echo "$as_me:$LINENO: checking whether symbol versioning is supported" >&5
3404echo $ECHO_N "checking whether symbol versioning is supported... $ECHO_C" >&6
c0e7e2bf
JB
3405cat > conftest.map <<EOF
3406FOO_1.0 {
3407 global: *foo*; bar; local: *;
3408};
3409EOF
3410save_LDFLAGS="$LDFLAGS"
3411LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
3412
3413if test x$gcc_no_link = xyes; then
3414 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3415echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3416 { (exit 1); exit 1; }; }
3417fi
3418cat >conftest.$ac_ext <<_ACEOF
3419/* confdefs.h. */
3420_ACEOF
3421cat confdefs.h >>conftest.$ac_ext
3422cat >>conftest.$ac_ext <<_ACEOF
3423/* end confdefs.h. */
3424int foo;
3425int
3426main ()
3427{
3428
3429 ;
3430 return 0;
3431}
3432_ACEOF
3433rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
3434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3435 (eval $ac_link) 2>conftest.er1
c0e7e2bf
JB
3436 ac_status=$?
3437 grep -v '^ *+' conftest.er1 >conftest.err
3438 rm -f conftest.er1
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
3441 (exit $ac_status); } &&
3442 { ac_try='test -z "$ac_c_werror_flag"
3443 || test ! -s conftest.err'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445 (eval $ac_try) 2>&5
3446 ac_status=$?
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; } &&
3449 { ac_try='test -s conftest$ac_exeext'
3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451 (eval $ac_try) 2>&5
3452 ac_status=$?
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; }; then
c0e7e2bf
JB
3455 gfortran_use_symver=yes
3456else
3457 echo "$as_me: failed program was:" >&5
3458sed 's/^/| /' conftest.$ac_ext >&5
3459
38d24731 3460gfortran_use_symver=no
c0e7e2bf 3461fi
38d24731 3462rm -f conftest.err conftest.$ac_objext \
c0e7e2bf
JB
3463 conftest$ac_exeext conftest.$ac_ext
3464LDFLAGS="$save_LDFLAGS"
38d24731
RW
3465echo "$as_me:$LINENO: result: $gfortran_use_symver" >&5
3466echo "${ECHO_T}$gfortran_use_symver" >&6
c0e7e2bf
JB
3467
3468
3469if test "x$gfortran_use_symver" = xyes; then
3470 LIBGFOR_USE_SYMVER_TRUE=
3471 LIBGFOR_USE_SYMVER_FALSE='#'
3472else
3473 LIBGFOR_USE_SYMVER_TRUE='#'
3474 LIBGFOR_USE_SYMVER_FALSE=
3475fi
3476
3477
96b8a615
AJ
3478# Find other programs we need.
3479if test -n "$ac_tool_prefix"; then
3480 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3481set dummy ${ac_tool_prefix}as; ac_word=$2
38d24731
RW
3482echo "$as_me:$LINENO: checking for $ac_word" >&5
3483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
96b8a615 3484if test "${ac_cv_prog_AS+set}" = set; then
6de9cd9a
DN
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486else
96b8a615
AJ
3487 if test -n "$AS"; then
3488 ac_cv_prog_AS="$AS" # Let the user override the test.
3489else
3490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491for as_dir in $PATH
3492do
3493 IFS=$as_save_IFS
3494 test -z "$as_dir" && as_dir=.
3495 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 3496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96b8a615
AJ
3497 ac_cv_prog_AS="${ac_tool_prefix}as"
3498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 break 2
6de9cd9a 3500 fi
96b8a615
AJ
3501done
3502done
6de9cd9a 3503
96b8a615
AJ
3504fi
3505fi
3506AS=$ac_cv_prog_AS
3507if test -n "$AS"; then
38d24731
RW
3508 echo "$as_me:$LINENO: result: $AS" >&5
3509echo "${ECHO_T}$AS" >&6
6de9cd9a 3510else
38d24731
RW
3511 echo "$as_me:$LINENO: result: no" >&5
3512echo "${ECHO_T}no" >&6
6de9cd9a
DN
3513fi
3514
3515fi
96b8a615
AJ
3516if test -z "$ac_cv_prog_AS"; then
3517 ac_ct_AS=$AS
3518 # Extract the first word of "as", so it can be a program name with args.
3519set dummy as; ac_word=$2
38d24731
RW
3520echo "$as_me:$LINENO: checking for $ac_word" >&5
3521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
96b8a615
AJ
3522if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3524else
3525 if test -n "$ac_ct_AS"; then
3526 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3527else
3528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529for as_dir in $PATH
3530do
3531 IFS=$as_save_IFS
3532 test -z "$as_dir" && as_dir=.
3533 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 3534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96b8a615
AJ
3535 ac_cv_prog_ac_ct_AS="as"
3536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 break 2
3538 fi
3539done
3540done
6de9cd9a 3541
96b8a615
AJ
3542fi
3543fi
3544ac_ct_AS=$ac_cv_prog_ac_ct_AS
3545if test -n "$ac_ct_AS"; then
38d24731
RW
3546 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3547echo "${ECHO_T}$ac_ct_AS" >&6
6de9cd9a 3548else
38d24731
RW
3549 echo "$as_me:$LINENO: result: no" >&5
3550echo "${ECHO_T}no" >&6
6de9cd9a
DN
3551fi
3552
38d24731 3553 AS=$ac_ct_AS
96b8a615
AJ
3554else
3555 AS="$ac_cv_prog_AS"
6de9cd9a
DN
3556fi
3557
6de9cd9a 3558if test -n "$ac_tool_prefix"; then
96b8a615
AJ
3559 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3560set dummy ${ac_tool_prefix}ar; ac_word=$2
38d24731
RW
3561echo "$as_me:$LINENO: checking for $ac_word" >&5
3562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
96b8a615 3563if test "${ac_cv_prog_AR+set}" = set; then
6de9cd9a
DN
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3565else
96b8a615
AJ
3566 if test -n "$AR"; then
3567 ac_cv_prog_AR="$AR" # Let the user override the test.
6de9cd9a
DN
3568else
3569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570for as_dir in $PATH
3571do
3572 IFS=$as_save_IFS
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 3575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96b8a615 3576 ac_cv_prog_AR="${ac_tool_prefix}ar"
6de9cd9a
DN
3577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 break 2
3579 fi
3580done
3581done
3582
3583fi
3584fi
96b8a615
AJ
3585AR=$ac_cv_prog_AR
3586if test -n "$AR"; then
38d24731
RW
3587 echo "$as_me:$LINENO: result: $AR" >&5
3588echo "${ECHO_T}$AR" >&6
6de9cd9a 3589else
38d24731
RW
3590 echo "$as_me:$LINENO: result: no" >&5
3591echo "${ECHO_T}no" >&6
6de9cd9a
DN
3592fi
3593
6de9cd9a 3594fi
96b8a615
AJ
3595if test -z "$ac_cv_prog_AR"; then
3596 ac_ct_AR=$AR
3597 # Extract the first word of "ar", so it can be a program name with args.
3598set dummy ar; ac_word=$2
38d24731
RW
3599echo "$as_me:$LINENO: checking for $ac_word" >&5
3600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
96b8a615 3601if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6de9cd9a
DN
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3603else
96b8a615
AJ
3604 if test -n "$ac_ct_AR"; then
3605 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6de9cd9a
DN
3606else
3607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608for as_dir in $PATH
3609do
3610 IFS=$as_save_IFS
3611 test -z "$as_dir" && as_dir=.
3612 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 3613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96b8a615 3614 ac_cv_prog_ac_ct_AR="ar"
6de9cd9a
DN
3615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 break 2
3617 fi
3618done
3619done
3620
3621fi
3622fi
96b8a615
AJ
3623ac_ct_AR=$ac_cv_prog_ac_ct_AR
3624if test -n "$ac_ct_AR"; then
38d24731
RW
3625 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3626echo "${ECHO_T}$ac_ct_AR" >&6
6de9cd9a 3627else
38d24731
RW
3628 echo "$as_me:$LINENO: result: no" >&5
3629echo "${ECHO_T}no" >&6
6de9cd9a
DN
3630fi
3631
38d24731 3632 AR=$ac_ct_AR
96b8a615
AJ
3633else
3634 AR="$ac_cv_prog_AR"
6de9cd9a
DN
3635fi
3636
96b8a615
AJ
3637if test -n "$ac_tool_prefix"; then
3638 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3639set dummy ${ac_tool_prefix}ranlib; ac_word=$2
38d24731
RW
3640echo "$as_me:$LINENO: checking for $ac_word" >&5
3641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
96b8a615 3642if test "${ac_cv_prog_RANLIB+set}" = set; then
6de9cd9a
DN
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3644else
96b8a615
AJ
3645 if test -n "$RANLIB"; then
3646 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6de9cd9a 3647else
96b8a615
AJ
3648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649for as_dir in $PATH
3650do
3651 IFS=$as_save_IFS
3652 test -z "$as_dir" && as_dir=.
3653 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 3654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96b8a615
AJ
3655 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 break 2
3658 fi
3659done
3660done
6de9cd9a 3661
6de9cd9a 3662fi
96b8a615
AJ
3663fi
3664RANLIB=$ac_cv_prog_RANLIB
3665if test -n "$RANLIB"; then
38d24731
RW
3666 echo "$as_me:$LINENO: result: $RANLIB" >&5
3667echo "${ECHO_T}$RANLIB" >&6
96b8a615 3668else
38d24731
RW
3669 echo "$as_me:$LINENO: result: no" >&5
3670echo "${ECHO_T}no" >&6
96b8a615 3671fi
6de9cd9a
DN
3672
3673fi
96b8a615
AJ
3674if test -z "$ac_cv_prog_RANLIB"; then
3675 ac_ct_RANLIB=$RANLIB
3676 # Extract the first word of "ranlib", so it can be a program name with args.
3677set dummy ranlib; ac_word=$2
38d24731
RW
3678echo "$as_me:$LINENO: checking for $ac_word" >&5
3679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
96b8a615 3680if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6de9cd9a
DN
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3682else
96b8a615
AJ
3683 if test -n "$ac_ct_RANLIB"; then
3684 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6de9cd9a 3685else
96b8a615
AJ
3686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687for as_dir in $PATH
3688do
3689 IFS=$as_save_IFS
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 3692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96b8a615
AJ
3693 ac_cv_prog_ac_ct_RANLIB="ranlib"
3694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 break 2
3696 fi
3697done
3698done
6de9cd9a 3699
38d24731 3700 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
6de9cd9a 3701fi
6de9cd9a 3702fi
96b8a615
AJ
3703ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3704if test -n "$ac_ct_RANLIB"; then
38d24731
RW
3705 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3706echo "${ECHO_T}$ac_ct_RANLIB" >&6
6de9cd9a 3707else
38d24731
RW
3708 echo "$as_me:$LINENO: result: no" >&5
3709echo "${ECHO_T}no" >&6
6de9cd9a
DN
3710fi
3711
38d24731 3712 RANLIB=$ac_ct_RANLIB
96b8a615
AJ
3713else
3714 RANLIB="$ac_cv_prog_RANLIB"
6de9cd9a 3715fi
96b8a615 3716
38d24731
RW
3717echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3718echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3719set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3720if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6de9cd9a
DN
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722else
96b8a615
AJ
3723 cat >conftest.make <<\_ACEOF
3724all:
38d24731 3725 @echo 'ac_maketemp="$(MAKE)"'
6de9cd9a 3726_ACEOF
96b8a615 3727# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38d24731
RW
3728eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3729if test -n "$ac_maketemp"; then
3730 eval ac_cv_prog_make_${ac_make}_set=yes
3731else
3732 eval ac_cv_prog_make_${ac_make}_set=no
3733fi
96b8a615
AJ
3734rm -f conftest.make
3735fi
38d24731
RW
3736if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3737 echo "$as_me:$LINENO: result: yes" >&5
3738echo "${ECHO_T}yes" >&6
96b8a615 3739 SET_MAKE=
6de9cd9a 3740else
38d24731
RW
3741 echo "$as_me:$LINENO: result: no" >&5
3742echo "${ECHO_T}no" >&6
96b8a615 3743 SET_MAKE="MAKE=${MAKE-make}"
6de9cd9a 3744fi
6de9cd9a 3745
96b8a615
AJ
3746# Find a good install program. We prefer a C program (faster),
3747# so one script is as good as another. But avoid the broken or
3748# incompatible versions:
3749# SysV /etc/install, /usr/sbin/install
3750# SunOS /usr/etc/install
3751# IRIX /sbin/install
3752# AIX /bin/install
3753# AmigaOS /C/install, which installs bootblocks on floppy discs
3754# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3755# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3756# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3757# OS/2's system install, which has a completely different semantic
3758# ./install, which can be erroneously created by make from ./install.sh.
38d24731
RW
3759# Reject install programs that cannot install multiple files.
3760echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3761echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
96b8a615
AJ
3762if test -z "$INSTALL"; then
3763if test "${ac_cv_path_install+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 3765else
96b8a615
AJ
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767for as_dir in $PATH
3768do
3769 IFS=$as_save_IFS
3770 test -z "$as_dir" && as_dir=.
3771 # Account for people who put trailing slashes in PATH elements.
3772case $as_dir/ in
3773 ./ | .// | /cC/* | \
3774 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3775 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3776 /usr/ucb/* ) ;;
3777 *)
3778 # OSF1 and SCO ODT 3.0 have their own names for install.
3779 # Don't use installbsd from OSF since it installs stuff as root
3780 # by default.
3781 for ac_prog in ginstall scoinst install; do
3782 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 3783 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
96b8a615
AJ
3784 if test $ac_prog = install &&
3785 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3786 # AIX install. It has an incompatible calling convention.
3787 :
3788 elif test $ac_prog = install &&
3789 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3790 # program-specific install script used by HP pwplus--don't use.
3791 :
3792 else
38d24731
RW
3793 rm -rf conftest.one conftest.two conftest.dir
3794 echo one > conftest.one
3795 echo two > conftest.two
3796 mkdir conftest.dir
3797 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3798 test -s conftest.one && test -s conftest.two &&
3799 test -s conftest.dir/conftest.one &&
3800 test -s conftest.dir/conftest.two
3801 then
3802 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3803 break 3
3804 fi
96b8a615
AJ
3805 fi
3806 fi
3807 done
3808 done
3809 ;;
3810esac
6de9cd9a 3811done
6de9cd9a 3812
38d24731 3813rm -rf conftest.one conftest.two conftest.dir
6de9cd9a
DN
3814
3815fi
96b8a615
AJ
3816 if test "${ac_cv_path_install+set}" = set; then
3817 INSTALL=$ac_cv_path_install
6de9cd9a 3818 else
f489fba1
FXC
3819 # As a last resort, use the slow shell script. Don't cache a
3820 # value for INSTALL within a source directory, because that will
96b8a615 3821 # break other packages using the cache if that directory is
f489fba1 3822 # removed, or if the value is a relative name.
96b8a615 3823 INSTALL=$ac_install_sh
6de9cd9a 3824 fi
6de9cd9a 3825fi
38d24731
RW
3826echo "$as_me:$LINENO: result: $INSTALL" >&5
3827echo "${ECHO_T}$INSTALL" >&6
6de9cd9a 3828
96b8a615
AJ
3829# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3830# It thinks the first close brace ends the variable substitution.
3831test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6de9cd9a 3832
96b8a615 3833test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6de9cd9a 3834
96b8a615 3835test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6de9cd9a 3836
6de9cd9a 3837
96b8a615
AJ
3838# Configure libtool
3839#AC_MSG_NOTICE([====== Starting libtool configuration])
1cf3d07d
SE
3840enable_dlopen=yes
3841
3842
3843
3844
3845
3846macro_version='2.1a'
3847macro_revision='1.2435'
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860ltmain="$ac_aux_dir/ltmain.sh"
3861
3862# Set options
3863
3864
3865enable_win32_dll=no
3866
6de9cd9a 3867
38d24731 3868# Check whether --enable-shared or --disable-shared was given.
96b8a615 3869if test "${enable_shared+set}" = set; then
38d24731
RW
3870 enableval="$enable_shared"
3871 p=${PACKAGE-default}
1cf3d07d
SE
3872 case $enableval in
3873 yes) enable_shared=yes ;;
3874 no) enable_shared=no ;;
3875 *)
3876 enable_shared=no
3877 # Look at the argument we got. We use all the common list separators.
3878 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3879 for pkg in $enableval; do
3880 IFS="$lt_save_ifs"
3881 if test "X$pkg" = "X$p"; then
3882 enable_shared=yes
3883 fi
3884 done
3885 IFS="$lt_save_ifs"
3886 ;;
3887 esac
6de9cd9a 3888else
96b8a615 3889 enable_shared=yes
38d24731 3890fi;
1cf3d07d
SE
3891
3892
3893
3894
3895
3896
3897
3898
38d24731 3899# Check whether --enable-static or --disable-static was given.
96b8a615 3900if test "${enable_static+set}" = set; then
38d24731
RW
3901 enableval="$enable_static"
3902 p=${PACKAGE-default}
1cf3d07d
SE
3903 case $enableval in
3904 yes) enable_static=yes ;;
3905 no) enable_static=no ;;
3906 *)
3907 enable_static=no
3908 # Look at the argument we got. We use all the common list separators.
3909 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3910 for pkg in $enableval; do
3911 IFS="$lt_save_ifs"
3912 if test "X$pkg" = "X$p"; then
3913 enable_static=yes
3914 fi
3915 done
3916 IFS="$lt_save_ifs"
3917 ;;
3918 esac
96b8a615
AJ
3919else
3920 enable_static=yes
38d24731 3921fi;
1cf3d07d
SE
3922
3923
3924
3925
3926
3927
3928
3929
3930
38d24731 3931# Check whether --with-pic or --without-pic was given.
1cf3d07d 3932if test "${with_pic+set}" = set; then
38d24731
RW
3933 withval="$with_pic"
3934 pic_mode="$withval"
1cf3d07d
SE
3935else
3936 pic_mode=default
38d24731 3937fi;
1cf3d07d
SE
3938
3939test -z "$pic_mode" && pic_mode=default
3940
3941
3942
3943
3944
3945
3946
38d24731 3947# Check whether --enable-fast-install or --disable-fast-install was given.
96b8a615 3948if test "${enable_fast_install+set}" = set; then
38d24731
RW
3949 enableval="$enable_fast_install"
3950 p=${PACKAGE-default}
1cf3d07d
SE
3951 case $enableval in
3952 yes) enable_fast_install=yes ;;
3953 no) enable_fast_install=no ;;
3954 *)
3955 enable_fast_install=no
3956 # Look at the argument we got. We use all the common list separators.
3957 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3958 for pkg in $enableval; do
3959 IFS="$lt_save_ifs"
3960 if test "X$pkg" = "X$p"; then
3961 enable_fast_install=yes
3962 fi
3963 done
3964 IFS="$lt_save_ifs"
3965 ;;
3966 esac
96b8a615
AJ
3967else
3968 enable_fast_install=yes
38d24731 3969fi;
6de9cd9a 3970
1cf3d07d
SE
3971
3972
3973
3974
3975
3976
3977
38d24731
RW
3978echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3979echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3980if test "${lt_cv_path_SED+set}" = set; then
1cf3d07d
SE
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982else
38d24731
RW
3983 # Loop through the user's path and test for sed and gsed.
3984# Then use that list of sed's as ones to test for truncation.
1cf3d07d
SE
3985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986for as_dir in $PATH
3987do
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
38d24731
RW
3990 for lt_ac_prog in sed gsed; do
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3993 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3994 fi
3995 done
1cf3d07d
SE
3996 done
3997done
f489fba1 3998IFS=$as_save_IFS
38d24731
RW
3999lt_ac_max=0
4000lt_ac_count=0
4001# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4002# along with /bin/sed that truncates output.
4003for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4004 test ! -f $lt_ac_sed && continue
4005 cat /dev/null > conftest.in
4006 lt_ac_count=0
4007 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4008 # Check for GNU sed and select it if it is found.
4009 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4010 lt_cv_path_SED=$lt_ac_sed
4011 break
4012 fi
4013 while true; do
4014 cat conftest.in conftest.in >conftest.tmp
4015 mv conftest.tmp conftest.in
4016 cp conftest.in conftest.nl
4017 echo >>conftest.nl
4018 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4019 cmp -s conftest.out conftest.nl || break
4020 # 10000 chars as input seems more than enough
4021 test $lt_ac_count -gt 10 && break
4022 lt_ac_count=`expr $lt_ac_count + 1`
4023 if test $lt_ac_count -gt $lt_ac_max; then
4024 lt_ac_max=$lt_ac_count
4025 lt_cv_path_SED=$lt_ac_sed
f489fba1 4026 fi
f489fba1
FXC
4027 done
4028done
4029
f489fba1
FXC
4030fi
4031
38d24731 4032SED=$lt_cv_path_SED
f489fba1 4033
38d24731
RW
4034echo "$as_me:$LINENO: result: $SED" >&5
4035echo "${ECHO_T}$SED" >&6
4036
4037test -z "$SED" && SED=sed
4038Xsed="$SED -e 1s/^X//"
1cf3d07d
SE
4039
4040
f489fba1 4041
1cf3d07d
SE
4042
4043
4044
4045
4046
4047
4048
4049
38d24731
RW
4050echo "$as_me:$LINENO: checking for egrep" >&5
4051echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4052if test "${ac_cv_prog_egrep+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
1cf3d07d 4054else
38d24731
RW
4055 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4056 then ac_cv_prog_egrep='grep -E'
4057 else ac_cv_prog_egrep='egrep'
4058 fi
1cf3d07d 4059fi
38d24731
RW
4060echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4061echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4062 EGREP=$ac_cv_prog_egrep
1cf3d07d
SE
4063
4064
38d24731
RW
4065echo "$as_me:$LINENO: checking for fgrep" >&5
4066echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4067if test "${ac_cv_prog_fgrep+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069else
4070 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4071 then ac_cv_prog_fgrep='grep -F'
4072 else ac_cv_prog_fgrep='fgrep'
4073 fi
1cf3d07d 4074fi
38d24731
RW
4075echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4076echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4077 FGREP=$ac_cv_prog_fgrep
1cf3d07d
SE
4078
4079
4080test -z "$GREP" && GREP=grep
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
38d24731 4100# Check whether --with-gnu-ld or --without-gnu-ld was given.
96b8a615 4101if test "${with_gnu_ld+set}" = set; then
38d24731
RW
4102 withval="$with_gnu_ld"
4103 test "$withval" = no || with_gnu_ld=yes
96b8a615
AJ
4104else
4105 with_gnu_ld=no
38d24731 4106fi;
96b8a615
AJ
4107ac_prog=ld
4108if test "$GCC" = yes; then
4109 # Check if gcc -print-prog-name=ld gives a path.
38d24731
RW
4110 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4111echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
96b8a615
AJ
4112 case $host in
4113 *-*-mingw*)
4114 # gcc leaves a trailing carriage return which upsets mingw
4115 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4116 *)
4117 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4118 esac
4119 case $ac_prog in
4120 # Accept absolute paths.
1cf3d07d 4121 [\\/]* | ?:[\\/]*)
96b8a615 4122 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
4123 # Canonicalize the pathname of ld
4124 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4125 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4126 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
96b8a615
AJ
4127 done
4128 test -z "$LD" && LD="$ac_prog"
4129 ;;
4130 "")
4131 # If it fails, then pretend we aren't using GCC.
4132 ac_prog=ld
4133 ;;
4134 *)
4135 # If it is relative, then search for the first ld in PATH.
4136 with_gnu_ld=unknown
4137 ;;
4138 esac
4139elif test "$with_gnu_ld" = yes; then
38d24731
RW
4140 echo "$as_me:$LINENO: checking for GNU ld" >&5
4141echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
96b8a615 4142else
38d24731
RW
4143 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4144echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
96b8a615
AJ
4145fi
4146if test "${lt_cv_path_LD+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148else
4149 if test -z "$LD"; then
1cf3d07d 4150 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
96b8a615 4151 for ac_dir in $PATH; do
1cf3d07d 4152 IFS="$lt_save_ifs"
96b8a615
AJ
4153 test -z "$ac_dir" && ac_dir=.
4154 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4155 lt_cv_path_LD="$ac_dir/$ac_prog"
4156 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 4157 # but apparently some variants of GNU ld only accept -v.
96b8a615 4158 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
4159 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4160 *GNU* | *'with BFD'*)
96b8a615 4161 test "$with_gnu_ld" != no && break
1cf3d07d
SE
4162 ;;
4163 *)
96b8a615 4164 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
4165 ;;
4166 esac
96b8a615
AJ
4167 fi
4168 done
1cf3d07d 4169 IFS="$lt_save_ifs"
96b8a615
AJ
4170else
4171 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4172fi
4173fi
4174
4175LD="$lt_cv_path_LD"
4176if test -n "$LD"; then
38d24731
RW
4177 echo "$as_me:$LINENO: result: $LD" >&5
4178echo "${ECHO_T}$LD" >&6
96b8a615 4179else
38d24731
RW
4180 echo "$as_me:$LINENO: result: no" >&5
4181echo "${ECHO_T}no" >&6
96b8a615
AJ
4182fi
4183test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4184echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4185 { (exit 1); exit 1; }; }
38d24731
RW
4186echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4187echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
96b8a615
AJ
4188if test "${lt_cv_prog_gnu_ld+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190else
1cf3d07d
SE
4191 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4192case `$LD -v 2>&1 </dev/null` in
4193*GNU* | *'with BFD'*)
96b8a615 4194 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
4195 ;;
4196*)
96b8a615 4197 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
4198 ;;
4199esac
96b8a615 4200fi
38d24731
RW
4201echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4202echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
96b8a615
AJ
4203with_gnu_ld=$lt_cv_prog_gnu_ld
4204
4205
96b8a615 4206
1cf3d07d
SE
4207
4208
4209
4210
4211
4212
4213
38d24731
RW
4214echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4215echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
96b8a615
AJ
4216if test "${lt_cv_path_NM+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4218else
4219 if test -n "$NM"; then
4220 # Let the user override the test.
4221 lt_cv_path_NM="$NM"
4222else
1cf3d07d
SE
4223 lt_nm_to_check="${ac_tool_prefix}nm"
4224 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4225 lt_nm_to_check="$lt_nm_to_check nm"
4226 fi
4227 for lt_tmp_nm in $lt_nm_to_check; do
4228 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4229 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4230 IFS="$lt_save_ifs"
4231 test -z "$ac_dir" && ac_dir=.
4232 tmp_nm="$ac_dir/$lt_tmp_nm"
4233 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4234 # Check to see if the nm accepts a BSD-compat flag.
4235 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4236 # nm: unknown option "B" ignored
4237 # Tru64's nm complains that /dev/null is an invalid object file
4238 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4239 */dev/null* | *'Invalid file or object type'*)
4240 lt_cv_path_NM="$tmp_nm -B"
4241 break
4242 ;;
4243 *)
4244 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4245 */dev/null*)
4246 lt_cv_path_NM="$tmp_nm -p"
4247 break
4248 ;;
4249 *)
4250 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4251 continue # so that we can try to find one that supports BSD flags
4252 ;;
4253 esac
4254 ;;
4255 esac
4256 fi
4257 done
4258 IFS="$lt_save_ifs"
4259 done
4260 : ${lt_cv_path_NM=no}
4261fi
4262fi
38d24731
RW
4263echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4264echo "${ECHO_T}$lt_cv_path_NM" >&6
1cf3d07d
SE
4265if test "$lt_cv_path_NM" != "no"; then
4266 NM="$lt_cv_path_NM"
4267else
4268 # Didn't find any BSD compatible name lister, look for dumpbin.
4269 if test -n "$ac_tool_prefix"; then
4270 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4271 do
4272 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4273set dummy $ac_tool_prefix$ac_prog; ac_word=$2
38d24731
RW
4274echo "$as_me:$LINENO: checking for $ac_word" >&5
4275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d
SE
4276if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4278else
4279 if test -n "$DUMPBIN"; then
4280 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4281else
4282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283for as_dir in $PATH
4284do
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 4288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d
SE
4289 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 break 2
4292 fi
4293done
4294done
4295
4296fi
4297fi
4298DUMPBIN=$ac_cv_prog_DUMPBIN
4299if test -n "$DUMPBIN"; then
38d24731
RW
4300 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4301echo "${ECHO_T}$DUMPBIN" >&6
1cf3d07d 4302else
38d24731
RW
4303 echo "$as_me:$LINENO: result: no" >&5
4304echo "${ECHO_T}no" >&6
1cf3d07d
SE
4305fi
4306
4307 test -n "$DUMPBIN" && break
4308 done
4309fi
4310if test -z "$DUMPBIN"; then
4311 ac_ct_DUMPBIN=$DUMPBIN
4312 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4313do
4314 # Extract the first word of "$ac_prog", so it can be a program name with args.
4315set dummy $ac_prog; ac_word=$2
38d24731
RW
4316echo "$as_me:$LINENO: checking for $ac_word" >&5
4317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d
SE
4318if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4320else
4321 if test -n "$ac_ct_DUMPBIN"; then
4322 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4323else
4324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325for as_dir in $PATH
4326do
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 4330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d
SE
4331 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 break 2
4334 fi
4335done
4336done
4337
4338fi
4339fi
4340ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4341if test -n "$ac_ct_DUMPBIN"; then
38d24731
RW
4342 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4343echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
1cf3d07d 4344else
38d24731
RW
4345 echo "$as_me:$LINENO: result: no" >&5
4346echo "${ECHO_T}no" >&6
1cf3d07d
SE
4347fi
4348
4349 test -n "$ac_ct_DUMPBIN" && break
4350done
38d24731 4351test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
1cf3d07d 4352
38d24731 4353 DUMPBIN=$ac_ct_DUMPBIN
96b8a615 4354fi
1cf3d07d
SE
4355
4356
4357 if test "$DUMPBIN" != ":"; then
4358 NM="$DUMPBIN"
4359 fi
96b8a615 4360fi
1cf3d07d
SE
4361test -z "$NM" && NM=nm
4362
4363
96b8a615 4364
1cf3d07d
SE
4365
4366
4367
38d24731
RW
4368echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4369echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
1cf3d07d
SE
4370if test "${lt_cv_nm_interface+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4372else
4373 lt_cv_nm_interface="BSD nm"
4374 echo "int some_variable = 0;" > conftest.$ac_ext
38d24731 4375 (eval echo "\"\$as_me:4375: $ac_compile\"" >&5)
1cf3d07d
SE
4376 (eval "$ac_compile" 2>conftest.err)
4377 cat conftest.err >&5
38d24731 4378 (eval echo "\"\$as_me:4378: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
4379 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4380 cat conftest.err >&5
38d24731 4381 (eval echo "\"\$as_me:4381: output\"" >&5)
1cf3d07d
SE
4382 cat conftest.out >&5
4383 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4384 lt_cv_nm_interface="MS dumpbin"
4385 fi
4386 rm -f conftest*
4387fi
38d24731
RW
4388echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4389echo "${ECHO_T}$lt_cv_nm_interface" >&6
96b8a615 4390
38d24731
RW
4391echo "$as_me:$LINENO: checking whether ln -s works" >&5
4392echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
96b8a615
AJ
4393LN_S=$as_ln_s
4394if test "$LN_S" = "ln -s"; then
38d24731
RW
4395 echo "$as_me:$LINENO: result: yes" >&5
4396echo "${ECHO_T}yes" >&6
96b8a615 4397else
38d24731
RW
4398 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4399echo "${ECHO_T}no, using $LN_S" >&6
96b8a615
AJ
4400fi
4401
1cf3d07d 4402# find the maximum length of command line arguments
38d24731
RW
4403echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4404echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
1cf3d07d
SE
4405if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407else
4408 i=0
4409 teststring="ABCD"
4410
4411 case $build_os in
4412 msdosdjgpp*)
4413 # On DJGPP, this test can blow up pretty badly due to problems in libc
4414 # (any single argument exceeding 2000 bytes causes a buffer overrun
4415 # during glob expansion). Even if it were fixed, the result of this
4416 # check would be larger than it should be.
4417 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4418 ;;
4419
4420 gnu*)
4421 # Under GNU Hurd, this test is not required because there is
4422 # no limit to the length of command line arguments.
4423 # Libtool will interpret -1 as no limit whatsoever
4424 lt_cv_sys_max_cmd_len=-1;
4425 ;;
4426
4427 cygwin* | mingw*)
4428 # On Win9x/ME, this test blows up -- it succeeds, but takes
4429 # about 5 minutes as the teststring grows exponentially.
4430 # Worse, since 9x/ME are not pre-emptively multitasking,
4431 # you end up with a "frozen" computer, even though with patience
4432 # the test eventually succeeds (with a max line length of 256k).
4433 # Instead, let's just punt: use the minimum linelength reported by
4434 # all of the supported platforms: 8192 (on NT/2K/XP).
4435 lt_cv_sys_max_cmd_len=8192;
4436 ;;
4437
4438 amigaos*)
4439 # On AmigaOS with pdksh, this test takes hours, literally.
4440 # So we just punt and use a minimum line length of 8192.
4441 lt_cv_sys_max_cmd_len=8192;
4442 ;;
4443
4444 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4445 # This has been around since 386BSD, at least. Likely further.
4446 if test -x /sbin/sysctl; then
4447 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4448 elif test -x /usr/sbin/sysctl; then
4449 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4450 else
4451 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4452 fi
4453 # And add a safety zone
4454 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4456 ;;
4457
4458 interix*)
4459 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4460 lt_cv_sys_max_cmd_len=196608
4461 ;;
4462
4463 osf*)
4464 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4465 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4466 # nice to cause kernel panics so lets avoid the loop below.
4467 # First set a reasonable default.
4468 lt_cv_sys_max_cmd_len=16384
4469 #
4470 if test -x /sbin/sysconfig; then
4471 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4472 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4473 esac
4474 fi
4475 ;;
4476 sco3.2v5*)
4477 lt_cv_sys_max_cmd_len=102400
4478 ;;
4479 sysv5* | sco5v6* | sysv4.2uw2*)
4480 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4481 if test -n "$kargmax"; then
4482 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4483 else
4484 lt_cv_sys_max_cmd_len=32768
4485 fi
4486 ;;
4487 *)
82a6cadf
PB
4488 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4489 if test -n $lt_cv_sys_max_cmd_len; then
4490 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4492 else
4493 # Make teststring a little bigger before we do anything with it.
4494 # a 1K string should be a reasonable start.
4495 for i in 1 2 3 4 5 6 7 8 ; do
4496 teststring=$teststring$teststring
4497 done
4498 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4499 # If test is not a shell built-in, we'll probably end up computing a
4500 # maximum length that is only half of the actual maximum length, but
4501 # we can't tell.
4502 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4503 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4504 test $i != 17 # 1/2 MB should be enough
4505 do
4506 i=`expr $i + 1`
4507 teststring=$teststring$teststring
4508 done
4509 # Only check the string length outside the loop.
4510 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4511 teststring=
4512 # Add a significant safety factor because C++ compilers can tack on
4513 # massive amounts of additional arguments before passing them to the
4514 # linker. It appears as though 1/2 is a usable value.
4515 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4516 fi
1cf3d07d
SE
4517 ;;
4518 esac
4519
4520fi
4521
4522if test -n $lt_cv_sys_max_cmd_len ; then
38d24731
RW
4523 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4524echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
1cf3d07d 4525else
38d24731
RW
4526 echo "$as_me:$LINENO: result: none" >&5
4527echo "${ECHO_T}none" >&6
1cf3d07d
SE
4528fi
4529max_cmd_len=$lt_cv_sys_max_cmd_len
4530
4531
4532
4533
4534
4535
4536
4537: ${CP="cp -f"}
4538: ${MV="mv -f"}
4539: ${RM="rm -f"}
4540
38d24731
RW
4541echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4542echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
1cf3d07d
SE
4543# Try some XSI features
4544xsi_shell=no
4545( _lt_dummy="a/b/c"
4546 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4547 = c,a/b,, ) >/dev/null 2>&1 \
4548 && xsi_shell=yes
38d24731
RW
4549echo "$as_me:$LINENO: result: $xsi_shell" >&5
4550echo "${ECHO_T}$xsi_shell" >&6
1cf3d07d
SE
4551
4552
38d24731
RW
4553echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4554echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
1cf3d07d
SE
4555lt_shell_append=no
4556( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4557 >/dev/null 2>&1 \
4558 && lt_shell_append=yes
38d24731
RW
4559echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4560echo "${ECHO_T}$lt_shell_append" >&6
1cf3d07d
SE
4561
4562
4563if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4564 lt_unset=unset
4565else
4566 lt_unset=false
4567fi
4568
4569
4570
4571
4572
4573# test EBCDIC or ASCII
4574case `echo X|tr X '\101'` in
4575 A) # ASCII based system
4576 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4577 lt_SP2NL='tr \040 \012'
4578 lt_NL2SP='tr \015\012 \040\040'
4579 ;;
4580 *) # EBCDIC based system
4581 lt_SP2NL='tr \100 \n'
4582 lt_NL2SP='tr \r\n \100\100'
4583 ;;
4584esac
4585
4586
4587
4588
4589
4590
4591
4592
4593
38d24731
RW
4594echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4595echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
1cf3d07d
SE
4596if test "${lt_cv_ld_reload_flag+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4598else
4599 lt_cv_ld_reload_flag='-r'
4600fi
38d24731
RW
4601echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4602echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
1cf3d07d
SE
4603reload_flag=$lt_cv_ld_reload_flag
4604case $reload_flag in
4605"" | " "*) ;;
4606*) reload_flag=" $reload_flag" ;;
4607esac
4608reload_cmds='$LD$reload_flag -o $output$reload_objs'
4609case $host_os in
4610 darwin*)
4611 if test "$GCC" = yes; then
4612 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4613 else
4614 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4615 fi
4616 ;;
4617esac
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
38d24731
RW
4628echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4629echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
96b8a615
AJ
4630if test "${lt_cv_deplibs_check_method+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4632else
4633 lt_cv_file_magic_cmd='$MAGIC_CMD'
4634lt_cv_file_magic_test_file=
4635lt_cv_deplibs_check_method='unknown'
4636# Need to set the preceding variable on all platforms that support
4637# interlibrary dependencies.
4638# 'none' -- dependencies not supported.
4639# `unknown' -- same as none, but documents that we really don't know.
4640# 'pass_all' -- all dependencies passed with no checks.
4641# 'test_compile' -- check by making test program.
1cf3d07d
SE
4642# 'file_magic [[regex]]' -- check by looking for files in library path
4643# which responds to the $file_magic_cmd with a given extended regex.
96b8a615
AJ
4644# If you have `file' or equivalent on your system and you're not sure
4645# whether `pass_all' will *always* work, you probably want this one.
4646
4647case $host_os in
4f6bebc3 4648aix[4-9]*)
96b8a615
AJ
4649 lt_cv_deplibs_check_method=pass_all
4650 ;;
4651
4652beos*)
4653 lt_cv_deplibs_check_method=pass_all
4654 ;;
4655
1cf3d07d 4656bsdi[45]*)
96b8a615
AJ
4657 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4658 lt_cv_file_magic_cmd='/usr/bin/file -L'
4659 lt_cv_file_magic_test_file=/shlib/libc.so
4660 ;;
4661
1cf3d07d
SE
4662cygwin*)
4663 # func_win32_libid is a shell function defined in ltmain.sh
4664 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4665 lt_cv_file_magic_cmd='func_win32_libid'
4666 ;;
4667
4668mingw* | pw32*)
4669 # Base MSYS/MinGW do not provide the 'file' command needed by
4670 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4671 # unless we find 'file', for example because we are cross-compiling.
4672 if ( file / ) >/dev/null 2>&1; then
4673 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4674 lt_cv_file_magic_cmd='func_win32_libid'
4675 else
4676 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4677 lt_cv_file_magic_cmd='$OBJDUMP -f'
4678 fi
96b8a615
AJ
4679 ;;
4680
4681darwin* | rhapsody*)
96b8a615
AJ
4682 lt_cv_deplibs_check_method=pass_all
4683 ;;
4684
1cf3d07d
SE
4685freebsd* | dragonfly*)
4686 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
96b8a615
AJ
4687 case $host_cpu in
4688 i*86 )
4689 # Not sure whether the presence of OpenBSD here was a mistake.
4690 # Let's accept both of them until this is cleared up.
1cf3d07d 4691 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
96b8a615
AJ
4692 lt_cv_file_magic_cmd=/usr/bin/file
4693 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4694 ;;
4695 esac
4696 else
4697 lt_cv_deplibs_check_method=pass_all
4698 fi
4699 ;;
4700
4701gnu*)
4702 lt_cv_deplibs_check_method=pass_all
4703 ;;
4704
1cf3d07d
SE
4705hpux10.20* | hpux11*)
4706 lt_cv_file_magic_cmd=/usr/bin/file
96b8a615 4707 case $host_cpu in
96b8a615
AJ
4708 ia64*)
4709 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
96b8a615
AJ
4710 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4711 ;;
1cf3d07d
SE
4712 hppa*64*)
4713 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]'
4714 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
96b8a615
AJ
4715 ;;
4716 *)
1cf3d07d
SE
4717 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4718 lt_cv_file_magic_test_file=/usr/lib/libc.sl
96b8a615
AJ
4719 ;;
4720 esac
1cf3d07d
SE
4721 ;;
4722
4723interix[3-9]*)
4724 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4725 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4726 ;;
4727
4728irix5* | irix6* | nonstopux*)
4729 case $LD in
4730 *-32|*"-32 ") libmagic=32-bit;;
4731 *-n32|*"-n32 ") libmagic=N32;;
4732 *-64|*"-64 ") libmagic=64-bit;;
4733 *) libmagic=never-match;;
4734 esac
96b8a615
AJ
4735 lt_cv_deplibs_check_method=pass_all
4736 ;;
4737
4738# This must be Linux ELF.
1cf3d07d 4739linux* | k*bsd*-gnu)
2c92e90f 4740 lt_cv_deplibs_check_method=pass_all
96b8a615
AJ
4741 ;;
4742
1cf3d07d
SE
4743netbsd*)
4744 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
96b8a615 4746 else
1cf3d07d 4747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
96b8a615
AJ
4748 fi
4749 ;;
4750
1cf3d07d 4751newos6*)
96b8a615
AJ
4752 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4753 lt_cv_file_magic_cmd=/usr/bin/file
4754 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4755 ;;
4756
1cf3d07d
SE
4757*nto* | *qnx*)
4758 lt_cv_deplibs_check_method=pass_all
4759 ;;
4760
4761openbsd*)
4762 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4763 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4764 else
4765 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4766 fi
4767 ;;
4768
96b8a615 4769osf3* | osf4* | osf5*)
96b8a615
AJ
4770 lt_cv_deplibs_check_method=pass_all
4771 ;;
4772
1cf3d07d 4773rdos*)
96b8a615
AJ
4774 lt_cv_deplibs_check_method=pass_all
4775 ;;
4776
4777solaris*)
4778 lt_cv_deplibs_check_method=pass_all
96b8a615
AJ
4779 ;;
4780
1cf3d07d 4781sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
96b8a615
AJ
4782 lt_cv_deplibs_check_method=pass_all
4783 ;;
4784
1cf3d07d 4785sysv4 | sysv4.3*)
96b8a615 4786 case $host_vendor in
96b8a615
AJ
4787 motorola)
4788 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]'
4789 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4790 ;;
1cf3d07d
SE
4791 ncr)
4792 lt_cv_deplibs_check_method=pass_all
4793 ;;
4794 sequent)
4795 lt_cv_file_magic_cmd='/bin/file'
4796 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4797 ;;
4798 sni)
4799 lt_cv_file_magic_cmd='/bin/file'
4800 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4801 lt_cv_file_magic_test_file=/lib/libc.so
4802 ;;
4803 siemens)
4804 lt_cv_deplibs_check_method=pass_all
4805 ;;
4806 pc)
4807 lt_cv_deplibs_check_method=pass_all
4808 ;;
96b8a615
AJ
4809 esac
4810 ;;
1cf3d07d
SE
4811
4812tpf*)
4813 lt_cv_deplibs_check_method=pass_all
4814 ;;
96b8a615
AJ
4815esac
4816
4817fi
38d24731
RW
4818echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4819echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
96b8a615
AJ
4820file_magic_cmd=$lt_cv_file_magic_cmd
4821deplibs_check_method=$lt_cv_deplibs_check_method
1cf3d07d 4822test -z "$deplibs_check_method" && deplibs_check_method=unknown
96b8a615
AJ
4823
4824
4825
4826
96b8a615 4827
96b8a615 4828
96b8a615 4829
96b8a615 4830
6de9cd9a 4831
6de9cd9a 4832
6de9cd9a 4833
6de9cd9a 4834
96b8a615 4835if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
4836 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4837set dummy ${ac_tool_prefix}ar; ac_word=$2
38d24731
RW
4838echo "$as_me:$LINENO: checking for $ac_word" >&5
4839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 4840if test "${ac_cv_prog_AR+set}" = set; then
96b8a615 4841 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 4842else
1cf3d07d
SE
4843 if test -n "$AR"; then
4844 ac_cv_prog_AR="$AR" # Let the user override the test.
96b8a615
AJ
4845else
4846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847for as_dir in $PATH
4848do
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
4851 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 4852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 4853 ac_cv_prog_AR="${ac_tool_prefix}ar"
96b8a615
AJ
4854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 break 2
4856 fi
4857done
4858done
6de9cd9a 4859
96b8a615
AJ
4860fi
4861fi
1cf3d07d
SE
4862AR=$ac_cv_prog_AR
4863if test -n "$AR"; then
38d24731
RW
4864 echo "$as_me:$LINENO: result: $AR" >&5
4865echo "${ECHO_T}$AR" >&6
96b8a615 4866else
38d24731
RW
4867 echo "$as_me:$LINENO: result: no" >&5
4868echo "${ECHO_T}no" >&6
6de9cd9a
DN
4869fi
4870
96b8a615 4871fi
1cf3d07d
SE
4872if test -z "$ac_cv_prog_AR"; then
4873 ac_ct_AR=$AR
4874 # Extract the first word of "ar", so it can be a program name with args.
4875set dummy ar; ac_word=$2
38d24731
RW
4876echo "$as_me:$LINENO: checking for $ac_word" >&5
4877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 4878if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
96b8a615
AJ
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4880else
1cf3d07d
SE
4881 if test -n "$ac_ct_AR"; then
4882 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
96b8a615
AJ
4883else
4884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885for as_dir in $PATH
4886do
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 4890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 4891 ac_cv_prog_ac_ct_AR="ar"
96b8a615
AJ
4892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 break 2
4894 fi
4895done
4896done
6de9cd9a 4897
38d24731 4898 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
96b8a615
AJ
4899fi
4900fi
1cf3d07d
SE
4901ac_ct_AR=$ac_cv_prog_ac_ct_AR
4902if test -n "$ac_ct_AR"; then
38d24731
RW
4903 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4904echo "${ECHO_T}$ac_ct_AR" >&6
6de9cd9a 4905else
38d24731
RW
4906 echo "$as_me:$LINENO: result: no" >&5
4907echo "${ECHO_T}no" >&6
6de9cd9a 4908fi
6de9cd9a 4909
38d24731 4910 AR=$ac_ct_AR
96b8a615 4911else
1cf3d07d 4912 AR="$ac_cv_prog_AR"
6de9cd9a
DN
4913fi
4914
1cf3d07d
SE
4915test -z "$AR" && AR=ar
4916test -z "$AR_FLAGS" && AR_FLAGS=cru
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
96b8a615
AJ
4928if test -n "$ac_tool_prefix"; then
4929 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4930set dummy ${ac_tool_prefix}strip; ac_word=$2
38d24731
RW
4931echo "$as_me:$LINENO: checking for $ac_word" >&5
4932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
96b8a615
AJ
4933if test "${ac_cv_prog_STRIP+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 4935else
96b8a615
AJ
4936 if test -n "$STRIP"; then
4937 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4938else
4939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940for as_dir in $PATH
4941do
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 4945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96b8a615
AJ
4946 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 break 2
4949 fi
4950done
4951done
6de9cd9a 4952
96b8a615
AJ
4953fi
4954fi
4955STRIP=$ac_cv_prog_STRIP
4956if test -n "$STRIP"; then
38d24731
RW
4957 echo "$as_me:$LINENO: result: $STRIP" >&5
4958echo "${ECHO_T}$STRIP" >&6
6de9cd9a 4959else
38d24731
RW
4960 echo "$as_me:$LINENO: result: no" >&5
4961echo "${ECHO_T}no" >&6
96b8a615 4962fi
6de9cd9a 4963
6de9cd9a 4964fi
96b8a615
AJ
4965if test -z "$ac_cv_prog_STRIP"; then
4966 ac_ct_STRIP=$STRIP
4967 # Extract the first word of "strip", so it can be a program name with args.
4968set dummy strip; ac_word=$2
38d24731
RW
4969echo "$as_me:$LINENO: checking for $ac_word" >&5
4970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
96b8a615
AJ
4971if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4973else
4974 if test -n "$ac_ct_STRIP"; then
4975 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4976else
4977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978for as_dir in $PATH
4979do
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 4983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96b8a615
AJ
4984 ac_cv_prog_ac_ct_STRIP="strip"
4985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4987 fi
4988done
4989done
4990
38d24731 4991 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6de9cd9a
DN
4992fi
4993fi
96b8a615
AJ
4994ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4995if test -n "$ac_ct_STRIP"; then
38d24731
RW
4996 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4997echo "${ECHO_T}$ac_ct_STRIP" >&6
96b8a615 4998else
38d24731
RW
4999 echo "$as_me:$LINENO: result: no" >&5
5000echo "${ECHO_T}no" >&6
6de9cd9a 5001fi
6de9cd9a 5002
38d24731 5003 STRIP=$ac_ct_STRIP
96b8a615
AJ
5004else
5005 STRIP="$ac_cv_prog_STRIP"
6de9cd9a
DN
5006fi
5007
1cf3d07d 5008test -z "$STRIP" && STRIP=:
6de9cd9a
DN
5009
5010
5011
5012
5013
5014
1cf3d07d
SE
5015if test -n "$ac_tool_prefix"; then
5016 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5017set dummy ${ac_tool_prefix}ranlib; ac_word=$2
38d24731
RW
5018echo "$as_me:$LINENO: checking for $ac_word" >&5
5019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d
SE
5020if test "${ac_cv_prog_RANLIB+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 5022else
1cf3d07d
SE
5023 if test -n "$RANLIB"; then
5024 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5025else
5026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027for as_dir in $PATH
5028do
5029 IFS=$as_save_IFS
5030 test -z "$as_dir" && as_dir=.
5031 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 5032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d
SE
5033 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 break 2
5036 fi
5037done
5038done
5039
5040fi
5041fi
5042RANLIB=$ac_cv_prog_RANLIB
5043if test -n "$RANLIB"; then
38d24731
RW
5044 echo "$as_me:$LINENO: result: $RANLIB" >&5
5045echo "${ECHO_T}$RANLIB" >&6
1cf3d07d 5046else
38d24731
RW
5047 echo "$as_me:$LINENO: result: no" >&5
5048echo "${ECHO_T}no" >&6
1cf3d07d
SE
5049fi
5050
5051fi
5052if test -z "$ac_cv_prog_RANLIB"; then
5053 ac_ct_RANLIB=$RANLIB
5054 # Extract the first word of "ranlib", so it can be a program name with args.
5055set dummy ranlib; ac_word=$2
38d24731
RW
5056echo "$as_me:$LINENO: checking for $ac_word" >&5
5057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d
SE
5058if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5060else
5061 if test -n "$ac_ct_RANLIB"; then
5062 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5063else
5064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065for as_dir in $PATH
5066do
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 5070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d
SE
5071 ac_cv_prog_ac_ct_RANLIB="ranlib"
5072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2
5074 fi
5075done
5076done
5077
38d24731 5078 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1cf3d07d
SE
5079fi
5080fi
5081ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5082if test -n "$ac_ct_RANLIB"; then
38d24731
RW
5083 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5084echo "${ECHO_T}$ac_ct_RANLIB" >&6
1cf3d07d 5085else
38d24731
RW
5086 echo "$as_me:$LINENO: result: no" >&5
5087echo "${ECHO_T}no" >&6
1cf3d07d
SE
5088fi
5089
38d24731 5090 RANLIB=$ac_ct_RANLIB
1cf3d07d
SE
5091else
5092 RANLIB="$ac_cv_prog_RANLIB"
5093fi
5094
5095test -z "$RANLIB" && RANLIB=:
5096
5097
5098
5099
5100
5101
5102# Determine commands to create old-style static archives.
5103old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5104old_postinstall_cmds='chmod 644 $oldlib'
5105old_postuninstall_cmds=
5106
5107if test -n "$RANLIB"; then
5108 case $host_os in
5109 openbsd*)
5110 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5111 ;;
5112 *)
5113 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5114 ;;
5115 esac
5116 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5117fi
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152# If no C compiler was specified, use CC.
5153LTCC=${LTCC-"$CC"}
5154
5155# If no C compiler flags were specified, use CFLAGS.
5156LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5157
5158# Allow CC to be a program name with arguments.
5159compiler=$CC
5160
5161
5162# Check for command to grab the raw symbol name followed by C symbol from nm.
38d24731
RW
5163echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5164echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
1cf3d07d
SE
5165if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167else
5168
5169# These are sane defaults that work on at least a few old systems.
5170# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5171
5172# Character class describing NM global symbol codes.
5173symcode='[BCDEGRST]'
5174
5175# Regexp to match symbols that can be accessed directly from C.
5176sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5177
5178# Define system-specific variables.
5179case $host_os in
5180aix*)
5181 symcode='[BCDT]'
5182 ;;
5183cygwin* | mingw* | pw32*)
5184 symcode='[ABCDGISTW]'
5185 ;;
5186hpux*)
5187 if test "$host_cpu" = ia64; then
5188 symcode='[ABCDEGRST]'
5189 fi
5190 ;;
5191irix* | nonstopux*)
5192 symcode='[BCDEGRST]'
5193 ;;
5194osf*)
5195 symcode='[BCDEGQRST]'
5196 ;;
5197solaris*)
5198 symcode='[BDRT]'
5199 ;;
5200sco3.2v5*)
5201 symcode='[DT]'
5202 ;;
5203sysv4.2uw2*)
5204 symcode='[DT]'
5205 ;;
5206sysv5* | sco5v6* | unixware* | OpenUNIX*)
5207 symcode='[ABDT]'
5208 ;;
5209sysv4)
5210 symcode='[DFNSTU]'
5211 ;;
5212esac
5213
5214# If we're using GNU nm, then use its standard symbol codes.
5215case `$NM -V 2>&1` in
5216*GNU* | *'with BFD'*)
5217 symcode='[ABCDGIRSTW]' ;;
5218esac
5219
5220# Transform an extracted symbol line into a proper C declaration.
5221# Some systems (esp. on ia64) link data and code symbols differently,
5222# so use this general approach.
5223lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5224
5225# Transform an extracted symbol line into symbol name and symbol address
5226lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5227
5228# Handle CRLF in mingw tool chain
5229opt_cr=
5230case $build_os in
5231mingw*)
5232 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5233 ;;
5234esac
5235
5236# Try without a prefix underscore, then with it.
5237for ac_symprfx in "" "_"; do
5238
5239 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5240 symxfrm="\\1 $ac_symprfx\\2 \\2"
5241
5242 # Write the raw and C identifiers.
5243 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5244 # Fake it for dumpbin and say T for any non-static function
5245 # and D for any global variable.
5246 # Also find C++ and __fastcall symbols from MSVC++,
5247 # which start with @ or ?.
5248 lt_cv_sys_global_symbol_pipe="$AWK '"\
5249" {last_section=section; section=\$ 3};"\
5250" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5251" \$ 0!~/External *\|/{next};"\
5252" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5253" {if(hide[section]) next};"\
5254" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5255" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5256" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5257" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5258" ' prfx=^$ac_symprfx"
5259 else
5260 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5261 fi
5262
5263 # Check to see that the pipe works correctly.
5264 pipe_works=no
5265
5266 rm -f conftest*
5267 cat > conftest.$ac_ext <<_LT_EOF
5268#ifdef __cplusplus
5269extern "C" {
5270#endif
5271char nm_test_var;
5272void nm_test_func(void);
5273void nm_test_func(void){}
5274#ifdef __cplusplus
5275}
5276#endif
5277int main(){nm_test_var='a';nm_test_func();return(0);}
5278_LT_EOF
5279
5280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5281 (eval $ac_compile) 2>&5
5282 ac_status=$?
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }; then
5285 # Now try to grab the symbols.
5286 nlist=conftest.nm
5287 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5288 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5289 ac_status=$?
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } && test -s "$nlist"; then
5292 # Try sorting and uniquifying the output.
5293 if sort "$nlist" | uniq > "$nlist"T; then
5294 mv -f "$nlist"T "$nlist"
5295 else
5296 rm -f "$nlist"T
5297 fi
5298
5299 # Make sure that we snagged all the symbols we need.
5300 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5301 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5302 cat <<_LT_EOF > conftest.$ac_ext
5303#ifdef __cplusplus
5304extern "C" {
5305#endif
5306
5307_LT_EOF
5308 # Now generate the symbol file.
5309 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5310
5311 cat <<_LT_EOF >> conftest.$ac_ext
5312
5313/* The mapping between symbol names and symbols. */
5314const struct {
5315 const char *name;
5316 void *address;
5317}
5318lt__PROGRAM__LTX_preloaded_symbols[] =
5319{
5320 { "@PROGRAM@", (void *) 0 },
5321_LT_EOF
5322 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5323 cat <<\_LT_EOF >> conftest.$ac_ext
5324 {0, (void *) 0}
5325};
5326
5327/* This works around a problem in FreeBSD linker */
5328#ifdef FREEBSD_WORKAROUND
5329static const void *lt_preloaded_setup() {
5330 return lt__PROGRAM__LTX_preloaded_symbols;
5331}
5332#endif
5333
5334#ifdef __cplusplus
5335}
5336#endif
5337_LT_EOF
5338 # Now try linking the two files.
5339 mv conftest.$ac_objext conftstm.$ac_objext
5340 lt_save_LIBS="$LIBS"
5341 lt_save_CFLAGS="$CFLAGS"
5342 LIBS="conftstm.$ac_objext"
5343 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5345 (eval $ac_link) 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5349 pipe_works=yes
5350 fi
5351 LIBS="$lt_save_LIBS"
5352 CFLAGS="$lt_save_CFLAGS"
5353 else
5354 echo "cannot find nm_test_func in $nlist" >&5
5355 fi
5356 else
5357 echo "cannot find nm_test_var in $nlist" >&5
5358 fi
5359 else
5360 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5361 fi
5362 else
5363 echo "$progname: failed program was:" >&5
5364 cat conftest.$ac_ext >&5
5365 fi
5366 rm -f conftest* conftst*
5367
5368 # Do not use the global_symbol_pipe unless it works.
5369 if test "$pipe_works" = yes; then
5370 break
5371 else
5372 lt_cv_sys_global_symbol_pipe=
5373 fi
5374done
5375
5376fi
5377
5378if test -z "$lt_cv_sys_global_symbol_pipe"; then
5379 lt_cv_sys_global_symbol_to_cdecl=
5380fi
5381if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
38d24731
RW
5382 echo "$as_me:$LINENO: result: failed" >&5
5383echo "${ECHO_T}failed" >&6
1cf3d07d 5384else
38d24731
RW
5385 echo "$as_me:$LINENO: result: ok" >&5
5386echo "${ECHO_T}ok" >&6
1cf3d07d
SE
5387fi
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
38d24731 5405# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1cf3d07d 5406if test "${enable_libtool_lock+set}" = set; then
38d24731 5407 enableval="$enable_libtool_lock"
1cf3d07d 5408
38d24731 5409fi;
1cf3d07d 5410test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6de9cd9a 5411
96b8a615
AJ
5412# Some flags need to be propagated to the compiler or linker for good
5413# libtool support.
5414case $host in
1cf3d07d 5415ia64-*-hpux*)
96b8a615 5416 # Find out which ABI we are using.
1cf3d07d 5417 echo 'int i;' > conftest.$ac_ext
96b8a615
AJ
5418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5419 (eval $ac_compile) 2>&5
6de9cd9a
DN
5420 ac_status=$?
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615 5422 (exit $ac_status); }; then
96b8a615 5423 case `/usr/bin/file conftest.$ac_objext` in
1cf3d07d
SE
5424 *ELF-32*)
5425 HPUX_IA64_MODE="32"
5426 ;;
5427 *ELF-64*)
5428 HPUX_IA64_MODE="64"
5429 ;;
96b8a615 5430 esac
96b8a615
AJ
5431 fi
5432 rm -rf conftest*
5433 ;;
1cf3d07d 5434*-*-irix6*)
96b8a615 5435 # Find out which ABI we are using.
38d24731 5436 echo '#line 5436 "configure"' > conftest.$ac_ext
96b8a615
AJ
5437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5438 (eval $ac_compile) 2>&5
6de9cd9a
DN
5439 ac_status=$?
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615 5441 (exit $ac_status); }; then
1cf3d07d
SE
5442 if test "$lt_cv_prog_gnu_ld" = yes; then
5443 case `/usr/bin/file conftest.$ac_objext` in
5444 *32-bit*)
5445 LD="${LD-ld} -melf32bsmip"
5446 ;;
5447 *N32*)
5448 LD="${LD-ld} -melf32bmipn32"
5449 ;;
5450 *64-bit*)
5451 LD="${LD-ld} -melf64bmip"
5452 ;;
5453 esac
5454 else
5455 case `/usr/bin/file conftest.$ac_objext` in
5456 *32-bit*)
5457 LD="${LD-ld} -32"
5458 ;;
5459 *N32*)
5460 LD="${LD-ld} -n32"
5461 ;;
5462 *64-bit*)
5463 LD="${LD-ld} -64"
5464 ;;
5465 esac
5466 fi
96b8a615
AJ
5467 fi
5468 rm -rf conftest*
5469 ;;
6de9cd9a 5470
1cf3d07d
SE
5471x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5472s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
96b8a615
AJ
5473 # Find out which ABI we are using.
5474 echo 'int i;' > conftest.$ac_ext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5476 (eval $ac_compile) 2>&5
6de9cd9a 5477 ac_status=$?
6de9cd9a 5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615 5479 (exit $ac_status); }; then
1cf3d07d
SE
5480 case `/usr/bin/file conftest.o` in
5481 *32-bit*)
5482 case $host in
5483 x86_64-*kfreebsd*-gnu)
5484 LD="${LD-ld} -m elf_i386_fbsd"
5485 ;;
5486 x86_64-*linux*)
5487 LD="${LD-ld} -m elf_i386"
5488 ;;
5489 ppc64-*linux*|powerpc64-*linux*)
5490 LD="${LD-ld} -m elf32ppclinux"
5491 ;;
5492 s390x-*linux*)
5493 LD="${LD-ld} -m elf_s390"
5494 ;;
5495 sparc64-*linux*)
5496 LD="${LD-ld} -m elf32_sparc"
5497 ;;
5498 esac
5499 ;;
5500 *64-bit*)
5501 case $host in
5502 x86_64-*kfreebsd*-gnu)
5503 LD="${LD-ld} -m elf_x86_64_fbsd"
5504 ;;
5505 x86_64-*linux*)
5506 LD="${LD-ld} -m elf_x86_64"
5507 ;;
5508 ppc*-*linux*|powerpc*-*linux*)
5509 LD="${LD-ld} -m elf64ppc"
5510 ;;
5511 s390*-*linux*|s390*-*tpf*)
5512 LD="${LD-ld} -m elf64_s390"
5513 ;;
5514 sparc*-*linux*)
5515 LD="${LD-ld} -m elf64_sparc"
5516 ;;
5517 esac
5518 ;;
96b8a615 5519 esac
6de9cd9a 5520 fi
96b8a615
AJ
5521 rm -rf conftest*
5522 ;;
6de9cd9a 5523
96b8a615
AJ
5524*-*-sco3.2v5*)
5525 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5526 SAVE_CFLAGS="$CFLAGS"
5527 CFLAGS="$CFLAGS -belf"
38d24731
RW
5528 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5529echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
96b8a615 5530if test "${lt_cv_cc_needs_belf+set}" = set; then
6de9cd9a
DN
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5532else
1cf3d07d 5533 ac_ext=c
96b8a615
AJ
5534ac_cpp='$CPP $CPPFLAGS'
5535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5537ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 5538
f02d008e
JD
5539 if test x$gcc_no_link = xyes; then
5540 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5541echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5542 { (exit 1); exit 1; }; }
5543fi
5544cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
5545/* confdefs.h. */
5546_ACEOF
5547cat confdefs.h >>conftest.$ac_ext
5548cat >>conftest.$ac_ext <<_ACEOF
5549/* end confdefs.h. */
6de9cd9a
DN
5550
5551int
5552main ()
5553{
96b8a615 5554
6de9cd9a
DN
5555 ;
5556 return 0;
5557}
5558_ACEOF
5559rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
5560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5561 (eval $ac_link) 2>conftest.er1
6de9cd9a
DN
5562 ac_status=$?
5563 grep -v '^ *+' conftest.er1 >conftest.err
5564 rm -f conftest.er1
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
5567 (exit $ac_status); } &&
5568 { ac_try='test -z "$ac_c_werror_flag"
5569 || test ! -s conftest.err'
5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571 (eval $ac_try) 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; } &&
5575 { ac_try='test -s conftest$ac_exeext'
5576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577 (eval $ac_try) 2>&5
5578 ac_status=$?
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; }; then
96b8a615 5581 lt_cv_cc_needs_belf=yes
6de9cd9a
DN
5582else
5583 echo "$as_me: failed program was:" >&5
5584sed 's/^/| /' conftest.$ac_ext >&5
5585
38d24731 5586lt_cv_cc_needs_belf=no
6de9cd9a 5587fi
38d24731 5588rm -f conftest.err conftest.$ac_objext \
6de9cd9a 5589 conftest$ac_exeext conftest.$ac_ext
96b8a615
AJ
5590 ac_ext=c
5591ac_cpp='$CPP $CPPFLAGS'
5592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5594ac_compiler_gnu=$ac_cv_c_compiler_gnu
5595
6de9cd9a 5596fi
38d24731
RW
5597echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5598echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
96b8a615
AJ
5599 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5600 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5601 CFLAGS="$SAVE_CFLAGS"
5602 fi
5603 ;;
1cf3d07d
SE
5604sparc*-*solaris*)
5605 # Find out which ABI we are using.
5606 echo 'int i;' > conftest.$ac_ext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608 (eval $ac_compile) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; then
5612 case `/usr/bin/file conftest.o` in
5613 *64-bit*)
5614 case $lt_cv_prog_gnu_ld in
5615 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5616 *) LD="${LD-ld} -64" ;;
5617 esac
5618 ;;
5619 esac
5620 fi
5621 rm -rf conftest*
5622 ;;
96b8a615
AJ
5623esac
5624
1cf3d07d 5625need_locks="$enable_libtool_lock"
96b8a615 5626
1cf3d07d
SE
5627ac_ext=c
5628ac_cpp='$CPP $CPPFLAGS'
5629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5631ac_compiler_gnu=$ac_cv_c_compiler_gnu
38d24731
RW
5632echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5633echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1cf3d07d
SE
5634# On Suns, sometimes $CPP names a directory.
5635if test -n "$CPP" && test -d "$CPP"; then
5636 CPP=
5637fi
5638if test -z "$CPP"; then
5639 if test "${ac_cv_prog_CPP+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5641else
5642 # Double quotes because CPP needs to be expanded
5643 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5644 do
5645 ac_preproc_ok=false
5646for ac_c_preproc_warn_flag in '' yes
5647do
5648 # Use a header file that comes with gcc, so configuring glibc
5649 # with a fresh cross-compiler works.
5650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5651 # <limits.h> exists even on freestanding compilers.
5652 # On the NeXT, cc -E runs the code through the compiler's parser,
5653 # not just through cpp. "Syntax error" is here to catch this case.
5654 cat >conftest.$ac_ext <<_ACEOF
5655/* confdefs.h. */
6de9cd9a 5656_ACEOF
1cf3d07d
SE
5657cat confdefs.h >>conftest.$ac_ext
5658cat >>conftest.$ac_ext <<_ACEOF
5659/* end confdefs.h. */
5660#ifdef __STDC__
5661# include <limits.h>
5662#else
5663# include <assert.h>
5664#endif
5665 Syntax error
5666_ACEOF
38d24731
RW
5667if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1cf3d07d
SE
5669 ac_status=$?
5670 grep -v '^ *+' conftest.er1 >conftest.err
5671 rm -f conftest.er1
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
5674 (exit $ac_status); } >/dev/null; then
5675 if test -s conftest.err; then
5676 ac_cpp_err=$ac_c_preproc_warn_flag
5677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5678 else
5679 ac_cpp_err=
5680 fi
5681else
5682 ac_cpp_err=yes
5683fi
5684if test -z "$ac_cpp_err"; then
1cf3d07d
SE
5685 :
5686else
5687 echo "$as_me: failed program was:" >&5
5688sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 5689
1cf3d07d
SE
5690 # Broken: fails on valid input.
5691continue
5692fi
5693rm -f conftest.err conftest.$ac_ext
96b8a615 5694
38d24731 5695 # OK, works on sane cases. Now check whether non-existent headers
1cf3d07d
SE
5696 # can be detected and how.
5697 cat >conftest.$ac_ext <<_ACEOF
5698/* confdefs.h. */
5699_ACEOF
5700cat confdefs.h >>conftest.$ac_ext
5701cat >>conftest.$ac_ext <<_ACEOF
5702/* end confdefs.h. */
5703#include <ac_nonexistent.h>
5704_ACEOF
38d24731
RW
5705if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1cf3d07d
SE
5707 ac_status=$?
5708 grep -v '^ *+' conftest.er1 >conftest.err
5709 rm -f conftest.er1
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
5712 (exit $ac_status); } >/dev/null; then
5713 if test -s conftest.err; then
5714 ac_cpp_err=$ac_c_preproc_warn_flag
5715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5716 else
5717 ac_cpp_err=
5718 fi
5719else
5720 ac_cpp_err=yes
5721fi
5722if test -z "$ac_cpp_err"; then
1cf3d07d
SE
5723 # Broken: success on invalid input.
5724continue
5725else
5726 echo "$as_me: failed program was:" >&5
5727sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 5728
1cf3d07d
SE
5729 # Passes both tests.
5730ac_preproc_ok=:
5731break
5732fi
5733rm -f conftest.err conftest.$ac_ext
6de9cd9a 5734
1cf3d07d
SE
5735done
5736# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5737rm -f conftest.err conftest.$ac_ext
5738if $ac_preproc_ok; then
5739 break
5740fi
6de9cd9a 5741
1cf3d07d
SE
5742 done
5743 ac_cv_prog_CPP=$CPP
96b8a615 5744
1cf3d07d
SE
5745fi
5746 CPP=$ac_cv_prog_CPP
96b8a615 5747else
1cf3d07d
SE
5748 ac_cv_prog_CPP=$CPP
5749fi
38d24731
RW
5750echo "$as_me:$LINENO: result: $CPP" >&5
5751echo "${ECHO_T}$CPP" >&6
1cf3d07d
SE
5752ac_preproc_ok=false
5753for ac_c_preproc_warn_flag in '' yes
96b8a615 5754do
1cf3d07d
SE
5755 # Use a header file that comes with gcc, so configuring glibc
5756 # with a fresh cross-compiler works.
5757 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5758 # <limits.h> exists even on freestanding compilers.
5759 # On the NeXT, cc -E runs the code through the compiler's parser,
5760 # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
5768# include <limits.h>
5769#else
5770# include <assert.h>
5771#endif
5772 Syntax error
5773_ACEOF
38d24731
RW
5774if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1cf3d07d
SE
5776 ac_status=$?
5777 grep -v '^ *+' conftest.er1 >conftest.err
5778 rm -f conftest.er1
5779 cat conftest.err >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
5781 (exit $ac_status); } >/dev/null; then
5782 if test -s conftest.err; then
5783 ac_cpp_err=$ac_c_preproc_warn_flag
5784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5785 else
5786 ac_cpp_err=
5787 fi
5788else
5789 ac_cpp_err=yes
5790fi
5791if test -z "$ac_cpp_err"; then
1cf3d07d 5792 :
96b8a615 5793else
1cf3d07d
SE
5794 echo "$as_me: failed program was:" >&5
5795sed 's/^/| /' conftest.$ac_ext >&5
96b8a615 5796
1cf3d07d
SE
5797 # Broken: fails on valid input.
5798continue
96b8a615 5799fi
1cf3d07d 5800rm -f conftest.err conftest.$ac_ext
96b8a615 5801
38d24731 5802 # OK, works on sane cases. Now check whether non-existent headers
1cf3d07d 5803 # can be detected and how.
6de9cd9a 5804 cat >conftest.$ac_ext <<_ACEOF
1cf3d07d 5805/* confdefs.h. */
6de9cd9a 5806_ACEOF
1cf3d07d
SE
5807cat confdefs.h >>conftest.$ac_ext
5808cat >>conftest.$ac_ext <<_ACEOF
5809/* end confdefs.h. */
5810#include <ac_nonexistent.h>
5811_ACEOF
38d24731
RW
5812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6de9cd9a
DN
5814 ac_status=$?
5815 grep -v '^ *+' conftest.er1 >conftest.err
5816 rm -f conftest.er1
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
5819 (exit $ac_status); } >/dev/null; then
5820 if test -s conftest.err; then
5821 ac_cpp_err=$ac_c_preproc_warn_flag
5822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5823 else
5824 ac_cpp_err=
5825 fi
5826else
5827 ac_cpp_err=yes
5828fi
5829if test -z "$ac_cpp_err"; then
1cf3d07d
SE
5830 # Broken: success on invalid input.
5831continue
6de9cd9a
DN
5832else
5833 echo "$as_me: failed program was:" >&5
5834sed 's/^/| /' conftest.$ac_ext >&5
5835
1cf3d07d
SE
5836 # Passes both tests.
5837ac_preproc_ok=:
5838break
6de9cd9a 5839fi
1cf3d07d 5840rm -f conftest.err conftest.$ac_ext
6de9cd9a 5841
1cf3d07d
SE
5842done
5843# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5844rm -f conftest.err conftest.$ac_ext
5845if $ac_preproc_ok; then
5846 :
5847else
5848 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5849See \`config.log' for more details." >&5
5850echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5851See \`config.log' for more details." >&2;}
5852 { (exit 1); exit 1; }; }
6de9cd9a 5853fi
1cf3d07d
SE
5854
5855ac_ext=c
5856ac_cpp='$CPP $CPPFLAGS'
5857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5859ac_compiler_gnu=$ac_cv_c_compiler_gnu
5860
5861
38d24731
RW
5862echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5863echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1cf3d07d 5864if test "${ac_cv_header_stdc+set}" = set; then
6de9cd9a
DN
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5866else
1cf3d07d
SE
5867 cat >conftest.$ac_ext <<_ACEOF
5868/* confdefs.h. */
5869_ACEOF
5870cat confdefs.h >>conftest.$ac_ext
5871cat >>conftest.$ac_ext <<_ACEOF
5872/* end confdefs.h. */
5873#include <stdlib.h>
5874#include <stdarg.h>
5875#include <string.h>
5876#include <float.h>
6de9cd9a 5877
1cf3d07d
SE
5878int
5879main ()
5880{
5881
5882 ;
5883 return 0;
5884}
6de9cd9a
DN
5885_ACEOF
5886rm -f conftest.$ac_objext
38d24731
RW
5887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5888 (eval $ac_compile) 2>conftest.er1
6de9cd9a
DN
5889 ac_status=$?
5890 grep -v '^ *+' conftest.er1 >conftest.err
5891 rm -f conftest.er1
5892 cat conftest.err >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
5894 (exit $ac_status); } &&
5895 { ac_try='test -z "$ac_c_werror_flag"
5896 || test ! -s conftest.err'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 (eval $ac_try) 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; } &&
5902 { ac_try='test -s conftest.$ac_objext'
5903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904 (eval $ac_try) 2>&5
5905 ac_status=$?
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; }; then
1cf3d07d 5908 ac_cv_header_stdc=yes
6de9cd9a
DN
5909else
5910 echo "$as_me: failed program was:" >&5
5911sed 's/^/| /' conftest.$ac_ext >&5
5912
38d24731 5913ac_cv_header_stdc=no
6de9cd9a 5914fi
38d24731 5915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5916
1cf3d07d
SE
5917if test $ac_cv_header_stdc = yes; then
5918 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5919 cat >conftest.$ac_ext <<_ACEOF
5920/* confdefs.h. */
5921_ACEOF
5922cat confdefs.h >>conftest.$ac_ext
5923cat >>conftest.$ac_ext <<_ACEOF
5924/* end confdefs.h. */
5925#include <string.h>
5926
5927_ACEOF
5928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5929 $EGREP "memchr" >/dev/null 2>&1; then
5930 :
96b8a615 5931else
1cf3d07d 5932 ac_cv_header_stdc=no
6de9cd9a 5933fi
1cf3d07d 5934rm -f conftest*
6de9cd9a 5935
1cf3d07d 5936fi
e87045f3 5937
1cf3d07d
SE
5938if test $ac_cv_header_stdc = yes; then
5939 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5940 cat >conftest.$ac_ext <<_ACEOF
5941/* confdefs.h. */
5942_ACEOF
5943cat confdefs.h >>conftest.$ac_ext
5944cat >>conftest.$ac_ext <<_ACEOF
5945/* end confdefs.h. */
5946#include <stdlib.h>
15e92535 5947
1cf3d07d
SE
5948_ACEOF
5949if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5950 $EGREP "free" >/dev/null 2>&1; then
5951 :
5952else
5953 ac_cv_header_stdc=no
5954fi
5955rm -f conftest*
15e92535 5956
1cf3d07d 5957fi
15e92535 5958
1cf3d07d
SE
5959if test $ac_cv_header_stdc = yes; then
5960 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5961 if test "$cross_compiling" = yes; then
5962 :
5963else
5964 cat >conftest.$ac_ext <<_ACEOF
5965/* confdefs.h. */
5966_ACEOF
5967cat confdefs.h >>conftest.$ac_ext
5968cat >>conftest.$ac_ext <<_ACEOF
5969/* end confdefs.h. */
5970#include <ctype.h>
5971#if ((' ' & 0x0FF) == 0x020)
5972# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5973# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5974#else
5975# define ISLOWER(c) \
5976 (('a' <= (c) && (c) <= 'i') \
5977 || ('j' <= (c) && (c) <= 'r') \
5978 || ('s' <= (c) && (c) <= 'z'))
5979# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5980#endif
15e92535 5981
1cf3d07d
SE
5982#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5983int
5984main ()
5985{
5986 int i;
5987 for (i = 0; i < 256; i++)
5988 if (XOR (islower (i), ISLOWER (i))
5989 || toupper (i) != TOUPPER (i))
38d24731
RW
5990 exit(2);
5991 exit (0);
1cf3d07d 5992}
15e92535 5993_ACEOF
1cf3d07d 5994rm -f conftest$ac_exeext
38d24731
RW
5995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5996 (eval $ac_link) 2>&5
15e92535
FXC
5997 ac_status=$?
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d 5999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38d24731
RW
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 (eval $ac_try) 2>&5
15e92535
FXC
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
1cf3d07d 6005 :
15e92535 6006else
1cf3d07d
SE
6007 echo "$as_me: program exited with status $ac_status" >&5
6008echo "$as_me: failed program was:" >&5
15e92535
FXC
6009sed 's/^/| /' conftest.$ac_ext >&5
6010
1cf3d07d
SE
6011( exit $ac_status )
6012ac_cv_header_stdc=no
6013fi
38d24731 6014rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
6015fi
6016fi
6017fi
38d24731
RW
6018echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6019echo "${ECHO_T}$ac_cv_header_stdc" >&6
1cf3d07d
SE
6020if test $ac_cv_header_stdc = yes; then
6021
6022cat >>confdefs.h <<\_ACEOF
6023#define STDC_HEADERS 1
6024_ACEOF
15e92535
FXC
6025
6026fi
15e92535 6027
1cf3d07d 6028# On IRIX 5.3, sys/types and inttypes.h are conflicting.
15e92535
FXC
6029
6030
9cdc381b 6031
9cdc381b 6032
1cf3d07d
SE
6033
6034
6035
6036
6037
6038for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6039 inttypes.h stdint.h unistd.h
6040do
6041as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38d24731
RW
6042echo "$as_me:$LINENO: checking for $ac_header" >&5
6043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6044if eval "test \"\${$as_ac_Header+set}\" = set"; then
9cdc381b
BD
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6046else
1cf3d07d 6047 cat >conftest.$ac_ext <<_ACEOF
9cdc381b
BD
6048/* confdefs.h. */
6049_ACEOF
6050cat confdefs.h >>conftest.$ac_ext
6051cat >>conftest.$ac_ext <<_ACEOF
6052/* end confdefs.h. */
1cf3d07d 6053$ac_includes_default
9cdc381b 6054
1cf3d07d 6055#include <$ac_header>
9cdc381b 6056_ACEOF
1cf3d07d 6057rm -f conftest.$ac_objext
38d24731
RW
6058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059 (eval $ac_compile) 2>conftest.er1
9cdc381b
BD
6060 ac_status=$?
6061 grep -v '^ *+' conftest.er1 >conftest.err
6062 rm -f conftest.er1
6063 cat conftest.err >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
6065 (exit $ac_status); } &&
6066 { ac_try='test -z "$ac_c_werror_flag"
6067 || test ! -s conftest.err'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069 (eval $ac_try) 2>&5
6070 ac_status=$?
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; } &&
6073 { ac_try='test -s conftest.$ac_objext'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 (eval $ac_try) 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
1cf3d07d 6079 eval "$as_ac_Header=yes"
9cdc381b
BD
6080else
6081 echo "$as_me: failed program was:" >&5
6082sed 's/^/| /' conftest.$ac_ext >&5
6083
38d24731 6084eval "$as_ac_Header=no"
9cdc381b 6085fi
38d24731 6086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 6087fi
38d24731
RW
6088echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6089echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1cf3d07d
SE
6090if test `eval echo '${'$as_ac_Header'}'` = yes; then
6091 cat >>confdefs.h <<_ACEOF
6092#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6093_ACEOF
6094
6095fi
6096
6097done
6098
6099
6100
6101for ac_header in dlfcn.h
6102do
6103as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38d24731
RW
6104echo "$as_me:$LINENO: checking for $ac_header" >&5
6105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6106if eval "test \"\${$as_ac_Header+set}\" = set"; then
1cf3d07d
SE
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6108else
6109 cat >conftest.$ac_ext <<_ACEOF
6110/* confdefs.h. */
6111_ACEOF
6112cat confdefs.h >>conftest.$ac_ext
6113cat >>conftest.$ac_ext <<_ACEOF
6114/* end confdefs.h. */
6115$ac_includes_default
6116
6117#include <$ac_header>
6118_ACEOF
6119rm -f conftest.$ac_objext
38d24731
RW
6120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121 (eval $ac_compile) 2>conftest.er1
9cdc381b
BD
6122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
6127 (exit $ac_status); } &&
6128 { ac_try='test -z "$ac_c_werror_flag"
6129 || test ! -s conftest.err'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 (eval $ac_try) 2>&5
6132 ac_status=$?
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; } &&
6135 { ac_try='test -s conftest.$ac_objext'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 (eval $ac_try) 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
1cf3d07d 6141 eval "$as_ac_Header=yes"
9cdc381b
BD
6142else
6143 echo "$as_me: failed program was:" >&5
6144sed 's/^/| /' conftest.$ac_ext >&5
6145
38d24731 6146eval "$as_ac_Header=no"
9cdc381b 6147fi
38d24731 6148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9cdc381b 6149fi
38d24731
RW
6150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6151echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1cf3d07d
SE
6152if test `eval echo '${'$as_ac_Header'}'` = yes; then
6153 cat >>confdefs.h <<_ACEOF
6154#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9cdc381b 6155_ACEOF
9cdc381b 6156
1cf3d07d
SE
6157fi
6158
6159done
6160
6161
6162
6163# This can be used to rebuild libtool when needed
6164LIBTOOL_DEPS="$ltmain"
6165
6166# Always use our own libtool.
6167LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193test -z "$LN_S" && LN_S="ln -s"
6194
6195
6196
6197
6198
9cdc381b 6199
1cf3d07d
SE
6200
6201
6202
6203
6204
6205
6206
6207
6208if test -n "${ZSH_VERSION+set}" ; then
6209 setopt NO_GLOB_SUBST
9cdc381b 6210fi
9cdc381b 6211
38d24731
RW
6212echo "$as_me:$LINENO: checking for objdir" >&5
6213echo $ECHO_N "checking for objdir... $ECHO_C" >&6
1cf3d07d
SE
6214if test "${lt_cv_objdir+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
9cdc381b 6216else
1cf3d07d
SE
6217 rm -f .libs 2>/dev/null
6218mkdir .libs 2>/dev/null
6219if test -d .libs; then
6220 lt_cv_objdir=.libs
6221else
6222 # MS-DOS does not allow filenames that begin with a dot.
6223 lt_cv_objdir=_libs
9cdc381b 6224fi
1cf3d07d 6225rmdir .libs 2>/dev/null
9cdc381b 6226fi
38d24731
RW
6227echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6228echo "${ECHO_T}$lt_cv_objdir" >&6
1cf3d07d
SE
6229objdir=$lt_cv_objdir
6230
6231
6232
6233
9cdc381b
BD
6234
6235cat >>confdefs.h <<_ACEOF
1cf3d07d 6236#define LT_OBJDIR "$lt_cv_objdir/"
9cdc381b
BD
6237_ACEOF
6238
1cf3d07d
SE
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255case $host_os in
6256aix3*)
6257 # AIX sometimes has problems with the GCC collect2 program. For some
6258 # reason, if we set the COLLECT_NAMES environment variable, the problems
6259 # vanish in a puff of smoke.
6260 if test "X${COLLECT_NAMES+set}" != Xset; then
6261 COLLECT_NAMES=
6262 export COLLECT_NAMES
6263 fi
6264 ;;
6265esac
6266
6267# Sed substitution that helps us do robust quoting. It backslashifies
6268# metacharacters that are still active within double-quoted strings.
6269sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6270
6271# Same as above, but do not quote variable references.
6272double_quote_subst='s/\(["`\\]\)/\\\1/g'
6273
6274# Sed substitution to delay expansion of an escaped shell variable in a
6275# double_quote_subst'ed string.
6276delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6277
6278# Sed substitution to delay expansion of an escaped single quote.
6279delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6280
6281# Sed substitution to avoid accidental globbing in evaled expressions
6282no_glob_subst='s/\*/\\\*/g'
6283
6284# Global variables:
6285ofile=libtool
6286can_build_shared=yes
6287
6288# All known linkers require a `.a' archive for static linking (except MSVC,
6289# which needs '.lib').
6290libext=a
6291
6292with_gnu_ld="$lt_cv_prog_gnu_ld"
6293
6294old_CC="$CC"
6295old_CFLAGS="$CFLAGS"
6296
6297# Set sane defaults for various variables
6298test -z "$CC" && CC=cc
6299test -z "$LTCC" && LTCC=$CC
6300test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6301test -z "$LD" && LD=ld
6302test -z "$ac_objext" && ac_objext=o
6303
6304for cc_temp in $compiler""; do
6305 case $cc_temp in
6306 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6307 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6308 \-*) ;;
6309 *) break;;
6310 esac
6311done
6312cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6313
6314
6315# Only perform the check for file, if the check method requires it
6316test -z "$MAGIC_CMD" && MAGIC_CMD=file
6317case $deplibs_check_method in
6318file_magic*)
6319 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
38d24731
RW
6320 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6321echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
1cf3d07d 6322if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9cdc381b
BD
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6324else
1cf3d07d
SE
6325 case $MAGIC_CMD in
6326[\\/*] | ?:[\\/]*)
6327 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6328 ;;
6329*)
6330 lt_save_MAGIC_CMD="$MAGIC_CMD"
6331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6332 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6333 for ac_dir in $ac_dummy; do
6334 IFS="$lt_save_ifs"
6335 test -z "$ac_dir" && ac_dir=.
6336 if test -f $ac_dir/${ac_tool_prefix}file; then
6337 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6338 if test -n "$file_magic_test_file"; then
6339 case $deplibs_check_method in
6340 "file_magic "*)
6341 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6343 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6344 $EGREP "$file_magic_regex" > /dev/null; then
6345 :
6346 else
6347 cat <<_LT_EOF 1>&2
9cdc381b 6348
1cf3d07d
SE
6349*** Warning: the command libtool uses to detect shared libraries,
6350*** $file_magic_cmd, produces output that libtool cannot recognize.
6351*** The result is that libtool may fail to recognize shared libraries
6352*** as such. This will affect the creation of libtool libraries that
6353*** depend on shared libraries, but programs linked with such libtool
6354*** libraries will work regardless of this problem. Nevertheless, you
6355*** may want to report the problem to your system manager and/or to
6356*** bug-libtool@gnu.org
6357
6358_LT_EOF
6359 fi ;;
6360 esac
6361 fi
6362 break
6363 fi
6364 done
6365 IFS="$lt_save_ifs"
6366 MAGIC_CMD="$lt_save_MAGIC_CMD"
6367 ;;
6368esac
6369fi
6370
6371MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6372if test -n "$MAGIC_CMD"; then
38d24731
RW
6373 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6374echo "${ECHO_T}$MAGIC_CMD" >&6
1cf3d07d 6375else
38d24731
RW
6376 echo "$as_me:$LINENO: result: no" >&5
6377echo "${ECHO_T}no" >&6
1cf3d07d
SE
6378fi
6379
6380
6381
6382
6383
6384if test -z "$lt_cv_path_MAGIC_CMD"; then
6385 if test -n "$ac_tool_prefix"; then
38d24731
RW
6386 echo "$as_me:$LINENO: checking for file" >&5
6387echo $ECHO_N "checking for file... $ECHO_C" >&6
1cf3d07d
SE
6388if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390else
6391 case $MAGIC_CMD in
6392[\\/*] | ?:[\\/]*)
6393 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6394 ;;
6395*)
6396 lt_save_MAGIC_CMD="$MAGIC_CMD"
6397 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6398 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6399 for ac_dir in $ac_dummy; do
6400 IFS="$lt_save_ifs"
6401 test -z "$ac_dir" && ac_dir=.
6402 if test -f $ac_dir/file; then
6403 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6404 if test -n "$file_magic_test_file"; then
6405 case $deplibs_check_method in
6406 "file_magic "*)
6407 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6408 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6409 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6410 $EGREP "$file_magic_regex" > /dev/null; then
6411 :
6412 else
6413 cat <<_LT_EOF 1>&2
6414
6415*** Warning: the command libtool uses to detect shared libraries,
6416*** $file_magic_cmd, produces output that libtool cannot recognize.
6417*** The result is that libtool may fail to recognize shared libraries
6418*** as such. This will affect the creation of libtool libraries that
6419*** depend on shared libraries, but programs linked with such libtool
6420*** libraries will work regardless of this problem. Nevertheless, you
6421*** may want to report the problem to your system manager and/or to
6422*** bug-libtool@gnu.org
6423
6424_LT_EOF
6425 fi ;;
6426 esac
6427 fi
6428 break
6429 fi
6430 done
6431 IFS="$lt_save_ifs"
6432 MAGIC_CMD="$lt_save_MAGIC_CMD"
6433 ;;
6434esac
6435fi
6436
6437MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6438if test -n "$MAGIC_CMD"; then
38d24731
RW
6439 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6440echo "${ECHO_T}$MAGIC_CMD" >&6
1cf3d07d 6441else
38d24731
RW
6442 echo "$as_me:$LINENO: result: no" >&5
6443echo "${ECHO_T}no" >&6
1cf3d07d
SE
6444fi
6445
6446
6447 else
6448 MAGIC_CMD=:
6449 fi
6450fi
6451
6452 fi
6453 ;;
6454esac
6455
6456# Use C for the default configuration in the libtool script
6457
6458lt_save_CC="$CC"
6459ac_ext=c
6460ac_cpp='$CPP $CPPFLAGS'
6461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6463ac_compiler_gnu=$ac_cv_c_compiler_gnu
6464
6465
6466# Source file extension for C test sources.
6467ac_ext=c
6468
6469# Object file extension for compiled C test sources.
6470objext=o
6471objext=$objext
6472
6473# Code to be used in simple compile tests
6474lt_simple_compile_test_code="int some_variable = 0;"
6475
6476# Code to be used in simple link tests
6477lt_simple_link_test_code='int main(){return(0);}'
6478
6479
6480
6481
6482
6483
6484
6485# If no C compiler was specified, use CC.
6486LTCC=${LTCC-"$CC"}
6487
6488# If no C compiler flags were specified, use CFLAGS.
6489LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6490
6491# Allow CC to be a program name with arguments.
6492compiler=$CC
6493
6494# Save the default compiler, since it gets overwritten when the other
6495# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6496compiler_DEFAULT=$CC
6497
6498# save warnings/boilerplate of simple test code
6499ac_outfile=conftest.$ac_objext
6500echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6501eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6502_lt_compiler_boilerplate=`cat conftest.err`
6503$RM conftest*
6504
6505ac_outfile=conftest.$ac_objext
6506echo "$lt_simple_link_test_code" >conftest.$ac_ext
6507eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6508_lt_linker_boilerplate=`cat conftest.err`
6509$RM conftest*
6510
6511
6512## CAVEAT EMPTOR:
6513## There is no encapsulation within the following macros, do not change
6514## the running order or otherwise move them around unless you know exactly
6515## what you are doing...
6516if test -n "$compiler"; then
6517
6518lt_prog_compiler_no_builtin_flag=
6519
6520if test "$GCC" = yes; then
6521 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6522
38d24731
RW
6523 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6524echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
1cf3d07d
SE
6525if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6527else
6528 lt_cv_prog_compiler_rtti_exceptions=no
6529 ac_outfile=conftest.$ac_objext
6530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6531 lt_compiler_flag="-fno-rtti -fno-exceptions"
6532 # Insert the option either (1) after the last *FLAGS variable, or
6533 # (2) before a word containing "conftest.", or (3) at the end.
6534 # Note that $ac_compile itself does not contain backslashes and begins
6535 # with a dollar sign (not a hyphen), so the echo should work correctly.
6536 # The option is referenced via a variable to avoid confusing sed.
6537 lt_compile=`echo "$ac_compile" | $SED \
6538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6540 -e 's:$: $lt_compiler_flag:'`
38d24731 6541 (eval echo "\"\$as_me:6541: $lt_compile\"" >&5)
1cf3d07d
SE
6542 (eval "$lt_compile" 2>conftest.err)
6543 ac_status=$?
6544 cat conftest.err >&5
38d24731 6545 echo "$as_me:6545: \$? = $ac_status" >&5
1cf3d07d
SE
6546 if (exit $ac_status) && test -s "$ac_outfile"; then
6547 # The compiler can only warn and ignore the option if not recognized
6548 # So say no if there are warnings other than the usual output.
6549 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6551 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6552 lt_cv_prog_compiler_rtti_exceptions=yes
6553 fi
6554 fi
6555 $RM conftest*
6556
6557fi
38d24731
RW
6558echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6559echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
1cf3d07d
SE
6560
6561if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6562 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6563else
6564 :
6565fi
6566
6567fi
6568
6569
6570
6571
6572
6573
6574 lt_prog_compiler_wl=
6575lt_prog_compiler_pic=
6576lt_prog_compiler_static=
6577
38d24731
RW
6578echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6579echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
1cf3d07d
SE
6580
6581 if test "$GCC" = yes; then
6582 lt_prog_compiler_wl='-Wl,'
6583 lt_prog_compiler_static='-static'
6584
6585 case $host_os in
6586 aix*)
6587 # All AIX code is PIC.
6588 if test "$host_cpu" = ia64; then
6589 # AIX 5 now supports IA64 processor
6590 lt_prog_compiler_static='-Bstatic'
6591 fi
6592 ;;
6593
6594 amigaos*)
6595 if test "$host_cpu" = m68k; then
6596 # FIXME: we need at least 68020 code to build shared libraries, but
6597 # adding the `-m68020' flag to GCC prevents building anything better,
6598 # like `-m68040'.
6599 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6600 fi
6601 ;;
6602
6603 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6604 # PIC is the default for these OSes.
6605 ;;
6606
6607 mingw* | cygwin* | pw32* | os2*)
6608 # This hack is so that the source file can tell whether it is being
6609 # built for inclusion in a dll (and should export symbols for example).
6610 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6611 # (--disable-auto-import) libraries
6612 lt_prog_compiler_pic='-DDLL_EXPORT'
6613 ;;
6614
6615 darwin* | rhapsody*)
6616 # PIC is the default on this platform
6617 # Common symbols not allowed in MH_DYLIB files
6618 lt_prog_compiler_pic='-fno-common'
6619 ;;
6620
6621 hpux*)
6622 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6623 # not for PA HP-UX.
6624 case $host_cpu in
6625 hppa*64*|ia64*)
6626 # +Z the default
6627 ;;
6628 *)
6629 lt_prog_compiler_pic='-fPIC'
6630 ;;
6631 esac
6632 ;;
6633
6634 interix[3-9]*)
6635 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6636 # Instead, we relocate shared libraries at runtime.
6637 ;;
6638
6639 msdosdjgpp*)
6640 # Just because we use GCC doesn't mean we suddenly get shared libraries
6641 # on systems that don't support them.
6642 lt_prog_compiler_can_build_shared=no
6643 enable_shared=no
6644 ;;
6645
6646 *nto* | *qnx*)
6647 # QNX uses GNU C++, but need to define -shared option too, otherwise
6648 # it will coredump.
6649 lt_prog_compiler_pic='-fPIC -shared'
6650 ;;
6651
6652 sysv4*MP*)
6653 if test -d /usr/nec; then
6654 lt_prog_compiler_pic=-Kconform_pic
6655 fi
6656 ;;
6657
6658 *)
6659 lt_prog_compiler_pic='-fPIC'
6660 ;;
6661 esac
6662 else
6663 # PORTME Check for flag to pass linker flags through the system compiler.
6664 case $host_os in
6665 aix*)
6666 lt_prog_compiler_wl='-Wl,'
6667 if test "$host_cpu" = ia64; then
6668 # AIX 5 now supports IA64 processor
6669 lt_prog_compiler_static='-Bstatic'
6670 else
6671 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6672 fi
6673 ;;
6674 darwin*)
6675 # PIC is the default on this platform
6676 # Common symbols not allowed in MH_DYLIB files
6677 case $cc_basename in
6678 xlc*)
6679 lt_prog_compiler_pic='-qnocommon'
6680 lt_prog_compiler_wl='-Wl,'
6681 ;;
6682 esac
6683 ;;
6684
6685 mingw* | cygwin* | pw32* | os2*)
6686 # This hack is so that the source file can tell whether it is being
6687 # built for inclusion in a dll (and should export symbols for example).
6688 lt_prog_compiler_pic='-DDLL_EXPORT'
6689 ;;
6690
6691 hpux9* | hpux10* | hpux11*)
6692 lt_prog_compiler_wl='-Wl,'
6693 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6694 # not for PA HP-UX.
6695 case $host_cpu in
6696 hppa*64*|ia64*)
6697 # +Z the default
6698 ;;
6699 *)
6700 lt_prog_compiler_pic='+Z'
6701 ;;
6702 esac
6703 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6704 lt_prog_compiler_static='${wl}-a ${wl}archive'
6705 ;;
6706
6707 irix5* | irix6* | nonstopux*)
6708 lt_prog_compiler_wl='-Wl,'
6709 # PIC (with -KPIC) is the default.
6710 lt_prog_compiler_static='-non_shared'
6711 ;;
6712
6713 linux* | k*bsd*-gnu)
6714 case $cc_basename in
6715 icc* | ecc*)
6716 lt_prog_compiler_wl='-Wl,'
6717 lt_prog_compiler_pic='-KPIC'
6718 lt_prog_compiler_static='-static'
6719 ;;
6720 pgcc* | pgf77* | pgf90* | pgf95*)
6721 # Portland Group compilers (*not* the Pentium gcc compiler,
6722 # which looks to be a dead project)
6723 lt_prog_compiler_wl='-Wl,'
6724 lt_prog_compiler_pic='-fpic'
6725 lt_prog_compiler_static='-Bstatic'
6726 ;;
6727 ccc*)
6728 lt_prog_compiler_wl='-Wl,'
6729 # All Alpha code is PIC.
6730 lt_prog_compiler_static='-non_shared'
6731 ;;
6732 *)
6733 case `$CC -V 2>&1 | sed 5q` in
6734 *Sun\ C*)
6735 # Sun C 5.9
6736 lt_prog_compiler_pic='-KPIC'
6737 lt_prog_compiler_static='-Bstatic'
6738 lt_prog_compiler_wl='-Wl,'
6739 ;;
6740 *Sun\ F*)
6741 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6742 lt_prog_compiler_pic='-KPIC'
6743 lt_prog_compiler_static='-Bstatic'
6744 lt_prog_compiler_wl=''
6745 ;;
6746 esac
6747 ;;
6748 esac
6749 ;;
6750
6751 newsos6)
6752 lt_prog_compiler_pic='-KPIC'
6753 lt_prog_compiler_static='-Bstatic'
6754 ;;
6755
6756 *nto* | *qnx*)
6757 # QNX uses GNU C++, but need to define -shared option too, otherwise
6758 # it will coredump.
6759 lt_prog_compiler_pic='-fPIC -shared'
6760 ;;
6761
6762 osf3* | osf4* | osf5*)
6763 lt_prog_compiler_wl='-Wl,'
6764 # All OSF/1 code is PIC.
6765 lt_prog_compiler_static='-non_shared'
6766 ;;
6767
6768 rdos*)
6769 lt_prog_compiler_static='-non_shared'
6770 ;;
6771
6772 solaris*)
6773 lt_prog_compiler_pic='-KPIC'
6774 lt_prog_compiler_static='-Bstatic'
6775 case $cc_basename in
6776 f77* | f90* | f95*)
6777 lt_prog_compiler_wl='-Qoption ld ';;
6778 *)
6779 lt_prog_compiler_wl='-Wl,';;
6780 esac
6781 ;;
6782
6783 sunos4*)
6784 lt_prog_compiler_wl='-Qoption ld '
6785 lt_prog_compiler_pic='-PIC'
6786 lt_prog_compiler_static='-Bstatic'
6787 ;;
6788
6789 sysv4 | sysv4.2uw2* | sysv4.3*)
6790 lt_prog_compiler_wl='-Wl,'
6791 lt_prog_compiler_pic='-KPIC'
6792 lt_prog_compiler_static='-Bstatic'
6793 ;;
6794
6795 sysv4*MP*)
6796 if test -d /usr/nec ;then
6797 lt_prog_compiler_pic='-Kconform_pic'
6798 lt_prog_compiler_static='-Bstatic'
6799 fi
6800 ;;
6801
6802 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6803 lt_prog_compiler_wl='-Wl,'
6804 lt_prog_compiler_pic='-KPIC'
6805 lt_prog_compiler_static='-Bstatic'
6806 ;;
6807
6808 unicos*)
6809 lt_prog_compiler_wl='-Wl,'
6810 lt_prog_compiler_can_build_shared=no
6811 ;;
6812
6813 uts4*)
6814 lt_prog_compiler_pic='-pic'
6815 lt_prog_compiler_static='-Bstatic'
6816 ;;
6817
6818 *)
6819 lt_prog_compiler_can_build_shared=no
6820 ;;
6821 esac
6822 fi
6823
6824case $host_os in
6825 # For platforms which do not support PIC, -DPIC is meaningless:
6826 *djgpp*)
6827 lt_prog_compiler_pic=
6828 ;;
6829 *)
6830 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6831 ;;
6832esac
38d24731
RW
6833echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6834echo "${ECHO_T}$lt_prog_compiler_pic" >&6
1cf3d07d
SE
6835
6836
6837
6838
6839
6840
6841#
6842# Check to make sure the PIC flag actually works.
6843#
6844if test -n "$lt_prog_compiler_pic"; then
38d24731
RW
6845 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6846echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
1cf3d07d
SE
6847if test "${lt_prog_compiler_pic_works+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6849else
6850 lt_prog_compiler_pic_works=no
6851 ac_outfile=conftest.$ac_objext
6852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6853 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
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 # The option is referenced via a variable to avoid confusing sed.
6859 lt_compile=`echo "$ac_compile" | $SED \
6860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6862 -e 's:$: $lt_compiler_flag:'`
38d24731 6863 (eval echo "\"\$as_me:6863: $lt_compile\"" >&5)
1cf3d07d
SE
6864 (eval "$lt_compile" 2>conftest.err)
6865 ac_status=$?
6866 cat conftest.err >&5
38d24731 6867 echo "$as_me:6867: \$? = $ac_status" >&5
1cf3d07d
SE
6868 if (exit $ac_status) && test -s "$ac_outfile"; then
6869 # The compiler can only warn and ignore the option if not recognized
6870 # So say no if there are warnings other than the usual output.
6871 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6873 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6874 lt_prog_compiler_pic_works=yes
6875 fi
6876 fi
6877 $RM conftest*
6878
6879fi
38d24731
RW
6880echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6881echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
1cf3d07d
SE
6882
6883if test x"$lt_prog_compiler_pic_works" = xyes; then
6884 case $lt_prog_compiler_pic in
6885 "" | " "*) ;;
6886 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6887 esac
6888else
6889 lt_prog_compiler_pic=
6890 lt_prog_compiler_can_build_shared=no
6891fi
6892
6893fi
6894
6895
6896
6897
6898
6899
6900#
6901# Check to make sure the static flag actually works.
6902#
6903wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
38d24731
RW
6904echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6905echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
1cf3d07d
SE
6906if test "${lt_prog_compiler_static_works+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6908else
6909 lt_prog_compiler_static_works=no
6910 save_LDFLAGS="$LDFLAGS"
6911 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6912 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6913 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6914 # The linker can only warn and ignore the option if not recognized
6915 # So say no if there are warnings
6916 if test -s conftest.err; then
6917 # Append any errors to the config.log.
6918 cat conftest.err 1>&5
6919 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6920 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6921 if diff conftest.exp conftest.er2 >/dev/null; then
6922 lt_prog_compiler_static_works=yes
6923 fi
6924 else
6925 lt_prog_compiler_static_works=yes
6926 fi
6927 fi
6928 $RM conftest*
6929 LDFLAGS="$save_LDFLAGS"
6930
6931fi
38d24731
RW
6932echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6933echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
1cf3d07d
SE
6934
6935if test x"$lt_prog_compiler_static_works" = xyes; then
6936 :
6937else
6938 lt_prog_compiler_static=
6939fi
6940
6941
6942
6943
6944
6945
6946
38d24731
RW
6947 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6948echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
1cf3d07d
SE
6949if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6951else
6952 lt_cv_prog_compiler_c_o=no
6953 $RM -r conftest 2>/dev/null
6954 mkdir conftest
6955 cd conftest
6956 mkdir out
6957 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6958
6959 lt_compiler_flag="-o out/conftest2.$ac_objext"
6960 # Insert the option either (1) after the last *FLAGS variable, or
6961 # (2) before a word containing "conftest.", or (3) at the end.
6962 # Note that $ac_compile itself does not contain backslashes and begins
6963 # with a dollar sign (not a hyphen), so the echo should work correctly.
6964 lt_compile=`echo "$ac_compile" | $SED \
6965 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6967 -e 's:$: $lt_compiler_flag:'`
38d24731 6968 (eval echo "\"\$as_me:6968: $lt_compile\"" >&5)
1cf3d07d
SE
6969 (eval "$lt_compile" 2>out/conftest.err)
6970 ac_status=$?
6971 cat out/conftest.err >&5
38d24731 6972 echo "$as_me:6972: \$? = $ac_status" >&5
1cf3d07d
SE
6973 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6974 then
6975 # The compiler can only warn and ignore the option if not recognized
6976 # So say no if there are warnings
6977 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6978 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6979 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6980 lt_cv_prog_compiler_c_o=yes
6981 fi
6982 fi
6983 chmod u+w . 2>&5
6984 $RM conftest*
6985 # SGI C++ compiler will create directory out/ii_files/ for
6986 # template instantiation
6987 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6988 $RM out/* && rmdir out
6989 cd ..
6990 $RM -r conftest
6991 $RM conftest*
6992
6993fi
38d24731
RW
6994echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6995echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1cf3d07d
SE
6996
6997
6998
6999
7000
7001
38d24731
RW
7002 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7003echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
1cf3d07d
SE
7004if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7006else
7007 lt_cv_prog_compiler_c_o=no
7008 $RM -r conftest 2>/dev/null
7009 mkdir conftest
7010 cd conftest
7011 mkdir out
7012 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7013
7014 lt_compiler_flag="-o out/conftest2.$ac_objext"
7015 # Insert the option either (1) after the last *FLAGS variable, or
7016 # (2) before a word containing "conftest.", or (3) at the end.
7017 # Note that $ac_compile itself does not contain backslashes and begins
7018 # with a dollar sign (not a hyphen), so the echo should work correctly.
7019 lt_compile=`echo "$ac_compile" | $SED \
7020 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7021 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7022 -e 's:$: $lt_compiler_flag:'`
38d24731 7023 (eval echo "\"\$as_me:7023: $lt_compile\"" >&5)
1cf3d07d
SE
7024 (eval "$lt_compile" 2>out/conftest.err)
7025 ac_status=$?
7026 cat out/conftest.err >&5
38d24731 7027 echo "$as_me:7027: \$? = $ac_status" >&5
1cf3d07d
SE
7028 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7029 then
7030 # The compiler can only warn and ignore the option if not recognized
7031 # So say no if there are warnings
7032 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7033 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7034 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7035 lt_cv_prog_compiler_c_o=yes
7036 fi
7037 fi
7038 chmod u+w . 2>&5
7039 $RM conftest*
7040 # SGI C++ compiler will create directory out/ii_files/ for
7041 # template instantiation
7042 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7043 $RM out/* && rmdir out
7044 cd ..
7045 $RM -r conftest
7046 $RM conftest*
7047
7048fi
38d24731
RW
7049echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7050echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1cf3d07d
SE
7051
7052
7053
7054
7055hard_links="nottested"
7056if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7057 # do not overwrite the value of need_locks provided by the user
38d24731
RW
7058 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7059echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
1cf3d07d
SE
7060 hard_links=yes
7061 $RM conftest*
7062 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7063 touch conftest.a
7064 ln conftest.a conftest.b 2>&5 || hard_links=no
7065 ln conftest.a conftest.b 2>/dev/null && hard_links=no
38d24731
RW
7066 echo "$as_me:$LINENO: result: $hard_links" >&5
7067echo "${ECHO_T}$hard_links" >&6
1cf3d07d
SE
7068 if test "$hard_links" = no; then
7069 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7070echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7071 need_locks=warn
7072 fi
7073else
7074 need_locks=no
7075fi
7076
7077
7078
7079
7080
7081
38d24731
RW
7082 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7083echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1cf3d07d
SE
7084
7085 runpath_var=
7086 allow_undefined_flag=
7087 always_export_symbols=no
7088 archive_cmds=
7089 archive_expsym_cmds=
7090 compiler_needs_object=no
7091 enable_shared_with_static_runtimes=no
7092 export_dynamic_flag_spec=
7093 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7094 hardcode_automatic=no
7095 hardcode_direct=no
7096 hardcode_direct_absolute=no
7097 hardcode_libdir_flag_spec=
7098 hardcode_libdir_flag_spec_ld=
7099 hardcode_libdir_separator=
7100 hardcode_minus_L=no
7101 hardcode_shlibpath_var=unsupported
7102 inherit_rpath=no
7103 link_all_deplibs=unknown
7104 module_cmds=
7105 module_expsym_cmds=
7106 old_archive_from_new_cmds=
7107 old_archive_from_expsyms_cmds=
7108 thread_safe_flag_spec=
7109 whole_archive_flag_spec=
7110 # include_expsyms should be a list of space-separated symbols to be *always*
7111 # included in the symbol list
7112 include_expsyms=
7113 # exclude_expsyms can be an extended regexp of symbols to exclude
7114 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7115 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7116 # as well as any symbol that contains `d'.
7117 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7118 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7119 # platforms (ab)use it in PIC code, but their linkers get confused if
7120 # the symbol is explicitly referenced. Since portable code cannot
7121 # rely on this symbol name, it's probably fine to never include it in
7122 # preloaded symbol tables.
7123 extract_expsyms_cmds=
7124
7125 case $host_os in
7126 cygwin* | mingw* | pw32*)
7127 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7128 # When not using gcc, we currently assume that we are using
7129 # Microsoft Visual C++.
7130 if test "$GCC" != yes; then
7131 with_gnu_ld=no
7132 fi
7133 ;;
7134 interix*)
7135 # we just hope/assume this is gcc and not c89 (= MSVC++)
7136 with_gnu_ld=yes
7137 ;;
7138 openbsd*)
7139 with_gnu_ld=no
7140 ;;
7141 esac
7142
7143 ld_shlibs=yes
7144 if test "$with_gnu_ld" = yes; then
7145 # If archive_cmds runs LD, not CC, wlarc should be empty
7146 wlarc='${wl}'
7147
7148 # Set some defaults for GNU ld with shared library support. These
7149 # are reset later if shared libraries are not supported. Putting them
7150 # here allows them to be overridden if necessary.
7151 runpath_var=LD_RUN_PATH
7152 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7153 export_dynamic_flag_spec='${wl}--export-dynamic'
7154 # ancient GNU ld didn't support --whole-archive et. al.
7155 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7156 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7157 else
7158 whole_archive_flag_spec=
7159 fi
7160 supports_anon_versioning=no
7161 case `$LD -v 2>&1` in
7162 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7163 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7164 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7165 *\ 2.11.*) ;; # other 2.11 versions
7166 *) supports_anon_versioning=yes ;;
7167 esac
7168
7169 # See if GNU ld supports shared libraries.
7170 case $host_os in
4f6bebc3 7171 aix[3-9]*)
1cf3d07d
SE
7172 # On AIX/PPC, the GNU linker is very broken
7173 if test "$host_cpu" != ia64; then
7174 ld_shlibs=no
7175 cat <<_LT_EOF 1>&2
7176
7177*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7178*** to be unable to reliably create shared libraries on AIX.
7179*** Therefore, libtool is disabling shared libraries support. If you
7180*** really care for shared libraries, you may want to modify your PATH
7181*** so that a non-GNU linker is found, and then restart.
7182
7183_LT_EOF
7184 fi
7185 ;;
7186
7187 amigaos*)
7188 if test "$host_cpu" = m68k; then
7189 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)'
7190 hardcode_libdir_flag_spec='-L$libdir'
7191 hardcode_minus_L=yes
7192 fi
7193
7194 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7195 # that the semantics of dynamic libraries on AmigaOS, at least up
7196 # to version 4, is to share data among multiple programs linked
7197 # with the same dynamic library. Since this doesn't match the
7198 # behavior of shared libraries on other platforms, we can't use
7199 # them.
7200 ld_shlibs=no
7201 ;;
7202
7203 beos*)
7204 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7205 allow_undefined_flag=unsupported
7206 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7207 # support --undefined. This deserves some investigation. FIXME
7208 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7209 else
7210 ld_shlibs=no
7211 fi
7212 ;;
7213
7214 cygwin* | mingw* | pw32*)
7215 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7216 # as there is no search path for DLLs.
7217 hardcode_libdir_flag_spec='-L$libdir'
7218 allow_undefined_flag=unsupported
7219 always_export_symbols=no
7220 enable_shared_with_static_runtimes=yes
7221 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7222
7223 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7225 # If the export-symbols file already is a .def file (1st line
7226 # is EXPORTS), use it as is; otherwise, prepend...
7227 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7228 cp $export_symbols $output_objdir/$soname.def;
7229 else
7230 echo EXPORTS > $output_objdir/$soname.def;
7231 cat $export_symbols >> $output_objdir/$soname.def;
7232 fi~
7233 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7234 else
7235 ld_shlibs=no
7236 fi
7237 ;;
7238
7239 interix[3-9]*)
7240 hardcode_direct=no
7241 hardcode_shlibpath_var=no
7242 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7243 export_dynamic_flag_spec='${wl}-E'
7244 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7245 # Instead, shared libraries are loaded at an image base (0x10000000 by
7246 # default) and relocated if they conflict, which is a slow very memory
7247 # consuming and fragmenting process. To avoid this, we pick a random,
7248 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7249 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7250 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7251 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'
7252 ;;
7253
7254 gnu* | linux* | tpf* | k*bsd*-gnu)
7255 tmp_diet=no
7256 if test "$host_os" = linux-dietlibc; then
7257 case $cc_basename in
7258 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7259 esac
7260 fi
7261 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7262 && test "$tmp_diet" = no
7263 then
7264 tmp_addflag=
7265 case $cc_basename,$host_cpu in
7266 pgcc*) # Portland Group C compiler
7267 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'
7268 tmp_addflag=' $pic_flag'
7269 ;;
7270 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7271 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'
7272 tmp_addflag=' $pic_flag -Mnomain' ;;
7273 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7274 tmp_addflag=' -i_dynamic' ;;
7275 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7276 tmp_addflag=' -i_dynamic -nofor_main' ;;
7277 ifc* | ifort*) # Intel Fortran compiler
7278 tmp_addflag=' -nofor_main' ;;
7279 esac
7280 case `$CC -V 2>&1 | sed 5q` in
7281 *Sun\ C*) # Sun C 5.9
7282 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'
7283 compiler_needs_object=yes
7284 tmp_sharedflag='-G' ;;
7285 *Sun\ F*) # Sun Fortran 8.3
7286 tmp_sharedflag='-G' ;;
7287 *)
7288 tmp_sharedflag='-shared' ;;
7289 esac
7290 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7291
7292 if test "x$supports_anon_versioning" = xyes; then
7293 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7294 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7295 echo "local: *; };" >> $output_objdir/$libname.ver~
7296 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7297 fi
7298 else
7299 ld_shlibs=no
7300 fi
7301 ;;
7302
7303 netbsd*)
7304 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7305 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7306 wlarc=
7307 else
7308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7309 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7310 fi
7311 ;;
7312
7313 solaris*)
7314 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7315 ld_shlibs=no
7316 cat <<_LT_EOF 1>&2
7317
7318*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7319*** create shared libraries on Solaris systems. Therefore, libtool
7320*** is disabling shared libraries support. We urge you to upgrade GNU
7321*** binutils to release 2.9.1 or newer. Another option is to modify
7322*** your PATH or compiler configuration so that the native linker is
7323*** used, and then restart.
7324
7325_LT_EOF
7326 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7328 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7329 else
7330 ld_shlibs=no
7331 fi
7332 ;;
7333
7334 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7335 case `$LD -v 2>&1` in
7336 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7337 ld_shlibs=no
7338 cat <<_LT_EOF 1>&2
7339
7340*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7341*** reliably create shared libraries on SCO systems. Therefore, libtool
7342*** is disabling shared libraries support. We urge you to upgrade GNU
7343*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7344*** your PATH or compiler configuration so that the native linker is
7345*** used, and then restart.
7346
7347_LT_EOF
7348 ;;
7349 *)
7350 # For security reasons, it is highly recommended that you always
7351 # use absolute paths for naming shared libraries, and exclude the
7352 # DT_RUNPATH tag from executables and libraries. But doing so
7353 # requires that you compile everything twice, which is a pain.
7354 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7355 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7357 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7358 else
7359 ld_shlibs=no
7360 fi
7361 ;;
7362 esac
7363 ;;
7364
7365 sunos4*)
7366 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7367 wlarc=
7368 hardcode_direct=yes
7369 hardcode_shlibpath_var=no
7370 ;;
7371
7372 *)
7373 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7374 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7375 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7376 else
7377 ld_shlibs=no
7378 fi
7379 ;;
7380 esac
7381
7382 if test "$ld_shlibs" = no; then
7383 runpath_var=
7384 hardcode_libdir_flag_spec=
7385 export_dynamic_flag_spec=
7386 whole_archive_flag_spec=
7387 fi
7388 else
7389 # PORTME fill in a description of your system's linker (not GNU ld)
7390 case $host_os in
7391 aix3*)
7392 allow_undefined_flag=unsupported
7393 always_export_symbols=yes
7394 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'
7395 # Note: this linker hardcodes the directories in LIBPATH if there
7396 # are no directories specified by -L.
7397 hardcode_minus_L=yes
7398 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7399 # Neither direct hardcoding nor static linking is supported with a
7400 # broken collect2.
7401 hardcode_direct=unsupported
7402 fi
7403 ;;
7404
4f6bebc3 7405 aix[4-9]*)
1cf3d07d
SE
7406 if test "$host_cpu" = ia64; then
7407 # On IA64, the linker does run time linking by default, so we don't
7408 # have to do anything special.
7409 aix_use_runtimelinking=no
7410 exp_sym_flag='-Bexport'
7411 no_entry_flag=""
7412 else
7413 # If we're using GNU nm, then we don't want the "-C" option.
7414 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7415 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7416 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'
7417 else
7418 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'
7419 fi
7420 aix_use_runtimelinking=no
7421
7422 # Test if we are trying to use run time linking or normal
7423 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7424 # need to do runtime linking.
4f6bebc3 7425 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
7426 for ld_flag in $LDFLAGS; do
7427 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7428 aix_use_runtimelinking=yes
7429 break
7430 fi
7431 done
7432 ;;
7433 esac
7434
7435 exp_sym_flag='-bexport'
7436 no_entry_flag='-bnoentry'
7437 fi
7438
7439 # When large executables or shared objects are built, AIX ld can
7440 # have problems creating the table of contents. If linking a library
7441 # or program results in "error TOC overflow" add -mminimal-toc to
7442 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7443 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7444
7445 archive_cmds=''
7446 hardcode_direct=yes
7447 hardcode_direct_absolute=yes
7448 hardcode_libdir_separator=':'
7449 link_all_deplibs=yes
7450 file_list_spec='${wl}-f,'
7451
7452 if test "$GCC" = yes; then
7453 case $host_os in aix4.[012]|aix4.[012].*)
7454 # We only want to do this on AIX 4.2 and lower, the check
7455 # below for broken collect2 doesn't work under 4.3+
7456 collect2name=`${CC} -print-prog-name=collect2`
7457 if test -f "$collect2name" &&
7458 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7459 then
7460 # We have reworked collect2
7461 :
7462 else
7463 # We have old collect2
7464 hardcode_direct=unsupported
7465 # It fails to find uninstalled libraries when the uninstalled
7466 # path is not listed in the libpath. Setting hardcode_minus_L
7467 # to unsupported forces relinking
7468 hardcode_minus_L=yes
7469 hardcode_libdir_flag_spec='-L$libdir'
7470 hardcode_libdir_separator=
7471 fi
7472 ;;
7473 esac
7474 shared_flag='-shared'
7475 if test "$aix_use_runtimelinking" = yes; then
7476 shared_flag="$shared_flag "'${wl}-G'
7477 fi
7478 else
7479 # not using gcc
7480 if test "$host_cpu" = ia64; then
7481 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7482 # chokes on -Wl,-G. The following line is correct:
7483 shared_flag='-G'
7484 else
7485 if test "$aix_use_runtimelinking" = yes; then
7486 shared_flag='${wl}-G'
7487 else
7488 shared_flag='${wl}-bM:SRE'
7489 fi
7490 fi
7491 fi
7492
7493 # It seems that -bexpall does not export symbols beginning with
7494 # underscore (_), so it is better to generate a list of symbols to export.
7495 always_export_symbols=yes
7496 if test "$aix_use_runtimelinking" = yes; then
7497 # Warning - without using the other runtime loading flags (-brtl),
7498 # -berok will link without error, but may produce a broken library.
7499 allow_undefined_flag='-berok'
7500 # Determine the default libpath from the value encoded in an
7501 # empty executable.
7502 if test x$gcc_no_link = xyes; then
7503 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7504echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7505 { (exit 1); exit 1; }; }
7506fi
7507cat >conftest.$ac_ext <<_ACEOF
7508/* confdefs.h. */
7509_ACEOF
7510cat confdefs.h >>conftest.$ac_ext
7511cat >>conftest.$ac_ext <<_ACEOF
7512/* end confdefs.h. */
7513
7514int
7515main ()
7516{
7517
7518 ;
7519 return 0;
7520}
7521_ACEOF
7522rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
7523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7524 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
7525 ac_status=$?
7526 grep -v '^ *+' conftest.er1 >conftest.err
7527 rm -f conftest.er1
7528 cat conftest.err >&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
7530 (exit $ac_status); } &&
7531 { ac_try='test -z "$ac_c_werror_flag"
7532 || test ! -s conftest.err'
7533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534 (eval $ac_try) 2>&5
7535 ac_status=$?
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); }; } &&
7538 { ac_try='test -s conftest$ac_exeext'
7539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540 (eval $ac_try) 2>&5
7541 ac_status=$?
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); }; }; then
1cf3d07d
SE
7544
7545lt_aix_libpath_sed='
7546 /Import File Strings/,/^$/ {
7547 /^0/ {
7548 s/^0 *\(.*\)$/\1/
7549 p
7550 }
7551 }'
7552aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7553# Check for a 64-bit object if we didn't find anything.
7554if test -z "$aix_libpath"; then
7555 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7556fi
7557else
7558 echo "$as_me: failed program was:" >&5
7559sed 's/^/| /' conftest.$ac_ext >&5
7560
7561fi
38d24731 7562rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
7563 conftest$ac_exeext conftest.$ac_ext
7564if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7565
7566 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7567 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"
7568 else
7569 if test "$host_cpu" = ia64; then
7570 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7571 allow_undefined_flag="-z nodefs"
7572 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"
7573 else
7574 # Determine the default libpath from the value encoded in an
7575 # empty executable.
7576 if test x$gcc_no_link = xyes; then
7577 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7578echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7579 { (exit 1); exit 1; }; }
7580fi
7581cat >conftest.$ac_ext <<_ACEOF
7582/* confdefs.h. */
7583_ACEOF
7584cat confdefs.h >>conftest.$ac_ext
7585cat >>conftest.$ac_ext <<_ACEOF
7586/* end confdefs.h. */
7587
7588int
7589main ()
7590{
7591
7592 ;
7593 return 0;
7594}
7595_ACEOF
7596rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
7597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7598 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
7599 ac_status=$?
7600 grep -v '^ *+' conftest.er1 >conftest.err
7601 rm -f conftest.er1
7602 cat conftest.err >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
7604 (exit $ac_status); } &&
7605 { ac_try='test -z "$ac_c_werror_flag"
7606 || test ! -s conftest.err'
7607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608 (eval $ac_try) 2>&5
7609 ac_status=$?
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); }; } &&
7612 { ac_try='test -s conftest$ac_exeext'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614 (eval $ac_try) 2>&5
7615 ac_status=$?
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; }; then
1cf3d07d
SE
7618
7619lt_aix_libpath_sed='
7620 /Import File Strings/,/^$/ {
7621 /^0/ {
7622 s/^0 *\(.*\)$/\1/
7623 p
7624 }
7625 }'
7626aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7627# Check for a 64-bit object if we didn't find anything.
7628if test -z "$aix_libpath"; then
7629 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7630fi
7631else
7632 echo "$as_me: failed program was:" >&5
7633sed 's/^/| /' conftest.$ac_ext >&5
7634
7635fi
38d24731 7636rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
7637 conftest$ac_exeext conftest.$ac_ext
7638if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7639
7640 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7641 # Warning - without using the other run time loading flags,
7642 # -berok will link without error, but may produce a broken library.
7643 no_undefined_flag=' ${wl}-bernotok'
7644 allow_undefined_flag=' ${wl}-berok'
7645 # Exported symbols can be pulled into shared objects from archives
7646 whole_archive_flag_spec='$convenience'
7647 archive_cmds_need_lc=yes
7648 # This is similar to how AIX traditionally builds its shared libraries.
7649 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'
7650 fi
7651 fi
7652 ;;
7653
7654 amigaos*)
7655 if test "$host_cpu" = m68k; then
7656 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)'
7657 hardcode_libdir_flag_spec='-L$libdir'
7658 hardcode_minus_L=yes
7659 fi
7660 # see comment about different semantics on the GNU ld section
7661 ld_shlibs=no
7662 ;;
7663
7664 bsdi[45]*)
7665 export_dynamic_flag_spec=-rdynamic
7666 ;;
7667
7668 cygwin* | mingw* | pw32*)
7669 # When not using gcc, we currently assume that we are using
7670 # Microsoft Visual C++.
7671 # hardcode_libdir_flag_spec is actually meaningless, as there is
7672 # no search path for DLLs.
7673 hardcode_libdir_flag_spec=' '
7674 allow_undefined_flag=unsupported
7675 # Tell ltmain to make .lib files, not .a files.
7676 libext=lib
7677 # Tell ltmain to make .dll files, not .so files.
7678 shrext_cmds=".dll"
7679 # FIXME: Setting linknames here is a bad hack.
7680 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7681 # The linker will automatically build a .lib file if we build a DLL.
7682 old_archive_from_new_cmds='true'
7683 # FIXME: Should let the user specify the lib program.
7684 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7685 fix_srcfile_path='`cygpath -w "$srcfile"`'
7686 enable_shared_with_static_runtimes=yes
7687 ;;
7688
7689 darwin* | rhapsody*)
7690 case $host_os in
7691 rhapsody* | darwin1.[012])
7692 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7693 ;;
7694 *) # Darwin 1.3 on
7695 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7696 10.[012])
7697 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7698 ;;
7699 10.*)
7700 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7701 ;;
7702 esac
7703 ;;
7704 esac
7705 archive_cmds_need_lc=no
7706 hardcode_direct=no
7707 hardcode_automatic=yes
7708 hardcode_shlibpath_var=unsupported
7709 whole_archive_flag_spec=''
7710 link_all_deplibs=yes
7711 if test "$GCC" = yes ; then
7712 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7714else
7715 lt_cv_apple_cc_single_mod=no
7716 if test -z "${LT_MULTI_MODULE}"; then
7717 # By default we will add the -single_module flag. You can override
7718 # by either setting the environment variable LT_MULTI_MODULE
7719 # non-empty at configure time, or by adding -multi-module to the
7720 # link flags.
7721 echo "int foo(void){return 1;}" > conftest.c
7722 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7723 -dynamiclib ${wl}-single_module conftest.c
7724 if test -f libconftest.dylib; then
7725 lt_cv_apple_cc_single_mod=yes
7726 rm libconftest.dylib
7727 fi
7728 rm conftest.$ac_ext
7729 fi
7730fi
7731
7732 output_verbose_link_cmd=echo
7733 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7734 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7735 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}'
7736 else
7737 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7738 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}'
7739 fi
7740 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7741 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}'
7742 else
7743 case $cc_basename in
7744 xlc*)
7745 output_verbose_link_cmd=echo
7746 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7747 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7748 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7749 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}'
7750 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}'
7751 ;;
7752 *)
7753 ld_shlibs=no
7754 ;;
7755 esac
7756 fi
7757 ;;
7758
7759 dgux*)
7760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7761 hardcode_libdir_flag_spec='-L$libdir'
7762 hardcode_shlibpath_var=no
7763 ;;
7764
7765 freebsd1*)
7766 ld_shlibs=no
7767 ;;
7768
7769 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7770 # support. Future versions do this automatically, but an explicit c++rt0.o
7771 # does not break anything, and helps significantly (at the cost of a little
7772 # extra space).
7773 freebsd2.2*)
7774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7775 hardcode_libdir_flag_spec='-R$libdir'
7776 hardcode_direct=yes
7777 hardcode_shlibpath_var=no
7778 ;;
7779
7780 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7781 freebsd2*)
7782 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7783 hardcode_direct=yes
7784 hardcode_minus_L=yes
7785 hardcode_shlibpath_var=no
7786 ;;
7787
7788 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7789 freebsd* | dragonfly*)
7790 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7791 hardcode_libdir_flag_spec='-R$libdir'
7792 hardcode_direct=yes
7793 hardcode_shlibpath_var=no
7794 ;;
7795
7796 hpux9*)
7797 if test "$GCC" = yes; then
7798 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'
7799 else
7800 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'
7801 fi
7802 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7803 hardcode_libdir_separator=:
7804 hardcode_direct=yes
7805
7806 # hardcode_minus_L: Not really in the search PATH,
7807 # but as the default location of the library.
7808 hardcode_minus_L=yes
7809 export_dynamic_flag_spec='${wl}-E'
7810 ;;
7811
7812 hpux10*)
7813 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7814 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7815 else
7816 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7817 fi
7818 if test "$with_gnu_ld" = no; then
7819 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7820 hardcode_libdir_flag_spec_ld='+b $libdir'
7821 hardcode_libdir_separator=:
7822 hardcode_direct=yes
7823 hardcode_direct_absolute=yes
7824 export_dynamic_flag_spec='${wl}-E'
7825 # hardcode_minus_L: Not really in the search PATH,
7826 # but as the default location of the library.
7827 hardcode_minus_L=yes
7828 fi
7829 ;;
7830
7831 hpux11*)
7832 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7833 case $host_cpu in
7834 hppa*64*)
7835 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7836 ;;
7837 ia64*)
7838 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7839 ;;
7840 *)
7841 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7842 ;;
7843 esac
7844 else
7845 case $host_cpu in
7846 hppa*64*)
7847 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7848 ;;
7849 ia64*)
7850 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7851 ;;
7852 *)
7853 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7854 ;;
7855 esac
7856 fi
7857 if test "$with_gnu_ld" = no; then
7858 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7859 hardcode_libdir_separator=:
7860
7861 case $host_cpu in
7862 hppa*64*|ia64*)
7863 hardcode_direct=no
7864 hardcode_shlibpath_var=no
7865 ;;
7866 *)
7867 hardcode_direct=yes
7868 hardcode_direct_absolute=yes
7869 export_dynamic_flag_spec='${wl}-E'
7870
7871 # hardcode_minus_L: Not really in the search PATH,
7872 # but as the default location of the library.
7873 hardcode_minus_L=yes
7874 ;;
7875 esac
7876 fi
7877 ;;
7878
7879 irix5* | irix6* | nonstopux*)
7880 if test "$GCC" = yes; then
7881 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'
7882 # Try to use the -exported_symbol ld option, if it does not
7883 # work, assume that -exports_file does not work either and
7884 # implicitly export all symbols.
7885 save_LDFLAGS="$LDFLAGS"
7886 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7887 if test x$gcc_no_link = xyes; then
7888 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7889echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7890 { (exit 1); exit 1; }; }
7891fi
7892cat >conftest.$ac_ext <<_ACEOF
7893int foo(void) {}
7894_ACEOF
7895rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
7896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7897 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
7898 ac_status=$?
7899 grep -v '^ *+' conftest.er1 >conftest.err
7900 rm -f conftest.er1
7901 cat conftest.err >&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
7903 (exit $ac_status); } &&
7904 { ac_try='test -z "$ac_c_werror_flag"
7905 || test ! -s conftest.err'
7906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907 (eval $ac_try) 2>&5
7908 ac_status=$?
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); }; } &&
7911 { ac_try='test -s conftest$ac_exeext'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 (eval $ac_try) 2>&5
7914 ac_status=$?
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; }; then
1cf3d07d
SE
7917 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'
7918
7919else
7920 echo "$as_me: failed program was:" >&5
7921sed 's/^/| /' conftest.$ac_ext >&5
7922
7923fi
38d24731 7924rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
7925 conftest$ac_exeext conftest.$ac_ext
7926 LDFLAGS="$save_LDFLAGS"
7927 else
7928 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'
7929 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'
7930 fi
7931 archive_cmds_need_lc='no'
7932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7933 hardcode_libdir_separator=:
7934 inherit_rpath=yes
7935 link_all_deplibs=yes
7936 ;;
7937
7938 netbsd*)
7939 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7940 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7941 else
7942 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7943 fi
7944 hardcode_libdir_flag_spec='-R$libdir'
7945 hardcode_direct=yes
7946 hardcode_shlibpath_var=no
7947 ;;
7948
7949 newsos6)
7950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7951 hardcode_direct=yes
7952 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7953 hardcode_libdir_separator=:
7954 hardcode_shlibpath_var=no
7955 ;;
7956
7957 *nto* | *qnx*)
7958 ;;
7959
7960 openbsd*)
7961 hardcode_direct=yes
7962 hardcode_shlibpath_var=no
7963 hardcode_direct_absolute=yes
7964 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7965 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7966 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7967 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7968 export_dynamic_flag_spec='${wl}-E'
7969 else
7970 case $host_os in
7971 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7972 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7973 hardcode_libdir_flag_spec='-R$libdir'
7974 ;;
7975 *)
7976 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7977 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7978 ;;
7979 esac
7980 fi
7981 ;;
7982
7983 os2*)
7984 hardcode_libdir_flag_spec='-L$libdir'
7985 hardcode_minus_L=yes
7986 allow_undefined_flag=unsupported
7987 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'
7988 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7989 ;;
7990
7991 osf3*)
7992 if test "$GCC" = yes; then
7993 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7994 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'
7995 else
7996 allow_undefined_flag=' -expect_unresolved \*'
7997 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'
7998 fi
7999 archive_cmds_need_lc='no'
8000 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8001 hardcode_libdir_separator=:
8002 ;;
8003
8004 osf4* | osf5*) # as osf3* with the addition of -msym flag
8005 if test "$GCC" = yes; then
8006 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8007 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'
8008 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8009 else
8010 allow_undefined_flag=' -expect_unresolved \*'
8011 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'
8012 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~
8013 $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'
8014
8015 # Both c and cxx compiler support -rpath directly
8016 hardcode_libdir_flag_spec='-rpath $libdir'
8017 fi
8018 archive_cmds_need_lc='no'
8019 hardcode_libdir_separator=:
8020 ;;
8021
8022 solaris*)
8023 no_undefined_flag=' -z defs'
8024 if test "$GCC" = yes; then
8025 wlarc='${wl}'
8026 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8027 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8028 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8029 else
8030 case `$CC -V 2>&1` in
8031 *"Compilers 5.0"*)
8032 wlarc=''
8033 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8034 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8035 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8036 ;;
8037 *)
8038 wlarc='${wl}'
8039 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8040 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8041 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8042 ;;
8043 esac
8044 fi
8045 hardcode_libdir_flag_spec='-R$libdir'
8046 hardcode_shlibpath_var=no
8047 case $host_os in
8048 solaris2.[0-5] | solaris2.[0-5].*) ;;
8049 *)
8050 # The compiler driver will combine and reorder linker options,
8051 # but understands `-z linker_flag'. GCC discards it without `$wl',
8052 # but is careful enough not to reorder.
8053 # Supported since Solaris 2.6 (maybe 2.5.1?)
8054 if test "$GCC" = yes; then
8055 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8056 else
8057 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8058 fi
8059 ;;
8060 esac
8061 link_all_deplibs=yes
8062 ;;
8063
8064 sunos4*)
8065 if test "x$host_vendor" = xsequent; then
8066 # Use $CC to link under sequent, because it throws in some extra .o
8067 # files that make .init and .fini sections work.
8068 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8069 else
8070 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8071 fi
8072 hardcode_libdir_flag_spec='-L$libdir'
8073 hardcode_direct=yes
8074 hardcode_minus_L=yes
8075 hardcode_shlibpath_var=no
8076 ;;
8077
8078 sysv4)
8079 case $host_vendor in
8080 sni)
8081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8082 hardcode_direct=yes # is this really true???
8083 ;;
8084 siemens)
8085 ## LD is ld it makes a PLAMLIB
8086 ## CC just makes a GrossModule.
8087 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8088 reload_cmds='$CC -r -o $output$reload_objs'
8089 hardcode_direct=no
8090 ;;
8091 motorola)
8092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8093 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8094 ;;
8095 esac
8096 runpath_var='LD_RUN_PATH'
8097 hardcode_shlibpath_var=no
8098 ;;
8099
8100 sysv4.3*)
8101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8102 hardcode_shlibpath_var=no
8103 export_dynamic_flag_spec='-Bexport'
8104 ;;
8105
8106 sysv4*MP*)
8107 if test -d /usr/nec; then
8108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8109 hardcode_shlibpath_var=no
8110 runpath_var=LD_RUN_PATH
8111 hardcode_runpath_var=yes
8112 ld_shlibs=yes
8113 fi
8114 ;;
8115
8116 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8117 no_undefined_flag='${wl}-z,text'
8118 archive_cmds_need_lc=no
8119 hardcode_shlibpath_var=no
8120 runpath_var='LD_RUN_PATH'
8121
8122 if test "$GCC" = yes; then
8123 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8124 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8125 else
8126 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8127 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8128 fi
8129 ;;
8130
8131 sysv5* | sco3.2v5* | sco5v6*)
8132 # Note: We can NOT use -z defs as we might desire, because we do not
8133 # link with -lc, and that would cause any symbols used from libc to
8134 # always be unresolved, which means just about no library would
8135 # ever link correctly. If we're not using GNU ld we use -z text
8136 # though, which does catch some bad symbols but isn't as heavy-handed
8137 # as -z defs.
8138 no_undefined_flag='${wl}-z,text'
8139 allow_undefined_flag='${wl}-z,nodefs'
8140 archive_cmds_need_lc=no
8141 hardcode_shlibpath_var=no
8142 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8143 hardcode_libdir_separator=':'
8144 link_all_deplibs=yes
8145 export_dynamic_flag_spec='${wl}-Bexport'
8146 runpath_var='LD_RUN_PATH'
8147
8148 if test "$GCC" = yes; then
8149 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8150 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8151 else
8152 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8153 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8154 fi
8155 ;;
8156
8157 uts4*)
8158 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8159 hardcode_libdir_flag_spec='-L$libdir'
8160 hardcode_shlibpath_var=no
8161 ;;
8162
8163 *)
8164 ld_shlibs=no
8165 ;;
8166 esac
8167
8168 if test x$host_vendor = xsni; then
8169 case $host in
8170 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8171 export_dynamic_flag_spec='${wl}-Blargedynsym'
8172 ;;
8173 esac
8174 fi
8175 fi
8176
38d24731
RW
8177echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8178echo "${ECHO_T}$ld_shlibs" >&6
1cf3d07d
SE
8179test "$ld_shlibs" = no && can_build_shared=no
8180
8181with_gnu_ld=$with_gnu_ld
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197#
8198# Do we need to explicitly link libc?
8199#
8200case "x$archive_cmds_need_lc" in
8201x|xyes)
8202 # Assume -lc should be added
8203 archive_cmds_need_lc=yes
8204
8205 if test "$enable_shared" = yes && test "$GCC" = yes; then
8206 case $archive_cmds in
8207 *'~'*)
8208 # FIXME: we may have to deal with multi-command sequences.
8209 ;;
8210 '$CC '*)
8211 # Test whether the compiler implicitly links with -lc since on some
8212 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8213 # to ld, don't add -lc before -lgcc.
38d24731
RW
8214 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8215echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
1cf3d07d
SE
8216 $RM conftest*
8217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8218
8219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8220 (eval $ac_compile) 2>&5
8221 ac_status=$?
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } 2>conftest.err; then
8224 soname=conftest
8225 lib=conftest
8226 libobjs=conftest.$ac_objext
8227 deplibs=
8228 wl=$lt_prog_compiler_wl
8229 pic_flag=$lt_prog_compiler_pic
8230 compiler_flags=-v
8231 linker_flags=-v
8232 verstring=
8233 output_objdir=.
8234 libname=conftest
8235 lt_save_allow_undefined_flag=$allow_undefined_flag
8236 allow_undefined_flag=
8237 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8238 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8239 ac_status=$?
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); }
8242 then
8243 archive_cmds_need_lc=no
8244 else
8245 archive_cmds_need_lc=yes
8246 fi
8247 allow_undefined_flag=$lt_save_allow_undefined_flag
8248 else
8249 cat conftest.err 1>&5
8250 fi
8251 $RM conftest*
38d24731
RW
8252 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8253echo "${ECHO_T}$archive_cmds_need_lc" >&6
1cf3d07d
SE
8254 ;;
8255 esac
8256 fi
8257 ;;
8258esac
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
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
38d24731
RW
8416 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8417echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
1cf3d07d
SE
8418withGCC=$GCC
8419if test "$withGCC" = yes; then
8420 case $host_os in
8421 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8422 *) lt_awk_arg="/^libraries:/" ;;
8423 esac
8424 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8425 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8426 # if the path contains ";" then we assume it to be the separator
8427 # otherwise default to the standard path separator (i.e. ":") - it is
8428 # assumed that no part of a normal pathname contains ";" but that should
8429 # okay in the real world where ";" in dirpaths is itself problematic.
8430 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8431 else
8432 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8433 fi
8434 # Ok, now we have the path, separated by spaces, we can step through it
8435 # and add multilib dir if necessary.
8436 lt_tmp_lt_search_path_spec=
8437 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8438 for lt_sys_path in $lt_search_path_spec; do
8439 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8440 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8441 else
8442 test -d "$lt_sys_path" && \
8443 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8444 fi
8445 done
8446 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8447BEGIN {RS=" "; FS="/|\n";} {
8448 lt_foo="";
8449 lt_count=0;
8450 for (lt_i = NF; lt_i > 0; lt_i--) {
8451 if ($lt_i != "" && $lt_i != ".") {
8452 if ($lt_i == "..") {
8453 lt_count++;
8454 } else {
8455 if (lt_count == 0) {
8456 lt_foo="/" $lt_i lt_foo;
8457 } else {
8458 lt_count--;
8459 }
8460 }
8461 }
8462 }
8463 if (lt_foo != "") { lt_freq[lt_foo]++; }
8464 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8465}'`
8466 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8467else
8468 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8469fi
8470library_names_spec=
8471libname_spec='lib$name'
8472soname_spec=
8473shrext_cmds=".so"
8474postinstall_cmds=
8475postuninstall_cmds=
8476finish_cmds=
8477finish_eval=
8478shlibpath_var=
8479shlibpath_overrides_runpath=unknown
8480version_type=none
8481dynamic_linker="$host_os ld.so"
8482sys_lib_dlsearch_path_spec="/lib /usr/lib"
8483need_lib_prefix=unknown
8484hardcode_into_libs=no
8485
8486# when you set need_version to no, make sure it does not cause -set_version
8487# flags to be left without arguments
8488need_version=unknown
8489
8490case $host_os in
8491aix3*)
8492 version_type=linux
8493 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8494 shlibpath_var=LIBPATH
8495
8496 # AIX 3 has no versioning support, so we append a major version to the name.
8497 soname_spec='${libname}${release}${shared_ext}$major'
8498 ;;
8499
4f6bebc3 8500aix[4-9]*)
1cf3d07d
SE
8501 version_type=linux
8502 need_lib_prefix=no
8503 need_version=no
8504 hardcode_into_libs=yes
8505 if test "$host_cpu" = ia64; then
8506 # AIX 5 supports IA64
8507 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8508 shlibpath_var=LD_LIBRARY_PATH
8509 else
8510 # With GCC up to 2.95.x, collect2 would create an import file
8511 # for dependence libraries. The import file would start with
8512 # the line `#! .'. This would cause the generated library to
8513 # depend on `.', always an invalid library. This was fixed in
8514 # development snapshots of GCC prior to 3.0.
8515 case $host_os in
8516 aix4 | aix4.[01] | aix4.[01].*)
8517 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8518 echo ' yes '
8519 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8520 :
8521 else
8522 can_build_shared=no
8523 fi
8524 ;;
8525 esac
8526 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8527 # soname into executable. Probably we can add versioning support to
8528 # collect2, so additional links can be useful in future.
8529 if test "$aix_use_runtimelinking" = yes; then
8530 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8531 # instead of lib<name>.a to let people know that these are not
8532 # typical AIX shared libraries.
8533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8534 else
8535 # We preserve .a as extension for shared libraries through AIX4.2
8536 # and later when we are not doing run time linking.
8537 library_names_spec='${libname}${release}.a $libname.a'
8538 soname_spec='${libname}${release}${shared_ext}$major'
8539 fi
8540 shlibpath_var=LIBPATH
8541 fi
8542 ;;
8543
8544amigaos*)
8545 if test "$host_cpu" = m68k; then
8546 library_names_spec='$libname.ixlibrary $libname.a'
8547 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8548 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'
8549 else
8550 dynamic_linker=no
8551 fi
8552 ;;
8553
8554beos*)
8555 library_names_spec='${libname}${shared_ext}'
8556 dynamic_linker="$host_os ld.so"
8557 shlibpath_var=LIBRARY_PATH
8558 ;;
8559
8560bsdi[45]*)
8561 version_type=linux
8562 need_version=no
8563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8564 soname_spec='${libname}${release}${shared_ext}$major'
8565 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8566 shlibpath_var=LD_LIBRARY_PATH
8567 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8568 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8569 # the default ld.so.conf also contains /usr/contrib/lib and
8570 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8571 # libtool to hard-code these into programs
8572 ;;
8573
8574cygwin* | mingw* | pw32*)
8575 version_type=windows
8576 shrext_cmds=".dll"
8577 need_version=no
8578 need_lib_prefix=no
8579
8580 case $withGCC,$host_os in
8581 yes,cygwin* | yes,mingw* | yes,pw32*)
8582 library_names_spec='$libname.dll.a'
8583 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8584 postinstall_cmds='base_file=`basename \${file}`~
8585 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8586 dldir=$destdir/`dirname \$dlpath`~
8587 test -d \$dldir || mkdir -p \$dldir~
8588 $install_prog $dir/$dlname \$dldir/$dlname~
8589 chmod a+x \$dldir/$dlname~
8590 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8591 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8592 fi'
8593 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8594 dlpath=$dir/\$dldll~
8595 $RM \$dlpath'
8596 shlibpath_overrides_runpath=yes
8597
8598 case $host_os in
8599 cygwin*)
8600 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8601 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8602 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8603 ;;
8604 mingw*)
8605 # MinGW DLLs use traditional 'lib' prefix
8606 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8607 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8608 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8609 # It is most probably a Windows format PATH printed by
8610 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8611 # path with ; separators, and with drive letters. We can handle the
8612 # drive letters (cygwin fileutils understands them), so leave them,
8613 # especially as we might pass files found there to a mingw objdump,
8614 # which wouldn't understand a cygwinified path. Ahh.
8615 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8616 else
8617 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8618 fi
8619 ;;
8620 pw32*)
8621 # pw32 DLLs use 'pw' prefix rather than 'lib'
8622 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8623 ;;
8624 esac
8625 ;;
8626
8627 *)
8628 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8629 ;;
8630 esac
8631 dynamic_linker='Win32 ld.exe'
8632 # FIXME: first we should search . and the directory the executable is in
8633 shlibpath_var=PATH
8634 ;;
8635
8636darwin* | rhapsody*)
8637 dynamic_linker="$host_os dyld"
8638 version_type=darwin
8639 need_lib_prefix=no
8640 need_version=no
8641 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8642 soname_spec='${libname}${release}${major}$shared_ext'
8643 shlibpath_overrides_runpath=yes
8644 shlibpath_var=DYLD_LIBRARY_PATH
8645 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8646
8647 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8648 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8649 ;;
8650
8651dgux*)
8652 version_type=linux
8653 need_lib_prefix=no
8654 need_version=no
8655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8656 soname_spec='${libname}${release}${shared_ext}$major'
8657 shlibpath_var=LD_LIBRARY_PATH
8658 ;;
8659
8660freebsd1*)
8661 dynamic_linker=no
8662 ;;
8663
8664freebsd* | dragonfly*)
8665 # DragonFly does not have aout. When/if they implement a new
8666 # versioning mechanism, adjust this.
8667 if test -x /usr/bin/objformat; then
8668 objformat=`/usr/bin/objformat`
8669 else
8670 case $host_os in
8671 freebsd[123]*) objformat=aout ;;
8672 *) objformat=elf ;;
8673 esac
8674 fi
8675 version_type=freebsd-$objformat
8676 case $version_type in
8677 freebsd-elf*)
8678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8679 need_version=no
8680 need_lib_prefix=no
8681 ;;
8682 freebsd-*)
8683 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8684 need_version=yes
8685 ;;
8686 esac
8687 shlibpath_var=LD_LIBRARY_PATH
8688 case $host_os in
8689 freebsd2*)
8690 shlibpath_overrides_runpath=yes
8691 ;;
8692 freebsd3.[01]* | freebsdelf3.[01]*)
8693 shlibpath_overrides_runpath=yes
8694 hardcode_into_libs=yes
8695 ;;
8696 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8697 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8698 shlibpath_overrides_runpath=no
8699 hardcode_into_libs=yes
8700 ;;
8701 *) # from 4.6 on, and DragonFly
8702 shlibpath_overrides_runpath=yes
8703 hardcode_into_libs=yes
8704 ;;
8705 esac
8706 ;;
8707
8708gnu*)
8709 version_type=linux
8710 need_lib_prefix=no
8711 need_version=no
8712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8713 soname_spec='${libname}${release}${shared_ext}$major'
8714 shlibpath_var=LD_LIBRARY_PATH
8715 hardcode_into_libs=yes
8716 ;;
8717
8718hpux9* | hpux10* | hpux11*)
8719 # Give a soname corresponding to the major version so that dld.sl refuses to
8720 # link against other versions.
8721 version_type=sunos
8722 need_lib_prefix=no
8723 need_version=no
8724 case $host_cpu in
8725 ia64*)
8726 shrext_cmds='.so'
8727 hardcode_into_libs=yes
8728 dynamic_linker="$host_os dld.so"
8729 shlibpath_var=LD_LIBRARY_PATH
8730 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8732 soname_spec='${libname}${release}${shared_ext}$major'
8733 if test "X$HPUX_IA64_MODE" = X32; then
8734 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8735 else
8736 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8737 fi
8738 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8739 ;;
8740 hppa*64*)
8741 shrext_cmds='.sl'
8742 hardcode_into_libs=yes
8743 dynamic_linker="$host_os dld.sl"
8744 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8745 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8747 soname_spec='${libname}${release}${shared_ext}$major'
8748 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8749 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8750 ;;
8751 *)
8752 shrext_cmds='.sl'
8753 dynamic_linker="$host_os dld.sl"
8754 shlibpath_var=SHLIB_PATH
8755 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8757 soname_spec='${libname}${release}${shared_ext}$major'
8758 ;;
8759 esac
8760 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8761 postinstall_cmds='chmod 555 $lib'
8762 ;;
8763
8764interix[3-9]*)
8765 version_type=linux
8766 need_lib_prefix=no
8767 need_version=no
8768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8769 soname_spec='${libname}${release}${shared_ext}$major'
8770 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8771 shlibpath_var=LD_LIBRARY_PATH
8772 shlibpath_overrides_runpath=no
8773 hardcode_into_libs=yes
8774 ;;
8775
8776irix5* | irix6* | nonstopux*)
8777 case $host_os in
8778 nonstopux*) version_type=nonstopux ;;
8779 *)
8780 if test "$lt_cv_prog_gnu_ld" = yes; then
8781 version_type=linux
8782 else
8783 version_type=irix
8784 fi ;;
8785 esac
8786 need_lib_prefix=no
8787 need_version=no
8788 soname_spec='${libname}${release}${shared_ext}$major'
8789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8790 case $host_os in
8791 irix5* | nonstopux*)
8792 libsuff= shlibsuff=
8793 ;;
8794 *)
8795 case $LD in # libtool.m4 will add one of these switches to LD
8796 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8797 libsuff= shlibsuff= libmagic=32-bit;;
8798 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8799 libsuff=32 shlibsuff=N32 libmagic=N32;;
8800 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8801 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8802 *) libsuff= shlibsuff= libmagic=never-match;;
8803 esac
8804 ;;
8805 esac
8806 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8807 shlibpath_overrides_runpath=no
8808 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8809 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8810 hardcode_into_libs=yes
8811 ;;
8812
8813# No shared lib support for Linux oldld, aout, or coff.
8814linux*oldld* | linux*aout* | linux*coff*)
8815 dynamic_linker=no
8816 ;;
8817
8818# This must be Linux ELF.
8819linux* | k*bsd*-gnu)
8820 version_type=linux
8821 need_lib_prefix=no
8822 need_version=no
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8824 soname_spec='${libname}${release}${shared_ext}$major'
8825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8826 shlibpath_var=LD_LIBRARY_PATH
8827 shlibpath_overrides_runpath=no
8828 # Some binutils ld are patched to set DT_RUNPATH
8829 save_LDFLAGS=$LDFLAGS
8830 save_libdir=$libdir
8831 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8832 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8833 if test x$gcc_no_link = xyes; then
8834 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8835echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8836 { (exit 1); exit 1; }; }
8837fi
8838cat >conftest.$ac_ext <<_ACEOF
8839/* confdefs.h. */
8840_ACEOF
8841cat confdefs.h >>conftest.$ac_ext
8842cat >>conftest.$ac_ext <<_ACEOF
8843/* end confdefs.h. */
8844
8845int
8846main ()
8847{
8848
8849 ;
8850 return 0;
8851}
8852_ACEOF
8853rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
8854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8855 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
8856 ac_status=$?
8857 grep -v '^ *+' conftest.er1 >conftest.err
8858 rm -f conftest.er1
8859 cat conftest.err >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
8861 (exit $ac_status); } &&
8862 { ac_try='test -z "$ac_c_werror_flag"
8863 || test ! -s conftest.err'
8864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865 (eval $ac_try) 2>&5
8866 ac_status=$?
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; } &&
8869 { ac_try='test -s conftest$ac_exeext'
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 (eval $ac_try) 2>&5
8872 ac_status=$?
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; }; then
1cf3d07d
SE
8875 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8876 shlibpath_overrides_runpath=yes
8877fi
8878
8879else
8880 echo "$as_me: failed program was:" >&5
8881sed 's/^/| /' conftest.$ac_ext >&5
8882
8883fi
38d24731 8884rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
8885 conftest$ac_exeext conftest.$ac_ext
8886 LDFLAGS=$save_LDFLAGS
8887 libdir=$save_libdir
8888
8889 # This implies no fast_install, which is unacceptable.
8890 # Some rework will be needed to allow for fast_install
8891 # before this can be enabled.
8892 hardcode_into_libs=yes
8893
8894 # Append ld.so.conf contents to the search path
8895 if test -f /etc/ld.so.conf; then
8896 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' ' '`
8897 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8898 fi
8899
8900 # We used to test for /lib/ld.so.1 and disable shared libraries on
8901 # powerpc, because MkLinux only supported shared libraries with the
8902 # GNU dynamic linker. Since this was broken with cross compilers,
8903 # most powerpc-linux boxes support dynamic linking these days and
8904 # people can always --disable-shared, the test was removed, and we
8905 # assume the GNU/Linux dynamic linker is in use.
8906 dynamic_linker='GNU/Linux ld.so'
8907 ;;
8908
8909netbsd*)
8910 version_type=sunos
8911 need_lib_prefix=no
8912 need_version=no
8913 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8916 dynamic_linker='NetBSD (a.out) ld.so'
8917 else
8918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8919 soname_spec='${libname}${release}${shared_ext}$major'
8920 dynamic_linker='NetBSD ld.elf_so'
8921 fi
8922 shlibpath_var=LD_LIBRARY_PATH
8923 shlibpath_overrides_runpath=yes
8924 hardcode_into_libs=yes
8925 ;;
8926
8927newsos6)
8928 version_type=linux
8929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8930 shlibpath_var=LD_LIBRARY_PATH
8931 shlibpath_overrides_runpath=yes
8932 ;;
8933
8934*nto* | *qnx*)
8935 version_type=qnx
8936 need_lib_prefix=no
8937 need_version=no
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8939 soname_spec='${libname}${release}${shared_ext}$major'
8940 shlibpath_var=LD_LIBRARY_PATH
8941 shlibpath_overrides_runpath=no
8942 hardcode_into_libs=yes
8943 dynamic_linker='ldqnx.so'
8944 ;;
8945
8946openbsd*)
8947 version_type=sunos
8948 sys_lib_dlsearch_path_spec="/usr/lib"
8949 need_lib_prefix=no
8950 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8951 case $host_os in
8952 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8953 *) need_version=no ;;
8954 esac
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8957 shlibpath_var=LD_LIBRARY_PATH
8958 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8959 case $host_os in
8960 openbsd2.[89] | openbsd2.[89].*)
8961 shlibpath_overrides_runpath=no
8962 ;;
8963 *)
8964 shlibpath_overrides_runpath=yes
8965 ;;
8966 esac
8967 else
8968 shlibpath_overrides_runpath=yes
8969 fi
8970 ;;
8971
8972os2*)
8973 libname_spec='$name'
8974 shrext_cmds=".dll"
8975 need_lib_prefix=no
8976 library_names_spec='$libname${shared_ext} $libname.a'
8977 dynamic_linker='OS/2 ld.exe'
8978 shlibpath_var=LIBPATH
8979 ;;
8980
8981osf3* | osf4* | osf5*)
8982 version_type=osf
8983 need_lib_prefix=no
8984 need_version=no
8985 soname_spec='${libname}${release}${shared_ext}$major'
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8987 shlibpath_var=LD_LIBRARY_PATH
8988 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8989 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8990 ;;
8991
8992rdos*)
8993 dynamic_linker=no
8994 ;;
8995
8996solaris*)
8997 version_type=linux
8998 need_lib_prefix=no
8999 need_version=no
9000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9001 soname_spec='${libname}${release}${shared_ext}$major'
9002 shlibpath_var=LD_LIBRARY_PATH
9003 shlibpath_overrides_runpath=yes
9004 hardcode_into_libs=yes
9005 # ldd complains unless libraries are executable
9006 postinstall_cmds='chmod +x $lib'
9007 ;;
9008
9009sunos4*)
9010 version_type=sunos
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9012 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9013 shlibpath_var=LD_LIBRARY_PATH
9014 shlibpath_overrides_runpath=yes
9015 if test "$with_gnu_ld" = yes; then
9016 need_lib_prefix=no
9017 fi
9018 need_version=yes
9019 ;;
9020
9021sysv4 | sysv4.3*)
9022 version_type=linux
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9024 soname_spec='${libname}${release}${shared_ext}$major'
9025 shlibpath_var=LD_LIBRARY_PATH
9026 case $host_vendor in
9027 sni)
9028 shlibpath_overrides_runpath=no
9029 need_lib_prefix=no
9030 runpath_var=LD_RUN_PATH
9031 ;;
9032 siemens)
9033 need_lib_prefix=no
9034 ;;
9035 motorola)
9036 need_lib_prefix=no
9037 need_version=no
9038 shlibpath_overrides_runpath=no
9039 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9040 ;;
9041 esac
9042 ;;
9043
9044sysv4*MP*)
9045 if test -d /usr/nec ;then
9046 version_type=linux
9047 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9048 soname_spec='$libname${shared_ext}.$major'
9049 shlibpath_var=LD_LIBRARY_PATH
9050 fi
9051 ;;
9052
9053sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9054 version_type=freebsd-elf
9055 need_lib_prefix=no
9056 need_version=no
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 shlibpath_var=LD_LIBRARY_PATH
9060 shlibpath_overrides_runpath=yes
9061 hardcode_into_libs=yes
9062 if test "$with_gnu_ld" = yes; then
9063 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9064 else
9065 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9066 case $host_os in
9067 sco3.2v5*)
9068 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9069 ;;
9070 esac
9071 fi
9072 sys_lib_dlsearch_path_spec='/usr/lib'
9073 ;;
9074
9075tpf*)
9076 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9077 version_type=linux
9078 need_lib_prefix=no
9079 need_version=no
9080 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9081 shlibpath_var=LD_LIBRARY_PATH
9082 shlibpath_overrides_runpath=no
9083 hardcode_into_libs=yes
9084 ;;
9085
9086uts4*)
9087 version_type=linux
9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9089 soname_spec='${libname}${release}${shared_ext}$major'
9090 shlibpath_var=LD_LIBRARY_PATH
9091 ;;
9092
9093*)
9094 dynamic_linker=no
9095 ;;
9096esac
38d24731
RW
9097echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9098echo "${ECHO_T}$dynamic_linker" >&6
1cf3d07d
SE
9099test "$dynamic_linker" = no && can_build_shared=no
9100
9101variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9102if test "$GCC" = yes; then
9103 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9104fi
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
38d24731
RW
9192 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9193echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
1cf3d07d
SE
9194hardcode_action=
9195if test -n "$hardcode_libdir_flag_spec" ||
9196 test -n "$runpath_var" ||
9197 test "X$hardcode_automatic" = "Xyes" ; then
9198
9199 # We can hardcode non-existent directories.
9200 if test "$hardcode_direct" != no &&
9201 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9202 # have to relink, otherwise we might link with an installed library
9203 # when we should be linking with a yet-to-be-installed one
9204 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9205 test "$hardcode_minus_L" != no; then
9206 # Linking always hardcodes the temporary library directory.
9207 hardcode_action=relink
9208 else
9209 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9210 hardcode_action=immediate
9211 fi
9212else
9213 # We cannot hardcode anything, or else we can only hardcode existing
9214 # directories.
9215 hardcode_action=unsupported
9216fi
38d24731
RW
9217echo "$as_me:$LINENO: result: $hardcode_action" >&5
9218echo "${ECHO_T}$hardcode_action" >&6
1cf3d07d
SE
9219
9220if test "$hardcode_action" = relink ||
9221 test "$inherit_rpath" = yes; then
9222 # Fast installation is not supported
9223 enable_fast_install=no
9224elif test "$shlibpath_overrides_runpath" = yes ||
9225 test "$enable_shared" = no; then
9226 # Fast installation is not necessary
9227 enable_fast_install=needless
9228fi
9229
9230
9231
9232
9233
9234
9235 if test "x$enable_dlopen" != xyes; then
9236 enable_dlopen=unknown
9237 enable_dlopen_self=unknown
9238 enable_dlopen_self_static=unknown
9239else
9240 lt_cv_dlopen=no
9241 lt_cv_dlopen_libs=
9242
9243 case $host_os in
9244 beos*)
9245 lt_cv_dlopen="load_add_on"
9246 lt_cv_dlopen_libs=
9247 lt_cv_dlopen_self=yes
9248 ;;
9249
9250 mingw* | pw32*)
9251 lt_cv_dlopen="LoadLibrary"
9252 lt_cv_dlopen_libs=
9253 ;;
9254
9255 cygwin*)
9256 lt_cv_dlopen="dlopen"
9257 lt_cv_dlopen_libs=
9258 ;;
9259
9260 darwin*)
9261 # if libdl is installed we need to link against it
38d24731
RW
9262 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9263echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
1cf3d07d
SE
9264if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9266else
9267 ac_check_lib_save_LIBS=$LIBS
9268LIBS="-ldl $LIBS"
9269if test x$gcc_no_link = xyes; then
9270 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9271echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9272 { (exit 1); exit 1; }; }
9273fi
9274cat >conftest.$ac_ext <<_ACEOF
9275/* confdefs.h. */
9276_ACEOF
9277cat confdefs.h >>conftest.$ac_ext
9278cat >>conftest.$ac_ext <<_ACEOF
9279/* end confdefs.h. */
9280
38d24731 9281/* Override any gcc2 internal prototype to avoid an error. */
1cf3d07d
SE
9282#ifdef __cplusplus
9283extern "C"
9284#endif
38d24731
RW
9285/* We use char because int might match the return type of a gcc2
9286 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
9287char dlopen ();
9288int
9289main ()
9290{
38d24731 9291dlopen ();
1cf3d07d
SE
9292 ;
9293 return 0;
9294}
9295_ACEOF
9296rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
9297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9298 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
9299 ac_status=$?
9300 grep -v '^ *+' conftest.er1 >conftest.err
9301 rm -f conftest.er1
9302 cat conftest.err >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
9304 (exit $ac_status); } &&
9305 { ac_try='test -z "$ac_c_werror_flag"
9306 || test ! -s conftest.err'
9307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308 (eval $ac_try) 2>&5
9309 ac_status=$?
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); }; } &&
9312 { ac_try='test -s conftest$ac_exeext'
9313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314 (eval $ac_try) 2>&5
9315 ac_status=$?
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; }; then
1cf3d07d
SE
9318 ac_cv_lib_dl_dlopen=yes
9319else
9320 echo "$as_me: failed program was:" >&5
9321sed 's/^/| /' conftest.$ac_ext >&5
9322
38d24731 9323ac_cv_lib_dl_dlopen=no
1cf3d07d 9324fi
38d24731 9325rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
9326 conftest$ac_exeext conftest.$ac_ext
9327LIBS=$ac_check_lib_save_LIBS
9328fi
38d24731
RW
9329echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9330echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
1cf3d07d
SE
9331if test $ac_cv_lib_dl_dlopen = yes; then
9332 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9333else
9334
9335 lt_cv_dlopen="dyld"
9336 lt_cv_dlopen_libs=
9337 lt_cv_dlopen_self=yes
9338
9339fi
9340
9341 ;;
9342
9343 *)
38d24731
RW
9344 echo "$as_me:$LINENO: checking for shl_load" >&5
9345echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
1cf3d07d
SE
9346if test "${ac_cv_func_shl_load+set}" = set; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
9348else
9349 if test x$gcc_no_link = xyes; then
9350 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9351echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9352 { (exit 1); exit 1; }; }
9353fi
9354cat >conftest.$ac_ext <<_ACEOF
9355/* confdefs.h. */
9356_ACEOF
9357cat confdefs.h >>conftest.$ac_ext
9358cat >>conftest.$ac_ext <<_ACEOF
9359/* end confdefs.h. */
9360/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9362#define shl_load innocuous_shl_load
9363
9364/* System header to define __stub macros and hopefully few prototypes,
9365 which can conflict with char shl_load (); below.
9366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9367 <limits.h> exists even on freestanding compilers. */
9368
9369#ifdef __STDC__
9370# include <limits.h>
9371#else
9372# include <assert.h>
9373#endif
9374
9375#undef shl_load
9376
38d24731 9377/* Override any gcc2 internal prototype to avoid an error. */
1cf3d07d
SE
9378#ifdef __cplusplus
9379extern "C"
38d24731 9380{
1cf3d07d 9381#endif
38d24731
RW
9382/* We use char because int might match the return type of a gcc2
9383 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
9384char shl_load ();
9385/* The GNU C library defines this for functions which it implements
9386 to always fail with ENOSYS. Some functions are actually named
9387 something starting with __ and the normal name is an alias. */
38d24731 9388#if defined (__stub_shl_load) || defined (__stub___shl_load)
1cf3d07d 9389choke me
38d24731
RW
9390#else
9391char (*f) () = shl_load;
9392#endif
9393#ifdef __cplusplus
9394}
1cf3d07d
SE
9395#endif
9396
9397int
9398main ()
9399{
38d24731 9400return f != shl_load;
1cf3d07d
SE
9401 ;
9402 return 0;
9403}
9404_ACEOF
9405rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
9406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
9408 ac_status=$?
9409 grep -v '^ *+' conftest.er1 >conftest.err
9410 rm -f conftest.er1
9411 cat conftest.err >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
9413 (exit $ac_status); } &&
9414 { ac_try='test -z "$ac_c_werror_flag"
9415 || test ! -s conftest.err'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417 (eval $ac_try) 2>&5
9418 ac_status=$?
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; } &&
9421 { ac_try='test -s conftest$ac_exeext'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 (eval $ac_try) 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
1cf3d07d
SE
9427 ac_cv_func_shl_load=yes
9428else
9429 echo "$as_me: failed program was:" >&5
9430sed 's/^/| /' conftest.$ac_ext >&5
9431
38d24731 9432ac_cv_func_shl_load=no
1cf3d07d 9433fi
38d24731 9434rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
9435 conftest$ac_exeext conftest.$ac_ext
9436fi
38d24731
RW
9437echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9438echo "${ECHO_T}$ac_cv_func_shl_load" >&6
1cf3d07d
SE
9439if test $ac_cv_func_shl_load = yes; then
9440 lt_cv_dlopen="shl_load"
9441else
38d24731
RW
9442 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9443echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
1cf3d07d
SE
9444if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
9446else
9447 ac_check_lib_save_LIBS=$LIBS
9448LIBS="-ldld $LIBS"
9449if test x$gcc_no_link = xyes; then
9450 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9451echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9452 { (exit 1); exit 1; }; }
9453fi
9454cat >conftest.$ac_ext <<_ACEOF
9455/* confdefs.h. */
9456_ACEOF
9457cat confdefs.h >>conftest.$ac_ext
9458cat >>conftest.$ac_ext <<_ACEOF
9459/* end confdefs.h. */
9460
38d24731 9461/* Override any gcc2 internal prototype to avoid an error. */
1cf3d07d
SE
9462#ifdef __cplusplus
9463extern "C"
9464#endif
38d24731
RW
9465/* We use char because int might match the return type of a gcc2
9466 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
9467char shl_load ();
9468int
9469main ()
9470{
38d24731 9471shl_load ();
1cf3d07d
SE
9472 ;
9473 return 0;
9474}
9475_ACEOF
9476rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
9477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9478 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
9479 ac_status=$?
9480 grep -v '^ *+' conftest.er1 >conftest.err
9481 rm -f conftest.er1
9482 cat conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
9484 (exit $ac_status); } &&
9485 { ac_try='test -z "$ac_c_werror_flag"
9486 || test ! -s conftest.err'
9487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488 (eval $ac_try) 2>&5
9489 ac_status=$?
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); }; } &&
9492 { ac_try='test -s conftest$ac_exeext'
9493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494 (eval $ac_try) 2>&5
9495 ac_status=$?
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; }; then
1cf3d07d
SE
9498 ac_cv_lib_dld_shl_load=yes
9499else
9500 echo "$as_me: failed program was:" >&5
9501sed 's/^/| /' conftest.$ac_ext >&5
9502
38d24731 9503ac_cv_lib_dld_shl_load=no
1cf3d07d 9504fi
38d24731 9505rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
9506 conftest$ac_exeext conftest.$ac_ext
9507LIBS=$ac_check_lib_save_LIBS
9508fi
38d24731
RW
9509echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9510echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
1cf3d07d
SE
9511if test $ac_cv_lib_dld_shl_load = yes; then
9512 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9513else
38d24731
RW
9514 echo "$as_me:$LINENO: checking for dlopen" >&5
9515echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
1cf3d07d
SE
9516if test "${ac_cv_func_dlopen+set}" = set; then
9517 echo $ECHO_N "(cached) $ECHO_C" >&6
9518else
9519 if test x$gcc_no_link = xyes; then
9520 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9521echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9522 { (exit 1); exit 1; }; }
9523fi
9524cat >conftest.$ac_ext <<_ACEOF
9525/* confdefs.h. */
9526_ACEOF
9527cat confdefs.h >>conftest.$ac_ext
9528cat >>conftest.$ac_ext <<_ACEOF
9529/* end confdefs.h. */
9530/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9532#define dlopen innocuous_dlopen
9533
9534/* System header to define __stub macros and hopefully few prototypes,
9535 which can conflict with char dlopen (); below.
9536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9537 <limits.h> exists even on freestanding compilers. */
9538
9539#ifdef __STDC__
9540# include <limits.h>
9541#else
9542# include <assert.h>
9543#endif
9544
9545#undef dlopen
9546
38d24731 9547/* Override any gcc2 internal prototype to avoid an error. */
1cf3d07d
SE
9548#ifdef __cplusplus
9549extern "C"
38d24731 9550{
1cf3d07d 9551#endif
38d24731
RW
9552/* We use char because int might match the return type of a gcc2
9553 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
9554char dlopen ();
9555/* The GNU C library defines this for functions which it implements
9556 to always fail with ENOSYS. Some functions are actually named
9557 something starting with __ and the normal name is an alias. */
38d24731 9558#if defined (__stub_dlopen) || defined (__stub___dlopen)
1cf3d07d 9559choke me
38d24731
RW
9560#else
9561char (*f) () = dlopen;
9562#endif
9563#ifdef __cplusplus
9564}
1cf3d07d
SE
9565#endif
9566
9567int
9568main ()
9569{
38d24731 9570return f != dlopen;
1cf3d07d
SE
9571 ;
9572 return 0;
9573}
9574_ACEOF
9575rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
9576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9577 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
9578 ac_status=$?
9579 grep -v '^ *+' conftest.er1 >conftest.err
9580 rm -f conftest.er1
9581 cat conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
9583 (exit $ac_status); } &&
9584 { ac_try='test -z "$ac_c_werror_flag"
9585 || test ! -s conftest.err'
9586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587 (eval $ac_try) 2>&5
9588 ac_status=$?
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); }; } &&
9591 { ac_try='test -s conftest$ac_exeext'
9592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593 (eval $ac_try) 2>&5
9594 ac_status=$?
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; }; then
1cf3d07d
SE
9597 ac_cv_func_dlopen=yes
9598else
9599 echo "$as_me: failed program was:" >&5
9600sed 's/^/| /' conftest.$ac_ext >&5
9601
38d24731 9602ac_cv_func_dlopen=no
1cf3d07d 9603fi
38d24731 9604rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
9605 conftest$ac_exeext conftest.$ac_ext
9606fi
38d24731
RW
9607echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9608echo "${ECHO_T}$ac_cv_func_dlopen" >&6
1cf3d07d
SE
9609if test $ac_cv_func_dlopen = yes; then
9610 lt_cv_dlopen="dlopen"
9611else
38d24731
RW
9612 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9613echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
1cf3d07d
SE
9614if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9616else
9617 ac_check_lib_save_LIBS=$LIBS
9618LIBS="-ldl $LIBS"
9619if test x$gcc_no_link = xyes; then
9620 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9621echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9622 { (exit 1); exit 1; }; }
9623fi
9624cat >conftest.$ac_ext <<_ACEOF
9625/* confdefs.h. */
9626_ACEOF
9627cat confdefs.h >>conftest.$ac_ext
9628cat >>conftest.$ac_ext <<_ACEOF
9629/* end confdefs.h. */
9630
38d24731 9631/* Override any gcc2 internal prototype to avoid an error. */
1cf3d07d
SE
9632#ifdef __cplusplus
9633extern "C"
9634#endif
38d24731
RW
9635/* We use char because int might match the return type of a gcc2
9636 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
9637char dlopen ();
9638int
9639main ()
9640{
38d24731 9641dlopen ();
1cf3d07d
SE
9642 ;
9643 return 0;
9644}
9645_ACEOF
9646rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
9647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9648 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
9649 ac_status=$?
9650 grep -v '^ *+' conftest.er1 >conftest.err
9651 rm -f conftest.er1
9652 cat conftest.err >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
9654 (exit $ac_status); } &&
9655 { ac_try='test -z "$ac_c_werror_flag"
9656 || test ! -s conftest.err'
9657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9658 (eval $ac_try) 2>&5
9659 ac_status=$?
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); }; } &&
9662 { ac_try='test -s conftest$ac_exeext'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 (eval $ac_try) 2>&5
9665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; }; then
1cf3d07d
SE
9668 ac_cv_lib_dl_dlopen=yes
9669else
9670 echo "$as_me: failed program was:" >&5
9671sed 's/^/| /' conftest.$ac_ext >&5
9672
38d24731 9673ac_cv_lib_dl_dlopen=no
1cf3d07d 9674fi
38d24731 9675rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
9676 conftest$ac_exeext conftest.$ac_ext
9677LIBS=$ac_check_lib_save_LIBS
9678fi
38d24731
RW
9679echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9680echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
1cf3d07d
SE
9681if test $ac_cv_lib_dl_dlopen = yes; then
9682 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9683else
38d24731
RW
9684 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9685echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
1cf3d07d
SE
9686if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9688else
9689 ac_check_lib_save_LIBS=$LIBS
9690LIBS="-lsvld $LIBS"
9691if test x$gcc_no_link = xyes; then
9692 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9693echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9694 { (exit 1); exit 1; }; }
9695fi
9696cat >conftest.$ac_ext <<_ACEOF
9697/* confdefs.h. */
9698_ACEOF
9699cat confdefs.h >>conftest.$ac_ext
9700cat >>conftest.$ac_ext <<_ACEOF
9701/* end confdefs.h. */
9702
38d24731 9703/* Override any gcc2 internal prototype to avoid an error. */
1cf3d07d
SE
9704#ifdef __cplusplus
9705extern "C"
9706#endif
38d24731
RW
9707/* We use char because int might match the return type of a gcc2
9708 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
9709char dlopen ();
9710int
9711main ()
9712{
38d24731 9713dlopen ();
1cf3d07d
SE
9714 ;
9715 return 0;
9716}
9717_ACEOF
9718rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
9719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
9721 ac_status=$?
9722 grep -v '^ *+' conftest.er1 >conftest.err
9723 rm -f conftest.er1
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
9726 (exit $ac_status); } &&
9727 { ac_try='test -z "$ac_c_werror_flag"
9728 || test ! -s conftest.err'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 (eval $ac_try) 2>&5
9731 ac_status=$?
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; } &&
9734 { ac_try='test -s conftest$ac_exeext'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 (eval $ac_try) 2>&5
9737 ac_status=$?
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; }; then
1cf3d07d
SE
9740 ac_cv_lib_svld_dlopen=yes
9741else
9742 echo "$as_me: failed program was:" >&5
9743sed 's/^/| /' conftest.$ac_ext >&5
9744
38d24731 9745ac_cv_lib_svld_dlopen=no
1cf3d07d 9746fi
38d24731 9747rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
9748 conftest$ac_exeext conftest.$ac_ext
9749LIBS=$ac_check_lib_save_LIBS
9750fi
38d24731
RW
9751echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9752echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
1cf3d07d
SE
9753if test $ac_cv_lib_svld_dlopen = yes; then
9754 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9755else
38d24731
RW
9756 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9757echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
1cf3d07d
SE
9758if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9760else
9761 ac_check_lib_save_LIBS=$LIBS
9762LIBS="-ldld $LIBS"
9763if test x$gcc_no_link = xyes; then
9764 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9765echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9766 { (exit 1); exit 1; }; }
9767fi
9768cat >conftest.$ac_ext <<_ACEOF
9769/* confdefs.h. */
9770_ACEOF
9771cat confdefs.h >>conftest.$ac_ext
9772cat >>conftest.$ac_ext <<_ACEOF
9773/* end confdefs.h. */
9774
38d24731 9775/* Override any gcc2 internal prototype to avoid an error. */
1cf3d07d
SE
9776#ifdef __cplusplus
9777extern "C"
9778#endif
38d24731
RW
9779/* We use char because int might match the return type of a gcc2
9780 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
9781char dld_link ();
9782int
9783main ()
9784{
38d24731 9785dld_link ();
1cf3d07d
SE
9786 ;
9787 return 0;
9788}
9789_ACEOF
9790rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
9791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9792 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
9793 ac_status=$?
9794 grep -v '^ *+' conftest.er1 >conftest.err
9795 rm -f conftest.er1
9796 cat conftest.err >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
9798 (exit $ac_status); } &&
9799 { ac_try='test -z "$ac_c_werror_flag"
9800 || test ! -s conftest.err'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802 (eval $ac_try) 2>&5
9803 ac_status=$?
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; } &&
9806 { ac_try='test -s conftest$ac_exeext'
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808 (eval $ac_try) 2>&5
9809 ac_status=$?
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; }; then
1cf3d07d
SE
9812 ac_cv_lib_dld_dld_link=yes
9813else
9814 echo "$as_me: failed program was:" >&5
9815sed 's/^/| /' conftest.$ac_ext >&5
9816
38d24731 9817ac_cv_lib_dld_dld_link=no
1cf3d07d 9818fi
38d24731 9819rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
9820 conftest$ac_exeext conftest.$ac_ext
9821LIBS=$ac_check_lib_save_LIBS
9822fi
38d24731
RW
9823echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9824echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
1cf3d07d
SE
9825if test $ac_cv_lib_dld_dld_link = yes; then
9826 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9827fi
9828
9829
9830fi
9831
9832
9833fi
9834
9835
9836fi
9837
9838
9839fi
9840
9841
9842fi
9843
9844 ;;
9845 esac
9846
9847 if test "x$lt_cv_dlopen" != xno; then
9848 enable_dlopen=yes
9849 else
9850 enable_dlopen=no
9851 fi
9852
9853 case $lt_cv_dlopen in
9854 dlopen)
9855 save_CPPFLAGS="$CPPFLAGS"
9856 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9857
9858 save_LDFLAGS="$LDFLAGS"
9859 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9860
9861 save_LIBS="$LIBS"
9862 LIBS="$lt_cv_dlopen_libs $LIBS"
9863
38d24731
RW
9864 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9865echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
1cf3d07d
SE
9866if test "${lt_cv_dlopen_self+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9868else
9869 if test "$cross_compiling" = yes; then :
9870 lt_cv_dlopen_self=cross
9871else
9872 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9873 lt_status=$lt_dlunknown
9874 cat > conftest.$ac_ext <<_LT_EOF
38d24731 9875#line 9875 "configure"
1cf3d07d
SE
9876#include "confdefs.h"
9877
9878#if HAVE_DLFCN_H
9879#include <dlfcn.h>
9880#endif
9881
9882#include <stdio.h>
9883
9884#ifdef RTLD_GLOBAL
9885# define LT_DLGLOBAL RTLD_GLOBAL
9886#else
9887# ifdef DL_GLOBAL
9888# define LT_DLGLOBAL DL_GLOBAL
9889# else
9890# define LT_DLGLOBAL 0
9891# endif
9892#endif
9893
9894/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9895 find out it does not work in some platform. */
9896#ifndef LT_DLLAZY_OR_NOW
9897# ifdef RTLD_LAZY
9898# define LT_DLLAZY_OR_NOW RTLD_LAZY
9899# else
9900# ifdef DL_LAZY
9901# define LT_DLLAZY_OR_NOW DL_LAZY
9902# else
9903# ifdef RTLD_NOW
9904# define LT_DLLAZY_OR_NOW RTLD_NOW
9905# else
9906# ifdef DL_NOW
9907# define LT_DLLAZY_OR_NOW DL_NOW
9908# else
9909# define LT_DLLAZY_OR_NOW 0
9910# endif
9911# endif
9912# endif
9913# endif
9914#endif
9915
9916#ifdef __cplusplus
9917extern "C" void exit (int);
9918#endif
9919
9920void fnord() { int i=42;}
9921int main ()
9922{
9923 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9924 int status = $lt_dlunknown;
9925
9926 if (self)
9927 {
9928 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9929 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9930 /* dlclose (self); */
9931 }
9932 else
9933 puts (dlerror ());
9934
9935 exit (status);
9936}
9937_LT_EOF
9938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9939 (eval $ac_link) 2>&5
9940 ac_status=$?
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9943 (./conftest; exit; ) >&5 2>/dev/null
9944 lt_status=$?
9945 case x$lt_status in
9946 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9947 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9948 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9949 esac
9950 else :
9951 # compilation failed
9952 lt_cv_dlopen_self=no
9953 fi
9954fi
9955rm -fr conftest*
9956
9957
9958fi
38d24731
RW
9959echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9960echo "${ECHO_T}$lt_cv_dlopen_self" >&6
1cf3d07d
SE
9961
9962 if test "x$lt_cv_dlopen_self" = xyes; then
9963 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
38d24731
RW
9964 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9965echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
1cf3d07d
SE
9966if test "${lt_cv_dlopen_self_static+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9968else
9969 if test "$cross_compiling" = yes; then :
9970 lt_cv_dlopen_self_static=cross
9971else
9972 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9973 lt_status=$lt_dlunknown
9974 cat > conftest.$ac_ext <<_LT_EOF
38d24731 9975#line 9975 "configure"
1cf3d07d
SE
9976#include "confdefs.h"
9977
9978#if HAVE_DLFCN_H
9979#include <dlfcn.h>
9980#endif
9981
9982#include <stdio.h>
9983
9984#ifdef RTLD_GLOBAL
9985# define LT_DLGLOBAL RTLD_GLOBAL
9986#else
9987# ifdef DL_GLOBAL
9988# define LT_DLGLOBAL DL_GLOBAL
9989# else
9990# define LT_DLGLOBAL 0
9991# endif
9992#endif
9993
9994/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9995 find out it does not work in some platform. */
9996#ifndef LT_DLLAZY_OR_NOW
9997# ifdef RTLD_LAZY
9998# define LT_DLLAZY_OR_NOW RTLD_LAZY
9999# else
10000# ifdef DL_LAZY
10001# define LT_DLLAZY_OR_NOW DL_LAZY
10002# else
10003# ifdef RTLD_NOW
10004# define LT_DLLAZY_OR_NOW RTLD_NOW
10005# else
10006# ifdef DL_NOW
10007# define LT_DLLAZY_OR_NOW DL_NOW
10008# else
10009# define LT_DLLAZY_OR_NOW 0
10010# endif
10011# endif
10012# endif
10013# endif
10014#endif
10015
10016#ifdef __cplusplus
10017extern "C" void exit (int);
10018#endif
10019
10020void fnord() { int i=42;}
10021int main ()
10022{
10023 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10024 int status = $lt_dlunknown;
10025
10026 if (self)
10027 {
10028 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10029 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10030 /* dlclose (self); */
10031 }
10032 else
10033 puts (dlerror ());
10034
10035 exit (status);
10036}
10037_LT_EOF
10038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10039 (eval $ac_link) 2>&5
10040 ac_status=$?
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10043 (./conftest; exit; ) >&5 2>/dev/null
10044 lt_status=$?
10045 case x$lt_status in
10046 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10047 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10048 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10049 esac
10050 else :
10051 # compilation failed
10052 lt_cv_dlopen_self_static=no
10053 fi
10054fi
10055rm -fr conftest*
10056
10057
10058fi
38d24731
RW
10059echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10060echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
1cf3d07d
SE
10061 fi
10062
10063 CPPFLAGS="$save_CPPFLAGS"
10064 LDFLAGS="$save_LDFLAGS"
10065 LIBS="$save_LIBS"
10066 ;;
10067 esac
10068
10069 case $lt_cv_dlopen_self in
10070 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10071 *) enable_dlopen_self=unknown ;;
10072 esac
10073
10074 case $lt_cv_dlopen_self_static in
10075 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10076 *) enable_dlopen_self_static=unknown ;;
10077 esac
10078fi
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096striplib=
10097old_striplib=
38d24731
RW
10098echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10099echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
1cf3d07d
SE
10100if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10101 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10102 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
38d24731
RW
10103 echo "$as_me:$LINENO: result: yes" >&5
10104echo "${ECHO_T}yes" >&6
1cf3d07d
SE
10105else
10106# FIXME - insert some real tests, host_os isn't really good enough
10107 case $host_os in
10108 darwin*)
10109 if test -n "$STRIP" ; then
10110 striplib="$STRIP -x"
10111 old_striplib="$STRIP -S"
38d24731
RW
10112 echo "$as_me:$LINENO: result: yes" >&5
10113echo "${ECHO_T}yes" >&6
1cf3d07d 10114 else
38d24731
RW
10115 echo "$as_me:$LINENO: result: no" >&5
10116echo "${ECHO_T}no" >&6
1cf3d07d
SE
10117 fi
10118 ;;
10119 *)
38d24731
RW
10120 echo "$as_me:$LINENO: result: no" >&5
10121echo "${ECHO_T}no" >&6
1cf3d07d
SE
10122 ;;
10123 esac
10124fi
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137 # Report which library types will actually be built
38d24731
RW
10138 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10139echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10140 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10141echo "${ECHO_T}$can_build_shared" >&6
1cf3d07d 10142
38d24731
RW
10143 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10144echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
1cf3d07d
SE
10145 test "$can_build_shared" = "no" && enable_shared=no
10146
10147 # On AIX, shared libraries and static libraries use the same namespace, and
10148 # are all built from PIC.
10149 case $host_os in
10150 aix3*)
10151 test "$enable_shared" = yes && enable_static=no
10152 if test -n "$RANLIB"; then
10153 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10154 postinstall_cmds='$RANLIB $lib'
10155 fi
10156 ;;
10157
4f6bebc3 10158 aix[4-9]*)
1cf3d07d
SE
10159 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10160 test "$enable_shared" = yes && enable_static=no
10161 fi
10162 ;;
10163 esac
38d24731
RW
10164 echo "$as_me:$LINENO: result: $enable_shared" >&5
10165echo "${ECHO_T}$enable_shared" >&6
1cf3d07d 10166
38d24731
RW
10167 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10168echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
1cf3d07d
SE
10169 # Make sure either enable_shared or enable_static is yes.
10170 test "$enable_shared" = yes || enable_static=yes
38d24731
RW
10171 echo "$as_me:$LINENO: result: $enable_static" >&5
10172echo "${ECHO_T}$enable_static" >&6
1cf3d07d
SE
10173
10174
10175
10176
10177fi
10178ac_ext=c
10179ac_cpp='$CPP $CPPFLAGS'
10180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10182ac_compiler_gnu=$ac_cv_c_compiler_gnu
10183
10184CC="$lt_save_CC"
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
38d24731 10198 ac_config_commands="$ac_config_commands libtool"
1cf3d07d
SE
10199
10200
10201
10202
10203# Only expand once:
10204
10205
10206
10207
10208#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
10209
10210# We need gfortran to compile parts of the library
10211#AC_PROG_FC(gfortran)
10212FC="$GFORTRAN"
38d24731
RW
10213ac_ext=${FC_SRCEXT-f}
10214ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10215ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
10216ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10217if test -n "$ac_tool_prefix"; then
10218 for ac_prog in gfortran
10219 do
10220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10221set dummy $ac_tool_prefix$ac_prog; ac_word=$2
38d24731
RW
10222echo "$as_me:$LINENO: checking for $ac_word" >&5
10223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d
SE
10224if test "${ac_cv_prog_FC+set}" = set; then
10225 echo $ECHO_N "(cached) $ECHO_C" >&6
10226else
10227 if test -n "$FC"; then
10228 ac_cv_prog_FC="$FC" # Let the user override the test.
10229else
10230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231for as_dir in $PATH
10232do
10233 IFS=$as_save_IFS
10234 test -z "$as_dir" && as_dir=.
10235 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 10236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d
SE
10237 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10239 break 2
10240 fi
10241done
10242done
10243
10244fi
10245fi
10246FC=$ac_cv_prog_FC
10247if test -n "$FC"; then
38d24731
RW
10248 echo "$as_me:$LINENO: result: $FC" >&5
10249echo "${ECHO_T}$FC" >&6
1cf3d07d 10250else
38d24731
RW
10251 echo "$as_me:$LINENO: result: no" >&5
10252echo "${ECHO_T}no" >&6
1cf3d07d
SE
10253fi
10254
10255 test -n "$FC" && break
10256 done
10257fi
10258if test -z "$FC"; then
10259 ac_ct_FC=$FC
10260 for ac_prog in gfortran
10261do
10262 # Extract the first word of "$ac_prog", so it can be a program name with args.
10263set dummy $ac_prog; ac_word=$2
38d24731
RW
10264echo "$as_me:$LINENO: checking for $ac_word" >&5
10265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d
SE
10266if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10268else
10269 if test -n "$ac_ct_FC"; then
10270 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10271else
10272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10273for as_dir in $PATH
10274do
10275 IFS=$as_save_IFS
10276 test -z "$as_dir" && as_dir=.
10277 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 10278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d
SE
10279 ac_cv_prog_ac_ct_FC="$ac_prog"
10280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10281 break 2
10282 fi
10283done
10284done
10285
10286fi
10287fi
10288ac_ct_FC=$ac_cv_prog_ac_ct_FC
10289if test -n "$ac_ct_FC"; then
38d24731
RW
10290 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10291echo "${ECHO_T}$ac_ct_FC" >&6
1cf3d07d 10292else
38d24731
RW
10293 echo "$as_me:$LINENO: result: no" >&5
10294echo "${ECHO_T}no" >&6
1cf3d07d
SE
10295fi
10296
10297 test -n "$ac_ct_FC" && break
10298done
10299
38d24731 10300 FC=$ac_ct_FC
1cf3d07d
SE
10301fi
10302
10303
10304# Provide some information about the compiler.
38d24731
RW
10305echo "$as_me:10305:" \
10306 "checking for Fortran compiler version" >&5
1cf3d07d 10307ac_compiler=`set X $ac_compile; echo $2`
38d24731
RW
10308{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10309 (eval $ac_compiler --version </dev/null >&5) 2>&5
1cf3d07d
SE
10310 ac_status=$?
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }
38d24731
RW
10313{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10314 (eval $ac_compiler -v </dev/null >&5) 2>&5
1cf3d07d
SE
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }
38d24731
RW
10318{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10319 (eval $ac_compiler -V </dev/null >&5) 2>&5
1cf3d07d
SE
10320 ac_status=$?
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }
10323rm -f a.out
10324
10325# If we don't use `.F' as extension, the preprocessor is not run on the
10326# input file. (Note that this only needs to work for GNU compilers.)
10327ac_save_ext=$ac_ext
10328ac_ext=F
38d24731
RW
10329echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10330echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
1cf3d07d
SE
10331if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10333else
10334 cat >conftest.$ac_ext <<_ACEOF
10335 program main
10336#ifndef __GNUC__
10337 choke me
10338#endif
10339
10340 end
10341_ACEOF
10342rm -f conftest.$ac_objext
38d24731
RW
10343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10344 (eval $ac_compile) 2>conftest.er1
1cf3d07d
SE
10345 ac_status=$?
10346 grep -v '^ *+' conftest.er1 >conftest.err
10347 rm -f conftest.er1
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
10350 (exit $ac_status); } &&
10351 { ac_try='test -z "$ac_fc_werror_flag"
10352 || test ! -s conftest.err'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10355 ac_status=$?
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; } &&
10358 { ac_try='test -s conftest.$ac_objext'
10359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360 (eval $ac_try) 2>&5
10361 ac_status=$?
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; }; then
1cf3d07d
SE
10364 ac_compiler_gnu=yes
10365else
10366 echo "$as_me: failed program was:" >&5
10367sed 's/^/| /' conftest.$ac_ext >&5
10368
38d24731 10369ac_compiler_gnu=no
1cf3d07d 10370fi
38d24731 10371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
10372ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10373
10374fi
38d24731
RW
10375echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10376echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
1cf3d07d
SE
10377ac_ext=$ac_save_ext
10378ac_test_FFLAGS=${FCFLAGS+set}
10379ac_save_FFLAGS=$FCFLAGS
10380FCFLAGS=
38d24731
RW
10381echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10382echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
1cf3d07d
SE
10383if test "${ac_cv_prog_fc_g+set}" = set; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10385else
10386 FCFLAGS=-g
10387cat >conftest.$ac_ext <<_ACEOF
10388 program main
10389
10390 end
10391_ACEOF
10392rm -f conftest.$ac_objext
38d24731
RW
10393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10394 (eval $ac_compile) 2>conftest.er1
1cf3d07d
SE
10395 ac_status=$?
10396 grep -v '^ *+' conftest.er1 >conftest.err
10397 rm -f conftest.er1
10398 cat conftest.err >&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
10400 (exit $ac_status); } &&
10401 { ac_try='test -z "$ac_fc_werror_flag"
10402 || test ! -s conftest.err'
10403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404 (eval $ac_try) 2>&5
10405 ac_status=$?
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; } &&
10408 { ac_try='test -s conftest.$ac_objext'
10409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410 (eval $ac_try) 2>&5
10411 ac_status=$?
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; }; then
1cf3d07d
SE
10414 ac_cv_prog_fc_g=yes
10415else
10416 echo "$as_me: failed program was:" >&5
10417sed 's/^/| /' conftest.$ac_ext >&5
10418
38d24731 10419ac_cv_prog_fc_g=no
1cf3d07d 10420fi
38d24731 10421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
10422
10423fi
38d24731
RW
10424echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10425echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
1cf3d07d
SE
10426if test "$ac_test_FFLAGS" = set; then
10427 FCFLAGS=$ac_save_FFLAGS
10428elif test $ac_cv_prog_fc_g = yes; then
10429 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10430 FCFLAGS="-g -O2"
10431 else
10432 FCFLAGS="-g"
10433 fi
10434else
10435 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10436 FCFLAGS="-O2"
10437 else
10438 FCFLAGS=
10439 fi
10440fi
10441
10442ac_ext=c
10443ac_cpp='$CPP $CPPFLAGS'
10444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10446ac_compiler_gnu=$ac_cv_c_compiler_gnu
10447
10448
38d24731
RW
10449ac_ext=${FC_SRCEXT-f}
10450ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10451ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
10452ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10453if test -n "$ac_tool_prefix"; then
38d24731 10454 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
1cf3d07d
SE
10455 do
10456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10457set dummy $ac_tool_prefix$ac_prog; ac_word=$2
38d24731
RW
10458echo "$as_me:$LINENO: checking for $ac_word" >&5
10459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d
SE
10460if test "${ac_cv_prog_FC+set}" = set; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10462else
10463 if test -n "$FC"; then
10464 ac_cv_prog_FC="$FC" # Let the user override the test.
10465else
10466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10467for as_dir in $PATH
10468do
10469 IFS=$as_save_IFS
10470 test -z "$as_dir" && as_dir=.
10471 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 10472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d
SE
10473 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10475 break 2
10476 fi
10477done
10478done
10479
10480fi
10481fi
10482FC=$ac_cv_prog_FC
10483if test -n "$FC"; then
38d24731
RW
10484 echo "$as_me:$LINENO: result: $FC" >&5
10485echo "${ECHO_T}$FC" >&6
1cf3d07d 10486else
38d24731
RW
10487 echo "$as_me:$LINENO: result: no" >&5
10488echo "${ECHO_T}no" >&6
1cf3d07d
SE
10489fi
10490
10491 test -n "$FC" && break
10492 done
10493fi
10494if test -z "$FC"; then
10495 ac_ct_FC=$FC
38d24731 10496 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
1cf3d07d
SE
10497do
10498 # Extract the first word of "$ac_prog", so it can be a program name with args.
10499set dummy $ac_prog; ac_word=$2
38d24731
RW
10500echo "$as_me:$LINENO: checking for $ac_word" >&5
10501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d
SE
10502if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10504else
10505 if test -n "$ac_ct_FC"; then
10506 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10507else
10508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509for as_dir in $PATH
10510do
10511 IFS=$as_save_IFS
10512 test -z "$as_dir" && as_dir=.
10513 for ac_exec_ext in '' $ac_executable_extensions; do
38d24731 10514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d
SE
10515 ac_cv_prog_ac_ct_FC="$ac_prog"
10516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10517 break 2
10518 fi
10519done
10520done
10521
10522fi
10523fi
10524ac_ct_FC=$ac_cv_prog_ac_ct_FC
10525if test -n "$ac_ct_FC"; then
38d24731
RW
10526 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10527echo "${ECHO_T}$ac_ct_FC" >&6
1cf3d07d 10528else
38d24731
RW
10529 echo "$as_me:$LINENO: result: no" >&5
10530echo "${ECHO_T}no" >&6
1cf3d07d
SE
10531fi
10532
10533 test -n "$ac_ct_FC" && break
38d24731
RW
10534done
10535
10536 FC=$ac_ct_FC
1cf3d07d
SE
10537fi
10538
10539
10540# Provide some information about the compiler.
38d24731
RW
10541echo "$as_me:10541:" \
10542 "checking for Fortran compiler version" >&5
1cf3d07d 10543ac_compiler=`set X $ac_compile; echo $2`
38d24731
RW
10544{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10545 (eval $ac_compiler --version </dev/null >&5) 2>&5
1cf3d07d
SE
10546 ac_status=$?
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }
38d24731
RW
10549{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10550 (eval $ac_compiler -v </dev/null >&5) 2>&5
1cf3d07d
SE
10551 ac_status=$?
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }
38d24731
RW
10554{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10555 (eval $ac_compiler -V </dev/null >&5) 2>&5
1cf3d07d
SE
10556 ac_status=$?
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }
10559rm -f a.out
10560
10561# If we don't use `.F' as extension, the preprocessor is not run on the
10562# input file. (Note that this only needs to work for GNU compilers.)
10563ac_save_ext=$ac_ext
10564ac_ext=F
38d24731
RW
10565echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10566echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
1cf3d07d
SE
10567if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10568 echo $ECHO_N "(cached) $ECHO_C" >&6
10569else
10570 cat >conftest.$ac_ext <<_ACEOF
10571 program main
10572#ifndef __GNUC__
10573 choke me
10574#endif
10575
10576 end
10577_ACEOF
10578rm -f conftest.$ac_objext
38d24731
RW
10579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10580 (eval $ac_compile) 2>conftest.er1
1cf3d07d
SE
10581 ac_status=$?
10582 grep -v '^ *+' conftest.er1 >conftest.err
10583 rm -f conftest.er1
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
10586 (exit $ac_status); } &&
10587 { ac_try='test -z "$ac_fc_werror_flag"
10588 || test ! -s conftest.err'
10589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590 (eval $ac_try) 2>&5
10591 ac_status=$?
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); }; } &&
10594 { ac_try='test -s conftest.$ac_objext'
10595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10596 (eval $ac_try) 2>&5
10597 ac_status=$?
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; }; then
1cf3d07d
SE
10600 ac_compiler_gnu=yes
10601else
10602 echo "$as_me: failed program was:" >&5
10603sed 's/^/| /' conftest.$ac_ext >&5
10604
38d24731 10605ac_compiler_gnu=no
1cf3d07d 10606fi
38d24731 10607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
10608ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10609
10610fi
38d24731
RW
10611echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10612echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
1cf3d07d
SE
10613ac_ext=$ac_save_ext
10614ac_test_FFLAGS=${FCFLAGS+set}
10615ac_save_FFLAGS=$FCFLAGS
10616FCFLAGS=
38d24731
RW
10617echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10618echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
1cf3d07d
SE
10619if test "${ac_cv_prog_fc_g+set}" = set; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10621else
10622 FCFLAGS=-g
10623cat >conftest.$ac_ext <<_ACEOF
10624 program main
10625
10626 end
10627_ACEOF
10628rm -f conftest.$ac_objext
38d24731
RW
10629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10630 (eval $ac_compile) 2>conftest.er1
1cf3d07d
SE
10631 ac_status=$?
10632 grep -v '^ *+' conftest.er1 >conftest.err
10633 rm -f conftest.er1
10634 cat conftest.err >&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
10636 (exit $ac_status); } &&
10637 { ac_try='test -z "$ac_fc_werror_flag"
10638 || test ! -s conftest.err'
10639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640 (eval $ac_try) 2>&5
10641 ac_status=$?
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; } &&
10644 { ac_try='test -s conftest.$ac_objext'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; }; then
1cf3d07d
SE
10650 ac_cv_prog_fc_g=yes
10651else
10652 echo "$as_me: failed program was:" >&5
10653sed 's/^/| /' conftest.$ac_ext >&5
10654
38d24731 10655ac_cv_prog_fc_g=no
1cf3d07d 10656fi
38d24731 10657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
10658
10659fi
38d24731
RW
10660echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10661echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
1cf3d07d
SE
10662if test "$ac_test_FFLAGS" = set; then
10663 FCFLAGS=$ac_save_FFLAGS
10664elif test $ac_cv_prog_fc_g = yes; then
10665 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10666 FCFLAGS="-g -O2"
10667 else
10668 FCFLAGS="-g"
10669 fi
10670else
10671 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10672 FCFLAGS="-O2"
10673 else
10674 FCFLAGS=
10675 fi
10676fi
10677
10678ac_ext=c
10679ac_cpp='$CPP $CPPFLAGS'
10680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10682ac_compiler_gnu=$ac_cv_c_compiler_gnu
10683
10684if test -z "$FC" || test "X$FC" = "Xno"; then
10685 _lt_disable_FC=yes
10686fi
10687
10688
10689
38d24731
RW
10690 ac_ext=${FC_SRCEXT-f}
10691ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10692ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
10693ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10694
10695
10696archive_cmds_need_lc_FC=no
10697allow_undefined_flag_FC=
10698always_export_symbols_FC=no
10699archive_expsym_cmds_FC=
10700export_dynamic_flag_spec_FC=
10701hardcode_direct_FC=no
10702hardcode_direct_absolute_FC=no
10703hardcode_libdir_flag_spec_FC=
10704hardcode_libdir_flag_spec_ld_FC=
10705hardcode_libdir_separator_FC=
10706hardcode_minus_L_FC=no
10707hardcode_automatic_FC=no
10708inherit_rpath_FC=no
10709module_cmds_FC=
10710module_expsym_cmds_FC=
10711link_all_deplibs_FC=unknown
10712old_archive_cmds_FC=$old_archive_cmds
10713no_undefined_flag_FC=
10714whole_archive_flag_spec_FC=
10715enable_shared_with_static_runtimes_FC=no
10716
10717# Source file extension for fc test sources.
10718ac_ext=${ac_fc_srcext-f}
10719
10720# Object file extension for compiled fc test sources.
10721objext=o
10722objext_FC=$objext
10723
10724# No sense in running all these tests if we already determined that
10725# the FC compiler isn't working. Some variables (like enable_shared)
10726# are currently assumed to apply to all compilers on this platform,
10727# and will be corrupted by setting them based on a non-working compiler.
10728if test "$_lt_disable_FC" != yes; then
10729 # Code to be used in simple compile tests
10730 lt_simple_compile_test_code="\
10731 subroutine t
10732 return
10733 end
10734"
10735
10736 # Code to be used in simple link tests
10737 lt_simple_link_test_code="\
10738 program t
10739 end
10740"
10741
10742 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10743
10744
10745
10746
10747
10748
10749# If no C compiler was specified, use CC.
10750LTCC=${LTCC-"$CC"}
10751
10752# If no C compiler flags were specified, use CFLAGS.
10753LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10754
10755# Allow CC to be a program name with arguments.
10756compiler=$CC
10757
10758
10759 # save warnings/boilerplate of simple test code
10760 ac_outfile=conftest.$ac_objext
10761echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10762eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10763_lt_compiler_boilerplate=`cat conftest.err`
10764$RM conftest*
10765
10766 ac_outfile=conftest.$ac_objext
10767echo "$lt_simple_link_test_code" >conftest.$ac_ext
10768eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10769_lt_linker_boilerplate=`cat conftest.err`
10770$RM conftest*
10771
10772
10773 # Allow CC to be a program name with arguments.
10774 lt_save_CC="$CC"
10775 CC=${FC-"f95"}
10776 compiler=$CC
10777 compiler_FC=$CC
10778 for cc_temp in $compiler""; do
10779 case $cc_temp in
10780 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10781 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10782 \-*) ;;
10783 *) break;;
10784 esac
10785done
10786cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10787
10788
10789 if test -n "$compiler"; then
38d24731
RW
10790 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10791echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10792 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10793echo "${ECHO_T}$can_build_shared" >&6
1cf3d07d 10794
38d24731
RW
10795 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10796echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
1cf3d07d
SE
10797 test "$can_build_shared" = "no" && enable_shared=no
10798
10799 # On AIX, shared libraries and static libraries use the same namespace, and
10800 # are all built from PIC.
10801 case $host_os in
10802 aix3*)
10803 test "$enable_shared" = yes && enable_static=no
10804 if test -n "$RANLIB"; then
10805 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10806 postinstall_cmds='$RANLIB $lib'
10807 fi
10808 ;;
4f6bebc3 10809 aix[4-9]*)
1cf3d07d
SE
10810 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10811 test "$enable_shared" = yes && enable_static=no
10812 fi
10813 ;;
10814 esac
38d24731
RW
10815 echo "$as_me:$LINENO: result: $enable_shared" >&5
10816echo "${ECHO_T}$enable_shared" >&6
1cf3d07d 10817
38d24731
RW
10818 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10819echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
1cf3d07d
SE
10820 # Make sure either enable_shared or enable_static is yes.
10821 test "$enable_shared" = yes || enable_static=yes
38d24731
RW
10822 echo "$as_me:$LINENO: result: $enable_static" >&5
10823echo "${ECHO_T}$enable_static" >&6
1cf3d07d
SE
10824
10825 GCC_FC="$ac_cv_fc_compiler_gnu"
10826 LD_FC="$LD"
10827
10828 ## CAVEAT EMPTOR:
10829 ## There is no encapsulation within the following macros, do not change
10830 ## the running order or otherwise move them around unless you know exactly
10831 ## what you are doing...
10832 # Dependencies to place before and after the object being linked:
10833predep_objects_FC=
10834postdep_objects_FC=
10835predeps_FC=
10836postdeps_FC=
10837compiler_lib_search_path_FC=
10838
10839cat > conftest.$ac_ext <<_LT_EOF
10840 subroutine foo
10841 implicit none
10842 integer a
10843 a=0
10844 return
10845 end
10846_LT_EOF
10847
10848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10849 (eval $ac_compile) 2>&5
10850 ac_status=$?
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; then
10853 # Parse the compiler output and extract the necessary
10854 # objects, libraries and library flags.
10855
10856 # Sentinel used to keep track of whether or not we are before
10857 # the conftest object file.
10858 pre_test_object_deps_done=no
10859
10860 # The `*' in the case matches for architectures that use `case' in
10861 # $output_verbose_cmd can trigger glob expansion during the loop
10862 # eval without this substitution.
10863 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10864
10865 for p in `eval $output_verbose_link_cmd`; do
10866 case $p in
10867
10868 -L* | -R* | -l*)
10869 # Some compilers place space between "-{L,R}" and the path.
10870 # Remove the space.
10871 if test $p = "-L" ||
10872 test $p = "-R"; then
10873 prev=$p
10874 continue
10875 else
10876 prev=
10877 fi
10878
10879 if test "$pre_test_object_deps_done" = no; then
10880 case $p in
10881 -L* | -R*)
10882 # Internal compiler library paths should come after those
10883 # provided the user. The postdeps already come after the
10884 # user supplied libs so there is no need to process them.
10885 if test -z "$compiler_lib_search_path_FC"; then
10886 compiler_lib_search_path_FC="${prev}${p}"
10887 else
10888 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
10889 fi
10890 ;;
10891 # The "-l" case would never come before the object being
10892 # linked, so don't bother handling this case.
10893 esac
10894 else
10895 if test -z "$postdeps_FC"; then
10896 postdeps_FC="${prev}${p}"
10897 else
10898 postdeps_FC="${postdeps_FC} ${prev}${p}"
10899 fi
10900 fi
10901 ;;
10902
10903 *.$objext)
10904 # This assumes that the test object file only shows up
10905 # once in the compiler output.
10906 if test "$p" = "conftest.$objext"; then
10907 pre_test_object_deps_done=yes
10908 continue
10909 fi
10910
10911 if test "$pre_test_object_deps_done" = no; then
10912 if test -z "$predep_objects_FC"; then
10913 predep_objects_FC="$p"
10914 else
10915 predep_objects_FC="$predep_objects_FC $p"
10916 fi
10917 else
10918 if test -z "$postdep_objects_FC"; then
10919 postdep_objects_FC="$p"
10920 else
10921 postdep_objects_FC="$postdep_objects_FC $p"
10922 fi
10923 fi
10924 ;;
10925
10926 *) ;; # Ignore the rest.
10927
10928 esac
10929 done
10930
10931 # Clean up.
10932 rm -f a.out a.exe
10933else
10934 echo "libtool.m4: error: problem compiling FC test program"
10935fi
10936
10937$RM -f confest.$objext
10938
10939# PORTME: override above test on systems where it is broken
10940
10941
10942case " $postdeps_FC " in
10943*" -lc "*) archive_cmds_need_lc_FC=no ;;
10944esac
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971 lt_prog_compiler_wl_FC=
10972lt_prog_compiler_pic_FC=
10973lt_prog_compiler_static_FC=
10974
38d24731
RW
10975echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10976echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
1cf3d07d
SE
10977
10978 if test "$GCC" = yes; then
10979 lt_prog_compiler_wl_FC='-Wl,'
10980 lt_prog_compiler_static_FC='-static'
10981
10982 case $host_os in
10983 aix*)
10984 # All AIX code is PIC.
10985 if test "$host_cpu" = ia64; then
10986 # AIX 5 now supports IA64 processor
10987 lt_prog_compiler_static_FC='-Bstatic'
10988 fi
10989 ;;
10990
10991 amigaos*)
10992 if test "$host_cpu" = m68k; then
10993 # FIXME: we need at least 68020 code to build shared libraries, but
10994 # adding the `-m68020' flag to GCC prevents building anything better,
10995 # like `-m68040'.
10996 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
10997 fi
10998 ;;
10999
11000 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11001 # PIC is the default for these OSes.
11002 ;;
11003
11004 mingw* | cygwin* | pw32* | os2*)
11005 # This hack is so that the source file can tell whether it is being
11006 # built for inclusion in a dll (and should export symbols for example).
11007 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11008 # (--disable-auto-import) libraries
11009 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
11010 ;;
11011
11012 darwin* | rhapsody*)
11013 # PIC is the default on this platform
11014 # Common symbols not allowed in MH_DYLIB files
11015 lt_prog_compiler_pic_FC='-fno-common'
11016 ;;
11017
11018 hpux*)
11019 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11020 # not for PA HP-UX.
11021 case $host_cpu in
11022 hppa*64*|ia64*)
11023 # +Z the default
11024 ;;
11025 *)
11026 lt_prog_compiler_pic_FC='-fPIC'
11027 ;;
11028 esac
11029 ;;
11030
11031 interix[3-9]*)
11032 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11033 # Instead, we relocate shared libraries at runtime.
11034 ;;
11035
11036 msdosdjgpp*)
11037 # Just because we use GCC doesn't mean we suddenly get shared libraries
11038 # on systems that don't support them.
11039 lt_prog_compiler_can_build_shared_FC=no
11040 enable_shared=no
11041 ;;
11042
11043 *nto* | *qnx*)
11044 # QNX uses GNU C++, but need to define -shared option too, otherwise
11045 # it will coredump.
11046 lt_prog_compiler_pic_FC='-fPIC -shared'
11047 ;;
11048
11049 sysv4*MP*)
11050 if test -d /usr/nec; then
11051 lt_prog_compiler_pic_FC=-Kconform_pic
11052 fi
11053 ;;
11054
11055 *)
11056 lt_prog_compiler_pic_FC='-fPIC'
11057 ;;
11058 esac
11059 else
11060 # PORTME Check for flag to pass linker flags through the system compiler.
11061 case $host_os in
11062 aix*)
11063 lt_prog_compiler_wl_FC='-Wl,'
11064 if test "$host_cpu" = ia64; then
11065 # AIX 5 now supports IA64 processor
11066 lt_prog_compiler_static_FC='-Bstatic'
11067 else
11068 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
11069 fi
11070 ;;
11071 darwin*)
11072 # PIC is the default on this platform
11073 # Common symbols not allowed in MH_DYLIB files
11074 case $cc_basename in
11075 xlc*)
11076 lt_prog_compiler_pic_FC='-qnocommon'
11077 lt_prog_compiler_wl_FC='-Wl,'
11078 ;;
11079 esac
11080 ;;
11081
11082 mingw* | cygwin* | pw32* | os2*)
11083 # This hack is so that the source file can tell whether it is being
11084 # built for inclusion in a dll (and should export symbols for example).
11085 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
11086 ;;
11087
11088 hpux9* | hpux10* | hpux11*)
11089 lt_prog_compiler_wl_FC='-Wl,'
11090 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11091 # not for PA HP-UX.
11092 case $host_cpu in
11093 hppa*64*|ia64*)
11094 # +Z the default
11095 ;;
11096 *)
11097 lt_prog_compiler_pic_FC='+Z'
11098 ;;
11099 esac
11100 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11101 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
11102 ;;
11103
11104 irix5* | irix6* | nonstopux*)
11105 lt_prog_compiler_wl_FC='-Wl,'
11106 # PIC (with -KPIC) is the default.
11107 lt_prog_compiler_static_FC='-non_shared'
11108 ;;
11109
11110 linux* | k*bsd*-gnu)
11111 case $cc_basename in
11112 icc* | ecc*)
11113 lt_prog_compiler_wl_FC='-Wl,'
11114 lt_prog_compiler_pic_FC='-KPIC'
11115 lt_prog_compiler_static_FC='-static'
11116 ;;
11117 pgcc* | pgf77* | pgf90* | pgf95*)
11118 # Portland Group compilers (*not* the Pentium gcc compiler,
11119 # which looks to be a dead project)
11120 lt_prog_compiler_wl_FC='-Wl,'
11121 lt_prog_compiler_pic_FC='-fpic'
11122 lt_prog_compiler_static_FC='-Bstatic'
11123 ;;
11124 ccc*)
11125 lt_prog_compiler_wl_FC='-Wl,'
11126 # All Alpha code is PIC.
11127 lt_prog_compiler_static_FC='-non_shared'
11128 ;;
11129 *)
11130 case `$CC -V 2>&1 | sed 5q` in
11131 *Sun\ C*)
11132 # Sun C 5.9
11133 lt_prog_compiler_pic_FC='-KPIC'
11134 lt_prog_compiler_static_FC='-Bstatic'
11135 lt_prog_compiler_wl_FC='-Wl,'
11136 ;;
11137 *Sun\ F*)
11138 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11139 lt_prog_compiler_pic_FC='-KPIC'
11140 lt_prog_compiler_static_FC='-Bstatic'
11141 lt_prog_compiler_wl_FC=''
11142 ;;
11143 esac
11144 ;;
11145 esac
11146 ;;
11147
11148 newsos6)
11149 lt_prog_compiler_pic_FC='-KPIC'
11150 lt_prog_compiler_static_FC='-Bstatic'
11151 ;;
11152
11153 *nto* | *qnx*)
11154 # QNX uses GNU C++, but need to define -shared option too, otherwise
11155 # it will coredump.
11156 lt_prog_compiler_pic_FC='-fPIC -shared'
11157 ;;
11158
11159 osf3* | osf4* | osf5*)
11160 lt_prog_compiler_wl_FC='-Wl,'
11161 # All OSF/1 code is PIC.
11162 lt_prog_compiler_static_FC='-non_shared'
11163 ;;
11164
11165 rdos*)
11166 lt_prog_compiler_static_FC='-non_shared'
11167 ;;
11168
11169 solaris*)
11170 lt_prog_compiler_pic_FC='-KPIC'
11171 lt_prog_compiler_static_FC='-Bstatic'
11172 case $cc_basename in
11173 f77* | f90* | f95*)
11174 lt_prog_compiler_wl_FC='-Qoption ld ';;
11175 *)
11176 lt_prog_compiler_wl_FC='-Wl,';;
11177 esac
11178 ;;
11179
11180 sunos4*)
11181 lt_prog_compiler_wl_FC='-Qoption ld '
11182 lt_prog_compiler_pic_FC='-PIC'
11183 lt_prog_compiler_static_FC='-Bstatic'
11184 ;;
11185
11186 sysv4 | sysv4.2uw2* | sysv4.3*)
11187 lt_prog_compiler_wl_FC='-Wl,'
11188 lt_prog_compiler_pic_FC='-KPIC'
11189 lt_prog_compiler_static_FC='-Bstatic'
11190 ;;
11191
11192 sysv4*MP*)
11193 if test -d /usr/nec ;then
11194 lt_prog_compiler_pic_FC='-Kconform_pic'
11195 lt_prog_compiler_static_FC='-Bstatic'
11196 fi
11197 ;;
11198
11199 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11200 lt_prog_compiler_wl_FC='-Wl,'
11201 lt_prog_compiler_pic_FC='-KPIC'
11202 lt_prog_compiler_static_FC='-Bstatic'
11203 ;;
11204
11205 unicos*)
11206 lt_prog_compiler_wl_FC='-Wl,'
11207 lt_prog_compiler_can_build_shared_FC=no
11208 ;;
11209
11210 uts4*)
11211 lt_prog_compiler_pic_FC='-pic'
11212 lt_prog_compiler_static_FC='-Bstatic'
11213 ;;
11214
11215 *)
11216 lt_prog_compiler_can_build_shared_FC=no
11217 ;;
11218 esac
11219 fi
11220
11221case $host_os in
11222 # For platforms which do not support PIC, -DPIC is meaningless:
11223 *djgpp*)
11224 lt_prog_compiler_pic_FC=
11225 ;;
11226 *)
11227 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
11228 ;;
11229esac
38d24731
RW
11230echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5
11231echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6
1cf3d07d
SE
11232
11233
11234
11235#
11236# Check to make sure the PIC flag actually works.
11237#
11238if test -n "$lt_prog_compiler_pic_FC"; then
38d24731
RW
11239 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
11240echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6
1cf3d07d
SE
11241if test "${lt_prog_compiler_pic_works_FC+set}" = set; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11243else
11244 lt_prog_compiler_pic_works_FC=no
11245 ac_outfile=conftest.$ac_objext
11246 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11247 lt_compiler_flag="$lt_prog_compiler_pic_FC"
11248 # Insert the option either (1) after the last *FLAGS variable, or
11249 # (2) before a word containing "conftest.", or (3) at the end.
11250 # Note that $ac_compile itself does not contain backslashes and begins
11251 # with a dollar sign (not a hyphen), so the echo should work correctly.
11252 # The option is referenced via a variable to avoid confusing sed.
11253 lt_compile=`echo "$ac_compile" | $SED \
11254 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11256 -e 's:$: $lt_compiler_flag:'`
38d24731 11257 (eval echo "\"\$as_me:11257: $lt_compile\"" >&5)
1cf3d07d
SE
11258 (eval "$lt_compile" 2>conftest.err)
11259 ac_status=$?
11260 cat conftest.err >&5
38d24731 11261 echo "$as_me:11261: \$? = $ac_status" >&5
1cf3d07d
SE
11262 if (exit $ac_status) && test -s "$ac_outfile"; then
11263 # The compiler can only warn and ignore the option if not recognized
11264 # So say no if there are warnings other than the usual output.
11265 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11267 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11268 lt_prog_compiler_pic_works_FC=yes
11269 fi
11270 fi
11271 $RM conftest*
11272
11273fi
38d24731
RW
11274echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_FC" >&5
11275echo "${ECHO_T}$lt_prog_compiler_pic_works_FC" >&6
1cf3d07d
SE
11276
11277if test x"$lt_prog_compiler_pic_works_FC" = xyes; then
11278 case $lt_prog_compiler_pic_FC in
11279 "" | " "*) ;;
11280 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
11281 esac
11282else
11283 lt_prog_compiler_pic_FC=
11284 lt_prog_compiler_can_build_shared_FC=no
11285fi
11286
11287fi
11288
11289
11290
11291#
11292# Check to make sure the static flag actually works.
11293#
11294wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
38d24731
RW
11295echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11296echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
1cf3d07d
SE
11297if test "${lt_prog_compiler_static_works_FC+set}" = set; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11299else
11300 lt_prog_compiler_static_works_FC=no
11301 save_LDFLAGS="$LDFLAGS"
11302 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11303 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11304 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11305 # The linker can only warn and ignore the option if not recognized
11306 # So say no if there are warnings
11307 if test -s conftest.err; then
11308 # Append any errors to the config.log.
11309 cat conftest.err 1>&5
11310 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11311 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11312 if diff conftest.exp conftest.er2 >/dev/null; then
11313 lt_prog_compiler_static_works_FC=yes
11314 fi
11315 else
11316 lt_prog_compiler_static_works_FC=yes
11317 fi
11318 fi
11319 $RM conftest*
11320 LDFLAGS="$save_LDFLAGS"
11321
11322fi
38d24731
RW
11323echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_FC" >&5
11324echo "${ECHO_T}$lt_prog_compiler_static_works_FC" >&6
1cf3d07d
SE
11325
11326if test x"$lt_prog_compiler_static_works_FC" = xyes; then
11327 :
11328else
11329 lt_prog_compiler_static_FC=
11330fi
11331
11332
11333
11334
38d24731
RW
11335 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11336echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
1cf3d07d
SE
11337if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339else
11340 lt_cv_prog_compiler_c_o_FC=no
11341 $RM -r conftest 2>/dev/null
11342 mkdir conftest
11343 cd conftest
11344 mkdir out
11345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11346
11347 lt_compiler_flag="-o out/conftest2.$ac_objext"
11348 # Insert the option either (1) after the last *FLAGS variable, or
11349 # (2) before a word containing "conftest.", or (3) at the end.
11350 # Note that $ac_compile itself does not contain backslashes and begins
11351 # with a dollar sign (not a hyphen), so the echo should work correctly.
11352 lt_compile=`echo "$ac_compile" | $SED \
11353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11355 -e 's:$: $lt_compiler_flag:'`
38d24731 11356 (eval echo "\"\$as_me:11356: $lt_compile\"" >&5)
1cf3d07d
SE
11357 (eval "$lt_compile" 2>out/conftest.err)
11358 ac_status=$?
11359 cat out/conftest.err >&5
38d24731 11360 echo "$as_me:11360: \$? = $ac_status" >&5
1cf3d07d
SE
11361 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11362 then
11363 # The compiler can only warn and ignore the option if not recognized
11364 # So say no if there are warnings
11365 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11366 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11367 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11368 lt_cv_prog_compiler_c_o_FC=yes
11369 fi
11370 fi
11371 chmod u+w . 2>&5
11372 $RM conftest*
11373 # SGI C++ compiler will create directory out/ii_files/ for
11374 # template instantiation
11375 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11376 $RM out/* && rmdir out
11377 cd ..
11378 $RM -r conftest
11379 $RM conftest*
11380
11381fi
38d24731
RW
11382echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11383echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
1cf3d07d
SE
11384
11385
11386
38d24731
RW
11387 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11388echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
1cf3d07d
SE
11389if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
11391else
11392 lt_cv_prog_compiler_c_o_FC=no
11393 $RM -r conftest 2>/dev/null
11394 mkdir conftest
11395 cd conftest
11396 mkdir out
11397 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11398
11399 lt_compiler_flag="-o out/conftest2.$ac_objext"
11400 # Insert the option either (1) after the last *FLAGS variable, or
11401 # (2) before a word containing "conftest.", or (3) at the end.
11402 # Note that $ac_compile itself does not contain backslashes and begins
11403 # with a dollar sign (not a hyphen), so the echo should work correctly.
11404 lt_compile=`echo "$ac_compile" | $SED \
11405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11407 -e 's:$: $lt_compiler_flag:'`
38d24731 11408 (eval echo "\"\$as_me:11408: $lt_compile\"" >&5)
1cf3d07d
SE
11409 (eval "$lt_compile" 2>out/conftest.err)
11410 ac_status=$?
11411 cat out/conftest.err >&5
38d24731 11412 echo "$as_me:11412: \$? = $ac_status" >&5
1cf3d07d
SE
11413 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11414 then
11415 # The compiler can only warn and ignore the option if not recognized
11416 # So say no if there are warnings
11417 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11418 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11419 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11420 lt_cv_prog_compiler_c_o_FC=yes
11421 fi
11422 fi
11423 chmod u+w . 2>&5
11424 $RM conftest*
11425 # SGI C++ compiler will create directory out/ii_files/ for
11426 # template instantiation
11427 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11428 $RM out/* && rmdir out
11429 cd ..
11430 $RM -r conftest
11431 $RM conftest*
11432
11433fi
38d24731
RW
11434echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11435echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
1cf3d07d
SE
11436
11437
11438
11439
11440hard_links="nottested"
11441if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
11442 # do not overwrite the value of need_locks provided by the user
38d24731
RW
11443 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11444echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
1cf3d07d
SE
11445 hard_links=yes
11446 $RM conftest*
11447 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11448 touch conftest.a
11449 ln conftest.a conftest.b 2>&5 || hard_links=no
11450 ln conftest.a conftest.b 2>/dev/null && hard_links=no
38d24731
RW
11451 echo "$as_me:$LINENO: result: $hard_links" >&5
11452echo "${ECHO_T}$hard_links" >&6
1cf3d07d
SE
11453 if test "$hard_links" = no; then
11454 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11455echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11456 need_locks=warn
11457 fi
11458else
11459 need_locks=no
11460fi
11461
11462
11463
38d24731
RW
11464 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11465echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1cf3d07d
SE
11466
11467 runpath_var=
11468 allow_undefined_flag_FC=
11469 always_export_symbols_FC=no
11470 archive_cmds_FC=
11471 archive_expsym_cmds_FC=
11472 compiler_needs_object_FC=no
11473 enable_shared_with_static_runtimes_FC=no
11474 export_dynamic_flag_spec_FC=
11475 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11476 hardcode_automatic_FC=no
11477 hardcode_direct_FC=no
11478 hardcode_direct_absolute_FC=no
11479 hardcode_libdir_flag_spec_FC=
11480 hardcode_libdir_flag_spec_ld_FC=
11481 hardcode_libdir_separator_FC=
11482 hardcode_minus_L_FC=no
11483 hardcode_shlibpath_var_FC=unsupported
11484 inherit_rpath_FC=no
11485 link_all_deplibs_FC=unknown
11486 module_cmds_FC=
11487 module_expsym_cmds_FC=
11488 old_archive_from_new_cmds_FC=
11489 old_archive_from_expsyms_cmds_FC=
11490 thread_safe_flag_spec_FC=
11491 whole_archive_flag_spec_FC=
11492 # include_expsyms should be a list of space-separated symbols to be *always*
11493 # included in the symbol list
11494 include_expsyms_FC=
11495 # exclude_expsyms can be an extended regexp of symbols to exclude
11496 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11497 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11498 # as well as any symbol that contains `d'.
11499 exclude_expsyms_FC="_GLOBAL_OFFSET_TABLE_"
11500 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11501 # platforms (ab)use it in PIC code, but their linkers get confused if
11502 # the symbol is explicitly referenced. Since portable code cannot
11503 # rely on this symbol name, it's probably fine to never include it in
11504 # preloaded symbol tables.
11505 extract_expsyms_cmds=
11506
11507 case $host_os in
11508 cygwin* | mingw* | pw32*)
11509 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11510 # When not using gcc, we currently assume that we are using
11511 # Microsoft Visual C++.
11512 if test "$GCC" != yes; then
11513 with_gnu_ld=no
11514 fi
11515 ;;
11516 interix*)
11517 # we just hope/assume this is gcc and not c89 (= MSVC++)
11518 with_gnu_ld=yes
11519 ;;
11520 openbsd*)
11521 with_gnu_ld=no
11522 ;;
11523 esac
11524
11525 ld_shlibs_FC=yes
11526 if test "$with_gnu_ld" = yes; then
11527 # If archive_cmds runs LD, not CC, wlarc should be empty
11528 wlarc='${wl}'
11529
11530 # Set some defaults for GNU ld with shared library support. These
11531 # are reset later if shared libraries are not supported. Putting them
11532 # here allows them to be overridden if necessary.
11533 runpath_var=LD_RUN_PATH
11534 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11535 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
11536 # ancient GNU ld didn't support --whole-archive et. al.
11537 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11538 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11539 else
11540 whole_archive_flag_spec_FC=
11541 fi
11542 supports_anon_versioning=no
11543 case `$LD -v 2>&1` in
11544 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11545 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11546 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11547 *\ 2.11.*) ;; # other 2.11 versions
11548 *) supports_anon_versioning=yes ;;
11549 esac
11550
11551 # See if GNU ld supports shared libraries.
11552 case $host_os in
4f6bebc3 11553 aix[3-9]*)
1cf3d07d
SE
11554 # On AIX/PPC, the GNU linker is very broken
11555 if test "$host_cpu" != ia64; then
11556 ld_shlibs_FC=no
11557 cat <<_LT_EOF 1>&2
11558
11559*** Warning: the GNU linker, at least up to release 2.9.1, is reported
11560*** to be unable to reliably create shared libraries on AIX.
11561*** Therefore, libtool is disabling shared libraries support. If you
11562*** really care for shared libraries, you may want to modify your PATH
11563*** so that a non-GNU linker is found, and then restart.
11564
11565_LT_EOF
11566 fi
11567 ;;
11568
11569 amigaos*)
11570 if test "$host_cpu" = m68k; then
11571 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)'
11572 hardcode_libdir_flag_spec_FC='-L$libdir'
11573 hardcode_minus_L_FC=yes
11574 fi
11575
11576 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11577 # that the semantics of dynamic libraries on AmigaOS, at least up
11578 # to version 4, is to share data among multiple programs linked
11579 # with the same dynamic library. Since this doesn't match the
11580 # behavior of shared libraries on other platforms, we can't use
11581 # them.
11582 ld_shlibs_FC=no
11583 ;;
11584
11585 beos*)
11586 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11587 allow_undefined_flag_FC=unsupported
11588 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11589 # support --undefined. This deserves some investigation. FIXME
11590 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11591 else
11592 ld_shlibs_FC=no
11593 fi
11594 ;;
11595
11596 cygwin* | mingw* | pw32*)
11597 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
11598 # as there is no search path for DLLs.
11599 hardcode_libdir_flag_spec_FC='-L$libdir'
11600 allow_undefined_flag_FC=unsupported
11601 always_export_symbols_FC=no
11602 enable_shared_with_static_runtimes_FC=yes
11603 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11604
11605 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11606 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11607 # If the export-symbols file already is a .def file (1st line
11608 # is EXPORTS), use it as is; otherwise, prepend...
11609 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11610 cp $export_symbols $output_objdir/$soname.def;
11611 else
11612 echo EXPORTS > $output_objdir/$soname.def;
11613 cat $export_symbols >> $output_objdir/$soname.def;
11614 fi~
11615 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11616 else
11617 ld_shlibs_FC=no
11618 fi
11619 ;;
11620
11621 interix[3-9]*)
11622 hardcode_direct_FC=no
11623 hardcode_shlibpath_var_FC=no
11624 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
11625 export_dynamic_flag_spec_FC='${wl}-E'
11626 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11627 # Instead, shared libraries are loaded at an image base (0x10000000 by
11628 # default) and relocated if they conflict, which is a slow very memory
11629 # consuming and fragmenting process. To avoid this, we pick a random,
11630 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11631 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11632 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'
11633 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'
11634 ;;
11635
11636 gnu* | linux* | tpf* | k*bsd*-gnu)
11637 tmp_diet=no
11638 if test "$host_os" = linux-dietlibc; then
11639 case $cc_basename in
11640 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11641 esac
11642 fi
11643 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11644 && test "$tmp_diet" = no
11645 then
11646 tmp_addflag=
11647 case $cc_basename,$host_cpu in
11648 pgcc*) # Portland Group C compiler
11649 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'
11650 tmp_addflag=' $pic_flag'
11651 ;;
11652 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11653 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'
11654 tmp_addflag=' $pic_flag -Mnomain' ;;
11655 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11656 tmp_addflag=' -i_dynamic' ;;
11657 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11658 tmp_addflag=' -i_dynamic -nofor_main' ;;
11659 ifc* | ifort*) # Intel Fortran compiler
11660 tmp_addflag=' -nofor_main' ;;
11661 esac
11662 case `$CC -V 2>&1 | sed 5q` in
11663 *Sun\ C*) # Sun C 5.9
11664 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'
11665 compiler_needs_object_FC=yes
11666 tmp_sharedflag='-G' ;;
11667 *Sun\ F*) # Sun Fortran 8.3
11668 tmp_sharedflag='-G' ;;
11669 *)
11670 tmp_sharedflag='-shared' ;;
11671 esac
11672 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11673
11674 if test "x$supports_anon_versioning" = xyes; then
11675 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
11676 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11677 echo "local: *; };" >> $output_objdir/$libname.ver~
11678 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11679 fi
11680 else
11681 ld_shlibs_FC=no
11682 fi
11683 ;;
11684
11685 netbsd*)
11686 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11687 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11688 wlarc=
11689 else
11690 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11691 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11692 fi
11693 ;;
11694
11695 solaris*)
11696 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11697 ld_shlibs_FC=no
11698 cat <<_LT_EOF 1>&2
11699
11700*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11701*** create shared libraries on Solaris systems. Therefore, libtool
11702*** is disabling shared libraries support. We urge you to upgrade GNU
11703*** binutils to release 2.9.1 or newer. Another option is to modify
11704*** your PATH or compiler configuration so that the native linker is
11705*** used, and then restart.
11706
11707_LT_EOF
11708 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11709 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11710 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11711 else
11712 ld_shlibs_FC=no
11713 fi
11714 ;;
11715
11716 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11717 case `$LD -v 2>&1` in
11718 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11719 ld_shlibs_FC=no
11720 cat <<_LT_EOF 1>&2
11721
11722*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11723*** reliably create shared libraries on SCO systems. Therefore, libtool
11724*** is disabling shared libraries support. We urge you to upgrade GNU
11725*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11726*** your PATH or compiler configuration so that the native linker is
11727*** used, and then restart.
11728
11729_LT_EOF
11730 ;;
11731 *)
11732 # For security reasons, it is highly recommended that you always
11733 # use absolute paths for naming shared libraries, and exclude the
11734 # DT_RUNPATH tag from executables and libraries. But doing so
11735 # requires that you compile everything twice, which is a pain.
11736 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11737 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11738 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11739 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11740 else
11741 ld_shlibs_FC=no
11742 fi
11743 ;;
11744 esac
11745 ;;
11746
11747 sunos4*)
11748 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11749 wlarc=
11750 hardcode_direct_FC=yes
11751 hardcode_shlibpath_var_FC=no
11752 ;;
11753
11754 *)
11755 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11756 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11757 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11758 else
11759 ld_shlibs_FC=no
11760 fi
11761 ;;
11762 esac
11763
11764 if test "$ld_shlibs_FC" = no; then
11765 runpath_var=
11766 hardcode_libdir_flag_spec_FC=
11767 export_dynamic_flag_spec_FC=
11768 whole_archive_flag_spec_FC=
11769 fi
11770 else
11771 # PORTME fill in a description of your system's linker (not GNU ld)
11772 case $host_os in
11773 aix3*)
11774 allow_undefined_flag_FC=unsupported
11775 always_export_symbols_FC=yes
11776 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'
11777 # Note: this linker hardcodes the directories in LIBPATH if there
11778 # are no directories specified by -L.
11779 hardcode_minus_L_FC=yes
11780 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11781 # Neither direct hardcoding nor static linking is supported with a
11782 # broken collect2.
11783 hardcode_direct_FC=unsupported
11784 fi
11785 ;;
11786
4f6bebc3 11787 aix[4-9]*)
1cf3d07d
SE
11788 if test "$host_cpu" = ia64; then
11789 # On IA64, the linker does run time linking by default, so we don't
11790 # have to do anything special.
11791 aix_use_runtimelinking=no
11792 exp_sym_flag='-Bexport'
11793 no_entry_flag=""
11794 else
11795 # If we're using GNU nm, then we don't want the "-C" option.
11796 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11797 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11798 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'
11799 else
11800 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'
11801 fi
11802 aix_use_runtimelinking=no
11803
11804 # Test if we are trying to use run time linking or normal
11805 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11806 # need to do runtime linking.
4f6bebc3 11807 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
11808 for ld_flag in $LDFLAGS; do
11809 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11810 aix_use_runtimelinking=yes
11811 break
11812 fi
11813 done
11814 ;;
11815 esac
11816
11817 exp_sym_flag='-bexport'
11818 no_entry_flag='-bnoentry'
11819 fi
11820
11821 # When large executables or shared objects are built, AIX ld can
11822 # have problems creating the table of contents. If linking a library
11823 # or program results in "error TOC overflow" add -mminimal-toc to
11824 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11825 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11826
11827 archive_cmds_FC=''
11828 hardcode_direct_FC=yes
11829 hardcode_direct_absolute_FC=yes
11830 hardcode_libdir_separator_FC=':'
11831 link_all_deplibs_FC=yes
11832 file_list_spec_FC='${wl}-f,'
11833
11834 if test "$GCC" = yes; then
11835 case $host_os in aix4.[012]|aix4.[012].*)
11836 # We only want to do this on AIX 4.2 and lower, the check
11837 # below for broken collect2 doesn't work under 4.3+
11838 collect2name=`${CC} -print-prog-name=collect2`
11839 if test -f "$collect2name" &&
11840 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11841 then
11842 # We have reworked collect2
11843 :
11844 else
11845 # We have old collect2
11846 hardcode_direct_FC=unsupported
11847 # It fails to find uninstalled libraries when the uninstalled
11848 # path is not listed in the libpath. Setting hardcode_minus_L
11849 # to unsupported forces relinking
11850 hardcode_minus_L_FC=yes
11851 hardcode_libdir_flag_spec_FC='-L$libdir'
11852 hardcode_libdir_separator_FC=
11853 fi
11854 ;;
11855 esac
11856 shared_flag='-shared'
11857 if test "$aix_use_runtimelinking" = yes; then
11858 shared_flag="$shared_flag "'${wl}-G'
11859 fi
11860 else
11861 # not using gcc
11862 if test "$host_cpu" = ia64; then
11863 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11864 # chokes on -Wl,-G. The following line is correct:
11865 shared_flag='-G'
11866 else
11867 if test "$aix_use_runtimelinking" = yes; then
11868 shared_flag='${wl}-G'
11869 else
11870 shared_flag='${wl}-bM:SRE'
11871 fi
11872 fi
11873 fi
11874
11875 # It seems that -bexpall does not export symbols beginning with
11876 # underscore (_), so it is better to generate a list of symbols to export.
11877 always_export_symbols_FC=yes
11878 if test "$aix_use_runtimelinking" = yes; then
11879 # Warning - without using the other runtime loading flags (-brtl),
11880 # -berok will link without error, but may produce a broken library.
11881 allow_undefined_flag_FC='-berok'
11882 # Determine the default libpath from the value encoded in an
11883 # empty executable.
11884 if test x$gcc_no_link = xyes; then
11885 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11886echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11887 { (exit 1); exit 1; }; }
11888fi
11889cat >conftest.$ac_ext <<_ACEOF
11890 program main
11891
11892 end
11893_ACEOF
11894rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
11895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11896 (eval $ac_link) 2>conftest.er1
9cdc381b
BD
11897 ac_status=$?
11898 grep -v '^ *+' conftest.er1 >conftest.err
11899 rm -f conftest.er1
11900 cat conftest.err >&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
11902 (exit $ac_status); } &&
11903 { ac_try='test -z "$ac_fc_werror_flag"
11904 || test ! -s conftest.err'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11907 ac_status=$?
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; } &&
11910 { ac_try='test -s conftest$ac_exeext'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; }; then
1cf3d07d
SE
11916
11917lt_aix_libpath_sed='
11918 /Import File Strings/,/^$/ {
11919 /^0/ {
11920 s/^0 *\(.*\)$/\1/
11921 p
11922 }
11923 }'
11924aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11925# Check for a 64-bit object if we didn't find anything.
11926if test -z "$aix_libpath"; then
11927 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11928fi
11929else
11930 echo "$as_me: failed program was:" >&5
11931sed 's/^/| /' conftest.$ac_ext >&5
11932
11933fi
38d24731 11934rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
11935 conftest$ac_exeext conftest.$ac_ext
11936if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11937
11938 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11939 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"
11940 else
11941 if test "$host_cpu" = ia64; then
11942 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
11943 allow_undefined_flag_FC="-z nodefs"
11944 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"
11945 else
11946 # Determine the default libpath from the value encoded in an
11947 # empty executable.
11948 if test x$gcc_no_link = xyes; then
11949 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11950echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11951 { (exit 1); exit 1; }; }
11952fi
11953cat >conftest.$ac_ext <<_ACEOF
11954 program main
11955
11956 end
11957_ACEOF
11958rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
11959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11960 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
11961 ac_status=$?
11962 grep -v '^ *+' conftest.er1 >conftest.err
11963 rm -f conftest.er1
11964 cat conftest.err >&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
11966 (exit $ac_status); } &&
11967 { ac_try='test -z "$ac_fc_werror_flag"
11968 || test ! -s conftest.err'
11969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970 (eval $ac_try) 2>&5
11971 ac_status=$?
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); }; } &&
11974 { ac_try='test -s conftest$ac_exeext'
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11977 ac_status=$?
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; }; then
1cf3d07d
SE
11980
11981lt_aix_libpath_sed='
11982 /Import File Strings/,/^$/ {
11983 /^0/ {
11984 s/^0 *\(.*\)$/\1/
11985 p
11986 }
11987 }'
11988aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11989# Check for a 64-bit object if we didn't find anything.
11990if test -z "$aix_libpath"; then
11991 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11992fi
11993else
11994 echo "$as_me: failed program was:" >&5
11995sed 's/^/| /' conftest.$ac_ext >&5
11996
11997fi
38d24731 11998rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
11999 conftest$ac_exeext conftest.$ac_ext
12000if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12001
12002 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
12003 # Warning - without using the other run time loading flags,
12004 # -berok will link without error, but may produce a broken library.
12005 no_undefined_flag_FC=' ${wl}-bernotok'
12006 allow_undefined_flag_FC=' ${wl}-berok'
12007 # Exported symbols can be pulled into shared objects from archives
12008 whole_archive_flag_spec_FC='$convenience'
12009 archive_cmds_need_lc_FC=yes
12010 # This is similar to how AIX traditionally builds its shared libraries.
12011 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'
12012 fi
12013 fi
12014 ;;
12015
12016 amigaos*)
12017 if test "$host_cpu" = m68k; then
12018 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)'
12019 hardcode_libdir_flag_spec_FC='-L$libdir'
12020 hardcode_minus_L_FC=yes
12021 fi
12022 # see comment about different semantics on the GNU ld section
12023 ld_shlibs_FC=no
12024 ;;
12025
12026 bsdi[45]*)
12027 export_dynamic_flag_spec_FC=-rdynamic
12028 ;;
12029
12030 cygwin* | mingw* | pw32*)
12031 # When not using gcc, we currently assume that we are using
12032 # Microsoft Visual C++.
12033 # hardcode_libdir_flag_spec is actually meaningless, as there is
12034 # no search path for DLLs.
12035 hardcode_libdir_flag_spec_FC=' '
12036 allow_undefined_flag_FC=unsupported
12037 # Tell ltmain to make .lib files, not .a files.
12038 libext=lib
12039 # Tell ltmain to make .dll files, not .so files.
12040 shrext_cmds=".dll"
12041 # FIXME: Setting linknames here is a bad hack.
12042 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12043 # The linker will automatically build a .lib file if we build a DLL.
12044 old_archive_from_new_cmds_FC='true'
12045 # FIXME: Should let the user specify the lib program.
12046 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
12047 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
12048 enable_shared_with_static_runtimes_FC=yes
12049 ;;
12050
12051 darwin* | rhapsody*)
12052 case $host_os in
12053 rhapsody* | darwin1.[012])
12054 allow_undefined_flag_FC='${wl}-undefined ${wl}suppress'
12055 ;;
12056 *) # Darwin 1.3 on
12057 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
12058 10.[012])
12059 allow_undefined_flag_FC='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12060 ;;
12061 10.*)
12062 allow_undefined_flag_FC='${wl}-undefined ${wl}dynamic_lookup'
12063 ;;
12064 esac
12065 ;;
12066 esac
12067 archive_cmds_need_lc_FC=no
12068 hardcode_direct_FC=no
12069 hardcode_automatic_FC=yes
12070 hardcode_shlibpath_var_FC=unsupported
12071 whole_archive_flag_spec_FC=''
12072 link_all_deplibs_FC=yes
12073 if test "$GCC" = yes ; then
12074 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12076else
12077 lt_cv_apple_cc_single_mod=no
12078 if test -z "${LT_MULTI_MODULE}"; then
12079 # By default we will add the -single_module flag. You can override
12080 # by either setting the environment variable LT_MULTI_MODULE
12081 # non-empty at configure time, or by adding -multi-module to the
12082 # link flags.
12083 echo "int foo(void){return 1;}" > conftest.c
12084 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12085 -dynamiclib ${wl}-single_module conftest.c
12086 if test -f libconftest.dylib; then
12087 lt_cv_apple_cc_single_mod=yes
12088 rm libconftest.dylib
12089 fi
12090 rm conftest.$ac_ext
12091 fi
12092fi
12093
12094 output_verbose_link_cmd=echo
12095 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
12096 archive_cmds_FC='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12097 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}'
12098 else
12099 archive_cmds_FC='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12100 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}'
12101 fi
12102 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12103 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}'
12104 else
12105 case $cc_basename in
12106 xlc*)
12107 output_verbose_link_cmd=echo
12108 archive_cmds_FC='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
12109 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12110 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12111 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}'
12112 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}'
12113 ;;
12114 *)
12115 ld_shlibs_FC=no
12116 ;;
12117 esac
12118 fi
12119 ;;
12120
12121 dgux*)
12122 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12123 hardcode_libdir_flag_spec_FC='-L$libdir'
12124 hardcode_shlibpath_var_FC=no
12125 ;;
12126
12127 freebsd1*)
12128 ld_shlibs_FC=no
12129 ;;
12130
12131 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12132 # support. Future versions do this automatically, but an explicit c++rt0.o
12133 # does not break anything, and helps significantly (at the cost of a little
12134 # extra space).
12135 freebsd2.2*)
12136 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12137 hardcode_libdir_flag_spec_FC='-R$libdir'
12138 hardcode_direct_FC=yes
12139 hardcode_shlibpath_var_FC=no
12140 ;;
12141
12142 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12143 freebsd2*)
12144 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12145 hardcode_direct_FC=yes
12146 hardcode_minus_L_FC=yes
12147 hardcode_shlibpath_var_FC=no
12148 ;;
12149
12150 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12151 freebsd* | dragonfly*)
12152 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12153 hardcode_libdir_flag_spec_FC='-R$libdir'
12154 hardcode_direct_FC=yes
12155 hardcode_shlibpath_var_FC=no
12156 ;;
12157
12158 hpux9*)
12159 if test "$GCC" = yes; then
12160 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'
12161 else
12162 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'
12163 fi
12164 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12165 hardcode_libdir_separator_FC=:
12166 hardcode_direct_FC=yes
12167
12168 # hardcode_minus_L: Not really in the search PATH,
12169 # but as the default location of the library.
12170 hardcode_minus_L_FC=yes
12171 export_dynamic_flag_spec_FC='${wl}-E'
12172 ;;
12173
12174 hpux10*)
12175 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12176 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12177 else
12178 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12179 fi
12180 if test "$with_gnu_ld" = no; then
12181 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12182 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
12183 hardcode_libdir_separator_FC=:
12184 hardcode_direct_FC=yes
12185 hardcode_direct_absolute_FC=yes
12186 export_dynamic_flag_spec_FC='${wl}-E'
12187 # hardcode_minus_L: Not really in the search PATH,
12188 # but as the default location of the library.
12189 hardcode_minus_L_FC=yes
12190 fi
12191 ;;
12192
12193 hpux11*)
12194 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12195 case $host_cpu in
12196 hppa*64*)
12197 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12198 ;;
12199 ia64*)
12200 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12201 ;;
12202 *)
12203 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12204 ;;
12205 esac
12206 else
12207 case $host_cpu in
12208 hppa*64*)
12209 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12210 ;;
12211 ia64*)
12212 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12213 ;;
12214 *)
12215 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12216 ;;
12217 esac
12218 fi
12219 if test "$with_gnu_ld" = no; then
12220 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12221 hardcode_libdir_separator_FC=:
12222
12223 case $host_cpu in
12224 hppa*64*|ia64*)
12225 hardcode_direct_FC=no
12226 hardcode_shlibpath_var_FC=no
12227 ;;
12228 *)
12229 hardcode_direct_FC=yes
12230 hardcode_direct_absolute_FC=yes
12231 export_dynamic_flag_spec_FC='${wl}-E'
12232
12233 # hardcode_minus_L: Not really in the search PATH,
12234 # but as the default location of the library.
12235 hardcode_minus_L_FC=yes
12236 ;;
12237 esac
12238 fi
12239 ;;
12240
12241 irix5* | irix6* | nonstopux*)
12242 if test "$GCC" = yes; then
12243 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'
12244 # Try to use the -exported_symbol ld option, if it does not
12245 # work, assume that -exports_file does not work either and
12246 # implicitly export all symbols.
12247 save_LDFLAGS="$LDFLAGS"
12248 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12249 if test x$gcc_no_link = xyes; then
12250 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12251echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12252 { (exit 1); exit 1; }; }
12253fi
12254cat >conftest.$ac_ext <<_ACEOF
12255int foo(void) {}
12256_ACEOF
12257rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
12258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12259 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
12260 ac_status=$?
12261 grep -v '^ *+' conftest.er1 >conftest.err
12262 rm -f conftest.er1
12263 cat conftest.err >&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
12265 (exit $ac_status); } &&
12266 { ac_try='test -z "$ac_fc_werror_flag"
12267 || test ! -s conftest.err'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12270 ac_status=$?
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; } &&
12273 { ac_try='test -s conftest$ac_exeext'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; }; then
1cf3d07d
SE
12279 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'
12280
12281else
12282 echo "$as_me: failed program was:" >&5
12283sed 's/^/| /' conftest.$ac_ext >&5
12284
12285fi
38d24731 12286rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
12287 conftest$ac_exeext conftest.$ac_ext
12288 LDFLAGS="$save_LDFLAGS"
12289 else
12290 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'
12291 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'
12292 fi
12293 archive_cmds_need_lc_FC='no'
12294 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12295 hardcode_libdir_separator_FC=:
12296 inherit_rpath_FC=yes
12297 link_all_deplibs_FC=yes
12298 ;;
12299
12300 netbsd*)
12301 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12302 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12303 else
12304 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12305 fi
12306 hardcode_libdir_flag_spec_FC='-R$libdir'
12307 hardcode_direct_FC=yes
12308 hardcode_shlibpath_var_FC=no
12309 ;;
12310
12311 newsos6)
12312 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12313 hardcode_direct_FC=yes
12314 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12315 hardcode_libdir_separator_FC=:
12316 hardcode_shlibpath_var_FC=no
12317 ;;
12318
12319 *nto* | *qnx*)
12320 ;;
12321
12322 openbsd*)
12323 hardcode_direct_FC=yes
12324 hardcode_shlibpath_var_FC=no
12325 hardcode_direct_absolute_FC=yes
12326 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12327 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12328 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12329 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12330 export_dynamic_flag_spec_FC='${wl}-E'
12331 else
12332 case $host_os in
12333 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12334 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12335 hardcode_libdir_flag_spec_FC='-R$libdir'
12336 ;;
12337 *)
12338 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12339 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12340 ;;
12341 esac
12342 fi
12343 ;;
12344
12345 os2*)
12346 hardcode_libdir_flag_spec_FC='-L$libdir'
12347 hardcode_minus_L_FC=yes
12348 allow_undefined_flag_FC=unsupported
12349 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'
12350 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12351 ;;
12352
12353 osf3*)
12354 if test "$GCC" = yes; then
12355 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12356 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'
12357 else
12358 allow_undefined_flag_FC=' -expect_unresolved \*'
12359 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'
12360 fi
12361 archive_cmds_need_lc_FC='no'
12362 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12363 hardcode_libdir_separator_FC=:
12364 ;;
12365
12366 osf4* | osf5*) # as osf3* with the addition of -msym flag
12367 if test "$GCC" = yes; then
12368 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12369 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'
12370 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12371 else
12372 allow_undefined_flag_FC=' -expect_unresolved \*'
12373 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'
12374 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~
12375 $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'
12376
12377 # Both c and cxx compiler support -rpath directly
12378 hardcode_libdir_flag_spec_FC='-rpath $libdir'
12379 fi
12380 archive_cmds_need_lc_FC='no'
12381 hardcode_libdir_separator_FC=:
12382 ;;
12383
12384 solaris*)
12385 no_undefined_flag_FC=' -z defs'
12386 if test "$GCC" = yes; then
12387 wlarc='${wl}'
12388 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12389 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12390 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12391 else
12392 case `$CC -V 2>&1` in
12393 *"Compilers 5.0"*)
12394 wlarc=''
12395 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12396 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12397 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12398 ;;
12399 *)
12400 wlarc='${wl}'
12401 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12402 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12403 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12404 ;;
12405 esac
12406 fi
12407 hardcode_libdir_flag_spec_FC='-R$libdir'
12408 hardcode_shlibpath_var_FC=no
12409 case $host_os in
12410 solaris2.[0-5] | solaris2.[0-5].*) ;;
12411 *)
12412 # The compiler driver will combine and reorder linker options,
12413 # but understands `-z linker_flag'. GCC discards it without `$wl',
12414 # but is careful enough not to reorder.
12415 # Supported since Solaris 2.6 (maybe 2.5.1?)
12416 if test "$GCC" = yes; then
12417 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12418 else
12419 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
12420 fi
12421 ;;
12422 esac
12423 link_all_deplibs_FC=yes
12424 ;;
12425
12426 sunos4*)
12427 if test "x$host_vendor" = xsequent; then
12428 # Use $CC to link under sequent, because it throws in some extra .o
12429 # files that make .init and .fini sections work.
12430 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12431 else
12432 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12433 fi
12434 hardcode_libdir_flag_spec_FC='-L$libdir'
12435 hardcode_direct_FC=yes
12436 hardcode_minus_L_FC=yes
12437 hardcode_shlibpath_var_FC=no
12438 ;;
12439
12440 sysv4)
12441 case $host_vendor in
12442 sni)
12443 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12444 hardcode_direct_FC=yes # is this really true???
12445 ;;
12446 siemens)
12447 ## LD is ld it makes a PLAMLIB
12448 ## CC just makes a GrossModule.
12449 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12450 reload_cmds_FC='$CC -r -o $output$reload_objs'
12451 hardcode_direct_FC=no
12452 ;;
12453 motorola)
12454 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12455 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
12456 ;;
12457 esac
12458 runpath_var='LD_RUN_PATH'
12459 hardcode_shlibpath_var_FC=no
12460 ;;
12461
12462 sysv4.3*)
12463 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12464 hardcode_shlibpath_var_FC=no
12465 export_dynamic_flag_spec_FC='-Bexport'
12466 ;;
12467
12468 sysv4*MP*)
12469 if test -d /usr/nec; then
12470 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12471 hardcode_shlibpath_var_FC=no
12472 runpath_var=LD_RUN_PATH
12473 hardcode_runpath_var=yes
12474 ld_shlibs_FC=yes
12475 fi
12476 ;;
12477
12478 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12479 no_undefined_flag_FC='${wl}-z,text'
12480 archive_cmds_need_lc_FC=no
12481 hardcode_shlibpath_var_FC=no
12482 runpath_var='LD_RUN_PATH'
12483
12484 if test "$GCC" = yes; then
12485 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12486 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12487 else
12488 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12489 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12490 fi
12491 ;;
12492
12493 sysv5* | sco3.2v5* | sco5v6*)
12494 # Note: We can NOT use -z defs as we might desire, because we do not
12495 # link with -lc, and that would cause any symbols used from libc to
12496 # always be unresolved, which means just about no library would
12497 # ever link correctly. If we're not using GNU ld we use -z text
12498 # though, which does catch some bad symbols but isn't as heavy-handed
12499 # as -z defs.
12500 no_undefined_flag_FC='${wl}-z,text'
12501 allow_undefined_flag_FC='${wl}-z,nodefs'
12502 archive_cmds_need_lc_FC=no
12503 hardcode_shlibpath_var_FC=no
12504 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
12505 hardcode_libdir_separator_FC=':'
12506 link_all_deplibs_FC=yes
12507 export_dynamic_flag_spec_FC='${wl}-Bexport'
12508 runpath_var='LD_RUN_PATH'
12509
12510 if test "$GCC" = yes; then
12511 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12512 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12513 else
12514 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12515 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12516 fi
12517 ;;
12518
12519 uts4*)
12520 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12521 hardcode_libdir_flag_spec_FC='-L$libdir'
12522 hardcode_shlibpath_var_FC=no
12523 ;;
12524
12525 *)
12526 ld_shlibs_FC=no
12527 ;;
12528 esac
12529
12530 if test x$host_vendor = xsni; then
12531 case $host in
12532 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12533 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
12534 ;;
12535 esac
12536 fi
12537 fi
12538
38d24731
RW
12539echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5
12540echo "${ECHO_T}$ld_shlibs_FC" >&6
1cf3d07d
SE
12541test "$ld_shlibs_FC" = no && can_build_shared=no
12542
12543with_gnu_ld_FC=$with_gnu_ld
12544
12545
12546
12547
12548
12549
12550#
12551# Do we need to explicitly link libc?
12552#
12553case "x$archive_cmds_need_lc_FC" in
12554x|xyes)
12555 # Assume -lc should be added
12556 archive_cmds_need_lc_FC=yes
12557
12558 if test "$enable_shared" = yes && test "$GCC" = yes; then
12559 case $archive_cmds_FC in
12560 *'~'*)
12561 # FIXME: we may have to deal with multi-command sequences.
12562 ;;
12563 '$CC '*)
12564 # Test whether the compiler implicitly links with -lc since on some
12565 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12566 # to ld, don't add -lc before -lgcc.
38d24731
RW
12567 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12568echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
1cf3d07d
SE
12569 $RM conftest*
12570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12571
12572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12573 (eval $ac_compile) 2>&5
12574 ac_status=$?
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); } 2>conftest.err; then
12577 soname=conftest
12578 lib=conftest
12579 libobjs=conftest.$ac_objext
12580 deplibs=
12581 wl=$lt_prog_compiler_wl_FC
12582 pic_flag=$lt_prog_compiler_pic_FC
12583 compiler_flags=-v
12584 linker_flags=-v
12585 verstring=
12586 output_objdir=.
12587 libname=conftest
12588 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
12589 allow_undefined_flag_FC=
12590 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12591 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9cdc381b
BD
12592 ac_status=$?
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
12594 (exit $ac_status); }
12595 then
12596 archive_cmds_need_lc_FC=no
12597 else
12598 archive_cmds_need_lc_FC=yes
12599 fi
12600 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
12601 else
12602 cat conftest.err 1>&5
12603 fi
12604 $RM conftest*
38d24731
RW
12605 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5
12606echo "${ECHO_T}$archive_cmds_need_lc_FC" >&6
1cf3d07d
SE
12607 ;;
12608 esac
12609 fi
12610 ;;
12611esac
9cdc381b 12612
9cdc381b 12613
1cf3d07d
SE
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
38d24731
RW
12676 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12677echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
1cf3d07d
SE
12678withGCC=$ac_cv_fc_compiler_gnu
12679library_names_spec=
12680libname_spec='lib$name'
12681soname_spec=
12682shrext_cmds=".so"
12683postinstall_cmds=
12684postuninstall_cmds=
12685finish_cmds=
12686finish_eval=
12687shlibpath_var=
12688shlibpath_overrides_runpath=unknown
12689version_type=none
12690dynamic_linker="$host_os ld.so"
12691sys_lib_dlsearch_path_spec="/lib /usr/lib"
12692need_lib_prefix=unknown
12693hardcode_into_libs=no
12694
12695# when you set need_version to no, make sure it does not cause -set_version
12696# flags to be left without arguments
12697need_version=unknown
12698
12699case $host_os in
12700aix3*)
12701 version_type=linux
12702 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12703 shlibpath_var=LIBPATH
12704
12705 # AIX 3 has no versioning support, so we append a major version to the name.
12706 soname_spec='${libname}${release}${shared_ext}$major'
12707 ;;
12708
4f6bebc3 12709aix[4-9]*)
1cf3d07d
SE
12710 version_type=linux
12711 need_lib_prefix=no
12712 need_version=no
12713 hardcode_into_libs=yes
12714 if test "$host_cpu" = ia64; then
12715 # AIX 5 supports IA64
12716 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12717 shlibpath_var=LD_LIBRARY_PATH
12718 else
12719 # With GCC up to 2.95.x, collect2 would create an import file
12720 # for dependence libraries. The import file would start with
12721 # the line `#! .'. This would cause the generated library to
12722 # depend on `.', always an invalid library. This was fixed in
12723 # development snapshots of GCC prior to 3.0.
12724 case $host_os in
12725 aix4 | aix4.[01] | aix4.[01].*)
12726 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12727 echo ' yes '
12728 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12729 :
12730 else
12731 can_build_shared=no
12732 fi
12733 ;;
12734 esac
12735 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12736 # soname into executable. Probably we can add versioning support to
12737 # collect2, so additional links can be useful in future.
12738 if test "$aix_use_runtimelinking" = yes; then
12739 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12740 # instead of lib<name>.a to let people know that these are not
12741 # typical AIX shared libraries.
12742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12743 else
12744 # We preserve .a as extension for shared libraries through AIX4.2
12745 # and later when we are not doing run time linking.
12746 library_names_spec='${libname}${release}.a $libname.a'
12747 soname_spec='${libname}${release}${shared_ext}$major'
12748 fi
12749 shlibpath_var=LIBPATH
12750 fi
12751 ;;
12752
12753amigaos*)
12754 if test "$host_cpu" = m68k; then
12755 library_names_spec='$libname.ixlibrary $libname.a'
12756 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12757 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'
12758 else
12759 dynamic_linker=no
12760 fi
12761 ;;
12762
12763beos*)
12764 library_names_spec='${libname}${shared_ext}'
12765 dynamic_linker="$host_os ld.so"
12766 shlibpath_var=LIBRARY_PATH
12767 ;;
12768
12769bsdi[45]*)
12770 version_type=linux
12771 need_version=no
12772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12773 soname_spec='${libname}${release}${shared_ext}$major'
12774 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12775 shlibpath_var=LD_LIBRARY_PATH
12776 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12777 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12778 # the default ld.so.conf also contains /usr/contrib/lib and
12779 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12780 # libtool to hard-code these into programs
12781 ;;
12782
12783cygwin* | mingw* | pw32*)
12784 version_type=windows
12785 shrext_cmds=".dll"
12786 need_version=no
12787 need_lib_prefix=no
12788
12789 case $withGCC,$host_os in
12790 yes,cygwin* | yes,mingw* | yes,pw32*)
12791 library_names_spec='$libname.dll.a'
12792 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12793 postinstall_cmds='base_file=`basename \${file}`~
12794 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12795 dldir=$destdir/`dirname \$dlpath`~
12796 test -d \$dldir || mkdir -p \$dldir~
12797 $install_prog $dir/$dlname \$dldir/$dlname~
12798 chmod a+x \$dldir/$dlname~
12799 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12800 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12801 fi'
12802 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12803 dlpath=$dir/\$dldll~
12804 $RM \$dlpath'
12805 shlibpath_overrides_runpath=yes
12806
12807 case $host_os in
12808 cygwin*)
12809 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12810 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12811 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12812 ;;
12813 mingw*)
12814 # MinGW DLLs use traditional 'lib' prefix
12815 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12816 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12817 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12818 # It is most probably a Windows format PATH printed by
12819 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12820 # path with ; separators, and with drive letters. We can handle the
12821 # drive letters (cygwin fileutils understands them), so leave them,
12822 # especially as we might pass files found there to a mingw objdump,
12823 # which wouldn't understand a cygwinified path. Ahh.
12824 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12825 else
12826 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12827 fi
12828 ;;
12829 pw32*)
12830 # pw32 DLLs use 'pw' prefix rather than 'lib'
12831 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12832 ;;
12833 esac
12834 ;;
12835
12836 *)
12837 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12838 ;;
12839 esac
12840 dynamic_linker='Win32 ld.exe'
12841 # FIXME: first we should search . and the directory the executable is in
12842 shlibpath_var=PATH
12843 ;;
12844
12845darwin* | rhapsody*)
12846 dynamic_linker="$host_os dyld"
12847 version_type=darwin
12848 need_lib_prefix=no
12849 need_version=no
12850 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12851 soname_spec='${libname}${release}${major}$shared_ext'
12852 shlibpath_overrides_runpath=yes
12853 shlibpath_var=DYLD_LIBRARY_PATH
12854 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12855
12856 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12857 ;;
12858
12859dgux*)
12860 version_type=linux
12861 need_lib_prefix=no
12862 need_version=no
12863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12864 soname_spec='${libname}${release}${shared_ext}$major'
12865 shlibpath_var=LD_LIBRARY_PATH
12866 ;;
12867
12868freebsd1*)
12869 dynamic_linker=no
12870 ;;
12871
12872freebsd* | dragonfly*)
12873 # DragonFly does not have aout. When/if they implement a new
12874 # versioning mechanism, adjust this.
12875 if test -x /usr/bin/objformat; then
12876 objformat=`/usr/bin/objformat`
12877 else
12878 case $host_os in
12879 freebsd[123]*) objformat=aout ;;
12880 *) objformat=elf ;;
12881 esac
12882 fi
12883 version_type=freebsd-$objformat
12884 case $version_type in
12885 freebsd-elf*)
12886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12887 need_version=no
12888 need_lib_prefix=no
12889 ;;
12890 freebsd-*)
12891 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12892 need_version=yes
12893 ;;
12894 esac
12895 shlibpath_var=LD_LIBRARY_PATH
12896 case $host_os in
12897 freebsd2*)
12898 shlibpath_overrides_runpath=yes
12899 ;;
12900 freebsd3.[01]* | freebsdelf3.[01]*)
12901 shlibpath_overrides_runpath=yes
12902 hardcode_into_libs=yes
12903 ;;
12904 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12905 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12906 shlibpath_overrides_runpath=no
12907 hardcode_into_libs=yes
12908 ;;
12909 *) # from 4.6 on, and DragonFly
12910 shlibpath_overrides_runpath=yes
12911 hardcode_into_libs=yes
12912 ;;
12913 esac
12914 ;;
12915
12916gnu*)
12917 version_type=linux
12918 need_lib_prefix=no
12919 need_version=no
12920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12921 soname_spec='${libname}${release}${shared_ext}$major'
12922 shlibpath_var=LD_LIBRARY_PATH
12923 hardcode_into_libs=yes
12924 ;;
12925
12926hpux9* | hpux10* | hpux11*)
12927 # Give a soname corresponding to the major version so that dld.sl refuses to
12928 # link against other versions.
12929 version_type=sunos
12930 need_lib_prefix=no
12931 need_version=no
12932 case $host_cpu in
12933 ia64*)
12934 shrext_cmds='.so'
12935 hardcode_into_libs=yes
12936 dynamic_linker="$host_os dld.so"
12937 shlibpath_var=LD_LIBRARY_PATH
12938 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12940 soname_spec='${libname}${release}${shared_ext}$major'
12941 if test "X$HPUX_IA64_MODE" = X32; then
12942 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12943 else
12944 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12945 fi
12946 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12947 ;;
12948 hppa*64*)
12949 shrext_cmds='.sl'
12950 hardcode_into_libs=yes
12951 dynamic_linker="$host_os dld.sl"
12952 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12953 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12955 soname_spec='${libname}${release}${shared_ext}$major'
12956 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12958 ;;
12959 *)
12960 shrext_cmds='.sl'
12961 dynamic_linker="$host_os dld.sl"
12962 shlibpath_var=SHLIB_PATH
12963 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12965 soname_spec='${libname}${release}${shared_ext}$major'
12966 ;;
12967 esac
12968 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12969 postinstall_cmds='chmod 555 $lib'
12970 ;;
12971
12972interix[3-9]*)
12973 version_type=linux
12974 need_lib_prefix=no
12975 need_version=no
12976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12977 soname_spec='${libname}${release}${shared_ext}$major'
12978 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12979 shlibpath_var=LD_LIBRARY_PATH
12980 shlibpath_overrides_runpath=no
12981 hardcode_into_libs=yes
12982 ;;
12983
12984irix5* | irix6* | nonstopux*)
12985 case $host_os in
12986 nonstopux*) version_type=nonstopux ;;
12987 *)
12988 if test "$lt_cv_prog_gnu_ld" = yes; then
12989 version_type=linux
12990 else
12991 version_type=irix
12992 fi ;;
12993 esac
12994 need_lib_prefix=no
12995 need_version=no
12996 soname_spec='${libname}${release}${shared_ext}$major'
12997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12998 case $host_os in
12999 irix5* | nonstopux*)
13000 libsuff= shlibsuff=
13001 ;;
13002 *)
13003 case $LD in # libtool.m4 will add one of these switches to LD
13004 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13005 libsuff= shlibsuff= libmagic=32-bit;;
13006 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13007 libsuff=32 shlibsuff=N32 libmagic=N32;;
13008 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13009 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13010 *) libsuff= shlibsuff= libmagic=never-match;;
13011 esac
13012 ;;
13013 esac
13014 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13015 shlibpath_overrides_runpath=no
13016 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13017 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13018 hardcode_into_libs=yes
13019 ;;
13020
13021# No shared lib support for Linux oldld, aout, or coff.
13022linux*oldld* | linux*aout* | linux*coff*)
13023 dynamic_linker=no
13024 ;;
13025
13026# This must be Linux ELF.
13027linux* | k*bsd*-gnu)
13028 version_type=linux
13029 need_lib_prefix=no
13030 need_version=no
13031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13032 soname_spec='${libname}${release}${shared_ext}$major'
13033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13034 shlibpath_var=LD_LIBRARY_PATH
13035 shlibpath_overrides_runpath=no
13036 # Some binutils ld are patched to set DT_RUNPATH
13037 save_LDFLAGS=$LDFLAGS
13038 save_libdir=$libdir
13039 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
13040 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
13041 if test x$gcc_no_link = xyes; then
13042 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13043echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13044 { (exit 1); exit 1; }; }
13045fi
13046cat >conftest.$ac_ext <<_ACEOF
13047 program main
13048
13049 end
9cdc381b 13050_ACEOF
1cf3d07d 13051rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
13052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13053 (eval $ac_link) 2>conftest.er1
9cdc381b
BD
13054 ac_status=$?
13055 grep -v '^ *+' conftest.er1 >conftest.err
13056 rm -f conftest.er1
13057 cat conftest.err >&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
13059 (exit $ac_status); } &&
13060 { ac_try='test -z "$ac_fc_werror_flag"
13061 || test ! -s conftest.err'
13062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 (eval $ac_try) 2>&5
13064 ac_status=$?
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; } &&
13067 { ac_try='test -s conftest$ac_exeext'
13068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069 (eval $ac_try) 2>&5
13070 ac_status=$?
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; }; then
1cf3d07d
SE
13073 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
13074 shlibpath_overrides_runpath=yes
13075fi
13076
9cdc381b
BD
13077else
13078 echo "$as_me: failed program was:" >&5
13079sed 's/^/| /' conftest.$ac_ext >&5
13080
13081fi
38d24731 13082rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
13083 conftest$ac_exeext conftest.$ac_ext
13084 LDFLAGS=$save_LDFLAGS
13085 libdir=$save_libdir
13086
13087 # This implies no fast_install, which is unacceptable.
13088 # Some rework will be needed to allow for fast_install
13089 # before this can be enabled.
13090 hardcode_into_libs=yes
13091
13092 # Append ld.so.conf contents to the search path
13093 if test -f /etc/ld.so.conf; then
13094 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' ' '`
13095 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13096 fi
13097
13098 # We used to test for /lib/ld.so.1 and disable shared libraries on
13099 # powerpc, because MkLinux only supported shared libraries with the
13100 # GNU dynamic linker. Since this was broken with cross compilers,
13101 # most powerpc-linux boxes support dynamic linking these days and
13102 # people can always --disable-shared, the test was removed, and we
13103 # assume the GNU/Linux dynamic linker is in use.
13104 dynamic_linker='GNU/Linux ld.so'
13105 ;;
13106
13107netbsd*)
13108 version_type=sunos
13109 need_lib_prefix=no
13110 need_version=no
13111 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13114 dynamic_linker='NetBSD (a.out) ld.so'
13115 else
13116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13117 soname_spec='${libname}${release}${shared_ext}$major'
13118 dynamic_linker='NetBSD ld.elf_so'
13119 fi
13120 shlibpath_var=LD_LIBRARY_PATH
13121 shlibpath_overrides_runpath=yes
13122 hardcode_into_libs=yes
13123 ;;
13124
13125newsos6)
13126 version_type=linux
13127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13128 shlibpath_var=LD_LIBRARY_PATH
13129 shlibpath_overrides_runpath=yes
13130 ;;
13131
13132*nto* | *qnx*)
13133 version_type=qnx
13134 need_lib_prefix=no
13135 need_version=no
13136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13137 soname_spec='${libname}${release}${shared_ext}$major'
13138 shlibpath_var=LD_LIBRARY_PATH
13139 shlibpath_overrides_runpath=no
13140 hardcode_into_libs=yes
13141 dynamic_linker='ldqnx.so'
13142 ;;
13143
13144openbsd*)
13145 version_type=sunos
13146 sys_lib_dlsearch_path_spec="/usr/lib"
13147 need_lib_prefix=no
13148 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13149 case $host_os in
13150 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13151 *) need_version=no ;;
13152 esac
13153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13155 shlibpath_var=LD_LIBRARY_PATH
13156 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13157 case $host_os in
13158 openbsd2.[89] | openbsd2.[89].*)
13159 shlibpath_overrides_runpath=no
13160 ;;
13161 *)
13162 shlibpath_overrides_runpath=yes
13163 ;;
13164 esac
13165 else
13166 shlibpath_overrides_runpath=yes
13167 fi
13168 ;;
13169
13170os2*)
13171 libname_spec='$name'
13172 shrext_cmds=".dll"
13173 need_lib_prefix=no
13174 library_names_spec='$libname${shared_ext} $libname.a'
13175 dynamic_linker='OS/2 ld.exe'
13176 shlibpath_var=LIBPATH
13177 ;;
13178
13179osf3* | osf4* | osf5*)
13180 version_type=osf
13181 need_lib_prefix=no
13182 need_version=no
13183 soname_spec='${libname}${release}${shared_ext}$major'
13184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13185 shlibpath_var=LD_LIBRARY_PATH
13186 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13187 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13188 ;;
13189
13190rdos*)
13191 dynamic_linker=no
13192 ;;
13193
13194solaris*)
13195 version_type=linux
13196 need_lib_prefix=no
13197 need_version=no
13198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13199 soname_spec='${libname}${release}${shared_ext}$major'
13200 shlibpath_var=LD_LIBRARY_PATH
13201 shlibpath_overrides_runpath=yes
13202 hardcode_into_libs=yes
13203 # ldd complains unless libraries are executable
13204 postinstall_cmds='chmod +x $lib'
13205 ;;
13206
13207sunos4*)
13208 version_type=sunos
13209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13210 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13211 shlibpath_var=LD_LIBRARY_PATH
13212 shlibpath_overrides_runpath=yes
13213 if test "$with_gnu_ld" = yes; then
13214 need_lib_prefix=no
13215 fi
13216 need_version=yes
13217 ;;
13218
13219sysv4 | sysv4.3*)
13220 version_type=linux
13221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13222 soname_spec='${libname}${release}${shared_ext}$major'
13223 shlibpath_var=LD_LIBRARY_PATH
13224 case $host_vendor in
13225 sni)
13226 shlibpath_overrides_runpath=no
13227 need_lib_prefix=no
13228 runpath_var=LD_RUN_PATH
13229 ;;
13230 siemens)
13231 need_lib_prefix=no
13232 ;;
13233 motorola)
13234 need_lib_prefix=no
13235 need_version=no
13236 shlibpath_overrides_runpath=no
13237 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13238 ;;
13239 esac
13240 ;;
13241
13242sysv4*MP*)
13243 if test -d /usr/nec ;then
13244 version_type=linux
13245 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13246 soname_spec='$libname${shared_ext}.$major'
13247 shlibpath_var=LD_LIBRARY_PATH
13248 fi
13249 ;;
13250
13251sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13252 version_type=freebsd-elf
13253 need_lib_prefix=no
13254 need_version=no
13255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13256 soname_spec='${libname}${release}${shared_ext}$major'
13257 shlibpath_var=LD_LIBRARY_PATH
13258 shlibpath_overrides_runpath=yes
13259 hardcode_into_libs=yes
13260 if test "$with_gnu_ld" = yes; then
13261 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13262 else
13263 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13264 case $host_os in
13265 sco3.2v5*)
13266 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13267 ;;
13268 esac
13269 fi
13270 sys_lib_dlsearch_path_spec='/usr/lib'
13271 ;;
13272
13273tpf*)
13274 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13275 version_type=linux
13276 need_lib_prefix=no
13277 need_version=no
13278 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13279 shlibpath_var=LD_LIBRARY_PATH
13280 shlibpath_overrides_runpath=no
13281 hardcode_into_libs=yes
13282 ;;
13283
13284uts4*)
13285 version_type=linux
13286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13287 soname_spec='${libname}${release}${shared_ext}$major'
13288 shlibpath_var=LD_LIBRARY_PATH
13289 ;;
13290
13291*)
13292 dynamic_linker=no
13293 ;;
13294esac
38d24731
RW
13295echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13296echo "${ECHO_T}$dynamic_linker" >&6
1cf3d07d
SE
13297test "$dynamic_linker" = no && can_build_shared=no
13298
13299variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13300if test "$GCC" = yes; then
13301 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9cdc381b 13302fi
9cdc381b 13303
9cdc381b 13304
1cf3d07d
SE
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
38d24731
RW
13339 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13340echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
1cf3d07d
SE
13341hardcode_action_FC=
13342if test -n "$hardcode_libdir_flag_spec_FC" ||
13343 test -n "$runpath_var_FC" ||
13344 test "X$hardcode_automatic_FC" = "Xyes" ; then
13345
13346 # We can hardcode non-existent directories.
13347 if test "$hardcode_direct_FC" != no &&
13348 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13349 # have to relink, otherwise we might link with an installed library
13350 # when we should be linking with a yet-to-be-installed one
13351 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
13352 test "$hardcode_minus_L_FC" != no; then
13353 # Linking always hardcodes the temporary library directory.
13354 hardcode_action_FC=relink
13355 else
13356 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13357 hardcode_action_FC=immediate
13358 fi
13359else
13360 # We cannot hardcode anything, or else we can only hardcode existing
13361 # directories.
13362 hardcode_action_FC=unsupported
9cdc381b 13363fi
38d24731
RW
13364echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5
13365echo "${ECHO_T}$hardcode_action_FC" >&6
1cf3d07d
SE
13366
13367if test "$hardcode_action_FC" = relink ||
13368 test "$inherit_rpath_FC" = yes; then
13369 # Fast installation is not supported
13370 enable_fast_install=no
13371elif test "$shlibpath_overrides_runpath" = yes ||
13372 test "$enable_shared" = no; then
13373 # Fast installation is not necessary
13374 enable_fast_install=needless
9cdc381b
BD
13375fi
13376
1cf3d07d
SE
13377
13378
13379
13380
13381
13382
13383 fi # test -n "$compiler"
13384
13385 CC="$lt_save_CC"
13386fi # test "$_lt_disable_FC" != yes
13387
dd46a4de 13388ac_ext=c
96b8a615
AJ
13389ac_cpp='$CPP $CPPFLAGS'
13390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13392ac_compiler_gnu=$ac_cv_c_compiler_gnu
1cf3d07d
SE
13393
13394
13395
13396# extra LD Flags which are required for targets
13397case "${host}" in
13398 *-darwin*)
13399 # Darwin needs -single_module when linking libgfortran
13400 extra_ldflags_libgfortran=-Wl,-single_module
13401 ;;
13402esac
13403
13404
13405# We need a working compiler at that point, otherwise give a clear
13406# error message and bail out.
13407
38d24731
RW
13408echo "$as_me:$LINENO: checking whether the GNU Fortran compiler is working" >&5
13409echo $ECHO_N "checking whether the GNU Fortran compiler is working... $ECHO_C" >&6
13410ac_ext=${FC_SRCEXT-f}
13411ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
13412ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
13413ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13414
13415cat >conftest.$ac_ext <<_ACEOF
13416
13417 program foo
13418 real, parameter :: bar = sin (12.34 / 2.5)
13419 end program foo
6de9cd9a 13420_ACEOF
1cf3d07d 13421rm -f conftest.$ac_objext
38d24731
RW
13422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13423 (eval $ac_compile) 2>conftest.er1
6de9cd9a 13424 ac_status=$?
96b8a615
AJ
13425 grep -v '^ *+' conftest.er1 >conftest.err
13426 rm -f conftest.er1
13427 cat conftest.err >&5
6de9cd9a 13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
13429 (exit $ac_status); } &&
13430 { ac_try='test -z "$ac_fc_werror_flag"
13431 || test ! -s conftest.err'
13432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433 (eval $ac_try) 2>&5
13434 ac_status=$?
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; } &&
13437 { ac_try='test -s conftest.$ac_objext'
13438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439 (eval $ac_try) 2>&5
13440 ac_status=$?
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); }; }; then
13443 echo "$as_me:$LINENO: result: yes" >&5
13444echo "${ECHO_T}yes" >&6
6de9cd9a
DN
13445else
13446 echo "$as_me: failed program was:" >&5
13447sed 's/^/| /' conftest.$ac_ext >&5
13448
38d24731
RW
13449echo "$as_me:$LINENO: result: no" >&5
13450echo "${ECHO_T}no" >&6
1cf3d07d
SE
13451 { { echo "$as_me:$LINENO: error: GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" >&5
13452echo "$as_me: error: GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" >&2;}
13453 { (exit 1); exit 1; }; }
6de9cd9a 13454
96b8a615 13455fi
38d24731 13456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
13457ac_ext=c
13458ac_cpp='$CPP $CPPFLAGS'
13459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13461ac_compiler_gnu=$ac_cv_c_compiler_gnu
96b8a615 13462
96b8a615 13463
1cf3d07d 13464
38d24731 13465# Check whether --enable-largefile or --disable-largefile was given.
1cf3d07d 13466if test "${enable_largefile+set}" = set; then
38d24731 13467 enableval="$enable_largefile"
1cf3d07d 13468
38d24731 13469fi;
1cf3d07d
SE
13470if test "$enable_largefile" != no; then
13471
38d24731
RW
13472 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
13473echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
1cf3d07d
SE
13474if test "${ac_cv_sys_largefile_CC+set}" = set; then
13475 echo $ECHO_N "(cached) $ECHO_C" >&6
96b8a615 13476else
1cf3d07d
SE
13477 ac_cv_sys_largefile_CC=no
13478 if test "$GCC" != yes; then
13479 ac_save_CC=$CC
13480 while :; do
38d24731
RW
13481 # IRIX 6.2 and later do not support large files by default,
13482 # so use the C compiler's -n32 option if that helps.
1cf3d07d 13483 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
13484/* confdefs.h. */
13485_ACEOF
13486cat confdefs.h >>conftest.$ac_ext
13487cat >>conftest.$ac_ext <<_ACEOF
13488/* end confdefs.h. */
1cf3d07d
SE
13489#include <sys/types.h>
13490 /* Check that off_t can represent 2**63 - 1 correctly.
13491 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13492 since some C++ compilers masquerading as C compilers
13493 incorrectly reject 9223372036854775807. */
13494#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13495 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13496 && LARGE_OFF_T % 2147483647 == 1)
13497 ? 1 : -1];
13498int
13499main ()
13500{
13501
13502 ;
13503 return 0;
13504}
6de9cd9a 13505_ACEOF
38d24731
RW
13506 rm -f conftest.$ac_objext
13507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13508 (eval $ac_compile) 2>conftest.er1
6de9cd9a
DN
13509 ac_status=$?
13510 grep -v '^ *+' conftest.er1 >conftest.err
13511 rm -f conftest.er1
13512 cat conftest.err >&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
13514 (exit $ac_status); } &&
13515 { ac_try='test -z "$ac_c_werror_flag"
13516 || test ! -s conftest.err'
13517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13518 (eval $ac_try) 2>&5
13519 ac_status=$?
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); }; } &&
13522 { ac_try='test -s conftest.$ac_objext'
13523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13524 (eval $ac_try) 2>&5
13525 ac_status=$?
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; }; then
1cf3d07d 13528 break
6de9cd9a
DN
13529else
13530 echo "$as_me: failed program was:" >&5
13531sed 's/^/| /' conftest.$ac_ext >&5
13532
6de9cd9a 13533fi
38d24731
RW
13534rm -f conftest.err conftest.$ac_objext
13535 CC="$CC -n32"
13536 rm -f conftest.$ac_objext
13537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13538 (eval $ac_compile) 2>conftest.er1
96b8a615
AJ
13539 ac_status=$?
13540 grep -v '^ *+' conftest.er1 >conftest.err
13541 rm -f conftest.er1
13542 cat conftest.err >&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
13544 (exit $ac_status); } &&
13545 { ac_try='test -z "$ac_c_werror_flag"
13546 || test ! -s conftest.err'
13547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
13549 ac_status=$?
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; } &&
13552 { ac_try='test -s conftest.$ac_objext'
13553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554 (eval $ac_try) 2>&5
13555 ac_status=$?
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }; }; then
1cf3d07d 13558 ac_cv_sys_largefile_CC=' -n32'; break
96b8a615
AJ
13559else
13560 echo "$as_me: failed program was:" >&5
13561sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 13562
c0e7e2bf 13563fi
38d24731 13564rm -f conftest.err conftest.$ac_objext
1cf3d07d
SE
13565 break
13566 done
13567 CC=$ac_save_CC
13568 rm -f conftest.$ac_ext
96b8a615 13569 fi
c0e7e2bf 13570fi
38d24731
RW
13571echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
13572echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
1cf3d07d
SE
13573 if test "$ac_cv_sys_largefile_CC" != no; then
13574 CC=$CC$ac_cv_sys_largefile_CC
13575 fi
c0e7e2bf 13576
38d24731
RW
13577 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13578echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
1cf3d07d 13579if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6de9cd9a 13580 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 13581else
1cf3d07d 13582 while :; do
38d24731 13583 ac_cv_sys_file_offset_bits=no
96b8a615 13584 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
13585/* confdefs.h. */
13586_ACEOF
13587cat confdefs.h >>conftest.$ac_ext
13588cat >>conftest.$ac_ext <<_ACEOF
13589/* end confdefs.h. */
1cf3d07d
SE
13590#include <sys/types.h>
13591 /* Check that off_t can represent 2**63 - 1 correctly.
13592 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13593 since some C++ compilers masquerading as C compilers
13594 incorrectly reject 9223372036854775807. */
13595#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13596 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13597 && LARGE_OFF_T % 2147483647 == 1)
13598 ? 1 : -1];
96b8a615
AJ
13599int
13600main ()
13601{
13602
13603 ;
13604 return 0;
13605}
6de9cd9a
DN
13606_ACEOF
13607rm -f conftest.$ac_objext
38d24731
RW
13608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13609 (eval $ac_compile) 2>conftest.er1
6de9cd9a
DN
13610 ac_status=$?
13611 grep -v '^ *+' conftest.er1 >conftest.err
13612 rm -f conftest.er1
13613 cat conftest.err >&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
13615 (exit $ac_status); } &&
13616 { ac_try='test -z "$ac_c_werror_flag"
13617 || test ! -s conftest.err'
13618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619 (eval $ac_try) 2>&5
13620 ac_status=$?
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; } &&
13623 { ac_try='test -s conftest.$ac_objext'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; }; then
13629 break
6de9cd9a
DN
13630else
13631 echo "$as_me: failed program was:" >&5
13632sed 's/^/| /' conftest.$ac_ext >&5
13633
6de9cd9a 13634fi
38d24731 13635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96b8a615 13636 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
13637/* confdefs.h. */
13638_ACEOF
13639cat confdefs.h >>conftest.$ac_ext
13640cat >>conftest.$ac_ext <<_ACEOF
13641/* end confdefs.h. */
1cf3d07d
SE
13642#define _FILE_OFFSET_BITS 64
13643#include <sys/types.h>
13644 /* Check that off_t can represent 2**63 - 1 correctly.
13645 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13646 since some C++ compilers masquerading as C compilers
13647 incorrectly reject 9223372036854775807. */
13648#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13649 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13650 && LARGE_OFF_T % 2147483647 == 1)
13651 ? 1 : -1];
13652int
13653main ()
13654{
96b8a615 13655
1cf3d07d
SE
13656 ;
13657 return 0;
13658}
6de9cd9a 13659_ACEOF
1cf3d07d 13660rm -f conftest.$ac_objext
38d24731
RW
13661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13662 (eval $ac_compile) 2>conftest.er1
1cf3d07d
SE
13663 ac_status=$?
13664 grep -v '^ *+' conftest.er1 >conftest.err
13665 rm -f conftest.er1
13666 cat conftest.err >&5
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
13668 (exit $ac_status); } &&
13669 { ac_try='test -z "$ac_c_werror_flag"
13670 || test ! -s conftest.err'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13673 ac_status=$?
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; } &&
13676 { ac_try='test -s conftest.$ac_objext'
13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13679 ac_status=$?
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; }; then
1cf3d07d 13682 ac_cv_sys_file_offset_bits=64; break
6de9cd9a 13683else
1cf3d07d
SE
13684 echo "$as_me: failed program was:" >&5
13685sed 's/^/| /' conftest.$ac_ext >&5
96b8a615
AJ
13686
13687fi
38d24731 13688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
13689 break
13690done
13691fi
38d24731
RW
13692echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
13693echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
13694if test "$ac_cv_sys_file_offset_bits" != no; then
13695
1cf3d07d
SE
13696cat >>confdefs.h <<_ACEOF
13697#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
96b8a615 13698_ACEOF
38d24731
RW
13699
13700fi
96b8a615 13701rm -f conftest*
38d24731
RW
13702 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
13703echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
1cf3d07d
SE
13704if test "${ac_cv_sys_large_files+set}" = set; then
13705 echo $ECHO_N "(cached) $ECHO_C" >&6
96b8a615 13706else
1cf3d07d 13707 while :; do
38d24731 13708 ac_cv_sys_large_files=no
96b8a615
AJ
13709 cat >conftest.$ac_ext <<_ACEOF
13710/* confdefs.h. */
13711_ACEOF
13712cat confdefs.h >>conftest.$ac_ext
13713cat >>conftest.$ac_ext <<_ACEOF
13714/* end confdefs.h. */
1cf3d07d
SE
13715#include <sys/types.h>
13716 /* Check that off_t can represent 2**63 - 1 correctly.
13717 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13718 since some C++ compilers masquerading as C compilers
13719 incorrectly reject 9223372036854775807. */
13720#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13721 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13722 && LARGE_OFF_T % 2147483647 == 1)
13723 ? 1 : -1];
96b8a615
AJ
13724int
13725main ()
13726{
1cf3d07d
SE
13727
13728 ;
13729 return 0;
96b8a615
AJ
13730}
13731_ACEOF
1cf3d07d 13732rm -f conftest.$ac_objext
38d24731
RW
13733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13734 (eval $ac_compile) 2>conftest.er1
96b8a615 13735 ac_status=$?
1cf3d07d
SE
13736 grep -v '^ *+' conftest.er1 >conftest.err
13737 rm -f conftest.er1
13738 cat conftest.err >&5
96b8a615 13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
13740 (exit $ac_status); } &&
13741 { ac_try='test -z "$ac_c_werror_flag"
13742 || test ! -s conftest.err'
13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13745 ac_status=$?
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; } &&
13748 { ac_try='test -s conftest.$ac_objext'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13751 ac_status=$?
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; }; then
13754 break
96b8a615 13755else
1cf3d07d 13756 echo "$as_me: failed program was:" >&5
6de9cd9a
DN
13757sed 's/^/| /' conftest.$ac_ext >&5
13758
96b8a615 13759fi
38d24731 13760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96b8a615
AJ
13761 cat >conftest.$ac_ext <<_ACEOF
13762/* confdefs.h. */
13763_ACEOF
13764cat confdefs.h >>conftest.$ac_ext
13765cat >>conftest.$ac_ext <<_ACEOF
13766/* end confdefs.h. */
1cf3d07d
SE
13767#define _LARGE_FILES 1
13768#include <sys/types.h>
13769 /* Check that off_t can represent 2**63 - 1 correctly.
13770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13771 since some C++ compilers masquerading as C compilers
13772 incorrectly reject 9223372036854775807. */
13773#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13775 && LARGE_OFF_T % 2147483647 == 1)
13776 ? 1 : -1];
13777int
13778main ()
13779{
96b8a615 13780
1cf3d07d
SE
13781 ;
13782 return 0;
13783}
96b8a615
AJ
13784_ACEOF
13785rm -f conftest.$ac_objext
38d24731
RW
13786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13787 (eval $ac_compile) 2>conftest.er1
96b8a615
AJ
13788 ac_status=$?
13789 grep -v '^ *+' conftest.er1 >conftest.err
13790 rm -f conftest.er1
13791 cat conftest.err >&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
13793 (exit $ac_status); } &&
13794 { ac_try='test -z "$ac_c_werror_flag"
13795 || test ! -s conftest.err'
13796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13797 (eval $ac_try) 2>&5
13798 ac_status=$?
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); }; } &&
13801 { ac_try='test -s conftest.$ac_objext'
13802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13803 (eval $ac_try) 2>&5
13804 ac_status=$?
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); }; }; then
1cf3d07d 13807 ac_cv_sys_large_files=1; break
96b8a615
AJ
13808else
13809 echo "$as_me: failed program was:" >&5
13810sed 's/^/| /' conftest.$ac_ext >&5
13811
96b8a615 13812fi
38d24731 13813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
13814 break
13815done
6de9cd9a 13816fi
38d24731
RW
13817echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
13818echo "${ECHO_T}$ac_cv_sys_large_files" >&6
13819if test "$ac_cv_sys_large_files" != no; then
13820
1cf3d07d
SE
13821cat >>confdefs.h <<_ACEOF
13822#define _LARGE_FILES $ac_cv_sys_large_files
6de9cd9a 13823_ACEOF
38d24731
RW
13824
13825fi
1cf3d07d
SE
13826rm -f conftest*
13827fi
96b8a615 13828
38d24731
RW
13829echo "$as_me:$LINENO: checking for off_t" >&5
13830echo $ECHO_N "checking for off_t... $ECHO_C" >&6
96b8a615 13831if test "${ac_cv_type_off_t+set}" = set; then
6de9cd9a
DN
13832 echo $ECHO_N "(cached) $ECHO_C" >&6
13833else
96b8a615
AJ
13834 cat >conftest.$ac_ext <<_ACEOF
13835/* confdefs.h. */
13836_ACEOF
13837cat confdefs.h >>conftest.$ac_ext
13838cat >>conftest.$ac_ext <<_ACEOF
13839/* end confdefs.h. */
13840$ac_includes_default
6de9cd9a
DN
13841int
13842main ()
13843{
38d24731 13844if ((off_t *) 0)
96b8a615 13845 return 0;
38d24731 13846if (sizeof (off_t))
96b8a615 13847 return 0;
6de9cd9a
DN
13848 ;
13849 return 0;
13850}
13851_ACEOF
96b8a615 13852rm -f conftest.$ac_objext
38d24731
RW
13853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13854 (eval $ac_compile) 2>conftest.er1
6de9cd9a
DN
13855 ac_status=$?
13856 grep -v '^ *+' conftest.er1 >conftest.err
13857 rm -f conftest.er1
13858 cat conftest.err >&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
13860 (exit $ac_status); } &&
13861 { ac_try='test -z "$ac_c_werror_flag"
13862 || test ! -s conftest.err'
13863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864 (eval $ac_try) 2>&5
13865 ac_status=$?
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); }; } &&
13868 { ac_try='test -s conftest.$ac_objext'
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13871 ac_status=$?
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }; then
96b8a615 13874 ac_cv_type_off_t=yes
6de9cd9a
DN
13875else
13876 echo "$as_me: failed program was:" >&5
13877sed 's/^/| /' conftest.$ac_ext >&5
13878
38d24731 13879ac_cv_type_off_t=no
6de9cd9a 13880fi
38d24731 13881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 13882fi
38d24731
RW
13883echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13884echo "${ECHO_T}$ac_cv_type_off_t" >&6
96b8a615
AJ
13885if test $ac_cv_type_off_t = yes; then
13886 :
13887else
13888
13889cat >>confdefs.h <<_ACEOF
38d24731 13890#define off_t long
6de9cd9a
DN
13891_ACEOF
13892
13893fi
6de9cd9a 13894
96b8a615
AJ
13895
13896# check header files
38d24731
RW
13897echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13898echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
96b8a615 13899if test "${ac_cv_header_stdc+set}" = set; then
6de9cd9a
DN
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13901else
13902 cat >conftest.$ac_ext <<_ACEOF
13903/* confdefs.h. */
13904_ACEOF
13905cat confdefs.h >>conftest.$ac_ext
13906cat >>conftest.$ac_ext <<_ACEOF
13907/* end confdefs.h. */
96b8a615
AJ
13908#include <stdlib.h>
13909#include <stdarg.h>
13910#include <string.h>
13911#include <float.h>
13912
6de9cd9a
DN
13913int
13914main ()
13915{
96b8a615 13916
6de9cd9a
DN
13917 ;
13918 return 0;
13919}
13920_ACEOF
13921rm -f conftest.$ac_objext
38d24731
RW
13922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13923 (eval $ac_compile) 2>conftest.er1
6de9cd9a
DN
13924 ac_status=$?
13925 grep -v '^ *+' conftest.er1 >conftest.err
13926 rm -f conftest.er1
13927 cat conftest.err >&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
13929 (exit $ac_status); } &&
13930 { ac_try='test -z "$ac_c_werror_flag"
13931 || test ! -s conftest.err'
13932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933 (eval $ac_try) 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; } &&
13937 { ac_try='test -s conftest.$ac_objext'
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13940 ac_status=$?
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; }; then
96b8a615 13943 ac_cv_header_stdc=yes
6de9cd9a
DN
13944else
13945 echo "$as_me: failed program was:" >&5
13946sed 's/^/| /' conftest.$ac_ext >&5
13947
38d24731 13948ac_cv_header_stdc=no
6de9cd9a 13949fi
38d24731 13950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96b8a615
AJ
13951
13952if test $ac_cv_header_stdc = yes; then
13953 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6de9cd9a
DN
13954 cat >conftest.$ac_ext <<_ACEOF
13955/* confdefs.h. */
13956_ACEOF
13957cat confdefs.h >>conftest.$ac_ext
13958cat >>conftest.$ac_ext <<_ACEOF
13959/* end confdefs.h. */
96b8a615 13960#include <string.h>
6de9cd9a 13961
6de9cd9a 13962_ACEOF
96b8a615
AJ
13963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13964 $EGREP "memchr" >/dev/null 2>&1; then
13965 :
6de9cd9a 13966else
96b8a615 13967 ac_cv_header_stdc=no
6de9cd9a 13968fi
96b8a615
AJ
13969rm -f conftest*
13970
6de9cd9a 13971fi
6de9cd9a 13972
96b8a615
AJ
13973if test $ac_cv_header_stdc = yes; then
13974 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13975 cat >conftest.$ac_ext <<_ACEOF
13976/* confdefs.h. */
13977_ACEOF
13978cat confdefs.h >>conftest.$ac_ext
13979cat >>conftest.$ac_ext <<_ACEOF
13980/* end confdefs.h. */
13981#include <stdlib.h>
13982
6de9cd9a 13983_ACEOF
96b8a615
AJ
13984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13985 $EGREP "free" >/dev/null 2>&1; then
13986 :
13987else
13988 ac_cv_header_stdc=no
13989fi
13990rm -f conftest*
6de9cd9a 13991
96b8a615 13992fi
6de9cd9a 13993
96b8a615
AJ
13994if test $ac_cv_header_stdc = yes; then
13995 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13996 if test "$cross_compiling" = yes; then
13997 :
6de9cd9a
DN
13998else
13999 cat >conftest.$ac_ext <<_ACEOF
14000/* confdefs.h. */
14001_ACEOF
14002cat confdefs.h >>conftest.$ac_ext
14003cat >>conftest.$ac_ext <<_ACEOF
14004/* end confdefs.h. */
96b8a615
AJ
14005#include <ctype.h>
14006#if ((' ' & 0x0FF) == 0x020)
14007# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14008# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6de9cd9a 14009#else
96b8a615
AJ
14010# define ISLOWER(c) \
14011 (('a' <= (c) && (c) <= 'i') \
14012 || ('j' <= (c) && (c) <= 'r') \
14013 || ('s' <= (c) && (c) <= 'z'))
14014# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6de9cd9a
DN
14015#endif
14016
96b8a615 14017#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6de9cd9a
DN
14018int
14019main ()
14020{
96b8a615
AJ
14021 int i;
14022 for (i = 0; i < 256; i++)
14023 if (XOR (islower (i), ISLOWER (i))
14024 || toupper (i) != TOUPPER (i))
38d24731
RW
14025 exit(2);
14026 exit (0);
6de9cd9a
DN
14027}
14028_ACEOF
96b8a615 14029rm -f conftest$ac_exeext
38d24731
RW
14030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14031 (eval $ac_link) 2>&5
6de9cd9a
DN
14032 ac_status=$?
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615 14034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38d24731
RW
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
6de9cd9a 14037 ac_status=$?
96b8a615
AJ
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14040 :
6de9cd9a 14041else
96b8a615
AJ
14042 echo "$as_me: program exited with status $ac_status" >&5
14043echo "$as_me: failed program was:" >&5
14044sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 14045
96b8a615
AJ
14046( exit $ac_status )
14047ac_cv_header_stdc=no
6de9cd9a 14048fi
38d24731 14049rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6de9cd9a
DN
14050fi
14051fi
6de9cd9a 14052fi
38d24731
RW
14053echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14054echo "${ECHO_T}$ac_cv_header_stdc" >&6
96b8a615 14055if test $ac_cv_header_stdc = yes; then
6de9cd9a 14056
96b8a615
AJ
14057cat >>confdefs.h <<\_ACEOF
14058#define STDC_HEADERS 1
14059_ACEOF
6de9cd9a
DN
14060
14061fi
14062
38d24731
RW
14063echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14064echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
a63a0959
TB
14065if test "${ac_cv_header_time+set}" = set; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14067else
14068 cat >conftest.$ac_ext <<_ACEOF
14069/* confdefs.h. */
14070_ACEOF
14071cat confdefs.h >>conftest.$ac_ext
14072cat >>conftest.$ac_ext <<_ACEOF
14073/* end confdefs.h. */
14074#include <sys/types.h>
14075#include <sys/time.h>
14076#include <time.h>
14077
14078int
14079main ()
14080{
14081if ((struct tm *) 0)
14082return 0;
14083 ;
14084 return 0;
14085}
14086_ACEOF
14087rm -f conftest.$ac_objext
38d24731
RW
14088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14089 (eval $ac_compile) 2>conftest.er1
a63a0959
TB
14090 ac_status=$?
14091 grep -v '^ *+' conftest.er1 >conftest.err
14092 rm -f conftest.er1
14093 cat conftest.err >&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
14095 (exit $ac_status); } &&
14096 { ac_try='test -z "$ac_c_werror_flag"
14097 || test ! -s conftest.err'
14098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14100 ac_status=$?
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; } &&
14103 { ac_try='test -s conftest.$ac_objext'
14104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105 (eval $ac_try) 2>&5
14106 ac_status=$?
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; }; then
a63a0959
TB
14109 ac_cv_header_time=yes
14110else
14111 echo "$as_me: failed program was:" >&5
14112sed 's/^/| /' conftest.$ac_ext >&5
14113
38d24731 14114ac_cv_header_time=no
a63a0959 14115fi
38d24731 14116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a63a0959 14117fi
38d24731
RW
14118echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14119echo "${ECHO_T}$ac_cv_header_time" >&6
a63a0959
TB
14120if test $ac_cv_header_time = yes; then
14121
14122cat >>confdefs.h <<\_ACEOF
14123#define TIME_WITH_SYS_TIME 1
14124_ACEOF
14125
14126fi
14127
6de9cd9a
DN
14128
14129
6de9cd9a 14130
6de9cd9a 14131
d8163f5c
TK
14132
14133
14134for ac_header in stdio.h stdlib.h string.h unistd.h signal.h stdarg.h
96b8a615
AJ
14135do
14136as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38d24731
RW
14137if eval "test \"\${$as_ac_Header+set}\" = set"; then
14138 echo "$as_me:$LINENO: checking for $ac_header" >&5
14139echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14140if eval "test \"\${$as_ac_Header+set}\" = set"; then
96b8a615
AJ
14141 echo $ECHO_N "(cached) $ECHO_C" >&6
14142fi
38d24731
RW
14143echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14144echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a 14145else
96b8a615 14146 # Is the header compilable?
38d24731
RW
14147echo "$as_me:$LINENO: checking $ac_header usability" >&5
14148echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
96b8a615
AJ
14149cat >conftest.$ac_ext <<_ACEOF
14150/* confdefs.h. */
14151_ACEOF
14152cat confdefs.h >>conftest.$ac_ext
14153cat >>conftest.$ac_ext <<_ACEOF
14154/* end confdefs.h. */
14155$ac_includes_default
14156#include <$ac_header>
14157_ACEOF
14158rm -f conftest.$ac_objext
38d24731
RW
14159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14160 (eval $ac_compile) 2>conftest.er1
96b8a615
AJ
14161 ac_status=$?
14162 grep -v '^ *+' conftest.er1 >conftest.err
14163 rm -f conftest.er1
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
14166 (exit $ac_status); } &&
14167 { ac_try='test -z "$ac_c_werror_flag"
14168 || test ! -s conftest.err'
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; } &&
14174 { ac_try='test -s conftest.$ac_objext'
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
96b8a615 14180 ac_header_compiler=yes
6de9cd9a 14181else
96b8a615
AJ
14182 echo "$as_me: failed program was:" >&5
14183sed 's/^/| /' conftest.$ac_ext >&5
14184
38d24731 14185ac_header_compiler=no
6de9cd9a 14186fi
38d24731
RW
14187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14188echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14189echo "${ECHO_T}$ac_header_compiler" >&6
96b8a615
AJ
14190
14191# Is the header present?
38d24731
RW
14192echo "$as_me:$LINENO: checking $ac_header presence" >&5
14193echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
96b8a615
AJ
14194cat >conftest.$ac_ext <<_ACEOF
14195/* confdefs.h. */
14196_ACEOF
14197cat confdefs.h >>conftest.$ac_ext
14198cat >>conftest.$ac_ext <<_ACEOF
14199/* end confdefs.h. */
14200#include <$ac_header>
14201_ACEOF
38d24731
RW
14202if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
96b8a615
AJ
14204 ac_status=$?
14205 grep -v '^ *+' conftest.er1 >conftest.err
14206 rm -f conftest.er1
14207 cat conftest.err >&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
14209 (exit $ac_status); } >/dev/null; then
14210 if test -s conftest.err; then
14211 ac_cpp_err=$ac_c_preproc_warn_flag
14212 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14213 else
14214 ac_cpp_err=
14215 fi
14216else
14217 ac_cpp_err=yes
14218fi
14219if test -z "$ac_cpp_err"; then
96b8a615 14220 ac_header_preproc=yes
6de9cd9a 14221else
96b8a615
AJ
14222 echo "$as_me: failed program was:" >&5
14223sed 's/^/| /' conftest.$ac_ext >&5
14224
14225 ac_header_preproc=no
6de9cd9a 14226fi
96b8a615 14227rm -f conftest.err conftest.$ac_ext
38d24731
RW
14228echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14229echo "${ECHO_T}$ac_header_preproc" >&6
96b8a615
AJ
14230
14231# So? What about this header?
14232case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14233 yes:no: )
14234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14235echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14237echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14238 ac_header_preproc=yes
14239 ;;
14240 no:yes:* )
14241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14242echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14244echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14245 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14246echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14247 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14248echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14250echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14251 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14252echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38d24731
RW
14253 (
14254 cat <<\_ASBOX
14255## ------------------------------------------------------ ##
14256## Report this to the GNU Fortran Runtime Library lists. ##
14257## ------------------------------------------------------ ##
14258_ASBOX
14259 ) |
14260 sed "s/^/$as_me: WARNING: /" >&2
96b8a615
AJ
14261 ;;
14262esac
38d24731
RW
14263echo "$as_me:$LINENO: checking for $ac_header" >&5
14264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14265if eval "test \"\${$as_ac_Header+set}\" = set"; then
6de9cd9a
DN
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14267else
96b8a615 14268 eval "$as_ac_Header=\$ac_header_preproc"
6de9cd9a 14269fi
38d24731
RW
14270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a 14272
96b8a615
AJ
14273fi
14274if test `eval echo '${'$as_ac_Header'}'` = yes; then
14275 cat >>confdefs.h <<_ACEOF
14276#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14277_ACEOF
6de9cd9a 14278
6de9cd9a 14279fi
6de9cd9a 14280
96b8a615
AJ
14281done
14282
14283
14284
14285
14286
5e9f08ba 14287for ac_header in time.h sys/time.h sys/times.h sys/resource.h
96b8a615
AJ
14288do
14289as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38d24731
RW
14290if eval "test \"\${$as_ac_Header+set}\" = set"; then
14291 echo "$as_me:$LINENO: checking for $ac_header" >&5
14292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14293if eval "test \"\${$as_ac_Header+set}\" = set"; then
f596fc98
AL
14294 echo $ECHO_N "(cached) $ECHO_C" >&6
14295fi
38d24731
RW
14296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14297echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f596fc98
AL
14298else
14299 # Is the header compilable?
38d24731
RW
14300echo "$as_me:$LINENO: checking $ac_header usability" >&5
14301echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
f596fc98
AL
14302cat >conftest.$ac_ext <<_ACEOF
14303/* confdefs.h. */
14304_ACEOF
14305cat confdefs.h >>conftest.$ac_ext
14306cat >>conftest.$ac_ext <<_ACEOF
14307/* end confdefs.h. */
14308$ac_includes_default
14309#include <$ac_header>
14310_ACEOF
14311rm -f conftest.$ac_objext
38d24731
RW
14312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14313 (eval $ac_compile) 2>conftest.er1
f596fc98
AL
14314 ac_status=$?
14315 grep -v '^ *+' conftest.er1 >conftest.err
14316 rm -f conftest.er1
14317 cat conftest.err >&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
14319 (exit $ac_status); } &&
14320 { ac_try='test -z "$ac_c_werror_flag"
14321 || test ! -s conftest.err'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; } &&
14327 { ac_try='test -s conftest.$ac_objext'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; }; then
f596fc98
AL
14333 ac_header_compiler=yes
14334else
14335 echo "$as_me: failed program was:" >&5
14336sed 's/^/| /' conftest.$ac_ext >&5
14337
38d24731 14338ac_header_compiler=no
f596fc98 14339fi
38d24731
RW
14340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14341echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14342echo "${ECHO_T}$ac_header_compiler" >&6
f596fc98
AL
14343
14344# Is the header present?
38d24731
RW
14345echo "$as_me:$LINENO: checking $ac_header presence" >&5
14346echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
f596fc98
AL
14347cat >conftest.$ac_ext <<_ACEOF
14348/* confdefs.h. */
14349_ACEOF
14350cat confdefs.h >>conftest.$ac_ext
14351cat >>conftest.$ac_ext <<_ACEOF
14352/* end confdefs.h. */
14353#include <$ac_header>
14354_ACEOF
38d24731
RW
14355if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
f596fc98
AL
14357 ac_status=$?
14358 grep -v '^ *+' conftest.er1 >conftest.err
14359 rm -f conftest.er1
14360 cat conftest.err >&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
14362 (exit $ac_status); } >/dev/null; then
14363 if test -s conftest.err; then
14364 ac_cpp_err=$ac_c_preproc_warn_flag
14365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14366 else
14367 ac_cpp_err=
14368 fi
14369else
14370 ac_cpp_err=yes
14371fi
14372if test -z "$ac_cpp_err"; then
f596fc98
AL
14373 ac_header_preproc=yes
14374else
14375 echo "$as_me: failed program was:" >&5
14376sed 's/^/| /' conftest.$ac_ext >&5
14377
14378 ac_header_preproc=no
14379fi
14380rm -f conftest.err conftest.$ac_ext
38d24731
RW
14381echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14382echo "${ECHO_T}$ac_header_preproc" >&6
f596fc98
AL
14383
14384# So? What about this header?
14385case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14386 yes:no: )
14387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14388echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14390echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14391 ac_header_preproc=yes
14392 ;;
14393 no:yes:* )
14394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14395echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14397echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14399echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14401echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14403echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14405echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38d24731
RW
14406 (
14407 cat <<\_ASBOX
14408## ------------------------------------------------------ ##
14409## Report this to the GNU Fortran Runtime Library lists. ##
14410## ------------------------------------------------------ ##
14411_ASBOX
14412 ) |
14413 sed "s/^/$as_me: WARNING: /" >&2
f596fc98
AL
14414 ;;
14415esac
38d24731
RW
14416echo "$as_me:$LINENO: checking for $ac_header" >&5
14417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14418if eval "test \"\${$as_ac_Header+set}\" = set"; then
f596fc98
AL
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
14420else
14421 eval "$as_ac_Header=\$ac_header_preproc"
14422fi
38d24731
RW
14423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14424echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f596fc98
AL
14425
14426fi
14427if test `eval echo '${'$as_ac_Header'}'` = yes; then
14428 cat >>confdefs.h <<_ACEOF
14429#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14430_ACEOF
14431
14432fi
14433
14434done
14435
14436
df65f093
SK
14437
14438
6e4d9244 14439
a119fc1c
FXC
14440
14441for ac_header in sys/types.h sys/stat.h sys/wait.h floatingpoint.h ieeefp.h
3b14f664
FXC
14442do
14443as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38d24731
RW
14444if eval "test \"\${$as_ac_Header+set}\" = set"; then
14445 echo "$as_me:$LINENO: checking for $ac_header" >&5
14446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14447if eval "test \"\${$as_ac_Header+set}\" = set"; then
3b14f664
FXC
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14449fi
38d24731
RW
14450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14451echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3b14f664
FXC
14452else
14453 # Is the header compilable?
38d24731
RW
14454echo "$as_me:$LINENO: checking $ac_header usability" >&5
14455echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3b14f664
FXC
14456cat >conftest.$ac_ext <<_ACEOF
14457/* confdefs.h. */
14458_ACEOF
14459cat confdefs.h >>conftest.$ac_ext
14460cat >>conftest.$ac_ext <<_ACEOF
14461/* end confdefs.h. */
14462$ac_includes_default
14463#include <$ac_header>
14464_ACEOF
14465rm -f conftest.$ac_objext
38d24731
RW
14466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14467 (eval $ac_compile) 2>conftest.er1
3b14f664
FXC
14468 ac_status=$?
14469 grep -v '^ *+' conftest.er1 >conftest.err
14470 rm -f conftest.er1
14471 cat conftest.err >&5
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
14473 (exit $ac_status); } &&
14474 { ac_try='test -z "$ac_c_werror_flag"
14475 || test ! -s conftest.err'
14476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477 (eval $ac_try) 2>&5
14478 ac_status=$?
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; } &&
14481 { ac_try='test -s conftest.$ac_objext'
14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483 (eval $ac_try) 2>&5
14484 ac_status=$?
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; }; then
3b14f664
FXC
14487 ac_header_compiler=yes
14488else
14489 echo "$as_me: failed program was:" >&5
14490sed 's/^/| /' conftest.$ac_ext >&5
14491
38d24731 14492ac_header_compiler=no
3b14f664 14493fi
38d24731
RW
14494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14495echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14496echo "${ECHO_T}$ac_header_compiler" >&6
3b14f664
FXC
14497
14498# Is the header present?
38d24731
RW
14499echo "$as_me:$LINENO: checking $ac_header presence" >&5
14500echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3b14f664
FXC
14501cat >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#include <$ac_header>
14508_ACEOF
38d24731
RW
14509if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3b14f664
FXC
14511 ac_status=$?
14512 grep -v '^ *+' conftest.er1 >conftest.err
14513 rm -f conftest.er1
14514 cat conftest.err >&5
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
14516 (exit $ac_status); } >/dev/null; then
14517 if test -s conftest.err; then
14518 ac_cpp_err=$ac_c_preproc_warn_flag
14519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14520 else
14521 ac_cpp_err=
14522 fi
14523else
14524 ac_cpp_err=yes
14525fi
14526if test -z "$ac_cpp_err"; then
3b14f664
FXC
14527 ac_header_preproc=yes
14528else
14529 echo "$as_me: failed program was:" >&5
14530sed 's/^/| /' conftest.$ac_ext >&5
14531
14532 ac_header_preproc=no
14533fi
14534rm -f conftest.err conftest.$ac_ext
38d24731
RW
14535echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14536echo "${ECHO_T}$ac_header_preproc" >&6
3b14f664
FXC
14537
14538# So? What about this header?
14539case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14540 yes:no: )
14541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14542echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14544echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14545 ac_header_preproc=yes
14546 ;;
14547 no:yes:* )
14548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14549echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14551echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14553echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14555echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14557echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14559echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38d24731
RW
14560 (
14561 cat <<\_ASBOX
14562## ------------------------------------------------------ ##
14563## Report this to the GNU Fortran Runtime Library lists. ##
14564## ------------------------------------------------------ ##
14565_ASBOX
14566 ) |
14567 sed "s/^/$as_me: WARNING: /" >&2
3b14f664
FXC
14568 ;;
14569esac
38d24731
RW
14570echo "$as_me:$LINENO: checking for $ac_header" >&5
14571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14572if eval "test \"\${$as_ac_Header+set}\" = set"; then
3b14f664
FXC
14573 echo $ECHO_N "(cached) $ECHO_C" >&6
14574else
14575 eval "$as_ac_Header=\$ac_header_preproc"
14576fi
38d24731
RW
14577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14578echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3b14f664
FXC
14579
14580fi
14581if test `eval echo '${'$as_ac_Header'}'` = yes; then
14582 cat >>confdefs.h <<_ACEOF
14583#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14584_ACEOF
14585
14586fi
14587
14588done
14589
14590
14591
14592
868d75db 14593
6422c112
FXC
14594
14595for ac_header in fenv.h fptrap.h float.h execinfo.h pwd.h
f596fc98
AL
14596do
14597as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38d24731
RW
14598if eval "test \"\${$as_ac_Header+set}\" = set"; then
14599 echo "$as_me:$LINENO: checking for $ac_header" >&5
14600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14601if eval "test \"\${$as_ac_Header+set}\" = set"; then
6de9cd9a 14602 echo $ECHO_N "(cached) $ECHO_C" >&6
96b8a615 14603fi
38d24731
RW
14604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14605echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a 14606else
96b8a615 14607 # Is the header compilable?
38d24731
RW
14608echo "$as_me:$LINENO: checking $ac_header usability" >&5
14609echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
96b8a615
AJ
14610cat >conftest.$ac_ext <<_ACEOF
14611/* confdefs.h. */
14612_ACEOF
14613cat confdefs.h >>conftest.$ac_ext
14614cat >>conftest.$ac_ext <<_ACEOF
14615/* end confdefs.h. */
14616$ac_includes_default
14617#include <$ac_header>
14618_ACEOF
14619rm -f conftest.$ac_objext
38d24731
RW
14620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14621 (eval $ac_compile) 2>conftest.er1
96b8a615
AJ
14622 ac_status=$?
14623 grep -v '^ *+' conftest.er1 >conftest.err
14624 rm -f conftest.er1
14625 cat conftest.err >&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
14627 (exit $ac_status); } &&
14628 { ac_try='test -z "$ac_c_werror_flag"
14629 || test ! -s conftest.err'
14630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631 (eval $ac_try) 2>&5
14632 ac_status=$?
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; } &&
14635 { ac_try='test -s conftest.$ac_objext'
14636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637 (eval $ac_try) 2>&5
14638 ac_status=$?
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }; }; then
96b8a615 14641 ac_header_compiler=yes
6de9cd9a 14642else
96b8a615
AJ
14643 echo "$as_me: failed program was:" >&5
14644sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 14645
38d24731 14646ac_header_compiler=no
96b8a615 14647fi
38d24731
RW
14648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14649echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14650echo "${ECHO_T}$ac_header_compiler" >&6
6de9cd9a 14651
96b8a615 14652# Is the header present?
38d24731
RW
14653echo "$as_me:$LINENO: checking $ac_header presence" >&5
14654echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
96b8a615
AJ
14655cat >conftest.$ac_ext <<_ACEOF
14656/* confdefs.h. */
14657_ACEOF
14658cat confdefs.h >>conftest.$ac_ext
14659cat >>conftest.$ac_ext <<_ACEOF
14660/* end confdefs.h. */
14661#include <$ac_header>
14662_ACEOF
38d24731
RW
14663if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
96b8a615
AJ
14665 ac_status=$?
14666 grep -v '^ *+' conftest.er1 >conftest.err
14667 rm -f conftest.er1
14668 cat conftest.err >&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
14670 (exit $ac_status); } >/dev/null; then
14671 if test -s conftest.err; then
14672 ac_cpp_err=$ac_c_preproc_warn_flag
14673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14674 else
14675 ac_cpp_err=
14676 fi
14677else
14678 ac_cpp_err=yes
14679fi
14680if test -z "$ac_cpp_err"; then
96b8a615 14681 ac_header_preproc=yes
6de9cd9a 14682else
96b8a615
AJ
14683 echo "$as_me: failed program was:" >&5
14684sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 14685
96b8a615
AJ
14686 ac_header_preproc=no
14687fi
14688rm -f conftest.err conftest.$ac_ext
38d24731
RW
14689echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14690echo "${ECHO_T}$ac_header_preproc" >&6
6de9cd9a 14691
96b8a615
AJ
14692# So? What about this header?
14693case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14694 yes:no: )
14695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14696echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14698echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14699 ac_header_preproc=yes
6de9cd9a 14700 ;;
96b8a615
AJ
14701 no:yes:* )
14702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14703echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14705echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14706 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14707echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14708 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14709echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14711echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14712 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14713echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38d24731
RW
14714 (
14715 cat <<\_ASBOX
14716## ------------------------------------------------------ ##
14717## Report this to the GNU Fortran Runtime Library lists. ##
14718## ------------------------------------------------------ ##
14719_ASBOX
14720 ) |
14721 sed "s/^/$as_me: WARNING: /" >&2
6de9cd9a 14722 ;;
96b8a615 14723esac
38d24731
RW
14724echo "$as_me:$LINENO: checking for $ac_header" >&5
14725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14726if eval "test \"\${$as_ac_Header+set}\" = set"; then
96b8a615
AJ
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14728else
14729 eval "$as_ac_Header=\$ac_header_preproc"
14730fi
38d24731
RW
14731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14732echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a 14733
96b8a615
AJ
14734fi
14735if test `eval echo '${'$as_ac_Header'}'` = yes; then
14736 cat >>confdefs.h <<_ACEOF
14737#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14738_ACEOF
6de9cd9a 14739
96b8a615 14740fi
6de9cd9a 14741
96b8a615 14742done
6de9cd9a 14743
96b8a615 14744if test "${ac_cv_header_complex_h+set}" = set; then
38d24731
RW
14745 echo "$as_me:$LINENO: checking for complex.h" >&5
14746echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
96b8a615
AJ
14747if test "${ac_cv_header_complex_h+set}" = set; then
14748 echo $ECHO_N "(cached) $ECHO_C" >&6
14749fi
38d24731
RW
14750echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
14751echo "${ECHO_T}$ac_cv_header_complex_h" >&6
96b8a615
AJ
14752else
14753 # Is the header compilable?
38d24731
RW
14754echo "$as_me:$LINENO: checking complex.h usability" >&5
14755echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6
96b8a615
AJ
14756cat >conftest.$ac_ext <<_ACEOF
14757/* confdefs.h. */
14758_ACEOF
14759cat confdefs.h >>conftest.$ac_ext
14760cat >>conftest.$ac_ext <<_ACEOF
14761/* end confdefs.h. */
14762$ac_includes_default
14763#include <complex.h>
14764_ACEOF
14765rm -f conftest.$ac_objext
38d24731
RW
14766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14767 (eval $ac_compile) 2>conftest.er1
96b8a615
AJ
14768 ac_status=$?
14769 grep -v '^ *+' conftest.er1 >conftest.err
14770 rm -f conftest.er1
14771 cat conftest.err >&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
14773 (exit $ac_status); } &&
14774 { ac_try='test -z "$ac_c_werror_flag"
14775 || test ! -s conftest.err'
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); }; } &&
14781 { ac_try='test -s conftest.$ac_objext'
14782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14783 (eval $ac_try) 2>&5
14784 ac_status=$?
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); }; }; then
96b8a615
AJ
14787 ac_header_compiler=yes
14788else
14789 echo "$as_me: failed program was:" >&5
14790sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 14791
38d24731 14792ac_header_compiler=no
96b8a615 14793fi
38d24731
RW
14794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14795echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14796echo "${ECHO_T}$ac_header_compiler" >&6
6de9cd9a 14797
96b8a615 14798# Is the header present?
38d24731
RW
14799echo "$as_me:$LINENO: checking complex.h presence" >&5
14800echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6
96b8a615
AJ
14801cat >conftest.$ac_ext <<_ACEOF
14802/* confdefs.h. */
14803_ACEOF
14804cat confdefs.h >>conftest.$ac_ext
14805cat >>conftest.$ac_ext <<_ACEOF
14806/* end confdefs.h. */
14807#include <complex.h>
14808_ACEOF
38d24731
RW
14809if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
96b8a615
AJ
14811 ac_status=$?
14812 grep -v '^ *+' conftest.er1 >conftest.err
14813 rm -f conftest.er1
14814 cat conftest.err >&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
14816 (exit $ac_status); } >/dev/null; then
14817 if test -s conftest.err; then
14818 ac_cpp_err=$ac_c_preproc_warn_flag
14819 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14820 else
14821 ac_cpp_err=
14822 fi
14823else
14824 ac_cpp_err=yes
14825fi
14826if test -z "$ac_cpp_err"; then
96b8a615
AJ
14827 ac_header_preproc=yes
14828else
14829 echo "$as_me: failed program was:" >&5
14830sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 14831
96b8a615
AJ
14832 ac_header_preproc=no
14833fi
14834rm -f conftest.err conftest.$ac_ext
38d24731
RW
14835echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14836echo "${ECHO_T}$ac_header_preproc" >&6
6de9cd9a 14837
96b8a615
AJ
14838# So? What about this header?
14839case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14840 yes:no: )
14841 { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5
14842echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5
14844echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;}
14845 ac_header_preproc=yes
6de9cd9a 14846 ;;
96b8a615
AJ
14847 no:yes:* )
14848 { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5
14849echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;}
14850 { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5
14851echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;}
14852 { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5
14853echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;}
14854 { echo "$as_me:$LINENO: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&5
14855echo "$as_me: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&2;}
14856 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
14857echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
14858 { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5
14859echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;}
38d24731
RW
14860 (
14861 cat <<\_ASBOX
14862## ------------------------------------------------------ ##
14863## Report this to the GNU Fortran Runtime Library lists. ##
14864## ------------------------------------------------------ ##
14865_ASBOX
14866 ) |
14867 sed "s/^/$as_me: WARNING: /" >&2
6de9cd9a 14868 ;;
6de9cd9a 14869esac
38d24731
RW
14870echo "$as_me:$LINENO: checking for complex.h" >&5
14871echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
96b8a615
AJ
14872if test "${ac_cv_header_complex_h+set}" = set; then
14873 echo $ECHO_N "(cached) $ECHO_C" >&6
14874else
14875 ac_cv_header_complex_h=$ac_header_preproc
14876fi
38d24731
RW
14877echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
14878echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6de9cd9a
DN
14879
14880fi
96b8a615 14881if test $ac_cv_header_complex_h = yes; then
6de9cd9a 14882
96b8a615
AJ
14883cat >>confdefs.h <<\_ACEOF
14884#define HAVE_COMPLEX_H 1
14885_ACEOF
6de9cd9a 14886
96b8a615 14887fi
6de9cd9a
DN
14888
14889
6de9cd9a 14890
4c4b3eb0
PB
14891
14892inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14893
14894acx_cv_header_stdint=stddef.h
14895acx_cv_header_stdint_kind="(already complete)"
14896for i in stdint.h $inttype_headers; do
14897 unset ac_cv_type_uintptr_t
14898 unset ac_cv_type_uintmax_t
14899 unset ac_cv_type_int_least32_t
14900 unset ac_cv_type_int_fast32_t
14901 unset ac_cv_type_uint64_t
14902 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
38d24731
RW
14903 echo "$as_me:$LINENO: checking for uintmax_t" >&5
14904echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
4c4b3eb0
PB
14905if test "${ac_cv_type_uintmax_t+set}" = set; then
14906 echo $ECHO_N "(cached) $ECHO_C" >&6
14907else
14908 cat >conftest.$ac_ext <<_ACEOF
14909/* confdefs.h. */
14910_ACEOF
14911cat confdefs.h >>conftest.$ac_ext
14912cat >>conftest.$ac_ext <<_ACEOF
14913/* end confdefs.h. */
14914#include <sys/types.h>
14915#include <$i>
14916
14917int
14918main ()
14919{
38d24731 14920if ((uintmax_t *) 0)
4c4b3eb0 14921 return 0;
38d24731 14922if (sizeof (uintmax_t))
4c4b3eb0
PB
14923 return 0;
14924 ;
14925 return 0;
14926}
14927_ACEOF
14928rm -f conftest.$ac_objext
38d24731
RW
14929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14930 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
14931 ac_status=$?
14932 grep -v '^ *+' conftest.er1 >conftest.err
14933 rm -f conftest.er1
14934 cat conftest.err >&5
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
14936 (exit $ac_status); } &&
14937 { ac_try='test -z "$ac_c_werror_flag"
14938 || test ! -s conftest.err'
14939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940 (eval $ac_try) 2>&5
14941 ac_status=$?
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; } &&
14944 { ac_try='test -s conftest.$ac_objext'
14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14947 ac_status=$?
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; }; then
4c4b3eb0
PB
14950 ac_cv_type_uintmax_t=yes
14951else
14952 echo "$as_me: failed program was:" >&5
14953sed 's/^/| /' conftest.$ac_ext >&5
14954
38d24731 14955ac_cv_type_uintmax_t=no
4c4b3eb0 14956fi
38d24731 14957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0 14958fi
38d24731
RW
14959echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
14960echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
4c4b3eb0
PB
14961if test $ac_cv_type_uintmax_t = yes; then
14962 acx_cv_header_stdint=$i
14963else
14964 continue
14965fi
14966
38d24731
RW
14967 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14968echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4c4b3eb0
PB
14969if test "${ac_cv_type_uintptr_t+set}" = set; then
14970 echo $ECHO_N "(cached) $ECHO_C" >&6
14971else
14972 cat >conftest.$ac_ext <<_ACEOF
14973/* confdefs.h. */
14974_ACEOF
14975cat confdefs.h >>conftest.$ac_ext
14976cat >>conftest.$ac_ext <<_ACEOF
14977/* end confdefs.h. */
14978#include <sys/types.h>
14979#include <$i>
14980
14981int
14982main ()
14983{
38d24731 14984if ((uintptr_t *) 0)
4c4b3eb0 14985 return 0;
38d24731 14986if (sizeof (uintptr_t))
4c4b3eb0
PB
14987 return 0;
14988 ;
14989 return 0;
14990}
14991_ACEOF
14992rm -f conftest.$ac_objext
38d24731
RW
14993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14994 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
14995 ac_status=$?
14996 grep -v '^ *+' conftest.er1 >conftest.err
14997 rm -f conftest.er1
14998 cat conftest.err >&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
15000 (exit $ac_status); } &&
15001 { ac_try='test -z "$ac_c_werror_flag"
15002 || test ! -s conftest.err'
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15005 ac_status=$?
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; } &&
15008 { ac_try='test -s conftest.$ac_objext'
15009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15010 (eval $ac_try) 2>&5
15011 ac_status=$?
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); }; }; then
4c4b3eb0
PB
15014 ac_cv_type_uintptr_t=yes
15015else
15016 echo "$as_me: failed program was:" >&5
15017sed 's/^/| /' conftest.$ac_ext >&5
15018
38d24731 15019ac_cv_type_uintptr_t=no
4c4b3eb0 15020fi
38d24731 15021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0 15022fi
38d24731
RW
15023echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
15024echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4c4b3eb0
PB
15025if test $ac_cv_type_uintptr_t = yes; then
15026 :
15027else
15028 acx_cv_header_stdint_kind="(mostly complete)"
15029fi
15030
38d24731
RW
15031 echo "$as_me:$LINENO: checking for int_least32_t" >&5
15032echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
4c4b3eb0
PB
15033if test "${ac_cv_type_int_least32_t+set}" = set; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6
15035else
15036 cat >conftest.$ac_ext <<_ACEOF
15037/* confdefs.h. */
15038_ACEOF
15039cat confdefs.h >>conftest.$ac_ext
15040cat >>conftest.$ac_ext <<_ACEOF
15041/* end confdefs.h. */
15042#include <sys/types.h>
15043#include <$i>
15044
15045int
15046main ()
15047{
38d24731 15048if ((int_least32_t *) 0)
4c4b3eb0 15049 return 0;
38d24731 15050if (sizeof (int_least32_t))
4c4b3eb0
PB
15051 return 0;
15052 ;
15053 return 0;
15054}
15055_ACEOF
15056rm -f conftest.$ac_objext
38d24731
RW
15057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15058 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
15059 ac_status=$?
15060 grep -v '^ *+' conftest.er1 >conftest.err
15061 rm -f conftest.er1
15062 cat conftest.err >&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
15064 (exit $ac_status); } &&
15065 { ac_try='test -z "$ac_c_werror_flag"
15066 || test ! -s conftest.err'
15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5
15069 ac_status=$?
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; } &&
15072 { ac_try='test -s conftest.$ac_objext'
15073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074 (eval $ac_try) 2>&5
15075 ac_status=$?
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
4c4b3eb0
PB
15078 ac_cv_type_int_least32_t=yes
15079else
15080 echo "$as_me: failed program was:" >&5
15081sed 's/^/| /' conftest.$ac_ext >&5
15082
38d24731 15083ac_cv_type_int_least32_t=no
4c4b3eb0 15084fi
38d24731 15085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0 15086fi
38d24731
RW
15087echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
15088echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
4c4b3eb0
PB
15089if test $ac_cv_type_int_least32_t = yes; then
15090 :
15091else
15092 acx_cv_header_stdint_kind="(mostly complete)"
15093fi
15094
38d24731
RW
15095 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
15096echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
4c4b3eb0
PB
15097if test "${ac_cv_type_int_fast32_t+set}" = set; then
15098 echo $ECHO_N "(cached) $ECHO_C" >&6
15099else
15100 cat >conftest.$ac_ext <<_ACEOF
15101/* confdefs.h. */
15102_ACEOF
15103cat confdefs.h >>conftest.$ac_ext
15104cat >>conftest.$ac_ext <<_ACEOF
15105/* end confdefs.h. */
15106#include <sys/types.h>
15107#include <$i>
15108
15109int
15110main ()
15111{
38d24731 15112if ((int_fast32_t *) 0)
4c4b3eb0 15113 return 0;
38d24731 15114if (sizeof (int_fast32_t))
4c4b3eb0
PB
15115 return 0;
15116 ;
15117 return 0;
15118}
15119_ACEOF
15120rm -f conftest.$ac_objext
38d24731
RW
15121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15122 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
15123 ac_status=$?
15124 grep -v '^ *+' conftest.er1 >conftest.err
15125 rm -f conftest.er1
15126 cat conftest.err >&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
15128 (exit $ac_status); } &&
15129 { ac_try='test -z "$ac_c_werror_flag"
15130 || test ! -s conftest.err'
15131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132 (eval $ac_try) 2>&5
15133 ac_status=$?
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; } &&
15136 { ac_try='test -s conftest.$ac_objext'
15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138 (eval $ac_try) 2>&5
15139 ac_status=$?
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; }; then
4c4b3eb0
PB
15142 ac_cv_type_int_fast32_t=yes
15143else
15144 echo "$as_me: failed program was:" >&5
15145sed 's/^/| /' conftest.$ac_ext >&5
15146
38d24731 15147ac_cv_type_int_fast32_t=no
4c4b3eb0 15148fi
38d24731 15149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0 15150fi
38d24731
RW
15151echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
15152echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
4c4b3eb0
PB
15153if test $ac_cv_type_int_fast32_t = yes; then
15154 :
15155else
15156 acx_cv_header_stdint_kind="(mostly complete)"
15157fi
15158
38d24731
RW
15159 echo "$as_me:$LINENO: checking for uint64_t" >&5
15160echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4c4b3eb0
PB
15161if test "${ac_cv_type_uint64_t+set}" = set; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15163else
15164 cat >conftest.$ac_ext <<_ACEOF
15165/* confdefs.h. */
15166_ACEOF
15167cat confdefs.h >>conftest.$ac_ext
15168cat >>conftest.$ac_ext <<_ACEOF
15169/* end confdefs.h. */
15170#include <sys/types.h>
15171#include <$i>
15172
15173int
15174main ()
15175{
38d24731 15176if ((uint64_t *) 0)
4c4b3eb0 15177 return 0;
38d24731 15178if (sizeof (uint64_t))
4c4b3eb0
PB
15179 return 0;
15180 ;
15181 return 0;
15182}
15183_ACEOF
15184rm -f conftest.$ac_objext
38d24731
RW
15185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15186 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
15187 ac_status=$?
15188 grep -v '^ *+' conftest.er1 >conftest.err
15189 rm -f conftest.er1
15190 cat conftest.err >&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
15192 (exit $ac_status); } &&
15193 { ac_try='test -z "$ac_c_werror_flag"
15194 || test ! -s conftest.err'
15195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15196 (eval $ac_try) 2>&5
15197 ac_status=$?
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); }; } &&
15200 { ac_try='test -s conftest.$ac_objext'
15201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202 (eval $ac_try) 2>&5
15203 ac_status=$?
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); }; }; then
4c4b3eb0
PB
15206 ac_cv_type_uint64_t=yes
15207else
15208 echo "$as_me: failed program was:" >&5
15209sed 's/^/| /' conftest.$ac_ext >&5
15210
38d24731 15211ac_cv_type_uint64_t=no
4c4b3eb0 15212fi
38d24731 15213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0 15214fi
38d24731
RW
15215echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
15216echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4c4b3eb0
PB
15217if test $ac_cv_type_uint64_t = yes; then
15218 :
15219else
15220 acx_cv_header_stdint_kind="(lacks uint64_t)"
15221fi
15222
15223 break
15224done
15225if test "$acx_cv_header_stdint" = stddef.h; then
28f8c9e9 15226 acx_cv_header_stdint_kind="(lacks uintmax_t)"
4c4b3eb0 15227 for i in stdint.h $inttype_headers; do
28f8c9e9 15228 unset ac_cv_type_uintptr_t
4c4b3eb0
PB
15229 unset ac_cv_type_uint32_t
15230 unset ac_cv_type_uint64_t
15231 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
38d24731
RW
15232 echo "$as_me:$LINENO: checking for uint32_t" >&5
15233echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4c4b3eb0
PB
15234if test "${ac_cv_type_uint32_t+set}" = set; then
15235 echo $ECHO_N "(cached) $ECHO_C" >&6
15236else
15237 cat >conftest.$ac_ext <<_ACEOF
15238/* confdefs.h. */
15239_ACEOF
15240cat confdefs.h >>conftest.$ac_ext
15241cat >>conftest.$ac_ext <<_ACEOF
15242/* end confdefs.h. */
15243#include <sys/types.h>
15244#include <$i>
15245
15246int
15247main ()
15248{
38d24731 15249if ((uint32_t *) 0)
4c4b3eb0 15250 return 0;
38d24731 15251if (sizeof (uint32_t))
4c4b3eb0
PB
15252 return 0;
15253 ;
15254 return 0;
15255}
15256_ACEOF
15257rm -f conftest.$ac_objext
38d24731
RW
15258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15259 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
15260 ac_status=$?
15261 grep -v '^ *+' conftest.er1 >conftest.err
15262 rm -f conftest.er1
15263 cat conftest.err >&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
15265 (exit $ac_status); } &&
15266 { ac_try='test -z "$ac_c_werror_flag"
15267 || test ! -s conftest.err'
15268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15269 (eval $ac_try) 2>&5
15270 ac_status=$?
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); }; } &&
15273 { ac_try='test -s conftest.$ac_objext'
15274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275 (eval $ac_try) 2>&5
15276 ac_status=$?
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); }; }; then
4c4b3eb0
PB
15279 ac_cv_type_uint32_t=yes
15280else
15281 echo "$as_me: failed program was:" >&5
15282sed 's/^/| /' conftest.$ac_ext >&5
15283
38d24731 15284ac_cv_type_uint32_t=no
4c4b3eb0 15285fi
38d24731 15286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0 15287fi
38d24731
RW
15288echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
15289echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4c4b3eb0
PB
15290if test $ac_cv_type_uint32_t = yes; then
15291 acx_cv_header_stdint=$i
15292else
15293 continue
15294fi
15295
38d24731
RW
15296 echo "$as_me:$LINENO: checking for uint64_t" >&5
15297echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4c4b3eb0
PB
15298if test "${ac_cv_type_uint64_t+set}" = set; then
15299 echo $ECHO_N "(cached) $ECHO_C" >&6
15300else
15301 cat >conftest.$ac_ext <<_ACEOF
15302/* confdefs.h. */
15303_ACEOF
15304cat confdefs.h >>conftest.$ac_ext
15305cat >>conftest.$ac_ext <<_ACEOF
15306/* end confdefs.h. */
15307#include <sys/types.h>
15308#include <$i>
15309
15310int
15311main ()
15312{
38d24731 15313if ((uint64_t *) 0)
4c4b3eb0 15314 return 0;
38d24731 15315if (sizeof (uint64_t))
4c4b3eb0
PB
15316 return 0;
15317 ;
15318 return 0;
15319}
15320_ACEOF
15321rm -f conftest.$ac_objext
38d24731
RW
15322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15323 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
15324 ac_status=$?
15325 grep -v '^ *+' conftest.er1 >conftest.err
15326 rm -f conftest.er1
15327 cat conftest.err >&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
15329 (exit $ac_status); } &&
15330 { ac_try='test -z "$ac_c_werror_flag"
15331 || test ! -s conftest.err'
15332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333 (eval $ac_try) 2>&5
15334 ac_status=$?
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; } &&
15337 { ac_try='test -s conftest.$ac_objext'
15338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339 (eval $ac_try) 2>&5
15340 ac_status=$?
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; }; then
4c4b3eb0
PB
15343 ac_cv_type_uint64_t=yes
15344else
15345 echo "$as_me: failed program was:" >&5
15346sed 's/^/| /' conftest.$ac_ext >&5
15347
38d24731 15348ac_cv_type_uint64_t=no
4c4b3eb0 15349fi
38d24731 15350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0 15351fi
38d24731
RW
15352echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
15353echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
28f8c9e9 15354
38d24731
RW
15355 echo "$as_me:$LINENO: checking for uintptr_t" >&5
15356echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
28f8c9e9
FXC
15357if test "${ac_cv_type_uintptr_t+set}" = set; then
15358 echo $ECHO_N "(cached) $ECHO_C" >&6
695cd757 15359else
28f8c9e9
FXC
15360 cat >conftest.$ac_ext <<_ACEOF
15361/* confdefs.h. */
15362_ACEOF
15363cat confdefs.h >>conftest.$ac_ext
15364cat >>conftest.$ac_ext <<_ACEOF
15365/* end confdefs.h. */
15366#include <sys/types.h>
15367#include <$i>
15368
15369int
15370main ()
15371{
38d24731 15372if ((uintptr_t *) 0)
28f8c9e9 15373 return 0;
38d24731 15374if (sizeof (uintptr_t))
28f8c9e9
FXC
15375 return 0;
15376 ;
15377 return 0;
15378}
15379_ACEOF
15380rm -f conftest.$ac_objext
38d24731
RW
15381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15382 (eval $ac_compile) 2>conftest.er1
28f8c9e9
FXC
15383 ac_status=$?
15384 grep -v '^ *+' conftest.er1 >conftest.err
15385 rm -f conftest.er1
15386 cat conftest.err >&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
15388 (exit $ac_status); } &&
15389 { ac_try='test -z "$ac_c_werror_flag"
15390 || test ! -s conftest.err'
15391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392 (eval $ac_try) 2>&5
15393 ac_status=$?
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; } &&
15396 { ac_try='test -s conftest.$ac_objext'
15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398 (eval $ac_try) 2>&5
15399 ac_status=$?
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; }; then
28f8c9e9
FXC
15402 ac_cv_type_uintptr_t=yes
15403else
15404 echo "$as_me: failed program was:" >&5
15405sed 's/^/| /' conftest.$ac_ext >&5
15406
38d24731 15407ac_cv_type_uintptr_t=no
28f8c9e9 15408fi
38d24731 15409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
695cd757 15410fi
38d24731
RW
15411echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
15412echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4c4b3eb0
PB
15413
15414 break
15415 done
15416fi
15417if test "$acx_cv_header_stdint" = stddef.h; then
15418 acx_cv_header_stdint_kind="(u_intXX_t style)"
15419 for i in sys/types.h $inttype_headers; do
15420 unset ac_cv_type_u_int32_t
15421 unset ac_cv_type_u_int64_t
15422 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
38d24731
RW
15423 echo "$as_me:$LINENO: checking for u_int32_t" >&5
15424echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4c4b3eb0
PB
15425if test "${ac_cv_type_u_int32_t+set}" = set; then
15426 echo $ECHO_N "(cached) $ECHO_C" >&6
15427else
15428 cat >conftest.$ac_ext <<_ACEOF
15429/* confdefs.h. */
15430_ACEOF
15431cat confdefs.h >>conftest.$ac_ext
15432cat >>conftest.$ac_ext <<_ACEOF
15433/* end confdefs.h. */
15434#include <sys/types.h>
15435#include <$i>
15436
15437int
15438main ()
15439{
38d24731 15440if ((u_int32_t *) 0)
4c4b3eb0 15441 return 0;
38d24731 15442if (sizeof (u_int32_t))
4c4b3eb0
PB
15443 return 0;
15444 ;
15445 return 0;
15446}
15447_ACEOF
15448rm -f conftest.$ac_objext
38d24731
RW
15449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15450 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
15451 ac_status=$?
15452 grep -v '^ *+' conftest.er1 >conftest.err
15453 rm -f conftest.er1
15454 cat conftest.err >&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
15456 (exit $ac_status); } &&
15457 { ac_try='test -z "$ac_c_werror_flag"
15458 || test ! -s conftest.err'
15459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15460 (eval $ac_try) 2>&5
15461 ac_status=$?
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); }; } &&
15464 { ac_try='test -s conftest.$ac_objext'
15465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466 (eval $ac_try) 2>&5
15467 ac_status=$?
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); }; }; then
4c4b3eb0
PB
15470 ac_cv_type_u_int32_t=yes
15471else
15472 echo "$as_me: failed program was:" >&5
15473sed 's/^/| /' conftest.$ac_ext >&5
15474
38d24731 15475ac_cv_type_u_int32_t=no
4c4b3eb0 15476fi
38d24731 15477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0 15478fi
38d24731
RW
15479echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
15480echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4c4b3eb0
PB
15481if test $ac_cv_type_u_int32_t = yes; then
15482 acx_cv_header_stdint=$i
15483else
15484 continue
15485fi
15486
38d24731
RW
15487 echo "$as_me:$LINENO: checking for u_int64_t" >&5
15488echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
4c4b3eb0
PB
15489if test "${ac_cv_type_u_int64_t+set}" = set; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15491else
15492 cat >conftest.$ac_ext <<_ACEOF
15493/* confdefs.h. */
15494_ACEOF
15495cat confdefs.h >>conftest.$ac_ext
15496cat >>conftest.$ac_ext <<_ACEOF
15497/* end confdefs.h. */
15498#include <sys/types.h>
15499#include <$i>
15500
15501int
15502main ()
15503{
38d24731 15504if ((u_int64_t *) 0)
4c4b3eb0 15505 return 0;
38d24731 15506if (sizeof (u_int64_t))
4c4b3eb0
PB
15507 return 0;
15508 ;
15509 return 0;
15510}
15511_ACEOF
15512rm -f conftest.$ac_objext
38d24731
RW
15513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15514 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
15515 ac_status=$?
15516 grep -v '^ *+' conftest.er1 >conftest.err
15517 rm -f conftest.er1
15518 cat conftest.err >&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
15520 (exit $ac_status); } &&
15521 { ac_try='test -z "$ac_c_werror_flag"
15522 || test ! -s conftest.err'
15523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524 (eval $ac_try) 2>&5
15525 ac_status=$?
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; } &&
15528 { ac_try='test -s conftest.$ac_objext'
15529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530 (eval $ac_try) 2>&5
15531 ac_status=$?
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }; }; then
4c4b3eb0
PB
15534 ac_cv_type_u_int64_t=yes
15535else
15536 echo "$as_me: failed program was:" >&5
15537sed 's/^/| /' conftest.$ac_ext >&5
15538
38d24731 15539ac_cv_type_u_int64_t=no
4c4b3eb0 15540fi
38d24731 15541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0 15542fi
38d24731
RW
15543echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
15544echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
4c4b3eb0
PB
15545
15546 break
15547 done
15548fi
15549if test "$acx_cv_header_stdint" = stddef.h; then
15550 acx_cv_header_stdint_kind="(using manual detection)"
15551fi
15552
15553test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15554test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15555test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15556test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15557test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15558
15559# ----------------- Summarize what we found so far
15560
38d24731
RW
15561echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
15562echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
4c4b3eb0 15563
38d24731 15564case `$as_basename gstdint.h ||
4c4b3eb0
PB
15565$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15566 Xgstdint.h : 'X\(//\)$' \| \
38d24731
RW
15567 Xgstdint.h : 'X\(/\)$' \| \
15568 . : '\(.\)' 2>/dev/null ||
4c4b3eb0 15569echo X/gstdint.h |
38d24731
RW
15570 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15571 /^X\/\(\/\/\)$/{ s//\1/; q; }
15572 /^X\/\(\/\).*/{ s//\1/; q; }
15573 s/.*/./; q'` in
4c4b3eb0
PB
15574 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
15575echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15576 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
15577echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15578 *) ;;
15579esac
15580
38d24731
RW
15581echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15582echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
4c4b3eb0
PB
15583
15584# ----------------- done included file, check C basic types --------
15585
15586# Lacking an uintptr_t? Test size of void *
15587case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
38d24731
RW
15588 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
15589echo $ECHO_N "checking for void *... $ECHO_C" >&6
4c4b3eb0
PB
15590if test "${ac_cv_type_void_p+set}" = set; then
15591 echo $ECHO_N "(cached) $ECHO_C" >&6
15592else
15593 cat >conftest.$ac_ext <<_ACEOF
15594/* confdefs.h. */
15595_ACEOF
15596cat confdefs.h >>conftest.$ac_ext
15597cat >>conftest.$ac_ext <<_ACEOF
15598/* end confdefs.h. */
15599$ac_includes_default
15600int
15601main ()
15602{
38d24731 15603if ((void * *) 0)
4c4b3eb0 15604 return 0;
38d24731 15605if (sizeof (void *))
4c4b3eb0
PB
15606 return 0;
15607 ;
15608 return 0;
15609}
15610_ACEOF
15611rm -f conftest.$ac_objext
38d24731
RW
15612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15613 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
15614 ac_status=$?
15615 grep -v '^ *+' conftest.er1 >conftest.err
15616 rm -f conftest.er1
15617 cat conftest.err >&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
15619 (exit $ac_status); } &&
15620 { ac_try='test -z "$ac_c_werror_flag"
15621 || test ! -s conftest.err'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15624 ac_status=$?
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; } &&
15627 { ac_try='test -s conftest.$ac_objext'
15628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629 (eval $ac_try) 2>&5
15630 ac_status=$?
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; }; then
4c4b3eb0
PB
15633 ac_cv_type_void_p=yes
15634else
15635 echo "$as_me: failed program was:" >&5
15636sed 's/^/| /' conftest.$ac_ext >&5
15637
38d24731 15638ac_cv_type_void_p=no
4c4b3eb0 15639fi
38d24731 15640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0 15641fi
38d24731
RW
15642echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15643echo "${ECHO_T}$ac_cv_type_void_p" >&6
4c4b3eb0 15644
38d24731
RW
15645echo "$as_me:$LINENO: checking size of void *" >&5
15646echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4c4b3eb0
PB
15647if test "${ac_cv_sizeof_void_p+set}" = set; then
15648 echo $ECHO_N "(cached) $ECHO_C" >&6
15649else
38d24731
RW
15650 if test "$ac_cv_type_void_p" = yes; then
15651 # The cast to unsigned long works around a bug in the HP C Compiler
15652 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15653 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15654 # This bug is HP SR number 8606223364.
4c4b3eb0
PB
15655 if test "$cross_compiling" = yes; then
15656 # Depending upon the size, compute the lo and hi bounds.
15657cat >conftest.$ac_ext <<_ACEOF
15658/* confdefs.h. */
15659_ACEOF
15660cat confdefs.h >>conftest.$ac_ext
15661cat >>conftest.$ac_ext <<_ACEOF
15662/* end confdefs.h. */
15663$ac_includes_default
15664int
15665main ()
15666{
38d24731 15667static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4c4b3eb0
PB
15668test_array [0] = 0
15669
15670 ;
15671 return 0;
15672}
15673_ACEOF
15674rm -f conftest.$ac_objext
38d24731
RW
15675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15676 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
15677 ac_status=$?
15678 grep -v '^ *+' conftest.er1 >conftest.err
15679 rm -f conftest.er1
15680 cat conftest.err >&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
15682 (exit $ac_status); } &&
15683 { ac_try='test -z "$ac_c_werror_flag"
15684 || test ! -s conftest.err'
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15687 ac_status=$?
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; } &&
15690 { ac_try='test -s conftest.$ac_objext'
15691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692 (eval $ac_try) 2>&5
15693 ac_status=$?
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); }; }; then
4c4b3eb0
PB
15696 ac_lo=0 ac_mid=0
15697 while :; do
15698 cat >conftest.$ac_ext <<_ACEOF
15699/* confdefs.h. */
15700_ACEOF
15701cat confdefs.h >>conftest.$ac_ext
15702cat >>conftest.$ac_ext <<_ACEOF
15703/* end confdefs.h. */
15704$ac_includes_default
15705int
15706main ()
15707{
38d24731 15708static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4c4b3eb0
PB
15709test_array [0] = 0
15710
15711 ;
15712 return 0;
15713}
15714_ACEOF
15715rm -f conftest.$ac_objext
38d24731
RW
15716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15717 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
15718 ac_status=$?
15719 grep -v '^ *+' conftest.er1 >conftest.err
15720 rm -f conftest.er1
15721 cat conftest.err >&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
15723 (exit $ac_status); } &&
15724 { ac_try='test -z "$ac_c_werror_flag"
15725 || test ! -s conftest.err'
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15728 ac_status=$?
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; } &&
15731 { ac_try='test -s conftest.$ac_objext'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15734 ac_status=$?
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; }; then
4c4b3eb0
PB
15737 ac_hi=$ac_mid; break
15738else
15739 echo "$as_me: failed program was:" >&5
15740sed 's/^/| /' conftest.$ac_ext >&5
15741
38d24731
RW
15742ac_lo=`expr $ac_mid + 1`
15743 if test $ac_lo -le $ac_mid; then
15744 ac_lo= ac_hi=
15745 break
15746 fi
15747 ac_mid=`expr 2 '*' $ac_mid + 1`
4c4b3eb0 15748fi
38d24731 15749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
15750 done
15751else
15752 echo "$as_me: failed program was:" >&5
15753sed 's/^/| /' conftest.$ac_ext >&5
15754
38d24731 15755cat >conftest.$ac_ext <<_ACEOF
4c4b3eb0
PB
15756/* confdefs.h. */
15757_ACEOF
15758cat confdefs.h >>conftest.$ac_ext
15759cat >>conftest.$ac_ext <<_ACEOF
15760/* end confdefs.h. */
15761$ac_includes_default
15762int
15763main ()
15764{
38d24731 15765static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4c4b3eb0
PB
15766test_array [0] = 0
15767
15768 ;
15769 return 0;
15770}
15771_ACEOF
15772rm -f conftest.$ac_objext
38d24731
RW
15773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15774 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
15775 ac_status=$?
15776 grep -v '^ *+' conftest.er1 >conftest.err
15777 rm -f conftest.er1
15778 cat conftest.err >&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
15780 (exit $ac_status); } &&
15781 { ac_try='test -z "$ac_c_werror_flag"
15782 || test ! -s conftest.err'
15783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15784 (eval $ac_try) 2>&5
15785 ac_status=$?
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; } &&
15788 { ac_try='test -s conftest.$ac_objext'
15789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15790 (eval $ac_try) 2>&5
15791 ac_status=$?
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); }; }; then
4c4b3eb0
PB
15794 ac_hi=-1 ac_mid=-1
15795 while :; do
15796 cat >conftest.$ac_ext <<_ACEOF
15797/* confdefs.h. */
15798_ACEOF
15799cat confdefs.h >>conftest.$ac_ext
15800cat >>conftest.$ac_ext <<_ACEOF
15801/* end confdefs.h. */
15802$ac_includes_default
15803int
15804main ()
15805{
38d24731 15806static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4c4b3eb0
PB
15807test_array [0] = 0
15808
15809 ;
15810 return 0;
15811}
15812_ACEOF
15813rm -f conftest.$ac_objext
38d24731
RW
15814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15815 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
15816 ac_status=$?
15817 grep -v '^ *+' conftest.er1 >conftest.err
15818 rm -f conftest.er1
15819 cat conftest.err >&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
15821 (exit $ac_status); } &&
15822 { ac_try='test -z "$ac_c_werror_flag"
15823 || test ! -s conftest.err'
15824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15825 (eval $ac_try) 2>&5
15826 ac_status=$?
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); }; } &&
15829 { ac_try='test -s conftest.$ac_objext'
15830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15831 (eval $ac_try) 2>&5
15832 ac_status=$?
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; }; then
4c4b3eb0
PB
15835 ac_lo=$ac_mid; break
15836else
15837 echo "$as_me: failed program was:" >&5
15838sed 's/^/| /' conftest.$ac_ext >&5
15839
38d24731
RW
15840ac_hi=`expr '(' $ac_mid ')' - 1`
15841 if test $ac_mid -le $ac_hi; then
15842 ac_lo= ac_hi=
15843 break
15844 fi
15845 ac_mid=`expr 2 '*' $ac_mid`
4c4b3eb0 15846fi
38d24731 15847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
15848 done
15849else
15850 echo "$as_me: failed program was:" >&5
15851sed 's/^/| /' conftest.$ac_ext >&5
15852
38d24731 15853ac_lo= ac_hi=
4c4b3eb0 15854fi
38d24731 15855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0 15856fi
38d24731 15857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
15858# Binary search between lo and hi bounds.
15859while test "x$ac_lo" != "x$ac_hi"; do
15860 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15861 cat >conftest.$ac_ext <<_ACEOF
15862/* confdefs.h. */
15863_ACEOF
15864cat confdefs.h >>conftest.$ac_ext
15865cat >>conftest.$ac_ext <<_ACEOF
15866/* end confdefs.h. */
15867$ac_includes_default
15868int
15869main ()
15870{
38d24731 15871static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4c4b3eb0
PB
15872test_array [0] = 0
15873
15874 ;
15875 return 0;
15876}
15877_ACEOF
15878rm -f conftest.$ac_objext
38d24731
RW
15879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15880 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
15881 ac_status=$?
15882 grep -v '^ *+' conftest.er1 >conftest.err
15883 rm -f conftest.er1
15884 cat conftest.err >&5
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
15886 (exit $ac_status); } &&
15887 { ac_try='test -z "$ac_c_werror_flag"
15888 || test ! -s conftest.err'
15889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15890 (eval $ac_try) 2>&5
15891 ac_status=$?
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); }; } &&
15894 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4c4b3eb0
PB
15900 ac_hi=$ac_mid
15901else
15902 echo "$as_me: failed program was:" >&5
15903sed 's/^/| /' conftest.$ac_ext >&5
15904
38d24731 15905ac_lo=`expr '(' $ac_mid ')' + 1`
4c4b3eb0 15906fi
38d24731 15907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
15908done
15909case $ac_lo in
15910?*) ac_cv_sizeof_void_p=$ac_lo;;
38d24731 15911'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4c4b3eb0 15912See \`config.log' for more details." >&5
38d24731 15913echo "$as_me: error: cannot compute sizeof (void *), 77
4c4b3eb0 15914See \`config.log' for more details." >&2;}
38d24731 15915 { (exit 1); exit 1; }; } ;;
4c4b3eb0 15916esac
38d24731
RW
15917else
15918 if test "$cross_compiling" = yes; then
15919 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15920See \`config.log' for more details." >&5
15921echo "$as_me: error: cannot run test program while cross compiling
15922See \`config.log' for more details." >&2;}
15923 { (exit 1); exit 1; }; }
4c4b3eb0
PB
15924else
15925 cat >conftest.$ac_ext <<_ACEOF
15926/* confdefs.h. */
15927_ACEOF
15928cat confdefs.h >>conftest.$ac_ext
15929cat >>conftest.$ac_ext <<_ACEOF
15930/* end confdefs.h. */
15931$ac_includes_default
38d24731
RW
15932long longval () { return (long) (sizeof (void *)); }
15933unsigned long ulongval () { return (long) (sizeof (void *)); }
4c4b3eb0
PB
15934#include <stdio.h>
15935#include <stdlib.h>
15936int
15937main ()
15938{
15939
15940 FILE *f = fopen ("conftest.val", "w");
15941 if (! f)
38d24731
RW
15942 exit (1);
15943 if (((long) (sizeof (void *))) < 0)
4c4b3eb0 15944 {
38d24731
RW
15945 long i = longval ();
15946 if (i != ((long) (sizeof (void *))))
15947 exit (1);
4c4b3eb0
PB
15948 fprintf (f, "%ld\n", i);
15949 }
15950 else
15951 {
38d24731
RW
15952 unsigned long i = ulongval ();
15953 if (i != ((long) (sizeof (void *))))
15954 exit (1);
4c4b3eb0
PB
15955 fprintf (f, "%lu\n", i);
15956 }
38d24731 15957 exit (ferror (f) || fclose (f) != 0);
4c4b3eb0
PB
15958
15959 ;
15960 return 0;
15961}
15962_ACEOF
15963rm -f conftest$ac_exeext
38d24731
RW
15964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15965 (eval $ac_link) 2>&5
4c4b3eb0
PB
15966 ac_status=$?
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38d24731
RW
15969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15970 (eval $ac_try) 2>&5
4c4b3eb0
PB
15971 ac_status=$?
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); }; }; then
15974 ac_cv_sizeof_void_p=`cat conftest.val`
15975else
15976 echo "$as_me: program exited with status $ac_status" >&5
15977echo "$as_me: failed program was:" >&5
15978sed 's/^/| /' conftest.$ac_ext >&5
15979
15980( exit $ac_status )
38d24731 15981{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4c4b3eb0 15982See \`config.log' for more details." >&5
38d24731 15983echo "$as_me: error: cannot compute sizeof (void *), 77
4c4b3eb0 15984See \`config.log' for more details." >&2;}
38d24731
RW
15985 { (exit 1); exit 1; }; }
15986fi
15987rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
15988fi
15989fi
15990rm -f conftest.val
38d24731
RW
15991else
15992 ac_cv_sizeof_void_p=0
4c4b3eb0 15993fi
38d24731
RW
15994fi
15995echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15996echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4c4b3eb0
PB
15997cat >>confdefs.h <<_ACEOF
15998#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15999_ACEOF
16000
16001 ;;
16002esac
16003
16004# Lacking an uint64_t? Test size of long
16005case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
38d24731
RW
16006 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
16007echo $ECHO_N "checking for long... $ECHO_C" >&6
4c4b3eb0
PB
16008if test "${ac_cv_type_long+set}" = set; then
16009 echo $ECHO_N "(cached) $ECHO_C" >&6
16010else
16011 cat >conftest.$ac_ext <<_ACEOF
16012/* confdefs.h. */
16013_ACEOF
16014cat confdefs.h >>conftest.$ac_ext
16015cat >>conftest.$ac_ext <<_ACEOF
16016/* end confdefs.h. */
16017$ac_includes_default
16018int
16019main ()
16020{
38d24731 16021if ((long *) 0)
4c4b3eb0 16022 return 0;
38d24731 16023if (sizeof (long))
4c4b3eb0
PB
16024 return 0;
16025 ;
16026 return 0;
16027}
16028_ACEOF
16029rm -f conftest.$ac_objext
38d24731
RW
16030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16031 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
16032 ac_status=$?
16033 grep -v '^ *+' conftest.er1 >conftest.err
16034 rm -f conftest.er1
16035 cat conftest.err >&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
16037 (exit $ac_status); } &&
16038 { ac_try='test -z "$ac_c_werror_flag"
16039 || test ! -s conftest.err'
16040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041 (eval $ac_try) 2>&5
16042 ac_status=$?
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); }; } &&
16045 { ac_try='test -s conftest.$ac_objext'
16046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047 (eval $ac_try) 2>&5
16048 ac_status=$?
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); }; }; then
4c4b3eb0
PB
16051 ac_cv_type_long=yes
16052else
16053 echo "$as_me: failed program was:" >&5
16054sed 's/^/| /' conftest.$ac_ext >&5
16055
38d24731 16056ac_cv_type_long=no
4c4b3eb0 16057fi
38d24731 16058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0 16059fi
38d24731
RW
16060echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16061echo "${ECHO_T}$ac_cv_type_long" >&6
4c4b3eb0 16062
38d24731
RW
16063echo "$as_me:$LINENO: checking size of long" >&5
16064echo $ECHO_N "checking size of long... $ECHO_C" >&6
4c4b3eb0
PB
16065if test "${ac_cv_sizeof_long+set}" = set; then
16066 echo $ECHO_N "(cached) $ECHO_C" >&6
16067else
38d24731
RW
16068 if test "$ac_cv_type_long" = yes; then
16069 # The cast to unsigned long works around a bug in the HP C Compiler
16070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16072 # This bug is HP SR number 8606223364.
4c4b3eb0
PB
16073 if test "$cross_compiling" = yes; then
16074 # Depending upon the size, compute the lo and hi bounds.
16075cat >conftest.$ac_ext <<_ACEOF
16076/* confdefs.h. */
16077_ACEOF
16078cat confdefs.h >>conftest.$ac_ext
16079cat >>conftest.$ac_ext <<_ACEOF
16080/* end confdefs.h. */
16081$ac_includes_default
16082int
16083main ()
16084{
38d24731 16085static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4c4b3eb0
PB
16086test_array [0] = 0
16087
16088 ;
16089 return 0;
16090}
16091_ACEOF
16092rm -f conftest.$ac_objext
38d24731
RW
16093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16094 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
16095 ac_status=$?
16096 grep -v '^ *+' conftest.er1 >conftest.err
16097 rm -f conftest.er1
16098 cat conftest.err >&5
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
16100 (exit $ac_status); } &&
16101 { ac_try='test -z "$ac_c_werror_flag"
16102 || test ! -s conftest.err'
16103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16104 (eval $ac_try) 2>&5
16105 ac_status=$?
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; } &&
16108 { ac_try='test -s conftest.$ac_objext'
16109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16110 (eval $ac_try) 2>&5
16111 ac_status=$?
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); }; }; then
4c4b3eb0
PB
16114 ac_lo=0 ac_mid=0
16115 while :; do
16116 cat >conftest.$ac_ext <<_ACEOF
16117/* confdefs.h. */
16118_ACEOF
16119cat confdefs.h >>conftest.$ac_ext
16120cat >>conftest.$ac_ext <<_ACEOF
16121/* end confdefs.h. */
16122$ac_includes_default
16123int
16124main ()
16125{
38d24731 16126static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4c4b3eb0
PB
16127test_array [0] = 0
16128
16129 ;
16130 return 0;
16131}
16132_ACEOF
16133rm -f conftest.$ac_objext
38d24731
RW
16134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16135 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
16136 ac_status=$?
16137 grep -v '^ *+' conftest.er1 >conftest.err
16138 rm -f conftest.er1
16139 cat conftest.err >&5
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
16141 (exit $ac_status); } &&
16142 { ac_try='test -z "$ac_c_werror_flag"
16143 || test ! -s conftest.err'
16144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16145 (eval $ac_try) 2>&5
16146 ac_status=$?
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); }; } &&
16149 { ac_try='test -s conftest.$ac_objext'
16150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16151 (eval $ac_try) 2>&5
16152 ac_status=$?
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); }; }; then
4c4b3eb0
PB
16155 ac_hi=$ac_mid; break
16156else
16157 echo "$as_me: failed program was:" >&5
16158sed 's/^/| /' conftest.$ac_ext >&5
16159
38d24731
RW
16160ac_lo=`expr $ac_mid + 1`
16161 if test $ac_lo -le $ac_mid; then
16162 ac_lo= ac_hi=
16163 break
16164 fi
16165 ac_mid=`expr 2 '*' $ac_mid + 1`
4c4b3eb0 16166fi
38d24731 16167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
16168 done
16169else
16170 echo "$as_me: failed program was:" >&5
16171sed 's/^/| /' conftest.$ac_ext >&5
16172
38d24731 16173cat >conftest.$ac_ext <<_ACEOF
4c4b3eb0
PB
16174/* confdefs.h. */
16175_ACEOF
16176cat confdefs.h >>conftest.$ac_ext
16177cat >>conftest.$ac_ext <<_ACEOF
16178/* end confdefs.h. */
16179$ac_includes_default
16180int
16181main ()
16182{
38d24731 16183static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4c4b3eb0
PB
16184test_array [0] = 0
16185
16186 ;
16187 return 0;
16188}
16189_ACEOF
16190rm -f conftest.$ac_objext
38d24731
RW
16191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16192 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
16193 ac_status=$?
16194 grep -v '^ *+' conftest.er1 >conftest.err
16195 rm -f conftest.er1
16196 cat conftest.err >&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
16198 (exit $ac_status); } &&
16199 { ac_try='test -z "$ac_c_werror_flag"
16200 || test ! -s conftest.err'
16201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202 (eval $ac_try) 2>&5
16203 ac_status=$?
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; } &&
16206 { ac_try='test -s conftest.$ac_objext'
16207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208 (eval $ac_try) 2>&5
16209 ac_status=$?
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); }; }; then
4c4b3eb0
PB
16212 ac_hi=-1 ac_mid=-1
16213 while :; do
16214 cat >conftest.$ac_ext <<_ACEOF
16215/* confdefs.h. */
16216_ACEOF
16217cat confdefs.h >>conftest.$ac_ext
16218cat >>conftest.$ac_ext <<_ACEOF
16219/* end confdefs.h. */
16220$ac_includes_default
16221int
16222main ()
16223{
38d24731 16224static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4c4b3eb0
PB
16225test_array [0] = 0
16226
16227 ;
16228 return 0;
16229}
16230_ACEOF
16231rm -f conftest.$ac_objext
38d24731
RW
16232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16233 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
16234 ac_status=$?
16235 grep -v '^ *+' conftest.er1 >conftest.err
16236 rm -f conftest.er1
16237 cat conftest.err >&5
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
16239 (exit $ac_status); } &&
16240 { ac_try='test -z "$ac_c_werror_flag"
16241 || test ! -s conftest.err'
16242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16243 (eval $ac_try) 2>&5
16244 ac_status=$?
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); }; } &&
16247 { ac_try='test -s conftest.$ac_objext'
16248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249 (eval $ac_try) 2>&5
16250 ac_status=$?
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; }; then
4c4b3eb0
PB
16253 ac_lo=$ac_mid; break
16254else
16255 echo "$as_me: failed program was:" >&5
16256sed 's/^/| /' conftest.$ac_ext >&5
16257
38d24731
RW
16258ac_hi=`expr '(' $ac_mid ')' - 1`
16259 if test $ac_mid -le $ac_hi; then
16260 ac_lo= ac_hi=
16261 break
16262 fi
16263 ac_mid=`expr 2 '*' $ac_mid`
4c4b3eb0 16264fi
38d24731 16265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
16266 done
16267else
16268 echo "$as_me: failed program was:" >&5
16269sed 's/^/| /' conftest.$ac_ext >&5
16270
38d24731 16271ac_lo= ac_hi=
4c4b3eb0 16272fi
38d24731 16273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0 16274fi
38d24731 16275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
16276# Binary search between lo and hi bounds.
16277while test "x$ac_lo" != "x$ac_hi"; do
16278 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16279 cat >conftest.$ac_ext <<_ACEOF
16280/* confdefs.h. */
16281_ACEOF
16282cat confdefs.h >>conftest.$ac_ext
16283cat >>conftest.$ac_ext <<_ACEOF
16284/* end confdefs.h. */
16285$ac_includes_default
16286int
16287main ()
16288{
38d24731 16289static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4c4b3eb0
PB
16290test_array [0] = 0
16291
16292 ;
16293 return 0;
16294}
16295_ACEOF
16296rm -f conftest.$ac_objext
38d24731
RW
16297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16298 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
16299 ac_status=$?
16300 grep -v '^ *+' conftest.er1 >conftest.err
16301 rm -f conftest.er1
16302 cat conftest.err >&5
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
16304 (exit $ac_status); } &&
16305 { ac_try='test -z "$ac_c_werror_flag"
16306 || test ! -s conftest.err'
16307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16308 (eval $ac_try) 2>&5
16309 ac_status=$?
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; } &&
16312 { ac_try='test -s conftest.$ac_objext'
16313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16314 (eval $ac_try) 2>&5
16315 ac_status=$?
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); }; }; then
4c4b3eb0
PB
16318 ac_hi=$ac_mid
16319else
16320 echo "$as_me: failed program was:" >&5
16321sed 's/^/| /' conftest.$ac_ext >&5
16322
38d24731 16323ac_lo=`expr '(' $ac_mid ')' + 1`
4c4b3eb0 16324fi
38d24731 16325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
16326done
16327case $ac_lo in
16328?*) ac_cv_sizeof_long=$ac_lo;;
38d24731 16329'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4c4b3eb0 16330See \`config.log' for more details." >&5
38d24731 16331echo "$as_me: error: cannot compute sizeof (long), 77
4c4b3eb0 16332See \`config.log' for more details." >&2;}
38d24731 16333 { (exit 1); exit 1; }; } ;;
4c4b3eb0 16334esac
38d24731
RW
16335else
16336 if test "$cross_compiling" = yes; then
16337 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16338See \`config.log' for more details." >&5
16339echo "$as_me: error: cannot run test program while cross compiling
16340See \`config.log' for more details." >&2;}
16341 { (exit 1); exit 1; }; }
4c4b3eb0
PB
16342else
16343 cat >conftest.$ac_ext <<_ACEOF
16344/* confdefs.h. */
16345_ACEOF
16346cat confdefs.h >>conftest.$ac_ext
16347cat >>conftest.$ac_ext <<_ACEOF
16348/* end confdefs.h. */
16349$ac_includes_default
38d24731
RW
16350long longval () { return (long) (sizeof (long)); }
16351unsigned long ulongval () { return (long) (sizeof (long)); }
4c4b3eb0
PB
16352#include <stdio.h>
16353#include <stdlib.h>
16354int
16355main ()
16356{
16357
16358 FILE *f = fopen ("conftest.val", "w");
16359 if (! f)
38d24731
RW
16360 exit (1);
16361 if (((long) (sizeof (long))) < 0)
4c4b3eb0 16362 {
38d24731
RW
16363 long i = longval ();
16364 if (i != ((long) (sizeof (long))))
16365 exit (1);
4c4b3eb0
PB
16366 fprintf (f, "%ld\n", i);
16367 }
16368 else
16369 {
38d24731
RW
16370 unsigned long i = ulongval ();
16371 if (i != ((long) (sizeof (long))))
16372 exit (1);
4c4b3eb0
PB
16373 fprintf (f, "%lu\n", i);
16374 }
38d24731 16375 exit (ferror (f) || fclose (f) != 0);
4c4b3eb0
PB
16376
16377 ;
16378 return 0;
16379}
16380_ACEOF
16381rm -f conftest$ac_exeext
38d24731
RW
16382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16383 (eval $ac_link) 2>&5
4c4b3eb0
PB
16384 ac_status=$?
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38d24731
RW
16387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16388 (eval $ac_try) 2>&5
4c4b3eb0
PB
16389 ac_status=$?
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }; }; then
16392 ac_cv_sizeof_long=`cat conftest.val`
16393else
16394 echo "$as_me: program exited with status $ac_status" >&5
16395echo "$as_me: failed program was:" >&5
16396sed 's/^/| /' conftest.$ac_ext >&5
16397
16398( exit $ac_status )
38d24731 16399{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4c4b3eb0 16400See \`config.log' for more details." >&5
38d24731 16401echo "$as_me: error: cannot compute sizeof (long), 77
4c4b3eb0 16402See \`config.log' for more details." >&2;}
38d24731
RW
16403 { (exit 1); exit 1; }; }
16404fi
16405rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
16406fi
16407fi
16408rm -f conftest.val
38d24731
RW
16409else
16410 ac_cv_sizeof_long=0
4c4b3eb0 16411fi
38d24731
RW
16412fi
16413echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16414echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4c4b3eb0
PB
16415cat >>confdefs.h <<_ACEOF
16416#define SIZEOF_LONG $ac_cv_sizeof_long
16417_ACEOF
16418
16419 ;;
16420esac
16421
16422if test $acx_cv_header_stdint = stddef.h; then
16423 # Lacking a good header? Test size of everything and deduce all types.
38d24731
RW
16424 echo "$as_me:$LINENO: checking for int" >&5
16425echo $ECHO_N "checking for int... $ECHO_C" >&6
4c4b3eb0
PB
16426if test "${ac_cv_type_int+set}" = set; then
16427 echo $ECHO_N "(cached) $ECHO_C" >&6
16428else
16429 cat >conftest.$ac_ext <<_ACEOF
16430/* confdefs.h. */
16431_ACEOF
16432cat confdefs.h >>conftest.$ac_ext
16433cat >>conftest.$ac_ext <<_ACEOF
16434/* end confdefs.h. */
16435$ac_includes_default
16436int
16437main ()
16438{
38d24731 16439if ((int *) 0)
4c4b3eb0 16440 return 0;
38d24731 16441if (sizeof (int))
4c4b3eb0
PB
16442 return 0;
16443 ;
16444 return 0;
16445}
16446_ACEOF
16447rm -f conftest.$ac_objext
38d24731
RW
16448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16449 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
16450 ac_status=$?
16451 grep -v '^ *+' conftest.er1 >conftest.err
16452 rm -f conftest.er1
16453 cat conftest.err >&5
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
16455 (exit $ac_status); } &&
16456 { ac_try='test -z "$ac_c_werror_flag"
16457 || test ! -s conftest.err'
16458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16459 (eval $ac_try) 2>&5
16460 ac_status=$?
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; } &&
16463 { ac_try='test -s conftest.$ac_objext'
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
4c4b3eb0
PB
16469 ac_cv_type_int=yes
16470else
16471 echo "$as_me: failed program was:" >&5
16472sed 's/^/| /' conftest.$ac_ext >&5
16473
38d24731 16474ac_cv_type_int=no
4c4b3eb0 16475fi
38d24731 16476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0 16477fi
38d24731
RW
16478echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16479echo "${ECHO_T}$ac_cv_type_int" >&6
4c4b3eb0 16480
38d24731
RW
16481echo "$as_me:$LINENO: checking size of int" >&5
16482echo $ECHO_N "checking size of int... $ECHO_C" >&6
4c4b3eb0
PB
16483if test "${ac_cv_sizeof_int+set}" = set; then
16484 echo $ECHO_N "(cached) $ECHO_C" >&6
16485else
38d24731
RW
16486 if test "$ac_cv_type_int" = yes; then
16487 # The cast to unsigned long works around a bug in the HP C Compiler
16488 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16489 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16490 # This bug is HP SR number 8606223364.
4c4b3eb0
PB
16491 if test "$cross_compiling" = yes; then
16492 # Depending upon the size, compute the lo and hi bounds.
16493cat >conftest.$ac_ext <<_ACEOF
16494/* confdefs.h. */
16495_ACEOF
16496cat confdefs.h >>conftest.$ac_ext
16497cat >>conftest.$ac_ext <<_ACEOF
16498/* end confdefs.h. */
16499$ac_includes_default
16500int
16501main ()
16502{
38d24731 16503static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4c4b3eb0
PB
16504test_array [0] = 0
16505
16506 ;
16507 return 0;
16508}
16509_ACEOF
16510rm -f conftest.$ac_objext
38d24731
RW
16511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16512 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
16513 ac_status=$?
16514 grep -v '^ *+' conftest.er1 >conftest.err
16515 rm -f conftest.er1
16516 cat conftest.err >&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
16518 (exit $ac_status); } &&
16519 { ac_try='test -z "$ac_c_werror_flag"
16520 || test ! -s conftest.err'
16521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522 (eval $ac_try) 2>&5
16523 ac_status=$?
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; } &&
16526 { ac_try='test -s conftest.$ac_objext'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16529 ac_status=$?
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
4c4b3eb0
PB
16532 ac_lo=0 ac_mid=0
16533 while :; do
16534 cat >conftest.$ac_ext <<_ACEOF
16535/* confdefs.h. */
16536_ACEOF
16537cat confdefs.h >>conftest.$ac_ext
16538cat >>conftest.$ac_ext <<_ACEOF
16539/* end confdefs.h. */
16540$ac_includes_default
16541int
16542main ()
16543{
38d24731 16544static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4c4b3eb0
PB
16545test_array [0] = 0
16546
16547 ;
16548 return 0;
16549}
16550_ACEOF
16551rm -f conftest.$ac_objext
38d24731
RW
16552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16553 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
16554 ac_status=$?
16555 grep -v '^ *+' conftest.er1 >conftest.err
16556 rm -f conftest.er1
16557 cat conftest.err >&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
16559 (exit $ac_status); } &&
16560 { ac_try='test -z "$ac_c_werror_flag"
16561 || test ! -s conftest.err'
16562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563 (eval $ac_try) 2>&5
16564 ac_status=$?
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); }; } &&
16567 { ac_try='test -s conftest.$ac_objext'
16568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16569 (eval $ac_try) 2>&5
16570 ac_status=$?
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; }; then
4c4b3eb0
PB
16573 ac_hi=$ac_mid; break
16574else
16575 echo "$as_me: failed program was:" >&5
16576sed 's/^/| /' conftest.$ac_ext >&5
16577
38d24731
RW
16578ac_lo=`expr $ac_mid + 1`
16579 if test $ac_lo -le $ac_mid; then
16580 ac_lo= ac_hi=
16581 break
16582 fi
16583 ac_mid=`expr 2 '*' $ac_mid + 1`
4c4b3eb0 16584fi
38d24731 16585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
16586 done
16587else
16588 echo "$as_me: failed program was:" >&5
16589sed 's/^/| /' conftest.$ac_ext >&5
16590
38d24731 16591cat >conftest.$ac_ext <<_ACEOF
4c4b3eb0
PB
16592/* confdefs.h. */
16593_ACEOF
16594cat confdefs.h >>conftest.$ac_ext
16595cat >>conftest.$ac_ext <<_ACEOF
16596/* end confdefs.h. */
16597$ac_includes_default
16598int
16599main ()
16600{
38d24731 16601static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4c4b3eb0
PB
16602test_array [0] = 0
16603
16604 ;
16605 return 0;
16606}
16607_ACEOF
16608rm -f conftest.$ac_objext
38d24731
RW
16609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16610 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
16611 ac_status=$?
16612 grep -v '^ *+' conftest.er1 >conftest.err
f489fba1
FXC
16613 rm -f conftest.er1
16614 cat conftest.err >&5
4c4b3eb0 16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
16616 (exit $ac_status); } &&
16617 { ac_try='test -z "$ac_c_werror_flag"
16618 || test ! -s conftest.err'
16619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16620 (eval $ac_try) 2>&5
16621 ac_status=$?
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); }; } &&
16624 { ac_try='test -s conftest.$ac_objext'
16625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626 (eval $ac_try) 2>&5
16627 ac_status=$?
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; }; then
4c4b3eb0
PB
16630 ac_hi=-1 ac_mid=-1
16631 while :; do
16632 cat >conftest.$ac_ext <<_ACEOF
16633/* confdefs.h. */
16634_ACEOF
16635cat confdefs.h >>conftest.$ac_ext
16636cat >>conftest.$ac_ext <<_ACEOF
16637/* end confdefs.h. */
16638$ac_includes_default
16639int
16640main ()
16641{
38d24731 16642static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4c4b3eb0
PB
16643test_array [0] = 0
16644
16645 ;
16646 return 0;
16647}
16648_ACEOF
16649rm -f conftest.$ac_objext
38d24731
RW
16650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16651 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
16652 ac_status=$?
16653 grep -v '^ *+' conftest.er1 >conftest.err
16654 rm -f conftest.er1
16655 cat conftest.err >&5
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
16657 (exit $ac_status); } &&
16658 { ac_try='test -z "$ac_c_werror_flag"
16659 || test ! -s conftest.err'
16660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16661 (eval $ac_try) 2>&5
16662 ac_status=$?
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; } &&
16665 { ac_try='test -s conftest.$ac_objext'
16666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667 (eval $ac_try) 2>&5
16668 ac_status=$?
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); }; }; then
4c4b3eb0
PB
16671 ac_lo=$ac_mid; break
16672else
16673 echo "$as_me: failed program was:" >&5
16674sed 's/^/| /' conftest.$ac_ext >&5
16675
38d24731
RW
16676ac_hi=`expr '(' $ac_mid ')' - 1`
16677 if test $ac_mid -le $ac_hi; then
16678 ac_lo= ac_hi=
16679 break
16680 fi
16681 ac_mid=`expr 2 '*' $ac_mid`
4c4b3eb0 16682fi
38d24731 16683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
16684 done
16685else
16686 echo "$as_me: failed program was:" >&5
16687sed 's/^/| /' conftest.$ac_ext >&5
16688
38d24731 16689ac_lo= ac_hi=
4c4b3eb0 16690fi
38d24731 16691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0 16692fi
38d24731 16693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
16694# Binary search between lo and hi bounds.
16695while test "x$ac_lo" != "x$ac_hi"; do
16696 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16697 cat >conftest.$ac_ext <<_ACEOF
16698/* confdefs.h. */
16699_ACEOF
16700cat confdefs.h >>conftest.$ac_ext
16701cat >>conftest.$ac_ext <<_ACEOF
16702/* end confdefs.h. */
16703$ac_includes_default
16704int
16705main ()
16706{
38d24731 16707static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4c4b3eb0
PB
16708test_array [0] = 0
16709
16710 ;
16711 return 0;
16712}
16713_ACEOF
16714rm -f conftest.$ac_objext
38d24731
RW
16715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16716 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
16717 ac_status=$?
16718 grep -v '^ *+' conftest.er1 >conftest.err
16719 rm -f conftest.er1
16720 cat conftest.err >&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
16722 (exit $ac_status); } &&
16723 { ac_try='test -z "$ac_c_werror_flag"
16724 || test ! -s conftest.err'
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16727 ac_status=$?
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; } &&
16730 { ac_try='test -s conftest.$ac_objext'
16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16733 ac_status=$?
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
4c4b3eb0
PB
16736 ac_hi=$ac_mid
16737else
16738 echo "$as_me: failed program was:" >&5
16739sed 's/^/| /' conftest.$ac_ext >&5
16740
38d24731 16741ac_lo=`expr '(' $ac_mid ')' + 1`
4c4b3eb0 16742fi
38d24731 16743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
16744done
16745case $ac_lo in
16746?*) ac_cv_sizeof_int=$ac_lo;;
38d24731 16747'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4c4b3eb0 16748See \`config.log' for more details." >&5
38d24731 16749echo "$as_me: error: cannot compute sizeof (int), 77
4c4b3eb0 16750See \`config.log' for more details." >&2;}
38d24731 16751 { (exit 1); exit 1; }; } ;;
4c4b3eb0 16752esac
38d24731
RW
16753else
16754 if test "$cross_compiling" = yes; then
16755 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16756See \`config.log' for more details." >&5
16757echo "$as_me: error: cannot run test program while cross compiling
16758See \`config.log' for more details." >&2;}
16759 { (exit 1); exit 1; }; }
4c4b3eb0
PB
16760else
16761 cat >conftest.$ac_ext <<_ACEOF
16762/* confdefs.h. */
16763_ACEOF
16764cat confdefs.h >>conftest.$ac_ext
16765cat >>conftest.$ac_ext <<_ACEOF
16766/* end confdefs.h. */
16767$ac_includes_default
38d24731
RW
16768long longval () { return (long) (sizeof (int)); }
16769unsigned long ulongval () { return (long) (sizeof (int)); }
4c4b3eb0
PB
16770#include <stdio.h>
16771#include <stdlib.h>
16772int
16773main ()
16774{
16775
16776 FILE *f = fopen ("conftest.val", "w");
16777 if (! f)
38d24731
RW
16778 exit (1);
16779 if (((long) (sizeof (int))) < 0)
4c4b3eb0 16780 {
38d24731
RW
16781 long i = longval ();
16782 if (i != ((long) (sizeof (int))))
16783 exit (1);
4c4b3eb0
PB
16784 fprintf (f, "%ld\n", i);
16785 }
16786 else
16787 {
38d24731
RW
16788 unsigned long i = ulongval ();
16789 if (i != ((long) (sizeof (int))))
16790 exit (1);
4c4b3eb0
PB
16791 fprintf (f, "%lu\n", i);
16792 }
38d24731 16793 exit (ferror (f) || fclose (f) != 0);
4c4b3eb0
PB
16794
16795 ;
16796 return 0;
16797}
16798_ACEOF
16799rm -f conftest$ac_exeext
38d24731
RW
16800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16801 (eval $ac_link) 2>&5
4c4b3eb0
PB
16802 ac_status=$?
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38d24731
RW
16805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16806 (eval $ac_try) 2>&5
4c4b3eb0
PB
16807 ac_status=$?
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); }; }; then
16810 ac_cv_sizeof_int=`cat conftest.val`
16811else
16812 echo "$as_me: program exited with status $ac_status" >&5
16813echo "$as_me: failed program was:" >&5
16814sed 's/^/| /' conftest.$ac_ext >&5
16815
16816( exit $ac_status )
38d24731 16817{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4c4b3eb0 16818See \`config.log' for more details." >&5
38d24731 16819echo "$as_me: error: cannot compute sizeof (int), 77
4c4b3eb0 16820See \`config.log' for more details." >&2;}
38d24731
RW
16821 { (exit 1); exit 1; }; }
16822fi
16823rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
16824fi
16825fi
16826rm -f conftest.val
38d24731
RW
16827else
16828 ac_cv_sizeof_int=0
4c4b3eb0 16829fi
38d24731
RW
16830fi
16831echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16832echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4c4b3eb0
PB
16833cat >>confdefs.h <<_ACEOF
16834#define SIZEOF_INT $ac_cv_sizeof_int
16835_ACEOF
16836
16837
38d24731
RW
16838 echo "$as_me:$LINENO: checking for short" >&5
16839echo $ECHO_N "checking for short... $ECHO_C" >&6
4c4b3eb0
PB
16840if test "${ac_cv_type_short+set}" = set; then
16841 echo $ECHO_N "(cached) $ECHO_C" >&6
16842else
16843 cat >conftest.$ac_ext <<_ACEOF
16844/* confdefs.h. */
16845_ACEOF
16846cat confdefs.h >>conftest.$ac_ext
16847cat >>conftest.$ac_ext <<_ACEOF
16848/* end confdefs.h. */
16849$ac_includes_default
16850int
16851main ()
16852{
38d24731 16853if ((short *) 0)
4c4b3eb0 16854 return 0;
38d24731 16855if (sizeof (short))
4c4b3eb0
PB
16856 return 0;
16857 ;
16858 return 0;
16859}
16860_ACEOF
16861rm -f conftest.$ac_objext
38d24731
RW
16862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16863 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
16864 ac_status=$?
16865 grep -v '^ *+' conftest.er1 >conftest.err
16866 rm -f conftest.er1
16867 cat conftest.err >&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
16869 (exit $ac_status); } &&
16870 { ac_try='test -z "$ac_c_werror_flag"
16871 || test ! -s conftest.err'
16872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873 (eval $ac_try) 2>&5
16874 ac_status=$?
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; } &&
16877 { ac_try='test -s conftest.$ac_objext'
16878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879 (eval $ac_try) 2>&5
16880 ac_status=$?
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; }; then
4c4b3eb0
PB
16883 ac_cv_type_short=yes
16884else
16885 echo "$as_me: failed program was:" >&5
16886sed 's/^/| /' conftest.$ac_ext >&5
16887
38d24731 16888ac_cv_type_short=no
4c4b3eb0 16889fi
38d24731 16890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0 16891fi
38d24731
RW
16892echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16893echo "${ECHO_T}$ac_cv_type_short" >&6
4c4b3eb0 16894
38d24731
RW
16895echo "$as_me:$LINENO: checking size of short" >&5
16896echo $ECHO_N "checking size of short... $ECHO_C" >&6
4c4b3eb0
PB
16897if test "${ac_cv_sizeof_short+set}" = set; then
16898 echo $ECHO_N "(cached) $ECHO_C" >&6
16899else
38d24731
RW
16900 if test "$ac_cv_type_short" = yes; then
16901 # The cast to unsigned long works around a bug in the HP C Compiler
16902 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16903 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16904 # This bug is HP SR number 8606223364.
4c4b3eb0
PB
16905 if test "$cross_compiling" = yes; then
16906 # Depending upon the size, compute the lo and hi bounds.
16907cat >conftest.$ac_ext <<_ACEOF
16908/* confdefs.h. */
16909_ACEOF
16910cat confdefs.h >>conftest.$ac_ext
16911cat >>conftest.$ac_ext <<_ACEOF
16912/* end confdefs.h. */
16913$ac_includes_default
16914int
16915main ()
16916{
38d24731 16917static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4c4b3eb0
PB
16918test_array [0] = 0
16919
16920 ;
16921 return 0;
16922}
16923_ACEOF
16924rm -f conftest.$ac_objext
38d24731
RW
16925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16926 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
16927 ac_status=$?
16928 grep -v '^ *+' conftest.er1 >conftest.err
16929 rm -f conftest.er1
16930 cat conftest.err >&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
16932 (exit $ac_status); } &&
16933 { ac_try='test -z "$ac_c_werror_flag"
16934 || test ! -s conftest.err'
16935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936 (eval $ac_try) 2>&5
16937 ac_status=$?
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; } &&
16940 { ac_try='test -s conftest.$ac_objext'
16941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16942 (eval $ac_try) 2>&5
16943 ac_status=$?
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); }; }; then
4c4b3eb0
PB
16946 ac_lo=0 ac_mid=0
16947 while :; do
16948 cat >conftest.$ac_ext <<_ACEOF
16949/* confdefs.h. */
16950_ACEOF
16951cat confdefs.h >>conftest.$ac_ext
16952cat >>conftest.$ac_ext <<_ACEOF
16953/* end confdefs.h. */
16954$ac_includes_default
16955int
16956main ()
16957{
38d24731 16958static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4c4b3eb0
PB
16959test_array [0] = 0
16960
16961 ;
16962 return 0;
16963}
16964_ACEOF
16965rm -f conftest.$ac_objext
38d24731
RW
16966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16967 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
16968 ac_status=$?
16969 grep -v '^ *+' conftest.er1 >conftest.err
16970 rm -f conftest.er1
16971 cat conftest.err >&5
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
16973 (exit $ac_status); } &&
16974 { ac_try='test -z "$ac_c_werror_flag"
16975 || test ! -s conftest.err'
16976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16977 (eval $ac_try) 2>&5
16978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; } &&
16981 { ac_try='test -s conftest.$ac_objext'
16982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16983 (eval $ac_try) 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; }; then
4c4b3eb0
PB
16987 ac_hi=$ac_mid; break
16988else
16989 echo "$as_me: failed program was:" >&5
16990sed 's/^/| /' conftest.$ac_ext >&5
16991
38d24731
RW
16992ac_lo=`expr $ac_mid + 1`
16993 if test $ac_lo -le $ac_mid; then
16994 ac_lo= ac_hi=
16995 break
16996 fi
16997 ac_mid=`expr 2 '*' $ac_mid + 1`
4c4b3eb0 16998fi
38d24731 16999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
17000 done
17001else
17002 echo "$as_me: failed program was:" >&5
17003sed 's/^/| /' conftest.$ac_ext >&5
17004
38d24731 17005cat >conftest.$ac_ext <<_ACEOF
4c4b3eb0
PB
17006/* confdefs.h. */
17007_ACEOF
17008cat confdefs.h >>conftest.$ac_ext
17009cat >>conftest.$ac_ext <<_ACEOF
17010/* end confdefs.h. */
17011$ac_includes_default
17012int
17013main ()
17014{
38d24731 17015static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4c4b3eb0
PB
17016test_array [0] = 0
17017
17018 ;
17019 return 0;
17020}
17021_ACEOF
17022rm -f conftest.$ac_objext
38d24731
RW
17023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17024 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
17025 ac_status=$?
17026 grep -v '^ *+' conftest.er1 >conftest.err
17027 rm -f conftest.er1
17028 cat conftest.err >&5
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
17030 (exit $ac_status); } &&
17031 { ac_try='test -z "$ac_c_werror_flag"
17032 || test ! -s conftest.err'
17033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17034 (eval $ac_try) 2>&5
17035 ac_status=$?
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); }; } &&
17038 { ac_try='test -s conftest.$ac_objext'
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; }; then
4c4b3eb0
PB
17044 ac_hi=-1 ac_mid=-1
17045 while :; do
17046 cat >conftest.$ac_ext <<_ACEOF
17047/* confdefs.h. */
17048_ACEOF
17049cat confdefs.h >>conftest.$ac_ext
17050cat >>conftest.$ac_ext <<_ACEOF
17051/* end confdefs.h. */
17052$ac_includes_default
17053int
17054main ()
17055{
38d24731 17056static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4c4b3eb0
PB
17057test_array [0] = 0
17058
17059 ;
17060 return 0;
17061}
17062_ACEOF
17063rm -f conftest.$ac_objext
38d24731
RW
17064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17065 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
17066 ac_status=$?
17067 grep -v '^ *+' conftest.er1 >conftest.err
17068 rm -f conftest.er1
17069 cat conftest.err >&5
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
17071 (exit $ac_status); } &&
17072 { ac_try='test -z "$ac_c_werror_flag"
17073 || test ! -s conftest.err'
17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; } &&
17079 { ac_try='test -s conftest.$ac_objext'
17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17082 ac_status=$?
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; }; then
4c4b3eb0
PB
17085 ac_lo=$ac_mid; break
17086else
17087 echo "$as_me: failed program was:" >&5
17088sed 's/^/| /' conftest.$ac_ext >&5
17089
38d24731
RW
17090ac_hi=`expr '(' $ac_mid ')' - 1`
17091 if test $ac_mid -le $ac_hi; then
17092 ac_lo= ac_hi=
17093 break
17094 fi
17095 ac_mid=`expr 2 '*' $ac_mid`
4c4b3eb0 17096fi
38d24731 17097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
17098 done
17099else
17100 echo "$as_me: failed program was:" >&5
17101sed 's/^/| /' conftest.$ac_ext >&5
17102
38d24731 17103ac_lo= ac_hi=
4c4b3eb0 17104fi
38d24731 17105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0 17106fi
38d24731 17107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
17108# Binary search between lo and hi bounds.
17109while test "x$ac_lo" != "x$ac_hi"; do
17110 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17111 cat >conftest.$ac_ext <<_ACEOF
17112/* confdefs.h. */
17113_ACEOF
17114cat confdefs.h >>conftest.$ac_ext
17115cat >>conftest.$ac_ext <<_ACEOF
17116/* end confdefs.h. */
17117$ac_includes_default
17118int
17119main ()
17120{
38d24731 17121static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4c4b3eb0
PB
17122test_array [0] = 0
17123
17124 ;
17125 return 0;
17126}
17127_ACEOF
17128rm -f conftest.$ac_objext
38d24731
RW
17129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17130 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
17131 ac_status=$?
17132 grep -v '^ *+' conftest.er1 >conftest.err
17133 rm -f conftest.er1
17134 cat conftest.err >&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
17136 (exit $ac_status); } &&
17137 { ac_try='test -z "$ac_c_werror_flag"
17138 || test ! -s conftest.err'
17139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140 (eval $ac_try) 2>&5
17141 ac_status=$?
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); }; } &&
17144 { ac_try='test -s conftest.$ac_objext'
17145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17146 (eval $ac_try) 2>&5
17147 ac_status=$?
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); }; }; then
4c4b3eb0
PB
17150 ac_hi=$ac_mid
17151else
17152 echo "$as_me: failed program was:" >&5
17153sed 's/^/| /' conftest.$ac_ext >&5
17154
38d24731 17155ac_lo=`expr '(' $ac_mid ')' + 1`
4c4b3eb0 17156fi
38d24731 17157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
17158done
17159case $ac_lo in
17160?*) ac_cv_sizeof_short=$ac_lo;;
38d24731 17161'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4c4b3eb0 17162See \`config.log' for more details." >&5
38d24731 17163echo "$as_me: error: cannot compute sizeof (short), 77
4c4b3eb0 17164See \`config.log' for more details." >&2;}
38d24731 17165 { (exit 1); exit 1; }; } ;;
4c4b3eb0 17166esac
38d24731
RW
17167else
17168 if test "$cross_compiling" = yes; then
17169 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17170See \`config.log' for more details." >&5
17171echo "$as_me: error: cannot run test program while cross compiling
17172See \`config.log' for more details." >&2;}
17173 { (exit 1); exit 1; }; }
4c4b3eb0
PB
17174else
17175 cat >conftest.$ac_ext <<_ACEOF
17176/* confdefs.h. */
17177_ACEOF
17178cat confdefs.h >>conftest.$ac_ext
17179cat >>conftest.$ac_ext <<_ACEOF
17180/* end confdefs.h. */
17181$ac_includes_default
38d24731
RW
17182long longval () { return (long) (sizeof (short)); }
17183unsigned long ulongval () { return (long) (sizeof (short)); }
4c4b3eb0
PB
17184#include <stdio.h>
17185#include <stdlib.h>
17186int
17187main ()
17188{
17189
17190 FILE *f = fopen ("conftest.val", "w");
17191 if (! f)
38d24731
RW
17192 exit (1);
17193 if (((long) (sizeof (short))) < 0)
4c4b3eb0 17194 {
38d24731
RW
17195 long i = longval ();
17196 if (i != ((long) (sizeof (short))))
17197 exit (1);
4c4b3eb0
PB
17198 fprintf (f, "%ld\n", i);
17199 }
17200 else
17201 {
38d24731
RW
17202 unsigned long i = ulongval ();
17203 if (i != ((long) (sizeof (short))))
17204 exit (1);
4c4b3eb0
PB
17205 fprintf (f, "%lu\n", i);
17206 }
38d24731 17207 exit (ferror (f) || fclose (f) != 0);
4c4b3eb0
PB
17208
17209 ;
17210 return 0;
17211}
17212_ACEOF
17213rm -f conftest$ac_exeext
38d24731
RW
17214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17215 (eval $ac_link) 2>&5
4c4b3eb0
PB
17216 ac_status=$?
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38d24731
RW
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
4c4b3eb0
PB
17221 ac_status=$?
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; }; then
17224 ac_cv_sizeof_short=`cat conftest.val`
17225else
17226 echo "$as_me: program exited with status $ac_status" >&5
17227echo "$as_me: failed program was:" >&5
17228sed 's/^/| /' conftest.$ac_ext >&5
17229
17230( exit $ac_status )
38d24731 17231{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4c4b3eb0 17232See \`config.log' for more details." >&5
38d24731 17233echo "$as_me: error: cannot compute sizeof (short), 77
4c4b3eb0 17234See \`config.log' for more details." >&2;}
38d24731
RW
17235 { (exit 1); exit 1; }; }
17236fi
17237rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
17238fi
17239fi
17240rm -f conftest.val
38d24731
RW
17241else
17242 ac_cv_sizeof_short=0
4c4b3eb0 17243fi
38d24731
RW
17244fi
17245echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
17246echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4c4b3eb0
PB
17247cat >>confdefs.h <<_ACEOF
17248#define SIZEOF_SHORT $ac_cv_sizeof_short
17249_ACEOF
17250
17251
38d24731
RW
17252 echo "$as_me:$LINENO: checking for char" >&5
17253echo $ECHO_N "checking for char... $ECHO_C" >&6
4c4b3eb0
PB
17254if test "${ac_cv_type_char+set}" = set; then
17255 echo $ECHO_N "(cached) $ECHO_C" >&6
17256else
17257 cat >conftest.$ac_ext <<_ACEOF
17258/* confdefs.h. */
17259_ACEOF
17260cat confdefs.h >>conftest.$ac_ext
17261cat >>conftest.$ac_ext <<_ACEOF
17262/* end confdefs.h. */
17263$ac_includes_default
17264int
17265main ()
17266{
38d24731 17267if ((char *) 0)
4c4b3eb0 17268 return 0;
38d24731 17269if (sizeof (char))
4c4b3eb0
PB
17270 return 0;
17271 ;
17272 return 0;
17273}
17274_ACEOF
17275rm -f conftest.$ac_objext
38d24731
RW
17276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17277 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
17278 ac_status=$?
17279 grep -v '^ *+' conftest.er1 >conftest.err
17280 rm -f conftest.er1
17281 cat conftest.err >&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
17283 (exit $ac_status); } &&
17284 { ac_try='test -z "$ac_c_werror_flag"
17285 || test ! -s conftest.err'
17286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17287 (eval $ac_try) 2>&5
17288 ac_status=$?
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); }; } &&
17291 { ac_try='test -s conftest.$ac_objext'
17292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17293 (eval $ac_try) 2>&5
17294 ac_status=$?
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); }; }; then
4c4b3eb0
PB
17297 ac_cv_type_char=yes
17298else
17299 echo "$as_me: failed program was:" >&5
17300sed 's/^/| /' conftest.$ac_ext >&5
17301
38d24731 17302ac_cv_type_char=no
4c4b3eb0 17303fi
38d24731 17304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0 17305fi
38d24731
RW
17306echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17307echo "${ECHO_T}$ac_cv_type_char" >&6
4c4b3eb0 17308
38d24731
RW
17309echo "$as_me:$LINENO: checking size of char" >&5
17310echo $ECHO_N "checking size of char... $ECHO_C" >&6
4c4b3eb0
PB
17311if test "${ac_cv_sizeof_char+set}" = set; then
17312 echo $ECHO_N "(cached) $ECHO_C" >&6
17313else
38d24731
RW
17314 if test "$ac_cv_type_char" = yes; then
17315 # The cast to unsigned long works around a bug in the HP C Compiler
17316 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17317 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17318 # This bug is HP SR number 8606223364.
4c4b3eb0
PB
17319 if test "$cross_compiling" = yes; then
17320 # Depending upon the size, compute the lo and hi bounds.
17321cat >conftest.$ac_ext <<_ACEOF
17322/* confdefs.h. */
17323_ACEOF
17324cat confdefs.h >>conftest.$ac_ext
17325cat >>conftest.$ac_ext <<_ACEOF
17326/* end confdefs.h. */
17327$ac_includes_default
17328int
17329main ()
17330{
38d24731 17331static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4c4b3eb0
PB
17332test_array [0] = 0
17333
17334 ;
17335 return 0;
17336}
17337_ACEOF
17338rm -f conftest.$ac_objext
38d24731
RW
17339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17340 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
17341 ac_status=$?
17342 grep -v '^ *+' conftest.er1 >conftest.err
17343 rm -f conftest.er1
17344 cat conftest.err >&5
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
17346 (exit $ac_status); } &&
17347 { ac_try='test -z "$ac_c_werror_flag"
17348 || test ! -s conftest.err'
17349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350 (eval $ac_try) 2>&5
17351 ac_status=$?
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; } &&
17354 { ac_try='test -s conftest.$ac_objext'
17355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17356 (eval $ac_try) 2>&5
17357 ac_status=$?
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); }; }; then
4c4b3eb0
PB
17360 ac_lo=0 ac_mid=0
17361 while :; do
17362 cat >conftest.$ac_ext <<_ACEOF
17363/* confdefs.h. */
17364_ACEOF
17365cat confdefs.h >>conftest.$ac_ext
17366cat >>conftest.$ac_ext <<_ACEOF
17367/* end confdefs.h. */
17368$ac_includes_default
17369int
17370main ()
17371{
38d24731 17372static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4c4b3eb0
PB
17373test_array [0] = 0
17374
17375 ;
17376 return 0;
17377}
17378_ACEOF
17379rm -f conftest.$ac_objext
38d24731
RW
17380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17381 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
17382 ac_status=$?
17383 grep -v '^ *+' conftest.er1 >conftest.err
17384 rm -f conftest.er1
17385 cat conftest.err >&5
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
17387 (exit $ac_status); } &&
17388 { ac_try='test -z "$ac_c_werror_flag"
17389 || test ! -s conftest.err'
17390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391 (eval $ac_try) 2>&5
17392 ac_status=$?
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; } &&
17395 { ac_try='test -s conftest.$ac_objext'
17396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397 (eval $ac_try) 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; }; then
4c4b3eb0
PB
17401 ac_hi=$ac_mid; break
17402else
17403 echo "$as_me: failed program was:" >&5
17404sed 's/^/| /' conftest.$ac_ext >&5
17405
38d24731
RW
17406ac_lo=`expr $ac_mid + 1`
17407 if test $ac_lo -le $ac_mid; then
17408 ac_lo= ac_hi=
17409 break
17410 fi
17411 ac_mid=`expr 2 '*' $ac_mid + 1`
4c4b3eb0 17412fi
38d24731 17413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
17414 done
17415else
17416 echo "$as_me: failed program was:" >&5
17417sed 's/^/| /' conftest.$ac_ext >&5
17418
38d24731 17419cat >conftest.$ac_ext <<_ACEOF
4c4b3eb0
PB
17420/* confdefs.h. */
17421_ACEOF
17422cat confdefs.h >>conftest.$ac_ext
17423cat >>conftest.$ac_ext <<_ACEOF
17424/* end confdefs.h. */
17425$ac_includes_default
17426int
17427main ()
17428{
38d24731 17429static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4c4b3eb0
PB
17430test_array [0] = 0
17431
17432 ;
17433 return 0;
17434}
17435_ACEOF
17436rm -f conftest.$ac_objext
38d24731
RW
17437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17438 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
17439 ac_status=$?
17440 grep -v '^ *+' conftest.er1 >conftest.err
17441 rm -f conftest.er1
17442 cat conftest.err >&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
17444 (exit $ac_status); } &&
17445 { ac_try='test -z "$ac_c_werror_flag"
17446 || test ! -s conftest.err'
17447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17448 (eval $ac_try) 2>&5
17449 ac_status=$?
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); }; } &&
17452 { ac_try='test -s conftest.$ac_objext'
17453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17454 (eval $ac_try) 2>&5
17455 ac_status=$?
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); }; }; then
4c4b3eb0
PB
17458 ac_hi=-1 ac_mid=-1
17459 while :; do
17460 cat >conftest.$ac_ext <<_ACEOF
17461/* confdefs.h. */
17462_ACEOF
17463cat confdefs.h >>conftest.$ac_ext
17464cat >>conftest.$ac_ext <<_ACEOF
17465/* end confdefs.h. */
17466$ac_includes_default
17467int
17468main ()
17469{
38d24731 17470static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4c4b3eb0
PB
17471test_array [0] = 0
17472
17473 ;
17474 return 0;
17475}
17476_ACEOF
17477rm -f conftest.$ac_objext
38d24731
RW
17478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17479 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
17480 ac_status=$?
17481 grep -v '^ *+' conftest.er1 >conftest.err
17482 rm -f conftest.er1
17483 cat conftest.err >&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
17485 (exit $ac_status); } &&
17486 { ac_try='test -z "$ac_c_werror_flag"
17487 || test ! -s conftest.err'
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17490 ac_status=$?
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; } &&
17493 { ac_try='test -s conftest.$ac_objext'
17494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17495 (eval $ac_try) 2>&5
17496 ac_status=$?
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); }; }; then
4c4b3eb0
PB
17499 ac_lo=$ac_mid; break
17500else
17501 echo "$as_me: failed program was:" >&5
17502sed 's/^/| /' conftest.$ac_ext >&5
17503
38d24731
RW
17504ac_hi=`expr '(' $ac_mid ')' - 1`
17505 if test $ac_mid -le $ac_hi; then
17506 ac_lo= ac_hi=
17507 break
17508 fi
17509 ac_mid=`expr 2 '*' $ac_mid`
4c4b3eb0 17510fi
38d24731 17511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
17512 done
17513else
17514 echo "$as_me: failed program was:" >&5
17515sed 's/^/| /' conftest.$ac_ext >&5
17516
38d24731 17517ac_lo= ac_hi=
4c4b3eb0 17518fi
38d24731 17519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0 17520fi
38d24731 17521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
17522# Binary search between lo and hi bounds.
17523while test "x$ac_lo" != "x$ac_hi"; do
17524 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17525 cat >conftest.$ac_ext <<_ACEOF
17526/* confdefs.h. */
17527_ACEOF
17528cat confdefs.h >>conftest.$ac_ext
17529cat >>conftest.$ac_ext <<_ACEOF
17530/* end confdefs.h. */
17531$ac_includes_default
17532int
17533main ()
17534{
38d24731 17535static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4c4b3eb0
PB
17536test_array [0] = 0
17537
17538 ;
17539 return 0;
17540}
17541_ACEOF
17542rm -f conftest.$ac_objext
38d24731
RW
17543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17544 (eval $ac_compile) 2>conftest.er1
4c4b3eb0
PB
17545 ac_status=$?
17546 grep -v '^ *+' conftest.er1 >conftest.err
17547 rm -f conftest.er1
17548 cat conftest.err >&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
17550 (exit $ac_status); } &&
17551 { ac_try='test -z "$ac_c_werror_flag"
17552 || test ! -s conftest.err'
17553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554 (eval $ac_try) 2>&5
17555 ac_status=$?
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; } &&
17558 { ac_try='test -s conftest.$ac_objext'
17559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17560 (eval $ac_try) 2>&5
17561 ac_status=$?
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; }; then
4c4b3eb0
PB
17564 ac_hi=$ac_mid
17565else
17566 echo "$as_me: failed program was:" >&5
17567sed 's/^/| /' conftest.$ac_ext >&5
17568
38d24731 17569ac_lo=`expr '(' $ac_mid ')' + 1`
4c4b3eb0 17570fi
38d24731 17571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
17572done
17573case $ac_lo in
17574?*) ac_cv_sizeof_char=$ac_lo;;
38d24731 17575'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4c4b3eb0 17576See \`config.log' for more details." >&5
38d24731 17577echo "$as_me: error: cannot compute sizeof (char), 77
4c4b3eb0 17578See \`config.log' for more details." >&2;}
38d24731 17579 { (exit 1); exit 1; }; } ;;
4c4b3eb0 17580esac
38d24731
RW
17581else
17582 if test "$cross_compiling" = yes; then
17583 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17584See \`config.log' for more details." >&5
17585echo "$as_me: error: cannot run test program while cross compiling
17586See \`config.log' for more details." >&2;}
17587 { (exit 1); exit 1; }; }
4c4b3eb0
PB
17588else
17589 cat >conftest.$ac_ext <<_ACEOF
17590/* confdefs.h. */
17591_ACEOF
17592cat confdefs.h >>conftest.$ac_ext
17593cat >>conftest.$ac_ext <<_ACEOF
17594/* end confdefs.h. */
17595$ac_includes_default
38d24731
RW
17596long longval () { return (long) (sizeof (char)); }
17597unsigned long ulongval () { return (long) (sizeof (char)); }
4c4b3eb0
PB
17598#include <stdio.h>
17599#include <stdlib.h>
17600int
17601main ()
17602{
17603
17604 FILE *f = fopen ("conftest.val", "w");
17605 if (! f)
38d24731
RW
17606 exit (1);
17607 if (((long) (sizeof (char))) < 0)
4c4b3eb0 17608 {
38d24731
RW
17609 long i = longval ();
17610 if (i != ((long) (sizeof (char))))
17611 exit (1);
4c4b3eb0
PB
17612 fprintf (f, "%ld\n", i);
17613 }
17614 else
17615 {
38d24731
RW
17616 unsigned long i = ulongval ();
17617 if (i != ((long) (sizeof (char))))
17618 exit (1);
4c4b3eb0
PB
17619 fprintf (f, "%lu\n", i);
17620 }
38d24731 17621 exit (ferror (f) || fclose (f) != 0);
4c4b3eb0
PB
17622
17623 ;
17624 return 0;
17625}
17626_ACEOF
17627rm -f conftest$ac_exeext
38d24731
RW
17628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17629 (eval $ac_link) 2>&5
4c4b3eb0
PB
17630 ac_status=$?
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38d24731
RW
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
4c4b3eb0
PB
17635 ac_status=$?
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 ac_cv_sizeof_char=`cat conftest.val`
17639else
17640 echo "$as_me: program exited with status $ac_status" >&5
17641echo "$as_me: failed program was:" >&5
17642sed 's/^/| /' conftest.$ac_ext >&5
17643
17644( exit $ac_status )
38d24731 17645{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4c4b3eb0 17646See \`config.log' for more details." >&5
38d24731 17647echo "$as_me: error: cannot compute sizeof (char), 77
4c4b3eb0 17648See \`config.log' for more details." >&2;}
38d24731
RW
17649 { (exit 1); exit 1; }; }
17650fi
17651rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4c4b3eb0
PB
17652fi
17653fi
17654rm -f conftest.val
38d24731
RW
17655else
17656 ac_cv_sizeof_char=0
4c4b3eb0 17657fi
38d24731
RW
17658fi
17659echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17660echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4c4b3eb0
PB
17661cat >>confdefs.h <<_ACEOF
17662#define SIZEOF_CHAR $ac_cv_sizeof_char
17663_ACEOF
17664
17665
17666
38d24731
RW
17667 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
17668echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
4c4b3eb0
PB
17669 case "$ac_cv_sizeof_char" in
17670 1) acx_cv_type_int8_t=char ;;
17671 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
17672echo "$as_me: error: no 8-bit type" >&2;}
17673 { (exit please report a bug); exit please report a bug; }; }
17674 esac
38d24731
RW
17675 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
17676echo "${ECHO_T}$acx_cv_type_int8_t" >&6
4c4b3eb0 17677
38d24731
RW
17678 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
17679echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
4c4b3eb0
PB
17680 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
17681 2:*) acx_cv_type_int16_t=int ;;
17682 *:2) acx_cv_type_int16_t=short ;;
17683 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
17684echo "$as_me: error: no 16-bit type" >&2;}
17685 { (exit please report a bug); exit please report a bug; }; }
17686 esac
38d24731
RW
17687 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
17688echo "${ECHO_T}$acx_cv_type_int16_t" >&6
4c4b3eb0 17689
38d24731
RW
17690 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
17691echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
4c4b3eb0
PB
17692 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
17693 4:*) acx_cv_type_int32_t=int ;;
17694 *:4) acx_cv_type_int32_t=long ;;
17695 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
17696echo "$as_me: error: no 32-bit type" >&2;}
17697 { (exit please report a bug); exit please report a bug; }; }
17698 esac
38d24731
RW
17699 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
17700echo "${ECHO_T}$acx_cv_type_int32_t" >&6
4c4b3eb0
PB
17701fi
17702
17703# These tests are here to make the output prettier
17704
17705if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
17706 case "$ac_cv_sizeof_long" in
17707 8) acx_cv_type_int64_t=long ;;
17708 esac
38d24731
RW
17709 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
17710echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
17711 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
17712echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
4c4b3eb0
PB
17713fi
17714
17715# Now we can use the above types
17716
17717if test "$ac_cv_type_uintptr_t" != yes; then
38d24731
RW
17718 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
17719echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
4c4b3eb0
PB
17720 case $ac_cv_sizeof_void_p in
17721 2) acx_cv_type_intptr_t=int16_t ;;
17722 4) acx_cv_type_intptr_t=int32_t ;;
17723 8) acx_cv_type_intptr_t=int64_t ;;
17724 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
17725echo "$as_me: error: no equivalent for intptr_t" >&2;}
17726 { (exit please report a bug); exit please report a bug; }; }
17727 esac
38d24731
RW
17728 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
17729echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
4c4b3eb0
PB
17730fi
17731
17732# ----------------- done all checks, emit header -------------
38d24731 17733 ac_config_commands="$ac_config_commands gstdint.h"
4c4b3eb0
PB
17734
17735
17736
17737
38d24731
RW
17738echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17739echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
df65f093
SK
17740if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17741 echo $ECHO_N "(cached) $ECHO_C" >&6
17742else
17743 cat >conftest.$ac_ext <<_ACEOF
17744/* confdefs.h. */
17745_ACEOF
17746cat confdefs.h >>conftest.$ac_ext
17747cat >>conftest.$ac_ext <<_ACEOF
17748/* end confdefs.h. */
17749$ac_includes_default
17750int
17751main ()
17752{
17753static struct stat ac_aggr;
17754if (ac_aggr.st_blksize)
17755return 0;
17756 ;
17757 return 0;
17758}
17759_ACEOF
17760rm -f conftest.$ac_objext
38d24731
RW
17761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17762 (eval $ac_compile) 2>conftest.er1
df65f093
SK
17763 ac_status=$?
17764 grep -v '^ *+' conftest.er1 >conftest.err
17765 rm -f conftest.er1
17766 cat conftest.err >&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
17768 (exit $ac_status); } &&
17769 { ac_try='test -z "$ac_c_werror_flag"
17770 || test ! -s conftest.err'
17771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17773 ac_status=$?
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; } &&
17776 { ac_try='test -s conftest.$ac_objext'
17777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778 (eval $ac_try) 2>&5
17779 ac_status=$?
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; }; then
df65f093
SK
17782 ac_cv_member_struct_stat_st_blksize=yes
17783else
17784 echo "$as_me: failed program was:" >&5
17785sed 's/^/| /' conftest.$ac_ext >&5
17786
38d24731 17787cat >conftest.$ac_ext <<_ACEOF
df65f093
SK
17788/* confdefs.h. */
17789_ACEOF
17790cat confdefs.h >>conftest.$ac_ext
17791cat >>conftest.$ac_ext <<_ACEOF
17792/* end confdefs.h. */
17793$ac_includes_default
17794int
17795main ()
17796{
17797static struct stat ac_aggr;
17798if (sizeof ac_aggr.st_blksize)
17799return 0;
17800 ;
17801 return 0;
17802}
17803_ACEOF
17804rm -f conftest.$ac_objext
38d24731
RW
17805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17806 (eval $ac_compile) 2>conftest.er1
df65f093
SK
17807 ac_status=$?
17808 grep -v '^ *+' conftest.er1 >conftest.err
17809 rm -f conftest.er1
17810 cat conftest.err >&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
17812 (exit $ac_status); } &&
17813 { ac_try='test -z "$ac_c_werror_flag"
17814 || test ! -s conftest.err'
17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816 (eval $ac_try) 2>&5
17817 ac_status=$?
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); }; } &&
17820 { ac_try='test -s conftest.$ac_objext'
17821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822 (eval $ac_try) 2>&5
17823 ac_status=$?
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; }; then
df65f093
SK
17826 ac_cv_member_struct_stat_st_blksize=yes
17827else
17828 echo "$as_me: failed program was:" >&5
17829sed 's/^/| /' conftest.$ac_ext >&5
17830
38d24731 17831ac_cv_member_struct_stat_st_blksize=no
df65f093 17832fi
38d24731 17833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
df65f093 17834fi
38d24731 17835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
df65f093 17836fi
38d24731
RW
17837echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17838echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
df65f093
SK
17839if test $ac_cv_member_struct_stat_st_blksize = yes; then
17840
17841cat >>confdefs.h <<_ACEOF
17842#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17843_ACEOF
17844
17845
17846fi
17847
38d24731
RW
17848echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17849echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
df65f093
SK
17850if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17851 echo $ECHO_N "(cached) $ECHO_C" >&6
17852else
17853 cat >conftest.$ac_ext <<_ACEOF
17854/* confdefs.h. */
17855_ACEOF
17856cat confdefs.h >>conftest.$ac_ext
17857cat >>conftest.$ac_ext <<_ACEOF
17858/* end confdefs.h. */
17859$ac_includes_default
17860int
17861main ()
17862{
17863static struct stat ac_aggr;
17864if (ac_aggr.st_blocks)
17865return 0;
17866 ;
17867 return 0;
17868}
17869_ACEOF
17870rm -f conftest.$ac_objext
38d24731
RW
17871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17872 (eval $ac_compile) 2>conftest.er1
df65f093
SK
17873 ac_status=$?
17874 grep -v '^ *+' conftest.er1 >conftest.err
17875 rm -f conftest.er1
17876 cat conftest.err >&5
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
17878 (exit $ac_status); } &&
17879 { ac_try='test -z "$ac_c_werror_flag"
17880 || test ! -s conftest.err'
17881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17882 (eval $ac_try) 2>&5
17883 ac_status=$?
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); }; } &&
17886 { ac_try='test -s conftest.$ac_objext'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; }; then
df65f093
SK
17892 ac_cv_member_struct_stat_st_blocks=yes
17893else
17894 echo "$as_me: failed program was:" >&5
17895sed 's/^/| /' conftest.$ac_ext >&5
17896
38d24731 17897cat >conftest.$ac_ext <<_ACEOF
df65f093
SK
17898/* confdefs.h. */
17899_ACEOF
17900cat confdefs.h >>conftest.$ac_ext
17901cat >>conftest.$ac_ext <<_ACEOF
17902/* end confdefs.h. */
17903$ac_includes_default
17904int
17905main ()
17906{
17907static struct stat ac_aggr;
17908if (sizeof ac_aggr.st_blocks)
17909return 0;
17910 ;
17911 return 0;
17912}
17913_ACEOF
17914rm -f conftest.$ac_objext
38d24731
RW
17915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17916 (eval $ac_compile) 2>conftest.er1
df65f093
SK
17917 ac_status=$?
17918 grep -v '^ *+' conftest.er1 >conftest.err
17919 rm -f conftest.er1
17920 cat conftest.err >&5
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
17922 (exit $ac_status); } &&
17923 { ac_try='test -z "$ac_c_werror_flag"
17924 || test ! -s conftest.err'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17927 ac_status=$?
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; } &&
17930 { ac_try='test -s conftest.$ac_objext'
17931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17932 (eval $ac_try) 2>&5
17933 ac_status=$?
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; }; then
df65f093
SK
17936 ac_cv_member_struct_stat_st_blocks=yes
17937else
17938 echo "$as_me: failed program was:" >&5
17939sed 's/^/| /' conftest.$ac_ext >&5
17940
38d24731 17941ac_cv_member_struct_stat_st_blocks=no
df65f093 17942fi
38d24731 17943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
df65f093 17944fi
38d24731 17945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
df65f093 17946fi
38d24731
RW
17947echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17948echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
df65f093
SK
17949if test $ac_cv_member_struct_stat_st_blocks = yes; then
17950
17951cat >>confdefs.h <<_ACEOF
17952#define HAVE_STRUCT_STAT_ST_BLOCKS 1
17953_ACEOF
17954
17955
17956fi
17957
38d24731
RW
17958echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17959echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
df65f093
SK
17960if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17961 echo $ECHO_N "(cached) $ECHO_C" >&6
17962else
17963 cat >conftest.$ac_ext <<_ACEOF
17964/* confdefs.h. */
17965_ACEOF
17966cat confdefs.h >>conftest.$ac_ext
17967cat >>conftest.$ac_ext <<_ACEOF
17968/* end confdefs.h. */
17969$ac_includes_default
17970int
17971main ()
17972{
17973static struct stat ac_aggr;
17974if (ac_aggr.st_rdev)
17975return 0;
17976 ;
17977 return 0;
17978}
17979_ACEOF
17980rm -f conftest.$ac_objext
38d24731
RW
17981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17982 (eval $ac_compile) 2>conftest.er1
df65f093
SK
17983 ac_status=$?
17984 grep -v '^ *+' conftest.er1 >conftest.err
17985 rm -f conftest.er1
17986 cat conftest.err >&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
17988 (exit $ac_status); } &&
17989 { ac_try='test -z "$ac_c_werror_flag"
17990 || test ! -s conftest.err'
17991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17992 (eval $ac_try) 2>&5
17993 ac_status=$?
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); }; } &&
17996 { ac_try='test -s conftest.$ac_objext'
17997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17998 (eval $ac_try) 2>&5
17999 ac_status=$?
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); }; }; then
df65f093
SK
18002 ac_cv_member_struct_stat_st_rdev=yes
18003else
18004 echo "$as_me: failed program was:" >&5
18005sed 's/^/| /' conftest.$ac_ext >&5
18006
38d24731 18007cat >conftest.$ac_ext <<_ACEOF
df65f093
SK
18008/* confdefs.h. */
18009_ACEOF
18010cat confdefs.h >>conftest.$ac_ext
18011cat >>conftest.$ac_ext <<_ACEOF
18012/* end confdefs.h. */
18013$ac_includes_default
18014int
18015main ()
18016{
18017static struct stat ac_aggr;
18018if (sizeof ac_aggr.st_rdev)
18019return 0;
18020 ;
18021 return 0;
18022}
18023_ACEOF
18024rm -f conftest.$ac_objext
38d24731
RW
18025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18026 (eval $ac_compile) 2>conftest.er1
df65f093
SK
18027 ac_status=$?
18028 grep -v '^ *+' conftest.er1 >conftest.err
18029 rm -f conftest.er1
18030 cat conftest.err >&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
18032 (exit $ac_status); } &&
18033 { ac_try='test -z "$ac_c_werror_flag"
18034 || test ! -s conftest.err'
18035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18036 (eval $ac_try) 2>&5
18037 ac_status=$?
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; } &&
18040 { ac_try='test -s conftest.$ac_objext'
18041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18042 (eval $ac_try) 2>&5
18043 ac_status=$?
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); }; }; then
df65f093
SK
18046 ac_cv_member_struct_stat_st_rdev=yes
18047else
18048 echo "$as_me: failed program was:" >&5
18049sed 's/^/| /' conftest.$ac_ext >&5
18050
38d24731 18051ac_cv_member_struct_stat_st_rdev=no
df65f093 18052fi
38d24731 18053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
df65f093 18054fi
38d24731 18055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
df65f093 18056fi
38d24731
RW
18057echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
18058echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
df65f093
SK
18059if test $ac_cv_member_struct_stat_st_rdev = yes; then
18060
18061cat >>confdefs.h <<_ACEOF
18062#define HAVE_STRUCT_STAT_ST_RDEV 1
18063_ACEOF
18064
18065
18066fi
18067
18068
96b8a615
AJ
18069# Check for library functions.
18070
18071
41724e6a 18072
2cbcdeba 18073
3969c39f 18074
1fb2002d
FXC
18075
18076
32aa3bff
FXC
18077
18078for ac_func in getrusage times mkstemp strtof strtold snprintf ftruncate chsize
96b8a615
AJ
18079do
18080as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38d24731
RW
18081echo "$as_me:$LINENO: checking for $ac_func" >&5
18082echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18083if eval "test \"\${$as_ac_var+set}\" = set"; then
6de9cd9a
DN
18084 echo $ECHO_N "(cached) $ECHO_C" >&6
18085else
f02d008e
JD
18086 if test x$gcc_no_link = xyes; then
18087 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18088echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18089 { (exit 1); exit 1; }; }
18090fi
18091cat >conftest.$ac_ext <<_ACEOF
f77b6ca3
FXC
18092/* confdefs.h. */
18093_ACEOF
18094cat confdefs.h >>conftest.$ac_ext
18095cat >>conftest.$ac_ext <<_ACEOF
18096/* end confdefs.h. */
18097/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18099#define $ac_func innocuous_$ac_func
18100
18101/* System header to define __stub macros and hopefully few prototypes,
18102 which can conflict with char $ac_func (); below.
18103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18104 <limits.h> exists even on freestanding compilers. */
18105
18106#ifdef __STDC__
18107# include <limits.h>
18108#else
18109# include <assert.h>
18110#endif
18111
18112#undef $ac_func
18113
38d24731 18114/* Override any gcc2 internal prototype to avoid an error. */
f77b6ca3
FXC
18115#ifdef __cplusplus
18116extern "C"
38d24731 18117{
f77b6ca3 18118#endif
38d24731
RW
18119/* We use char because int might match the return type of a gcc2
18120 builtin and then its argument prototype would still apply. */
f77b6ca3
FXC
18121char $ac_func ();
18122/* The GNU C library defines this for functions which it implements
18123 to always fail with ENOSYS. Some functions are actually named
18124 something starting with __ and the normal name is an alias. */
38d24731 18125#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f77b6ca3 18126choke me
38d24731
RW
18127#else
18128char (*f) () = $ac_func;
18129#endif
18130#ifdef __cplusplus
18131}
f77b6ca3
FXC
18132#endif
18133
18134int
18135main ()
18136{
38d24731 18137return f != $ac_func;
f77b6ca3
FXC
18138 ;
18139 return 0;
18140}
18141_ACEOF
18142rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
18143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18144 (eval $ac_link) 2>conftest.er1
f77b6ca3
FXC
18145 ac_status=$?
18146 grep -v '^ *+' conftest.er1 >conftest.err
18147 rm -f conftest.er1
18148 cat conftest.err >&5
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
18150 (exit $ac_status); } &&
18151 { ac_try='test -z "$ac_c_werror_flag"
18152 || test ! -s conftest.err'
18153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18154 (eval $ac_try) 2>&5
18155 ac_status=$?
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); }; } &&
18158 { ac_try='test -s conftest$ac_exeext'
18159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18160 (eval $ac_try) 2>&5
18161 ac_status=$?
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); }; }; then
f77b6ca3
FXC
18164 eval "$as_ac_var=yes"
18165else
18166 echo "$as_me: failed program was:" >&5
18167sed 's/^/| /' conftest.$ac_ext >&5
18168
38d24731 18169eval "$as_ac_var=no"
d49ec2d1 18170fi
38d24731 18171rm -f conftest.err conftest.$ac_objext \
f77b6ca3
FXC
18172 conftest$ac_exeext conftest.$ac_ext
18173fi
38d24731
RW
18174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18175echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f77b6ca3
FXC
18176if test `eval echo '${'$as_ac_var'}'` = yes; then
18177 cat >>confdefs.h <<_ACEOF
18178#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18179_ACEOF
18180
18181fi
18182done
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192for ac_func in chdir strerror getlogin gethostname kill link symlink perror
18193do
18194as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38d24731
RW
18195echo "$as_me:$LINENO: checking for $ac_func" >&5
18196echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18197if eval "test \"\${$as_ac_var+set}\" = set"; then
f77b6ca3
FXC
18198 echo $ECHO_N "(cached) $ECHO_C" >&6
18199else
f02d008e
JD
18200 if test x$gcc_no_link = xyes; then
18201 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18202echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18203 { (exit 1); exit 1; }; }
18204fi
18205cat >conftest.$ac_ext <<_ACEOF
96b8a615
AJ
18206/* confdefs.h. */
18207_ACEOF
18208cat confdefs.h >>conftest.$ac_ext
18209cat >>conftest.$ac_ext <<_ACEOF
18210/* end confdefs.h. */
18211/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18213#define $ac_func innocuous_$ac_func
6de9cd9a 18214
96b8a615
AJ
18215/* System header to define __stub macros and hopefully few prototypes,
18216 which can conflict with char $ac_func (); below.
18217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18218 <limits.h> exists even on freestanding compilers. */
6de9cd9a 18219
96b8a615
AJ
18220#ifdef __STDC__
18221# include <limits.h>
18222#else
18223# include <assert.h>
18224#endif
6de9cd9a 18225
96b8a615
AJ
18226#undef $ac_func
18227
38d24731 18228/* Override any gcc2 internal prototype to avoid an error. */
96b8a615
AJ
18229#ifdef __cplusplus
18230extern "C"
38d24731 18231{
96b8a615 18232#endif
38d24731
RW
18233/* We use char because int might match the return type of a gcc2
18234 builtin and then its argument prototype would still apply. */
96b8a615
AJ
18235char $ac_func ();
18236/* The GNU C library defines this for functions which it implements
18237 to always fail with ENOSYS. Some functions are actually named
18238 something starting with __ and the normal name is an alias. */
38d24731 18239#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f489fba1 18240choke me
38d24731
RW
18241#else
18242char (*f) () = $ac_func;
18243#endif
18244#ifdef __cplusplus
18245}
96b8a615
AJ
18246#endif
18247
18248int
18249main ()
18250{
38d24731 18251return f != $ac_func;
96b8a615
AJ
18252 ;
18253 return 0;
18254}
18255_ACEOF
18256rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
18257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18258 (eval $ac_link) 2>conftest.er1
96b8a615
AJ
18259 ac_status=$?
18260 grep -v '^ *+' conftest.er1 >conftest.err
18261 rm -f conftest.er1
18262 cat conftest.err >&5
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
18264 (exit $ac_status); } &&
18265 { ac_try='test -z "$ac_c_werror_flag"
18266 || test ! -s conftest.err'
18267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18268 (eval $ac_try) 2>&5
18269 ac_status=$?
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); }; } &&
18272 { ac_try='test -s conftest$ac_exeext'
18273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18274 (eval $ac_try) 2>&5
18275 ac_status=$?
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); }; }; then
f77b6ca3
FXC
18278 eval "$as_ac_var=yes"
18279else
18280 echo "$as_me: failed program was:" >&5
18281sed 's/^/| /' conftest.$ac_ext >&5
18282
38d24731 18283eval "$as_ac_var=no"
f77b6ca3 18284fi
38d24731 18285rm -f conftest.err conftest.$ac_objext \
f77b6ca3
FXC
18286 conftest$ac_exeext conftest.$ac_ext
18287fi
38d24731
RW
18288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18289echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f77b6ca3
FXC
18290if test `eval echo '${'$as_ac_var'}'` = yes; then
18291 cat >>confdefs.h <<_ACEOF
18292#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18293_ACEOF
18294
18295fi
18296done
18297
18298
18299
8845001b 18300
185d7d97
FXC
18301
18302
35059811 18303
bf3fb7e4 18304
a119fc1c
FXC
18305
18306
18307
18308for ac_func in sleep time ttyname signal alarm ctime clock access fork execl
18309do
18310as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38d24731
RW
18311echo "$as_me:$LINENO: checking for $ac_func" >&5
18312echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18313if eval "test \"\${$as_ac_var+set}\" = set"; then
a119fc1c
FXC
18314 echo $ECHO_N "(cached) $ECHO_C" >&6
18315else
18316 if test x$gcc_no_link = xyes; then
18317 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18318echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18319 { (exit 1); exit 1; }; }
18320fi
18321cat >conftest.$ac_ext <<_ACEOF
18322/* confdefs.h. */
18323_ACEOF
18324cat confdefs.h >>conftest.$ac_ext
18325cat >>conftest.$ac_ext <<_ACEOF
18326/* end confdefs.h. */
18327/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18329#define $ac_func innocuous_$ac_func
18330
18331/* System header to define __stub macros and hopefully few prototypes,
18332 which can conflict with char $ac_func (); below.
18333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18334 <limits.h> exists even on freestanding compilers. */
18335
18336#ifdef __STDC__
18337# include <limits.h>
18338#else
18339# include <assert.h>
18340#endif
18341
18342#undef $ac_func
18343
38d24731 18344/* Override any gcc2 internal prototype to avoid an error. */
a119fc1c
FXC
18345#ifdef __cplusplus
18346extern "C"
38d24731 18347{
a119fc1c 18348#endif
38d24731
RW
18349/* We use char because int might match the return type of a gcc2
18350 builtin and then its argument prototype would still apply. */
a119fc1c
FXC
18351char $ac_func ();
18352/* The GNU C library defines this for functions which it implements
18353 to always fail with ENOSYS. Some functions are actually named
18354 something starting with __ and the normal name is an alias. */
38d24731 18355#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a119fc1c 18356choke me
38d24731
RW
18357#else
18358char (*f) () = $ac_func;
18359#endif
18360#ifdef __cplusplus
18361}
a119fc1c
FXC
18362#endif
18363
18364int
18365main ()
18366{
38d24731 18367return f != $ac_func;
a119fc1c
FXC
18368 ;
18369 return 0;
18370}
18371_ACEOF
18372rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
18373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18374 (eval $ac_link) 2>conftest.er1
a119fc1c
FXC
18375 ac_status=$?
18376 grep -v '^ *+' conftest.er1 >conftest.err
18377 rm -f conftest.er1
18378 cat conftest.err >&5
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
18380 (exit $ac_status); } &&
18381 { ac_try='test -z "$ac_c_werror_flag"
18382 || test ! -s conftest.err'
18383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18384 (eval $ac_try) 2>&5
18385 ac_status=$?
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); }; } &&
18388 { ac_try='test -s conftest$ac_exeext'
18389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18390 (eval $ac_try) 2>&5
18391 ac_status=$?
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); }; }; then
a119fc1c
FXC
18394 eval "$as_ac_var=yes"
18395else
18396 echo "$as_me: failed program was:" >&5
18397sed 's/^/| /' conftest.$ac_ext >&5
18398
38d24731 18399eval "$as_ac_var=no"
a119fc1c 18400fi
38d24731 18401rm -f conftest.err conftest.$ac_objext \
a119fc1c
FXC
18402 conftest$ac_exeext conftest.$ac_ext
18403fi
38d24731
RW
18404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18405echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a119fc1c
FXC
18406if test `eval echo '${'$as_ac_var'}'` = yes; then
18407 cat >>confdefs.h <<_ACEOF
18408#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18409_ACEOF
18410
18411fi
18412done
18413
18414
28f8c9e9 18415
eedeea04 18416
a63a0959 18417
868d75db
FXC
18418
18419
18420
18421
18422
18423for ac_func in wait setmode execvp pipe dup2 close fdopen strcasestr getrlimit
18424do
18425as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38d24731
RW
18426echo "$as_me:$LINENO: checking for $ac_func" >&5
18427echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18428if eval "test \"\${$as_ac_var+set}\" = set"; then
7f483eec
FXC
18429 echo $ECHO_N "(cached) $ECHO_C" >&6
18430else
18431 if test x$gcc_no_link = xyes; then
18432 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18433echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18434 { (exit 1); exit 1; }; }
18435fi
18436cat >conftest.$ac_ext <<_ACEOF
18437/* confdefs.h. */
18438_ACEOF
18439cat confdefs.h >>conftest.$ac_ext
18440cat >>conftest.$ac_ext <<_ACEOF
18441/* end confdefs.h. */
18442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18444#define $ac_func innocuous_$ac_func
18445
18446/* System header to define __stub macros and hopefully few prototypes,
18447 which can conflict with char $ac_func (); below.
18448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18449 <limits.h> exists even on freestanding compilers. */
18450
18451#ifdef __STDC__
18452# include <limits.h>
18453#else
18454# include <assert.h>
18455#endif
18456
18457#undef $ac_func
18458
38d24731 18459/* Override any gcc2 internal prototype to avoid an error. */
7f483eec
FXC
18460#ifdef __cplusplus
18461extern "C"
38d24731 18462{
7f483eec 18463#endif
38d24731
RW
18464/* We use char because int might match the return type of a gcc2
18465 builtin and then its argument prototype would still apply. */
7f483eec
FXC
18466char $ac_func ();
18467/* The GNU C library defines this for functions which it implements
18468 to always fail with ENOSYS. Some functions are actually named
18469 something starting with __ and the normal name is an alias. */
38d24731 18470#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7f483eec 18471choke me
38d24731
RW
18472#else
18473char (*f) () = $ac_func;
18474#endif
18475#ifdef __cplusplus
18476}
7f483eec
FXC
18477#endif
18478
18479int
18480main ()
18481{
38d24731 18482return f != $ac_func;
7f483eec
FXC
18483 ;
18484 return 0;
18485}
18486_ACEOF
18487rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
18488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18489 (eval $ac_link) 2>conftest.er1
7f483eec
FXC
18490 ac_status=$?
18491 grep -v '^ *+' conftest.er1 >conftest.err
18492 rm -f conftest.er1
18493 cat conftest.err >&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
18495 (exit $ac_status); } &&
18496 { ac_try='test -z "$ac_c_werror_flag"
18497 || test ! -s conftest.err'
18498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18499 (eval $ac_try) 2>&5
18500 ac_status=$?
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); }; } &&
18503 { ac_try='test -s conftest$ac_exeext'
18504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18505 (eval $ac_try) 2>&5
18506 ac_status=$?
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); }; }; then
7f483eec
FXC
18509 eval "$as_ac_var=yes"
18510else
18511 echo "$as_me: failed program was:" >&5
18512sed 's/^/| /' conftest.$ac_ext >&5
18513
38d24731 18514eval "$as_ac_var=no"
7f483eec 18515fi
38d24731 18516rm -f conftest.err conftest.$ac_objext \
7f483eec
FXC
18517 conftest$ac_exeext conftest.$ac_ext
18518fi
38d24731
RW
18519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18520echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7f483eec
FXC
18521if test `eval echo '${'$as_ac_var'}'` = yes; then
18522 cat >>confdefs.h <<_ACEOF
18523#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18524_ACEOF
18525
18526fi
18527done
18528
18529
29e86cb0
FXC
18530
18531
18532
6422c112 18533
d8163f5c 18534
2515e5a7
FXC
18535
18536
18537for ac_func in gettimeofday stat fstat lstat getpwuid vsnprintf dup getcwd
7f483eec
FXC
18538do
18539as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38d24731
RW
18540echo "$as_me:$LINENO: checking for $ac_func" >&5
18541echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18542if eval "test \"\${$as_ac_var+set}\" = set"; then
868d75db
FXC
18543 echo $ECHO_N "(cached) $ECHO_C" >&6
18544else
18545 if test x$gcc_no_link = xyes; then
18546 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18547echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18548 { (exit 1); exit 1; }; }
18549fi
18550cat >conftest.$ac_ext <<_ACEOF
18551/* confdefs.h. */
18552_ACEOF
18553cat confdefs.h >>conftest.$ac_ext
18554cat >>conftest.$ac_ext <<_ACEOF
18555/* end confdefs.h. */
18556/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18558#define $ac_func innocuous_$ac_func
18559
18560/* System header to define __stub macros and hopefully few prototypes,
18561 which can conflict with char $ac_func (); below.
18562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18563 <limits.h> exists even on freestanding compilers. */
18564
18565#ifdef __STDC__
18566# include <limits.h>
18567#else
18568# include <assert.h>
18569#endif
18570
18571#undef $ac_func
18572
38d24731 18573/* Override any gcc2 internal prototype to avoid an error. */
868d75db
FXC
18574#ifdef __cplusplus
18575extern "C"
38d24731 18576{
868d75db 18577#endif
38d24731
RW
18578/* We use char because int might match the return type of a gcc2
18579 builtin and then its argument prototype would still apply. */
868d75db
FXC
18580char $ac_func ();
18581/* The GNU C library defines this for functions which it implements
18582 to always fail with ENOSYS. Some functions are actually named
18583 something starting with __ and the normal name is an alias. */
38d24731 18584#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
868d75db 18585choke me
38d24731
RW
18586#else
18587char (*f) () = $ac_func;
18588#endif
18589#ifdef __cplusplus
18590}
868d75db
FXC
18591#endif
18592
18593int
18594main ()
18595{
38d24731 18596return f != $ac_func;
868d75db
FXC
18597 ;
18598 return 0;
18599}
18600_ACEOF
18601rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
18602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18603 (eval $ac_link) 2>conftest.er1
868d75db
FXC
18604 ac_status=$?
18605 grep -v '^ *+' conftest.er1 >conftest.err
18606 rm -f conftest.er1
18607 cat conftest.err >&5
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
18609 (exit $ac_status); } &&
18610 { ac_try='test -z "$ac_c_werror_flag"
18611 || test ! -s conftest.err'
18612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613 (eval $ac_try) 2>&5
18614 ac_status=$?
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; } &&
18617 { ac_try='test -s conftest$ac_exeext'
18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619 (eval $ac_try) 2>&5
18620 ac_status=$?
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; }; then
868d75db
FXC
18623 eval "$as_ac_var=yes"
18624else
18625 echo "$as_me: failed program was:" >&5
18626sed 's/^/| /' conftest.$ac_ext >&5
18627
38d24731 18628eval "$as_ac_var=no"
868d75db 18629fi
38d24731 18630rm -f conftest.err conftest.$ac_objext \
868d75db
FXC
18631 conftest$ac_exeext conftest.$ac_ext
18632fi
38d24731
RW
18633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18634echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
868d75db
FXC
18635if test `eval echo '${'$as_ac_var'}'` = yes; then
18636 cat >>confdefs.h <<_ACEOF
18637#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18638_ACEOF
18639
18640fi
18641done
18642
18643
18644# Check for glibc backtrace functions
18645
18646
18647for ac_func in backtrace backtrace_symbols
f77b6ca3
FXC
18648do
18649as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38d24731
RW
18650echo "$as_me:$LINENO: checking for $ac_func" >&5
18651echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18652if eval "test \"\${$as_ac_var+set}\" = set"; then
f77b6ca3
FXC
18653 echo $ECHO_N "(cached) $ECHO_C" >&6
18654else
f02d008e
JD
18655 if test x$gcc_no_link = xyes; then
18656 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18657echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18658 { (exit 1); exit 1; }; }
18659fi
18660cat >conftest.$ac_ext <<_ACEOF
f77b6ca3
FXC
18661/* confdefs.h. */
18662_ACEOF
18663cat confdefs.h >>conftest.$ac_ext
18664cat >>conftest.$ac_ext <<_ACEOF
18665/* end confdefs.h. */
18666/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18668#define $ac_func innocuous_$ac_func
18669
18670/* System header to define __stub macros and hopefully few prototypes,
18671 which can conflict with char $ac_func (); below.
18672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18673 <limits.h> exists even on freestanding compilers. */
18674
18675#ifdef __STDC__
18676# include <limits.h>
18677#else
18678# include <assert.h>
18679#endif
18680
18681#undef $ac_func
18682
38d24731 18683/* Override any gcc2 internal prototype to avoid an error. */
f77b6ca3
FXC
18684#ifdef __cplusplus
18685extern "C"
38d24731 18686{
f77b6ca3 18687#endif
38d24731
RW
18688/* We use char because int might match the return type of a gcc2
18689 builtin and then its argument prototype would still apply. */
f77b6ca3
FXC
18690char $ac_func ();
18691/* The GNU C library defines this for functions which it implements
18692 to always fail with ENOSYS. Some functions are actually named
18693 something starting with __ and the normal name is an alias. */
38d24731 18694#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f77b6ca3 18695choke me
38d24731
RW
18696#else
18697char (*f) () = $ac_func;
18698#endif
18699#ifdef __cplusplus
18700}
f77b6ca3
FXC
18701#endif
18702
18703int
18704main ()
18705{
38d24731 18706return f != $ac_func;
f77b6ca3
FXC
18707 ;
18708 return 0;
18709}
18710_ACEOF
18711rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
18712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18713 (eval $ac_link) 2>conftest.er1
f77b6ca3
FXC
18714 ac_status=$?
18715 grep -v '^ *+' conftest.er1 >conftest.err
18716 rm -f conftest.er1
18717 cat conftest.err >&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
18719 (exit $ac_status); } &&
18720 { ac_try='test -z "$ac_c_werror_flag"
18721 || test ! -s conftest.err'
18722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723 (eval $ac_try) 2>&5
18724 ac_status=$?
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; } &&
18727 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
96b8a615 18733 eval "$as_ac_var=yes"
6de9cd9a 18734else
96b8a615
AJ
18735 echo "$as_me: failed program was:" >&5
18736sed 's/^/| /' conftest.$ac_ext >&5
18737
38d24731 18738eval "$as_ac_var=no"
96b8a615 18739fi
38d24731 18740rm -f conftest.err conftest.$ac_objext \
96b8a615 18741 conftest$ac_exeext conftest.$ac_ext
6de9cd9a 18742fi
38d24731
RW
18743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18744echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
96b8a615
AJ
18745if test `eval echo '${'$as_ac_var'}'` = yes; then
18746 cat >>confdefs.h <<_ACEOF
18747#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18748_ACEOF
6de9cd9a 18749
6de9cd9a 18750fi
96b8a615 18751done
6de9cd9a 18752
6de9cd9a 18753
28f8c9e9 18754# Check for types
38d24731
RW
18755echo "$as_me:$LINENO: checking for intptr_t" >&5
18756echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
28f8c9e9
FXC
18757if test "${ac_cv_type_intptr_t+set}" = set; then
18758 echo $ECHO_N "(cached) $ECHO_C" >&6
18759else
18760 cat >conftest.$ac_ext <<_ACEOF
18761/* confdefs.h. */
18762_ACEOF
18763cat confdefs.h >>conftest.$ac_ext
18764cat >>conftest.$ac_ext <<_ACEOF
18765/* end confdefs.h. */
18766$ac_includes_default
18767int
18768main ()
18769{
38d24731 18770if ((intptr_t *) 0)
28f8c9e9 18771 return 0;
38d24731 18772if (sizeof (intptr_t))
28f8c9e9
FXC
18773 return 0;
18774 ;
18775 return 0;
18776}
18777_ACEOF
18778rm -f conftest.$ac_objext
38d24731
RW
18779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18780 (eval $ac_compile) 2>conftest.er1
28f8c9e9
FXC
18781 ac_status=$?
18782 grep -v '^ *+' conftest.er1 >conftest.err
18783 rm -f conftest.er1
18784 cat conftest.err >&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
18786 (exit $ac_status); } &&
18787 { ac_try='test -z "$ac_c_werror_flag"
18788 || test ! -s conftest.err'
18789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790 (eval $ac_try) 2>&5
18791 ac_status=$?
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; } &&
18794 { ac_try='test -s conftest.$ac_objext'
18795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796 (eval $ac_try) 2>&5
18797 ac_status=$?
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; }; then
28f8c9e9
FXC
18800 ac_cv_type_intptr_t=yes
18801else
18802 echo "$as_me: failed program was:" >&5
18803sed 's/^/| /' conftest.$ac_ext >&5
18804
38d24731 18805ac_cv_type_intptr_t=no
28f8c9e9 18806fi
38d24731 18807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28f8c9e9 18808fi
38d24731
RW
18809echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
18810echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
28f8c9e9
FXC
18811if test $ac_cv_type_intptr_t = yes; then
18812
18813cat >>confdefs.h <<_ACEOF
18814#define HAVE_INTPTR_T 1
18815_ACEOF
18816
18817
c7d0f4d5
TK
18818fi
18819
18820echo "$as_me:$LINENO: checking for uintptr_t" >&5
18821echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
18822if test "${ac_cv_type_uintptr_t+set}" = set; then
18823 echo $ECHO_N "(cached) $ECHO_C" >&6
18824else
18825 cat >conftest.$ac_ext <<_ACEOF
18826/* confdefs.h. */
18827_ACEOF
18828cat confdefs.h >>conftest.$ac_ext
18829cat >>conftest.$ac_ext <<_ACEOF
18830/* end confdefs.h. */
18831$ac_includes_default
18832int
18833main ()
18834{
18835if ((uintptr_t *) 0)
18836 return 0;
18837if (sizeof (uintptr_t))
18838 return 0;
18839 ;
18840 return 0;
18841}
18842_ACEOF
18843rm -f conftest.$ac_objext
18844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18845 (eval $ac_compile) 2>conftest.er1
18846 ac_status=$?
18847 grep -v '^ *+' conftest.er1 >conftest.err
18848 rm -f conftest.er1
18849 cat conftest.err >&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } &&
18852 { ac_try='test -z "$ac_c_werror_flag"
18853 || test ! -s conftest.err'
18854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18855 (eval $ac_try) 2>&5
18856 ac_status=$?
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); }; } &&
18859 { ac_try='test -s conftest.$ac_objext'
18860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18861 (eval $ac_try) 2>&5
18862 ac_status=$?
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; }; then
18865 ac_cv_type_uintptr_t=yes
18866else
18867 echo "$as_me: failed program was:" >&5
18868sed 's/^/| /' conftest.$ac_ext >&5
18869
18870ac_cv_type_uintptr_t=no
18871fi
18872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18873fi
18874echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
18875echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
18876if test $ac_cv_type_uintptr_t = yes; then
18877
18878cat >>confdefs.h <<_ACEOF
18879#define HAVE_UINTPTR_T 1
18880_ACEOF
18881
18882
28f8c9e9
FXC
18883fi
18884
18885
4c0c6b9f 18886# Check libc for getgid, getpid, getuid
38d24731
RW
18887echo "$as_me:$LINENO: checking for getgid in -lc" >&5
18888echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6
4c0c6b9f
SK
18889if test "${ac_cv_lib_c_getgid+set}" = set; then
18890 echo $ECHO_N "(cached) $ECHO_C" >&6
18891else
18892 ac_check_lib_save_LIBS=$LIBS
18893LIBS="-lc $LIBS"
f02d008e
JD
18894if test x$gcc_no_link = xyes; then
18895 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18896echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18897 { (exit 1); exit 1; }; }
18898fi
4c0c6b9f
SK
18899cat >conftest.$ac_ext <<_ACEOF
18900/* confdefs.h. */
18901_ACEOF
18902cat confdefs.h >>conftest.$ac_ext
18903cat >>conftest.$ac_ext <<_ACEOF
18904/* end confdefs.h. */
18905
38d24731 18906/* Override any gcc2 internal prototype to avoid an error. */
4c0c6b9f
SK
18907#ifdef __cplusplus
18908extern "C"
18909#endif
38d24731
RW
18910/* We use char because int might match the return type of a gcc2
18911 builtin and then its argument prototype would still apply. */
4c0c6b9f
SK
18912char getgid ();
18913int
18914main ()
18915{
38d24731 18916getgid ();
4c0c6b9f
SK
18917 ;
18918 return 0;
18919}
18920_ACEOF
18921rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
18922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18923 (eval $ac_link) 2>conftest.er1
4c0c6b9f
SK
18924 ac_status=$?
18925 grep -v '^ *+' conftest.er1 >conftest.err
18926 rm -f conftest.er1
18927 cat conftest.err >&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
18929 (exit $ac_status); } &&
18930 { ac_try='test -z "$ac_c_werror_flag"
18931 || test ! -s conftest.err'
18932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933 (eval $ac_try) 2>&5
18934 ac_status=$?
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; } &&
18937 { ac_try='test -s conftest$ac_exeext'
18938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18939 (eval $ac_try) 2>&5
18940 ac_status=$?
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); }; }; then
4c0c6b9f
SK
18943 ac_cv_lib_c_getgid=yes
18944else
18945 echo "$as_me: failed program was:" >&5
18946sed 's/^/| /' conftest.$ac_ext >&5
18947
38d24731 18948ac_cv_lib_c_getgid=no
4c0c6b9f 18949fi
38d24731 18950rm -f conftest.err conftest.$ac_objext \
4c0c6b9f
SK
18951 conftest$ac_exeext conftest.$ac_ext
18952LIBS=$ac_check_lib_save_LIBS
18953fi
38d24731
RW
18954echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5
18955echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6
4c0c6b9f
SK
18956if test $ac_cv_lib_c_getgid = yes; then
18957
18958cat >>confdefs.h <<\_ACEOF
18959#define HAVE_GETGID 1
18960_ACEOF
18961
18962fi
18963
38d24731
RW
18964echo "$as_me:$LINENO: checking for getpid in -lc" >&5
18965echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6
4c0c6b9f
SK
18966if test "${ac_cv_lib_c_getpid+set}" = set; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
18968else
18969 ac_check_lib_save_LIBS=$LIBS
18970LIBS="-lc $LIBS"
f02d008e
JD
18971if test x$gcc_no_link = xyes; then
18972 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18973echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18974 { (exit 1); exit 1; }; }
18975fi
4c0c6b9f
SK
18976cat >conftest.$ac_ext <<_ACEOF
18977/* confdefs.h. */
18978_ACEOF
18979cat confdefs.h >>conftest.$ac_ext
18980cat >>conftest.$ac_ext <<_ACEOF
18981/* end confdefs.h. */
18982
38d24731 18983/* Override any gcc2 internal prototype to avoid an error. */
4c0c6b9f
SK
18984#ifdef __cplusplus
18985extern "C"
18986#endif
38d24731
RW
18987/* We use char because int might match the return type of a gcc2
18988 builtin and then its argument prototype would still apply. */
4c0c6b9f
SK
18989char getpid ();
18990int
18991main ()
18992{
38d24731 18993getpid ();
4c0c6b9f
SK
18994 ;
18995 return 0;
18996}
18997_ACEOF
18998rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
18999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19000 (eval $ac_link) 2>conftest.er1
4c0c6b9f
SK
19001 ac_status=$?
19002 grep -v '^ *+' conftest.er1 >conftest.err
19003 rm -f conftest.er1
19004 cat conftest.err >&5
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
19006 (exit $ac_status); } &&
19007 { ac_try='test -z "$ac_c_werror_flag"
19008 || test ! -s conftest.err'
19009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19010 (eval $ac_try) 2>&5
19011 ac_status=$?
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); }; } &&
19014 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4c0c6b9f
SK
19020 ac_cv_lib_c_getpid=yes
19021else
19022 echo "$as_me: failed program was:" >&5
19023sed 's/^/| /' conftest.$ac_ext >&5
19024
38d24731 19025ac_cv_lib_c_getpid=no
4c0c6b9f 19026fi
38d24731 19027rm -f conftest.err conftest.$ac_objext \
4c0c6b9f
SK
19028 conftest$ac_exeext conftest.$ac_ext
19029LIBS=$ac_check_lib_save_LIBS
19030fi
38d24731
RW
19031echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5
19032echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6
4c0c6b9f
SK
19033if test $ac_cv_lib_c_getpid = yes; then
19034
19035cat >>confdefs.h <<\_ACEOF
19036#define HAVE_GETPID 1
19037_ACEOF
19038
19039fi
19040
38d24731
RW
19041echo "$as_me:$LINENO: checking for getppid in -lc" >&5
19042echo $ECHO_N "checking for getppid in -lc... $ECHO_C" >&6
868d75db
FXC
19043if test "${ac_cv_lib_c_getppid+set}" = set; then
19044 echo $ECHO_N "(cached) $ECHO_C" >&6
19045else
19046 ac_check_lib_save_LIBS=$LIBS
19047LIBS="-lc $LIBS"
19048if test x$gcc_no_link = xyes; then
19049 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19050echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19051 { (exit 1); exit 1; }; }
19052fi
19053cat >conftest.$ac_ext <<_ACEOF
19054/* confdefs.h. */
19055_ACEOF
19056cat confdefs.h >>conftest.$ac_ext
19057cat >>conftest.$ac_ext <<_ACEOF
19058/* end confdefs.h. */
19059
38d24731 19060/* Override any gcc2 internal prototype to avoid an error. */
868d75db
FXC
19061#ifdef __cplusplus
19062extern "C"
19063#endif
38d24731
RW
19064/* We use char because int might match the return type of a gcc2
19065 builtin and then its argument prototype would still apply. */
868d75db
FXC
19066char getppid ();
19067int
19068main ()
19069{
38d24731 19070getppid ();
868d75db
FXC
19071 ;
19072 return 0;
19073}
19074_ACEOF
19075rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
19076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19077 (eval $ac_link) 2>conftest.er1
868d75db
FXC
19078 ac_status=$?
19079 grep -v '^ *+' conftest.er1 >conftest.err
19080 rm -f conftest.er1
19081 cat conftest.err >&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
19083 (exit $ac_status); } &&
19084 { ac_try='test -z "$ac_c_werror_flag"
19085 || test ! -s conftest.err'
19086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19088 ac_status=$?
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; } &&
19091 { ac_try='test -s conftest$ac_exeext'
19092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093 (eval $ac_try) 2>&5
19094 ac_status=$?
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; }; then
868d75db
FXC
19097 ac_cv_lib_c_getppid=yes
19098else
19099 echo "$as_me: failed program was:" >&5
19100sed 's/^/| /' conftest.$ac_ext >&5
19101
38d24731 19102ac_cv_lib_c_getppid=no
868d75db 19103fi
38d24731 19104rm -f conftest.err conftest.$ac_objext \
868d75db
FXC
19105 conftest$ac_exeext conftest.$ac_ext
19106LIBS=$ac_check_lib_save_LIBS
19107fi
38d24731
RW
19108echo "$as_me:$LINENO: result: $ac_cv_lib_c_getppid" >&5
19109echo "${ECHO_T}$ac_cv_lib_c_getppid" >&6
868d75db
FXC
19110if test $ac_cv_lib_c_getppid = yes; then
19111
19112cat >>confdefs.h <<\_ACEOF
19113#define HAVE_GETPPID 1
19114_ACEOF
19115
19116fi
19117
38d24731
RW
19118echo "$as_me:$LINENO: checking for getuid in -lc" >&5
19119echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6
4c0c6b9f
SK
19120if test "${ac_cv_lib_c_getuid+set}" = set; then
19121 echo $ECHO_N "(cached) $ECHO_C" >&6
19122else
19123 ac_check_lib_save_LIBS=$LIBS
19124LIBS="-lc $LIBS"
f02d008e
JD
19125if test x$gcc_no_link = xyes; then
19126 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19127echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19128 { (exit 1); exit 1; }; }
19129fi
4c0c6b9f
SK
19130cat >conftest.$ac_ext <<_ACEOF
19131/* confdefs.h. */
19132_ACEOF
19133cat confdefs.h >>conftest.$ac_ext
19134cat >>conftest.$ac_ext <<_ACEOF
19135/* end confdefs.h. */
19136
38d24731 19137/* Override any gcc2 internal prototype to avoid an error. */
4c0c6b9f
SK
19138#ifdef __cplusplus
19139extern "C"
19140#endif
38d24731
RW
19141/* We use char because int might match the return type of a gcc2
19142 builtin and then its argument prototype would still apply. */
4c0c6b9f
SK
19143char getuid ();
19144int
19145main ()
19146{
38d24731 19147getuid ();
4c0c6b9f
SK
19148 ;
19149 return 0;
19150}
19151_ACEOF
19152rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
19153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19154 (eval $ac_link) 2>conftest.er1
4c0c6b9f
SK
19155 ac_status=$?
19156 grep -v '^ *+' conftest.er1 >conftest.err
19157 rm -f conftest.er1
19158 cat conftest.err >&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
19160 (exit $ac_status); } &&
19161 { ac_try='test -z "$ac_c_werror_flag"
19162 || test ! -s conftest.err'
19163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19164 (eval $ac_try) 2>&5
19165 ac_status=$?
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); }; } &&
19168 { ac_try='test -s conftest$ac_exeext'
19169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19170 (eval $ac_try) 2>&5
19171 ac_status=$?
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); }; }; then
4c0c6b9f
SK
19174 ac_cv_lib_c_getuid=yes
19175else
19176 echo "$as_me: failed program was:" >&5
19177sed 's/^/| /' conftest.$ac_ext >&5
19178
38d24731 19179ac_cv_lib_c_getuid=no
4c0c6b9f 19180fi
38d24731 19181rm -f conftest.err conftest.$ac_objext \
4c0c6b9f
SK
19182 conftest$ac_exeext conftest.$ac_ext
19183LIBS=$ac_check_lib_save_LIBS
19184fi
38d24731
RW
19185echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5
19186echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6
4c0c6b9f
SK
19187if test $ac_cv_lib_c_getuid = yes; then
19188
19189cat >>confdefs.h <<\_ACEOF
19190#define HAVE_GETUID 1
19191_ACEOF
19192
19193fi
19194
38d24731
RW
19195echo "$as_me:$LINENO: checking for geteuid in -lc" >&5
19196echo $ECHO_N "checking for geteuid in -lc... $ECHO_C" >&6
6422c112
FXC
19197if test "${ac_cv_lib_c_geteuid+set}" = set; then
19198 echo $ECHO_N "(cached) $ECHO_C" >&6
19199else
19200 ac_check_lib_save_LIBS=$LIBS
19201LIBS="-lc $LIBS"
19202if test x$gcc_no_link = xyes; then
19203 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19204echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19205 { (exit 1); exit 1; }; }
19206fi
19207cat >conftest.$ac_ext <<_ACEOF
19208/* confdefs.h. */
19209_ACEOF
19210cat confdefs.h >>conftest.$ac_ext
19211cat >>conftest.$ac_ext <<_ACEOF
19212/* end confdefs.h. */
19213
38d24731 19214/* Override any gcc2 internal prototype to avoid an error. */
6422c112
FXC
19215#ifdef __cplusplus
19216extern "C"
19217#endif
38d24731
RW
19218/* We use char because int might match the return type of a gcc2
19219 builtin and then its argument prototype would still apply. */
6422c112
FXC
19220char geteuid ();
19221int
19222main ()
19223{
38d24731 19224geteuid ();
6422c112
FXC
19225 ;
19226 return 0;
19227}
19228_ACEOF
19229rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
19230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19231 (eval $ac_link) 2>conftest.er1
6422c112
FXC
19232 ac_status=$?
19233 grep -v '^ *+' conftest.er1 >conftest.err
19234 rm -f conftest.er1
19235 cat conftest.err >&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
19237 (exit $ac_status); } &&
19238 { ac_try='test -z "$ac_c_werror_flag"
19239 || test ! -s conftest.err'
19240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241 (eval $ac_try) 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; } &&
19245 { ac_try='test -s conftest$ac_exeext'
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
6422c112
FXC
19251 ac_cv_lib_c_geteuid=yes
19252else
19253 echo "$as_me: failed program was:" >&5
19254sed 's/^/| /' conftest.$ac_ext >&5
19255
38d24731 19256ac_cv_lib_c_geteuid=no
6422c112 19257fi
38d24731 19258rm -f conftest.err conftest.$ac_objext \
6422c112
FXC
19259 conftest$ac_exeext conftest.$ac_ext
19260LIBS=$ac_check_lib_save_LIBS
19261fi
38d24731
RW
19262echo "$as_me:$LINENO: result: $ac_cv_lib_c_geteuid" >&5
19263echo "${ECHO_T}$ac_cv_lib_c_geteuid" >&6
6422c112
FXC
19264if test $ac_cv_lib_c_geteuid = yes; then
19265
19266cat >>confdefs.h <<\_ACEOF
19267#define HAVE_GETEUID 1
19268_ACEOF
19269
19270fi
19271
4c0c6b9f 19272
453310d8 19273# Check for C99 (and other IEEE) math functions
38d24731
RW
19274echo "$as_me:$LINENO: checking for acosf in -lm" >&5
19275echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6
453310d8
RS
19276if test "${ac_cv_lib_m_acosf+set}" = set; then
19277 echo $ECHO_N "(cached) $ECHO_C" >&6
19278else
19279 ac_check_lib_save_LIBS=$LIBS
19280LIBS="-lm $LIBS"
f02d008e
JD
19281if test x$gcc_no_link = xyes; then
19282 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19283echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19284 { (exit 1); exit 1; }; }
19285fi
453310d8
RS
19286cat >conftest.$ac_ext <<_ACEOF
19287/* confdefs.h. */
19288_ACEOF
19289cat confdefs.h >>conftest.$ac_ext
19290cat >>conftest.$ac_ext <<_ACEOF
19291/* end confdefs.h. */
19292
38d24731 19293/* Override any gcc2 internal prototype to avoid an error. */
453310d8
RS
19294#ifdef __cplusplus
19295extern "C"
19296#endif
38d24731
RW
19297/* We use char because int might match the return type of a gcc2
19298 builtin and then its argument prototype would still apply. */
453310d8
RS
19299char acosf ();
19300int
19301main ()
19302{
38d24731 19303acosf ();
453310d8
RS
19304 ;
19305 return 0;
19306}
19307_ACEOF
19308rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
19309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19310 (eval $ac_link) 2>conftest.er1
453310d8
RS
19311 ac_status=$?
19312 grep -v '^ *+' conftest.er1 >conftest.err
19313 rm -f conftest.er1
19314 cat conftest.err >&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
19316 (exit $ac_status); } &&
19317 { ac_try='test -z "$ac_c_werror_flag"
19318 || test ! -s conftest.err'
19319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19320 (eval $ac_try) 2>&5
19321 ac_status=$?
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }; } &&
19324 { ac_try='test -s conftest$ac_exeext'
19325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19326 (eval $ac_try) 2>&5
19327 ac_status=$?
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); }; }; then
453310d8
RS
19330 ac_cv_lib_m_acosf=yes
19331else
19332 echo "$as_me: failed program was:" >&5
19333sed 's/^/| /' conftest.$ac_ext >&5
19334
38d24731 19335ac_cv_lib_m_acosf=no
453310d8 19336fi
38d24731 19337rm -f conftest.err conftest.$ac_objext \
453310d8
RS
19338 conftest$ac_exeext conftest.$ac_ext
19339LIBS=$ac_check_lib_save_LIBS
19340fi
38d24731
RW
19341echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5
19342echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6
453310d8
RS
19343if test $ac_cv_lib_m_acosf = yes; then
19344
19345cat >>confdefs.h <<\_ACEOF
19346#define HAVE_ACOSF 1
19347_ACEOF
19348
19349fi
19350
38d24731
RW
19351echo "$as_me:$LINENO: checking for acos in -lm" >&5
19352echo $ECHO_N "checking for acos in -lm... $ECHO_C" >&6
1409cd0b 19353if test "${ac_cv_lib_m_acos+set}" = set; then
f02d008e
JD
19354 echo $ECHO_N "(cached) $ECHO_C" >&6
19355else
19356 ac_check_lib_save_LIBS=$LIBS
19357LIBS="-lm $LIBS"
19358if test x$gcc_no_link = xyes; then
19359 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19360echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19361 { (exit 1); exit 1; }; }
19362fi
19363cat >conftest.$ac_ext <<_ACEOF
19364/* confdefs.h. */
19365_ACEOF
19366cat confdefs.h >>conftest.$ac_ext
19367cat >>conftest.$ac_ext <<_ACEOF
19368/* end confdefs.h. */
19369
38d24731 19370/* Override any gcc2 internal prototype to avoid an error. */
f02d008e
JD
19371#ifdef __cplusplus
19372extern "C"
19373#endif
38d24731
RW
19374/* We use char because int might match the return type of a gcc2
19375 builtin and then its argument prototype would still apply. */
1409cd0b 19376char acos ();
f02d008e
JD
19377int
19378main ()
19379{
38d24731 19380acos ();
f02d008e
JD
19381 ;
19382 return 0;
19383}
19384_ACEOF
19385rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
19386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19387 (eval $ac_link) 2>conftest.er1
f02d008e
JD
19388 ac_status=$?
19389 grep -v '^ *+' conftest.er1 >conftest.err
19390 rm -f conftest.er1
19391 cat conftest.err >&5
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
19393 (exit $ac_status); } &&
19394 { ac_try='test -z "$ac_c_werror_flag"
19395 || test ! -s conftest.err'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19398 ac_status=$?
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; } &&
19401 { ac_try='test -s conftest$ac_exeext'
19402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19403 (eval $ac_try) 2>&5
19404 ac_status=$?
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); }; }; then
1409cd0b 19407 ac_cv_lib_m_acos=yes
f02d008e
JD
19408else
19409 echo "$as_me: failed program was:" >&5
19410sed 's/^/| /' conftest.$ac_ext >&5
19411
38d24731 19412ac_cv_lib_m_acos=no
f02d008e 19413fi
38d24731 19414rm -f conftest.err conftest.$ac_objext \
f02d008e
JD
19415 conftest$ac_exeext conftest.$ac_ext
19416LIBS=$ac_check_lib_save_LIBS
19417fi
38d24731
RW
19418echo "$as_me:$LINENO: result: $ac_cv_lib_m_acos" >&5
19419echo "${ECHO_T}$ac_cv_lib_m_acos" >&6
1409cd0b 19420if test $ac_cv_lib_m_acos = yes; then
f02d008e
JD
19421
19422cat >>confdefs.h <<\_ACEOF
1409cd0b 19423#define HAVE_ACOS 1
f02d008e
JD
19424_ACEOF
19425
19426fi
19427
38d24731
RW
19428echo "$as_me:$LINENO: checking for acosl in -lm" >&5
19429echo $ECHO_N "checking for acosl in -lm... $ECHO_C" >&6
1409cd0b 19430if test "${ac_cv_lib_m_acosl+set}" = set; then
453310d8
RS
19431 echo $ECHO_N "(cached) $ECHO_C" >&6
19432else
19433 ac_check_lib_save_LIBS=$LIBS
19434LIBS="-lm $LIBS"
f02d008e
JD
19435if test x$gcc_no_link = xyes; then
19436 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19437echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19438 { (exit 1); exit 1; }; }
19439fi
453310d8
RS
19440cat >conftest.$ac_ext <<_ACEOF
19441/* confdefs.h. */
19442_ACEOF
19443cat confdefs.h >>conftest.$ac_ext
19444cat >>conftest.$ac_ext <<_ACEOF
19445/* end confdefs.h. */
19446
38d24731 19447/* Override any gcc2 internal prototype to avoid an error. */
453310d8
RS
19448#ifdef __cplusplus
19449extern "C"
19450#endif
38d24731
RW
19451/* We use char because int might match the return type of a gcc2
19452 builtin and then its argument prototype would still apply. */
1409cd0b 19453char acosl ();
453310d8
RS
19454int
19455main ()
19456{
38d24731 19457acosl ();
453310d8
RS
19458 ;
19459 return 0;
19460}
19461_ACEOF
19462rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
19463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19464 (eval $ac_link) 2>conftest.er1
453310d8
RS
19465 ac_status=$?
19466 grep -v '^ *+' conftest.er1 >conftest.err
19467 rm -f conftest.er1
19468 cat conftest.err >&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
19470 (exit $ac_status); } &&
19471 { ac_try='test -z "$ac_c_werror_flag"
19472 || test ! -s conftest.err'
19473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474 (eval $ac_try) 2>&5
19475 ac_status=$?
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; } &&
19478 { ac_try='test -s conftest$ac_exeext'
19479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19480 (eval $ac_try) 2>&5
19481 ac_status=$?
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); }; }; then
1409cd0b 19484 ac_cv_lib_m_acosl=yes
453310d8
RS
19485else
19486 echo "$as_me: failed program was:" >&5
19487sed 's/^/| /' conftest.$ac_ext >&5
19488
38d24731 19489ac_cv_lib_m_acosl=no
453310d8 19490fi
38d24731 19491rm -f conftest.err conftest.$ac_objext \
453310d8
RS
19492 conftest$ac_exeext conftest.$ac_ext
19493LIBS=$ac_check_lib_save_LIBS
19494fi
38d24731
RW
19495echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosl" >&5
19496echo "${ECHO_T}$ac_cv_lib_m_acosl" >&6
1409cd0b 19497if test $ac_cv_lib_m_acosl = yes; then
453310d8
RS
19498
19499cat >>confdefs.h <<\_ACEOF
1409cd0b 19500#define HAVE_ACOSL 1
453310d8
RS
19501_ACEOF
19502
19503fi
19504
38d24731
RW
19505echo "$as_me:$LINENO: checking for acoshf in -lm" >&5
19506echo $ECHO_N "checking for acoshf in -lm... $ECHO_C" >&6
1409cd0b 19507if test "${ac_cv_lib_m_acoshf+set}" = set; then
f02d008e
JD
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19509else
19510 ac_check_lib_save_LIBS=$LIBS
19511LIBS="-lm $LIBS"
19512if test x$gcc_no_link = xyes; then
19513 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19514echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19515 { (exit 1); exit 1; }; }
19516fi
19517cat >conftest.$ac_ext <<_ACEOF
19518/* confdefs.h. */
19519_ACEOF
19520cat confdefs.h >>conftest.$ac_ext
19521cat >>conftest.$ac_ext <<_ACEOF
19522/* end confdefs.h. */
19523
38d24731 19524/* Override any gcc2 internal prototype to avoid an error. */
f02d008e
JD
19525#ifdef __cplusplus
19526extern "C"
19527#endif
38d24731
RW
19528/* We use char because int might match the return type of a gcc2
19529 builtin and then its argument prototype would still apply. */
1409cd0b 19530char acoshf ();
f02d008e
JD
19531int
19532main ()
19533{
38d24731 19534acoshf ();
f02d008e
JD
19535 ;
19536 return 0;
19537}
19538_ACEOF
19539rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
19540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19541 (eval $ac_link) 2>conftest.er1
f02d008e
JD
19542 ac_status=$?
19543 grep -v '^ *+' conftest.er1 >conftest.err
19544 rm -f conftest.er1
19545 cat conftest.err >&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
19547 (exit $ac_status); } &&
19548 { ac_try='test -z "$ac_c_werror_flag"
19549 || test ! -s conftest.err'
19550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19551 (eval $ac_try) 2>&5
19552 ac_status=$?
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; } &&
19555 { ac_try='test -s conftest$ac_exeext'
19556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557 (eval $ac_try) 2>&5
19558 ac_status=$?
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; }; then
1409cd0b 19561 ac_cv_lib_m_acoshf=yes
f02d008e
JD
19562else
19563 echo "$as_me: failed program was:" >&5
19564sed 's/^/| /' conftest.$ac_ext >&5
19565
38d24731 19566ac_cv_lib_m_acoshf=no
f02d008e 19567fi
38d24731 19568rm -f conftest.err conftest.$ac_objext \
f02d008e
JD
19569 conftest$ac_exeext conftest.$ac_ext
19570LIBS=$ac_check_lib_save_LIBS
19571fi
38d24731
RW
19572echo "$as_me:$LINENO: result: $ac_cv_lib_m_acoshf" >&5
19573echo "${ECHO_T}$ac_cv_lib_m_acoshf" >&6
1409cd0b 19574if test $ac_cv_lib_m_acoshf = yes; then
f02d008e
JD
19575
19576cat >>confdefs.h <<\_ACEOF
1409cd0b 19577#define HAVE_ACOSHF 1
f02d008e
JD
19578_ACEOF
19579
19580fi
19581
38d24731
RW
19582echo "$as_me:$LINENO: checking for acosh in -lm" >&5
19583echo $ECHO_N "checking for acosh in -lm... $ECHO_C" >&6
1409cd0b 19584if test "${ac_cv_lib_m_acosh+set}" = set; then
453310d8
RS
19585 echo $ECHO_N "(cached) $ECHO_C" >&6
19586else
19587 ac_check_lib_save_LIBS=$LIBS
19588LIBS="-lm $LIBS"
f02d008e
JD
19589if test x$gcc_no_link = xyes; then
19590 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19591echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19592 { (exit 1); exit 1; }; }
19593fi
453310d8
RS
19594cat >conftest.$ac_ext <<_ACEOF
19595/* confdefs.h. */
19596_ACEOF
19597cat confdefs.h >>conftest.$ac_ext
19598cat >>conftest.$ac_ext <<_ACEOF
19599/* end confdefs.h. */
19600
38d24731 19601/* Override any gcc2 internal prototype to avoid an error. */
453310d8
RS
19602#ifdef __cplusplus
19603extern "C"
19604#endif
38d24731
RW
19605/* We use char because int might match the return type of a gcc2
19606 builtin and then its argument prototype would still apply. */
1409cd0b 19607char acosh ();
453310d8
RS
19608int
19609main ()
19610{
38d24731 19611acosh ();
453310d8
RS
19612 ;
19613 return 0;
19614}
19615_ACEOF
19616rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
19617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19618 (eval $ac_link) 2>conftest.er1
453310d8
RS
19619 ac_status=$?
19620 grep -v '^ *+' conftest.er1 >conftest.err
19621 rm -f conftest.er1
19622 cat conftest.err >&5
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
19624 (exit $ac_status); } &&
19625 { ac_try='test -z "$ac_c_werror_flag"
19626 || test ! -s conftest.err'
19627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19628 (eval $ac_try) 2>&5
19629 ac_status=$?
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); }; } &&
19632 { ac_try='test -s conftest$ac_exeext'
19633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634 (eval $ac_try) 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; }; then
1409cd0b 19638 ac_cv_lib_m_acosh=yes
453310d8
RS
19639else
19640 echo "$as_me: failed program was:" >&5
19641sed 's/^/| /' conftest.$ac_ext >&5
19642
38d24731 19643ac_cv_lib_m_acosh=no
453310d8 19644fi
38d24731 19645rm -f conftest.err conftest.$ac_objext \
453310d8
RS
19646 conftest$ac_exeext conftest.$ac_ext
19647LIBS=$ac_check_lib_save_LIBS
19648fi
38d24731
RW
19649echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosh" >&5
19650echo "${ECHO_T}$ac_cv_lib_m_acosh" >&6
1409cd0b 19651if test $ac_cv_lib_m_acosh = yes; then
453310d8
RS
19652
19653cat >>confdefs.h <<\_ACEOF
1409cd0b 19654#define HAVE_ACOSH 1
453310d8
RS
19655_ACEOF
19656
19657fi
19658
38d24731
RW
19659echo "$as_me:$LINENO: checking for acoshl in -lm" >&5
19660echo $ECHO_N "checking for acoshl in -lm... $ECHO_C" >&6
1409cd0b 19661if test "${ac_cv_lib_m_acoshl+set}" = set; then
453310d8
RS
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19663else
19664 ac_check_lib_save_LIBS=$LIBS
19665LIBS="-lm $LIBS"
f02d008e
JD
19666if test x$gcc_no_link = xyes; then
19667 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19668echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19669 { (exit 1); exit 1; }; }
19670fi
453310d8
RS
19671cat >conftest.$ac_ext <<_ACEOF
19672/* confdefs.h. */
19673_ACEOF
19674cat confdefs.h >>conftest.$ac_ext
19675cat >>conftest.$ac_ext <<_ACEOF
19676/* end confdefs.h. */
19677
38d24731 19678/* Override any gcc2 internal prototype to avoid an error. */
453310d8
RS
19679#ifdef __cplusplus
19680extern "C"
19681#endif
38d24731
RW
19682/* We use char because int might match the return type of a gcc2
19683 builtin and then its argument prototype would still apply. */
1409cd0b 19684char acoshl ();
453310d8
RS
19685int
19686main ()
19687{
38d24731 19688acoshl ();
453310d8
RS
19689 ;
19690 return 0;
19691}
19692_ACEOF
19693rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
19694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19695 (eval $ac_link) 2>conftest.er1
453310d8
RS
19696 ac_status=$?
19697 grep -v '^ *+' conftest.er1 >conftest.err
19698 rm -f conftest.er1
19699 cat conftest.err >&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
19701 (exit $ac_status); } &&
19702 { ac_try='test -z "$ac_c_werror_flag"
19703 || test ! -s conftest.err'
19704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705 (eval $ac_try) 2>&5
19706 ac_status=$?
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; } &&
19709 { ac_try='test -s conftest$ac_exeext'
19710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19711 (eval $ac_try) 2>&5
19712 ac_status=$?
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); }; }; then
1409cd0b 19715 ac_cv_lib_m_acoshl=yes
453310d8
RS
19716else
19717 echo "$as_me: failed program was:" >&5
19718sed 's/^/| /' conftest.$ac_ext >&5
19719
38d24731 19720ac_cv_lib_m_acoshl=no
453310d8 19721fi
38d24731 19722rm -f conftest.err conftest.$ac_objext \
453310d8
RS
19723 conftest$ac_exeext conftest.$ac_ext
19724LIBS=$ac_check_lib_save_LIBS
19725fi
38d24731
RW
19726echo "$as_me:$LINENO: result: $ac_cv_lib_m_acoshl" >&5
19727echo "${ECHO_T}$ac_cv_lib_m_acoshl" >&6
1409cd0b 19728if test $ac_cv_lib_m_acoshl = yes; then
453310d8
RS
19729
19730cat >>confdefs.h <<\_ACEOF
1409cd0b 19731#define HAVE_ACOSHL 1
453310d8
RS
19732_ACEOF
19733
19734fi
19735
38d24731
RW
19736echo "$as_me:$LINENO: checking for asinf in -lm" >&5
19737echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6
1409cd0b 19738if test "${ac_cv_lib_m_asinf+set}" = set; then
f02d008e
JD
19739 echo $ECHO_N "(cached) $ECHO_C" >&6
19740else
19741 ac_check_lib_save_LIBS=$LIBS
19742LIBS="-lm $LIBS"
19743if test x$gcc_no_link = xyes; then
19744 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19745echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19746 { (exit 1); exit 1; }; }
19747fi
19748cat >conftest.$ac_ext <<_ACEOF
19749/* confdefs.h. */
19750_ACEOF
19751cat confdefs.h >>conftest.$ac_ext
19752cat >>conftest.$ac_ext <<_ACEOF
19753/* end confdefs.h. */
19754
38d24731 19755/* Override any gcc2 internal prototype to avoid an error. */
f02d008e
JD
19756#ifdef __cplusplus
19757extern "C"
19758#endif
38d24731
RW
19759/* We use char because int might match the return type of a gcc2
19760 builtin and then its argument prototype would still apply. */
1409cd0b 19761char asinf ();
f02d008e
JD
19762int
19763main ()
19764{
38d24731 19765asinf ();
f02d008e
JD
19766 ;
19767 return 0;
19768}
19769_ACEOF
19770rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
19771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19772 (eval $ac_link) 2>conftest.er1
f02d008e
JD
19773 ac_status=$?
19774 grep -v '^ *+' conftest.er1 >conftest.err
19775 rm -f conftest.er1
19776 cat conftest.err >&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
19778 (exit $ac_status); } &&
19779 { ac_try='test -z "$ac_c_werror_flag"
19780 || test ! -s conftest.err'
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; } &&
19786 { ac_try='test -s conftest$ac_exeext'
19787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19788 (eval $ac_try) 2>&5
19789 ac_status=$?
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; }; then
1409cd0b 19792 ac_cv_lib_m_asinf=yes
f02d008e
JD
19793else
19794 echo "$as_me: failed program was:" >&5
19795sed 's/^/| /' conftest.$ac_ext >&5
19796
38d24731 19797ac_cv_lib_m_asinf=no
f02d008e 19798fi
38d24731 19799rm -f conftest.err conftest.$ac_objext \
f02d008e
JD
19800 conftest$ac_exeext conftest.$ac_ext
19801LIBS=$ac_check_lib_save_LIBS
19802fi
38d24731
RW
19803echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5
19804echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6
1409cd0b 19805if test $ac_cv_lib_m_asinf = yes; then
f02d008e
JD
19806
19807cat >>confdefs.h <<\_ACEOF
1409cd0b 19808#define HAVE_ASINF 1
f02d008e
JD
19809_ACEOF
19810
19811fi
19812
38d24731
RW
19813echo "$as_me:$LINENO: checking for asin in -lm" >&5
19814echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6
1409cd0b 19815if test "${ac_cv_lib_m_asin+set}" = set; then
453310d8
RS
19816 echo $ECHO_N "(cached) $ECHO_C" >&6
19817else
19818 ac_check_lib_save_LIBS=$LIBS
19819LIBS="-lm $LIBS"
f02d008e
JD
19820if test x$gcc_no_link = xyes; then
19821 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19822echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19823 { (exit 1); exit 1; }; }
19824fi
453310d8
RS
19825cat >conftest.$ac_ext <<_ACEOF
19826/* confdefs.h. */
19827_ACEOF
19828cat confdefs.h >>conftest.$ac_ext
19829cat >>conftest.$ac_ext <<_ACEOF
19830/* end confdefs.h. */
19831
38d24731 19832/* Override any gcc2 internal prototype to avoid an error. */
453310d8
RS
19833#ifdef __cplusplus
19834extern "C"
19835#endif
38d24731
RW
19836/* We use char because int might match the return type of a gcc2
19837 builtin and then its argument prototype would still apply. */
1409cd0b 19838char asin ();
453310d8
RS
19839int
19840main ()
19841{
38d24731 19842asin ();
453310d8
RS
19843 ;
19844 return 0;
19845}
19846_ACEOF
19847rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
19848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19849 (eval $ac_link) 2>conftest.er1
453310d8
RS
19850 ac_status=$?
19851 grep -v '^ *+' conftest.er1 >conftest.err
19852 rm -f conftest.er1
19853 cat conftest.err >&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
19855 (exit $ac_status); } &&
19856 { ac_try='test -z "$ac_c_werror_flag"
19857 || test ! -s conftest.err'
19858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19859 (eval $ac_try) 2>&5
19860 ac_status=$?
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); }; } &&
19863 { ac_try='test -s conftest$ac_exeext'
19864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19865 (eval $ac_try) 2>&5
19866 ac_status=$?
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }; }; then
1409cd0b 19869 ac_cv_lib_m_asin=yes
453310d8
RS
19870else
19871 echo "$as_me: failed program was:" >&5
19872sed 's/^/| /' conftest.$ac_ext >&5
19873
38d24731 19874ac_cv_lib_m_asin=no
453310d8 19875fi
38d24731 19876rm -f conftest.err conftest.$ac_objext \
453310d8
RS
19877 conftest$ac_exeext conftest.$ac_ext
19878LIBS=$ac_check_lib_save_LIBS
19879fi
38d24731
RW
19880echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5
19881echo "${ECHO_T}$ac_cv_lib_m_asin" >&6
1409cd0b 19882if test $ac_cv_lib_m_asin = yes; then
453310d8
RS
19883
19884cat >>confdefs.h <<\_ACEOF
1409cd0b 19885#define HAVE_ASIN 1
453310d8
RS
19886_ACEOF
19887
19888fi
19889
38d24731
RW
19890echo "$as_me:$LINENO: checking for asinl in -lm" >&5
19891echo $ECHO_N "checking for asinl in -lm... $ECHO_C" >&6
1409cd0b 19892if test "${ac_cv_lib_m_asinl+set}" = set; then
453310d8
RS
19893 echo $ECHO_N "(cached) $ECHO_C" >&6
19894else
19895 ac_check_lib_save_LIBS=$LIBS
19896LIBS="-lm $LIBS"
f02d008e
JD
19897if test x$gcc_no_link = xyes; then
19898 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19899echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19900 { (exit 1); exit 1; }; }
19901fi
453310d8
RS
19902cat >conftest.$ac_ext <<_ACEOF
19903/* confdefs.h. */
19904_ACEOF
19905cat confdefs.h >>conftest.$ac_ext
19906cat >>conftest.$ac_ext <<_ACEOF
19907/* end confdefs.h. */
19908
38d24731 19909/* Override any gcc2 internal prototype to avoid an error. */
453310d8
RS
19910#ifdef __cplusplus
19911extern "C"
19912#endif
38d24731
RW
19913/* We use char because int might match the return type of a gcc2
19914 builtin and then its argument prototype would still apply. */
1409cd0b 19915char asinl ();
453310d8
RS
19916int
19917main ()
19918{
38d24731 19919asinl ();
453310d8
RS
19920 ;
19921 return 0;
19922}
19923_ACEOF
19924rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
19925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19926 (eval $ac_link) 2>conftest.er1
453310d8
RS
19927 ac_status=$?
19928 grep -v '^ *+' conftest.er1 >conftest.err
19929 rm -f conftest.er1
19930 cat conftest.err >&5
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
19932 (exit $ac_status); } &&
19933 { ac_try='test -z "$ac_c_werror_flag"
19934 || test ! -s conftest.err'
19935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936 (eval $ac_try) 2>&5
19937 ac_status=$?
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; } &&
19940 { ac_try='test -s conftest$ac_exeext'
19941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942 (eval $ac_try) 2>&5
19943 ac_status=$?
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }; }; then
1409cd0b 19946 ac_cv_lib_m_asinl=yes
453310d8
RS
19947else
19948 echo "$as_me: failed program was:" >&5
19949sed 's/^/| /' conftest.$ac_ext >&5
19950
38d24731 19951ac_cv_lib_m_asinl=no
453310d8 19952fi
38d24731 19953rm -f conftest.err conftest.$ac_objext \
453310d8
RS
19954 conftest$ac_exeext conftest.$ac_ext
19955LIBS=$ac_check_lib_save_LIBS
19956fi
38d24731
RW
19957echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinl" >&5
19958echo "${ECHO_T}$ac_cv_lib_m_asinl" >&6
1409cd0b 19959if test $ac_cv_lib_m_asinl = yes; then
453310d8
RS
19960
19961cat >>confdefs.h <<\_ACEOF
1409cd0b 19962#define HAVE_ASINL 1
453310d8
RS
19963_ACEOF
19964
19965fi
19966
38d24731
RW
19967echo "$as_me:$LINENO: checking for asinhf in -lm" >&5
19968echo $ECHO_N "checking for asinhf in -lm... $ECHO_C" >&6
1409cd0b 19969if test "${ac_cv_lib_m_asinhf+set}" = set; then
453310d8
RS
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19971else
19972 ac_check_lib_save_LIBS=$LIBS
19973LIBS="-lm $LIBS"
f02d008e
JD
19974if test x$gcc_no_link = xyes; then
19975 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19976echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19977 { (exit 1); exit 1; }; }
19978fi
453310d8
RS
19979cat >conftest.$ac_ext <<_ACEOF
19980/* confdefs.h. */
19981_ACEOF
19982cat confdefs.h >>conftest.$ac_ext
19983cat >>conftest.$ac_ext <<_ACEOF
19984/* end confdefs.h. */
19985
38d24731 19986/* Override any gcc2 internal prototype to avoid an error. */
453310d8
RS
19987#ifdef __cplusplus
19988extern "C"
19989#endif
38d24731
RW
19990/* We use char because int might match the return type of a gcc2
19991 builtin and then its argument prototype would still apply. */
1409cd0b 19992char asinhf ();
453310d8
RS
19993int
19994main ()
19995{
38d24731 19996asinhf ();
453310d8
RS
19997 ;
19998 return 0;
19999}
20000_ACEOF
20001rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
20002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20003 (eval $ac_link) 2>conftest.er1
453310d8
RS
20004 ac_status=$?
20005 grep -v '^ *+' conftest.er1 >conftest.err
20006 rm -f conftest.er1
20007 cat conftest.err >&5
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
20009 (exit $ac_status); } &&
20010 { ac_try='test -z "$ac_c_werror_flag"
20011 || test ! -s conftest.err'
20012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20013 (eval $ac_try) 2>&5
20014 ac_status=$?
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }; } &&
20017 { ac_try='test -s conftest$ac_exeext'
20018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20019 (eval $ac_try) 2>&5
20020 ac_status=$?
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); }; }; then
1409cd0b 20023 ac_cv_lib_m_asinhf=yes
453310d8
RS
20024else
20025 echo "$as_me: failed program was:" >&5
20026sed 's/^/| /' conftest.$ac_ext >&5
20027
38d24731 20028ac_cv_lib_m_asinhf=no
453310d8 20029fi
38d24731 20030rm -f conftest.err conftest.$ac_objext \
453310d8
RS
20031 conftest$ac_exeext conftest.$ac_ext
20032LIBS=$ac_check_lib_save_LIBS
20033fi
38d24731
RW
20034echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinhf" >&5
20035echo "${ECHO_T}$ac_cv_lib_m_asinhf" >&6
1409cd0b 20036if test $ac_cv_lib_m_asinhf = yes; then
453310d8
RS
20037
20038cat >>confdefs.h <<\_ACEOF
1409cd0b 20039#define HAVE_ASINHF 1
453310d8
RS
20040_ACEOF
20041
20042fi
20043
38d24731
RW
20044echo "$as_me:$LINENO: checking for asinh in -lm" >&5
20045echo $ECHO_N "checking for asinh in -lm... $ECHO_C" >&6
1409cd0b 20046if test "${ac_cv_lib_m_asinh+set}" = set; then
453310d8
RS
20047 echo $ECHO_N "(cached) $ECHO_C" >&6
20048else
20049 ac_check_lib_save_LIBS=$LIBS
20050LIBS="-lm $LIBS"
f02d008e
JD
20051if test x$gcc_no_link = xyes; then
20052 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20053echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20054 { (exit 1); exit 1; }; }
20055fi
453310d8
RS
20056cat >conftest.$ac_ext <<_ACEOF
20057/* confdefs.h. */
20058_ACEOF
20059cat confdefs.h >>conftest.$ac_ext
20060cat >>conftest.$ac_ext <<_ACEOF
20061/* end confdefs.h. */
20062
38d24731 20063/* Override any gcc2 internal prototype to avoid an error. */
453310d8
RS
20064#ifdef __cplusplus
20065extern "C"
20066#endif
38d24731
RW
20067/* We use char because int might match the return type of a gcc2
20068 builtin and then its argument prototype would still apply. */
1409cd0b 20069char asinh ();
453310d8
RS
20070int
20071main ()
20072{
38d24731 20073asinh ();
453310d8
RS
20074 ;
20075 return 0;
20076}
20077_ACEOF
20078rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
20079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20080 (eval $ac_link) 2>conftest.er1
453310d8
RS
20081 ac_status=$?
20082 grep -v '^ *+' conftest.er1 >conftest.err
20083 rm -f conftest.er1
20084 cat conftest.err >&5
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
20086 (exit $ac_status); } &&
20087 { ac_try='test -z "$ac_c_werror_flag"
20088 || test ! -s conftest.err'
20089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090 (eval $ac_try) 2>&5
20091 ac_status=$?
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); }; } &&
20094 { ac_try='test -s conftest$ac_exeext'
20095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096 (eval $ac_try) 2>&5
20097 ac_status=$?
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); }; }; then
1409cd0b 20100 ac_cv_lib_m_asinh=yes
453310d8
RS
20101else
20102 echo "$as_me: failed program was:" >&5
20103sed 's/^/| /' conftest.$ac_ext >&5
20104
38d24731 20105ac_cv_lib_m_asinh=no
453310d8 20106fi
38d24731 20107rm -f conftest.err conftest.$ac_objext \
453310d8
RS
20108 conftest$ac_exeext conftest.$ac_ext
20109LIBS=$ac_check_lib_save_LIBS
20110fi
38d24731
RW
20111echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinh" >&5
20112echo "${ECHO_T}$ac_cv_lib_m_asinh" >&6
1409cd0b 20113if test $ac_cv_lib_m_asinh = yes; then
453310d8
RS
20114
20115cat >>confdefs.h <<\_ACEOF
1409cd0b 20116#define HAVE_ASINH 1
453310d8
RS
20117_ACEOF
20118
20119fi
20120
38d24731
RW
20121echo "$as_me:$LINENO: checking for asinhl in -lm" >&5
20122echo $ECHO_N "checking for asinhl in -lm... $ECHO_C" >&6
1409cd0b 20123if test "${ac_cv_lib_m_asinhl+set}" = set; then
453310d8
RS
20124 echo $ECHO_N "(cached) $ECHO_C" >&6
20125else
20126 ac_check_lib_save_LIBS=$LIBS
20127LIBS="-lm $LIBS"
f02d008e
JD
20128if test x$gcc_no_link = xyes; then
20129 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20130echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20131 { (exit 1); exit 1; }; }
20132fi
453310d8
RS
20133cat >conftest.$ac_ext <<_ACEOF
20134/* confdefs.h. */
20135_ACEOF
20136cat confdefs.h >>conftest.$ac_ext
20137cat >>conftest.$ac_ext <<_ACEOF
20138/* end confdefs.h. */
20139
38d24731 20140/* Override any gcc2 internal prototype to avoid an error. */
453310d8
RS
20141#ifdef __cplusplus
20142extern "C"
20143#endif
38d24731
RW
20144/* We use char because int might match the return type of a gcc2
20145 builtin and then its argument prototype would still apply. */
1409cd0b 20146char asinhl ();
453310d8
RS
20147int
20148main ()
20149{
38d24731 20150asinhl ();
453310d8
RS
20151 ;
20152 return 0;
20153}
20154_ACEOF
20155rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
20156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20157 (eval $ac_link) 2>conftest.er1
453310d8
RS
20158 ac_status=$?
20159 grep -v '^ *+' conftest.er1 >conftest.err
20160 rm -f conftest.er1
20161 cat conftest.err >&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
20163 (exit $ac_status); } &&
20164 { ac_try='test -z "$ac_c_werror_flag"
20165 || test ! -s conftest.err'
20166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20167 (eval $ac_try) 2>&5
20168 ac_status=$?
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); }; } &&
20171 { ac_try='test -s conftest$ac_exeext'
20172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20173 (eval $ac_try) 2>&5
20174 ac_status=$?
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); }; }; then
1409cd0b 20177 ac_cv_lib_m_asinhl=yes
453310d8
RS
20178else
20179 echo "$as_me: failed program was:" >&5
20180sed 's/^/| /' conftest.$ac_ext >&5
20181
38d24731 20182ac_cv_lib_m_asinhl=no
453310d8 20183fi
38d24731 20184rm -f conftest.err conftest.$ac_objext \
453310d8
RS
20185 conftest$ac_exeext conftest.$ac_ext
20186LIBS=$ac_check_lib_save_LIBS
20187fi
38d24731
RW
20188echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinhl" >&5
20189echo "${ECHO_T}$ac_cv_lib_m_asinhl" >&6
1409cd0b 20190if test $ac_cv_lib_m_asinhl = yes; then
453310d8
RS
20191
20192cat >>confdefs.h <<\_ACEOF
1409cd0b 20193#define HAVE_ASINHL 1
453310d8
RS
20194_ACEOF
20195
20196fi
20197
38d24731
RW
20198echo "$as_me:$LINENO: checking for atan2f in -lm" >&5
20199echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6
1409cd0b 20200if test "${ac_cv_lib_m_atan2f+set}" = set; then
6e4d9244
EB
20201 echo $ECHO_N "(cached) $ECHO_C" >&6
20202else
20203 ac_check_lib_save_LIBS=$LIBS
20204LIBS="-lm $LIBS"
f02d008e
JD
20205if test x$gcc_no_link = xyes; then
20206 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20207echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20208 { (exit 1); exit 1; }; }
20209fi
6e4d9244
EB
20210cat >conftest.$ac_ext <<_ACEOF
20211/* confdefs.h. */
20212_ACEOF
20213cat confdefs.h >>conftest.$ac_ext
20214cat >>conftest.$ac_ext <<_ACEOF
20215/* end confdefs.h. */
20216
38d24731 20217/* Override any gcc2 internal prototype to avoid an error. */
6e4d9244
EB
20218#ifdef __cplusplus
20219extern "C"
20220#endif
38d24731
RW
20221/* We use char because int might match the return type of a gcc2
20222 builtin and then its argument prototype would still apply. */
1409cd0b 20223char atan2f ();
6e4d9244
EB
20224int
20225main ()
20226{
38d24731 20227atan2f ();
6e4d9244
EB
20228 ;
20229 return 0;
20230}
20231_ACEOF
20232rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
20233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20234 (eval $ac_link) 2>conftest.er1
6e4d9244
EB
20235 ac_status=$?
20236 grep -v '^ *+' conftest.er1 >conftest.err
20237 rm -f conftest.er1
f489fba1 20238 cat conftest.err >&5
6e4d9244 20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
20240 (exit $ac_status); } &&
20241 { ac_try='test -z "$ac_c_werror_flag"
20242 || test ! -s conftest.err'
20243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244 (eval $ac_try) 2>&5
20245 ac_status=$?
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; } &&
20248 { ac_try='test -s conftest$ac_exeext'
20249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250 (eval $ac_try) 2>&5
20251 ac_status=$?
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); }; }; then
1409cd0b 20254 ac_cv_lib_m_atan2f=yes
6e4d9244
EB
20255else
20256 echo "$as_me: failed program was:" >&5
20257sed 's/^/| /' conftest.$ac_ext >&5
20258
38d24731 20259ac_cv_lib_m_atan2f=no
6e4d9244 20260fi
38d24731 20261rm -f conftest.err conftest.$ac_objext \
6e4d9244
EB
20262 conftest$ac_exeext conftest.$ac_ext
20263LIBS=$ac_check_lib_save_LIBS
20264fi
38d24731
RW
20265echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5
20266echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6
1409cd0b 20267if test $ac_cv_lib_m_atan2f = yes; then
6e4d9244
EB
20268
20269cat >>confdefs.h <<\_ACEOF
1409cd0b 20270#define HAVE_ATAN2F 1
6e4d9244
EB
20271_ACEOF
20272
20273fi
20274
38d24731
RW
20275echo "$as_me:$LINENO: checking for atan2 in -lm" >&5
20276echo $ECHO_N "checking for atan2 in -lm... $ECHO_C" >&6
1409cd0b 20277if test "${ac_cv_lib_m_atan2+set}" = set; then
453310d8
RS
20278 echo $ECHO_N "(cached) $ECHO_C" >&6
20279else
20280 ac_check_lib_save_LIBS=$LIBS
20281LIBS="-lm $LIBS"
f02d008e
JD
20282if test x$gcc_no_link = xyes; then
20283 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20284echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20285 { (exit 1); exit 1; }; }
20286fi
453310d8
RS
20287cat >conftest.$ac_ext <<_ACEOF
20288/* confdefs.h. */
20289_ACEOF
20290cat confdefs.h >>conftest.$ac_ext
20291cat >>conftest.$ac_ext <<_ACEOF
20292/* end confdefs.h. */
20293
38d24731 20294/* Override any gcc2 internal prototype to avoid an error. */
453310d8
RS
20295#ifdef __cplusplus
20296extern "C"
20297#endif
38d24731
RW
20298/* We use char because int might match the return type of a gcc2
20299 builtin and then its argument prototype would still apply. */
1409cd0b 20300char atan2 ();
453310d8
RS
20301int
20302main ()
20303{
38d24731 20304atan2 ();
453310d8
RS
20305 ;
20306 return 0;
20307}
20308_ACEOF
20309rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
20310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20311 (eval $ac_link) 2>conftest.er1
20312 ac_status=$?
20313 grep -v '^ *+' conftest.er1 >conftest.err
20314 rm -f conftest.er1
20315 cat conftest.err >&5
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); } &&
20318 { ac_try='test -z "$ac_c_werror_flag"
20319 || test ! -s conftest.err'
20320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20321 (eval $ac_try) 2>&5
20322 ac_status=$?
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); }; } &&
20325 { ac_try='test -s conftest$ac_exeext'
20326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20327 (eval $ac_try) 2>&5
453310d8 20328 ac_status=$?
453310d8 20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731 20330 (exit $ac_status); }; }; then
1409cd0b 20331 ac_cv_lib_m_atan2=yes
453310d8
RS
20332else
20333 echo "$as_me: failed program was:" >&5
20334sed 's/^/| /' conftest.$ac_ext >&5
20335
38d24731 20336ac_cv_lib_m_atan2=no
453310d8 20337fi
38d24731 20338rm -f conftest.err conftest.$ac_objext \
453310d8
RS
20339 conftest$ac_exeext conftest.$ac_ext
20340LIBS=$ac_check_lib_save_LIBS
20341fi
38d24731
RW
20342echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2" >&5
20343echo "${ECHO_T}$ac_cv_lib_m_atan2" >&6
1409cd0b 20344if test $ac_cv_lib_m_atan2 = yes; then
453310d8
RS
20345
20346cat >>confdefs.h <<\_ACEOF
1409cd0b 20347#define HAVE_ATAN2 1
453310d8
RS
20348_ACEOF
20349
20350fi
20351
38d24731
RW
20352echo "$as_me:$LINENO: checking for atan2l in -lm" >&5
20353echo $ECHO_N "checking for atan2l in -lm... $ECHO_C" >&6
1409cd0b 20354if test "${ac_cv_lib_m_atan2l+set}" = set; then
453310d8
RS
20355 echo $ECHO_N "(cached) $ECHO_C" >&6
20356else
20357 ac_check_lib_save_LIBS=$LIBS
20358LIBS="-lm $LIBS"
f02d008e
JD
20359if test x$gcc_no_link = xyes; then
20360 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20361echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20362 { (exit 1); exit 1; }; }
20363fi
453310d8
RS
20364cat >conftest.$ac_ext <<_ACEOF
20365/* confdefs.h. */
20366_ACEOF
20367cat confdefs.h >>conftest.$ac_ext
20368cat >>conftest.$ac_ext <<_ACEOF
20369/* end confdefs.h. */
20370
38d24731 20371/* Override any gcc2 internal prototype to avoid an error. */
453310d8
RS
20372#ifdef __cplusplus
20373extern "C"
20374#endif
38d24731
RW
20375/* We use char because int might match the return type of a gcc2
20376 builtin and then its argument prototype would still apply. */
1409cd0b 20377char atan2l ();
453310d8
RS
20378int
20379main ()
20380{
38d24731 20381atan2l ();
453310d8
RS
20382 ;
20383 return 0;
20384}
20385_ACEOF
20386rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
20387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20388 (eval $ac_link) 2>conftest.er1
453310d8
RS
20389 ac_status=$?
20390 grep -v '^ *+' conftest.er1 >conftest.err
20391 rm -f conftest.er1
20392 cat conftest.err >&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
20394 (exit $ac_status); } &&
20395 { ac_try='test -z "$ac_c_werror_flag"
20396 || test ! -s conftest.err'
20397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20398 (eval $ac_try) 2>&5
20399 ac_status=$?
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); }; } &&
20402 { ac_try='test -s conftest$ac_exeext'
20403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404 (eval $ac_try) 2>&5
20405 ac_status=$?
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); }; }; then
1409cd0b 20408 ac_cv_lib_m_atan2l=yes
453310d8
RS
20409else
20410 echo "$as_me: failed program was:" >&5
20411sed 's/^/| /' conftest.$ac_ext >&5
20412
38d24731 20413ac_cv_lib_m_atan2l=no
453310d8 20414fi
38d24731 20415rm -f conftest.err conftest.$ac_objext \
453310d8
RS
20416 conftest$ac_exeext conftest.$ac_ext
20417LIBS=$ac_check_lib_save_LIBS
20418fi
38d24731
RW
20419echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2l" >&5
20420echo "${ECHO_T}$ac_cv_lib_m_atan2l" >&6
1409cd0b 20421if test $ac_cv_lib_m_atan2l = yes; then
453310d8
RS
20422
20423cat >>confdefs.h <<\_ACEOF
1409cd0b 20424#define HAVE_ATAN2L 1
453310d8
RS
20425_ACEOF
20426
20427fi
20428
38d24731
RW
20429echo "$as_me:$LINENO: checking for atanf in -lm" >&5
20430echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6
1409cd0b 20431if test "${ac_cv_lib_m_atanf+set}" = set; then
453310d8
RS
20432 echo $ECHO_N "(cached) $ECHO_C" >&6
20433else
20434 ac_check_lib_save_LIBS=$LIBS
20435LIBS="-lm $LIBS"
f02d008e
JD
20436if test x$gcc_no_link = xyes; then
20437 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20438echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20439 { (exit 1); exit 1; }; }
20440fi
453310d8
RS
20441cat >conftest.$ac_ext <<_ACEOF
20442/* confdefs.h. */
20443_ACEOF
20444cat confdefs.h >>conftest.$ac_ext
20445cat >>conftest.$ac_ext <<_ACEOF
20446/* end confdefs.h. */
20447
38d24731 20448/* Override any gcc2 internal prototype to avoid an error. */
453310d8
RS
20449#ifdef __cplusplus
20450extern "C"
20451#endif
38d24731
RW
20452/* We use char because int might match the return type of a gcc2
20453 builtin and then its argument prototype would still apply. */
1409cd0b 20454char atanf ();
453310d8
RS
20455int
20456main ()
20457{
38d24731 20458atanf ();
453310d8
RS
20459 ;
20460 return 0;
20461}
20462_ACEOF
20463rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
20464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20465 (eval $ac_link) 2>conftest.er1
453310d8
RS
20466 ac_status=$?
20467 grep -v '^ *+' conftest.er1 >conftest.err
20468 rm -f conftest.er1
20469 cat conftest.err >&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
20471 (exit $ac_status); } &&
20472 { ac_try='test -z "$ac_c_werror_flag"
20473 || test ! -s conftest.err'
20474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20475 (eval $ac_try) 2>&5
20476 ac_status=$?
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); }; } &&
20479 { ac_try='test -s conftest$ac_exeext'
20480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481 (eval $ac_try) 2>&5
20482 ac_status=$?
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; }; then
1409cd0b 20485 ac_cv_lib_m_atanf=yes
453310d8
RS
20486else
20487 echo "$as_me: failed program was:" >&5
20488sed 's/^/| /' conftest.$ac_ext >&5
20489
38d24731 20490ac_cv_lib_m_atanf=no
453310d8 20491fi
38d24731 20492rm -f conftest.err conftest.$ac_objext \
453310d8
RS
20493 conftest$ac_exeext conftest.$ac_ext
20494LIBS=$ac_check_lib_save_LIBS
20495fi
38d24731
RW
20496echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5
20497echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6
1409cd0b 20498if test $ac_cv_lib_m_atanf = yes; then
453310d8
RS
20499
20500cat >>confdefs.h <<\_ACEOF
1409cd0b 20501#define HAVE_ATANF 1
453310d8
RS
20502_ACEOF
20503
20504fi
20505
38d24731
RW
20506echo "$as_me:$LINENO: checking for atan in -lm" >&5
20507echo $ECHO_N "checking for atan in -lm... $ECHO_C" >&6
1409cd0b 20508if test "${ac_cv_lib_m_atan+set}" = set; then
453310d8
RS
20509 echo $ECHO_N "(cached) $ECHO_C" >&6
20510else
20511 ac_check_lib_save_LIBS=$LIBS
20512LIBS="-lm $LIBS"
f02d008e
JD
20513if test x$gcc_no_link = xyes; then
20514 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20515echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20516 { (exit 1); exit 1; }; }
20517fi
453310d8
RS
20518cat >conftest.$ac_ext <<_ACEOF
20519/* confdefs.h. */
20520_ACEOF
20521cat confdefs.h >>conftest.$ac_ext
20522cat >>conftest.$ac_ext <<_ACEOF
20523/* end confdefs.h. */
20524
38d24731 20525/* Override any gcc2 internal prototype to avoid an error. */
453310d8
RS
20526#ifdef __cplusplus
20527extern "C"
20528#endif
38d24731
RW
20529/* We use char because int might match the return type of a gcc2
20530 builtin and then its argument prototype would still apply. */
1409cd0b 20531char atan ();
453310d8
RS
20532int
20533main ()
20534{
38d24731 20535atan ();
453310d8
RS
20536 ;
20537 return 0;
20538}
20539_ACEOF
20540rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
20541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20542 (eval $ac_link) 2>conftest.er1
453310d8
RS
20543 ac_status=$?
20544 grep -v '^ *+' conftest.er1 >conftest.err
20545 rm -f conftest.er1
20546 cat conftest.err >&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
20548 (exit $ac_status); } &&
20549 { ac_try='test -z "$ac_c_werror_flag"
20550 || test ! -s conftest.err'
20551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20552 (eval $ac_try) 2>&5
20553 ac_status=$?
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }; } &&
20556 { ac_try='test -s conftest$ac_exeext'
20557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20558 (eval $ac_try) 2>&5
20559 ac_status=$?
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); }; }; then
1409cd0b 20562 ac_cv_lib_m_atan=yes
453310d8
RS
20563else
20564 echo "$as_me: failed program was:" >&5
20565sed 's/^/| /' conftest.$ac_ext >&5
20566
38d24731 20567ac_cv_lib_m_atan=no
453310d8 20568fi
38d24731 20569rm -f conftest.err conftest.$ac_objext \
453310d8
RS
20570 conftest$ac_exeext conftest.$ac_ext
20571LIBS=$ac_check_lib_save_LIBS
20572fi
38d24731
RW
20573echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan" >&5
20574echo "${ECHO_T}$ac_cv_lib_m_atan" >&6
1409cd0b 20575if test $ac_cv_lib_m_atan = yes; then
453310d8
RS
20576
20577cat >>confdefs.h <<\_ACEOF
1409cd0b 20578#define HAVE_ATAN 1
453310d8
RS
20579_ACEOF
20580
20581fi
20582
38d24731
RW
20583echo "$as_me:$LINENO: checking for atanl in -lm" >&5
20584echo $ECHO_N "checking for atanl in -lm... $ECHO_C" >&6
1409cd0b 20585if test "${ac_cv_lib_m_atanl+set}" = set; then
453310d8
RS
20586 echo $ECHO_N "(cached) $ECHO_C" >&6
20587else
20588 ac_check_lib_save_LIBS=$LIBS
20589LIBS="-lm $LIBS"
f02d008e
JD
20590if test x$gcc_no_link = xyes; then
20591 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20592echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20593 { (exit 1); exit 1; }; }
20594fi
453310d8
RS
20595cat >conftest.$ac_ext <<_ACEOF
20596/* confdefs.h. */
20597_ACEOF
20598cat confdefs.h >>conftest.$ac_ext
20599cat >>conftest.$ac_ext <<_ACEOF
20600/* end confdefs.h. */
20601
38d24731 20602/* Override any gcc2 internal prototype to avoid an error. */
453310d8
RS
20603#ifdef __cplusplus
20604extern "C"
20605#endif
38d24731
RW
20606/* We use char because int might match the return type of a gcc2
20607 builtin and then its argument prototype would still apply. */
1409cd0b 20608char atanl ();
453310d8
RS
20609int
20610main ()
20611{
38d24731 20612atanl ();
453310d8
RS
20613 ;
20614 return 0;
20615}
20616_ACEOF
20617rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
20618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20619 (eval $ac_link) 2>conftest.er1
453310d8
RS
20620 ac_status=$?
20621 grep -v '^ *+' conftest.er1 >conftest.err
20622 rm -f conftest.er1
20623 cat conftest.err >&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
20625 (exit $ac_status); } &&
20626 { ac_try='test -z "$ac_c_werror_flag"
20627 || test ! -s conftest.err'
20628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629 (eval $ac_try) 2>&5
20630 ac_status=$?
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; } &&
20633 { ac_try='test -s conftest$ac_exeext'
20634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20635 (eval $ac_try) 2>&5
20636 ac_status=$?
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); }; }; then
1409cd0b 20639 ac_cv_lib_m_atanl=yes
453310d8
RS
20640else
20641 echo "$as_me: failed program was:" >&5
20642sed 's/^/| /' conftest.$ac_ext >&5
20643
38d24731 20644ac_cv_lib_m_atanl=no
453310d8 20645fi
38d24731 20646rm -f conftest.err conftest.$ac_objext \
453310d8
RS
20647 conftest$ac_exeext conftest.$ac_ext
20648LIBS=$ac_check_lib_save_LIBS
20649fi
38d24731
RW
20650echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanl" >&5
20651echo "${ECHO_T}$ac_cv_lib_m_atanl" >&6
1409cd0b 20652if test $ac_cv_lib_m_atanl = yes; then
453310d8
RS
20653
20654cat >>confdefs.h <<\_ACEOF
1409cd0b 20655#define HAVE_ATANL 1
453310d8
RS
20656_ACEOF
20657
20658fi
20659
38d24731
RW
20660echo "$as_me:$LINENO: checking for atanhf in -lm" >&5
20661echo $ECHO_N "checking for atanhf in -lm... $ECHO_C" >&6
1409cd0b 20662if test "${ac_cv_lib_m_atanhf+set}" = set; then
32aa3bff
FXC
20663 echo $ECHO_N "(cached) $ECHO_C" >&6
20664else
20665 ac_check_lib_save_LIBS=$LIBS
20666LIBS="-lm $LIBS"
f02d008e
JD
20667if test x$gcc_no_link = xyes; then
20668 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20669echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20670 { (exit 1); exit 1; }; }
20671fi
32aa3bff
FXC
20672cat >conftest.$ac_ext <<_ACEOF
20673/* confdefs.h. */
20674_ACEOF
20675cat confdefs.h >>conftest.$ac_ext
20676cat >>conftest.$ac_ext <<_ACEOF
20677/* end confdefs.h. */
20678
38d24731 20679/* Override any gcc2 internal prototype to avoid an error. */
32aa3bff
FXC
20680#ifdef __cplusplus
20681extern "C"
20682#endif
38d24731
RW
20683/* We use char because int might match the return type of a gcc2
20684 builtin and then its argument prototype would still apply. */
1409cd0b 20685char atanhf ();
32aa3bff
FXC
20686int
20687main ()
20688{
38d24731 20689atanhf ();
32aa3bff
FXC
20690 ;
20691 return 0;
20692}
20693_ACEOF
20694rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
20695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20696 (eval $ac_link) 2>conftest.er1
32aa3bff
FXC
20697 ac_status=$?
20698 grep -v '^ *+' conftest.er1 >conftest.err
20699 rm -f conftest.er1
20700 cat conftest.err >&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
20702 (exit $ac_status); } &&
20703 { ac_try='test -z "$ac_c_werror_flag"
20704 || test ! -s conftest.err'
20705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20706 (eval $ac_try) 2>&5
20707 ac_status=$?
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); }; } &&
20710 { ac_try='test -s conftest$ac_exeext'
20711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20712 (eval $ac_try) 2>&5
20713 ac_status=$?
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); }; }; then
1409cd0b 20716 ac_cv_lib_m_atanhf=yes
32aa3bff
FXC
20717else
20718 echo "$as_me: failed program was:" >&5
20719sed 's/^/| /' conftest.$ac_ext >&5
20720
38d24731 20721ac_cv_lib_m_atanhf=no
32aa3bff 20722fi
38d24731 20723rm -f conftest.err conftest.$ac_objext \
32aa3bff
FXC
20724 conftest$ac_exeext conftest.$ac_ext
20725LIBS=$ac_check_lib_save_LIBS
20726fi
38d24731
RW
20727echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanhf" >&5
20728echo "${ECHO_T}$ac_cv_lib_m_atanhf" >&6
1409cd0b 20729if test $ac_cv_lib_m_atanhf = yes; then
32aa3bff
FXC
20730
20731cat >>confdefs.h <<\_ACEOF
1409cd0b 20732#define HAVE_ATANHF 1
32aa3bff
FXC
20733_ACEOF
20734
20735fi
20736
38d24731
RW
20737echo "$as_me:$LINENO: checking for atanh in -lm" >&5
20738echo $ECHO_N "checking for atanh in -lm... $ECHO_C" >&6
1409cd0b 20739if test "${ac_cv_lib_m_atanh+set}" = set; then
453310d8
RS
20740 echo $ECHO_N "(cached) $ECHO_C" >&6
20741else
20742 ac_check_lib_save_LIBS=$LIBS
20743LIBS="-lm $LIBS"
f02d008e
JD
20744if test x$gcc_no_link = xyes; then
20745 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20746echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20747 { (exit 1); exit 1; }; }
20748fi
453310d8
RS
20749cat >conftest.$ac_ext <<_ACEOF
20750/* confdefs.h. */
20751_ACEOF
20752cat confdefs.h >>conftest.$ac_ext
20753cat >>conftest.$ac_ext <<_ACEOF
20754/* end confdefs.h. */
20755
38d24731 20756/* Override any gcc2 internal prototype to avoid an error. */
453310d8
RS
20757#ifdef __cplusplus
20758extern "C"
20759#endif
38d24731
RW
20760/* We use char because int might match the return type of a gcc2
20761 builtin and then its argument prototype would still apply. */
1409cd0b 20762char atanh ();
453310d8
RS
20763int
20764main ()
20765{
38d24731 20766atanh ();
453310d8
RS
20767 ;
20768 return 0;
20769}
20770_ACEOF
20771rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
20772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20773 (eval $ac_link) 2>conftest.er1
453310d8
RS
20774 ac_status=$?
20775 grep -v '^ *+' conftest.er1 >conftest.err
20776 rm -f conftest.er1
20777 cat conftest.err >&5
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
20779 (exit $ac_status); } &&
20780 { ac_try='test -z "$ac_c_werror_flag"
20781 || test ! -s conftest.err'
20782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20783 (eval $ac_try) 2>&5
20784 ac_status=$?
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); }; } &&
20787 { ac_try='test -s conftest$ac_exeext'
20788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20789 (eval $ac_try) 2>&5
20790 ac_status=$?
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); }; }; then
1409cd0b 20793 ac_cv_lib_m_atanh=yes
453310d8
RS
20794else
20795 echo "$as_me: failed program was:" >&5
20796sed 's/^/| /' conftest.$ac_ext >&5
20797
38d24731 20798ac_cv_lib_m_atanh=no
453310d8 20799fi
38d24731 20800rm -f conftest.err conftest.$ac_objext \
453310d8
RS
20801 conftest$ac_exeext conftest.$ac_ext
20802LIBS=$ac_check_lib_save_LIBS
20803fi
38d24731
RW
20804echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanh" >&5
20805echo "${ECHO_T}$ac_cv_lib_m_atanh" >&6
1409cd0b 20806if test $ac_cv_lib_m_atanh = yes; then
453310d8
RS
20807
20808cat >>confdefs.h <<\_ACEOF
1409cd0b 20809#define HAVE_ATANH 1
453310d8
RS
20810_ACEOF
20811
20812fi
20813
38d24731
RW
20814echo "$as_me:$LINENO: checking for atanhl in -lm" >&5
20815echo $ECHO_N "checking for atanhl in -lm... $ECHO_C" >&6
1409cd0b 20816if test "${ac_cv_lib_m_atanhl+set}" = set; then
453310d8
RS
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20818else
20819 ac_check_lib_save_LIBS=$LIBS
20820LIBS="-lm $LIBS"
f02d008e
JD
20821if test x$gcc_no_link = xyes; then
20822 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20823echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20824 { (exit 1); exit 1; }; }
20825fi
453310d8
RS
20826cat >conftest.$ac_ext <<_ACEOF
20827/* confdefs.h. */
20828_ACEOF
20829cat confdefs.h >>conftest.$ac_ext
20830cat >>conftest.$ac_ext <<_ACEOF
20831/* end confdefs.h. */
20832
38d24731 20833/* Override any gcc2 internal prototype to avoid an error. */
453310d8
RS
20834#ifdef __cplusplus
20835extern "C"
20836#endif
38d24731
RW
20837/* We use char because int might match the return type of a gcc2
20838 builtin and then its argument prototype would still apply. */
1409cd0b 20839char atanhl ();
453310d8
RS
20840int
20841main ()
20842{
38d24731 20843atanhl ();
453310d8
RS
20844 ;
20845 return 0;
20846}
20847_ACEOF
20848rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
20849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20850 (eval $ac_link) 2>conftest.er1
453310d8
RS
20851 ac_status=$?
20852 grep -v '^ *+' conftest.er1 >conftest.err
20853 rm -f conftest.er1
20854 cat conftest.err >&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
20856 (exit $ac_status); } &&
20857 { ac_try='test -z "$ac_c_werror_flag"
20858 || test ! -s conftest.err'
20859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860 (eval $ac_try) 2>&5
20861 ac_status=$?
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); }; } &&
20864 { ac_try='test -s conftest$ac_exeext'
20865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866 (eval $ac_try) 2>&5
20867 ac_status=$?
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); }; }; then
1409cd0b 20870 ac_cv_lib_m_atanhl=yes
453310d8
RS
20871else
20872 echo "$as_me: failed program was:" >&5
20873sed 's/^/| /' conftest.$ac_ext >&5
20874
38d24731 20875ac_cv_lib_m_atanhl=no
453310d8 20876fi
38d24731 20877rm -f conftest.err conftest.$ac_objext \
453310d8
RS
20878 conftest$ac_exeext conftest.$ac_ext
20879LIBS=$ac_check_lib_save_LIBS
20880fi
38d24731
RW
20881echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanhl" >&5
20882echo "${ECHO_T}$ac_cv_lib_m_atanhl" >&6
1409cd0b 20883if test $ac_cv_lib_m_atanhl = yes; then
453310d8
RS
20884
20885cat >>confdefs.h <<\_ACEOF
1409cd0b 20886#define HAVE_ATANHL 1
453310d8
RS
20887_ACEOF
20888
20889fi
20890
38d24731
RW
20891echo "$as_me:$LINENO: checking for cargf in -lm" >&5
20892echo $ECHO_N "checking for cargf in -lm... $ECHO_C" >&6
1409cd0b 20893if test "${ac_cv_lib_m_cargf+set}" = set; then
bf4d99cf
TS
20894 echo $ECHO_N "(cached) $ECHO_C" >&6
20895else
20896 ac_check_lib_save_LIBS=$LIBS
20897LIBS="-lm $LIBS"
f02d008e
JD
20898if test x$gcc_no_link = xyes; then
20899 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20900echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20901 { (exit 1); exit 1; }; }
20902fi
bf4d99cf
TS
20903cat >conftest.$ac_ext <<_ACEOF
20904/* confdefs.h. */
20905_ACEOF
20906cat confdefs.h >>conftest.$ac_ext
20907cat >>conftest.$ac_ext <<_ACEOF
20908/* end confdefs.h. */
20909
38d24731 20910/* Override any gcc2 internal prototype to avoid an error. */
bf4d99cf
TS
20911#ifdef __cplusplus
20912extern "C"
20913#endif
38d24731
RW
20914/* We use char because int might match the return type of a gcc2
20915 builtin and then its argument prototype would still apply. */
1409cd0b 20916char cargf ();
bf4d99cf
TS
20917int
20918main ()
20919{
38d24731 20920cargf ();
bf4d99cf
TS
20921 ;
20922 return 0;
20923}
20924_ACEOF
20925rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
20926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20927 (eval $ac_link) 2>conftest.er1
bf4d99cf
TS
20928 ac_status=$?
20929 grep -v '^ *+' conftest.er1 >conftest.err
20930 rm -f conftest.er1
20931 cat conftest.err >&5
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
20933 (exit $ac_status); } &&
20934 { ac_try='test -z "$ac_c_werror_flag"
20935 || test ! -s conftest.err'
20936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20937 (eval $ac_try) 2>&5
20938 ac_status=$?
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); }; } &&
20941 { ac_try='test -s conftest$ac_exeext'
20942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20943 (eval $ac_try) 2>&5
20944 ac_status=$?
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); }; }; then
1409cd0b 20947 ac_cv_lib_m_cargf=yes
bf4d99cf
TS
20948else
20949 echo "$as_me: failed program was:" >&5
20950sed 's/^/| /' conftest.$ac_ext >&5
20951
38d24731 20952ac_cv_lib_m_cargf=no
bf4d99cf 20953fi
38d24731 20954rm -f conftest.err conftest.$ac_objext \
bf4d99cf
TS
20955 conftest$ac_exeext conftest.$ac_ext
20956LIBS=$ac_check_lib_save_LIBS
20957fi
38d24731
RW
20958echo "$as_me:$LINENO: result: $ac_cv_lib_m_cargf" >&5
20959echo "${ECHO_T}$ac_cv_lib_m_cargf" >&6
1409cd0b 20960if test $ac_cv_lib_m_cargf = yes; then
bf4d99cf
TS
20961
20962cat >>confdefs.h <<\_ACEOF
1409cd0b 20963#define HAVE_CARGF 1
bf4d99cf
TS
20964_ACEOF
20965
20966fi
20967
38d24731
RW
20968echo "$as_me:$LINENO: checking for carg in -lm" >&5
20969echo $ECHO_N "checking for carg in -lm... $ECHO_C" >&6
1409cd0b 20970if test "${ac_cv_lib_m_carg+set}" = set; then
a2a2059f
BD
20971 echo $ECHO_N "(cached) $ECHO_C" >&6
20972else
20973 ac_check_lib_save_LIBS=$LIBS
20974LIBS="-lm $LIBS"
f02d008e
JD
20975if test x$gcc_no_link = xyes; then
20976 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20977echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20978 { (exit 1); exit 1; }; }
20979fi
a2a2059f
BD
20980cat >conftest.$ac_ext <<_ACEOF
20981/* confdefs.h. */
20982_ACEOF
20983cat confdefs.h >>conftest.$ac_ext
20984cat >>conftest.$ac_ext <<_ACEOF
20985/* end confdefs.h. */
20986
38d24731 20987/* Override any gcc2 internal prototype to avoid an error. */
a2a2059f
BD
20988#ifdef __cplusplus
20989extern "C"
20990#endif
38d24731
RW
20991/* We use char because int might match the return type of a gcc2
20992 builtin and then its argument prototype would still apply. */
1409cd0b 20993char carg ();
453310d8
RS
20994int
20995main ()
20996{
38d24731 20997carg ();
453310d8
RS
20998 ;
20999 return 0;
21000}
21001_ACEOF
21002rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
21003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21004 (eval $ac_link) 2>conftest.er1
453310d8
RS
21005 ac_status=$?
21006 grep -v '^ *+' conftest.er1 >conftest.err
21007 rm -f conftest.er1
21008 cat conftest.err >&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
21010 (exit $ac_status); } &&
21011 { ac_try='test -z "$ac_c_werror_flag"
21012 || test ! -s conftest.err'
21013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014 (eval $ac_try) 2>&5
21015 ac_status=$?
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; } &&
21018 { ac_try='test -s conftest$ac_exeext'
21019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020 (eval $ac_try) 2>&5
21021 ac_status=$?
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; }; then
1409cd0b 21024 ac_cv_lib_m_carg=yes
453310d8
RS
21025else
21026 echo "$as_me: failed program was:" >&5
21027sed 's/^/| /' conftest.$ac_ext >&5
21028
38d24731 21029ac_cv_lib_m_carg=no
453310d8 21030fi
38d24731 21031rm -f conftest.err conftest.$ac_objext \
453310d8
RS
21032 conftest$ac_exeext conftest.$ac_ext
21033LIBS=$ac_check_lib_save_LIBS
21034fi
38d24731
RW
21035echo "$as_me:$LINENO: result: $ac_cv_lib_m_carg" >&5
21036echo "${ECHO_T}$ac_cv_lib_m_carg" >&6
1409cd0b 21037if test $ac_cv_lib_m_carg = yes; then
453310d8
RS
21038
21039cat >>confdefs.h <<\_ACEOF
1409cd0b 21040#define HAVE_CARG 1
453310d8
RS
21041_ACEOF
21042
21043fi
21044
38d24731
RW
21045echo "$as_me:$LINENO: checking for cargl in -lm" >&5
21046echo $ECHO_N "checking for cargl in -lm... $ECHO_C" >&6
1409cd0b 21047if test "${ac_cv_lib_m_cargl+set}" = set; then
453310d8
RS
21048 echo $ECHO_N "(cached) $ECHO_C" >&6
21049else
21050 ac_check_lib_save_LIBS=$LIBS
21051LIBS="-lm $LIBS"
f02d008e
JD
21052if test x$gcc_no_link = xyes; then
21053 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21054echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21055 { (exit 1); exit 1; }; }
21056fi
453310d8
RS
21057cat >conftest.$ac_ext <<_ACEOF
21058/* confdefs.h. */
21059_ACEOF
21060cat confdefs.h >>conftest.$ac_ext
21061cat >>conftest.$ac_ext <<_ACEOF
21062/* end confdefs.h. */
21063
38d24731 21064/* Override any gcc2 internal prototype to avoid an error. */
453310d8
RS
21065#ifdef __cplusplus
21066extern "C"
21067#endif
38d24731
RW
21068/* We use char because int might match the return type of a gcc2
21069 builtin and then its argument prototype would still apply. */
1409cd0b 21070char cargl ();
a2a2059f
BD
21071int
21072main ()
21073{
38d24731 21074cargl ();
a2a2059f
BD
21075 ;
21076 return 0;
21077}
21078_ACEOF
21079rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
21080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21081 (eval $ac_link) 2>conftest.er1
a2a2059f
BD
21082 ac_status=$?
21083 grep -v '^ *+' conftest.er1 >conftest.err
21084 rm -f conftest.er1
21085 cat conftest.err >&5
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
21087 (exit $ac_status); } &&
21088 { ac_try='test -z "$ac_c_werror_flag"
21089 || test ! -s conftest.err'
21090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21091 (eval $ac_try) 2>&5
21092 ac_status=$?
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); }; } &&
21095 { ac_try='test -s conftest$ac_exeext'
21096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21097 (eval $ac_try) 2>&5
21098 ac_status=$?
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); }; }; then
1409cd0b 21101 ac_cv_lib_m_cargl=yes
a2a2059f
BD
21102else
21103 echo "$as_me: failed program was:" >&5
21104sed 's/^/| /' conftest.$ac_ext >&5
21105
38d24731 21106ac_cv_lib_m_cargl=no
a2a2059f 21107fi
38d24731 21108rm -f conftest.err conftest.$ac_objext \
a2a2059f
BD
21109 conftest$ac_exeext conftest.$ac_ext
21110LIBS=$ac_check_lib_save_LIBS
21111fi
38d24731
RW
21112echo "$as_me:$LINENO: result: $ac_cv_lib_m_cargl" >&5
21113echo "${ECHO_T}$ac_cv_lib_m_cargl" >&6
1409cd0b 21114if test $ac_cv_lib_m_cargl = yes; then
a2a2059f
BD
21115
21116cat >>confdefs.h <<\_ACEOF
1409cd0b 21117#define HAVE_CARGL 1
a2a2059f
BD
21118_ACEOF
21119
21120fi
21121
38d24731
RW
21122echo "$as_me:$LINENO: checking for ceilf in -lm" >&5
21123echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6
1409cd0b 21124if test "${ac_cv_lib_m_ceilf+set}" = set; then
a2a2059f
BD
21125 echo $ECHO_N "(cached) $ECHO_C" >&6
21126else
21127 ac_check_lib_save_LIBS=$LIBS
21128LIBS="-lm $LIBS"
f02d008e
JD
21129if test x$gcc_no_link = xyes; then
21130 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21131echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21132 { (exit 1); exit 1; }; }
21133fi
a2a2059f
BD
21134cat >conftest.$ac_ext <<_ACEOF
21135/* confdefs.h. */
21136_ACEOF
21137cat confdefs.h >>conftest.$ac_ext
21138cat >>conftest.$ac_ext <<_ACEOF
21139/* end confdefs.h. */
21140
38d24731 21141/* Override any gcc2 internal prototype to avoid an error. */
a2a2059f
BD
21142#ifdef __cplusplus
21143extern "C"
21144#endif
38d24731
RW
21145/* We use char because int might match the return type of a gcc2
21146 builtin and then its argument prototype would still apply. */
1409cd0b 21147char ceilf ();
a2a2059f
BD
21148int
21149main ()
21150{
38d24731 21151ceilf ();
a2a2059f
BD
21152 ;
21153 return 0;
21154}
21155_ACEOF
21156rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
21157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21158 (eval $ac_link) 2>conftest.er1
a2a2059f
BD
21159 ac_status=$?
21160 grep -v '^ *+' conftest.er1 >conftest.err
21161 rm -f conftest.er1
21162 cat conftest.err >&5
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
21164 (exit $ac_status); } &&
21165 { ac_try='test -z "$ac_c_werror_flag"
21166 || test ! -s conftest.err'
21167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168 (eval $ac_try) 2>&5
21169 ac_status=$?
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; } &&
21172 { ac_try='test -s conftest$ac_exeext'
21173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21174 (eval $ac_try) 2>&5
21175 ac_status=$?
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); }; }; then
1409cd0b 21178 ac_cv_lib_m_ceilf=yes
a2a2059f
BD
21179else
21180 echo "$as_me: failed program was:" >&5
21181sed 's/^/| /' conftest.$ac_ext >&5
21182
38d24731 21183ac_cv_lib_m_ceilf=no
a2a2059f 21184fi
38d24731 21185rm -f conftest.err conftest.$ac_objext \
a2a2059f
BD
21186 conftest$ac_exeext conftest.$ac_ext
21187LIBS=$ac_check_lib_save_LIBS
21188fi
38d24731
RW
21189echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5
21190echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6
1409cd0b 21191if test $ac_cv_lib_m_ceilf = yes; then
a2a2059f
BD
21192
21193cat >>confdefs.h <<\_ACEOF
1409cd0b 21194#define HAVE_CEILF 1
a2a2059f
BD
21195_ACEOF
21196
21197fi
21198
38d24731
RW
21199echo "$as_me:$LINENO: checking for ceil in -lm" >&5
21200echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6
1409cd0b 21201if test "${ac_cv_lib_m_ceil+set}" = set; then
ae973d6a
FXC
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
21203else
21204 ac_check_lib_save_LIBS=$LIBS
21205LIBS="-lm $LIBS"
f02d008e
JD
21206if test x$gcc_no_link = xyes; then
21207 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21208echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21209 { (exit 1); exit 1; }; }
21210fi
ae973d6a
FXC
21211cat >conftest.$ac_ext <<_ACEOF
21212/* confdefs.h. */
21213_ACEOF
21214cat confdefs.h >>conftest.$ac_ext
21215cat >>conftest.$ac_ext <<_ACEOF
21216/* end confdefs.h. */
21217
38d24731 21218/* Override any gcc2 internal prototype to avoid an error. */
ae973d6a
FXC
21219#ifdef __cplusplus
21220extern "C"
21221#endif
38d24731
RW
21222/* We use char because int might match the return type of a gcc2
21223 builtin and then its argument prototype would still apply. */
1409cd0b 21224char ceil ();
ae973d6a
FXC
21225int
21226main ()
21227{
38d24731 21228ceil ();
ae973d6a
FXC
21229 ;
21230 return 0;
21231}
21232_ACEOF
21233rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
21234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21235 (eval $ac_link) 2>conftest.er1
ae973d6a
FXC
21236 ac_status=$?
21237 grep -v '^ *+' conftest.er1 >conftest.err
21238 rm -f conftest.er1
21239 cat conftest.err >&5
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
21241 (exit $ac_status); } &&
21242 { ac_try='test -z "$ac_c_werror_flag"
21243 || test ! -s conftest.err'
21244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21245 (eval $ac_try) 2>&5
21246 ac_status=$?
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); }; } &&
21249 { ac_try='test -s conftest$ac_exeext'
21250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21251 (eval $ac_try) 2>&5
21252 ac_status=$?
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); }; }; then
1409cd0b 21255 ac_cv_lib_m_ceil=yes
ae973d6a
FXC
21256else
21257 echo "$as_me: failed program was:" >&5
21258sed 's/^/| /' conftest.$ac_ext >&5
21259
38d24731 21260ac_cv_lib_m_ceil=no
ae973d6a 21261fi
38d24731 21262rm -f conftest.err conftest.$ac_objext \
ae973d6a
FXC
21263 conftest$ac_exeext conftest.$ac_ext
21264LIBS=$ac_check_lib_save_LIBS
21265fi
38d24731
RW
21266echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
21267echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6
1409cd0b 21268if test $ac_cv_lib_m_ceil = yes; then
ae973d6a
FXC
21269
21270cat >>confdefs.h <<\_ACEOF
1409cd0b 21271#define HAVE_CEIL 1
ae973d6a
FXC
21272_ACEOF
21273
21274fi
21275
38d24731
RW
21276echo "$as_me:$LINENO: checking for ceill in -lm" >&5
21277echo $ECHO_N "checking for ceill in -lm... $ECHO_C" >&6
1409cd0b 21278if test "${ac_cv_lib_m_ceill+set}" = set; then
a9e7b9d3
PB
21279 echo $ECHO_N "(cached) $ECHO_C" >&6
21280else
21281 ac_check_lib_save_LIBS=$LIBS
21282LIBS="-lm $LIBS"
f02d008e
JD
21283if test x$gcc_no_link = xyes; then
21284 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21285echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21286 { (exit 1); exit 1; }; }
21287fi
a9e7b9d3
PB
21288cat >conftest.$ac_ext <<_ACEOF
21289/* confdefs.h. */
21290_ACEOF
21291cat confdefs.h >>conftest.$ac_ext
21292cat >>conftest.$ac_ext <<_ACEOF
21293/* end confdefs.h. */
21294
38d24731 21295/* Override any gcc2 internal prototype to avoid an error. */
a9e7b9d3
PB
21296#ifdef __cplusplus
21297extern "C"
21298#endif
38d24731
RW
21299/* We use char because int might match the return type of a gcc2
21300 builtin and then its argument prototype would still apply. */
1409cd0b 21301char ceill ();
a9e7b9d3
PB
21302int
21303main ()
21304{
38d24731 21305ceill ();
a9e7b9d3
PB
21306 ;
21307 return 0;
21308}
21309_ACEOF
21310rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
21311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21312 (eval $ac_link) 2>conftest.er1
a9e7b9d3
PB
21313 ac_status=$?
21314 grep -v '^ *+' conftest.er1 >conftest.err
21315 rm -f conftest.er1
21316 cat conftest.err >&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
21318 (exit $ac_status); } &&
21319 { ac_try='test -z "$ac_c_werror_flag"
21320 || test ! -s conftest.err'
21321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21322 (eval $ac_try) 2>&5
21323 ac_status=$?
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); }; } &&
21326 { ac_try='test -s conftest$ac_exeext'
21327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21328 (eval $ac_try) 2>&5
21329 ac_status=$?
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); }; }; then
1409cd0b 21332 ac_cv_lib_m_ceill=yes
a9e7b9d3
PB
21333else
21334 echo "$as_me: failed program was:" >&5
21335sed 's/^/| /' conftest.$ac_ext >&5
21336
38d24731 21337ac_cv_lib_m_ceill=no
a9e7b9d3 21338fi
38d24731 21339rm -f conftest.err conftest.$ac_objext \
a9e7b9d3
PB
21340 conftest$ac_exeext conftest.$ac_ext
21341LIBS=$ac_check_lib_save_LIBS
21342fi
38d24731
RW
21343echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceill" >&5
21344echo "${ECHO_T}$ac_cv_lib_m_ceill" >&6
1409cd0b 21345if test $ac_cv_lib_m_ceill = yes; then
a9e7b9d3
PB
21346
21347cat >>confdefs.h <<\_ACEOF
1409cd0b 21348#define HAVE_CEILL 1
a9e7b9d3
PB
21349_ACEOF
21350
21351fi
21352
38d24731
RW
21353echo "$as_me:$LINENO: checking for copysignf in -lm" >&5
21354echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6
1409cd0b 21355if test "${ac_cv_lib_m_copysignf+set}" = set; then
a9e7b9d3
PB
21356 echo $ECHO_N "(cached) $ECHO_C" >&6
21357else
21358 ac_check_lib_save_LIBS=$LIBS
21359LIBS="-lm $LIBS"
f02d008e
JD
21360if test x$gcc_no_link = xyes; then
21361 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21362echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21363 { (exit 1); exit 1; }; }
21364fi
a9e7b9d3
PB
21365cat >conftest.$ac_ext <<_ACEOF
21366/* confdefs.h. */
21367_ACEOF
21368cat confdefs.h >>conftest.$ac_ext
21369cat >>conftest.$ac_ext <<_ACEOF
21370/* end confdefs.h. */
21371
38d24731 21372/* Override any gcc2 internal prototype to avoid an error. */
a9e7b9d3
PB
21373#ifdef __cplusplus
21374extern "C"
21375#endif
38d24731
RW
21376/* We use char because int might match the return type of a gcc2
21377 builtin and then its argument prototype would still apply. */
1409cd0b 21378char copysignf ();
a9e7b9d3
PB
21379int
21380main ()
21381{
38d24731 21382copysignf ();
a9e7b9d3
PB
21383 ;
21384 return 0;
21385}
21386_ACEOF
21387rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
21388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21389 (eval $ac_link) 2>conftest.er1
a9e7b9d3
PB
21390 ac_status=$?
21391 grep -v '^ *+' conftest.er1 >conftest.err
21392 rm -f conftest.er1
21393 cat conftest.err >&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
21395 (exit $ac_status); } &&
21396 { ac_try='test -z "$ac_c_werror_flag"
21397 || test ! -s conftest.err'
21398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21399 (eval $ac_try) 2>&5
21400 ac_status=$?
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); }; } &&
21403 { ac_try='test -s conftest$ac_exeext'
21404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405 (eval $ac_try) 2>&5
21406 ac_status=$?
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); }; }; then
1409cd0b 21409 ac_cv_lib_m_copysignf=yes
a9e7b9d3
PB
21410else
21411 echo "$as_me: failed program was:" >&5
21412sed 's/^/| /' conftest.$ac_ext >&5
21413
38d24731 21414ac_cv_lib_m_copysignf=no
a9e7b9d3 21415fi
38d24731 21416rm -f conftest.err conftest.$ac_objext \
a9e7b9d3
PB
21417 conftest$ac_exeext conftest.$ac_ext
21418LIBS=$ac_check_lib_save_LIBS
21419fi
38d24731
RW
21420echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5
21421echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6
1409cd0b 21422if test $ac_cv_lib_m_copysignf = yes; then
a9e7b9d3
PB
21423
21424cat >>confdefs.h <<\_ACEOF
1409cd0b 21425#define HAVE_COPYSIGNF 1
453310d8
RS
21426_ACEOF
21427
21428fi
21429
38d24731
RW
21430echo "$as_me:$LINENO: checking for copysign in -lm" >&5
21431echo $ECHO_N "checking for copysign in -lm... $ECHO_C" >&6
1409cd0b 21432if test "${ac_cv_lib_m_copysign+set}" = set; then
453310d8
RS
21433 echo $ECHO_N "(cached) $ECHO_C" >&6
21434else
21435 ac_check_lib_save_LIBS=$LIBS
21436LIBS="-lm $LIBS"
f02d008e
JD
21437if test x$gcc_no_link = xyes; then
21438 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21439echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21440 { (exit 1); exit 1; }; }
21441fi
453310d8
RS
21442cat >conftest.$ac_ext <<_ACEOF
21443/* confdefs.h. */
21444_ACEOF
21445cat confdefs.h >>conftest.$ac_ext
21446cat >>conftest.$ac_ext <<_ACEOF
21447/* end confdefs.h. */
21448
38d24731 21449/* Override any gcc2 internal prototype to avoid an error. */
453310d8
RS
21450#ifdef __cplusplus
21451extern "C"
21452#endif
38d24731
RW
21453/* We use char because int might match the return type of a gcc2
21454 builtin and then its argument prototype would still apply. */
1409cd0b 21455char copysign ();
453310d8
RS
21456int
21457main ()
21458{
38d24731 21459copysign ();
453310d8
RS
21460 ;
21461 return 0;
21462}
21463_ACEOF
21464rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
21465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21466 (eval $ac_link) 2>conftest.er1
453310d8
RS
21467 ac_status=$?
21468 grep -v '^ *+' conftest.er1 >conftest.err
21469 rm -f conftest.er1
21470 cat conftest.err >&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
21472 (exit $ac_status); } &&
21473 { ac_try='test -z "$ac_c_werror_flag"
21474 || test ! -s conftest.err'
21475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476 (eval $ac_try) 2>&5
21477 ac_status=$?
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); }; } &&
21480 { ac_try='test -s conftest$ac_exeext'
21481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21482 (eval $ac_try) 2>&5
21483 ac_status=$?
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); }; }; then
1409cd0b 21486 ac_cv_lib_m_copysign=yes
453310d8
RS
21487else
21488 echo "$as_me: failed program was:" >&5
21489sed 's/^/| /' conftest.$ac_ext >&5
21490
38d24731 21491ac_cv_lib_m_copysign=no
453310d8 21492fi
38d24731 21493rm -f conftest.err conftest.$ac_objext \
453310d8
RS
21494 conftest$ac_exeext conftest.$ac_ext
21495LIBS=$ac_check_lib_save_LIBS
21496fi
38d24731
RW
21497echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysign" >&5
21498echo "${ECHO_T}$ac_cv_lib_m_copysign" >&6
1409cd0b 21499if test $ac_cv_lib_m_copysign = yes; then
453310d8
RS
21500
21501cat >>confdefs.h <<\_ACEOF
1409cd0b 21502#define HAVE_COPYSIGN 1
453310d8
RS
21503_ACEOF
21504
21505fi
21506
38d24731
RW
21507echo "$as_me:$LINENO: checking for copysignl in -lm" >&5
21508echo $ECHO_N "checking for copysignl in -lm... $ECHO_C" >&6
1409cd0b 21509if test "${ac_cv_lib_m_copysignl+set}" = set; then
453310d8
RS
21510 echo $ECHO_N "(cached) $ECHO_C" >&6
21511else
21512 ac_check_lib_save_LIBS=$LIBS
21513LIBS="-lm $LIBS"
f02d008e
JD
21514if test x$gcc_no_link = xyes; then
21515 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21516echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21517 { (exit 1); exit 1; }; }
21518fi
453310d8
RS
21519cat >conftest.$ac_ext <<_ACEOF
21520/* confdefs.h. */
21521_ACEOF
21522cat confdefs.h >>conftest.$ac_ext
21523cat >>conftest.$ac_ext <<_ACEOF
21524/* end confdefs.h. */
21525
38d24731 21526/* Override any gcc2 internal prototype to avoid an error. */
453310d8
RS
21527#ifdef __cplusplus
21528extern "C"
21529#endif
38d24731
RW
21530/* We use char because int might match the return type of a gcc2
21531 builtin and then its argument prototype would still apply. */
1409cd0b 21532char copysignl ();
453310d8
RS
21533int
21534main ()
21535{
38d24731 21536copysignl ();
453310d8
RS
21537 ;
21538 return 0;
21539}
21540_ACEOF
21541rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
21542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21543 (eval $ac_link) 2>conftest.er1
453310d8
RS
21544 ac_status=$?
21545 grep -v '^ *+' conftest.er1 >conftest.err
21546 rm -f conftest.er1
21547 cat conftest.err >&5
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
21549 (exit $ac_status); } &&
21550 { ac_try='test -z "$ac_c_werror_flag"
21551 || test ! -s conftest.err'
21552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21553 (eval $ac_try) 2>&5
21554 ac_status=$?
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); }; } &&
21557 { ac_try='test -s conftest$ac_exeext'
21558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559 (eval $ac_try) 2>&5
21560 ac_status=$?
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); }; }; then
1409cd0b 21563 ac_cv_lib_m_copysignl=yes
453310d8
RS
21564else
21565 echo "$as_me: failed program was:" >&5
21566sed 's/^/| /' conftest.$ac_ext >&5
21567
38d24731 21568ac_cv_lib_m_copysignl=no
453310d8 21569fi
38d24731 21570rm -f conftest.err conftest.$ac_objext \
453310d8
RS
21571 conftest$ac_exeext conftest.$ac_ext
21572LIBS=$ac_check_lib_save_LIBS
21573fi
38d24731
RW
21574echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignl" >&5
21575echo "${ECHO_T}$ac_cv_lib_m_copysignl" >&6
1409cd0b 21576if test $ac_cv_lib_m_copysignl = yes; then
453310d8
RS
21577
21578cat >>confdefs.h <<\_ACEOF
1409cd0b 21579#define HAVE_COPYSIGNL 1
453310d8
RS
21580_ACEOF
21581
21582fi
21583
38d24731
RW
21584echo "$as_me:$LINENO: checking for cosf in -lm" >&5
21585echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6
1409cd0b 21586if test "${ac_cv_lib_m_cosf+set}" = set; then
453310d8
RS
21587 echo $ECHO_N "(cached) $ECHO_C" >&6
21588else
21589 ac_check_lib_save_LIBS=$LIBS
21590LIBS="-lm $LIBS"
f02d008e
JD
21591if test x$gcc_no_link = xyes; then
21592 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21593echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21594 { (exit 1); exit 1; }; }
21595fi
453310d8
RS
21596cat >conftest.$ac_ext <<_ACEOF
21597/* confdefs.h. */
21598_ACEOF
21599cat confdefs.h >>conftest.$ac_ext
21600cat >>conftest.$ac_ext <<_ACEOF
21601/* end confdefs.h. */
21602
38d24731 21603/* Override any gcc2 internal prototype to avoid an error. */
453310d8
RS
21604#ifdef __cplusplus
21605extern "C"
21606#endif
38d24731
RW
21607/* We use char because int might match the return type of a gcc2
21608 builtin and then its argument prototype would still apply. */
1409cd0b 21609char cosf ();
453310d8
RS
21610int
21611main ()
21612{
38d24731 21613cosf ();
453310d8
RS
21614 ;
21615 return 0;
21616}
21617_ACEOF
21618rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
21619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21620 (eval $ac_link) 2>conftest.er1
453310d8
RS
21621 ac_status=$?
21622 grep -v '^ *+' conftest.er1 >conftest.err
21623 rm -f conftest.er1
21624 cat conftest.err >&5
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
21626 (exit $ac_status); } &&
21627 { ac_try='test -z "$ac_c_werror_flag"
21628 || test ! -s conftest.err'
21629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21630 (eval $ac_try) 2>&5
21631 ac_status=$?
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); }; } &&
21634 { ac_try='test -s conftest$ac_exeext'
21635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21636 (eval $ac_try) 2>&5
21637 ac_status=$?
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); }; }; then
1409cd0b 21640 ac_cv_lib_m_cosf=yes
453310d8
RS
21641else
21642 echo "$as_me: failed program was:" >&5
21643sed 's/^/| /' conftest.$ac_ext >&5
21644
38d24731 21645ac_cv_lib_m_cosf=no
453310d8 21646fi
38d24731 21647rm -f conftest.err conftest.$ac_objext \
453310d8
RS
21648 conftest$ac_exeext conftest.$ac_ext
21649LIBS=$ac_check_lib_save_LIBS
21650fi
38d24731
RW
21651echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
21652echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6
1409cd0b 21653if test $ac_cv_lib_m_cosf = yes; then
453310d8
RS
21654
21655cat >>confdefs.h <<\_ACEOF
1409cd0b 21656#define HAVE_COSF 1
a9e7b9d3
PB
21657_ACEOF
21658
21659fi
21660
38d24731
RW
21661echo "$as_me:$LINENO: checking for cos in -lm" >&5
21662echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
1409cd0b 21663if test "${ac_cv_lib_m_cos+set}" = set; then
69a2d125
EB
21664 echo $ECHO_N "(cached) $ECHO_C" >&6
21665else
21666 ac_check_lib_save_LIBS=$LIBS
21667LIBS="-lm $LIBS"
f02d008e
JD
21668if test x$gcc_no_link = xyes; then
21669 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21670echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21671 { (exit 1); exit 1; }; }
21672fi
69a2d125
EB
21673cat >conftest.$ac_ext <<_ACEOF
21674/* confdefs.h. */
21675_ACEOF
21676cat confdefs.h >>conftest.$ac_ext
21677cat >>conftest.$ac_ext <<_ACEOF
21678/* end confdefs.h. */
21679
38d24731 21680/* Override any gcc2 internal prototype to avoid an error. */
69a2d125
EB
21681#ifdef __cplusplus
21682extern "C"
21683#endif
38d24731
RW
21684/* We use char because int might match the return type of a gcc2
21685 builtin and then its argument prototype would still apply. */
1409cd0b 21686char cos ();
69a2d125
EB
21687int
21688main ()
21689{
38d24731 21690cos ();
69a2d125
EB
21691 ;
21692 return 0;
21693}
21694_ACEOF
21695rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
21696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21697 (eval $ac_link) 2>conftest.er1
69a2d125
EB
21698 ac_status=$?
21699 grep -v '^ *+' conftest.er1 >conftest.err
21700 rm -f conftest.er1
21701 cat conftest.err >&5
21702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
21703 (exit $ac_status); } &&
21704 { ac_try='test -z "$ac_c_werror_flag"
21705 || test ! -s conftest.err'
21706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21707 (eval $ac_try) 2>&5
21708 ac_status=$?
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); }; } &&
21711 { ac_try='test -s conftest$ac_exeext'
21712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21713 (eval $ac_try) 2>&5
21714 ac_status=$?
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); }; }; then
1409cd0b 21717 ac_cv_lib_m_cos=yes
69a2d125
EB
21718else
21719 echo "$as_me: failed program was:" >&5
21720sed 's/^/| /' conftest.$ac_ext >&5
21721
38d24731 21722ac_cv_lib_m_cos=no
69a2d125 21723fi
38d24731 21724rm -f conftest.err conftest.$ac_objext \
69a2d125
EB
21725 conftest$ac_exeext conftest.$ac_ext
21726LIBS=$ac_check_lib_save_LIBS
21727fi
38d24731
RW
21728echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
21729echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
1409cd0b 21730if test $ac_cv_lib_m_cos = yes; then
69a2d125
EB
21731
21732cat >>confdefs.h <<\_ACEOF
1409cd0b
FXC
21733#define HAVE_COS 1
21734_ACEOF
21735
21736fi
21737
38d24731
RW
21738echo "$as_me:$LINENO: checking for cosl in -lm" >&5
21739echo $ECHO_N "checking for cosl in -lm... $ECHO_C" >&6
1409cd0b
FXC
21740if test "${ac_cv_lib_m_cosl+set}" = set; then
21741 echo $ECHO_N "(cached) $ECHO_C" >&6
21742else
21743 ac_check_lib_save_LIBS=$LIBS
21744LIBS="-lm $LIBS"
21745if test x$gcc_no_link = xyes; then
21746 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21747echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21748 { (exit 1); exit 1; }; }
21749fi
21750cat >conftest.$ac_ext <<_ACEOF
21751/* confdefs.h. */
21752_ACEOF
21753cat confdefs.h >>conftest.$ac_ext
21754cat >>conftest.$ac_ext <<_ACEOF
21755/* end confdefs.h. */
21756
38d24731 21757/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
21758#ifdef __cplusplus
21759extern "C"
21760#endif
38d24731
RW
21761/* We use char because int might match the return type of a gcc2
21762 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
21763char cosl ();
21764int
21765main ()
21766{
38d24731 21767cosl ();
1409cd0b
FXC
21768 ;
21769 return 0;
21770}
21771_ACEOF
21772rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
21773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21774 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
21775 ac_status=$?
21776 grep -v '^ *+' conftest.er1 >conftest.err
21777 rm -f conftest.er1
21778 cat conftest.err >&5
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
21780 (exit $ac_status); } &&
21781 { ac_try='test -z "$ac_c_werror_flag"
21782 || test ! -s conftest.err'
21783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21784 (eval $ac_try) 2>&5
21785 ac_status=$?
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); }; } &&
21788 { ac_try='test -s conftest$ac_exeext'
21789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21790 (eval $ac_try) 2>&5
21791 ac_status=$?
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); }; }; then
1409cd0b
FXC
21794 ac_cv_lib_m_cosl=yes
21795else
21796 echo "$as_me: failed program was:" >&5
21797sed 's/^/| /' conftest.$ac_ext >&5
21798
38d24731 21799ac_cv_lib_m_cosl=no
1409cd0b 21800fi
38d24731 21801rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
21802 conftest$ac_exeext conftest.$ac_ext
21803LIBS=$ac_check_lib_save_LIBS
21804fi
38d24731
RW
21805echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosl" >&5
21806echo "${ECHO_T}$ac_cv_lib_m_cosl" >&6
1409cd0b
FXC
21807if test $ac_cv_lib_m_cosl = yes; then
21808
21809cat >>confdefs.h <<\_ACEOF
21810#define HAVE_COSL 1
21811_ACEOF
21812
21813fi
21814
38d24731
RW
21815echo "$as_me:$LINENO: checking for ccosf in -lm" >&5
21816echo $ECHO_N "checking for ccosf in -lm... $ECHO_C" >&6
1409cd0b
FXC
21817if test "${ac_cv_lib_m_ccosf+set}" = set; then
21818 echo $ECHO_N "(cached) $ECHO_C" >&6
21819else
21820 ac_check_lib_save_LIBS=$LIBS
21821LIBS="-lm $LIBS"
21822if test x$gcc_no_link = xyes; then
21823 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21824echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21825 { (exit 1); exit 1; }; }
21826fi
21827cat >conftest.$ac_ext <<_ACEOF
21828/* confdefs.h. */
21829_ACEOF
21830cat confdefs.h >>conftest.$ac_ext
21831cat >>conftest.$ac_ext <<_ACEOF
21832/* end confdefs.h. */
21833
38d24731 21834/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
21835#ifdef __cplusplus
21836extern "C"
21837#endif
38d24731
RW
21838/* We use char because int might match the return type of a gcc2
21839 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
21840char ccosf ();
21841int
21842main ()
21843{
38d24731 21844ccosf ();
1409cd0b
FXC
21845 ;
21846 return 0;
21847}
21848_ACEOF
21849rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
21850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21851 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
21852 ac_status=$?
21853 grep -v '^ *+' conftest.er1 >conftest.err
21854 rm -f conftest.er1
21855 cat conftest.err >&5
21856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
21857 (exit $ac_status); } &&
21858 { ac_try='test -z "$ac_c_werror_flag"
21859 || test ! -s conftest.err'
21860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21861 (eval $ac_try) 2>&5
21862 ac_status=$?
21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); }; } &&
21865 { ac_try='test -s conftest$ac_exeext'
21866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21867 (eval $ac_try) 2>&5
21868 ac_status=$?
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); }; }; then
1409cd0b
FXC
21871 ac_cv_lib_m_ccosf=yes
21872else
21873 echo "$as_me: failed program was:" >&5
21874sed 's/^/| /' conftest.$ac_ext >&5
21875
38d24731 21876ac_cv_lib_m_ccosf=no
1409cd0b 21877fi
38d24731 21878rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
21879 conftest$ac_exeext conftest.$ac_ext
21880LIBS=$ac_check_lib_save_LIBS
21881fi
38d24731
RW
21882echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccosf" >&5
21883echo "${ECHO_T}$ac_cv_lib_m_ccosf" >&6
1409cd0b
FXC
21884if test $ac_cv_lib_m_ccosf = yes; then
21885
21886cat >>confdefs.h <<\_ACEOF
21887#define HAVE_CCOSF 1
21888_ACEOF
21889
21890fi
21891
38d24731
RW
21892echo "$as_me:$LINENO: checking for ccos in -lm" >&5
21893echo $ECHO_N "checking for ccos in -lm... $ECHO_C" >&6
1409cd0b
FXC
21894if test "${ac_cv_lib_m_ccos+set}" = set; then
21895 echo $ECHO_N "(cached) $ECHO_C" >&6
21896else
21897 ac_check_lib_save_LIBS=$LIBS
21898LIBS="-lm $LIBS"
21899if test x$gcc_no_link = xyes; then
21900 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21901echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21902 { (exit 1); exit 1; }; }
21903fi
21904cat >conftest.$ac_ext <<_ACEOF
21905/* confdefs.h. */
21906_ACEOF
21907cat confdefs.h >>conftest.$ac_ext
21908cat >>conftest.$ac_ext <<_ACEOF
21909/* end confdefs.h. */
21910
38d24731 21911/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
21912#ifdef __cplusplus
21913extern "C"
21914#endif
38d24731
RW
21915/* We use char because int might match the return type of a gcc2
21916 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
21917char ccos ();
21918int
21919main ()
21920{
38d24731 21921ccos ();
1409cd0b
FXC
21922 ;
21923 return 0;
21924}
21925_ACEOF
21926rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
21927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21928 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
21929 ac_status=$?
21930 grep -v '^ *+' conftest.er1 >conftest.err
21931 rm -f conftest.er1
21932 cat conftest.err >&5
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
21934 (exit $ac_status); } &&
21935 { ac_try='test -z "$ac_c_werror_flag"
21936 || test ! -s conftest.err'
21937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21938 (eval $ac_try) 2>&5
21939 ac_status=$?
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); }; } &&
21942 { ac_try='test -s conftest$ac_exeext'
21943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21944 (eval $ac_try) 2>&5
21945 ac_status=$?
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); }; }; then
1409cd0b
FXC
21948 ac_cv_lib_m_ccos=yes
21949else
21950 echo "$as_me: failed program was:" >&5
21951sed 's/^/| /' conftest.$ac_ext >&5
21952
38d24731 21953ac_cv_lib_m_ccos=no
1409cd0b 21954fi
38d24731 21955rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
21956 conftest$ac_exeext conftest.$ac_ext
21957LIBS=$ac_check_lib_save_LIBS
21958fi
38d24731
RW
21959echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccos" >&5
21960echo "${ECHO_T}$ac_cv_lib_m_ccos" >&6
1409cd0b
FXC
21961if test $ac_cv_lib_m_ccos = yes; then
21962
21963cat >>confdefs.h <<\_ACEOF
21964#define HAVE_CCOS 1
21965_ACEOF
21966
21967fi
21968
38d24731
RW
21969echo "$as_me:$LINENO: checking for ccosl in -lm" >&5
21970echo $ECHO_N "checking for ccosl in -lm... $ECHO_C" >&6
1409cd0b
FXC
21971if test "${ac_cv_lib_m_ccosl+set}" = set; then
21972 echo $ECHO_N "(cached) $ECHO_C" >&6
21973else
21974 ac_check_lib_save_LIBS=$LIBS
21975LIBS="-lm $LIBS"
21976if test x$gcc_no_link = xyes; then
21977 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21978echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21979 { (exit 1); exit 1; }; }
21980fi
21981cat >conftest.$ac_ext <<_ACEOF
21982/* confdefs.h. */
21983_ACEOF
21984cat confdefs.h >>conftest.$ac_ext
21985cat >>conftest.$ac_ext <<_ACEOF
21986/* end confdefs.h. */
21987
38d24731 21988/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
21989#ifdef __cplusplus
21990extern "C"
21991#endif
38d24731
RW
21992/* We use char because int might match the return type of a gcc2
21993 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
21994char ccosl ();
21995int
21996main ()
21997{
38d24731 21998ccosl ();
1409cd0b
FXC
21999 ;
22000 return 0;
22001}
22002_ACEOF
22003rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
22004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22005 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
22006 ac_status=$?
22007 grep -v '^ *+' conftest.er1 >conftest.err
22008 rm -f conftest.er1
22009 cat conftest.err >&5
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
22011 (exit $ac_status); } &&
22012 { ac_try='test -z "$ac_c_werror_flag"
22013 || test ! -s conftest.err'
22014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22015 (eval $ac_try) 2>&5
22016 ac_status=$?
22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018 (exit $ac_status); }; } &&
22019 { ac_try='test -s conftest$ac_exeext'
22020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22021 (eval $ac_try) 2>&5
22022 ac_status=$?
22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); }; }; then
1409cd0b
FXC
22025 ac_cv_lib_m_ccosl=yes
22026else
22027 echo "$as_me: failed program was:" >&5
22028sed 's/^/| /' conftest.$ac_ext >&5
22029
38d24731 22030ac_cv_lib_m_ccosl=no
1409cd0b 22031fi
38d24731 22032rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
22033 conftest$ac_exeext conftest.$ac_ext
22034LIBS=$ac_check_lib_save_LIBS
22035fi
38d24731
RW
22036echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccosl" >&5
22037echo "${ECHO_T}$ac_cv_lib_m_ccosl" >&6
1409cd0b
FXC
22038if test $ac_cv_lib_m_ccosl = yes; then
22039
22040cat >>confdefs.h <<\_ACEOF
22041#define HAVE_CCOSL 1
22042_ACEOF
22043
22044fi
22045
38d24731
RW
22046echo "$as_me:$LINENO: checking for coshf in -lm" >&5
22047echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6
1409cd0b
FXC
22048if test "${ac_cv_lib_m_coshf+set}" = set; then
22049 echo $ECHO_N "(cached) $ECHO_C" >&6
22050else
22051 ac_check_lib_save_LIBS=$LIBS
22052LIBS="-lm $LIBS"
22053if test x$gcc_no_link = xyes; then
22054 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22055echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22056 { (exit 1); exit 1; }; }
22057fi
22058cat >conftest.$ac_ext <<_ACEOF
22059/* confdefs.h. */
22060_ACEOF
22061cat confdefs.h >>conftest.$ac_ext
22062cat >>conftest.$ac_ext <<_ACEOF
22063/* end confdefs.h. */
22064
38d24731 22065/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
22066#ifdef __cplusplus
22067extern "C"
22068#endif
38d24731
RW
22069/* We use char because int might match the return type of a gcc2
22070 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22071char coshf ();
22072int
22073main ()
22074{
38d24731 22075coshf ();
1409cd0b
FXC
22076 ;
22077 return 0;
22078}
22079_ACEOF
22080rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
22081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22082 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
22083 ac_status=$?
22084 grep -v '^ *+' conftest.er1 >conftest.err
22085 rm -f conftest.er1
22086 cat conftest.err >&5
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
22088 (exit $ac_status); } &&
22089 { ac_try='test -z "$ac_c_werror_flag"
22090 || test ! -s conftest.err'
22091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22092 (eval $ac_try) 2>&5
22093 ac_status=$?
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); }; } &&
22096 { ac_try='test -s conftest$ac_exeext'
22097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22098 (eval $ac_try) 2>&5
22099 ac_status=$?
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); }; }; then
1409cd0b
FXC
22102 ac_cv_lib_m_coshf=yes
22103else
22104 echo "$as_me: failed program was:" >&5
22105sed 's/^/| /' conftest.$ac_ext >&5
22106
38d24731 22107ac_cv_lib_m_coshf=no
1409cd0b 22108fi
38d24731 22109rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
22110 conftest$ac_exeext conftest.$ac_ext
22111LIBS=$ac_check_lib_save_LIBS
22112fi
38d24731
RW
22113echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5
22114echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6
1409cd0b
FXC
22115if test $ac_cv_lib_m_coshf = yes; then
22116
22117cat >>confdefs.h <<\_ACEOF
22118#define HAVE_COSHF 1
22119_ACEOF
22120
22121fi
22122
38d24731
RW
22123echo "$as_me:$LINENO: checking for cosh in -lm" >&5
22124echo $ECHO_N "checking for cosh in -lm... $ECHO_C" >&6
1409cd0b
FXC
22125if test "${ac_cv_lib_m_cosh+set}" = set; then
22126 echo $ECHO_N "(cached) $ECHO_C" >&6
22127else
22128 ac_check_lib_save_LIBS=$LIBS
22129LIBS="-lm $LIBS"
22130if test x$gcc_no_link = xyes; then
22131 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22132echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22133 { (exit 1); exit 1; }; }
22134fi
22135cat >conftest.$ac_ext <<_ACEOF
22136/* confdefs.h. */
22137_ACEOF
22138cat confdefs.h >>conftest.$ac_ext
22139cat >>conftest.$ac_ext <<_ACEOF
22140/* end confdefs.h. */
22141
38d24731 22142/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
22143#ifdef __cplusplus
22144extern "C"
22145#endif
38d24731
RW
22146/* We use char because int might match the return type of a gcc2
22147 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22148char cosh ();
22149int
22150main ()
22151{
38d24731 22152cosh ();
1409cd0b
FXC
22153 ;
22154 return 0;
22155}
22156_ACEOF
22157rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
22158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22159 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
22160 ac_status=$?
22161 grep -v '^ *+' conftest.er1 >conftest.err
22162 rm -f conftest.er1
22163 cat conftest.err >&5
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
22165 (exit $ac_status); } &&
22166 { ac_try='test -z "$ac_c_werror_flag"
22167 || test ! -s conftest.err'
22168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22169 (eval $ac_try) 2>&5
22170 ac_status=$?
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); }; } &&
22173 { ac_try='test -s conftest$ac_exeext'
22174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22175 (eval $ac_try) 2>&5
22176 ac_status=$?
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); }; }; then
1409cd0b
FXC
22179 ac_cv_lib_m_cosh=yes
22180else
22181 echo "$as_me: failed program was:" >&5
22182sed 's/^/| /' conftest.$ac_ext >&5
22183
38d24731 22184ac_cv_lib_m_cosh=no
1409cd0b 22185fi
38d24731 22186rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
22187 conftest$ac_exeext conftest.$ac_ext
22188LIBS=$ac_check_lib_save_LIBS
22189fi
38d24731
RW
22190echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosh" >&5
22191echo "${ECHO_T}$ac_cv_lib_m_cosh" >&6
1409cd0b
FXC
22192if test $ac_cv_lib_m_cosh = yes; then
22193
22194cat >>confdefs.h <<\_ACEOF
22195#define HAVE_COSH 1
22196_ACEOF
22197
22198fi
22199
38d24731
RW
22200echo "$as_me:$LINENO: checking for coshl in -lm" >&5
22201echo $ECHO_N "checking for coshl in -lm... $ECHO_C" >&6
1409cd0b
FXC
22202if test "${ac_cv_lib_m_coshl+set}" = set; then
22203 echo $ECHO_N "(cached) $ECHO_C" >&6
22204else
22205 ac_check_lib_save_LIBS=$LIBS
22206LIBS="-lm $LIBS"
22207if test x$gcc_no_link = xyes; then
22208 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22209echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22210 { (exit 1); exit 1; }; }
22211fi
22212cat >conftest.$ac_ext <<_ACEOF
22213/* confdefs.h. */
22214_ACEOF
22215cat confdefs.h >>conftest.$ac_ext
22216cat >>conftest.$ac_ext <<_ACEOF
22217/* end confdefs.h. */
22218
38d24731 22219/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
22220#ifdef __cplusplus
22221extern "C"
22222#endif
38d24731
RW
22223/* We use char because int might match the return type of a gcc2
22224 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22225char coshl ();
22226int
22227main ()
22228{
38d24731 22229coshl ();
1409cd0b
FXC
22230 ;
22231 return 0;
22232}
22233_ACEOF
22234rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
22235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22236 (eval $ac_link) 2>conftest.er1
22237 ac_status=$?
22238 grep -v '^ *+' conftest.er1 >conftest.err
22239 rm -f conftest.er1
22240 cat conftest.err >&5
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); } &&
22243 { ac_try='test -z "$ac_c_werror_flag"
22244 || test ! -s conftest.err'
22245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22246 (eval $ac_try) 2>&5
22247 ac_status=$?
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); }; } &&
22250 { ac_try='test -s conftest$ac_exeext'
22251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22252 (eval $ac_try) 2>&5
1409cd0b 22253 ac_status=$?
1409cd0b 22254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731 22255 (exit $ac_status); }; }; then
1409cd0b
FXC
22256 ac_cv_lib_m_coshl=yes
22257else
22258 echo "$as_me: failed program was:" >&5
22259sed 's/^/| /' conftest.$ac_ext >&5
22260
38d24731 22261ac_cv_lib_m_coshl=no
1409cd0b 22262fi
38d24731 22263rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
22264 conftest$ac_exeext conftest.$ac_ext
22265LIBS=$ac_check_lib_save_LIBS
22266fi
38d24731
RW
22267echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshl" >&5
22268echo "${ECHO_T}$ac_cv_lib_m_coshl" >&6
1409cd0b
FXC
22269if test $ac_cv_lib_m_coshl = yes; then
22270
22271cat >>confdefs.h <<\_ACEOF
22272#define HAVE_COSHL 1
22273_ACEOF
22274
22275fi
22276
38d24731
RW
22277echo "$as_me:$LINENO: checking for ccoshf in -lm" >&5
22278echo $ECHO_N "checking for ccoshf in -lm... $ECHO_C" >&6
1409cd0b
FXC
22279if test "${ac_cv_lib_m_ccoshf+set}" = set; then
22280 echo $ECHO_N "(cached) $ECHO_C" >&6
22281else
22282 ac_check_lib_save_LIBS=$LIBS
22283LIBS="-lm $LIBS"
22284if test x$gcc_no_link = xyes; then
22285 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22286echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22287 { (exit 1); exit 1; }; }
22288fi
22289cat >conftest.$ac_ext <<_ACEOF
22290/* confdefs.h. */
22291_ACEOF
22292cat confdefs.h >>conftest.$ac_ext
22293cat >>conftest.$ac_ext <<_ACEOF
22294/* end confdefs.h. */
22295
38d24731 22296/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
22297#ifdef __cplusplus
22298extern "C"
22299#endif
38d24731
RW
22300/* We use char because int might match the return type of a gcc2
22301 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22302char ccoshf ();
22303int
22304main ()
22305{
38d24731 22306ccoshf ();
1409cd0b
FXC
22307 ;
22308 return 0;
22309}
22310_ACEOF
22311rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
22312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22313 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
22314 ac_status=$?
22315 grep -v '^ *+' conftest.er1 >conftest.err
22316 rm -f conftest.er1
22317 cat conftest.err >&5
22318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
22319 (exit $ac_status); } &&
22320 { ac_try='test -z "$ac_c_werror_flag"
22321 || test ! -s conftest.err'
22322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22323 (eval $ac_try) 2>&5
22324 ac_status=$?
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); }; } &&
22327 { ac_try='test -s conftest$ac_exeext'
22328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329 (eval $ac_try) 2>&5
22330 ac_status=$?
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); }; }; then
1409cd0b
FXC
22333 ac_cv_lib_m_ccoshf=yes
22334else
22335 echo "$as_me: failed program was:" >&5
22336sed 's/^/| /' conftest.$ac_ext >&5
22337
38d24731 22338ac_cv_lib_m_ccoshf=no
1409cd0b 22339fi
38d24731 22340rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
22341 conftest$ac_exeext conftest.$ac_ext
22342LIBS=$ac_check_lib_save_LIBS
22343fi
38d24731
RW
22344echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccoshf" >&5
22345echo "${ECHO_T}$ac_cv_lib_m_ccoshf" >&6
1409cd0b
FXC
22346if test $ac_cv_lib_m_ccoshf = yes; then
22347
22348cat >>confdefs.h <<\_ACEOF
22349#define HAVE_CCOSHF 1
22350_ACEOF
22351
22352fi
22353
38d24731
RW
22354echo "$as_me:$LINENO: checking for ccosh in -lm" >&5
22355echo $ECHO_N "checking for ccosh in -lm... $ECHO_C" >&6
1409cd0b
FXC
22356if test "${ac_cv_lib_m_ccosh+set}" = set; then
22357 echo $ECHO_N "(cached) $ECHO_C" >&6
22358else
22359 ac_check_lib_save_LIBS=$LIBS
22360LIBS="-lm $LIBS"
22361if test x$gcc_no_link = xyes; then
22362 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22363echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22364 { (exit 1); exit 1; }; }
22365fi
22366cat >conftest.$ac_ext <<_ACEOF
22367/* confdefs.h. */
22368_ACEOF
22369cat confdefs.h >>conftest.$ac_ext
22370cat >>conftest.$ac_ext <<_ACEOF
22371/* end confdefs.h. */
22372
38d24731 22373/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
22374#ifdef __cplusplus
22375extern "C"
22376#endif
38d24731
RW
22377/* We use char because int might match the return type of a gcc2
22378 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22379char ccosh ();
22380int
22381main ()
22382{
38d24731 22383ccosh ();
1409cd0b
FXC
22384 ;
22385 return 0;
22386}
22387_ACEOF
22388rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
22389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22390 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
22391 ac_status=$?
22392 grep -v '^ *+' conftest.er1 >conftest.err
22393 rm -f conftest.er1
22394 cat conftest.err >&5
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
22396 (exit $ac_status); } &&
22397 { ac_try='test -z "$ac_c_werror_flag"
22398 || test ! -s conftest.err'
22399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22400 (eval $ac_try) 2>&5
22401 ac_status=$?
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); }; } &&
22404 { ac_try='test -s conftest$ac_exeext'
22405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22406 (eval $ac_try) 2>&5
22407 ac_status=$?
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); }; }; then
1409cd0b
FXC
22410 ac_cv_lib_m_ccosh=yes
22411else
22412 echo "$as_me: failed program was:" >&5
22413sed 's/^/| /' conftest.$ac_ext >&5
22414
38d24731 22415ac_cv_lib_m_ccosh=no
1409cd0b 22416fi
38d24731 22417rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
22418 conftest$ac_exeext conftest.$ac_ext
22419LIBS=$ac_check_lib_save_LIBS
22420fi
38d24731
RW
22421echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccosh" >&5
22422echo "${ECHO_T}$ac_cv_lib_m_ccosh" >&6
1409cd0b
FXC
22423if test $ac_cv_lib_m_ccosh = yes; then
22424
22425cat >>confdefs.h <<\_ACEOF
22426#define HAVE_CCOSH 1
22427_ACEOF
22428
22429fi
22430
38d24731
RW
22431echo "$as_me:$LINENO: checking for ccoshl in -lm" >&5
22432echo $ECHO_N "checking for ccoshl in -lm... $ECHO_C" >&6
1409cd0b
FXC
22433if test "${ac_cv_lib_m_ccoshl+set}" = set; then
22434 echo $ECHO_N "(cached) $ECHO_C" >&6
22435else
22436 ac_check_lib_save_LIBS=$LIBS
22437LIBS="-lm $LIBS"
22438if test x$gcc_no_link = xyes; then
22439 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22440echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22441 { (exit 1); exit 1; }; }
22442fi
22443cat >conftest.$ac_ext <<_ACEOF
22444/* confdefs.h. */
22445_ACEOF
22446cat confdefs.h >>conftest.$ac_ext
22447cat >>conftest.$ac_ext <<_ACEOF
22448/* end confdefs.h. */
22449
38d24731 22450/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
22451#ifdef __cplusplus
22452extern "C"
22453#endif
38d24731
RW
22454/* We use char because int might match the return type of a gcc2
22455 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22456char ccoshl ();
22457int
22458main ()
22459{
38d24731 22460ccoshl ();
1409cd0b
FXC
22461 ;
22462 return 0;
22463}
22464_ACEOF
22465rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
22466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22467 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
22468 ac_status=$?
22469 grep -v '^ *+' conftest.er1 >conftest.err
22470 rm -f conftest.er1
22471 cat conftest.err >&5
22472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
22473 (exit $ac_status); } &&
22474 { ac_try='test -z "$ac_c_werror_flag"
22475 || test ! -s conftest.err'
22476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22477 (eval $ac_try) 2>&5
22478 ac_status=$?
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); }; } &&
22481 { ac_try='test -s conftest$ac_exeext'
22482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22483 (eval $ac_try) 2>&5
22484 ac_status=$?
22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); }; }; then
1409cd0b
FXC
22487 ac_cv_lib_m_ccoshl=yes
22488else
22489 echo "$as_me: failed program was:" >&5
22490sed 's/^/| /' conftest.$ac_ext >&5
22491
38d24731 22492ac_cv_lib_m_ccoshl=no
1409cd0b 22493fi
38d24731 22494rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
22495 conftest$ac_exeext conftest.$ac_ext
22496LIBS=$ac_check_lib_save_LIBS
22497fi
38d24731
RW
22498echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccoshl" >&5
22499echo "${ECHO_T}$ac_cv_lib_m_ccoshl" >&6
1409cd0b
FXC
22500if test $ac_cv_lib_m_ccoshl = yes; then
22501
22502cat >>confdefs.h <<\_ACEOF
22503#define HAVE_CCOSHL 1
22504_ACEOF
22505
22506fi
22507
38d24731
RW
22508echo "$as_me:$LINENO: checking for expf in -lm" >&5
22509echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6
1409cd0b
FXC
22510if test "${ac_cv_lib_m_expf+set}" = set; then
22511 echo $ECHO_N "(cached) $ECHO_C" >&6
22512else
22513 ac_check_lib_save_LIBS=$LIBS
22514LIBS="-lm $LIBS"
22515if test x$gcc_no_link = xyes; then
22516 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22517echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22518 { (exit 1); exit 1; }; }
22519fi
22520cat >conftest.$ac_ext <<_ACEOF
22521/* confdefs.h. */
22522_ACEOF
22523cat confdefs.h >>conftest.$ac_ext
22524cat >>conftest.$ac_ext <<_ACEOF
22525/* end confdefs.h. */
22526
38d24731 22527/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
22528#ifdef __cplusplus
22529extern "C"
22530#endif
38d24731
RW
22531/* We use char because int might match the return type of a gcc2
22532 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22533char expf ();
22534int
22535main ()
22536{
38d24731 22537expf ();
1409cd0b
FXC
22538 ;
22539 return 0;
22540}
22541_ACEOF
22542rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
22543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22544 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
22545 ac_status=$?
22546 grep -v '^ *+' conftest.er1 >conftest.err
22547 rm -f conftest.er1
22548 cat conftest.err >&5
22549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
22550 (exit $ac_status); } &&
22551 { ac_try='test -z "$ac_c_werror_flag"
22552 || test ! -s conftest.err'
22553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22554 (eval $ac_try) 2>&5
22555 ac_status=$?
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); }; } &&
22558 { ac_try='test -s conftest$ac_exeext'
22559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560 (eval $ac_try) 2>&5
22561 ac_status=$?
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); }; }; then
1409cd0b
FXC
22564 ac_cv_lib_m_expf=yes
22565else
22566 echo "$as_me: failed program was:" >&5
22567sed 's/^/| /' conftest.$ac_ext >&5
22568
38d24731 22569ac_cv_lib_m_expf=no
1409cd0b 22570fi
38d24731 22571rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
22572 conftest$ac_exeext conftest.$ac_ext
22573LIBS=$ac_check_lib_save_LIBS
22574fi
38d24731
RW
22575echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5
22576echo "${ECHO_T}$ac_cv_lib_m_expf" >&6
1409cd0b
FXC
22577if test $ac_cv_lib_m_expf = yes; then
22578
22579cat >>confdefs.h <<\_ACEOF
22580#define HAVE_EXPF 1
22581_ACEOF
22582
22583fi
22584
38d24731
RW
22585echo "$as_me:$LINENO: checking for exp in -lm" >&5
22586echo $ECHO_N "checking for exp in -lm... $ECHO_C" >&6
1409cd0b
FXC
22587if test "${ac_cv_lib_m_exp+set}" = set; then
22588 echo $ECHO_N "(cached) $ECHO_C" >&6
22589else
22590 ac_check_lib_save_LIBS=$LIBS
22591LIBS="-lm $LIBS"
22592if test x$gcc_no_link = xyes; then
22593 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22594echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22595 { (exit 1); exit 1; }; }
22596fi
22597cat >conftest.$ac_ext <<_ACEOF
22598/* confdefs.h. */
22599_ACEOF
22600cat confdefs.h >>conftest.$ac_ext
22601cat >>conftest.$ac_ext <<_ACEOF
22602/* end confdefs.h. */
22603
38d24731 22604/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
22605#ifdef __cplusplus
22606extern "C"
22607#endif
38d24731
RW
22608/* We use char because int might match the return type of a gcc2
22609 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22610char exp ();
22611int
22612main ()
22613{
38d24731 22614exp ();
1409cd0b
FXC
22615 ;
22616 return 0;
22617}
22618_ACEOF
22619rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
22620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22621 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
22622 ac_status=$?
22623 grep -v '^ *+' conftest.er1 >conftest.err
22624 rm -f conftest.er1
22625 cat conftest.err >&5
22626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
22627 (exit $ac_status); } &&
22628 { ac_try='test -z "$ac_c_werror_flag"
22629 || test ! -s conftest.err'
22630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22631 (eval $ac_try) 2>&5
22632 ac_status=$?
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); }; } &&
22635 { ac_try='test -s conftest$ac_exeext'
22636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22637 (eval $ac_try) 2>&5
22638 ac_status=$?
22639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640 (exit $ac_status); }; }; then
1409cd0b
FXC
22641 ac_cv_lib_m_exp=yes
22642else
22643 echo "$as_me: failed program was:" >&5
22644sed 's/^/| /' conftest.$ac_ext >&5
22645
38d24731 22646ac_cv_lib_m_exp=no
1409cd0b 22647fi
38d24731 22648rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
22649 conftest$ac_exeext conftest.$ac_ext
22650LIBS=$ac_check_lib_save_LIBS
22651fi
38d24731
RW
22652echo "$as_me:$LINENO: result: $ac_cv_lib_m_exp" >&5
22653echo "${ECHO_T}$ac_cv_lib_m_exp" >&6
1409cd0b
FXC
22654if test $ac_cv_lib_m_exp = yes; then
22655
22656cat >>confdefs.h <<\_ACEOF
22657#define HAVE_EXP 1
22658_ACEOF
22659
22660fi
22661
38d24731
RW
22662echo "$as_me:$LINENO: checking for expl in -lm" >&5
22663echo $ECHO_N "checking for expl in -lm... $ECHO_C" >&6
1409cd0b
FXC
22664if test "${ac_cv_lib_m_expl+set}" = set; then
22665 echo $ECHO_N "(cached) $ECHO_C" >&6
22666else
22667 ac_check_lib_save_LIBS=$LIBS
22668LIBS="-lm $LIBS"
22669if test x$gcc_no_link = xyes; then
22670 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22671echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22672 { (exit 1); exit 1; }; }
22673fi
22674cat >conftest.$ac_ext <<_ACEOF
22675/* confdefs.h. */
22676_ACEOF
22677cat confdefs.h >>conftest.$ac_ext
22678cat >>conftest.$ac_ext <<_ACEOF
22679/* end confdefs.h. */
22680
38d24731 22681/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
22682#ifdef __cplusplus
22683extern "C"
22684#endif
38d24731
RW
22685/* We use char because int might match the return type of a gcc2
22686 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22687char expl ();
22688int
22689main ()
22690{
38d24731 22691expl ();
1409cd0b
FXC
22692 ;
22693 return 0;
22694}
22695_ACEOF
22696rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
22697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22698 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
22699 ac_status=$?
22700 grep -v '^ *+' conftest.er1 >conftest.err
22701 rm -f conftest.er1
22702 cat conftest.err >&5
22703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
22704 (exit $ac_status); } &&
22705 { ac_try='test -z "$ac_c_werror_flag"
22706 || test ! -s conftest.err'
22707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22708 (eval $ac_try) 2>&5
22709 ac_status=$?
22710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); }; } &&
22712 { ac_try='test -s conftest$ac_exeext'
22713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22714 (eval $ac_try) 2>&5
22715 ac_status=$?
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); }; }; then
1409cd0b
FXC
22718 ac_cv_lib_m_expl=yes
22719else
22720 echo "$as_me: failed program was:" >&5
22721sed 's/^/| /' conftest.$ac_ext >&5
22722
38d24731 22723ac_cv_lib_m_expl=no
1409cd0b 22724fi
38d24731 22725rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
22726 conftest$ac_exeext conftest.$ac_ext
22727LIBS=$ac_check_lib_save_LIBS
22728fi
38d24731
RW
22729echo "$as_me:$LINENO: result: $ac_cv_lib_m_expl" >&5
22730echo "${ECHO_T}$ac_cv_lib_m_expl" >&6
1409cd0b
FXC
22731if test $ac_cv_lib_m_expl = yes; then
22732
22733cat >>confdefs.h <<\_ACEOF
22734#define HAVE_EXPL 1
22735_ACEOF
22736
22737fi
22738
38d24731
RW
22739echo "$as_me:$LINENO: checking for cexpf in -lm" >&5
22740echo $ECHO_N "checking for cexpf in -lm... $ECHO_C" >&6
1409cd0b
FXC
22741if test "${ac_cv_lib_m_cexpf+set}" = set; then
22742 echo $ECHO_N "(cached) $ECHO_C" >&6
22743else
22744 ac_check_lib_save_LIBS=$LIBS
22745LIBS="-lm $LIBS"
22746if test x$gcc_no_link = xyes; then
22747 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22748echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22749 { (exit 1); exit 1; }; }
22750fi
22751cat >conftest.$ac_ext <<_ACEOF
22752/* confdefs.h. */
22753_ACEOF
22754cat confdefs.h >>conftest.$ac_ext
22755cat >>conftest.$ac_ext <<_ACEOF
22756/* end confdefs.h. */
22757
38d24731 22758/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
22759#ifdef __cplusplus
22760extern "C"
22761#endif
38d24731
RW
22762/* We use char because int might match the return type of a gcc2
22763 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22764char cexpf ();
22765int
22766main ()
22767{
38d24731 22768cexpf ();
1409cd0b
FXC
22769 ;
22770 return 0;
22771}
22772_ACEOF
22773rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
22774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22775 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
22776 ac_status=$?
22777 grep -v '^ *+' conftest.er1 >conftest.err
22778 rm -f conftest.er1
22779 cat conftest.err >&5
22780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
22781 (exit $ac_status); } &&
22782 { ac_try='test -z "$ac_c_werror_flag"
22783 || test ! -s conftest.err'
22784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22785 (eval $ac_try) 2>&5
22786 ac_status=$?
22787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 (exit $ac_status); }; } &&
22789 { ac_try='test -s conftest$ac_exeext'
22790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22791 (eval $ac_try) 2>&5
22792 ac_status=$?
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); }; }; then
1409cd0b
FXC
22795 ac_cv_lib_m_cexpf=yes
22796else
22797 echo "$as_me: failed program was:" >&5
22798sed 's/^/| /' conftest.$ac_ext >&5
22799
38d24731 22800ac_cv_lib_m_cexpf=no
1409cd0b 22801fi
38d24731 22802rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
22803 conftest$ac_exeext conftest.$ac_ext
22804LIBS=$ac_check_lib_save_LIBS
22805fi
38d24731
RW
22806echo "$as_me:$LINENO: result: $ac_cv_lib_m_cexpf" >&5
22807echo "${ECHO_T}$ac_cv_lib_m_cexpf" >&6
1409cd0b
FXC
22808if test $ac_cv_lib_m_cexpf = yes; then
22809
22810cat >>confdefs.h <<\_ACEOF
22811#define HAVE_CEXPF 1
22812_ACEOF
22813
22814fi
22815
38d24731
RW
22816echo "$as_me:$LINENO: checking for cexp in -lm" >&5
22817echo $ECHO_N "checking for cexp in -lm... $ECHO_C" >&6
1409cd0b
FXC
22818if test "${ac_cv_lib_m_cexp+set}" = set; then
22819 echo $ECHO_N "(cached) $ECHO_C" >&6
22820else
22821 ac_check_lib_save_LIBS=$LIBS
22822LIBS="-lm $LIBS"
22823if test x$gcc_no_link = xyes; then
22824 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22825echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22826 { (exit 1); exit 1; }; }
22827fi
22828cat >conftest.$ac_ext <<_ACEOF
22829/* confdefs.h. */
22830_ACEOF
22831cat confdefs.h >>conftest.$ac_ext
22832cat >>conftest.$ac_ext <<_ACEOF
22833/* end confdefs.h. */
22834
38d24731 22835/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
22836#ifdef __cplusplus
22837extern "C"
22838#endif
38d24731
RW
22839/* We use char because int might match the return type of a gcc2
22840 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22841char cexp ();
22842int
22843main ()
22844{
38d24731 22845cexp ();
1409cd0b
FXC
22846 ;
22847 return 0;
22848}
22849_ACEOF
22850rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
22851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22852 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
22853 ac_status=$?
22854 grep -v '^ *+' conftest.er1 >conftest.err
22855 rm -f conftest.er1
22856 cat conftest.err >&5
22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
22858 (exit $ac_status); } &&
22859 { ac_try='test -z "$ac_c_werror_flag"
22860 || test ! -s conftest.err'
22861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22862 (eval $ac_try) 2>&5
22863 ac_status=$?
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); }; } &&
22866 { ac_try='test -s conftest$ac_exeext'
22867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22868 (eval $ac_try) 2>&5
22869 ac_status=$?
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); }; }; then
1409cd0b
FXC
22872 ac_cv_lib_m_cexp=yes
22873else
22874 echo "$as_me: failed program was:" >&5
22875sed 's/^/| /' conftest.$ac_ext >&5
22876
38d24731 22877ac_cv_lib_m_cexp=no
1409cd0b 22878fi
38d24731 22879rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
22880 conftest$ac_exeext conftest.$ac_ext
22881LIBS=$ac_check_lib_save_LIBS
22882fi
38d24731
RW
22883echo "$as_me:$LINENO: result: $ac_cv_lib_m_cexp" >&5
22884echo "${ECHO_T}$ac_cv_lib_m_cexp" >&6
1409cd0b
FXC
22885if test $ac_cv_lib_m_cexp = yes; then
22886
22887cat >>confdefs.h <<\_ACEOF
22888#define HAVE_CEXP 1
22889_ACEOF
22890
22891fi
22892
38d24731
RW
22893echo "$as_me:$LINENO: checking for cexpl in -lm" >&5
22894echo $ECHO_N "checking for cexpl in -lm... $ECHO_C" >&6
1409cd0b
FXC
22895if test "${ac_cv_lib_m_cexpl+set}" = set; then
22896 echo $ECHO_N "(cached) $ECHO_C" >&6
22897else
22898 ac_check_lib_save_LIBS=$LIBS
22899LIBS="-lm $LIBS"
22900if test x$gcc_no_link = xyes; then
22901 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22902echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22903 { (exit 1); exit 1; }; }
22904fi
22905cat >conftest.$ac_ext <<_ACEOF
22906/* confdefs.h. */
22907_ACEOF
22908cat confdefs.h >>conftest.$ac_ext
22909cat >>conftest.$ac_ext <<_ACEOF
22910/* end confdefs.h. */
22911
38d24731 22912/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
22913#ifdef __cplusplus
22914extern "C"
22915#endif
38d24731
RW
22916/* We use char because int might match the return type of a gcc2
22917 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22918char cexpl ();
22919int
22920main ()
22921{
38d24731 22922cexpl ();
1409cd0b
FXC
22923 ;
22924 return 0;
22925}
22926_ACEOF
22927rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
22928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22929 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
22930 ac_status=$?
22931 grep -v '^ *+' conftest.er1 >conftest.err
22932 rm -f conftest.er1
22933 cat conftest.err >&5
22934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
22935 (exit $ac_status); } &&
22936 { ac_try='test -z "$ac_c_werror_flag"
22937 || test ! -s conftest.err'
22938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22939 (eval $ac_try) 2>&5
22940 ac_status=$?
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); }; } &&
22943 { ac_try='test -s conftest$ac_exeext'
22944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22945 (eval $ac_try) 2>&5
22946 ac_status=$?
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); }; }; then
1409cd0b
FXC
22949 ac_cv_lib_m_cexpl=yes
22950else
22951 echo "$as_me: failed program was:" >&5
22952sed 's/^/| /' conftest.$ac_ext >&5
22953
38d24731 22954ac_cv_lib_m_cexpl=no
1409cd0b 22955fi
38d24731 22956rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
22957 conftest$ac_exeext conftest.$ac_ext
22958LIBS=$ac_check_lib_save_LIBS
22959fi
38d24731
RW
22960echo "$as_me:$LINENO: result: $ac_cv_lib_m_cexpl" >&5
22961echo "${ECHO_T}$ac_cv_lib_m_cexpl" >&6
1409cd0b
FXC
22962if test $ac_cv_lib_m_cexpl = yes; then
22963
22964cat >>confdefs.h <<\_ACEOF
22965#define HAVE_CEXPL 1
22966_ACEOF
22967
22968fi
22969
38d24731
RW
22970echo "$as_me:$LINENO: checking for fabsf in -lm" >&5
22971echo $ECHO_N "checking for fabsf in -lm... $ECHO_C" >&6
1409cd0b
FXC
22972if test "${ac_cv_lib_m_fabsf+set}" = set; then
22973 echo $ECHO_N "(cached) $ECHO_C" >&6
22974else
22975 ac_check_lib_save_LIBS=$LIBS
22976LIBS="-lm $LIBS"
22977if test x$gcc_no_link = xyes; then
22978 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22979echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22980 { (exit 1); exit 1; }; }
22981fi
22982cat >conftest.$ac_ext <<_ACEOF
22983/* confdefs.h. */
22984_ACEOF
22985cat confdefs.h >>conftest.$ac_ext
22986cat >>conftest.$ac_ext <<_ACEOF
22987/* end confdefs.h. */
22988
38d24731 22989/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
22990#ifdef __cplusplus
22991extern "C"
22992#endif
38d24731
RW
22993/* We use char because int might match the return type of a gcc2
22994 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22995char fabsf ();
22996int
22997main ()
22998{
38d24731 22999fabsf ();
1409cd0b
FXC
23000 ;
23001 return 0;
23002}
23003_ACEOF
23004rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
23005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23006 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
23007 ac_status=$?
23008 grep -v '^ *+' conftest.er1 >conftest.err
23009 rm -f conftest.er1
23010 cat conftest.err >&5
23011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
23012 (exit $ac_status); } &&
23013 { ac_try='test -z "$ac_c_werror_flag"
23014 || test ! -s conftest.err'
23015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23016 (eval $ac_try) 2>&5
23017 ac_status=$?
23018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); }; } &&
23020 { ac_try='test -s conftest$ac_exeext'
23021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23022 (eval $ac_try) 2>&5
23023 ac_status=$?
23024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); }; }; then
1409cd0b
FXC
23026 ac_cv_lib_m_fabsf=yes
23027else
23028 echo "$as_me: failed program was:" >&5
23029sed 's/^/| /' conftest.$ac_ext >&5
23030
38d24731 23031ac_cv_lib_m_fabsf=no
1409cd0b 23032fi
38d24731 23033rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
23034 conftest$ac_exeext conftest.$ac_ext
23035LIBS=$ac_check_lib_save_LIBS
23036fi
38d24731
RW
23037echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsf" >&5
23038echo "${ECHO_T}$ac_cv_lib_m_fabsf" >&6
1409cd0b
FXC
23039if test $ac_cv_lib_m_fabsf = yes; then
23040
23041cat >>confdefs.h <<\_ACEOF
23042#define HAVE_FABSF 1
23043_ACEOF
23044
23045fi
23046
38d24731
RW
23047echo "$as_me:$LINENO: checking for fabs in -lm" >&5
23048echo $ECHO_N "checking for fabs in -lm... $ECHO_C" >&6
1409cd0b
FXC
23049if test "${ac_cv_lib_m_fabs+set}" = set; then
23050 echo $ECHO_N "(cached) $ECHO_C" >&6
23051else
23052 ac_check_lib_save_LIBS=$LIBS
23053LIBS="-lm $LIBS"
23054if test x$gcc_no_link = xyes; then
23055 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23056echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23057 { (exit 1); exit 1; }; }
23058fi
23059cat >conftest.$ac_ext <<_ACEOF
23060/* confdefs.h. */
23061_ACEOF
23062cat confdefs.h >>conftest.$ac_ext
23063cat >>conftest.$ac_ext <<_ACEOF
23064/* end confdefs.h. */
23065
38d24731 23066/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
23067#ifdef __cplusplus
23068extern "C"
23069#endif
38d24731
RW
23070/* We use char because int might match the return type of a gcc2
23071 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
23072char fabs ();
23073int
23074main ()
23075{
38d24731 23076fabs ();
1409cd0b
FXC
23077 ;
23078 return 0;
23079}
23080_ACEOF
23081rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
23082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23083 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
23084 ac_status=$?
23085 grep -v '^ *+' conftest.er1 >conftest.err
23086 rm -f conftest.er1
23087 cat conftest.err >&5
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
23089 (exit $ac_status); } &&
23090 { ac_try='test -z "$ac_c_werror_flag"
23091 || test ! -s conftest.err'
23092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23093 (eval $ac_try) 2>&5
23094 ac_status=$?
23095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096 (exit $ac_status); }; } &&
23097 { ac_try='test -s conftest$ac_exeext'
23098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23099 (eval $ac_try) 2>&5
23100 ac_status=$?
23101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102 (exit $ac_status); }; }; then
1409cd0b
FXC
23103 ac_cv_lib_m_fabs=yes
23104else
23105 echo "$as_me: failed program was:" >&5
23106sed 's/^/| /' conftest.$ac_ext >&5
23107
38d24731 23108ac_cv_lib_m_fabs=no
1409cd0b 23109fi
38d24731 23110rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
23111 conftest$ac_exeext conftest.$ac_ext
23112LIBS=$ac_check_lib_save_LIBS
23113fi
38d24731
RW
23114echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabs" >&5
23115echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6
1409cd0b
FXC
23116if test $ac_cv_lib_m_fabs = yes; then
23117
23118cat >>confdefs.h <<\_ACEOF
23119#define HAVE_FABS 1
23120_ACEOF
23121
23122fi
23123
38d24731
RW
23124echo "$as_me:$LINENO: checking for fabsl in -lm" >&5
23125echo $ECHO_N "checking for fabsl in -lm... $ECHO_C" >&6
1409cd0b
FXC
23126if test "${ac_cv_lib_m_fabsl+set}" = set; then
23127 echo $ECHO_N "(cached) $ECHO_C" >&6
23128else
23129 ac_check_lib_save_LIBS=$LIBS
23130LIBS="-lm $LIBS"
23131if test x$gcc_no_link = xyes; then
23132 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23133echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23134 { (exit 1); exit 1; }; }
23135fi
23136cat >conftest.$ac_ext <<_ACEOF
23137/* confdefs.h. */
23138_ACEOF
23139cat confdefs.h >>conftest.$ac_ext
23140cat >>conftest.$ac_ext <<_ACEOF
23141/* end confdefs.h. */
23142
38d24731 23143/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
23144#ifdef __cplusplus
23145extern "C"
23146#endif
38d24731
RW
23147/* We use char because int might match the return type of a gcc2
23148 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
23149char fabsl ();
23150int
23151main ()
23152{
38d24731 23153fabsl ();
1409cd0b
FXC
23154 ;
23155 return 0;
23156}
23157_ACEOF
23158rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
23159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23160 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
23161 ac_status=$?
23162 grep -v '^ *+' conftest.er1 >conftest.err
23163 rm -f conftest.er1
23164 cat conftest.err >&5
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
23166 (exit $ac_status); } &&
23167 { ac_try='test -z "$ac_c_werror_flag"
23168 || test ! -s conftest.err'
23169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23170 (eval $ac_try) 2>&5
23171 ac_status=$?
23172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173 (exit $ac_status); }; } &&
23174 { ac_try='test -s conftest$ac_exeext'
23175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23176 (eval $ac_try) 2>&5
23177 ac_status=$?
23178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179 (exit $ac_status); }; }; then
1409cd0b
FXC
23180 ac_cv_lib_m_fabsl=yes
23181else
23182 echo "$as_me: failed program was:" >&5
23183sed 's/^/| /' conftest.$ac_ext >&5
23184
38d24731 23185ac_cv_lib_m_fabsl=no
1409cd0b 23186fi
38d24731 23187rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
23188 conftest$ac_exeext conftest.$ac_ext
23189LIBS=$ac_check_lib_save_LIBS
23190fi
38d24731
RW
23191echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsl" >&5
23192echo "${ECHO_T}$ac_cv_lib_m_fabsl" >&6
1409cd0b
FXC
23193if test $ac_cv_lib_m_fabsl = yes; then
23194
23195cat >>confdefs.h <<\_ACEOF
23196#define HAVE_FABSL 1
23197_ACEOF
23198
23199fi
23200
38d24731
RW
23201echo "$as_me:$LINENO: checking for cabsf in -lm" >&5
23202echo $ECHO_N "checking for cabsf in -lm... $ECHO_C" >&6
1409cd0b
FXC
23203if test "${ac_cv_lib_m_cabsf+set}" = set; then
23204 echo $ECHO_N "(cached) $ECHO_C" >&6
23205else
23206 ac_check_lib_save_LIBS=$LIBS
23207LIBS="-lm $LIBS"
23208if test x$gcc_no_link = xyes; then
23209 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23210echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23211 { (exit 1); exit 1; }; }
23212fi
23213cat >conftest.$ac_ext <<_ACEOF
23214/* confdefs.h. */
23215_ACEOF
23216cat confdefs.h >>conftest.$ac_ext
23217cat >>conftest.$ac_ext <<_ACEOF
23218/* end confdefs.h. */
23219
38d24731 23220/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
23221#ifdef __cplusplus
23222extern "C"
23223#endif
38d24731
RW
23224/* We use char because int might match the return type of a gcc2
23225 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
23226char cabsf ();
23227int
23228main ()
23229{
38d24731 23230cabsf ();
1409cd0b
FXC
23231 ;
23232 return 0;
23233}
23234_ACEOF
23235rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
23236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23237 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
23238 ac_status=$?
23239 grep -v '^ *+' conftest.er1 >conftest.err
23240 rm -f conftest.er1
23241 cat conftest.err >&5
23242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
23243 (exit $ac_status); } &&
23244 { ac_try='test -z "$ac_c_werror_flag"
23245 || test ! -s conftest.err'
23246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23247 (eval $ac_try) 2>&5
23248 ac_status=$?
23249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250 (exit $ac_status); }; } &&
23251 { ac_try='test -s conftest$ac_exeext'
23252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23253 (eval $ac_try) 2>&5
23254 ac_status=$?
23255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23256 (exit $ac_status); }; }; then
1409cd0b
FXC
23257 ac_cv_lib_m_cabsf=yes
23258else
23259 echo "$as_me: failed program was:" >&5
23260sed 's/^/| /' conftest.$ac_ext >&5
23261
38d24731 23262ac_cv_lib_m_cabsf=no
1409cd0b 23263fi
38d24731 23264rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
23265 conftest$ac_exeext conftest.$ac_ext
23266LIBS=$ac_check_lib_save_LIBS
23267fi
38d24731
RW
23268echo "$as_me:$LINENO: result: $ac_cv_lib_m_cabsf" >&5
23269echo "${ECHO_T}$ac_cv_lib_m_cabsf" >&6
1409cd0b
FXC
23270if test $ac_cv_lib_m_cabsf = yes; then
23271
23272cat >>confdefs.h <<\_ACEOF
23273#define HAVE_CABSF 1
23274_ACEOF
23275
23276fi
23277
38d24731
RW
23278echo "$as_me:$LINENO: checking for cabs in -lm" >&5
23279echo $ECHO_N "checking for cabs in -lm... $ECHO_C" >&6
1409cd0b
FXC
23280if test "${ac_cv_lib_m_cabs+set}" = set; then
23281 echo $ECHO_N "(cached) $ECHO_C" >&6
23282else
23283 ac_check_lib_save_LIBS=$LIBS
23284LIBS="-lm $LIBS"
23285if test x$gcc_no_link = xyes; then
23286 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23287echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23288 { (exit 1); exit 1; }; }
23289fi
23290cat >conftest.$ac_ext <<_ACEOF
23291/* confdefs.h. */
23292_ACEOF
23293cat confdefs.h >>conftest.$ac_ext
23294cat >>conftest.$ac_ext <<_ACEOF
23295/* end confdefs.h. */
23296
38d24731 23297/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
23298#ifdef __cplusplus
23299extern "C"
23300#endif
38d24731
RW
23301/* We use char because int might match the return type of a gcc2
23302 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
23303char cabs ();
23304int
23305main ()
23306{
38d24731 23307cabs ();
1409cd0b
FXC
23308 ;
23309 return 0;
23310}
23311_ACEOF
23312rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
23313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23314 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
23315 ac_status=$?
23316 grep -v '^ *+' conftest.er1 >conftest.err
23317 rm -f conftest.er1
23318 cat conftest.err >&5
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
23320 (exit $ac_status); } &&
23321 { ac_try='test -z "$ac_c_werror_flag"
23322 || test ! -s conftest.err'
23323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23324 (eval $ac_try) 2>&5
23325 ac_status=$?
23326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 (exit $ac_status); }; } &&
23328 { ac_try='test -s conftest$ac_exeext'
23329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23330 (eval $ac_try) 2>&5
23331 ac_status=$?
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); }; }; then
1409cd0b
FXC
23334 ac_cv_lib_m_cabs=yes
23335else
23336 echo "$as_me: failed program was:" >&5
23337sed 's/^/| /' conftest.$ac_ext >&5
23338
38d24731 23339ac_cv_lib_m_cabs=no
1409cd0b 23340fi
38d24731 23341rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
23342 conftest$ac_exeext conftest.$ac_ext
23343LIBS=$ac_check_lib_save_LIBS
23344fi
38d24731
RW
23345echo "$as_me:$LINENO: result: $ac_cv_lib_m_cabs" >&5
23346echo "${ECHO_T}$ac_cv_lib_m_cabs" >&6
1409cd0b
FXC
23347if test $ac_cv_lib_m_cabs = yes; then
23348
23349cat >>confdefs.h <<\_ACEOF
23350#define HAVE_CABS 1
23351_ACEOF
23352
23353fi
23354
38d24731
RW
23355echo "$as_me:$LINENO: checking for cabsl in -lm" >&5
23356echo $ECHO_N "checking for cabsl in -lm... $ECHO_C" >&6
1409cd0b
FXC
23357if test "${ac_cv_lib_m_cabsl+set}" = set; then
23358 echo $ECHO_N "(cached) $ECHO_C" >&6
23359else
23360 ac_check_lib_save_LIBS=$LIBS
23361LIBS="-lm $LIBS"
23362if test x$gcc_no_link = xyes; then
23363 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23364echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23365 { (exit 1); exit 1; }; }
23366fi
23367cat >conftest.$ac_ext <<_ACEOF
23368/* confdefs.h. */
23369_ACEOF
23370cat confdefs.h >>conftest.$ac_ext
23371cat >>conftest.$ac_ext <<_ACEOF
23372/* end confdefs.h. */
23373
38d24731 23374/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
23375#ifdef __cplusplus
23376extern "C"
23377#endif
38d24731
RW
23378/* We use char because int might match the return type of a gcc2
23379 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
23380char cabsl ();
23381int
23382main ()
23383{
38d24731 23384cabsl ();
1409cd0b
FXC
23385 ;
23386 return 0;
23387}
23388_ACEOF
23389rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
23390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23391 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
23392 ac_status=$?
23393 grep -v '^ *+' conftest.er1 >conftest.err
23394 rm -f conftest.er1
23395 cat conftest.err >&5
23396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
23397 (exit $ac_status); } &&
23398 { ac_try='test -z "$ac_c_werror_flag"
23399 || test ! -s conftest.err'
23400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23401 (eval $ac_try) 2>&5
23402 ac_status=$?
23403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404 (exit $ac_status); }; } &&
23405 { ac_try='test -s conftest$ac_exeext'
23406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23407 (eval $ac_try) 2>&5
23408 ac_status=$?
23409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410 (exit $ac_status); }; }; then
1409cd0b
FXC
23411 ac_cv_lib_m_cabsl=yes
23412else
23413 echo "$as_me: failed program was:" >&5
23414sed 's/^/| /' conftest.$ac_ext >&5
23415
38d24731 23416ac_cv_lib_m_cabsl=no
1409cd0b 23417fi
38d24731 23418rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
23419 conftest$ac_exeext conftest.$ac_ext
23420LIBS=$ac_check_lib_save_LIBS
23421fi
38d24731
RW
23422echo "$as_me:$LINENO: result: $ac_cv_lib_m_cabsl" >&5
23423echo "${ECHO_T}$ac_cv_lib_m_cabsl" >&6
1409cd0b
FXC
23424if test $ac_cv_lib_m_cabsl = yes; then
23425
23426cat >>confdefs.h <<\_ACEOF
23427#define HAVE_CABSL 1
23428_ACEOF
23429
23430fi
23431
38d24731
RW
23432echo "$as_me:$LINENO: checking for floorf in -lm" >&5
23433echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6
1409cd0b
FXC
23434if test "${ac_cv_lib_m_floorf+set}" = set; then
23435 echo $ECHO_N "(cached) $ECHO_C" >&6
23436else
23437 ac_check_lib_save_LIBS=$LIBS
23438LIBS="-lm $LIBS"
23439if test x$gcc_no_link = xyes; then
23440 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23441echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23442 { (exit 1); exit 1; }; }
23443fi
23444cat >conftest.$ac_ext <<_ACEOF
23445/* confdefs.h. */
23446_ACEOF
23447cat confdefs.h >>conftest.$ac_ext
23448cat >>conftest.$ac_ext <<_ACEOF
23449/* end confdefs.h. */
23450
38d24731 23451/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
23452#ifdef __cplusplus
23453extern "C"
23454#endif
38d24731
RW
23455/* We use char because int might match the return type of a gcc2
23456 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
23457char floorf ();
23458int
23459main ()
23460{
38d24731 23461floorf ();
1409cd0b
FXC
23462 ;
23463 return 0;
23464}
23465_ACEOF
23466rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
23467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23468 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
23469 ac_status=$?
23470 grep -v '^ *+' conftest.er1 >conftest.err
23471 rm -f conftest.er1
23472 cat conftest.err >&5
23473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
23474 (exit $ac_status); } &&
23475 { ac_try='test -z "$ac_c_werror_flag"
23476 || test ! -s conftest.err'
23477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23478 (eval $ac_try) 2>&5
23479 ac_status=$?
23480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481 (exit $ac_status); }; } &&
23482 { ac_try='test -s conftest$ac_exeext'
23483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23484 (eval $ac_try) 2>&5
23485 ac_status=$?
23486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487 (exit $ac_status); }; }; then
1409cd0b
FXC
23488 ac_cv_lib_m_floorf=yes
23489else
23490 echo "$as_me: failed program was:" >&5
23491sed 's/^/| /' conftest.$ac_ext >&5
23492
38d24731 23493ac_cv_lib_m_floorf=no
1409cd0b 23494fi
38d24731 23495rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
23496 conftest$ac_exeext conftest.$ac_ext
23497LIBS=$ac_check_lib_save_LIBS
23498fi
38d24731
RW
23499echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5
23500echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6
1409cd0b
FXC
23501if test $ac_cv_lib_m_floorf = yes; then
23502
23503cat >>confdefs.h <<\_ACEOF
23504#define HAVE_FLOORF 1
23505_ACEOF
23506
23507fi
23508
38d24731
RW
23509echo "$as_me:$LINENO: checking for floor in -lm" >&5
23510echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6
1409cd0b
FXC
23511if test "${ac_cv_lib_m_floor+set}" = set; then
23512 echo $ECHO_N "(cached) $ECHO_C" >&6
23513else
23514 ac_check_lib_save_LIBS=$LIBS
23515LIBS="-lm $LIBS"
23516if test x$gcc_no_link = xyes; then
23517 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23518echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23519 { (exit 1); exit 1; }; }
23520fi
23521cat >conftest.$ac_ext <<_ACEOF
23522/* confdefs.h. */
23523_ACEOF
23524cat confdefs.h >>conftest.$ac_ext
23525cat >>conftest.$ac_ext <<_ACEOF
23526/* end confdefs.h. */
23527
38d24731 23528/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
23529#ifdef __cplusplus
23530extern "C"
23531#endif
38d24731
RW
23532/* We use char because int might match the return type of a gcc2
23533 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
23534char floor ();
23535int
23536main ()
23537{
38d24731 23538floor ();
1409cd0b
FXC
23539 ;
23540 return 0;
23541}
23542_ACEOF
23543rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
23544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23545 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
23546 ac_status=$?
23547 grep -v '^ *+' conftest.er1 >conftest.err
23548 rm -f conftest.er1
23549 cat conftest.err >&5
23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
23551 (exit $ac_status); } &&
23552 { ac_try='test -z "$ac_c_werror_flag"
23553 || test ! -s conftest.err'
23554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23555 (eval $ac_try) 2>&5
23556 ac_status=$?
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); }; } &&
23559 { ac_try='test -s conftest$ac_exeext'
23560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23561 (eval $ac_try) 2>&5
23562 ac_status=$?
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); }; }; then
1409cd0b
FXC
23565 ac_cv_lib_m_floor=yes
23566else
23567 echo "$as_me: failed program was:" >&5
23568sed 's/^/| /' conftest.$ac_ext >&5
23569
38d24731 23570ac_cv_lib_m_floor=no
1409cd0b 23571fi
38d24731 23572rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
23573 conftest$ac_exeext conftest.$ac_ext
23574LIBS=$ac_check_lib_save_LIBS
23575fi
38d24731
RW
23576echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
23577echo "${ECHO_T}$ac_cv_lib_m_floor" >&6
1409cd0b
FXC
23578if test $ac_cv_lib_m_floor = yes; then
23579
23580cat >>confdefs.h <<\_ACEOF
23581#define HAVE_FLOOR 1
23582_ACEOF
23583
23584fi
23585
38d24731
RW
23586echo "$as_me:$LINENO: checking for floorl in -lm" >&5
23587echo $ECHO_N "checking for floorl in -lm... $ECHO_C" >&6
1409cd0b
FXC
23588if test "${ac_cv_lib_m_floorl+set}" = set; then
23589 echo $ECHO_N "(cached) $ECHO_C" >&6
23590else
23591 ac_check_lib_save_LIBS=$LIBS
23592LIBS="-lm $LIBS"
23593if test x$gcc_no_link = xyes; then
23594 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23595echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23596 { (exit 1); exit 1; }; }
23597fi
23598cat >conftest.$ac_ext <<_ACEOF
23599/* confdefs.h. */
23600_ACEOF
23601cat confdefs.h >>conftest.$ac_ext
23602cat >>conftest.$ac_ext <<_ACEOF
23603/* end confdefs.h. */
23604
38d24731 23605/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
23606#ifdef __cplusplus
23607extern "C"
23608#endif
38d24731
RW
23609/* We use char because int might match the return type of a gcc2
23610 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
23611char floorl ();
23612int
23613main ()
23614{
38d24731 23615floorl ();
1409cd0b
FXC
23616 ;
23617 return 0;
23618}
23619_ACEOF
23620rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
23621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23622 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
23623 ac_status=$?
23624 grep -v '^ *+' conftest.er1 >conftest.err
23625 rm -f conftest.er1
23626 cat conftest.err >&5
23627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
23628 (exit $ac_status); } &&
23629 { ac_try='test -z "$ac_c_werror_flag"
23630 || test ! -s conftest.err'
23631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23632 (eval $ac_try) 2>&5
23633 ac_status=$?
23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); }; } &&
23636 { ac_try='test -s conftest$ac_exeext'
23637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23638 (eval $ac_try) 2>&5
23639 ac_status=$?
23640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641 (exit $ac_status); }; }; then
1409cd0b
FXC
23642 ac_cv_lib_m_floorl=yes
23643else
23644 echo "$as_me: failed program was:" >&5
23645sed 's/^/| /' conftest.$ac_ext >&5
23646
38d24731 23647ac_cv_lib_m_floorl=no
1409cd0b 23648fi
38d24731 23649rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
23650 conftest$ac_exeext conftest.$ac_ext
23651LIBS=$ac_check_lib_save_LIBS
23652fi
38d24731
RW
23653echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorl" >&5
23654echo "${ECHO_T}$ac_cv_lib_m_floorl" >&6
1409cd0b
FXC
23655if test $ac_cv_lib_m_floorl = yes; then
23656
23657cat >>confdefs.h <<\_ACEOF
23658#define HAVE_FLOORL 1
23659_ACEOF
23660
23661fi
23662
38d24731
RW
23663echo "$as_me:$LINENO: checking for fmodf in -lm" >&5
23664echo $ECHO_N "checking for fmodf in -lm... $ECHO_C" >&6
eb647f7d
FXC
23665if test "${ac_cv_lib_m_fmodf+set}" = set; then
23666 echo $ECHO_N "(cached) $ECHO_C" >&6
23667else
23668 ac_check_lib_save_LIBS=$LIBS
23669LIBS="-lm $LIBS"
23670if test x$gcc_no_link = xyes; then
23671 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23672echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23673 { (exit 1); exit 1; }; }
23674fi
23675cat >conftest.$ac_ext <<_ACEOF
23676/* confdefs.h. */
23677_ACEOF
23678cat confdefs.h >>conftest.$ac_ext
23679cat >>conftest.$ac_ext <<_ACEOF
23680/* end confdefs.h. */
23681
38d24731 23682/* Override any gcc2 internal prototype to avoid an error. */
eb647f7d
FXC
23683#ifdef __cplusplus
23684extern "C"
23685#endif
38d24731
RW
23686/* We use char because int might match the return type of a gcc2
23687 builtin and then its argument prototype would still apply. */
eb647f7d
FXC
23688char fmodf ();
23689int
23690main ()
23691{
38d24731 23692fmodf ();
eb647f7d
FXC
23693 ;
23694 return 0;
23695}
23696_ACEOF
23697rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
23698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23699 (eval $ac_link) 2>conftest.er1
eb647f7d
FXC
23700 ac_status=$?
23701 grep -v '^ *+' conftest.er1 >conftest.err
23702 rm -f conftest.er1
23703 cat conftest.err >&5
23704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
23705 (exit $ac_status); } &&
23706 { ac_try='test -z "$ac_c_werror_flag"
23707 || test ! -s conftest.err'
23708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23709 (eval $ac_try) 2>&5
23710 ac_status=$?
23711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); }; } &&
23713 { ac_try='test -s conftest$ac_exeext'
23714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23715 (eval $ac_try) 2>&5
23716 ac_status=$?
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); }; }; then
eb647f7d
FXC
23719 ac_cv_lib_m_fmodf=yes
23720else
23721 echo "$as_me: failed program was:" >&5
23722sed 's/^/| /' conftest.$ac_ext >&5
23723
38d24731 23724ac_cv_lib_m_fmodf=no
eb647f7d 23725fi
38d24731 23726rm -f conftest.err conftest.$ac_objext \
eb647f7d
FXC
23727 conftest$ac_exeext conftest.$ac_ext
23728LIBS=$ac_check_lib_save_LIBS
23729fi
38d24731
RW
23730echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmodf" >&5
23731echo "${ECHO_T}$ac_cv_lib_m_fmodf" >&6
eb647f7d
FXC
23732if test $ac_cv_lib_m_fmodf = yes; then
23733
23734cat >>confdefs.h <<\_ACEOF
23735#define HAVE_FMODF 1
23736_ACEOF
23737
23738fi
23739
38d24731
RW
23740echo "$as_me:$LINENO: checking for fmod in -lm" >&5
23741echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6
eb647f7d
FXC
23742if test "${ac_cv_lib_m_fmod+set}" = set; then
23743 echo $ECHO_N "(cached) $ECHO_C" >&6
23744else
23745 ac_check_lib_save_LIBS=$LIBS
23746LIBS="-lm $LIBS"
23747if test x$gcc_no_link = xyes; then
23748 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23749echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23750 { (exit 1); exit 1; }; }
23751fi
23752cat >conftest.$ac_ext <<_ACEOF
23753/* confdefs.h. */
23754_ACEOF
23755cat confdefs.h >>conftest.$ac_ext
23756cat >>conftest.$ac_ext <<_ACEOF
23757/* end confdefs.h. */
23758
38d24731 23759/* Override any gcc2 internal prototype to avoid an error. */
eb647f7d
FXC
23760#ifdef __cplusplus
23761extern "C"
23762#endif
38d24731
RW
23763/* We use char because int might match the return type of a gcc2
23764 builtin and then its argument prototype would still apply. */
eb647f7d
FXC
23765char fmod ();
23766int
23767main ()
23768{
38d24731 23769fmod ();
eb647f7d
FXC
23770 ;
23771 return 0;
23772}
23773_ACEOF
23774rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
23775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23776 (eval $ac_link) 2>conftest.er1
eb647f7d
FXC
23777 ac_status=$?
23778 grep -v '^ *+' conftest.er1 >conftest.err
23779 rm -f conftest.er1
23780 cat conftest.err >&5
23781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
23782 (exit $ac_status); } &&
23783 { ac_try='test -z "$ac_c_werror_flag"
23784 || test ! -s conftest.err'
23785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23786 (eval $ac_try) 2>&5
23787 ac_status=$?
23788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); }; } &&
23790 { ac_try='test -s conftest$ac_exeext'
23791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23792 (eval $ac_try) 2>&5
23793 ac_status=$?
23794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795 (exit $ac_status); }; }; then
eb647f7d
FXC
23796 ac_cv_lib_m_fmod=yes
23797else
23798 echo "$as_me: failed program was:" >&5
23799sed 's/^/| /' conftest.$ac_ext >&5
23800
38d24731 23801ac_cv_lib_m_fmod=no
eb647f7d 23802fi
38d24731 23803rm -f conftest.err conftest.$ac_objext \
eb647f7d
FXC
23804 conftest$ac_exeext conftest.$ac_ext
23805LIBS=$ac_check_lib_save_LIBS
23806fi
38d24731
RW
23807echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
23808echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6
eb647f7d
FXC
23809if test $ac_cv_lib_m_fmod = yes; then
23810
23811cat >>confdefs.h <<\_ACEOF
23812#define HAVE_FMOD 1
23813_ACEOF
23814
23815fi
23816
38d24731
RW
23817echo "$as_me:$LINENO: checking for fmodl in -lm" >&5
23818echo $ECHO_N "checking for fmodl in -lm... $ECHO_C" >&6
eb647f7d
FXC
23819if test "${ac_cv_lib_m_fmodl+set}" = set; then
23820 echo $ECHO_N "(cached) $ECHO_C" >&6
23821else
23822 ac_check_lib_save_LIBS=$LIBS
23823LIBS="-lm $LIBS"
23824if test x$gcc_no_link = xyes; then
23825 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23826echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23827 { (exit 1); exit 1; }; }
23828fi
23829cat >conftest.$ac_ext <<_ACEOF
23830/* confdefs.h. */
23831_ACEOF
23832cat confdefs.h >>conftest.$ac_ext
23833cat >>conftest.$ac_ext <<_ACEOF
23834/* end confdefs.h. */
23835
38d24731 23836/* Override any gcc2 internal prototype to avoid an error. */
eb647f7d
FXC
23837#ifdef __cplusplus
23838extern "C"
23839#endif
38d24731
RW
23840/* We use char because int might match the return type of a gcc2
23841 builtin and then its argument prototype would still apply. */
eb647f7d
FXC
23842char fmodl ();
23843int
23844main ()
23845{
38d24731 23846fmodl ();
eb647f7d
FXC
23847 ;
23848 return 0;
23849}
23850_ACEOF
23851rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
23852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23853 (eval $ac_link) 2>conftest.er1
eb647f7d
FXC
23854 ac_status=$?
23855 grep -v '^ *+' conftest.er1 >conftest.err
23856 rm -f conftest.er1
23857 cat conftest.err >&5
23858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
23859 (exit $ac_status); } &&
23860 { ac_try='test -z "$ac_c_werror_flag"
23861 || test ! -s conftest.err'
23862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23863 (eval $ac_try) 2>&5
23864 ac_status=$?
23865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); }; } &&
23867 { ac_try='test -s conftest$ac_exeext'
23868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23869 (eval $ac_try) 2>&5
23870 ac_status=$?
23871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23872 (exit $ac_status); }; }; then
eb647f7d
FXC
23873 ac_cv_lib_m_fmodl=yes
23874else
23875 echo "$as_me: failed program was:" >&5
23876sed 's/^/| /' conftest.$ac_ext >&5
23877
38d24731 23878ac_cv_lib_m_fmodl=no
eb647f7d 23879fi
38d24731 23880rm -f conftest.err conftest.$ac_objext \
eb647f7d
FXC
23881 conftest$ac_exeext conftest.$ac_ext
23882LIBS=$ac_check_lib_save_LIBS
23883fi
38d24731
RW
23884echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmodl" >&5
23885echo "${ECHO_T}$ac_cv_lib_m_fmodl" >&6
eb647f7d
FXC
23886if test $ac_cv_lib_m_fmodl = yes; then
23887
23888cat >>confdefs.h <<\_ACEOF
23889#define HAVE_FMODL 1
23890_ACEOF
23891
23892fi
23893
38d24731
RW
23894echo "$as_me:$LINENO: checking for frexpf in -lm" >&5
23895echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6
1409cd0b
FXC
23896if test "${ac_cv_lib_m_frexpf+set}" = set; then
23897 echo $ECHO_N "(cached) $ECHO_C" >&6
23898else
23899 ac_check_lib_save_LIBS=$LIBS
23900LIBS="-lm $LIBS"
23901if test x$gcc_no_link = xyes; then
23902 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23903echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23904 { (exit 1); exit 1; }; }
23905fi
23906cat >conftest.$ac_ext <<_ACEOF
23907/* confdefs.h. */
23908_ACEOF
23909cat confdefs.h >>conftest.$ac_ext
23910cat >>conftest.$ac_ext <<_ACEOF
23911/* end confdefs.h. */
23912
38d24731 23913/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
23914#ifdef __cplusplus
23915extern "C"
23916#endif
38d24731
RW
23917/* We use char because int might match the return type of a gcc2
23918 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
23919char frexpf ();
23920int
23921main ()
23922{
38d24731 23923frexpf ();
1409cd0b
FXC
23924 ;
23925 return 0;
23926}
23927_ACEOF
23928rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
23929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23930 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
23931 ac_status=$?
23932 grep -v '^ *+' conftest.er1 >conftest.err
23933 rm -f conftest.er1
23934 cat conftest.err >&5
23935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
23936 (exit $ac_status); } &&
23937 { ac_try='test -z "$ac_c_werror_flag"
23938 || test ! -s conftest.err'
23939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23940 (eval $ac_try) 2>&5
23941 ac_status=$?
23942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943 (exit $ac_status); }; } &&
23944 { ac_try='test -s conftest$ac_exeext'
23945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23946 (eval $ac_try) 2>&5
23947 ac_status=$?
23948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); }; }; then
1409cd0b
FXC
23950 ac_cv_lib_m_frexpf=yes
23951else
23952 echo "$as_me: failed program was:" >&5
23953sed 's/^/| /' conftest.$ac_ext >&5
23954
38d24731 23955ac_cv_lib_m_frexpf=no
1409cd0b 23956fi
38d24731 23957rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
23958 conftest$ac_exeext conftest.$ac_ext
23959LIBS=$ac_check_lib_save_LIBS
23960fi
38d24731
RW
23961echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5
23962echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6
1409cd0b
FXC
23963if test $ac_cv_lib_m_frexpf = yes; then
23964
23965cat >>confdefs.h <<\_ACEOF
23966#define HAVE_FREXPF 1
23967_ACEOF
23968
23969fi
23970
38d24731
RW
23971echo "$as_me:$LINENO: checking for frexp in -lm" >&5
23972echo $ECHO_N "checking for frexp in -lm... $ECHO_C" >&6
1409cd0b
FXC
23973if test "${ac_cv_lib_m_frexp+set}" = set; then
23974 echo $ECHO_N "(cached) $ECHO_C" >&6
23975else
23976 ac_check_lib_save_LIBS=$LIBS
23977LIBS="-lm $LIBS"
23978if test x$gcc_no_link = xyes; then
23979 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23980echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23981 { (exit 1); exit 1; }; }
23982fi
23983cat >conftest.$ac_ext <<_ACEOF
23984/* confdefs.h. */
23985_ACEOF
23986cat confdefs.h >>conftest.$ac_ext
23987cat >>conftest.$ac_ext <<_ACEOF
23988/* end confdefs.h. */
23989
38d24731 23990/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
23991#ifdef __cplusplus
23992extern "C"
23993#endif
38d24731
RW
23994/* We use char because int might match the return type of a gcc2
23995 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
23996char frexp ();
23997int
23998main ()
23999{
38d24731 24000frexp ();
1409cd0b
FXC
24001 ;
24002 return 0;
24003}
24004_ACEOF
24005rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
24006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24007 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
24008 ac_status=$?
24009 grep -v '^ *+' conftest.er1 >conftest.err
24010 rm -f conftest.er1
24011 cat conftest.err >&5
24012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
24013 (exit $ac_status); } &&
24014 { ac_try='test -z "$ac_c_werror_flag"
24015 || test ! -s conftest.err'
24016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24017 (eval $ac_try) 2>&5
24018 ac_status=$?
24019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020 (exit $ac_status); }; } &&
24021 { ac_try='test -s conftest$ac_exeext'
24022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24023 (eval $ac_try) 2>&5
24024 ac_status=$?
24025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026 (exit $ac_status); }; }; then
1409cd0b
FXC
24027 ac_cv_lib_m_frexp=yes
24028else
24029 echo "$as_me: failed program was:" >&5
24030sed 's/^/| /' conftest.$ac_ext >&5
24031
38d24731 24032ac_cv_lib_m_frexp=no
1409cd0b 24033fi
38d24731 24034rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
24035 conftest$ac_exeext conftest.$ac_ext
24036LIBS=$ac_check_lib_save_LIBS
24037fi
38d24731
RW
24038echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexp" >&5
24039echo "${ECHO_T}$ac_cv_lib_m_frexp" >&6
1409cd0b
FXC
24040if test $ac_cv_lib_m_frexp = yes; then
24041
24042cat >>confdefs.h <<\_ACEOF
24043#define HAVE_FREXP 1
24044_ACEOF
24045
24046fi
24047
38d24731
RW
24048echo "$as_me:$LINENO: checking for frexpl in -lm" >&5
24049echo $ECHO_N "checking for frexpl in -lm... $ECHO_C" >&6
1409cd0b
FXC
24050if test "${ac_cv_lib_m_frexpl+set}" = set; then
24051 echo $ECHO_N "(cached) $ECHO_C" >&6
24052else
24053 ac_check_lib_save_LIBS=$LIBS
24054LIBS="-lm $LIBS"
24055if test x$gcc_no_link = xyes; then
24056 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24057echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24058 { (exit 1); exit 1; }; }
24059fi
24060cat >conftest.$ac_ext <<_ACEOF
24061/* confdefs.h. */
24062_ACEOF
24063cat confdefs.h >>conftest.$ac_ext
24064cat >>conftest.$ac_ext <<_ACEOF
24065/* end confdefs.h. */
24066
38d24731 24067/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
24068#ifdef __cplusplus
24069extern "C"
24070#endif
38d24731
RW
24071/* We use char because int might match the return type of a gcc2
24072 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
24073char frexpl ();
24074int
24075main ()
24076{
38d24731 24077frexpl ();
1409cd0b
FXC
24078 ;
24079 return 0;
24080}
24081_ACEOF
24082rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
24083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24084 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
24085 ac_status=$?
24086 grep -v '^ *+' conftest.er1 >conftest.err
24087 rm -f conftest.er1
24088 cat conftest.err >&5
24089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
24090 (exit $ac_status); } &&
24091 { ac_try='test -z "$ac_c_werror_flag"
24092 || test ! -s conftest.err'
24093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24094 (eval $ac_try) 2>&5
24095 ac_status=$?
24096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097 (exit $ac_status); }; } &&
24098 { ac_try='test -s conftest$ac_exeext'
24099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24100 (eval $ac_try) 2>&5
24101 ac_status=$?
24102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24103 (exit $ac_status); }; }; then
1409cd0b
FXC
24104 ac_cv_lib_m_frexpl=yes
24105else
24106 echo "$as_me: failed program was:" >&5
24107sed 's/^/| /' conftest.$ac_ext >&5
24108
38d24731 24109ac_cv_lib_m_frexpl=no
1409cd0b 24110fi
38d24731 24111rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
24112 conftest$ac_exeext conftest.$ac_ext
24113LIBS=$ac_check_lib_save_LIBS
24114fi
38d24731
RW
24115echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpl" >&5
24116echo "${ECHO_T}$ac_cv_lib_m_frexpl" >&6
1409cd0b
FXC
24117if test $ac_cv_lib_m_frexpl = yes; then
24118
24119cat >>confdefs.h <<\_ACEOF
24120#define HAVE_FREXPL 1
24121_ACEOF
24122
24123fi
24124
38d24731
RW
24125echo "$as_me:$LINENO: checking for hypotf in -lm" >&5
24126echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6
1409cd0b
FXC
24127if test "${ac_cv_lib_m_hypotf+set}" = set; then
24128 echo $ECHO_N "(cached) $ECHO_C" >&6
24129else
24130 ac_check_lib_save_LIBS=$LIBS
24131LIBS="-lm $LIBS"
24132if test x$gcc_no_link = xyes; then
24133 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24134echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24135 { (exit 1); exit 1; }; }
24136fi
24137cat >conftest.$ac_ext <<_ACEOF
24138/* confdefs.h. */
24139_ACEOF
24140cat confdefs.h >>conftest.$ac_ext
24141cat >>conftest.$ac_ext <<_ACEOF
24142/* end confdefs.h. */
24143
38d24731 24144/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
24145#ifdef __cplusplus
24146extern "C"
24147#endif
38d24731
RW
24148/* We use char because int might match the return type of a gcc2
24149 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
24150char hypotf ();
24151int
24152main ()
24153{
38d24731 24154hypotf ();
1409cd0b
FXC
24155 ;
24156 return 0;
24157}
24158_ACEOF
24159rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
24160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24161 (eval $ac_link) 2>conftest.er1
24162 ac_status=$?
24163 grep -v '^ *+' conftest.er1 >conftest.err
24164 rm -f conftest.er1
24165 cat conftest.err >&5
24166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167 (exit $ac_status); } &&
24168 { ac_try='test -z "$ac_c_werror_flag"
24169 || test ! -s conftest.err'
24170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24171 (eval $ac_try) 2>&5
24172 ac_status=$?
24173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174 (exit $ac_status); }; } &&
24175 { ac_try='test -s conftest$ac_exeext'
24176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24177 (eval $ac_try) 2>&5
1409cd0b 24178 ac_status=$?
1409cd0b 24179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731 24180 (exit $ac_status); }; }; then
1409cd0b
FXC
24181 ac_cv_lib_m_hypotf=yes
24182else
24183 echo "$as_me: failed program was:" >&5
24184sed 's/^/| /' conftest.$ac_ext >&5
24185
38d24731 24186ac_cv_lib_m_hypotf=no
1409cd0b 24187fi
38d24731 24188rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
24189 conftest$ac_exeext conftest.$ac_ext
24190LIBS=$ac_check_lib_save_LIBS
24191fi
38d24731
RW
24192echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5
24193echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6
1409cd0b
FXC
24194if test $ac_cv_lib_m_hypotf = yes; then
24195
24196cat >>confdefs.h <<\_ACEOF
24197#define HAVE_HYPOTF 1
24198_ACEOF
24199
24200fi
24201
38d24731
RW
24202echo "$as_me:$LINENO: checking for hypot in -lm" >&5
24203echo $ECHO_N "checking for hypot in -lm... $ECHO_C" >&6
1409cd0b
FXC
24204if test "${ac_cv_lib_m_hypot+set}" = set; then
24205 echo $ECHO_N "(cached) $ECHO_C" >&6
24206else
24207 ac_check_lib_save_LIBS=$LIBS
24208LIBS="-lm $LIBS"
24209if test x$gcc_no_link = xyes; then
24210 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24211echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24212 { (exit 1); exit 1; }; }
24213fi
24214cat >conftest.$ac_ext <<_ACEOF
24215/* confdefs.h. */
24216_ACEOF
24217cat confdefs.h >>conftest.$ac_ext
24218cat >>conftest.$ac_ext <<_ACEOF
24219/* end confdefs.h. */
24220
38d24731 24221/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
24222#ifdef __cplusplus
24223extern "C"
24224#endif
38d24731
RW
24225/* We use char because int might match the return type of a gcc2
24226 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
24227char hypot ();
24228int
24229main ()
24230{
38d24731 24231hypot ();
1409cd0b
FXC
24232 ;
24233 return 0;
24234}
24235_ACEOF
24236rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
24237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24238 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
24239 ac_status=$?
24240 grep -v '^ *+' conftest.er1 >conftest.err
24241 rm -f conftest.er1
24242 cat conftest.err >&5
24243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
24244 (exit $ac_status); } &&
24245 { ac_try='test -z "$ac_c_werror_flag"
24246 || test ! -s conftest.err'
24247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24248 (eval $ac_try) 2>&5
24249 ac_status=$?
24250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24251 (exit $ac_status); }; } &&
24252 { ac_try='test -s conftest$ac_exeext'
24253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24254 (eval $ac_try) 2>&5
24255 ac_status=$?
24256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257 (exit $ac_status); }; }; then
1409cd0b
FXC
24258 ac_cv_lib_m_hypot=yes
24259else
24260 echo "$as_me: failed program was:" >&5
24261sed 's/^/| /' conftest.$ac_ext >&5
24262
38d24731 24263ac_cv_lib_m_hypot=no
1409cd0b 24264fi
38d24731 24265rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
24266 conftest$ac_exeext conftest.$ac_ext
24267LIBS=$ac_check_lib_save_LIBS
24268fi
38d24731
RW
24269echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypot" >&5
24270echo "${ECHO_T}$ac_cv_lib_m_hypot" >&6
1409cd0b
FXC
24271if test $ac_cv_lib_m_hypot = yes; then
24272
24273cat >>confdefs.h <<\_ACEOF
24274#define HAVE_HYPOT 1
24275_ACEOF
24276
24277fi
24278
38d24731
RW
24279echo "$as_me:$LINENO: checking for hypotl in -lm" >&5
24280echo $ECHO_N "checking for hypotl in -lm... $ECHO_C" >&6
1409cd0b
FXC
24281if test "${ac_cv_lib_m_hypotl+set}" = set; then
24282 echo $ECHO_N "(cached) $ECHO_C" >&6
24283else
24284 ac_check_lib_save_LIBS=$LIBS
24285LIBS="-lm $LIBS"
24286if test x$gcc_no_link = xyes; then
24287 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24288echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24289 { (exit 1); exit 1; }; }
24290fi
24291cat >conftest.$ac_ext <<_ACEOF
24292/* confdefs.h. */
24293_ACEOF
24294cat confdefs.h >>conftest.$ac_ext
24295cat >>conftest.$ac_ext <<_ACEOF
24296/* end confdefs.h. */
24297
38d24731 24298/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
24299#ifdef __cplusplus
24300extern "C"
24301#endif
38d24731
RW
24302/* We use char because int might match the return type of a gcc2
24303 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
24304char hypotl ();
24305int
24306main ()
24307{
38d24731 24308hypotl ();
1409cd0b
FXC
24309 ;
24310 return 0;
24311}
24312_ACEOF
24313rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
24314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24315 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
24316 ac_status=$?
24317 grep -v '^ *+' conftest.er1 >conftest.err
24318 rm -f conftest.er1
24319 cat conftest.err >&5
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
24321 (exit $ac_status); } &&
24322 { ac_try='test -z "$ac_c_werror_flag"
24323 || test ! -s conftest.err'
24324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24325 (eval $ac_try) 2>&5
24326 ac_status=$?
24327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328 (exit $ac_status); }; } &&
24329 { ac_try='test -s conftest$ac_exeext'
24330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24331 (eval $ac_try) 2>&5
24332 ac_status=$?
24333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334 (exit $ac_status); }; }; then
1409cd0b
FXC
24335 ac_cv_lib_m_hypotl=yes
24336else
24337 echo "$as_me: failed program was:" >&5
24338sed 's/^/| /' conftest.$ac_ext >&5
24339
38d24731 24340ac_cv_lib_m_hypotl=no
1409cd0b 24341fi
38d24731 24342rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
24343 conftest$ac_exeext conftest.$ac_ext
24344LIBS=$ac_check_lib_save_LIBS
24345fi
38d24731
RW
24346echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotl" >&5
24347echo "${ECHO_T}$ac_cv_lib_m_hypotl" >&6
1409cd0b
FXC
24348if test $ac_cv_lib_m_hypotl = yes; then
24349
24350cat >>confdefs.h <<\_ACEOF
24351#define HAVE_HYPOTL 1
24352_ACEOF
24353
24354fi
24355
38d24731
RW
24356echo "$as_me:$LINENO: checking for ldexpf in -lm" >&5
24357echo $ECHO_N "checking for ldexpf in -lm... $ECHO_C" >&6
cc6d3bde
SK
24358if test "${ac_cv_lib_m_ldexpf+set}" = set; then
24359 echo $ECHO_N "(cached) $ECHO_C" >&6
24360else
24361 ac_check_lib_save_LIBS=$LIBS
24362LIBS="-lm $LIBS"
24363if test x$gcc_no_link = xyes; then
24364 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24365echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24366 { (exit 1); exit 1; }; }
24367fi
24368cat >conftest.$ac_ext <<_ACEOF
24369/* confdefs.h. */
24370_ACEOF
24371cat confdefs.h >>conftest.$ac_ext
24372cat >>conftest.$ac_ext <<_ACEOF
24373/* end confdefs.h. */
24374
38d24731 24375/* Override any gcc2 internal prototype to avoid an error. */
cc6d3bde
SK
24376#ifdef __cplusplus
24377extern "C"
24378#endif
38d24731
RW
24379/* We use char because int might match the return type of a gcc2
24380 builtin and then its argument prototype would still apply. */
cc6d3bde
SK
24381char ldexpf ();
24382int
24383main ()
24384{
38d24731 24385ldexpf ();
cc6d3bde
SK
24386 ;
24387 return 0;
24388}
24389_ACEOF
24390rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
24391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24392 (eval $ac_link) 2>conftest.er1
cc6d3bde
SK
24393 ac_status=$?
24394 grep -v '^ *+' conftest.er1 >conftest.err
24395 rm -f conftest.er1
24396 cat conftest.err >&5
24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
24398 (exit $ac_status); } &&
24399 { ac_try='test -z "$ac_c_werror_flag"
24400 || test ! -s conftest.err'
24401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24402 (eval $ac_try) 2>&5
24403 ac_status=$?
24404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405 (exit $ac_status); }; } &&
24406 { ac_try='test -s conftest$ac_exeext'
24407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24408 (eval $ac_try) 2>&5
24409 ac_status=$?
24410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); }; }; then
cc6d3bde
SK
24412 ac_cv_lib_m_ldexpf=yes
24413else
24414 echo "$as_me: failed program was:" >&5
24415sed 's/^/| /' conftest.$ac_ext >&5
24416
38d24731 24417ac_cv_lib_m_ldexpf=no
cc6d3bde 24418fi
38d24731 24419rm -f conftest.err conftest.$ac_objext \
cc6d3bde
SK
24420 conftest$ac_exeext conftest.$ac_ext
24421LIBS=$ac_check_lib_save_LIBS
24422fi
38d24731
RW
24423echo "$as_me:$LINENO: result: $ac_cv_lib_m_ldexpf" >&5
24424echo "${ECHO_T}$ac_cv_lib_m_ldexpf" >&6
cc6d3bde
SK
24425if test $ac_cv_lib_m_ldexpf = yes; then
24426
24427cat >>confdefs.h <<\_ACEOF
24428#define HAVE_LDEXPF 1
24429_ACEOF
24430
24431fi
24432
38d24731
RW
24433echo "$as_me:$LINENO: checking for ldexp in -lm" >&5
24434echo $ECHO_N "checking for ldexp in -lm... $ECHO_C" >&6
cc6d3bde
SK
24435if test "${ac_cv_lib_m_ldexp+set}" = set; then
24436 echo $ECHO_N "(cached) $ECHO_C" >&6
24437else
24438 ac_check_lib_save_LIBS=$LIBS
24439LIBS="-lm $LIBS"
24440if test x$gcc_no_link = xyes; then
24441 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24442echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24443 { (exit 1); exit 1; }; }
24444fi
24445cat >conftest.$ac_ext <<_ACEOF
24446/* confdefs.h. */
24447_ACEOF
24448cat confdefs.h >>conftest.$ac_ext
24449cat >>conftest.$ac_ext <<_ACEOF
24450/* end confdefs.h. */
24451
38d24731 24452/* Override any gcc2 internal prototype to avoid an error. */
cc6d3bde
SK
24453#ifdef __cplusplus
24454extern "C"
24455#endif
38d24731
RW
24456/* We use char because int might match the return type of a gcc2
24457 builtin and then its argument prototype would still apply. */
cc6d3bde
SK
24458char ldexp ();
24459int
24460main ()
24461{
38d24731 24462ldexp ();
cc6d3bde
SK
24463 ;
24464 return 0;
24465}
24466_ACEOF
24467rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
24468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24469 (eval $ac_link) 2>conftest.er1
cc6d3bde
SK
24470 ac_status=$?
24471 grep -v '^ *+' conftest.er1 >conftest.err
24472 rm -f conftest.er1
24473 cat conftest.err >&5
24474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
24475 (exit $ac_status); } &&
24476 { ac_try='test -z "$ac_c_werror_flag"
24477 || test ! -s conftest.err'
24478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479 (eval $ac_try) 2>&5
24480 ac_status=$?
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); }; } &&
24483 { ac_try='test -s conftest$ac_exeext'
24484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24485 (eval $ac_try) 2>&5
24486 ac_status=$?
24487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488 (exit $ac_status); }; }; then
cc6d3bde
SK
24489 ac_cv_lib_m_ldexp=yes
24490else
24491 echo "$as_me: failed program was:" >&5
24492sed 's/^/| /' conftest.$ac_ext >&5
24493
38d24731 24494ac_cv_lib_m_ldexp=no
cc6d3bde 24495fi
38d24731 24496rm -f conftest.err conftest.$ac_objext \
cc6d3bde
SK
24497 conftest$ac_exeext conftest.$ac_ext
24498LIBS=$ac_check_lib_save_LIBS
24499fi
38d24731
RW
24500echo "$as_me:$LINENO: result: $ac_cv_lib_m_ldexp" >&5
24501echo "${ECHO_T}$ac_cv_lib_m_ldexp" >&6
cc6d3bde
SK
24502if test $ac_cv_lib_m_ldexp = yes; then
24503
24504cat >>confdefs.h <<\_ACEOF
24505#define HAVE_LDEXP 1
24506_ACEOF
24507
24508fi
24509
38d24731
RW
24510echo "$as_me:$LINENO: checking for ldexpl in -lm" >&5
24511echo $ECHO_N "checking for ldexpl in -lm... $ECHO_C" >&6
cc6d3bde
SK
24512if test "${ac_cv_lib_m_ldexpl+set}" = set; then
24513 echo $ECHO_N "(cached) $ECHO_C" >&6
24514else
24515 ac_check_lib_save_LIBS=$LIBS
24516LIBS="-lm $LIBS"
24517if test x$gcc_no_link = xyes; then
24518 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24519echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24520 { (exit 1); exit 1; }; }
24521fi
24522cat >conftest.$ac_ext <<_ACEOF
24523/* confdefs.h. */
24524_ACEOF
24525cat confdefs.h >>conftest.$ac_ext
24526cat >>conftest.$ac_ext <<_ACEOF
24527/* end confdefs.h. */
24528
38d24731 24529/* Override any gcc2 internal prototype to avoid an error. */
cc6d3bde
SK
24530#ifdef __cplusplus
24531extern "C"
24532#endif
38d24731
RW
24533/* We use char because int might match the return type of a gcc2
24534 builtin and then its argument prototype would still apply. */
cc6d3bde
SK
24535char ldexpl ();
24536int
24537main ()
24538{
38d24731 24539ldexpl ();
cc6d3bde
SK
24540 ;
24541 return 0;
24542}
24543_ACEOF
24544rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
24545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24546 (eval $ac_link) 2>conftest.er1
cc6d3bde
SK
24547 ac_status=$?
24548 grep -v '^ *+' conftest.er1 >conftest.err
24549 rm -f conftest.er1
24550 cat conftest.err >&5
24551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
24552 (exit $ac_status); } &&
24553 { ac_try='test -z "$ac_c_werror_flag"
24554 || test ! -s conftest.err'
24555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24556 (eval $ac_try) 2>&5
24557 ac_status=$?
24558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559 (exit $ac_status); }; } &&
24560 { ac_try='test -s conftest$ac_exeext'
24561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24562 (eval $ac_try) 2>&5
24563 ac_status=$?
24564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565 (exit $ac_status); }; }; then
cc6d3bde
SK
24566 ac_cv_lib_m_ldexpl=yes
24567else
24568 echo "$as_me: failed program was:" >&5
24569sed 's/^/| /' conftest.$ac_ext >&5
24570
38d24731 24571ac_cv_lib_m_ldexpl=no
cc6d3bde 24572fi
38d24731 24573rm -f conftest.err conftest.$ac_objext \
cc6d3bde
SK
24574 conftest$ac_exeext conftest.$ac_ext
24575LIBS=$ac_check_lib_save_LIBS
24576fi
38d24731
RW
24577echo "$as_me:$LINENO: result: $ac_cv_lib_m_ldexpl" >&5
24578echo "${ECHO_T}$ac_cv_lib_m_ldexpl" >&6
cc6d3bde
SK
24579if test $ac_cv_lib_m_ldexpl = yes; then
24580
24581cat >>confdefs.h <<\_ACEOF
24582#define HAVE_LDEXPL 1
24583_ACEOF
24584
24585fi
24586
38d24731
RW
24587echo "$as_me:$LINENO: checking for logf in -lm" >&5
24588echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6
1409cd0b
FXC
24589if test "${ac_cv_lib_m_logf+set}" = set; then
24590 echo $ECHO_N "(cached) $ECHO_C" >&6
24591else
24592 ac_check_lib_save_LIBS=$LIBS
24593LIBS="-lm $LIBS"
24594if test x$gcc_no_link = xyes; then
24595 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24596echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24597 { (exit 1); exit 1; }; }
24598fi
24599cat >conftest.$ac_ext <<_ACEOF
24600/* confdefs.h. */
24601_ACEOF
24602cat confdefs.h >>conftest.$ac_ext
24603cat >>conftest.$ac_ext <<_ACEOF
24604/* end confdefs.h. */
24605
38d24731 24606/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
24607#ifdef __cplusplus
24608extern "C"
24609#endif
38d24731
RW
24610/* We use char because int might match the return type of a gcc2
24611 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
24612char logf ();
24613int
24614main ()
24615{
38d24731 24616logf ();
1409cd0b
FXC
24617 ;
24618 return 0;
24619}
24620_ACEOF
24621rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
24622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24623 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
24624 ac_status=$?
24625 grep -v '^ *+' conftest.er1 >conftest.err
24626 rm -f conftest.er1
24627 cat conftest.err >&5
24628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
24629 (exit $ac_status); } &&
24630 { ac_try='test -z "$ac_c_werror_flag"
24631 || test ! -s conftest.err'
24632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24633 (eval $ac_try) 2>&5
24634 ac_status=$?
24635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24636 (exit $ac_status); }; } &&
24637 { ac_try='test -s conftest$ac_exeext'
24638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24639 (eval $ac_try) 2>&5
24640 ac_status=$?
24641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642 (exit $ac_status); }; }; then
1409cd0b
FXC
24643 ac_cv_lib_m_logf=yes
24644else
24645 echo "$as_me: failed program was:" >&5
24646sed 's/^/| /' conftest.$ac_ext >&5
24647
38d24731 24648ac_cv_lib_m_logf=no
1409cd0b 24649fi
38d24731 24650rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
24651 conftest$ac_exeext conftest.$ac_ext
24652LIBS=$ac_check_lib_save_LIBS
24653fi
38d24731
RW
24654echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5
24655echo "${ECHO_T}$ac_cv_lib_m_logf" >&6
1409cd0b
FXC
24656if test $ac_cv_lib_m_logf = yes; then
24657
24658cat >>confdefs.h <<\_ACEOF
24659#define HAVE_LOGF 1
24660_ACEOF
24661
24662fi
24663
38d24731
RW
24664echo "$as_me:$LINENO: checking for log in -lm" >&5
24665echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6
1409cd0b
FXC
24666if test "${ac_cv_lib_m_log+set}" = set; then
24667 echo $ECHO_N "(cached) $ECHO_C" >&6
24668else
24669 ac_check_lib_save_LIBS=$LIBS
24670LIBS="-lm $LIBS"
24671if test x$gcc_no_link = xyes; then
24672 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24673echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24674 { (exit 1); exit 1; }; }
24675fi
24676cat >conftest.$ac_ext <<_ACEOF
24677/* confdefs.h. */
24678_ACEOF
24679cat confdefs.h >>conftest.$ac_ext
24680cat >>conftest.$ac_ext <<_ACEOF
24681/* end confdefs.h. */
24682
38d24731 24683/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
24684#ifdef __cplusplus
24685extern "C"
24686#endif
38d24731
RW
24687/* We use char because int might match the return type of a gcc2
24688 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
24689char log ();
24690int
24691main ()
24692{
38d24731 24693log ();
1409cd0b
FXC
24694 ;
24695 return 0;
24696}
24697_ACEOF
24698rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
24699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24700 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
24701 ac_status=$?
24702 grep -v '^ *+' conftest.er1 >conftest.err
24703 rm -f conftest.er1
24704 cat conftest.err >&5
24705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
24706 (exit $ac_status); } &&
24707 { ac_try='test -z "$ac_c_werror_flag"
24708 || test ! -s conftest.err'
24709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24710 (eval $ac_try) 2>&5
24711 ac_status=$?
24712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713 (exit $ac_status); }; } &&
24714 { ac_try='test -s conftest$ac_exeext'
24715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24716 (eval $ac_try) 2>&5
24717 ac_status=$?
24718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719 (exit $ac_status); }; }; then
1409cd0b
FXC
24720 ac_cv_lib_m_log=yes
24721else
24722 echo "$as_me: failed program was:" >&5
24723sed 's/^/| /' conftest.$ac_ext >&5
24724
38d24731 24725ac_cv_lib_m_log=no
1409cd0b 24726fi
38d24731 24727rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
24728 conftest$ac_exeext conftest.$ac_ext
24729LIBS=$ac_check_lib_save_LIBS
24730fi
38d24731
RW
24731echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5
24732echo "${ECHO_T}$ac_cv_lib_m_log" >&6
1409cd0b
FXC
24733if test $ac_cv_lib_m_log = yes; then
24734
24735cat >>confdefs.h <<\_ACEOF
24736#define HAVE_LOG 1
24737_ACEOF
24738
24739fi
24740
38d24731
RW
24741echo "$as_me:$LINENO: checking for logl in -lm" >&5
24742echo $ECHO_N "checking for logl in -lm... $ECHO_C" >&6
1409cd0b
FXC
24743if test "${ac_cv_lib_m_logl+set}" = set; then
24744 echo $ECHO_N "(cached) $ECHO_C" >&6
24745else
24746 ac_check_lib_save_LIBS=$LIBS
24747LIBS="-lm $LIBS"
24748if test x$gcc_no_link = xyes; then
24749 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24750echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24751 { (exit 1); exit 1; }; }
24752fi
24753cat >conftest.$ac_ext <<_ACEOF
24754/* confdefs.h. */
24755_ACEOF
24756cat confdefs.h >>conftest.$ac_ext
24757cat >>conftest.$ac_ext <<_ACEOF
24758/* end confdefs.h. */
24759
38d24731 24760/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
24761#ifdef __cplusplus
24762extern "C"
24763#endif
38d24731
RW
24764/* We use char because int might match the return type of a gcc2
24765 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
24766char logl ();
24767int
24768main ()
24769{
38d24731 24770logl ();
1409cd0b
FXC
24771 ;
24772 return 0;
24773}
24774_ACEOF
24775rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
24776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24777 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
24778 ac_status=$?
24779 grep -v '^ *+' conftest.er1 >conftest.err
24780 rm -f conftest.er1
24781 cat conftest.err >&5
24782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
24783 (exit $ac_status); } &&
24784 { ac_try='test -z "$ac_c_werror_flag"
24785 || test ! -s conftest.err'
24786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24787 (eval $ac_try) 2>&5
24788 ac_status=$?
24789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790 (exit $ac_status); }; } &&
24791 { ac_try='test -s conftest$ac_exeext'
24792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24793 (eval $ac_try) 2>&5
24794 ac_status=$?
24795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796 (exit $ac_status); }; }; then
1409cd0b
FXC
24797 ac_cv_lib_m_logl=yes
24798else
24799 echo "$as_me: failed program was:" >&5
24800sed 's/^/| /' conftest.$ac_ext >&5
24801
38d24731 24802ac_cv_lib_m_logl=no
1409cd0b 24803fi
38d24731 24804rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
24805 conftest$ac_exeext conftest.$ac_ext
24806LIBS=$ac_check_lib_save_LIBS
24807fi
38d24731
RW
24808echo "$as_me:$LINENO: result: $ac_cv_lib_m_logl" >&5
24809echo "${ECHO_T}$ac_cv_lib_m_logl" >&6
1409cd0b
FXC
24810if test $ac_cv_lib_m_logl = yes; then
24811
24812cat >>confdefs.h <<\_ACEOF
24813#define HAVE_LOGL 1
24814_ACEOF
24815
24816fi
24817
38d24731
RW
24818echo "$as_me:$LINENO: checking for clogf in -lm" >&5
24819echo $ECHO_N "checking for clogf in -lm... $ECHO_C" >&6
1409cd0b
FXC
24820if test "${ac_cv_lib_m_clogf+set}" = set; then
24821 echo $ECHO_N "(cached) $ECHO_C" >&6
24822else
24823 ac_check_lib_save_LIBS=$LIBS
24824LIBS="-lm $LIBS"
24825if test x$gcc_no_link = xyes; then
24826 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24827echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24828 { (exit 1); exit 1; }; }
24829fi
24830cat >conftest.$ac_ext <<_ACEOF
24831/* confdefs.h. */
24832_ACEOF
24833cat confdefs.h >>conftest.$ac_ext
24834cat >>conftest.$ac_ext <<_ACEOF
24835/* end confdefs.h. */
24836
38d24731 24837/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
24838#ifdef __cplusplus
24839extern "C"
24840#endif
38d24731
RW
24841/* We use char because int might match the return type of a gcc2
24842 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
24843char clogf ();
24844int
24845main ()
24846{
38d24731 24847clogf ();
1409cd0b
FXC
24848 ;
24849 return 0;
24850}
24851_ACEOF
24852rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
24853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24854 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
24855 ac_status=$?
24856 grep -v '^ *+' conftest.er1 >conftest.err
24857 rm -f conftest.er1
24858 cat conftest.err >&5
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
24860 (exit $ac_status); } &&
24861 { ac_try='test -z "$ac_c_werror_flag"
24862 || test ! -s conftest.err'
24863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24864 (eval $ac_try) 2>&5
24865 ac_status=$?
24866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24867 (exit $ac_status); }; } &&
24868 { ac_try='test -s conftest$ac_exeext'
24869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24870 (eval $ac_try) 2>&5
24871 ac_status=$?
24872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873 (exit $ac_status); }; }; then
1409cd0b
FXC
24874 ac_cv_lib_m_clogf=yes
24875else
24876 echo "$as_me: failed program was:" >&5
24877sed 's/^/| /' conftest.$ac_ext >&5
24878
38d24731 24879ac_cv_lib_m_clogf=no
1409cd0b 24880fi
38d24731 24881rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
24882 conftest$ac_exeext conftest.$ac_ext
24883LIBS=$ac_check_lib_save_LIBS
24884fi
38d24731
RW
24885echo "$as_me:$LINENO: result: $ac_cv_lib_m_clogf" >&5
24886echo "${ECHO_T}$ac_cv_lib_m_clogf" >&6
1409cd0b
FXC
24887if test $ac_cv_lib_m_clogf = yes; then
24888
24889cat >>confdefs.h <<\_ACEOF
24890#define HAVE_CLOGF 1
24891_ACEOF
24892
24893fi
24894
38d24731
RW
24895echo "$as_me:$LINENO: checking for clog in -lm" >&5
24896echo $ECHO_N "checking for clog in -lm... $ECHO_C" >&6
1409cd0b
FXC
24897if test "${ac_cv_lib_m_clog+set}" = set; then
24898 echo $ECHO_N "(cached) $ECHO_C" >&6
24899else
24900 ac_check_lib_save_LIBS=$LIBS
24901LIBS="-lm $LIBS"
24902if test x$gcc_no_link = xyes; then
24903 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24904echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24905 { (exit 1); exit 1; }; }
24906fi
24907cat >conftest.$ac_ext <<_ACEOF
24908/* confdefs.h. */
24909_ACEOF
24910cat confdefs.h >>conftest.$ac_ext
24911cat >>conftest.$ac_ext <<_ACEOF
24912/* end confdefs.h. */
24913
38d24731 24914/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
24915#ifdef __cplusplus
24916extern "C"
24917#endif
38d24731
RW
24918/* We use char because int might match the return type of a gcc2
24919 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
24920char clog ();
24921int
24922main ()
24923{
38d24731 24924clog ();
1409cd0b
FXC
24925 ;
24926 return 0;
24927}
24928_ACEOF
24929rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
24930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24931 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
24932 ac_status=$?
24933 grep -v '^ *+' conftest.er1 >conftest.err
24934 rm -f conftest.er1
24935 cat conftest.err >&5
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
24937 (exit $ac_status); } &&
24938 { ac_try='test -z "$ac_c_werror_flag"
24939 || test ! -s conftest.err'
24940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24941 (eval $ac_try) 2>&5
24942 ac_status=$?
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); }; } &&
24945 { ac_try='test -s conftest$ac_exeext'
24946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24947 (eval $ac_try) 2>&5
24948 ac_status=$?
24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); }; }; then
1409cd0b
FXC
24951 ac_cv_lib_m_clog=yes
24952else
24953 echo "$as_me: failed program was:" >&5
24954sed 's/^/| /' conftest.$ac_ext >&5
24955
38d24731 24956ac_cv_lib_m_clog=no
1409cd0b 24957fi
38d24731 24958rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
24959 conftest$ac_exeext conftest.$ac_ext
24960LIBS=$ac_check_lib_save_LIBS
24961fi
38d24731
RW
24962echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog" >&5
24963echo "${ECHO_T}$ac_cv_lib_m_clog" >&6
1409cd0b
FXC
24964if test $ac_cv_lib_m_clog = yes; then
24965
24966cat >>confdefs.h <<\_ACEOF
24967#define HAVE_CLOG 1
24968_ACEOF
24969
24970fi
24971
38d24731
RW
24972echo "$as_me:$LINENO: checking for clogl in -lm" >&5
24973echo $ECHO_N "checking for clogl in -lm... $ECHO_C" >&6
1409cd0b
FXC
24974if test "${ac_cv_lib_m_clogl+set}" = set; then
24975 echo $ECHO_N "(cached) $ECHO_C" >&6
24976else
24977 ac_check_lib_save_LIBS=$LIBS
24978LIBS="-lm $LIBS"
24979if test x$gcc_no_link = xyes; then
24980 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24981echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24982 { (exit 1); exit 1; }; }
24983fi
24984cat >conftest.$ac_ext <<_ACEOF
24985/* confdefs.h. */
24986_ACEOF
24987cat confdefs.h >>conftest.$ac_ext
24988cat >>conftest.$ac_ext <<_ACEOF
24989/* end confdefs.h. */
24990
38d24731 24991/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
24992#ifdef __cplusplus
24993extern "C"
24994#endif
38d24731
RW
24995/* We use char because int might match the return type of a gcc2
24996 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
24997char clogl ();
24998int
24999main ()
25000{
38d24731 25001clogl ();
1409cd0b
FXC
25002 ;
25003 return 0;
25004}
25005_ACEOF
25006rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
25007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25008 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
25009 ac_status=$?
25010 grep -v '^ *+' conftest.er1 >conftest.err
25011 rm -f conftest.er1
25012 cat conftest.err >&5
25013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
25014 (exit $ac_status); } &&
25015 { ac_try='test -z "$ac_c_werror_flag"
25016 || test ! -s conftest.err'
25017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25018 (eval $ac_try) 2>&5
25019 ac_status=$?
25020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25021 (exit $ac_status); }; } &&
25022 { ac_try='test -s conftest$ac_exeext'
25023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25024 (eval $ac_try) 2>&5
25025 ac_status=$?
25026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25027 (exit $ac_status); }; }; then
1409cd0b
FXC
25028 ac_cv_lib_m_clogl=yes
25029else
25030 echo "$as_me: failed program was:" >&5
25031sed 's/^/| /' conftest.$ac_ext >&5
25032
38d24731 25033ac_cv_lib_m_clogl=no
1409cd0b 25034fi
38d24731 25035rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
25036 conftest$ac_exeext conftest.$ac_ext
25037LIBS=$ac_check_lib_save_LIBS
25038fi
38d24731
RW
25039echo "$as_me:$LINENO: result: $ac_cv_lib_m_clogl" >&5
25040echo "${ECHO_T}$ac_cv_lib_m_clogl" >&6
1409cd0b
FXC
25041if test $ac_cv_lib_m_clogl = yes; then
25042
25043cat >>confdefs.h <<\_ACEOF
25044#define HAVE_CLOGL 1
25045_ACEOF
25046
25047fi
25048
38d24731
RW
25049echo "$as_me:$LINENO: checking for log10f in -lm" >&5
25050echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6
1409cd0b
FXC
25051if test "${ac_cv_lib_m_log10f+set}" = set; then
25052 echo $ECHO_N "(cached) $ECHO_C" >&6
25053else
25054 ac_check_lib_save_LIBS=$LIBS
25055LIBS="-lm $LIBS"
25056if test x$gcc_no_link = xyes; then
25057 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25058echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25059 { (exit 1); exit 1; }; }
25060fi
25061cat >conftest.$ac_ext <<_ACEOF
25062/* confdefs.h. */
25063_ACEOF
25064cat confdefs.h >>conftest.$ac_ext
25065cat >>conftest.$ac_ext <<_ACEOF
25066/* end confdefs.h. */
25067
38d24731 25068/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
25069#ifdef __cplusplus
25070extern "C"
25071#endif
38d24731
RW
25072/* We use char because int might match the return type of a gcc2
25073 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
25074char log10f ();
25075int
25076main ()
25077{
38d24731 25078log10f ();
1409cd0b
FXC
25079 ;
25080 return 0;
25081}
25082_ACEOF
25083rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
25084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25085 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
25086 ac_status=$?
25087 grep -v '^ *+' conftest.er1 >conftest.err
25088 rm -f conftest.er1
25089 cat conftest.err >&5
25090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
25091 (exit $ac_status); } &&
25092 { ac_try='test -z "$ac_c_werror_flag"
25093 || test ! -s conftest.err'
25094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25095 (eval $ac_try) 2>&5
25096 ac_status=$?
25097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098 (exit $ac_status); }; } &&
25099 { ac_try='test -s conftest$ac_exeext'
25100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25101 (eval $ac_try) 2>&5
25102 ac_status=$?
25103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104 (exit $ac_status); }; }; then
1409cd0b
FXC
25105 ac_cv_lib_m_log10f=yes
25106else
25107 echo "$as_me: failed program was:" >&5
25108sed 's/^/| /' conftest.$ac_ext >&5
25109
38d24731 25110ac_cv_lib_m_log10f=no
1409cd0b 25111fi
38d24731 25112rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
25113 conftest$ac_exeext conftest.$ac_ext
25114LIBS=$ac_check_lib_save_LIBS
25115fi
38d24731
RW
25116echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5
25117echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6
1409cd0b
FXC
25118if test $ac_cv_lib_m_log10f = yes; then
25119
25120cat >>confdefs.h <<\_ACEOF
25121#define HAVE_LOG10F 1
25122_ACEOF
25123
25124fi
25125
38d24731
RW
25126echo "$as_me:$LINENO: checking for log10 in -lm" >&5
25127echo $ECHO_N "checking for log10 in -lm... $ECHO_C" >&6
1409cd0b
FXC
25128if test "${ac_cv_lib_m_log10+set}" = set; then
25129 echo $ECHO_N "(cached) $ECHO_C" >&6
25130else
25131 ac_check_lib_save_LIBS=$LIBS
25132LIBS="-lm $LIBS"
25133if test x$gcc_no_link = xyes; then
25134 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25135echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25136 { (exit 1); exit 1; }; }
25137fi
25138cat >conftest.$ac_ext <<_ACEOF
25139/* confdefs.h. */
25140_ACEOF
25141cat confdefs.h >>conftest.$ac_ext
25142cat >>conftest.$ac_ext <<_ACEOF
25143/* end confdefs.h. */
25144
38d24731 25145/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
25146#ifdef __cplusplus
25147extern "C"
25148#endif
38d24731
RW
25149/* We use char because int might match the return type of a gcc2
25150 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
25151char log10 ();
25152int
25153main ()
25154{
38d24731 25155log10 ();
1409cd0b
FXC
25156 ;
25157 return 0;
25158}
25159_ACEOF
25160rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
25161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25162 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
25163 ac_status=$?
25164 grep -v '^ *+' conftest.er1 >conftest.err
25165 rm -f conftest.er1
25166 cat conftest.err >&5
25167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
25168 (exit $ac_status); } &&
25169 { ac_try='test -z "$ac_c_werror_flag"
25170 || test ! -s conftest.err'
25171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25172 (eval $ac_try) 2>&5
25173 ac_status=$?
25174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25175 (exit $ac_status); }; } &&
25176 { ac_try='test -s conftest$ac_exeext'
25177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25178 (eval $ac_try) 2>&5
25179 ac_status=$?
25180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181 (exit $ac_status); }; }; then
1409cd0b
FXC
25182 ac_cv_lib_m_log10=yes
25183else
25184 echo "$as_me: failed program was:" >&5
25185sed 's/^/| /' conftest.$ac_ext >&5
25186
38d24731 25187ac_cv_lib_m_log10=no
1409cd0b 25188fi
38d24731 25189rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
25190 conftest$ac_exeext conftest.$ac_ext
25191LIBS=$ac_check_lib_save_LIBS
25192fi
38d24731
RW
25193echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10" >&5
25194echo "${ECHO_T}$ac_cv_lib_m_log10" >&6
1409cd0b
FXC
25195if test $ac_cv_lib_m_log10 = yes; then
25196
25197cat >>confdefs.h <<\_ACEOF
25198#define HAVE_LOG10 1
25199_ACEOF
25200
25201fi
25202
38d24731
RW
25203echo "$as_me:$LINENO: checking for log10l in -lm" >&5
25204echo $ECHO_N "checking for log10l in -lm... $ECHO_C" >&6
1409cd0b
FXC
25205if test "${ac_cv_lib_m_log10l+set}" = set; then
25206 echo $ECHO_N "(cached) $ECHO_C" >&6
25207else
25208 ac_check_lib_save_LIBS=$LIBS
25209LIBS="-lm $LIBS"
25210if test x$gcc_no_link = xyes; then
25211 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25212echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25213 { (exit 1); exit 1; }; }
25214fi
25215cat >conftest.$ac_ext <<_ACEOF
25216/* confdefs.h. */
25217_ACEOF
25218cat confdefs.h >>conftest.$ac_ext
25219cat >>conftest.$ac_ext <<_ACEOF
25220/* end confdefs.h. */
25221
38d24731 25222/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
25223#ifdef __cplusplus
25224extern "C"
25225#endif
38d24731
RW
25226/* We use char because int might match the return type of a gcc2
25227 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
25228char log10l ();
25229int
25230main ()
25231{
38d24731 25232log10l ();
1409cd0b
FXC
25233 ;
25234 return 0;
25235}
25236_ACEOF
25237rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
25238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25239 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
25240 ac_status=$?
25241 grep -v '^ *+' conftest.er1 >conftest.err
25242 rm -f conftest.er1
25243 cat conftest.err >&5
25244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
25245 (exit $ac_status); } &&
25246 { ac_try='test -z "$ac_c_werror_flag"
25247 || test ! -s conftest.err'
25248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25249 (eval $ac_try) 2>&5
25250 ac_status=$?
25251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252 (exit $ac_status); }; } &&
25253 { ac_try='test -s conftest$ac_exeext'
25254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25255 (eval $ac_try) 2>&5
25256 ac_status=$?
25257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); }; }; then
1409cd0b
FXC
25259 ac_cv_lib_m_log10l=yes
25260else
25261 echo "$as_me: failed program was:" >&5
25262sed 's/^/| /' conftest.$ac_ext >&5
25263
38d24731 25264ac_cv_lib_m_log10l=no
1409cd0b 25265fi
38d24731 25266rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
25267 conftest$ac_exeext conftest.$ac_ext
25268LIBS=$ac_check_lib_save_LIBS
25269fi
38d24731
RW
25270echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10l" >&5
25271echo "${ECHO_T}$ac_cv_lib_m_log10l" >&6
1409cd0b
FXC
25272if test $ac_cv_lib_m_log10l = yes; then
25273
25274cat >>confdefs.h <<\_ACEOF
25275#define HAVE_LOG10L 1
25276_ACEOF
25277
25278fi
25279
38d24731
RW
25280echo "$as_me:$LINENO: checking for clog10f in -lm" >&5
25281echo $ECHO_N "checking for clog10f in -lm... $ECHO_C" >&6
1409cd0b
FXC
25282if test "${ac_cv_lib_m_clog10f+set}" = set; then
25283 echo $ECHO_N "(cached) $ECHO_C" >&6
25284else
25285 ac_check_lib_save_LIBS=$LIBS
25286LIBS="-lm $LIBS"
25287if test x$gcc_no_link = xyes; then
25288 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25289echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25290 { (exit 1); exit 1; }; }
25291fi
25292cat >conftest.$ac_ext <<_ACEOF
25293/* confdefs.h. */
25294_ACEOF
25295cat confdefs.h >>conftest.$ac_ext
25296cat >>conftest.$ac_ext <<_ACEOF
25297/* end confdefs.h. */
25298
38d24731 25299/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
25300#ifdef __cplusplus
25301extern "C"
25302#endif
38d24731
RW
25303/* We use char because int might match the return type of a gcc2
25304 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
25305char clog10f ();
25306int
25307main ()
25308{
38d24731 25309clog10f ();
1409cd0b
FXC
25310 ;
25311 return 0;
25312}
25313_ACEOF
25314rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
25315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25316 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
25317 ac_status=$?
25318 grep -v '^ *+' conftest.er1 >conftest.err
25319 rm -f conftest.er1
25320 cat conftest.err >&5
25321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
25322 (exit $ac_status); } &&
25323 { ac_try='test -z "$ac_c_werror_flag"
25324 || test ! -s conftest.err'
25325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25326 (eval $ac_try) 2>&5
25327 ac_status=$?
25328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329 (exit $ac_status); }; } &&
25330 { ac_try='test -s conftest$ac_exeext'
25331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25332 (eval $ac_try) 2>&5
25333 ac_status=$?
25334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335 (exit $ac_status); }; }; then
1409cd0b
FXC
25336 ac_cv_lib_m_clog10f=yes
25337else
25338 echo "$as_me: failed program was:" >&5
25339sed 's/^/| /' conftest.$ac_ext >&5
25340
38d24731 25341ac_cv_lib_m_clog10f=no
1409cd0b 25342fi
38d24731 25343rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
25344 conftest$ac_exeext conftest.$ac_ext
25345LIBS=$ac_check_lib_save_LIBS
25346fi
38d24731
RW
25347echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog10f" >&5
25348echo "${ECHO_T}$ac_cv_lib_m_clog10f" >&6
1409cd0b
FXC
25349if test $ac_cv_lib_m_clog10f = yes; then
25350
25351cat >>confdefs.h <<\_ACEOF
25352#define HAVE_CLOG10F 1
25353_ACEOF
25354
25355fi
25356
38d24731
RW
25357echo "$as_me:$LINENO: checking for clog10 in -lm" >&5
25358echo $ECHO_N "checking for clog10 in -lm... $ECHO_C" >&6
1409cd0b
FXC
25359if test "${ac_cv_lib_m_clog10+set}" = set; then
25360 echo $ECHO_N "(cached) $ECHO_C" >&6
25361else
25362 ac_check_lib_save_LIBS=$LIBS
25363LIBS="-lm $LIBS"
25364if test x$gcc_no_link = xyes; then
25365 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25366echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25367 { (exit 1); exit 1; }; }
25368fi
25369cat >conftest.$ac_ext <<_ACEOF
25370/* confdefs.h. */
25371_ACEOF
25372cat confdefs.h >>conftest.$ac_ext
25373cat >>conftest.$ac_ext <<_ACEOF
25374/* end confdefs.h. */
25375
38d24731 25376/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
25377#ifdef __cplusplus
25378extern "C"
25379#endif
38d24731
RW
25380/* We use char because int might match the return type of a gcc2
25381 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
25382char clog10 ();
25383int
25384main ()
25385{
38d24731 25386clog10 ();
1409cd0b
FXC
25387 ;
25388 return 0;
25389}
25390_ACEOF
25391rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
25392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25393 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
25394 ac_status=$?
25395 grep -v '^ *+' conftest.er1 >conftest.err
25396 rm -f conftest.er1
25397 cat conftest.err >&5
25398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
25399 (exit $ac_status); } &&
25400 { ac_try='test -z "$ac_c_werror_flag"
25401 || test ! -s conftest.err'
25402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25403 (eval $ac_try) 2>&5
25404 ac_status=$?
25405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406 (exit $ac_status); }; } &&
25407 { ac_try='test -s conftest$ac_exeext'
25408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25409 (eval $ac_try) 2>&5
25410 ac_status=$?
25411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412 (exit $ac_status); }; }; then
1409cd0b
FXC
25413 ac_cv_lib_m_clog10=yes
25414else
25415 echo "$as_me: failed program was:" >&5
25416sed 's/^/| /' conftest.$ac_ext >&5
25417
38d24731 25418ac_cv_lib_m_clog10=no
1409cd0b 25419fi
38d24731 25420rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
25421 conftest$ac_exeext conftest.$ac_ext
25422LIBS=$ac_check_lib_save_LIBS
25423fi
38d24731
RW
25424echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog10" >&5
25425echo "${ECHO_T}$ac_cv_lib_m_clog10" >&6
1409cd0b
FXC
25426if test $ac_cv_lib_m_clog10 = yes; then
25427
25428cat >>confdefs.h <<\_ACEOF
25429#define HAVE_CLOG10 1
25430_ACEOF
25431
25432fi
25433
38d24731
RW
25434echo "$as_me:$LINENO: checking for clog10l in -lm" >&5
25435echo $ECHO_N "checking for clog10l in -lm... $ECHO_C" >&6
1409cd0b
FXC
25436if test "${ac_cv_lib_m_clog10l+set}" = set; then
25437 echo $ECHO_N "(cached) $ECHO_C" >&6
25438else
25439 ac_check_lib_save_LIBS=$LIBS
25440LIBS="-lm $LIBS"
25441if test x$gcc_no_link = xyes; then
25442 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25443echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25444 { (exit 1); exit 1; }; }
25445fi
25446cat >conftest.$ac_ext <<_ACEOF
25447/* confdefs.h. */
25448_ACEOF
25449cat confdefs.h >>conftest.$ac_ext
25450cat >>conftest.$ac_ext <<_ACEOF
25451/* end confdefs.h. */
25452
38d24731 25453/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
25454#ifdef __cplusplus
25455extern "C"
25456#endif
38d24731
RW
25457/* We use char because int might match the return type of a gcc2
25458 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
25459char clog10l ();
25460int
25461main ()
25462{
38d24731 25463clog10l ();
1409cd0b
FXC
25464 ;
25465 return 0;
25466}
25467_ACEOF
25468rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
25469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25470 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
25471 ac_status=$?
25472 grep -v '^ *+' conftest.er1 >conftest.err
25473 rm -f conftest.er1
25474 cat conftest.err >&5
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
25476 (exit $ac_status); } &&
25477 { ac_try='test -z "$ac_c_werror_flag"
25478 || test ! -s conftest.err'
25479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25480 (eval $ac_try) 2>&5
25481 ac_status=$?
25482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483 (exit $ac_status); }; } &&
25484 { ac_try='test -s conftest$ac_exeext'
25485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25486 (eval $ac_try) 2>&5
25487 ac_status=$?
25488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); }; }; then
1409cd0b
FXC
25490 ac_cv_lib_m_clog10l=yes
25491else
25492 echo "$as_me: failed program was:" >&5
25493sed 's/^/| /' conftest.$ac_ext >&5
25494
38d24731 25495ac_cv_lib_m_clog10l=no
1409cd0b 25496fi
38d24731 25497rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
25498 conftest$ac_exeext conftest.$ac_ext
25499LIBS=$ac_check_lib_save_LIBS
25500fi
38d24731
RW
25501echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog10l" >&5
25502echo "${ECHO_T}$ac_cv_lib_m_clog10l" >&6
1409cd0b
FXC
25503if test $ac_cv_lib_m_clog10l = yes; then
25504
25505cat >>confdefs.h <<\_ACEOF
25506#define HAVE_CLOG10L 1
25507_ACEOF
25508
25509fi
25510
38d24731
RW
25511echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5
25512echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6
1409cd0b
FXC
25513if test "${ac_cv_lib_m_nextafterf+set}" = set; then
25514 echo $ECHO_N "(cached) $ECHO_C" >&6
25515else
25516 ac_check_lib_save_LIBS=$LIBS
25517LIBS="-lm $LIBS"
25518if test x$gcc_no_link = xyes; then
25519 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25520echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25521 { (exit 1); exit 1; }; }
25522fi
25523cat >conftest.$ac_ext <<_ACEOF
25524/* confdefs.h. */
25525_ACEOF
25526cat confdefs.h >>conftest.$ac_ext
25527cat >>conftest.$ac_ext <<_ACEOF
25528/* end confdefs.h. */
25529
38d24731 25530/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
25531#ifdef __cplusplus
25532extern "C"
25533#endif
38d24731
RW
25534/* We use char because int might match the return type of a gcc2
25535 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
25536char nextafterf ();
25537int
25538main ()
25539{
38d24731 25540nextafterf ();
1409cd0b
FXC
25541 ;
25542 return 0;
25543}
25544_ACEOF
25545rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
25546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25547 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
25548 ac_status=$?
25549 grep -v '^ *+' conftest.er1 >conftest.err
25550 rm -f conftest.er1
25551 cat conftest.err >&5
25552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
25553 (exit $ac_status); } &&
25554 { ac_try='test -z "$ac_c_werror_flag"
25555 || test ! -s conftest.err'
25556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25557 (eval $ac_try) 2>&5
25558 ac_status=$?
25559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25560 (exit $ac_status); }; } &&
25561 { ac_try='test -s conftest$ac_exeext'
25562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25563 (eval $ac_try) 2>&5
25564 ac_status=$?
25565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566 (exit $ac_status); }; }; then
1409cd0b
FXC
25567 ac_cv_lib_m_nextafterf=yes
25568else
25569 echo "$as_me: failed program was:" >&5
25570sed 's/^/| /' conftest.$ac_ext >&5
25571
38d24731 25572ac_cv_lib_m_nextafterf=no
1409cd0b 25573fi
38d24731 25574rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
25575 conftest$ac_exeext conftest.$ac_ext
25576LIBS=$ac_check_lib_save_LIBS
25577fi
38d24731
RW
25578echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5
25579echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6
1409cd0b
FXC
25580if test $ac_cv_lib_m_nextafterf = yes; then
25581
25582cat >>confdefs.h <<\_ACEOF
25583#define HAVE_NEXTAFTERF 1
25584_ACEOF
25585
25586fi
25587
38d24731
RW
25588echo "$as_me:$LINENO: checking for nextafter in -lm" >&5
25589echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6
1409cd0b
FXC
25590if test "${ac_cv_lib_m_nextafter+set}" = set; then
25591 echo $ECHO_N "(cached) $ECHO_C" >&6
25592else
25593 ac_check_lib_save_LIBS=$LIBS
25594LIBS="-lm $LIBS"
25595if test x$gcc_no_link = xyes; then
25596 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25597echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25598 { (exit 1); exit 1; }; }
25599fi
25600cat >conftest.$ac_ext <<_ACEOF
25601/* confdefs.h. */
25602_ACEOF
25603cat confdefs.h >>conftest.$ac_ext
25604cat >>conftest.$ac_ext <<_ACEOF
25605/* end confdefs.h. */
25606
38d24731 25607/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
25608#ifdef __cplusplus
25609extern "C"
25610#endif
38d24731
RW
25611/* We use char because int might match the return type of a gcc2
25612 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
25613char nextafter ();
25614int
25615main ()
25616{
38d24731 25617nextafter ();
1409cd0b
FXC
25618 ;
25619 return 0;
25620}
25621_ACEOF
25622rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
25623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25624 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
25625 ac_status=$?
25626 grep -v '^ *+' conftest.er1 >conftest.err
25627 rm -f conftest.er1
25628 cat conftest.err >&5
25629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
25630 (exit $ac_status); } &&
25631 { ac_try='test -z "$ac_c_werror_flag"
25632 || test ! -s conftest.err'
25633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25634 (eval $ac_try) 2>&5
25635 ac_status=$?
25636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637 (exit $ac_status); }; } &&
25638 { ac_try='test -s conftest$ac_exeext'
25639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25640 (eval $ac_try) 2>&5
25641 ac_status=$?
25642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643 (exit $ac_status); }; }; then
1409cd0b
FXC
25644 ac_cv_lib_m_nextafter=yes
25645else
25646 echo "$as_me: failed program was:" >&5
25647sed 's/^/| /' conftest.$ac_ext >&5
25648
38d24731 25649ac_cv_lib_m_nextafter=no
1409cd0b 25650fi
38d24731 25651rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
25652 conftest$ac_exeext conftest.$ac_ext
25653LIBS=$ac_check_lib_save_LIBS
25654fi
38d24731
RW
25655echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5
25656echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6
1409cd0b
FXC
25657if test $ac_cv_lib_m_nextafter = yes; then
25658
25659cat >>confdefs.h <<\_ACEOF
25660#define HAVE_NEXTAFTER 1
25661_ACEOF
25662
25663fi
25664
38d24731
RW
25665echo "$as_me:$LINENO: checking for nextafterl in -lm" >&5
25666echo $ECHO_N "checking for nextafterl in -lm... $ECHO_C" >&6
1409cd0b
FXC
25667if test "${ac_cv_lib_m_nextafterl+set}" = set; then
25668 echo $ECHO_N "(cached) $ECHO_C" >&6
25669else
25670 ac_check_lib_save_LIBS=$LIBS
25671LIBS="-lm $LIBS"
25672if test x$gcc_no_link = xyes; then
25673 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25674echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25675 { (exit 1); exit 1; }; }
25676fi
25677cat >conftest.$ac_ext <<_ACEOF
25678/* confdefs.h. */
25679_ACEOF
25680cat confdefs.h >>conftest.$ac_ext
25681cat >>conftest.$ac_ext <<_ACEOF
25682/* end confdefs.h. */
25683
38d24731 25684/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
25685#ifdef __cplusplus
25686extern "C"
25687#endif
38d24731
RW
25688/* We use char because int might match the return type of a gcc2
25689 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
25690char nextafterl ();
25691int
25692main ()
25693{
38d24731 25694nextafterl ();
1409cd0b
FXC
25695 ;
25696 return 0;
25697}
25698_ACEOF
25699rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
25700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25701 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
25702 ac_status=$?
25703 grep -v '^ *+' conftest.er1 >conftest.err
25704 rm -f conftest.er1
25705 cat conftest.err >&5
25706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
25707 (exit $ac_status); } &&
25708 { ac_try='test -z "$ac_c_werror_flag"
25709 || test ! -s conftest.err'
25710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25711 (eval $ac_try) 2>&5
25712 ac_status=$?
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); }; } &&
25715 { ac_try='test -s conftest$ac_exeext'
25716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25717 (eval $ac_try) 2>&5
25718 ac_status=$?
25719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720 (exit $ac_status); }; }; then
1409cd0b
FXC
25721 ac_cv_lib_m_nextafterl=yes
25722else
25723 echo "$as_me: failed program was:" >&5
25724sed 's/^/| /' conftest.$ac_ext >&5
25725
38d24731 25726ac_cv_lib_m_nextafterl=no
1409cd0b 25727fi
38d24731 25728rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
25729 conftest$ac_exeext conftest.$ac_ext
25730LIBS=$ac_check_lib_save_LIBS
25731fi
38d24731
RW
25732echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterl" >&5
25733echo "${ECHO_T}$ac_cv_lib_m_nextafterl" >&6
1409cd0b
FXC
25734if test $ac_cv_lib_m_nextafterl = yes; then
25735
25736cat >>confdefs.h <<\_ACEOF
25737#define HAVE_NEXTAFTERL 1
25738_ACEOF
25739
25740fi
25741
38d24731
RW
25742echo "$as_me:$LINENO: checking for powf in -lm" >&5
25743echo $ECHO_N "checking for powf in -lm... $ECHO_C" >&6
1409cd0b
FXC
25744if test "${ac_cv_lib_m_powf+set}" = set; then
25745 echo $ECHO_N "(cached) $ECHO_C" >&6
25746else
25747 ac_check_lib_save_LIBS=$LIBS
25748LIBS="-lm $LIBS"
25749if test x$gcc_no_link = xyes; then
25750 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25751echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25752 { (exit 1); exit 1; }; }
25753fi
25754cat >conftest.$ac_ext <<_ACEOF
25755/* confdefs.h. */
25756_ACEOF
25757cat confdefs.h >>conftest.$ac_ext
25758cat >>conftest.$ac_ext <<_ACEOF
25759/* end confdefs.h. */
25760
38d24731 25761/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
25762#ifdef __cplusplus
25763extern "C"
25764#endif
38d24731
RW
25765/* We use char because int might match the return type of a gcc2
25766 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
25767char powf ();
25768int
25769main ()
25770{
38d24731 25771powf ();
1409cd0b
FXC
25772 ;
25773 return 0;
25774}
25775_ACEOF
25776rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
25777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25778 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
25779 ac_status=$?
25780 grep -v '^ *+' conftest.er1 >conftest.err
25781 rm -f conftest.er1
25782 cat conftest.err >&5
25783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
25784 (exit $ac_status); } &&
25785 { ac_try='test -z "$ac_c_werror_flag"
25786 || test ! -s conftest.err'
25787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25788 (eval $ac_try) 2>&5
25789 ac_status=$?
25790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791 (exit $ac_status); }; } &&
25792 { ac_try='test -s conftest$ac_exeext'
25793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25794 (eval $ac_try) 2>&5
25795 ac_status=$?
25796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25797 (exit $ac_status); }; }; then
1409cd0b
FXC
25798 ac_cv_lib_m_powf=yes
25799else
25800 echo "$as_me: failed program was:" >&5
25801sed 's/^/| /' conftest.$ac_ext >&5
25802
38d24731 25803ac_cv_lib_m_powf=no
1409cd0b 25804fi
38d24731 25805rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
25806 conftest$ac_exeext conftest.$ac_ext
25807LIBS=$ac_check_lib_save_LIBS
25808fi
38d24731
RW
25809echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5
25810echo "${ECHO_T}$ac_cv_lib_m_powf" >&6
1409cd0b
FXC
25811if test $ac_cv_lib_m_powf = yes; then
25812
25813cat >>confdefs.h <<\_ACEOF
25814#define HAVE_POWF 1
25815_ACEOF
25816
25817fi
25818
38d24731
RW
25819echo "$as_me:$LINENO: checking for pow in -lm" >&5
25820echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
1409cd0b
FXC
25821if test "${ac_cv_lib_m_pow+set}" = set; then
25822 echo $ECHO_N "(cached) $ECHO_C" >&6
25823else
25824 ac_check_lib_save_LIBS=$LIBS
25825LIBS="-lm $LIBS"
25826if test x$gcc_no_link = xyes; then
25827 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25828echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25829 { (exit 1); exit 1; }; }
25830fi
25831cat >conftest.$ac_ext <<_ACEOF
25832/* confdefs.h. */
25833_ACEOF
25834cat confdefs.h >>conftest.$ac_ext
25835cat >>conftest.$ac_ext <<_ACEOF
25836/* end confdefs.h. */
25837
38d24731 25838/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
25839#ifdef __cplusplus
25840extern "C"
25841#endif
38d24731
RW
25842/* We use char because int might match the return type of a gcc2
25843 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
25844char pow ();
25845int
25846main ()
25847{
38d24731 25848pow ();
1409cd0b
FXC
25849 ;
25850 return 0;
25851}
25852_ACEOF
25853rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
25854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25855 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
25856 ac_status=$?
25857 grep -v '^ *+' conftest.er1 >conftest.err
25858 rm -f conftest.er1
25859 cat conftest.err >&5
25860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
25861 (exit $ac_status); } &&
25862 { ac_try='test -z "$ac_c_werror_flag"
25863 || test ! -s conftest.err'
25864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25865 (eval $ac_try) 2>&5
25866 ac_status=$?
25867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868 (exit $ac_status); }; } &&
25869 { ac_try='test -s conftest$ac_exeext'
25870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25871 (eval $ac_try) 2>&5
25872 ac_status=$?
25873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874 (exit $ac_status); }; }; then
1409cd0b
FXC
25875 ac_cv_lib_m_pow=yes
25876else
25877 echo "$as_me: failed program was:" >&5
25878sed 's/^/| /' conftest.$ac_ext >&5
25879
38d24731 25880ac_cv_lib_m_pow=no
1409cd0b 25881fi
38d24731 25882rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
25883 conftest$ac_exeext conftest.$ac_ext
25884LIBS=$ac_check_lib_save_LIBS
25885fi
38d24731
RW
25886echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
25887echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
1409cd0b
FXC
25888if test $ac_cv_lib_m_pow = yes; then
25889
25890cat >>confdefs.h <<\_ACEOF
25891#define HAVE_POW 1
25892_ACEOF
25893
25894fi
25895
38d24731
RW
25896echo "$as_me:$LINENO: checking for powl in -lm" >&5
25897echo $ECHO_N "checking for powl in -lm... $ECHO_C" >&6
1409cd0b
FXC
25898if test "${ac_cv_lib_m_powl+set}" = set; then
25899 echo $ECHO_N "(cached) $ECHO_C" >&6
25900else
25901 ac_check_lib_save_LIBS=$LIBS
25902LIBS="-lm $LIBS"
25903if test x$gcc_no_link = xyes; then
25904 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25905echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25906 { (exit 1); exit 1; }; }
25907fi
25908cat >conftest.$ac_ext <<_ACEOF
25909/* confdefs.h. */
25910_ACEOF
25911cat confdefs.h >>conftest.$ac_ext
25912cat >>conftest.$ac_ext <<_ACEOF
25913/* end confdefs.h. */
25914
38d24731 25915/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
25916#ifdef __cplusplus
25917extern "C"
25918#endif
38d24731
RW
25919/* We use char because int might match the return type of a gcc2
25920 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
25921char powl ();
25922int
25923main ()
25924{
38d24731 25925powl ();
1409cd0b
FXC
25926 ;
25927 return 0;
25928}
25929_ACEOF
25930rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
25931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25932 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
25933 ac_status=$?
25934 grep -v '^ *+' conftest.er1 >conftest.err
25935 rm -f conftest.er1
25936 cat conftest.err >&5
25937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
25938 (exit $ac_status); } &&
25939 { ac_try='test -z "$ac_c_werror_flag"
25940 || test ! -s conftest.err'
25941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25942 (eval $ac_try) 2>&5
25943 ac_status=$?
25944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945 (exit $ac_status); }; } &&
25946 { ac_try='test -s conftest$ac_exeext'
25947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25948 (eval $ac_try) 2>&5
25949 ac_status=$?
25950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951 (exit $ac_status); }; }; then
1409cd0b
FXC
25952 ac_cv_lib_m_powl=yes
25953else
25954 echo "$as_me: failed program was:" >&5
25955sed 's/^/| /' conftest.$ac_ext >&5
25956
38d24731 25957ac_cv_lib_m_powl=no
1409cd0b 25958fi
38d24731 25959rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
25960 conftest$ac_exeext conftest.$ac_ext
25961LIBS=$ac_check_lib_save_LIBS
25962fi
38d24731
RW
25963echo "$as_me:$LINENO: result: $ac_cv_lib_m_powl" >&5
25964echo "${ECHO_T}$ac_cv_lib_m_powl" >&6
1409cd0b
FXC
25965if test $ac_cv_lib_m_powl = yes; then
25966
25967cat >>confdefs.h <<\_ACEOF
25968#define HAVE_POWL 1
25969_ACEOF
25970
25971fi
25972
38d24731
RW
25973echo "$as_me:$LINENO: checking for cpowf in -lm" >&5
25974echo $ECHO_N "checking for cpowf in -lm... $ECHO_C" >&6
1409cd0b
FXC
25975if test "${ac_cv_lib_m_cpowf+set}" = set; then
25976 echo $ECHO_N "(cached) $ECHO_C" >&6
25977else
25978 ac_check_lib_save_LIBS=$LIBS
25979LIBS="-lm $LIBS"
25980if test x$gcc_no_link = xyes; then
25981 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25982echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25983 { (exit 1); exit 1; }; }
25984fi
25985cat >conftest.$ac_ext <<_ACEOF
25986/* confdefs.h. */
25987_ACEOF
25988cat confdefs.h >>conftest.$ac_ext
25989cat >>conftest.$ac_ext <<_ACEOF
25990/* end confdefs.h. */
25991
38d24731 25992/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
25993#ifdef __cplusplus
25994extern "C"
25995#endif
38d24731
RW
25996/* We use char because int might match the return type of a gcc2
25997 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
25998char cpowf ();
25999int
26000main ()
26001{
38d24731 26002cpowf ();
1409cd0b
FXC
26003 ;
26004 return 0;
26005}
26006_ACEOF
26007rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
26008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26009 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
26010 ac_status=$?
26011 grep -v '^ *+' conftest.er1 >conftest.err
26012 rm -f conftest.er1
26013 cat conftest.err >&5
26014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
26015 (exit $ac_status); } &&
26016 { ac_try='test -z "$ac_c_werror_flag"
26017 || test ! -s conftest.err'
26018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26019 (eval $ac_try) 2>&5
26020 ac_status=$?
26021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022 (exit $ac_status); }; } &&
26023 { ac_try='test -s conftest$ac_exeext'
26024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26025 (eval $ac_try) 2>&5
26026 ac_status=$?
26027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26028 (exit $ac_status); }; }; then
1409cd0b
FXC
26029 ac_cv_lib_m_cpowf=yes
26030else
26031 echo "$as_me: failed program was:" >&5
26032sed 's/^/| /' conftest.$ac_ext >&5
26033
38d24731 26034ac_cv_lib_m_cpowf=no
1409cd0b 26035fi
38d24731 26036rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
26037 conftest$ac_exeext conftest.$ac_ext
26038LIBS=$ac_check_lib_save_LIBS
26039fi
38d24731
RW
26040echo "$as_me:$LINENO: result: $ac_cv_lib_m_cpowf" >&5
26041echo "${ECHO_T}$ac_cv_lib_m_cpowf" >&6
1409cd0b
FXC
26042if test $ac_cv_lib_m_cpowf = yes; then
26043
26044cat >>confdefs.h <<\_ACEOF
26045#define HAVE_CPOWF 1
26046_ACEOF
26047
26048fi
26049
38d24731
RW
26050echo "$as_me:$LINENO: checking for cpow in -lm" >&5
26051echo $ECHO_N "checking for cpow in -lm... $ECHO_C" >&6
1409cd0b
FXC
26052if test "${ac_cv_lib_m_cpow+set}" = set; then
26053 echo $ECHO_N "(cached) $ECHO_C" >&6
26054else
26055 ac_check_lib_save_LIBS=$LIBS
26056LIBS="-lm $LIBS"
26057if test x$gcc_no_link = xyes; then
26058 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26059echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26060 { (exit 1); exit 1; }; }
26061fi
26062cat >conftest.$ac_ext <<_ACEOF
26063/* confdefs.h. */
26064_ACEOF
26065cat confdefs.h >>conftest.$ac_ext
26066cat >>conftest.$ac_ext <<_ACEOF
26067/* end confdefs.h. */
26068
38d24731 26069/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
26070#ifdef __cplusplus
26071extern "C"
26072#endif
38d24731
RW
26073/* We use char because int might match the return type of a gcc2
26074 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
26075char cpow ();
26076int
26077main ()
26078{
38d24731 26079cpow ();
1409cd0b
FXC
26080 ;
26081 return 0;
26082}
26083_ACEOF
26084rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
26085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26086 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
26087 ac_status=$?
26088 grep -v '^ *+' conftest.er1 >conftest.err
26089 rm -f conftest.er1
26090 cat conftest.err >&5
26091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
26092 (exit $ac_status); } &&
26093 { ac_try='test -z "$ac_c_werror_flag"
26094 || test ! -s conftest.err'
26095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26096 (eval $ac_try) 2>&5
26097 ac_status=$?
26098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099 (exit $ac_status); }; } &&
26100 { ac_try='test -s conftest$ac_exeext'
26101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26102 (eval $ac_try) 2>&5
26103 ac_status=$?
26104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105 (exit $ac_status); }; }; then
1409cd0b
FXC
26106 ac_cv_lib_m_cpow=yes
26107else
26108 echo "$as_me: failed program was:" >&5
26109sed 's/^/| /' conftest.$ac_ext >&5
26110
38d24731 26111ac_cv_lib_m_cpow=no
1409cd0b 26112fi
38d24731 26113rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
26114 conftest$ac_exeext conftest.$ac_ext
26115LIBS=$ac_check_lib_save_LIBS
26116fi
38d24731
RW
26117echo "$as_me:$LINENO: result: $ac_cv_lib_m_cpow" >&5
26118echo "${ECHO_T}$ac_cv_lib_m_cpow" >&6
1409cd0b
FXC
26119if test $ac_cv_lib_m_cpow = yes; then
26120
26121cat >>confdefs.h <<\_ACEOF
26122#define HAVE_CPOW 1
26123_ACEOF
26124
26125fi
26126
38d24731
RW
26127echo "$as_me:$LINENO: checking for cpowl in -lm" >&5
26128echo $ECHO_N "checking for cpowl in -lm... $ECHO_C" >&6
1409cd0b
FXC
26129if test "${ac_cv_lib_m_cpowl+set}" = set; then
26130 echo $ECHO_N "(cached) $ECHO_C" >&6
26131else
26132 ac_check_lib_save_LIBS=$LIBS
26133LIBS="-lm $LIBS"
26134if test x$gcc_no_link = xyes; then
26135 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26136echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26137 { (exit 1); exit 1; }; }
26138fi
26139cat >conftest.$ac_ext <<_ACEOF
26140/* confdefs.h. */
26141_ACEOF
26142cat confdefs.h >>conftest.$ac_ext
26143cat >>conftest.$ac_ext <<_ACEOF
26144/* end confdefs.h. */
26145
38d24731 26146/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
26147#ifdef __cplusplus
26148extern "C"
26149#endif
38d24731
RW
26150/* We use char because int might match the return type of a gcc2
26151 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
26152char cpowl ();
26153int
26154main ()
26155{
38d24731 26156cpowl ();
1409cd0b
FXC
26157 ;
26158 return 0;
26159}
26160_ACEOF
26161rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
26162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26163 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
26164 ac_status=$?
26165 grep -v '^ *+' conftest.er1 >conftest.err
26166 rm -f conftest.er1
26167 cat conftest.err >&5
26168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
26169 (exit $ac_status); } &&
26170 { ac_try='test -z "$ac_c_werror_flag"
26171 || test ! -s conftest.err'
26172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26173 (eval $ac_try) 2>&5
26174 ac_status=$?
26175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176 (exit $ac_status); }; } &&
26177 { ac_try='test -s conftest$ac_exeext'
26178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26179 (eval $ac_try) 2>&5
26180 ac_status=$?
26181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182 (exit $ac_status); }; }; then
1409cd0b
FXC
26183 ac_cv_lib_m_cpowl=yes
26184else
26185 echo "$as_me: failed program was:" >&5
26186sed 's/^/| /' conftest.$ac_ext >&5
26187
38d24731 26188ac_cv_lib_m_cpowl=no
1409cd0b 26189fi
38d24731 26190rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
26191 conftest$ac_exeext conftest.$ac_ext
26192LIBS=$ac_check_lib_save_LIBS
26193fi
38d24731
RW
26194echo "$as_me:$LINENO: result: $ac_cv_lib_m_cpowl" >&5
26195echo "${ECHO_T}$ac_cv_lib_m_cpowl" >&6
1409cd0b
FXC
26196if test $ac_cv_lib_m_cpowl = yes; then
26197
26198cat >>confdefs.h <<\_ACEOF
26199#define HAVE_CPOWL 1
26200_ACEOF
26201
26202fi
26203
38d24731
RW
26204echo "$as_me:$LINENO: checking for roundf in -lm" >&5
26205echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6
1409cd0b
FXC
26206if test "${ac_cv_lib_m_roundf+set}" = set; then
26207 echo $ECHO_N "(cached) $ECHO_C" >&6
26208else
26209 ac_check_lib_save_LIBS=$LIBS
26210LIBS="-lm $LIBS"
26211if test x$gcc_no_link = xyes; then
26212 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26213echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26214 { (exit 1); exit 1; }; }
26215fi
26216cat >conftest.$ac_ext <<_ACEOF
26217/* confdefs.h. */
26218_ACEOF
26219cat confdefs.h >>conftest.$ac_ext
26220cat >>conftest.$ac_ext <<_ACEOF
26221/* end confdefs.h. */
26222
38d24731 26223/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
26224#ifdef __cplusplus
26225extern "C"
26226#endif
38d24731
RW
26227/* We use char because int might match the return type of a gcc2
26228 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
26229char roundf ();
26230int
26231main ()
26232{
38d24731 26233roundf ();
1409cd0b
FXC
26234 ;
26235 return 0;
26236}
26237_ACEOF
26238rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
26239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26240 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
26241 ac_status=$?
26242 grep -v '^ *+' conftest.er1 >conftest.err
26243 rm -f conftest.er1
26244 cat conftest.err >&5
26245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
26246 (exit $ac_status); } &&
26247 { ac_try='test -z "$ac_c_werror_flag"
26248 || test ! -s conftest.err'
26249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26250 (eval $ac_try) 2>&5
26251 ac_status=$?
26252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253 (exit $ac_status); }; } &&
26254 { ac_try='test -s conftest$ac_exeext'
26255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26256 (eval $ac_try) 2>&5
26257 ac_status=$?
26258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); }; }; then
1409cd0b
FXC
26260 ac_cv_lib_m_roundf=yes
26261else
26262 echo "$as_me: failed program was:" >&5
26263sed 's/^/| /' conftest.$ac_ext >&5
26264
38d24731 26265ac_cv_lib_m_roundf=no
1409cd0b 26266fi
38d24731 26267rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
26268 conftest$ac_exeext conftest.$ac_ext
26269LIBS=$ac_check_lib_save_LIBS
26270fi
38d24731
RW
26271echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5
26272echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6
1409cd0b
FXC
26273if test $ac_cv_lib_m_roundf = yes; then
26274
26275cat >>confdefs.h <<\_ACEOF
26276#define HAVE_ROUNDF 1
26277_ACEOF
26278
26279fi
26280
38d24731
RW
26281echo "$as_me:$LINENO: checking for round in -lm" >&5
26282echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6
1409cd0b
FXC
26283if test "${ac_cv_lib_m_round+set}" = set; then
26284 echo $ECHO_N "(cached) $ECHO_C" >&6
26285else
26286 ac_check_lib_save_LIBS=$LIBS
26287LIBS="-lm $LIBS"
26288if test x$gcc_no_link = xyes; then
26289 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26290echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26291 { (exit 1); exit 1; }; }
26292fi
26293cat >conftest.$ac_ext <<_ACEOF
26294/* confdefs.h. */
26295_ACEOF
26296cat confdefs.h >>conftest.$ac_ext
26297cat >>conftest.$ac_ext <<_ACEOF
26298/* end confdefs.h. */
26299
38d24731 26300/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
26301#ifdef __cplusplus
26302extern "C"
26303#endif
38d24731
RW
26304/* We use char because int might match the return type of a gcc2
26305 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
26306char round ();
26307int
26308main ()
26309{
38d24731 26310round ();
1409cd0b
FXC
26311 ;
26312 return 0;
26313}
26314_ACEOF
26315rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
26316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26317 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
26318 ac_status=$?
26319 grep -v '^ *+' conftest.er1 >conftest.err
26320 rm -f conftest.er1
26321 cat conftest.err >&5
26322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
26323 (exit $ac_status); } &&
26324 { ac_try='test -z "$ac_c_werror_flag"
26325 || test ! -s conftest.err'
26326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26327 (eval $ac_try) 2>&5
26328 ac_status=$?
26329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330 (exit $ac_status); }; } &&
26331 { ac_try='test -s conftest$ac_exeext'
26332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26333 (eval $ac_try) 2>&5
26334 ac_status=$?
26335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336 (exit $ac_status); }; }; then
1409cd0b
FXC
26337 ac_cv_lib_m_round=yes
26338else
26339 echo "$as_me: failed program was:" >&5
26340sed 's/^/| /' conftest.$ac_ext >&5
26341
38d24731 26342ac_cv_lib_m_round=no
1409cd0b 26343fi
38d24731 26344rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
26345 conftest$ac_exeext conftest.$ac_ext
26346LIBS=$ac_check_lib_save_LIBS
26347fi
38d24731
RW
26348echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5
26349echo "${ECHO_T}$ac_cv_lib_m_round" >&6
1409cd0b
FXC
26350if test $ac_cv_lib_m_round = yes; then
26351
26352cat >>confdefs.h <<\_ACEOF
26353#define HAVE_ROUND 1
26354_ACEOF
26355
26356fi
26357
38d24731
RW
26358echo "$as_me:$LINENO: checking for roundl in -lm" >&5
26359echo $ECHO_N "checking for roundl in -lm... $ECHO_C" >&6
1409cd0b
FXC
26360if test "${ac_cv_lib_m_roundl+set}" = set; then
26361 echo $ECHO_N "(cached) $ECHO_C" >&6
26362else
26363 ac_check_lib_save_LIBS=$LIBS
26364LIBS="-lm $LIBS"
26365if test x$gcc_no_link = xyes; then
26366 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26367echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26368 { (exit 1); exit 1; }; }
26369fi
26370cat >conftest.$ac_ext <<_ACEOF
26371/* confdefs.h. */
26372_ACEOF
26373cat confdefs.h >>conftest.$ac_ext
26374cat >>conftest.$ac_ext <<_ACEOF
26375/* end confdefs.h. */
26376
38d24731 26377/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
26378#ifdef __cplusplus
26379extern "C"
26380#endif
38d24731
RW
26381/* We use char because int might match the return type of a gcc2
26382 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
26383char roundl ();
26384int
26385main ()
26386{
38d24731 26387roundl ();
1409cd0b
FXC
26388 ;
26389 return 0;
26390}
26391_ACEOF
26392rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
26393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26394 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
26395 ac_status=$?
26396 grep -v '^ *+' conftest.er1 >conftest.err
26397 rm -f conftest.er1
26398 cat conftest.err >&5
26399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
26400 (exit $ac_status); } &&
26401 { ac_try='test -z "$ac_c_werror_flag"
26402 || test ! -s conftest.err'
26403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26404 (eval $ac_try) 2>&5
26405 ac_status=$?
26406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407 (exit $ac_status); }; } &&
26408 { ac_try='test -s conftest$ac_exeext'
26409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26410 (eval $ac_try) 2>&5
26411 ac_status=$?
26412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26413 (exit $ac_status); }; }; then
1409cd0b
FXC
26414 ac_cv_lib_m_roundl=yes
26415else
26416 echo "$as_me: failed program was:" >&5
26417sed 's/^/| /' conftest.$ac_ext >&5
26418
38d24731 26419ac_cv_lib_m_roundl=no
1409cd0b 26420fi
38d24731 26421rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
26422 conftest$ac_exeext conftest.$ac_ext
26423LIBS=$ac_check_lib_save_LIBS
26424fi
38d24731
RW
26425echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundl" >&5
26426echo "${ECHO_T}$ac_cv_lib_m_roundl" >&6
1409cd0b
FXC
26427if test $ac_cv_lib_m_roundl = yes; then
26428
26429cat >>confdefs.h <<\_ACEOF
26430#define HAVE_ROUNDL 1
26431_ACEOF
26432
26433fi
26434
38d24731
RW
26435echo "$as_me:$LINENO: checking for lroundf in -lm" >&5
26436echo $ECHO_N "checking for lroundf in -lm... $ECHO_C" >&6
94f548c2
FXC
26437if test "${ac_cv_lib_m_lroundf+set}" = set; then
26438 echo $ECHO_N "(cached) $ECHO_C" >&6
26439else
26440 ac_check_lib_save_LIBS=$LIBS
26441LIBS="-lm $LIBS"
26442if test x$gcc_no_link = xyes; then
26443 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26444echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26445 { (exit 1); exit 1; }; }
26446fi
26447cat >conftest.$ac_ext <<_ACEOF
26448/* confdefs.h. */
26449_ACEOF
26450cat confdefs.h >>conftest.$ac_ext
26451cat >>conftest.$ac_ext <<_ACEOF
26452/* end confdefs.h. */
26453
38d24731 26454/* Override any gcc2 internal prototype to avoid an error. */
94f548c2
FXC
26455#ifdef __cplusplus
26456extern "C"
26457#endif
38d24731
RW
26458/* We use char because int might match the return type of a gcc2
26459 builtin and then its argument prototype would still apply. */
94f548c2
FXC
26460char lroundf ();
26461int
26462main ()
26463{
38d24731 26464lroundf ();
94f548c2
FXC
26465 ;
26466 return 0;
26467}
26468_ACEOF
26469rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
26470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26471 (eval $ac_link) 2>conftest.er1
94f548c2
FXC
26472 ac_status=$?
26473 grep -v '^ *+' conftest.er1 >conftest.err
26474 rm -f conftest.er1
26475 cat conftest.err >&5
26476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
26477 (exit $ac_status); } &&
26478 { ac_try='test -z "$ac_c_werror_flag"
26479 || test ! -s conftest.err'
26480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26481 (eval $ac_try) 2>&5
26482 ac_status=$?
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); }; } &&
26485 { ac_try='test -s conftest$ac_exeext'
26486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26487 (eval $ac_try) 2>&5
26488 ac_status=$?
26489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490 (exit $ac_status); }; }; then
94f548c2
FXC
26491 ac_cv_lib_m_lroundf=yes
26492else
26493 echo "$as_me: failed program was:" >&5
26494sed 's/^/| /' conftest.$ac_ext >&5
26495
38d24731 26496ac_cv_lib_m_lroundf=no
94f548c2 26497fi
38d24731 26498rm -f conftest.err conftest.$ac_objext \
94f548c2
FXC
26499 conftest$ac_exeext conftest.$ac_ext
26500LIBS=$ac_check_lib_save_LIBS
26501fi
38d24731
RW
26502echo "$as_me:$LINENO: result: $ac_cv_lib_m_lroundf" >&5
26503echo "${ECHO_T}$ac_cv_lib_m_lroundf" >&6
94f548c2
FXC
26504if test $ac_cv_lib_m_lroundf = yes; then
26505
26506cat >>confdefs.h <<\_ACEOF
26507#define HAVE_LROUNDF 1
26508_ACEOF
26509
26510fi
26511
38d24731
RW
26512echo "$as_me:$LINENO: checking for lround in -lm" >&5
26513echo $ECHO_N "checking for lround in -lm... $ECHO_C" >&6
94f548c2
FXC
26514if test "${ac_cv_lib_m_lround+set}" = set; then
26515 echo $ECHO_N "(cached) $ECHO_C" >&6
26516else
26517 ac_check_lib_save_LIBS=$LIBS
26518LIBS="-lm $LIBS"
26519if test x$gcc_no_link = xyes; then
26520 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26521echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26522 { (exit 1); exit 1; }; }
26523fi
26524cat >conftest.$ac_ext <<_ACEOF
26525/* confdefs.h. */
26526_ACEOF
26527cat confdefs.h >>conftest.$ac_ext
26528cat >>conftest.$ac_ext <<_ACEOF
26529/* end confdefs.h. */
26530
38d24731 26531/* Override any gcc2 internal prototype to avoid an error. */
94f548c2
FXC
26532#ifdef __cplusplus
26533extern "C"
26534#endif
38d24731
RW
26535/* We use char because int might match the return type of a gcc2
26536 builtin and then its argument prototype would still apply. */
94f548c2
FXC
26537char lround ();
26538int
26539main ()
26540{
38d24731 26541lround ();
94f548c2
FXC
26542 ;
26543 return 0;
26544}
26545_ACEOF
26546rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
26547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26548 (eval $ac_link) 2>conftest.er1
94f548c2
FXC
26549 ac_status=$?
26550 grep -v '^ *+' conftest.er1 >conftest.err
26551 rm -f conftest.er1
26552 cat conftest.err >&5
26553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
26554 (exit $ac_status); } &&
26555 { ac_try='test -z "$ac_c_werror_flag"
26556 || test ! -s conftest.err'
26557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26558 (eval $ac_try) 2>&5
26559 ac_status=$?
26560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561 (exit $ac_status); }; } &&
26562 { ac_try='test -s conftest$ac_exeext'
26563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26564 (eval $ac_try) 2>&5
26565 ac_status=$?
26566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567 (exit $ac_status); }; }; then
94f548c2
FXC
26568 ac_cv_lib_m_lround=yes
26569else
26570 echo "$as_me: failed program was:" >&5
26571sed 's/^/| /' conftest.$ac_ext >&5
26572
38d24731 26573ac_cv_lib_m_lround=no
94f548c2 26574fi
38d24731 26575rm -f conftest.err conftest.$ac_objext \
94f548c2
FXC
26576 conftest$ac_exeext conftest.$ac_ext
26577LIBS=$ac_check_lib_save_LIBS
26578fi
38d24731
RW
26579echo "$as_me:$LINENO: result: $ac_cv_lib_m_lround" >&5
26580echo "${ECHO_T}$ac_cv_lib_m_lround" >&6
94f548c2
FXC
26581if test $ac_cv_lib_m_lround = yes; then
26582
26583cat >>confdefs.h <<\_ACEOF
26584#define HAVE_LROUND 1
26585_ACEOF
26586
26587fi
26588
38d24731
RW
26589echo "$as_me:$LINENO: checking for lroundl in -lm" >&5
26590echo $ECHO_N "checking for lroundl in -lm... $ECHO_C" >&6
94f548c2
FXC
26591if test "${ac_cv_lib_m_lroundl+set}" = set; then
26592 echo $ECHO_N "(cached) $ECHO_C" >&6
26593else
26594 ac_check_lib_save_LIBS=$LIBS
26595LIBS="-lm $LIBS"
26596if test x$gcc_no_link = xyes; then
26597 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26598echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26599 { (exit 1); exit 1; }; }
26600fi
26601cat >conftest.$ac_ext <<_ACEOF
26602/* confdefs.h. */
26603_ACEOF
26604cat confdefs.h >>conftest.$ac_ext
26605cat >>conftest.$ac_ext <<_ACEOF
26606/* end confdefs.h. */
26607
38d24731 26608/* Override any gcc2 internal prototype to avoid an error. */
94f548c2
FXC
26609#ifdef __cplusplus
26610extern "C"
26611#endif
38d24731
RW
26612/* We use char because int might match the return type of a gcc2
26613 builtin and then its argument prototype would still apply. */
94f548c2
FXC
26614char lroundl ();
26615int
26616main ()
26617{
38d24731 26618lroundl ();
94f548c2
FXC
26619 ;
26620 return 0;
26621}
26622_ACEOF
26623rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
26624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26625 (eval $ac_link) 2>conftest.er1
94f548c2
FXC
26626 ac_status=$?
26627 grep -v '^ *+' conftest.er1 >conftest.err
26628 rm -f conftest.er1
26629 cat conftest.err >&5
26630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
26631 (exit $ac_status); } &&
26632 { ac_try='test -z "$ac_c_werror_flag"
26633 || test ! -s conftest.err'
26634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26635 (eval $ac_try) 2>&5
26636 ac_status=$?
26637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26638 (exit $ac_status); }; } &&
26639 { ac_try='test -s conftest$ac_exeext'
26640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26641 (eval $ac_try) 2>&5
26642 ac_status=$?
26643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644 (exit $ac_status); }; }; then
94f548c2
FXC
26645 ac_cv_lib_m_lroundl=yes
26646else
26647 echo "$as_me: failed program was:" >&5
26648sed 's/^/| /' conftest.$ac_ext >&5
26649
38d24731 26650ac_cv_lib_m_lroundl=no
94f548c2 26651fi
38d24731 26652rm -f conftest.err conftest.$ac_objext \
94f548c2
FXC
26653 conftest$ac_exeext conftest.$ac_ext
26654LIBS=$ac_check_lib_save_LIBS
26655fi
38d24731
RW
26656echo "$as_me:$LINENO: result: $ac_cv_lib_m_lroundl" >&5
26657echo "${ECHO_T}$ac_cv_lib_m_lroundl" >&6
94f548c2
FXC
26658if test $ac_cv_lib_m_lroundl = yes; then
26659
26660cat >>confdefs.h <<\_ACEOF
26661#define HAVE_LROUNDL 1
26662_ACEOF
26663
26664fi
26665
38d24731
RW
26666echo "$as_me:$LINENO: checking for llroundf in -lm" >&5
26667echo $ECHO_N "checking for llroundf in -lm... $ECHO_C" >&6
94f548c2
FXC
26668if test "${ac_cv_lib_m_llroundf+set}" = set; then
26669 echo $ECHO_N "(cached) $ECHO_C" >&6
26670else
26671 ac_check_lib_save_LIBS=$LIBS
26672LIBS="-lm $LIBS"
26673if test x$gcc_no_link = xyes; then
26674 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26675echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26676 { (exit 1); exit 1; }; }
26677fi
26678cat >conftest.$ac_ext <<_ACEOF
26679/* confdefs.h. */
26680_ACEOF
26681cat confdefs.h >>conftest.$ac_ext
26682cat >>conftest.$ac_ext <<_ACEOF
26683/* end confdefs.h. */
26684
38d24731 26685/* Override any gcc2 internal prototype to avoid an error. */
94f548c2
FXC
26686#ifdef __cplusplus
26687extern "C"
26688#endif
38d24731
RW
26689/* We use char because int might match the return type of a gcc2
26690 builtin and then its argument prototype would still apply. */
94f548c2
FXC
26691char llroundf ();
26692int
26693main ()
26694{
38d24731 26695llroundf ();
94f548c2
FXC
26696 ;
26697 return 0;
26698}
26699_ACEOF
26700rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
26701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26702 (eval $ac_link) 2>conftest.er1
94f548c2
FXC
26703 ac_status=$?
26704 grep -v '^ *+' conftest.er1 >conftest.err
26705 rm -f conftest.er1
26706 cat conftest.err >&5
26707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
26708 (exit $ac_status); } &&
26709 { ac_try='test -z "$ac_c_werror_flag"
26710 || test ! -s conftest.err'
26711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26712 (eval $ac_try) 2>&5
26713 ac_status=$?
26714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); }; } &&
26716 { ac_try='test -s conftest$ac_exeext'
26717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26718 (eval $ac_try) 2>&5
26719 ac_status=$?
26720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26721 (exit $ac_status); }; }; then
94f548c2
FXC
26722 ac_cv_lib_m_llroundf=yes
26723else
26724 echo "$as_me: failed program was:" >&5
26725sed 's/^/| /' conftest.$ac_ext >&5
26726
38d24731 26727ac_cv_lib_m_llroundf=no
94f548c2 26728fi
38d24731 26729rm -f conftest.err conftest.$ac_objext \
94f548c2
FXC
26730 conftest$ac_exeext conftest.$ac_ext
26731LIBS=$ac_check_lib_save_LIBS
26732fi
38d24731
RW
26733echo "$as_me:$LINENO: result: $ac_cv_lib_m_llroundf" >&5
26734echo "${ECHO_T}$ac_cv_lib_m_llroundf" >&6
94f548c2
FXC
26735if test $ac_cv_lib_m_llroundf = yes; then
26736
26737cat >>confdefs.h <<\_ACEOF
26738#define HAVE_LLROUNDF 1
26739_ACEOF
26740
26741fi
26742
38d24731
RW
26743echo "$as_me:$LINENO: checking for llround in -lm" >&5
26744echo $ECHO_N "checking for llround in -lm... $ECHO_C" >&6
94f548c2
FXC
26745if test "${ac_cv_lib_m_llround+set}" = set; then
26746 echo $ECHO_N "(cached) $ECHO_C" >&6
26747else
26748 ac_check_lib_save_LIBS=$LIBS
26749LIBS="-lm $LIBS"
26750if test x$gcc_no_link = xyes; then
26751 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26752echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26753 { (exit 1); exit 1; }; }
26754fi
26755cat >conftest.$ac_ext <<_ACEOF
26756/* confdefs.h. */
26757_ACEOF
26758cat confdefs.h >>conftest.$ac_ext
26759cat >>conftest.$ac_ext <<_ACEOF
26760/* end confdefs.h. */
26761
38d24731 26762/* Override any gcc2 internal prototype to avoid an error. */
94f548c2
FXC
26763#ifdef __cplusplus
26764extern "C"
26765#endif
38d24731
RW
26766/* We use char because int might match the return type of a gcc2
26767 builtin and then its argument prototype would still apply. */
94f548c2
FXC
26768char llround ();
26769int
26770main ()
26771{
38d24731 26772llround ();
94f548c2
FXC
26773 ;
26774 return 0;
26775}
26776_ACEOF
26777rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
26778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26779 (eval $ac_link) 2>conftest.er1
94f548c2
FXC
26780 ac_status=$?
26781 grep -v '^ *+' conftest.er1 >conftest.err
26782 rm -f conftest.er1
26783 cat conftest.err >&5
26784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
26785 (exit $ac_status); } &&
26786 { ac_try='test -z "$ac_c_werror_flag"
26787 || test ! -s conftest.err'
26788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26789 (eval $ac_try) 2>&5
26790 ac_status=$?
26791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792 (exit $ac_status); }; } &&
26793 { ac_try='test -s conftest$ac_exeext'
26794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26795 (eval $ac_try) 2>&5
26796 ac_status=$?
26797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798 (exit $ac_status); }; }; then
94f548c2
FXC
26799 ac_cv_lib_m_llround=yes
26800else
26801 echo "$as_me: failed program was:" >&5
26802sed 's/^/| /' conftest.$ac_ext >&5
26803
38d24731 26804ac_cv_lib_m_llround=no
94f548c2 26805fi
38d24731 26806rm -f conftest.err conftest.$ac_objext \
94f548c2
FXC
26807 conftest$ac_exeext conftest.$ac_ext
26808LIBS=$ac_check_lib_save_LIBS
26809fi
38d24731
RW
26810echo "$as_me:$LINENO: result: $ac_cv_lib_m_llround" >&5
26811echo "${ECHO_T}$ac_cv_lib_m_llround" >&6
94f548c2
FXC
26812if test $ac_cv_lib_m_llround = yes; then
26813
26814cat >>confdefs.h <<\_ACEOF
26815#define HAVE_LLROUND 1
26816_ACEOF
26817
26818fi
26819
38d24731
RW
26820echo "$as_me:$LINENO: checking for llroundl in -lm" >&5
26821echo $ECHO_N "checking for llroundl in -lm... $ECHO_C" >&6
94f548c2
FXC
26822if test "${ac_cv_lib_m_llroundl+set}" = set; then
26823 echo $ECHO_N "(cached) $ECHO_C" >&6
26824else
26825 ac_check_lib_save_LIBS=$LIBS
26826LIBS="-lm $LIBS"
26827if test x$gcc_no_link = xyes; then
26828 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26829echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26830 { (exit 1); exit 1; }; }
26831fi
26832cat >conftest.$ac_ext <<_ACEOF
26833/* confdefs.h. */
26834_ACEOF
26835cat confdefs.h >>conftest.$ac_ext
26836cat >>conftest.$ac_ext <<_ACEOF
26837/* end confdefs.h. */
26838
38d24731 26839/* Override any gcc2 internal prototype to avoid an error. */
94f548c2
FXC
26840#ifdef __cplusplus
26841extern "C"
26842#endif
38d24731
RW
26843/* We use char because int might match the return type of a gcc2
26844 builtin and then its argument prototype would still apply. */
94f548c2
FXC
26845char llroundl ();
26846int
26847main ()
26848{
38d24731 26849llroundl ();
94f548c2
FXC
26850 ;
26851 return 0;
26852}
26853_ACEOF
26854rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
26855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26856 (eval $ac_link) 2>conftest.er1
94f548c2
FXC
26857 ac_status=$?
26858 grep -v '^ *+' conftest.er1 >conftest.err
26859 rm -f conftest.er1
26860 cat conftest.err >&5
26861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
26862 (exit $ac_status); } &&
26863 { ac_try='test -z "$ac_c_werror_flag"
26864 || test ! -s conftest.err'
26865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26866 (eval $ac_try) 2>&5
26867 ac_status=$?
26868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869 (exit $ac_status); }; } &&
26870 { ac_try='test -s conftest$ac_exeext'
26871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26872 (eval $ac_try) 2>&5
26873 ac_status=$?
26874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875 (exit $ac_status); }; }; then
94f548c2
FXC
26876 ac_cv_lib_m_llroundl=yes
26877else
26878 echo "$as_me: failed program was:" >&5
26879sed 's/^/| /' conftest.$ac_ext >&5
26880
38d24731 26881ac_cv_lib_m_llroundl=no
94f548c2 26882fi
38d24731 26883rm -f conftest.err conftest.$ac_objext \
94f548c2
FXC
26884 conftest$ac_exeext conftest.$ac_ext
26885LIBS=$ac_check_lib_save_LIBS
26886fi
38d24731
RW
26887echo "$as_me:$LINENO: result: $ac_cv_lib_m_llroundl" >&5
26888echo "${ECHO_T}$ac_cv_lib_m_llroundl" >&6
94f548c2
FXC
26889if test $ac_cv_lib_m_llroundl = yes; then
26890
26891cat >>confdefs.h <<\_ACEOF
26892#define HAVE_LLROUNDL 1
26893_ACEOF
26894
26895fi
26896
38d24731
RW
26897echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5
26898echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6
1409cd0b
FXC
26899if test "${ac_cv_lib_m_scalbnf+set}" = set; then
26900 echo $ECHO_N "(cached) $ECHO_C" >&6
26901else
26902 ac_check_lib_save_LIBS=$LIBS
26903LIBS="-lm $LIBS"
26904if test x$gcc_no_link = xyes; then
26905 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26906echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26907 { (exit 1); exit 1; }; }
26908fi
26909cat >conftest.$ac_ext <<_ACEOF
26910/* confdefs.h. */
26911_ACEOF
26912cat confdefs.h >>conftest.$ac_ext
26913cat >>conftest.$ac_ext <<_ACEOF
26914/* end confdefs.h. */
26915
38d24731 26916/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
26917#ifdef __cplusplus
26918extern "C"
26919#endif
38d24731
RW
26920/* We use char because int might match the return type of a gcc2
26921 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
26922char scalbnf ();
26923int
26924main ()
26925{
38d24731 26926scalbnf ();
1409cd0b
FXC
26927 ;
26928 return 0;
26929}
26930_ACEOF
26931rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
26932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26933 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
26934 ac_status=$?
26935 grep -v '^ *+' conftest.er1 >conftest.err
26936 rm -f conftest.er1
26937 cat conftest.err >&5
26938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
26939 (exit $ac_status); } &&
26940 { ac_try='test -z "$ac_c_werror_flag"
26941 || test ! -s conftest.err'
26942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26943 (eval $ac_try) 2>&5
26944 ac_status=$?
26945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946 (exit $ac_status); }; } &&
26947 { ac_try='test -s conftest$ac_exeext'
26948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26949 (eval $ac_try) 2>&5
26950 ac_status=$?
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); }; }; then
1409cd0b
FXC
26953 ac_cv_lib_m_scalbnf=yes
26954else
26955 echo "$as_me: failed program was:" >&5
26956sed 's/^/| /' conftest.$ac_ext >&5
26957
38d24731 26958ac_cv_lib_m_scalbnf=no
1409cd0b 26959fi
38d24731 26960rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
26961 conftest$ac_exeext conftest.$ac_ext
26962LIBS=$ac_check_lib_save_LIBS
26963fi
38d24731
RW
26964echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5
26965echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6
1409cd0b
FXC
26966if test $ac_cv_lib_m_scalbnf = yes; then
26967
26968cat >>confdefs.h <<\_ACEOF
26969#define HAVE_SCALBNF 1
26970_ACEOF
26971
26972fi
26973
38d24731
RW
26974echo "$as_me:$LINENO: checking for scalbn in -lm" >&5
26975echo $ECHO_N "checking for scalbn in -lm... $ECHO_C" >&6
1409cd0b
FXC
26976if test "${ac_cv_lib_m_scalbn+set}" = set; then
26977 echo $ECHO_N "(cached) $ECHO_C" >&6
26978else
26979 ac_check_lib_save_LIBS=$LIBS
26980LIBS="-lm $LIBS"
26981if test x$gcc_no_link = xyes; then
26982 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26983echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26984 { (exit 1); exit 1; }; }
26985fi
26986cat >conftest.$ac_ext <<_ACEOF
26987/* confdefs.h. */
26988_ACEOF
26989cat confdefs.h >>conftest.$ac_ext
26990cat >>conftest.$ac_ext <<_ACEOF
26991/* end confdefs.h. */
26992
38d24731 26993/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
26994#ifdef __cplusplus
26995extern "C"
26996#endif
38d24731
RW
26997/* We use char because int might match the return type of a gcc2
26998 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
26999char scalbn ();
27000int
27001main ()
27002{
38d24731 27003scalbn ();
1409cd0b
FXC
27004 ;
27005 return 0;
27006}
27007_ACEOF
27008rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
27009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27010 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
27011 ac_status=$?
27012 grep -v '^ *+' conftest.er1 >conftest.err
27013 rm -f conftest.er1
27014 cat conftest.err >&5
27015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
27016 (exit $ac_status); } &&
27017 { ac_try='test -z "$ac_c_werror_flag"
27018 || test ! -s conftest.err'
27019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27020 (eval $ac_try) 2>&5
27021 ac_status=$?
27022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27023 (exit $ac_status); }; } &&
27024 { ac_try='test -s conftest$ac_exeext'
27025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27026 (eval $ac_try) 2>&5
27027 ac_status=$?
27028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029 (exit $ac_status); }; }; then
1409cd0b
FXC
27030 ac_cv_lib_m_scalbn=yes
27031else
27032 echo "$as_me: failed program was:" >&5
27033sed 's/^/| /' conftest.$ac_ext >&5
27034
38d24731 27035ac_cv_lib_m_scalbn=no
1409cd0b 27036fi
38d24731 27037rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
27038 conftest$ac_exeext conftest.$ac_ext
27039LIBS=$ac_check_lib_save_LIBS
27040fi
38d24731
RW
27041echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbn" >&5
27042echo "${ECHO_T}$ac_cv_lib_m_scalbn" >&6
1409cd0b
FXC
27043if test $ac_cv_lib_m_scalbn = yes; then
27044
27045cat >>confdefs.h <<\_ACEOF
27046#define HAVE_SCALBN 1
27047_ACEOF
27048
27049fi
27050
38d24731
RW
27051echo "$as_me:$LINENO: checking for scalbnl in -lm" >&5
27052echo $ECHO_N "checking for scalbnl in -lm... $ECHO_C" >&6
1409cd0b
FXC
27053if test "${ac_cv_lib_m_scalbnl+set}" = set; then
27054 echo $ECHO_N "(cached) $ECHO_C" >&6
27055else
27056 ac_check_lib_save_LIBS=$LIBS
27057LIBS="-lm $LIBS"
27058if test x$gcc_no_link = xyes; then
27059 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27060echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27061 { (exit 1); exit 1; }; }
27062fi
27063cat >conftest.$ac_ext <<_ACEOF
27064/* confdefs.h. */
27065_ACEOF
27066cat confdefs.h >>conftest.$ac_ext
27067cat >>conftest.$ac_ext <<_ACEOF
27068/* end confdefs.h. */
27069
38d24731 27070/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
27071#ifdef __cplusplus
27072extern "C"
27073#endif
38d24731
RW
27074/* We use char because int might match the return type of a gcc2
27075 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
27076char scalbnl ();
27077int
27078main ()
27079{
38d24731 27080scalbnl ();
1409cd0b
FXC
27081 ;
27082 return 0;
27083}
27084_ACEOF
27085rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
27086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27087 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
27088 ac_status=$?
27089 grep -v '^ *+' conftest.er1 >conftest.err
27090 rm -f conftest.er1
27091 cat conftest.err >&5
27092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
27093 (exit $ac_status); } &&
27094 { ac_try='test -z "$ac_c_werror_flag"
27095 || test ! -s conftest.err'
27096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27097 (eval $ac_try) 2>&5
27098 ac_status=$?
27099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27100 (exit $ac_status); }; } &&
27101 { ac_try='test -s conftest$ac_exeext'
27102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27103 (eval $ac_try) 2>&5
27104 ac_status=$?
27105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106 (exit $ac_status); }; }; then
1409cd0b
FXC
27107 ac_cv_lib_m_scalbnl=yes
27108else
27109 echo "$as_me: failed program was:" >&5
27110sed 's/^/| /' conftest.$ac_ext >&5
27111
38d24731 27112ac_cv_lib_m_scalbnl=no
1409cd0b 27113fi
38d24731 27114rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
27115 conftest$ac_exeext conftest.$ac_ext
27116LIBS=$ac_check_lib_save_LIBS
27117fi
38d24731
RW
27118echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnl" >&5
27119echo "${ECHO_T}$ac_cv_lib_m_scalbnl" >&6
1409cd0b
FXC
27120if test $ac_cv_lib_m_scalbnl = yes; then
27121
27122cat >>confdefs.h <<\_ACEOF
27123#define HAVE_SCALBNL 1
27124_ACEOF
27125
27126fi
27127
38d24731
RW
27128echo "$as_me:$LINENO: checking for sinf in -lm" >&5
27129echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6
1409cd0b
FXC
27130if test "${ac_cv_lib_m_sinf+set}" = set; then
27131 echo $ECHO_N "(cached) $ECHO_C" >&6
27132else
27133 ac_check_lib_save_LIBS=$LIBS
27134LIBS="-lm $LIBS"
27135if test x$gcc_no_link = xyes; then
27136 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27137echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27138 { (exit 1); exit 1; }; }
27139fi
27140cat >conftest.$ac_ext <<_ACEOF
27141/* confdefs.h. */
27142_ACEOF
27143cat confdefs.h >>conftest.$ac_ext
27144cat >>conftest.$ac_ext <<_ACEOF
27145/* end confdefs.h. */
27146
38d24731 27147/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
27148#ifdef __cplusplus
27149extern "C"
27150#endif
38d24731
RW
27151/* We use char because int might match the return type of a gcc2
27152 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
27153char sinf ();
27154int
27155main ()
27156{
38d24731 27157sinf ();
1409cd0b
FXC
27158 ;
27159 return 0;
27160}
27161_ACEOF
27162rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
27163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27164 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
27165 ac_status=$?
27166 grep -v '^ *+' conftest.er1 >conftest.err
27167 rm -f conftest.er1
27168 cat conftest.err >&5
27169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
27170 (exit $ac_status); } &&
27171 { ac_try='test -z "$ac_c_werror_flag"
27172 || test ! -s conftest.err'
27173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27174 (eval $ac_try) 2>&5
27175 ac_status=$?
27176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); }; } &&
27178 { ac_try='test -s conftest$ac_exeext'
27179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27180 (eval $ac_try) 2>&5
27181 ac_status=$?
27182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183 (exit $ac_status); }; }; then
1409cd0b
FXC
27184 ac_cv_lib_m_sinf=yes
27185else
27186 echo "$as_me: failed program was:" >&5
27187sed 's/^/| /' conftest.$ac_ext >&5
27188
38d24731 27189ac_cv_lib_m_sinf=no
1409cd0b 27190fi
38d24731 27191rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
27192 conftest$ac_exeext conftest.$ac_ext
27193LIBS=$ac_check_lib_save_LIBS
27194fi
38d24731
RW
27195echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
27196echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6
1409cd0b
FXC
27197if test $ac_cv_lib_m_sinf = yes; then
27198
27199cat >>confdefs.h <<\_ACEOF
27200#define HAVE_SINF 1
27201_ACEOF
27202
27203fi
27204
38d24731
RW
27205echo "$as_me:$LINENO: checking for sin in -lm" >&5
27206echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
1409cd0b
FXC
27207if test "${ac_cv_lib_m_sin+set}" = set; then
27208 echo $ECHO_N "(cached) $ECHO_C" >&6
27209else
27210 ac_check_lib_save_LIBS=$LIBS
27211LIBS="-lm $LIBS"
27212if test x$gcc_no_link = xyes; then
27213 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27214echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27215 { (exit 1); exit 1; }; }
27216fi
27217cat >conftest.$ac_ext <<_ACEOF
27218/* confdefs.h. */
27219_ACEOF
27220cat confdefs.h >>conftest.$ac_ext
27221cat >>conftest.$ac_ext <<_ACEOF
27222/* end confdefs.h. */
27223
38d24731 27224/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
27225#ifdef __cplusplus
27226extern "C"
27227#endif
38d24731
RW
27228/* We use char because int might match the return type of a gcc2
27229 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
27230char sin ();
27231int
27232main ()
27233{
38d24731 27234sin ();
1409cd0b
FXC
27235 ;
27236 return 0;
27237}
27238_ACEOF
27239rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
27240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27241 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
27242 ac_status=$?
27243 grep -v '^ *+' conftest.er1 >conftest.err
27244 rm -f conftest.er1
27245 cat conftest.err >&5
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
27247 (exit $ac_status); } &&
27248 { ac_try='test -z "$ac_c_werror_flag"
27249 || test ! -s conftest.err'
27250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27251 (eval $ac_try) 2>&5
27252 ac_status=$?
27253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254 (exit $ac_status); }; } &&
27255 { ac_try='test -s conftest$ac_exeext'
27256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27257 (eval $ac_try) 2>&5
27258 ac_status=$?
27259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260 (exit $ac_status); }; }; then
1409cd0b
FXC
27261 ac_cv_lib_m_sin=yes
27262else
27263 echo "$as_me: failed program was:" >&5
27264sed 's/^/| /' conftest.$ac_ext >&5
27265
38d24731 27266ac_cv_lib_m_sin=no
1409cd0b 27267fi
38d24731 27268rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
27269 conftest$ac_exeext conftest.$ac_ext
27270LIBS=$ac_check_lib_save_LIBS
27271fi
38d24731
RW
27272echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27273echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
1409cd0b
FXC
27274if test $ac_cv_lib_m_sin = yes; then
27275
27276cat >>confdefs.h <<\_ACEOF
27277#define HAVE_SIN 1
27278_ACEOF
27279
27280fi
27281
38d24731
RW
27282echo "$as_me:$LINENO: checking for sinl in -lm" >&5
27283echo $ECHO_N "checking for sinl in -lm... $ECHO_C" >&6
1409cd0b
FXC
27284if test "${ac_cv_lib_m_sinl+set}" = set; then
27285 echo $ECHO_N "(cached) $ECHO_C" >&6
27286else
27287 ac_check_lib_save_LIBS=$LIBS
27288LIBS="-lm $LIBS"
27289if test x$gcc_no_link = xyes; then
27290 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27291echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27292 { (exit 1); exit 1; }; }
27293fi
27294cat >conftest.$ac_ext <<_ACEOF
27295/* confdefs.h. */
27296_ACEOF
27297cat confdefs.h >>conftest.$ac_ext
27298cat >>conftest.$ac_ext <<_ACEOF
27299/* end confdefs.h. */
27300
38d24731 27301/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
27302#ifdef __cplusplus
27303extern "C"
27304#endif
38d24731
RW
27305/* We use char because int might match the return type of a gcc2
27306 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
27307char sinl ();
27308int
27309main ()
27310{
38d24731 27311sinl ();
1409cd0b
FXC
27312 ;
27313 return 0;
27314}
27315_ACEOF
27316rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
27317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27318 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
27319 ac_status=$?
27320 grep -v '^ *+' conftest.er1 >conftest.err
27321 rm -f conftest.er1
27322 cat conftest.err >&5
27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
27324 (exit $ac_status); } &&
27325 { ac_try='test -z "$ac_c_werror_flag"
27326 || test ! -s conftest.err'
27327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27328 (eval $ac_try) 2>&5
27329 ac_status=$?
27330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331 (exit $ac_status); }; } &&
27332 { ac_try='test -s conftest$ac_exeext'
27333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27334 (eval $ac_try) 2>&5
27335 ac_status=$?
27336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337 (exit $ac_status); }; }; then
1409cd0b
FXC
27338 ac_cv_lib_m_sinl=yes
27339else
27340 echo "$as_me: failed program was:" >&5
27341sed 's/^/| /' conftest.$ac_ext >&5
27342
38d24731 27343ac_cv_lib_m_sinl=no
1409cd0b 27344fi
38d24731 27345rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
27346 conftest$ac_exeext conftest.$ac_ext
27347LIBS=$ac_check_lib_save_LIBS
27348fi
38d24731
RW
27349echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinl" >&5
27350echo "${ECHO_T}$ac_cv_lib_m_sinl" >&6
1409cd0b
FXC
27351if test $ac_cv_lib_m_sinl = yes; then
27352
27353cat >>confdefs.h <<\_ACEOF
27354#define HAVE_SINL 1
27355_ACEOF
27356
27357fi
27358
38d24731
RW
27359echo "$as_me:$LINENO: checking for csinf in -lm" >&5
27360echo $ECHO_N "checking for csinf in -lm... $ECHO_C" >&6
1409cd0b
FXC
27361if test "${ac_cv_lib_m_csinf+set}" = set; then
27362 echo $ECHO_N "(cached) $ECHO_C" >&6
27363else
27364 ac_check_lib_save_LIBS=$LIBS
27365LIBS="-lm $LIBS"
27366if test x$gcc_no_link = xyes; then
27367 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27368echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27369 { (exit 1); exit 1; }; }
27370fi
27371cat >conftest.$ac_ext <<_ACEOF
27372/* confdefs.h. */
27373_ACEOF
27374cat confdefs.h >>conftest.$ac_ext
27375cat >>conftest.$ac_ext <<_ACEOF
27376/* end confdefs.h. */
27377
38d24731 27378/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
27379#ifdef __cplusplus
27380extern "C"
27381#endif
38d24731
RW
27382/* We use char because int might match the return type of a gcc2
27383 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
27384char csinf ();
27385int
27386main ()
27387{
38d24731 27388csinf ();
1409cd0b
FXC
27389 ;
27390 return 0;
27391}
27392_ACEOF
27393rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
27394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27395 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
27396 ac_status=$?
27397 grep -v '^ *+' conftest.er1 >conftest.err
27398 rm -f conftest.er1
27399 cat conftest.err >&5
27400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
27401 (exit $ac_status); } &&
27402 { ac_try='test -z "$ac_c_werror_flag"
27403 || test ! -s conftest.err'
27404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405 (eval $ac_try) 2>&5
27406 ac_status=$?
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; } &&
27409 { ac_try='test -s conftest$ac_exeext'
27410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27411 (eval $ac_try) 2>&5
27412 ac_status=$?
27413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); }; }; then
1409cd0b
FXC
27415 ac_cv_lib_m_csinf=yes
27416else
27417 echo "$as_me: failed program was:" >&5
27418sed 's/^/| /' conftest.$ac_ext >&5
27419
38d24731 27420ac_cv_lib_m_csinf=no
1409cd0b 27421fi
38d24731 27422rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
27423 conftest$ac_exeext conftest.$ac_ext
27424LIBS=$ac_check_lib_save_LIBS
27425fi
38d24731
RW
27426echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinf" >&5
27427echo "${ECHO_T}$ac_cv_lib_m_csinf" >&6
1409cd0b
FXC
27428if test $ac_cv_lib_m_csinf = yes; then
27429
27430cat >>confdefs.h <<\_ACEOF
27431#define HAVE_CSINF 1
27432_ACEOF
27433
27434fi
27435
38d24731
RW
27436echo "$as_me:$LINENO: checking for csin in -lm" >&5
27437echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6
1409cd0b
FXC
27438if test "${ac_cv_lib_m_csin+set}" = set; then
27439 echo $ECHO_N "(cached) $ECHO_C" >&6
27440else
27441 ac_check_lib_save_LIBS=$LIBS
27442LIBS="-lm $LIBS"
27443if test x$gcc_no_link = xyes; then
27444 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27445echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27446 { (exit 1); exit 1; }; }
27447fi
27448cat >conftest.$ac_ext <<_ACEOF
27449/* confdefs.h. */
27450_ACEOF
27451cat confdefs.h >>conftest.$ac_ext
27452cat >>conftest.$ac_ext <<_ACEOF
27453/* end confdefs.h. */
27454
38d24731 27455/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
27456#ifdef __cplusplus
27457extern "C"
27458#endif
38d24731
RW
27459/* We use char because int might match the return type of a gcc2
27460 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
27461char csin ();
27462int
27463main ()
27464{
38d24731 27465csin ();
1409cd0b
FXC
27466 ;
27467 return 0;
27468}
27469_ACEOF
27470rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
27471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27472 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
27473 ac_status=$?
27474 grep -v '^ *+' conftest.er1 >conftest.err
27475 rm -f conftest.er1
27476 cat conftest.err >&5
27477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
27478 (exit $ac_status); } &&
27479 { ac_try='test -z "$ac_c_werror_flag"
27480 || test ! -s conftest.err'
27481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27482 (eval $ac_try) 2>&5
27483 ac_status=$?
27484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27485 (exit $ac_status); }; } &&
27486 { ac_try='test -s conftest$ac_exeext'
27487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27488 (eval $ac_try) 2>&5
27489 ac_status=$?
27490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27491 (exit $ac_status); }; }; then
1409cd0b
FXC
27492 ac_cv_lib_m_csin=yes
27493else
27494 echo "$as_me: failed program was:" >&5
27495sed 's/^/| /' conftest.$ac_ext >&5
27496
38d24731 27497ac_cv_lib_m_csin=no
1409cd0b 27498fi
38d24731 27499rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
27500 conftest$ac_exeext conftest.$ac_ext
27501LIBS=$ac_check_lib_save_LIBS
27502fi
38d24731
RW
27503echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5
27504echo "${ECHO_T}$ac_cv_lib_m_csin" >&6
1409cd0b
FXC
27505if test $ac_cv_lib_m_csin = yes; then
27506
27507cat >>confdefs.h <<\_ACEOF
27508#define HAVE_CSIN 1
27509_ACEOF
27510
27511fi
27512
38d24731
RW
27513echo "$as_me:$LINENO: checking for csinl in -lm" >&5
27514echo $ECHO_N "checking for csinl in -lm... $ECHO_C" >&6
1409cd0b
FXC
27515if test "${ac_cv_lib_m_csinl+set}" = set; then
27516 echo $ECHO_N "(cached) $ECHO_C" >&6
27517else
27518 ac_check_lib_save_LIBS=$LIBS
27519LIBS="-lm $LIBS"
27520if test x$gcc_no_link = xyes; then
27521 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27522echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27523 { (exit 1); exit 1; }; }
27524fi
27525cat >conftest.$ac_ext <<_ACEOF
27526/* confdefs.h. */
27527_ACEOF
27528cat confdefs.h >>conftest.$ac_ext
27529cat >>conftest.$ac_ext <<_ACEOF
27530/* end confdefs.h. */
27531
38d24731 27532/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
27533#ifdef __cplusplus
27534extern "C"
27535#endif
38d24731
RW
27536/* We use char because int might match the return type of a gcc2
27537 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
27538char csinl ();
27539int
27540main ()
27541{
38d24731 27542csinl ();
1409cd0b
FXC
27543 ;
27544 return 0;
27545}
27546_ACEOF
27547rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
27548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27549 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
27550 ac_status=$?
27551 grep -v '^ *+' conftest.er1 >conftest.err
27552 rm -f conftest.er1
27553 cat conftest.err >&5
27554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
27555 (exit $ac_status); } &&
27556 { ac_try='test -z "$ac_c_werror_flag"
27557 || test ! -s conftest.err'
27558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27559 (eval $ac_try) 2>&5
27560 ac_status=$?
27561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562 (exit $ac_status); }; } &&
27563 { ac_try='test -s conftest$ac_exeext'
27564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27565 (eval $ac_try) 2>&5
27566 ac_status=$?
27567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568 (exit $ac_status); }; }; then
1409cd0b
FXC
27569 ac_cv_lib_m_csinl=yes
27570else
27571 echo "$as_me: failed program was:" >&5
27572sed 's/^/| /' conftest.$ac_ext >&5
27573
38d24731 27574ac_cv_lib_m_csinl=no
1409cd0b 27575fi
38d24731 27576rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
27577 conftest$ac_exeext conftest.$ac_ext
27578LIBS=$ac_check_lib_save_LIBS
27579fi
38d24731
RW
27580echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinl" >&5
27581echo "${ECHO_T}$ac_cv_lib_m_csinl" >&6
1409cd0b
FXC
27582if test $ac_cv_lib_m_csinl = yes; then
27583
27584cat >>confdefs.h <<\_ACEOF
27585#define HAVE_CSINL 1
27586_ACEOF
27587
27588fi
27589
38d24731
RW
27590echo "$as_me:$LINENO: checking for sinhf in -lm" >&5
27591echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6
1409cd0b
FXC
27592if test "${ac_cv_lib_m_sinhf+set}" = set; then
27593 echo $ECHO_N "(cached) $ECHO_C" >&6
27594else
27595 ac_check_lib_save_LIBS=$LIBS
27596LIBS="-lm $LIBS"
27597if test x$gcc_no_link = xyes; then
27598 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27599echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27600 { (exit 1); exit 1; }; }
27601fi
27602cat >conftest.$ac_ext <<_ACEOF
27603/* confdefs.h. */
27604_ACEOF
27605cat confdefs.h >>conftest.$ac_ext
27606cat >>conftest.$ac_ext <<_ACEOF
27607/* end confdefs.h. */
27608
38d24731 27609/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
27610#ifdef __cplusplus
27611extern "C"
27612#endif
38d24731
RW
27613/* We use char because int might match the return type of a gcc2
27614 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
27615char sinhf ();
27616int
27617main ()
27618{
38d24731 27619sinhf ();
1409cd0b
FXC
27620 ;
27621 return 0;
27622}
27623_ACEOF
27624rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
27625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27626 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
27627 ac_status=$?
27628 grep -v '^ *+' conftest.er1 >conftest.err
27629 rm -f conftest.er1
27630 cat conftest.err >&5
27631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
27632 (exit $ac_status); } &&
27633 { ac_try='test -z "$ac_c_werror_flag"
27634 || test ! -s conftest.err'
27635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27636 (eval $ac_try) 2>&5
27637 ac_status=$?
27638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639 (exit $ac_status); }; } &&
27640 { ac_try='test -s conftest$ac_exeext'
27641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27642 (eval $ac_try) 2>&5
27643 ac_status=$?
27644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645 (exit $ac_status); }; }; then
1409cd0b
FXC
27646 ac_cv_lib_m_sinhf=yes
27647else
27648 echo "$as_me: failed program was:" >&5
27649sed 's/^/| /' conftest.$ac_ext >&5
27650
38d24731 27651ac_cv_lib_m_sinhf=no
1409cd0b 27652fi
38d24731 27653rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
27654 conftest$ac_exeext conftest.$ac_ext
27655LIBS=$ac_check_lib_save_LIBS
27656fi
38d24731
RW
27657echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhf" >&5
27658echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6
1409cd0b
FXC
27659if test $ac_cv_lib_m_sinhf = yes; then
27660
27661cat >>confdefs.h <<\_ACEOF
27662#define HAVE_SINHF 1
27663_ACEOF
27664
27665fi
27666
38d24731
RW
27667echo "$as_me:$LINENO: checking for sinh in -lm" >&5
27668echo $ECHO_N "checking for sinh in -lm... $ECHO_C" >&6
1409cd0b
FXC
27669if test "${ac_cv_lib_m_sinh+set}" = set; then
27670 echo $ECHO_N "(cached) $ECHO_C" >&6
27671else
27672 ac_check_lib_save_LIBS=$LIBS
27673LIBS="-lm $LIBS"
27674if test x$gcc_no_link = xyes; then
27675 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27676echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27677 { (exit 1); exit 1; }; }
27678fi
27679cat >conftest.$ac_ext <<_ACEOF
27680/* confdefs.h. */
27681_ACEOF
27682cat confdefs.h >>conftest.$ac_ext
27683cat >>conftest.$ac_ext <<_ACEOF
27684/* end confdefs.h. */
27685
38d24731 27686/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
27687#ifdef __cplusplus
27688extern "C"
27689#endif
38d24731
RW
27690/* We use char because int might match the return type of a gcc2
27691 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
27692char sinh ();
27693int
27694main ()
27695{
38d24731 27696sinh ();
1409cd0b
FXC
27697 ;
27698 return 0;
27699}
27700_ACEOF
27701rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
27702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27703 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
27704 ac_status=$?
27705 grep -v '^ *+' conftest.er1 >conftest.err
27706 rm -f conftest.er1
27707 cat conftest.err >&5
27708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
27709 (exit $ac_status); } &&
27710 { ac_try='test -z "$ac_c_werror_flag"
27711 || test ! -s conftest.err'
27712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27713 (eval $ac_try) 2>&5
27714 ac_status=$?
27715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716 (exit $ac_status); }; } &&
27717 { ac_try='test -s conftest$ac_exeext'
27718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27719 (eval $ac_try) 2>&5
27720 ac_status=$?
27721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722 (exit $ac_status); }; }; then
1409cd0b
FXC
27723 ac_cv_lib_m_sinh=yes
27724else
27725 echo "$as_me: failed program was:" >&5
27726sed 's/^/| /' conftest.$ac_ext >&5
27727
38d24731 27728ac_cv_lib_m_sinh=no
1409cd0b 27729fi
38d24731 27730rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
27731 conftest$ac_exeext conftest.$ac_ext
27732LIBS=$ac_check_lib_save_LIBS
27733fi
38d24731
RW
27734echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinh" >&5
27735echo "${ECHO_T}$ac_cv_lib_m_sinh" >&6
1409cd0b
FXC
27736if test $ac_cv_lib_m_sinh = yes; then
27737
27738cat >>confdefs.h <<\_ACEOF
27739#define HAVE_SINH 1
27740_ACEOF
27741
27742fi
27743
38d24731
RW
27744echo "$as_me:$LINENO: checking for sinhl in -lm" >&5
27745echo $ECHO_N "checking for sinhl in -lm... $ECHO_C" >&6
1409cd0b
FXC
27746if test "${ac_cv_lib_m_sinhl+set}" = set; then
27747 echo $ECHO_N "(cached) $ECHO_C" >&6
27748else
27749 ac_check_lib_save_LIBS=$LIBS
27750LIBS="-lm $LIBS"
27751if test x$gcc_no_link = xyes; then
27752 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27753echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27754 { (exit 1); exit 1; }; }
27755fi
27756cat >conftest.$ac_ext <<_ACEOF
27757/* confdefs.h. */
27758_ACEOF
27759cat confdefs.h >>conftest.$ac_ext
27760cat >>conftest.$ac_ext <<_ACEOF
27761/* end confdefs.h. */
27762
38d24731 27763/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
27764#ifdef __cplusplus
27765extern "C"
27766#endif
38d24731
RW
27767/* We use char because int might match the return type of a gcc2
27768 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
27769char sinhl ();
27770int
27771main ()
27772{
38d24731 27773sinhl ();
1409cd0b
FXC
27774 ;
27775 return 0;
27776}
27777_ACEOF
27778rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
27779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27780 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
27781 ac_status=$?
27782 grep -v '^ *+' conftest.er1 >conftest.err
27783 rm -f conftest.er1
27784 cat conftest.err >&5
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
27786 (exit $ac_status); } &&
27787 { ac_try='test -z "$ac_c_werror_flag"
27788 || test ! -s conftest.err'
27789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27790 (eval $ac_try) 2>&5
27791 ac_status=$?
27792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793 (exit $ac_status); }; } &&
27794 { ac_try='test -s conftest$ac_exeext'
27795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27796 (eval $ac_try) 2>&5
27797 ac_status=$?
27798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27799 (exit $ac_status); }; }; then
1409cd0b
FXC
27800 ac_cv_lib_m_sinhl=yes
27801else
27802 echo "$as_me: failed program was:" >&5
27803sed 's/^/| /' conftest.$ac_ext >&5
27804
38d24731 27805ac_cv_lib_m_sinhl=no
1409cd0b 27806fi
38d24731 27807rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
27808 conftest$ac_exeext conftest.$ac_ext
27809LIBS=$ac_check_lib_save_LIBS
27810fi
38d24731
RW
27811echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhl" >&5
27812echo "${ECHO_T}$ac_cv_lib_m_sinhl" >&6
1409cd0b
FXC
27813if test $ac_cv_lib_m_sinhl = yes; then
27814
27815cat >>confdefs.h <<\_ACEOF
27816#define HAVE_SINHL 1
27817_ACEOF
27818
27819fi
27820
38d24731
RW
27821echo "$as_me:$LINENO: checking for csinhf in -lm" >&5
27822echo $ECHO_N "checking for csinhf in -lm... $ECHO_C" >&6
1409cd0b
FXC
27823if test "${ac_cv_lib_m_csinhf+set}" = set; then
27824 echo $ECHO_N "(cached) $ECHO_C" >&6
27825else
27826 ac_check_lib_save_LIBS=$LIBS
27827LIBS="-lm $LIBS"
27828if test x$gcc_no_link = xyes; then
27829 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27830echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27831 { (exit 1); exit 1; }; }
27832fi
27833cat >conftest.$ac_ext <<_ACEOF
27834/* confdefs.h. */
27835_ACEOF
27836cat confdefs.h >>conftest.$ac_ext
27837cat >>conftest.$ac_ext <<_ACEOF
27838/* end confdefs.h. */
27839
38d24731 27840/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
27841#ifdef __cplusplus
27842extern "C"
27843#endif
38d24731
RW
27844/* We use char because int might match the return type of a gcc2
27845 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
27846char csinhf ();
27847int
27848main ()
27849{
38d24731 27850csinhf ();
1409cd0b
FXC
27851 ;
27852 return 0;
27853}
27854_ACEOF
27855rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
27856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27857 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
27858 ac_status=$?
27859 grep -v '^ *+' conftest.er1 >conftest.err
27860 rm -f conftest.er1
27861 cat conftest.err >&5
27862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
27863 (exit $ac_status); } &&
27864 { ac_try='test -z "$ac_c_werror_flag"
27865 || test ! -s conftest.err'
27866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27867 (eval $ac_try) 2>&5
27868 ac_status=$?
27869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870 (exit $ac_status); }; } &&
27871 { ac_try='test -s conftest$ac_exeext'
27872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27873 (eval $ac_try) 2>&5
27874 ac_status=$?
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); }; }; then
1409cd0b
FXC
27877 ac_cv_lib_m_csinhf=yes
27878else
27879 echo "$as_me: failed program was:" >&5
27880sed 's/^/| /' conftest.$ac_ext >&5
27881
38d24731 27882ac_cv_lib_m_csinhf=no
1409cd0b 27883fi
38d24731 27884rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
27885 conftest$ac_exeext conftest.$ac_ext
27886LIBS=$ac_check_lib_save_LIBS
27887fi
38d24731
RW
27888echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinhf" >&5
27889echo "${ECHO_T}$ac_cv_lib_m_csinhf" >&6
1409cd0b
FXC
27890if test $ac_cv_lib_m_csinhf = yes; then
27891
27892cat >>confdefs.h <<\_ACEOF
27893#define HAVE_CSINHF 1
27894_ACEOF
27895
27896fi
27897
38d24731
RW
27898echo "$as_me:$LINENO: checking for csinh in -lm" >&5
27899echo $ECHO_N "checking for csinh in -lm... $ECHO_C" >&6
1409cd0b
FXC
27900if test "${ac_cv_lib_m_csinh+set}" = set; then
27901 echo $ECHO_N "(cached) $ECHO_C" >&6
27902else
27903 ac_check_lib_save_LIBS=$LIBS
27904LIBS="-lm $LIBS"
27905if test x$gcc_no_link = xyes; then
27906 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27907echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27908 { (exit 1); exit 1; }; }
27909fi
27910cat >conftest.$ac_ext <<_ACEOF
27911/* confdefs.h. */
27912_ACEOF
27913cat confdefs.h >>conftest.$ac_ext
27914cat >>conftest.$ac_ext <<_ACEOF
27915/* end confdefs.h. */
27916
38d24731 27917/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
27918#ifdef __cplusplus
27919extern "C"
27920#endif
38d24731
RW
27921/* We use char because int might match the return type of a gcc2
27922 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
27923char csinh ();
27924int
27925main ()
27926{
38d24731 27927csinh ();
1409cd0b
FXC
27928 ;
27929 return 0;
27930}
27931_ACEOF
27932rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
27933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27934 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
27935 ac_status=$?
27936 grep -v '^ *+' conftest.er1 >conftest.err
27937 rm -f conftest.er1
27938 cat conftest.err >&5
27939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
27940 (exit $ac_status); } &&
27941 { ac_try='test -z "$ac_c_werror_flag"
27942 || test ! -s conftest.err'
27943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27944 (eval $ac_try) 2>&5
27945 ac_status=$?
27946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947 (exit $ac_status); }; } &&
27948 { ac_try='test -s conftest$ac_exeext'
27949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27950 (eval $ac_try) 2>&5
27951 ac_status=$?
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); }; }; then
1409cd0b
FXC
27954 ac_cv_lib_m_csinh=yes
27955else
27956 echo "$as_me: failed program was:" >&5
27957sed 's/^/| /' conftest.$ac_ext >&5
27958
38d24731 27959ac_cv_lib_m_csinh=no
1409cd0b 27960fi
38d24731 27961rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
27962 conftest$ac_exeext conftest.$ac_ext
27963LIBS=$ac_check_lib_save_LIBS
27964fi
38d24731
RW
27965echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinh" >&5
27966echo "${ECHO_T}$ac_cv_lib_m_csinh" >&6
1409cd0b
FXC
27967if test $ac_cv_lib_m_csinh = yes; then
27968
27969cat >>confdefs.h <<\_ACEOF
27970#define HAVE_CSINH 1
27971_ACEOF
27972
27973fi
27974
38d24731
RW
27975echo "$as_me:$LINENO: checking for csinhl in -lm" >&5
27976echo $ECHO_N "checking for csinhl in -lm... $ECHO_C" >&6
1409cd0b
FXC
27977if test "${ac_cv_lib_m_csinhl+set}" = set; then
27978 echo $ECHO_N "(cached) $ECHO_C" >&6
27979else
27980 ac_check_lib_save_LIBS=$LIBS
27981LIBS="-lm $LIBS"
27982if test x$gcc_no_link = xyes; then
27983 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27984echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27985 { (exit 1); exit 1; }; }
27986fi
27987cat >conftest.$ac_ext <<_ACEOF
27988/* confdefs.h. */
27989_ACEOF
27990cat confdefs.h >>conftest.$ac_ext
27991cat >>conftest.$ac_ext <<_ACEOF
27992/* end confdefs.h. */
27993
38d24731 27994/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
27995#ifdef __cplusplus
27996extern "C"
27997#endif
38d24731
RW
27998/* We use char because int might match the return type of a gcc2
27999 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
28000char csinhl ();
28001int
28002main ()
28003{
38d24731 28004csinhl ();
1409cd0b
FXC
28005 ;
28006 return 0;
28007}
28008_ACEOF
28009rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
28010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28011 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
28012 ac_status=$?
28013 grep -v '^ *+' conftest.er1 >conftest.err
28014 rm -f conftest.er1
28015 cat conftest.err >&5
28016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
28017 (exit $ac_status); } &&
28018 { ac_try='test -z "$ac_c_werror_flag"
28019 || test ! -s conftest.err'
28020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28021 (eval $ac_try) 2>&5
28022 ac_status=$?
28023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024 (exit $ac_status); }; } &&
28025 { ac_try='test -s conftest$ac_exeext'
28026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28027 (eval $ac_try) 2>&5
28028 ac_status=$?
28029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030 (exit $ac_status); }; }; then
1409cd0b
FXC
28031 ac_cv_lib_m_csinhl=yes
28032else
28033 echo "$as_me: failed program was:" >&5
28034sed 's/^/| /' conftest.$ac_ext >&5
28035
38d24731 28036ac_cv_lib_m_csinhl=no
1409cd0b 28037fi
38d24731 28038rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
28039 conftest$ac_exeext conftest.$ac_ext
28040LIBS=$ac_check_lib_save_LIBS
28041fi
38d24731
RW
28042echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinhl" >&5
28043echo "${ECHO_T}$ac_cv_lib_m_csinhl" >&6
1409cd0b
FXC
28044if test $ac_cv_lib_m_csinhl = yes; then
28045
28046cat >>confdefs.h <<\_ACEOF
28047#define HAVE_CSINHL 1
28048_ACEOF
28049
28050fi
28051
38d24731
RW
28052echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5
28053echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6
1409cd0b
FXC
28054if test "${ac_cv_lib_m_sqrtf+set}" = set; then
28055 echo $ECHO_N "(cached) $ECHO_C" >&6
28056else
28057 ac_check_lib_save_LIBS=$LIBS
28058LIBS="-lm $LIBS"
28059if test x$gcc_no_link = xyes; then
28060 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28061echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28062 { (exit 1); exit 1; }; }
28063fi
28064cat >conftest.$ac_ext <<_ACEOF
28065/* confdefs.h. */
28066_ACEOF
28067cat confdefs.h >>conftest.$ac_ext
28068cat >>conftest.$ac_ext <<_ACEOF
28069/* end confdefs.h. */
28070
38d24731 28071/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
28072#ifdef __cplusplus
28073extern "C"
28074#endif
38d24731
RW
28075/* We use char because int might match the return type of a gcc2
28076 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
28077char sqrtf ();
28078int
28079main ()
28080{
38d24731 28081sqrtf ();
1409cd0b
FXC
28082 ;
28083 return 0;
28084}
28085_ACEOF
28086rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
28087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28088 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
28089 ac_status=$?
28090 grep -v '^ *+' conftest.er1 >conftest.err
28091 rm -f conftest.er1
f489fba1 28092 cat conftest.err >&5
1409cd0b 28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
28094 (exit $ac_status); } &&
28095 { ac_try='test -z "$ac_c_werror_flag"
28096 || test ! -s conftest.err'
28097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28098 (eval $ac_try) 2>&5
28099 ac_status=$?
28100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101 (exit $ac_status); }; } &&
28102 { ac_try='test -s conftest$ac_exeext'
28103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28104 (eval $ac_try) 2>&5
28105 ac_status=$?
28106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107 (exit $ac_status); }; }; then
1409cd0b
FXC
28108 ac_cv_lib_m_sqrtf=yes
28109else
28110 echo "$as_me: failed program was:" >&5
28111sed 's/^/| /' conftest.$ac_ext >&5
28112
38d24731 28113ac_cv_lib_m_sqrtf=no
1409cd0b 28114fi
38d24731 28115rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
28116 conftest$ac_exeext conftest.$ac_ext
28117LIBS=$ac_check_lib_save_LIBS
28118fi
38d24731
RW
28119echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5
28120echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6
1409cd0b
FXC
28121if test $ac_cv_lib_m_sqrtf = yes; then
28122
28123cat >>confdefs.h <<\_ACEOF
28124#define HAVE_SQRTF 1
28125_ACEOF
28126
28127fi
28128
38d24731
RW
28129echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
28130echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
1409cd0b
FXC
28131if test "${ac_cv_lib_m_sqrt+set}" = set; then
28132 echo $ECHO_N "(cached) $ECHO_C" >&6
28133else
28134 ac_check_lib_save_LIBS=$LIBS
28135LIBS="-lm $LIBS"
28136if test x$gcc_no_link = xyes; then
28137 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28138echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28139 { (exit 1); exit 1; }; }
28140fi
28141cat >conftest.$ac_ext <<_ACEOF
28142/* confdefs.h. */
28143_ACEOF
28144cat confdefs.h >>conftest.$ac_ext
28145cat >>conftest.$ac_ext <<_ACEOF
28146/* end confdefs.h. */
28147
38d24731 28148/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
28149#ifdef __cplusplus
28150extern "C"
28151#endif
38d24731
RW
28152/* We use char because int might match the return type of a gcc2
28153 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
28154char sqrt ();
28155int
28156main ()
28157{
38d24731 28158sqrt ();
1409cd0b
FXC
28159 ;
28160 return 0;
28161}
28162_ACEOF
28163rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
28164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28165 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
28166 ac_status=$?
28167 grep -v '^ *+' conftest.er1 >conftest.err
28168 rm -f conftest.er1
28169 cat conftest.err >&5
28170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
28171 (exit $ac_status); } &&
28172 { ac_try='test -z "$ac_c_werror_flag"
28173 || test ! -s conftest.err'
28174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28175 (eval $ac_try) 2>&5
28176 ac_status=$?
28177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178 (exit $ac_status); }; } &&
28179 { ac_try='test -s conftest$ac_exeext'
28180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28181 (eval $ac_try) 2>&5
28182 ac_status=$?
28183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184 (exit $ac_status); }; }; then
1409cd0b
FXC
28185 ac_cv_lib_m_sqrt=yes
28186else
28187 echo "$as_me: failed program was:" >&5
28188sed 's/^/| /' conftest.$ac_ext >&5
28189
38d24731 28190ac_cv_lib_m_sqrt=no
1409cd0b 28191fi
38d24731 28192rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
28193 conftest$ac_exeext conftest.$ac_ext
28194LIBS=$ac_check_lib_save_LIBS
28195fi
38d24731
RW
28196echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
28197echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
1409cd0b
FXC
28198if test $ac_cv_lib_m_sqrt = yes; then
28199
28200cat >>confdefs.h <<\_ACEOF
28201#define HAVE_SQRT 1
28202_ACEOF
28203
28204fi
28205
38d24731
RW
28206echo "$as_me:$LINENO: checking for sqrtl in -lm" >&5
28207echo $ECHO_N "checking for sqrtl in -lm... $ECHO_C" >&6
1409cd0b
FXC
28208if test "${ac_cv_lib_m_sqrtl+set}" = set; then
28209 echo $ECHO_N "(cached) $ECHO_C" >&6
28210else
28211 ac_check_lib_save_LIBS=$LIBS
28212LIBS="-lm $LIBS"
28213if test x$gcc_no_link = xyes; then
28214 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28215echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28216 { (exit 1); exit 1; }; }
28217fi
28218cat >conftest.$ac_ext <<_ACEOF
28219/* confdefs.h. */
28220_ACEOF
28221cat confdefs.h >>conftest.$ac_ext
28222cat >>conftest.$ac_ext <<_ACEOF
28223/* end confdefs.h. */
28224
38d24731 28225/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
28226#ifdef __cplusplus
28227extern "C"
28228#endif
38d24731
RW
28229/* We use char because int might match the return type of a gcc2
28230 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
28231char sqrtl ();
28232int
28233main ()
28234{
38d24731 28235sqrtl ();
1409cd0b
FXC
28236 ;
28237 return 0;
28238}
28239_ACEOF
28240rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
28241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28242 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
28243 ac_status=$?
28244 grep -v '^ *+' conftest.er1 >conftest.err
28245 rm -f conftest.er1
28246 cat conftest.err >&5
28247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
28248 (exit $ac_status); } &&
28249 { ac_try='test -z "$ac_c_werror_flag"
28250 || test ! -s conftest.err'
28251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28252 (eval $ac_try) 2>&5
28253 ac_status=$?
28254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28255 (exit $ac_status); }; } &&
28256 { ac_try='test -s conftest$ac_exeext'
28257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28258 (eval $ac_try) 2>&5
28259 ac_status=$?
28260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28261 (exit $ac_status); }; }; then
1409cd0b
FXC
28262 ac_cv_lib_m_sqrtl=yes
28263else
28264 echo "$as_me: failed program was:" >&5
28265sed 's/^/| /' conftest.$ac_ext >&5
28266
38d24731 28267ac_cv_lib_m_sqrtl=no
1409cd0b 28268fi
38d24731 28269rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
28270 conftest$ac_exeext conftest.$ac_ext
28271LIBS=$ac_check_lib_save_LIBS
28272fi
38d24731
RW
28273echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtl" >&5
28274echo "${ECHO_T}$ac_cv_lib_m_sqrtl" >&6
1409cd0b
FXC
28275if test $ac_cv_lib_m_sqrtl = yes; then
28276
28277cat >>confdefs.h <<\_ACEOF
28278#define HAVE_SQRTL 1
28279_ACEOF
28280
28281fi
28282
38d24731
RW
28283echo "$as_me:$LINENO: checking for csqrtf in -lm" >&5
28284echo $ECHO_N "checking for csqrtf in -lm... $ECHO_C" >&6
1409cd0b
FXC
28285if test "${ac_cv_lib_m_csqrtf+set}" = set; then
28286 echo $ECHO_N "(cached) $ECHO_C" >&6
28287else
28288 ac_check_lib_save_LIBS=$LIBS
28289LIBS="-lm $LIBS"
28290if test x$gcc_no_link = xyes; then
28291 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28292echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28293 { (exit 1); exit 1; }; }
28294fi
28295cat >conftest.$ac_ext <<_ACEOF
28296/* confdefs.h. */
28297_ACEOF
28298cat confdefs.h >>conftest.$ac_ext
28299cat >>conftest.$ac_ext <<_ACEOF
28300/* end confdefs.h. */
28301
38d24731 28302/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
28303#ifdef __cplusplus
28304extern "C"
28305#endif
38d24731
RW
28306/* We use char because int might match the return type of a gcc2
28307 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
28308char csqrtf ();
28309int
28310main ()
28311{
38d24731 28312csqrtf ();
1409cd0b
FXC
28313 ;
28314 return 0;
28315}
28316_ACEOF
28317rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
28318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28319 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
28320 ac_status=$?
28321 grep -v '^ *+' conftest.er1 >conftest.err
28322 rm -f conftest.er1
28323 cat conftest.err >&5
28324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
28325 (exit $ac_status); } &&
28326 { ac_try='test -z "$ac_c_werror_flag"
28327 || test ! -s conftest.err'
28328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28329 (eval $ac_try) 2>&5
28330 ac_status=$?
28331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332 (exit $ac_status); }; } &&
28333 { ac_try='test -s conftest$ac_exeext'
28334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28335 (eval $ac_try) 2>&5
28336 ac_status=$?
28337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28338 (exit $ac_status); }; }; then
1409cd0b
FXC
28339 ac_cv_lib_m_csqrtf=yes
28340else
28341 echo "$as_me: failed program was:" >&5
28342sed 's/^/| /' conftest.$ac_ext >&5
28343
38d24731 28344ac_cv_lib_m_csqrtf=no
1409cd0b 28345fi
38d24731 28346rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
28347 conftest$ac_exeext conftest.$ac_ext
28348LIBS=$ac_check_lib_save_LIBS
28349fi
38d24731
RW
28350echo "$as_me:$LINENO: result: $ac_cv_lib_m_csqrtf" >&5
28351echo "${ECHO_T}$ac_cv_lib_m_csqrtf" >&6
1409cd0b
FXC
28352if test $ac_cv_lib_m_csqrtf = yes; then
28353
28354cat >>confdefs.h <<\_ACEOF
28355#define HAVE_CSQRTF 1
28356_ACEOF
28357
28358fi
28359
38d24731
RW
28360echo "$as_me:$LINENO: checking for csqrt in -lm" >&5
28361echo $ECHO_N "checking for csqrt in -lm... $ECHO_C" >&6
1409cd0b
FXC
28362if test "${ac_cv_lib_m_csqrt+set}" = set; then
28363 echo $ECHO_N "(cached) $ECHO_C" >&6
28364else
28365 ac_check_lib_save_LIBS=$LIBS
28366LIBS="-lm $LIBS"
28367if test x$gcc_no_link = xyes; then
28368 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28369echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28370 { (exit 1); exit 1; }; }
28371fi
28372cat >conftest.$ac_ext <<_ACEOF
28373/* confdefs.h. */
28374_ACEOF
28375cat confdefs.h >>conftest.$ac_ext
28376cat >>conftest.$ac_ext <<_ACEOF
28377/* end confdefs.h. */
28378
38d24731 28379/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
28380#ifdef __cplusplus
28381extern "C"
28382#endif
38d24731
RW
28383/* We use char because int might match the return type of a gcc2
28384 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
28385char csqrt ();
28386int
28387main ()
28388{
38d24731 28389csqrt ();
1409cd0b
FXC
28390 ;
28391 return 0;
28392}
28393_ACEOF
28394rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
28395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28396 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
28397 ac_status=$?
28398 grep -v '^ *+' conftest.er1 >conftest.err
28399 rm -f conftest.er1
28400 cat conftest.err >&5
28401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
28402 (exit $ac_status); } &&
28403 { ac_try='test -z "$ac_c_werror_flag"
28404 || test ! -s conftest.err'
28405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28406 (eval $ac_try) 2>&5
28407 ac_status=$?
28408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28409 (exit $ac_status); }; } &&
28410 { ac_try='test -s conftest$ac_exeext'
28411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28412 (eval $ac_try) 2>&5
28413 ac_status=$?
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); }; }; then
1409cd0b
FXC
28416 ac_cv_lib_m_csqrt=yes
28417else
28418 echo "$as_me: failed program was:" >&5
28419sed 's/^/| /' conftest.$ac_ext >&5
28420
38d24731 28421ac_cv_lib_m_csqrt=no
1409cd0b 28422fi
38d24731 28423rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
28424 conftest$ac_exeext conftest.$ac_ext
28425LIBS=$ac_check_lib_save_LIBS
28426fi
38d24731
RW
28427echo "$as_me:$LINENO: result: $ac_cv_lib_m_csqrt" >&5
28428echo "${ECHO_T}$ac_cv_lib_m_csqrt" >&6
1409cd0b
FXC
28429if test $ac_cv_lib_m_csqrt = yes; then
28430
28431cat >>confdefs.h <<\_ACEOF
28432#define HAVE_CSQRT 1
28433_ACEOF
28434
28435fi
28436
38d24731
RW
28437echo "$as_me:$LINENO: checking for csqrtl in -lm" >&5
28438echo $ECHO_N "checking for csqrtl in -lm... $ECHO_C" >&6
1409cd0b
FXC
28439if test "${ac_cv_lib_m_csqrtl+set}" = set; then
28440 echo $ECHO_N "(cached) $ECHO_C" >&6
28441else
28442 ac_check_lib_save_LIBS=$LIBS
28443LIBS="-lm $LIBS"
28444if test x$gcc_no_link = xyes; then
28445 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28446echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28447 { (exit 1); exit 1; }; }
28448fi
28449cat >conftest.$ac_ext <<_ACEOF
28450/* confdefs.h. */
28451_ACEOF
28452cat confdefs.h >>conftest.$ac_ext
28453cat >>conftest.$ac_ext <<_ACEOF
28454/* end confdefs.h. */
28455
38d24731 28456/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
28457#ifdef __cplusplus
28458extern "C"
28459#endif
38d24731
RW
28460/* We use char because int might match the return type of a gcc2
28461 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
28462char csqrtl ();
28463int
28464main ()
28465{
38d24731 28466csqrtl ();
1409cd0b
FXC
28467 ;
28468 return 0;
28469}
28470_ACEOF
28471rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
28472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28473 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
28474 ac_status=$?
28475 grep -v '^ *+' conftest.er1 >conftest.err
28476 rm -f conftest.er1
28477 cat conftest.err >&5
28478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
28479 (exit $ac_status); } &&
28480 { ac_try='test -z "$ac_c_werror_flag"
28481 || test ! -s conftest.err'
28482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28483 (eval $ac_try) 2>&5
28484 ac_status=$?
28485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28486 (exit $ac_status); }; } &&
28487 { ac_try='test -s conftest$ac_exeext'
28488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28489 (eval $ac_try) 2>&5
28490 ac_status=$?
28491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28492 (exit $ac_status); }; }; then
1409cd0b
FXC
28493 ac_cv_lib_m_csqrtl=yes
28494else
28495 echo "$as_me: failed program was:" >&5
28496sed 's/^/| /' conftest.$ac_ext >&5
28497
38d24731 28498ac_cv_lib_m_csqrtl=no
1409cd0b 28499fi
38d24731 28500rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
28501 conftest$ac_exeext conftest.$ac_ext
28502LIBS=$ac_check_lib_save_LIBS
28503fi
38d24731
RW
28504echo "$as_me:$LINENO: result: $ac_cv_lib_m_csqrtl" >&5
28505echo "${ECHO_T}$ac_cv_lib_m_csqrtl" >&6
1409cd0b
FXC
28506if test $ac_cv_lib_m_csqrtl = yes; then
28507
28508cat >>confdefs.h <<\_ACEOF
28509#define HAVE_CSQRTL 1
28510_ACEOF
28511
28512fi
28513
38d24731
RW
28514echo "$as_me:$LINENO: checking for tanf in -lm" >&5
28515echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6
1409cd0b
FXC
28516if test "${ac_cv_lib_m_tanf+set}" = set; then
28517 echo $ECHO_N "(cached) $ECHO_C" >&6
28518else
28519 ac_check_lib_save_LIBS=$LIBS
28520LIBS="-lm $LIBS"
28521if test x$gcc_no_link = xyes; then
28522 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28523echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28524 { (exit 1); exit 1; }; }
28525fi
28526cat >conftest.$ac_ext <<_ACEOF
28527/* confdefs.h. */
28528_ACEOF
28529cat confdefs.h >>conftest.$ac_ext
28530cat >>conftest.$ac_ext <<_ACEOF
28531/* end confdefs.h. */
28532
38d24731 28533/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
28534#ifdef __cplusplus
28535extern "C"
28536#endif
38d24731
RW
28537/* We use char because int might match the return type of a gcc2
28538 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
28539char tanf ();
28540int
28541main ()
28542{
38d24731 28543tanf ();
1409cd0b
FXC
28544 ;
28545 return 0;
28546}
28547_ACEOF
28548rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
28549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28550 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
28551 ac_status=$?
28552 grep -v '^ *+' conftest.er1 >conftest.err
28553 rm -f conftest.er1
28554 cat conftest.err >&5
28555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
28556 (exit $ac_status); } &&
28557 { ac_try='test -z "$ac_c_werror_flag"
28558 || test ! -s conftest.err'
28559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28560 (eval $ac_try) 2>&5
28561 ac_status=$?
28562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563 (exit $ac_status); }; } &&
28564 { ac_try='test -s conftest$ac_exeext'
28565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28566 (eval $ac_try) 2>&5
28567 ac_status=$?
28568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569 (exit $ac_status); }; }; then
1409cd0b
FXC
28570 ac_cv_lib_m_tanf=yes
28571else
28572 echo "$as_me: failed program was:" >&5
28573sed 's/^/| /' conftest.$ac_ext >&5
28574
38d24731 28575ac_cv_lib_m_tanf=no
1409cd0b 28576fi
38d24731 28577rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
28578 conftest$ac_exeext conftest.$ac_ext
28579LIBS=$ac_check_lib_save_LIBS
28580fi
38d24731
RW
28581echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5
28582echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6
1409cd0b
FXC
28583if test $ac_cv_lib_m_tanf = yes; then
28584
28585cat >>confdefs.h <<\_ACEOF
28586#define HAVE_TANF 1
28587_ACEOF
28588
28589fi
28590
38d24731
RW
28591echo "$as_me:$LINENO: checking for tan in -lm" >&5
28592echo $ECHO_N "checking for tan in -lm... $ECHO_C" >&6
1409cd0b
FXC
28593if test "${ac_cv_lib_m_tan+set}" = set; then
28594 echo $ECHO_N "(cached) $ECHO_C" >&6
28595else
28596 ac_check_lib_save_LIBS=$LIBS
28597LIBS="-lm $LIBS"
28598if test x$gcc_no_link = xyes; then
28599 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28600echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28601 { (exit 1); exit 1; }; }
28602fi
28603cat >conftest.$ac_ext <<_ACEOF
28604/* confdefs.h. */
28605_ACEOF
28606cat confdefs.h >>conftest.$ac_ext
28607cat >>conftest.$ac_ext <<_ACEOF
28608/* end confdefs.h. */
28609
38d24731 28610/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
28611#ifdef __cplusplus
28612extern "C"
28613#endif
38d24731
RW
28614/* We use char because int might match the return type of a gcc2
28615 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
28616char tan ();
28617int
28618main ()
28619{
38d24731 28620tan ();
1409cd0b
FXC
28621 ;
28622 return 0;
28623}
28624_ACEOF
28625rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
28626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28627 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
28628 ac_status=$?
28629 grep -v '^ *+' conftest.er1 >conftest.err
28630 rm -f conftest.er1
28631 cat conftest.err >&5
28632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
28633 (exit $ac_status); } &&
28634 { ac_try='test -z "$ac_c_werror_flag"
28635 || test ! -s conftest.err'
28636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28637 (eval $ac_try) 2>&5
28638 ac_status=$?
28639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640 (exit $ac_status); }; } &&
28641 { ac_try='test -s conftest$ac_exeext'
28642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28643 (eval $ac_try) 2>&5
28644 ac_status=$?
28645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646 (exit $ac_status); }; }; then
1409cd0b
FXC
28647 ac_cv_lib_m_tan=yes
28648else
28649 echo "$as_me: failed program was:" >&5
28650sed 's/^/| /' conftest.$ac_ext >&5
28651
38d24731 28652ac_cv_lib_m_tan=no
1409cd0b 28653fi
38d24731 28654rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
28655 conftest$ac_exeext conftest.$ac_ext
28656LIBS=$ac_check_lib_save_LIBS
28657fi
38d24731
RW
28658echo "$as_me:$LINENO: result: $ac_cv_lib_m_tan" >&5
28659echo "${ECHO_T}$ac_cv_lib_m_tan" >&6
1409cd0b
FXC
28660if test $ac_cv_lib_m_tan = yes; then
28661
28662cat >>confdefs.h <<\_ACEOF
28663#define HAVE_TAN 1
28664_ACEOF
28665
28666fi
28667
38d24731
RW
28668echo "$as_me:$LINENO: checking for tanl in -lm" >&5
28669echo $ECHO_N "checking for tanl in -lm... $ECHO_C" >&6
1409cd0b
FXC
28670if test "${ac_cv_lib_m_tanl+set}" = set; then
28671 echo $ECHO_N "(cached) $ECHO_C" >&6
28672else
28673 ac_check_lib_save_LIBS=$LIBS
28674LIBS="-lm $LIBS"
28675if test x$gcc_no_link = xyes; then
28676 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28677echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28678 { (exit 1); exit 1; }; }
28679fi
28680cat >conftest.$ac_ext <<_ACEOF
28681/* confdefs.h. */
28682_ACEOF
28683cat confdefs.h >>conftest.$ac_ext
28684cat >>conftest.$ac_ext <<_ACEOF
28685/* end confdefs.h. */
28686
38d24731 28687/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
28688#ifdef __cplusplus
28689extern "C"
28690#endif
38d24731
RW
28691/* We use char because int might match the return type of a gcc2
28692 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
28693char tanl ();
28694int
28695main ()
28696{
38d24731 28697tanl ();
1409cd0b
FXC
28698 ;
28699 return 0;
28700}
28701_ACEOF
28702rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
28703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28704 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
28705 ac_status=$?
28706 grep -v '^ *+' conftest.er1 >conftest.err
28707 rm -f conftest.er1
28708 cat conftest.err >&5
28709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
28710 (exit $ac_status); } &&
28711 { ac_try='test -z "$ac_c_werror_flag"
28712 || test ! -s conftest.err'
28713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28714 (eval $ac_try) 2>&5
28715 ac_status=$?
28716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); }; } &&
28718 { ac_try='test -s conftest$ac_exeext'
28719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28720 (eval $ac_try) 2>&5
28721 ac_status=$?
28722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723 (exit $ac_status); }; }; then
1409cd0b
FXC
28724 ac_cv_lib_m_tanl=yes
28725else
28726 echo "$as_me: failed program was:" >&5
28727sed 's/^/| /' conftest.$ac_ext >&5
28728
38d24731 28729ac_cv_lib_m_tanl=no
1409cd0b 28730fi
38d24731 28731rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
28732 conftest$ac_exeext conftest.$ac_ext
28733LIBS=$ac_check_lib_save_LIBS
28734fi
38d24731
RW
28735echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanl" >&5
28736echo "${ECHO_T}$ac_cv_lib_m_tanl" >&6
1409cd0b
FXC
28737if test $ac_cv_lib_m_tanl = yes; then
28738
28739cat >>confdefs.h <<\_ACEOF
28740#define HAVE_TANL 1
28741_ACEOF
28742
28743fi
28744
38d24731
RW
28745echo "$as_me:$LINENO: checking for ctanf in -lm" >&5
28746echo $ECHO_N "checking for ctanf in -lm... $ECHO_C" >&6
1409cd0b
FXC
28747if test "${ac_cv_lib_m_ctanf+set}" = set; then
28748 echo $ECHO_N "(cached) $ECHO_C" >&6
28749else
28750 ac_check_lib_save_LIBS=$LIBS
28751LIBS="-lm $LIBS"
28752if test x$gcc_no_link = xyes; then
28753 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28754echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28755 { (exit 1); exit 1; }; }
28756fi
28757cat >conftest.$ac_ext <<_ACEOF
28758/* confdefs.h. */
28759_ACEOF
28760cat confdefs.h >>conftest.$ac_ext
28761cat >>conftest.$ac_ext <<_ACEOF
28762/* end confdefs.h. */
28763
38d24731 28764/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
28765#ifdef __cplusplus
28766extern "C"
28767#endif
38d24731
RW
28768/* We use char because int might match the return type of a gcc2
28769 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
28770char ctanf ();
28771int
28772main ()
28773{
38d24731 28774ctanf ();
1409cd0b
FXC
28775 ;
28776 return 0;
28777}
28778_ACEOF
28779rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
28780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28781 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
28782 ac_status=$?
28783 grep -v '^ *+' conftest.er1 >conftest.err
28784 rm -f conftest.er1
28785 cat conftest.err >&5
28786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
28787 (exit $ac_status); } &&
28788 { ac_try='test -z "$ac_c_werror_flag"
28789 || test ! -s conftest.err'
28790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28791 (eval $ac_try) 2>&5
28792 ac_status=$?
28793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28794 (exit $ac_status); }; } &&
28795 { ac_try='test -s conftest$ac_exeext'
28796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28797 (eval $ac_try) 2>&5
28798 ac_status=$?
28799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 (exit $ac_status); }; }; then
1409cd0b
FXC
28801 ac_cv_lib_m_ctanf=yes
28802else
28803 echo "$as_me: failed program was:" >&5
28804sed 's/^/| /' conftest.$ac_ext >&5
28805
38d24731 28806ac_cv_lib_m_ctanf=no
1409cd0b 28807fi
38d24731 28808rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
28809 conftest$ac_exeext conftest.$ac_ext
28810LIBS=$ac_check_lib_save_LIBS
28811fi
38d24731
RW
28812echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanf" >&5
28813echo "${ECHO_T}$ac_cv_lib_m_ctanf" >&6
1409cd0b
FXC
28814if test $ac_cv_lib_m_ctanf = yes; then
28815
28816cat >>confdefs.h <<\_ACEOF
28817#define HAVE_CTANF 1
28818_ACEOF
28819
28820fi
28821
38d24731
RW
28822echo "$as_me:$LINENO: checking for ctan in -lm" >&5
28823echo $ECHO_N "checking for ctan in -lm... $ECHO_C" >&6
1409cd0b
FXC
28824if test "${ac_cv_lib_m_ctan+set}" = set; then
28825 echo $ECHO_N "(cached) $ECHO_C" >&6
28826else
28827 ac_check_lib_save_LIBS=$LIBS
28828LIBS="-lm $LIBS"
28829if test x$gcc_no_link = xyes; then
28830 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28831echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28832 { (exit 1); exit 1; }; }
28833fi
28834cat >conftest.$ac_ext <<_ACEOF
28835/* confdefs.h. */
28836_ACEOF
28837cat confdefs.h >>conftest.$ac_ext
28838cat >>conftest.$ac_ext <<_ACEOF
28839/* end confdefs.h. */
28840
38d24731 28841/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
28842#ifdef __cplusplus
28843extern "C"
28844#endif
38d24731
RW
28845/* We use char because int might match the return type of a gcc2
28846 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
28847char ctan ();
28848int
28849main ()
28850{
38d24731 28851ctan ();
1409cd0b
FXC
28852 ;
28853 return 0;
28854}
28855_ACEOF
28856rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
28857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28858 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
28859 ac_status=$?
28860 grep -v '^ *+' conftest.er1 >conftest.err
28861 rm -f conftest.er1
28862 cat conftest.err >&5
28863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
28864 (exit $ac_status); } &&
28865 { ac_try='test -z "$ac_c_werror_flag"
28866 || test ! -s conftest.err'
28867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28868 (eval $ac_try) 2>&5
28869 ac_status=$?
28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871 (exit $ac_status); }; } &&
28872 { ac_try='test -s conftest$ac_exeext'
28873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28874 (eval $ac_try) 2>&5
28875 ac_status=$?
28876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); }; }; then
1409cd0b
FXC
28878 ac_cv_lib_m_ctan=yes
28879else
28880 echo "$as_me: failed program was:" >&5
28881sed 's/^/| /' conftest.$ac_ext >&5
28882
38d24731 28883ac_cv_lib_m_ctan=no
1409cd0b 28884fi
38d24731 28885rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
28886 conftest$ac_exeext conftest.$ac_ext
28887LIBS=$ac_check_lib_save_LIBS
28888fi
38d24731
RW
28889echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctan" >&5
28890echo "${ECHO_T}$ac_cv_lib_m_ctan" >&6
1409cd0b
FXC
28891if test $ac_cv_lib_m_ctan = yes; then
28892
28893cat >>confdefs.h <<\_ACEOF
28894#define HAVE_CTAN 1
28895_ACEOF
28896
28897fi
28898
38d24731
RW
28899echo "$as_me:$LINENO: checking for ctanl in -lm" >&5
28900echo $ECHO_N "checking for ctanl in -lm... $ECHO_C" >&6
1409cd0b
FXC
28901if test "${ac_cv_lib_m_ctanl+set}" = set; then
28902 echo $ECHO_N "(cached) $ECHO_C" >&6
28903else
28904 ac_check_lib_save_LIBS=$LIBS
28905LIBS="-lm $LIBS"
28906if test x$gcc_no_link = xyes; then
28907 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28908echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28909 { (exit 1); exit 1; }; }
28910fi
28911cat >conftest.$ac_ext <<_ACEOF
28912/* confdefs.h. */
28913_ACEOF
28914cat confdefs.h >>conftest.$ac_ext
28915cat >>conftest.$ac_ext <<_ACEOF
28916/* end confdefs.h. */
28917
38d24731 28918/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
28919#ifdef __cplusplus
28920extern "C"
28921#endif
38d24731
RW
28922/* We use char because int might match the return type of a gcc2
28923 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
28924char ctanl ();
28925int
28926main ()
28927{
38d24731 28928ctanl ();
1409cd0b
FXC
28929 ;
28930 return 0;
28931}
28932_ACEOF
28933rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
28934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28935 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
28936 ac_status=$?
28937 grep -v '^ *+' conftest.er1 >conftest.err
28938 rm -f conftest.er1
28939 cat conftest.err >&5
28940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
28941 (exit $ac_status); } &&
28942 { ac_try='test -z "$ac_c_werror_flag"
28943 || test ! -s conftest.err'
28944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28945 (eval $ac_try) 2>&5
28946 ac_status=$?
28947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948 (exit $ac_status); }; } &&
28949 { ac_try='test -s conftest$ac_exeext'
28950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28951 (eval $ac_try) 2>&5
28952 ac_status=$?
28953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28954 (exit $ac_status); }; }; then
1409cd0b
FXC
28955 ac_cv_lib_m_ctanl=yes
28956else
28957 echo "$as_me: failed program was:" >&5
28958sed 's/^/| /' conftest.$ac_ext >&5
28959
38d24731 28960ac_cv_lib_m_ctanl=no
1409cd0b 28961fi
38d24731 28962rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
28963 conftest$ac_exeext conftest.$ac_ext
28964LIBS=$ac_check_lib_save_LIBS
28965fi
38d24731
RW
28966echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanl" >&5
28967echo "${ECHO_T}$ac_cv_lib_m_ctanl" >&6
1409cd0b
FXC
28968if test $ac_cv_lib_m_ctanl = yes; then
28969
28970cat >>confdefs.h <<\_ACEOF
28971#define HAVE_CTANL 1
28972_ACEOF
28973
28974fi
28975
38d24731
RW
28976echo "$as_me:$LINENO: checking for tanhf in -lm" >&5
28977echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6
1409cd0b
FXC
28978if test "${ac_cv_lib_m_tanhf+set}" = set; then
28979 echo $ECHO_N "(cached) $ECHO_C" >&6
28980else
28981 ac_check_lib_save_LIBS=$LIBS
28982LIBS="-lm $LIBS"
28983if test x$gcc_no_link = xyes; then
28984 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28985echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28986 { (exit 1); exit 1; }; }
28987fi
28988cat >conftest.$ac_ext <<_ACEOF
28989/* confdefs.h. */
28990_ACEOF
28991cat confdefs.h >>conftest.$ac_ext
28992cat >>conftest.$ac_ext <<_ACEOF
28993/* end confdefs.h. */
28994
38d24731 28995/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
28996#ifdef __cplusplus
28997extern "C"
28998#endif
38d24731
RW
28999/* We use char because int might match the return type of a gcc2
29000 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
29001char tanhf ();
29002int
29003main ()
29004{
38d24731 29005tanhf ();
1409cd0b
FXC
29006 ;
29007 return 0;
29008}
29009_ACEOF
29010rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
29011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29012 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
29013 ac_status=$?
29014 grep -v '^ *+' conftest.er1 >conftest.err
29015 rm -f conftest.er1
29016 cat conftest.err >&5
29017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
29018 (exit $ac_status); } &&
29019 { ac_try='test -z "$ac_c_werror_flag"
29020 || test ! -s conftest.err'
29021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29022 (eval $ac_try) 2>&5
29023 ac_status=$?
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); }; } &&
29026 { ac_try='test -s conftest$ac_exeext'
29027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29028 (eval $ac_try) 2>&5
29029 ac_status=$?
29030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031 (exit $ac_status); }; }; then
1409cd0b
FXC
29032 ac_cv_lib_m_tanhf=yes
29033else
29034 echo "$as_me: failed program was:" >&5
29035sed 's/^/| /' conftest.$ac_ext >&5
29036
38d24731 29037ac_cv_lib_m_tanhf=no
1409cd0b 29038fi
38d24731 29039rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
29040 conftest$ac_exeext conftest.$ac_ext
29041LIBS=$ac_check_lib_save_LIBS
29042fi
38d24731
RW
29043echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5
29044echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6
1409cd0b
FXC
29045if test $ac_cv_lib_m_tanhf = yes; then
29046
29047cat >>confdefs.h <<\_ACEOF
29048#define HAVE_TANHF 1
29049_ACEOF
29050
29051fi
29052
38d24731
RW
29053echo "$as_me:$LINENO: checking for tanh in -lm" >&5
29054echo $ECHO_N "checking for tanh in -lm... $ECHO_C" >&6
1409cd0b
FXC
29055if test "${ac_cv_lib_m_tanh+set}" = set; then
29056 echo $ECHO_N "(cached) $ECHO_C" >&6
29057else
29058 ac_check_lib_save_LIBS=$LIBS
29059LIBS="-lm $LIBS"
29060if test x$gcc_no_link = xyes; then
29061 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29062echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29063 { (exit 1); exit 1; }; }
29064fi
29065cat >conftest.$ac_ext <<_ACEOF
29066/* confdefs.h. */
29067_ACEOF
29068cat confdefs.h >>conftest.$ac_ext
29069cat >>conftest.$ac_ext <<_ACEOF
29070/* end confdefs.h. */
29071
38d24731 29072/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
29073#ifdef __cplusplus
29074extern "C"
29075#endif
38d24731
RW
29076/* We use char because int might match the return type of a gcc2
29077 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
29078char tanh ();
29079int
29080main ()
29081{
38d24731 29082tanh ();
1409cd0b
FXC
29083 ;
29084 return 0;
29085}
29086_ACEOF
29087rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
29088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29089 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
29090 ac_status=$?
29091 grep -v '^ *+' conftest.er1 >conftest.err
29092 rm -f conftest.er1
29093 cat conftest.err >&5
29094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
29095 (exit $ac_status); } &&
29096 { ac_try='test -z "$ac_c_werror_flag"
29097 || test ! -s conftest.err'
29098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29099 (eval $ac_try) 2>&5
29100 ac_status=$?
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); }; } &&
29103 { ac_try='test -s conftest$ac_exeext'
29104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29105 (eval $ac_try) 2>&5
29106 ac_status=$?
29107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108 (exit $ac_status); }; }; then
1409cd0b
FXC
29109 ac_cv_lib_m_tanh=yes
29110else
29111 echo "$as_me: failed program was:" >&5
29112sed 's/^/| /' conftest.$ac_ext >&5
29113
38d24731 29114ac_cv_lib_m_tanh=no
1409cd0b 29115fi
38d24731 29116rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
29117 conftest$ac_exeext conftest.$ac_ext
29118LIBS=$ac_check_lib_save_LIBS
29119fi
38d24731
RW
29120echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanh" >&5
29121echo "${ECHO_T}$ac_cv_lib_m_tanh" >&6
1409cd0b
FXC
29122if test $ac_cv_lib_m_tanh = yes; then
29123
29124cat >>confdefs.h <<\_ACEOF
29125#define HAVE_TANH 1
29126_ACEOF
29127
29128fi
29129
38d24731
RW
29130echo "$as_me:$LINENO: checking for tanhl in -lm" >&5
29131echo $ECHO_N "checking for tanhl in -lm... $ECHO_C" >&6
1409cd0b
FXC
29132if test "${ac_cv_lib_m_tanhl+set}" = set; then
29133 echo $ECHO_N "(cached) $ECHO_C" >&6
29134else
29135 ac_check_lib_save_LIBS=$LIBS
29136LIBS="-lm $LIBS"
29137if test x$gcc_no_link = xyes; then
29138 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29139echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29140 { (exit 1); exit 1; }; }
29141fi
29142cat >conftest.$ac_ext <<_ACEOF
29143/* confdefs.h. */
29144_ACEOF
29145cat confdefs.h >>conftest.$ac_ext
29146cat >>conftest.$ac_ext <<_ACEOF
29147/* end confdefs.h. */
29148
38d24731 29149/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
29150#ifdef __cplusplus
29151extern "C"
29152#endif
38d24731
RW
29153/* We use char because int might match the return type of a gcc2
29154 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
29155char tanhl ();
29156int
29157main ()
29158{
38d24731 29159tanhl ();
1409cd0b
FXC
29160 ;
29161 return 0;
29162}
29163_ACEOF
29164rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
29165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29166 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
29167 ac_status=$?
29168 grep -v '^ *+' conftest.er1 >conftest.err
29169 rm -f conftest.er1
29170 cat conftest.err >&5
29171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
29172 (exit $ac_status); } &&
29173 { ac_try='test -z "$ac_c_werror_flag"
29174 || test ! -s conftest.err'
29175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29176 (eval $ac_try) 2>&5
29177 ac_status=$?
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); }; } &&
29180 { ac_try='test -s conftest$ac_exeext'
29181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29182 (eval $ac_try) 2>&5
29183 ac_status=$?
29184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29185 (exit $ac_status); }; }; then
1409cd0b
FXC
29186 ac_cv_lib_m_tanhl=yes
29187else
29188 echo "$as_me: failed program was:" >&5
29189sed 's/^/| /' conftest.$ac_ext >&5
29190
38d24731 29191ac_cv_lib_m_tanhl=no
1409cd0b 29192fi
38d24731 29193rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
29194 conftest$ac_exeext conftest.$ac_ext
29195LIBS=$ac_check_lib_save_LIBS
29196fi
38d24731
RW
29197echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhl" >&5
29198echo "${ECHO_T}$ac_cv_lib_m_tanhl" >&6
1409cd0b
FXC
29199if test $ac_cv_lib_m_tanhl = yes; then
29200
29201cat >>confdefs.h <<\_ACEOF
29202#define HAVE_TANHL 1
29203_ACEOF
29204
29205fi
29206
38d24731
RW
29207echo "$as_me:$LINENO: checking for ctanhf in -lm" >&5
29208echo $ECHO_N "checking for ctanhf in -lm... $ECHO_C" >&6
1409cd0b
FXC
29209if test "${ac_cv_lib_m_ctanhf+set}" = set; then
29210 echo $ECHO_N "(cached) $ECHO_C" >&6
29211else
29212 ac_check_lib_save_LIBS=$LIBS
29213LIBS="-lm $LIBS"
29214if test x$gcc_no_link = xyes; then
29215 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29216echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29217 { (exit 1); exit 1; }; }
29218fi
29219cat >conftest.$ac_ext <<_ACEOF
29220/* confdefs.h. */
29221_ACEOF
29222cat confdefs.h >>conftest.$ac_ext
29223cat >>conftest.$ac_ext <<_ACEOF
29224/* end confdefs.h. */
29225
38d24731 29226/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
29227#ifdef __cplusplus
29228extern "C"
29229#endif
38d24731
RW
29230/* We use char because int might match the return type of a gcc2
29231 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
29232char ctanhf ();
29233int
29234main ()
29235{
38d24731 29236ctanhf ();
1409cd0b
FXC
29237 ;
29238 return 0;
29239}
29240_ACEOF
29241rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
29242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29243 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
29244 ac_status=$?
29245 grep -v '^ *+' conftest.er1 >conftest.err
29246 rm -f conftest.er1
29247 cat conftest.err >&5
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
29249 (exit $ac_status); } &&
29250 { ac_try='test -z "$ac_c_werror_flag"
29251 || test ! -s conftest.err'
29252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29253 (eval $ac_try) 2>&5
29254 ac_status=$?
29255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29256 (exit $ac_status); }; } &&
29257 { ac_try='test -s conftest$ac_exeext'
29258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29259 (eval $ac_try) 2>&5
29260 ac_status=$?
29261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262 (exit $ac_status); }; }; then
1409cd0b
FXC
29263 ac_cv_lib_m_ctanhf=yes
29264else
29265 echo "$as_me: failed program was:" >&5
29266sed 's/^/| /' conftest.$ac_ext >&5
29267
38d24731 29268ac_cv_lib_m_ctanhf=no
1409cd0b 29269fi
38d24731 29270rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
29271 conftest$ac_exeext conftest.$ac_ext
29272LIBS=$ac_check_lib_save_LIBS
29273fi
38d24731
RW
29274echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanhf" >&5
29275echo "${ECHO_T}$ac_cv_lib_m_ctanhf" >&6
1409cd0b
FXC
29276if test $ac_cv_lib_m_ctanhf = yes; then
29277
29278cat >>confdefs.h <<\_ACEOF
29279#define HAVE_CTANHF 1
29280_ACEOF
29281
29282fi
29283
38d24731
RW
29284echo "$as_me:$LINENO: checking for ctanh in -lm" >&5
29285echo $ECHO_N "checking for ctanh in -lm... $ECHO_C" >&6
1409cd0b
FXC
29286if test "${ac_cv_lib_m_ctanh+set}" = set; then
29287 echo $ECHO_N "(cached) $ECHO_C" >&6
29288else
29289 ac_check_lib_save_LIBS=$LIBS
29290LIBS="-lm $LIBS"
29291if test x$gcc_no_link = xyes; then
29292 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29293echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29294 { (exit 1); exit 1; }; }
29295fi
29296cat >conftest.$ac_ext <<_ACEOF
29297/* confdefs.h. */
29298_ACEOF
29299cat confdefs.h >>conftest.$ac_ext
29300cat >>conftest.$ac_ext <<_ACEOF
29301/* end confdefs.h. */
29302
38d24731 29303/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
29304#ifdef __cplusplus
29305extern "C"
29306#endif
38d24731
RW
29307/* We use char because int might match the return type of a gcc2
29308 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
29309char ctanh ();
29310int
29311main ()
29312{
38d24731 29313ctanh ();
1409cd0b
FXC
29314 ;
29315 return 0;
29316}
29317_ACEOF
29318rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
29319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29320 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
29321 ac_status=$?
29322 grep -v '^ *+' conftest.er1 >conftest.err
29323 rm -f conftest.er1
29324 cat conftest.err >&5
29325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
29326 (exit $ac_status); } &&
29327 { ac_try='test -z "$ac_c_werror_flag"
29328 || test ! -s conftest.err'
29329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29330 (eval $ac_try) 2>&5
29331 ac_status=$?
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); }; } &&
29334 { ac_try='test -s conftest$ac_exeext'
29335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29336 (eval $ac_try) 2>&5
29337 ac_status=$?
29338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339 (exit $ac_status); }; }; then
1409cd0b
FXC
29340 ac_cv_lib_m_ctanh=yes
29341else
29342 echo "$as_me: failed program was:" >&5
29343sed 's/^/| /' conftest.$ac_ext >&5
29344
38d24731 29345ac_cv_lib_m_ctanh=no
1409cd0b 29346fi
38d24731 29347rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
29348 conftest$ac_exeext conftest.$ac_ext
29349LIBS=$ac_check_lib_save_LIBS
29350fi
38d24731
RW
29351echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanh" >&5
29352echo "${ECHO_T}$ac_cv_lib_m_ctanh" >&6
1409cd0b
FXC
29353if test $ac_cv_lib_m_ctanh = yes; then
29354
29355cat >>confdefs.h <<\_ACEOF
29356#define HAVE_CTANH 1
29357_ACEOF
29358
29359fi
29360
38d24731
RW
29361echo "$as_me:$LINENO: checking for ctanhl in -lm" >&5
29362echo $ECHO_N "checking for ctanhl in -lm... $ECHO_C" >&6
1409cd0b
FXC
29363if test "${ac_cv_lib_m_ctanhl+set}" = set; then
29364 echo $ECHO_N "(cached) $ECHO_C" >&6
29365else
29366 ac_check_lib_save_LIBS=$LIBS
29367LIBS="-lm $LIBS"
29368if test x$gcc_no_link = xyes; then
29369 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29370echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29371 { (exit 1); exit 1; }; }
29372fi
29373cat >conftest.$ac_ext <<_ACEOF
29374/* confdefs.h. */
29375_ACEOF
29376cat confdefs.h >>conftest.$ac_ext
29377cat >>conftest.$ac_ext <<_ACEOF
29378/* end confdefs.h. */
29379
38d24731 29380/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
29381#ifdef __cplusplus
29382extern "C"
29383#endif
38d24731
RW
29384/* We use char because int might match the return type of a gcc2
29385 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
29386char ctanhl ();
29387int
29388main ()
29389{
38d24731 29390ctanhl ();
1409cd0b
FXC
29391 ;
29392 return 0;
29393}
29394_ACEOF
29395rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
29396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29397 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
29398 ac_status=$?
29399 grep -v '^ *+' conftest.er1 >conftest.err
29400 rm -f conftest.er1
29401 cat conftest.err >&5
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
29403 (exit $ac_status); } &&
29404 { ac_try='test -z "$ac_c_werror_flag"
29405 || test ! -s conftest.err'
29406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29407 (eval $ac_try) 2>&5
29408 ac_status=$?
29409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29410 (exit $ac_status); }; } &&
29411 { ac_try='test -s conftest$ac_exeext'
29412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29413 (eval $ac_try) 2>&5
29414 ac_status=$?
29415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416 (exit $ac_status); }; }; then
1409cd0b
FXC
29417 ac_cv_lib_m_ctanhl=yes
29418else
29419 echo "$as_me: failed program was:" >&5
29420sed 's/^/| /' conftest.$ac_ext >&5
29421
38d24731 29422ac_cv_lib_m_ctanhl=no
1409cd0b 29423fi
38d24731 29424rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
29425 conftest$ac_exeext conftest.$ac_ext
29426LIBS=$ac_check_lib_save_LIBS
29427fi
38d24731
RW
29428echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanhl" >&5
29429echo "${ECHO_T}$ac_cv_lib_m_ctanhl" >&6
1409cd0b
FXC
29430if test $ac_cv_lib_m_ctanhl = yes; then
29431
29432cat >>confdefs.h <<\_ACEOF
29433#define HAVE_CTANHL 1
69a2d125
EB
29434_ACEOF
29435
29436fi
29437
38d24731
RW
29438echo "$as_me:$LINENO: checking for truncf in -lm" >&5
29439echo $ECHO_N "checking for truncf in -lm... $ECHO_C" >&6
69a2d125
EB
29440if test "${ac_cv_lib_m_truncf+set}" = set; then
29441 echo $ECHO_N "(cached) $ECHO_C" >&6
29442else
29443 ac_check_lib_save_LIBS=$LIBS
29444LIBS="-lm $LIBS"
f02d008e
JD
29445if test x$gcc_no_link = xyes; then
29446 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29447echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29448 { (exit 1); exit 1; }; }
29449fi
69a2d125
EB
29450cat >conftest.$ac_ext <<_ACEOF
29451/* confdefs.h. */
29452_ACEOF
29453cat confdefs.h >>conftest.$ac_ext
29454cat >>conftest.$ac_ext <<_ACEOF
29455/* end confdefs.h. */
29456
38d24731 29457/* Override any gcc2 internal prototype to avoid an error. */
69a2d125
EB
29458#ifdef __cplusplus
29459extern "C"
29460#endif
38d24731
RW
29461/* We use char because int might match the return type of a gcc2
29462 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
29463char truncf ();
29464int
29465main ()
29466{
38d24731 29467truncf ();
1409cd0b
FXC
29468 ;
29469 return 0;
29470}
29471_ACEOF
29472rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
29473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29474 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
29475 ac_status=$?
29476 grep -v '^ *+' conftest.er1 >conftest.err
29477 rm -f conftest.er1
29478 cat conftest.err >&5
29479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
29480 (exit $ac_status); } &&
29481 { ac_try='test -z "$ac_c_werror_flag"
29482 || test ! -s conftest.err'
29483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29484 (eval $ac_try) 2>&5
29485 ac_status=$?
29486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487 (exit $ac_status); }; } &&
29488 { ac_try='test -s conftest$ac_exeext'
29489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29490 (eval $ac_try) 2>&5
29491 ac_status=$?
29492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493 (exit $ac_status); }; }; then
1409cd0b
FXC
29494 ac_cv_lib_m_truncf=yes
29495else
29496 echo "$as_me: failed program was:" >&5
29497sed 's/^/| /' conftest.$ac_ext >&5
29498
38d24731 29499ac_cv_lib_m_truncf=no
1409cd0b 29500fi
38d24731 29501rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
29502 conftest$ac_exeext conftest.$ac_ext
29503LIBS=$ac_check_lib_save_LIBS
29504fi
38d24731
RW
29505echo "$as_me:$LINENO: result: $ac_cv_lib_m_truncf" >&5
29506echo "${ECHO_T}$ac_cv_lib_m_truncf" >&6
1409cd0b
FXC
29507if test $ac_cv_lib_m_truncf = yes; then
29508
29509cat >>confdefs.h <<\_ACEOF
29510#define HAVE_TRUNCF 1
29511_ACEOF
29512
29513fi
29514
38d24731
RW
29515echo "$as_me:$LINENO: checking for trunc in -lm" >&5
29516echo $ECHO_N "checking for trunc in -lm... $ECHO_C" >&6
1409cd0b
FXC
29517if test "${ac_cv_lib_m_trunc+set}" = set; then
29518 echo $ECHO_N "(cached) $ECHO_C" >&6
29519else
29520 ac_check_lib_save_LIBS=$LIBS
29521LIBS="-lm $LIBS"
29522if test x$gcc_no_link = xyes; then
29523 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29524echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29525 { (exit 1); exit 1; }; }
29526fi
29527cat >conftest.$ac_ext <<_ACEOF
29528/* confdefs.h. */
29529_ACEOF
29530cat confdefs.h >>conftest.$ac_ext
29531cat >>conftest.$ac_ext <<_ACEOF
29532/* end confdefs.h. */
29533
38d24731 29534/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
29535#ifdef __cplusplus
29536extern "C"
29537#endif
38d24731
RW
29538/* We use char because int might match the return type of a gcc2
29539 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
29540char trunc ();
29541int
29542main ()
29543{
38d24731 29544trunc ();
1409cd0b
FXC
29545 ;
29546 return 0;
29547}
29548_ACEOF
29549rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
29550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29551 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
29552 ac_status=$?
29553 grep -v '^ *+' conftest.er1 >conftest.err
29554 rm -f conftest.er1
29555 cat conftest.err >&5
29556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
29557 (exit $ac_status); } &&
29558 { ac_try='test -z "$ac_c_werror_flag"
29559 || test ! -s conftest.err'
29560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29561 (eval $ac_try) 2>&5
29562 ac_status=$?
29563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29564 (exit $ac_status); }; } &&
29565 { ac_try='test -s conftest$ac_exeext'
29566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29567 (eval $ac_try) 2>&5
29568 ac_status=$?
29569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570 (exit $ac_status); }; }; then
1409cd0b
FXC
29571 ac_cv_lib_m_trunc=yes
29572else
29573 echo "$as_me: failed program was:" >&5
29574sed 's/^/| /' conftest.$ac_ext >&5
29575
38d24731 29576ac_cv_lib_m_trunc=no
1409cd0b 29577fi
38d24731 29578rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
29579 conftest$ac_exeext conftest.$ac_ext
29580LIBS=$ac_check_lib_save_LIBS
29581fi
38d24731
RW
29582echo "$as_me:$LINENO: result: $ac_cv_lib_m_trunc" >&5
29583echo "${ECHO_T}$ac_cv_lib_m_trunc" >&6
1409cd0b
FXC
29584if test $ac_cv_lib_m_trunc = yes; then
29585
29586cat >>confdefs.h <<\_ACEOF
29587#define HAVE_TRUNC 1
29588_ACEOF
29589
29590fi
29591
38d24731
RW
29592echo "$as_me:$LINENO: checking for truncl in -lm" >&5
29593echo $ECHO_N "checking for truncl in -lm... $ECHO_C" >&6
1409cd0b
FXC
29594if test "${ac_cv_lib_m_truncl+set}" = set; then
29595 echo $ECHO_N "(cached) $ECHO_C" >&6
29596else
29597 ac_check_lib_save_LIBS=$LIBS
29598LIBS="-lm $LIBS"
29599if test x$gcc_no_link = xyes; then
29600 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29601echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29602 { (exit 1); exit 1; }; }
29603fi
29604cat >conftest.$ac_ext <<_ACEOF
29605/* confdefs.h. */
29606_ACEOF
29607cat confdefs.h >>conftest.$ac_ext
29608cat >>conftest.$ac_ext <<_ACEOF
29609/* end confdefs.h. */
29610
38d24731 29611/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
29612#ifdef __cplusplus
29613extern "C"
29614#endif
38d24731
RW
29615/* We use char because int might match the return type of a gcc2
29616 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
29617char truncl ();
29618int
29619main ()
29620{
38d24731 29621truncl ();
1409cd0b
FXC
29622 ;
29623 return 0;
29624}
29625_ACEOF
29626rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
29627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29628 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
29629 ac_status=$?
29630 grep -v '^ *+' conftest.er1 >conftest.err
29631 rm -f conftest.er1
29632 cat conftest.err >&5
29633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
29634 (exit $ac_status); } &&
29635 { ac_try='test -z "$ac_c_werror_flag"
29636 || test ! -s conftest.err'
29637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29638 (eval $ac_try) 2>&5
29639 ac_status=$?
29640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29641 (exit $ac_status); }; } &&
29642 { ac_try='test -s conftest$ac_exeext'
29643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29644 (eval $ac_try) 2>&5
29645 ac_status=$?
29646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647 (exit $ac_status); }; }; then
1409cd0b
FXC
29648 ac_cv_lib_m_truncl=yes
29649else
29650 echo "$as_me: failed program was:" >&5
29651sed 's/^/| /' conftest.$ac_ext >&5
29652
38d24731 29653ac_cv_lib_m_truncl=no
1409cd0b 29654fi
38d24731 29655rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
29656 conftest$ac_exeext conftest.$ac_ext
29657LIBS=$ac_check_lib_save_LIBS
29658fi
38d24731
RW
29659echo "$as_me:$LINENO: result: $ac_cv_lib_m_truncl" >&5
29660echo "${ECHO_T}$ac_cv_lib_m_truncl" >&6
1409cd0b
FXC
29661if test $ac_cv_lib_m_truncl = yes; then
29662
29663cat >>confdefs.h <<\_ACEOF
29664#define HAVE_TRUNCL 1
29665_ACEOF
29666
29667fi
29668
38d24731
RW
29669echo "$as_me:$LINENO: checking for erff in -lm" >&5
29670echo $ECHO_N "checking for erff in -lm... $ECHO_C" >&6
1409cd0b
FXC
29671if test "${ac_cv_lib_m_erff+set}" = set; then
29672 echo $ECHO_N "(cached) $ECHO_C" >&6
29673else
29674 ac_check_lib_save_LIBS=$LIBS
29675LIBS="-lm $LIBS"
29676if test x$gcc_no_link = xyes; then
29677 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29678echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29679 { (exit 1); exit 1; }; }
29680fi
29681cat >conftest.$ac_ext <<_ACEOF
29682/* confdefs.h. */
29683_ACEOF
29684cat confdefs.h >>conftest.$ac_ext
29685cat >>conftest.$ac_ext <<_ACEOF
29686/* end confdefs.h. */
29687
38d24731 29688/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
29689#ifdef __cplusplus
29690extern "C"
29691#endif
38d24731
RW
29692/* We use char because int might match the return type of a gcc2
29693 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
29694char erff ();
29695int
29696main ()
29697{
38d24731 29698erff ();
1409cd0b
FXC
29699 ;
29700 return 0;
29701}
29702_ACEOF
29703rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
29704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29705 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
29706 ac_status=$?
29707 grep -v '^ *+' conftest.er1 >conftest.err
29708 rm -f conftest.er1
29709 cat conftest.err >&5
29710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
29711 (exit $ac_status); } &&
29712 { ac_try='test -z "$ac_c_werror_flag"
29713 || test ! -s conftest.err'
29714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29715 (eval $ac_try) 2>&5
29716 ac_status=$?
29717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29718 (exit $ac_status); }; } &&
29719 { ac_try='test -s conftest$ac_exeext'
29720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29721 (eval $ac_try) 2>&5
29722 ac_status=$?
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); }; }; then
1409cd0b
FXC
29725 ac_cv_lib_m_erff=yes
29726else
29727 echo "$as_me: failed program was:" >&5
29728sed 's/^/| /' conftest.$ac_ext >&5
29729
38d24731 29730ac_cv_lib_m_erff=no
1409cd0b 29731fi
38d24731 29732rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
29733 conftest$ac_exeext conftest.$ac_ext
29734LIBS=$ac_check_lib_save_LIBS
29735fi
38d24731
RW
29736echo "$as_me:$LINENO: result: $ac_cv_lib_m_erff" >&5
29737echo "${ECHO_T}$ac_cv_lib_m_erff" >&6
1409cd0b
FXC
29738if test $ac_cv_lib_m_erff = yes; then
29739
29740cat >>confdefs.h <<\_ACEOF
29741#define HAVE_ERFF 1
29742_ACEOF
29743
29744fi
29745
38d24731
RW
29746echo "$as_me:$LINENO: checking for erf in -lm" >&5
29747echo $ECHO_N "checking for erf in -lm... $ECHO_C" >&6
1409cd0b
FXC
29748if test "${ac_cv_lib_m_erf+set}" = set; then
29749 echo $ECHO_N "(cached) $ECHO_C" >&6
29750else
29751 ac_check_lib_save_LIBS=$LIBS
29752LIBS="-lm $LIBS"
29753if test x$gcc_no_link = xyes; then
29754 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29755echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29756 { (exit 1); exit 1; }; }
29757fi
29758cat >conftest.$ac_ext <<_ACEOF
29759/* confdefs.h. */
29760_ACEOF
29761cat confdefs.h >>conftest.$ac_ext
29762cat >>conftest.$ac_ext <<_ACEOF
29763/* end confdefs.h. */
29764
38d24731 29765/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
29766#ifdef __cplusplus
29767extern "C"
29768#endif
38d24731
RW
29769/* We use char because int might match the return type of a gcc2
29770 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
29771char erf ();
29772int
29773main ()
29774{
38d24731 29775erf ();
1409cd0b
FXC
29776 ;
29777 return 0;
29778}
29779_ACEOF
29780rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
29781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29782 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
29783 ac_status=$?
29784 grep -v '^ *+' conftest.er1 >conftest.err
29785 rm -f conftest.er1
29786 cat conftest.err >&5
29787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
29788 (exit $ac_status); } &&
29789 { ac_try='test -z "$ac_c_werror_flag"
29790 || test ! -s conftest.err'
29791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29792 (eval $ac_try) 2>&5
29793 ac_status=$?
29794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795 (exit $ac_status); }; } &&
29796 { ac_try='test -s conftest$ac_exeext'
29797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29798 (eval $ac_try) 2>&5
29799 ac_status=$?
29800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801 (exit $ac_status); }; }; then
1409cd0b
FXC
29802 ac_cv_lib_m_erf=yes
29803else
29804 echo "$as_me: failed program was:" >&5
29805sed 's/^/| /' conftest.$ac_ext >&5
29806
38d24731 29807ac_cv_lib_m_erf=no
1409cd0b 29808fi
38d24731 29809rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
29810 conftest$ac_exeext conftest.$ac_ext
29811LIBS=$ac_check_lib_save_LIBS
29812fi
38d24731
RW
29813echo "$as_me:$LINENO: result: $ac_cv_lib_m_erf" >&5
29814echo "${ECHO_T}$ac_cv_lib_m_erf" >&6
1409cd0b
FXC
29815if test $ac_cv_lib_m_erf = yes; then
29816
29817cat >>confdefs.h <<\_ACEOF
29818#define HAVE_ERF 1
29819_ACEOF
29820
29821fi
29822
38d24731
RW
29823echo "$as_me:$LINENO: checking for erfl in -lm" >&5
29824echo $ECHO_N "checking for erfl in -lm... $ECHO_C" >&6
1409cd0b
FXC
29825if test "${ac_cv_lib_m_erfl+set}" = set; then
29826 echo $ECHO_N "(cached) $ECHO_C" >&6
29827else
29828 ac_check_lib_save_LIBS=$LIBS
29829LIBS="-lm $LIBS"
29830if test x$gcc_no_link = xyes; then
29831 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29832echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29833 { (exit 1); exit 1; }; }
29834fi
29835cat >conftest.$ac_ext <<_ACEOF
29836/* confdefs.h. */
29837_ACEOF
29838cat confdefs.h >>conftest.$ac_ext
29839cat >>conftest.$ac_ext <<_ACEOF
29840/* end confdefs.h. */
29841
38d24731 29842/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
29843#ifdef __cplusplus
29844extern "C"
29845#endif
38d24731
RW
29846/* We use char because int might match the return type of a gcc2
29847 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
29848char erfl ();
29849int
29850main ()
29851{
38d24731 29852erfl ();
1409cd0b
FXC
29853 ;
29854 return 0;
29855}
29856_ACEOF
29857rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
29858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29859 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
29860 ac_status=$?
29861 grep -v '^ *+' conftest.er1 >conftest.err
29862 rm -f conftest.er1
29863 cat conftest.err >&5
29864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
29865 (exit $ac_status); } &&
29866 { ac_try='test -z "$ac_c_werror_flag"
29867 || test ! -s conftest.err'
29868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29869 (eval $ac_try) 2>&5
29870 ac_status=$?
29871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29872 (exit $ac_status); }; } &&
29873 { ac_try='test -s conftest$ac_exeext'
29874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29875 (eval $ac_try) 2>&5
29876 ac_status=$?
29877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878 (exit $ac_status); }; }; then
1409cd0b
FXC
29879 ac_cv_lib_m_erfl=yes
29880else
29881 echo "$as_me: failed program was:" >&5
29882sed 's/^/| /' conftest.$ac_ext >&5
29883
38d24731 29884ac_cv_lib_m_erfl=no
1409cd0b 29885fi
38d24731 29886rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
29887 conftest$ac_exeext conftest.$ac_ext
29888LIBS=$ac_check_lib_save_LIBS
29889fi
38d24731
RW
29890echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfl" >&5
29891echo "${ECHO_T}$ac_cv_lib_m_erfl" >&6
1409cd0b
FXC
29892if test $ac_cv_lib_m_erfl = yes; then
29893
29894cat >>confdefs.h <<\_ACEOF
29895#define HAVE_ERFL 1
29896_ACEOF
29897
29898fi
29899
38d24731
RW
29900echo "$as_me:$LINENO: checking for erfcf in -lm" >&5
29901echo $ECHO_N "checking for erfcf in -lm... $ECHO_C" >&6
1409cd0b
FXC
29902if test "${ac_cv_lib_m_erfcf+set}" = set; then
29903 echo $ECHO_N "(cached) $ECHO_C" >&6
29904else
29905 ac_check_lib_save_LIBS=$LIBS
29906LIBS="-lm $LIBS"
29907if test x$gcc_no_link = xyes; then
29908 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29909echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29910 { (exit 1); exit 1; }; }
29911fi
29912cat >conftest.$ac_ext <<_ACEOF
29913/* confdefs.h. */
29914_ACEOF
29915cat confdefs.h >>conftest.$ac_ext
29916cat >>conftest.$ac_ext <<_ACEOF
29917/* end confdefs.h. */
29918
38d24731 29919/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
29920#ifdef __cplusplus
29921extern "C"
29922#endif
38d24731
RW
29923/* We use char because int might match the return type of a gcc2
29924 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
29925char erfcf ();
29926int
29927main ()
29928{
38d24731 29929erfcf ();
1409cd0b
FXC
29930 ;
29931 return 0;
29932}
29933_ACEOF
29934rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
29935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29936 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
29937 ac_status=$?
29938 grep -v '^ *+' conftest.er1 >conftest.err
29939 rm -f conftest.er1
29940 cat conftest.err >&5
29941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
29942 (exit $ac_status); } &&
29943 { ac_try='test -z "$ac_c_werror_flag"
29944 || test ! -s conftest.err'
29945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29946 (eval $ac_try) 2>&5
29947 ac_status=$?
29948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29949 (exit $ac_status); }; } &&
29950 { ac_try='test -s conftest$ac_exeext'
29951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29952 (eval $ac_try) 2>&5
29953 ac_status=$?
29954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29955 (exit $ac_status); }; }; then
1409cd0b
FXC
29956 ac_cv_lib_m_erfcf=yes
29957else
29958 echo "$as_me: failed program was:" >&5
29959sed 's/^/| /' conftest.$ac_ext >&5
29960
38d24731 29961ac_cv_lib_m_erfcf=no
1409cd0b 29962fi
38d24731 29963rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
29964 conftest$ac_exeext conftest.$ac_ext
29965LIBS=$ac_check_lib_save_LIBS
29966fi
38d24731
RW
29967echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcf" >&5
29968echo "${ECHO_T}$ac_cv_lib_m_erfcf" >&6
1409cd0b
FXC
29969if test $ac_cv_lib_m_erfcf = yes; then
29970
29971cat >>confdefs.h <<\_ACEOF
29972#define HAVE_ERFCF 1
29973_ACEOF
29974
29975fi
29976
38d24731
RW
29977echo "$as_me:$LINENO: checking for erfc in -lm" >&5
29978echo $ECHO_N "checking for erfc in -lm... $ECHO_C" >&6
1409cd0b
FXC
29979if test "${ac_cv_lib_m_erfc+set}" = set; then
29980 echo $ECHO_N "(cached) $ECHO_C" >&6
29981else
29982 ac_check_lib_save_LIBS=$LIBS
29983LIBS="-lm $LIBS"
29984if test x$gcc_no_link = xyes; then
29985 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29986echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29987 { (exit 1); exit 1; }; }
29988fi
29989cat >conftest.$ac_ext <<_ACEOF
29990/* confdefs.h. */
29991_ACEOF
29992cat confdefs.h >>conftest.$ac_ext
29993cat >>conftest.$ac_ext <<_ACEOF
29994/* end confdefs.h. */
29995
38d24731 29996/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
29997#ifdef __cplusplus
29998extern "C"
29999#endif
38d24731
RW
30000/* We use char because int might match the return type of a gcc2
30001 builtin and then its argument prototype would still apply. */
1409cd0b 30002char erfc ();
69a2d125
EB
30003int
30004main ()
30005{
38d24731 30006erfc ();
69a2d125
EB
30007 ;
30008 return 0;
30009}
30010_ACEOF
30011rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
30012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30013 (eval $ac_link) 2>conftest.er1
69a2d125
EB
30014 ac_status=$?
30015 grep -v '^ *+' conftest.er1 >conftest.err
30016 rm -f conftest.er1
30017 cat conftest.err >&5
30018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
30019 (exit $ac_status); } &&
30020 { ac_try='test -z "$ac_c_werror_flag"
30021 || test ! -s conftest.err'
30022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30023 (eval $ac_try) 2>&5
30024 ac_status=$?
30025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30026 (exit $ac_status); }; } &&
30027 { ac_try='test -s conftest$ac_exeext'
30028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30029 (eval $ac_try) 2>&5
30030 ac_status=$?
30031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032 (exit $ac_status); }; }; then
1409cd0b 30033 ac_cv_lib_m_erfc=yes
69a2d125
EB
30034else
30035 echo "$as_me: failed program was:" >&5
30036sed 's/^/| /' conftest.$ac_ext >&5
30037
38d24731 30038ac_cv_lib_m_erfc=no
69a2d125 30039fi
38d24731 30040rm -f conftest.err conftest.$ac_objext \
69a2d125
EB
30041 conftest$ac_exeext conftest.$ac_ext
30042LIBS=$ac_check_lib_save_LIBS
30043fi
38d24731
RW
30044echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfc" >&5
30045echo "${ECHO_T}$ac_cv_lib_m_erfc" >&6
1409cd0b 30046if test $ac_cv_lib_m_erfc = yes; then
69a2d125
EB
30047
30048cat >>confdefs.h <<\_ACEOF
1409cd0b 30049#define HAVE_ERFC 1
69a2d125
EB
30050_ACEOF
30051
30052fi
30053
38d24731
RW
30054echo "$as_me:$LINENO: checking for erfcl in -lm" >&5
30055echo $ECHO_N "checking for erfcl in -lm... $ECHO_C" >&6
1409cd0b 30056if test "${ac_cv_lib_m_erfcl+set}" = set; then
e8525382
SK
30057 echo $ECHO_N "(cached) $ECHO_C" >&6
30058else
30059 ac_check_lib_save_LIBS=$LIBS
30060LIBS="-lm $LIBS"
f02d008e
JD
30061if test x$gcc_no_link = xyes; then
30062 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30063echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30064 { (exit 1); exit 1; }; }
30065fi
e8525382
SK
30066cat >conftest.$ac_ext <<_ACEOF
30067/* confdefs.h. */
30068_ACEOF
30069cat confdefs.h >>conftest.$ac_ext
30070cat >>conftest.$ac_ext <<_ACEOF
30071/* end confdefs.h. */
30072
38d24731 30073/* Override any gcc2 internal prototype to avoid an error. */
e8525382
SK
30074#ifdef __cplusplus
30075extern "C"
30076#endif
38d24731
RW
30077/* We use char because int might match the return type of a gcc2
30078 builtin and then its argument prototype would still apply. */
1409cd0b 30079char erfcl ();
e8525382
SK
30080int
30081main ()
30082{
38d24731 30083erfcl ();
e8525382
SK
30084 ;
30085 return 0;
30086}
30087_ACEOF
30088rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
30089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30090 (eval $ac_link) 2>conftest.er1
e8525382
SK
30091 ac_status=$?
30092 grep -v '^ *+' conftest.er1 >conftest.err
30093 rm -f conftest.er1
30094 cat conftest.err >&5
30095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
30096 (exit $ac_status); } &&
30097 { ac_try='test -z "$ac_c_werror_flag"
30098 || test ! -s conftest.err'
30099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30100 (eval $ac_try) 2>&5
30101 ac_status=$?
30102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103 (exit $ac_status); }; } &&
30104 { ac_try='test -s conftest$ac_exeext'
30105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30106 (eval $ac_try) 2>&5
30107 ac_status=$?
30108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109 (exit $ac_status); }; }; then
1409cd0b 30110 ac_cv_lib_m_erfcl=yes
e8525382
SK
30111else
30112 echo "$as_me: failed program was:" >&5
30113sed 's/^/| /' conftest.$ac_ext >&5
30114
38d24731 30115ac_cv_lib_m_erfcl=no
e8525382 30116fi
38d24731 30117rm -f conftest.err conftest.$ac_objext \
e8525382
SK
30118 conftest$ac_exeext conftest.$ac_ext
30119LIBS=$ac_check_lib_save_LIBS
30120fi
38d24731
RW
30121echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcl" >&5
30122echo "${ECHO_T}$ac_cv_lib_m_erfcl" >&6
1409cd0b 30123if test $ac_cv_lib_m_erfcl = yes; then
e8525382
SK
30124
30125cat >>confdefs.h <<\_ACEOF
1409cd0b 30126#define HAVE_ERFCL 1
e8525382
SK
30127_ACEOF
30128
30129fi
30130
38d24731
RW
30131echo "$as_me:$LINENO: checking for j0f in -lm" >&5
30132echo $ECHO_N "checking for j0f in -lm... $ECHO_C" >&6
1409cd0b 30133if test "${ac_cv_lib_m_j0f+set}" = set; then
e8525382
SK
30134 echo $ECHO_N "(cached) $ECHO_C" >&6
30135else
30136 ac_check_lib_save_LIBS=$LIBS
30137LIBS="-lm $LIBS"
f02d008e
JD
30138if test x$gcc_no_link = xyes; then
30139 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30140echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30141 { (exit 1); exit 1; }; }
30142fi
e8525382
SK
30143cat >conftest.$ac_ext <<_ACEOF
30144/* confdefs.h. */
30145_ACEOF
30146cat confdefs.h >>conftest.$ac_ext
30147cat >>conftest.$ac_ext <<_ACEOF
30148/* end confdefs.h. */
30149
38d24731 30150/* Override any gcc2 internal prototype to avoid an error. */
e8525382
SK
30151#ifdef __cplusplus
30152extern "C"
30153#endif
38d24731
RW
30154/* We use char because int might match the return type of a gcc2
30155 builtin and then its argument prototype would still apply. */
1409cd0b 30156char j0f ();
e8525382
SK
30157int
30158main ()
30159{
38d24731 30160j0f ();
e8525382
SK
30161 ;
30162 return 0;
30163}
30164_ACEOF
30165rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
30166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30167 (eval $ac_link) 2>conftest.er1
e8525382
SK
30168 ac_status=$?
30169 grep -v '^ *+' conftest.er1 >conftest.err
30170 rm -f conftest.er1
30171 cat conftest.err >&5
30172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
30173 (exit $ac_status); } &&
30174 { ac_try='test -z "$ac_c_werror_flag"
30175 || test ! -s conftest.err'
30176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30177 (eval $ac_try) 2>&5
30178 ac_status=$?
30179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30180 (exit $ac_status); }; } &&
30181 { ac_try='test -s conftest$ac_exeext'
30182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30183 (eval $ac_try) 2>&5
30184 ac_status=$?
30185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30186 (exit $ac_status); }; }; then
1409cd0b 30187 ac_cv_lib_m_j0f=yes
e8525382
SK
30188else
30189 echo "$as_me: failed program was:" >&5
30190sed 's/^/| /' conftest.$ac_ext >&5
30191
38d24731 30192ac_cv_lib_m_j0f=no
1409cd0b 30193fi
38d24731 30194rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
30195 conftest$ac_exeext conftest.$ac_ext
30196LIBS=$ac_check_lib_save_LIBS
30197fi
38d24731
RW
30198echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0f" >&5
30199echo "${ECHO_T}$ac_cv_lib_m_j0f" >&6
1409cd0b
FXC
30200if test $ac_cv_lib_m_j0f = yes; then
30201
30202cat >>confdefs.h <<\_ACEOF
30203#define HAVE_J0F 1
30204_ACEOF
30205
30206fi
30207
38d24731
RW
30208echo "$as_me:$LINENO: checking for j0 in -lm" >&5
30209echo $ECHO_N "checking for j0 in -lm... $ECHO_C" >&6
1409cd0b
FXC
30210if test "${ac_cv_lib_m_j0+set}" = set; then
30211 echo $ECHO_N "(cached) $ECHO_C" >&6
30212else
30213 ac_check_lib_save_LIBS=$LIBS
30214LIBS="-lm $LIBS"
30215if test x$gcc_no_link = xyes; then
30216 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30217echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30218 { (exit 1); exit 1; }; }
30219fi
30220cat >conftest.$ac_ext <<_ACEOF
30221/* confdefs.h. */
30222_ACEOF
30223cat confdefs.h >>conftest.$ac_ext
30224cat >>conftest.$ac_ext <<_ACEOF
30225/* end confdefs.h. */
30226
38d24731 30227/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
30228#ifdef __cplusplus
30229extern "C"
30230#endif
38d24731
RW
30231/* We use char because int might match the return type of a gcc2
30232 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
30233char j0 ();
30234int
30235main ()
30236{
38d24731 30237j0 ();
1409cd0b
FXC
30238 ;
30239 return 0;
30240}
30241_ACEOF
30242rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
30243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30244 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
30245 ac_status=$?
30246 grep -v '^ *+' conftest.er1 >conftest.err
30247 rm -f conftest.er1
30248 cat conftest.err >&5
30249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
30250 (exit $ac_status); } &&
30251 { ac_try='test -z "$ac_c_werror_flag"
30252 || test ! -s conftest.err'
30253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30254 (eval $ac_try) 2>&5
30255 ac_status=$?
30256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257 (exit $ac_status); }; } &&
30258 { ac_try='test -s conftest$ac_exeext'
30259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30260 (eval $ac_try) 2>&5
30261 ac_status=$?
30262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263 (exit $ac_status); }; }; then
1409cd0b
FXC
30264 ac_cv_lib_m_j0=yes
30265else
30266 echo "$as_me: failed program was:" >&5
30267sed 's/^/| /' conftest.$ac_ext >&5
30268
38d24731 30269ac_cv_lib_m_j0=no
1409cd0b 30270fi
38d24731 30271rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
30272 conftest$ac_exeext conftest.$ac_ext
30273LIBS=$ac_check_lib_save_LIBS
30274fi
38d24731
RW
30275echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0" >&5
30276echo "${ECHO_T}$ac_cv_lib_m_j0" >&6
1409cd0b
FXC
30277if test $ac_cv_lib_m_j0 = yes; then
30278
30279cat >>confdefs.h <<\_ACEOF
30280#define HAVE_J0 1
30281_ACEOF
30282
30283fi
30284
38d24731
RW
30285echo "$as_me:$LINENO: checking for j0l in -lm" >&5
30286echo $ECHO_N "checking for j0l in -lm... $ECHO_C" >&6
1409cd0b
FXC
30287if test "${ac_cv_lib_m_j0l+set}" = set; then
30288 echo $ECHO_N "(cached) $ECHO_C" >&6
30289else
30290 ac_check_lib_save_LIBS=$LIBS
30291LIBS="-lm $LIBS"
30292if test x$gcc_no_link = xyes; then
30293 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30294echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30295 { (exit 1); exit 1; }; }
30296fi
30297cat >conftest.$ac_ext <<_ACEOF
30298/* confdefs.h. */
30299_ACEOF
30300cat confdefs.h >>conftest.$ac_ext
30301cat >>conftest.$ac_ext <<_ACEOF
30302/* end confdefs.h. */
30303
38d24731 30304/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
30305#ifdef __cplusplus
30306extern "C"
30307#endif
38d24731
RW
30308/* We use char because int might match the return type of a gcc2
30309 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
30310char j0l ();
30311int
30312main ()
30313{
38d24731 30314j0l ();
1409cd0b
FXC
30315 ;
30316 return 0;
30317}
30318_ACEOF
30319rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
30320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30321 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
30322 ac_status=$?
30323 grep -v '^ *+' conftest.er1 >conftest.err
30324 rm -f conftest.er1
30325 cat conftest.err >&5
30326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
30327 (exit $ac_status); } &&
30328 { ac_try='test -z "$ac_c_werror_flag"
30329 || test ! -s conftest.err'
30330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30331 (eval $ac_try) 2>&5
30332 ac_status=$?
30333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334 (exit $ac_status); }; } &&
30335 { ac_try='test -s conftest$ac_exeext'
30336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30337 (eval $ac_try) 2>&5
30338 ac_status=$?
30339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30340 (exit $ac_status); }; }; then
1409cd0b
FXC
30341 ac_cv_lib_m_j0l=yes
30342else
30343 echo "$as_me: failed program was:" >&5
30344sed 's/^/| /' conftest.$ac_ext >&5
30345
38d24731 30346ac_cv_lib_m_j0l=no
1409cd0b 30347fi
38d24731 30348rm -f conftest.err conftest.$ac_objext \
1409cd0b
FXC
30349 conftest$ac_exeext conftest.$ac_ext
30350LIBS=$ac_check_lib_save_LIBS
30351fi
38d24731
RW
30352echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0l" >&5
30353echo "${ECHO_T}$ac_cv_lib_m_j0l" >&6
1409cd0b
FXC
30354if test $ac_cv_lib_m_j0l = yes; then
30355
30356cat >>confdefs.h <<\_ACEOF
30357#define HAVE_J0L 1
30358_ACEOF
30359
30360fi
30361
38d24731
RW
30362echo "$as_me:$LINENO: checking for j1f in -lm" >&5
30363echo $ECHO_N "checking for j1f in -lm... $ECHO_C" >&6
1409cd0b
FXC
30364if test "${ac_cv_lib_m_j1f+set}" = set; then
30365 echo $ECHO_N "(cached) $ECHO_C" >&6
30366else
30367 ac_check_lib_save_LIBS=$LIBS
30368LIBS="-lm $LIBS"
30369if test x$gcc_no_link = xyes; then
30370 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30371echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30372 { (exit 1); exit 1; }; }
30373fi
30374cat >conftest.$ac_ext <<_ACEOF
30375/* confdefs.h. */
30376_ACEOF
30377cat confdefs.h >>conftest.$ac_ext
30378cat >>conftest.$ac_ext <<_ACEOF
30379/* end confdefs.h. */
30380
38d24731 30381/* Override any gcc2 internal prototype to avoid an error. */
1409cd0b
FXC
30382#ifdef __cplusplus
30383extern "C"
30384#endif
38d24731
RW
30385/* We use char because int might match the return type of a gcc2
30386 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
30387char j1f ();
30388int
30389main ()
30390{
38d24731 30391j1f ();
1409cd0b
FXC
30392 ;
30393 return 0;
30394}
30395_ACEOF
30396rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
30397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30398 (eval $ac_link) 2>conftest.er1
1409cd0b
FXC
30399 ac_status=$?
30400 grep -v '^ *+' conftest.er1 >conftest.err
30401 rm -f conftest.er1
30402 cat conftest.err >&5
30403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
30404 (exit $ac_status); } &&
30405 { ac_try='test -z "$ac_c_werror_flag"
30406 || test ! -s conftest.err'
30407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30408 (eval $ac_try) 2>&5
30409 ac_status=$?
30410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30411 (exit $ac_status); }; } &&
30412 { ac_try='test -s conftest$ac_exeext'
30413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30414 (eval $ac_try) 2>&5
30415 ac_status=$?
30416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30417 (exit $ac_status); }; }; then
1409cd0b
FXC
30418 ac_cv_lib_m_j1f=yes
30419else
30420 echo "$as_me: failed program was:" >&5
30421sed 's/^/| /' conftest.$ac_ext >&5
30422
38d24731 30423ac_cv_lib_m_j1f=no
e8525382 30424fi
38d24731 30425rm -f conftest.err conftest.$ac_objext \
e8525382
SK
30426 conftest$ac_exeext conftest.$ac_ext
30427LIBS=$ac_check_lib_save_LIBS
30428fi
38d24731
RW
30429echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1f" >&5
30430echo "${ECHO_T}$ac_cv_lib_m_j1f" >&6
1409cd0b 30431if test $ac_cv_lib_m_j1f = yes; then
e8525382
SK
30432
30433cat >>confdefs.h <<\_ACEOF
1409cd0b 30434#define HAVE_J1F 1
e8525382
SK
30435_ACEOF
30436
30437fi
30438
38d24731
RW
30439echo "$as_me:$LINENO: checking for j1 in -lm" >&5
30440echo $ECHO_N "checking for j1 in -lm... $ECHO_C" >&6
1409cd0b 30441if test "${ac_cv_lib_m_j1+set}" = set; then
e8525382
SK
30442 echo $ECHO_N "(cached) $ECHO_C" >&6
30443else
30444 ac_check_lib_save_LIBS=$LIBS
30445LIBS="-lm $LIBS"
f02d008e
JD
30446if test x$gcc_no_link = xyes; then
30447 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30448echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30449 { (exit 1); exit 1; }; }
30450fi
e8525382
SK
30451cat >conftest.$ac_ext <<_ACEOF
30452/* confdefs.h. */
30453_ACEOF
30454cat confdefs.h >>conftest.$ac_ext
30455cat >>conftest.$ac_ext <<_ACEOF
30456/* end confdefs.h. */
30457
38d24731 30458/* Override any gcc2 internal prototype to avoid an error. */
e8525382
SK
30459#ifdef __cplusplus
30460extern "C"
30461#endif
38d24731
RW
30462/* We use char because int might match the return type of a gcc2
30463 builtin and then its argument prototype would still apply. */
1409cd0b 30464char j1 ();
e8525382
SK
30465int
30466main ()
30467{
38d24731 30468j1 ();
e8525382
SK
30469 ;
30470 return 0;
30471}
30472_ACEOF
30473rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
30474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30475 (eval $ac_link) 2>conftest.er1
e8525382
SK
30476 ac_status=$?
30477 grep -v '^ *+' conftest.er1 >conftest.err
30478 rm -f conftest.er1
30479 cat conftest.err >&5
30480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
30481 (exit $ac_status); } &&
30482 { ac_try='test -z "$ac_c_werror_flag"
30483 || test ! -s conftest.err'
30484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30485 (eval $ac_try) 2>&5
30486 ac_status=$?
30487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30488 (exit $ac_status); }; } &&
30489 { ac_try='test -s conftest$ac_exeext'
30490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30491 (eval $ac_try) 2>&5
30492 ac_status=$?
30493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30494 (exit $ac_status); }; }; then
1409cd0b 30495 ac_cv_lib_m_j1=yes
e8525382
SK
30496else
30497 echo "$as_me: failed program was:" >&5
30498sed 's/^/| /' conftest.$ac_ext >&5
30499
38d24731 30500ac_cv_lib_m_j1=no
e8525382 30501fi
38d24731 30502rm -f conftest.err conftest.$ac_objext \
e8525382
SK
30503 conftest$ac_exeext conftest.$ac_ext
30504LIBS=$ac_check_lib_save_LIBS
30505fi
38d24731
RW
30506echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1" >&5
30507echo "${ECHO_T}$ac_cv_lib_m_j1" >&6
1409cd0b 30508if test $ac_cv_lib_m_j1 = yes; then
e8525382
SK
30509
30510cat >>confdefs.h <<\_ACEOF
1409cd0b 30511#define HAVE_J1 1
e8525382
SK
30512_ACEOF
30513
30514fi
30515
38d24731
RW
30516echo "$as_me:$LINENO: checking for j1l in -lm" >&5
30517echo $ECHO_N "checking for j1l in -lm... $ECHO_C" >&6
1409cd0b 30518if test "${ac_cv_lib_m_j1l+set}" = set; then
e8525382
SK
30519 echo $ECHO_N "(cached) $ECHO_C" >&6
30520else
30521 ac_check_lib_save_LIBS=$LIBS
30522LIBS="-lm $LIBS"
f02d008e
JD
30523if test x$gcc_no_link = xyes; then
30524 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30525echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30526 { (exit 1); exit 1; }; }
30527fi
e8525382
SK
30528cat >conftest.$ac_ext <<_ACEOF
30529/* confdefs.h. */
30530_ACEOF
30531cat confdefs.h >>conftest.$ac_ext
30532cat >>conftest.$ac_ext <<_ACEOF
30533/* end confdefs.h. */
30534
38d24731 30535/* Override any gcc2 internal prototype to avoid an error. */
e8525382
SK
30536#ifdef __cplusplus
30537extern "C"
30538#endif
38d24731
RW
30539/* We use char because int might match the return type of a gcc2
30540 builtin and then its argument prototype would still apply. */
1409cd0b 30541char j1l ();
e8525382
SK
30542int
30543main ()
30544{
38d24731 30545j1l ();
e8525382
SK
30546 ;
30547 return 0;
30548}
30549_ACEOF
30550rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
30551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30552 (eval $ac_link) 2>conftest.er1
e8525382
SK
30553 ac_status=$?
30554 grep -v '^ *+' conftest.er1 >conftest.err
30555 rm -f conftest.er1
30556 cat conftest.err >&5
30557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
30558 (exit $ac_status); } &&
30559 { ac_try='test -z "$ac_c_werror_flag"
30560 || test ! -s conftest.err'
30561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30562 (eval $ac_try) 2>&5
30563 ac_status=$?
30564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30565 (exit $ac_status); }; } &&
30566 { ac_try='test -s conftest$ac_exeext'
30567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30568 (eval $ac_try) 2>&5
30569 ac_status=$?
30570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30571 (exit $ac_status); }; }; then
1409cd0b 30572 ac_cv_lib_m_j1l=yes
e8525382
SK
30573else
30574 echo "$as_me: failed program was:" >&5
30575sed 's/^/| /' conftest.$ac_ext >&5
30576
38d24731 30577ac_cv_lib_m_j1l=no
e8525382 30578fi
38d24731 30579rm -f conftest.err conftest.$ac_objext \
e8525382
SK
30580 conftest$ac_exeext conftest.$ac_ext
30581LIBS=$ac_check_lib_save_LIBS
30582fi
38d24731
RW
30583echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1l" >&5
30584echo "${ECHO_T}$ac_cv_lib_m_j1l" >&6
1409cd0b 30585if test $ac_cv_lib_m_j1l = yes; then
e8525382
SK
30586
30587cat >>confdefs.h <<\_ACEOF
1409cd0b 30588#define HAVE_J1L 1
e8525382
SK
30589_ACEOF
30590
30591fi
30592
38d24731
RW
30593echo "$as_me:$LINENO: checking for jnf in -lm" >&5
30594echo $ECHO_N "checking for jnf in -lm... $ECHO_C" >&6
1409cd0b 30595if test "${ac_cv_lib_m_jnf+set}" = set; then
e8525382
SK
30596 echo $ECHO_N "(cached) $ECHO_C" >&6
30597else
30598 ac_check_lib_save_LIBS=$LIBS
30599LIBS="-lm $LIBS"
f02d008e
JD
30600if test x$gcc_no_link = xyes; then
30601 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30602echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30603 { (exit 1); exit 1; }; }
30604fi
e8525382
SK
30605cat >conftest.$ac_ext <<_ACEOF
30606/* confdefs.h. */
30607_ACEOF
30608cat confdefs.h >>conftest.$ac_ext
30609cat >>conftest.$ac_ext <<_ACEOF
30610/* end confdefs.h. */
30611
38d24731 30612/* Override any gcc2 internal prototype to avoid an error. */
e8525382
SK
30613#ifdef __cplusplus
30614extern "C"
30615#endif
38d24731
RW
30616/* We use char because int might match the return type of a gcc2
30617 builtin and then its argument prototype would still apply. */
1409cd0b 30618char jnf ();
e8525382
SK
30619int
30620main ()
30621{
38d24731 30622jnf ();
e8525382
SK
30623 ;
30624 return 0;
30625}
30626_ACEOF
30627rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
30628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30629 (eval $ac_link) 2>conftest.er1
e8525382
SK
30630 ac_status=$?
30631 grep -v '^ *+' conftest.er1 >conftest.err
30632 rm -f conftest.er1
30633 cat conftest.err >&5
30634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
30635 (exit $ac_status); } &&
30636 { ac_try='test -z "$ac_c_werror_flag"
30637 || test ! -s conftest.err'
30638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30639 (eval $ac_try) 2>&5
30640 ac_status=$?
30641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30642 (exit $ac_status); }; } &&
30643 { ac_try='test -s conftest$ac_exeext'
30644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30645 (eval $ac_try) 2>&5
30646 ac_status=$?
30647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30648 (exit $ac_status); }; }; then
1409cd0b 30649 ac_cv_lib_m_jnf=yes
e8525382
SK
30650else
30651 echo "$as_me: failed program was:" >&5
30652sed 's/^/| /' conftest.$ac_ext >&5
30653
38d24731 30654ac_cv_lib_m_jnf=no
e8525382 30655fi
38d24731 30656rm -f conftest.err conftest.$ac_objext \
e8525382
SK
30657 conftest$ac_exeext conftest.$ac_ext
30658LIBS=$ac_check_lib_save_LIBS
30659fi
38d24731
RW
30660echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnf" >&5
30661echo "${ECHO_T}$ac_cv_lib_m_jnf" >&6
1409cd0b 30662if test $ac_cv_lib_m_jnf = yes; then
e8525382
SK
30663
30664cat >>confdefs.h <<\_ACEOF
1409cd0b 30665#define HAVE_JNF 1
e8525382
SK
30666_ACEOF
30667
30668fi
30669
38d24731
RW
30670echo "$as_me:$LINENO: checking for jn in -lm" >&5
30671echo $ECHO_N "checking for jn in -lm... $ECHO_C" >&6
1409cd0b 30672if test "${ac_cv_lib_m_jn+set}" = set; then
e8525382
SK
30673 echo $ECHO_N "(cached) $ECHO_C" >&6
30674else
30675 ac_check_lib_save_LIBS=$LIBS
30676LIBS="-lm $LIBS"
f02d008e
JD
30677if test x$gcc_no_link = xyes; then
30678 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30679echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30680 { (exit 1); exit 1; }; }
30681fi
e8525382
SK
30682cat >conftest.$ac_ext <<_ACEOF
30683/* confdefs.h. */
30684_ACEOF
30685cat confdefs.h >>conftest.$ac_ext
30686cat >>conftest.$ac_ext <<_ACEOF
30687/* end confdefs.h. */
30688
38d24731 30689/* Override any gcc2 internal prototype to avoid an error. */
e8525382
SK
30690#ifdef __cplusplus
30691extern "C"
30692#endif
38d24731
RW
30693/* We use char because int might match the return type of a gcc2
30694 builtin and then its argument prototype would still apply. */
1409cd0b 30695char jn ();
e8525382
SK
30696int
30697main ()
30698{
38d24731 30699jn ();
e8525382
SK
30700 ;
30701 return 0;
30702}
30703_ACEOF
30704rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
30705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30706 (eval $ac_link) 2>conftest.er1
e8525382
SK
30707 ac_status=$?
30708 grep -v '^ *+' conftest.er1 >conftest.err
30709 rm -f conftest.er1
30710 cat conftest.err >&5
30711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
30712 (exit $ac_status); } &&
30713 { ac_try='test -z "$ac_c_werror_flag"
30714 || test ! -s conftest.err'
30715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30716 (eval $ac_try) 2>&5
30717 ac_status=$?
30718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719 (exit $ac_status); }; } &&
30720 { ac_try='test -s conftest$ac_exeext'
30721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30722 (eval $ac_try) 2>&5
30723 ac_status=$?
30724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725 (exit $ac_status); }; }; then
1409cd0b 30726 ac_cv_lib_m_jn=yes
e8525382
SK
30727else
30728 echo "$as_me: failed program was:" >&5
30729sed 's/^/| /' conftest.$ac_ext >&5
30730
38d24731 30731ac_cv_lib_m_jn=no
e8525382 30732fi
38d24731 30733rm -f conftest.err conftest.$ac_objext \
e8525382
SK
30734 conftest$ac_exeext conftest.$ac_ext
30735LIBS=$ac_check_lib_save_LIBS
30736fi
38d24731
RW
30737echo "$as_me:$LINENO: result: $ac_cv_lib_m_jn" >&5
30738echo "${ECHO_T}$ac_cv_lib_m_jn" >&6
1409cd0b 30739if test $ac_cv_lib_m_jn = yes; then
e8525382
SK
30740
30741cat >>confdefs.h <<\_ACEOF
1409cd0b 30742#define HAVE_JN 1
e8525382
SK
30743_ACEOF
30744
30745fi
30746
38d24731
RW
30747echo "$as_me:$LINENO: checking for jnl in -lm" >&5
30748echo $ECHO_N "checking for jnl in -lm... $ECHO_C" >&6
1409cd0b 30749if test "${ac_cv_lib_m_jnl+set}" = set; then
e8525382
SK
30750 echo $ECHO_N "(cached) $ECHO_C" >&6
30751else
30752 ac_check_lib_save_LIBS=$LIBS
30753LIBS="-lm $LIBS"
f02d008e
JD
30754if test x$gcc_no_link = xyes; then
30755 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30756echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30757 { (exit 1); exit 1; }; }
30758fi
e8525382
SK
30759cat >conftest.$ac_ext <<_ACEOF
30760/* confdefs.h. */
30761_ACEOF
30762cat confdefs.h >>conftest.$ac_ext
30763cat >>conftest.$ac_ext <<_ACEOF
30764/* end confdefs.h. */
30765
38d24731 30766/* Override any gcc2 internal prototype to avoid an error. */
e8525382
SK
30767#ifdef __cplusplus
30768extern "C"
30769#endif
38d24731
RW
30770/* We use char because int might match the return type of a gcc2
30771 builtin and then its argument prototype would still apply. */
1409cd0b 30772char jnl ();
e8525382
SK
30773int
30774main ()
30775{
38d24731 30776jnl ();
e8525382
SK
30777 ;
30778 return 0;
30779}
30780_ACEOF
30781rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
30782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30783 (eval $ac_link) 2>conftest.er1
e8525382
SK
30784 ac_status=$?
30785 grep -v '^ *+' conftest.er1 >conftest.err
30786 rm -f conftest.er1
30787 cat conftest.err >&5
30788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
30789 (exit $ac_status); } &&
30790 { ac_try='test -z "$ac_c_werror_flag"
30791 || test ! -s conftest.err'
30792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30793 (eval $ac_try) 2>&5
30794 ac_status=$?
30795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30796 (exit $ac_status); }; } &&
30797 { ac_try='test -s conftest$ac_exeext'
30798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30799 (eval $ac_try) 2>&5
30800 ac_status=$?
30801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30802 (exit $ac_status); }; }; then
1409cd0b 30803 ac_cv_lib_m_jnl=yes
e8525382
SK
30804else
30805 echo "$as_me: failed program was:" >&5
30806sed 's/^/| /' conftest.$ac_ext >&5
30807
38d24731 30808ac_cv_lib_m_jnl=no
e8525382 30809fi
38d24731 30810rm -f conftest.err conftest.$ac_objext \
e8525382
SK
30811 conftest$ac_exeext conftest.$ac_ext
30812LIBS=$ac_check_lib_save_LIBS
30813fi
38d24731
RW
30814echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnl" >&5
30815echo "${ECHO_T}$ac_cv_lib_m_jnl" >&6
1409cd0b 30816if test $ac_cv_lib_m_jnl = yes; then
e8525382
SK
30817
30818cat >>confdefs.h <<\_ACEOF
1409cd0b 30819#define HAVE_JNL 1
e8525382
SK
30820_ACEOF
30821
30822fi
30823
38d24731
RW
30824echo "$as_me:$LINENO: checking for y0f in -lm" >&5
30825echo $ECHO_N "checking for y0f in -lm... $ECHO_C" >&6
1409cd0b 30826if test "${ac_cv_lib_m_y0f+set}" = set; then
e8525382
SK
30827 echo $ECHO_N "(cached) $ECHO_C" >&6
30828else
30829 ac_check_lib_save_LIBS=$LIBS
30830LIBS="-lm $LIBS"
f02d008e
JD
30831if test x$gcc_no_link = xyes; then
30832 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30833echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30834 { (exit 1); exit 1; }; }
30835fi
e8525382
SK
30836cat >conftest.$ac_ext <<_ACEOF
30837/* confdefs.h. */
30838_ACEOF
30839cat confdefs.h >>conftest.$ac_ext
30840cat >>conftest.$ac_ext <<_ACEOF
30841/* end confdefs.h. */
30842
38d24731 30843/* Override any gcc2 internal prototype to avoid an error. */
e8525382
SK
30844#ifdef __cplusplus
30845extern "C"
30846#endif
38d24731
RW
30847/* We use char because int might match the return type of a gcc2
30848 builtin and then its argument prototype would still apply. */
1409cd0b 30849char y0f ();
e8525382
SK
30850int
30851main ()
30852{
38d24731 30853y0f ();
e8525382
SK
30854 ;
30855 return 0;
30856}
30857_ACEOF
30858rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
30859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30860 (eval $ac_link) 2>conftest.er1
e8525382
SK
30861 ac_status=$?
30862 grep -v '^ *+' conftest.er1 >conftest.err
30863 rm -f conftest.er1
30864 cat conftest.err >&5
30865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
30866 (exit $ac_status); } &&
30867 { ac_try='test -z "$ac_c_werror_flag"
30868 || test ! -s conftest.err'
30869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30870 (eval $ac_try) 2>&5
30871 ac_status=$?
30872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30873 (exit $ac_status); }; } &&
30874 { ac_try='test -s conftest$ac_exeext'
30875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30876 (eval $ac_try) 2>&5
30877 ac_status=$?
30878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30879 (exit $ac_status); }; }; then
1409cd0b 30880 ac_cv_lib_m_y0f=yes
e8525382
SK
30881else
30882 echo "$as_me: failed program was:" >&5
30883sed 's/^/| /' conftest.$ac_ext >&5
30884
38d24731 30885ac_cv_lib_m_y0f=no
e8525382 30886fi
38d24731 30887rm -f conftest.err conftest.$ac_objext \
e8525382
SK
30888 conftest$ac_exeext conftest.$ac_ext
30889LIBS=$ac_check_lib_save_LIBS
30890fi
38d24731
RW
30891echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0f" >&5
30892echo "${ECHO_T}$ac_cv_lib_m_y0f" >&6
1409cd0b 30893if test $ac_cv_lib_m_y0f = yes; then
e8525382
SK
30894
30895cat >>confdefs.h <<\_ACEOF
1409cd0b 30896#define HAVE_Y0F 1
e8525382
SK
30897_ACEOF
30898
30899fi
30900
38d24731
RW
30901echo "$as_me:$LINENO: checking for y0 in -lm" >&5
30902echo $ECHO_N "checking for y0 in -lm... $ECHO_C" >&6
1409cd0b 30903if test "${ac_cv_lib_m_y0+set}" = set; then
e8525382
SK
30904 echo $ECHO_N "(cached) $ECHO_C" >&6
30905else
30906 ac_check_lib_save_LIBS=$LIBS
30907LIBS="-lm $LIBS"
f02d008e
JD
30908if test x$gcc_no_link = xyes; then
30909 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30910echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30911 { (exit 1); exit 1; }; }
30912fi
e8525382
SK
30913cat >conftest.$ac_ext <<_ACEOF
30914/* confdefs.h. */
30915_ACEOF
30916cat confdefs.h >>conftest.$ac_ext
30917cat >>conftest.$ac_ext <<_ACEOF
30918/* end confdefs.h. */
30919
38d24731 30920/* Override any gcc2 internal prototype to avoid an error. */
e8525382
SK
30921#ifdef __cplusplus
30922extern "C"
30923#endif
38d24731
RW
30924/* We use char because int might match the return type of a gcc2
30925 builtin and then its argument prototype would still apply. */
1409cd0b 30926char y0 ();
e8525382
SK
30927int
30928main ()
30929{
38d24731 30930y0 ();
e8525382
SK
30931 ;
30932 return 0;
30933}
30934_ACEOF
30935rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
30936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30937 (eval $ac_link) 2>conftest.er1
e8525382
SK
30938 ac_status=$?
30939 grep -v '^ *+' conftest.er1 >conftest.err
30940 rm -f conftest.er1
30941 cat conftest.err >&5
30942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
30943 (exit $ac_status); } &&
30944 { ac_try='test -z "$ac_c_werror_flag"
30945 || test ! -s conftest.err'
30946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30947 (eval $ac_try) 2>&5
30948 ac_status=$?
30949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30950 (exit $ac_status); }; } &&
30951 { ac_try='test -s conftest$ac_exeext'
30952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30953 (eval $ac_try) 2>&5
30954 ac_status=$?
30955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30956 (exit $ac_status); }; }; then
1409cd0b 30957 ac_cv_lib_m_y0=yes
e8525382
SK
30958else
30959 echo "$as_me: failed program was:" >&5
30960sed 's/^/| /' conftest.$ac_ext >&5
30961
38d24731 30962ac_cv_lib_m_y0=no
e8525382 30963fi
38d24731 30964rm -f conftest.err conftest.$ac_objext \
e8525382
SK
30965 conftest$ac_exeext conftest.$ac_ext
30966LIBS=$ac_check_lib_save_LIBS
30967fi
38d24731
RW
30968echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0" >&5
30969echo "${ECHO_T}$ac_cv_lib_m_y0" >&6
1409cd0b 30970if test $ac_cv_lib_m_y0 = yes; then
e8525382
SK
30971
30972cat >>confdefs.h <<\_ACEOF
1409cd0b 30973#define HAVE_Y0 1
e8525382
SK
30974_ACEOF
30975
30976fi
30977
38d24731
RW
30978echo "$as_me:$LINENO: checking for y0l in -lm" >&5
30979echo $ECHO_N "checking for y0l in -lm... $ECHO_C" >&6
1409cd0b 30980if test "${ac_cv_lib_m_y0l+set}" = set; then
e8525382
SK
30981 echo $ECHO_N "(cached) $ECHO_C" >&6
30982else
30983 ac_check_lib_save_LIBS=$LIBS
30984LIBS="-lm $LIBS"
f02d008e
JD
30985if test x$gcc_no_link = xyes; then
30986 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30987echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30988 { (exit 1); exit 1; }; }
30989fi
e8525382
SK
30990cat >conftest.$ac_ext <<_ACEOF
30991/* confdefs.h. */
30992_ACEOF
30993cat confdefs.h >>conftest.$ac_ext
30994cat >>conftest.$ac_ext <<_ACEOF
30995/* end confdefs.h. */
30996
38d24731 30997/* Override any gcc2 internal prototype to avoid an error. */
e8525382
SK
30998#ifdef __cplusplus
30999extern "C"
31000#endif
38d24731
RW
31001/* We use char because int might match the return type of a gcc2
31002 builtin and then its argument prototype would still apply. */
1409cd0b 31003char y0l ();
e8525382
SK
31004int
31005main ()
31006{
38d24731 31007y0l ();
e8525382
SK
31008 ;
31009 return 0;
31010}
31011_ACEOF
31012rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
31013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31014 (eval $ac_link) 2>conftest.er1
e8525382
SK
31015 ac_status=$?
31016 grep -v '^ *+' conftest.er1 >conftest.err
31017 rm -f conftest.er1
31018 cat conftest.err >&5
31019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
31020 (exit $ac_status); } &&
31021 { ac_try='test -z "$ac_c_werror_flag"
31022 || test ! -s conftest.err'
31023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31024 (eval $ac_try) 2>&5
31025 ac_status=$?
31026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31027 (exit $ac_status); }; } &&
31028 { ac_try='test -s conftest$ac_exeext'
31029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31030 (eval $ac_try) 2>&5
31031 ac_status=$?
31032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31033 (exit $ac_status); }; }; then
1409cd0b 31034 ac_cv_lib_m_y0l=yes
e8525382
SK
31035else
31036 echo "$as_me: failed program was:" >&5
31037sed 's/^/| /' conftest.$ac_ext >&5
31038
38d24731 31039ac_cv_lib_m_y0l=no
e8525382 31040fi
38d24731 31041rm -f conftest.err conftest.$ac_objext \
e8525382
SK
31042 conftest$ac_exeext conftest.$ac_ext
31043LIBS=$ac_check_lib_save_LIBS
31044fi
38d24731
RW
31045echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0l" >&5
31046echo "${ECHO_T}$ac_cv_lib_m_y0l" >&6
1409cd0b 31047if test $ac_cv_lib_m_y0l = yes; then
e8525382
SK
31048
31049cat >>confdefs.h <<\_ACEOF
1409cd0b 31050#define HAVE_Y0L 1
e8525382
SK
31051_ACEOF
31052
31053fi
31054
38d24731
RW
31055echo "$as_me:$LINENO: checking for y1f in -lm" >&5
31056echo $ECHO_N "checking for y1f in -lm... $ECHO_C" >&6
1409cd0b 31057if test "${ac_cv_lib_m_y1f+set}" = set; then
e8525382
SK
31058 echo $ECHO_N "(cached) $ECHO_C" >&6
31059else
31060 ac_check_lib_save_LIBS=$LIBS
31061LIBS="-lm $LIBS"
f02d008e
JD
31062if test x$gcc_no_link = xyes; then
31063 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31064echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31065 { (exit 1); exit 1; }; }
31066fi
e8525382
SK
31067cat >conftest.$ac_ext <<_ACEOF
31068/* confdefs.h. */
31069_ACEOF
31070cat confdefs.h >>conftest.$ac_ext
31071cat >>conftest.$ac_ext <<_ACEOF
31072/* end confdefs.h. */
31073
38d24731 31074/* Override any gcc2 internal prototype to avoid an error. */
e8525382
SK
31075#ifdef __cplusplus
31076extern "C"
31077#endif
38d24731
RW
31078/* We use char because int might match the return type of a gcc2
31079 builtin and then its argument prototype would still apply. */
1409cd0b 31080char y1f ();
e8525382
SK
31081int
31082main ()
31083{
38d24731 31084y1f ();
e8525382
SK
31085 ;
31086 return 0;
31087}
31088_ACEOF
31089rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
31090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31091 (eval $ac_link) 2>conftest.er1
e8525382
SK
31092 ac_status=$?
31093 grep -v '^ *+' conftest.er1 >conftest.err
31094 rm -f conftest.er1
31095 cat conftest.err >&5
31096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
31097 (exit $ac_status); } &&
31098 { ac_try='test -z "$ac_c_werror_flag"
31099 || test ! -s conftest.err'
31100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31101 (eval $ac_try) 2>&5
31102 ac_status=$?
31103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31104 (exit $ac_status); }; } &&
31105 { ac_try='test -s conftest$ac_exeext'
31106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31107 (eval $ac_try) 2>&5
31108 ac_status=$?
31109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31110 (exit $ac_status); }; }; then
1409cd0b 31111 ac_cv_lib_m_y1f=yes
e8525382
SK
31112else
31113 echo "$as_me: failed program was:" >&5
31114sed 's/^/| /' conftest.$ac_ext >&5
31115
38d24731 31116ac_cv_lib_m_y1f=no
e8525382 31117fi
38d24731 31118rm -f conftest.err conftest.$ac_objext \
e8525382
SK
31119 conftest$ac_exeext conftest.$ac_ext
31120LIBS=$ac_check_lib_save_LIBS
31121fi
38d24731
RW
31122echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1f" >&5
31123echo "${ECHO_T}$ac_cv_lib_m_y1f" >&6
1409cd0b 31124if test $ac_cv_lib_m_y1f = yes; then
e8525382
SK
31125
31126cat >>confdefs.h <<\_ACEOF
1409cd0b 31127#define HAVE_Y1F 1
e8525382
SK
31128_ACEOF
31129
31130fi
31131
38d24731
RW
31132echo "$as_me:$LINENO: checking for y1 in -lm" >&5
31133echo $ECHO_N "checking for y1 in -lm... $ECHO_C" >&6
1409cd0b 31134if test "${ac_cv_lib_m_y1+set}" = set; then
e8525382
SK
31135 echo $ECHO_N "(cached) $ECHO_C" >&6
31136else
31137 ac_check_lib_save_LIBS=$LIBS
31138LIBS="-lm $LIBS"
f02d008e
JD
31139if test x$gcc_no_link = xyes; then
31140 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31141echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31142 { (exit 1); exit 1; }; }
31143fi
e8525382
SK
31144cat >conftest.$ac_ext <<_ACEOF
31145/* confdefs.h. */
31146_ACEOF
31147cat confdefs.h >>conftest.$ac_ext
31148cat >>conftest.$ac_ext <<_ACEOF
31149/* end confdefs.h. */
31150
38d24731 31151/* Override any gcc2 internal prototype to avoid an error. */
e8525382
SK
31152#ifdef __cplusplus
31153extern "C"
31154#endif
38d24731
RW
31155/* We use char because int might match the return type of a gcc2
31156 builtin and then its argument prototype would still apply. */
1409cd0b 31157char y1 ();
e8525382
SK
31158int
31159main ()
31160{
38d24731 31161y1 ();
e8525382
SK
31162 ;
31163 return 0;
31164}
31165_ACEOF
31166rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
31167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31168 (eval $ac_link) 2>conftest.er1
e8525382
SK
31169 ac_status=$?
31170 grep -v '^ *+' conftest.er1 >conftest.err
31171 rm -f conftest.er1
31172 cat conftest.err >&5
31173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
31174 (exit $ac_status); } &&
31175 { ac_try='test -z "$ac_c_werror_flag"
31176 || test ! -s conftest.err'
31177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31178 (eval $ac_try) 2>&5
31179 ac_status=$?
31180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31181 (exit $ac_status); }; } &&
31182 { ac_try='test -s conftest$ac_exeext'
31183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31184 (eval $ac_try) 2>&5
31185 ac_status=$?
31186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31187 (exit $ac_status); }; }; then
1409cd0b 31188 ac_cv_lib_m_y1=yes
e8525382
SK
31189else
31190 echo "$as_me: failed program was:" >&5
31191sed 's/^/| /' conftest.$ac_ext >&5
31192
38d24731 31193ac_cv_lib_m_y1=no
e8525382 31194fi
38d24731 31195rm -f conftest.err conftest.$ac_objext \
e8525382
SK
31196 conftest$ac_exeext conftest.$ac_ext
31197LIBS=$ac_check_lib_save_LIBS
31198fi
38d24731
RW
31199echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1" >&5
31200echo "${ECHO_T}$ac_cv_lib_m_y1" >&6
1409cd0b 31201if test $ac_cv_lib_m_y1 = yes; then
e8525382
SK
31202
31203cat >>confdefs.h <<\_ACEOF
1409cd0b 31204#define HAVE_Y1 1
e8525382
SK
31205_ACEOF
31206
31207fi
31208
38d24731
RW
31209echo "$as_me:$LINENO: checking for y1l in -lm" >&5
31210echo $ECHO_N "checking for y1l in -lm... $ECHO_C" >&6
1409cd0b 31211if test "${ac_cv_lib_m_y1l+set}" = set; then
e8525382
SK
31212 echo $ECHO_N "(cached) $ECHO_C" >&6
31213else
31214 ac_check_lib_save_LIBS=$LIBS
31215LIBS="-lm $LIBS"
f02d008e
JD
31216if test x$gcc_no_link = xyes; then
31217 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31218echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31219 { (exit 1); exit 1; }; }
31220fi
e8525382
SK
31221cat >conftest.$ac_ext <<_ACEOF
31222/* confdefs.h. */
31223_ACEOF
31224cat confdefs.h >>conftest.$ac_ext
31225cat >>conftest.$ac_ext <<_ACEOF
31226/* end confdefs.h. */
31227
38d24731 31228/* Override any gcc2 internal prototype to avoid an error. */
e8525382
SK
31229#ifdef __cplusplus
31230extern "C"
31231#endif
38d24731
RW
31232/* We use char because int might match the return type of a gcc2
31233 builtin and then its argument prototype would still apply. */
1409cd0b 31234char y1l ();
e8525382
SK
31235int
31236main ()
31237{
38d24731 31238y1l ();
e8525382
SK
31239 ;
31240 return 0;
31241}
31242_ACEOF
31243rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
31244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31245 (eval $ac_link) 2>conftest.er1
e8525382
SK
31246 ac_status=$?
31247 grep -v '^ *+' conftest.er1 >conftest.err
31248 rm -f conftest.er1
31249 cat conftest.err >&5
31250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
31251 (exit $ac_status); } &&
31252 { ac_try='test -z "$ac_c_werror_flag"
31253 || test ! -s conftest.err'
31254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31255 (eval $ac_try) 2>&5
31256 ac_status=$?
31257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31258 (exit $ac_status); }; } &&
31259 { ac_try='test -s conftest$ac_exeext'
31260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31261 (eval $ac_try) 2>&5
31262 ac_status=$?
31263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31264 (exit $ac_status); }; }; then
1409cd0b 31265 ac_cv_lib_m_y1l=yes
e8525382
SK
31266else
31267 echo "$as_me: failed program was:" >&5
31268sed 's/^/| /' conftest.$ac_ext >&5
31269
38d24731 31270ac_cv_lib_m_y1l=no
e8525382 31271fi
38d24731 31272rm -f conftest.err conftest.$ac_objext \
e8525382
SK
31273 conftest$ac_exeext conftest.$ac_ext
31274LIBS=$ac_check_lib_save_LIBS
31275fi
38d24731
RW
31276echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1l" >&5
31277echo "${ECHO_T}$ac_cv_lib_m_y1l" >&6
1409cd0b 31278if test $ac_cv_lib_m_y1l = yes; then
e8525382
SK
31279
31280cat >>confdefs.h <<\_ACEOF
1409cd0b 31281#define HAVE_Y1L 1
e8525382
SK
31282_ACEOF
31283
31284fi
31285
38d24731
RW
31286echo "$as_me:$LINENO: checking for ynf in -lm" >&5
31287echo $ECHO_N "checking for ynf in -lm... $ECHO_C" >&6
1409cd0b 31288if test "${ac_cv_lib_m_ynf+set}" = set; then
e8525382
SK
31289 echo $ECHO_N "(cached) $ECHO_C" >&6
31290else
31291 ac_check_lib_save_LIBS=$LIBS
31292LIBS="-lm $LIBS"
f02d008e
JD
31293if test x$gcc_no_link = xyes; then
31294 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31295echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31296 { (exit 1); exit 1; }; }
31297fi
e8525382
SK
31298cat >conftest.$ac_ext <<_ACEOF
31299/* confdefs.h. */
31300_ACEOF
31301cat confdefs.h >>conftest.$ac_ext
31302cat >>conftest.$ac_ext <<_ACEOF
31303/* end confdefs.h. */
31304
38d24731 31305/* Override any gcc2 internal prototype to avoid an error. */
e8525382
SK
31306#ifdef __cplusplus
31307extern "C"
31308#endif
38d24731
RW
31309/* We use char because int might match the return type of a gcc2
31310 builtin and then its argument prototype would still apply. */
1409cd0b 31311char ynf ();
e8525382
SK
31312int
31313main ()
31314{
38d24731 31315ynf ();
e8525382
SK
31316 ;
31317 return 0;
31318}
31319_ACEOF
31320rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
31321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31322 (eval $ac_link) 2>conftest.er1
e8525382
SK
31323 ac_status=$?
31324 grep -v '^ *+' conftest.er1 >conftest.err
31325 rm -f conftest.er1
31326 cat conftest.err >&5
31327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
31328 (exit $ac_status); } &&
31329 { ac_try='test -z "$ac_c_werror_flag"
31330 || test ! -s conftest.err'
31331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31332 (eval $ac_try) 2>&5
31333 ac_status=$?
31334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31335 (exit $ac_status); }; } &&
31336 { ac_try='test -s conftest$ac_exeext'
31337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31338 (eval $ac_try) 2>&5
31339 ac_status=$?
31340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31341 (exit $ac_status); }; }; then
1409cd0b 31342 ac_cv_lib_m_ynf=yes
e8525382
SK
31343else
31344 echo "$as_me: failed program was:" >&5
31345sed 's/^/| /' conftest.$ac_ext >&5
31346
38d24731 31347ac_cv_lib_m_ynf=no
e8525382 31348fi
38d24731 31349rm -f conftest.err conftest.$ac_objext \
e8525382
SK
31350 conftest$ac_exeext conftest.$ac_ext
31351LIBS=$ac_check_lib_save_LIBS
31352fi
38d24731
RW
31353echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynf" >&5
31354echo "${ECHO_T}$ac_cv_lib_m_ynf" >&6
1409cd0b 31355if test $ac_cv_lib_m_ynf = yes; then
e8525382
SK
31356
31357cat >>confdefs.h <<\_ACEOF
1409cd0b 31358#define HAVE_YNF 1
e8525382
SK
31359_ACEOF
31360
31361fi
31362
38d24731
RW
31363echo "$as_me:$LINENO: checking for yn in -lm" >&5
31364echo $ECHO_N "checking for yn in -lm... $ECHO_C" >&6
e8525382
SK
31365if test "${ac_cv_lib_m_yn+set}" = set; then
31366 echo $ECHO_N "(cached) $ECHO_C" >&6
31367else
31368 ac_check_lib_save_LIBS=$LIBS
31369LIBS="-lm $LIBS"
f02d008e
JD
31370if test x$gcc_no_link = xyes; then
31371 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31372echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31373 { (exit 1); exit 1; }; }
31374fi
e8525382
SK
31375cat >conftest.$ac_ext <<_ACEOF
31376/* confdefs.h. */
31377_ACEOF
31378cat confdefs.h >>conftest.$ac_ext
31379cat >>conftest.$ac_ext <<_ACEOF
31380/* end confdefs.h. */
31381
38d24731 31382/* Override any gcc2 internal prototype to avoid an error. */
e8525382
SK
31383#ifdef __cplusplus
31384extern "C"
31385#endif
38d24731
RW
31386/* We use char because int might match the return type of a gcc2
31387 builtin and then its argument prototype would still apply. */
e8525382
SK
31388char yn ();
31389int
31390main ()
31391{
38d24731 31392yn ();
e8525382
SK
31393 ;
31394 return 0;
31395}
31396_ACEOF
31397rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
31398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31399 (eval $ac_link) 2>conftest.er1
e8525382
SK
31400 ac_status=$?
31401 grep -v '^ *+' conftest.er1 >conftest.err
31402 rm -f conftest.er1
31403 cat conftest.err >&5
31404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
31405 (exit $ac_status); } &&
31406 { ac_try='test -z "$ac_c_werror_flag"
31407 || test ! -s conftest.err'
31408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31409 (eval $ac_try) 2>&5
31410 ac_status=$?
31411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31412 (exit $ac_status); }; } &&
31413 { ac_try='test -s conftest$ac_exeext'
31414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31415 (eval $ac_try) 2>&5
31416 ac_status=$?
31417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31418 (exit $ac_status); }; }; then
e8525382
SK
31419 ac_cv_lib_m_yn=yes
31420else
31421 echo "$as_me: failed program was:" >&5
31422sed 's/^/| /' conftest.$ac_ext >&5
31423
38d24731 31424ac_cv_lib_m_yn=no
e8525382 31425fi
38d24731 31426rm -f conftest.err conftest.$ac_objext \
e8525382
SK
31427 conftest$ac_exeext conftest.$ac_ext
31428LIBS=$ac_check_lib_save_LIBS
31429fi
38d24731
RW
31430echo "$as_me:$LINENO: result: $ac_cv_lib_m_yn" >&5
31431echo "${ECHO_T}$ac_cv_lib_m_yn" >&6
e8525382
SK
31432if test $ac_cv_lib_m_yn = yes; then
31433
31434cat >>confdefs.h <<\_ACEOF
31435#define HAVE_YN 1
31436_ACEOF
31437
31438fi
31439
38d24731
RW
31440echo "$as_me:$LINENO: checking for ynl in -lm" >&5
31441echo $ECHO_N "checking for ynl in -lm... $ECHO_C" >&6
1409cd0b 31442if test "${ac_cv_lib_m_ynl+set}" = set; then
e8525382
SK
31443 echo $ECHO_N "(cached) $ECHO_C" >&6
31444else
31445 ac_check_lib_save_LIBS=$LIBS
31446LIBS="-lm $LIBS"
f02d008e
JD
31447if test x$gcc_no_link = xyes; then
31448 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31449echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31450 { (exit 1); exit 1; }; }
31451fi
e8525382
SK
31452cat >conftest.$ac_ext <<_ACEOF
31453/* confdefs.h. */
31454_ACEOF
31455cat confdefs.h >>conftest.$ac_ext
31456cat >>conftest.$ac_ext <<_ACEOF
31457/* end confdefs.h. */
31458
38d24731 31459/* Override any gcc2 internal prototype to avoid an error. */
e8525382
SK
31460#ifdef __cplusplus
31461extern "C"
31462#endif
38d24731
RW
31463/* We use char because int might match the return type of a gcc2
31464 builtin and then its argument prototype would still apply. */
1409cd0b 31465char ynl ();
e8525382
SK
31466int
31467main ()
31468{
38d24731 31469ynl ();
e8525382
SK
31470 ;
31471 return 0;
31472}
31473_ACEOF
31474rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
31475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31476 (eval $ac_link) 2>conftest.er1
e8525382
SK
31477 ac_status=$?
31478 grep -v '^ *+' conftest.er1 >conftest.err
31479 rm -f conftest.er1
31480 cat conftest.err >&5
31481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
31482 (exit $ac_status); } &&
31483 { ac_try='test -z "$ac_c_werror_flag"
31484 || test ! -s conftest.err'
31485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31486 (eval $ac_try) 2>&5
31487 ac_status=$?
31488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489 (exit $ac_status); }; } &&
31490 { ac_try='test -s conftest$ac_exeext'
31491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31492 (eval $ac_try) 2>&5
31493 ac_status=$?
31494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31495 (exit $ac_status); }; }; then
1409cd0b 31496 ac_cv_lib_m_ynl=yes
e8525382
SK
31497else
31498 echo "$as_me: failed program was:" >&5
31499sed 's/^/| /' conftest.$ac_ext >&5
31500
38d24731 31501ac_cv_lib_m_ynl=no
e8525382 31502fi
38d24731 31503rm -f conftest.err conftest.$ac_objext \
e8525382
SK
31504 conftest$ac_exeext conftest.$ac_ext
31505LIBS=$ac_check_lib_save_LIBS
31506fi
38d24731
RW
31507echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynl" >&5
31508echo "${ECHO_T}$ac_cv_lib_m_ynl" >&6
1409cd0b 31509if test $ac_cv_lib_m_ynl = yes; then
e8525382
SK
31510
31511cat >>confdefs.h <<\_ACEOF
1409cd0b 31512#define HAVE_YNL 1
e8525382
SK
31513_ACEOF
31514
31515fi
31516
38d24731
RW
31517echo "$as_me:$LINENO: checking for tgamma in -lm" >&5
31518echo $ECHO_N "checking for tgamma in -lm... $ECHO_C" >&6
fb0a0e15
FXC
31519if test "${ac_cv_lib_m_tgamma+set}" = set; then
31520 echo $ECHO_N "(cached) $ECHO_C" >&6
31521else
31522 ac_check_lib_save_LIBS=$LIBS
31523LIBS="-lm $LIBS"
31524if test x$gcc_no_link = xyes; then
31525 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31526echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31527 { (exit 1); exit 1; }; }
31528fi
31529cat >conftest.$ac_ext <<_ACEOF
31530/* confdefs.h. */
31531_ACEOF
31532cat confdefs.h >>conftest.$ac_ext
31533cat >>conftest.$ac_ext <<_ACEOF
31534/* end confdefs.h. */
31535
38d24731 31536/* Override any gcc2 internal prototype to avoid an error. */
fb0a0e15
FXC
31537#ifdef __cplusplus
31538extern "C"
31539#endif
38d24731
RW
31540/* We use char because int might match the return type of a gcc2
31541 builtin and then its argument prototype would still apply. */
fb0a0e15
FXC
31542char tgamma ();
31543int
31544main ()
31545{
38d24731 31546tgamma ();
fb0a0e15
FXC
31547 ;
31548 return 0;
31549}
31550_ACEOF
31551rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
31552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31553 (eval $ac_link) 2>conftest.er1
fb0a0e15
FXC
31554 ac_status=$?
31555 grep -v '^ *+' conftest.er1 >conftest.err
31556 rm -f conftest.er1
31557 cat conftest.err >&5
31558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
31559 (exit $ac_status); } &&
31560 { ac_try='test -z "$ac_c_werror_flag"
31561 || test ! -s conftest.err'
31562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31563 (eval $ac_try) 2>&5
31564 ac_status=$?
31565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31566 (exit $ac_status); }; } &&
31567 { ac_try='test -s conftest$ac_exeext'
31568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31569 (eval $ac_try) 2>&5
31570 ac_status=$?
31571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31572 (exit $ac_status); }; }; then
fb0a0e15
FXC
31573 ac_cv_lib_m_tgamma=yes
31574else
31575 echo "$as_me: failed program was:" >&5
31576sed 's/^/| /' conftest.$ac_ext >&5
31577
38d24731 31578ac_cv_lib_m_tgamma=no
fb0a0e15 31579fi
38d24731 31580rm -f conftest.err conftest.$ac_objext \
fb0a0e15
FXC
31581 conftest$ac_exeext conftest.$ac_ext
31582LIBS=$ac_check_lib_save_LIBS
31583fi
38d24731
RW
31584echo "$as_me:$LINENO: result: $ac_cv_lib_m_tgamma" >&5
31585echo "${ECHO_T}$ac_cv_lib_m_tgamma" >&6
fb0a0e15
FXC
31586if test $ac_cv_lib_m_tgamma = yes; then
31587
31588cat >>confdefs.h <<\_ACEOF
31589#define HAVE_TGAMMA 1
31590_ACEOF
31591
31592fi
31593
38d24731
RW
31594echo "$as_me:$LINENO: checking for tgammaf in -lm" >&5
31595echo $ECHO_N "checking for tgammaf in -lm... $ECHO_C" >&6
fb0a0e15
FXC
31596if test "${ac_cv_lib_m_tgammaf+set}" = set; then
31597 echo $ECHO_N "(cached) $ECHO_C" >&6
31598else
31599 ac_check_lib_save_LIBS=$LIBS
31600LIBS="-lm $LIBS"
31601if test x$gcc_no_link = xyes; then
31602 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31603echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31604 { (exit 1); exit 1; }; }
31605fi
31606cat >conftest.$ac_ext <<_ACEOF
31607/* confdefs.h. */
31608_ACEOF
31609cat confdefs.h >>conftest.$ac_ext
31610cat >>conftest.$ac_ext <<_ACEOF
31611/* end confdefs.h. */
31612
38d24731 31613/* Override any gcc2 internal prototype to avoid an error. */
fb0a0e15
FXC
31614#ifdef __cplusplus
31615extern "C"
31616#endif
38d24731
RW
31617/* We use char because int might match the return type of a gcc2
31618 builtin and then its argument prototype would still apply. */
fb0a0e15
FXC
31619char tgammaf ();
31620int
31621main ()
31622{
38d24731 31623tgammaf ();
fb0a0e15
FXC
31624 ;
31625 return 0;
31626}
31627_ACEOF
31628rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
31629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31630 (eval $ac_link) 2>conftest.er1
fb0a0e15
FXC
31631 ac_status=$?
31632 grep -v '^ *+' conftest.er1 >conftest.err
31633 rm -f conftest.er1
31634 cat conftest.err >&5
31635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
31636 (exit $ac_status); } &&
31637 { ac_try='test -z "$ac_c_werror_flag"
31638 || test ! -s conftest.err'
31639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31640 (eval $ac_try) 2>&5
31641 ac_status=$?
31642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31643 (exit $ac_status); }; } &&
31644 { ac_try='test -s conftest$ac_exeext'
31645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31646 (eval $ac_try) 2>&5
31647 ac_status=$?
31648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31649 (exit $ac_status); }; }; then
fb0a0e15
FXC
31650 ac_cv_lib_m_tgammaf=yes
31651else
31652 echo "$as_me: failed program was:" >&5
31653sed 's/^/| /' conftest.$ac_ext >&5
31654
38d24731 31655ac_cv_lib_m_tgammaf=no
fb0a0e15 31656fi
38d24731 31657rm -f conftest.err conftest.$ac_objext \
fb0a0e15
FXC
31658 conftest$ac_exeext conftest.$ac_ext
31659LIBS=$ac_check_lib_save_LIBS
31660fi
38d24731
RW
31661echo "$as_me:$LINENO: result: $ac_cv_lib_m_tgammaf" >&5
31662echo "${ECHO_T}$ac_cv_lib_m_tgammaf" >&6
fb0a0e15
FXC
31663if test $ac_cv_lib_m_tgammaf = yes; then
31664
31665cat >>confdefs.h <<\_ACEOF
31666#define HAVE_TGAMMAF 1
31667_ACEOF
31668
31669fi
31670
38d24731
RW
31671echo "$as_me:$LINENO: checking for tgammal in -lm" >&5
31672echo $ECHO_N "checking for tgammal in -lm... $ECHO_C" >&6
fb0a0e15
FXC
31673if test "${ac_cv_lib_m_tgammal+set}" = set; then
31674 echo $ECHO_N "(cached) $ECHO_C" >&6
31675else
31676 ac_check_lib_save_LIBS=$LIBS
31677LIBS="-lm $LIBS"
31678if test x$gcc_no_link = xyes; then
31679 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31680echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31681 { (exit 1); exit 1; }; }
31682fi
31683cat >conftest.$ac_ext <<_ACEOF
31684/* confdefs.h. */
31685_ACEOF
31686cat confdefs.h >>conftest.$ac_ext
31687cat >>conftest.$ac_ext <<_ACEOF
31688/* end confdefs.h. */
31689
38d24731 31690/* Override any gcc2 internal prototype to avoid an error. */
fb0a0e15
FXC
31691#ifdef __cplusplus
31692extern "C"
31693#endif
38d24731
RW
31694/* We use char because int might match the return type of a gcc2
31695 builtin and then its argument prototype would still apply. */
fb0a0e15
FXC
31696char tgammal ();
31697int
31698main ()
31699{
38d24731 31700tgammal ();
fb0a0e15
FXC
31701 ;
31702 return 0;
31703}
31704_ACEOF
31705rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
31706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31707 (eval $ac_link) 2>conftest.er1
fb0a0e15
FXC
31708 ac_status=$?
31709 grep -v '^ *+' conftest.er1 >conftest.err
31710 rm -f conftest.er1
31711 cat conftest.err >&5
31712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
31713 (exit $ac_status); } &&
31714 { ac_try='test -z "$ac_c_werror_flag"
31715 || test ! -s conftest.err'
31716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31717 (eval $ac_try) 2>&5
31718 ac_status=$?
31719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31720 (exit $ac_status); }; } &&
31721 { ac_try='test -s conftest$ac_exeext'
31722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31723 (eval $ac_try) 2>&5
31724 ac_status=$?
31725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726 (exit $ac_status); }; }; then
fb0a0e15
FXC
31727 ac_cv_lib_m_tgammal=yes
31728else
31729 echo "$as_me: failed program was:" >&5
31730sed 's/^/| /' conftest.$ac_ext >&5
31731
38d24731 31732ac_cv_lib_m_tgammal=no
fb0a0e15 31733fi
38d24731 31734rm -f conftest.err conftest.$ac_objext \
fb0a0e15
FXC
31735 conftest$ac_exeext conftest.$ac_ext
31736LIBS=$ac_check_lib_save_LIBS
31737fi
38d24731
RW
31738echo "$as_me:$LINENO: result: $ac_cv_lib_m_tgammal" >&5
31739echo "${ECHO_T}$ac_cv_lib_m_tgammal" >&6
fb0a0e15
FXC
31740if test $ac_cv_lib_m_tgammal = yes; then
31741
31742cat >>confdefs.h <<\_ACEOF
31743#define HAVE_TGAMMAL 1
31744_ACEOF
31745
31746fi
31747
38d24731
RW
31748echo "$as_me:$LINENO: checking for lgamma in -lm" >&5
31749echo $ECHO_N "checking for lgamma in -lm... $ECHO_C" >&6
fb0a0e15
FXC
31750if test "${ac_cv_lib_m_lgamma+set}" = set; then
31751 echo $ECHO_N "(cached) $ECHO_C" >&6
31752else
31753 ac_check_lib_save_LIBS=$LIBS
31754LIBS="-lm $LIBS"
31755if test x$gcc_no_link = xyes; then
31756 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31757echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31758 { (exit 1); exit 1; }; }
31759fi
31760cat >conftest.$ac_ext <<_ACEOF
31761/* confdefs.h. */
31762_ACEOF
31763cat confdefs.h >>conftest.$ac_ext
31764cat >>conftest.$ac_ext <<_ACEOF
31765/* end confdefs.h. */
31766
38d24731 31767/* Override any gcc2 internal prototype to avoid an error. */
fb0a0e15
FXC
31768#ifdef __cplusplus
31769extern "C"
31770#endif
38d24731
RW
31771/* We use char because int might match the return type of a gcc2
31772 builtin and then its argument prototype would still apply. */
fb0a0e15
FXC
31773char lgamma ();
31774int
31775main ()
31776{
38d24731 31777lgamma ();
fb0a0e15
FXC
31778 ;
31779 return 0;
31780}
31781_ACEOF
31782rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
31783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31784 (eval $ac_link) 2>conftest.er1
fb0a0e15
FXC
31785 ac_status=$?
31786 grep -v '^ *+' conftest.er1 >conftest.err
31787 rm -f conftest.er1
31788 cat conftest.err >&5
31789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
31790 (exit $ac_status); } &&
31791 { ac_try='test -z "$ac_c_werror_flag"
31792 || test ! -s conftest.err'
31793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31794 (eval $ac_try) 2>&5
31795 ac_status=$?
31796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31797 (exit $ac_status); }; } &&
31798 { ac_try='test -s conftest$ac_exeext'
31799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31800 (eval $ac_try) 2>&5
31801 ac_status=$?
31802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31803 (exit $ac_status); }; }; then
fb0a0e15
FXC
31804 ac_cv_lib_m_lgamma=yes
31805else
31806 echo "$as_me: failed program was:" >&5
31807sed 's/^/| /' conftest.$ac_ext >&5
31808
38d24731 31809ac_cv_lib_m_lgamma=no
fb0a0e15 31810fi
38d24731 31811rm -f conftest.err conftest.$ac_objext \
fb0a0e15
FXC
31812 conftest$ac_exeext conftest.$ac_ext
31813LIBS=$ac_check_lib_save_LIBS
31814fi
38d24731
RW
31815echo "$as_me:$LINENO: result: $ac_cv_lib_m_lgamma" >&5
31816echo "${ECHO_T}$ac_cv_lib_m_lgamma" >&6
fb0a0e15
FXC
31817if test $ac_cv_lib_m_lgamma = yes; then
31818
31819cat >>confdefs.h <<\_ACEOF
31820#define HAVE_LGAMMA 1
31821_ACEOF
31822
31823fi
31824
38d24731
RW
31825echo "$as_me:$LINENO: checking for lgammaf in -lm" >&5
31826echo $ECHO_N "checking for lgammaf in -lm... $ECHO_C" >&6
fb0a0e15
FXC
31827if test "${ac_cv_lib_m_lgammaf+set}" = set; then
31828 echo $ECHO_N "(cached) $ECHO_C" >&6
31829else
31830 ac_check_lib_save_LIBS=$LIBS
31831LIBS="-lm $LIBS"
31832if test x$gcc_no_link = xyes; then
31833 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31834echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31835 { (exit 1); exit 1; }; }
31836fi
31837cat >conftest.$ac_ext <<_ACEOF
31838/* confdefs.h. */
31839_ACEOF
31840cat confdefs.h >>conftest.$ac_ext
31841cat >>conftest.$ac_ext <<_ACEOF
31842/* end confdefs.h. */
31843
38d24731 31844/* Override any gcc2 internal prototype to avoid an error. */
fb0a0e15
FXC
31845#ifdef __cplusplus
31846extern "C"
31847#endif
38d24731
RW
31848/* We use char because int might match the return type of a gcc2
31849 builtin and then its argument prototype would still apply. */
fb0a0e15
FXC
31850char lgammaf ();
31851int
31852main ()
31853{
38d24731 31854lgammaf ();
fb0a0e15
FXC
31855 ;
31856 return 0;
31857}
31858_ACEOF
31859rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
31860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31861 (eval $ac_link) 2>conftest.er1
fb0a0e15
FXC
31862 ac_status=$?
31863 grep -v '^ *+' conftest.er1 >conftest.err
31864 rm -f conftest.er1
31865 cat conftest.err >&5
31866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
31867 (exit $ac_status); } &&
31868 { ac_try='test -z "$ac_c_werror_flag"
31869 || test ! -s conftest.err'
31870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31871 (eval $ac_try) 2>&5
31872 ac_status=$?
31873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31874 (exit $ac_status); }; } &&
31875 { ac_try='test -s conftest$ac_exeext'
31876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31877 (eval $ac_try) 2>&5
31878 ac_status=$?
31879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31880 (exit $ac_status); }; }; then
fb0a0e15
FXC
31881 ac_cv_lib_m_lgammaf=yes
31882else
31883 echo "$as_me: failed program was:" >&5
31884sed 's/^/| /' conftest.$ac_ext >&5
31885
38d24731 31886ac_cv_lib_m_lgammaf=no
fb0a0e15 31887fi
38d24731 31888rm -f conftest.err conftest.$ac_objext \
fb0a0e15
FXC
31889 conftest$ac_exeext conftest.$ac_ext
31890LIBS=$ac_check_lib_save_LIBS
31891fi
38d24731
RW
31892echo "$as_me:$LINENO: result: $ac_cv_lib_m_lgammaf" >&5
31893echo "${ECHO_T}$ac_cv_lib_m_lgammaf" >&6
fb0a0e15
FXC
31894if test $ac_cv_lib_m_lgammaf = yes; then
31895
31896cat >>confdefs.h <<\_ACEOF
31897#define HAVE_LGAMMAF 1
31898_ACEOF
31899
31900fi
31901
38d24731
RW
31902echo "$as_me:$LINENO: checking for lgammal in -lm" >&5
31903echo $ECHO_N "checking for lgammal in -lm... $ECHO_C" >&6
fb0a0e15
FXC
31904if test "${ac_cv_lib_m_lgammal+set}" = set; then
31905 echo $ECHO_N "(cached) $ECHO_C" >&6
31906else
31907 ac_check_lib_save_LIBS=$LIBS
31908LIBS="-lm $LIBS"
31909if test x$gcc_no_link = xyes; then
31910 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31911echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31912 { (exit 1); exit 1; }; }
31913fi
31914cat >conftest.$ac_ext <<_ACEOF
31915/* confdefs.h. */
31916_ACEOF
31917cat confdefs.h >>conftest.$ac_ext
31918cat >>conftest.$ac_ext <<_ACEOF
31919/* end confdefs.h. */
31920
38d24731 31921/* Override any gcc2 internal prototype to avoid an error. */
fb0a0e15
FXC
31922#ifdef __cplusplus
31923extern "C"
31924#endif
38d24731
RW
31925/* We use char because int might match the return type of a gcc2
31926 builtin and then its argument prototype would still apply. */
fb0a0e15
FXC
31927char lgammal ();
31928int
31929main ()
31930{
38d24731 31931lgammal ();
fb0a0e15
FXC
31932 ;
31933 return 0;
31934}
31935_ACEOF
31936rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
31937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31938 (eval $ac_link) 2>conftest.er1
fb0a0e15
FXC
31939 ac_status=$?
31940 grep -v '^ *+' conftest.er1 >conftest.err
31941 rm -f conftest.er1
31942 cat conftest.err >&5
31943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
31944 (exit $ac_status); } &&
31945 { ac_try='test -z "$ac_c_werror_flag"
31946 || test ! -s conftest.err'
31947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31948 (eval $ac_try) 2>&5
31949 ac_status=$?
31950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31951 (exit $ac_status); }; } &&
31952 { ac_try='test -s conftest$ac_exeext'
31953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31954 (eval $ac_try) 2>&5
31955 ac_status=$?
31956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31957 (exit $ac_status); }; }; then
fb0a0e15
FXC
31958 ac_cv_lib_m_lgammal=yes
31959else
31960 echo "$as_me: failed program was:" >&5
31961sed 's/^/| /' conftest.$ac_ext >&5
31962
38d24731 31963ac_cv_lib_m_lgammal=no
fb0a0e15 31964fi
38d24731 31965rm -f conftest.err conftest.$ac_objext \
fb0a0e15
FXC
31966 conftest$ac_exeext conftest.$ac_ext
31967LIBS=$ac_check_lib_save_LIBS
31968fi
38d24731
RW
31969echo "$as_me:$LINENO: result: $ac_cv_lib_m_lgammal" >&5
31970echo "${ECHO_T}$ac_cv_lib_m_lgammal" >&6
fb0a0e15
FXC
31971if test $ac_cv_lib_m_lgammal = yes; then
31972
31973cat >>confdefs.h <<\_ACEOF
31974#define HAVE_LGAMMAL 1
31975_ACEOF
31976
31977fi
31978
a2a2059f 31979
118ea208 31980# On AIX, clog is present in libm as __clog
38d24731
RW
31981echo "$as_me:$LINENO: checking for __clog in -lm" >&5
31982echo $ECHO_N "checking for __clog in -lm... $ECHO_C" >&6
e097b4f1
DE
31983if test "${ac_cv_lib_m___clog+set}" = set; then
31984 echo $ECHO_N "(cached) $ECHO_C" >&6
31985else
31986 ac_check_lib_save_LIBS=$LIBS
31987LIBS="-lm $LIBS"
31988if test x$gcc_no_link = xyes; then
31989 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31990echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31991 { (exit 1); exit 1; }; }
31992fi
31993cat >conftest.$ac_ext <<_ACEOF
31994/* confdefs.h. */
31995_ACEOF
31996cat confdefs.h >>conftest.$ac_ext
31997cat >>conftest.$ac_ext <<_ACEOF
31998/* end confdefs.h. */
31999
38d24731 32000/* Override any gcc2 internal prototype to avoid an error. */
e097b4f1
DE
32001#ifdef __cplusplus
32002extern "C"
32003#endif
38d24731
RW
32004/* We use char because int might match the return type of a gcc2
32005 builtin and then its argument prototype would still apply. */
e097b4f1
DE
32006char __clog ();
32007int
32008main ()
32009{
38d24731 32010__clog ();
e097b4f1
DE
32011 ;
32012 return 0;
32013}
32014_ACEOF
32015rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
32016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32017 (eval $ac_link) 2>conftest.er1
e097b4f1
DE
32018 ac_status=$?
32019 grep -v '^ *+' conftest.er1 >conftest.err
32020 rm -f conftest.er1
32021 cat conftest.err >&5
32022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
32023 (exit $ac_status); } &&
32024 { ac_try='test -z "$ac_c_werror_flag"
32025 || test ! -s conftest.err'
32026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32027 (eval $ac_try) 2>&5
32028 ac_status=$?
32029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030 (exit $ac_status); }; } &&
32031 { ac_try='test -s conftest$ac_exeext'
32032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32033 (eval $ac_try) 2>&5
32034 ac_status=$?
32035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32036 (exit $ac_status); }; }; then
e097b4f1
DE
32037 ac_cv_lib_m___clog=yes
32038else
32039 echo "$as_me: failed program was:" >&5
32040sed 's/^/| /' conftest.$ac_ext >&5
32041
38d24731 32042ac_cv_lib_m___clog=no
e097b4f1 32043fi
38d24731 32044rm -f conftest.err conftest.$ac_objext \
e097b4f1
DE
32045 conftest$ac_exeext conftest.$ac_ext
32046LIBS=$ac_check_lib_save_LIBS
32047fi
38d24731
RW
32048echo "$as_me:$LINENO: result: $ac_cv_lib_m___clog" >&5
32049echo "${ECHO_T}$ac_cv_lib_m___clog" >&6
e097b4f1
DE
32050if test $ac_cv_lib_m___clog = yes; then
32051
32052cat >>confdefs.h <<\_ACEOF
32053#define HAVE_CLOG 1
32054_ACEOF
32055
32056fi
32057
32058
118ea208
SE
32059# Check for a isfinite macro that works on long doubles.
32060
38d24731
RW
32061 echo "$as_me:$LINENO: checking whether isfinite is broken" >&5
32062echo $ECHO_N "checking whether isfinite is broken... $ECHO_C" >&6
118ea208
SE
32063if test "${have_broken_isfinite+set}" = set; then
32064 echo $ECHO_N "(cached) $ECHO_C" >&6
32065else
32066
32067 libgfor_check_for_broken_isfinite_save_LIBS=$LIBS
32068 LIBS="$LIBS -lm"
32069 if test "$cross_compiling" = yes; then
32070
32071case "${target}" in
32072 hppa*-*-hpux*) have_broken_isfinite=yes ;;
32073 *) have_broken_isfinite=no ;;
32074esac
32075else
32076 cat >conftest.$ac_ext <<_ACEOF
32077/* confdefs.h. */
32078_ACEOF
32079cat confdefs.h >>conftest.$ac_ext
32080cat >>conftest.$ac_ext <<_ACEOF
32081/* end confdefs.h. */
32082
118ea208 32083#include <math.h>
118ea208
SE
32084#include <float.h>
32085int main ()
32086{
32087#ifdef isfinite
32088#ifdef LDBL_MAX
32089 if (!isfinite(LDBL_MAX)) return 1;
32090#endif
32091#ifdef DBL_MAX
32092 if (!isfinite(DBL_MAX)) return 1;
32093#endif
32094#endif
32095return 0;
32096}
32097_ACEOF
32098rm -f conftest$ac_exeext
38d24731
RW
32099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32100 (eval $ac_link) 2>&5
118ea208
SE
32101 ac_status=$?
32102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38d24731
RW
32104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32105 (eval $ac_try) 2>&5
118ea208
SE
32106 ac_status=$?
32107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32108 (exit $ac_status); }; }; then
32109 have_broken_isfinite=no
32110else
32111 echo "$as_me: program exited with status $ac_status" >&5
32112echo "$as_me: failed program was:" >&5
32113sed 's/^/| /' conftest.$ac_ext >&5
32114
32115( exit $ac_status )
32116have_broken_isfinite=yes
32117fi
38d24731 32118rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
118ea208
SE
32119fi
32120 LIBS=$libgfor_check_for_broken_isfinite_save_LIBS
32121fi
38d24731
RW
32122echo "$as_me:$LINENO: result: $have_broken_isfinite" >&5
32123echo "${ECHO_T}$have_broken_isfinite" >&6
118ea208
SE
32124if test x"$have_broken_isfinite" = xyes; then
32125
32126cat >>confdefs.h <<\_ACEOF
32127#define HAVE_BROKEN_ISFINITE 1
32128_ACEOF
32129
32130fi
32131
32132# Check for a isnan macro that works on long doubles.
32133
38d24731
RW
32134 echo "$as_me:$LINENO: checking whether isnan is broken" >&5
32135echo $ECHO_N "checking whether isnan is broken... $ECHO_C" >&6
118ea208
SE
32136if test "${have_broken_isnan+set}" = set; then
32137 echo $ECHO_N "(cached) $ECHO_C" >&6
32138else
32139
32140 libgfor_check_for_broken_isnan_save_LIBS=$LIBS
32141 LIBS="$LIBS -lm"
32142 if test "$cross_compiling" = yes; then
32143
32144case "${target}" in
32145 hppa*-*-hpux*) have_broken_isnan=yes ;;
32146 *) have_broken_isnan=no ;;
32147esac
32148else
32149 cat >conftest.$ac_ext <<_ACEOF
32150/* confdefs.h. */
32151_ACEOF
32152cat confdefs.h >>conftest.$ac_ext
32153cat >>conftest.$ac_ext <<_ACEOF
32154/* end confdefs.h. */
32155
118ea208 32156#include <math.h>
118ea208
SE
32157#include <float.h>
32158int main ()
32159{
32160#ifdef isnan
32161#ifdef LDBL_MAX
32162 {
32163 long double x;
32164 x = __builtin_nanl ("");
32165 if (!isnan(x)) return 1;
32166 if (isnan(LDBL_MAX)) return 1;
32167#ifdef NAN
32168 x = (long double) NAN;
32169 if (!isnan(x)) return 1;
32170#endif
32171 }
32172#endif
32173#ifdef DBL_MAX
32174 {
32175 double y;
32176 y = __builtin_nan ("");
32177 if (!isnan(y)) return 1;
32178 if (isnan(DBL_MAX)) return 1;
32179#ifdef NAN
32180 y = (double) NAN;
32181 if (!isnan(y)) return 1;
32182#endif
32183 }
32184#endif
32185#endif
32186return 0;
32187}
32188_ACEOF
32189rm -f conftest$ac_exeext
38d24731
RW
32190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32191 (eval $ac_link) 2>&5
118ea208
SE
32192 ac_status=$?
32193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38d24731
RW
32195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32196 (eval $ac_try) 2>&5
118ea208
SE
32197 ac_status=$?
32198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32199 (exit $ac_status); }; }; then
32200 have_broken_isnan=no
32201else
32202 echo "$as_me: program exited with status $ac_status" >&5
32203echo "$as_me: failed program was:" >&5
32204sed 's/^/| /' conftest.$ac_ext >&5
32205
32206( exit $ac_status )
32207have_broken_isnan=yes
32208fi
38d24731 32209rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
118ea208
SE
32210fi
32211 LIBS=$libgfor_check_for_broken_isnan_save_LIBS
32212fi
38d24731
RW
32213echo "$as_me:$LINENO: result: $have_broken_isnan" >&5
32214echo "${ECHO_T}$have_broken_isnan" >&6
118ea208
SE
32215if test x"$have_broken_isnan" = xyes; then
32216
32217cat >>confdefs.h <<\_ACEOF
32218#define HAVE_BROKEN_ISNAN 1
32219_ACEOF
32220
32221fi
32222
32223# Check for a fpclassify macro that works on long doubles.
32224
38d24731
RW
32225 echo "$as_me:$LINENO: checking whether fpclassify is broken" >&5
32226echo $ECHO_N "checking whether fpclassify is broken... $ECHO_C" >&6
118ea208
SE
32227if test "${have_broken_fpclassify+set}" = set; then
32228 echo $ECHO_N "(cached) $ECHO_C" >&6
32229else
32230
32231 libgfor_check_for_broken_fpclassify_save_LIBS=$LIBS
32232 LIBS="$LIBS -lm"
32233 if test "$cross_compiling" = yes; then
32234
32235case "${target}" in
32236 hppa*-*-hpux*) have_broken_fpclassify=yes ;;
32237 *) have_broken_fpclassify=no ;;
32238esac
32239else
32240 cat >conftest.$ac_ext <<_ACEOF
32241/* confdefs.h. */
32242_ACEOF
32243cat confdefs.h >>conftest.$ac_ext
32244cat >>conftest.$ac_ext <<_ACEOF
32245/* end confdefs.h. */
32246
118ea208 32247#include <math.h>
118ea208
SE
32248#include <float.h>
32249int main ()
32250{
32251#ifdef fpclassify
32252#ifdef LDBL_MAX
32253 if (fpclassify(LDBL_MAX) == FP_NAN
32254 || fpclassify(LDBL_MAX) == FP_INFINITE) return 1;
32255#endif
32256#ifdef DBL_MAX
32257 if (fpclassify(DBL_MAX) == FP_NAN
32258 || fpclassify(DBL_MAX) == FP_INFINITE) return 1;
32259#endif
32260#endif
32261return 0;
32262}
32263_ACEOF
32264rm -f conftest$ac_exeext
38d24731
RW
32265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32266 (eval $ac_link) 2>&5
118ea208
SE
32267 ac_status=$?
32268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38d24731
RW
32270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32271 (eval $ac_try) 2>&5
118ea208
SE
32272 ac_status=$?
32273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274 (exit $ac_status); }; }; then
32275 have_broken_fpclassify=no
32276else
32277 echo "$as_me: program exited with status $ac_status" >&5
32278echo "$as_me: failed program was:" >&5
32279sed 's/^/| /' conftest.$ac_ext >&5
32280
32281( exit $ac_status )
32282have_broken_fpclassify=yes
32283fi
38d24731 32284rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
118ea208
SE
32285fi
32286 LIBS=$libgfor_check_for_broken_fpclassify_save_LIBS
32287fi
38d24731
RW
32288echo "$as_me:$LINENO: result: $have_broken_fpclassify" >&5
32289echo "${ECHO_T}$have_broken_fpclassify" >&6
118ea208
SE
32290if test x"$have_broken_fpclassify" = xyes; then
32291
32292cat >>confdefs.h <<\_ACEOF
32293#define HAVE_BROKEN_FPCLASSIFY 1
32294_ACEOF
32295
32296fi
32297
ad238e4f
FXC
32298# Check whether the system has a working stat()
32299
38d24731
RW
32300 echo "$as_me:$LINENO: checking whether the target stat is reliable" >&5
32301echo $ECHO_N "checking whether the target stat is reliable... $ECHO_C" >&6
ad238e4f
FXC
32302if test "${have_working_stat+set}" = set; then
32303 echo $ECHO_N "(cached) $ECHO_C" >&6
32304else
32305
32306 if test "$cross_compiling" = yes; then
32307
32308case "${target}" in
32309 *mingw*) have_working_stat=no ;;
32310 *) have_working_stat=yes;;
32311esac
32312else
32313 cat >conftest.$ac_ext <<_ACEOF
32314/* confdefs.h. */
32315_ACEOF
32316cat confdefs.h >>conftest.$ac_ext
32317cat >>conftest.$ac_ext <<_ACEOF
32318/* end confdefs.h. */
32319
32320#include <stdio.h>
32321#include <sys/types.h>
32322#include <sys/stat.h>
32323#include <unistd.h>
32324
32325int main ()
32326{
32327 FILE *f, *g;
32328 struct stat st1, st2;
32329
32330 f = fopen ("foo", "w");
32331 g = fopen ("bar", "w");
32332 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
32333 return 1;
32334 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
32335 return 1;
32336 fclose(f);
32337 fclose(g);
32338 return 0;
32339}
32340_ACEOF
32341rm -f conftest$ac_exeext
38d24731
RW
32342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32343 (eval $ac_link) 2>&5
ad238e4f
FXC
32344 ac_status=$?
32345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38d24731
RW
32347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32348 (eval $ac_try) 2>&5
ad238e4f
FXC
32349 ac_status=$?
32350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32351 (exit $ac_status); }; }; then
32352 have_working_stat=yes
32353else
32354 echo "$as_me: program exited with status $ac_status" >&5
32355echo "$as_me: failed program was:" >&5
32356sed 's/^/| /' conftest.$ac_ext >&5
32357
32358( exit $ac_status )
32359have_working_stat=no
32360fi
38d24731 32361rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad238e4f
FXC
32362fi
32363fi
38d24731
RW
32364echo "$as_me:$LINENO: result: $have_working_stat" >&5
32365echo "${ECHO_T}$have_working_stat" >&6
ad238e4f
FXC
32366if test x"$have_working_stat" = xyes; then
32367
32368cat >>confdefs.h <<\_ACEOF
32369#define HAVE_WORKING_STAT 1
32370_ACEOF
32371
32372fi
32373
db8092dc
FXC
32374# Check whether __mingw_snprintf() is present
32375
38d24731
RW
32376 echo "$as_me:$LINENO: checking whether __mingw_snprintf is present" >&5
32377echo $ECHO_N "checking whether __mingw_snprintf is present... $ECHO_C" >&6
db8092dc
FXC
32378if test "${have_mingw_snprintf+set}" = set; then
32379 echo $ECHO_N "(cached) $ECHO_C" >&6
32380else
32381
32382 if test x$gcc_no_link = xyes; then
32383 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32384echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32385 { (exit 1); exit 1; }; }
32386fi
32387cat >conftest.$ac_ext <<_ACEOF
32388/* confdefs.h. */
32389_ACEOF
32390cat confdefs.h >>conftest.$ac_ext
32391cat >>conftest.$ac_ext <<_ACEOF
32392/* end confdefs.h. */
32393
32394#include <stdio.h>
32395extern int __mingw_snprintf (char *, size_t, const char *, ...);
32396
32397int
32398main ()
32399{
32400
32401__mingw_snprintf (NULL, 0, "%d\n", 1);
32402
32403 ;
32404 return 0;
32405}
32406_ACEOF
32407rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
32408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32409 (eval $ac_link) 2>conftest.er1
db8092dc
FXC
32410 ac_status=$?
32411 grep -v '^ *+' conftest.er1 >conftest.err
32412 rm -f conftest.er1
32413 cat conftest.err >&5
32414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
32415 (exit $ac_status); } &&
32416 { ac_try='test -z "$ac_c_werror_flag"
32417 || test ! -s conftest.err'
32418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32419 (eval $ac_try) 2>&5
32420 ac_status=$?
32421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422 (exit $ac_status); }; } &&
32423 { ac_try='test -s conftest$ac_exeext'
32424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32425 (eval $ac_try) 2>&5
32426 ac_status=$?
32427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428 (exit $ac_status); }; }; then
db8092dc
FXC
32429 eval "have_mingw_snprintf=yes"
32430else
32431 echo "$as_me: failed program was:" >&5
32432sed 's/^/| /' conftest.$ac_ext >&5
32433
38d24731 32434eval "have_mingw_snprintf=no"
db8092dc 32435fi
38d24731 32436rm -f conftest.err conftest.$ac_objext \
db8092dc
FXC
32437 conftest$ac_exeext conftest.$ac_ext
32438
32439fi
38d24731
RW
32440echo "$as_me:$LINENO: result: $have_mingw_snprintf" >&5
32441echo "${ECHO_T}$have_mingw_snprintf" >&6
db8092dc
FXC
32442 if test x"$have_mingw_snprintf" = xyes; then
32443
32444cat >>confdefs.h <<\_ACEOF
32445#define HAVE_MINGW_SNPRINTF 1
32446_ACEOF
32447
32448 fi
32449
32450
944b8b35 32451# Check for GNU libc feenableexcept
38d24731
RW
32452echo "$as_me:$LINENO: checking for feenableexcept in -lm" >&5
32453echo $ECHO_N "checking for feenableexcept in -lm... $ECHO_C" >&6
944b8b35
FXC
32454if test "${ac_cv_lib_m_feenableexcept+set}" = set; then
32455 echo $ECHO_N "(cached) $ECHO_C" >&6
32456else
32457 ac_check_lib_save_LIBS=$LIBS
32458LIBS="-lm $LIBS"
32459if test x$gcc_no_link = xyes; then
32460 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32461echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32462 { (exit 1); exit 1; }; }
32463fi
32464cat >conftest.$ac_ext <<_ACEOF
32465/* confdefs.h. */
32466_ACEOF
32467cat confdefs.h >>conftest.$ac_ext
32468cat >>conftest.$ac_ext <<_ACEOF
32469/* end confdefs.h. */
32470
38d24731 32471/* Override any gcc2 internal prototype to avoid an error. */
944b8b35
FXC
32472#ifdef __cplusplus
32473extern "C"
32474#endif
38d24731
RW
32475/* We use char because int might match the return type of a gcc2
32476 builtin and then its argument prototype would still apply. */
944b8b35
FXC
32477char feenableexcept ();
32478int
32479main ()
32480{
38d24731 32481feenableexcept ();
944b8b35
FXC
32482 ;
32483 return 0;
32484}
32485_ACEOF
32486rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
32487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32488 (eval $ac_link) 2>conftest.er1
944b8b35
FXC
32489 ac_status=$?
32490 grep -v '^ *+' conftest.er1 >conftest.err
32491 rm -f conftest.er1
32492 cat conftest.err >&5
32493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
32494 (exit $ac_status); } &&
32495 { ac_try='test -z "$ac_c_werror_flag"
32496 || test ! -s conftest.err'
32497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32498 (eval $ac_try) 2>&5
32499 ac_status=$?
32500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32501 (exit $ac_status); }; } &&
32502 { ac_try='test -s conftest$ac_exeext'
32503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32504 (eval $ac_try) 2>&5
32505 ac_status=$?
32506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507 (exit $ac_status); }; }; then
944b8b35
FXC
32508 ac_cv_lib_m_feenableexcept=yes
32509else
32510 echo "$as_me: failed program was:" >&5
32511sed 's/^/| /' conftest.$ac_ext >&5
32512
38d24731 32513ac_cv_lib_m_feenableexcept=no
944b8b35 32514fi
38d24731 32515rm -f conftest.err conftest.$ac_objext \
944b8b35
FXC
32516 conftest$ac_exeext conftest.$ac_ext
32517LIBS=$ac_check_lib_save_LIBS
32518fi
38d24731
RW
32519echo "$as_me:$LINENO: result: $ac_cv_lib_m_feenableexcept" >&5
32520echo "${ECHO_T}$ac_cv_lib_m_feenableexcept" >&6
944b8b35
FXC
32521if test $ac_cv_lib_m_feenableexcept = yes; then
32522 have_feenableexcept=yes
32523cat >>confdefs.h <<\_ACEOF
32524#define HAVE_FEENABLEEXCEPT 1
32525_ACEOF
32526
32527fi
32528
32529
3b14f664
FXC
32530# Check for SysV fpsetmask
32531
38d24731
RW
32532 echo "$as_me:$LINENO: checking whether fpsetmask is present" >&5
32533echo $ECHO_N "checking whether fpsetmask is present... $ECHO_C" >&6
3b14f664
FXC
32534if test "${have_fpsetmask+set}" = set; then
32535 echo $ECHO_N "(cached) $ECHO_C" >&6
32536else
32537
32538 if test x$gcc_no_link = xyes; then
32539 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32540echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32541 { (exit 1); exit 1; }; }
32542fi
32543cat >conftest.$ac_ext <<_ACEOF
32544/* confdefs.h. */
32545_ACEOF
32546cat confdefs.h >>conftest.$ac_ext
32547cat >>conftest.$ac_ext <<_ACEOF
32548/* end confdefs.h. */
32549
32550#if HAVE_FLOATINGPOINT_H
32551# include <floatingpoint.h>
32552#endif /* HAVE_FLOATINGPOINT_H */
32553#if HAVE_IEEEFP_H
32554# include <ieeefp.h>
32555#endif /* HAVE_IEEEFP_H */
32556int
32557main ()
32558{
32559fpsetmask(0);
32560 ;
32561 return 0;
32562}
32563_ACEOF
32564rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
32565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32566 (eval $ac_link) 2>conftest.er1
3b14f664
FXC
32567 ac_status=$?
32568 grep -v '^ *+' conftest.er1 >conftest.err
32569 rm -f conftest.er1
32570 cat conftest.err >&5
32571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
32572 (exit $ac_status); } &&
32573 { ac_try='test -z "$ac_c_werror_flag"
32574 || test ! -s conftest.err'
32575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32576 (eval $ac_try) 2>&5
32577 ac_status=$?
32578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32579 (exit $ac_status); }; } &&
32580 { ac_try='test -s conftest$ac_exeext'
32581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32582 (eval $ac_try) 2>&5
32583 ac_status=$?
32584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32585 (exit $ac_status); }; }; then
3b14f664
FXC
32586 eval "have_fpsetmask=yes"
32587else
32588 echo "$as_me: failed program was:" >&5
32589sed 's/^/| /' conftest.$ac_ext >&5
32590
38d24731 32591eval "have_fpsetmask=no"
3b14f664 32592fi
38d24731 32593rm -f conftest.err conftest.$ac_objext \
3b14f664
FXC
32594 conftest$ac_exeext conftest.$ac_ext
32595
32596fi
38d24731
RW
32597echo "$as_me:$LINENO: result: $have_fpsetmask" >&5
32598echo "${ECHO_T}$have_fpsetmask" >&6
3b14f664
FXC
32599 if test x"$have_fpsetmask" = xyes; then
32600
32601cat >>confdefs.h <<\_ACEOF
32602#define HAVE_FPSETMASK 1
32603_ACEOF
32604
32605 fi
32606
32607
32608# Check for AIX fp_trap and fp_enable
38d24731
RW
32609echo "$as_me:$LINENO: checking for fp_trap" >&5
32610echo $ECHO_N "checking for fp_trap... $ECHO_C" >&6
3b14f664
FXC
32611if test "${ac_cv_func_fp_trap+set}" = set; then
32612 echo $ECHO_N "(cached) $ECHO_C" >&6
32613else
32614 if test x$gcc_no_link = xyes; then
32615 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32616echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32617 { (exit 1); exit 1; }; }
32618fi
32619cat >conftest.$ac_ext <<_ACEOF
32620/* confdefs.h. */
32621_ACEOF
32622cat confdefs.h >>conftest.$ac_ext
32623cat >>conftest.$ac_ext <<_ACEOF
32624/* end confdefs.h. */
32625/* Define fp_trap to an innocuous variant, in case <limits.h> declares fp_trap.
32626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32627#define fp_trap innocuous_fp_trap
32628
32629/* System header to define __stub macros and hopefully few prototypes,
32630 which can conflict with char fp_trap (); below.
32631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32632 <limits.h> exists even on freestanding compilers. */
32633
32634#ifdef __STDC__
32635# include <limits.h>
32636#else
32637# include <assert.h>
32638#endif
32639
32640#undef fp_trap
32641
38d24731 32642/* Override any gcc2 internal prototype to avoid an error. */
3b14f664
FXC
32643#ifdef __cplusplus
32644extern "C"
38d24731 32645{
3b14f664 32646#endif
38d24731
RW
32647/* We use char because int might match the return type of a gcc2
32648 builtin and then its argument prototype would still apply. */
3b14f664
FXC
32649char fp_trap ();
32650/* The GNU C library defines this for functions which it implements
32651 to always fail with ENOSYS. Some functions are actually named
32652 something starting with __ and the normal name is an alias. */
38d24731 32653#if defined (__stub_fp_trap) || defined (__stub___fp_trap)
3b14f664 32654choke me
38d24731
RW
32655#else
32656char (*f) () = fp_trap;
32657#endif
32658#ifdef __cplusplus
32659}
3b14f664
FXC
32660#endif
32661
32662int
32663main ()
32664{
38d24731 32665return f != fp_trap;
3b14f664
FXC
32666 ;
32667 return 0;
32668}
32669_ACEOF
32670rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
32671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32672 (eval $ac_link) 2>conftest.er1
3b14f664
FXC
32673 ac_status=$?
32674 grep -v '^ *+' conftest.er1 >conftest.err
32675 rm -f conftest.er1
32676 cat conftest.err >&5
32677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
32678 (exit $ac_status); } &&
32679 { ac_try='test -z "$ac_c_werror_flag"
32680 || test ! -s conftest.err'
32681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32682 (eval $ac_try) 2>&5
32683 ac_status=$?
32684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32685 (exit $ac_status); }; } &&
32686 { ac_try='test -s conftest$ac_exeext'
32687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32688 (eval $ac_try) 2>&5
32689 ac_status=$?
32690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691 (exit $ac_status); }; }; then
3b14f664
FXC
32692 ac_cv_func_fp_trap=yes
32693else
32694 echo "$as_me: failed program was:" >&5
32695sed 's/^/| /' conftest.$ac_ext >&5
32696
38d24731 32697ac_cv_func_fp_trap=no
3b14f664 32698fi
38d24731 32699rm -f conftest.err conftest.$ac_objext \
3b14f664
FXC
32700 conftest$ac_exeext conftest.$ac_ext
32701fi
38d24731
RW
32702echo "$as_me:$LINENO: result: $ac_cv_func_fp_trap" >&5
32703echo "${ECHO_T}$ac_cv_func_fp_trap" >&6
3b14f664
FXC
32704if test $ac_cv_func_fp_trap = yes; then
32705 have_fp_trap=yes
32706cat >>confdefs.h <<\_ACEOF
32707#define HAVE_FP_TRAP 1
32708_ACEOF
32709
32710fi
32711
38d24731
RW
32712echo "$as_me:$LINENO: checking for fp_enable" >&5
32713echo $ECHO_N "checking for fp_enable... $ECHO_C" >&6
3b14f664
FXC
32714if test "${ac_cv_func_fp_enable+set}" = set; then
32715 echo $ECHO_N "(cached) $ECHO_C" >&6
32716else
32717 if test x$gcc_no_link = xyes; then
32718 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32719echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32720 { (exit 1); exit 1; }; }
32721fi
32722cat >conftest.$ac_ext <<_ACEOF
32723/* confdefs.h. */
32724_ACEOF
32725cat confdefs.h >>conftest.$ac_ext
32726cat >>conftest.$ac_ext <<_ACEOF
32727/* end confdefs.h. */
32728/* Define fp_enable to an innocuous variant, in case <limits.h> declares fp_enable.
32729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32730#define fp_enable innocuous_fp_enable
32731
32732/* System header to define __stub macros and hopefully few prototypes,
32733 which can conflict with char fp_enable (); below.
32734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32735 <limits.h> exists even on freestanding compilers. */
32736
32737#ifdef __STDC__
32738# include <limits.h>
32739#else
32740# include <assert.h>
32741#endif
32742
32743#undef fp_enable
32744
38d24731 32745/* Override any gcc2 internal prototype to avoid an error. */
3b14f664
FXC
32746#ifdef __cplusplus
32747extern "C"
38d24731 32748{
3b14f664 32749#endif
38d24731
RW
32750/* We use char because int might match the return type of a gcc2
32751 builtin and then its argument prototype would still apply. */
3b14f664
FXC
32752char fp_enable ();
32753/* The GNU C library defines this for functions which it implements
32754 to always fail with ENOSYS. Some functions are actually named
32755 something starting with __ and the normal name is an alias. */
38d24731 32756#if defined (__stub_fp_enable) || defined (__stub___fp_enable)
3b14f664 32757choke me
38d24731
RW
32758#else
32759char (*f) () = fp_enable;
32760#endif
32761#ifdef __cplusplus
32762}
3b14f664
FXC
32763#endif
32764
32765int
32766main ()
32767{
38d24731 32768return f != fp_enable;
3b14f664
FXC
32769 ;
32770 return 0;
32771}
32772_ACEOF
32773rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
32774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32775 (eval $ac_link) 2>conftest.er1
3b14f664
FXC
32776 ac_status=$?
32777 grep -v '^ *+' conftest.er1 >conftest.err
32778 rm -f conftest.er1
32779 cat conftest.err >&5
32780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
32781 (exit $ac_status); } &&
32782 { ac_try='test -z "$ac_c_werror_flag"
32783 || test ! -s conftest.err'
32784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32785 (eval $ac_try) 2>&5
32786 ac_status=$?
32787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788 (exit $ac_status); }; } &&
32789 { ac_try='test -s conftest$ac_exeext'
32790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32791 (eval $ac_try) 2>&5
32792 ac_status=$?
32793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32794 (exit $ac_status); }; }; then
3b14f664
FXC
32795 ac_cv_func_fp_enable=yes
32796else
32797 echo "$as_me: failed program was:" >&5
32798sed 's/^/| /' conftest.$ac_ext >&5
32799
38d24731 32800ac_cv_func_fp_enable=no
3b14f664 32801fi
38d24731 32802rm -f conftest.err conftest.$ac_objext \
3b14f664
FXC
32803 conftest$ac_exeext conftest.$ac_ext
32804fi
38d24731
RW
32805echo "$as_me:$LINENO: result: $ac_cv_func_fp_enable" >&5
32806echo "${ECHO_T}$ac_cv_func_fp_enable" >&6
3b14f664
FXC
32807if test $ac_cv_func_fp_enable = yes; then
32808 have_fp_enable=yes
32809cat >>confdefs.h <<\_ACEOF
32810#define HAVE_FP_ENABLE 1
32811_ACEOF
32812
32813fi
32814
32815
944b8b35
FXC
32816# Runs configure.host to set up necessary host-dependent shell variables.
32817# We then display a message about it, and propagate them through the
32818# build chain.
32819. ${srcdir}/configure.host
32820{ echo "$as_me:$LINENO: FPU dependent file will be ${fpu_host}.h" >&5
32821echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
32822FPU_HOST_HEADER=config/${fpu_host}.h
32823
32824
7d7b8bfe
RH
32825# Check out attribute support.
32826
38d24731
RW
32827 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
32828echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
7d7b8bfe
RH
32829if test "${have_attribute_visibility+set}" = set; then
32830 echo $ECHO_N "(cached) $ECHO_C" >&6
32831else
32832
32833 save_CFLAGS="$CFLAGS"
32834 CFLAGS="$CFLAGS -Werror"
32835 cat >conftest.$ac_ext <<_ACEOF
32836/* confdefs.h. */
32837_ACEOF
32838cat confdefs.h >>conftest.$ac_ext
32839cat >>conftest.$ac_ext <<_ACEOF
32840/* end confdefs.h. */
32841void __attribute__((visibility("hidden"))) foo(void) { }
32842int
32843main ()
32844{
32845
32846 ;
32847 return 0;
32848}
32849_ACEOF
32850rm -f conftest.$ac_objext
38d24731
RW
32851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32852 (eval $ac_compile) 2>conftest.er1
7d7b8bfe
RH
32853 ac_status=$?
32854 grep -v '^ *+' conftest.er1 >conftest.err
32855 rm -f conftest.er1
32856 cat conftest.err >&5
32857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
32858 (exit $ac_status); } &&
32859 { ac_try='test -z "$ac_c_werror_flag"
32860 || test ! -s conftest.err'
32861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32862 (eval $ac_try) 2>&5
32863 ac_status=$?
32864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32865 (exit $ac_status); }; } &&
32866 { ac_try='test -s conftest.$ac_objext'
32867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32868 (eval $ac_try) 2>&5
32869 ac_status=$?
32870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32871 (exit $ac_status); }; }; then
7d7b8bfe
RH
32872 have_attribute_visibility=yes
32873else
32874 echo "$as_me: failed program was:" >&5
32875sed 's/^/| /' conftest.$ac_ext >&5
32876
38d24731 32877have_attribute_visibility=no
7d7b8bfe 32878fi
38d24731 32879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7d7b8bfe
RH
32880 CFLAGS="$save_CFLAGS"
32881fi
38d24731
RW
32882echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
32883echo "${ECHO_T}$have_attribute_visibility" >&6
7d7b8bfe
RH
32884 if test $have_attribute_visibility = yes; then
32885
32886cat >>confdefs.h <<\_ACEOF
32887#define HAVE_ATTRIBUTE_VISIBILITY 1
32888_ACEOF
32889
32890 fi
32891
38d24731
RW
32892 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
32893echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
7d7b8bfe
RH
32894if test "${have_attribute_dllexport+set}" = set; then
32895 echo $ECHO_N "(cached) $ECHO_C" >&6
32896else
32897
32898 save_CFLAGS="$CFLAGS"
32899 CFLAGS="$CFLAGS -Werror"
32900 cat >conftest.$ac_ext <<_ACEOF
32901/* confdefs.h. */
32902_ACEOF
32903cat confdefs.h >>conftest.$ac_ext
32904cat >>conftest.$ac_ext <<_ACEOF
32905/* end confdefs.h. */
32906void __attribute__((dllexport)) foo(void) { }
32907int
32908main ()
32909{
32910
32911 ;
32912 return 0;
32913}
32914_ACEOF
32915rm -f conftest.$ac_objext
38d24731
RW
32916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32917 (eval $ac_compile) 2>conftest.er1
7d7b8bfe
RH
32918 ac_status=$?
32919 grep -v '^ *+' conftest.er1 >conftest.err
32920 rm -f conftest.er1
32921 cat conftest.err >&5
32922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
32923 (exit $ac_status); } &&
32924 { ac_try='test -z "$ac_c_werror_flag"
32925 || test ! -s conftest.err'
32926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32927 (eval $ac_try) 2>&5
32928 ac_status=$?
32929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32930 (exit $ac_status); }; } &&
32931 { ac_try='test -s conftest.$ac_objext'
32932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32933 (eval $ac_try) 2>&5
32934 ac_status=$?
32935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32936 (exit $ac_status); }; }; then
7d7b8bfe
RH
32937 have_attribute_dllexport=yes
32938else
32939 echo "$as_me: failed program was:" >&5
32940sed 's/^/| /' conftest.$ac_ext >&5
32941
38d24731 32942have_attribute_dllexport=no
7d7b8bfe 32943fi
38d24731 32944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7d7b8bfe
RH
32945 CFLAGS="$save_CFLAGS"
32946fi
38d24731
RW
32947echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
32948echo "${ECHO_T}$have_attribute_dllexport" >&6
7d7b8bfe
RH
32949 if test $have_attribute_dllexport = yes; then
32950
32951cat >>confdefs.h <<\_ACEOF
32952#define HAVE_ATTRIBUTE_DLLEXPORT 1
32953_ACEOF
32954
32955 fi
32956
38d24731
RW
32957 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
32958echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
7d7b8bfe
RH
32959if test "${have_attribute_alias+set}" = set; then
32960 echo $ECHO_N "(cached) $ECHO_C" >&6
32961else
32962
f02d008e
JD
32963 if test x$gcc_no_link = xyes; then
32964 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32965echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32966 { (exit 1); exit 1; }; }
32967fi
32968cat >conftest.$ac_ext <<_ACEOF
7d7b8bfe
RH
32969/* confdefs.h. */
32970_ACEOF
32971cat confdefs.h >>conftest.$ac_ext
32972cat >>conftest.$ac_ext <<_ACEOF
32973/* end confdefs.h. */
32974
7d7b8bfe 32975void foo(void) { }
16a314a9 32976extern void bar(void) __attribute__((alias("foo")));
7d7b8bfe
RH
32977int
32978main ()
32979{
32980bar();
32981 ;
32982 return 0;
32983}
32984_ACEOF
32985rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
32986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32987 (eval $ac_link) 2>conftest.er1
7d7b8bfe
RH
32988 ac_status=$?
32989 grep -v '^ *+' conftest.er1 >conftest.err
32990 rm -f conftest.er1
32991 cat conftest.err >&5
32992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
32993 (exit $ac_status); } &&
32994 { ac_try='test -z "$ac_c_werror_flag"
32995 || test ! -s conftest.err'
32996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32997 (eval $ac_try) 2>&5
32998 ac_status=$?
32999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33000 (exit $ac_status); }; } &&
33001 { ac_try='test -s conftest$ac_exeext'
33002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33003 (eval $ac_try) 2>&5
33004 ac_status=$?
33005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006 (exit $ac_status); }; }; then
7d7b8bfe
RH
33007 have_attribute_alias=yes
33008else
33009 echo "$as_me: failed program was:" >&5
33010sed 's/^/| /' conftest.$ac_ext >&5
33011
38d24731 33012have_attribute_alias=no
7d7b8bfe 33013fi
38d24731 33014rm -f conftest.err conftest.$ac_objext \
7d7b8bfe
RH
33015 conftest$ac_exeext conftest.$ac_ext
33016fi
38d24731
RW
33017echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
33018echo "${ECHO_T}$have_attribute_alias" >&6
7d7b8bfe
RH
33019 if test $have_attribute_alias = yes; then
33020
33021cat >>confdefs.h <<\_ACEOF
33022#define HAVE_ATTRIBUTE_ALIAS 1
33023_ACEOF
33024
33025 fi
33026
5e805e44
JJ
33027# Check out sync builtins support.
33028
38d24731
RW
33029 echo "$as_me:$LINENO: checking whether the target supports __sync_fetch_and_add" >&5
33030echo $ECHO_N "checking whether the target supports __sync_fetch_and_add... $ECHO_C" >&6
5e805e44
JJ
33031if test "${have_sync_fetch_and_add+set}" = set; then
33032 echo $ECHO_N "(cached) $ECHO_C" >&6
33033else
33034
33035 if test x$gcc_no_link = xyes; then
33036 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33037echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33038 { (exit 1); exit 1; }; }
33039fi
33040cat >conftest.$ac_ext <<_ACEOF
33041/* confdefs.h. */
33042_ACEOF
33043cat confdefs.h >>conftest.$ac_ext
33044cat >>conftest.$ac_ext <<_ACEOF
33045/* end confdefs.h. */
33046int foovar = 0;
33047int
33048main ()
33049{
33050
33051if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
33052if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
33053 ;
33054 return 0;
33055}
33056_ACEOF
33057rm -f conftest.$ac_objext conftest$ac_exeext
38d24731
RW
33058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33059 (eval $ac_link) 2>conftest.er1
5e805e44
JJ
33060 ac_status=$?
33061 grep -v '^ *+' conftest.er1 >conftest.err
33062 rm -f conftest.er1
33063 cat conftest.err >&5
33064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
33065 (exit $ac_status); } &&
33066 { ac_try='test -z "$ac_c_werror_flag"
33067 || test ! -s conftest.err'
33068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33069 (eval $ac_try) 2>&5
33070 ac_status=$?
33071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33072 (exit $ac_status); }; } &&
33073 { ac_try='test -s conftest$ac_exeext'
33074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33075 (eval $ac_try) 2>&5
33076 ac_status=$?
33077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33078 (exit $ac_status); }; }; then
5e805e44
JJ
33079 have_sync_fetch_and_add=yes
33080else
33081 echo "$as_me: failed program was:" >&5
33082sed 's/^/| /' conftest.$ac_ext >&5
33083
38d24731 33084have_sync_fetch_and_add=no
5e805e44 33085fi
38d24731 33086rm -f conftest.err conftest.$ac_objext \
5e805e44
JJ
33087 conftest$ac_exeext conftest.$ac_ext
33088fi
38d24731
RW
33089echo "$as_me:$LINENO: result: $have_sync_fetch_and_add" >&5
33090echo "${ECHO_T}$have_sync_fetch_and_add" >&6
5e805e44
JJ
33091 if test $have_sync_fetch_and_add = yes; then
33092
33093cat >>confdefs.h <<\_ACEOF
33094#define HAVE_SYNC_FETCH_AND_ADD 1
33095_ACEOF
33096
33097 fi
33098
33099# Check out thread support.
33100
38d24731
RW
33101 echo "$as_me:$LINENO: checking configured target thread model" >&5
33102echo $ECHO_N "checking configured target thread model... $ECHO_C" >&6
5e805e44
JJ
33103if test "${target_thread_file+set}" = set; then
33104 echo $ECHO_N "(cached) $ECHO_C" >&6
33105else
33106
33107target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
33108fi
38d24731
RW
33109echo "$as_me:$LINENO: result: $target_thread_file" >&5
33110echo "${ECHO_T}$target_thread_file" >&6
5e805e44
JJ
33111
33112 if test $target_thread_file != single; then
33113
33114cat >>confdefs.h <<\_ACEOF
33115#define HAVE_GTHR_DEFAULT 1
33116_ACEOF
33117
33118 fi
33119
33120# Check out #pragma weak.
33121
38d24731
RW
33122 echo "$as_me:$LINENO: checking whether pragma weak works" >&5
33123echo $ECHO_N "checking whether pragma weak works... $ECHO_C" >&6
5e805e44
JJ
33124if test "${have_pragma_weak+set}" = set; then
33125 echo $ECHO_N "(cached) $ECHO_C" >&6
33126else
33127
33128 gfor_save_CFLAGS="$CFLAGS"
33129 CFLAGS="$CFLAGS -Wunknown-pragmas"
33130 cat >conftest.$ac_ext <<_ACEOF
33131/* confdefs.h. */
33132_ACEOF
33133cat confdefs.h >>conftest.$ac_ext
33134cat >>conftest.$ac_ext <<_ACEOF
33135/* end confdefs.h. */
33136void foo (void);
33137#pragma weak foo
33138int
33139main ()
33140{
33141if (foo) foo ();
33142 ;
33143 return 0;
33144}
33145_ACEOF
33146rm -f conftest.$ac_objext
38d24731
RW
33147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33148 (eval $ac_compile) 2>conftest.er1
5e805e44
JJ
33149 ac_status=$?
33150 grep -v '^ *+' conftest.er1 >conftest.err
33151 rm -f conftest.er1
33152 cat conftest.err >&5
33153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38d24731
RW
33154 (exit $ac_status); } &&
33155 { ac_try='test -z "$ac_c_werror_flag"
33156 || test ! -s conftest.err'
33157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33158 (eval $ac_try) 2>&5
33159 ac_status=$?
33160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161 (exit $ac_status); }; } &&
33162 { ac_try='test -s conftest.$ac_objext'
33163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33164 (eval $ac_try) 2>&5
33165 ac_status=$?
33166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33167 (exit $ac_status); }; }; then
5e805e44
JJ
33168 have_pragma_weak=yes
33169else
33170 echo "$as_me: failed program was:" >&5
33171sed 's/^/| /' conftest.$ac_ext >&5
33172
38d24731 33173have_pragma_weak=no
5e805e44 33174fi
38d24731 33175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5e805e44 33176fi
38d24731
RW
33177echo "$as_me:$LINENO: result: $have_pragma_weak" >&5
33178echo "${ECHO_T}$have_pragma_weak" >&6
5e805e44
JJ
33179 if test $have_pragma_weak = yes; then
33180
33181cat >>confdefs.h <<\_ACEOF
e669bd2b 33182#define SUPPORTS_WEAK 1
5e805e44
JJ
33183_ACEOF
33184
33185 fi
e669bd2b 33186 case "$host" in
6e20eae9 33187 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* )
e669bd2b
JJ
33188
33189cat >>confdefs.h <<\_ACEOF
33190#define GTHREAD_USE_WEAK 0
33191_ACEOF
33192
33193 ;;
33194 esac
5e805e44 33195
10c682a0
FXC
33196# Various other checks on target
33197
38d24731
RW
33198 echo "$as_me:$LINENO: checking whether the target can unlink an open file" >&5
33199echo $ECHO_N "checking whether the target can unlink an open file... $ECHO_C" >&6
10c682a0
FXC
33200if test "${have_unlink_open_file+set}" = set; then
33201 echo $ECHO_N "(cached) $ECHO_C" >&6
33202else
33203
33204 if test "$cross_compiling" = yes; then
33205
33206case "${target}" in
33207 *mingw*) have_unlink_open_file=no ;;
33208 *) have_unlink_open_file=yes;;
33209esac
33210else
33211 cat >conftest.$ac_ext <<_ACEOF
33212/* confdefs.h. */
33213_ACEOF
33214cat confdefs.h >>conftest.$ac_ext
33215cat >>conftest.$ac_ext <<_ACEOF
33216/* end confdefs.h. */
33217
33218#include <errno.h>
33219#include <fcntl.h>
33220#include <unistd.h>
33221#include <sys/stat.h>
33222
33223int main ()
33224{
33225 int fd;
33226
33227 fd = open ("testfile", O_RDWR | O_CREAT, S_IWRITE | S_IREAD);
33228 if (fd <= 0)
33229 return 0;
33230 if (unlink ("testfile") == -1)
33231 return 1;
33232 write (fd, "This is a test\n", 15);
33233 close (fd);
33234
33235 if (open ("testfile", O_RDONLY, S_IWRITE | S_IREAD) == -1 && errno == ENOENT)
33236 return 0;
33237 else
33238 return 1;
33239}
33240_ACEOF
33241rm -f conftest$ac_exeext
38d24731
RW
33242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33243 (eval $ac_link) 2>&5
10c682a0
FXC
33244 ac_status=$?
33245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38d24731
RW
33247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33248 (eval $ac_try) 2>&5
10c682a0
FXC
33249 ac_status=$?
33250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33251 (exit $ac_status); }; }; then
33252 have_unlink_open_file=yes
33253else
33254 echo "$as_me: program exited with status $ac_status" >&5
33255echo "$as_me: failed program was:" >&5
33256sed 's/^/| /' conftest.$ac_ext >&5
33257
33258( exit $ac_status )
33259have_unlink_open_file=no
33260fi
38d24731 33261rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10c682a0
FXC
33262fi
33263fi
38d24731
RW
33264echo "$as_me:$LINENO: result: $have_unlink_open_file" >&5
33265echo "${ECHO_T}$have_unlink_open_file" >&6
10c682a0
FXC
33266if test x"$have_unlink_open_file" = xyes; then
33267
33268cat >>confdefs.h <<\_ACEOF
33269#define HAVE_UNLINK_OPEN_FILE 1
33270_ACEOF
33271
33272fi
33273
3c127520
FXC
33274# Check whether line terminator is LF or CRLF
33275
38d24731
RW
33276 echo "$as_me:$LINENO: checking whether the target has CRLF as line terminator" >&5
33277echo $ECHO_N "checking whether the target has CRLF as line terminator... $ECHO_C" >&6
3c127520
FXC
33278if test "${have_crlf+set}" = set; then
33279 echo $ECHO_N "(cached) $ECHO_C" >&6
33280else
33281
33282 if test "$cross_compiling" = yes; then
33283
33284case "${target}" in
33285 *mingw*) have_crlf=yes ;;
33286 *) have_crlf=no;;
33287esac
33288else
33289 cat >conftest.$ac_ext <<_ACEOF
33290/* confdefs.h. */
33291_ACEOF
33292cat confdefs.h >>conftest.$ac_ext
33293cat >>conftest.$ac_ext <<_ACEOF
33294/* end confdefs.h. */
33295
33296/* This test program should exit with status 0 if system uses a CRLF as
33297 line terminator, and status 1 otherwise.
33298 Since it is used to check for mingw systems, and should return 0 in any
33299 other case, in case of a failure we will not use CRLF. */
33300#include <sys/stat.h>
33301#include <stdlib.h>
33302#include <fcntl.h>
33303#include <stdio.h>
33304
33305int main ()
33306{
33307#ifndef O_BINARY
33308 exit(1);
33309#else
33310 int fd, bytes;
33311 char buff[5];
33312
33313 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
33314 if (fd < 0)
33315 exit(1);
33316 if (write (fd, "\n", 1) < 0)
33317 perror ("write");
33318
33319 close (fd);
33320
33321 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
33322 exit(1);
33323 bytes = read (fd, buff, 5);
33324 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
33325 exit(0);
33326 else
33327 exit(1);
33328#endif
33329}
33330_ACEOF
33331rm -f conftest$ac_exeext
38d24731
RW
33332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33333 (eval $ac_link) 2>&5
3c127520
FXC
33334 ac_status=$?
33335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38d24731
RW
33337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33338 (eval $ac_try) 2>&5
3c127520
FXC
33339 ac_status=$?
33340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33341 (exit $ac_status); }; }; then
33342 have_crlf=yes
33343else
33344 echo "$as_me: program exited with status $ac_status" >&5
33345echo "$as_me: failed program was:" >&5
33346sed 's/^/| /' conftest.$ac_ext >&5
33347
33348( exit $ac_status )
33349have_crlf=no
33350fi
38d24731 33351rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3c127520
FXC
33352fi
33353fi
38d24731
RW
33354echo "$as_me:$LINENO: result: $have_crlf" >&5
33355echo "${ECHO_T}$have_crlf" >&6
3c127520
FXC
33356if test x"$have_crlf" = xyes; then
33357
33358cat >>confdefs.h <<\_ACEOF
33359#define HAVE_CRLF 1
33360_ACEOF
33361
33362fi
33363
6de9cd9a
DN
33364cat >confcache <<\_ACEOF
33365# This file is a shell script that caches the results of configure
33366# tests run on this system so they can be shared between configure
33367# scripts and configure runs, see configure's option --config-cache.
33368# It is not useful on other systems. If it contains results you don't
33369# want to keep, you may remove or edit it.
33370#
33371# config.status only pays attention to the cache file if you give it
33372# the --recheck option to rerun configure.
33373#
33374# `ac_cv_env_foo' variables (set or unset) will be overridden when
33375# loading this file, other *unset* `ac_cv_foo' will be assigned the
33376# following values.
33377
33378_ACEOF
33379
33380# The following way of writing the cache mishandles newlines in values,
33381# but we know of no workaround that is simple, portable, and efficient.
38d24731 33382# So, don't put newlines in cache variables' values.
6de9cd9a
DN
33383# Ultrix sh set writes to stderr and can't be redirected directly,
33384# and sets the high bit in the cache file unless we assign to the vars.
38d24731 33385{
6de9cd9a 33386 (set) 2>&1 |
38d24731
RW
33387 case `(ac_space=' '; set | grep ac_space) 2>&1` in
33388 *ac_space=\ *)
6de9cd9a
DN
33389 # `set' does not quote correctly, so add quotes (double-quote
33390 # substitution turns \\\\ into \\, and sed turns \\ into \).
33391 sed -n \
33392 "s/'/'\\\\''/g;
33393 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38d24731 33394 ;;
6de9cd9a
DN
33395 *)
33396 # `set' quotes correctly as required by POSIX, so do not add quotes.
38d24731
RW
33397 sed -n \
33398 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6de9cd9a 33399 ;;
38d24731
RW
33400 esac;
33401} |
6de9cd9a
DN
33402 sed '
33403 t clear
38d24731 33404 : clear
6de9cd9a
DN
33405 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33406 t end
38d24731
RW
33407 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33408 : end' >>confcache
33409if diff $cache_file confcache >/dev/null 2>&1; then :; else
33410 if test -w $cache_file; then
33411 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6de9cd9a
DN
33412 cat confcache >$cache_file
33413 else
38d24731 33414 echo "not updating unwritable cache $cache_file"
6de9cd9a
DN
33415 fi
33416fi
33417rm -f confcache
33418
96b8a615
AJ
33419if test ${multilib} = yes; then
33420 multilib_arg="--enable-multilib"
6de9cd9a 33421else
96b8a615 33422 multilib_arg=
6de9cd9a 33423fi
6de9cd9a 33424
96b8a615 33425# Write our Makefile.
38d24731 33426 ac_config_files="$ac_config_files Makefile"
96b8a615 33427
6de9cd9a
DN
33428cat >confcache <<\_ACEOF
33429# This file is a shell script that caches the results of configure
33430# tests run on this system so they can be shared between configure
33431# scripts and configure runs, see configure's option --config-cache.
33432# It is not useful on other systems. If it contains results you don't
33433# want to keep, you may remove or edit it.
33434#
33435# config.status only pays attention to the cache file if you give it
33436# the --recheck option to rerun configure.
33437#
33438# `ac_cv_env_foo' variables (set or unset) will be overridden when
33439# loading this file, other *unset* `ac_cv_foo' will be assigned the
33440# following values.
33441
33442_ACEOF
33443
33444# The following way of writing the cache mishandles newlines in values,
33445# but we know of no workaround that is simple, portable, and efficient.
38d24731 33446# So, don't put newlines in cache variables' values.
6de9cd9a
DN
33447# Ultrix sh set writes to stderr and can't be redirected directly,
33448# and sets the high bit in the cache file unless we assign to the vars.
38d24731 33449{
6de9cd9a 33450 (set) 2>&1 |
38d24731
RW
33451 case `(ac_space=' '; set | grep ac_space) 2>&1` in
33452 *ac_space=\ *)
6de9cd9a
DN
33453 # `set' does not quote correctly, so add quotes (double-quote
33454 # substitution turns \\\\ into \\, and sed turns \\ into \).
33455 sed -n \
33456 "s/'/'\\\\''/g;
33457 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38d24731 33458 ;;
6de9cd9a
DN
33459 *)
33460 # `set' quotes correctly as required by POSIX, so do not add quotes.
38d24731
RW
33461 sed -n \
33462 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6de9cd9a 33463 ;;
38d24731
RW
33464 esac;
33465} |
6de9cd9a
DN
33466 sed '
33467 t clear
38d24731 33468 : clear
6de9cd9a
DN
33469 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33470 t end
38d24731
RW
33471 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33472 : end' >>confcache
33473if diff $cache_file confcache >/dev/null 2>&1; then :; else
33474 if test -w $cache_file; then
33475 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6de9cd9a
DN
33476 cat confcache >$cache_file
33477 else
38d24731 33478 echo "not updating unwritable cache $cache_file"
6de9cd9a
DN
33479 fi
33480fi
33481rm -f confcache
33482
33483test "x$prefix" = xNONE && prefix=$ac_default_prefix
33484# Let make expand exec_prefix.
33485test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33486
38d24731
RW
33487# VPATH may cause trouble with some makes, so we remove $(srcdir),
33488# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33489# trailing colons and then remove the whole line if VPATH becomes empty
33490# (actually we leave an empty line to preserve line numbers).
33491if test "x$srcdir" = x.; then
33492 ac_vpsub='/^[ ]*VPATH[ ]*=/{
33493s/:*\$(srcdir):*/:/;
33494s/:*\${srcdir}:*/:/;
33495s/:*@srcdir@:*/:/;
33496s/^\([^=]*=[ ]*\):*/\1/;
33497s/:*$//;
33498s/^[^=]*=[ ]*$//;
33499}'
33500fi
33501
6de9cd9a
DN
33502DEFS=-DHAVE_CONFIG_H
33503
33504ac_libobjs=
33505ac_ltlibobjs=
33506for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33507 # 1. Remove the extension, and $U if already installed.
38d24731
RW
33508 ac_i=`echo "$ac_i" |
33509 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
33510 # 2. Add them.
33511 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
33512 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6de9cd9a
DN
33513done
33514LIBOBJS=$ac_libobjs
33515
33516LTLIBOBJS=$ac_ltlibobjs
33517
33518
b808ac33
BF
33519if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
33520 { { echo "$as_me:$LINENO: error: conditional \"onestep\" was never defined.
33521Usually this means the macro was only invoked conditionally." >&5
33522echo "$as_me: error: conditional \"onestep\" was never defined.
33523Usually this means the macro was only invoked conditionally." >&2;}
33524 { (exit 1); exit 1; }; }
33525fi
6de9cd9a
DN
33526if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
33527 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
33528Usually this means the macro was only invoked conditionally." >&5
33529echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
33530Usually this means the macro was only invoked conditionally." >&2;}
33531 { (exit 1); exit 1; }; }
33532fi
679c0f9a
TT
33533if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
33534 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
33535Usually this means the macro was only invoked conditionally." >&5
33536echo "$as_me: error: conditional \"AMDEP\" was never defined.
33537Usually this means the macro was only invoked conditionally." >&2;}
33538 { (exit 1); exit 1; }; }
33539fi
33540if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33541 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
33542Usually this means the macro was only invoked conditionally." >&5
33543echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
33544Usually this means the macro was only invoked conditionally." >&2;}
33545 { (exit 1); exit 1; }; }
33546fi
c0e7e2bf
JB
33547if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
33548 { { echo "$as_me:$LINENO: error: conditional \"LIBGFOR_USE_SYMVER\" was never defined.
33549Usually this means the macro was only invoked conditionally." >&5
33550echo "$as_me: error: conditional \"LIBGFOR_USE_SYMVER\" was never defined.
33551Usually this means the macro was only invoked conditionally." >&2;}
33552 { (exit 1); exit 1; }; }
33553fi
6de9cd9a
DN
33554
33555: ${CONFIG_STATUS=./config.status}
33556ac_clean_files_save=$ac_clean_files
33557ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33558{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33559echo "$as_me: creating $CONFIG_STATUS" >&6;}
33560cat >$CONFIG_STATUS <<_ACEOF
33561#! $SHELL
33562# Generated by $as_me.
33563# Run this file to recreate the current configuration.
33564# Compiler output produced by configure, useful for debugging
33565# configure, is in config.log if it exists.
33566
33567debug=false
33568ac_cs_recheck=false
33569ac_cs_silent=false
33570SHELL=\${CONFIG_SHELL-$SHELL}
33571_ACEOF
33572
33573cat >>$CONFIG_STATUS <<\_ACEOF
33574## --------------------- ##
33575## M4sh Initialization. ##
33576## --------------------- ##
33577
38d24731 33578# Be Bourne compatible
6de9cd9a
DN
33579if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33580 emulate sh
33581 NULLCMD=:
33582 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33583 # is contrary to our usage. Disable this feature.
33584 alias -g '${1+"$@"}'='"$@"'
38d24731
RW
33585elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
33586 set -o posix
6de9cd9a 33587fi
38d24731 33588DUALCASE=1; export DUALCASE # for MKS sh
6de9cd9a
DN
33589
33590# Support unset when possible.
33591if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33592 as_unset=unset
33593else
33594 as_unset=false
33595fi
33596
33597
33598# Work around bugs in pre-3.0 UWIN ksh.
38d24731 33599$as_unset ENV MAIL MAILPATH
6de9cd9a
DN
33600PS1='$ '
33601PS2='> '
33602PS4='+ '
33603
33604# NLS nuisances.
33605for as_var in \
33606 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33607 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33608 LC_TELEPHONE LC_TIME
33609do
33610 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33611 eval $as_var=C; export $as_var
33612 else
38d24731 33613 $as_unset $as_var
6de9cd9a
DN
33614 fi
33615done
33616
33617# Required to use basename.
38d24731 33618if expr a : '\(a\)' >/dev/null 2>&1; then
6de9cd9a
DN
33619 as_expr=expr
33620else
33621 as_expr=false
33622fi
33623
38d24731 33624if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6de9cd9a
DN
33625 as_basename=basename
33626else
33627 as_basename=false
33628fi
33629
33630
33631# Name of the executable.
38d24731 33632as_me=`$as_basename "$0" ||
6de9cd9a
DN
33633$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33634 X"$0" : 'X\(//\)$' \| \
38d24731
RW
33635 X"$0" : 'X\(/\)$' \| \
33636 . : '\(.\)' 2>/dev/null ||
6de9cd9a 33637echo X/"$0" |
38d24731
RW
33638 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
33639 /^X\/\(\/\/\)$/{ s//\1/; q; }
33640 /^X\/\(\/\).*/{ s//\1/; q; }
33641 s/.*/./; q'`
78511f8b 33642
38d24731
RW
33643
33644# PATH needs CR, and LINENO needs CR and PATH.
33645# Avoid depending upon Character Ranges.
33646as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33647as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33648as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33649as_cr_digits='0123456789'
33650as_cr_alnum=$as_cr_Letters$as_cr_digits
33651
33652# The user is always right.
33653if test "${PATH_SEPARATOR+set}" != set; then
33654 echo "#! /bin/sh" >conf$$.sh
33655 echo "exit 0" >>conf$$.sh
33656 chmod +x conf$$.sh
33657 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33658 PATH_SEPARATOR=';'
33659 else
33660 PATH_SEPARATOR=:
33661 fi
33662 rm -f conf$$.sh
33663fi
6de9cd9a
DN
33664
33665
38d24731
RW
33666 as_lineno_1=$LINENO
33667 as_lineno_2=$LINENO
33668 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
33669 test "x$as_lineno_1" != "x$as_lineno_2" &&
33670 test "x$as_lineno_3" = "x$as_lineno_2" || {
33671 # Find who we are. Look in the path if we contain no path at all
33672 # relative or not.
33673 case $0 in
33674 *[\\/]* ) as_myself=$0 ;;
33675 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33676for as_dir in $PATH
33677do
33678 IFS=$as_save_IFS
33679 test -z "$as_dir" && as_dir=.
33680 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33681done
6de9cd9a 33682
38d24731
RW
33683 ;;
33684 esac
33685 # We did not find ourselves, most probably we were run as `sh COMMAND'
33686 # in which case we are not to be found in the path.
33687 if test "x$as_myself" = x; then
33688 as_myself=$0
33689 fi
33690 if test ! -f "$as_myself"; then
33691 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
33692echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
33693 { (exit 1); exit 1; }; }
33694 fi
33695 case $CONFIG_SHELL in
33696 '')
33697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33698for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
33699do
33700 IFS=$as_save_IFS
33701 test -z "$as_dir" && as_dir=.
33702 for as_base in sh bash ksh sh5; do
33703 case $as_dir in
33704 /*)
33705 if ("$as_dir/$as_base" -c '
6de9cd9a
DN
33706 as_lineno_1=$LINENO
33707 as_lineno_2=$LINENO
38d24731 33708 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6de9cd9a 33709 test "x$as_lineno_1" != "x$as_lineno_2" &&
38d24731
RW
33710 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
33711 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
33712 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
33713 CONFIG_SHELL=$as_dir/$as_base
33714 export CONFIG_SHELL
33715 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
33716 fi;;
33717 esac
33718 done
33719done
33720;;
33721 esac
6de9cd9a
DN
33722
33723 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33724 # uniformly replaced by the line number. The first 'sed' inserts a
38d24731
RW
33725 # line-number line before each line; the second 'sed' does the real
33726 # work. The second script uses 'N' to pair each line-number line
33727 # with the numbered line, and appends trailing '-' during
33728 # substitution so that $LINENO is not a special case at line end.
6de9cd9a 33729 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
38d24731
RW
33730 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
33731 sed '=' <$as_myself |
6de9cd9a
DN
33732 sed '
33733 N
38d24731
RW
33734 s,$,-,
33735 : loop
33736 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6de9cd9a 33737 t loop
38d24731
RW
33738 s,-$,,
33739 s,^['$as_cr_digits']*\n,,
6de9cd9a 33740 ' >$as_me.lineno &&
38d24731
RW
33741 chmod +x $as_me.lineno ||
33742 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
33743echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6de9cd9a
DN
33744 { (exit 1); exit 1; }; }
33745
33746 # Don't try to exec as it changes $[0], causing all sort of problems
33747 # (the dirname of $[0] is not the place where we might find the
38d24731
RW
33748 # original and so on. Autoconf is especially sensible to this).
33749 . ./$as_me.lineno
6de9cd9a
DN
33750 # Exit status is that of the last command.
33751 exit
33752}
33753
33754
38d24731
RW
33755case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
33756 *c*,-n*) ECHO_N= ECHO_C='
33757' ECHO_T=' ' ;;
33758 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
33759 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6de9cd9a
DN
33760esac
33761
38d24731 33762if expr a : '\(a\)' >/dev/null 2>&1; then
6de9cd9a
DN
33763 as_expr=expr
33764else
33765 as_expr=false
33766fi
33767
33768rm -f conf$$ conf$$.exe conf$$.file
33769echo >conf$$.file
33770if ln -s conf$$.file conf$$ 2>/dev/null; then
38d24731
RW
33771 # We could just check for DJGPP; but this test a) works b) is more generic
33772 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
33773 if test -f conf$$.exe; then
33774 # Don't use ln at all; we don't have any links
6de9cd9a 33775 as_ln_s='cp -p'
38d24731
RW
33776 else
33777 as_ln_s='ln -s'
33778 fi
6de9cd9a
DN
33779elif ln conf$$.file conf$$ 2>/dev/null; then
33780 as_ln_s=ln
33781else
33782 as_ln_s='cp -p'
33783fi
38d24731 33784rm -f conf$$ conf$$.exe conf$$.file
6de9cd9a
DN
33785
33786if mkdir -p . 2>/dev/null; then
33787 as_mkdir_p=:
33788else
33789 test -d ./-p && rmdir ./-p
33790 as_mkdir_p=false
33791fi
33792
38d24731 33793as_executable_p="test -f"
6de9cd9a
DN
33794
33795# Sed expression to map a string onto a valid CPP name.
33796as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33797
33798# Sed expression to map a string onto a valid variable name.
33799as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33800
33801
38d24731
RW
33802# IFS
33803# We need space, tab and new line, in precisely that order.
33804as_nl='
33805'
33806IFS=" $as_nl"
33807
33808# CDPATH.
33809$as_unset CDPATH
33810
6de9cd9a
DN
33811exec 6>&1
33812
38d24731 33813# Open the log real soon, to keep \$[0] and so on meaningful, and to
6de9cd9a 33814# report actual input values of CONFIG_FILES etc. instead of their
38d24731
RW
33815# values after options handling. Logging --version etc. is OK.
33816exec 5>>config.log
33817{
33818 echo
33819 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33820## Running $as_me. ##
33821_ASBOX
33822} >&5
33823cat >&5 <<_CSEOF
33824
0dce3ca1 33825This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
38d24731 33826generated by GNU Autoconf 2.59. Invocation command line was
6de9cd9a
DN
33827
33828 CONFIG_FILES = $CONFIG_FILES
33829 CONFIG_HEADERS = $CONFIG_HEADERS
33830 CONFIG_LINKS = $CONFIG_LINKS
33831 CONFIG_COMMANDS = $CONFIG_COMMANDS
33832 $ $0 $@
33833
38d24731
RW
33834_CSEOF
33835echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
33836echo >&5
6de9cd9a
DN
33837_ACEOF
33838
33839# Files that config.status was made for.
38d24731
RW
33840if test -n "$ac_config_files"; then
33841 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
33842fi
78511f8b 33843
38d24731
RW
33844if test -n "$ac_config_headers"; then
33845 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
33846fi
33847
33848if test -n "$ac_config_links"; then
33849 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
33850fi
33851
33852if test -n "$ac_config_commands"; then
33853 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
33854fi
6de9cd9a
DN
33855
33856cat >>$CONFIG_STATUS <<\_ACEOF
38d24731 33857
6de9cd9a
DN
33858ac_cs_usage="\
33859\`$as_me' instantiates files from templates according to the
33860current configuration.
33861
33862Usage: $0 [OPTIONS] [FILE]...
33863
33864 -h, --help print this help, then exit
38d24731 33865 -V, --version print version number, then exit
6de9cd9a
DN
33866 -q, --quiet do not print progress messages
33867 -d, --debug don't remove temporary files
33868 --recheck update $as_me by reconfiguring in the same conditions
33869 --file=FILE[:TEMPLATE]
33870 instantiate the configuration file FILE
33871 --header=FILE[:TEMPLATE]
33872 instantiate the configuration header FILE
33873
33874Configuration files:
33875$config_files
33876
33877Configuration headers:
33878$config_headers
33879
33880Configuration commands:
33881$config_commands
33882
33883Report bugs to <bug-autoconf@gnu.org>."
f489fba1 33884_ACEOF
38d24731 33885
6de9cd9a
DN
33886cat >>$CONFIG_STATUS <<_ACEOF
33887ac_cs_version="\\
0dce3ca1 33888GNU Fortran Runtime Library config.status 0.3
38d24731
RW
33889configured by $0, generated by GNU Autoconf 2.59,
33890 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6de9cd9a 33891
38d24731 33892Copyright (C) 2003 Free Software Foundation, Inc.
6de9cd9a
DN
33893This config.status script is free software; the Free Software Foundation
33894gives unlimited permission to copy, distribute and modify it."
38d24731
RW
33895srcdir=$srcdir
33896INSTALL="$INSTALL"
6de9cd9a
DN
33897_ACEOF
33898
33899cat >>$CONFIG_STATUS <<\_ACEOF
33900# If no file are specified by the user, then we need to provide default
33901# value. By we need to know if files were specified by the user.
33902ac_need_defaults=:
33903while test $# != 0
33904do
33905 case $1 in
33906 --*=*)
38d24731
RW
33907 ac_option=`expr "x$1" : 'x\([^=]*\)='`
33908 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6de9cd9a
DN
33909 ac_shift=:
33910 ;;
38d24731 33911 -*)
6de9cd9a
DN
33912 ac_option=$1
33913 ac_optarg=$2
33914 ac_shift=shift
33915 ;;
38d24731
RW
33916 *) # This is not an option, so the user has probably given explicit
33917 # arguments.
33918 ac_option=$1
33919 ac_need_defaults=false;;
6de9cd9a
DN
33920 esac
33921
33922 case $ac_option in
33923 # Handling of the options.
38d24731
RW
33924_ACEOF
33925cat >>$CONFIG_STATUS <<\_ACEOF
6de9cd9a
DN
33926 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33927 ac_cs_recheck=: ;;
38d24731
RW
33928 --version | --vers* | -V )
33929 echo "$ac_cs_version"; exit 0 ;;
33930 --he | --h)
33931 # Conflict between --help and --header
33932 { { echo "$as_me:$LINENO: error: ambiguous option: $1
33933Try \`$0 --help' for more information." >&5
33934echo "$as_me: error: ambiguous option: $1
33935Try \`$0 --help' for more information." >&2;}
33936 { (exit 1); exit 1; }; };;
33937 --help | --hel | -h )
33938 echo "$ac_cs_usage"; exit 0 ;;
33939 --debug | --d* | -d )
6de9cd9a
DN
33940 debug=: ;;
33941 --file | --fil | --fi | --f )
33942 $ac_shift
33943 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33944 ac_need_defaults=false;;
33945 --header | --heade | --head | --hea )
33946 $ac_shift
33947 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33948 ac_need_defaults=false;;
33949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33950 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33951 ac_cs_silent=: ;;
33952
33953 # This is an error.
38d24731
RW
33954 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
33955Try \`$0 --help' for more information." >&5
33956echo "$as_me: error: unrecognized option: $1
33957Try \`$0 --help' for more information." >&2;}
6de9cd9a
DN
33958 { (exit 1); exit 1; }; } ;;
33959
38d24731 33960 *) ac_config_targets="$ac_config_targets $1" ;;
6de9cd9a
DN
33961
33962 esac
33963 shift
33964done
33965
33966ac_configure_extra_args=
33967
33968if $ac_cs_silent; then
33969 exec 6>/dev/null
33970 ac_configure_extra_args="$ac_configure_extra_args --silent"
33971fi
33972
33973_ACEOF
33974cat >>$CONFIG_STATUS <<_ACEOF
33975if \$ac_cs_recheck; then
38d24731
RW
33976 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33977 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6de9cd9a
DN
33978fi
33979
1cf3d07d
SE
33980_ACEOF
33981
33982cat >>$CONFIG_STATUS <<_ACEOF
33983#
38d24731 33984# INIT-COMMANDS section.
1cf3d07d
SE
33985#
33986
38d24731 33987
1cf3d07d
SE
33988srcdir="$srcdir"
33989host="$host"
33990target="$target"
33991with_multisubdir="$with_multisubdir"
33992with_multisrctop="$with_multisrctop"
33993with_target_subdir="$with_target_subdir"
33994ac_configure_args="${multilib_arg} ${ac_configure_args}"
33995multi_basedir="$multi_basedir"
33996CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
33997CC="$CC"
33998AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33999
34000
34001# The HP-UX ksh and POSIX shell print the target directory to stdout
34002# if CDPATH is set.
34003(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34004
34005sed_quote_subst='$sed_quote_subst'
34006double_quote_subst='$double_quote_subst'
34007delay_variable_subst='$delay_variable_subst'
34008macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
34009macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
34010enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
34011enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
34012pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
34013enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
34014host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
34015host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
34016host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
34017build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
34018build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
34019build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
34020SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
34021Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
34022GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
34023EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
34024FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
34025LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
34026NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
34027LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
34028max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
34029ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
34030exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
34031lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
34032lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
34033lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
34034reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
34035reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34036deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
34037file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
34038AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
34039AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
34040STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
34041RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
34042old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34043old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34044old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34045CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
34046CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
34047compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
34048GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
34049lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
34050lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
34051lt_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"`'
34052objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
34053SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
34054ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
34055MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
34056lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
34057lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
34058lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
34059lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
34060lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
34061need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
34062libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
34063shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34064extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34065archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
34066enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
34067export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
34068whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
34069compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
34070old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34071old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34072archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34073archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34074module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34075module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34076with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
34077allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
34078no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
34079hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
34080hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
34081hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
34082hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
34083hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
34084hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
34085hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
34086hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
34087inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
34088link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
34089fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
34090always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
34091export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34092exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
34093include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
34094prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34095file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
34096variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
34097need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
34098need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
34099version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
34100runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
34101shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
34102shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
34103libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
34104library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
34105soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
34106postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34107postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34108finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34109finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
34110hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
34111sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
34112sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
34113hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
34114enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
34115enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
34116enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
34117old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
34118striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
34119predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
34120postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
34121predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
34122postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
34123compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
34124LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
34125old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
34126compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
34127GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
34128lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
34129lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
34130lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
34131lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
34132lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
34133archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
34134enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
34135export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
34136whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
34137compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
34138old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
34139old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
34140archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
34141archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
34142module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
34143module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
34144with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
34145allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
34146no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
34147hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
34148hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
34149hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
34150hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
34151hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
34152hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
34153hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
34154hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
34155inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
34156link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
34157fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
34158always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
34159export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
34160exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
34161include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
34162prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
34163file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
34164hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
34165predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
34166postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
34167predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
34168postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
34169compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
34170
34171LTCC='$LTCC'
34172LTCFLAGS='$LTCFLAGS'
34173compiler='$compiler_DEFAULT'
34174
34175# Quote evaled strings.
34176for var in SED \
34177GREP \
34178EGREP \
34179FGREP \
34180LD \
34181NM \
34182LN_S \
34183lt_SP2NL \
34184lt_NL2SP \
34185reload_flag \
34186deplibs_check_method \
34187file_magic_cmd \
34188AR \
34189AR_FLAGS \
34190STRIP \
34191RANLIB \
34192CC \
34193CFLAGS \
34194compiler \
34195lt_cv_sys_global_symbol_pipe \
34196lt_cv_sys_global_symbol_to_cdecl \
34197lt_cv_sys_global_symbol_to_c_name_address \
34198SHELL \
34199ECHO \
34200lt_prog_compiler_no_builtin_flag \
34201lt_prog_compiler_wl \
34202lt_prog_compiler_pic \
34203lt_prog_compiler_static \
34204lt_cv_prog_compiler_c_o \
34205need_locks \
34206shrext_cmds \
34207export_dynamic_flag_spec \
34208whole_archive_flag_spec \
34209compiler_needs_object \
34210with_gnu_ld \
34211allow_undefined_flag \
34212no_undefined_flag \
34213hardcode_libdir_flag_spec \
34214hardcode_libdir_flag_spec_ld \
34215hardcode_libdir_separator \
34216fix_srcfile_path \
34217exclude_expsyms \
34218include_expsyms \
34219file_list_spec \
34220variables_saved_for_relink \
34221libname_spec \
34222library_names_spec \
34223soname_spec \
34224finish_eval \
34225old_striplib \
34226striplib \
34227predep_objects \
34228postdep_objects \
34229predeps \
34230postdeps \
34231compiler_lib_search_path \
34232LD_FC \
34233compiler_FC \
34234lt_prog_compiler_no_builtin_flag_FC \
34235lt_prog_compiler_wl_FC \
34236lt_prog_compiler_pic_FC \
34237lt_prog_compiler_static_FC \
34238lt_cv_prog_compiler_c_o_FC \
34239export_dynamic_flag_spec_FC \
34240whole_archive_flag_spec_FC \
34241compiler_needs_object_FC \
34242with_gnu_ld_FC \
34243allow_undefined_flag_FC \
34244no_undefined_flag_FC \
34245hardcode_libdir_flag_spec_FC \
34246hardcode_libdir_flag_spec_ld_FC \
34247hardcode_libdir_separator_FC \
34248fix_srcfile_path_FC \
34249exclude_expsyms_FC \
34250include_expsyms_FC \
34251file_list_spec_FC \
34252predep_objects_FC \
34253postdep_objects_FC \
34254predeps_FC \
34255postdeps_FC \
34256compiler_lib_search_path_FC; do
34257 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
34258 *[\\\\\\\`\\"\\\$]*)
34259 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
34260 ;;
34261 *)
34262 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34263 ;;
34264 esac
34265done
34266
34267# Double-quote double-evaled strings.
34268for var in reload_cmds \
34269old_postinstall_cmds \
34270old_postuninstall_cmds \
34271old_archive_cmds \
34272extract_expsyms_cmds \
34273old_archive_from_new_cmds \
34274old_archive_from_expsyms_cmds \
34275archive_cmds \
34276archive_expsym_cmds \
34277module_cmds \
34278module_expsym_cmds \
34279export_symbols_cmds \
34280prelink_cmds \
34281postinstall_cmds \
34282postuninstall_cmds \
34283finish_cmds \
34284sys_lib_search_path_spec \
34285sys_lib_dlsearch_path_spec \
34286old_archive_cmds_FC \
34287old_archive_from_new_cmds_FC \
34288old_archive_from_expsyms_cmds_FC \
34289archive_cmds_FC \
34290archive_expsym_cmds_FC \
34291module_cmds_FC \
34292module_expsym_cmds_FC \
34293export_symbols_cmds_FC \
34294prelink_cmds_FC; do
34295 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
34296 *[\\\\\\\`\\"\\\$]*)
34297 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
34298 ;;
34299 *)
34300 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34301 ;;
34302 esac
34303done
34304
34305# Fix-up fallback echo if it was mangled by the above quoting rules.
34306case \$lt_ECHO in
34307*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
34308 ;;
34309esac
34310
34311ac_aux_dir='$ac_aux_dir'
34312xsi_shell='$xsi_shell'
34313lt_shell_append='$lt_shell_append'
34314
34315# See if we are running on zsh, and set the options which allow our
34316# commands through without removal of \ escapes INIT.
34317if test -n "\${ZSH_VERSION+set}" ; then
34318 setopt NO_GLOB_SUBST
34319fi
34320
34321
34322 PACKAGE='$PACKAGE'
34323 VERSION='$VERSION'
34324 TIMESTAMP='$TIMESTAMP'
34325 RM='$RM'
34326 ofile='$ofile'
34327
34328
6de9cd9a 34329
6de9cd9a 34330
78511f8b 34331
6de9cd9a 34332
4c4b3eb0
PB
34333GCC="$GCC"
34334CC="$CC"
34335acx_cv_header_stdint="$acx_cv_header_stdint"
34336acx_cv_type_int8_t="$acx_cv_type_int8_t"
34337acx_cv_type_int16_t="$acx_cv_type_int16_t"
34338acx_cv_type_int32_t="$acx_cv_type_int32_t"
34339acx_cv_type_int64_t="$acx_cv_type_int64_t"
34340acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
34341ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
34342ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
34343ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
34344ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
34345ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
34346ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
34347ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
34348ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
34349
34350
6de9cd9a
DN
34351_ACEOF
34352
f489fba1 34353
38d24731
RW
34354
34355cat >>$CONFIG_STATUS <<\_ACEOF
6de9cd9a
DN
34356for ac_config_target in $ac_config_targets
34357do
38d24731
RW
34358 case "$ac_config_target" in
34359 # Handling of arguments.
34360 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34361 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
34362 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34363 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34364 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
34365 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6de9cd9a
DN
34366 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34367echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34368 { (exit 1); exit 1; }; };;
34369 esac
34370done
34371
34372# If the user did not use the arguments to specify the items to instantiate,
34373# then the envvar interface is used. Set only those that are not.
34374# We use the long form for the default assignment because of an extremely
34375# bizarre bug on SunOS 4.1.3.
34376if $ac_need_defaults; then
34377 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34378 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34379 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34380fi
34381
34382# Have a temporary directory for convenience. Make it in the build tree
38d24731 34383# simply because there is no reason to put it here, and in addition,
6de9cd9a 34384# creating and moving files from /tmp can sometimes cause problems.
38d24731 34385# Create a temporary directory, and hook for its removal unless debugging.
6de9cd9a
DN
34386$debug ||
34387{
38d24731 34388 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6de9cd9a
DN
34389 trap '{ (exit 1); exit 1; }' 1 2 13 15
34390}
38d24731 34391
6de9cd9a
DN
34392# Create a (secure) tmp directory for tmp files.
34393
34394{
38d24731 34395 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6de9cd9a
DN
34396 test -n "$tmp" && test -d "$tmp"
34397} ||
34398{
38d24731
RW
34399 tmp=./confstat$$-$RANDOM
34400 (umask 077 && mkdir $tmp)
6de9cd9a
DN
34401} ||
34402{
34403 echo "$me: cannot create a temporary directory in ." >&2
34404 { (exit 1); exit 1; }
34405}
34406
38d24731
RW
34407_ACEOF
34408
34409cat >>$CONFIG_STATUS <<_ACEOF
34410
6de9cd9a 34411#
38d24731 34412# CONFIG_FILES section.
6de9cd9a
DN
34413#
34414
34415# No need to generate the scripts if there are no CONFIG_FILES.
34416# This happens for instance when ./config.status config.h
38d24731
RW
34417if test -n "\$CONFIG_FILES"; then
34418 # Protect against being on the right side of a sed subst in config.status.
34419 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
34420 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
34421s,@SHELL@,$SHELL,;t t
34422s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
34423s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
34424s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
34425s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
34426s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
34427s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
34428s,@exec_prefix@,$exec_prefix,;t t
34429s,@prefix@,$prefix,;t t
34430s,@program_transform_name@,$program_transform_name,;t t
34431s,@bindir@,$bindir,;t t
34432s,@sbindir@,$sbindir,;t t
34433s,@libexecdir@,$libexecdir,;t t
34434s,@datadir@,$datadir,;t t
34435s,@sysconfdir@,$sysconfdir,;t t
34436s,@sharedstatedir@,$sharedstatedir,;t t
34437s,@localstatedir@,$localstatedir,;t t
34438s,@libdir@,$libdir,;t t
34439s,@includedir@,$includedir,;t t
34440s,@oldincludedir@,$oldincludedir,;t t
34441s,@infodir@,$infodir,;t t
34442s,@mandir@,$mandir,;t t
34443s,@build_alias@,$build_alias,;t t
34444s,@host_alias@,$host_alias,;t t
34445s,@target_alias@,$target_alias,;t t
34446s,@DEFS@,$DEFS,;t t
34447s,@ECHO_C@,$ECHO_C,;t t
34448s,@ECHO_N@,$ECHO_N,;t t
34449s,@ECHO_T@,$ECHO_T,;t t
34450s,@LIBS@,$LIBS,;t t
34451s,@build@,$build,;t t
34452s,@build_cpu@,$build_cpu,;t t
34453s,@build_vendor@,$build_vendor,;t t
34454s,@build_os@,$build_os,;t t
34455s,@build_libsubdir@,$build_libsubdir,;t t
34456s,@build_subdir@,$build_subdir,;t t
34457s,@host_subdir@,$host_subdir,;t t
34458s,@target_subdir@,$target_subdir,;t t
34459s,@onestep_TRUE@,$onestep_TRUE,;t t
34460s,@onestep_FALSE@,$onestep_FALSE,;t t
34461s,@onestep@,$onestep,;t t
34462s,@host@,$host,;t t
34463s,@host_cpu@,$host_cpu,;t t
34464s,@host_vendor@,$host_vendor,;t t
34465s,@host_os@,$host_os,;t t
34466s,@target@,$target,;t t
34467s,@target_cpu@,$target_cpu,;t t
34468s,@target_vendor@,$target_vendor,;t t
34469s,@target_os@,$target_os,;t t
34470s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
34471s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
34472s,@INSTALL_DATA@,$INSTALL_DATA,;t t
34473s,@CYGPATH_W@,$CYGPATH_W,;t t
34474s,@PACKAGE@,$PACKAGE,;t t
34475s,@VERSION@,$VERSION,;t t
34476s,@ACLOCAL@,$ACLOCAL,;t t
34477s,@AUTOCONF@,$AUTOCONF,;t t
34478s,@AUTOMAKE@,$AUTOMAKE,;t t
34479s,@AUTOHEADER@,$AUTOHEADER,;t t
34480s,@MAKEINFO@,$MAKEINFO,;t t
34481s,@install_sh@,$install_sh,;t t
34482s,@STRIP@,$STRIP,;t t
34483s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
34484s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
34485s,@mkdir_p@,$mkdir_p,;t t
34486s,@AWK@,$AWK,;t t
34487s,@SET_MAKE@,$SET_MAKE,;t t
34488s,@am__leading_dot@,$am__leading_dot,;t t
34489s,@AMTAR@,$AMTAR,;t t
34490s,@am__tar@,$am__tar,;t t
34491s,@am__untar@,$am__untar,;t t
34492s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
34493s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
34494s,@MAINT@,$MAINT,;t t
34495s,@multi_basedir@,$multi_basedir,;t t
34496s,@toolexecdir@,$toolexecdir,;t t
34497s,@toolexeclibdir@,$toolexeclibdir,;t t
34498s,@CC@,$CC,;t t
34499s,@ac_ct_CC@,$ac_ct_CC,;t t
34500s,@EXEEXT@,$EXEEXT,;t t
34501s,@OBJEXT@,$OBJEXT,;t t
34502s,@DEPDIR@,$DEPDIR,;t t
34503s,@am__include@,$am__include,;t t
34504s,@am__quote@,$am__quote,;t t
34505s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
34506s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
34507s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
34508s,@CCDEPMODE@,$CCDEPMODE,;t t
34509s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
34510s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
34511s,@AM_FCFLAGS@,$AM_FCFLAGS,;t t
34512s,@AM_CFLAGS@,$AM_CFLAGS,;t t
34513s,@CFLAGS@,$CFLAGS,;t t
34514s,@LIBGFOR_USE_SYMVER_TRUE@,$LIBGFOR_USE_SYMVER_TRUE,;t t
34515s,@LIBGFOR_USE_SYMVER_FALSE@,$LIBGFOR_USE_SYMVER_FALSE,;t t
34516s,@AS@,$AS,;t t
34517s,@ac_ct_AS@,$ac_ct_AS,;t t
34518s,@AR@,$AR,;t t
34519s,@ac_ct_AR@,$ac_ct_AR,;t t
34520s,@RANLIB@,$RANLIB,;t t
34521s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
34522s,@LIBTOOL@,$LIBTOOL,;t t
34523s,@SED@,$SED,;t t
34524s,@EGREP@,$EGREP,;t t
34525s,@FGREP@,$FGREP,;t t
34526s,@GREP@,$GREP,;t t
34527s,@LD@,$LD,;t t
34528s,@DUMPBIN@,$DUMPBIN,;t t
34529s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
34530s,@NM@,$NM,;t t
34531s,@LN_S@,$LN_S,;t t
34532s,@lt_ECHO@,$lt_ECHO,;t t
34533s,@CPP@,$CPP,;t t
34534s,@CPPFLAGS@,$CPPFLAGS,;t t
34535s,@enable_shared@,$enable_shared,;t t
34536s,@enable_static@,$enable_static,;t t
34537s,@FC@,$FC,;t t
34538s,@FCFLAGS@,$FCFLAGS,;t t
34539s,@LDFLAGS@,$LDFLAGS,;t t
34540s,@ac_ct_FC@,$ac_ct_FC,;t t
34541s,@extra_ldflags_libgfortran@,$extra_ldflags_libgfortran,;t t
34542s,@FPU_HOST_HEADER@,$FPU_HOST_HEADER,;t t
34543s,@LIBOBJS@,$LIBOBJS,;t t
34544s,@LTLIBOBJS@,$LTLIBOBJS,;t t
34545CEOF
34546
34547_ACEOF
34548
34549 cat >>$CONFIG_STATUS <<\_ACEOF
34550 # Split the substitutions into bite-sized pieces for seds with
34551 # small command number limits, like on Digital OSF/1 and HP-UX.
34552 ac_max_sed_lines=48
34553 ac_sed_frag=1 # Number of current file.
34554 ac_beg=1 # First line for current file.
34555 ac_end=$ac_max_sed_lines # Line after last line for current file.
34556 ac_more_lines=:
34557 ac_sed_cmds=
34558 while $ac_more_lines; do
34559 if test $ac_beg -gt 1; then
34560 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
34561 else
34562 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
34563 fi
34564 if test ! -s $tmp/subs.frag; then
34565 ac_more_lines=false
34566 else
34567 # The purpose of the label and of the branching condition is to
34568 # speed up the sed processing (if there are no `@' at all, there
34569 # is no need to browse any of the substitutions).
34570 # These are the two extra sed commands mentioned above.
34571 (echo ':t
34572 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
34573 if test -z "$ac_sed_cmds"; then
34574 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
34575 else
34576 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
34577 fi
34578 ac_sed_frag=`expr $ac_sed_frag + 1`
34579 ac_beg=$ac_end
34580 ac_end=`expr $ac_end + $ac_max_sed_lines`
34581 fi
34582 done
34583 if test -z "$ac_sed_cmds"; then
34584 ac_sed_cmds=cat
f489fba1 34585 fi
38d24731 34586fi # test -n "$CONFIG_FILES"
c0e7e2bf 34587
6de9cd9a
DN
34588_ACEOF
34589cat >>$CONFIG_STATUS <<\_ACEOF
38d24731
RW
34590for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
34591 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
34592 case $ac_file in
34593 - | *:- | *:-:* ) # input from stdin
34594 cat >$tmp/stdin
34595 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34596 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34597 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34598 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34599 * ) ac_file_in=$ac_file.in ;;
6de9cd9a
DN
34600 esac
34601
38d24731
RW
34602 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
34603 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6de9cd9a
DN
34604$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34605 X"$ac_file" : 'X\(//\)[^/]' \| \
34606 X"$ac_file" : 'X\(//\)$' \| \
38d24731
RW
34607 X"$ac_file" : 'X\(/\)' \| \
34608 . : '\(.\)' 2>/dev/null ||
6de9cd9a 34609echo X"$ac_file" |
38d24731
RW
34610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34611 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34612 /^X\(\/\/\)$/{ s//\1/; q; }
34613 /^X\(\/\).*/{ s//\1/; q; }
34614 s/.*/./; q'`
34615 { if $as_mkdir_p; then
34616 mkdir -p "$ac_dir"
34617 else
34618 as_dir="$ac_dir"
6de9cd9a 34619 as_dirs=
38d24731
RW
34620 while test ! -d "$as_dir"; do
34621 as_dirs="$as_dir $as_dirs"
34622 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6de9cd9a
DN
34623$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34624 X"$as_dir" : 'X\(//\)[^/]' \| \
34625 X"$as_dir" : 'X\(//\)$' \| \
38d24731
RW
34626 X"$as_dir" : 'X\(/\)' \| \
34627 . : '\(.\)' 2>/dev/null ||
6de9cd9a 34628echo X"$as_dir" |
38d24731
RW
34629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34630 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34631 /^X\(\/\/\)$/{ s//\1/; q; }
34632 /^X\(\/\).*/{ s//\1/; q; }
34633 s/.*/./; q'`
6de9cd9a 34634 done
38d24731
RW
34635 test ! -n "$as_dirs" || mkdir $as_dirs
34636 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
34637echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6de9cd9a 34638 { (exit 1); exit 1; }; }; }
38d24731 34639
6de9cd9a
DN
34640 ac_builddir=.
34641
38d24731 34642if test "$ac_dir" != .; then
6de9cd9a 34643 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38d24731
RW
34644 # A "../" for each directory in $ac_dir_suffix.
34645 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
34646else
34647 ac_dir_suffix= ac_top_builddir=
34648fi
6de9cd9a
DN
34649
34650case $srcdir in
38d24731 34651 .) # No --srcdir option. We are building in place.
6de9cd9a 34652 ac_srcdir=.
38d24731
RW
34653 if test -z "$ac_top_builddir"; then
34654 ac_top_srcdir=.
34655 else
34656 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
34657 fi ;;
34658 [\\/]* | ?:[\\/]* ) # Absolute path.
6de9cd9a 34659 ac_srcdir=$srcdir$ac_dir_suffix;
38d24731
RW
34660 ac_top_srcdir=$srcdir ;;
34661 *) # Relative path.
34662 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
34663 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6de9cd9a
DN
34664esac
34665
38d24731
RW
34666# Do not use `cd foo && pwd` to compute absolute paths, because
34667# the directories may not exist.
34668case `pwd` in
34669.) ac_abs_builddir="$ac_dir";;
34670*)
34671 case "$ac_dir" in
34672 .) ac_abs_builddir=`pwd`;;
34673 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
34674 *) ac_abs_builddir=`pwd`/"$ac_dir";;
34675 esac;;
34676esac
34677case $ac_abs_builddir in
34678.) ac_abs_top_builddir=${ac_top_builddir}.;;
34679*)
34680 case ${ac_top_builddir}. in
34681 .) ac_abs_top_builddir=$ac_abs_builddir;;
34682 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
34683 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
34684 esac;;
34685esac
34686case $ac_abs_builddir in
34687.) ac_abs_srcdir=$ac_srcdir;;
34688*)
34689 case $ac_srcdir in
34690 .) ac_abs_srcdir=$ac_abs_builddir;;
34691 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
34692 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
34693 esac;;
34694esac
34695case $ac_abs_builddir in
34696.) ac_abs_top_srcdir=$ac_top_srcdir;;
34697*)
34698 case $ac_top_srcdir in
34699 .) ac_abs_top_srcdir=$ac_abs_builddir;;
34700 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
34701 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
34702 esac;;
34703esac
6de9cd9a
DN
34704
34705
34706 case $INSTALL in
34707 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38d24731 34708 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6de9cd9a
DN
34709 esac
34710
38d24731
RW
34711 if test x"$ac_file" != x-; then
34712 { echo "$as_me:$LINENO: creating $ac_file" >&5
34713echo "$as_me: creating $ac_file" >&6;}
34714 rm -f "$ac_file"
34715 fi
34716 # Let's still pretend it is `configure' which instantiates (i.e., don't
34717 # use $as_me), people would be surprised to read:
34718 # /* config.h. Generated by config.status. */
34719 if test x"$ac_file" = x-; then
34720 configure_input=
34721 else
34722 configure_input="$ac_file. "
34723 fi
34724 configure_input=$configure_input"Generated from `echo $ac_file_in |
34725 sed 's,.*/,,'` by configure."
34726
34727 # First look for the input files in the build tree, otherwise in the
34728 # src tree.
34729 ac_file_inputs=`IFS=:
34730 for f in $ac_file_in; do
34731 case $f in
34732 -) echo $tmp/stdin ;;
34733 [\\/$]*)
34734 # Absolute (can't be DOS-style, as IFS=:)
34735 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34736echo "$as_me: error: cannot find input file: $f" >&2;}
34737 { (exit 1); exit 1; }; }
34738 echo "$f";;
34739 *) # Relative
34740 if test -f "$f"; then
34741 # Build tree
34742 echo "$f"
34743 elif test -f "$srcdir/$f"; then
34744 # Source tree
34745 echo "$srcdir/$f"
34746 else
34747 # /dev/null tree
34748 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34749echo "$as_me: error: cannot find input file: $f" >&2;}
34750 { (exit 1); exit 1; }; }
34751 fi;;
34752 esac
34753 done` || { (exit 1); exit 1; }
78511f8b 34754_ACEOF
6de9cd9a
DN
34755cat >>$CONFIG_STATUS <<_ACEOF
34756 sed "$ac_vpsub
34757$extrasub
34758_ACEOF
34759cat >>$CONFIG_STATUS <<\_ACEOF
34760:t
34761/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38d24731
RW
34762s,@configure_input@,$configure_input,;t t
34763s,@srcdir@,$ac_srcdir,;t t
34764s,@abs_srcdir@,$ac_abs_srcdir,;t t
34765s,@top_srcdir@,$ac_top_srcdir,;t t
34766s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
34767s,@builddir@,$ac_builddir,;t t
34768s,@abs_builddir@,$ac_abs_builddir,;t t
34769s,@top_builddir@,$ac_top_builddir,;t t
34770s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
34771s,@INSTALL@,$ac_INSTALL,;t t
34772" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
34773 rm -f $tmp/stdin
34774 if test x"$ac_file" != x-; then
34775 mv $tmp/out $ac_file
34776 else
34777 cat $tmp/out
34778 rm -f $tmp/out
34779 fi
34780
34781done
34782_ACEOF
34783cat >>$CONFIG_STATUS <<\_ACEOF
34784
34785#
34786# CONFIG_HEADER section.
34787#
34788
34789# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
34790# NAME is the cpp macro being defined and VALUE is the value it is being given.
34791#
34792# ac_d sets the value in "#define NAME VALUE" lines.
34793ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
34794ac_dB='[ ].*$,\1#\2'
34795ac_dC=' '
34796ac_dD=',;t'
34797# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
34798ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
34799ac_uB='$,\1#\2define\3'
34800ac_uC=' '
34801ac_uD=',;t'
34802
34803for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
34804 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6de9cd9a 34805 case $ac_file in
38d24731
RW
34806 - | *:- | *:-:* ) # input from stdin
34807 cat >$tmp/stdin
34808 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34809 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34810 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34811 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34812 * ) ac_file_in=$ac_file.in ;;
6de9cd9a 34813 esac
38d24731
RW
34814
34815 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
34816echo "$as_me: creating $ac_file" >&6;}
34817
34818 # First look for the input files in the build tree, otherwise in the
34819 # src tree.
34820 ac_file_inputs=`IFS=:
34821 for f in $ac_file_in; do
34822 case $f in
34823 -) echo $tmp/stdin ;;
34824 [\\/$]*)
34825 # Absolute (can't be DOS-style, as IFS=:)
34826 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34827echo "$as_me: error: cannot find input file: $f" >&2;}
34828 { (exit 1); exit 1; }; }
34829 # Do quote $f, to prevent DOS paths from being IFS'd.
34830 echo "$f";;
34831 *) # Relative
34832 if test -f "$f"; then
34833 # Build tree
34834 echo "$f"
34835 elif test -f "$srcdir/$f"; then
34836 # Source tree
34837 echo "$srcdir/$f"
34838 else
34839 # /dev/null tree
34840 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34841echo "$as_me: error: cannot find input file: $f" >&2;}
34842 { (exit 1); exit 1; }; }
34843 fi;;
34844 esac
34845 done` || { (exit 1); exit 1; }
34846 # Remove the trailing spaces.
34847 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
34848
34849_ACEOF
34850
34851# Transform confdefs.h into two sed scripts, `conftest.defines' and
34852# `conftest.undefs', that substitutes the proper values into
34853# config.h.in to produce config.h. The first handles `#define'
34854# templates, and the second `#undef' templates.
34855# And first: Protect against being on the right side of a sed subst in
34856# config.status. Protect against being in an unquoted here document
34857# in config.status.
34858rm -f conftest.defines conftest.undefs
34859# Using a here document instead of a string reduces the quoting nightmare.
34860# Putting comments in sed scripts is not portable.
34861#
34862# `end' is used to avoid that the second main sed command (meant for
34863# 0-ary CPP macros) applies to n-ary macro definitions.
34864# See the Autoconf documentation for `clear'.
34865cat >confdef2sed.sed <<\_ACEOF
34866s/[\\&,]/\\&/g
34867s,[\\$`],\\&,g
34868t clear
34869: clear
34870s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
34871t end
34872s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
34873: end
34874_ACEOF
34875# If some macros were called several times there might be several times
34876# the same #defines, which is useless. Nevertheless, we may not want to
34877# sort them, since we want the *last* AC-DEFINE to be honored.
34878uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
34879sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
34880rm -f confdef2sed.sed
34881
34882# This sed command replaces #undef with comments. This is necessary, for
6de9cd9a
DN
34883# example, in the case of _POSIX_SOURCE, which is predefined and required
34884# on some systems where configure will not decide to define it.
38d24731
RW
34885cat >>conftest.undefs <<\_ACEOF
34886s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
34887_ACEOF
34888
34889# Break up conftest.defines because some shells have a limit on the size
34890# of here documents, and old seds have small limits too (100 cmds).
34891echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
34892echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
34893echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
34894echo ' :' >>$CONFIG_STATUS
34895rm -f conftest.tail
34896while grep . conftest.defines >/dev/null
6de9cd9a 34897do
38d24731
RW
34898 # Write a limited-size here document to $tmp/defines.sed.
34899 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
34900 # Speed up: don't consider the non `#define' lines.
34901 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
34902 # Work around the forget-to-reset-the-flag bug.
34903 echo 't clr' >>$CONFIG_STATUS
34904 echo ': clr' >>$CONFIG_STATUS
34905 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6de9cd9a 34906 echo 'CEOF
38d24731
RW
34907 sed -f $tmp/defines.sed $tmp/in >$tmp/out
34908 rm -f $tmp/in
34909 mv $tmp/out $tmp/in
34910' >>$CONFIG_STATUS
34911 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6de9cd9a
DN
34912 rm -f conftest.defines
34913 mv conftest.tail conftest.defines
34914done
38d24731
RW
34915rm -f conftest.defines
34916echo ' fi # grep' >>$CONFIG_STATUS
34917echo >>$CONFIG_STATUS
34918
34919# Break up conftest.undefs because some shells have a limit on the size
34920# of here documents, and old seds have small limits too (100 cmds).
34921echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
34922rm -f conftest.tail
34923while grep . conftest.undefs >/dev/null
34924do
34925 # Write a limited-size here document to $tmp/undefs.sed.
34926 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
34927 # Speed up: don't consider the non `#undef'
34928 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
34929 # Work around the forget-to-reset-the-flag bug.
34930 echo 't clr' >>$CONFIG_STATUS
34931 echo ': clr' >>$CONFIG_STATUS
34932 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
34933 echo 'CEOF
34934 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
34935 rm -f $tmp/in
34936 mv $tmp/out $tmp/in
34937' >>$CONFIG_STATUS
34938 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
34939 rm -f conftest.undefs
34940 mv conftest.tail conftest.undefs
34941done
34942rm -f conftest.undefs
6de9cd9a
DN
34943
34944cat >>$CONFIG_STATUS <<\_ACEOF
38d24731
RW
34945 # Let's still pretend it is `configure' which instantiates (i.e., don't
34946 # use $as_me), people would be surprised to read:
34947 # /* config.h. Generated by config.status. */
34948 if test x"$ac_file" = x-; then
34949 echo "/* Generated by configure. */" >$tmp/config.h
34950 else
34951 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
34952 fi
34953 cat $tmp/in >>$tmp/config.h
34954 rm -f $tmp/in
6de9cd9a 34955 if test x"$ac_file" != x-; then
38d24731 34956 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6de9cd9a
DN
34957 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34958echo "$as_me: $ac_file is unchanged" >&6;}
34959 else
38d24731
RW
34960 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
34961$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34962 X"$ac_file" : 'X\(//\)[^/]' \| \
34963 X"$ac_file" : 'X\(//\)$' \| \
34964 X"$ac_file" : 'X\(/\)' \| \
34965 . : '\(.\)' 2>/dev/null ||
34966echo X"$ac_file" |
34967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34969 /^X\(\/\/\)$/{ s//\1/; q; }
34970 /^X\(\/\).*/{ s//\1/; q; }
34971 s/.*/./; q'`
34972 { if $as_mkdir_p; then
34973 mkdir -p "$ac_dir"
34974 else
34975 as_dir="$ac_dir"
34976 as_dirs=
34977 while test ! -d "$as_dir"; do
34978 as_dirs="$as_dir $as_dirs"
34979 as_dir=`(dirname "$as_dir") 2>/dev/null ||
34980$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34981 X"$as_dir" : 'X\(//\)[^/]' \| \
34982 X"$as_dir" : 'X\(//\)$' \| \
34983 X"$as_dir" : 'X\(/\)' \| \
34984 . : '\(.\)' 2>/dev/null ||
34985echo X"$as_dir" |
34986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34987 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34988 /^X\(\/\/\)$/{ s//\1/; q; }
34989 /^X\(\/\).*/{ s//\1/; q; }
34990 s/.*/./; q'`
34991 done
34992 test ! -n "$as_dirs" || mkdir $as_dirs
34993 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
34994echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
34995 { (exit 1); exit 1; }; }; }
34996
6de9cd9a 34997 rm -f $ac_file
38d24731 34998 mv $tmp/config.h $ac_file
6de9cd9a
DN
34999 fi
35000 else
38d24731
RW
35001 cat $tmp/config.h
35002 rm -f $tmp/config.h
6de9cd9a
DN
35003 fi
35004# Compute $ac_file's index in $config_headers.
35005_am_stamp_count=1
35006for _am_header in $config_headers :; do
35007 case $_am_header in
35008 $ac_file | $ac_file:* )
35009 break ;;
35010 * )
35011 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35012 esac
35013done
38d24731 35014echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
6de9cd9a
DN
35015$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35016 X$ac_file : 'X\(//\)[^/]' \| \
35017 X$ac_file : 'X\(//\)$' \| \
38d24731
RW
35018 X$ac_file : 'X\(/\)' \| \
35019 . : '\(.\)' 2>/dev/null ||
6de9cd9a 35020echo X$ac_file |
38d24731
RW
35021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35023 /^X\(\/\/\)$/{ s//\1/; q; }
35024 /^X\(\/\).*/{ s//\1/; q; }
35025 s/.*/./; q'`/stamp-h$_am_stamp_count
35026done
35027_ACEOF
35028cat >>$CONFIG_STATUS <<\_ACEOF
78511f8b 35029
38d24731
RW
35030#
35031# CONFIG_COMMANDS section.
35032#
35033for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
35034 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
35035 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
35036 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
35037$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35038 X"$ac_dest" : 'X\(//\)[^/]' \| \
35039 X"$ac_dest" : 'X\(//\)$' \| \
35040 X"$ac_dest" : 'X\(/\)' \| \
35041 . : '\(.\)' 2>/dev/null ||
35042echo X"$ac_dest" |
35043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35044 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35045 /^X\(\/\/\)$/{ s//\1/; q; }
35046 /^X\(\/\).*/{ s//\1/; q; }
35047 s/.*/./; q'`
35048 { if $as_mkdir_p; then
35049 mkdir -p "$ac_dir"
35050 else
35051 as_dir="$ac_dir"
35052 as_dirs=
35053 while test ! -d "$as_dir"; do
35054 as_dirs="$as_dir $as_dirs"
35055 as_dir=`(dirname "$as_dir") 2>/dev/null ||
35056$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35057 X"$as_dir" : 'X\(//\)[^/]' \| \
35058 X"$as_dir" : 'X\(//\)$' \| \
35059 X"$as_dir" : 'X\(/\)' \| \
35060 . : '\(.\)' 2>/dev/null ||
35061echo X"$as_dir" |
35062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35063 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35064 /^X\(\/\/\)$/{ s//\1/; q; }
35065 /^X\(\/\).*/{ s//\1/; q; }
35066 s/.*/./; q'`
35067 done
35068 test ! -n "$as_dirs" || mkdir $as_dirs
35069 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
35070echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
35071 { (exit 1); exit 1; }; }; }
35072
35073 ac_builddir=.
35074
35075if test "$ac_dir" != .; then
35076 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35077 # A "../" for each directory in $ac_dir_suffix.
35078 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
35079else
35080 ac_dir_suffix= ac_top_builddir=
35081fi
35082
35083case $srcdir in
35084 .) # No --srcdir option. We are building in place.
35085 ac_srcdir=.
35086 if test -z "$ac_top_builddir"; then
35087 ac_top_srcdir=.
35088 else
35089 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
35090 fi ;;
35091 [\\/]* | ?:[\\/]* ) # Absolute path.
35092 ac_srcdir=$srcdir$ac_dir_suffix;
35093 ac_top_srcdir=$srcdir ;;
35094 *) # Relative path.
35095 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
35096 ac_top_srcdir=$ac_top_builddir$srcdir ;;
35097esac
35098
35099# Do not use `cd foo && pwd` to compute absolute paths, because
35100# the directories may not exist.
35101case `pwd` in
35102.) ac_abs_builddir="$ac_dir";;
35103*)
35104 case "$ac_dir" in
35105 .) ac_abs_builddir=`pwd`;;
35106 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
35107 *) ac_abs_builddir=`pwd`/"$ac_dir";;
35108 esac;;
35109esac
35110case $ac_abs_builddir in
35111.) ac_abs_top_builddir=${ac_top_builddir}.;;
35112*)
35113 case ${ac_top_builddir}. in
35114 .) ac_abs_top_builddir=$ac_abs_builddir;;
35115 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
35116 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
35117 esac;;
35118esac
35119case $ac_abs_builddir in
35120.) ac_abs_srcdir=$ac_srcdir;;
35121*)
35122 case $ac_srcdir in
35123 .) ac_abs_srcdir=$ac_abs_builddir;;
35124 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
35125 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
35126 esac;;
35127esac
35128case $ac_abs_builddir in
35129.) ac_abs_top_srcdir=$ac_top_srcdir;;
35130*)
35131 case $ac_top_srcdir in
35132 .) ac_abs_top_srcdir=$ac_abs_builddir;;
35133 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
35134 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
35135 esac;;
35136esac
6de9cd9a
DN
35137
35138
38d24731
RW
35139 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
35140echo "$as_me: executing $ac_dest commands" >&6;}
35141 case $ac_dest in
35142 default-1 )
96b8a615
AJ
35143# Only add multilib support code if we just rebuilt the top-level
35144# Makefile.
35145case " $CONFIG_FILES " in
35146 *" Makefile "*)
35147 ac_file=Makefile . ${multi_basedir}/config-ml.in
35148 ;;
35149esac ;;
38d24731 35150 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
679c0f9a
TT
35151 # Strip MF so we end up with the name of the file.
35152 mf=`echo "$mf" | sed -e 's/:.*$//'`
35153 # Check whether this is an Automake generated Makefile or not.
35154 # We used to match only the files named `Makefile.in', but
35155 # some people rename them; so instead we look at the file content.
35156 # Grep'ing the first line is not enough: some people post-process
35157 # each Makefile.in and add a new line on top of each file to say so.
35158 # So let's grep whole file.
35159 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
38d24731 35160 dirpart=`(dirname "$mf") 2>/dev/null ||
679c0f9a
TT
35161$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35162 X"$mf" : 'X\(//\)[^/]' \| \
35163 X"$mf" : 'X\(//\)$' \| \
38d24731
RW
35164 X"$mf" : 'X\(/\)' \| \
35165 . : '\(.\)' 2>/dev/null ||
679c0f9a 35166echo X"$mf" |
38d24731
RW
35167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35168 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35169 /^X\(\/\/\)$/{ s//\1/; q; }
35170 /^X\(\/\).*/{ s//\1/; q; }
35171 s/.*/./; q'`
679c0f9a
TT
35172 else
35173 continue
35174 fi
35175 # Extract the definition of DEPDIR, am__include, and am__quote
35176 # from the Makefile without running `make'.
35177 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35178 test -z "$DEPDIR" && continue
35179 am__include=`sed -n 's/^am__include = //p' < "$mf"`
35180 test -z "am__include" && continue
35181 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35182 # When using ansi2knr, U may be empty or an underscore; expand it
35183 U=`sed -n 's/^U = //p' < "$mf"`
35184 # Find all dependency output files, they are included files with
35185 # $(DEPDIR) in their names. We invoke sed twice because it is the
35186 # simplest approach to changing $(DEPDIR) to its actual value in the
35187 # expansion.
35188 for file in `sed -n "
35189 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35190 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35191 # Make sure the directory exists.
35192 test -f "$dirpart/$file" && continue
38d24731 35193 fdir=`(dirname "$file") 2>/dev/null ||
679c0f9a
TT
35194$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35195 X"$file" : 'X\(//\)[^/]' \| \
35196 X"$file" : 'X\(//\)$' \| \
38d24731
RW
35197 X"$file" : 'X\(/\)' \| \
35198 . : '\(.\)' 2>/dev/null ||
679c0f9a 35199echo X"$file" |
38d24731
RW
35200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35201 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35202 /^X\(\/\/\)$/{ s//\1/; q; }
35203 /^X\(\/\).*/{ s//\1/; q; }
35204 s/.*/./; q'`
35205 { if $as_mkdir_p; then
35206 mkdir -p $dirpart/$fdir
35207 else
35208 as_dir=$dirpart/$fdir
679c0f9a 35209 as_dirs=
38d24731
RW
35210 while test ! -d "$as_dir"; do
35211 as_dirs="$as_dir $as_dirs"
35212 as_dir=`(dirname "$as_dir") 2>/dev/null ||
679c0f9a
TT
35213$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35214 X"$as_dir" : 'X\(//\)[^/]' \| \
35215 X"$as_dir" : 'X\(//\)$' \| \
38d24731
RW
35216 X"$as_dir" : 'X\(/\)' \| \
35217 . : '\(.\)' 2>/dev/null ||
679c0f9a 35218echo X"$as_dir" |
38d24731
RW
35219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35220 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35221 /^X\(\/\/\)$/{ s//\1/; q; }
35222 /^X\(\/\).*/{ s//\1/; q; }
35223 s/.*/./; q'`
679c0f9a 35224 done
38d24731
RW
35225 test ! -n "$as_dirs" || mkdir $as_dirs
35226 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
35227echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
679c0f9a 35228 { (exit 1); exit 1; }; }; }
38d24731 35229
679c0f9a
TT
35230 # echo "creating $dirpart/$file"
35231 echo '# dummy' > "$dirpart/$file"
35232 done
35233done
1cf3d07d 35234 ;;
38d24731 35235 libtool )
1cf3d07d
SE
35236
35237 # See if we are running on zsh, and set the options which allow our
35238 # commands through without removal of \ escapes.
35239 if test -n "${ZSH_VERSION+set}" ; then
35240 setopt NO_GLOB_SUBST
35241 fi
35242
35243 cfgfile="${ofile}T"
35244 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35245 $RM "$cfgfile"
35246
35247 cat <<_LT_EOF >> "$cfgfile"
35248#! $SHELL
35249
35250# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
35251# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
35252# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35253# NOTE: Changes made to this file will be lost: look at ltmain.sh.
35254#
35255# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
35256# 2006, 2007 Free Software Foundation, Inc.
35257#
35258# This file is part of GNU Libtool:
35259# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
35260#
35261# This program is free software; you can redistribute it and/or modify
35262# it under the terms of the GNU General Public License as published by
35263# the Free Software Foundation; either version 2 of the License, or
35264# (at your option) any later version.
35265#
35266# This program is distributed in the hope that it will be useful, but
35267# WITHOUT ANY WARRANTY; without even the implied warranty of
35268# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
35269# General Public License for more details.
35270#
35271# You should have received a copy of the GNU General Public License
35272# along with this program; if not, a copy can be downloaded from
35273# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
35274# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
35275# MA 02110-1301, USA.
35276#
35277# As a special exception to the GNU General Public License, if you
35278# distribute this file as part of a program that contains a
35279# configuration script generated by Autoconf, you may include it under
35280# the same distribution terms that you use for the rest of that program.
35281
35282
35283# The names of the tagged configurations supported by this script.
35284available_tags="FC "
35285
35286# ### BEGIN LIBTOOL CONFIG
35287
35288# Which release of libtool.m4 was used?
35289macro_version=$macro_version
35290macro_revision=$macro_revision
35291
35292# Whether or not to build shared libraries.
35293build_libtool_libs=$enable_shared
35294
35295# Whether or not to build static libraries.
35296build_old_libs=$enable_static
35297
35298# What type of objects to build.
35299pic_mode=$pic_mode
35300
35301# Whether or not to optimize for fast installation.
35302fast_install=$enable_fast_install
35303
35304# The host system.
35305host_alias=$host_alias
35306host=$host
35307host_os=$host_os
35308
35309# The build system.
35310build_alias=$build_alias
35311build=$build
35312build_os=$build_os
35313
35314# A sed program that does not truncate output.
35315SED=$lt_SED
35316
35317# Sed that helps us avoid accidentally triggering echo(1) options like -n.
35318Xsed="\$SED -e 1s/^X//"
35319
35320# A grep program that handles long lines.
35321GREP=$lt_GREP
35322
35323# An ERE matcher.
35324EGREP=$lt_EGREP
35325
35326# A literal string matcher.
35327FGREP=$lt_FGREP
35328
35329# A BSD- or MS-compatible name lister.
35330NM=$lt_NM
35331
35332# Whether we need soft or hard links.
35333LN_S=$lt_LN_S
35334
35335# What is the maximum length of a command?
35336max_cmd_len=$max_cmd_len
35337
35338# Object file suffix (normally "o").
35339objext=$ac_objext
35340
35341# Executable file suffix (normally "").
35342exeext=$exeext
35343
35344# whether the shell understands "unset".
35345lt_unset=$lt_unset
35346
35347# turn spaces into newlines.
35348SP2NL=$lt_lt_SP2NL
35349
35350# turn newlines into spaces.
35351NL2SP=$lt_lt_NL2SP
35352
35353# How to create reloadable object files.
35354reload_flag=$lt_reload_flag
35355reload_cmds=$lt_reload_cmds
35356
35357# Method to check whether dependent libraries are shared objects.
35358deplibs_check_method=$lt_deplibs_check_method
35359
35360# Command to use when deplibs_check_method == "file_magic".
35361file_magic_cmd=$lt_file_magic_cmd
35362
35363# The archiver.
35364AR=$lt_AR
35365AR_FLAGS=$lt_AR_FLAGS
35366
35367# A symbol stripping program.
35368STRIP=$lt_STRIP
35369
35370# Commands used to install an old-style archive.
35371RANLIB=$lt_RANLIB
35372old_postinstall_cmds=$lt_old_postinstall_cmds
35373old_postuninstall_cmds=$lt_old_postuninstall_cmds
35374
35375# A C compiler.
35376LTCC=$lt_CC
35377
35378# LTCC compiler flags.
35379LTCFLAGS=$lt_CFLAGS
35380
35381# Take the output of nm and produce a listing of raw symbols and C names.
35382global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35383
35384# Transform the output of nm in a proper C declaration.
35385global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35386
35387# Transform the output of nm in a C name address pair.
35388global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35389
35390# The name of the directory that contains temporary libtool files.
35391objdir=$objdir
35392
35393# Shell to use when invoking shell scripts.
35394SHELL=$lt_SHELL
35395
35396# An echo program that does not interpret backslashes.
35397ECHO=$lt_ECHO
35398
35399# Used to examine libraries when file_magic_cmd begins with "file".
35400MAGIC_CMD=$MAGIC_CMD
35401
35402# Must we lock files when doing compilation?
35403need_locks=$lt_need_locks
35404
35405# Old archive suffix (normally "a").
35406libext=$libext
35407
35408# Shared library suffix (normally ".so").
35409shrext_cmds=$lt_shrext_cmds
35410
35411# The commands to extract the exported symbol list from a shared archive.
35412extract_expsyms_cmds=$lt_extract_expsyms_cmds
35413
35414# Variables whose values should be saved in libtool wrapper scripts and
35415# restored at link time.
35416variables_saved_for_relink=$lt_variables_saved_for_relink
35417
35418# Do we need the "lib" prefix for modules?
35419need_lib_prefix=$need_lib_prefix
35420
35421# Do we need a version for libraries?
35422need_version=$need_version
35423
35424# Library versioning type.
35425version_type=$version_type
35426
35427# Shared library runtime path variable.
35428runpath_var=$runpath_var
35429
35430# Shared library path variable.
35431shlibpath_var=$shlibpath_var
35432
35433# Is shlibpath searched before the hard-coded library search path?
35434shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35435
35436# Format of library name prefix.
35437libname_spec=$lt_libname_spec
35438
35439# List of archive names. First name is the real one, the rest are links.
35440# The last name is the one that the linker finds with -lNAME
35441library_names_spec=$lt_library_names_spec
35442
35443# The coded name of the library, if different from the real name.
35444soname_spec=$lt_soname_spec
35445
35446# Command to use after installation of a shared archive.
35447postinstall_cmds=$lt_postinstall_cmds
35448
35449# Command to use after uninstallation of a shared archive.
35450postuninstall_cmds=$lt_postuninstall_cmds
35451
35452# Commands used to finish a libtool library installation in a directory.
35453finish_cmds=$lt_finish_cmds
35454
35455# As "finish_cmds", except a single script fragment to be evaled but
35456# not shown.
35457finish_eval=$lt_finish_eval
35458
35459# Whether we should hardcode library paths into libraries.
35460hardcode_into_libs=$hardcode_into_libs
35461
35462# Compile-time system search path for libraries.
35463sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35464
35465# Run-time system search path for libraries.
35466sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35467
35468# Whether dlopen is supported.
35469dlopen_support=$enable_dlopen
35470
35471# Whether dlopen of programs is supported.
35472dlopen_self=$enable_dlopen_self
35473
35474# Whether dlopen of statically linked programs is supported.
35475dlopen_self_static=$enable_dlopen_self_static
35476
35477# Commands to strip libraries.
35478old_striplib=$lt_old_striplib
35479striplib=$lt_striplib
35480
35481
35482# The linker used to build libraries.
35483LD=$lt_LD
35484
35485# Commands used to build an old-style archive.
35486old_archive_cmds=$lt_old_archive_cmds
35487
35488# A language specific compiler.
35489CC=$lt_compiler
35490
35491# Is the compiler the GNU compiler?
35492with_gcc=$GCC
35493
35494# Compiler flag to turn off builtin functions.
35495no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35496
35497# How to pass a linker flag through the compiler.
35498wl=$lt_lt_prog_compiler_wl
35499
35500# Additional compiler flags for building library objects.
35501pic_flag=$lt_lt_prog_compiler_pic
35502
35503# Compiler flag to prevent dynamic linking.
35504link_static_flag=$lt_lt_prog_compiler_static
35505
35506# Does compiler simultaneously support -c and -o options?
35507compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35508
35509# Whether or not to add -lc for building shared libraries.
35510build_libtool_need_lc=$archive_cmds_need_lc
35511
35512# Whether or not to disallow shared libs when runtime libs are static.
35513allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35514
35515# Compiler flag to allow reflexive dlopens.
35516export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35517
35518# Compiler flag to generate shared objects directly from archives.
35519whole_archive_flag_spec=$lt_whole_archive_flag_spec
35520
35521# Whether the compiler copes with passing no objects directly.
35522compiler_needs_object=$lt_compiler_needs_object
35523
35524# Create an old-style archive from a shared archive.
35525old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35526
35527# Create a temporary old-style archive to link instead of a shared archive.
35528old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35529
35530# Commands used to build a shared archive.
35531archive_cmds=$lt_archive_cmds
35532archive_expsym_cmds=$lt_archive_expsym_cmds
35533
35534# Commands used to build a loadable module if different from building
35535# a shared archive.
35536module_cmds=$lt_module_cmds
35537module_expsym_cmds=$lt_module_expsym_cmds
35538
35539# Whether we are building with GNU ld or not.
35540with_gnu_ld=$lt_with_gnu_ld
35541
35542# Flag that allows shared libraries with undefined symbols to be built.
35543allow_undefined_flag=$lt_allow_undefined_flag
35544
35545# Flag that enforces no undefined symbols.
35546no_undefined_flag=$lt_no_undefined_flag
35547
35548# Flag to hardcode \$libdir into a binary during linking.
35549# This must work even if \$libdir does not exist
35550hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35551
35552# If ld is used when linking, flag to hardcode \$libdir into a binary
35553# during linking. This must work even if \$libdir does not exist.
35554hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35555
35556# Whether we need a single "-rpath" flag with a separated argument.
35557hardcode_libdir_separator=$lt_hardcode_libdir_separator
35558
35559# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35560# DIR into the resulting binary.
35561hardcode_direct=$hardcode_direct
35562
35563# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35564# DIR into the resulting binary and the resulting library dependency is
35565# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35566# library is relocated.
35567hardcode_direct_absolute=$hardcode_direct_absolute
35568
35569# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35570# into the resulting binary.
35571hardcode_minus_L=$hardcode_minus_L
35572
35573# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35574# into the resulting binary.
35575hardcode_shlibpath_var=$hardcode_shlibpath_var
35576
35577# Set to "yes" if building a shared library automatically hardcodes DIR
35578# into the library and all subsequent libraries and executables linked
35579# against it.
35580hardcode_automatic=$hardcode_automatic
35581
35582# Set to yes if linker adds runtime paths of dependent libraries
35583# to runtime path list.
35584inherit_rpath=$inherit_rpath
35585
35586# Whether libtool must link a program against all its dependency libraries.
35587link_all_deplibs=$link_all_deplibs
35588
35589# Fix the shell variable \$srcfile for the compiler.
35590fix_srcfile_path=$lt_fix_srcfile_path
35591
35592# Set to "yes" if exported symbols are required.
35593always_export_symbols=$always_export_symbols
35594
35595# The commands to list exported symbols.
35596export_symbols_cmds=$lt_export_symbols_cmds
35597
35598# Symbols that should not be listed in the preloaded symbols.
35599exclude_expsyms=$lt_exclude_expsyms
35600
35601# Symbols that must always be exported.
35602include_expsyms=$lt_include_expsyms
35603
35604# Commands necessary for linking programs (against libraries) with templates.
35605prelink_cmds=$lt_prelink_cmds
35606
35607# Specify filename containing input files.
35608file_list_spec=$lt_file_list_spec
35609
35610# How to hardcode a shared library path into an executable.
35611hardcode_action=$hardcode_action
35612
35613# Dependencies to place before and after the objects being linked to
35614# create a shared library.
35615predep_objects=$lt_predep_objects
35616postdep_objects=$lt_postdep_objects
35617predeps=$lt_predeps
35618postdeps=$lt_postdeps
35619
35620# The library search path used internally by the compiler when linking
35621# a shared library.
35622compiler_lib_search_path=$lt_compiler_lib_search_path
35623
35624# ### END LIBTOOL CONFIG
35625
35626_LT_EOF
35627
35628 case $host_os in
35629 aix3*)
35630 cat <<\_LT_EOF >> "$cfgfile"
35631# AIX sometimes has problems with the GCC collect2 program. For some
35632# reason, if we set the COLLECT_NAMES environment variable, the problems
35633# vanish in a puff of smoke.
35634if test "X${COLLECT_NAMES+set}" != Xset; then
35635 COLLECT_NAMES=
35636 export COLLECT_NAMES
35637fi
35638_LT_EOF
35639 ;;
35640 esac
35641
35642
35643ltmain="$ac_aux_dir/ltmain.sh"
35644
35645
35646 # We use sed instead of cat because bash on DJGPP gets confused if
35647 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35648 # text mode, it properly converts lines to CR/LF. This bash problem
35649 # is reportedly fixed, but why not run on old versions too?
35650 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35651 || (rm -f "$cfgfile"; exit 1)
35652
35653 case $xsi_shell in
35654 yes)
35655 cat << \_LT_EOF >> "$cfgfile"
35656# func_dirname file append nondir_replacement
35657# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35658# otherwise set result to NONDIR_REPLACEMENT.
35659func_dirname ()
35660{
35661 case ${1} in
35662 */*) func_dirname_result="${1%/*}${2}" ;;
35663 * ) func_dirname_result="${3}" ;;
35664 esac
35665}
35666
35667# func_basename file
35668func_basename ()
35669{
35670 func_basename_result="${1##*/}"
35671}
35672
35673# func_stripname prefix suffix name
35674# strip PREFIX and SUFFIX off of NAME.
35675# PREFIX and SUFFIX must not contain globbing or regex special
35676# characters, hashes, percent signs, but SUFFIX may contain a leading
35677# dot (in which case that matches only a dot).
35678func_stripname ()
35679{
35680 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35681 # positional parameters, so assign one to ordinary parameter first.
35682 func_stripname_result=${3}
35683 func_stripname_result=${func_stripname_result#"${1}"}
35684 func_stripname_result=${func_stripname_result%"${2}"}
35685}
35686
35687# func_opt_split
35688func_opt_split ()
35689{
35690 func_opt_split_opt=${1%%=*}
35691 func_opt_split_arg=${1#*=}
35692}
35693
35694# func_lo2o object
35695func_lo2o ()
35696{
35697 case ${1} in
35698 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35699 *) func_lo2o_result=${1} ;;
35700 esac
35701}
35702_LT_EOF
35703 ;;
35704 *) # Bourne compatible functions.
35705 cat << \_LT_EOF >> "$cfgfile"
35706# func_dirname file append nondir_replacement
35707# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35708# otherwise set result to NONDIR_REPLACEMENT.
35709func_dirname ()
35710{
35711 # Extract subdirectory from the argument.
35712 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
35713 if test "X$func_dirname_result" = "X${1}"; then
35714 func_dirname_result="${3}"
35715 else
35716 func_dirname_result="$func_dirname_result${2}"
35717 fi
35718}
35719
35720# func_basename file
35721func_basename ()
35722{
35723 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
35724}
35725
35726# func_stripname prefix suffix name
35727# strip PREFIX and SUFFIX off of NAME.
35728# PREFIX and SUFFIX must not contain globbing or regex special
35729# characters, hashes, percent signs, but SUFFIX may contain a leading
35730# dot (in which case that matches only a dot).
35731# func_strip_suffix prefix name
35732func_stripname ()
35733{
35734 case ${2} in
35735 .*) func_stripname_result=`$ECHO "X${3}" \
35736 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
35737 *) func_stripname_result=`$ECHO "X${3}" \
35738 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
35739 esac
35740}
35741
35742# sed scripts:
35743my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35744my_sed_long_arg='1s/^-[^=]*=//'
35745
35746# func_opt_split
35747func_opt_split ()
35748{
35749 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
35750 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
35751}
35752
35753# func_lo2o object
35754func_lo2o ()
35755{
35756 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
35757}
35758_LT_EOF
35759esac
35760
35761case $lt_shell_append in
35762 yes)
35763 cat << \_LT_EOF >> "$cfgfile"
35764
35765# func_append var value
35766# Append VALUE to the end of shell variable VAR.
35767func_append ()
35768{
35769 eval "$1+=\$2"
35770}
35771_LT_EOF
35772 ;;
35773 *)
35774 cat << \_LT_EOF >> "$cfgfile"
35775
35776# func_append var value
35777# Append VALUE to the end of shell variable VAR.
35778func_append ()
35779{
35780 eval "$1=\$$1\$2"
35781}
35782_LT_EOF
35783 ;;
35784 esac
35785
35786
35787 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35788 || (rm -f "$cfgfile"; exit 1)
35789
35790 mv -f "$cfgfile" "$ofile" ||
35791 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35792 chmod +x "$ofile"
35793
35794
35795 cat <<_LT_EOF >> "$ofile"
35796
35797# ### BEGIN LIBTOOL TAG CONFIG: FC
35798
35799# The linker used to build libraries.
35800LD=$lt_LD_FC
35801
35802# Commands used to build an old-style archive.
35803old_archive_cmds=$lt_old_archive_cmds_FC
35804
35805# A language specific compiler.
35806CC=$lt_compiler_FC
35807
35808# Is the compiler the GNU compiler?
35809with_gcc=$GCC_FC
35810
35811# Compiler flag to turn off builtin functions.
35812no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
35813
35814# How to pass a linker flag through the compiler.
35815wl=$lt_lt_prog_compiler_wl_FC
35816
35817# Additional compiler flags for building library objects.
35818pic_flag=$lt_lt_prog_compiler_pic_FC
35819
35820# Compiler flag to prevent dynamic linking.
35821link_static_flag=$lt_lt_prog_compiler_static_FC
35822
35823# Does compiler simultaneously support -c and -o options?
35824compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
35825
35826# Whether or not to add -lc for building shared libraries.
35827build_libtool_need_lc=$archive_cmds_need_lc_FC
35828
35829# Whether or not to disallow shared libs when runtime libs are static.
35830allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
35831
35832# Compiler flag to allow reflexive dlopens.
35833export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
35834
35835# Compiler flag to generate shared objects directly from archives.
35836whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
35837
35838# Whether the compiler copes with passing no objects directly.
35839compiler_needs_object=$lt_compiler_needs_object_FC
35840
35841# Create an old-style archive from a shared archive.
35842old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
35843
35844# Create a temporary old-style archive to link instead of a shared archive.
35845old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
35846
35847# Commands used to build a shared archive.
35848archive_cmds=$lt_archive_cmds_FC
35849archive_expsym_cmds=$lt_archive_expsym_cmds_FC
35850
35851# Commands used to build a loadable module if different from building
35852# a shared archive.
35853module_cmds=$lt_module_cmds_FC
35854module_expsym_cmds=$lt_module_expsym_cmds_FC
35855
35856# Whether we are building with GNU ld or not.
35857with_gnu_ld=$lt_with_gnu_ld_FC
35858
35859# Flag that allows shared libraries with undefined symbols to be built.
35860allow_undefined_flag=$lt_allow_undefined_flag_FC
35861
35862# Flag that enforces no undefined symbols.
35863no_undefined_flag=$lt_no_undefined_flag_FC
35864
35865# Flag to hardcode \$libdir into a binary during linking.
35866# This must work even if \$libdir does not exist
35867hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
35868
35869# If ld is used when linking, flag to hardcode \$libdir into a binary
35870# during linking. This must work even if \$libdir does not exist.
35871hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
35872
35873# Whether we need a single "-rpath" flag with a separated argument.
35874hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
35875
35876# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35877# DIR into the resulting binary.
35878hardcode_direct=$hardcode_direct_FC
35879
35880# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35881# DIR into the resulting binary and the resulting library dependency is
35882# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35883# library is relocated.
35884hardcode_direct_absolute=$hardcode_direct_absolute_FC
35885
35886# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35887# into the resulting binary.
35888hardcode_minus_L=$hardcode_minus_L_FC
35889
35890# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35891# into the resulting binary.
35892hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
35893
35894# Set to "yes" if building a shared library automatically hardcodes DIR
35895# into the library and all subsequent libraries and executables linked
35896# against it.
35897hardcode_automatic=$hardcode_automatic_FC
35898
35899# Set to yes if linker adds runtime paths of dependent libraries
35900# to runtime path list.
35901inherit_rpath=$inherit_rpath_FC
35902
35903# Whether libtool must link a program against all its dependency libraries.
35904link_all_deplibs=$link_all_deplibs_FC
35905
35906# Fix the shell variable \$srcfile for the compiler.
35907fix_srcfile_path=$lt_fix_srcfile_path_FC
35908
35909# Set to "yes" if exported symbols are required.
35910always_export_symbols=$always_export_symbols_FC
35911
35912# The commands to list exported symbols.
35913export_symbols_cmds=$lt_export_symbols_cmds_FC
35914
35915# Symbols that should not be listed in the preloaded symbols.
35916exclude_expsyms=$lt_exclude_expsyms_FC
35917
35918# Symbols that must always be exported.
35919include_expsyms=$lt_include_expsyms_FC
35920
35921# Commands necessary for linking programs (against libraries) with templates.
35922prelink_cmds=$lt_prelink_cmds_FC
35923
35924# Specify filename containing input files.
35925file_list_spec=$lt_file_list_spec_FC
35926
35927# How to hardcode a shared library path into an executable.
35928hardcode_action=$hardcode_action_FC
35929
35930# Dependencies to place before and after the objects being linked to
35931# create a shared library.
35932predep_objects=$lt_predep_objects_FC
35933postdep_objects=$lt_postdep_objects_FC
35934predeps=$lt_predeps_FC
35935postdeps=$lt_postdeps_FC
35936
35937# The library search path used internally by the compiler when linking
35938# a shared library.
35939compiler_lib_search_path=$lt_compiler_lib_search_path_FC
35940
35941# ### END LIBTOOL TAG CONFIG: FC
35942_LT_EOF
35943
679c0f9a 35944 ;;
38d24731 35945 gstdint.h )
4c4b3eb0
PB
35946if test "$GCC" = yes; then
35947 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
35948else
35949 echo "/* generated for $CC */" > tmp-stdint.h
35950fi
35951
35952sed 's/^ *//' >> tmp-stdint.h <<EOF
35953
35954 #ifndef GCC_GENERATED_STDINT_H
35955 #define GCC_GENERATED_STDINT_H 1
35956
35957 #include <sys/types.h>
35958EOF
35959
35960if test "$acx_cv_header_stdint" != stdint.h; then
35961 echo "#include <stddef.h>" >> tmp-stdint.h
35962fi
35963if test "$acx_cv_header_stdint" != stddef.h; then
35964 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
35965fi
35966
35967sed 's/^ *//' >> tmp-stdint.h <<EOF
35968 /* glibc uses these symbols as guards to prevent redefinitions. */
35969 #ifdef __int8_t_defined
35970 #define _INT8_T
35971 #define _INT16_T
35972 #define _INT32_T
35973 #endif
35974 #ifdef __uint32_t_defined
35975 #define _UINT32_T
35976 #endif
35977
35978EOF
35979
35980# ----------------- done header, emit basic int types -------------
35981if test "$acx_cv_header_stdint" = stddef.h; then
35982 sed 's/^ *//' >> tmp-stdint.h <<EOF
35983
35984 #ifndef _UINT8_T
35985 #define _UINT8_T
c18b8a1c
KT
35986 #ifndef __uint8_t_defined
35987 #define __uint8_t_defined
4c4b3eb0
PB
35988 typedef unsigned $acx_cv_type_int8_t uint8_t;
35989 #endif
c18b8a1c 35990 #endif
4c4b3eb0
PB
35991
35992 #ifndef _UINT16_T
35993 #define _UINT16_T
c18b8a1c
KT
35994 #ifndef __uint16_t_defined
35995 #define __uint16_t_defined
4c4b3eb0
PB
35996 typedef unsigned $acx_cv_type_int16_t uint16_t;
35997 #endif
c18b8a1c 35998 #endif
4c4b3eb0
PB
35999
36000 #ifndef _UINT32_T
36001 #define _UINT32_T
c18b8a1c
KT
36002 #ifndef __uint32_t_defined
36003 #define __uint32_t_defined
4c4b3eb0
PB
36004 typedef unsigned $acx_cv_type_int32_t uint32_t;
36005 #endif
c18b8a1c 36006 #endif
4c4b3eb0
PB
36007
36008 #ifndef _INT8_T
36009 #define _INT8_T
c18b8a1c
KT
36010 #ifndef __int8_t_defined
36011 #define __int8_t_defined
4c4b3eb0
PB
36012 typedef $acx_cv_type_int8_t int8_t;
36013 #endif
c18b8a1c 36014 #endif
4c4b3eb0
PB
36015
36016 #ifndef _INT16_T
36017 #define _INT16_T
c18b8a1c
KT
36018 #ifndef __int16_t_defined
36019 #define __int16_t_defined
4c4b3eb0
PB
36020 typedef $acx_cv_type_int16_t int16_t;
36021 #endif
c18b8a1c 36022 #endif
4c4b3eb0
PB
36023
36024 #ifndef _INT32_T
36025 #define _INT32_T
c18b8a1c
KT
36026 #ifndef __int32_t_defined
36027 #define __int32_t_defined
4c4b3eb0
PB
36028 typedef $acx_cv_type_int32_t int32_t;
36029 #endif
c18b8a1c 36030 #endif
4c4b3eb0
PB
36031EOF
36032elif test "$ac_cv_type_u_int32_t" = yes; then
36033 sed 's/^ *//' >> tmp-stdint.h <<EOF
36034
36035 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
36036 #ifndef _INT8_T
36037 #define _INT8_T
36038 #endif
36039 #ifndef _INT16_T
36040 #define _INT16_T
36041 #endif
36042 #ifndef _INT32_T
36043 #define _INT32_T
36044 #endif
36045
36046 #ifndef _UINT8_T
36047 #define _UINT8_T
c18b8a1c
KT
36048 #ifndef __uint8_t_defined
36049 #define __uint8_t_defined
4c4b3eb0
PB
36050 typedef u_int8_t uint8_t;
36051 #endif
c18b8a1c 36052 #endif
4c4b3eb0
PB
36053
36054 #ifndef _UINT16_T
36055 #define _UINT16_T
c18b8a1c
KT
36056 #ifndef __uint16_t_defined
36057 #define __uint16_t_defined
4c4b3eb0
PB
36058 typedef u_int16_t uint16_t;
36059 #endif
c18b8a1c 36060 #endif
4c4b3eb0
PB
36061
36062 #ifndef _UINT32_T
36063 #define _UINT32_T
c18b8a1c
KT
36064 #ifndef __uint32_t_defined
36065 #define __uint32_t_defined
4c4b3eb0
PB
36066 typedef u_int32_t uint32_t;
36067 #endif
c18b8a1c 36068 #endif
4c4b3eb0
PB
36069EOF
36070else
36071 sed 's/^ *//' >> tmp-stdint.h <<EOF
36072
36073 /* Some systems have guard macros to prevent redefinitions, define them. */
36074 #ifndef _INT8_T
36075 #define _INT8_T
36076 #endif
36077 #ifndef _INT16_T
36078 #define _INT16_T
36079 #endif
36080 #ifndef _INT32_T
36081 #define _INT32_T
36082 #endif
36083 #ifndef _UINT8_T
36084 #define _UINT8_T
36085 #endif
36086 #ifndef _UINT16_T
36087 #define _UINT16_T
36088 #endif
36089 #ifndef _UINT32_T
36090 #define _UINT32_T
36091 #endif
36092EOF
36093fi
36094
36095# ------------- done basic int types, emit int64_t types ------------
36096if test "$ac_cv_type_uint64_t" = yes; then
36097 sed 's/^ *//' >> tmp-stdint.h <<EOF
36098
36099 /* system headers have good uint64_t and int64_t */
36100 #ifndef _INT64_T
36101 #define _INT64_T
36102 #endif
36103 #ifndef _UINT64_T
36104 #define _UINT64_T
36105 #endif
36106EOF
36107elif test "$ac_cv_type_u_int64_t" = yes; then
36108 sed 's/^ *//' >> tmp-stdint.h <<EOF
36109
36110 /* system headers have an u_int64_t (and int64_t) */
36111 #ifndef _INT64_T
36112 #define _INT64_T
36113 #endif
36114 #ifndef _UINT64_T
36115 #define _UINT64_T
c18b8a1c
KT
36116 #ifndef __uint64_t_defined
36117 #define __uint64_t_defined
4c4b3eb0
PB
36118 typedef u_int64_t uint64_t;
36119 #endif
c18b8a1c 36120 #endif
4c4b3eb0
PB
36121EOF
36122elif test -n "$acx_cv_type_int64_t"; then
36123 sed 's/^ *//' >> tmp-stdint.h <<EOF
36124
36125 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
36126 #ifndef _INT64_T
36127 #define _INT64_T
36128 typedef $acx_cv_type_int64_t int64_t;
36129 #endif
36130 #ifndef _UINT64_T
36131 #define _UINT64_T
c18b8a1c
KT
36132 #ifndef __uint64_t_defined
36133 #define __uint64_t_defined
4c4b3eb0
PB
36134 typedef unsigned $acx_cv_type_int64_t uint64_t;
36135 #endif
c18b8a1c 36136 #endif
4c4b3eb0
PB
36137EOF
36138else
36139 sed 's/^ *//' >> tmp-stdint.h <<EOF
36140
36141 /* some common heuristics for int64_t, using compiler-specific tests */
36142 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
36143 #ifndef _INT64_T
36144 #define _INT64_T
c18b8a1c 36145 #ifndef __int64_t_defined
4c4b3eb0
PB
36146 typedef long long int64_t;
36147 #endif
c18b8a1c 36148 #endif
4c4b3eb0
PB
36149 #ifndef _UINT64_T
36150 #define _UINT64_T
36151 typedef unsigned long long uint64_t;
36152 #endif
36153
36154 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
36155 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
36156 does not implement __extension__. But that compiler doesn't define
36157 __GNUC_MINOR__. */
36158 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
36159 # define __extension__
36160 # endif
36161
36162 # ifndef _INT64_T
36163 # define _INT64_T
36164 __extension__ typedef long long int64_t;
36165 # endif
36166 # ifndef _UINT64_T
36167 # define _UINT64_T
36168 __extension__ typedef unsigned long long uint64_t;
36169 # endif
36170
36171 #elif !defined __STRICT_ANSI__
36172 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
36173
36174 # ifndef _INT64_T
36175 # define _INT64_T
36176 typedef __int64 int64_t;
36177 # endif
36178 # ifndef _UINT64_T
36179 # define _UINT64_T
36180 typedef unsigned __int64 uint64_t;
36181 # endif
36182 # endif /* compiler */
36183
36184 #endif /* ANSI version */
36185EOF
36186fi
36187
36188# ------------- done int64_t types, emit intptr types ------------
36189if test "$ac_cv_type_uintptr_t" != yes; then
36190 sed 's/^ *//' >> tmp-stdint.h <<EOF
36191
36192 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
c18b8a1c 36193 #ifndef __uintptr_t_defined
4c4b3eb0 36194 typedef u$acx_cv_type_intptr_t uintptr_t;
c18b8a1c
KT
36195 #endif
36196 #ifndef __intptr_t_defined
4c4b3eb0 36197 typedef $acx_cv_type_intptr_t intptr_t;
c18b8a1c 36198 #endif
4c4b3eb0
PB
36199EOF
36200fi
36201
36202# ------------- done intptr types, emit int_least types ------------
36203if test "$ac_cv_type_int_least32_t" != yes; then
36204 sed 's/^ *//' >> tmp-stdint.h <<EOF
36205
36206 /* Define int_least types */
36207 typedef int8_t int_least8_t;
36208 typedef int16_t int_least16_t;
36209 typedef int32_t int_least32_t;
36210 #ifdef _INT64_T
36211 typedef int64_t int_least64_t;
36212 #endif
36213
36214 typedef uint8_t uint_least8_t;
36215 typedef uint16_t uint_least16_t;
36216 typedef uint32_t uint_least32_t;
36217 #ifdef _UINT64_T
36218 typedef uint64_t uint_least64_t;
36219 #endif
36220EOF
36221fi
36222
36223# ------------- done intptr types, emit int_fast types ------------
36224if test "$ac_cv_type_int_fast32_t" != yes; then
36225 sed 's/^ *//' >> tmp-stdint.h <<EOF
36226
36227 /* Define int_fast types. short is often slow */
36228 typedef int8_t int_fast8_t;
36229 typedef int int_fast16_t;
36230 typedef int32_t int_fast32_t;
36231 #ifdef _INT64_T
36232 typedef int64_t int_fast64_t;
36233 #endif
36234
36235 typedef uint8_t uint_fast8_t;
36236 typedef unsigned int uint_fast16_t;
36237 typedef uint32_t uint_fast32_t;
36238 #ifdef _UINT64_T
36239 typedef uint64_t uint_fast64_t;
36240 #endif
36241EOF
36242fi
36243
36244if test "$ac_cv_type_uintmax_t" != yes; then
36245 sed 's/^ *//' >> tmp-stdint.h <<EOF
36246
36247 /* Define intmax based on what we found */
36248 #ifdef _INT64_T
36249 typedef int64_t intmax_t;
36250 #else
36251 typedef long intmax_t;
36252 #endif
36253 #ifdef _UINT64_T
36254 typedef uint64_t uintmax_t;
36255 #else
36256 typedef unsigned long uintmax_t;
36257 #endif
36258EOF
36259fi
36260
36261sed 's/^ *//' >> tmp-stdint.h <<EOF
36262
36263 #endif /* GCC_GENERATED_STDINT_H */
36264EOF
36265
36266if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
36267 rm -f tmp-stdint.h
36268else
36269 mv -f tmp-stdint.h gstdint.h
36270fi
36271
36272 ;;
6de9cd9a 36273 esac
38d24731
RW
36274done
36275_ACEOF
6de9cd9a 36276
38d24731 36277cat >>$CONFIG_STATUS <<\_ACEOF
6de9cd9a
DN
36278
36279{ (exit 0); exit 0; }
36280_ACEOF
36281chmod +x $CONFIG_STATUS
36282ac_clean_files=$ac_clean_files_save
36283
36284
36285# configure is writing to config.log, and then calls config.status.
36286# config.status does its own redirection, appending to config.log.
36287# Unfortunately, on DOS this fails, as config.log is still kept open
36288# by configure, so config.status won't be able to write to it; its
36289# output is simply discarded. So we exec the FD to /dev/null,
36290# effectively closing config.log, so it can be properly (re)opened and
36291# appended to by config.status. When coming back to configure, we
36292# need to make the FD available again.
36293if test "$no_create" != yes; then
36294 ac_cs_success=:
36295 ac_config_status_args=
36296 test "$silent" = yes &&
36297 ac_config_status_args="$ac_config_status_args --quiet"
36298 exec 5>/dev/null
36299 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36300 exec 5>>config.log
36301 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36302 # would make configure fail if this is the last instruction.
36303 $ac_cs_success || { (exit 1); exit 1; }
36304fi
36305