]> git.ipfire.org Git - thirdparty/gcc.git/blame - libquadmath/configure
re PR bootstrap/47736 (libquadmath build broken with pre-2.10 glibc)
[thirdparty/gcc.git] / libquadmath / configure
CommitLineData
1ec601bf
FXC
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for GCC Quad-precision Math Library 0.1.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1d92226b 172test \$(( 1 + 1 )) = 2 || exit 1
1ec601bf
FXC
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
1d92226b 180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
1ec601bf
FXC
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
241 fi
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384else
385 as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390else
391 as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
399
400as_me=`$as_basename -- "$0" ||
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477fi
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492else
493 as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME='GCC Quad-precision Math Library'
558PACKAGE_TARNAME='libquadmath'
559PACKAGE_VERSION='0.1'
560PACKAGE_STRING='GCC Quad-precision Math Library 0.1'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
563
564# Factoring default headers for most tests.
565ac_includes_default="\
566#include <stdio.h>
567#ifdef HAVE_SYS_TYPES_H
568# include <sys/types.h>
569#endif
570#ifdef HAVE_SYS_STAT_H
571# include <sys/stat.h>
572#endif
573#ifdef STDC_HEADERS
574# include <stdlib.h>
575# include <stddef.h>
576#else
577# ifdef HAVE_STDLIB_H
578# include <stdlib.h>
579# endif
580#endif
581#ifdef HAVE_STRING_H
582# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583# include <memory.h>
584# endif
585# include <string.h>
586#endif
587#ifdef HAVE_STRINGS_H
588# include <strings.h>
589#endif
590#ifdef HAVE_INTTYPES_H
591# include <inttypes.h>
592#endif
593#ifdef HAVE_STDINT_H
594# include <stdint.h>
595#endif
596#ifdef HAVE_UNISTD_H
597# include <unistd.h>
598#endif"
599
600ac_subst_vars='am__EXEEXT_FALSE
601am__EXEEXT_TRUE
602LTLIBOBJS
603LIBOBJS
4c993c44
TB
604GENINSRC_FALSE
605GENINSRC_TRUE
1ec601bf
FXC
606BUILD_LIBQUADMATH_FALSE
607BUILD_LIBQUADMATH_TRUE
608LIBQUAD_USE_SYMVER_SUN_FALSE
609LIBQUAD_USE_SYMVER_SUN_TRUE
610LIBQUAD_USE_SYMVER_GNU_FALSE
611LIBQUAD_USE_SYMVER_GNU_TRUE
612LIBQUAD_USE_SYMVER_FALSE
613LIBQUAD_USE_SYMVER_TRUE
614toolexeclibdir
615toolexecdir
616multi_basedir
617MAINT
618MAINTAINER_MODE_FALSE
619MAINTAINER_MODE_TRUE
620enable_static
621enable_shared
7de6ba7a 622lt_host_flags
1ec601bf
FXC
623OTOOL64
624OTOOL
625LIPO
626NMEDIT
627DSYMUTIL
628RANLIB
629AR
630OBJDUMP
631LN_S
632NM
633ac_ct_DUMPBIN
634DUMPBIN
635LD
636FGREP
1d92226b
JJ
637SED
638LIBTOOL
639REPORT_BUGS_TEXI
640REPORT_BUGS_TO
641BUILD_INFO_FALSE
642BUILD_INFO_TRUE
1ec601bf
FXC
643EGREP
644GREP
1d92226b 645CPP
1ec601bf
FXC
646am__fastdepCC_FALSE
647am__fastdepCC_TRUE
648CCDEPMODE
649AMDEPBACKSLASH
650AMDEP_FALSE
651AMDEP_TRUE
652am__quote
653am__include
654DEPDIR
655OBJEXT
656EXEEXT
657ac_ct_CC
658CPPFLAGS
659LDFLAGS
660CFLAGS
661CC
662am__untar
663am__tar
664AMTAR
665am__leading_dot
666SET_MAKE
667AWK
668mkdir_p
669MKDIR_P
670INSTALL_STRIP_PROGRAM
671STRIP
672install_sh
673MAKEINFO
674AUTOHEADER
675AUTOMAKE
676AUTOCONF
677ACLOCAL
678VERSION
679PACKAGE
680CYGPATH_W
681am__isrc
682INSTALL_DATA
683INSTALL_SCRIPT
684INSTALL_PROGRAM
fabfcf5e 685target_noncanonical
1ec601bf
FXC
686target_os
687target_vendor
688target_cpu
689target
690host_os
691host_vendor
692host_cpu
693host
694build_os
695build_vendor
696build_cpu
697build
698target_alias
699host_alias
700build_alias
701LIBS
702ECHO_T
703ECHO_N
704ECHO_C
705DEFS
706mandir
707localedir
708libdir
709psdir
710pdfdir
711dvidir
712htmldir
713infodir
714docdir
715oldincludedir
716includedir
717localstatedir
718sharedstatedir
719sysconfdir
720datadir
721datarootdir
722libexecdir
723sbindir
724bindir
725program_transform_name
726prefix
727exec_prefix
728PACKAGE_URL
729PACKAGE_BUGREPORT
730PACKAGE_STRING
731PACKAGE_VERSION
732PACKAGE_TARNAME
733PACKAGE_NAME
734PATH_SEPARATOR
735SHELL'
736ac_subst_files=''
737ac_user_opts='
738enable_option_checking
1ec601bf 739enable_version_specific_runtime_libs
1d92226b 740enable_dependency_tracking
642d2873 741with_bugurl
1ec601bf
FXC
742enable_shared
743enable_static
744with_pic
745enable_fast_install
746with_gnu_ld
747enable_libtool_lock
748enable_maintainer_mode
749enable_multilib
4c993c44 750enable_generated_files_in_srcdir
1ec601bf
FXC
751'
752 ac_precious_vars='build_alias
753host_alias
754target_alias
755CC
756CFLAGS
757LDFLAGS
758LIBS
759CPPFLAGS
760CPP'
761
762
763# Initialize some variables set by options.
764ac_init_help=
765ac_init_version=false
766ac_unrecognized_opts=
767ac_unrecognized_sep=
768# The variables have the same names as the options, with
769# dashes changed to underlines.
770cache_file=/dev/null
771exec_prefix=NONE
772no_create=
773no_recursion=
774prefix=NONE
775program_prefix=NONE
776program_suffix=NONE
777program_transform_name=s,x,x,
778silent=
779site=
780srcdir=
781verbose=
782x_includes=NONE
783x_libraries=NONE
784
785# Installation directory options.
786# These are left unexpanded so users can "make install exec_prefix=/foo"
787# and all the variables that are supposed to be based on exec_prefix
788# by default will actually change.
789# Use braces instead of parens because sh, perl, etc. also accept them.
790# (The list follows the same order as the GNU Coding Standards.)
791bindir='${exec_prefix}/bin'
792sbindir='${exec_prefix}/sbin'
793libexecdir='${exec_prefix}/libexec'
794datarootdir='${prefix}/share'
795datadir='${datarootdir}'
796sysconfdir='${prefix}/etc'
797sharedstatedir='${prefix}/com'
798localstatedir='${prefix}/var'
799includedir='${prefix}/include'
800oldincludedir='/usr/include'
801docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
802infodir='${datarootdir}/info'
803htmldir='${docdir}'
804dvidir='${docdir}'
805pdfdir='${docdir}'
806psdir='${docdir}'
807libdir='${exec_prefix}/lib'
808localedir='${datarootdir}/locale'
809mandir='${datarootdir}/man'
810
811ac_prev=
812ac_dashdash=
813for ac_option
814do
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
817 eval $ac_prev=\$ac_option
818 ac_prev=
819 continue
820 fi
821
822 case $ac_option in
823 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824 *) ac_optarg=yes ;;
825 esac
826
827 # Accept the important Cygnus configure options, so we can diagnose typos.
828
829 case $ac_dashdash$ac_option in
830 --)
831 ac_dashdash=yes ;;
832
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 ac_prev=bindir ;;
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836 bindir=$ac_optarg ;;
837
838 -build | --build | --buil | --bui | --bu)
839 ac_prev=build_alias ;;
840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841 build_alias=$ac_optarg ;;
842
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848 cache_file=$ac_optarg ;;
849
850 --config-cache | -C)
851 cache_file=config.cache ;;
852
853 -datadir | --datadir | --datadi | --datad)
854 ac_prev=datadir ;;
855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
856 datadir=$ac_optarg ;;
857
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
864
865 -disable-* | --disable-*)
866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error "invalid feature name: $ac_useropt"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
873 *"
874"enable_$ac_useropt"
875"*) ;;
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
878 esac
879 eval enable_$ac_useropt=no ;;
880
881 -docdir | --docdir | --docdi | --doc | --do)
882 ac_prev=docdir ;;
883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884 docdir=$ac_optarg ;;
885
886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887 ac_prev=dvidir ;;
888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889 dvidir=$ac_optarg ;;
890
891 -enable-* | --enable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900"enable_$ac_useropt"
901"*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=\$ac_optarg ;;
906
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
914 exec_prefix=$ac_optarg ;;
915
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
918 with_gas=yes ;;
919
920 -help | --help | --hel | --he | -h)
921 ac_init_help=long ;;
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
926
927 -host | --host | --hos | --ho)
928 ac_prev=host_alias ;;
929 -host=* | --host=* | --hos=* | --ho=*)
930 host_alias=$ac_optarg ;;
931
932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933 ac_prev=htmldir ;;
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935 | --ht=*)
936 htmldir=$ac_optarg ;;
937
938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
943 includedir=$ac_optarg ;;
944
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
946 ac_prev=infodir ;;
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948 infodir=$ac_optarg ;;
949
950 -libdir | --libdir | --libdi | --libd)
951 ac_prev=libdir ;;
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
953 libdir=$ac_optarg ;;
954
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
960 libexecdir=$ac_optarg ;;
961
962 -localedir | --localedir | --localedi | --localed | --locale)
963 ac_prev=localedir ;;
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
966
967 -localstatedir | --localstatedir | --localstatedi | --localstated \
968 | --localstate | --localstat | --localsta | --localst | --locals)
969 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972 localstatedir=$ac_optarg ;;
973
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975 ac_prev=mandir ;;
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
977 mandir=$ac_optarg ;;
978
979 -nfp | --nfp | --nf)
980 # Obsolete; use --without-fp.
981 with_fp=no ;;
982
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984 | --no-cr | --no-c | -n)
985 no_create=yes ;;
986
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989 no_recursion=yes ;;
990
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998 oldincludedir=$ac_optarg ;;
999
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001 ac_prev=prefix ;;
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003 prefix=$ac_optarg ;;
1004
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010 program_prefix=$ac_optarg ;;
1011
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017 program_suffix=$ac_optarg ;;
1018
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
1027 -program-transform-name=* | --program-transform-name=* \
1028 | --program-transform-nam=* | --program-transform-na=* \
1029 | --program-transform-n=* | --program-transform-=* \
1030 | --program-transform=* | --program-transfor=* \
1031 | --program-transfo=* | --program-transf=* \
1032 | --program-trans=* | --program-tran=* \
1033 | --progr-tra=* | --program-tr=* | --program-t=*)
1034 program_transform_name=$ac_optarg ;;
1035
1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037 ac_prev=pdfdir ;;
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1040
1041 -psdir | --psdir | --psdi | --psd | --ps)
1042 ac_prev=psdir ;;
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044 psdir=$ac_optarg ;;
1045
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1048 silent=yes ;;
1049
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051 ac_prev=sbindir ;;
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053 | --sbi=* | --sb=*)
1054 sbindir=$ac_optarg ;;
1055
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1059 | --sha | --sh)
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064 | --sha=* | --sh=*)
1065 sharedstatedir=$ac_optarg ;;
1066
1067 -site | --site | --sit)
1068 ac_prev=site ;;
1069 -site=* | --site=* | --sit=*)
1070 site=$ac_optarg ;;
1071
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073 ac_prev=srcdir ;;
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075 srcdir=$ac_optarg ;;
1076
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082 sysconfdir=$ac_optarg ;;
1083
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
1085 ac_prev=target_alias ;;
1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087 target_alias=$ac_optarg ;;
1088
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090 verbose=yes ;;
1091
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
1094
1095 -with-* | --with-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error "invalid package name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1103 *"
1104"with_$ac_useropt"
1105"*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval with_$ac_useropt=\$ac_optarg ;;
1110
1111 -without-* | --without-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1119 *"
1120"with_$ac_useropt"
1121"*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=no ;;
1126
1127 --x)
1128 # Obsolete; use --with-x.
1129 with_x=yes ;;
1130
1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132 | --x-incl | --x-inc | --x-in | --x-i)
1133 ac_prev=x_includes ;;
1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1136 x_includes=$ac_optarg ;;
1137
1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140 ac_prev=x_libraries ;;
1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1143 x_libraries=$ac_optarg ;;
1144
1145 -*) as_fn_error "unrecognized option: \`$ac_option'
1146Try \`$0 --help' for more information."
1147 ;;
1148
1149 *=*)
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 case $ac_envvar in #(
1153 '' | [0-9]* | *[!_$as_cr_alnum]* )
1154 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1155 esac
1156 eval $ac_envvar=\$ac_optarg
1157 export $ac_envvar ;;
1158
1159 *)
1160 # FIXME: should be removed in autoconf 3.0.
1161 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1164 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1165 ;;
1166
1167 esac
1168done
1169
1170if test -n "$ac_prev"; then
1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1172 as_fn_error "missing argument to $ac_option"
1173fi
1174
1175if test -n "$ac_unrecognized_opts"; then
1176 case $enable_option_checking in
1177 no) ;;
1178 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1179 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1180 esac
1181fi
1182
1183# Check all directory arguments for consistency.
1184for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185 datadir sysconfdir sharedstatedir localstatedir includedir \
1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187 libdir localedir mandir
1188do
1189 eval ac_val=\$$ac_var
1190 # Remove trailing slashes.
1191 case $ac_val in
1192 */ )
1193 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1194 eval $ac_var=\$ac_val;;
1195 esac
1196 # Be sure to have absolute directory names.
1197 case $ac_val in
1198 [\\/$]* | ?:[\\/]* ) continue;;
1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1200 esac
1201 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1202done
1203
1204# There might be people who depend on the old broken behavior: `$host'
1205# used to hold the argument of --host etc.
1206# FIXME: To remove some day.
1207build=$build_alias
1208host=$host_alias
1209target=$target_alias
1210
1211# FIXME: To remove some day.
1212if test "x$host_alias" != x; then
1213 if test "x$build_alias" = x; then
1214 cross_compiling=maybe
1215 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1216 If a cross compiler is detected then cross compile mode will be used." >&2
1217 elif test "x$build_alias" != "x$host_alias"; then
1218 cross_compiling=yes
1219 fi
1220fi
1221
1222ac_tool_prefix=
1223test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224
1225test "$silent" = yes && exec 6>/dev/null
1226
1227
1228ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229ac_ls_di=`ls -di .` &&
1230ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231 as_fn_error "working directory cannot be determined"
1232test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 as_fn_error "pwd does not report name of working directory"
1234
1235
1236# Find the source files, if location was not specified.
1237if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
1239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$as_myself" ||
1241$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$as_myself" : 'X\(//\)[^/]' \| \
1243 X"$as_myself" : 'X\(//\)$' \| \
1244 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1245$as_echo X"$as_myself" |
1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247 s//\1/
1248 q
1249 }
1250 /^X\(\/\/\)[^/].*/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)$/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\).*/{
1259 s//\1/
1260 q
1261 }
1262 s/.*/./; q'`
1263 srcdir=$ac_confdir
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265 srcdir=..
1266 fi
1267else
1268 ac_srcdir_defaulted=no
1269fi
1270if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1273fi
1274ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275ac_abs_confdir=`(
1276 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1277 pwd)`
1278# When building in place, set srcdir=.
1279if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 srcdir=.
1281fi
1282# Remove unnecessary trailing slashes from srcdir.
1283# Double slashes in file names in object file debugging info
1284# mess up M-x gdb in Emacs.
1285case $srcdir in
1286*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287esac
1288for ac_var in $ac_precious_vars; do
1289 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_env_${ac_var}_value=\$${ac_var}
1291 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1293done
1294
1295#
1296# Report the --help message.
1297#
1298if test "$ac_init_help" = "long"; then
1299 # Omit some internal or obsolete options to make the list less imposing.
1300 # This message is too long to be a string in the A/UX 3.1 sh.
1301 cat <<_ACEOF
1302\`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
1303
1304Usage: $0 [OPTION]... [VAR=VALUE]...
1305
1306To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307VAR=VALUE. See below for descriptions of some of the useful variables.
1308
1309Defaults for the options are specified in brackets.
1310
1311Configuration:
1312 -h, --help display this help and exit
1313 --help=short display options specific to this package
1314 --help=recursive display the short help of all the included packages
1315 -V, --version display version information and exit
1316 -q, --quiet, --silent do not print \`checking...' messages
1317 --cache-file=FILE cache test results in FILE [disabled]
1318 -C, --config-cache alias for \`--cache-file=config.cache'
1319 -n, --no-create do not create output files
1320 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1321
1322Installation directories:
1323 --prefix=PREFIX install architecture-independent files in PREFIX
1324 [$ac_default_prefix]
1325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1326 [PREFIX]
1327
1328By default, \`make install' will install all the files in
1329\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1330an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331for instance \`--prefix=\$HOME'.
1332
1333For better control, use the options below.
1334
1335Fine tuning of the installation directories:
1336 --bindir=DIR user executables [EPREFIX/bin]
1337 --sbindir=DIR system admin executables [EPREFIX/sbin]
1338 --libexecdir=DIR program executables [EPREFIX/libexec]
1339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1342 --libdir=DIR object code libraries [EPREFIX/lib]
1343 --includedir=DIR C header files [PREFIX/include]
1344 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1347 --infodir=DIR info documentation [DATAROOTDIR/info]
1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1349 --mandir=DIR man documentation [DATAROOTDIR/man]
1350 --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath]
1351 --htmldir=DIR html documentation [DOCDIR]
1352 --dvidir=DIR dvi documentation [DOCDIR]
1353 --pdfdir=DIR pdf documentation [DOCDIR]
1354 --psdir=DIR ps documentation [DOCDIR]
1355_ACEOF
1356
1357 cat <<\_ACEOF
1358
1359Program names:
1360 --program-prefix=PREFIX prepend PREFIX to installed program names
1361 --program-suffix=SUFFIX append SUFFIX to installed program names
1362 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1363
1364System types:
1365 --build=BUILD configure for building on BUILD [guessed]
1366 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1367 --target=TARGET configure for building compilers for TARGET [HOST]
1368_ACEOF
1369fi
1370
1371if test -n "$ac_init_help"; then
1372 case $ac_init_help in
1373 short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
1374 esac
1375 cat <<\_ACEOF
1376
1377Optional Features:
1378 --disable-option-checking ignore unrecognized --enable/--with options
1379 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1380 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
4c993c44
TB
1381 --enable-version-specific-runtime-libs
1382 specify that runtime libraries should be installed
1383 in a compiler-specific directory
1d92226b
JJ
1384 --disable-dependency-tracking speeds up one-time build
1385 --enable-dependency-tracking do not reject slow dependency extractors
1ec601bf
FXC
1386 --enable-shared[=PKGS] build shared libraries [default=yes]
1387 --enable-static[=PKGS] build static libraries [default=yes]
1388 --enable-fast-install[=PKGS]
1389 optimize for fast installation [default=yes]
1390 --disable-libtool-lock avoid locking (might break parallel builds)
1391 --enable-maintainer-mode enable make rules and dependencies not useful
1392 (and sometimes confusing) to the casual installer
1393 --enable-multilib build many library versions (default)
4c993c44
TB
1394 --enable-generated-files-in-srcdir
1395 put copies of generated files in source dir intended
1396 for creating source tarballs for users without
1397 texinfo bison or flex
1ec601bf
FXC
1398
1399Optional Packages:
1400 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1401 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
642d2873 1402 --with-bugurl=URL Direct users to URL to report a bug
1ec601bf
FXC
1403 --with-pic try to use only PIC/non-PIC objects [default=use
1404 both]
1405 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1406
1407Some influential environment variables:
1408 CC C compiler command
1409 CFLAGS C compiler flags
1410 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1411 nonstandard directory <lib dir>
1412 LIBS libraries to pass to the linker, e.g. -l<library>
1413 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1414 you have headers in a nonstandard directory <include dir>
1415 CPP C preprocessor
1416
1417Use these variables to override the choices made by `configure' or to help
1418it to find libraries and programs with nonstandard names/locations.
1419
1420Report bugs to the package provider.
1421_ACEOF
1422ac_status=$?
1423fi
1424
1425if test "$ac_init_help" = "recursive"; then
1426 # If there are subdirs, report their specific --help.
1427 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1428 test -d "$ac_dir" ||
1429 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1430 continue
1431 ac_builddir=.
1432
1433case "$ac_dir" in
1434.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435*)
1436 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1437 # A ".." for each directory in $ac_dir_suffix.
1438 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1439 case $ac_top_builddir_sub in
1440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1442 esac ;;
1443esac
1444ac_abs_top_builddir=$ac_pwd
1445ac_abs_builddir=$ac_pwd$ac_dir_suffix
1446# for backward compatibility:
1447ac_top_builddir=$ac_top_build_prefix
1448
1449case $srcdir in
1450 .) # We are building in place.
1451 ac_srcdir=.
1452 ac_top_srcdir=$ac_top_builddir_sub
1453 ac_abs_top_srcdir=$ac_pwd ;;
1454 [\\/]* | ?:[\\/]* ) # Absolute name.
1455 ac_srcdir=$srcdir$ac_dir_suffix;
1456 ac_top_srcdir=$srcdir
1457 ac_abs_top_srcdir=$srcdir ;;
1458 *) # Relative name.
1459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1460 ac_top_srcdir=$ac_top_build_prefix$srcdir
1461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1462esac
1463ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1464
1465 cd "$ac_dir" || { ac_status=$?; continue; }
1466 # Check for guested configure.
1467 if test -f "$ac_srcdir/configure.gnu"; then
1468 echo &&
1469 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1470 elif test -f "$ac_srcdir/configure"; then
1471 echo &&
1472 $SHELL "$ac_srcdir/configure" --help=recursive
1473 else
1474 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1475 fi || ac_status=$?
1476 cd "$ac_pwd" || { ac_status=$?; break; }
1477 done
1478fi
1479
1480test -n "$ac_init_help" && exit $ac_status
1481if $ac_init_version; then
1482 cat <<\_ACEOF
1483GCC Quad-precision Math Library configure 0.1
1484generated by GNU Autoconf 2.64
1485
1486Copyright (C) 2009 Free Software Foundation, Inc.
1487This configure script is free software; the Free Software Foundation
1488gives unlimited permission to copy, distribute and modify it.
1489_ACEOF
1490 exit
1491fi
1492
1493## ------------------------ ##
1494## Autoconf initialization. ##
1495## ------------------------ ##
1496
1497# ac_fn_c_try_compile LINENO
1498# --------------------------
1499# Try to compile conftest.$ac_ext, and return whether this succeeded.
1500ac_fn_c_try_compile ()
1501{
1502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1503 rm -f conftest.$ac_objext
1504 if { { ac_try="$ac_compile"
1505case "(($ac_try" in
1506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1507 *) ac_try_echo=$ac_try;;
1508esac
1509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510$as_echo "$ac_try_echo"; } >&5
1511 (eval "$ac_compile") 2>conftest.err
1512 ac_status=$?
1513 if test -s conftest.err; then
1514 grep -v '^ *+' conftest.err >conftest.er1
1515 cat conftest.er1 >&5
1516 mv -f conftest.er1 conftest.err
1517 fi
1518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519 test $ac_status = 0; } && {
1520 test -z "$ac_c_werror_flag" ||
1521 test ! -s conftest.err
1522 } && test -s conftest.$ac_objext; then :
1523 ac_retval=0
1524else
1525 $as_echo "$as_me: failed program was:" >&5
1526sed 's/^/| /' conftest.$ac_ext >&5
1527
1528 ac_retval=1
1529fi
1530 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1531 return $ac_retval
1532
1533} # ac_fn_c_try_compile
1534
1d92226b
JJ
1535# ac_fn_c_try_cpp LINENO
1536# ----------------------
1537# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1538ac_fn_c_try_cpp ()
1ec601bf
FXC
1539{
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1d92226b 1541 if { { ac_try="$ac_cpp conftest.$ac_ext"
1ec601bf
FXC
1542case "(($ac_try" in
1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544 *) ac_try_echo=$ac_try;;
1545esac
1546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547$as_echo "$ac_try_echo"; } >&5
1d92226b 1548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1ec601bf
FXC
1549 ac_status=$?
1550 if test -s conftest.err; then
1551 grep -v '^ *+' conftest.err >conftest.er1
1552 cat conftest.er1 >&5
1553 mv -f conftest.er1 conftest.err
1554 fi
1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1d92226b
JJ
1556 test $ac_status = 0; } >/dev/null && {
1557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1ec601bf 1558 test ! -s conftest.err
1ec601bf
FXC
1559 }; then :
1560 ac_retval=0
1561else
1562 $as_echo "$as_me: failed program was:" >&5
1563sed 's/^/| /' conftest.$ac_ext >&5
1564
1d92226b 1565 ac_retval=1
1ec601bf 1566fi
1ec601bf
FXC
1567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1568 return $ac_retval
1569
1d92226b 1570} # ac_fn_c_try_cpp
1ec601bf 1571
1d92226b 1572# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1ec601bf 1573# -------------------------------------------------------
1d92226b
JJ
1574# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1575# the include files in INCLUDES and setting the cache variable VAR
1576# accordingly.
1577ac_fn_c_check_header_mongrel ()
1ec601bf
FXC
1578{
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1d92226b 1580 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1ec601bf
FXC
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1582$as_echo_n "checking for $2... " >&6; }
1583if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1584 $as_echo_n "(cached) " >&6
1d92226b
JJ
1585fi
1586eval ac_res=\$$3
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1588$as_echo "$ac_res" >&6; }
1ec601bf 1589else
1d92226b
JJ
1590 # Is the header compilable?
1591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1592$as_echo_n "checking $2 usability... " >&6; }
1593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
1594/* end confdefs.h. */
1595$4
1596#include <$2>
1597_ACEOF
1598if ac_fn_c_try_compile "$LINENO"; then :
1d92226b 1599 ac_header_compiler=yes
1ec601bf 1600else
1d92226b 1601 ac_header_compiler=no
1ec601bf
FXC
1602fi
1603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d92226b
JJ
1604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1605$as_echo "$ac_header_compiler" >&6; }
1ec601bf 1606
1d92226b
JJ
1607# Is the header present?
1608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1609$as_echo_n "checking $2 presence... " >&6; }
1610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611/* end confdefs.h. */
1612#include <$2>
1613_ACEOF
1614if ac_fn_c_try_cpp "$LINENO"; then :
1615 ac_header_preproc=yes
1616else
1617 ac_header_preproc=no
1618fi
1619rm -f conftest.err conftest.$ac_ext
1620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1621$as_echo "$ac_header_preproc" >&6; }
1ec601bf 1622
1d92226b
JJ
1623# So? What about this header?
1624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1625 yes:no: )
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1627$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1629$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1630 ;;
1631 no:yes:* )
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1633$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1635$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1637$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1639$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1641$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1642 ;;
1ec601bf 1643esac
1d92226b
JJ
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645$as_echo_n "checking for $2... " >&6; }
1646if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1647 $as_echo_n "(cached) " >&6
1ec601bf 1648else
1d92226b
JJ
1649 eval "$3=\$ac_header_compiler"
1650fi
1651eval ac_res=\$$3
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653$as_echo "$ac_res" >&6; }
1ec601bf
FXC
1654fi
1655 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1ec601bf 1656
1d92226b 1657} # ac_fn_c_check_header_mongrel
1ec601bf
FXC
1658
1659# ac_fn_c_try_run LINENO
1660# ----------------------
1661# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1662# that executables *can* be run.
1663ac_fn_c_try_run ()
1664{
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 if { { ac_try="$ac_link"
1667case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670esac
1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672$as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>&5
1674 ac_status=$?
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1677 { { case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_try") 2>&5
1684 ac_status=$?
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; }; }; then :
1687 ac_retval=0
1688else
1689 $as_echo "$as_me: program exited with status $ac_status" >&5
1690 $as_echo "$as_me: failed program was:" >&5
1691sed 's/^/| /' conftest.$ac_ext >&5
1692
1693 ac_retval=$ac_status
1694fi
1695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1697 return $ac_retval
1698
1699} # ac_fn_c_try_run
1700
1d92226b
JJ
1701# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1702# -------------------------------------------------------
1703# Tests whether HEADER exists and can be compiled using the include files in
1704# INCLUDES, setting the cache variable VAR accordingly.
1705ac_fn_c_check_header_compile ()
1706{
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709$as_echo_n "checking for $2... " >&6; }
1710if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1711 $as_echo_n "(cached) " >&6
1712else
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714/* end confdefs.h. */
1715$4
1716#include <$2>
1717_ACEOF
1718if ac_fn_c_try_compile "$LINENO"; then :
1719 eval "$3=yes"
1720else
1721 eval "$3=no"
1722fi
1723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1724fi
1725eval ac_res=\$$3
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727$as_echo "$ac_res" >&6; }
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729
1730} # ac_fn_c_check_header_compile
1731
1732# ac_fn_c_try_link LINENO
1733# -----------------------
1734# Try to link conftest.$ac_ext, and return whether this succeeded.
1735ac_fn_c_try_link ()
1736{
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 rm -f conftest.$ac_objext conftest$ac_exeext
1739 if { { ac_try="$ac_link"
1740case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743esac
1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745$as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_link") 2>conftest.err
1747 ac_status=$?
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1752 fi
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && {
1755 test -z "$ac_c_werror_flag" ||
1756 test ! -s conftest.err
1757 } && test -s conftest$ac_exeext && {
1758 test "$cross_compiling" = yes ||
1759 $as_test_x conftest$ac_exeext
1760 }; then :
1761 ac_retval=0
1762else
1763 $as_echo "$as_me: failed program was:" >&5
1764sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=1
1767fi
1768 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1769 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1770 # interfere with the next link command; also delete a directory that is
1771 # left behind by Apple's compiler. We do this before executing the actions.
1772 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1773 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774 return $ac_retval
1775
1776} # ac_fn_c_try_link
1777
1ec601bf
FXC
1778# ac_fn_c_check_func LINENO FUNC VAR
1779# ----------------------------------
1780# Tests whether FUNC exists, setting the cache variable VAR accordingly
1781ac_fn_c_check_func ()
1782{
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785$as_echo_n "checking for $2... " >&6; }
1786if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1787 $as_echo_n "(cached) " >&6
1788else
fabfcf5e
KT
1789 if test x$gcc_no_link = xyes; then
1790 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1791fi
1792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
1793/* end confdefs.h. */
1794/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1796#define $2 innocuous_$2
1797
1798/* System header to define __stub macros and hopefully few prototypes,
1799 which can conflict with char $2 (); below.
1800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1801 <limits.h> exists even on freestanding compilers. */
1802
1803#ifdef __STDC__
1804# include <limits.h>
1805#else
1806# include <assert.h>
1807#endif
1808
1809#undef $2
1810
1811/* Override any GCC internal prototype to avoid an error.
1812 Use char because int might match the return type of a GCC
1813 builtin and then its argument prototype would still apply. */
1814#ifdef __cplusplus
1815extern "C"
1816#endif
1817char $2 ();
1818/* The GNU C library defines this for functions which it implements
1819 to always fail with ENOSYS. Some functions are actually named
1820 something starting with __ and the normal name is an alias. */
1821#if defined __stub_$2 || defined __stub___$2
1822choke me
1823#endif
1824
1825int
1826main ()
1827{
1828return $2 ();
1829 ;
1830 return 0;
1831}
1832_ACEOF
1833if ac_fn_c_try_link "$LINENO"; then :
1834 eval "$3=yes"
1835else
1836 eval "$3=no"
1837fi
1838rm -f core conftest.err conftest.$ac_objext \
1839 conftest$ac_exeext conftest.$ac_ext
1840fi
1841eval ac_res=\$$3
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843$as_echo "$ac_res" >&6; }
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845
1846} # ac_fn_c_check_func
1d92226b
JJ
1847cat >config.log <<_ACEOF
1848This file contains any messages produced by compilers while
1849running configure, to aid debugging if configure makes a mistake.
e8d42d28 1850
1d92226b
JJ
1851It was created by GCC Quad-precision Math Library $as_me 0.1, which was
1852generated by GNU Autoconf 2.64. Invocation command line was
1853
1854 $ $0 $@
1855
1856_ACEOF
1857exec 5>>config.log
1ec601bf
FXC
1858{
1859cat <<_ASUNAME
1860## --------- ##
1861## Platform. ##
1862## --------- ##
1863
1864hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1865uname -m = `(uname -m) 2>/dev/null || echo unknown`
1866uname -r = `(uname -r) 2>/dev/null || echo unknown`
1867uname -s = `(uname -s) 2>/dev/null || echo unknown`
1868uname -v = `(uname -v) 2>/dev/null || echo unknown`
1869
1870/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1871/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1872
1873/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1874/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1875/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1876/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1877/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1878/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1879/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1880
1881_ASUNAME
1882
1883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884for as_dir in $PATH
1885do
1886 IFS=$as_save_IFS
1887 test -z "$as_dir" && as_dir=.
1888 $as_echo "PATH: $as_dir"
1889 done
1890IFS=$as_save_IFS
1891
1892} >&5
1893
1894cat >&5 <<_ACEOF
1895
1896
1897## ----------- ##
1898## Core tests. ##
1899## ----------- ##
1900
1901_ACEOF
1902
1903
1904# Keep a trace of the command line.
1905# Strip out --no-create and --no-recursion so they do not pile up.
1906# Strip out --silent because we don't want to record it for future runs.
1907# Also quote any args containing shell meta-characters.
1908# Make two passes to allow for proper duplicate-argument suppression.
1909ac_configure_args=
1910ac_configure_args0=
1911ac_configure_args1=
1912ac_must_keep_next=false
1913for ac_pass in 1 2
1914do
1915 for ac_arg
1916 do
1917 case $ac_arg in
1918 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1919 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1920 | -silent | --silent | --silen | --sile | --sil)
1921 continue ;;
1922 *\'*)
1923 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1924 esac
1925 case $ac_pass in
1926 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1927 2)
1928 as_fn_append ac_configure_args1 " '$ac_arg'"
1929 if test $ac_must_keep_next = true; then
1930 ac_must_keep_next=false # Got value, back to normal.
1931 else
1932 case $ac_arg in
1933 *=* | --config-cache | -C | -disable-* | --disable-* \
1934 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1935 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1936 | -with-* | --with-* | -without-* | --without-* | --x)
1937 case "$ac_configure_args0 " in
1938 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1939 esac
1940 ;;
1941 -* ) ac_must_keep_next=true ;;
1942 esac
1943 fi
1944 as_fn_append ac_configure_args " '$ac_arg'"
1945 ;;
1946 esac
1947 done
1948done
1949{ ac_configure_args0=; unset ac_configure_args0;}
1950{ ac_configure_args1=; unset ac_configure_args1;}
1951
1952# When interrupted or exit'd, cleanup temporary files, and complete
1953# config.log. We remove comments because anyway the quotes in there
1954# would cause problems or look ugly.
1955# WARNING: Use '\'' to represent an apostrophe within the trap.
1956# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1957trap 'exit_status=$?
1958 # Save into config.log some information that might help in debugging.
1959 {
1960 echo
1961
1962 cat <<\_ASBOX
1963## ---------------- ##
1964## Cache variables. ##
1965## ---------------- ##
1966_ASBOX
1967 echo
1968 # The following way of writing the cache mishandles newlines in values,
1969(
1970 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1971 eval ac_val=\$$ac_var
1972 case $ac_val in #(
1973 *${as_nl}*)
1974 case $ac_var in #(
1975 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1976$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1977 esac
1978 case $ac_var in #(
1979 _ | IFS | as_nl) ;; #(
1980 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1981 *) { eval $ac_var=; unset $ac_var;} ;;
1982 esac ;;
1983 esac
1984 done
1985 (set) 2>&1 |
1986 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1987 *${as_nl}ac_space=\ *)
1988 sed -n \
1989 "s/'\''/'\''\\\\'\'''\''/g;
1990 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1991 ;; #(
1992 *)
1993 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1994 ;;
1995 esac |
1996 sort
1997)
1998 echo
1999
2000 cat <<\_ASBOX
2001## ----------------- ##
2002## Output variables. ##
2003## ----------------- ##
2004_ASBOX
2005 echo
2006 for ac_var in $ac_subst_vars
2007 do
2008 eval ac_val=\$$ac_var
2009 case $ac_val in
2010 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2011 esac
2012 $as_echo "$ac_var='\''$ac_val'\''"
2013 done | sort
2014 echo
2015
2016 if test -n "$ac_subst_files"; then
2017 cat <<\_ASBOX
2018## ------------------- ##
2019## File substitutions. ##
2020## ------------------- ##
2021_ASBOX
2022 echo
2023 for ac_var in $ac_subst_files
2024 do
2025 eval ac_val=\$$ac_var
2026 case $ac_val in
2027 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2028 esac
2029 $as_echo "$ac_var='\''$ac_val'\''"
2030 done | sort
2031 echo
2032 fi
2033
2034 if test -s confdefs.h; then
2035 cat <<\_ASBOX
2036## ----------- ##
2037## confdefs.h. ##
2038## ----------- ##
2039_ASBOX
2040 echo
2041 cat confdefs.h
2042 echo
2043 fi
2044 test "$ac_signal" != 0 &&
2045 $as_echo "$as_me: caught signal $ac_signal"
2046 $as_echo "$as_me: exit $exit_status"
2047 } >&5
2048 rm -f core *.core core.conftest.* &&
2049 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2050 exit $exit_status
2051' 0
2052for ac_signal in 1 2 13 15; do
2053 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2054done
2055ac_signal=0
2056
2057# confdefs.h avoids OS command line length limits that DEFS can exceed.
2058rm -f -r conftest* confdefs.h
2059
2060$as_echo "/* confdefs.h */" > confdefs.h
2061
2062# Predefined preprocessor variables.
2063
2064cat >>confdefs.h <<_ACEOF
2065#define PACKAGE_NAME "$PACKAGE_NAME"
2066_ACEOF
2067
2068cat >>confdefs.h <<_ACEOF
2069#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2070_ACEOF
2071
2072cat >>confdefs.h <<_ACEOF
2073#define PACKAGE_VERSION "$PACKAGE_VERSION"
2074_ACEOF
2075
2076cat >>confdefs.h <<_ACEOF
2077#define PACKAGE_STRING "$PACKAGE_STRING"
2078_ACEOF
2079
2080cat >>confdefs.h <<_ACEOF
2081#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2082_ACEOF
2083
2084cat >>confdefs.h <<_ACEOF
2085#define PACKAGE_URL "$PACKAGE_URL"
2086_ACEOF
2087
2088
2089# Let the site file select an alternate cache file if it wants to.
2090# Prefer an explicitly selected file to automatically selected ones.
2091ac_site_file1=NONE
2092ac_site_file2=NONE
2093if test -n "$CONFIG_SITE"; then
2094 ac_site_file1=$CONFIG_SITE
2095elif test "x$prefix" != xNONE; then
2096 ac_site_file1=$prefix/share/config.site
2097 ac_site_file2=$prefix/etc/config.site
2098else
2099 ac_site_file1=$ac_default_prefix/share/config.site
2100 ac_site_file2=$ac_default_prefix/etc/config.site
2101fi
2102for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2103do
2104 test "x$ac_site_file" = xNONE && continue
2105 if test -r "$ac_site_file"; then
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2107$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2108 sed 's/^/| /' "$ac_site_file" >&5
2109 . "$ac_site_file"
2110 fi
2111done
2112
2113if test -r "$cache_file"; then
2114 # Some versions of bash will fail to source /dev/null (special
2115 # files actually), so we avoid doing that.
2116 if test -f "$cache_file"; then
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2118$as_echo "$as_me: loading cache $cache_file" >&6;}
2119 case $cache_file in
2120 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2121 *) . "./$cache_file";;
2122 esac
2123 fi
2124else
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2126$as_echo "$as_me: creating cache $cache_file" >&6;}
2127 >$cache_file
2128fi
2129
2130# Check that the precious variables saved in the cache have kept the same
2131# value.
2132ac_cache_corrupted=false
2133for ac_var in $ac_precious_vars; do
2134 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2135 eval ac_new_set=\$ac_env_${ac_var}_set
2136 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2137 eval ac_new_val=\$ac_env_${ac_var}_value
2138 case $ac_old_set,$ac_new_set in
2139 set,)
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2141$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2142 ac_cache_corrupted=: ;;
2143 ,set)
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2145$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2146 ac_cache_corrupted=: ;;
2147 ,);;
2148 *)
2149 if test "x$ac_old_val" != "x$ac_new_val"; then
2150 # differences in whitespace do not lead to failure.
2151 ac_old_val_w=`echo x $ac_old_val`
2152 ac_new_val_w=`echo x $ac_new_val`
2153 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2155$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2156 ac_cache_corrupted=:
2157 else
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2159$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2160 eval $ac_var=\$ac_old_val
2161 fi
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2163$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2165$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2166 fi;;
2167 esac
2168 # Pass precious variables to config.status.
2169 if test "$ac_new_set" = set; then
2170 case $ac_new_val in
2171 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2172 *) ac_arg=$ac_var=$ac_new_val ;;
2173 esac
2174 case " $ac_configure_args " in
2175 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2176 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2177 esac
2178 fi
2179done
2180if $ac_cache_corrupted; then
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2184$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2185 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2186fi
2187## -------------------- ##
2188## Main body of script. ##
2189## -------------------- ##
2190
2191ac_ext=c
2192ac_cpp='$CPP $CPPFLAGS'
2193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195ac_compiler_gnu=$ac_cv_c_compiler_gnu
2196
2197
2198
2199
2200
2201ac_config_headers="$ac_config_headers config.h"
2202
2203
2204# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2205#
2206# You will slowly go insane if you do not grok the following fact: when
2207# building this library, the top-level /target/ becomes the library's /host/.
2208#
2209# configure then causes --target to default to --host, exactly like any
2210# other package using autoconf. Therefore, 'target' and 'host' will
2211# always be the same. This makes sense both for native and cross compilers
2212# just think about it for a little while. :-)
2213#
2214# Also, if this library is being configured as part of a cross compiler, the
2215# top-level configure script will pass the "real" host as $with_cross_host.
2216#
2217# Do not delete or change the following two lines. For why, see
2218# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2219ac_aux_dir=
2220for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2221 for ac_t in install-sh install.sh shtool; do
2222 if test -f "$ac_dir/$ac_t"; then
2223 ac_aux_dir=$ac_dir
2224 ac_install_sh="$ac_aux_dir/$ac_t -c"
2225 break 2
2226 fi
2227 done
2228done
2229if test -z "$ac_aux_dir"; then
2230 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2231fi
2232
2233# These three variables are undocumented and unsupported,
2234# and are intended to be withdrawn in a future Autoconf release.
2235# They can cause serious problems if a builder's source tree is in a directory
2236# whose full name contains unusual characters.
2237ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2238ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2239ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2240
2241
2242# Make sure we can run config.sub.
2243$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2244 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2245
2246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2247$as_echo_n "checking build system type... " >&6; }
2248if test "${ac_cv_build+set}" = set; then :
2249 $as_echo_n "(cached) " >&6
2250else
2251 ac_build_alias=$build_alias
2252test "x$ac_build_alias" = x &&
2253 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2254test "x$ac_build_alias" = x &&
2255 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2256ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2257 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2258
2259fi
2260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2261$as_echo "$ac_cv_build" >&6; }
2262case $ac_cv_build in
2263*-*-*) ;;
2264*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2265esac
2266build=$ac_cv_build
2267ac_save_IFS=$IFS; IFS='-'
2268set x $ac_cv_build
2269shift
2270build_cpu=$1
2271build_vendor=$2
2272shift; shift
2273# Remember, the first character of IFS is used to create $*,
2274# except with old shells:
2275build_os=$*
2276IFS=$ac_save_IFS
2277case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2278
2279
2280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2281$as_echo_n "checking host system type... " >&6; }
2282if test "${ac_cv_host+set}" = set; then :
2283 $as_echo_n "(cached) " >&6
2284else
2285 if test "x$host_alias" = x; then
2286 ac_cv_host=$ac_cv_build
2287else
2288 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2289 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2290fi
2291
2292fi
2293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2294$as_echo "$ac_cv_host" >&6; }
2295case $ac_cv_host in
2296*-*-*) ;;
2297*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2298esac
2299host=$ac_cv_host
2300ac_save_IFS=$IFS; IFS='-'
2301set x $ac_cv_host
2302shift
2303host_cpu=$1
2304host_vendor=$2
2305shift; shift
2306# Remember, the first character of IFS is used to create $*,
2307# except with old shells:
2308host_os=$*
2309IFS=$ac_save_IFS
2310case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2311
2312
2313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2314$as_echo_n "checking target system type... " >&6; }
2315if test "${ac_cv_target+set}" = set; then :
2316 $as_echo_n "(cached) " >&6
2317else
2318 if test "x$target_alias" = x; then
2319 ac_cv_target=$ac_cv_host
2320else
2321 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2322 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2323fi
2324
2325fi
2326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2327$as_echo "$ac_cv_target" >&6; }
2328case $ac_cv_target in
2329*-*-*) ;;
2330*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2331esac
2332target=$ac_cv_target
2333ac_save_IFS=$IFS; IFS='-'
2334set x $ac_cv_target
2335shift
2336target_cpu=$1
2337target_vendor=$2
2338shift; shift
2339# Remember, the first character of IFS is used to create $*,
2340# except with old shells:
2341target_os=$*
2342IFS=$ac_save_IFS
2343case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2344
2345
2346# The aliases save the names the user supplied, while $host etc.
2347# will get canonicalized.
2348test -n "$target_alias" &&
2349 test "$program_prefix$program_suffix$program_transform_name" = \
2350 NONENONEs,x,x, &&
2351 program_prefix=${target_alias}-
2352
fabfcf5e
KT
2353 case ${build_alias} in
2354 "") build_noncanonical=${build} ;;
2355 *) build_noncanonical=${build_alias} ;;
2356esac
2357
2358 case ${host_alias} in
2359 "") host_noncanonical=${build_noncanonical} ;;
2360 *) host_noncanonical=${host_alias} ;;
2361esac
2362
2363 case ${target_alias} in
2364 "") target_noncanonical=${host_noncanonical} ;;
2365 *) target_noncanonical=${target_alias} ;;
2366esac
2367
2368
2369
2370
1ec601bf
FXC
2371target_alias=${target_alias-$host_alias}
2372
fabfcf5e 2373
1ec601bf
FXC
2374am__api_version='1.11'
2375
2376# Find a good install program. We prefer a C program (faster),
2377# so one script is as good as another. But avoid the broken or
2378# incompatible versions:
2379# SysV /etc/install, /usr/sbin/install
2380# SunOS /usr/etc/install
2381# IRIX /sbin/install
2382# AIX /bin/install
2383# AmigaOS /C/install, which installs bootblocks on floppy discs
2384# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2385# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2386# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2387# OS/2's system install, which has a completely different semantic
2388# ./install, which can be erroneously created by make from ./install.sh.
2389# Reject install programs that cannot install multiple files.
2390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2391$as_echo_n "checking for a BSD-compatible install... " >&6; }
2392if test -z "$INSTALL"; then
2393if test "${ac_cv_path_install+set}" = set; then :
2394 $as_echo_n "(cached) " >&6
2395else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397for as_dir in $PATH
2398do
2399 IFS=$as_save_IFS
2400 test -z "$as_dir" && as_dir=.
2401 # Account for people who put trailing slashes in PATH elements.
2402case $as_dir/ in #((
2403 ./ | .// | /[cC]/* | \
2404 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2405 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2406 /usr/ucb/* ) ;;
2407 *)
2408 # OSF1 and SCO ODT 3.0 have their own names for install.
2409 # Don't use installbsd from OSF since it installs stuff as root
2410 # by default.
2411 for ac_prog in ginstall scoinst install; do
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2414 if test $ac_prog = install &&
2415 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2416 # AIX install. It has an incompatible calling convention.
2417 :
2418 elif test $ac_prog = install &&
2419 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2420 # program-specific install script used by HP pwplus--don't use.
2421 :
2422 else
2423 rm -rf conftest.one conftest.two conftest.dir
2424 echo one > conftest.one
2425 echo two > conftest.two
2426 mkdir conftest.dir
2427 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2428 test -s conftest.one && test -s conftest.two &&
2429 test -s conftest.dir/conftest.one &&
2430 test -s conftest.dir/conftest.two
2431 then
2432 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2433 break 3
2434 fi
2435 fi
2436 fi
2437 done
2438 done
2439 ;;
2440esac
2441
2442 done
2443IFS=$as_save_IFS
2444
2445rm -rf conftest.one conftest.two conftest.dir
2446
2447fi
2448 if test "${ac_cv_path_install+set}" = set; then
2449 INSTALL=$ac_cv_path_install
2450 else
2451 # As a last resort, use the slow shell script. Don't cache a
2452 # value for INSTALL within a source directory, because that will
2453 # break other packages using the cache if that directory is
2454 # removed, or if the value is a relative name.
2455 INSTALL=$ac_install_sh
2456 fi
2457fi
2458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2459$as_echo "$INSTALL" >&6; }
2460
2461# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2462# It thinks the first close brace ends the variable substitution.
2463test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2464
2465test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2466
2467test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2468
2469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2470$as_echo_n "checking whether build environment is sane... " >&6; }
2471# Just in case
2472sleep 1
2473echo timestamp > conftest.file
2474# Reject unsafe characters in $srcdir or the absolute working directory
2475# name. Accept space and tab only in the latter.
2476am_lf='
2477'
2478case `pwd` in
2479 *[\\\"\#\$\&\'\`$am_lf]*)
2480 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2481esac
2482case $srcdir in
2483 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2484 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2485esac
2486
2487# Do `set' in a subshell so we don't clobber the current shell's
2488# arguments. Must try -L first in case configure is actually a
2489# symlink; some systems play weird games with the mod time of symlinks
2490# (eg FreeBSD returns the mod time of the symlink's containing
2491# directory).
2492if (
2493 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2494 if test "$*" = "X"; then
2495 # -L didn't work.
2496 set X `ls -t "$srcdir/configure" conftest.file`
2497 fi
2498 rm -f conftest.file
2499 if test "$*" != "X $srcdir/configure conftest.file" \
2500 && test "$*" != "X conftest.file $srcdir/configure"; then
2501
2502 # If neither matched, then we have a broken ls. This can happen
2503 # if, for instance, CONFIG_SHELL is bash and it inherits a
2504 # broken ls alias from the environment. This has actually
2505 # happened. Such a system could not be considered "sane".
2506 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2507alias in your environment" "$LINENO" 5
2508 fi
2509
2510 test "$2" = conftest.file
2511 )
2512then
2513 # Ok.
2514 :
2515else
2516 as_fn_error "newly created file is older than distributed files!
2517Check your system clock" "$LINENO" 5
2518fi
2519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2520$as_echo "yes" >&6; }
2521test "$program_prefix" != NONE &&
2522 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2523# Use a double $ so make ignores it.
2524test "$program_suffix" != NONE &&
2525 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2526# Double any \ or $.
2527# By default was `s,x,x', remove it if useless.
2528ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2529program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2530
2531# expand $ac_aux_dir to an absolute path
2532am_aux_dir=`cd $ac_aux_dir && pwd`
2533
2534if test x"${MISSING+set}" != xset; then
2535 case $am_aux_dir in
2536 *\ * | *\ *)
2537 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2538 *)
2539 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2540 esac
2541fi
2542# Use eval to expand $SHELL
2543if eval "$MISSING --run true"; then
2544 am_missing_run="$MISSING --run "
2545else
2546 am_missing_run=
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2548$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2549fi
2550
2551if test x"${install_sh}" != xset; then
2552 case $am_aux_dir in
2553 *\ * | *\ *)
2554 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2555 *)
2556 install_sh="\${SHELL} $am_aux_dir/install-sh"
2557 esac
2558fi
2559
2560# Installed binaries are usually stripped using `strip' when the user
2561# run `make install-strip'. However `strip' might not be the right
2562# tool to use in cross-compilation environments, therefore Automake
2563# will honor the `STRIP' environment variable to overrule this program.
2564if test "$cross_compiling" != no; then
2565 if test -n "$ac_tool_prefix"; then
2566 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2567set dummy ${ac_tool_prefix}strip; ac_word=$2
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2569$as_echo_n "checking for $ac_word... " >&6; }
2570if test "${ac_cv_prog_STRIP+set}" = set; then :
2571 $as_echo_n "(cached) " >&6
2572else
2573 if test -n "$STRIP"; then
2574 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2575else
2576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577for as_dir in $PATH
2578do
2579 IFS=$as_save_IFS
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2583 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 break 2
2586 fi
2587done
2588 done
2589IFS=$as_save_IFS
2590
2591fi
2592fi
2593STRIP=$ac_cv_prog_STRIP
2594if test -n "$STRIP"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2596$as_echo "$STRIP" >&6; }
2597else
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599$as_echo "no" >&6; }
2600fi
2601
2602
2603fi
2604if test -z "$ac_cv_prog_STRIP"; then
2605 ac_ct_STRIP=$STRIP
2606 # Extract the first word of "strip", so it can be a program name with args.
2607set dummy strip; ac_word=$2
2608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609$as_echo_n "checking for $ac_word... " >&6; }
2610if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2611 $as_echo_n "(cached) " >&6
2612else
2613 if test -n "$ac_ct_STRIP"; then
2614 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2615else
2616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617for as_dir in $PATH
2618do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2623 ac_cv_prog_ac_ct_STRIP="strip"
2624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 break 2
2626 fi
2627done
2628 done
2629IFS=$as_save_IFS
2630
2631fi
2632fi
2633ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2634if test -n "$ac_ct_STRIP"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2636$as_echo "$ac_ct_STRIP" >&6; }
2637else
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639$as_echo "no" >&6; }
2640fi
2641
2642 if test "x$ac_ct_STRIP" = x; then
2643 STRIP=":"
2644 else
2645 case $cross_compiling:$ac_tool_warned in
2646yes:)
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2649ac_tool_warned=yes ;;
2650esac
2651 STRIP=$ac_ct_STRIP
2652 fi
2653else
2654 STRIP="$ac_cv_prog_STRIP"
2655fi
2656
2657fi
2658INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2659
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2661$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2662if test -z "$MKDIR_P"; then
2663 if test "${ac_cv_path_mkdir+set}" = set; then :
2664 $as_echo_n "(cached) " >&6
2665else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2668do
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
2671 for ac_prog in mkdir gmkdir; do
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2674 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2675 'mkdir (GNU coreutils) '* | \
2676 'mkdir (coreutils) '* | \
2677 'mkdir (fileutils) '4.1*)
2678 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2679 break 3;;
2680 esac
2681 done
2682 done
2683 done
2684IFS=$as_save_IFS
2685
2686fi
2687
2688 if test "${ac_cv_path_mkdir+set}" = set; then
2689 MKDIR_P="$ac_cv_path_mkdir -p"
2690 else
2691 # As a last resort, use the slow shell script. Don't cache a
2692 # value for MKDIR_P within a source directory, because that will
2693 # break other packages using the cache if that directory is
2694 # removed, or if the value is a relative name.
2695 test -d ./--version && rmdir ./--version
2696 MKDIR_P="$ac_install_sh -d"
2697 fi
2698fi
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2700$as_echo "$MKDIR_P" >&6; }
2701
2702mkdir_p="$MKDIR_P"
2703case $mkdir_p in
2704 [\\/$]* | ?:[\\/]*) ;;
2705 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2706esac
2707
2708for ac_prog in gawk mawk nawk awk
2709do
2710 # Extract the first word of "$ac_prog", so it can be a program name with args.
2711set dummy $ac_prog; ac_word=$2
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713$as_echo_n "checking for $ac_word... " >&6; }
2714if test "${ac_cv_prog_AWK+set}" = set; then :
2715 $as_echo_n "(cached) " >&6
2716else
2717 if test -n "$AWK"; then
2718 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2719else
2720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721for as_dir in $PATH
2722do
2723 IFS=$as_save_IFS
2724 test -z "$as_dir" && as_dir=.
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2727 ac_cv_prog_AWK="$ac_prog"
2728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 break 2
2730 fi
2731done
2732 done
2733IFS=$as_save_IFS
2734
2735fi
2736fi
2737AWK=$ac_cv_prog_AWK
2738if test -n "$AWK"; then
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2740$as_echo "$AWK" >&6; }
2741else
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743$as_echo "no" >&6; }
2744fi
2745
2746
2747 test -n "$AWK" && break
2748done
2749
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2751$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2752set x ${MAKE-make}
2753ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2754if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2755 $as_echo_n "(cached) " >&6
2756else
2757 cat >conftest.make <<\_ACEOF
2758SHELL = /bin/sh
2759all:
2760 @echo '@@@%%%=$(MAKE)=@@@%%%'
2761_ACEOF
2762# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2763case `${MAKE-make} -f conftest.make 2>/dev/null` in
2764 *@@@%%%=?*=@@@%%%*)
2765 eval ac_cv_prog_make_${ac_make}_set=yes;;
2766 *)
2767 eval ac_cv_prog_make_${ac_make}_set=no;;
2768esac
2769rm -f conftest.make
2770fi
2771if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2773$as_echo "yes" >&6; }
2774 SET_MAKE=
2775else
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777$as_echo "no" >&6; }
2778 SET_MAKE="MAKE=${MAKE-make}"
2779fi
2780
2781rm -rf .tst 2>/dev/null
2782mkdir .tst 2>/dev/null
2783if test -d .tst; then
2784 am__leading_dot=.
2785else
2786 am__leading_dot=_
2787fi
2788rmdir .tst 2>/dev/null
2789
2790if test "`cd $srcdir && pwd`" != "`pwd`"; then
2791 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2792 # is not polluted with repeated "-I."
2793 am__isrc=' -I$(srcdir)'
2794 # test to see if srcdir already configured
2795 if test -f $srcdir/config.status; then
2796 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2797 fi
2798fi
2799
2800# test whether we have cygpath
2801if test -z "$CYGPATH_W"; then
2802 if (cygpath --version) >/dev/null 2>/dev/null; then
2803 CYGPATH_W='cygpath -w'
2804 else
2805 CYGPATH_W=echo
2806 fi
2807fi
2808
2809
2810# Define the identity of the package.
2811 PACKAGE='libquadmath'
2812 VERSION='0.1'
2813
2814
2815cat >>confdefs.h <<_ACEOF
2816#define PACKAGE "$PACKAGE"
2817_ACEOF
2818
2819
2820cat >>confdefs.h <<_ACEOF
2821#define VERSION "$VERSION"
2822_ACEOF
2823
2824# Some tools Automake needs.
2825
2826ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2827
2828
2829AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2830
2831
2832AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2833
2834
2835AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2836
2837
2838MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2839
2840# We need awk for the "check" target. The system "awk" is bad on
2841# some platforms.
2842# Always define AMTAR for backward compatibility.
2843
2844AMTAR=${AMTAR-"${am_missing_run}tar"}
2845
2846am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2847
2848
2849
2850
2851
2852
fabfcf5e
KT
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2854$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2855# Check whether --enable-version-specific-runtime-libs was given.
2856if test "${enable_version_specific_runtime_libs+set}" = set; then :
2857 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2858 yes) version_specific_libs=yes ;;
2859 no) version_specific_libs=no ;;
2860 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2861 esac
2862else
2863 version_specific_libs=no
2864fi
2865
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2867$as_echo "$version_specific_libs" >&6; }
2868
2869
2870
1d92226b 2871DEPDIR="${am__leading_dot}deps"
4c993c44 2872
1d92226b
JJ
2873ac_config_commands="$ac_config_commands depfiles"
2874
2875
2876am_make=${MAKE-make}
2877cat > confinc << 'END'
2878am__doit:
2879 @echo this is the am__doit target
2880.PHONY: am__doit
2881END
2882# If we don't find an include directive, just comment out the code.
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2884$as_echo_n "checking for style of include used by $am_make... " >&6; }
2885am__include="#"
2886am__quote=
2887_am_result=none
2888# First try GNU make style include.
2889echo "include confinc" > confmf
2890# Ignore all kinds of additional output from `make'.
2891case `$am_make -s -f confmf 2> /dev/null` in #(
2892*the\ am__doit\ target*)
2893 am__include=include
2894 am__quote=
2895 _am_result=GNU
2896 ;;
2897esac
2898# Now try BSD make style include.
2899if test "$am__include" = "#"; then
2900 echo '.include "confinc"' > confmf
2901 case `$am_make -s -f confmf 2> /dev/null` in #(
2902 *the\ am__doit\ target*)
2903 am__include=.include
2904 am__quote="\""
2905 _am_result=BSD
2906 ;;
2907 esac
2908fi
2909
2910
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2912$as_echo "$_am_result" >&6; }
2913rm -f confinc confmf
2914
2915# Check whether --enable-dependency-tracking was given.
2916if test "${enable_dependency_tracking+set}" = set; then :
2917 enableval=$enable_dependency_tracking;
2918fi
2919
2920if test "x$enable_dependency_tracking" != xno; then
2921 am_depcomp="$ac_aux_dir/depcomp"
2922 AMDEPBACKSLASH='\'
2923fi
2924 if test "x$enable_dependency_tracking" != xno; then
2925 AMDEP_TRUE=
2926 AMDEP_FALSE='#'
2927else
2928 AMDEP_TRUE='#'
2929 AMDEP_FALSE=
2930fi
2931
2932
2933ac_ext=c
2934ac_cpp='$CPP $CPPFLAGS'
2935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938if test -n "$ac_tool_prefix"; then
2939 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2940set dummy ${ac_tool_prefix}gcc; ac_word=$2
4c993c44
TB
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942$as_echo_n "checking for $ac_word... " >&6; }
1d92226b 2943if test "${ac_cv_prog_CC+set}" = set; then :
4c993c44
TB
2944 $as_echo_n "(cached) " >&6
2945else
1d92226b
JJ
2946 if test -n "$CC"; then
2947 ac_cv_prog_CC="$CC" # Let the user override the test.
4c993c44
TB
2948else
2949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950for as_dir in $PATH
2951do
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1d92226b 2956 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4c993c44
TB
2957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 break 2
2959 fi
2960done
2961 done
2962IFS=$as_save_IFS
2963
2964fi
2965fi
1d92226b
JJ
2966CC=$ac_cv_prog_CC
2967if test -n "$CC"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2969$as_echo "$CC" >&6; }
4c993c44
TB
2970else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972$as_echo "no" >&6; }
2973fi
2974
2975
1d92226b
JJ
2976fi
2977if test -z "$ac_cv_prog_CC"; then
2978 ac_ct_CC=$CC
2979 # Extract the first word of "gcc", so it can be a program name with args.
2980set dummy gcc; ac_word=$2
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982$as_echo_n "checking for $ac_word... " >&6; }
2983if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4c993c44
TB
2984 $as_echo_n "(cached) " >&6
2985else
1d92226b
JJ
2986 if test -n "$ac_ct_CC"; then
2987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2988else
2989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990for as_dir in $PATH
2991do
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 ac_cv_prog_ac_ct_CC="gcc"
2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
2999 fi
3000done
3001 done
3002IFS=$as_save_IFS
4c993c44
TB
3003
3004fi
1d92226b
JJ
3005fi
3006ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007if test -n "$ac_ct_CC"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3009$as_echo "$ac_ct_CC" >&6; }
3010else
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012$as_echo "no" >&6; }
3013fi
3014
3015 if test "x$ac_ct_CC" = x; then
3016 CC=""
4c993c44 3017 else
1d92226b
JJ
3018 case $cross_compiling:$ac_tool_warned in
3019yes:)
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3022ac_tool_warned=yes ;;
3023esac
3024 CC=$ac_ct_CC
4c993c44 3025 fi
4c993c44 3026else
1d92226b 3027 CC="$ac_cv_prog_CC"
4c993c44
TB
3028fi
3029
1d92226b
JJ
3030if test -z "$CC"; then
3031 if test -n "$ac_tool_prefix"; then
3032 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3033set dummy ${ac_tool_prefix}cc; ac_word=$2
1ec601bf
FXC
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035$as_echo_n "checking for $ac_word... " >&6; }
3036if test "${ac_cv_prog_CC+set}" = set; then :
3037 $as_echo_n "(cached) " >&6
3038else
3039 if test -n "$CC"; then
3040 ac_cv_prog_CC="$CC" # Let the user override the test.
3041else
3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1d92226b 3049 ac_cv_prog_CC="${ac_tool_prefix}cc"
1ec601bf
FXC
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3052 fi
3053done
3054 done
3055IFS=$as_save_IFS
3056
3057fi
3058fi
3059CC=$ac_cv_prog_CC
3060if test -n "$CC"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3062$as_echo "$CC" >&6; }
3063else
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065$as_echo "no" >&6; }
3066fi
3067
3068
1d92226b 3069 fi
1ec601bf 3070fi
1d92226b
JJ
3071if test -z "$CC"; then
3072 # Extract the first word of "cc", so it can be a program name with args.
3073set dummy cc; ac_word=$2
1ec601bf
FXC
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075$as_echo_n "checking for $ac_word... " >&6; }
1d92226b 3076if test "${ac_cv_prog_CC+set}" = set; then :
1ec601bf
FXC
3077 $as_echo_n "(cached) " >&6
3078else
1d92226b
JJ
3079 if test -n "$CC"; then
3080 ac_cv_prog_CC="$CC" # Let the user override the test.
1ec601bf 3081else
1d92226b 3082 ac_prog_rejected=no
1ec601bf
FXC
3083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084for as_dir in $PATH
3085do
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1d92226b
JJ
3090 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3091 ac_prog_rejected=yes
3092 continue
3093 fi
3094 ac_cv_prog_CC="cc"
1ec601bf
FXC
3095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 break 2
3097 fi
3098done
3099 done
3100IFS=$as_save_IFS
3101
1d92226b
JJ
3102if test $ac_prog_rejected = yes; then
3103 # We found a bogon in the path, so make sure we never use it.
3104 set dummy $ac_cv_prog_CC
3105 shift
3106 if test $# != 0; then
3107 # We chose a different compiler from the bogus one.
3108 # However, it has the same basename, so the bogon will be chosen
3109 # first if we set CC to just the basename; use the full file name.
3110 shift
3111 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3112 fi
1ec601bf
FXC
3113fi
3114fi
1d92226b
JJ
3115fi
3116CC=$ac_cv_prog_CC
3117if test -n "$CC"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119$as_echo "$CC" >&6; }
1ec601bf
FXC
3120else
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122$as_echo "no" >&6; }
3123fi
3124
1ec601bf 3125
1d92226b 3126fi
1ec601bf 3127if test -z "$CC"; then
1d92226b
JJ
3128 if test -n "$ac_tool_prefix"; then
3129 for ac_prog in cl.exe
3130 do
3131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3132set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1ec601bf
FXC
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134$as_echo_n "checking for $ac_word... " >&6; }
3135if test "${ac_cv_prog_CC+set}" = set; then :
3136 $as_echo_n "(cached) " >&6
3137else
3138 if test -n "$CC"; then
3139 ac_cv_prog_CC="$CC" # Let the user override the test.
3140else
3141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142for as_dir in $PATH
3143do
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1d92226b 3148 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1ec601bf
FXC
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3151 fi
3152done
3153 done
3154IFS=$as_save_IFS
3155
3156fi
3157fi
3158CC=$ac_cv_prog_CC
3159if test -n "$CC"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3161$as_echo "$CC" >&6; }
3162else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164$as_echo "no" >&6; }
3165fi
3166
3167
3168 test -n "$CC" && break
3169 done
3170fi
3171if test -z "$CC"; then
3172 ac_ct_CC=$CC
3173 for ac_prog in cl.exe
3174do
3175 # Extract the first word of "$ac_prog", so it can be a program name with args.
3176set dummy $ac_prog; ac_word=$2
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178$as_echo_n "checking for $ac_word... " >&6; }
3179if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3180 $as_echo_n "(cached) " >&6
3181else
3182 if test -n "$ac_ct_CC"; then
3183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3184else
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192 ac_cv_prog_ac_ct_CC="$ac_prog"
3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 break 2
3195 fi
3196done
3197 done
3198IFS=$as_save_IFS
3199
3200fi
3201fi
3202ac_ct_CC=$ac_cv_prog_ac_ct_CC
3203if test -n "$ac_ct_CC"; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3205$as_echo "$ac_ct_CC" >&6; }
3206else
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208$as_echo "no" >&6; }
3209fi
3210
3211
3212 test -n "$ac_ct_CC" && break
3213done
3214
3215 if test "x$ac_ct_CC" = x; then
3216 CC=""
3217 else
3218 case $cross_compiling:$ac_tool_warned in
3219yes:)
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3222ac_tool_warned=yes ;;
3223esac
3224 CC=$ac_ct_CC
3225 fi
3226fi
3227
3228fi
3229
3230
3231test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233as_fn_error "no acceptable C compiler found in \$PATH
3234See \`config.log' for more details." "$LINENO" 5; }
3235
3236# Provide some information about the compiler.
3237$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3238set X $ac_compile
3239ac_compiler=$2
3240for ac_option in --version -v -V -qversion; do
3241 { { ac_try="$ac_compiler $ac_option >&5"
3242case "(($ac_try" in
3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3245esac
3246eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247$as_echo "$ac_try_echo"; } >&5
3248 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3249 ac_status=$?
3250 if test -s conftest.err; then
3251 sed '10a\
3252... rest of stderr output deleted ...
3253 10q' conftest.err >conftest.er1
3254 cat conftest.er1 >&5
3255 rm -f conftest.er1 conftest.err
3256 fi
3257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258 test $ac_status = 0; }
3259done
3260
3261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262/* end confdefs.h. */
3263
fabfcf5e
KT
3264int
3265main ()
3266{
3267
3268 ;
3269 return 0;
3270}
3271_ACEOF
3272# FIXME: Cleanup?
3273if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3274 (eval $ac_link) 2>&5
3275 ac_status=$?
3276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277 test $ac_status = 0; }; then :
3278 gcc_no_link=no
3279else
3280 gcc_no_link=yes
3281fi
3282if test x$gcc_no_link = xyes; then
3283 # Setting cross_compile will disable run tests; it will
3284 # also disable AC_CHECK_FILE but that's generally
3285 # correct if we can't link.
3286 cross_compiling=yes
3287 EXEEXT=
3288else
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290/* end confdefs.h. */
3291
1ec601bf
FXC
3292int
3293main ()
3294{
3295
3296 ;
3297 return 0;
3298}
3299_ACEOF
3300ac_clean_files_save=$ac_clean_files
3301ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3302# Try to create an executable without -o first, disregard a.out.
3303# It will help us diagnose broken compilers, and finding out an intuition
3304# of exeext.
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3306$as_echo_n "checking for C compiler default output file name... " >&6; }
3307ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3308
3309# The possible output files:
3310ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3311
3312ac_rmfiles=
3313for ac_file in $ac_files
3314do
3315 case $ac_file in
3316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3317 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3318 esac
3319done
3320rm -f $ac_rmfiles
3321
3322if { { ac_try="$ac_link_default"
3323case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326esac
3327eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328$as_echo "$ac_try_echo"; } >&5
3329 (eval "$ac_link_default") 2>&5
3330 ac_status=$?
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }; then :
3333 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3334# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3335# in a Makefile. We should not override ac_cv_exeext if it was cached,
3336# so that the user can short-circuit this test for compilers unknown to
3337# Autoconf.
3338for ac_file in $ac_files ''
3339do
3340 test -f "$ac_file" || continue
3341 case $ac_file in
3342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3343 ;;
3344 [ab].out )
3345 # We found the default executable, but exeext='' is most
3346 # certainly right.
3347 break;;
3348 *.* )
3349 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3350 then :; else
3351 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3352 fi
3353 # We set ac_cv_exeext here because the later test for it is not
3354 # safe: cross compilers may not add the suffix if given an `-o'
3355 # argument, so we may need to know it at that point already.
3356 # Even if this section looks crufty: it has the advantage of
3357 # actually working.
3358 break;;
3359 * )
3360 break;;
3361 esac
3362done
3363test "$ac_cv_exeext" = no && ac_cv_exeext=
3364
3365else
3366 ac_file=''
3367fi
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3369$as_echo "$ac_file" >&6; }
3370if test -z "$ac_file"; then :
3371 $as_echo "$as_me: failed program was:" >&5
3372sed 's/^/| /' conftest.$ac_ext >&5
3373
3374{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376{ as_fn_set_status 77
3377as_fn_error "C compiler cannot create executables
3378See \`config.log' for more details." "$LINENO" 5; }; }
3379fi
3380ac_exeext=$ac_cv_exeext
3381
3382# Check that the compiler produces executables we can run. If not, either
3383# the compiler is broken, or we cross compile.
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3385$as_echo_n "checking whether the C compiler works... " >&6; }
3386# If not cross compiling, check that we can run a simple program.
3387if test "$cross_compiling" != yes; then
3388 if { ac_try='./$ac_file'
3389 { { case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392esac
3393eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394$as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_try") 2>&5
3396 ac_status=$?
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }; }; then
3399 cross_compiling=no
3400 else
3401 if test "$cross_compiling" = maybe; then
3402 cross_compiling=yes
3403 else
3404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3406as_fn_error "cannot run C compiled programs.
3407If you meant to cross compile, use \`--host'.
3408See \`config.log' for more details." "$LINENO" 5; }
3409 fi
3410 fi
3411fi
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3413$as_echo "yes" >&6; }
3414
3415rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3416ac_clean_files=$ac_clean_files_save
3417# Check that the compiler produces executables we can run. If not, either
3418# the compiler is broken, or we cross compile.
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3420$as_echo_n "checking whether we are cross compiling... " >&6; }
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3422$as_echo "$cross_compiling" >&6; }
3423
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3425$as_echo_n "checking for suffix of executables... " >&6; }
3426if { { ac_try="$ac_link"
3427case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430esac
3431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432$as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_link") 2>&5
3434 ac_status=$?
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }; then :
3437 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3438# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3439# work properly (i.e., refer to `conftest.exe'), while it won't with
3440# `rm'.
3441for ac_file in conftest.exe conftest conftest.*; do
3442 test -f "$ac_file" || continue
3443 case $ac_file in
3444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3445 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3446 break;;
3447 * ) break;;
3448 esac
3449done
3450else
3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453as_fn_error "cannot compute suffix of executables: cannot compile and link
3454See \`config.log' for more details." "$LINENO" 5; }
3455fi
3456rm -f conftest$ac_cv_exeext
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3458$as_echo "$ac_cv_exeext" >&6; }
3459
3460rm -f conftest.$ac_ext
3461EXEEXT=$ac_cv_exeext
3462ac_exeext=$EXEEXT
fabfcf5e 3463fi
1ec601bf
FXC
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3465$as_echo_n "checking for suffix of object files... " >&6; }
3466if test "${ac_cv_objext+set}" = set; then :
3467 $as_echo_n "(cached) " >&6
3468else
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470/* end confdefs.h. */
3471
3472int
3473main ()
3474{
3475
3476 ;
3477 return 0;
3478}
3479_ACEOF
3480rm -f conftest.o conftest.obj
3481if { { ac_try="$ac_compile"
3482case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485esac
3486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487$as_echo "$ac_try_echo"; } >&5
3488 (eval "$ac_compile") 2>&5
3489 ac_status=$?
3490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491 test $ac_status = 0; }; then :
3492 for ac_file in conftest.o conftest.obj conftest.*; do
3493 test -f "$ac_file" || continue;
3494 case $ac_file in
3495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3496 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3497 break;;
3498 esac
3499done
3500else
3501 $as_echo "$as_me: failed program was:" >&5
3502sed 's/^/| /' conftest.$ac_ext >&5
3503
3504{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506as_fn_error "cannot compute suffix of object files: cannot compile
3507See \`config.log' for more details." "$LINENO" 5; }
3508fi
3509rm -f conftest.$ac_cv_objext conftest.$ac_ext
3510fi
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3512$as_echo "$ac_cv_objext" >&6; }
3513OBJEXT=$ac_cv_objext
3514ac_objext=$OBJEXT
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3516$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3517if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3518 $as_echo_n "(cached) " >&6
3519else
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521/* end confdefs.h. */
3522
3523int
3524main ()
3525{
3526#ifndef __GNUC__
3527 choke me
3528#endif
3529
3530 ;
3531 return 0;
3532}
3533_ACEOF
3534if ac_fn_c_try_compile "$LINENO"; then :
3535 ac_compiler_gnu=yes
3536else
3537 ac_compiler_gnu=no
3538fi
3539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540ac_cv_c_compiler_gnu=$ac_compiler_gnu
3541
3542fi
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3544$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3545if test $ac_compiler_gnu = yes; then
3546 GCC=yes
3547else
3548 GCC=
3549fi
3550ac_test_CFLAGS=${CFLAGS+set}
3551ac_save_CFLAGS=$CFLAGS
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3553$as_echo_n "checking whether $CC accepts -g... " >&6; }
3554if test "${ac_cv_prog_cc_g+set}" = set; then :
3555 $as_echo_n "(cached) " >&6
3556else
3557 ac_save_c_werror_flag=$ac_c_werror_flag
3558 ac_c_werror_flag=yes
3559 ac_cv_prog_cc_g=no
3560 CFLAGS="-g"
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562/* end confdefs.h. */
3563
3564int
3565main ()
3566{
3567
3568 ;
3569 return 0;
3570}
3571_ACEOF
3572if ac_fn_c_try_compile "$LINENO"; then :
3573 ac_cv_prog_cc_g=yes
3574else
3575 CFLAGS=""
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577/* end confdefs.h. */
3578
3579int
3580main ()
3581{
3582
3583 ;
3584 return 0;
3585}
3586_ACEOF
3587if ac_fn_c_try_compile "$LINENO"; then :
3588
3589else
3590 ac_c_werror_flag=$ac_save_c_werror_flag
3591 CFLAGS="-g"
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593/* end confdefs.h. */
3594
3595int
3596main ()
3597{
3598
3599 ;
3600 return 0;
3601}
3602_ACEOF
3603if ac_fn_c_try_compile "$LINENO"; then :
3604 ac_cv_prog_cc_g=yes
3605fi
3606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607fi
3608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609fi
3610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 ac_c_werror_flag=$ac_save_c_werror_flag
3612fi
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3614$as_echo "$ac_cv_prog_cc_g" >&6; }
3615if test "$ac_test_CFLAGS" = set; then
3616 CFLAGS=$ac_save_CFLAGS
3617elif test $ac_cv_prog_cc_g = yes; then
3618 if test "$GCC" = yes; then
3619 CFLAGS="-g -O2"
3620 else
3621 CFLAGS="-g"
3622 fi
3623else
3624 if test "$GCC" = yes; then
3625 CFLAGS="-O2"
3626 else
3627 CFLAGS=
3628 fi
3629fi
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3631$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3632if test "${ac_cv_prog_cc_c89+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3634else
3635 ac_cv_prog_cc_c89=no
3636ac_save_CC=$CC
3637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638/* end confdefs.h. */
3639#include <stdarg.h>
3640#include <stdio.h>
3641#include <sys/types.h>
3642#include <sys/stat.h>
3643/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3644struct buf { int x; };
3645FILE * (*rcsopen) (struct buf *, struct stat *, int);
3646static char *e (p, i)
3647 char **p;
3648 int i;
3649{
3650 return p[i];
3651}
3652static char *f (char * (*g) (char **, int), char **p, ...)
3653{
3654 char *s;
3655 va_list v;
3656 va_start (v,p);
3657 s = g (p, va_arg (v,int));
3658 va_end (v);
3659 return s;
3660}
3661
3662/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3663 function prototypes and stuff, but not '\xHH' hex character constants.
3664 These don't provoke an error unfortunately, instead are silently treated
3665 as 'x'. The following induces an error, until -std is added to get
3666 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3667 array size at least. It's necessary to write '\x00'==0 to get something
3668 that's true only with -std. */
3669int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3670
3671/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3672 inside strings and character constants. */
3673#define FOO(x) 'x'
3674int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3675
3676int test (int i, double x);
3677struct s1 {int (*f) (int a);};
3678struct s2 {int (*f) (double a);};
3679int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3680int argc;
3681char **argv;
3682int
3683main ()
3684{
3685return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3686 ;
3687 return 0;
3688}
3689_ACEOF
3690for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3691 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3692do
3693 CC="$ac_save_CC $ac_arg"
3694 if ac_fn_c_try_compile "$LINENO"; then :
3695 ac_cv_prog_cc_c89=$ac_arg
3696fi
3697rm -f core conftest.err conftest.$ac_objext
3698 test "x$ac_cv_prog_cc_c89" != "xno" && break
3699done
3700rm -f conftest.$ac_ext
3701CC=$ac_save_CC
3702
3703fi
3704# AC_CACHE_VAL
3705case "x$ac_cv_prog_cc_c89" in
3706 x)
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3708$as_echo "none needed" >&6; } ;;
3709 xno)
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3711$as_echo "unsupported" >&6; } ;;
3712 *)
3713 CC="$CC $ac_cv_prog_cc_c89"
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3715$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3716esac
3717if test "x$ac_cv_prog_cc_c89" != xno; then :
3718
3719fi
3720
3721ac_ext=c
3722ac_cpp='$CPP $CPPFLAGS'
3723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3725ac_compiler_gnu=$ac_cv_c_compiler_gnu
1ec601bf 3726
fabfcf5e 3727depcc="$CC" am_compiler_list=
1ec601bf 3728
fabfcf5e
KT
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3730$as_echo_n "checking dependency style of $depcc... " >&6; }
3731if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3732 $as_echo_n "(cached) " >&6
3733else
3734 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3735 # We make a subdir and do the tests there. Otherwise we can end up
3736 # making bogus files that we don't know about and never remove. For
3737 # instance it was reported that on HP-UX the gcc test will end up
3738 # making a dummy file named `D' -- because `-MD' means `put the output
3739 # in D'.
3740 mkdir conftest.dir
3741 # Copy depcomp to subdir because otherwise we won't find it if we're
3742 # using a relative directory.
3743 cp "$am_depcomp" conftest.dir
3744 cd conftest.dir
3745 # We will build objects and dependencies in a subdirectory because
3746 # it helps to detect inapplicable dependency modes. For instance
3747 # both Tru64's cc and ICC support -MD to output dependencies as a
3748 # side effect of compilation, but ICC will put the dependencies in
3749 # the current directory while Tru64 will put them in the object
3750 # directory.
3751 mkdir sub
1ec601bf
FXC
3752
3753 am_cv_CC_dependencies_compiler_type=none
3754 if test "$am_compiler_list" = ""; then
3755 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3756 fi
3757 am__universal=false
3758 case " $depcc " in #(
3759 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3760 esac
3761
3762 for depmode in $am_compiler_list; do
3763 # Setup a source with many dependencies, because some compilers
3764 # like to wrap large dependency lists on column 80 (with \), and
3765 # we should not choose a depcomp mode which is confused by this.
3766 #
3767 # We need to recreate these files for each test, as the compiler may
3768 # overwrite some of them when testing with obscure command lines.
3769 # This happens at least with the AIX C compiler.
3770 : > sub/conftest.c
3771 for i in 1 2 3 4 5 6; do
3772 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3773 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3774 # Solaris 8's {/usr,}/bin/sh.
3775 touch sub/conftst$i.h
3776 done
3777 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3778
3779 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3780 # mode. It turns out that the SunPro C++ compiler does not properly
3781 # handle `-M -o', and we need to detect this. Also, some Intel
3782 # versions had trouble with output in subdirs
3783 am__obj=sub/conftest.${OBJEXT-o}
3784 am__minus_obj="-o $am__obj"
3785 case $depmode in
3786 gcc)
3787 # This depmode causes a compiler race in universal mode.
3788 test "$am__universal" = false || continue
3789 ;;
3790 nosideeffect)
3791 # after this tag, mechanisms are not by side-effect, so they'll
3792 # only be used when explicitly requested
3793 if test "x$enable_dependency_tracking" = xyes; then
3794 continue
3795 else
3796 break
3797 fi
3798 ;;
3799 msvisualcpp | msvcmsys)
3800 # This compiler won't grok `-c -o', but also, the minuso test has
3801 # not run yet. These depmodes are late enough in the game, and
3802 # so weak that their functioning should not be impacted.
3803 am__obj=conftest.${OBJEXT-o}
3804 am__minus_obj=
3805 ;;
3806 none) break ;;
3807 esac
3808 if depmode=$depmode \
3809 source=sub/conftest.c object=$am__obj \
3810 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3811 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3812 >/dev/null 2>conftest.err &&
3813 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3814 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3815 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3816 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3817 # icc doesn't choke on unknown options, it will just issue warnings
3818 # or remarks (even with -Werror). So we grep stderr for any message
3819 # that says an option was ignored or not supported.
3820 # When given -MP, icc 7.0 and 7.1 complain thusly:
3821 # icc: Command line warning: ignoring option '-M'; no argument required
3822 # The diagnosis changed in icc 8.0:
3823 # icc: Command line remark: option '-MP' not supported
3824 if (grep 'ignoring option' conftest.err ||
3825 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3826 am_cv_CC_dependencies_compiler_type=$depmode
3827 break
3828 fi
3829 fi
3830 done
3831
3832 cd ..
3833 rm -rf conftest.dir
3834else
3835 am_cv_CC_dependencies_compiler_type=none
3836fi
3837
3838fi
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3840$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3841CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3842
3843 if
3844 test "x$enable_dependency_tracking" != xno \
3845 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3846 am__fastdepCC_TRUE=
3847 am__fastdepCC_FALSE='#'
3848else
3849 am__fastdepCC_TRUE='#'
3850 am__fastdepCC_FALSE=
3851fi
3852
3853
1d92226b
JJ
3854
3855ac_ext=c
3856ac_cpp='$CPP $CPPFLAGS'
3857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3859ac_compiler_gnu=$ac_cv_c_compiler_gnu
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3861$as_echo_n "checking how to run the C preprocessor... " >&6; }
3862# On Suns, sometimes $CPP names a directory.
3863if test -n "$CPP" && test -d "$CPP"; then
3864 CPP=
3865fi
3866if test -z "$CPP"; then
3867 if test "${ac_cv_prog_CPP+set}" = set; then :
1ec601bf
FXC
3868 $as_echo_n "(cached) " >&6
3869else
1d92226b
JJ
3870 # Double quotes because CPP needs to be expanded
3871 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3872 do
3873 ac_preproc_ok=false
3874for ac_c_preproc_warn_flag in '' yes
fabfcf5e 3875do
1d92226b
JJ
3876 # Use a header file that comes with gcc, so configuring glibc
3877 # with a fresh cross-compiler works.
3878 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3879 # <limits.h> exists even on freestanding compilers.
3880 # On the NeXT, cc -E runs the code through the compiler's parser,
3881 # not just through cpp. "Syntax error" is here to catch this case.
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883/* end confdefs.h. */
3884#ifdef __STDC__
3885# include <limits.h>
3886#else
3887# include <assert.h>
3888#endif
3889 Syntax error
3890_ACEOF
3891if ac_fn_c_try_cpp "$LINENO"; then :
fabfcf5e 3892
1ec601bf 3893else
1d92226b
JJ
3894 # Broken: fails on valid input.
3895continue
1ec601bf 3896fi
1d92226b 3897rm -f conftest.err conftest.$ac_ext
1ec601bf 3898
1d92226b
JJ
3899 # OK, works on sane cases. Now check whether nonexistent headers
3900 # can be detected and how.
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902/* end confdefs.h. */
3903#include <ac_nonexistent.h>
3904_ACEOF
3905if ac_fn_c_try_cpp "$LINENO"; then :
3906 # Broken: success on invalid input.
3907continue
3908else
3909 # Passes both tests.
3910ac_preproc_ok=:
3911break
1ec601bf 3912fi
1d92226b 3913rm -f conftest.err conftest.$ac_ext
1ec601bf 3914
1d92226b
JJ
3915done
3916# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3917rm -f conftest.err conftest.$ac_ext
3918if $ac_preproc_ok; then :
3919 break
3920fi
1ec601bf 3921
1d92226b
JJ
3922 done
3923 ac_cv_prog_CPP=$CPP
1ec601bf 3924
1d92226b
JJ
3925fi
3926 CPP=$ac_cv_prog_CPP
1ec601bf 3927else
1d92226b
JJ
3928 ac_cv_prog_CPP=$CPP
3929fi
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3931$as_echo "$CPP" >&6; }
3932ac_preproc_ok=false
3933for ac_c_preproc_warn_flag in '' yes
1ec601bf 3934do
1d92226b
JJ
3935 # Use a header file that comes with gcc, so configuring glibc
3936 # with a fresh cross-compiler works.
3937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3938 # <limits.h> exists even on freestanding compilers.
3939 # On the NeXT, cc -E runs the code through the compiler's parser,
3940 # not just through cpp. "Syntax error" is here to catch this case.
3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942/* end confdefs.h. */
3943#ifdef __STDC__
3944# include <limits.h>
3945#else
3946# include <assert.h>
3947#endif
3948 Syntax error
3949_ACEOF
3950if ac_fn_c_try_cpp "$LINENO"; then :
3951
3952else
3953 # Broken: fails on valid input.
3954continue
3955fi
3956rm -f conftest.err conftest.$ac_ext
3957
3958 # OK, works on sane cases. Now check whether nonexistent headers
3959 # can be detected and how.
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961/* end confdefs.h. */
3962#include <ac_nonexistent.h>
3963_ACEOF
3964if ac_fn_c_try_cpp "$LINENO"; then :
3965 # Broken: success on invalid input.
3966continue
3967else
3968 # Passes both tests.
3969ac_preproc_ok=:
3970break
3971fi
3972rm -f conftest.err conftest.$ac_ext
3973
3974done
3975# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3976rm -f conftest.err conftest.$ac_ext
3977if $ac_preproc_ok; then :
3978
3979else
3980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3982as_fn_error "C preprocessor \"$CPP\" fails sanity check
3983See \`config.log' for more details." "$LINENO" 5; }
3984fi
3985
3986ac_ext=c
3987ac_cpp='$CPP $CPPFLAGS'
3988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3990ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991
3992
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3994$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3995if test "${ac_cv_path_GREP+set}" = set; then :
3996 $as_echo_n "(cached) " >&6
3997else
3998 if test -z "$GREP"; then
3999 ac_path_GREP_found=false
4000 # Loop through the user's path and test for each of PROGNAME-LIST
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4003do
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_prog in grep ggrep; do
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4009 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4010# Check for GNU ac_path_GREP and select it if it is found.
4011 # Check for GNU $ac_path_GREP
4012case `"$ac_path_GREP" --version 2>&1` in
4013*GNU*)
1ec601bf
FXC
4014 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4015*)
4016 ac_count=0
4017 $as_echo_n 0123456789 >"conftest.in"
4018 while :
4019 do
4020 cat "conftest.in" "conftest.in" >"conftest.tmp"
4021 mv "conftest.tmp" "conftest.in"
4022 cp "conftest.in" "conftest.nl"
4023 $as_echo 'GREP' >> "conftest.nl"
4024 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4026 as_fn_arith $ac_count + 1 && ac_count=$as_val
4027 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4028 # Best one so far, save it but keep looking for a better one
4029 ac_cv_path_GREP="$ac_path_GREP"
4030 ac_path_GREP_max=$ac_count
4031 fi
4032 # 10*(2^10) chars as input seems more than enough
4033 test $ac_count -gt 10 && break
4034 done
4035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4036esac
4037
4038 $ac_path_GREP_found && break 3
4039 done
4040 done
4041 done
4042IFS=$as_save_IFS
4043 if test -z "$ac_cv_path_GREP"; then
4044 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4045 fi
4046else
4047 ac_cv_path_GREP=$GREP
4048fi
4049
4050fi
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4052$as_echo "$ac_cv_path_GREP" >&6; }
4053 GREP="$ac_cv_path_GREP"
4054
4055
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4057$as_echo_n "checking for egrep... " >&6; }
4058if test "${ac_cv_path_EGREP+set}" = set; then :
4059 $as_echo_n "(cached) " >&6
4060else
4061 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4062 then ac_cv_path_EGREP="$GREP -E"
4063 else
4064 if test -z "$EGREP"; then
4065 ac_path_EGREP_found=false
4066 # Loop through the user's path and test for each of PROGNAME-LIST
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4069do
4070 IFS=$as_save_IFS
4071 test -z "$as_dir" && as_dir=.
4072 for ac_prog in egrep; do
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4075 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4076# Check for GNU ac_path_EGREP and select it if it is found.
4077 # Check for GNU $ac_path_EGREP
4078case `"$ac_path_EGREP" --version 2>&1` in
4079*GNU*)
4080 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4081*)
4082 ac_count=0
4083 $as_echo_n 0123456789 >"conftest.in"
4084 while :
4085 do
4086 cat "conftest.in" "conftest.in" >"conftest.tmp"
4087 mv "conftest.tmp" "conftest.in"
4088 cp "conftest.in" "conftest.nl"
4089 $as_echo 'EGREP' >> "conftest.nl"
4090 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4091 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4092 as_fn_arith $ac_count + 1 && ac_count=$as_val
4093 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4094 # Best one so far, save it but keep looking for a better one
4095 ac_cv_path_EGREP="$ac_path_EGREP"
4096 ac_path_EGREP_max=$ac_count
4097 fi
4098 # 10*(2^10) chars as input seems more than enough
4099 test $ac_count -gt 10 && break
4100 done
4101 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4102esac
4103
4104 $ac_path_EGREP_found && break 3
4105 done
4106 done
4107 done
4108IFS=$as_save_IFS
4109 if test -z "$ac_cv_path_EGREP"; then
4110 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4111 fi
4112else
4113 ac_cv_path_EGREP=$EGREP
4114fi
4115
4116 fi
4117fi
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4119$as_echo "$ac_cv_path_EGREP" >&6; }
4120 EGREP="$ac_cv_path_EGREP"
4121
4122
1d92226b
JJ
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4124$as_echo_n "checking for ANSI C header files... " >&6; }
4125if test "${ac_cv_header_stdc+set}" = set; then :
1ec601bf
FXC
4126 $as_echo_n "(cached) " >&6
4127else
1d92226b
JJ
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129/* end confdefs.h. */
4130#include <stdlib.h>
4131#include <stdarg.h>
4132#include <string.h>
4133#include <float.h>
1ec601bf 4134
1d92226b
JJ
4135int
4136main ()
4137{
4138
4139 ;
4140 return 0;
4141}
4142_ACEOF
4143if ac_fn_c_try_compile "$LINENO"; then :
4144 ac_cv_header_stdc=yes
1ec601bf 4145else
1d92226b 4146 ac_cv_header_stdc=no
1ec601bf 4147fi
1d92226b 4148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1ec601bf 4149
1d92226b
JJ
4150if test $ac_cv_header_stdc = yes; then
4151 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153/* end confdefs.h. */
4154#include <string.h>
4155
4156_ACEOF
4157if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 $EGREP "memchr" >/dev/null 2>&1; then :
4159
4160else
4161 ac_cv_header_stdc=no
1ec601bf 4162fi
1d92226b 4163rm -f conftest*
1ec601bf 4164
1d92226b 4165fi
1ec601bf 4166
1d92226b
JJ
4167if test $ac_cv_header_stdc = yes; then
4168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170/* end confdefs.h. */
4171#include <stdlib.h>
1ec601bf 4172
1d92226b
JJ
4173_ACEOF
4174if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4175 $EGREP "free" >/dev/null 2>&1; then :
1ec601bf 4176
1d92226b
JJ
4177else
4178 ac_cv_header_stdc=no
4179fi
4180rm -f conftest*
1ec601bf 4181
1d92226b 4182fi
1ec601bf 4183
1d92226b
JJ
4184if test $ac_cv_header_stdc = yes; then
4185 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4186 if test "$cross_compiling" = yes; then :
4187 :
4188else
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190/* end confdefs.h. */
4191#include <ctype.h>
4192#include <stdlib.h>
4193#if ((' ' & 0x0FF) == 0x020)
4194# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4195# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4196#else
4197# define ISLOWER(c) \
4198 (('a' <= (c) && (c) <= 'i') \
4199 || ('j' <= (c) && (c) <= 'r') \
4200 || ('s' <= (c) && (c) <= 'z'))
4201# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4202#endif
1ec601bf 4203
1d92226b
JJ
4204#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4205int
4206main ()
4207{
4208 int i;
4209 for (i = 0; i < 256; i++)
4210 if (XOR (islower (i), ISLOWER (i))
4211 || toupper (i) != TOUPPER (i))
4212 return 2;
4213 return 0;
4214}
4215_ACEOF
4216if ac_fn_c_try_run "$LINENO"; then :
1ec601bf 4217
1d92226b
JJ
4218else
4219 ac_cv_header_stdc=no
4220fi
4221rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4222 conftest.$ac_objext conftest.beam conftest.$ac_ext
4223fi
1ec601bf 4224
1d92226b
JJ
4225fi
4226fi
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4228$as_echo "$ac_cv_header_stdc" >&6; }
4229if test $ac_cv_header_stdc = yes; then
1ec601bf 4230
1d92226b 4231$as_echo "#define STDC_HEADERS 1" >>confdefs.h
1ec601bf 4232
1d92226b 4233fi
1ec601bf 4234
1d92226b
JJ
4235# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4236for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4237 inttypes.h stdint.h unistd.h
4238do :
4239 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4240ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4241"
4242eval as_val=\$$as_ac_Header
4243 if test "x$as_val" = x""yes; then :
4244 cat >>confdefs.h <<_ACEOF
4245#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4246_ACEOF
1ec601bf 4247
1d92226b 4248fi
1ec601bf 4249
1d92226b 4250done
1ec601bf
FXC
4251
4252
4253
1d92226b
JJ
4254 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4255if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4256 MINIX=yes
4257else
4258 MINIX=
4259fi
1ec601bf
FXC
4260
4261
1d92226b 4262 if test "$MINIX" = yes; then
1ec601bf 4263
1d92226b 4264$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
1ec601bf 4265
1ec601bf 4266
1d92226b
JJ
4267$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4268
4269
4270$as_echo "#define _MINIX 1" >>confdefs.h
4271
4272 fi
4273
4274
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4276$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4277if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
1ec601bf
FXC
4278 $as_echo_n "(cached) " >&6
4279else
1d92226b
JJ
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281/* end confdefs.h. */
1ec601bf 4282
1d92226b
JJ
4283# define __EXTENSIONS__ 1
4284 $ac_includes_default
4285int
4286main ()
4287{
4288
4289 ;
4290 return 0;
4291}
4292_ACEOF
4293if ac_fn_c_try_compile "$LINENO"; then :
4294 ac_cv_safe_to_define___extensions__=yes
1ec601bf 4295else
1d92226b 4296 ac_cv_safe_to_define___extensions__=no
1ec601bf 4297fi
1d92226b 4298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1ec601bf 4299fi
1d92226b
JJ
4300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4301$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4302 test $ac_cv_safe_to_define___extensions__ = yes &&
4303 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
1ec601bf 4304
1d92226b 4305 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
1ec601bf 4306
1d92226b 4307 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
1ec601bf 4308
1d92226b 4309 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
1ec601bf 4310
1d92226b 4311 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
1ec601bf
FXC
4312
4313
4314
1d92226b
JJ
4315# See if makeinfo has been installed and is modern enough
4316# that we can use it.
1ec601bf 4317
1d92226b
JJ
4318 # Extract the first word of "makeinfo", so it can be a program name with args.
4319set dummy makeinfo; ac_word=$2
1ec601bf
FXC
4320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321$as_echo_n "checking for $ac_word... " >&6; }
1d92226b 4322if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
1ec601bf
FXC
4323 $as_echo_n "(cached) " >&6
4324else
1d92226b
JJ
4325 if test -n "$MAKEINFO"; then
4326 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1ec601bf
FXC
4327else
4328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329for as_dir in $PATH
4330do
4331 IFS=$as_save_IFS
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1d92226b 4335 ac_cv_prog_MAKEINFO="makeinfo"
1ec601bf
FXC
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 break 2
4338 fi
4339done
4340 done
4341IFS=$as_save_IFS
4342
4343fi
4344fi
1d92226b
JJ
4345MAKEINFO=$ac_cv_prog_MAKEINFO
4346if test -n "$MAKEINFO"; then
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4348$as_echo "$MAKEINFO" >&6; }
1ec601bf
FXC
4349else
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351$as_echo "no" >&6; }
4352fi
4353
4354
1d92226b
JJ
4355 if test -n "$MAKEINFO"; then
4356 # Found it, now check the version.
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4358$as_echo_n "checking for modern makeinfo... " >&6; }
4359if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
1ec601bf
FXC
4360 $as_echo_n "(cached) " >&6
4361else
1d92226b
JJ
4362 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4363 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4364
4365 case $ac_prog_version in
4366 '') gcc_cv_prog_makeinfo_modern=no;;
4367 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4368 *) gcc_cv_prog_makeinfo_modern=no;;
4369 esac
1ec601bf
FXC
4370
4371fi
1d92226b
JJ
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4373$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4374 else
4375 gcc_cv_prog_makeinfo_modern=no
4376 fi
4377 if test $gcc_cv_prog_makeinfo_modern = no; then
4378 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4379 fi
4380
4381 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4382 BUILD_INFO_TRUE=
4383 BUILD_INFO_FALSE='#'
1ec601bf 4384else
1d92226b
JJ
4385 BUILD_INFO_TRUE='#'
4386 BUILD_INFO_FALSE=
1ec601bf
FXC
4387fi
4388
4389
1ec601bf 4390
1ec601bf 4391
1d92226b
JJ
4392# Check whether --with-bugurl was given.
4393if test "${with_bugurl+set}" = set; then :
4394 withval=$with_bugurl; case "$withval" in
4395 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
4396 no) BUGURL=
4397 ;;
4398 *) BUGURL="$withval"
4399 ;;
4400 esac
4401else
4402 BUGURL="http://gcc.gnu.org/bugs.html"
1ec601bf 4403
1ec601bf 4404fi
1ec601bf 4405
1d92226b
JJ
4406 case ${BUGURL} in
4407 "")
4408 REPORT_BUGS_TO=
4409 REPORT_BUGS_TEXI=
4410 ;;
4411 *)
4412 REPORT_BUGS_TO="<$BUGURL>"
4413 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4414 ;;
4415 esac;
1ec601bf
FXC
4416
4417
4418
4419
1d92226b
JJ
4420# Configure libtool
4421case `pwd` in
4422 *\ * | *\ *)
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4424$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4425esac
1ec601bf 4426
1ec601bf 4427
1ec601bf 4428
1d92226b
JJ
4429macro_version='2.2.7a'
4430macro_revision='1.3134'
1ec601bf 4431
1ec601bf 4432
1ec601bf 4433
1ec601bf 4434
1ec601bf 4435
1ec601bf 4436
1ec601bf 4437
1ec601bf 4438
1ec601bf 4439
1ec601bf
FXC
4440
4441
4442
4443
1d92226b 4444ltmain="$ac_aux_dir/ltmain.sh"
1ec601bf 4445
1d92226b
JJ
4446# Backslashify metacharacters that are still active within
4447# double-quoted strings.
4448sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1ec601bf 4449
1d92226b
JJ
4450# Same as above, but do not quote variable references.
4451double_quote_subst='s/\(["`\\]\)/\\\1/g'
1ec601bf 4452
1d92226b
JJ
4453# Sed substitution to delay expansion of an escaped shell variable in a
4454# double_quote_subst'ed string.
4455delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1ec601bf 4456
1d92226b
JJ
4457# Sed substitution to delay expansion of an escaped single quote.
4458delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1ec601bf 4459
1d92226b
JJ
4460# Sed substitution to avoid accidental globbing in evaled expressions
4461no_glob_subst='s/\*/\\\*/g'
1ec601bf 4462
1d92226b
JJ
4463ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4464ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4465ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1ec601bf 4466
1d92226b
JJ
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4468$as_echo_n "checking how to print strings... " >&6; }
4469# Test print first, because it will be a builtin if present.
4470if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4471 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4472 ECHO='print -r --'
4473elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4474 ECHO='printf %s\n'
1ec601bf 4475else
1d92226b
JJ
4476 # Use this function as a fallback that always works.
4477 func_fallback_echo ()
4478 {
4479 eval 'cat <<_LTECHO_EOF
4480$1
4481_LTECHO_EOF'
4482 }
4483 ECHO='func_fallback_echo'
1ec601bf
FXC
4484fi
4485
1d92226b
JJ
4486# func_echo_all arg...
4487# Invoke $ECHO with all args, space-separated.
4488func_echo_all ()
4489{
4490 $ECHO ""
4491}
1ec601bf 4492
1d92226b
JJ
4493case "$ECHO" in
4494 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4495$as_echo "printf" >&6; } ;;
4496 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4497$as_echo "print -r" >&6; } ;;
4498 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4499$as_echo "cat" >&6; } ;;
1ec601bf
FXC
4500esac
4501
4502
4503
4504
4505
4506
4507
4508
4509
1ec601bf
FXC
4510
4511
4512
4513
4514
1d92226b
JJ
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4516$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4517if test "${ac_cv_path_SED+set}" = set; then :
1ec601bf
FXC
4518 $as_echo_n "(cached) " >&6
4519else
1d92226b
JJ
4520 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4521 for ac_i in 1 2 3 4 5 6 7; do
4522 ac_script="$ac_script$as_nl$ac_script"
4523 done
4524 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4525 { ac_script=; unset ac_script;}
4526 if test -z "$SED"; then
4527 ac_path_SED_found=false
4528 # Loop through the user's path and test for each of PROGNAME-LIST
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1ec601bf
FXC
4530for as_dir in $PATH
4531do
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
1d92226b 4534 for ac_prog in sed gsed; do
1ec601bf 4535 for ac_exec_ext in '' $ac_executable_extensions; do
1d92226b
JJ
4536 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4537 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4538# Check for GNU ac_path_SED and select it if it is found.
4539 # Check for GNU $ac_path_SED
4540case `"$ac_path_SED" --version 2>&1` in
4541*GNU*)
4542 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4543*)
4544 ac_count=0
4545 $as_echo_n 0123456789 >"conftest.in"
4546 while :
4547 do
4548 cat "conftest.in" "conftest.in" >"conftest.tmp"
4549 mv "conftest.tmp" "conftest.in"
4550 cp "conftest.in" "conftest.nl"
4551 $as_echo '' >> "conftest.nl"
4552 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4553 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4554 as_fn_arith $ac_count + 1 && ac_count=$as_val
4555 if test $ac_count -gt ${ac_path_SED_max-0}; then
4556 # Best one so far, save it but keep looking for a better one
4557 ac_cv_path_SED="$ac_path_SED"
4558 ac_path_SED_max=$ac_count
4559 fi
4560 # 10*(2^10) chars as input seems more than enough
4561 test $ac_count -gt 10 && break
1ec601bf 4562 done
1d92226b
JJ
4563 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4564esac
1ec601bf 4565
1d92226b
JJ
4566 $ac_path_SED_found && break 3
4567 done
4568 done
4569 done
4570IFS=$as_save_IFS
4571 if test -z "$ac_cv_path_SED"; then
4572 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4573 fi
1ec601bf 4574else
1d92226b 4575 ac_cv_path_SED=$SED
1ec601bf
FXC
4576fi
4577
1ec601bf 4578fi
1d92226b
JJ
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4580$as_echo "$ac_cv_path_SED" >&6; }
4581 SED="$ac_cv_path_SED"
4582 rm -f conftest.sed
4583
4584test -z "$SED" && SED=sed
4585Xsed="$SED -e 1s/^X//"
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4598$as_echo_n "checking for fgrep... " >&6; }
4599if test "${ac_cv_path_FGREP+set}" = set; then :
1ec601bf
FXC
4600 $as_echo_n "(cached) " >&6
4601else
1d92226b
JJ
4602 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4603 then ac_cv_path_FGREP="$GREP -F"
4604 else
4605 if test -z "$FGREP"; then
4606 ac_path_FGREP_found=false
4607 # Loop through the user's path and test for each of PROGNAME-LIST
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
1ec601bf
FXC
4610do
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
1d92226b 4613 for ac_prog in fgrep; do
1ec601bf 4614 for ac_exec_ext in '' $ac_executable_extensions; do
1d92226b
JJ
4615 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4616 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4617# Check for GNU ac_path_FGREP and select it if it is found.
4618 # Check for GNU $ac_path_FGREP
4619case `"$ac_path_FGREP" --version 2>&1` in
4620*GNU*)
4621 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4622*)
4623 ac_count=0
4624 $as_echo_n 0123456789 >"conftest.in"
4625 while :
4626 do
4627 cat "conftest.in" "conftest.in" >"conftest.tmp"
4628 mv "conftest.tmp" "conftest.in"
4629 cp "conftest.in" "conftest.nl"
4630 $as_echo 'FGREP' >> "conftest.nl"
4631 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4633 as_fn_arith $ac_count + 1 && ac_count=$as_val
4634 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4635 # Best one so far, save it but keep looking for a better one
4636 ac_cv_path_FGREP="$ac_path_FGREP"
4637 ac_path_FGREP_max=$ac_count
4638 fi
4639 # 10*(2^10) chars as input seems more than enough
4640 test $ac_count -gt 10 && break
1ec601bf 4641 done
1d92226b
JJ
4642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4643esac
1ec601bf 4644
1d92226b
JJ
4645 $ac_path_FGREP_found && break 3
4646 done
4647 done
4648 done
4649IFS=$as_save_IFS
4650 if test -z "$ac_cv_path_FGREP"; then
4651 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4652 fi
1ec601bf 4653else
1d92226b 4654 ac_cv_path_FGREP=$FGREP
1ec601bf
FXC
4655fi
4656
1d92226b 4657 fi
1ec601bf 4658fi
1d92226b
JJ
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4660$as_echo "$ac_cv_path_FGREP" >&6; }
4661 FGREP="$ac_cv_path_FGREP"
1ec601bf 4662
1ec601bf 4663
1d92226b 4664test -z "$GREP" && GREP=grep
1ec601bf
FXC
4665
4666
4667
4668
4669
4670
4671
4672
1d92226b
JJ
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684# Check whether --with-gnu-ld was given.
4685if test "${with_gnu_ld+set}" = set; then :
4686 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4687else
4688 with_gnu_ld=no
4689fi
4690
4691ac_prog=ld
4692if test "$GCC" = yes; then
4693 # Check if gcc -print-prog-name=ld gives a path.
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4695$as_echo_n "checking for ld used by $CC... " >&6; }
4696 case $host in
4697 *-*-mingw*)
4698 # gcc leaves a trailing carriage return which upsets mingw
4699 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4700 *)
4701 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4702 esac
4703 case $ac_prog in
4704 # Accept absolute paths.
4705 [\\/]* | ?:[\\/]*)
4706 re_direlt='/[^/][^/]*/\.\./'
4707 # Canonicalize the pathname of ld
4708 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4709 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4710 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4711 done
4712 test -z "$LD" && LD="$ac_prog"
4713 ;;
4714 "")
4715 # If it fails, then pretend we aren't using GCC.
4716 ac_prog=ld
4717 ;;
4718 *)
4719 # If it is relative, then search for the first ld in PATH.
4720 with_gnu_ld=unknown
4721 ;;
4722 esac
4723elif test "$with_gnu_ld" = yes; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4725$as_echo_n "checking for GNU ld... " >&6; }
4726else
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4728$as_echo_n "checking for non-GNU ld... " >&6; }
4729fi
4730if test "${lt_cv_path_LD+set}" = set; then :
4731 $as_echo_n "(cached) " >&6
4732else
4733 if test -z "$LD"; then
4734 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4735 for ac_dir in $PATH; do
4736 IFS="$lt_save_ifs"
4737 test -z "$ac_dir" && ac_dir=.
4738 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4739 lt_cv_path_LD="$ac_dir/$ac_prog"
4740 # Check to see if the program is GNU ld. I'd rather use --version,
4741 # but apparently some variants of GNU ld only accept -v.
4742 # Break only if it was the GNU/non-GNU ld that we prefer.
4743 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4744 *GNU* | *'with BFD'*)
4745 test "$with_gnu_ld" != no && break
4746 ;;
4747 *)
4748 test "$with_gnu_ld" != yes && break
4749 ;;
4750 esac
4751 fi
4752 done
4753 IFS="$lt_save_ifs"
4754else
4755 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4756fi
4757fi
4758
4759LD="$lt_cv_path_LD"
4760if test -n "$LD"; then
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4762$as_echo "$LD" >&6; }
4763else
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765$as_echo "no" >&6; }
4766fi
4767test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4769$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4770if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4771 $as_echo_n "(cached) " >&6
4772else
4773 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4774case `$LD -v 2>&1 </dev/null` in
4775*GNU* | *'with BFD'*)
4776 lt_cv_prog_gnu_ld=yes
4777 ;;
4778*)
4779 lt_cv_prog_gnu_ld=no
4780 ;;
4781esac
4782fi
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4784$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4785with_gnu_ld=$lt_cv_prog_gnu_ld
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4796$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4797if test "${lt_cv_path_NM+set}" = set; then :
4798 $as_echo_n "(cached) " >&6
4799else
4800 if test -n "$NM"; then
4801 # Let the user override the test.
4802 lt_cv_path_NM="$NM"
4803else
4804 lt_nm_to_check="${ac_tool_prefix}nm"
4805 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4806 lt_nm_to_check="$lt_nm_to_check nm"
4807 fi
4808 for lt_tmp_nm in $lt_nm_to_check; do
4809 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4810 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4811 IFS="$lt_save_ifs"
4812 test -z "$ac_dir" && ac_dir=.
4813 tmp_nm="$ac_dir/$lt_tmp_nm"
4814 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4815 # Check to see if the nm accepts a BSD-compat flag.
4816 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4817 # nm: unknown option "B" ignored
4818 # Tru64's nm complains that /dev/null is an invalid object file
4819 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4820 */dev/null* | *'Invalid file or object type'*)
4821 lt_cv_path_NM="$tmp_nm -B"
4822 break
4823 ;;
4824 *)
4825 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4826 */dev/null*)
4827 lt_cv_path_NM="$tmp_nm -p"
4828 break
4829 ;;
4830 *)
4831 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4832 continue # so that we can try to find one that supports BSD flags
4833 ;;
4834 esac
4835 ;;
4836 esac
4837 fi
4838 done
4839 IFS="$lt_save_ifs"
4840 done
4841 : ${lt_cv_path_NM=no}
4842fi
4843fi
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4845$as_echo "$lt_cv_path_NM" >&6; }
4846if test "$lt_cv_path_NM" != "no"; then
4847 NM="$lt_cv_path_NM"
4848else
4849 # Didn't find any BSD compatible name lister, look for dumpbin.
4850 if test -n "$DUMPBIN"; then :
4851 # Let the user override the test.
4852 else
4853 if test -n "$ac_tool_prefix"; then
4854 for ac_prog in dumpbin "link -dump"
4855 do
4856 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4857set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859$as_echo_n "checking for $ac_word... " >&6; }
4860if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4862else
4863 if test -n "$DUMPBIN"; then
4864 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4865else
4866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867for as_dir in $PATH
4868do
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4876 fi
4877done
4878 done
4879IFS=$as_save_IFS
4880
4881fi
4882fi
4883DUMPBIN=$ac_cv_prog_DUMPBIN
4884if test -n "$DUMPBIN"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4886$as_echo "$DUMPBIN" >&6; }
4887else
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889$as_echo "no" >&6; }
4890fi
4891
4892
4893 test -n "$DUMPBIN" && break
4894 done
4895fi
4896if test -z "$DUMPBIN"; then
4897 ac_ct_DUMPBIN=$DUMPBIN
4898 for ac_prog in dumpbin "link -dump"
4899do
4900 # Extract the first word of "$ac_prog", so it can be a program name with args.
4901set dummy $ac_prog; ac_word=$2
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903$as_echo_n "checking for $ac_word... " >&6; }
4904if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4905 $as_echo_n "(cached) " >&6
4906else
4907 if test -n "$ac_ct_DUMPBIN"; then
4908 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4909else
4910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH
4912do
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 break 2
4920 fi
4921done
4922 done
4923IFS=$as_save_IFS
4924
4925fi
4926fi
4927ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4928if test -n "$ac_ct_DUMPBIN"; then
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4930$as_echo "$ac_ct_DUMPBIN" >&6; }
4931else
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933$as_echo "no" >&6; }
4934fi
4935
4936
4937 test -n "$ac_ct_DUMPBIN" && break
4938done
4939
4940 if test "x$ac_ct_DUMPBIN" = x; then
4941 DUMPBIN=":"
4942 else
4943 case $cross_compiling:$ac_tool_warned in
4944yes:)
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4947ac_tool_warned=yes ;;
4948esac
4949 DUMPBIN=$ac_ct_DUMPBIN
4950 fi
4951fi
4952
4953 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4954 *COFF*)
4955 DUMPBIN="$DUMPBIN -symbols"
4956 ;;
4957 *)
4958 DUMPBIN=:
4959 ;;
4960 esac
4961 fi
4962
4963 if test "$DUMPBIN" != ":"; then
4964 NM="$DUMPBIN"
4965 fi
4966fi
4967test -z "$NM" && NM=nm
4968
4969
4970
4971
4972
4973
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4975$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4976if test "${lt_cv_nm_interface+set}" = set; then :
4977 $as_echo_n "(cached) " >&6
4978else
4979 lt_cv_nm_interface="BSD nm"
4980 echo "int some_variable = 0;" > conftest.$ac_ext
4981 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4982 (eval "$ac_compile" 2>conftest.err)
4983 cat conftest.err >&5
4984 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4985 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4986 cat conftest.err >&5
4987 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4988 cat conftest.out >&5
4989 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4990 lt_cv_nm_interface="MS dumpbin"
4991 fi
4992 rm -f conftest*
4993fi
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4995$as_echo "$lt_cv_nm_interface" >&6; }
4996
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4998$as_echo_n "checking whether ln -s works... " >&6; }
4999LN_S=$as_ln_s
5000if test "$LN_S" = "ln -s"; then
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5002$as_echo "yes" >&6; }
5003else
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5005$as_echo "no, using $LN_S" >&6; }
5006fi
5007
5008# find the maximum length of command line arguments
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5010$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5011if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5012 $as_echo_n "(cached) " >&6
5013else
5014 i=0
5015 teststring="ABCD"
5016
5017 case $build_os in
5018 msdosdjgpp*)
5019 # On DJGPP, this test can blow up pretty badly due to problems in libc
5020 # (any single argument exceeding 2000 bytes causes a buffer overrun
5021 # during glob expansion). Even if it were fixed, the result of this
5022 # check would be larger than it should be.
5023 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5024 ;;
5025
5026 gnu*)
5027 # Under GNU Hurd, this test is not required because there is
5028 # no limit to the length of command line arguments.
5029 # Libtool will interpret -1 as no limit whatsoever
5030 lt_cv_sys_max_cmd_len=-1;
5031 ;;
5032
5033 cygwin* | mingw* | cegcc*)
5034 # On Win9x/ME, this test blows up -- it succeeds, but takes
5035 # about 5 minutes as the teststring grows exponentially.
5036 # Worse, since 9x/ME are not pre-emptively multitasking,
5037 # you end up with a "frozen" computer, even though with patience
5038 # the test eventually succeeds (with a max line length of 256k).
5039 # Instead, let's just punt: use the minimum linelength reported by
5040 # all of the supported platforms: 8192 (on NT/2K/XP).
5041 lt_cv_sys_max_cmd_len=8192;
5042 ;;
5043
5044 mint*)
5045 # On MiNT this can take a long time and run out of memory.
5046 lt_cv_sys_max_cmd_len=8192;
5047 ;;
5048
5049 amigaos*)
5050 # On AmigaOS with pdksh, this test takes hours, literally.
5051 # So we just punt and use a minimum line length of 8192.
5052 lt_cv_sys_max_cmd_len=8192;
5053 ;;
5054
5055 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5056 # This has been around since 386BSD, at least. Likely further.
5057 if test -x /sbin/sysctl; then
5058 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5059 elif test -x /usr/sbin/sysctl; then
5060 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5061 else
5062 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5063 fi
5064 # And add a safety zone
5065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5067 ;;
5068
5069 interix*)
5070 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5071 lt_cv_sys_max_cmd_len=196608
5072 ;;
5073
5074 osf*)
5075 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5076 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5077 # nice to cause kernel panics so lets avoid the loop below.
5078 # First set a reasonable default.
5079 lt_cv_sys_max_cmd_len=16384
5080 #
5081 if test -x /sbin/sysconfig; then
5082 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5083 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5084 esac
5085 fi
5086 ;;
5087 sco3.2v5*)
5088 lt_cv_sys_max_cmd_len=102400
5089 ;;
5090 sysv5* | sco5v6* | sysv4.2uw2*)
5091 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5092 if test -n "$kargmax"; then
5093 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5094 else
5095 lt_cv_sys_max_cmd_len=32768
5096 fi
5097 ;;
5098 *)
5099 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5100 if test -n "$lt_cv_sys_max_cmd_len"; then
5101 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5103 else
5104 # Make teststring a little bigger before we do anything with it.
5105 # a 1K string should be a reasonable start.
5106 for i in 1 2 3 4 5 6 7 8 ; do
5107 teststring=$teststring$teststring
5108 done
5109 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5110 # If test is not a shell built-in, we'll probably end up computing a
5111 # maximum length that is only half of the actual maximum length, but
5112 # we can't tell.
5113 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5114 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5115 test $i != 17 # 1/2 MB should be enough
5116 do
5117 i=`expr $i + 1`
5118 teststring=$teststring$teststring
5119 done
5120 # Only check the string length outside the loop.
5121 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5122 teststring=
5123 # Add a significant safety factor because C++ compilers can tack on
5124 # massive amounts of additional arguments before passing them to the
5125 # linker. It appears as though 1/2 is a usable value.
5126 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5127 fi
5128 ;;
5129 esac
5130
5131fi
5132
5133if test -n $lt_cv_sys_max_cmd_len ; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5135$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5136else
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5138$as_echo "none" >&6; }
5139fi
5140max_cmd_len=$lt_cv_sys_max_cmd_len
5141
5142
5143
5144
5145
5146
5147: ${CP="cp -f"}
5148: ${MV="mv -f"}
5149: ${RM="rm -f"}
5150
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5152$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5153# Try some XSI features
5154xsi_shell=no
5155( _lt_dummy="a/b/c"
5156 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5157 = c,a/b,, \
5158 && eval 'test $(( 1 + 1 )) -eq 2 \
5159 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5160 && xsi_shell=yes
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5162$as_echo "$xsi_shell" >&6; }
5163
5164
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5166$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5167lt_shell_append=no
5168( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5169 >/dev/null 2>&1 \
5170 && lt_shell_append=yes
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5172$as_echo "$lt_shell_append" >&6; }
5173
5174
5175if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5176 lt_unset=unset
5177else
5178 lt_unset=false
5179fi
5180
5181
5182
5183
5184
5185# test EBCDIC or ASCII
5186case `echo X|tr X '\101'` in
5187 A) # ASCII based system
5188 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5189 lt_SP2NL='tr \040 \012'
5190 lt_NL2SP='tr \015\012 \040\040'
5191 ;;
5192 *) # EBCDIC based system
5193 lt_SP2NL='tr \100 \n'
5194 lt_NL2SP='tr \r\n \100\100'
5195 ;;
5196esac
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5207$as_echo_n "checking for $LD option to reload object files... " >&6; }
5208if test "${lt_cv_ld_reload_flag+set}" = set; then :
5209 $as_echo_n "(cached) " >&6
5210else
5211 lt_cv_ld_reload_flag='-r'
5212fi
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5214$as_echo "$lt_cv_ld_reload_flag" >&6; }
5215reload_flag=$lt_cv_ld_reload_flag
5216case $reload_flag in
5217"" | " "*) ;;
5218*) reload_flag=" $reload_flag" ;;
5219esac
5220reload_cmds='$LD$reload_flag -o $output$reload_objs'
5221case $host_os in
5222 darwin*)
5223 if test "$GCC" = yes; then
5224 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5225 else
5226 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5227 fi
5228 ;;
5229esac
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239if test -n "$ac_tool_prefix"; then
5240 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5241set dummy ${ac_tool_prefix}objdump; ac_word=$2
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243$as_echo_n "checking for $ac_word... " >&6; }
5244if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5245 $as_echo_n "(cached) " >&6
5246else
5247 if test -n "$OBJDUMP"; then
5248 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5249else
5250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251for as_dir in $PATH
5252do
5253 IFS=$as_save_IFS
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5257 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 break 2
5260 fi
5261done
5262 done
5263IFS=$as_save_IFS
5264
5265fi
5266fi
5267OBJDUMP=$ac_cv_prog_OBJDUMP
5268if test -n "$OBJDUMP"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5270$as_echo "$OBJDUMP" >&6; }
5271else
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273$as_echo "no" >&6; }
5274fi
5275
5276
5277fi
5278if test -z "$ac_cv_prog_OBJDUMP"; then
5279 ac_ct_OBJDUMP=$OBJDUMP
5280 # Extract the first word of "objdump", so it can be a program name with args.
5281set dummy objdump; ac_word=$2
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5283$as_echo_n "checking for $ac_word... " >&6; }
5284if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5286else
5287 if test -n "$ac_ct_OBJDUMP"; then
5288 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5289else
5290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291for as_dir in $PATH
5292do
5293 IFS=$as_save_IFS
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5297 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 break 2
5300 fi
5301done
5302 done
5303IFS=$as_save_IFS
5304
5305fi
5306fi
5307ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5308if test -n "$ac_ct_OBJDUMP"; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5310$as_echo "$ac_ct_OBJDUMP" >&6; }
5311else
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313$as_echo "no" >&6; }
5314fi
5315
5316 if test "x$ac_ct_OBJDUMP" = x; then
5317 OBJDUMP="false"
5318 else
5319 case $cross_compiling:$ac_tool_warned in
5320yes:)
5321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5323ac_tool_warned=yes ;;
5324esac
5325 OBJDUMP=$ac_ct_OBJDUMP
5326 fi
5327else
5328 OBJDUMP="$ac_cv_prog_OBJDUMP"
5329fi
5330
5331test -z "$OBJDUMP" && OBJDUMP=objdump
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5342$as_echo_n "checking how to recognize dependent libraries... " >&6; }
1ec601bf
FXC
5343if test "${lt_cv_deplibs_check_method+set}" = set; then :
5344 $as_echo_n "(cached) " >&6
5345else
5346 lt_cv_file_magic_cmd='$MAGIC_CMD'
5347lt_cv_file_magic_test_file=
5348lt_cv_deplibs_check_method='unknown'
5349# Need to set the preceding variable on all platforms that support
5350# interlibrary dependencies.
5351# 'none' -- dependencies not supported.
5352# `unknown' -- same as none, but documents that we really don't know.
5353# 'pass_all' -- all dependencies passed with no checks.
5354# 'test_compile' -- check by making test program.
5355# 'file_magic [[regex]]' -- check by looking for files in library path
5356# which responds to the $file_magic_cmd with a given extended regex.
5357# If you have `file' or equivalent on your system and you're not sure
5358# whether `pass_all' will *always* work, you probably want this one.
5359
5360case $host_os in
5361aix[4-9]*)
5362 lt_cv_deplibs_check_method=pass_all
5363 ;;
5364
5365beos*)
5366 lt_cv_deplibs_check_method=pass_all
5367 ;;
5368
5369bsdi[45]*)
5370 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5371 lt_cv_file_magic_cmd='/usr/bin/file -L'
5372 lt_cv_file_magic_test_file=/shlib/libc.so
5373 ;;
5374
5375cygwin*)
5376 # func_win32_libid is a shell function defined in ltmain.sh
5377 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5378 lt_cv_file_magic_cmd='func_win32_libid'
5379 ;;
5380
5381mingw* | pw32*)
5382 # Base MSYS/MinGW do not provide the 'file' command needed by
5383 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5384 # unless we find 'file', for example because we are cross-compiling.
5385 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5386 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5387 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5388 lt_cv_file_magic_cmd='func_win32_libid'
5389 else
5390 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5391 lt_cv_file_magic_cmd='$OBJDUMP -f'
5392 fi
5393 ;;
5394
5395cegcc*)
5396 # use the weaker test based on 'objdump'. See mingw*.
5397 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5398 lt_cv_file_magic_cmd='$OBJDUMP -f'
5399 ;;
5400
5401darwin* | rhapsody*)
5402 lt_cv_deplibs_check_method=pass_all
5403 ;;
5404
5405freebsd* | dragonfly*)
5406 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5407 case $host_cpu in
5408 i*86 )
5409 # Not sure whether the presence of OpenBSD here was a mistake.
5410 # Let's accept both of them until this is cleared up.
5411 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5412 lt_cv_file_magic_cmd=/usr/bin/file
5413 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5414 ;;
5415 esac
5416 else
5417 lt_cv_deplibs_check_method=pass_all
5418 fi
5419 ;;
5420
5421gnu*)
5422 lt_cv_deplibs_check_method=pass_all
5423 ;;
5424
5425haiku*)
5426 lt_cv_deplibs_check_method=pass_all
5427 ;;
5428
5429hpux10.20* | hpux11*)
5430 lt_cv_file_magic_cmd=/usr/bin/file
5431 case $host_cpu in
5432 ia64*)
5433 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5434 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5435 ;;
5436 hppa*64*)
5437 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5438 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5439 ;;
5440 *)
5441 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5442 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5443 ;;
5444 esac
5445 ;;
5446
5447interix[3-9]*)
5448 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5450 ;;
5451
5452irix5* | irix6* | nonstopux*)
5453 case $LD in
5454 *-32|*"-32 ") libmagic=32-bit;;
5455 *-n32|*"-n32 ") libmagic=N32;;
5456 *-64|*"-64 ") libmagic=64-bit;;
5457 *) libmagic=never-match;;
5458 esac
5459 lt_cv_deplibs_check_method=pass_all
5460 ;;
5461
5462# This must be Linux ELF.
5463linux* | k*bsd*-gnu | kopensolaris*-gnu)
5464 lt_cv_deplibs_check_method=pass_all
5465 ;;
5466
5467netbsd*)
5468 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5469 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5470 else
5471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5472 fi
5473 ;;
5474
5475newos6*)
5476 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5477 lt_cv_file_magic_cmd=/usr/bin/file
5478 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5479 ;;
5480
5481*nto* | *qnx*)
5482 lt_cv_deplibs_check_method=pass_all
5483 ;;
5484
5485openbsd*)
5486 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5487 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5488 else
5489 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5490 fi
5491 ;;
5492
5493osf3* | osf4* | osf5*)
5494 lt_cv_deplibs_check_method=pass_all
5495 ;;
5496
5497rdos*)
5498 lt_cv_deplibs_check_method=pass_all
5499 ;;
5500
5501solaris*)
5502 lt_cv_deplibs_check_method=pass_all
5503 ;;
5504
5505sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5506 lt_cv_deplibs_check_method=pass_all
5507 ;;
5508
5509sysv4 | sysv4.3*)
5510 case $host_vendor in
5511 motorola)
5512 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]'
5513 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5514 ;;
5515 ncr)
5516 lt_cv_deplibs_check_method=pass_all
5517 ;;
5518 sequent)
5519 lt_cv_file_magic_cmd='/bin/file'
5520 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5521 ;;
5522 sni)
5523 lt_cv_file_magic_cmd='/bin/file'
5524 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5525 lt_cv_file_magic_test_file=/lib/libc.so
5526 ;;
5527 siemens)
5528 lt_cv_deplibs_check_method=pass_all
5529 ;;
5530 pc)
5531 lt_cv_deplibs_check_method=pass_all
5532 ;;
5533 esac
5534 ;;
5535
5536tpf*)
5537 lt_cv_deplibs_check_method=pass_all
5538 ;;
5539esac
5540
5541fi
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5543$as_echo "$lt_cv_deplibs_check_method" >&6; }
5544file_magic_cmd=$lt_cv_file_magic_cmd
5545deplibs_check_method=$lt_cv_deplibs_check_method
5546test -z "$deplibs_check_method" && deplibs_check_method=unknown
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559if test -n "$ac_tool_prefix"; then
5560 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5561set dummy ${ac_tool_prefix}ar; ac_word=$2
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563$as_echo_n "checking for $ac_word... " >&6; }
5564if test "${ac_cv_prog_AR+set}" = set; then :
5565 $as_echo_n "(cached) " >&6
5566else
5567 if test -n "$AR"; then
5568 ac_cv_prog_AR="$AR" # Let the user override the test.
5569else
5570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571for as_dir in $PATH
5572do
5573 IFS=$as_save_IFS
5574 test -z "$as_dir" && as_dir=.
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5577 ac_cv_prog_AR="${ac_tool_prefix}ar"
5578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5579 break 2
5580 fi
5581done
5582 done
5583IFS=$as_save_IFS
5584
5585fi
5586fi
5587AR=$ac_cv_prog_AR
5588if test -n "$AR"; then
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5590$as_echo "$AR" >&6; }
5591else
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593$as_echo "no" >&6; }
5594fi
5595
5596
5597fi
5598if test -z "$ac_cv_prog_AR"; then
5599 ac_ct_AR=$AR
5600 # Extract the first word of "ar", so it can be a program name with args.
5601set dummy ar; ac_word=$2
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603$as_echo_n "checking for $ac_word... " >&6; }
5604if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5605 $as_echo_n "(cached) " >&6
5606else
5607 if test -n "$ac_ct_AR"; then
5608 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5609else
5610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611for as_dir in $PATH
5612do
5613 IFS=$as_save_IFS
5614 test -z "$as_dir" && as_dir=.
5615 for ac_exec_ext in '' $ac_executable_extensions; do
5616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5617 ac_cv_prog_ac_ct_AR="ar"
5618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5619 break 2
5620 fi
5621done
5622 done
5623IFS=$as_save_IFS
5624
5625fi
5626fi
5627ac_ct_AR=$ac_cv_prog_ac_ct_AR
5628if test -n "$ac_ct_AR"; then
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5630$as_echo "$ac_ct_AR" >&6; }
5631else
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633$as_echo "no" >&6; }
5634fi
5635
5636 if test "x$ac_ct_AR" = x; then
5637 AR="false"
5638 else
5639 case $cross_compiling:$ac_tool_warned in
5640yes:)
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5642$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5643ac_tool_warned=yes ;;
5644esac
5645 AR=$ac_ct_AR
5646 fi
5647else
5648 AR="$ac_cv_prog_AR"
5649fi
5650
5651test -z "$AR" && AR=ar
5652test -z "$AR_FLAGS" && AR_FLAGS=cru
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664if test -n "$ac_tool_prefix"; then
5665 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5666set dummy ${ac_tool_prefix}strip; ac_word=$2
5667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5668$as_echo_n "checking for $ac_word... " >&6; }
5669if test "${ac_cv_prog_STRIP+set}" = set; then :
5670 $as_echo_n "(cached) " >&6
5671else
5672 if test -n "$STRIP"; then
5673 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5674else
5675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676for as_dir in $PATH
5677do
5678 IFS=$as_save_IFS
5679 test -z "$as_dir" && as_dir=.
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5682 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5684 break 2
5685 fi
5686done
5687 done
5688IFS=$as_save_IFS
5689
5690fi
5691fi
5692STRIP=$ac_cv_prog_STRIP
5693if test -n "$STRIP"; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5695$as_echo "$STRIP" >&6; }
5696else
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698$as_echo "no" >&6; }
5699fi
5700
5701
5702fi
5703if test -z "$ac_cv_prog_STRIP"; then
5704 ac_ct_STRIP=$STRIP
5705 # Extract the first word of "strip", so it can be a program name with args.
5706set dummy strip; ac_word=$2
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708$as_echo_n "checking for $ac_word... " >&6; }
5709if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5710 $as_echo_n "(cached) " >&6
5711else
5712 if test -n "$ac_ct_STRIP"; then
5713 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5714else
5715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716for as_dir in $PATH
5717do
5718 IFS=$as_save_IFS
5719 test -z "$as_dir" && as_dir=.
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5722 ac_cv_prog_ac_ct_STRIP="strip"
5723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 break 2
5725 fi
5726done
5727 done
5728IFS=$as_save_IFS
5729
5730fi
5731fi
5732ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5733if test -n "$ac_ct_STRIP"; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5735$as_echo "$ac_ct_STRIP" >&6; }
5736else
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738$as_echo "no" >&6; }
5739fi
5740
5741 if test "x$ac_ct_STRIP" = x; then
5742 STRIP=":"
5743 else
5744 case $cross_compiling:$ac_tool_warned in
5745yes:)
5746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5748ac_tool_warned=yes ;;
5749esac
5750 STRIP=$ac_ct_STRIP
5751 fi
5752else
5753 STRIP="$ac_cv_prog_STRIP"
5754fi
5755
5756test -z "$STRIP" && STRIP=:
5757
5758
5759
5760
5761
5762
5763if test -n "$ac_tool_prefix"; then
5764 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5765set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767$as_echo_n "checking for $ac_word... " >&6; }
5768if test "${ac_cv_prog_RANLIB+set}" = set; then :
5769 $as_echo_n "(cached) " >&6
5770else
5771 if test -n "$RANLIB"; then
5772 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5773else
5774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775for as_dir in $PATH
5776do
5777 IFS=$as_save_IFS
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5781 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 break 2
5784 fi
5785done
5786 done
5787IFS=$as_save_IFS
5788
5789fi
5790fi
5791RANLIB=$ac_cv_prog_RANLIB
5792if test -n "$RANLIB"; then
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5794$as_echo "$RANLIB" >&6; }
5795else
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797$as_echo "no" >&6; }
5798fi
5799
5800
5801fi
5802if test -z "$ac_cv_prog_RANLIB"; then
5803 ac_ct_RANLIB=$RANLIB
5804 # Extract the first word of "ranlib", so it can be a program name with args.
5805set dummy ranlib; ac_word=$2
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807$as_echo_n "checking for $ac_word... " >&6; }
5808if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5809 $as_echo_n "(cached) " >&6
5810else
5811 if test -n "$ac_ct_RANLIB"; then
5812 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5813else
5814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815for as_dir in $PATH
5816do
5817 IFS=$as_save_IFS
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5821 ac_cv_prog_ac_ct_RANLIB="ranlib"
5822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 break 2
5824 fi
5825done
5826 done
5827IFS=$as_save_IFS
5828
5829fi
5830fi
5831ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5832if test -n "$ac_ct_RANLIB"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5834$as_echo "$ac_ct_RANLIB" >&6; }
5835else
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837$as_echo "no" >&6; }
5838fi
5839
5840 if test "x$ac_ct_RANLIB" = x; then
5841 RANLIB=":"
5842 else
5843 case $cross_compiling:$ac_tool_warned in
5844yes:)
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5847ac_tool_warned=yes ;;
5848esac
5849 RANLIB=$ac_ct_RANLIB
5850 fi
5851else
5852 RANLIB="$ac_cv_prog_RANLIB"
5853fi
5854
5855test -z "$RANLIB" && RANLIB=:
5856
5857
5858
5859
5860
5861
5862# Determine commands to create old-style static archives.
5863old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5864old_postinstall_cmds='chmod 644 $oldlib'
5865old_postuninstall_cmds=
5866
5867if test -n "$RANLIB"; then
5868 case $host_os in
5869 openbsd*)
5870 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5871 ;;
5872 *)
5873 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5874 ;;
5875 esac
5876 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5877fi
5878
5879case $host_os in
5880 darwin*)
5881 lock_old_archive_extraction=yes ;;
5882 *)
5883 lock_old_archive_extraction=no ;;
5884esac
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924# If no C compiler was specified, use CC.
5925LTCC=${LTCC-"$CC"}
5926
5927# If no C compiler flags were specified, use CFLAGS.
5928LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5929
5930# Allow CC to be a program name with arguments.
5931compiler=$CC
5932
5933
5934# Check for command to grab the raw symbol name followed by C symbol from nm.
5935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5936$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5937if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5939else
5940
5941# These are sane defaults that work on at least a few old systems.
5942# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5943
5944# Character class describing NM global symbol codes.
5945symcode='[BCDEGRST]'
5946
5947# Regexp to match symbols that can be accessed directly from C.
5948sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5949
5950# Define system-specific variables.
5951case $host_os in
5952aix*)
5953 symcode='[BCDT]'
5954 ;;
5955cygwin* | mingw* | pw32* | cegcc*)
5956 symcode='[ABCDGISTW]'
5957 ;;
5958hpux*)
5959 if test "$host_cpu" = ia64; then
5960 symcode='[ABCDEGRST]'
5961 fi
5962 ;;
5963irix* | nonstopux*)
5964 symcode='[BCDEGRST]'
5965 ;;
5966osf*)
5967 symcode='[BCDEGQRST]'
5968 ;;
5969solaris*)
5970 symcode='[BDRT]'
5971 ;;
5972sco3.2v5*)
5973 symcode='[DT]'
5974 ;;
5975sysv4.2uw2*)
5976 symcode='[DT]'
5977 ;;
5978sysv5* | sco5v6* | unixware* | OpenUNIX*)
5979 symcode='[ABDT]'
5980 ;;
5981sysv4)
5982 symcode='[DFNSTU]'
5983 ;;
5984esac
5985
5986# If we're using GNU nm, then use its standard symbol codes.
5987case `$NM -V 2>&1` in
5988*GNU* | *'with BFD'*)
5989 symcode='[ABCDGIRSTW]' ;;
5990esac
5991
5992# Transform an extracted symbol line into a proper C declaration.
5993# Some systems (esp. on ia64) link data and code symbols differently,
5994# so use this general approach.
5995lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5996
5997# Transform an extracted symbol line into symbol name and symbol address
5998lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5999lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6000
6001# Handle CRLF in mingw tool chain
6002opt_cr=
6003case $build_os in
6004mingw*)
6005 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6006 ;;
6007esac
6008
6009# Try without a prefix underscore, then with it.
6010for ac_symprfx in "" "_"; do
6011
6012 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6013 symxfrm="\\1 $ac_symprfx\\2 \\2"
6014
6015 # Write the raw and C identifiers.
6016 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6017 # Fake it for dumpbin and say T for any non-static function
6018 # and D for any global variable.
6019 # Also find C++ and __fastcall symbols from MSVC++,
6020 # which start with @ or ?.
6021 lt_cv_sys_global_symbol_pipe="$AWK '"\
6022" {last_section=section; section=\$ 3};"\
6023" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6024" \$ 0!~/External *\|/{next};"\
6025" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6026" {if(hide[section]) next};"\
6027" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6028" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6029" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6030" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6031" ' prfx=^$ac_symprfx"
6032 else
6033 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6034 fi
6035
6036 # Check to see that the pipe works correctly.
6037 pipe_works=no
6038
6039 rm -f conftest*
6040 cat > conftest.$ac_ext <<_LT_EOF
6041#ifdef __cplusplus
6042extern "C" {
6043#endif
6044char nm_test_var;
6045void nm_test_func(void);
6046void nm_test_func(void){}
6047#ifdef __cplusplus
6048}
6049#endif
6050int main(){nm_test_var='a';nm_test_func();return(0);}
6051_LT_EOF
6052
6053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6054 (eval $ac_compile) 2>&5
6055 ac_status=$?
6056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6057 test $ac_status = 0; }; then
6058 # Now try to grab the symbols.
6059 nlist=conftest.nm
6060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6061 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6062 ac_status=$?
6063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6064 test $ac_status = 0; } && test -s "$nlist"; then
6065 # Try sorting and uniquifying the output.
6066 if sort "$nlist" | uniq > "$nlist"T; then
6067 mv -f "$nlist"T "$nlist"
6068 else
6069 rm -f "$nlist"T
6070 fi
6071
6072 # Make sure that we snagged all the symbols we need.
6073 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6074 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6075 cat <<_LT_EOF > conftest.$ac_ext
6076#ifdef __cplusplus
6077extern "C" {
6078#endif
6079
6080_LT_EOF
6081 # Now generate the symbol file.
6082 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6083
6084 cat <<_LT_EOF >> conftest.$ac_ext
6085
6086/* The mapping between symbol names and symbols. */
6087const struct {
6088 const char *name;
6089 void *address;
6090}
6091lt__PROGRAM__LTX_preloaded_symbols[] =
6092{
6093 { "@PROGRAM@", (void *) 0 },
6094_LT_EOF
6095 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6096 cat <<\_LT_EOF >> conftest.$ac_ext
6097 {0, (void *) 0}
6098};
6099
6100/* This works around a problem in FreeBSD linker */
6101#ifdef FREEBSD_WORKAROUND
6102static const void *lt_preloaded_setup() {
6103 return lt__PROGRAM__LTX_preloaded_symbols;
6104}
6105#endif
6106
6107#ifdef __cplusplus
6108}
6109#endif
6110_LT_EOF
6111 # Now try linking the two files.
6112 mv conftest.$ac_objext conftstm.$ac_objext
6113 lt_save_LIBS="$LIBS"
6114 lt_save_CFLAGS="$CFLAGS"
6115 LIBS="conftstm.$ac_objext"
6116 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6118 (eval $ac_link) 2>&5
6119 ac_status=$?
6120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6121 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6122 pipe_works=yes
6123 fi
6124 LIBS="$lt_save_LIBS"
6125 CFLAGS="$lt_save_CFLAGS"
6126 else
6127 echo "cannot find nm_test_func in $nlist" >&5
6128 fi
6129 else
6130 echo "cannot find nm_test_var in $nlist" >&5
6131 fi
6132 else
6133 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6134 fi
6135 else
6136 echo "$progname: failed program was:" >&5
6137 cat conftest.$ac_ext >&5
6138 fi
6139 rm -rf conftest* conftst*
6140
6141 # Do not use the global_symbol_pipe unless it works.
6142 if test "$pipe_works" = yes; then
6143 break
6144 else
6145 lt_cv_sys_global_symbol_pipe=
6146 fi
6147done
6148
6149fi
6150
6151if test -z "$lt_cv_sys_global_symbol_pipe"; then
6152 lt_cv_sys_global_symbol_to_cdecl=
6153fi
6154if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6156$as_echo "failed" >&6; }
6157else
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6159$as_echo "ok" >&6; }
6160fi
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
1ec601bf
FXC
6181
6182
6183# Check whether --enable-libtool-lock was given.
6184if test "${enable_libtool_lock+set}" = set; then :
6185 enableval=$enable_libtool_lock;
6186fi
6187
6188test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6189
6190# Some flags need to be propagated to the compiler or linker for good
6191# libtool support.
6192case $host in
6193ia64-*-hpux*)
6194 # Find out which ABI we are using.
6195 echo 'int i;' > conftest.$ac_ext
6196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6197 (eval $ac_compile) 2>&5
6198 ac_status=$?
6199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6200 test $ac_status = 0; }; then
6201 case `/usr/bin/file conftest.$ac_objext` in
6202 *ELF-32*)
6203 HPUX_IA64_MODE="32"
6204 ;;
6205 *ELF-64*)
6206 HPUX_IA64_MODE="64"
6207 ;;
6208 esac
6209 fi
6210 rm -rf conftest*
6211 ;;
6212*-*-irix6*)
6213 # Find out which ABI we are using.
6214 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6216 (eval $ac_compile) 2>&5
6217 ac_status=$?
6218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6219 test $ac_status = 0; }; then
6220 if test "$lt_cv_prog_gnu_ld" = yes; then
6221 case `/usr/bin/file conftest.$ac_objext` in
6222 *32-bit*)
6223 LD="${LD-ld} -melf32bsmip"
6224 ;;
6225 *N32*)
6226 LD="${LD-ld} -melf32bmipn32"
6227 ;;
6228 *64-bit*)
6229 LD="${LD-ld} -melf64bmip"
6230 ;;
6231 esac
6232 else
6233 case `/usr/bin/file conftest.$ac_objext` in
6234 *32-bit*)
6235 LD="${LD-ld} -32"
6236 ;;
6237 *N32*)
6238 LD="${LD-ld} -n32"
6239 ;;
6240 *64-bit*)
6241 LD="${LD-ld} -64"
6242 ;;
6243 esac
6244 fi
6245 fi
6246 rm -rf conftest*
6247 ;;
6248
6249x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6250s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6251 # Find out which ABI we are using.
6252 echo 'int i;' > conftest.$ac_ext
6253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6254 (eval $ac_compile) 2>&5
6255 ac_status=$?
6256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6257 test $ac_status = 0; }; then
6258 case `/usr/bin/file conftest.o` in
6259 *32-bit*)
6260 case $host in
6261 x86_64-*kfreebsd*-gnu)
6262 LD="${LD-ld} -m elf_i386_fbsd"
6263 ;;
6264 x86_64-*linux*)
6265 LD="${LD-ld} -m elf_i386"
6266 ;;
6267 ppc64-*linux*|powerpc64-*linux*)
6268 LD="${LD-ld} -m elf32ppclinux"
6269 ;;
6270 s390x-*linux*)
6271 LD="${LD-ld} -m elf_s390"
6272 ;;
6273 sparc64-*linux*)
6274 LD="${LD-ld} -m elf32_sparc"
6275 ;;
6276 esac
6277 ;;
6278 *64-bit*)
6279 case $host in
6280 x86_64-*kfreebsd*-gnu)
6281 LD="${LD-ld} -m elf_x86_64_fbsd"
6282 ;;
6283 x86_64-*linux*)
6284 LD="${LD-ld} -m elf_x86_64"
6285 ;;
6286 ppc*-*linux*|powerpc*-*linux*)
6287 LD="${LD-ld} -m elf64ppc"
6288 ;;
6289 s390*-*linux*|s390*-*tpf*)
6290 LD="${LD-ld} -m elf64_s390"
6291 ;;
6292 sparc*-*linux*)
6293 LD="${LD-ld} -m elf64_sparc"
6294 ;;
6295 esac
6296 ;;
6297 esac
6298 fi
6299 rm -rf conftest*
6300 ;;
6301
6302*-*-sco3.2v5*)
6303 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6304 SAVE_CFLAGS="$CFLAGS"
6305 CFLAGS="$CFLAGS -belf"
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6307$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6308if test "${lt_cv_cc_needs_belf+set}" = set; then :
6309 $as_echo_n "(cached) " >&6
6310else
6311 ac_ext=c
6312ac_cpp='$CPP $CPPFLAGS'
6313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6315ac_compiler_gnu=$ac_cv_c_compiler_gnu
6316
fabfcf5e
KT
6317 if test x$gcc_no_link = xyes; then
6318 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6319fi
6320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
6321/* end confdefs.h. */
6322
6323int
6324main ()
6325{
6326
6327 ;
6328 return 0;
6329}
6330_ACEOF
6331if ac_fn_c_try_link "$LINENO"; then :
6332 lt_cv_cc_needs_belf=yes
6333else
6334 lt_cv_cc_needs_belf=no
6335fi
6336rm -f core conftest.err conftest.$ac_objext \
6337 conftest$ac_exeext conftest.$ac_ext
6338 ac_ext=c
6339ac_cpp='$CPP $CPPFLAGS'
6340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6342ac_compiler_gnu=$ac_cv_c_compiler_gnu
6343
6344fi
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6346$as_echo "$lt_cv_cc_needs_belf" >&6; }
6347 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6348 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6349 CFLAGS="$SAVE_CFLAGS"
6350 fi
6351 ;;
6352sparc*-*solaris*)
6353 # Find out which ABI we are using.
6354 echo 'int i;' > conftest.$ac_ext
6355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6356 (eval $ac_compile) 2>&5
6357 ac_status=$?
6358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6359 test $ac_status = 0; }; then
6360 case `/usr/bin/file conftest.o` in
6361 *64-bit*)
6362 case $lt_cv_prog_gnu_ld in
6363 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6364 *)
6365 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6366 LD="${LD-ld} -64"
6367 fi
6368 ;;
6369 esac
6370 ;;
6371 esac
6372 fi
6373 rm -rf conftest*
6374 ;;
6375esac
6376
6377need_locks="$enable_libtool_lock"
6378
6379
6380 case $host_os in
6381 rhapsody* | darwin*)
6382 if test -n "$ac_tool_prefix"; then
6383 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6384set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6386$as_echo_n "checking for $ac_word... " >&6; }
6387if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6388 $as_echo_n "(cached) " >&6
6389else
6390 if test -n "$DSYMUTIL"; then
6391 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6392else
6393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394for as_dir in $PATH
6395do
6396 IFS=$as_save_IFS
6397 test -z "$as_dir" && as_dir=.
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6400 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6402 break 2
6403 fi
6404done
6405 done
6406IFS=$as_save_IFS
6407
6408fi
6409fi
6410DSYMUTIL=$ac_cv_prog_DSYMUTIL
6411if test -n "$DSYMUTIL"; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6413$as_echo "$DSYMUTIL" >&6; }
6414else
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416$as_echo "no" >&6; }
6417fi
6418
6419
6420fi
6421if test -z "$ac_cv_prog_DSYMUTIL"; then
6422 ac_ct_DSYMUTIL=$DSYMUTIL
6423 # Extract the first word of "dsymutil", so it can be a program name with args.
6424set dummy dsymutil; ac_word=$2
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426$as_echo_n "checking for $ac_word... " >&6; }
6427if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
6429else
6430 if test -n "$ac_ct_DSYMUTIL"; then
6431 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6432else
6433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434for as_dir in $PATH
6435do
6436 IFS=$as_save_IFS
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6440 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6442 break 2
6443 fi
6444done
6445 done
6446IFS=$as_save_IFS
6447
6448fi
6449fi
6450ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6451if test -n "$ac_ct_DSYMUTIL"; then
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6453$as_echo "$ac_ct_DSYMUTIL" >&6; }
6454else
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456$as_echo "no" >&6; }
6457fi
6458
6459 if test "x$ac_ct_DSYMUTIL" = x; then
6460 DSYMUTIL=":"
6461 else
6462 case $cross_compiling:$ac_tool_warned in
6463yes:)
6464{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6465$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6466ac_tool_warned=yes ;;
6467esac
6468 DSYMUTIL=$ac_ct_DSYMUTIL
6469 fi
6470else
6471 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6472fi
6473
6474 if test -n "$ac_tool_prefix"; then
6475 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6476set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478$as_echo_n "checking for $ac_word... " >&6; }
6479if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6480 $as_echo_n "(cached) " >&6
6481else
6482 if test -n "$NMEDIT"; then
6483 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6484else
6485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486for as_dir in $PATH
6487do
6488 IFS=$as_save_IFS
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6492 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 break 2
6495 fi
6496done
6497 done
6498IFS=$as_save_IFS
6499
6500fi
6501fi
6502NMEDIT=$ac_cv_prog_NMEDIT
6503if test -n "$NMEDIT"; then
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6505$as_echo "$NMEDIT" >&6; }
6506else
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6508$as_echo "no" >&6; }
6509fi
6510
6511
6512fi
6513if test -z "$ac_cv_prog_NMEDIT"; then
6514 ac_ct_NMEDIT=$NMEDIT
6515 # Extract the first word of "nmedit", so it can be a program name with args.
6516set dummy nmedit; ac_word=$2
6517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518$as_echo_n "checking for $ac_word... " >&6; }
6519if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6520 $as_echo_n "(cached) " >&6
6521else
6522 if test -n "$ac_ct_NMEDIT"; then
6523 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6524else
6525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526for as_dir in $PATH
6527do
6528 IFS=$as_save_IFS
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 break 2
6535 fi
6536done
6537 done
6538IFS=$as_save_IFS
6539
6540fi
6541fi
6542ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6543if test -n "$ac_ct_NMEDIT"; then
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6545$as_echo "$ac_ct_NMEDIT" >&6; }
6546else
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548$as_echo "no" >&6; }
6549fi
6550
6551 if test "x$ac_ct_NMEDIT" = x; then
6552 NMEDIT=":"
6553 else
6554 case $cross_compiling:$ac_tool_warned in
6555yes:)
6556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6558ac_tool_warned=yes ;;
6559esac
6560 NMEDIT=$ac_ct_NMEDIT
6561 fi
6562else
6563 NMEDIT="$ac_cv_prog_NMEDIT"
6564fi
6565
6566 if test -n "$ac_tool_prefix"; then
6567 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6568set dummy ${ac_tool_prefix}lipo; ac_word=$2
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570$as_echo_n "checking for $ac_word... " >&6; }
6571if test "${ac_cv_prog_LIPO+set}" = set; then :
6572 $as_echo_n "(cached) " >&6
6573else
6574 if test -n "$LIPO"; then
6575 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6576else
6577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578for as_dir in $PATH
6579do
6580 IFS=$as_save_IFS
6581 test -z "$as_dir" && as_dir=.
6582 for ac_exec_ext in '' $ac_executable_extensions; do
6583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6584 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6586 break 2
6587 fi
6588done
6589 done
6590IFS=$as_save_IFS
6591
6592fi
6593fi
6594LIPO=$ac_cv_prog_LIPO
1d92226b
JJ
6595if test -n "$LIPO"; then
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6597$as_echo "$LIPO" >&6; }
1ec601bf
FXC
6598else
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600$as_echo "no" >&6; }
6601fi
6602
6603
6604fi
1d92226b
JJ
6605if test -z "$ac_cv_prog_LIPO"; then
6606 ac_ct_LIPO=$LIPO
6607 # Extract the first word of "lipo", so it can be a program name with args.
6608set dummy lipo; ac_word=$2
1ec601bf
FXC
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610$as_echo_n "checking for $ac_word... " >&6; }
1d92226b 6611if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
1ec601bf
FXC
6612 $as_echo_n "(cached) " >&6
6613else
1d92226b
JJ
6614 if test -n "$ac_ct_LIPO"; then
6615 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
1ec601bf
FXC
6616else
6617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618for as_dir in $PATH
6619do
6620 IFS=$as_save_IFS
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1d92226b 6624 ac_cv_prog_ac_ct_LIPO="lipo"
1ec601bf
FXC
6625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6626 break 2
6627 fi
6628done
6629 done
6630IFS=$as_save_IFS
6631
6632fi
6633fi
1d92226b
JJ
6634ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6635if test -n "$ac_ct_LIPO"; then
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6637$as_echo "$ac_ct_LIPO" >&6; }
1ec601bf
FXC
6638else
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640$as_echo "no" >&6; }
6641fi
6642
1d92226b
JJ
6643 if test "x$ac_ct_LIPO" = x; then
6644 LIPO=":"
1ec601bf
FXC
6645 else
6646 case $cross_compiling:$ac_tool_warned in
6647yes:)
6648{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6650ac_tool_warned=yes ;;
6651esac
1d92226b 6652 LIPO=$ac_ct_LIPO
1ec601bf
FXC
6653 fi
6654else
1d92226b 6655 LIPO="$ac_cv_prog_LIPO"
1ec601bf
FXC
6656fi
6657
1d92226b
JJ
6658 if test -n "$ac_tool_prefix"; then
6659 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6660set dummy ${ac_tool_prefix}otool; ac_word=$2
6661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6662$as_echo_n "checking for $ac_word... " >&6; }
6663if test "${ac_cv_prog_OTOOL+set}" = set; then :
1ec601bf
FXC
6664 $as_echo_n "(cached) " >&6
6665else
1d92226b
JJ
6666 if test -n "$OTOOL"; then
6667 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
1ec601bf 6668else
1d92226b
JJ
6669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670for as_dir in $PATH
6671do
6672 IFS=$as_save_IFS
6673 test -z "$as_dir" && as_dir=.
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6676 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 break 2
6679 fi
6680done
6681 done
6682IFS=$as_save_IFS
1ec601bf 6683
1ec601bf 6684fi
1ec601bf 6685fi
1d92226b
JJ
6686OTOOL=$ac_cv_prog_OTOOL
6687if test -n "$OTOOL"; then
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6689$as_echo "$OTOOL" >&6; }
1ec601bf 6690else
1d92226b
JJ
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692$as_echo "no" >&6; }
1ec601bf 6693fi
1ec601bf 6694
1d92226b 6695
1ec601bf 6696fi
1d92226b
JJ
6697if test -z "$ac_cv_prog_OTOOL"; then
6698 ac_ct_OTOOL=$OTOOL
6699 # Extract the first word of "otool", so it can be a program name with args.
6700set dummy otool; ac_word=$2
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702$as_echo_n "checking for $ac_word... " >&6; }
6703if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
1ec601bf
FXC
6704 $as_echo_n "(cached) " >&6
6705else
1d92226b
JJ
6706 if test -n "$ac_ct_OTOOL"; then
6707 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6708else
6709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710for as_dir in $PATH
6711do
6712 IFS=$as_save_IFS
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6716 ac_cv_prog_ac_ct_OTOOL="otool"
6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 break 2
6719 fi
6720done
6721 done
6722IFS=$as_save_IFS
1ec601bf 6723
1d92226b
JJ
6724fi
6725fi
6726ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6727if test -n "$ac_ct_OTOOL"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6729$as_echo "$ac_ct_OTOOL" >&6; }
1ec601bf 6730else
1d92226b
JJ
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732$as_echo "no" >&6; }
1ec601bf 6733fi
1ec601bf 6734
1d92226b
JJ
6735 if test "x$ac_ct_OTOOL" = x; then
6736 OTOOL=":"
6737 else
6738 case $cross_compiling:$ac_tool_warned in
6739yes:)
6740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6742ac_tool_warned=yes ;;
6743esac
6744 OTOOL=$ac_ct_OTOOL
6745 fi
1ec601bf 6746else
1d92226b 6747 OTOOL="$ac_cv_prog_OTOOL"
1ec601bf 6748fi
1ec601bf 6749
1d92226b
JJ
6750 if test -n "$ac_tool_prefix"; then
6751 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6752set dummy ${ac_tool_prefix}otool64; ac_word=$2
6753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754$as_echo_n "checking for $ac_word... " >&6; }
6755if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6756 $as_echo_n "(cached) " >&6
6757else
6758 if test -n "$OTOOL64"; then
6759 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6760else
6761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762for as_dir in $PATH
6763do
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6768 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6771 fi
1ec601bf 6772done
1d92226b
JJ
6773 done
6774IFS=$as_save_IFS
6775
6776fi
6777fi
6778OTOOL64=$ac_cv_prog_OTOOL64
6779if test -n "$OTOOL64"; then
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6781$as_echo "$OTOOL64" >&6; }
6782else
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784$as_echo "no" >&6; }
1ec601bf
FXC
6785fi
6786
1ec601bf
FXC
6787
6788fi
1d92226b
JJ
6789if test -z "$ac_cv_prog_OTOOL64"; then
6790 ac_ct_OTOOL64=$OTOOL64
6791 # Extract the first word of "otool64", so it can be a program name with args.
6792set dummy otool64; ac_word=$2
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794$as_echo_n "checking for $ac_word... " >&6; }
6795if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6796 $as_echo_n "(cached) " >&6
1ec601bf 6797else
1d92226b
JJ
6798 if test -n "$ac_ct_OTOOL64"; then
6799 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6800else
6801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802for as_dir in $PATH
1ec601bf 6803do
1d92226b
JJ
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6808 ac_cv_prog_ac_ct_OTOOL64="otool64"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6811 fi
6812done
6813 done
6814IFS=$as_save_IFS
1ec601bf 6815
1d92226b
JJ
6816fi
6817fi
6818ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6819if test -n "$ac_ct_OTOOL64"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6821$as_echo "$ac_ct_OTOOL64" >&6; }
1ec601bf 6822else
1d92226b
JJ
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824$as_echo "no" >&6; }
1ec601bf 6825fi
1ec601bf 6826
1d92226b
JJ
6827 if test "x$ac_ct_OTOOL64" = x; then
6828 OTOOL64=":"
6829 else
6830 case $cross_compiling:$ac_tool_warned in
6831yes:)
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6834ac_tool_warned=yes ;;
6835esac
6836 OTOOL64=$ac_ct_OTOOL64
6837 fi
1ec601bf 6838else
1d92226b 6839 OTOOL64="$ac_cv_prog_OTOOL64"
1ec601bf 6840fi
1ec601bf 6841
1ec601bf 6842
1ec601bf 6843
1ec601bf
FXC
6844
6845
1ec601bf 6846
1ec601bf 6847
1ec601bf 6848
1ec601bf 6849
1ec601bf 6850
1ec601bf 6851
1d92226b
JJ
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6869$as_echo_n "checking for -single_module linker flag... " >&6; }
6870if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6871 $as_echo_n "(cached) " >&6
6872else
6873 lt_cv_apple_cc_single_mod=no
6874 if test -z "${LT_MULTI_MODULE}"; then
6875 # By default we will add the -single_module flag. You can override
6876 # by either setting the environment variable LT_MULTI_MODULE
6877 # non-empty at configure time, or by adding -multi_module to the
6878 # link flags.
6879 rm -rf libconftest.dylib*
6880 echo "int foo(void){return 1;}" > conftest.c
6881 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6882-dynamiclib -Wl,-single_module conftest.c" >&5
6883 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6884 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6885 _lt_result=$?
6886 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6887 lt_cv_apple_cc_single_mod=yes
6888 else
6889 cat conftest.err >&5
6890 fi
6891 rm -rf libconftest.dylib*
6892 rm -f conftest.*
6893 fi
1ec601bf 6894fi
1d92226b
JJ
6895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6896$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6898$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6899if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6900 $as_echo_n "(cached) " >&6
1ec601bf 6901else
1d92226b
JJ
6902 lt_cv_ld_exported_symbols_list=no
6903 save_LDFLAGS=$LDFLAGS
6904 echo "_main" > conftest.sym
6905 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6906 if test x$gcc_no_link = xyes; then
6907 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1ec601bf 6908fi
1d92226b 6909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf 6910/* end confdefs.h. */
1ec601bf 6911
1ec601bf
FXC
6912int
6913main ()
6914{
1d92226b
JJ
6915
6916 ;
1ec601bf
FXC
6917 return 0;
6918}
6919_ACEOF
1d92226b
JJ
6920if ac_fn_c_try_link "$LINENO"; then :
6921 lt_cv_ld_exported_symbols_list=yes
1ec601bf 6922else
1d92226b 6923 lt_cv_ld_exported_symbols_list=no
1ec601bf 6924fi
1d92226b
JJ
6925rm -f core conftest.err conftest.$ac_objext \
6926 conftest$ac_exeext conftest.$ac_ext
6927 LDFLAGS="$save_LDFLAGS"
1ec601bf
FXC
6928
6929fi
1d92226b
JJ
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6931$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6933$as_echo_n "checking for -force_load linker flag... " >&6; }
6934if test "${lt_cv_ld_force_load+set}" = set; then :
6935 $as_echo_n "(cached) " >&6
6936else
6937 lt_cv_ld_force_load=no
6938 cat > conftest.c << _LT_EOF
6939int forced_loaded() { return 2;}
6940_LT_EOF
6941 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6942 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6943 echo "$AR cru libconftest.a conftest.o" >&5
6944 $AR cru libconftest.a conftest.o 2>&5
6945 cat > conftest.c << _LT_EOF
6946int main() { return 0;}
6947_LT_EOF
6948 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6949 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6950 _lt_result=$?
6951 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6952 lt_cv_ld_force_load=yes
6953 else
6954 cat conftest.err >&5
6955 fi
6956 rm -f conftest.err libconftest.a conftest conftest.c
6957 rm -rf conftest.dSYM
1ec601bf
FXC
6958
6959fi
1d92226b
JJ
6960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6961$as_echo "$lt_cv_ld_force_load" >&6; }
6962 case $host_os in
6963 rhapsody* | darwin1.[012])
6964 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6965 darwin1.*)
6966 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6967 darwin*) # darwin 5.x on
6968 # if running on 10.5 or later, the deployment target defaults
6969 # to the OS version, if on x86, and 10.4, the deployment
6970 # target defaults to 10.4. Don't you love it?
6971 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6972 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6973 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6974 10.[012]*)
6975 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6976 10.*)
6977 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6978 esac
6979 ;;
6980 esac
6981 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6982 _lt_dar_single_mod='$single_module'
6983 fi
6984 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6985 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6986 else
6987 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6988 fi
6989 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6990 _lt_dsymutil='~$DSYMUTIL $lib || :'
6991 else
6992 _lt_dsymutil=
6993 fi
6994 ;;
6995 esac
1ec601bf
FXC
6996
6997for ac_header in dlfcn.h
6998do :
6999 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7000"
7001if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7002 cat >>confdefs.h <<_ACEOF
7003#define HAVE_DLFCN_H 1
7004_ACEOF
7005
7006fi
7007
7008done
7009
7010
7011
7012
7013
7014# Set options
7015
7016
7017
7018 enable_dlopen=no
7019
7020
7021 enable_win32_dll=no
7022
7023
7024 # Check whether --enable-shared was given.
7025if test "${enable_shared+set}" = set; then :
7026 enableval=$enable_shared; p=${PACKAGE-default}
7027 case $enableval in
7028 yes) enable_shared=yes ;;
7029 no) enable_shared=no ;;
7030 *)
7031 enable_shared=no
7032 # Look at the argument we got. We use all the common list separators.
7033 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7034 for pkg in $enableval; do
7035 IFS="$lt_save_ifs"
7036 if test "X$pkg" = "X$p"; then
7037 enable_shared=yes
7038 fi
7039 done
7040 IFS="$lt_save_ifs"
7041 ;;
7042 esac
7043else
7044 enable_shared=yes
7045fi
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055 # Check whether --enable-static was given.
7056if test "${enable_static+set}" = set; then :
7057 enableval=$enable_static; p=${PACKAGE-default}
7058 case $enableval in
7059 yes) enable_static=yes ;;
7060 no) enable_static=no ;;
7061 *)
7062 enable_static=no
7063 # Look at the argument we got. We use all the common list separators.
7064 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7065 for pkg in $enableval; do
7066 IFS="$lt_save_ifs"
7067 if test "X$pkg" = "X$p"; then
7068 enable_static=yes
7069 fi
7070 done
7071 IFS="$lt_save_ifs"
7072 ;;
7073 esac
7074else
7075 enable_static=yes
7076fi
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087# Check whether --with-pic was given.
7088if test "${with_pic+set}" = set; then :
7089 withval=$with_pic; pic_mode="$withval"
7090else
7091 pic_mode=default
7092fi
7093
7094
7095test -z "$pic_mode" && pic_mode=default
7096
7097
7098
7099
7100
7101
7102
7103 # Check whether --enable-fast-install was given.
7104if test "${enable_fast_install+set}" = set; then :
7105 enableval=$enable_fast_install; p=${PACKAGE-default}
7106 case $enableval in
7107 yes) enable_fast_install=yes ;;
7108 no) enable_fast_install=no ;;
7109 *)
7110 enable_fast_install=no
7111 # Look at the argument we got. We use all the common list separators.
7112 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7113 for pkg in $enableval; do
7114 IFS="$lt_save_ifs"
7115 if test "X$pkg" = "X$p"; then
7116 enable_fast_install=yes
7117 fi
7118 done
7119 IFS="$lt_save_ifs"
7120 ;;
7121 esac
7122else
7123 enable_fast_install=yes
7124fi
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136# This can be used to rebuild libtool when needed
7137LIBTOOL_DEPS="$ltmain"
7138
7139# Always use our own libtool.
7140LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167test -z "$LN_S" && LN_S="ln -s"
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182if test -n "${ZSH_VERSION+set}" ; then
7183 setopt NO_GLOB_SUBST
7184fi
7185
7186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7187$as_echo_n "checking for objdir... " >&6; }
7188if test "${lt_cv_objdir+set}" = set; then :
7189 $as_echo_n "(cached) " >&6
7190else
7191 rm -f .libs 2>/dev/null
7192mkdir .libs 2>/dev/null
7193if test -d .libs; then
7194 lt_cv_objdir=.libs
7195else
7196 # MS-DOS does not allow filenames that begin with a dot.
7197 lt_cv_objdir=_libs
7198fi
7199rmdir .libs 2>/dev/null
7200fi
7201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7202$as_echo "$lt_cv_objdir" >&6; }
7203objdir=$lt_cv_objdir
7204
7205
7206
7207
7208
7209cat >>confdefs.h <<_ACEOF
7210#define LT_OBJDIR "$lt_cv_objdir/"
7211_ACEOF
7212
7213
7214
7215
7216case $host_os in
7217aix3*)
7218 # AIX sometimes has problems with the GCC collect2 program. For some
7219 # reason, if we set the COLLECT_NAMES environment variable, the problems
7220 # vanish in a puff of smoke.
7221 if test "X${COLLECT_NAMES+set}" != Xset; then
7222 COLLECT_NAMES=
7223 export COLLECT_NAMES
7224 fi
7225 ;;
7226esac
7227
7228# Global variables:
7229ofile=libtool
7230can_build_shared=yes
7231
7232# All known linkers require a `.a' archive for static linking (except MSVC,
7233# which needs '.lib').
7234libext=a
7235
7236with_gnu_ld="$lt_cv_prog_gnu_ld"
7237
7238old_CC="$CC"
7239old_CFLAGS="$CFLAGS"
7240
7241# Set sane defaults for various variables
7242test -z "$CC" && CC=cc
7243test -z "$LTCC" && LTCC=$CC
7244test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7245test -z "$LD" && LD=ld
7246test -z "$ac_objext" && ac_objext=o
7247
7248for cc_temp in $compiler""; do
7249 case $cc_temp in
7250 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7251 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7252 \-*) ;;
7253 *) break;;
7254 esac
7255done
7256cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7257
7258
7259# Only perform the check for file, if the check method requires it
7260test -z "$MAGIC_CMD" && MAGIC_CMD=file
7261case $deplibs_check_method in
7262file_magic*)
7263 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7265$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7266if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7267 $as_echo_n "(cached) " >&6
7268else
7269 case $MAGIC_CMD in
7270[\\/*] | ?:[\\/]*)
7271 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7272 ;;
7273*)
7274 lt_save_MAGIC_CMD="$MAGIC_CMD"
7275 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7276 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7277 for ac_dir in $ac_dummy; do
7278 IFS="$lt_save_ifs"
7279 test -z "$ac_dir" && ac_dir=.
7280 if test -f $ac_dir/${ac_tool_prefix}file; then
7281 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7282 if test -n "$file_magic_test_file"; then
7283 case $deplibs_check_method in
7284 "file_magic "*)
7285 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7286 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7287 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7288 $EGREP "$file_magic_regex" > /dev/null; then
7289 :
7290 else
7291 cat <<_LT_EOF 1>&2
7292
7293*** Warning: the command libtool uses to detect shared libraries,
7294*** $file_magic_cmd, produces output that libtool cannot recognize.
7295*** The result is that libtool may fail to recognize shared libraries
7296*** as such. This will affect the creation of libtool libraries that
7297*** depend on shared libraries, but programs linked with such libtool
7298*** libraries will work regardless of this problem. Nevertheless, you
7299*** may want to report the problem to your system manager and/or to
7300*** bug-libtool@gnu.org
7301
7302_LT_EOF
7303 fi ;;
7304 esac
7305 fi
7306 break
7307 fi
7308 done
7309 IFS="$lt_save_ifs"
7310 MAGIC_CMD="$lt_save_MAGIC_CMD"
7311 ;;
7312esac
7313fi
7314
7315MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7316if test -n "$MAGIC_CMD"; then
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7318$as_echo "$MAGIC_CMD" >&6; }
7319else
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321$as_echo "no" >&6; }
7322fi
7323
7324
7325
7326
7327
7328if test -z "$lt_cv_path_MAGIC_CMD"; then
7329 if test -n "$ac_tool_prefix"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7331$as_echo_n "checking for file... " >&6; }
7332if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7333 $as_echo_n "(cached) " >&6
7334else
7335 case $MAGIC_CMD in
7336[\\/*] | ?:[\\/]*)
7337 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7338 ;;
7339*)
7340 lt_save_MAGIC_CMD="$MAGIC_CMD"
7341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7342 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7343 for ac_dir in $ac_dummy; do
7344 IFS="$lt_save_ifs"
7345 test -z "$ac_dir" && ac_dir=.
7346 if test -f $ac_dir/file; then
7347 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7348 if test -n "$file_magic_test_file"; then
7349 case $deplibs_check_method in
7350 "file_magic "*)
7351 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7352 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7353 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7354 $EGREP "$file_magic_regex" > /dev/null; then
7355 :
7356 else
7357 cat <<_LT_EOF 1>&2
7358
7359*** Warning: the command libtool uses to detect shared libraries,
7360*** $file_magic_cmd, produces output that libtool cannot recognize.
7361*** The result is that libtool may fail to recognize shared libraries
7362*** as such. This will affect the creation of libtool libraries that
7363*** depend on shared libraries, but programs linked with such libtool
7364*** libraries will work regardless of this problem. Nevertheless, you
7365*** may want to report the problem to your system manager and/or to
7366*** bug-libtool@gnu.org
7367
7368_LT_EOF
7369 fi ;;
7370 esac
7371 fi
7372 break
7373 fi
7374 done
7375 IFS="$lt_save_ifs"
7376 MAGIC_CMD="$lt_save_MAGIC_CMD"
7377 ;;
7378esac
7379fi
7380
7381MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7382if test -n "$MAGIC_CMD"; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7384$as_echo "$MAGIC_CMD" >&6; }
7385else
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387$as_echo "no" >&6; }
7388fi
7389
7390
7391 else
7392 MAGIC_CMD=:
7393 fi
7394fi
7395
7396 fi
7397 ;;
7398esac
7399
7400# Use C for the default configuration in the libtool script
7401
7402lt_save_CC="$CC"
7403ac_ext=c
7404ac_cpp='$CPP $CPPFLAGS'
7405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407ac_compiler_gnu=$ac_cv_c_compiler_gnu
7408
7409
7410# Source file extension for C test sources.
7411ac_ext=c
7412
7413# Object file extension for compiled C test sources.
7414objext=o
7415objext=$objext
7416
7417# Code to be used in simple compile tests
7418lt_simple_compile_test_code="int some_variable = 0;"
7419
7420# Code to be used in simple link tests
7421lt_simple_link_test_code='int main(){return(0);}'
7422
7423
7424
7425
7426
7427
7428
7429# If no C compiler was specified, use CC.
7430LTCC=${LTCC-"$CC"}
7431
7432# If no C compiler flags were specified, use CFLAGS.
7433LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7434
7435# Allow CC to be a program name with arguments.
7436compiler=$CC
7437
7438# Save the default compiler, since it gets overwritten when the other
7439# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7440compiler_DEFAULT=$CC
7441
7442# save warnings/boilerplate of simple test code
7443ac_outfile=conftest.$ac_objext
7444echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7445eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7446_lt_compiler_boilerplate=`cat conftest.err`
7447$RM conftest*
7448
7449ac_outfile=conftest.$ac_objext
7450echo "$lt_simple_link_test_code" >conftest.$ac_ext
7451eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7452_lt_linker_boilerplate=`cat conftest.err`
7453$RM -r conftest*
7454
7455
7456## CAVEAT EMPTOR:
7457## There is no encapsulation within the following macros, do not change
7458## the running order or otherwise move them around unless you know exactly
7459## what you are doing...
7460if test -n "$compiler"; then
7461
7462lt_prog_compiler_no_builtin_flag=
7463
7464if test "$GCC" = yes; then
7465 case $cc_basename in
7466 nvcc*)
7467 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7468 *)
7469 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7470 esac
7471
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7473$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7474if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7475 $as_echo_n "(cached) " >&6
7476else
7477 lt_cv_prog_compiler_rtti_exceptions=no
7478 ac_outfile=conftest.$ac_objext
7479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7480 lt_compiler_flag="-fno-rtti -fno-exceptions"
7481 # Insert the option either (1) after the last *FLAGS variable, or
7482 # (2) before a word containing "conftest.", or (3) at the end.
7483 # Note that $ac_compile itself does not contain backslashes and begins
7484 # with a dollar sign (not a hyphen), so the echo should work correctly.
7485 # The option is referenced via a variable to avoid confusing sed.
7486 lt_compile=`echo "$ac_compile" | $SED \
7487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7489 -e 's:$: $lt_compiler_flag:'`
7490 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7491 (eval "$lt_compile" 2>conftest.err)
7492 ac_status=$?
7493 cat conftest.err >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 if (exit $ac_status) && test -s "$ac_outfile"; then
7496 # The compiler can only warn and ignore the option if not recognized
7497 # So say no if there are warnings other than the usual output.
7498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7500 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7501 lt_cv_prog_compiler_rtti_exceptions=yes
7502 fi
7503 fi
7504 $RM conftest*
7505
7506fi
7507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7508$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7509
7510if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7511 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7512else
7513 :
7514fi
7515
7516fi
7517
7518
7519
7520
7521
7522
7523 lt_prog_compiler_wl=
7524lt_prog_compiler_pic=
7525lt_prog_compiler_static=
7526
7527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7528$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7529
7530 if test "$GCC" = yes; then
7531 lt_prog_compiler_wl='-Wl,'
7532 lt_prog_compiler_static='-static'
7533
7534 case $host_os in
7535 aix*)
7536 # All AIX code is PIC.
7537 if test "$host_cpu" = ia64; then
7538 # AIX 5 now supports IA64 processor
7539 lt_prog_compiler_static='-Bstatic'
7540 fi
7541 ;;
7542
7543 amigaos*)
7544 case $host_cpu in
7545 powerpc)
7546 # see comment about AmigaOS4 .so support
7547 lt_prog_compiler_pic='-fPIC'
7548 ;;
7549 m68k)
7550 # FIXME: we need at least 68020 code to build shared libraries, but
7551 # adding the `-m68020' flag to GCC prevents building anything better,
7552 # like `-m68040'.
7553 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7554 ;;
7555 esac
7556 ;;
7557
7558 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7559 # PIC is the default for these OSes.
7560 ;;
7561
7562 mingw* | cygwin* | pw32* | os2* | cegcc*)
7563 # This hack is so that the source file can tell whether it is being
7564 # built for inclusion in a dll (and should export symbols for example).
7565 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7566 # (--disable-auto-import) libraries
7567 lt_prog_compiler_pic='-DDLL_EXPORT'
7568 ;;
7569
7570 darwin* | rhapsody*)
7571 # PIC is the default on this platform
7572 # Common symbols not allowed in MH_DYLIB files
7573 lt_prog_compiler_pic='-fno-common'
7574 ;;
7575
7576 haiku*)
7577 # PIC is the default for Haiku.
7578 # The "-static" flag exists, but is broken.
7579 lt_prog_compiler_static=
7580 ;;
7581
7582 hpux*)
7583 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7584 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7585 # sets the default TLS model and affects inlining.
7586 case $host_cpu in
7587 hppa*64*)
7588 # +Z the default
7589 ;;
7590 *)
7591 lt_prog_compiler_pic='-fPIC'
7592 ;;
7593 esac
7594 ;;
7595
7596 interix[3-9]*)
7597 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7598 # Instead, we relocate shared libraries at runtime.
7599 ;;
7600
7601 msdosdjgpp*)
7602 # Just because we use GCC doesn't mean we suddenly get shared libraries
7603 # on systems that don't support them.
7604 lt_prog_compiler_can_build_shared=no
7605 enable_shared=no
7606 ;;
7607
7608 *nto* | *qnx*)
7609 # QNX uses GNU C++, but need to define -shared option too, otherwise
7610 # it will coredump.
7611 lt_prog_compiler_pic='-fPIC -shared'
7612 ;;
7613
7614 sysv4*MP*)
7615 if test -d /usr/nec; then
7616 lt_prog_compiler_pic=-Kconform_pic
7617 fi
7618 ;;
7619
7620 *)
7621 lt_prog_compiler_pic='-fPIC'
7622 ;;
7623 esac
7624
7625 case $cc_basename in
7626 nvcc*) # Cuda Compiler Driver 2.2
7627 lt_prog_compiler_wl='-Xlinker '
7628 lt_prog_compiler_pic='-Xcompiler -fPIC'
7629 ;;
7630 esac
7631 else
7632 # PORTME Check for flag to pass linker flags through the system compiler.
7633 case $host_os in
7634 aix*)
7635 lt_prog_compiler_wl='-Wl,'
7636 if test "$host_cpu" = ia64; then
7637 # AIX 5 now supports IA64 processor
7638 lt_prog_compiler_static='-Bstatic'
7639 else
7640 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7641 fi
7642 ;;
7643
7644 mingw* | cygwin* | pw32* | os2* | cegcc*)
7645 # This hack is so that the source file can tell whether it is being
7646 # built for inclusion in a dll (and should export symbols for example).
7647 lt_prog_compiler_pic='-DDLL_EXPORT'
7648 ;;
7649
7650 hpux9* | hpux10* | hpux11*)
7651 lt_prog_compiler_wl='-Wl,'
7652 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7653 # not for PA HP-UX.
7654 case $host_cpu in
7655 hppa*64*|ia64*)
7656 # +Z the default
7657 ;;
7658 *)
7659 lt_prog_compiler_pic='+Z'
7660 ;;
7661 esac
7662 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7663 lt_prog_compiler_static='${wl}-a ${wl}archive'
7664 ;;
7665
7666 irix5* | irix6* | nonstopux*)
7667 lt_prog_compiler_wl='-Wl,'
7668 # PIC (with -KPIC) is the default.
7669 lt_prog_compiler_static='-non_shared'
7670 ;;
7671
7672 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7673 case $cc_basename in
7674 # old Intel for x86_64 which still supported -KPIC.
7675 ecc*)
7676 lt_prog_compiler_wl='-Wl,'
7677 lt_prog_compiler_pic='-KPIC'
7678 lt_prog_compiler_static='-static'
7679 ;;
7680 # icc used to be incompatible with GCC.
7681 # ICC 10 doesn't accept -KPIC any more.
7682 icc* | ifort*)
7683 lt_prog_compiler_wl='-Wl,'
7684 lt_prog_compiler_pic='-fPIC'
7685 lt_prog_compiler_static='-static'
7686 ;;
7687 # Lahey Fortran 8.1.
7688 lf95*)
7689 lt_prog_compiler_wl='-Wl,'
7690 lt_prog_compiler_pic='--shared'
7691 lt_prog_compiler_static='--static'
7692 ;;
7693 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7694 # Portland Group compilers (*not* the Pentium gcc compiler,
7695 # which looks to be a dead project)
7696 lt_prog_compiler_wl='-Wl,'
7697 lt_prog_compiler_pic='-fpic'
7698 lt_prog_compiler_static='-Bstatic'
7699 ;;
7700 ccc*)
7701 lt_prog_compiler_wl='-Wl,'
7702 # All Alpha code is PIC.
7703 lt_prog_compiler_static='-non_shared'
7704 ;;
7705 xl* | bgxl* | bgf* | mpixl*)
7706 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7707 lt_prog_compiler_wl='-Wl,'
7708 lt_prog_compiler_pic='-qpic'
7709 lt_prog_compiler_static='-qstaticlink'
7710 ;;
7711 *)
7712 case `$CC -V 2>&1 | sed 5q` in
7713 *Sun\ F* | *Sun*Fortran*)
7714 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7715 lt_prog_compiler_pic='-KPIC'
7716 lt_prog_compiler_static='-Bstatic'
7717 lt_prog_compiler_wl=''
7718 ;;
7719 *Sun\ C*)
7720 # Sun C 5.9
7721 lt_prog_compiler_pic='-KPIC'
7722 lt_prog_compiler_static='-Bstatic'
7723 lt_prog_compiler_wl='-Wl,'
7724 ;;
7725 esac
7726 ;;
7727 esac
7728 ;;
7729
7730 newsos6)
7731 lt_prog_compiler_pic='-KPIC'
7732 lt_prog_compiler_static='-Bstatic'
7733 ;;
7734
7735 *nto* | *qnx*)
7736 # QNX uses GNU C++, but need to define -shared option too, otherwise
7737 # it will coredump.
7738 lt_prog_compiler_pic='-fPIC -shared'
7739 ;;
7740
7741 osf3* | osf4* | osf5*)
7742 lt_prog_compiler_wl='-Wl,'
7743 # All OSF/1 code is PIC.
7744 lt_prog_compiler_static='-non_shared'
7745 ;;
7746
7747 rdos*)
7748 lt_prog_compiler_static='-non_shared'
7749 ;;
7750
7751 solaris*)
7752 lt_prog_compiler_pic='-KPIC'
7753 lt_prog_compiler_static='-Bstatic'
7754 case $cc_basename in
7755 f77* | f90* | f95*)
7756 lt_prog_compiler_wl='-Qoption ld ';;
7757 *)
7758 lt_prog_compiler_wl='-Wl,';;
7759 esac
7760 ;;
7761
7762 sunos4*)
7763 lt_prog_compiler_wl='-Qoption ld '
7764 lt_prog_compiler_pic='-PIC'
7765 lt_prog_compiler_static='-Bstatic'
7766 ;;
7767
7768 sysv4 | sysv4.2uw2* | sysv4.3*)
7769 lt_prog_compiler_wl='-Wl,'
7770 lt_prog_compiler_pic='-KPIC'
7771 lt_prog_compiler_static='-Bstatic'
7772 ;;
7773
7774 sysv4*MP*)
7775 if test -d /usr/nec ;then
7776 lt_prog_compiler_pic='-Kconform_pic'
7777 lt_prog_compiler_static='-Bstatic'
7778 fi
7779 ;;
7780
7781 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7782 lt_prog_compiler_wl='-Wl,'
7783 lt_prog_compiler_pic='-KPIC'
7784 lt_prog_compiler_static='-Bstatic'
7785 ;;
7786
7787 unicos*)
7788 lt_prog_compiler_wl='-Wl,'
7789 lt_prog_compiler_can_build_shared=no
7790 ;;
7791
7792 uts4*)
7793 lt_prog_compiler_pic='-pic'
7794 lt_prog_compiler_static='-Bstatic'
7795 ;;
7796
7797 *)
7798 lt_prog_compiler_can_build_shared=no
7799 ;;
7800 esac
7801 fi
7802
7803case $host_os in
7804 # For platforms which do not support PIC, -DPIC is meaningless:
7805 *djgpp*)
7806 lt_prog_compiler_pic=
7807 ;;
7808 *)
7809 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7810 ;;
7811esac
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7813$as_echo "$lt_prog_compiler_pic" >&6; }
7814
7815
7816
7817
7818
7819
7820#
7821# Check to make sure the PIC flag actually works.
7822#
7823if test -n "$lt_prog_compiler_pic"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7825$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7826if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7827 $as_echo_n "(cached) " >&6
7828else
7829 lt_cv_prog_compiler_pic_works=no
7830 ac_outfile=conftest.$ac_objext
7831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7832 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7833 # Insert the option either (1) after the last *FLAGS variable, or
7834 # (2) before a word containing "conftest.", or (3) at the end.
7835 # Note that $ac_compile itself does not contain backslashes and begins
7836 # with a dollar sign (not a hyphen), so the echo should work correctly.
7837 # The option is referenced via a variable to avoid confusing sed.
7838 lt_compile=`echo "$ac_compile" | $SED \
7839 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7841 -e 's:$: $lt_compiler_flag:'`
7842 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7843 (eval "$lt_compile" 2>conftest.err)
7844 ac_status=$?
7845 cat conftest.err >&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 if (exit $ac_status) && test -s "$ac_outfile"; then
7848 # The compiler can only warn and ignore the option if not recognized
7849 # So say no if there are warnings other than the usual output.
7850 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7851 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7852 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7853 lt_cv_prog_compiler_pic_works=yes
7854 fi
7855 fi
7856 $RM conftest*
7857
7858fi
7859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7860$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7861
7862if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7863 case $lt_prog_compiler_pic in
7864 "" | " "*) ;;
7865 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7866 esac
7867else
7868 lt_prog_compiler_pic=
7869 lt_prog_compiler_can_build_shared=no
7870fi
7871
7872fi
7873
7874
7875
7876
7877
7878
7879#
7880# Check to make sure the static flag actually works.
7881#
7882wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7884$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7885if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7886 $as_echo_n "(cached) " >&6
7887else
7888 lt_cv_prog_compiler_static_works=no
7889 save_LDFLAGS="$LDFLAGS"
7890 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7891 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7892 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7893 # The linker can only warn and ignore the option if not recognized
7894 # So say no if there are warnings
7895 if test -s conftest.err; then
7896 # Append any errors to the config.log.
7897 cat conftest.err 1>&5
7898 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7899 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7900 if diff conftest.exp conftest.er2 >/dev/null; then
7901 lt_cv_prog_compiler_static_works=yes
7902 fi
7903 else
7904 lt_cv_prog_compiler_static_works=yes
7905 fi
7906 fi
7907 $RM -r conftest*
7908 LDFLAGS="$save_LDFLAGS"
7909
7910fi
7911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7912$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7913
7914if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7915 :
7916else
7917 lt_prog_compiler_static=
7918fi
7919
7920
7921
7922
7923
7924
7925
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7927$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7928if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7930else
7931 lt_cv_prog_compiler_c_o=no
7932 $RM -r conftest 2>/dev/null
7933 mkdir conftest
7934 cd conftest
7935 mkdir out
7936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7937
7938 lt_compiler_flag="-o out/conftest2.$ac_objext"
7939 # Insert the option either (1) after the last *FLAGS variable, or
7940 # (2) before a word containing "conftest.", or (3) at the end.
7941 # Note that $ac_compile itself does not contain backslashes and begins
7942 # with a dollar sign (not a hyphen), so the echo should work correctly.
7943 lt_compile=`echo "$ac_compile" | $SED \
7944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7946 -e 's:$: $lt_compiler_flag:'`
7947 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7948 (eval "$lt_compile" 2>out/conftest.err)
7949 ac_status=$?
7950 cat out/conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7953 then
7954 # The compiler can only warn and ignore the option if not recognized
7955 # So say no if there are warnings
7956 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7957 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7958 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7959 lt_cv_prog_compiler_c_o=yes
7960 fi
7961 fi
7962 chmod u+w . 2>&5
7963 $RM conftest*
7964 # SGI C++ compiler will create directory out/ii_files/ for
7965 # template instantiation
7966 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7967 $RM out/* && rmdir out
7968 cd ..
7969 $RM -r conftest
7970 $RM conftest*
7971
7972fi
7973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7974$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7975
7976
7977
7978
7979
7980
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7982$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7983if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7984 $as_echo_n "(cached) " >&6
7985else
7986 lt_cv_prog_compiler_c_o=no
7987 $RM -r conftest 2>/dev/null
7988 mkdir conftest
7989 cd conftest
7990 mkdir out
7991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7992
7993 lt_compiler_flag="-o out/conftest2.$ac_objext"
7994 # Insert the option either (1) after the last *FLAGS variable, or
7995 # (2) before a word containing "conftest.", or (3) at the end.
7996 # Note that $ac_compile itself does not contain backslashes and begins
7997 # with a dollar sign (not a hyphen), so the echo should work correctly.
7998 lt_compile=`echo "$ac_compile" | $SED \
7999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8001 -e 's:$: $lt_compiler_flag:'`
8002 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8003 (eval "$lt_compile" 2>out/conftest.err)
8004 ac_status=$?
8005 cat out/conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8008 then
8009 # The compiler can only warn and ignore the option if not recognized
8010 # So say no if there are warnings
8011 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8012 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8013 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8014 lt_cv_prog_compiler_c_o=yes
8015 fi
8016 fi
8017 chmod u+w . 2>&5
8018 $RM conftest*
8019 # SGI C++ compiler will create directory out/ii_files/ for
8020 # template instantiation
8021 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8022 $RM out/* && rmdir out
8023 cd ..
8024 $RM -r conftest
8025 $RM conftest*
8026
8027fi
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8029$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8030
8031
8032
8033
8034hard_links="nottested"
8035if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8036 # do not overwrite the value of need_locks provided by the user
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8038$as_echo_n "checking if we can lock with hard links... " >&6; }
8039 hard_links=yes
8040 $RM conftest*
8041 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8042 touch conftest.a
8043 ln conftest.a conftest.b 2>&5 || hard_links=no
8044 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8046$as_echo "$hard_links" >&6; }
8047 if test "$hard_links" = no; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8049$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8050 need_locks=warn
8051 fi
8052else
8053 need_locks=no
8054fi
8055
8056
8057
8058
8059
8060
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8062$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8063
8064 runpath_var=
8065 allow_undefined_flag=
8066 always_export_symbols=no
8067 archive_cmds=
8068 archive_expsym_cmds=
8069 compiler_needs_object=no
8070 enable_shared_with_static_runtimes=no
8071 export_dynamic_flag_spec=
8072 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8073 hardcode_automatic=no
8074 hardcode_direct=no
8075 hardcode_direct_absolute=no
8076 hardcode_libdir_flag_spec=
8077 hardcode_libdir_flag_spec_ld=
8078 hardcode_libdir_separator=
8079 hardcode_minus_L=no
8080 hardcode_shlibpath_var=unsupported
8081 inherit_rpath=no
8082 link_all_deplibs=unknown
8083 module_cmds=
8084 module_expsym_cmds=
8085 old_archive_from_new_cmds=
8086 old_archive_from_expsyms_cmds=
8087 thread_safe_flag_spec=
8088 whole_archive_flag_spec=
8089 # include_expsyms should be a list of space-separated symbols to be *always*
8090 # included in the symbol list
8091 include_expsyms=
8092 # exclude_expsyms can be an extended regexp of symbols to exclude
8093 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8094 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8095 # as well as any symbol that contains `d'.
8096 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8097 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8098 # platforms (ab)use it in PIC code, but their linkers get confused if
8099 # the symbol is explicitly referenced. Since portable code cannot
8100 # rely on this symbol name, it's probably fine to never include it in
8101 # preloaded symbol tables.
8102 # Exclude shared library initialization/finalization symbols.
8103 extract_expsyms_cmds=
8104
8105 case $host_os in
8106 cygwin* | mingw* | pw32* | cegcc*)
8107 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8108 # When not using gcc, we currently assume that we are using
8109 # Microsoft Visual C++.
8110 if test "$GCC" != yes; then
8111 with_gnu_ld=no
8112 fi
8113 ;;
8114 interix*)
8115 # we just hope/assume this is gcc and not c89 (= MSVC++)
8116 with_gnu_ld=yes
8117 ;;
8118 openbsd*)
8119 with_gnu_ld=no
8120 ;;
8121 esac
8122
8123 ld_shlibs=yes
8124
8125 # On some targets, GNU ld is compatible enough with the native linker
8126 # that we're better off using the native interface for both.
8127 lt_use_gnu_ld_interface=no
8128 if test "$with_gnu_ld" = yes; then
8129 case $host_os in
8130 aix*)
8131 # The AIX port of GNU ld has always aspired to compatibility
8132 # with the native linker. However, as the warning in the GNU ld
8133 # block says, versions before 2.19.5* couldn't really create working
8134 # shared libraries, regardless of the interface used.
8135 case `$LD -v 2>&1` in
8136 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8137 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8138 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8139 *)
8140 lt_use_gnu_ld_interface=yes
8141 ;;
8142 esac
8143 ;;
8144 *)
8145 lt_use_gnu_ld_interface=yes
8146 ;;
8147 esac
8148 fi
8149
8150 if test "$lt_use_gnu_ld_interface" = yes; then
8151 # If archive_cmds runs LD, not CC, wlarc should be empty
8152 wlarc='${wl}'
8153
8154 # Set some defaults for GNU ld with shared library support. These
8155 # are reset later if shared libraries are not supported. Putting them
8156 # here allows them to be overridden if necessary.
8157 runpath_var=LD_RUN_PATH
8158 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8159 export_dynamic_flag_spec='${wl}--export-dynamic'
8160 # ancient GNU ld didn't support --whole-archive et. al.
8161 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8162 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8163 else
8164 whole_archive_flag_spec=
8165 fi
8166 supports_anon_versioning=no
8167 case `$LD -v 2>&1` in
8168 *GNU\ gold*) supports_anon_versioning=yes ;;
8169 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8170 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8171 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8172 *\ 2.11.*) ;; # other 2.11 versions
8173 *) supports_anon_versioning=yes ;;
8174 esac
8175
8176 # See if GNU ld supports shared libraries.
8177 case $host_os in
8178 aix[3-9]*)
8179 # On AIX/PPC, the GNU linker is very broken
8180 if test "$host_cpu" != ia64; then
8181 ld_shlibs=no
8182 cat <<_LT_EOF 1>&2
8183
8184*** Warning: the GNU linker, at least up to release 2.19, is reported
8185*** to be unable to reliably create shared libraries on AIX.
8186*** Therefore, libtool is disabling shared libraries support. If you
8187*** really care for shared libraries, you may want to install binutils
8188*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8189*** You will then need to restart the configuration process.
8190
8191_LT_EOF
8192 fi
8193 ;;
8194
8195 amigaos*)
8196 case $host_cpu in
8197 powerpc)
8198 # see comment about AmigaOS4 .so support
8199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8200 archive_expsym_cmds=''
8201 ;;
8202 m68k)
8203 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)'
8204 hardcode_libdir_flag_spec='-L$libdir'
8205 hardcode_minus_L=yes
8206 ;;
8207 esac
8208 ;;
8209
8210 beos*)
8211 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8212 allow_undefined_flag=unsupported
8213 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8214 # support --undefined. This deserves some investigation. FIXME
8215 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8216 else
8217 ld_shlibs=no
8218 fi
8219 ;;
8220
8221 cygwin* | mingw* | pw32* | cegcc*)
8222 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8223 # as there is no search path for DLLs.
8224 hardcode_libdir_flag_spec='-L$libdir'
8225 export_dynamic_flag_spec='${wl}--export-all-symbols'
8226 allow_undefined_flag=unsupported
8227 always_export_symbols=no
8228 enable_shared_with_static_runtimes=yes
8229 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8230
8231 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8232 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8233 # If the export-symbols file already is a .def file (1st line
8234 # is EXPORTS), use it as is; otherwise, prepend...
8235 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8236 cp $export_symbols $output_objdir/$soname.def;
8237 else
8238 echo EXPORTS > $output_objdir/$soname.def;
8239 cat $export_symbols >> $output_objdir/$soname.def;
8240 fi~
8241 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8242 else
8243 ld_shlibs=no
8244 fi
8245 ;;
8246
8247 haiku*)
8248 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8249 link_all_deplibs=yes
8250 ;;
8251
8252 interix[3-9]*)
8253 hardcode_direct=no
8254 hardcode_shlibpath_var=no
8255 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8256 export_dynamic_flag_spec='${wl}-E'
8257 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8258 # Instead, shared libraries are loaded at an image base (0x10000000 by
8259 # default) and relocated if they conflict, which is a slow very memory
8260 # consuming and fragmenting process. To avoid this, we pick a random,
8261 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8262 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8263 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8264 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'
8265 ;;
8266
8267 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8268 tmp_diet=no
8269 if test "$host_os" = linux-dietlibc; then
8270 case $cc_basename in
8271 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8272 esac
8273 fi
8274 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8275 && test "$tmp_diet" = no
8276 then
8277 tmp_addflag=
8278 tmp_sharedflag='-shared'
8279 case $cc_basename,$host_cpu in
8280 pgcc*) # Portland Group C compiler
8281 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8282 tmp_addflag=' $pic_flag'
8283 ;;
8284 pgf77* | pgf90* | pgf95* | pgfortran*)
8285 # Portland Group f77 and f90 compilers
8286 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8287 tmp_addflag=' $pic_flag -Mnomain' ;;
8288 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8289 tmp_addflag=' -i_dynamic' ;;
8290 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8291 tmp_addflag=' -i_dynamic -nofor_main' ;;
8292 ifc* | ifort*) # Intel Fortran compiler
8293 tmp_addflag=' -nofor_main' ;;
8294 lf95*) # Lahey Fortran 8.1
8295 whole_archive_flag_spec=
8296 tmp_sharedflag='--shared' ;;
8297 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8298 tmp_sharedflag='-qmkshrobj'
8299 tmp_addflag= ;;
8300 nvcc*) # Cuda Compiler Driver 2.2
8301 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8302 compiler_needs_object=yes
8303 ;;
8304 esac
8305 case `$CC -V 2>&1 | sed 5q` in
8306 *Sun\ C*) # Sun C 5.9
8307 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8308 compiler_needs_object=yes
8309 tmp_sharedflag='-G' ;;
8310 *Sun\ F*) # Sun Fortran 8.3
8311 tmp_sharedflag='-G' ;;
8312 esac
8313 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8314
8315 if test "x$supports_anon_versioning" = xyes; then
8316 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8317 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8318 echo "local: *; };" >> $output_objdir/$libname.ver~
8319 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8320 fi
8321
8322 case $cc_basename in
8323 xlf* | bgf* | bgxlf* | mpixlf*)
8324 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8325 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8326 hardcode_libdir_flag_spec=
8327 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8328 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8329 if test "x$supports_anon_versioning" = xyes; then
8330 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8331 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8332 echo "local: *; };" >> $output_objdir/$libname.ver~
8333 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8334 fi
8335 ;;
8336 esac
8337 else
8338 ld_shlibs=no
8339 fi
8340 ;;
8341
8342 netbsd*)
8343 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8344 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8345 wlarc=
8346 else
8347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8348 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8349 fi
8350 ;;
8351
8352 solaris*)
8353 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8354 ld_shlibs=no
8355 cat <<_LT_EOF 1>&2
8356
8357*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8358*** create shared libraries on Solaris systems. Therefore, libtool
8359*** is disabling shared libraries support. We urge you to upgrade GNU
8360*** binutils to release 2.9.1 or newer. Another option is to modify
8361*** your PATH or compiler configuration so that the native linker is
8362*** used, and then restart.
8363
8364_LT_EOF
8365 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8366 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8367 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8368 else
8369 ld_shlibs=no
8370 fi
8371 ;;
8372
8373 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8374 case `$LD -v 2>&1` in
8375 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8376 ld_shlibs=no
8377 cat <<_LT_EOF 1>&2
8378
8379*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8380*** reliably create shared libraries on SCO systems. Therefore, libtool
8381*** is disabling shared libraries support. We urge you to upgrade GNU
8382*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8383*** your PATH or compiler configuration so that the native linker is
8384*** used, and then restart.
8385
8386_LT_EOF
8387 ;;
8388 *)
8389 # For security reasons, it is highly recommended that you always
8390 # use absolute paths for naming shared libraries, and exclude the
8391 # DT_RUNPATH tag from executables and libraries. But doing so
8392 # requires that you compile everything twice, which is a pain.
8393 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8394 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8396 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8397 else
8398 ld_shlibs=no
8399 fi
8400 ;;
8401 esac
8402 ;;
8403
8404 sunos4*)
8405 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8406 wlarc=
8407 hardcode_direct=yes
8408 hardcode_shlibpath_var=no
8409 ;;
8410
8411 *)
8412 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8413 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8414 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8415 else
8416 ld_shlibs=no
8417 fi
8418 ;;
8419 esac
8420
8421 if test "$ld_shlibs" = no; then
8422 runpath_var=
8423 hardcode_libdir_flag_spec=
8424 export_dynamic_flag_spec=
8425 whole_archive_flag_spec=
8426 fi
8427 else
8428 # PORTME fill in a description of your system's linker (not GNU ld)
8429 case $host_os in
8430 aix3*)
8431 allow_undefined_flag=unsupported
8432 always_export_symbols=yes
8433 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'
8434 # Note: this linker hardcodes the directories in LIBPATH if there
8435 # are no directories specified by -L.
8436 hardcode_minus_L=yes
8437 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8438 # Neither direct hardcoding nor static linking is supported with a
8439 # broken collect2.
8440 hardcode_direct=unsupported
8441 fi
8442 ;;
8443
8444 aix[4-9]*)
8445 if test "$host_cpu" = ia64; then
8446 # On IA64, the linker does run time linking by default, so we don't
8447 # have to do anything special.
8448 aix_use_runtimelinking=no
8449 exp_sym_flag='-Bexport'
8450 no_entry_flag=""
8451 else
8452 # If we're using GNU nm, then we don't want the "-C" option.
8453 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8454 # Also, AIX nm treats weak defined symbols like other global
8455 # defined symbols, whereas GNU nm marks them as "W".
8456 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8457 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8458 else
8459 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'
8460 fi
8461 aix_use_runtimelinking=no
8462
8463 # Test if we are trying to use run time linking or normal
8464 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8465 # need to do runtime linking.
8466 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8467 for ld_flag in $LDFLAGS; do
8468 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8469 aix_use_runtimelinking=yes
8470 break
8471 fi
8472 done
8473 ;;
8474 esac
8475
8476 exp_sym_flag='-bexport'
8477 no_entry_flag='-bnoentry'
8478 fi
8479
8480 # When large executables or shared objects are built, AIX ld can
8481 # have problems creating the table of contents. If linking a library
8482 # or program results in "error TOC overflow" add -mminimal-toc to
8483 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8484 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8485
8486 archive_cmds=''
8487 hardcode_direct=yes
8488 hardcode_direct_absolute=yes
8489 hardcode_libdir_separator=':'
8490 link_all_deplibs=yes
8491 file_list_spec='${wl}-f,'
8492
8493 if test "$GCC" = yes; then
8494 case $host_os in aix4.[012]|aix4.[012].*)
8495 # We only want to do this on AIX 4.2 and lower, the check
8496 # below for broken collect2 doesn't work under 4.3+
8497 collect2name=`${CC} -print-prog-name=collect2`
8498 if test -f "$collect2name" &&
8499 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8500 then
8501 # We have reworked collect2
8502 :
8503 else
8504 # We have old collect2
8505 hardcode_direct=unsupported
8506 # It fails to find uninstalled libraries when the uninstalled
8507 # path is not listed in the libpath. Setting hardcode_minus_L
8508 # to unsupported forces relinking
8509 hardcode_minus_L=yes
8510 hardcode_libdir_flag_spec='-L$libdir'
8511 hardcode_libdir_separator=
8512 fi
8513 ;;
8514 esac
8515 shared_flag='-shared'
8516 if test "$aix_use_runtimelinking" = yes; then
8517 shared_flag="$shared_flag "'${wl}-G'
8518 fi
8519 else
8520 # not using gcc
8521 if test "$host_cpu" = ia64; then
8522 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8523 # chokes on -Wl,-G. The following line is correct:
8524 shared_flag='-G'
8525 else
8526 if test "$aix_use_runtimelinking" = yes; then
8527 shared_flag='${wl}-G'
8528 else
8529 shared_flag='${wl}-bM:SRE'
8530 fi
8531 fi
8532 fi
8533
8534 export_dynamic_flag_spec='${wl}-bexpall'
8535 # It seems that -bexpall does not export symbols beginning with
8536 # underscore (_), so it is better to generate a list of symbols to export.
8537 always_export_symbols=yes
8538 if test "$aix_use_runtimelinking" = yes; then
8539 # Warning - without using the other runtime loading flags (-brtl),
8540 # -berok will link without error, but may produce a broken library.
8541 allow_undefined_flag='-berok'
8542 # Determine the default libpath from the value encoded in an
8543 # empty executable.
fabfcf5e
KT
8544 if test x$gcc_no_link = xyes; then
8545 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8546fi
8547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
8548/* end confdefs.h. */
8549
8550int
8551main ()
8552{
8553
8554 ;
8555 return 0;
8556}
8557_ACEOF
8558if ac_fn_c_try_link "$LINENO"; then :
8559
8560lt_aix_libpath_sed='
8561 /Import File Strings/,/^$/ {
8562 /^0/ {
8563 s/^0 *\(.*\)$/\1/
8564 p
8565 }
8566 }'
8567aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8568# Check for a 64-bit object if we didn't find anything.
8569if test -z "$aix_libpath"; then
8570 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8571fi
8572fi
8573rm -f core conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
8575if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8576
8577 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8578 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8579 else
8580 if test "$host_cpu" = ia64; then
8581 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8582 allow_undefined_flag="-z nodefs"
8583 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"
8584 else
8585 # Determine the default libpath from the value encoded in an
8586 # empty executable.
fabfcf5e
KT
8587 if test x$gcc_no_link = xyes; then
8588 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8589fi
8590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
8591/* end confdefs.h. */
8592
8593int
8594main ()
8595{
8596
8597 ;
8598 return 0;
8599}
8600_ACEOF
8601if ac_fn_c_try_link "$LINENO"; then :
8602
8603lt_aix_libpath_sed='
8604 /Import File Strings/,/^$/ {
8605 /^0/ {
8606 s/^0 *\(.*\)$/\1/
8607 p
8608 }
8609 }'
8610aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8611# Check for a 64-bit object if we didn't find anything.
8612if test -z "$aix_libpath"; then
8613 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8614fi
8615fi
8616rm -f core conftest.err conftest.$ac_objext \
8617 conftest$ac_exeext conftest.$ac_ext
8618if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8619
8620 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8621 # Warning - without using the other run time loading flags,
8622 # -berok will link without error, but may produce a broken library.
8623 no_undefined_flag=' ${wl}-bernotok'
8624 allow_undefined_flag=' ${wl}-berok'
8625 if test "$with_gnu_ld" = yes; then
8626 # We only use this code for GNU lds that support --whole-archive.
8627 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8628 else
8629 # Exported symbols can be pulled into shared objects from archives
8630 whole_archive_flag_spec='$convenience'
8631 fi
8632 archive_cmds_need_lc=yes
8633 # This is similar to how AIX traditionally builds its shared libraries.
8634 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'
8635 fi
8636 fi
8637 ;;
8638
8639 amigaos*)
8640 case $host_cpu in
8641 powerpc)
8642 # see comment about AmigaOS4 .so support
8643 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8644 archive_expsym_cmds=''
8645 ;;
8646 m68k)
8647 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)'
8648 hardcode_libdir_flag_spec='-L$libdir'
8649 hardcode_minus_L=yes
8650 ;;
8651 esac
8652 ;;
8653
8654 bsdi[45]*)
8655 export_dynamic_flag_spec=-rdynamic
8656 ;;
8657
8658 cygwin* | mingw* | pw32* | cegcc*)
8659 # When not using gcc, we currently assume that we are using
8660 # Microsoft Visual C++.
8661 # hardcode_libdir_flag_spec is actually meaningless, as there is
8662 # no search path for DLLs.
8663 hardcode_libdir_flag_spec=' '
8664 allow_undefined_flag=unsupported
8665 # Tell ltmain to make .lib files, not .a files.
8666 libext=lib
8667 # Tell ltmain to make .dll files, not .so files.
8668 shrext_cmds=".dll"
8669 # FIXME: Setting linknames here is a bad hack.
8670 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8671 # The linker will automatically build a .lib file if we build a DLL.
8672 old_archive_from_new_cmds='true'
8673 # FIXME: Should let the user specify the lib program.
8674 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8675 fix_srcfile_path='`cygpath -w "$srcfile"`'
8676 enable_shared_with_static_runtimes=yes
8677 ;;
8678
8679 darwin* | rhapsody*)
8680
8681
8682 archive_cmds_need_lc=no
8683 hardcode_direct=no
8684 hardcode_automatic=yes
8685 hardcode_shlibpath_var=unsupported
8686 if test "$lt_cv_ld_force_load" = "yes"; then
8687 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
8688 else
8689 whole_archive_flag_spec=''
8690 fi
8691 link_all_deplibs=yes
8692 allow_undefined_flag="$_lt_dar_allow_undefined"
8693 case $cc_basename in
8694 ifort*) _lt_dar_can_shared=yes ;;
8695 *) _lt_dar_can_shared=$GCC ;;
8696 esac
8697 if test "$_lt_dar_can_shared" = "yes"; then
8698 output_verbose_link_cmd=func_echo_all
8699 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8700 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8701 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8702 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8703
8704 else
8705 ld_shlibs=no
8706 fi
8707
8708 ;;
8709
8710 dgux*)
8711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8712 hardcode_libdir_flag_spec='-L$libdir'
8713 hardcode_shlibpath_var=no
8714 ;;
8715
1ec601bf
FXC
8716 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8717 # support. Future versions do this automatically, but an explicit c++rt0.o
8718 # does not break anything, and helps significantly (at the cost of a little
8719 # extra space).
8720 freebsd2.2*)
8721 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8722 hardcode_libdir_flag_spec='-R$libdir'
8723 hardcode_direct=yes
8724 hardcode_shlibpath_var=no
8725 ;;
8726
8727 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8728 freebsd2*)
8729 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8730 hardcode_direct=yes
8731 hardcode_minus_L=yes
8732 hardcode_shlibpath_var=no
8733 ;;
8734
8735 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8736 freebsd* | dragonfly*)
8737 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8738 hardcode_libdir_flag_spec='-R$libdir'
8739 hardcode_direct=yes
8740 hardcode_shlibpath_var=no
8741 ;;
8742
8743 hpux9*)
8744 if test "$GCC" = yes; then
8745 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'
8746 else
8747 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'
8748 fi
8749 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8750 hardcode_libdir_separator=:
8751 hardcode_direct=yes
8752
8753 # hardcode_minus_L: Not really in the search PATH,
8754 # but as the default location of the library.
8755 hardcode_minus_L=yes
8756 export_dynamic_flag_spec='${wl}-E'
8757 ;;
8758
8759 hpux10*)
8760 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8761 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8762 else
8763 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8764 fi
8765 if test "$with_gnu_ld" = no; then
8766 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8767 hardcode_libdir_flag_spec_ld='+b $libdir'
8768 hardcode_libdir_separator=:
8769 hardcode_direct=yes
8770 hardcode_direct_absolute=yes
8771 export_dynamic_flag_spec='${wl}-E'
8772 # hardcode_minus_L: Not really in the search PATH,
8773 # but as the default location of the library.
8774 hardcode_minus_L=yes
8775 fi
8776 ;;
8777
8778 hpux11*)
8779 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8780 case $host_cpu in
8781 hppa*64*)
8782 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8783 ;;
8784 ia64*)
8785 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8786 ;;
8787 *)
8788 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8789 ;;
8790 esac
8791 else
8792 case $host_cpu in
8793 hppa*64*)
8794 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8795 ;;
8796 ia64*)
8797 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8798 ;;
8799 *)
8800
8801 # Older versions of the 11.00 compiler do not understand -b yet
8802 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8804$as_echo_n "checking if $CC understands -b... " >&6; }
8805if test "${lt_cv_prog_compiler__b+set}" = set; then :
8806 $as_echo_n "(cached) " >&6
8807else
8808 lt_cv_prog_compiler__b=no
8809 save_LDFLAGS="$LDFLAGS"
8810 LDFLAGS="$LDFLAGS -b"
8811 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8812 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8813 # The linker can only warn and ignore the option if not recognized
8814 # So say no if there are warnings
8815 if test -s conftest.err; then
8816 # Append any errors to the config.log.
8817 cat conftest.err 1>&5
8818 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8819 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8820 if diff conftest.exp conftest.er2 >/dev/null; then
8821 lt_cv_prog_compiler__b=yes
8822 fi
8823 else
8824 lt_cv_prog_compiler__b=yes
8825 fi
8826 fi
8827 $RM -r conftest*
8828 LDFLAGS="$save_LDFLAGS"
8829
8830fi
8831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8832$as_echo "$lt_cv_prog_compiler__b" >&6; }
8833
8834if test x"$lt_cv_prog_compiler__b" = xyes; then
8835 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8836else
8837 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8838fi
8839
8840 ;;
8841 esac
8842 fi
8843 if test "$with_gnu_ld" = no; then
8844 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8845 hardcode_libdir_separator=:
8846
8847 case $host_cpu in
8848 hppa*64*|ia64*)
8849 hardcode_direct=no
8850 hardcode_shlibpath_var=no
8851 ;;
8852 *)
8853 hardcode_direct=yes
8854 hardcode_direct_absolute=yes
8855 export_dynamic_flag_spec='${wl}-E'
8856
8857 # hardcode_minus_L: Not really in the search PATH,
8858 # but as the default location of the library.
8859 hardcode_minus_L=yes
8860 ;;
8861 esac
8862 fi
8863 ;;
8864
8865 irix5* | irix6* | nonstopux*)
8866 if test "$GCC" = yes; then
8867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8868 # Try to use the -exported_symbol ld option, if it does not
8869 # work, assume that -exports_file does not work either and
8870 # implicitly export all symbols.
8871 save_LDFLAGS="$LDFLAGS"
8872 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
fabfcf5e
KT
8873 if test x$gcc_no_link = xyes; then
8874 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8875fi
8876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
8877/* end confdefs.h. */
8878int foo(void) {}
8879_ACEOF
8880if ac_fn_c_try_link "$LINENO"; then :
8881 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8882
8883fi
8884rm -f core conftest.err conftest.$ac_objext \
8885 conftest$ac_exeext conftest.$ac_ext
8886 LDFLAGS="$save_LDFLAGS"
8887 else
8888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8889 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8890 fi
8891 archive_cmds_need_lc='no'
8892 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8893 hardcode_libdir_separator=:
8894 inherit_rpath=yes
8895 link_all_deplibs=yes
8896 ;;
8897
8898 netbsd*)
8899 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8901 else
8902 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8903 fi
8904 hardcode_libdir_flag_spec='-R$libdir'
8905 hardcode_direct=yes
8906 hardcode_shlibpath_var=no
8907 ;;
8908
8909 newsos6)
8910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8911 hardcode_direct=yes
8912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8913 hardcode_libdir_separator=:
8914 hardcode_shlibpath_var=no
8915 ;;
8916
8917 *nto* | *qnx*)
8918 ;;
8919
8920 openbsd*)
8921 if test -f /usr/libexec/ld.so; then
8922 hardcode_direct=yes
8923 hardcode_shlibpath_var=no
8924 hardcode_direct_absolute=yes
8925 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8926 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8927 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8928 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8929 export_dynamic_flag_spec='${wl}-E'
8930 else
8931 case $host_os in
8932 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8933 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8934 hardcode_libdir_flag_spec='-R$libdir'
8935 ;;
8936 *)
8937 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8938 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8939 ;;
8940 esac
8941 fi
8942 else
8943 ld_shlibs=no
8944 fi
8945 ;;
8946
8947 os2*)
8948 hardcode_libdir_flag_spec='-L$libdir'
8949 hardcode_minus_L=yes
8950 allow_undefined_flag=unsupported
8951 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'
8952 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8953 ;;
8954
8955 osf3*)
8956 if test "$GCC" = yes; then
8957 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8958 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8959 else
8960 allow_undefined_flag=' -expect_unresolved \*'
8961 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8962 fi
8963 archive_cmds_need_lc='no'
8964 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8965 hardcode_libdir_separator=:
8966 ;;
8967
8968 osf4* | osf5*) # as osf3* with the addition of -msym flag
8969 if test "$GCC" = yes; then
8970 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8971 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8973 else
8974 allow_undefined_flag=' -expect_unresolved \*'
8975 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8976 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~
8977 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8978
8979 # Both c and cxx compiler support -rpath directly
8980 hardcode_libdir_flag_spec='-rpath $libdir'
8981 fi
8982 archive_cmds_need_lc='no'
8983 hardcode_libdir_separator=:
8984 ;;
8985
8986 solaris*)
8987 no_undefined_flag=' -z defs'
8988 if test "$GCC" = yes; then
8989 wlarc='${wl}'
8990 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8991 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8992 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8993 else
8994 case `$CC -V 2>&1` in
8995 *"Compilers 5.0"*)
8996 wlarc=''
8997 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8998 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8999 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9000 ;;
9001 *)
9002 wlarc='${wl}'
9003 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9004 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9005 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9006 ;;
9007 esac
9008 fi
9009 hardcode_libdir_flag_spec='-R$libdir'
9010 hardcode_shlibpath_var=no
9011 case $host_os in
9012 solaris2.[0-5] | solaris2.[0-5].*) ;;
9013 *)
9014 # The compiler driver will combine and reorder linker options,
9015 # but understands `-z linker_flag'. GCC discards it without `$wl',
9016 # but is careful enough not to reorder.
9017 # Supported since Solaris 2.6 (maybe 2.5.1?)
9018 if test "$GCC" = yes; then
9019 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9020 else
9021 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9022 fi
9023 ;;
9024 esac
9025 link_all_deplibs=yes
9026 ;;
9027
9028 sunos4*)
9029 if test "x$host_vendor" = xsequent; then
9030 # Use $CC to link under sequent, because it throws in some extra .o
9031 # files that make .init and .fini sections work.
9032 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9033 else
9034 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9035 fi
9036 hardcode_libdir_flag_spec='-L$libdir'
9037 hardcode_direct=yes
9038 hardcode_minus_L=yes
9039 hardcode_shlibpath_var=no
9040 ;;
9041
9042 sysv4)
9043 case $host_vendor in
9044 sni)
9045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9046 hardcode_direct=yes # is this really true???
9047 ;;
9048 siemens)
9049 ## LD is ld it makes a PLAMLIB
9050 ## CC just makes a GrossModule.
9051 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9052 reload_cmds='$CC -r -o $output$reload_objs'
9053 hardcode_direct=no
9054 ;;
9055 motorola)
9056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9057 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9058 ;;
9059 esac
9060 runpath_var='LD_RUN_PATH'
9061 hardcode_shlibpath_var=no
9062 ;;
9063
9064 sysv4.3*)
9065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9066 hardcode_shlibpath_var=no
9067 export_dynamic_flag_spec='-Bexport'
9068 ;;
9069
9070 sysv4*MP*)
9071 if test -d /usr/nec; then
9072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9073 hardcode_shlibpath_var=no
9074 runpath_var=LD_RUN_PATH
9075 hardcode_runpath_var=yes
9076 ld_shlibs=yes
9077 fi
9078 ;;
9079
9080 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9081 no_undefined_flag='${wl}-z,text'
9082 archive_cmds_need_lc=no
9083 hardcode_shlibpath_var=no
9084 runpath_var='LD_RUN_PATH'
9085
9086 if test "$GCC" = yes; then
9087 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9088 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9089 else
9090 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9091 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9092 fi
9093 ;;
9094
9095 sysv5* | sco3.2v5* | sco5v6*)
9096 # Note: We can NOT use -z defs as we might desire, because we do not
9097 # link with -lc, and that would cause any symbols used from libc to
9098 # always be unresolved, which means just about no library would
9099 # ever link correctly. If we're not using GNU ld we use -z text
9100 # though, which does catch some bad symbols but isn't as heavy-handed
9101 # as -z defs.
9102 no_undefined_flag='${wl}-z,text'
9103 allow_undefined_flag='${wl}-z,nodefs'
9104 archive_cmds_need_lc=no
9105 hardcode_shlibpath_var=no
9106 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9107 hardcode_libdir_separator=':'
9108 link_all_deplibs=yes
9109 export_dynamic_flag_spec='${wl}-Bexport'
9110 runpath_var='LD_RUN_PATH'
9111
9112 if test "$GCC" = yes; then
9113 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9114 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9115 else
9116 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9117 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9118 fi
9119 ;;
9120
9121 uts4*)
9122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9123 hardcode_libdir_flag_spec='-L$libdir'
9124 hardcode_shlibpath_var=no
9125 ;;
9126
9127 *)
9128 ld_shlibs=no
9129 ;;
9130 esac
9131
9132 if test x$host_vendor = xsni; then
9133 case $host in
9134 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9135 export_dynamic_flag_spec='${wl}-Blargedynsym'
9136 ;;
9137 esac
9138 fi
9139 fi
9140
9141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9142$as_echo "$ld_shlibs" >&6; }
9143test "$ld_shlibs" = no && can_build_shared=no
9144
9145with_gnu_ld=$with_gnu_ld
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161#
9162# Do we need to explicitly link libc?
9163#
9164case "x$archive_cmds_need_lc" in
9165x|xyes)
9166 # Assume -lc should be added
9167 archive_cmds_need_lc=yes
9168
9169 if test "$enable_shared" = yes && test "$GCC" = yes; then
9170 case $archive_cmds in
9171 *'~'*)
9172 # FIXME: we may have to deal with multi-command sequences.
9173 ;;
9174 '$CC '*)
9175 # Test whether the compiler implicitly links with -lc since on some
9176 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9177 # to ld, don't add -lc before -lgcc.
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9179$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9180if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9181 $as_echo_n "(cached) " >&6
9182else
9183 $RM conftest*
9184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9185
9186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9187 (eval $ac_compile) 2>&5
9188 ac_status=$?
9189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9190 test $ac_status = 0; } 2>conftest.err; then
9191 soname=conftest
9192 lib=conftest
9193 libobjs=conftest.$ac_objext
9194 deplibs=
9195 wl=$lt_prog_compiler_wl
9196 pic_flag=$lt_prog_compiler_pic
9197 compiler_flags=-v
9198 linker_flags=-v
9199 verstring=
9200 output_objdir=.
9201 libname=conftest
9202 lt_save_allow_undefined_flag=$allow_undefined_flag
9203 allow_undefined_flag=
9204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9205 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9206 ac_status=$?
9207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9208 test $ac_status = 0; }
9209 then
9210 lt_cv_archive_cmds_need_lc=no
9211 else
9212 lt_cv_archive_cmds_need_lc=yes
9213 fi
9214 allow_undefined_flag=$lt_save_allow_undefined_flag
9215 else
9216 cat conftest.err 1>&5
9217 fi
9218 $RM conftest*
9219
9220fi
9221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9222$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9223 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9224 ;;
9225 esac
9226 fi
9227 ;;
9228esac
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9387$as_echo_n "checking dynamic linker characteristics... " >&6; }
9388
9389if test "$GCC" = yes; then
9390 case $host_os in
9391 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9392 *) lt_awk_arg="/^libraries:/" ;;
9393 esac
9394 case $host_os in
9395 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9396 *) lt_sed_strip_eq="s,=/,/,g" ;;
9397 esac
9398 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9399 case $lt_search_path_spec in
9400 *\;*)
9401 # if the path contains ";" then we assume it to be the separator
9402 # otherwise default to the standard path separator (i.e. ":") - it is
9403 # assumed that no part of a normal pathname contains ";" but that should
9404 # okay in the real world where ";" in dirpaths is itself problematic.
9405 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9406 ;;
9407 *)
9408 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9409 ;;
9410 esac
9411 # Ok, now we have the path, separated by spaces, we can step through it
9412 # and add multilib dir if necessary.
9413 lt_tmp_lt_search_path_spec=
9414 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9415 for lt_sys_path in $lt_search_path_spec; do
9416 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9417 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9418 else
9419 test -d "$lt_sys_path" && \
9420 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9421 fi
9422 done
9423 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9424BEGIN {RS=" "; FS="/|\n";} {
9425 lt_foo="";
9426 lt_count=0;
9427 for (lt_i = NF; lt_i > 0; lt_i--) {
9428 if ($lt_i != "" && $lt_i != ".") {
9429 if ($lt_i == "..") {
9430 lt_count++;
9431 } else {
9432 if (lt_count == 0) {
9433 lt_foo="/" $lt_i lt_foo;
9434 } else {
9435 lt_count--;
9436 }
9437 }
9438 }
9439 }
9440 if (lt_foo != "") { lt_freq[lt_foo]++; }
9441 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9442}'`
9443 # AWK program above erroneously prepends '/' to C:/dos/paths
9444 # for these hosts.
9445 case $host_os in
9446 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9447 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9448 esac
9449 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9450else
9451 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9452fi
9453library_names_spec=
9454libname_spec='lib$name'
9455soname_spec=
9456shrext_cmds=".so"
9457postinstall_cmds=
9458postuninstall_cmds=
9459finish_cmds=
9460finish_eval=
9461shlibpath_var=
9462shlibpath_overrides_runpath=unknown
9463version_type=none
9464dynamic_linker="$host_os ld.so"
9465sys_lib_dlsearch_path_spec="/lib /usr/lib"
9466need_lib_prefix=unknown
9467hardcode_into_libs=no
9468
9469# when you set need_version to no, make sure it does not cause -set_version
9470# flags to be left without arguments
9471need_version=unknown
9472
9473case $host_os in
9474aix3*)
9475 version_type=linux
9476 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9477 shlibpath_var=LIBPATH
9478
9479 # AIX 3 has no versioning support, so we append a major version to the name.
9480 soname_spec='${libname}${release}${shared_ext}$major'
9481 ;;
9482
9483aix[4-9]*)
9484 version_type=linux
9485 need_lib_prefix=no
9486 need_version=no
9487 hardcode_into_libs=yes
9488 if test "$host_cpu" = ia64; then
9489 # AIX 5 supports IA64
9490 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9491 shlibpath_var=LD_LIBRARY_PATH
9492 else
9493 # With GCC up to 2.95.x, collect2 would create an import file
9494 # for dependence libraries. The import file would start with
9495 # the line `#! .'. This would cause the generated library to
9496 # depend on `.', always an invalid library. This was fixed in
9497 # development snapshots of GCC prior to 3.0.
9498 case $host_os in
9499 aix4 | aix4.[01] | aix4.[01].*)
9500 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9501 echo ' yes '
9502 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9503 :
9504 else
9505 can_build_shared=no
9506 fi
9507 ;;
9508 esac
9509 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9510 # soname into executable. Probably we can add versioning support to
9511 # collect2, so additional links can be useful in future.
9512 if test "$aix_use_runtimelinking" = yes; then
9513 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9514 # instead of lib<name>.a to let people know that these are not
9515 # typical AIX shared libraries.
9516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9517 else
9518 # We preserve .a as extension for shared libraries through AIX4.2
9519 # and later when we are not doing run time linking.
9520 library_names_spec='${libname}${release}.a $libname.a'
9521 soname_spec='${libname}${release}${shared_ext}$major'
9522 fi
9523 shlibpath_var=LIBPATH
9524 fi
9525 ;;
9526
9527amigaos*)
9528 case $host_cpu in
9529 powerpc)
9530 # Since July 2007 AmigaOS4 officially supports .so libraries.
9531 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9533 ;;
9534 m68k)
9535 library_names_spec='$libname.ixlibrary $libname.a'
9536 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9537 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
9538 ;;
9539 esac
9540 ;;
9541
9542beos*)
9543 library_names_spec='${libname}${shared_ext}'
9544 dynamic_linker="$host_os ld.so"
9545 shlibpath_var=LIBRARY_PATH
9546 ;;
9547
9548bsdi[45]*)
9549 version_type=linux
9550 need_version=no
9551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552 soname_spec='${libname}${release}${shared_ext}$major'
9553 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9554 shlibpath_var=LD_LIBRARY_PATH
9555 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9556 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9557 # the default ld.so.conf also contains /usr/contrib/lib and
9558 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9559 # libtool to hard-code these into programs
9560 ;;
9561
9562cygwin* | mingw* | pw32* | cegcc*)
9563 version_type=windows
9564 shrext_cmds=".dll"
9565 need_version=no
9566 need_lib_prefix=no
9567
9568 case $GCC,$host_os in
9569 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9570 library_names_spec='$libname.dll.a'
9571 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9572 postinstall_cmds='base_file=`basename \${file}`~
9573 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9574 dldir=$destdir/`dirname \$dlpath`~
9575 test -d \$dldir || mkdir -p \$dldir~
9576 $install_prog $dir/$dlname \$dldir/$dlname~
9577 chmod a+x \$dldir/$dlname~
9578 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9579 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9580 fi'
9581 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9582 dlpath=$dir/\$dldll~
9583 $RM \$dlpath'
9584 shlibpath_overrides_runpath=yes
9585
9586 case $host_os in
9587 cygwin*)
9588 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9589 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9590
9591 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9592 ;;
9593 mingw* | cegcc*)
9594 # MinGW DLLs use traditional 'lib' prefix
9595 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9596 ;;
9597 pw32*)
9598 # pw32 DLLs use 'pw' prefix rather than 'lib'
9599 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9600 ;;
9601 esac
9602 ;;
9603
9604 *)
9605 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9606 ;;
9607 esac
9608 dynamic_linker='Win32 ld.exe'
9609 # FIXME: first we should search . and the directory the executable is in
9610 shlibpath_var=PATH
9611 ;;
9612
9613darwin* | rhapsody*)
9614 dynamic_linker="$host_os dyld"
9615 version_type=darwin
9616 need_lib_prefix=no
9617 need_version=no
9618 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9619 soname_spec='${libname}${release}${major}$shared_ext'
9620 shlibpath_overrides_runpath=yes
9621 shlibpath_var=DYLD_LIBRARY_PATH
9622 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9623
9624 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9625 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9626 ;;
9627
9628dgux*)
9629 version_type=linux
9630 need_lib_prefix=no
9631 need_version=no
9632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9633 soname_spec='${libname}${release}${shared_ext}$major'
9634 shlibpath_var=LD_LIBRARY_PATH
9635 ;;
9636
1ec601bf
FXC
9637freebsd* | dragonfly*)
9638 # DragonFly does not have aout. When/if they implement a new
9639 # versioning mechanism, adjust this.
9640 if test -x /usr/bin/objformat; then
9641 objformat=`/usr/bin/objformat`
9642 else
9643 case $host_os in
9644 freebsd[123]*) objformat=aout ;;
9645 *) objformat=elf ;;
9646 esac
9647 fi
9648 version_type=freebsd-$objformat
9649 case $version_type in
9650 freebsd-elf*)
9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9652 need_version=no
9653 need_lib_prefix=no
9654 ;;
9655 freebsd-*)
9656 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9657 need_version=yes
9658 ;;
9659 esac
9660 shlibpath_var=LD_LIBRARY_PATH
9661 case $host_os in
9662 freebsd2*)
9663 shlibpath_overrides_runpath=yes
9664 ;;
9665 freebsd3.[01]* | freebsdelf3.[01]*)
9666 shlibpath_overrides_runpath=yes
9667 hardcode_into_libs=yes
9668 ;;
9669 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9670 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9671 shlibpath_overrides_runpath=no
9672 hardcode_into_libs=yes
9673 ;;
9674 *) # from 4.6 on, and DragonFly
9675 shlibpath_overrides_runpath=yes
9676 hardcode_into_libs=yes
9677 ;;
9678 esac
9679 ;;
9680
9681gnu*)
9682 version_type=linux
9683 need_lib_prefix=no
9684 need_version=no
9685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9686 soname_spec='${libname}${release}${shared_ext}$major'
9687 shlibpath_var=LD_LIBRARY_PATH
9688 hardcode_into_libs=yes
9689 ;;
9690
9691haiku*)
9692 version_type=linux
9693 need_lib_prefix=no
9694 need_version=no
9695 dynamic_linker="$host_os runtime_loader"
9696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9697 soname_spec='${libname}${release}${shared_ext}$major'
9698 shlibpath_var=LIBRARY_PATH
9699 shlibpath_overrides_runpath=yes
9700 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9701 hardcode_into_libs=yes
9702 ;;
9703
9704hpux9* | hpux10* | hpux11*)
9705 # Give a soname corresponding to the major version so that dld.sl refuses to
9706 # link against other versions.
9707 version_type=sunos
9708 need_lib_prefix=no
9709 need_version=no
9710 case $host_cpu in
9711 ia64*)
9712 shrext_cmds='.so'
9713 hardcode_into_libs=yes
9714 dynamic_linker="$host_os dld.so"
9715 shlibpath_var=LD_LIBRARY_PATH
9716 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9718 soname_spec='${libname}${release}${shared_ext}$major'
9719 if test "X$HPUX_IA64_MODE" = X32; then
9720 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9721 else
9722 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9723 fi
9724 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9725 ;;
9726 hppa*64*)
9727 shrext_cmds='.sl'
9728 hardcode_into_libs=yes
9729 dynamic_linker="$host_os dld.sl"
9730 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9731 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9733 soname_spec='${libname}${release}${shared_ext}$major'
9734 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9735 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9736 ;;
9737 *)
9738 shrext_cmds='.sl'
9739 dynamic_linker="$host_os dld.sl"
9740 shlibpath_var=SHLIB_PATH
9741 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9743 soname_spec='${libname}${release}${shared_ext}$major'
9744 ;;
9745 esac
9746 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9747 postinstall_cmds='chmod 555 $lib'
9748 # or fails outright, so override atomically:
9749 install_override_mode=555
9750 ;;
9751
9752interix[3-9]*)
9753 version_type=linux
9754 need_lib_prefix=no
9755 need_version=no
9756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9757 soname_spec='${libname}${release}${shared_ext}$major'
9758 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9759 shlibpath_var=LD_LIBRARY_PATH
9760 shlibpath_overrides_runpath=no
9761 hardcode_into_libs=yes
9762 ;;
9763
9764irix5* | irix6* | nonstopux*)
9765 case $host_os in
9766 nonstopux*) version_type=nonstopux ;;
9767 *)
9768 if test "$lt_cv_prog_gnu_ld" = yes; then
9769 version_type=linux
9770 else
9771 version_type=irix
9772 fi ;;
9773 esac
9774 need_lib_prefix=no
9775 need_version=no
9776 soname_spec='${libname}${release}${shared_ext}$major'
9777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9778 case $host_os in
9779 irix5* | nonstopux*)
9780 libsuff= shlibsuff=
9781 ;;
9782 *)
9783 case $LD in # libtool.m4 will add one of these switches to LD
9784 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9785 libsuff= shlibsuff= libmagic=32-bit;;
9786 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9787 libsuff=32 shlibsuff=N32 libmagic=N32;;
9788 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9789 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9790 *) libsuff= shlibsuff= libmagic=never-match;;
9791 esac
9792 ;;
9793 esac
9794 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9795 shlibpath_overrides_runpath=no
9796 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9797 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9798 hardcode_into_libs=yes
9799 ;;
9800
9801# No shared lib support for Linux oldld, aout, or coff.
9802linux*oldld* | linux*aout* | linux*coff*)
9803 dynamic_linker=no
9804 ;;
9805
9806# This must be Linux ELF.
9807linux* | k*bsd*-gnu | kopensolaris*-gnu)
9808 version_type=linux
9809 need_lib_prefix=no
9810 need_version=no
9811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9812 soname_spec='${libname}${release}${shared_ext}$major'
9813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9814 shlibpath_var=LD_LIBRARY_PATH
9815 shlibpath_overrides_runpath=no
9816
9817 # Some binutils ld are patched to set DT_RUNPATH
9818 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9819 $as_echo_n "(cached) " >&6
9820else
9821 lt_cv_shlibpath_overrides_runpath=no
9822 save_LDFLAGS=$LDFLAGS
9823 save_libdir=$libdir
9824 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9825 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
fabfcf5e
KT
9826 if test x$gcc_no_link = xyes; then
9827 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9828fi
9829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
9830/* end confdefs.h. */
9831
9832int
9833main ()
9834{
9835
9836 ;
9837 return 0;
9838}
9839_ACEOF
9840if ac_fn_c_try_link "$LINENO"; then :
9841 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9842 lt_cv_shlibpath_overrides_runpath=yes
9843fi
9844fi
9845rm -f core conftest.err conftest.$ac_objext \
9846 conftest$ac_exeext conftest.$ac_ext
9847 LDFLAGS=$save_LDFLAGS
9848 libdir=$save_libdir
9849
9850fi
9851
9852 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9853
9854 # This implies no fast_install, which is unacceptable.
9855 # Some rework will be needed to allow for fast_install
9856 # before this can be enabled.
9857 hardcode_into_libs=yes
9858
9859 # Append ld.so.conf contents to the search path
9860 if test -f /etc/ld.so.conf; then
9861 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
9862 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9863 fi
9864
9865 # We used to test for /lib/ld.so.1 and disable shared libraries on
9866 # powerpc, because MkLinux only supported shared libraries with the
9867 # GNU dynamic linker. Since this was broken with cross compilers,
9868 # most powerpc-linux boxes support dynamic linking these days and
9869 # people can always --disable-shared, the test was removed, and we
9870 # assume the GNU/Linux dynamic linker is in use.
9871 dynamic_linker='GNU/Linux ld.so'
9872 ;;
9873
9874netbsd*)
9875 version_type=sunos
9876 need_lib_prefix=no
9877 need_version=no
9878 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9881 dynamic_linker='NetBSD (a.out) ld.so'
9882 else
9883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9884 soname_spec='${libname}${release}${shared_ext}$major'
9885 dynamic_linker='NetBSD ld.elf_so'
9886 fi
9887 shlibpath_var=LD_LIBRARY_PATH
9888 shlibpath_overrides_runpath=yes
9889 hardcode_into_libs=yes
9890 ;;
9891
9892newsos6)
9893 version_type=linux
9894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9895 shlibpath_var=LD_LIBRARY_PATH
9896 shlibpath_overrides_runpath=yes
9897 ;;
9898
9899*nto* | *qnx*)
9900 version_type=qnx
9901 need_lib_prefix=no
9902 need_version=no
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904 soname_spec='${libname}${release}${shared_ext}$major'
9905 shlibpath_var=LD_LIBRARY_PATH
9906 shlibpath_overrides_runpath=no
9907 hardcode_into_libs=yes
9908 dynamic_linker='ldqnx.so'
9909 ;;
9910
9911openbsd*)
9912 version_type=sunos
9913 sys_lib_dlsearch_path_spec="/usr/lib"
9914 need_lib_prefix=no
9915 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9916 case $host_os in
9917 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9918 *) need_version=no ;;
9919 esac
9920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9922 shlibpath_var=LD_LIBRARY_PATH
9923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9924 case $host_os in
9925 openbsd2.[89] | openbsd2.[89].*)
9926 shlibpath_overrides_runpath=no
9927 ;;
9928 *)
9929 shlibpath_overrides_runpath=yes
9930 ;;
9931 esac
9932 else
9933 shlibpath_overrides_runpath=yes
9934 fi
9935 ;;
9936
9937os2*)
9938 libname_spec='$name'
9939 shrext_cmds=".dll"
9940 need_lib_prefix=no
9941 library_names_spec='$libname${shared_ext} $libname.a'
9942 dynamic_linker='OS/2 ld.exe'
9943 shlibpath_var=LIBPATH
9944 ;;
9945
9946osf3* | osf4* | osf5*)
9947 version_type=osf
9948 need_lib_prefix=no
9949 need_version=no
9950 soname_spec='${libname}${release}${shared_ext}$major'
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952 shlibpath_var=LD_LIBRARY_PATH
9953 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9954 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9955 ;;
9956
9957rdos*)
9958 dynamic_linker=no
9959 ;;
9960
9961solaris*)
9962 version_type=linux
9963 need_lib_prefix=no
9964 need_version=no
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966 soname_spec='${libname}${release}${shared_ext}$major'
9967 shlibpath_var=LD_LIBRARY_PATH
9968 shlibpath_overrides_runpath=yes
9969 hardcode_into_libs=yes
9970 # ldd complains unless libraries are executable
9971 postinstall_cmds='chmod +x $lib'
9972 ;;
9973
9974sunos4*)
9975 version_type=sunos
9976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9977 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9978 shlibpath_var=LD_LIBRARY_PATH
9979 shlibpath_overrides_runpath=yes
9980 if test "$with_gnu_ld" = yes; then
9981 need_lib_prefix=no
9982 fi
9983 need_version=yes
9984 ;;
9985
9986sysv4 | sysv4.3*)
9987 version_type=linux
9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9989 soname_spec='${libname}${release}${shared_ext}$major'
9990 shlibpath_var=LD_LIBRARY_PATH
9991 case $host_vendor in
9992 sni)
9993 shlibpath_overrides_runpath=no
9994 need_lib_prefix=no
9995 runpath_var=LD_RUN_PATH
9996 ;;
9997 siemens)
9998 need_lib_prefix=no
9999 ;;
10000 motorola)
10001 need_lib_prefix=no
10002 need_version=no
10003 shlibpath_overrides_runpath=no
10004 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10005 ;;
10006 esac
10007 ;;
10008
10009sysv4*MP*)
10010 if test -d /usr/nec ;then
10011 version_type=linux
10012 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10013 soname_spec='$libname${shared_ext}.$major'
10014 shlibpath_var=LD_LIBRARY_PATH
10015 fi
10016 ;;
10017
10018sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10019 version_type=freebsd-elf
10020 need_lib_prefix=no
10021 need_version=no
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10023 soname_spec='${libname}${release}${shared_ext}$major'
10024 shlibpath_var=LD_LIBRARY_PATH
10025 shlibpath_overrides_runpath=yes
10026 hardcode_into_libs=yes
10027 if test "$with_gnu_ld" = yes; then
10028 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10029 else
10030 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10031 case $host_os in
10032 sco3.2v5*)
10033 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10034 ;;
10035 esac
10036 fi
10037 sys_lib_dlsearch_path_spec='/usr/lib'
10038 ;;
10039
10040tpf*)
10041 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10042 version_type=linux
10043 need_lib_prefix=no
10044 need_version=no
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046 shlibpath_var=LD_LIBRARY_PATH
10047 shlibpath_overrides_runpath=no
10048 hardcode_into_libs=yes
10049 ;;
10050
10051uts4*)
10052 version_type=linux
10053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10054 soname_spec='${libname}${release}${shared_ext}$major'
10055 shlibpath_var=LD_LIBRARY_PATH
10056 ;;
10057
10058*)
10059 dynamic_linker=no
10060 ;;
10061esac
10062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10063$as_echo "$dynamic_linker" >&6; }
10064test "$dynamic_linker" = no && can_build_shared=no
10065
10066variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10067if test "$GCC" = yes; then
10068 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10069fi
10070
10071if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10072 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10073fi
10074if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10075 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10076fi
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10170$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10171hardcode_action=
10172if test -n "$hardcode_libdir_flag_spec" ||
10173 test -n "$runpath_var" ||
10174 test "X$hardcode_automatic" = "Xyes" ; then
10175
10176 # We can hardcode non-existent directories.
10177 if test "$hardcode_direct" != no &&
10178 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10179 # have to relink, otherwise we might link with an installed library
10180 # when we should be linking with a yet-to-be-installed one
10181 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10182 test "$hardcode_minus_L" != no; then
10183 # Linking always hardcodes the temporary library directory.
10184 hardcode_action=relink
10185 else
10186 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10187 hardcode_action=immediate
10188 fi
10189else
10190 # We cannot hardcode anything, or else we can only hardcode existing
10191 # directories.
10192 hardcode_action=unsupported
10193fi
10194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10195$as_echo "$hardcode_action" >&6; }
10196
10197if test "$hardcode_action" = relink ||
10198 test "$inherit_rpath" = yes; then
10199 # Fast installation is not supported
10200 enable_fast_install=no
10201elif test "$shlibpath_overrides_runpath" = yes ||
10202 test "$enable_shared" = no; then
10203 # Fast installation is not necessary
10204 enable_fast_install=needless
10205fi
10206
10207
10208
10209
10210
10211
10212 if test "x$enable_dlopen" != xyes; then
10213 enable_dlopen=unknown
10214 enable_dlopen_self=unknown
10215 enable_dlopen_self_static=unknown
10216else
10217 lt_cv_dlopen=no
10218 lt_cv_dlopen_libs=
10219
10220 case $host_os in
10221 beos*)
10222 lt_cv_dlopen="load_add_on"
10223 lt_cv_dlopen_libs=
10224 lt_cv_dlopen_self=yes
10225 ;;
10226
10227 mingw* | pw32* | cegcc*)
10228 lt_cv_dlopen="LoadLibrary"
10229 lt_cv_dlopen_libs=
10230 ;;
10231
10232 cygwin*)
10233 lt_cv_dlopen="dlopen"
10234 lt_cv_dlopen_libs=
10235 ;;
10236
10237 darwin*)
10238 # if libdl is installed we need to link against it
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10240$as_echo_n "checking for dlopen in -ldl... " >&6; }
10241if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10242 $as_echo_n "(cached) " >&6
10243else
10244 ac_check_lib_save_LIBS=$LIBS
10245LIBS="-ldl $LIBS"
fabfcf5e
KT
10246if test x$gcc_no_link = xyes; then
10247 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10248fi
1ec601bf
FXC
10249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250/* end confdefs.h. */
10251
10252/* Override any GCC internal prototype to avoid an error.
10253 Use char because int might match the return type of a GCC
10254 builtin and then its argument prototype would still apply. */
10255#ifdef __cplusplus
10256extern "C"
10257#endif
10258char dlopen ();
10259int
10260main ()
10261{
10262return dlopen ();
10263 ;
10264 return 0;
10265}
10266_ACEOF
10267if ac_fn_c_try_link "$LINENO"; then :
10268 ac_cv_lib_dl_dlopen=yes
10269else
10270 ac_cv_lib_dl_dlopen=no
10271fi
10272rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10274LIBS=$ac_check_lib_save_LIBS
10275fi
10276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10277$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10278if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10279 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10280else
10281
10282 lt_cv_dlopen="dyld"
10283 lt_cv_dlopen_libs=
10284 lt_cv_dlopen_self=yes
10285
10286fi
10287
10288 ;;
10289
10290 *)
10291 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10292if test "x$ac_cv_func_shl_load" = x""yes; then :
10293 lt_cv_dlopen="shl_load"
10294else
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10296$as_echo_n "checking for shl_load in -ldld... " >&6; }
10297if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10298 $as_echo_n "(cached) " >&6
10299else
10300 ac_check_lib_save_LIBS=$LIBS
10301LIBS="-ldld $LIBS"
fabfcf5e
KT
10302if test x$gcc_no_link = xyes; then
10303 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10304fi
1ec601bf
FXC
10305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10306/* end confdefs.h. */
10307
10308/* Override any GCC internal prototype to avoid an error.
10309 Use char because int might match the return type of a GCC
10310 builtin and then its argument prototype would still apply. */
10311#ifdef __cplusplus
10312extern "C"
10313#endif
10314char shl_load ();
10315int
10316main ()
10317{
10318return shl_load ();
10319 ;
10320 return 0;
10321}
10322_ACEOF
10323if ac_fn_c_try_link "$LINENO"; then :
10324 ac_cv_lib_dld_shl_load=yes
10325else
10326 ac_cv_lib_dld_shl_load=no
10327fi
10328rm -f core conftest.err conftest.$ac_objext \
10329 conftest$ac_exeext conftest.$ac_ext
10330LIBS=$ac_check_lib_save_LIBS
10331fi
10332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10333$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10334if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10335 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10336else
10337 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10338if test "x$ac_cv_func_dlopen" = x""yes; then :
10339 lt_cv_dlopen="dlopen"
10340else
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10342$as_echo_n "checking for dlopen in -ldl... " >&6; }
10343if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10344 $as_echo_n "(cached) " >&6
10345else
10346 ac_check_lib_save_LIBS=$LIBS
10347LIBS="-ldl $LIBS"
fabfcf5e
KT
10348if test x$gcc_no_link = xyes; then
10349 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10350fi
1ec601bf
FXC
10351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10352/* end confdefs.h. */
10353
10354/* Override any GCC internal prototype to avoid an error.
10355 Use char because int might match the return type of a GCC
10356 builtin and then its argument prototype would still apply. */
10357#ifdef __cplusplus
10358extern "C"
10359#endif
10360char dlopen ();
10361int
10362main ()
10363{
10364return dlopen ();
10365 ;
10366 return 0;
10367}
10368_ACEOF
10369if ac_fn_c_try_link "$LINENO"; then :
10370 ac_cv_lib_dl_dlopen=yes
10371else
10372 ac_cv_lib_dl_dlopen=no
10373fi
10374rm -f core conftest.err conftest.$ac_objext \
10375 conftest$ac_exeext conftest.$ac_ext
10376LIBS=$ac_check_lib_save_LIBS
10377fi
10378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10379$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10380if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10381 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10382else
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10384$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10385if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10386 $as_echo_n "(cached) " >&6
10387else
10388 ac_check_lib_save_LIBS=$LIBS
10389LIBS="-lsvld $LIBS"
fabfcf5e
KT
10390if test x$gcc_no_link = xyes; then
10391 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10392fi
1ec601bf
FXC
10393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394/* end confdefs.h. */
10395
10396/* Override any GCC internal prototype to avoid an error.
10397 Use char because int might match the return type of a GCC
10398 builtin and then its argument prototype would still apply. */
10399#ifdef __cplusplus
10400extern "C"
10401#endif
10402char dlopen ();
10403int
10404main ()
10405{
10406return dlopen ();
10407 ;
10408 return 0;
10409}
10410_ACEOF
10411if ac_fn_c_try_link "$LINENO"; then :
10412 ac_cv_lib_svld_dlopen=yes
10413else
10414 ac_cv_lib_svld_dlopen=no
10415fi
10416rm -f core conftest.err conftest.$ac_objext \
10417 conftest$ac_exeext conftest.$ac_ext
10418LIBS=$ac_check_lib_save_LIBS
10419fi
10420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10421$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10422if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10423 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10424else
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10426$as_echo_n "checking for dld_link in -ldld... " >&6; }
10427if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10428 $as_echo_n "(cached) " >&6
10429else
10430 ac_check_lib_save_LIBS=$LIBS
10431LIBS="-ldld $LIBS"
fabfcf5e
KT
10432if test x$gcc_no_link = xyes; then
10433 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10434fi
1ec601bf
FXC
10435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436/* end confdefs.h. */
10437
10438/* Override any GCC internal prototype to avoid an error.
10439 Use char because int might match the return type of a GCC
10440 builtin and then its argument prototype would still apply. */
10441#ifdef __cplusplus
10442extern "C"
10443#endif
10444char dld_link ();
10445int
10446main ()
10447{
10448return dld_link ();
10449 ;
10450 return 0;
10451}
10452_ACEOF
10453if ac_fn_c_try_link "$LINENO"; then :
10454 ac_cv_lib_dld_dld_link=yes
10455else
10456 ac_cv_lib_dld_dld_link=no
10457fi
10458rm -f core conftest.err conftest.$ac_objext \
10459 conftest$ac_exeext conftest.$ac_ext
10460LIBS=$ac_check_lib_save_LIBS
10461fi
10462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10463$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10464if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10465 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10466fi
10467
10468
10469fi
10470
10471
10472fi
10473
10474
10475fi
10476
10477
10478fi
10479
10480
10481fi
10482
10483 ;;
10484 esac
10485
10486 if test "x$lt_cv_dlopen" != xno; then
10487 enable_dlopen=yes
10488 else
10489 enable_dlopen=no
10490 fi
10491
10492 case $lt_cv_dlopen in
10493 dlopen)
10494 save_CPPFLAGS="$CPPFLAGS"
10495 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10496
10497 save_LDFLAGS="$LDFLAGS"
10498 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10499
10500 save_LIBS="$LIBS"
10501 LIBS="$lt_cv_dlopen_libs $LIBS"
10502
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10504$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10505if test "${lt_cv_dlopen_self+set}" = set; then :
10506 $as_echo_n "(cached) " >&6
10507else
10508 if test "$cross_compiling" = yes; then :
10509 lt_cv_dlopen_self=cross
10510else
10511 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10512 lt_status=$lt_dlunknown
10513 cat > conftest.$ac_ext <<_LT_EOF
1d92226b 10514#line 10514 "configure"
1ec601bf
FXC
10515#include "confdefs.h"
10516
10517#if HAVE_DLFCN_H
10518#include <dlfcn.h>
10519#endif
10520
10521#include <stdio.h>
10522
10523#ifdef RTLD_GLOBAL
10524# define LT_DLGLOBAL RTLD_GLOBAL
10525#else
10526# ifdef DL_GLOBAL
10527# define LT_DLGLOBAL DL_GLOBAL
10528# else
10529# define LT_DLGLOBAL 0
10530# endif
10531#endif
10532
10533/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10534 find out it does not work in some platform. */
10535#ifndef LT_DLLAZY_OR_NOW
10536# ifdef RTLD_LAZY
10537# define LT_DLLAZY_OR_NOW RTLD_LAZY
10538# else
10539# ifdef DL_LAZY
10540# define LT_DLLAZY_OR_NOW DL_LAZY
10541# else
10542# ifdef RTLD_NOW
10543# define LT_DLLAZY_OR_NOW RTLD_NOW
10544# else
10545# ifdef DL_NOW
10546# define LT_DLLAZY_OR_NOW DL_NOW
10547# else
10548# define LT_DLLAZY_OR_NOW 0
10549# endif
10550# endif
10551# endif
10552# endif
10553#endif
10554
10555/* When -fvisbility=hidden is used, assume the code has been annotated
10556 correspondingly for the symbols needed. */
10557#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10558void fnord () __attribute__((visibility("default")));
10559#endif
10560
10561void fnord () { int i=42; }
10562int main ()
10563{
10564 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10565 int status = $lt_dlunknown;
10566
10567 if (self)
10568 {
10569 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10570 else
10571 {
10572 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10573 else puts (dlerror ());
10574 }
10575 /* dlclose (self); */
10576 }
10577 else
10578 puts (dlerror ());
10579
10580 return status;
10581}
10582_LT_EOF
10583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10584 (eval $ac_link) 2>&5
10585 ac_status=$?
10586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10587 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10588 (./conftest; exit; ) >&5 2>/dev/null
10589 lt_status=$?
10590 case x$lt_status in
10591 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10592 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10593 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10594 esac
10595 else :
10596 # compilation failed
10597 lt_cv_dlopen_self=no
10598 fi
10599fi
10600rm -fr conftest*
10601
10602
10603fi
10604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10605$as_echo "$lt_cv_dlopen_self" >&6; }
10606
10607 if test "x$lt_cv_dlopen_self" = xyes; then
10608 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10610$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10611if test "${lt_cv_dlopen_self_static+set}" = set; then :
10612 $as_echo_n "(cached) " >&6
10613else
10614 if test "$cross_compiling" = yes; then :
10615 lt_cv_dlopen_self_static=cross
10616else
10617 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10618 lt_status=$lt_dlunknown
10619 cat > conftest.$ac_ext <<_LT_EOF
1d92226b 10620#line 10620 "configure"
1ec601bf
FXC
10621#include "confdefs.h"
10622
10623#if HAVE_DLFCN_H
10624#include <dlfcn.h>
10625#endif
10626
10627#include <stdio.h>
10628
10629#ifdef RTLD_GLOBAL
10630# define LT_DLGLOBAL RTLD_GLOBAL
10631#else
10632# ifdef DL_GLOBAL
10633# define LT_DLGLOBAL DL_GLOBAL
10634# else
10635# define LT_DLGLOBAL 0
10636# endif
10637#endif
10638
10639/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10640 find out it does not work in some platform. */
10641#ifndef LT_DLLAZY_OR_NOW
10642# ifdef RTLD_LAZY
10643# define LT_DLLAZY_OR_NOW RTLD_LAZY
10644# else
10645# ifdef DL_LAZY
10646# define LT_DLLAZY_OR_NOW DL_LAZY
10647# else
10648# ifdef RTLD_NOW
10649# define LT_DLLAZY_OR_NOW RTLD_NOW
10650# else
10651# ifdef DL_NOW
10652# define LT_DLLAZY_OR_NOW DL_NOW
10653# else
10654# define LT_DLLAZY_OR_NOW 0
10655# endif
10656# endif
10657# endif
10658# endif
10659#endif
10660
10661/* When -fvisbility=hidden is used, assume the code has been annotated
10662 correspondingly for the symbols needed. */
10663#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10664void fnord () __attribute__((visibility("default")));
10665#endif
10666
10667void fnord () { int i=42; }
10668int main ()
10669{
10670 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10671 int status = $lt_dlunknown;
10672
10673 if (self)
10674 {
10675 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10676 else
10677 {
10678 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10679 else puts (dlerror ());
10680 }
10681 /* dlclose (self); */
10682 }
10683 else
10684 puts (dlerror ());
10685
10686 return status;
10687}
10688_LT_EOF
10689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10690 (eval $ac_link) 2>&5
10691 ac_status=$?
10692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10693 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10694 (./conftest; exit; ) >&5 2>/dev/null
10695 lt_status=$?
10696 case x$lt_status in
10697 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10698 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10699 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10700 esac
10701 else :
10702 # compilation failed
10703 lt_cv_dlopen_self_static=no
10704 fi
10705fi
10706rm -fr conftest*
10707
10708
10709fi
10710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10711$as_echo "$lt_cv_dlopen_self_static" >&6; }
10712 fi
10713
10714 CPPFLAGS="$save_CPPFLAGS"
10715 LDFLAGS="$save_LDFLAGS"
10716 LIBS="$save_LIBS"
10717 ;;
10718 esac
10719
10720 case $lt_cv_dlopen_self in
10721 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10722 *) enable_dlopen_self=unknown ;;
10723 esac
10724
10725 case $lt_cv_dlopen_self_static in
10726 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10727 *) enable_dlopen_self_static=unknown ;;
10728 esac
10729fi
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747striplib=
10748old_striplib=
10749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10750$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10751if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10752 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10753 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10755$as_echo "yes" >&6; }
10756else
10757# FIXME - insert some real tests, host_os isn't really good enough
10758 case $host_os in
10759 darwin*)
10760 if test -n "$STRIP" ; then
10761 striplib="$STRIP -x"
10762 old_striplib="$STRIP -S"
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10764$as_echo "yes" >&6; }
10765 else
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10767$as_echo "no" >&6; }
10768 fi
10769 ;;
10770 *)
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10772$as_echo "no" >&6; }
10773 ;;
10774 esac
10775fi
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788 # Report which library types will actually be built
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10790$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10792$as_echo "$can_build_shared" >&6; }
10793
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10795$as_echo_n "checking whether to build shared libraries... " >&6; }
10796 test "$can_build_shared" = "no" && enable_shared=no
10797
10798 # On AIX, shared libraries and static libraries use the same namespace, and
10799 # are all built from PIC.
10800 case $host_os in
10801 aix3*)
10802 test "$enable_shared" = yes && enable_static=no
10803 if test -n "$RANLIB"; then
10804 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10805 postinstall_cmds='$RANLIB $lib'
10806 fi
fabfcf5e
KT
10807 ;;
10808
10809 aix[4-9]*)
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
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10816$as_echo "$enable_shared" >&6; }
10817
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10819$as_echo_n "checking whether to build static libraries... " >&6; }
10820 # Make sure either enable_shared or enable_static is yes.
10821 test "$enable_shared" = yes || enable_static=yes
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10823$as_echo "$enable_static" >&6; }
10824
10825
10826
10827
10828fi
10829ac_ext=c
10830ac_cpp='$CPP $CPPFLAGS'
10831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10833ac_compiler_gnu=$ac_cv_c_compiler_gnu
10834
10835CC="$lt_save_CC"
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849 ac_config_commands="$ac_config_commands libtool"
10850
10851
10852
10853
10854# Only expand once:
10855
10856
10857
10858
10859
7de6ba7a
DK
10860case $host in
10861 *-cygwin* | *-mingw*)
10862 # 'host' will be top-level target in the case of a target lib,
10863 # we must compare to with_cross_host to decide if this is a native
10864 # or cross-compiler and select where to install dlls appropriately.
10865 if test -n "$with_cross_host" &&
10866 test x"$with_cross_host" != x"no"; then
10867 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
10868 else
10869 lt_host_flags='-no-undefined -bindir "$(bindir)"';
10870 fi
10871 ;;
10872 *)
10873 lt_host_flags=
10874 ;;
10875esac
10876
10877
10878
10879
10880
10881
fabfcf5e
KT
10882
10883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10884$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10885 # Check whether --enable-maintainer-mode was given.
10886if test "${enable_maintainer_mode+set}" = set; then :
10887 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10888else
10889 USE_MAINTAINER_MODE=no
10890fi
10891
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10893$as_echo "$USE_MAINTAINER_MODE" >&6; }
10894 if test $USE_MAINTAINER_MODE = yes; then
10895 MAINTAINER_MODE_TRUE=
10896 MAINTAINER_MODE_FALSE='#'
10897else
10898 MAINTAINER_MODE_TRUE='#'
10899 MAINTAINER_MODE_FALSE=
10900fi
10901
10902 MAINT=$MAINTAINER_MODE_TRUE
10903
10904
10905# Default to --enable-multilib
10906# Check whether --enable-multilib was given.
10907if test "${enable_multilib+set}" = set; then :
10908 enableval=$enable_multilib; case "$enableval" in
10909 yes) multilib=yes ;;
10910 no) multilib=no ;;
10911 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
10912 esac
10913else
10914 multilib=yes
10915fi
10916
10917
10918# We may get other options which we leave undocumented:
10919# --with-target-subdir, --with-multisrctop, --with-multisubdir
10920# See config-ml.in if you want the gory details.
10921
10922if test "$srcdir" = "."; then
10923 if test "$with_target_subdir" != "."; then
10924 multi_basedir="$srcdir/$with_multisrctop../.."
10925 else
10926 multi_basedir="$srcdir/$with_multisrctop.."
10927 fi
10928else
10929 multi_basedir="$srcdir/.."
10930fi
10931
10932
10933# Even if the default multilib is not a cross compilation,
10934# it may be that some of the other multilibs are.
10935if test $cross_compiling = no && test $multilib = yes \
10936 && test "x${with_multisubdir}" != x ; then
10937 cross_compiling=maybe
10938fi
10939
10940ac_config_commands="$ac_config_commands default-1"
10941
10942
10943ac_ext=c
10944ac_cpp='$CPP $CPPFLAGS'
10945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10947ac_compiler_gnu=$ac_cv_c_compiler_gnu
10948
10949# The same as in boehm-gc and libstdc++. Have to borrow it from there.
10950# We must force CC to /not/ be precious variables; otherwise
10951# the wrong, non-multilib-adjusted value will be used in multilibs.
10952# As a side effect, we have to subst CFLAGS ourselves.
10953
10954
10955
10956ac_ext=c
10957ac_cpp='$CPP $CPPFLAGS'
10958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10960ac_compiler_gnu=$ac_cv_c_compiler_gnu
10961if test -n "$ac_tool_prefix"; then
10962 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10963set dummy ${ac_tool_prefix}gcc; ac_word=$2
10964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10965$as_echo_n "checking for $ac_word... " >&6; }
10966if test "${ac_cv_prog_CC+set}" = set; then :
10967 $as_echo_n "(cached) " >&6
10968else
10969 if test -n "$CC"; then
10970 ac_cv_prog_CC="$CC" # Let the user override the test.
10971else
10972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973for as_dir in $PATH
10974do
10975 IFS=$as_save_IFS
10976 test -z "$as_dir" && as_dir=.
10977 for ac_exec_ext in '' $ac_executable_extensions; do
10978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10979 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10981 break 2
10982 fi
10983done
10984 done
10985IFS=$as_save_IFS
10986
10987fi
10988fi
10989CC=$ac_cv_prog_CC
10990if test -n "$CC"; then
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10992$as_echo "$CC" >&6; }
10993else
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995$as_echo "no" >&6; }
10996fi
10997
10998
10999fi
11000if test -z "$ac_cv_prog_CC"; then
11001 ac_ct_CC=$CC
11002 # Extract the first word of "gcc", so it can be a program name with args.
11003set dummy gcc; ac_word=$2
11004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11005$as_echo_n "checking for $ac_word... " >&6; }
11006if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11007 $as_echo_n "(cached) " >&6
11008else
11009 if test -n "$ac_ct_CC"; then
11010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11011else
11012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11013for as_dir in $PATH
11014do
11015 IFS=$as_save_IFS
11016 test -z "$as_dir" && as_dir=.
11017 for ac_exec_ext in '' $ac_executable_extensions; do
11018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11019 ac_cv_prog_ac_ct_CC="gcc"
11020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11021 break 2
11022 fi
11023done
11024 done
11025IFS=$as_save_IFS
11026
11027fi
11028fi
11029ac_ct_CC=$ac_cv_prog_ac_ct_CC
11030if test -n "$ac_ct_CC"; then
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11032$as_echo "$ac_ct_CC" >&6; }
11033else
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11035$as_echo "no" >&6; }
11036fi
11037
11038 if test "x$ac_ct_CC" = x; then
11039 CC=""
11040 else
11041 case $cross_compiling:$ac_tool_warned in
11042yes:)
11043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11045ac_tool_warned=yes ;;
11046esac
11047 CC=$ac_ct_CC
11048 fi
11049else
11050 CC="$ac_cv_prog_CC"
11051fi
11052
11053if test -z "$CC"; then
11054 if test -n "$ac_tool_prefix"; then
11055 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11056set dummy ${ac_tool_prefix}cc; ac_word=$2
11057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11058$as_echo_n "checking for $ac_word... " >&6; }
11059if test "${ac_cv_prog_CC+set}" = set; then :
11060 $as_echo_n "(cached) " >&6
11061else
11062 if test -n "$CC"; then
11063 ac_cv_prog_CC="$CC" # Let the user override the test.
11064else
11065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11066for as_dir in $PATH
11067do
11068 IFS=$as_save_IFS
11069 test -z "$as_dir" && as_dir=.
11070 for ac_exec_ext in '' $ac_executable_extensions; do
11071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11072 ac_cv_prog_CC="${ac_tool_prefix}cc"
11073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11074 break 2
11075 fi
11076done
11077 done
11078IFS=$as_save_IFS
11079
11080fi
11081fi
11082CC=$ac_cv_prog_CC
11083if test -n "$CC"; then
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11085$as_echo "$CC" >&6; }
11086else
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11088$as_echo "no" >&6; }
11089fi
11090
11091
11092 fi
11093fi
11094if test -z "$CC"; then
11095 # Extract the first word of "cc", so it can be a program name with args.
11096set dummy cc; ac_word=$2
11097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11098$as_echo_n "checking for $ac_word... " >&6; }
11099if test "${ac_cv_prog_CC+set}" = set; then :
11100 $as_echo_n "(cached) " >&6
11101else
11102 if test -n "$CC"; then
11103 ac_cv_prog_CC="$CC" # Let the user override the test.
11104else
11105 ac_prog_rejected=no
11106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107for as_dir in $PATH
11108do
11109 IFS=$as_save_IFS
11110 test -z "$as_dir" && as_dir=.
11111 for ac_exec_ext in '' $ac_executable_extensions; do
11112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11113 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11114 ac_prog_rejected=yes
11115 continue
11116 fi
11117 ac_cv_prog_CC="cc"
11118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11119 break 2
11120 fi
11121done
11122 done
11123IFS=$as_save_IFS
11124
11125if test $ac_prog_rejected = yes; then
11126 # We found a bogon in the path, so make sure we never use it.
11127 set dummy $ac_cv_prog_CC
11128 shift
11129 if test $# != 0; then
11130 # We chose a different compiler from the bogus one.
11131 # However, it has the same basename, so the bogon will be chosen
11132 # first if we set CC to just the basename; use the full file name.
11133 shift
11134 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11135 fi
11136fi
11137fi
11138fi
11139CC=$ac_cv_prog_CC
11140if test -n "$CC"; then
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11142$as_echo "$CC" >&6; }
11143else
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11145$as_echo "no" >&6; }
11146fi
11147
11148
11149fi
11150if test -z "$CC"; then
11151 if test -n "$ac_tool_prefix"; then
11152 for ac_prog in cl.exe
11153 do
11154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11155set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11157$as_echo_n "checking for $ac_word... " >&6; }
11158if test "${ac_cv_prog_CC+set}" = set; then :
11159 $as_echo_n "(cached) " >&6
11160else
11161 if test -n "$CC"; then
11162 ac_cv_prog_CC="$CC" # Let the user override the test.
11163else
11164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11165for as_dir in $PATH
11166do
11167 IFS=$as_save_IFS
11168 test -z "$as_dir" && as_dir=.
11169 for ac_exec_ext in '' $ac_executable_extensions; do
11170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11171 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11173 break 2
11174 fi
11175done
11176 done
11177IFS=$as_save_IFS
11178
11179fi
11180fi
11181CC=$ac_cv_prog_CC
11182if test -n "$CC"; then
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11184$as_echo "$CC" >&6; }
11185else
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187$as_echo "no" >&6; }
11188fi
11189
11190
11191 test -n "$CC" && break
11192 done
11193fi
11194if test -z "$CC"; then
11195 ac_ct_CC=$CC
11196 for ac_prog in cl.exe
11197do
11198 # Extract the first word of "$ac_prog", so it can be a program name with args.
11199set dummy $ac_prog; ac_word=$2
11200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11201$as_echo_n "checking for $ac_word... " >&6; }
11202if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11203 $as_echo_n "(cached) " >&6
11204else
11205 if test -n "$ac_ct_CC"; then
11206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11207else
11208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11209for as_dir in $PATH
11210do
11211 IFS=$as_save_IFS
11212 test -z "$as_dir" && as_dir=.
11213 for ac_exec_ext in '' $ac_executable_extensions; do
11214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11215 ac_cv_prog_ac_ct_CC="$ac_prog"
11216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11217 break 2
11218 fi
11219done
11220 done
11221IFS=$as_save_IFS
11222
11223fi
11224fi
11225ac_ct_CC=$ac_cv_prog_ac_ct_CC
11226if test -n "$ac_ct_CC"; then
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11228$as_echo "$ac_ct_CC" >&6; }
11229else
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231$as_echo "no" >&6; }
11232fi
11233
11234
11235 test -n "$ac_ct_CC" && break
11236done
11237
11238 if test "x$ac_ct_CC" = x; then
11239 CC=""
11240 else
11241 case $cross_compiling:$ac_tool_warned in
11242yes:)
11243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11245ac_tool_warned=yes ;;
11246esac
11247 CC=$ac_ct_CC
11248 fi
11249fi
11250
11251fi
11252
11253
11254test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11256as_fn_error "no acceptable C compiler found in \$PATH
11257See \`config.log' for more details." "$LINENO" 5; }
11258
11259# Provide some information about the compiler.
11260$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11261set X $ac_compile
11262ac_compiler=$2
11263for ac_option in --version -v -V -qversion; do
11264 { { ac_try="$ac_compiler $ac_option >&5"
11265case "(($ac_try" in
11266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267 *) ac_try_echo=$ac_try;;
11268esac
11269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11270$as_echo "$ac_try_echo"; } >&5
11271 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11272 ac_status=$?
11273 if test -s conftest.err; then
11274 sed '10a\
11275... rest of stderr output deleted ...
11276 10q' conftest.err >conftest.er1
11277 cat conftest.er1 >&5
11278 rm -f conftest.er1 conftest.err
11279 fi
11280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11281 test $ac_status = 0; }
11282done
11283
11284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11285$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11286if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11287 $as_echo_n "(cached) " >&6
11288else
11289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11290/* end confdefs.h. */
11291
11292int
11293main ()
11294{
11295#ifndef __GNUC__
11296 choke me
11297#endif
11298
11299 ;
11300 return 0;
11301}
11302_ACEOF
11303if ac_fn_c_try_compile "$LINENO"; then :
11304 ac_compiler_gnu=yes
11305else
11306 ac_compiler_gnu=no
11307fi
11308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11309ac_cv_c_compiler_gnu=$ac_compiler_gnu
11310
11311fi
11312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11313$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11314if test $ac_compiler_gnu = yes; then
11315 GCC=yes
11316else
11317 GCC=
11318fi
11319ac_test_CFLAGS=${CFLAGS+set}
11320ac_save_CFLAGS=$CFLAGS
11321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11322$as_echo_n "checking whether $CC accepts -g... " >&6; }
11323if test "${ac_cv_prog_cc_g+set}" = set; then :
11324 $as_echo_n "(cached) " >&6
11325else
11326 ac_save_c_werror_flag=$ac_c_werror_flag
11327 ac_c_werror_flag=yes
11328 ac_cv_prog_cc_g=no
11329 CFLAGS="-g"
11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331/* end confdefs.h. */
11332
11333int
11334main ()
11335{
11336
11337 ;
11338 return 0;
11339}
11340_ACEOF
11341if ac_fn_c_try_compile "$LINENO"; then :
11342 ac_cv_prog_cc_g=yes
11343else
11344 CFLAGS=""
11345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11346/* end confdefs.h. */
11347
11348int
11349main ()
11350{
11351
11352 ;
11353 return 0;
11354}
11355_ACEOF
11356if ac_fn_c_try_compile "$LINENO"; then :
11357
11358else
11359 ac_c_werror_flag=$ac_save_c_werror_flag
11360 CFLAGS="-g"
11361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362/* end confdefs.h. */
11363
11364int
11365main ()
11366{
11367
11368 ;
11369 return 0;
11370}
11371_ACEOF
11372if ac_fn_c_try_compile "$LINENO"; then :
11373 ac_cv_prog_cc_g=yes
11374fi
11375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11376fi
11377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378fi
11379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11380 ac_c_werror_flag=$ac_save_c_werror_flag
11381fi
11382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11383$as_echo "$ac_cv_prog_cc_g" >&6; }
11384if test "$ac_test_CFLAGS" = set; then
11385 CFLAGS=$ac_save_CFLAGS
11386elif test $ac_cv_prog_cc_g = yes; then
11387 if test "$GCC" = yes; then
11388 CFLAGS="-g -O2"
11389 else
11390 CFLAGS="-g"
11391 fi
11392else
11393 if test "$GCC" = yes; then
11394 CFLAGS="-O2"
11395 else
11396 CFLAGS=
11397 fi
11398fi
11399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11400$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11401if test "${ac_cv_prog_cc_c89+set}" = set; then :
11402 $as_echo_n "(cached) " >&6
11403else
11404 ac_cv_prog_cc_c89=no
11405ac_save_CC=$CC
11406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407/* end confdefs.h. */
11408#include <stdarg.h>
11409#include <stdio.h>
11410#include <sys/types.h>
11411#include <sys/stat.h>
11412/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11413struct buf { int x; };
11414FILE * (*rcsopen) (struct buf *, struct stat *, int);
11415static char *e (p, i)
11416 char **p;
11417 int i;
11418{
11419 return p[i];
11420}
11421static char *f (char * (*g) (char **, int), char **p, ...)
11422{
11423 char *s;
11424 va_list v;
11425 va_start (v,p);
11426 s = g (p, va_arg (v,int));
11427 va_end (v);
11428 return s;
11429}
11430
11431/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11432 function prototypes and stuff, but not '\xHH' hex character constants.
11433 These don't provoke an error unfortunately, instead are silently treated
11434 as 'x'. The following induces an error, until -std is added to get
11435 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11436 array size at least. It's necessary to write '\x00'==0 to get something
11437 that's true only with -std. */
11438int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11439
11440/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11441 inside strings and character constants. */
11442#define FOO(x) 'x'
11443int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11444
11445int test (int i, double x);
11446struct s1 {int (*f) (int a);};
11447struct s2 {int (*f) (double a);};
11448int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11449int argc;
11450char **argv;
11451int
11452main ()
11453{
11454return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11455 ;
11456 return 0;
11457}
11458_ACEOF
11459for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11460 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11461do
11462 CC="$ac_save_CC $ac_arg"
11463 if ac_fn_c_try_compile "$LINENO"; then :
11464 ac_cv_prog_cc_c89=$ac_arg
11465fi
11466rm -f core conftest.err conftest.$ac_objext
11467 test "x$ac_cv_prog_cc_c89" != "xno" && break
11468done
11469rm -f conftest.$ac_ext
11470CC=$ac_save_CC
11471
11472fi
11473# AC_CACHE_VAL
11474case "x$ac_cv_prog_cc_c89" in
11475 x)
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11477$as_echo "none needed" >&6; } ;;
11478 xno)
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11480$as_echo "unsupported" >&6; } ;;
11481 *)
11482 CC="$CC $ac_cv_prog_cc_c89"
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11484$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11485esac
11486if test "x$ac_cv_prog_cc_c89" != xno; then :
11487
11488fi
11489
11490ac_ext=c
11491ac_cpp='$CPP $CPPFLAGS'
11492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11494ac_compiler_gnu=$ac_cv_c_compiler_gnu
11495
11496depcc="$CC" am_compiler_list=
11497
11498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11499$as_echo_n "checking dependency style of $depcc... " >&6; }
11500if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11501 $as_echo_n "(cached) " >&6
11502else
11503 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11504 # We make a subdir and do the tests there. Otherwise we can end up
11505 # making bogus files that we don't know about and never remove. For
11506 # instance it was reported that on HP-UX the gcc test will end up
11507 # making a dummy file named `D' -- because `-MD' means `put the output
11508 # in D'.
11509 mkdir conftest.dir
11510 # Copy depcomp to subdir because otherwise we won't find it if we're
11511 # using a relative directory.
11512 cp "$am_depcomp" conftest.dir
11513 cd conftest.dir
11514 # We will build objects and dependencies in a subdirectory because
11515 # it helps to detect inapplicable dependency modes. For instance
11516 # both Tru64's cc and ICC support -MD to output dependencies as a
11517 # side effect of compilation, but ICC will put the dependencies in
11518 # the current directory while Tru64 will put them in the object
11519 # directory.
11520 mkdir sub
11521
11522 am_cv_CC_dependencies_compiler_type=none
11523 if test "$am_compiler_list" = ""; then
11524 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11525 fi
11526 am__universal=false
11527 case " $depcc " in #(
11528 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11529 esac
11530
11531 for depmode in $am_compiler_list; do
11532 # Setup a source with many dependencies, because some compilers
11533 # like to wrap large dependency lists on column 80 (with \), and
11534 # we should not choose a depcomp mode which is confused by this.
11535 #
11536 # We need to recreate these files for each test, as the compiler may
11537 # overwrite some of them when testing with obscure command lines.
11538 # This happens at least with the AIX C compiler.
11539 : > sub/conftest.c
11540 for i in 1 2 3 4 5 6; do
11541 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11542 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11543 # Solaris 8's {/usr,}/bin/sh.
11544 touch sub/conftst$i.h
11545 done
11546 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11547
11548 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11549 # mode. It turns out that the SunPro C++ compiler does not properly
11550 # handle `-M -o', and we need to detect this. Also, some Intel
11551 # versions had trouble with output in subdirs
11552 am__obj=sub/conftest.${OBJEXT-o}
11553 am__minus_obj="-o $am__obj"
11554 case $depmode in
11555 gcc)
11556 # This depmode causes a compiler race in universal mode.
11557 test "$am__universal" = false || continue
11558 ;;
11559 nosideeffect)
11560 # after this tag, mechanisms are not by side-effect, so they'll
11561 # only be used when explicitly requested
11562 if test "x$enable_dependency_tracking" = xyes; then
11563 continue
11564 else
11565 break
11566 fi
11567 ;;
11568 msvisualcpp | msvcmsys)
11569 # This compiler won't grok `-c -o', but also, the minuso test has
11570 # not run yet. These depmodes are late enough in the game, and
11571 # so weak that their functioning should not be impacted.
11572 am__obj=conftest.${OBJEXT-o}
11573 am__minus_obj=
11574 ;;
11575 none) break ;;
11576 esac
11577 if depmode=$depmode \
11578 source=sub/conftest.c object=$am__obj \
11579 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11580 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11581 >/dev/null 2>conftest.err &&
11582 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11583 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11584 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11585 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11586 # icc doesn't choke on unknown options, it will just issue warnings
11587 # or remarks (even with -Werror). So we grep stderr for any message
11588 # that says an option was ignored or not supported.
11589 # When given -MP, icc 7.0 and 7.1 complain thusly:
11590 # icc: Command line warning: ignoring option '-M'; no argument required
11591 # The diagnosis changed in icc 8.0:
11592 # icc: Command line remark: option '-MP' not supported
11593 if (grep 'ignoring option' conftest.err ||
11594 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11595 am_cv_CC_dependencies_compiler_type=$depmode
11596 break
11597 fi
11598 fi
11599 done
11600
11601 cd ..
11602 rm -rf conftest.dir
11603else
11604 am_cv_CC_dependencies_compiler_type=none
11605fi
11606
11607fi
11608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11609$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11610CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11611
11612 if
11613 test "x$enable_dependency_tracking" != xno \
11614 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11615 am__fastdepCC_TRUE=
11616 am__fastdepCC_FALSE='#'
11617else
11618 am__fastdepCC_TRUE='#'
11619 am__fastdepCC_FALSE=
11620fi
11621
11622
11623
11624
11625
11626
11627if test "x$CC" != xcc; then
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11629$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11630else
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11632$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11633fi
11634set dummy $CC; ac_cc=`$as_echo "$2" |
11635 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11636if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11637 $as_echo_n "(cached) " >&6
11638else
11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640/* end confdefs.h. */
11641
11642int
11643main ()
11644{
11645
11646 ;
11647 return 0;
11648}
11649_ACEOF
11650# Make sure it works both with $CC and with simple cc.
11651# We do the test twice because some compilers refuse to overwrite an
11652# existing .o file with -o, though they will create one.
11653ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11654rm -f conftest2.*
11655if { { case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11658esac
11659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11660$as_echo "$ac_try_echo"; } >&5
11661 (eval "$ac_try") 2>&5
11662 ac_status=$?
11663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11664 test $ac_status = 0; } &&
11665 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11668esac
11669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11670$as_echo "$ac_try_echo"; } >&5
11671 (eval "$ac_try") 2>&5
11672 ac_status=$?
11673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11674 test $ac_status = 0; };
11675then
11676 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11677 if test "x$CC" != xcc; then
11678 # Test first that cc exists at all.
11679 if { ac_try='cc -c conftest.$ac_ext >&5'
11680 { { case "(($ac_try" in
11681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11682 *) ac_try_echo=$ac_try;;
11683esac
11684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11685$as_echo "$ac_try_echo"; } >&5
11686 (eval "$ac_try") 2>&5
11687 ac_status=$?
11688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11689 test $ac_status = 0; }; }; then
11690 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11691 rm -f conftest2.*
11692 if { { case "(($ac_try" in
11693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694 *) ac_try_echo=$ac_try;;
11695esac
11696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11697$as_echo "$ac_try_echo"; } >&5
11698 (eval "$ac_try") 2>&5
11699 ac_status=$?
11700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11701 test $ac_status = 0; } &&
11702 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704 *) ac_try_echo=$ac_try;;
11705esac
11706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11707$as_echo "$ac_try_echo"; } >&5
11708 (eval "$ac_try") 2>&5
11709 ac_status=$?
11710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11711 test $ac_status = 0; };
11712 then
11713 # cc works too.
11714 :
11715 else
11716 # cc exists but doesn't like -o.
11717 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11718 fi
11719 fi
11720 fi
11721else
11722 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11723fi
11724rm -f core conftest*
1ec601bf 11725
fabfcf5e
KT
11726fi
11727if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11729$as_echo "yes" >&6; }
11730else
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732$as_echo "no" >&6; }
1ec601bf 11733
fabfcf5e
KT
11734$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11735
11736fi
1ec601bf 11737
fabfcf5e
KT
11738# FIXME: we rely on the cache variable name because
11739# there is no other way.
11740set dummy $CC
11741am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11742eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11743if test "$am_t" != yes; then
11744 # Losing compiler, so override with the script.
11745 # FIXME: It is wrong to rewrite CC.
11746 # But if we don't then we get into trouble of one sort or another.
11747 # A longer-term fix would be to have automake use am__CC in this case,
11748 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11749 CC="$am_aux_dir/compile $CC"
11750fi
1ec601bf
FXC
11751
11752
11753
fabfcf5e
KT
11754if test "x$GCC" != "xyes"; then
11755 as_fn_error "libquadmath must be built with GCC" "$LINENO" 5
1ec601bf
FXC
11756fi
11757ac_ext=c
11758ac_cpp='$CPP $CPPFLAGS'
11759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11761ac_compiler_gnu=$ac_cv_c_compiler_gnu
fabfcf5e
KT
11762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11763$as_echo_n "checking how to run the C preprocessor... " >&6; }
11764# On Suns, sometimes $CPP names a directory.
11765if test -n "$CPP" && test -d "$CPP"; then
11766 CPP=
11767fi
11768if test -z "$CPP"; then
11769 if test "${ac_cv_prog_CPP+set}" = set; then :
11770 $as_echo_n "(cached) " >&6
11771else
11772 # Double quotes because CPP needs to be expanded
11773 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11774 do
11775 ac_preproc_ok=false
11776for ac_c_preproc_warn_flag in '' yes
11777do
11778 # Use a header file that comes with gcc, so configuring glibc
11779 # with a fresh cross-compiler works.
11780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11781 # <limits.h> exists even on freestanding compilers.
11782 # On the NeXT, cc -E runs the code through the compiler's parser,
11783 # not just through cpp. "Syntax error" is here to catch this case.
11784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11785/* end confdefs.h. */
11786#ifdef __STDC__
11787# include <limits.h>
11788#else
11789# include <assert.h>
11790#endif
11791 Syntax error
11792_ACEOF
11793if ac_fn_c_try_cpp "$LINENO"; then :
1ec601bf 11794
1ec601bf 11795else
fabfcf5e
KT
11796 # Broken: fails on valid input.
11797continue
1ec601bf 11798fi
fabfcf5e 11799rm -f conftest.err conftest.$ac_ext
1ec601bf 11800
fabfcf5e
KT
11801 # OK, works on sane cases. Now check whether nonexistent headers
11802 # can be detected and how.
11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804/* end confdefs.h. */
11805#include <ac_nonexistent.h>
11806_ACEOF
11807if ac_fn_c_try_cpp "$LINENO"; then :
11808 # Broken: success on invalid input.
11809continue
1ec601bf 11810else
fabfcf5e
KT
11811 # Passes both tests.
11812ac_preproc_ok=:
11813break
1ec601bf 11814fi
fabfcf5e 11815rm -f conftest.err conftest.$ac_ext
1ec601bf 11816
fabfcf5e
KT
11817done
11818# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11819rm -f conftest.err conftest.$ac_ext
11820if $ac_preproc_ok; then :
11821 break
11822fi
1ec601bf 11823
fabfcf5e
KT
11824 done
11825 ac_cv_prog_CPP=$CPP
1ec601bf 11826
fabfcf5e
KT
11827fi
11828 CPP=$ac_cv_prog_CPP
1ec601bf 11829else
fabfcf5e 11830 ac_cv_prog_CPP=$CPP
1ec601bf 11831fi
fabfcf5e
KT
11832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11833$as_echo "$CPP" >&6; }
11834ac_preproc_ok=false
11835for ac_c_preproc_warn_flag in '' yes
11836do
11837 # Use a header file that comes with gcc, so configuring glibc
11838 # with a fresh cross-compiler works.
11839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11840 # <limits.h> exists even on freestanding compilers.
11841 # On the NeXT, cc -E runs the code through the compiler's parser,
11842 # not just through cpp. "Syntax error" is here to catch this case.
11843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11844/* end confdefs.h. */
11845#ifdef __STDC__
11846# include <limits.h>
11847#else
11848# include <assert.h>
11849#endif
11850 Syntax error
11851_ACEOF
11852if ac_fn_c_try_cpp "$LINENO"; then :
1ec601bf 11853
fabfcf5e
KT
11854else
11855 # Broken: fails on valid input.
11856continue
11857fi
11858rm -f conftest.err conftest.$ac_ext
1ec601bf 11859
fabfcf5e
KT
11860 # OK, works on sane cases. Now check whether nonexistent headers
11861 # can be detected and how.
11862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11863/* end confdefs.h. */
11864#include <ac_nonexistent.h>
11865_ACEOF
11866if ac_fn_c_try_cpp "$LINENO"; then :
11867 # Broken: success on invalid input.
11868continue
1ec601bf 11869else
fabfcf5e
KT
11870 # Passes both tests.
11871ac_preproc_ok=:
11872break
1ec601bf 11873fi
fabfcf5e 11874rm -f conftest.err conftest.$ac_ext
1ec601bf 11875
fabfcf5e
KT
11876done
11877# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11878rm -f conftest.err conftest.$ac_ext
11879if $ac_preproc_ok; then :
1ec601bf 11880
fabfcf5e
KT
11881else
11882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11884as_fn_error "C preprocessor \"$CPP\" fails sanity check
11885See \`config.log' for more details." "$LINENO" 5; }
1ec601bf
FXC
11886fi
11887
fabfcf5e
KT
11888ac_ext=c
11889ac_cpp='$CPP $CPPFLAGS'
11890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11892ac_compiler_gnu=$ac_cv_c_compiler_gnu
1ec601bf
FXC
11893
11894
11895# Calculate toolexeclibdir
11896# Also toolexecdir, though it's only used in toolexeclibdir
11897case ${version_specific_libs} in
11898 yes)
11899 # Need the gcc compiler version to know where to install libraries
11900 # and header files if --enable-version-specific-runtime-libs option
11901 # is selected.
11902 toolexecdir='$(libdir)/gcc/$(target_alias)'
11903 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11904 ;;
11905 no)
11906 if test -n "$with_cross_host" &&
11907 test x"$with_cross_host" != x"no"; then
11908 # Install a library built with a cross compiler in tooldir, not libdir.
11909 toolexecdir='$(exec_prefix)/$(target_alias)'
11910 toolexeclibdir='$(toolexecdir)/lib'
11911 else
11912 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11913 toolexeclibdir='$(libdir)'
11914 fi
11915 multi_os_directory=`$CC -print-multi-os-directory`
11916 case $multi_os_directory in
11917 .) ;; # Avoid trailing /.
11918 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11919 esac
11920 ;;
11921esac
11922
11923
11924
1d92226b 11925for ac_header in fenv.h langinfo.h wchar.h wctype.h limits.h ctype.h printf.h errno.h
e8d42d28 11926do :
1d92226b
JJ
11927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11928ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11929eval as_val=\$$as_ac_Header
11930 if test "x$as_val" = x""yes; then :
e8d42d28 11931 cat >>confdefs.h <<_ACEOF
1d92226b 11932#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
e8d42d28
JJ
11933_ACEOF
11934
11935fi
11936
11937done
11938
11939
6f468984
TB
11940# If available, sqrtl and cbrtl speed up the calculation -
11941# but they are not required
11942if test x$gcc_no_link != xyes; then
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
1ec601bf
FXC
11944$as_echo_n "checking for sqrtl in -lm... " >&6; }
11945if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
11946 $as_echo_n "(cached) " >&6
11947else
11948 ac_check_lib_save_LIBS=$LIBS
11949LIBS="-lm $LIBS"
fabfcf5e
KT
11950if test x$gcc_no_link = xyes; then
11951 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11952fi
1ec601bf
FXC
11953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954/* end confdefs.h. */
11955
11956/* Override any GCC internal prototype to avoid an error.
11957 Use char because int might match the return type of a GCC
11958 builtin and then its argument prototype would still apply. */
11959#ifdef __cplusplus
11960extern "C"
11961#endif
11962char sqrtl ();
11963int
11964main ()
11965{
11966return sqrtl ();
11967 ;
11968 return 0;
11969}
11970_ACEOF
11971if ac_fn_c_try_link "$LINENO"; then :
11972 ac_cv_lib_m_sqrtl=yes
11973else
11974 ac_cv_lib_m_sqrtl=no
11975fi
11976rm -f core conftest.err conftest.$ac_objext \
11977 conftest$ac_exeext conftest.$ac_ext
11978LIBS=$ac_check_lib_save_LIBS
11979fi
11980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
11981$as_echo "$ac_cv_lib_m_sqrtl" >&6; }
11982if test "x$ac_cv_lib_m_sqrtl" = x""yes; then :
11983
11984$as_echo "#define HAVE_SQRTL 1" >>confdefs.h
11985
11986fi
11987
6f468984 11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
1ec601bf
FXC
11989$as_echo_n "checking for cbrtl in -lm... " >&6; }
11990if test "${ac_cv_lib_m_cbrtl+set}" = set; then :
11991 $as_echo_n "(cached) " >&6
11992else
11993 ac_check_lib_save_LIBS=$LIBS
11994LIBS="-lm $LIBS"
fabfcf5e
KT
11995if test x$gcc_no_link = xyes; then
11996 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11997fi
1ec601bf
FXC
11998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11999/* end confdefs.h. */
12000
12001/* Override any GCC internal prototype to avoid an error.
12002 Use char because int might match the return type of a GCC
12003 builtin and then its argument prototype would still apply. */
12004#ifdef __cplusplus
12005extern "C"
12006#endif
12007char cbrtl ();
12008int
12009main ()
12010{
12011return cbrtl ();
12012 ;
12013 return 0;
12014}
12015_ACEOF
12016if ac_fn_c_try_link "$LINENO"; then :
12017 ac_cv_lib_m_cbrtl=yes
12018else
12019 ac_cv_lib_m_cbrtl=no
12020fi
12021rm -f core conftest.err conftest.$ac_objext \
12022 conftest$ac_exeext conftest.$ac_ext
12023LIBS=$ac_check_lib_save_LIBS
12024fi
12025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
12026$as_echo "$ac_cv_lib_m_cbrtl" >&6; }
12027if test "x$ac_cv_lib_m_cbrtl" = x""yes; then :
12028
12029$as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12030
e8d42d28
JJ
12031fi
12032
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feholdexcept in -lm" >&5
12034$as_echo_n "checking for feholdexcept in -lm... " >&6; }
12035if test "${ac_cv_lib_m_feholdexcept+set}" = set; then :
12036 $as_echo_n "(cached) " >&6
12037else
12038 ac_check_lib_save_LIBS=$LIBS
12039LIBS="-lm $LIBS"
12040if test x$gcc_no_link = xyes; then
12041 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12042fi
12043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12044/* end confdefs.h. */
12045
12046/* Override any GCC internal prototype to avoid an error.
12047 Use char because int might match the return type of a GCC
12048 builtin and then its argument prototype would still apply. */
12049#ifdef __cplusplus
12050extern "C"
12051#endif
12052char feholdexcept ();
12053int
12054main ()
12055{
12056return feholdexcept ();
12057 ;
12058 return 0;
12059}
12060_ACEOF
12061if ac_fn_c_try_link "$LINENO"; then :
12062 ac_cv_lib_m_feholdexcept=yes
12063else
12064 ac_cv_lib_m_feholdexcept=no
12065fi
12066rm -f core conftest.err conftest.$ac_objext \
12067 conftest$ac_exeext conftest.$ac_ext
12068LIBS=$ac_check_lib_save_LIBS
12069fi
12070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feholdexcept" >&5
12071$as_echo "$ac_cv_lib_m_feholdexcept" >&6; }
12072if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then :
12073
12074$as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12075
12076fi
12077
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround in -lm" >&5
12079$as_echo_n "checking for fesetround in -lm... " >&6; }
12080if test "${ac_cv_lib_m_fesetround+set}" = set; then :
12081 $as_echo_n "(cached) " >&6
12082else
12083 ac_check_lib_save_LIBS=$LIBS
12084LIBS="-lm $LIBS"
12085if test x$gcc_no_link = xyes; then
12086 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12087fi
12088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089/* end confdefs.h. */
12090
12091/* Override any GCC internal prototype to avoid an error.
12092 Use char because int might match the return type of a GCC
12093 builtin and then its argument prototype would still apply. */
12094#ifdef __cplusplus
12095extern "C"
12096#endif
12097char fesetround ();
12098int
12099main ()
12100{
12101return fesetround ();
12102 ;
12103 return 0;
12104}
12105_ACEOF
12106if ac_fn_c_try_link "$LINENO"; then :
12107 ac_cv_lib_m_fesetround=yes
12108else
12109 ac_cv_lib_m_fesetround=no
12110fi
12111rm -f core conftest.err conftest.$ac_objext \
12112 conftest$ac_exeext conftest.$ac_ext
12113LIBS=$ac_check_lib_save_LIBS
12114fi
12115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetround" >&5
12116$as_echo "$ac_cv_lib_m_fesetround" >&6; }
12117if test "x$ac_cv_lib_m_fesetround" = x""yes; then :
12118
12119$as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12120
12121fi
12122
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feupdateenv in -lm" >&5
12124$as_echo_n "checking for feupdateenv in -lm... " >&6; }
12125if test "${ac_cv_lib_m_feupdateenv+set}" = set; then :
12126 $as_echo_n "(cached) " >&6
12127else
12128 ac_check_lib_save_LIBS=$LIBS
12129LIBS="-lm $LIBS"
12130if test x$gcc_no_link = xyes; then
12131 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12132fi
12133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134/* end confdefs.h. */
12135
12136/* Override any GCC internal prototype to avoid an error.
12137 Use char because int might match the return type of a GCC
12138 builtin and then its argument prototype would still apply. */
12139#ifdef __cplusplus
12140extern "C"
12141#endif
12142char feupdateenv ();
12143int
12144main ()
12145{
12146return feupdateenv ();
12147 ;
12148 return 0;
12149}
12150_ACEOF
12151if ac_fn_c_try_link "$LINENO"; then :
12152 ac_cv_lib_m_feupdateenv=yes
12153else
12154 ac_cv_lib_m_feupdateenv=no
12155fi
12156rm -f core conftest.err conftest.$ac_objext \
12157 conftest$ac_exeext conftest.$ac_ext
12158LIBS=$ac_check_lib_save_LIBS
12159fi
12160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feupdateenv" >&5
12161$as_echo "$ac_cv_lib_m_feupdateenv" >&6; }
12162if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then :
12163
12164$as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12165
12166fi
12167
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetenv in -lm" >&5
12169$as_echo_n "checking for fesetenv in -lm... " >&6; }
12170if test "${ac_cv_lib_m_fesetenv+set}" = set; then :
12171 $as_echo_n "(cached) " >&6
12172else
12173 ac_check_lib_save_LIBS=$LIBS
12174LIBS="-lm $LIBS"
12175if test x$gcc_no_link = xyes; then
12176 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12177fi
12178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12179/* end confdefs.h. */
12180
12181/* Override any GCC internal prototype to avoid an error.
12182 Use char because int might match the return type of a GCC
12183 builtin and then its argument prototype would still apply. */
12184#ifdef __cplusplus
12185extern "C"
12186#endif
12187char fesetenv ();
12188int
12189main ()
12190{
12191return fesetenv ();
12192 ;
12193 return 0;
12194}
12195_ACEOF
12196if ac_fn_c_try_link "$LINENO"; then :
12197 ac_cv_lib_m_fesetenv=yes
12198else
12199 ac_cv_lib_m_fesetenv=no
12200fi
12201rm -f core conftest.err conftest.$ac_objext \
12202 conftest$ac_exeext conftest.$ac_ext
12203LIBS=$ac_check_lib_save_LIBS
12204fi
12205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetenv" >&5
12206$as_echo "$ac_cv_lib_m_fesetenv" >&6; }
12207if test "x$ac_cv_lib_m_fesetenv" = x""yes; then :
12208
12209$as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12210
12211fi
12212
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fetestexcept in -lm" >&5
12214$as_echo_n "checking for fetestexcept in -lm... " >&6; }
12215if test "${ac_cv_lib_m_fetestexcept+set}" = set; then :
12216 $as_echo_n "(cached) " >&6
12217else
12218 ac_check_lib_save_LIBS=$LIBS
12219LIBS="-lm $LIBS"
12220if test x$gcc_no_link = xyes; then
12221 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12222fi
12223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224/* end confdefs.h. */
12225
12226/* Override any GCC internal prototype to avoid an error.
12227 Use char because int might match the return type of a GCC
12228 builtin and then its argument prototype would still apply. */
12229#ifdef __cplusplus
12230extern "C"
12231#endif
12232char fetestexcept ();
12233int
12234main ()
12235{
12236return fetestexcept ();
12237 ;
12238 return 0;
12239}
12240_ACEOF
12241if ac_fn_c_try_link "$LINENO"; then :
12242 ac_cv_lib_m_fetestexcept=yes
12243else
12244 ac_cv_lib_m_fetestexcept=no
12245fi
12246rm -f core conftest.err conftest.$ac_objext \
12247 conftest$ac_exeext conftest.$ac_ext
12248LIBS=$ac_check_lib_save_LIBS
12249fi
12250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fetestexcept" >&5
12251$as_echo "$ac_cv_lib_m_fetestexcept" >&6; }
12252if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then :
12253
12254$as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12255
1ec601bf
FXC
12256fi
12257
6f468984
TB
12258else
12259 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then
12260
12261$as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12262
12263 fi
12264 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then
12265
12266$as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12267
e8d42d28
JJ
12268 fi
12269 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then
12270
12271$as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12272
12273 fi
12274 if test "x$ac_cv_lib_m_fesetround" = x""yes; then
12275
12276$as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12277
12278 fi
12279 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then
12280
12281$as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12282
12283 fi
12284 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then
12285
12286$as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12287
12288 fi
12289 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then
12290
12291$as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12292
6f468984
TB
12293 fi
12294fi
1ec601bf 12295
1d92226b 12296# Check for hidden visibility (copied from libssp).
49f0e1ba
JJ
12297saved_CFLAGS="$CFLAGS"
12298CFLAGS="$CFLAGS -Werror"
1d92226b
JJ
12299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
12300$as_echo_n "checking whether hidden visibility is supported... " >&6; }
12301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302/* end confdefs.h. */
12303
12304void __attribute__((visibility ("hidden"))) bar (void) {}
12305int
12306main ()
12307{
12308
12309 ;
12310 return 0;
12311}
12312_ACEOF
12313if ac_fn_c_try_compile "$LINENO"; then :
12314 quadmath_hidden=yes
12315else
12316 quadmath_hidden=no
12317fi
12318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_hidden" >&5
12320$as_echo "$quadmath_hidden" >&6; }
12321if test x$quadmath_hidden = xyes; then
12322
12323$as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
12324
12325fi
49f0e1ba 12326CFLAGS="$saved_CFLAGS"
1d92226b 12327
1ec601bf
FXC
12328# Check for symbol versioning (copied from libssp).
12329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
12330$as_echo_n "checking whether symbol versioning is supported... " >&6; }
fabfcf5e
KT
12331if test x$gcc_no_link = xyes; then
12332 # If we cannot link, we cannot build shared libraries, so do not use
12333 # symbol versioning.
12334 quadmath_use_symver=no
12335else
12336 save_LDFLAGS="$LDFLAGS"
12337 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
12338 cat > conftest.map <<EOF
1ec601bf
FXC
12339FOO_1.0 {
12340 global: *foo*; bar; local: *;
12341};
12342EOF
fabfcf5e
KT
12343 if test x$gcc_no_link = xyes; then
12344 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12345fi
1ec601bf
FXC
12346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12347/* end confdefs.h. */
12348int foo;
12349int
12350main ()
12351{
12352
12353 ;
12354 return 0;
12355}
12356_ACEOF
12357if ac_fn_c_try_link "$LINENO"; then :
12358 quadmath_use_symver=gnu
12359else
12360 quadmath_use_symver=no
12361fi
12362rm -f core conftest.err conftest.$ac_objext \
12363 conftest$ac_exeext conftest.$ac_ext
fabfcf5e
KT
12364 if test x$quadmath_use_symver = xno; then
12365 case "$target_os" in
12366 solaris2*)
12367 LDFLAGS="$save_LDFLAGS"
12368 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
12369 # Sun ld cannot handle wildcards and treats all entries as undefined.
12370 cat > conftest.map <<EOF
1ec601bf
FXC
12371FOO_1.0 {
12372 global: foo; local: *;
12373};
12374EOF
fabfcf5e
KT
12375 if test x$gcc_no_link = xyes; then
12376 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12377fi
12378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
12379/* end confdefs.h. */
12380int foo;
12381int
12382main ()
12383{
12384
12385 ;
12386 return 0;
12387}
12388_ACEOF
12389if ac_fn_c_try_link "$LINENO"; then :
12390 quadmath_use_symver=sun
12391else
12392 quadmath_use_symver=no
12393fi
12394rm -f core conftest.err conftest.$ac_objext \
12395 conftest$ac_exeext conftest.$ac_ext
fabfcf5e
KT
12396 ;;
12397 esac
12398 fi
12399 LDFLAGS="$save_LDFLAGS"
1ec601bf 12400fi
1ec601bf
FXC
12401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
12402$as_echo "$quadmath_use_symver" >&6; }
12403 if test "x$quadmath_use_symver" != xno; then
12404 LIBQUAD_USE_SYMVER_TRUE=
12405 LIBQUAD_USE_SYMVER_FALSE='#'
12406else
12407 LIBQUAD_USE_SYMVER_TRUE='#'
12408 LIBQUAD_USE_SYMVER_FALSE=
12409fi
12410
12411 if test "x$quadmath_use_symver" = xgnu; then
12412 LIBQUAD_USE_SYMVER_GNU_TRUE=
12413 LIBQUAD_USE_SYMVER_GNU_FALSE='#'
12414else
12415 LIBQUAD_USE_SYMVER_GNU_TRUE='#'
12416 LIBQUAD_USE_SYMVER_GNU_FALSE=
12417fi
12418
12419 if test "x$quadmath_use_symver" = xsun; then
12420 LIBQUAD_USE_SYMVER_SUN_TRUE=
12421 LIBQUAD_USE_SYMVER_SUN_FALSE='#'
12422else
12423 LIBQUAD_USE_SYMVER_SUN_TRUE='#'
12424 LIBQUAD_USE_SYMVER_SUN_FALSE=
12425fi
12426
12427
12428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
12429$as_echo_n "checking whether __float128 is supported... " >&6; }
abccc9a9
TB
12430if test "${libquad_cv_have_float128+set}" = set; then :
12431 $as_echo_n "(cached) " >&6
12432else
12433 if test x$gcc_no_link = xyes; then
12434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435/* end confdefs.h. */
12436
12437 typedef _Complex float __attribute__((mode(TC))) __complex128;
12438
12439 __float128 foo (__float128 x)
12440 {
12441
12442 __complex128 z1, z2;
12443
12444 z1 = x;
12445 z2 = x / 7.Q;
12446 z2 /= z1;
12447
12448 return (__float128) z2;
12449 }
12450
12451 __float128 bar (__float128 x)
12452 {
12453 return x * __builtin_huge_valq ();
12454 }
12455
12456int
12457main ()
12458{
12459
12460 foo (1.2Q);
12461 bar (1.2Q);
12462
12463 ;
12464 return 0;
12465}
12466_ACEOF
12467if ac_fn_c_try_compile "$LINENO"; then :
12468
12469 libquad_cv_have_float128=yes
12470
12471else
12472
12473 libquad_cv_have_float128=no
12474
12475fi
12476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12477else
fabfcf5e
KT
12478 if test x$gcc_no_link = xyes; then
12479 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12480fi
12481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
12482/* end confdefs.h. */
12483
12484 typedef _Complex float __attribute__((mode(TC))) __complex128;
12485
12486 __float128 foo (__float128 x)
12487 {
12488
12489 __complex128 z1, z2;
12490
12491 z1 = x;
12492 z2 = x / 7.Q;
12493 z2 /= z1;
12494
12495 return (__float128) z2;
12496 }
12497
12498 __float128 bar (__float128 x)
12499 {
12500 return x * __builtin_huge_valq ();
12501 }
12502
12503int
12504main ()
12505{
12506
12507 foo (1.2Q);
12508 bar (1.2Q);
12509
12510 ;
12511 return 0;
12512}
12513_ACEOF
12514if ac_fn_c_try_link "$LINENO"; then :
12515
abccc9a9 12516 libquad_cv_have_float128=yes
1ec601bf
FXC
12517
12518else
12519
abccc9a9 12520 libquad_cv_have_float128=no
1ec601bf
FXC
12521
12522fi
12523rm -f core conftest.err conftest.$ac_objext \
12524 conftest$ac_exeext conftest.$ac_ext
abccc9a9
TB
12525fi
12526fi
12527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_cv_have_float128" >&5
12528$as_echo "$libquad_cv_have_float128" >&6; }
12529 if test "x$libquad_cv_have_float128" = xyes; then
1ec601bf
FXC
12530 BUILD_LIBQUADMATH_TRUE=
12531 BUILD_LIBQUADMATH_FALSE='#'
12532else
12533 BUILD_LIBQUADMATH_TRUE='#'
12534 BUILD_LIBQUADMATH_FALSE=
12535fi
12536
12537
1d92226b
JJ
12538# Check for printf hook support.
12539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf hooks are supported" >&5
12540$as_echo_n "checking whether printf hooks are supported... " >&6; }
12541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542/* end confdefs.h. */
12543
12544#include <printf.h>
12545#include <stdarg.h>
12546#include <stdlib.h>
12547extern void flt128_va (void *, va_list *);
12548extern int flt128_ais (const struct printf_info *, size_t, int *, int *);
12549extern int flt128_printf_fp (FILE *, const struct printf_info *, const void *const *);
12550
12551int
12552main ()
12553{
12554
12555int pa_flt128 = register_printf_type (flt128_va);
12556int mod_Q = register_printf_modifier (L"Q");
12557int res = register_printf_specifier ('f', flt128_printf_fp, flt128_ais);
12967872 12558struct printf_info info = { .user = -1 };
1d92226b
JJ
12559
12560 ;
12561 return 0;
12562}
12563_ACEOF
12564if ac_fn_c_try_compile "$LINENO"; then :
12565 quadmath_printf_hooks=yes
12566else
12567 quadmath_printf_hooks=no
12568fi
12569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_printf_hooks" >&5
12571$as_echo "$quadmath_printf_hooks" >&6; }
12572if test x$quadmath_printf_hooks = xyes; then
12573
12574$as_echo "#define HAVE_PRINTF_HOOKS 1" >>confdefs.h
12575
12576fi
12577
12578# Check for whether locale support for quadmath_snprintf or Q printf hooks
12579# should be provided.
12580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale support for quadmath_snprintf should be added" >&5
12581$as_echo_n "checking whether locale support for quadmath_snprintf should be added... " >&6; }
12582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583/* end confdefs.h. */
12584#include <langinfo.h>
12585int
12586main ()
12587{
12588
12589const char *s;
12590s = nl_langinfo (DECIMAL_POINT);
12591s = nl_langinfo (MON_DECIMAL_POINT);
12592s = nl_langinfo (GROUPING);
12593s = nl_langinfo (MON_GROUPING);
12594s = nl_langinfo (THOUSANDS_SEP);
12595s = nl_langinfo (MON_THOUSANDS_SEP);
12596s = nl_langinfo (_NL_NUMERIC_DECIMAL_POINT_WC);
12597s = nl_langinfo (_NL_MONETARY_DECIMAL_POINT_WC);
12598s = nl_langinfo (_NL_NUMERIC_THOUSANDS_SEP_WC);
12599s = nl_langinfo (_NL_MONETARY_THOUSANDS_SEP_WC);
12600s = nl_langinfo (_NL_CTYPE_MB_CUR_MAX);
12601(void) s;
12602
12603 ;
12604 return 0;
12605}
12606_ACEOF
12607if ac_fn_c_try_compile "$LINENO"; then :
12608 quadmath_use_locale_support=yes
12609else
12610 quadmath_use_locale_support=no
12611fi
12612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_locale_support" >&5
12614$as_echo "$quadmath_use_locale_support" >&6; }
12615if test x$quadmath_use_locale_support = xyes; then
12616
12617$as_echo "#define USE_LOCALE_SUPPORT 1" >>confdefs.h
12618
12619fi
12620
12621# Check for whether i18n number rewriting support for quadmath_snprintf
12622# or Q printf hooks should be provided.
12623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i18n number rewriting support for quadmath_snprintf should be added" >&5
12624$as_echo_n "checking whether i18n number rewriting support for quadmath_snprintf should be added... " >&6; }
12625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626/* end confdefs.h. */
12627#include <langinfo.h>
12628#include <limits.h>
12629#include <string.h>
12630#include <wchar.h>
12631#include <wctype.h>
12632int
12633main ()
12634{
12635
12636const char *s;
12637char decimal[MB_LEN_MAX];
12638wctrans_t map = wctrans ("to_outpunct");
12639wint_t wdecimal = towctrans (L'.', map);
12640mbstate_t state;
12641memset (&state, '\0', sizeof (state));
12642wcrtomb (decimal, wdecimal, &state);
12643s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
12644s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_WC);
12645(void) s;
12646
12647 ;
12648 return 0;
12649}
12650_ACEOF
12651if ac_fn_c_try_compile "$LINENO"; then :
12652 quadmath_use_i18n_number_h=yes
12653else
12654 quadmath_use_i18n_number_h=no
12655fi
12656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_i18n_number_h" >&5
12658$as_echo "$quadmath_use_i18n_number_h" >&6; }
12659if test x$quadmath_use_i18n_number_h = xyes; then
12660
12661$as_echo "#define USE_I18N_NUMBER_H 1" >>confdefs.h
12662
12663fi
12664
1ec601bf
FXC
12665cat >confcache <<\_ACEOF
12666# This file is a shell script that caches the results of configure
12667# tests run on this system so they can be shared between configure
12668# scripts and configure runs, see configure's option --config-cache.
12669# It is not useful on other systems. If it contains results you don't
12670# want to keep, you may remove or edit it.
12671#
12672# config.status only pays attention to the cache file if you give it
12673# the --recheck option to rerun configure.
12674#
12675# `ac_cv_env_foo' variables (set or unset) will be overridden when
12676# loading this file, other *unset* `ac_cv_foo' will be assigned the
12677# following values.
12678
12679_ACEOF
12680
12681# The following way of writing the cache mishandles newlines in values,
12682# but we know of no workaround that is simple, portable, and efficient.
12683# So, we kill variables containing newlines.
12684# Ultrix sh set writes to stderr and can't be redirected directly,
12685# and sets the high bit in the cache file unless we assign to the vars.
12686(
12687 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12688 eval ac_val=\$$ac_var
12689 case $ac_val in #(
12690 *${as_nl}*)
12691 case $ac_var in #(
12692 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12693$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12694 esac
12695 case $ac_var in #(
12696 _ | IFS | as_nl) ;; #(
12697 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12698 *) { eval $ac_var=; unset $ac_var;} ;;
12699 esac ;;
12700 esac
12701 done
12702
12703 (set) 2>&1 |
12704 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12705 *${as_nl}ac_space=\ *)
12706 # `set' does not quote correctly, so add quotes: double-quote
12707 # substitution turns \\\\ into \\, and sed turns \\ into \.
12708 sed -n \
12709 "s/'/'\\\\''/g;
12710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12711 ;; #(
12712 *)
12713 # `set' quotes correctly as required by POSIX, so do not add quotes.
12714 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12715 ;;
12716 esac |
12717 sort
12718) |
12719 sed '
12720 /^ac_cv_env_/b end
12721 t clear
12722 :clear
12723 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12724 t end
12725 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12726 :end' >>confcache
12727if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12728 if test -w "$cache_file"; then
12729 test "x$cache_file" != "x/dev/null" &&
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12731$as_echo "$as_me: updating cache $cache_file" >&6;}
12732 cat confcache >$cache_file
12733 else
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12735$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12736 fi
12737fi
12738rm -f confcache
12739
12740if test ${multilib} = yes; then
12741 multilib_arg="--enable-multilib"
12742else
12743 multilib_arg=
12744fi
12745
4c993c44
TB
12746
12747# We would like our source tree to be readonly. However when releases or
12748# pre-releases are generated, the flex/bison generated files as well as the
12749# various formats of manuals need to be included along with the rest of the
12750# sources. Therefore we have --enable-generated-files-in-srcdir to do
12751# just that.
12752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
12753$as_echo_n "checking generated-files-in-srcdir... " >&6; }
12754# Check whether --enable-generated-files-in-srcdir was given.
12755if test "${enable_generated_files_in_srcdir+set}" = set; then :
12756 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
12757 yes) enable_generated_files_in_srcdir=yes ;;
12758 no) enable_generated_files_in_srcdir=no ;;
12759 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
12760 esac
12761else
12762 enable_generated_files_in_srcdir=no
12763fi
12764
12765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
12766$as_echo "$enable_generated_files_in_srcdir" >&6; }
12767 if test "$enable_generated_files_in_srcdir" = yes; then
12768 GENINSRC_TRUE=
12769 GENINSRC_FALSE='#'
12770else
12771 GENINSRC_TRUE='#'
12772 GENINSRC_FALSE=
12773fi
12774
12775
12776
1ec601bf
FXC
12777ac_config_files="$ac_config_files Makefile"
12778
12779cat >confcache <<\_ACEOF
12780# This file is a shell script that caches the results of configure
12781# tests run on this system so they can be shared between configure
12782# scripts and configure runs, see configure's option --config-cache.
12783# It is not useful on other systems. If it contains results you don't
12784# want to keep, you may remove or edit it.
12785#
12786# config.status only pays attention to the cache file if you give it
12787# the --recheck option to rerun configure.
12788#
12789# `ac_cv_env_foo' variables (set or unset) will be overridden when
12790# loading this file, other *unset* `ac_cv_foo' will be assigned the
12791# following values.
12792
12793_ACEOF
12794
12795# The following way of writing the cache mishandles newlines in values,
12796# but we know of no workaround that is simple, portable, and efficient.
12797# So, we kill variables containing newlines.
12798# Ultrix sh set writes to stderr and can't be redirected directly,
12799# and sets the high bit in the cache file unless we assign to the vars.
12800(
12801 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12802 eval ac_val=\$$ac_var
12803 case $ac_val in #(
12804 *${as_nl}*)
12805 case $ac_var in #(
12806 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12807$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12808 esac
12809 case $ac_var in #(
12810 _ | IFS | as_nl) ;; #(
12811 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12812 *) { eval $ac_var=; unset $ac_var;} ;;
12813 esac ;;
12814 esac
12815 done
12816
12817 (set) 2>&1 |
12818 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12819 *${as_nl}ac_space=\ *)
12820 # `set' does not quote correctly, so add quotes: double-quote
12821 # substitution turns \\\\ into \\, and sed turns \\ into \.
12822 sed -n \
12823 "s/'/'\\\\''/g;
12824 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12825 ;; #(
12826 *)
12827 # `set' quotes correctly as required by POSIX, so do not add quotes.
12828 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12829 ;;
12830 esac |
12831 sort
12832) |
12833 sed '
12834 /^ac_cv_env_/b end
12835 t clear
12836 :clear
12837 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12838 t end
12839 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12840 :end' >>confcache
12841if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12842 if test -w "$cache_file"; then
12843 test "x$cache_file" != "x/dev/null" &&
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12845$as_echo "$as_me: updating cache $cache_file" >&6;}
12846 cat confcache >$cache_file
12847 else
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12849$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12850 fi
12851fi
12852rm -f confcache
12853
12854test "x$prefix" = xNONE && prefix=$ac_default_prefix
12855# Let make expand exec_prefix.
12856test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12857
12858DEFS=-DHAVE_CONFIG_H
12859
12860ac_libobjs=
12861ac_ltlibobjs=
12862for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12863 # 1. Remove the extension, and $U if already installed.
12864 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12865 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12866 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12867 # will be set to the directory where LIBOBJS objects are built.
12868 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12869 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12870done
12871LIBOBJS=$ac_libobjs
12872
12873LTLIBOBJS=$ac_ltlibobjs
12874
12875
12876 if test -n "$EXEEXT"; then
12877 am__EXEEXT_TRUE=
12878 am__EXEEXT_FALSE='#'
12879else
12880 am__EXEEXT_TRUE='#'
12881 am__EXEEXT_FALSE=
12882fi
12883
12884if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12885 as_fn_error "conditional \"AMDEP\" was never defined.
12886Usually this means the macro was only invoked conditionally." "$LINENO" 5
12887fi
12888if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12889 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12890Usually this means the macro was only invoked conditionally." "$LINENO" 5
12891fi
1d92226b
JJ
12892if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
12893 as_fn_error "conditional \"BUILD_INFO\" was never defined.
12894Usually this means the macro was only invoked conditionally." "$LINENO" 5
12895fi
1ec601bf
FXC
12896if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12897 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12898Usually this means the macro was only invoked conditionally." "$LINENO" 5
12899fi
fabfcf5e
KT
12900if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12901 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12902Usually this means the macro was only invoked conditionally." "$LINENO" 5
12903fi
1ec601bf
FXC
12904if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
12905 as_fn_error "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
12906Usually this means the macro was only invoked conditionally." "$LINENO" 5
12907fi
12908if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
12909 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
12910Usually this means the macro was only invoked conditionally." "$LINENO" 5
12911fi
12912if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
12913 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
12914Usually this means the macro was only invoked conditionally." "$LINENO" 5
12915fi
12916if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
12917 as_fn_error "conditional \"BUILD_LIBQUADMATH\" was never defined.
4c993c44
TB
12918Usually this means the macro was only invoked conditionally." "$LINENO" 5
12919fi
12920if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
12921 as_fn_error "conditional \"GENINSRC\" was never defined.
1ec601bf
FXC
12922Usually this means the macro was only invoked conditionally." "$LINENO" 5
12923fi
12924
12925: ${CONFIG_STATUS=./config.status}
12926ac_write_fail=0
12927ac_clean_files_save=$ac_clean_files
12928ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12929{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12930$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12931as_write_fail=0
12932cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12933#! $SHELL
12934# Generated by $as_me.
12935# Run this file to recreate the current configuration.
12936# Compiler output produced by configure, useful for debugging
12937# configure, is in config.log if it exists.
12938
12939debug=false
12940ac_cs_recheck=false
12941ac_cs_silent=false
12942
12943SHELL=\${CONFIG_SHELL-$SHELL}
12944export SHELL
12945_ASEOF
12946cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12947## -------------------- ##
12948## M4sh Initialization. ##
12949## -------------------- ##
12950
12951# Be more Bourne compatible
12952DUALCASE=1; export DUALCASE # for MKS sh
12953if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12954 emulate sh
12955 NULLCMD=:
12956 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12957 # is contrary to our usage. Disable this feature.
12958 alias -g '${1+"$@"}'='"$@"'
12959 setopt NO_GLOB_SUBST
12960else
12961 case `(set -o) 2>/dev/null` in #(
12962 *posix*) :
12963 set -o posix ;; #(
12964 *) :
12965 ;;
12966esac
12967fi
12968
12969
12970as_nl='
12971'
12972export as_nl
12973# Printing a long string crashes Solaris 7 /usr/bin/printf.
12974as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12975as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12976as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12977# Prefer a ksh shell builtin over an external printf program on Solaris,
12978# but without wasting forks for bash or zsh.
12979if test -z "$BASH_VERSION$ZSH_VERSION" \
12980 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12981 as_echo='print -r --'
12982 as_echo_n='print -rn --'
12983elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12984 as_echo='printf %s\n'
12985 as_echo_n='printf %s'
12986else
12987 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12988 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12989 as_echo_n='/usr/ucb/echo -n'
12990 else
12991 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12992 as_echo_n_body='eval
12993 arg=$1;
12994 case $arg in #(
12995 *"$as_nl"*)
12996 expr "X$arg" : "X\\(.*\\)$as_nl";
12997 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12998 esac;
12999 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13000 '
13001 export as_echo_n_body
13002 as_echo_n='sh -c $as_echo_n_body as_echo'
13003 fi
13004 export as_echo_body
13005 as_echo='sh -c $as_echo_body as_echo'
13006fi
13007
13008# The user is always right.
13009if test "${PATH_SEPARATOR+set}" != set; then
13010 PATH_SEPARATOR=:
13011 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13012 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13013 PATH_SEPARATOR=';'
13014 }
13015fi
13016
13017
13018# IFS
13019# We need space, tab and new line, in precisely that order. Quoting is
13020# there to prevent editors from complaining about space-tab.
13021# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13022# splitting by setting IFS to empty value.)
13023IFS=" "" $as_nl"
13024
13025# Find who we are. Look in the path if we contain no directory separator.
13026case $0 in #((
13027 *[\\/]* ) as_myself=$0 ;;
13028 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13029for as_dir in $PATH
13030do
13031 IFS=$as_save_IFS
13032 test -z "$as_dir" && as_dir=.
13033 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13034 done
13035IFS=$as_save_IFS
13036
13037 ;;
13038esac
13039# We did not find ourselves, most probably we were run as `sh COMMAND'
13040# in which case we are not to be found in the path.
13041if test "x$as_myself" = x; then
13042 as_myself=$0
13043fi
13044if test ! -f "$as_myself"; then
13045 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13046 exit 1
13047fi
13048
13049# Unset variables that we do not need and which cause bugs (e.g. in
13050# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13051# suppresses any "Segmentation fault" message there. '((' could
13052# trigger a bug in pdksh 5.2.14.
13053for as_var in BASH_ENV ENV MAIL MAILPATH
13054do eval test x\${$as_var+set} = xset \
13055 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13056done
13057PS1='$ '
13058PS2='> '
13059PS4='+ '
13060
13061# NLS nuisances.
13062LC_ALL=C
13063export LC_ALL
13064LANGUAGE=C
13065export LANGUAGE
13066
13067# CDPATH.
13068(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13069
13070
13071# as_fn_error ERROR [LINENO LOG_FD]
13072# ---------------------------------
13073# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13074# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13075# script with status $?, using 1 if that was 0.
13076as_fn_error ()
13077{
13078 as_status=$?; test $as_status -eq 0 && as_status=1
13079 if test "$3"; then
13080 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13081 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13082 fi
13083 $as_echo "$as_me: error: $1" >&2
13084 as_fn_exit $as_status
13085} # as_fn_error
13086
13087
13088# as_fn_set_status STATUS
13089# -----------------------
13090# Set $? to STATUS, without forking.
13091as_fn_set_status ()
13092{
13093 return $1
13094} # as_fn_set_status
13095
13096# as_fn_exit STATUS
13097# -----------------
13098# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13099as_fn_exit ()
13100{
13101 set +e
13102 as_fn_set_status $1
13103 exit $1
13104} # as_fn_exit
13105
13106# as_fn_unset VAR
13107# ---------------
13108# Portably unset VAR.
13109as_fn_unset ()
13110{
13111 { eval $1=; unset $1;}
13112}
13113as_unset=as_fn_unset
13114# as_fn_append VAR VALUE
13115# ----------------------
13116# Append the text in VALUE to the end of the definition contained in VAR. Take
13117# advantage of any shell optimizations that allow amortized linear growth over
13118# repeated appends, instead of the typical quadratic growth present in naive
13119# implementations.
13120if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13121 eval 'as_fn_append ()
13122 {
13123 eval $1+=\$2
13124 }'
13125else
13126 as_fn_append ()
13127 {
13128 eval $1=\$$1\$2
13129 }
13130fi # as_fn_append
13131
13132# as_fn_arith ARG...
13133# ------------------
13134# Perform arithmetic evaluation on the ARGs, and store the result in the
13135# global $as_val. Take advantage of shells that can avoid forks. The arguments
13136# must be portable across $(()) and expr.
13137if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13138 eval 'as_fn_arith ()
13139 {
13140 as_val=$(( $* ))
13141 }'
13142else
13143 as_fn_arith ()
13144 {
13145 as_val=`expr "$@" || test $? -eq 1`
13146 }
13147fi # as_fn_arith
13148
13149
13150if expr a : '\(a\)' >/dev/null 2>&1 &&
13151 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13152 as_expr=expr
13153else
13154 as_expr=false
13155fi
13156
13157if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13158 as_basename=basename
13159else
13160 as_basename=false
13161fi
13162
13163if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13164 as_dirname=dirname
13165else
13166 as_dirname=false
13167fi
13168
13169as_me=`$as_basename -- "$0" ||
13170$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13171 X"$0" : 'X\(//\)$' \| \
13172 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13173$as_echo X/"$0" |
13174 sed '/^.*\/\([^/][^/]*\)\/*$/{
13175 s//\1/
13176 q
13177 }
13178 /^X\/\(\/\/\)$/{
13179 s//\1/
13180 q
13181 }
13182 /^X\/\(\/\).*/{
13183 s//\1/
13184 q
13185 }
13186 s/.*/./; q'`
13187
13188# Avoid depending upon Character Ranges.
13189as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13190as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13191as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13192as_cr_digits='0123456789'
13193as_cr_alnum=$as_cr_Letters$as_cr_digits
13194
13195ECHO_C= ECHO_N= ECHO_T=
13196case `echo -n x` in #(((((
13197-n*)
13198 case `echo 'xy\c'` in
13199 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13200 xy) ECHO_C='\c';;
13201 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13202 ECHO_T=' ';;
13203 esac;;
13204*)
13205 ECHO_N='-n';;
13206esac
13207
13208rm -f conf$$ conf$$.exe conf$$.file
13209if test -d conf$$.dir; then
13210 rm -f conf$$.dir/conf$$.file
13211else
13212 rm -f conf$$.dir
13213 mkdir conf$$.dir 2>/dev/null
13214fi
13215if (echo >conf$$.file) 2>/dev/null; then
13216 if ln -s conf$$.file conf$$ 2>/dev/null; then
13217 as_ln_s='ln -s'
13218 # ... but there are two gotchas:
13219 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13220 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13221 # In both cases, we have to default to `cp -p'.
13222 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13223 as_ln_s='cp -p'
13224 elif ln conf$$.file conf$$ 2>/dev/null; then
13225 as_ln_s=ln
13226 else
13227 as_ln_s='cp -p'
13228 fi
13229else
13230 as_ln_s='cp -p'
13231fi
13232rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13233rmdir conf$$.dir 2>/dev/null
13234
13235
13236# as_fn_mkdir_p
13237# -------------
13238# Create "$as_dir" as a directory, including parents if necessary.
13239as_fn_mkdir_p ()
13240{
13241
13242 case $as_dir in #(
13243 -*) as_dir=./$as_dir;;
13244 esac
13245 test -d "$as_dir" || eval $as_mkdir_p || {
13246 as_dirs=
13247 while :; do
13248 case $as_dir in #(
13249 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13250 *) as_qdir=$as_dir;;
13251 esac
13252 as_dirs="'$as_qdir' $as_dirs"
13253 as_dir=`$as_dirname -- "$as_dir" ||
13254$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13255 X"$as_dir" : 'X\(//\)[^/]' \| \
13256 X"$as_dir" : 'X\(//\)$' \| \
13257 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13258$as_echo X"$as_dir" |
13259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13260 s//\1/
13261 q
13262 }
13263 /^X\(\/\/\)[^/].*/{
13264 s//\1/
13265 q
13266 }
13267 /^X\(\/\/\)$/{
13268 s//\1/
13269 q
13270 }
13271 /^X\(\/\).*/{
13272 s//\1/
13273 q
13274 }
13275 s/.*/./; q'`
13276 test -d "$as_dir" && break
13277 done
13278 test -z "$as_dirs" || eval "mkdir $as_dirs"
13279 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13280
13281
13282} # as_fn_mkdir_p
13283if mkdir -p . 2>/dev/null; then
13284 as_mkdir_p='mkdir -p "$as_dir"'
13285else
13286 test -d ./-p && rmdir ./-p
13287 as_mkdir_p=false
13288fi
13289
13290if test -x / >/dev/null 2>&1; then
13291 as_test_x='test -x'
13292else
13293 if ls -dL / >/dev/null 2>&1; then
13294 as_ls_L_option=L
13295 else
13296 as_ls_L_option=
13297 fi
13298 as_test_x='
13299 eval sh -c '\''
13300 if test -d "$1"; then
13301 test -d "$1/.";
13302 else
13303 case $1 in #(
13304 -*)set "./$1";;
13305 esac;
13306 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13307 ???[sx]*):;;*)false;;esac;fi
13308 '\'' sh
13309 '
13310fi
13311as_executable_p=$as_test_x
13312
13313# Sed expression to map a string onto a valid CPP name.
13314as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13315
13316# Sed expression to map a string onto a valid variable name.
13317as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13318
13319
13320exec 6>&1
13321## ----------------------------------- ##
13322## Main body of $CONFIG_STATUS script. ##
13323## ----------------------------------- ##
13324_ASEOF
13325test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13326
13327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13328# Save the log message, to keep $0 and so on meaningful, and to
13329# report actual input values of CONFIG_FILES etc. instead of their
13330# values after options handling.
13331ac_log="
13332This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
13333generated by GNU Autoconf 2.64. Invocation command line was
13334
13335 CONFIG_FILES = $CONFIG_FILES
13336 CONFIG_HEADERS = $CONFIG_HEADERS
13337 CONFIG_LINKS = $CONFIG_LINKS
13338 CONFIG_COMMANDS = $CONFIG_COMMANDS
13339 $ $0 $@
13340
13341on `(hostname || uname -n) 2>/dev/null | sed 1q`
13342"
13343
13344_ACEOF
13345
13346case $ac_config_files in *"
13347"*) set x $ac_config_files; shift; ac_config_files=$*;;
13348esac
13349
13350case $ac_config_headers in *"
13351"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13352esac
13353
13354
13355cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13356# Files that config.status was made for.
13357config_files="$ac_config_files"
13358config_headers="$ac_config_headers"
13359config_commands="$ac_config_commands"
13360
13361_ACEOF
13362
13363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13364ac_cs_usage="\
13365\`$as_me' instantiates files and other configuration actions
13366from templates according to the current configuration. Unless the files
13367and actions are specified as TAGs, all are instantiated by default.
13368
13369Usage: $0 [OPTION]... [TAG]...
13370
13371 -h, --help print this help, then exit
13372 -V, --version print version number and configuration settings, then exit
13373 -q, --quiet, --silent
13374 do not print progress messages
13375 -d, --debug don't remove temporary files
13376 --recheck update $as_me by reconfiguring in the same conditions
13377 --file=FILE[:TEMPLATE]
13378 instantiate the configuration file FILE
13379 --header=FILE[:TEMPLATE]
13380 instantiate the configuration header FILE
13381
13382Configuration files:
13383$config_files
13384
13385Configuration headers:
13386$config_headers
13387
13388Configuration commands:
13389$config_commands
13390
13391Report bugs to the package provider."
13392
13393_ACEOF
13394cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13395ac_cs_version="\\
13396GCC Quad-precision Math Library config.status 0.1
13397configured by $0, generated by GNU Autoconf 2.64,
13398 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13399
13400Copyright (C) 2009 Free Software Foundation, Inc.
13401This config.status script is free software; the Free Software Foundation
13402gives unlimited permission to copy, distribute and modify it."
13403
13404ac_pwd='$ac_pwd'
13405srcdir='$srcdir'
13406INSTALL='$INSTALL'
13407MKDIR_P='$MKDIR_P'
13408AWK='$AWK'
13409test -n "\$AWK" || AWK=awk
13410_ACEOF
13411
13412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13413# The default lists apply if the user does not specify any file.
13414ac_need_defaults=:
13415while test $# != 0
13416do
13417 case $1 in
13418 --*=*)
13419 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13420 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13421 ac_shift=:
13422 ;;
13423 *)
13424 ac_option=$1
13425 ac_optarg=$2
13426 ac_shift=shift
13427 ;;
13428 esac
13429
13430 case $ac_option in
13431 # Handling of the options.
13432 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13433 ac_cs_recheck=: ;;
13434 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13435 $as_echo "$ac_cs_version"; exit ;;
13436 --debug | --debu | --deb | --de | --d | -d )
13437 debug=: ;;
13438 --file | --fil | --fi | --f )
13439 $ac_shift
13440 case $ac_optarg in
13441 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13442 esac
13443 as_fn_append CONFIG_FILES " '$ac_optarg'"
13444 ac_need_defaults=false;;
13445 --header | --heade | --head | --hea )
13446 $ac_shift
13447 case $ac_optarg in
13448 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13449 esac
13450 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13451 ac_need_defaults=false;;
13452 --he | --h)
13453 # Conflict between --help and --header
13454 as_fn_error "ambiguous option: \`$1'
13455Try \`$0 --help' for more information.";;
13456 --help | --hel | -h )
13457 $as_echo "$ac_cs_usage"; exit ;;
13458 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13459 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13460 ac_cs_silent=: ;;
13461
13462 # This is an error.
13463 -*) as_fn_error "unrecognized option: \`$1'
13464Try \`$0 --help' for more information." ;;
13465
13466 *) as_fn_append ac_config_targets " $1"
13467 ac_need_defaults=false ;;
13468
13469 esac
13470 shift
13471done
13472
13473ac_configure_extra_args=
13474
13475if $ac_cs_silent; then
13476 exec 6>/dev/null
13477 ac_configure_extra_args="$ac_configure_extra_args --silent"
13478fi
13479
13480_ACEOF
13481cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13482if \$ac_cs_recheck; then
13483 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13484 shift
13485 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13486 CONFIG_SHELL='$SHELL'
13487 export CONFIG_SHELL
13488 exec "\$@"
13489fi
13490
13491_ACEOF
13492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13493exec 5>>config.log
13494{
13495 echo
13496 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13497## Running $as_me. ##
13498_ASBOX
13499 $as_echo "$ac_log"
13500} >&5
13501
13502_ACEOF
13503cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13504#
13505# INIT-COMMANDS
13506#
13507AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13508
13509
13510# The HP-UX ksh and POSIX shell print the target directory to stdout
13511# if CDPATH is set.
13512(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13513
13514sed_quote_subst='$sed_quote_subst'
13515double_quote_subst='$double_quote_subst'
13516delay_variable_subst='$delay_variable_subst'
13517macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13518macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13519enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13520enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13521pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13522enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13523SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13524ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13525host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13526host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13527host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13528build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13529build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13530build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13531SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13532Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13533GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13534EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13535FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13536LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13537NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13538LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13539max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13540ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13541exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13542lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13543lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13544lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13545reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13546reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13547OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13548deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13549file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13550AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13551AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13552STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13553RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13554old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13555old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13556old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13557lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13558CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13559CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13560compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13561GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13562lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13563lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13564lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13565lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13566objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13567MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13568lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13569lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13570lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13571lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13572lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13573need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13574DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13575NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13576LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13577OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13578OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13579libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13580shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13581extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13582archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13583enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13584export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13585whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13586compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13587old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13588old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13589archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13590archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13591module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13592module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13593with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13594allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13595no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13596hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13597hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13598hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13599hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13600hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13601hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13602hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13603hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13604inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13605link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13606fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13607always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13608export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13609exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13610include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13611prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13612file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13613variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13614need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13615need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13616version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13617runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13618shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13619shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13620libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13621library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13622soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13623install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13624postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13625postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13626finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13627finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13628hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13629sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13630sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13631hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13632enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13633enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13634enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13635old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13636striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13637
13638LTCC='$LTCC'
13639LTCFLAGS='$LTCFLAGS'
13640compiler='$compiler_DEFAULT'
13641
13642# A function that is used when there is no print builtin or printf.
13643func_fallback_echo ()
13644{
13645 eval 'cat <<_LTECHO_EOF
13646\$1
13647_LTECHO_EOF'
13648}
13649
13650# Quote evaled strings.
13651for var in SHELL \
13652ECHO \
13653SED \
13654GREP \
13655EGREP \
13656FGREP \
13657LD \
13658NM \
13659LN_S \
13660lt_SP2NL \
13661lt_NL2SP \
13662reload_flag \
13663OBJDUMP \
13664deplibs_check_method \
13665file_magic_cmd \
13666AR \
13667AR_FLAGS \
13668STRIP \
13669RANLIB \
13670CC \
13671CFLAGS \
13672compiler \
13673lt_cv_sys_global_symbol_pipe \
13674lt_cv_sys_global_symbol_to_cdecl \
13675lt_cv_sys_global_symbol_to_c_name_address \
13676lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13677lt_prog_compiler_no_builtin_flag \
13678lt_prog_compiler_wl \
13679lt_prog_compiler_pic \
13680lt_prog_compiler_static \
13681lt_cv_prog_compiler_c_o \
13682need_locks \
13683DSYMUTIL \
13684NMEDIT \
13685LIPO \
13686OTOOL \
13687OTOOL64 \
13688shrext_cmds \
13689export_dynamic_flag_spec \
13690whole_archive_flag_spec \
13691compiler_needs_object \
13692with_gnu_ld \
13693allow_undefined_flag \
13694no_undefined_flag \
13695hardcode_libdir_flag_spec \
13696hardcode_libdir_flag_spec_ld \
13697hardcode_libdir_separator \
13698fix_srcfile_path \
13699exclude_expsyms \
13700include_expsyms \
13701file_list_spec \
13702variables_saved_for_relink \
13703libname_spec \
13704library_names_spec \
13705soname_spec \
13706install_override_mode \
13707finish_eval \
13708old_striplib \
13709striplib; do
13710 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13711 *[\\\\\\\`\\"\\\$]*)
13712 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13713 ;;
13714 *)
13715 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13716 ;;
13717 esac
13718done
13719
13720# Double-quote double-evaled strings.
13721for var in reload_cmds \
13722old_postinstall_cmds \
13723old_postuninstall_cmds \
13724old_archive_cmds \
13725extract_expsyms_cmds \
13726old_archive_from_new_cmds \
13727old_archive_from_expsyms_cmds \
13728archive_cmds \
13729archive_expsym_cmds \
13730module_cmds \
13731module_expsym_cmds \
13732export_symbols_cmds \
13733prelink_cmds \
13734postinstall_cmds \
13735postuninstall_cmds \
13736finish_cmds \
13737sys_lib_search_path_spec \
13738sys_lib_dlsearch_path_spec; do
13739 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13740 *[\\\\\\\`\\"\\\$]*)
13741 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13742 ;;
13743 *)
13744 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13745 ;;
13746 esac
13747done
13748
13749ac_aux_dir='$ac_aux_dir'
13750xsi_shell='$xsi_shell'
13751lt_shell_append='$lt_shell_append'
13752
13753# See if we are running on zsh, and set the options which allow our
13754# commands through without removal of \ escapes INIT.
13755if test -n "\${ZSH_VERSION+set}" ; then
13756 setopt NO_GLOB_SUBST
13757fi
13758
13759
13760 PACKAGE='$PACKAGE'
13761 VERSION='$VERSION'
13762 TIMESTAMP='$TIMESTAMP'
13763 RM='$RM'
13764 ofile='$ofile'
13765
13766
13767
13768
13769srcdir="$srcdir"
13770host="$host"
13771target="$target"
13772with_multisubdir="$with_multisubdir"
13773with_multisrctop="$with_multisrctop"
13774with_target_subdir="$with_target_subdir"
13775ac_configure_args="${multilib_arg} ${ac_configure_args}"
13776multi_basedir="$multi_basedir"
13777CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13778CC="$CC"
13779CXX="$CXX"
13780GFORTRAN="$GFORTRAN"
13781GCJ="$GCJ"
13782
13783_ACEOF
13784
13785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13786
13787# Handling of arguments.
13788for ac_config_target in $ac_config_targets
13789do
13790 case $ac_config_target in
13791 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13792 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13793 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13794 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13795 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13796
13797 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13798 esac
13799done
13800
13801
13802# If the user did not use the arguments to specify the items to instantiate,
13803# then the envvar interface is used. Set only those that are not.
13804# We use the long form for the default assignment because of an extremely
13805# bizarre bug on SunOS 4.1.3.
13806if $ac_need_defaults; then
13807 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13808 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13809 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13810fi
13811
13812# Have a temporary directory for convenience. Make it in the build tree
13813# simply because there is no reason against having it here, and in addition,
13814# creating and moving files from /tmp can sometimes cause problems.
13815# Hook for its removal unless debugging.
13816# Note that there is a small window in which the directory will not be cleaned:
13817# after its creation but before its name has been assigned to `$tmp'.
13818$debug ||
13819{
13820 tmp=
13821 trap 'exit_status=$?
13822 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13823' 0
13824 trap 'as_fn_exit 1' 1 2 13 15
13825}
13826# Create a (secure) tmp directory for tmp files.
13827
13828{
13829 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13830 test -n "$tmp" && test -d "$tmp"
13831} ||
13832{
13833 tmp=./conf$$-$RANDOM
13834 (umask 077 && mkdir "$tmp")
13835} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13836
13837# Set up the scripts for CONFIG_FILES section.
13838# No need to generate them if there are no CONFIG_FILES.
13839# This happens for instance with `./config.status config.h'.
13840if test -n "$CONFIG_FILES"; then
13841
13842
13843ac_cr=`echo X | tr X '\015'`
13844# On cygwin, bash can eat \r inside `` if the user requested igncr.
13845# But we know of no other shell where ac_cr would be empty at this
13846# point, so we can use a bashism as a fallback.
13847if test "x$ac_cr" = x; then
13848 eval ac_cr=\$\'\\r\'
13849fi
13850ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13851if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13852 ac_cs_awk_cr='\r'
13853else
13854 ac_cs_awk_cr=$ac_cr
13855fi
13856
13857echo 'BEGIN {' >"$tmp/subs1.awk" &&
13858_ACEOF
13859
13860
13861{
13862 echo "cat >conf$$subs.awk <<_ACEOF" &&
13863 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13864 echo "_ACEOF"
13865} >conf$$subs.sh ||
13866 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13867ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13868ac_delim='%!_!# '
13869for ac_last_try in false false false false false :; do
13870 . ./conf$$subs.sh ||
13871 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13872
13873 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13874 if test $ac_delim_n = $ac_delim_num; then
13875 break
13876 elif $ac_last_try; then
13877 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13878 else
13879 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13880 fi
13881done
13882rm -f conf$$subs.sh
13883
13884cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13885cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13886_ACEOF
13887sed -n '
13888h
13889s/^/S["/; s/!.*/"]=/
13890p
13891g
13892s/^[^!]*!//
13893:repl
13894t repl
13895s/'"$ac_delim"'$//
13896t delim
13897:nl
13898h
13899s/\(.\{148\}\).*/\1/
13900t more1
13901s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13902p
13903n
13904b repl
13905:more1
13906s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13907p
13908g
13909s/.\{148\}//
13910t nl
13911:delim
13912h
13913s/\(.\{148\}\).*/\1/
13914t more2
13915s/["\\]/\\&/g; s/^/"/; s/$/"/
13916p
13917b
13918:more2
13919s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13920p
13921g
13922s/.\{148\}//
13923t delim
13924' <conf$$subs.awk | sed '
13925/^[^""]/{
13926 N
13927 s/\n//
13928}
13929' >>$CONFIG_STATUS || ac_write_fail=1
13930rm -f conf$$subs.awk
13931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13932_ACAWK
13933cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13934 for (key in S) S_is_set[key] = 1
13935 FS = "\a"
13936
13937}
13938{
13939 line = $ 0
13940 nfields = split(line, field, "@")
13941 substed = 0
13942 len = length(field[1])
13943 for (i = 2; i < nfields; i++) {
13944 key = field[i]
13945 keylen = length(key)
13946 if (S_is_set[key]) {
13947 value = S[key]
13948 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13949 len += length(value) + length(field[++i])
13950 substed = 1
13951 } else
13952 len += 1 + keylen
13953 }
13954
13955 print line
13956}
13957
13958_ACAWK
13959_ACEOF
13960cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13961if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13962 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13963else
13964 cat
13965fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13966 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13967_ACEOF
13968
13969# VPATH may cause trouble with some makes, so we remove $(srcdir),
13970# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13971# trailing colons and then remove the whole line if VPATH becomes empty
13972# (actually we leave an empty line to preserve line numbers).
13973if test "x$srcdir" = x.; then
13974 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13975s/:*\$(srcdir):*/:/
13976s/:*\${srcdir}:*/:/
13977s/:*@srcdir@:*/:/
13978s/^\([^=]*=[ ]*\):*/\1/
13979s/:*$//
13980s/^[^=]*=[ ]*$//
13981}'
13982fi
13983
13984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13985fi # test -n "$CONFIG_FILES"
13986
13987# Set up the scripts for CONFIG_HEADERS section.
13988# No need to generate them if there are no CONFIG_HEADERS.
13989# This happens for instance with `./config.status Makefile'.
13990if test -n "$CONFIG_HEADERS"; then
13991cat >"$tmp/defines.awk" <<\_ACAWK ||
13992BEGIN {
13993_ACEOF
13994
13995# Transform confdefs.h into an awk script `defines.awk', embedded as
13996# here-document in config.status, that substitutes the proper values into
13997# config.h.in to produce config.h.
13998
13999# Create a delimiter string that does not exist in confdefs.h, to ease
14000# handling of long lines.
14001ac_delim='%!_!# '
14002for ac_last_try in false false :; do
14003 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14004 if test -z "$ac_t"; then
14005 break
14006 elif $ac_last_try; then
14007 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14008 else
14009 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14010 fi
14011done
14012
14013# For the awk script, D is an array of macro values keyed by name,
14014# likewise P contains macro parameters if any. Preserve backslash
14015# newline sequences.
14016
14017ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14018sed -n '
14019s/.\{148\}/&'"$ac_delim"'/g
14020t rset
14021:rset
14022s/^[ ]*#[ ]*define[ ][ ]*/ /
14023t def
14024d
14025:def
14026s/\\$//
14027t bsnl
14028s/["\\]/\\&/g
14029s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14030D["\1"]=" \3"/p
14031s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14032d
14033:bsnl
14034s/["\\]/\\&/g
14035s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14036D["\1"]=" \3\\\\\\n"\\/p
14037t cont
14038s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14039t cont
14040d
14041:cont
14042n
14043s/.\{148\}/&'"$ac_delim"'/g
14044t clear
14045:clear
14046s/\\$//
14047t bsnlc
14048s/["\\]/\\&/g; s/^/"/; s/$/"/p
14049d
14050:bsnlc
14051s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14052b cont
14053' <confdefs.h | sed '
14054s/'"$ac_delim"'/"\\\
14055"/g' >>$CONFIG_STATUS || ac_write_fail=1
14056
14057cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14058 for (key in D) D_is_set[key] = 1
14059 FS = "\a"
14060}
14061/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14062 line = \$ 0
14063 split(line, arg, " ")
14064 if (arg[1] == "#") {
14065 defundef = arg[2]
14066 mac1 = arg[3]
14067 } else {
14068 defundef = substr(arg[1], 2)
14069 mac1 = arg[2]
14070 }
14071 split(mac1, mac2, "(") #)
14072 macro = mac2[1]
14073 prefix = substr(line, 1, index(line, defundef) - 1)
14074 if (D_is_set[macro]) {
14075 # Preserve the white space surrounding the "#".
14076 print prefix "define", macro P[macro] D[macro]
14077 next
14078 } else {
14079 # Replace #undef with comments. This is necessary, for example,
14080 # in the case of _POSIX_SOURCE, which is predefined and required
14081 # on some systems where configure will not decide to define it.
14082 if (defundef == "undef") {
14083 print "/*", prefix defundef, macro, "*/"
14084 next
14085 }
14086 }
14087}
14088{ print }
14089_ACAWK
14090_ACEOF
14091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14092 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14093fi # test -n "$CONFIG_HEADERS"
14094
14095
14096eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14097shift
14098for ac_tag
14099do
14100 case $ac_tag in
14101 :[FHLC]) ac_mode=$ac_tag; continue;;
14102 esac
14103 case $ac_mode$ac_tag in
14104 :[FHL]*:*);;
14105 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14106 :[FH]-) ac_tag=-:-;;
14107 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14108 esac
14109 ac_save_IFS=$IFS
14110 IFS=:
14111 set x $ac_tag
14112 IFS=$ac_save_IFS
14113 shift
14114 ac_file=$1
14115 shift
14116
14117 case $ac_mode in
14118 :L) ac_source=$1;;
14119 :[FH])
14120 ac_file_inputs=
14121 for ac_f
14122 do
14123 case $ac_f in
14124 -) ac_f="$tmp/stdin";;
14125 *) # Look for the file first in the build tree, then in the source tree
14126 # (if the path is not absolute). The absolute path cannot be DOS-style,
14127 # because $ac_f cannot contain `:'.
14128 test -f "$ac_f" ||
14129 case $ac_f in
14130 [\\/$]*) false;;
14131 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14132 esac ||
14133 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14134 esac
14135 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14136 as_fn_append ac_file_inputs " '$ac_f'"
14137 done
14138
14139 # Let's still pretend it is `configure' which instantiates (i.e., don't
14140 # use $as_me), people would be surprised to read:
14141 # /* config.h. Generated by config.status. */
14142 configure_input='Generated from '`
14143 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14144 `' by configure.'
14145 if test x"$ac_file" != x-; then
14146 configure_input="$ac_file. $configure_input"
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14148$as_echo "$as_me: creating $ac_file" >&6;}
14149 fi
14150 # Neutralize special characters interpreted by sed in replacement strings.
14151 case $configure_input in #(
14152 *\&* | *\|* | *\\* )
14153 ac_sed_conf_input=`$as_echo "$configure_input" |
14154 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14155 *) ac_sed_conf_input=$configure_input;;
14156 esac
14157
14158 case $ac_tag in
14159 *:-:* | *:-) cat >"$tmp/stdin" \
14160 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14161 esac
14162 ;;
14163 esac
14164
14165 ac_dir=`$as_dirname -- "$ac_file" ||
14166$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14167 X"$ac_file" : 'X\(//\)[^/]' \| \
14168 X"$ac_file" : 'X\(//\)$' \| \
14169 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14170$as_echo X"$ac_file" |
14171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14172 s//\1/
14173 q
14174 }
14175 /^X\(\/\/\)[^/].*/{
14176 s//\1/
14177 q
14178 }
14179 /^X\(\/\/\)$/{
14180 s//\1/
14181 q
14182 }
14183 /^X\(\/\).*/{
14184 s//\1/
14185 q
14186 }
14187 s/.*/./; q'`
14188 as_dir="$ac_dir"; as_fn_mkdir_p
14189 ac_builddir=.
14190
14191case "$ac_dir" in
14192.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14193*)
14194 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14195 # A ".." for each directory in $ac_dir_suffix.
14196 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14197 case $ac_top_builddir_sub in
14198 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14199 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14200 esac ;;
14201esac
14202ac_abs_top_builddir=$ac_pwd
14203ac_abs_builddir=$ac_pwd$ac_dir_suffix
14204# for backward compatibility:
14205ac_top_builddir=$ac_top_build_prefix
14206
14207case $srcdir in
14208 .) # We are building in place.
14209 ac_srcdir=.
14210 ac_top_srcdir=$ac_top_builddir_sub
14211 ac_abs_top_srcdir=$ac_pwd ;;
14212 [\\/]* | ?:[\\/]* ) # Absolute name.
14213 ac_srcdir=$srcdir$ac_dir_suffix;
14214 ac_top_srcdir=$srcdir
14215 ac_abs_top_srcdir=$srcdir ;;
14216 *) # Relative name.
14217 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14218 ac_top_srcdir=$ac_top_build_prefix$srcdir
14219 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14220esac
14221ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14222
14223
14224 case $ac_mode in
14225 :F)
14226 #
14227 # CONFIG_FILE
14228 #
14229
14230 case $INSTALL in
14231 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14232 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14233 esac
14234 ac_MKDIR_P=$MKDIR_P
14235 case $MKDIR_P in
14236 [\\/$]* | ?:[\\/]* ) ;;
14237 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14238 esac
14239_ACEOF
14240
14241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14242# If the template does not know about datarootdir, expand it.
14243# FIXME: This hack should be removed a few years after 2.60.
14244ac_datarootdir_hack=; ac_datarootdir_seen=
14245ac_sed_dataroot='
14246/datarootdir/ {
14247 p
14248 q
14249}
14250/@datadir@/p
14251/@docdir@/p
14252/@infodir@/p
14253/@localedir@/p
14254/@mandir@/p'
14255case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14256*datarootdir*) ac_datarootdir_seen=yes;;
14257*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14259$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14260_ACEOF
14261cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14262 ac_datarootdir_hack='
14263 s&@datadir@&$datadir&g
14264 s&@docdir@&$docdir&g
14265 s&@infodir@&$infodir&g
14266 s&@localedir@&$localedir&g
14267 s&@mandir@&$mandir&g
14268 s&\\\${datarootdir}&$datarootdir&g' ;;
14269esac
14270_ACEOF
14271
14272# Neutralize VPATH when `$srcdir' = `.'.
14273# Shell code in configure.ac might set extrasub.
14274# FIXME: do we really want to maintain this feature?
14275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14276ac_sed_extra="$ac_vpsub
14277$extrasub
14278_ACEOF
14279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14280:t
14281/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14282s|@configure_input@|$ac_sed_conf_input|;t t
14283s&@top_builddir@&$ac_top_builddir_sub&;t t
14284s&@top_build_prefix@&$ac_top_build_prefix&;t t
14285s&@srcdir@&$ac_srcdir&;t t
14286s&@abs_srcdir@&$ac_abs_srcdir&;t t
14287s&@top_srcdir@&$ac_top_srcdir&;t t
14288s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14289s&@builddir@&$ac_builddir&;t t
14290s&@abs_builddir@&$ac_abs_builddir&;t t
14291s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14292s&@INSTALL@&$ac_INSTALL&;t t
14293s&@MKDIR_P@&$ac_MKDIR_P&;t t
14294$ac_datarootdir_hack
14295"
14296eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14297 || as_fn_error "could not create $ac_file" "$LINENO" 5
14298
14299test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14300 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14301 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14303which seems to be undefined. Please make sure it is defined." >&5
14304$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14305which seems to be undefined. Please make sure it is defined." >&2;}
14306
14307 rm -f "$tmp/stdin"
14308 case $ac_file in
14309 -) cat "$tmp/out" && rm -f "$tmp/out";;
14310 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14311 esac \
14312 || as_fn_error "could not create $ac_file" "$LINENO" 5
14313 ;;
14314 :H)
14315 #
14316 # CONFIG_HEADER
14317 #
14318 if test x"$ac_file" != x-; then
14319 {
14320 $as_echo "/* $configure_input */" \
14321 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14322 } >"$tmp/config.h" \
14323 || as_fn_error "could not create $ac_file" "$LINENO" 5
14324 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14326$as_echo "$as_me: $ac_file is unchanged" >&6;}
14327 else
14328 rm -f "$ac_file"
14329 mv "$tmp/config.h" "$ac_file" \
14330 || as_fn_error "could not create $ac_file" "$LINENO" 5
14331 fi
14332 else
14333 $as_echo "/* $configure_input */" \
14334 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14335 || as_fn_error "could not create -" "$LINENO" 5
14336 fi
14337# Compute "$ac_file"'s index in $config_headers.
14338_am_arg="$ac_file"
14339_am_stamp_count=1
14340for _am_header in $config_headers :; do
14341 case $_am_header in
14342 $_am_arg | $_am_arg:* )
14343 break ;;
14344 * )
14345 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14346 esac
14347done
14348echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14349$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14350 X"$_am_arg" : 'X\(//\)[^/]' \| \
14351 X"$_am_arg" : 'X\(//\)$' \| \
14352 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14353$as_echo X"$_am_arg" |
14354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14355 s//\1/
14356 q
14357 }
14358 /^X\(\/\/\)[^/].*/{
14359 s//\1/
14360 q
14361 }
14362 /^X\(\/\/\)$/{
14363 s//\1/
14364 q
14365 }
14366 /^X\(\/\).*/{
14367 s//\1/
14368 q
14369 }
14370 s/.*/./; q'`/stamp-h$_am_stamp_count
14371 ;;
14372
14373 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14374$as_echo "$as_me: executing $ac_file commands" >&6;}
14375 ;;
14376 esac
14377
14378
14379 case $ac_file$ac_mode in
14380 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14381 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14382 # are listed without --file. Let's play safe and only enable the eval
14383 # if we detect the quoting.
14384 case $CONFIG_FILES in
14385 *\'*) eval set x "$CONFIG_FILES" ;;
14386 *) set x $CONFIG_FILES ;;
14387 esac
14388 shift
14389 for mf
14390 do
14391 # Strip MF so we end up with the name of the file.
14392 mf=`echo "$mf" | sed -e 's/:.*$//'`
14393 # Check whether this is an Automake generated Makefile or not.
14394 # We used to match only the files named `Makefile.in', but
14395 # some people rename them; so instead we look at the file content.
14396 # Grep'ing the first line is not enough: some people post-process
14397 # each Makefile.in and add a new line on top of each file to say so.
14398 # Grep'ing the whole file is not good either: AIX grep has a line
14399 # limit of 2048, but all sed's we know have understand at least 4000.
14400 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14401 dirpart=`$as_dirname -- "$mf" ||
14402$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14403 X"$mf" : 'X\(//\)[^/]' \| \
14404 X"$mf" : 'X\(//\)$' \| \
14405 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14406$as_echo X"$mf" |
14407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14408 s//\1/
14409 q
14410 }
14411 /^X\(\/\/\)[^/].*/{
14412 s//\1/
14413 q
14414 }
14415 /^X\(\/\/\)$/{
14416 s//\1/
14417 q
14418 }
14419 /^X\(\/\).*/{
14420 s//\1/
14421 q
14422 }
14423 s/.*/./; q'`
14424 else
14425 continue
14426 fi
14427 # Extract the definition of DEPDIR, am__include, and am__quote
14428 # from the Makefile without running `make'.
14429 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14430 test -z "$DEPDIR" && continue
14431 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14432 test -z "am__include" && continue
14433 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14434 # When using ansi2knr, U may be empty or an underscore; expand it
14435 U=`sed -n 's/^U = //p' < "$mf"`
14436 # Find all dependency output files, they are included files with
14437 # $(DEPDIR) in their names. We invoke sed twice because it is the
14438 # simplest approach to changing $(DEPDIR) to its actual value in the
14439 # expansion.
14440 for file in `sed -n "
14441 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14442 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14443 # Make sure the directory exists.
14444 test -f "$dirpart/$file" && continue
14445 fdir=`$as_dirname -- "$file" ||
14446$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14447 X"$file" : 'X\(//\)[^/]' \| \
14448 X"$file" : 'X\(//\)$' \| \
14449 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14450$as_echo X"$file" |
14451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14452 s//\1/
14453 q
14454 }
14455 /^X\(\/\/\)[^/].*/{
14456 s//\1/
14457 q
14458 }
14459 /^X\(\/\/\)$/{
14460 s//\1/
14461 q
14462 }
14463 /^X\(\/\).*/{
14464 s//\1/
14465 q
14466 }
14467 s/.*/./; q'`
14468 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14469 # echo "creating $dirpart/$file"
14470 echo '# dummy' > "$dirpart/$file"
14471 done
14472 done
14473}
14474 ;;
14475 "libtool":C)
14476
14477 # See if we are running on zsh, and set the options which allow our
14478 # commands through without removal of \ escapes.
14479 if test -n "${ZSH_VERSION+set}" ; then
14480 setopt NO_GLOB_SUBST
14481 fi
14482
14483 cfgfile="${ofile}T"
14484 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14485 $RM "$cfgfile"
14486
14487 cat <<_LT_EOF >> "$cfgfile"
14488#! $SHELL
14489
14490# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14491# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14492# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14493# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14494#
14495# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14496# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14497# Written by Gordon Matzigkeit, 1996
14498#
14499# This file is part of GNU Libtool.
14500#
14501# GNU Libtool is free software; you can redistribute it and/or
14502# modify it under the terms of the GNU General Public License as
14503# published by the Free Software Foundation; either version 2 of
14504# the License, or (at your option) any later version.
14505#
14506# As a special exception to the GNU General Public License,
14507# if you distribute this file as part of a program or library that
14508# is built using GNU Libtool, you may include this file under the
14509# same distribution terms that you use for the rest of that program.
14510#
14511# GNU Libtool is distributed in the hope that it will be useful,
14512# but WITHOUT ANY WARRANTY; without even the implied warranty of
14513# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14514# GNU General Public License for more details.
14515#
14516# You should have received a copy of the GNU General Public License
14517# along with GNU Libtool; see the file COPYING. If not, a copy
14518# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14519# obtained by writing to the Free Software Foundation, Inc.,
14520# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14521
14522
14523# The names of the tagged configurations supported by this script.
14524available_tags=""
14525
14526# ### BEGIN LIBTOOL CONFIG
14527
14528# Which release of libtool.m4 was used?
14529macro_version=$macro_version
14530macro_revision=$macro_revision
14531
14532# Whether or not to build shared libraries.
14533build_libtool_libs=$enable_shared
14534
14535# Whether or not to build static libraries.
14536build_old_libs=$enable_static
14537
14538# What type of objects to build.
14539pic_mode=$pic_mode
14540
14541# Whether or not to optimize for fast installation.
14542fast_install=$enable_fast_install
14543
14544# Shell to use when invoking shell scripts.
14545SHELL=$lt_SHELL
14546
14547# An echo program that protects backslashes.
14548ECHO=$lt_ECHO
14549
14550# The host system.
14551host_alias=$host_alias
14552host=$host
14553host_os=$host_os
14554
14555# The build system.
14556build_alias=$build_alias
14557build=$build
14558build_os=$build_os
14559
14560# A sed program that does not truncate output.
14561SED=$lt_SED
14562
14563# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14564Xsed="\$SED -e 1s/^X//"
14565
14566# A grep program that handles long lines.
14567GREP=$lt_GREP
14568
14569# An ERE matcher.
14570EGREP=$lt_EGREP
14571
14572# A literal string matcher.
14573FGREP=$lt_FGREP
14574
14575# A BSD- or MS-compatible name lister.
14576NM=$lt_NM
14577
14578# Whether we need soft or hard links.
14579LN_S=$lt_LN_S
14580
14581# What is the maximum length of a command?
14582max_cmd_len=$max_cmd_len
14583
14584# Object file suffix (normally "o").
14585objext=$ac_objext
14586
14587# Executable file suffix (normally "").
14588exeext=$exeext
14589
14590# whether the shell understands "unset".
14591lt_unset=$lt_unset
14592
14593# turn spaces into newlines.
14594SP2NL=$lt_lt_SP2NL
14595
14596# turn newlines into spaces.
14597NL2SP=$lt_lt_NL2SP
14598
14599# An object symbol dumper.
14600OBJDUMP=$lt_OBJDUMP
14601
14602# Method to check whether dependent libraries are shared objects.
14603deplibs_check_method=$lt_deplibs_check_method
14604
14605# Command to use when deplibs_check_method == "file_magic".
14606file_magic_cmd=$lt_file_magic_cmd
14607
14608# The archiver.
14609AR=$lt_AR
14610AR_FLAGS=$lt_AR_FLAGS
14611
14612# A symbol stripping program.
14613STRIP=$lt_STRIP
14614
14615# Commands used to install an old-style archive.
14616RANLIB=$lt_RANLIB
14617old_postinstall_cmds=$lt_old_postinstall_cmds
14618old_postuninstall_cmds=$lt_old_postuninstall_cmds
14619
14620# Whether to use a lock for old archive extraction.
14621lock_old_archive_extraction=$lock_old_archive_extraction
14622
14623# A C compiler.
14624LTCC=$lt_CC
14625
14626# LTCC compiler flags.
14627LTCFLAGS=$lt_CFLAGS
14628
14629# Take the output of nm and produce a listing of raw symbols and C names.
14630global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14631
14632# Transform the output of nm in a proper C declaration.
14633global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14634
14635# Transform the output of nm in a C name address pair.
14636global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14637
14638# Transform the output of nm in a C name address pair when lib prefix is needed.
14639global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14640
14641# The name of the directory that contains temporary libtool files.
14642objdir=$objdir
14643
14644# Used to examine libraries when file_magic_cmd begins with "file".
14645MAGIC_CMD=$MAGIC_CMD
14646
14647# Must we lock files when doing compilation?
14648need_locks=$lt_need_locks
14649
14650# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14651DSYMUTIL=$lt_DSYMUTIL
14652
14653# Tool to change global to local symbols on Mac OS X.
14654NMEDIT=$lt_NMEDIT
14655
14656# Tool to manipulate fat objects and archives on Mac OS X.
14657LIPO=$lt_LIPO
14658
14659# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14660OTOOL=$lt_OTOOL
14661
14662# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14663OTOOL64=$lt_OTOOL64
14664
14665# Old archive suffix (normally "a").
14666libext=$libext
14667
14668# Shared library suffix (normally ".so").
14669shrext_cmds=$lt_shrext_cmds
14670
14671# The commands to extract the exported symbol list from a shared archive.
14672extract_expsyms_cmds=$lt_extract_expsyms_cmds
14673
14674# Variables whose values should be saved in libtool wrapper scripts and
14675# restored at link time.
14676variables_saved_for_relink=$lt_variables_saved_for_relink
14677
14678# Do we need the "lib" prefix for modules?
14679need_lib_prefix=$need_lib_prefix
14680
14681# Do we need a version for libraries?
14682need_version=$need_version
14683
14684# Library versioning type.
14685version_type=$version_type
14686
14687# Shared library runtime path variable.
14688runpath_var=$runpath_var
14689
14690# Shared library path variable.
14691shlibpath_var=$shlibpath_var
14692
14693# Is shlibpath searched before the hard-coded library search path?
14694shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14695
14696# Format of library name prefix.
14697libname_spec=$lt_libname_spec
14698
14699# List of archive names. First name is the real one, the rest are links.
14700# The last name is the one that the linker finds with -lNAME
14701library_names_spec=$lt_library_names_spec
14702
14703# The coded name of the library, if different from the real name.
14704soname_spec=$lt_soname_spec
14705
14706# Permission mode override for installation of shared libraries.
14707install_override_mode=$lt_install_override_mode
14708
14709# Command to use after installation of a shared archive.
14710postinstall_cmds=$lt_postinstall_cmds
14711
14712# Command to use after uninstallation of a shared archive.
14713postuninstall_cmds=$lt_postuninstall_cmds
14714
14715# Commands used to finish a libtool library installation in a directory.
14716finish_cmds=$lt_finish_cmds
14717
14718# As "finish_cmds", except a single script fragment to be evaled but
14719# not shown.
14720finish_eval=$lt_finish_eval
14721
14722# Whether we should hardcode library paths into libraries.
14723hardcode_into_libs=$hardcode_into_libs
14724
14725# Compile-time system search path for libraries.
14726sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14727
14728# Run-time system search path for libraries.
14729sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14730
14731# Whether dlopen is supported.
14732dlopen_support=$enable_dlopen
14733
14734# Whether dlopen of programs is supported.
14735dlopen_self=$enable_dlopen_self
14736
14737# Whether dlopen of statically linked programs is supported.
14738dlopen_self_static=$enable_dlopen_self_static
14739
14740# Commands to strip libraries.
14741old_striplib=$lt_old_striplib
14742striplib=$lt_striplib
14743
14744
14745# The linker used to build libraries.
14746LD=$lt_LD
14747
14748# How to create reloadable object files.
14749reload_flag=$lt_reload_flag
14750reload_cmds=$lt_reload_cmds
14751
14752# Commands used to build an old-style archive.
14753old_archive_cmds=$lt_old_archive_cmds
14754
14755# A language specific compiler.
14756CC=$lt_compiler
14757
14758# Is the compiler the GNU compiler?
14759with_gcc=$GCC
14760
14761# Compiler flag to turn off builtin functions.
14762no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14763
14764# How to pass a linker flag through the compiler.
14765wl=$lt_lt_prog_compiler_wl
14766
14767# Additional compiler flags for building library objects.
14768pic_flag=$lt_lt_prog_compiler_pic
14769
14770# Compiler flag to prevent dynamic linking.
14771link_static_flag=$lt_lt_prog_compiler_static
14772
14773# Does compiler simultaneously support -c and -o options?
14774compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14775
14776# Whether or not to add -lc for building shared libraries.
14777build_libtool_need_lc=$archive_cmds_need_lc
14778
14779# Whether or not to disallow shared libs when runtime libs are static.
14780allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14781
14782# Compiler flag to allow reflexive dlopens.
14783export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14784
14785# Compiler flag to generate shared objects directly from archives.
14786whole_archive_flag_spec=$lt_whole_archive_flag_spec
14787
14788# Whether the compiler copes with passing no objects directly.
14789compiler_needs_object=$lt_compiler_needs_object
14790
14791# Create an old-style archive from a shared archive.
14792old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14793
14794# Create a temporary old-style archive to link instead of a shared archive.
14795old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14796
14797# Commands used to build a shared archive.
14798archive_cmds=$lt_archive_cmds
14799archive_expsym_cmds=$lt_archive_expsym_cmds
14800
14801# Commands used to build a loadable module if different from building
14802# a shared archive.
14803module_cmds=$lt_module_cmds
14804module_expsym_cmds=$lt_module_expsym_cmds
14805
14806# Whether we are building with GNU ld or not.
14807with_gnu_ld=$lt_with_gnu_ld
14808
14809# Flag that allows shared libraries with undefined symbols to be built.
14810allow_undefined_flag=$lt_allow_undefined_flag
14811
14812# Flag that enforces no undefined symbols.
14813no_undefined_flag=$lt_no_undefined_flag
14814
14815# Flag to hardcode \$libdir into a binary during linking.
14816# This must work even if \$libdir does not exist
14817hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14818
14819# If ld is used when linking, flag to hardcode \$libdir into a binary
14820# during linking. This must work even if \$libdir does not exist.
14821hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14822
14823# Whether we need a single "-rpath" flag with a separated argument.
14824hardcode_libdir_separator=$lt_hardcode_libdir_separator
14825
14826# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14827# DIR into the resulting binary.
14828hardcode_direct=$hardcode_direct
14829
14830# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14831# DIR into the resulting binary and the resulting library dependency is
14832# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14833# library is relocated.
14834hardcode_direct_absolute=$hardcode_direct_absolute
14835
14836# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14837# into the resulting binary.
14838hardcode_minus_L=$hardcode_minus_L
14839
14840# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14841# into the resulting binary.
14842hardcode_shlibpath_var=$hardcode_shlibpath_var
14843
14844# Set to "yes" if building a shared library automatically hardcodes DIR
14845# into the library and all subsequent libraries and executables linked
14846# against it.
14847hardcode_automatic=$hardcode_automatic
14848
14849# Set to yes if linker adds runtime paths of dependent libraries
14850# to runtime path list.
14851inherit_rpath=$inherit_rpath
14852
14853# Whether libtool must link a program against all its dependency libraries.
14854link_all_deplibs=$link_all_deplibs
14855
14856# Fix the shell variable \$srcfile for the compiler.
14857fix_srcfile_path=$lt_fix_srcfile_path
14858
14859# Set to "yes" if exported symbols are required.
14860always_export_symbols=$always_export_symbols
14861
14862# The commands to list exported symbols.
14863export_symbols_cmds=$lt_export_symbols_cmds
14864
14865# Symbols that should not be listed in the preloaded symbols.
14866exclude_expsyms=$lt_exclude_expsyms
14867
14868# Symbols that must always be exported.
14869include_expsyms=$lt_include_expsyms
14870
14871# Commands necessary for linking programs (against libraries) with templates.
14872prelink_cmds=$lt_prelink_cmds
14873
14874# Specify filename containing input files.
14875file_list_spec=$lt_file_list_spec
14876
14877# How to hardcode a shared library path into an executable.
14878hardcode_action=$hardcode_action
14879
14880# ### END LIBTOOL CONFIG
14881
14882_LT_EOF
14883
14884 case $host_os in
14885 aix3*)
14886 cat <<\_LT_EOF >> "$cfgfile"
14887# AIX sometimes has problems with the GCC collect2 program. For some
14888# reason, if we set the COLLECT_NAMES environment variable, the problems
14889# vanish in a puff of smoke.
14890if test "X${COLLECT_NAMES+set}" != Xset; then
14891 COLLECT_NAMES=
14892 export COLLECT_NAMES
14893fi
14894_LT_EOF
14895 ;;
14896 esac
14897
14898
14899ltmain="$ac_aux_dir/ltmain.sh"
14900
14901
14902 # We use sed instead of cat because bash on DJGPP gets confused if
14903 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14904 # text mode, it properly converts lines to CR/LF. This bash problem
14905 # is reportedly fixed, but why not run on old versions too?
14906 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14907 || (rm -f "$cfgfile"; exit 1)
14908
14909 case $xsi_shell in
14910 yes)
14911 cat << \_LT_EOF >> "$cfgfile"
14912
14913# func_dirname file append nondir_replacement
14914# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14915# otherwise set result to NONDIR_REPLACEMENT.
14916func_dirname ()
14917{
14918 case ${1} in
14919 */*) func_dirname_result="${1%/*}${2}" ;;
14920 * ) func_dirname_result="${3}" ;;
14921 esac
14922}
14923
14924# func_basename file
14925func_basename ()
14926{
14927 func_basename_result="${1##*/}"
14928}
14929
14930# func_dirname_and_basename file append nondir_replacement
14931# perform func_basename and func_dirname in a single function
14932# call:
14933# dirname: Compute the dirname of FILE. If nonempty,
14934# add APPEND to the result, otherwise set result
14935# to NONDIR_REPLACEMENT.
14936# value returned in "$func_dirname_result"
14937# basename: Compute filename of FILE.
14938# value retuned in "$func_basename_result"
14939# Implementation must be kept synchronized with func_dirname
14940# and func_basename. For efficiency, we do not delegate to
14941# those functions but instead duplicate the functionality here.
14942func_dirname_and_basename ()
14943{
14944 case ${1} in
14945 */*) func_dirname_result="${1%/*}${2}" ;;
14946 * ) func_dirname_result="${3}" ;;
14947 esac
14948 func_basename_result="${1##*/}"
14949}
14950
14951# func_stripname prefix suffix name
14952# strip PREFIX and SUFFIX off of NAME.
14953# PREFIX and SUFFIX must not contain globbing or regex special
14954# characters, hashes, percent signs, but SUFFIX may contain a leading
14955# dot (in which case that matches only a dot).
14956func_stripname ()
14957{
14958 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14959 # positional parameters, so assign one to ordinary parameter first.
14960 func_stripname_result=${3}
14961 func_stripname_result=${func_stripname_result#"${1}"}
14962 func_stripname_result=${func_stripname_result%"${2}"}
14963}
14964
14965# func_opt_split
14966func_opt_split ()
14967{
14968 func_opt_split_opt=${1%%=*}
14969 func_opt_split_arg=${1#*=}
14970}
14971
14972# func_lo2o object
14973func_lo2o ()
14974{
14975 case ${1} in
14976 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14977 *) func_lo2o_result=${1} ;;
14978 esac
14979}
14980
14981# func_xform libobj-or-source
14982func_xform ()
14983{
14984 func_xform_result=${1%.*}.lo
14985}
14986
14987# func_arith arithmetic-term...
14988func_arith ()
14989{
14990 func_arith_result=$(( $* ))
14991}
14992
14993# func_len string
14994# STRING may not start with a hyphen.
14995func_len ()
14996{
14997 func_len_result=${#1}
14998}
14999
15000_LT_EOF
15001 ;;
15002 *) # Bourne compatible functions.
15003 cat << \_LT_EOF >> "$cfgfile"
15004
15005# func_dirname file append nondir_replacement
15006# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15007# otherwise set result to NONDIR_REPLACEMENT.
15008func_dirname ()
15009{
15010 # Extract subdirectory from the argument.
15011 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15012 if test "X$func_dirname_result" = "X${1}"; then
15013 func_dirname_result="${3}"
15014 else
15015 func_dirname_result="$func_dirname_result${2}"
15016 fi
15017}
15018
15019# func_basename file
15020func_basename ()
15021{
15022 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15023}
15024
15025
15026# func_stripname prefix suffix name
15027# strip PREFIX and SUFFIX off of NAME.
15028# PREFIX and SUFFIX must not contain globbing or regex special
15029# characters, hashes, percent signs, but SUFFIX may contain a leading
15030# dot (in which case that matches only a dot).
15031# func_strip_suffix prefix name
15032func_stripname ()
15033{
15034 case ${2} in
15035 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15036 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15037 esac
15038}
15039
15040# sed scripts:
15041my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15042my_sed_long_arg='1s/^-[^=]*=//'
15043
15044# func_opt_split
15045func_opt_split ()
15046{
15047 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15048 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15049}
15050
15051# func_lo2o object
15052func_lo2o ()
15053{
15054 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15055}
15056
15057# func_xform libobj-or-source
15058func_xform ()
15059{
15060 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15061}
15062
15063# func_arith arithmetic-term...
15064func_arith ()
15065{
15066 func_arith_result=`expr "$@"`
15067}
15068
15069# func_len string
15070# STRING may not start with a hyphen.
15071func_len ()
15072{
15073 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15074}
15075
15076_LT_EOF
15077esac
15078
15079case $lt_shell_append in
15080 yes)
15081 cat << \_LT_EOF >> "$cfgfile"
15082
15083# func_append var value
15084# Append VALUE to the end of shell variable VAR.
15085func_append ()
15086{
15087 eval "$1+=\$2"
15088}
15089_LT_EOF
15090 ;;
15091 *)
15092 cat << \_LT_EOF >> "$cfgfile"
15093
15094# func_append var value
15095# Append VALUE to the end of shell variable VAR.
15096func_append ()
15097{
15098 eval "$1=\$$1\$2"
15099}
15100
15101_LT_EOF
15102 ;;
15103 esac
15104
15105
15106 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15107 || (rm -f "$cfgfile"; exit 1)
15108
15109 mv -f "$cfgfile" "$ofile" ||
15110 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15111 chmod +x "$ofile"
15112
15113 ;;
15114 "default-1":C)
15115# Only add multilib support code if we just rebuilt the top-level
15116# Makefile.
15117case " $CONFIG_FILES " in
15118 *" Makefile "*)
15119 ac_file=Makefile . ${multi_basedir}/config-ml.in
15120 ;;
15121esac ;;
15122
15123 esac
15124done # for ac_tag
15125
15126
15127as_fn_exit 0
15128_ACEOF
15129ac_clean_files=$ac_clean_files_save
15130
15131test $ac_write_fail = 0 ||
15132 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15133
15134
15135# configure is writing to config.log, and then calls config.status.
15136# config.status does its own redirection, appending to config.log.
15137# Unfortunately, on DOS this fails, as config.log is still kept open
15138# by configure, so config.status won't be able to write to it; its
15139# output is simply discarded. So we exec the FD to /dev/null,
15140# effectively closing config.log, so it can be properly (re)opened and
15141# appended to by config.status. When coming back to configure, we
15142# need to make the FD available again.
15143if test "$no_create" != yes; then
15144 ac_cs_success=:
15145 ac_config_status_args=
15146 test "$silent" = yes &&
15147 ac_config_status_args="$ac_config_status_args --quiet"
15148 exec 5>/dev/null
15149 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15150 exec 5>>config.log
15151 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15152 # would make configure fail if this is the last instruction.
15153 $ac_cs_success || as_fn_exit $?
15154fi
15155if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15157$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15158fi
15159