]> git.ipfire.org Git - thirdparty/gcc.git/blame - libquadmath/configure
PR c++/78358 - tuple decomposition decltype
[thirdparty/gcc.git] / libquadmath / configure
CommitLineData
87969c8c 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
0c0fb0a6 172test \$(( 1 + 1 )) = 2 || exit 1
87969c8c 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\" \\
0c0fb0a6 180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
87969c8c 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
d6580113 604GENINSRC_FALSE
605GENINSRC_TRUE
87969c8c 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
87969c8c 616MAINT
617MAINTAINER_MODE_FALSE
618MAINTAINER_MODE_TRUE
619enable_static
620enable_shared
8c35d268 621lt_host_flags
87969c8c 622OTOOL64
623OTOOL
624LIPO
625NMEDIT
626DSYMUTIL
627RANLIB
628AR
629OBJDUMP
630LN_S
631NM
632ac_ct_DUMPBIN
633DUMPBIN
634LD
635FGREP
0c0fb0a6 636SED
637LIBTOOL
638REPORT_BUGS_TEXI
639REPORT_BUGS_TO
640BUILD_INFO_FALSE
641BUILD_INFO_TRUE
87969c8c 642EGREP
643GREP
0c0fb0a6 644CPP
87969c8c 645am__fastdepCC_FALSE
646am__fastdepCC_TRUE
647CCDEPMODE
91fc47e3 648am__nodep
87969c8c 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
9f2a666b 685multi_basedir
cb3103a1 686target_noncanonical
87969c8c 687target_os
688target_vendor
689target_cpu
690target
691host_os
692host_vendor
693host_cpu
694host
695build_os
696build_vendor
697build_cpu
698build
699target_alias
700host_alias
701build_alias
702LIBS
703ECHO_T
704ECHO_N
705ECHO_C
706DEFS
707mandir
708localedir
709libdir
710psdir
711pdfdir
712dvidir
713htmldir
714infodir
715docdir
716oldincludedir
717includedir
718localstatedir
719sharedstatedir
720sysconfdir
721datadir
722datarootdir
723libexecdir
724sbindir
725bindir
726program_transform_name
727prefix
728exec_prefix
729PACKAGE_URL
730PACKAGE_BUGREPORT
731PACKAGE_STRING
732PACKAGE_VERSION
733PACKAGE_TARNAME
734PACKAGE_NAME
735PATH_SEPARATOR
736SHELL'
737ac_subst_files=''
738ac_user_opts='
739enable_option_checking
9f2a666b 740enable_multilib
87969c8c 741enable_version_specific_runtime_libs
0c0fb0a6 742enable_dependency_tracking
95cdaa86 743with_bugurl
87969c8c 744enable_shared
745enable_static
746with_pic
747enable_fast_install
748with_gnu_ld
749enable_libtool_lock
750enable_maintainer_mode
bbb514dc 751enable_symvers
d6580113 752enable_generated_files_in_srcdir
87969c8c 753'
754 ac_precious_vars='build_alias
755host_alias
756target_alias
757CC
758CFLAGS
759LDFLAGS
760LIBS
761CPPFLAGS
762CPP'
763
764
765# Initialize some variables set by options.
766ac_init_help=
767ac_init_version=false
768ac_unrecognized_opts=
769ac_unrecognized_sep=
770# The variables have the same names as the options, with
771# dashes changed to underlines.
772cache_file=/dev/null
773exec_prefix=NONE
774no_create=
775no_recursion=
776prefix=NONE
777program_prefix=NONE
778program_suffix=NONE
779program_transform_name=s,x,x,
780silent=
781site=
782srcdir=
783verbose=
784x_includes=NONE
785x_libraries=NONE
786
787# Installation directory options.
788# These are left unexpanded so users can "make install exec_prefix=/foo"
789# and all the variables that are supposed to be based on exec_prefix
790# by default will actually change.
791# Use braces instead of parens because sh, perl, etc. also accept them.
792# (The list follows the same order as the GNU Coding Standards.)
793bindir='${exec_prefix}/bin'
794sbindir='${exec_prefix}/sbin'
795libexecdir='${exec_prefix}/libexec'
796datarootdir='${prefix}/share'
797datadir='${datarootdir}'
798sysconfdir='${prefix}/etc'
799sharedstatedir='${prefix}/com'
800localstatedir='${prefix}/var'
801includedir='${prefix}/include'
802oldincludedir='/usr/include'
803docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
804infodir='${datarootdir}/info'
805htmldir='${docdir}'
806dvidir='${docdir}'
807pdfdir='${docdir}'
808psdir='${docdir}'
809libdir='${exec_prefix}/lib'
810localedir='${datarootdir}/locale'
811mandir='${datarootdir}/man'
812
813ac_prev=
814ac_dashdash=
815for ac_option
816do
817 # If the previous option needs an argument, assign it.
818 if test -n "$ac_prev"; then
819 eval $ac_prev=\$ac_option
820 ac_prev=
821 continue
822 fi
823
824 case $ac_option in
825 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
826 *) ac_optarg=yes ;;
827 esac
828
829 # Accept the important Cygnus configure options, so we can diagnose typos.
830
831 case $ac_dashdash$ac_option in
832 --)
833 ac_dashdash=yes ;;
834
835 -bindir | --bindir | --bindi | --bind | --bin | --bi)
836 ac_prev=bindir ;;
837 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
838 bindir=$ac_optarg ;;
839
840 -build | --build | --buil | --bui | --bu)
841 ac_prev=build_alias ;;
842 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
843 build_alias=$ac_optarg ;;
844
845 -cache-file | --cache-file | --cache-fil | --cache-fi \
846 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
847 ac_prev=cache_file ;;
848 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
849 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
850 cache_file=$ac_optarg ;;
851
852 --config-cache | -C)
853 cache_file=config.cache ;;
854
855 -datadir | --datadir | --datadi | --datad)
856 ac_prev=datadir ;;
857 -datadir=* | --datadir=* | --datadi=* | --datad=*)
858 datadir=$ac_optarg ;;
859
860 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
861 | --dataroo | --dataro | --datar)
862 ac_prev=datarootdir ;;
863 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
864 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
865 datarootdir=$ac_optarg ;;
866
867 -disable-* | --disable-*)
868 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871 as_fn_error "invalid feature name: $ac_useropt"
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
875 *"
876"enable_$ac_useropt"
877"*) ;;
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
880 esac
881 eval enable_$ac_useropt=no ;;
882
883 -docdir | --docdir | --docdi | --doc | --do)
884 ac_prev=docdir ;;
885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886 docdir=$ac_optarg ;;
887
888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889 ac_prev=dvidir ;;
890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891 dvidir=$ac_optarg ;;
892
893 -enable-* | --enable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
901 *"
902"enable_$ac_useropt"
903"*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=\$ac_optarg ;;
908
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
916 exec_prefix=$ac_optarg ;;
917
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
920 with_gas=yes ;;
921
922 -help | --help | --hel | --he | -h)
923 ac_init_help=long ;;
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
928
929 -host | --host | --hos | --ho)
930 ac_prev=host_alias ;;
931 -host=* | --host=* | --hos=* | --ho=*)
932 host_alias=$ac_optarg ;;
933
934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 ac_prev=htmldir ;;
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 | --ht=*)
938 htmldir=$ac_optarg ;;
939
940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
945 includedir=$ac_optarg ;;
946
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 ac_prev=infodir ;;
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950 infodir=$ac_optarg ;;
951
952 -libdir | --libdir | --libdi | --libd)
953 ac_prev=libdir ;;
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
955 libdir=$ac_optarg ;;
956
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
962 libexecdir=$ac_optarg ;;
963
964 -localedir | --localedir | --localedi | --localed | --locale)
965 ac_prev=localedir ;;
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
968
969 -localstatedir | --localstatedir | --localstatedi | --localstated \
970 | --localstate | --localstat | --localsta | --localst | --locals)
971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974 localstatedir=$ac_optarg ;;
975
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 ac_prev=mandir ;;
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979 mandir=$ac_optarg ;;
980
981 -nfp | --nfp | --nf)
982 # Obsolete; use --without-fp.
983 with_fp=no ;;
984
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986 | --no-cr | --no-c | -n)
987 no_create=yes ;;
988
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 no_recursion=yes ;;
992
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000 oldincludedir=$ac_optarg ;;
1001
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 ac_prev=prefix ;;
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005 prefix=$ac_optarg ;;
1006
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012 program_prefix=$ac_optarg ;;
1013
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019 program_suffix=$ac_optarg ;;
1020
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 program_transform_name=$ac_optarg ;;
1037
1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 ac_prev=pdfdir ;;
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1042
1043 -psdir | --psdir | --psdi | --psd | --ps)
1044 ac_prev=psdir ;;
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 psdir=$ac_optarg ;;
1047
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 silent=yes ;;
1051
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 ac_prev=sbindir ;;
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 | --sbi=* | --sb=*)
1056 sbindir=$ac_optarg ;;
1057
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1061 | --sha | --sh)
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 | --sha=* | --sh=*)
1067 sharedstatedir=$ac_optarg ;;
1068
1069 -site | --site | --sit)
1070 ac_prev=site ;;
1071 -site=* | --site=* | --sit=*)
1072 site=$ac_optarg ;;
1073
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 ac_prev=srcdir ;;
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077 srcdir=$ac_optarg ;;
1078
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084 sysconfdir=$ac_optarg ;;
1085
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
1087 ac_prev=target_alias ;;
1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089 target_alias=$ac_optarg ;;
1090
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 verbose=yes ;;
1093
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
1096
1097 -with-* | --with-*)
1098 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error "invalid package name: $ac_useropt"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1105 *"
1106"with_$ac_useropt"
1107"*) ;;
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1110 esac
1111 eval with_$ac_useropt=\$ac_optarg ;;
1112
1113 -without-* | --without-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122"with_$ac_useropt"
1123"*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=no ;;
1128
1129 --x)
1130 # Obsolete; use --with-x.
1131 with_x=yes ;;
1132
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1139
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1146
1147 -*) as_fn_error "unrecognized option: \`$ac_option'
1148Try \`$0 --help' for more information."
1149 ;;
1150
1151 *=*)
1152 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153 # Reject names that are not valid shell variable names.
1154 case $ac_envvar in #(
1155 '' | [0-9]* | *[!_$as_cr_alnum]* )
1156 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1157 esac
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1160
1161 *)
1162 # FIXME: should be removed in autoconf 3.0.
1163 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167 ;;
1168
1169 esac
1170done
1171
1172if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 as_fn_error "missing argument to $ac_option"
1175fi
1176
1177if test -n "$ac_unrecognized_opts"; then
1178 case $enable_option_checking in
1179 no) ;;
1180 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1181 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1182 esac
1183fi
1184
1185# Check all directory arguments for consistency.
1186for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1187 datadir sysconfdir sharedstatedir localstatedir includedir \
1188 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1189 libdir localedir mandir
1190do
1191 eval ac_val=\$$ac_var
1192 # Remove trailing slashes.
1193 case $ac_val in
1194 */ )
1195 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1196 eval $ac_var=\$ac_val;;
1197 esac
1198 # Be sure to have absolute directory names.
1199 case $ac_val in
1200 [\\/$]* | ?:[\\/]* ) continue;;
1201 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1202 esac
1203 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1204done
1205
1206# There might be people who depend on the old broken behavior: `$host'
1207# used to hold the argument of --host etc.
1208# FIXME: To remove some day.
1209build=$build_alias
1210host=$host_alias
1211target=$target_alias
1212
1213# FIXME: To remove some day.
1214if test "x$host_alias" != x; then
1215 if test "x$build_alias" = x; then
1216 cross_compiling=maybe
1217 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1218 If a cross compiler is detected then cross compile mode will be used." >&2
1219 elif test "x$build_alias" != "x$host_alias"; then
1220 cross_compiling=yes
1221 fi
1222fi
1223
1224ac_tool_prefix=
1225test -n "$host_alias" && ac_tool_prefix=$host_alias-
1226
1227test "$silent" = yes && exec 6>/dev/null
1228
1229
1230ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231ac_ls_di=`ls -di .` &&
1232ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233 as_fn_error "working directory cannot be determined"
1234test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235 as_fn_error "pwd does not report name of working directory"
1236
1237
1238# Find the source files, if location was not specified.
1239if test -z "$srcdir"; then
1240 ac_srcdir_defaulted=yes
1241 # Try the directory containing this script, then the parent directory.
1242 ac_confdir=`$as_dirname -- "$as_myself" ||
1243$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 X"$as_myself" : 'X\(//\)[^/]' \| \
1245 X"$as_myself" : 'X\(//\)$' \| \
1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247$as_echo X"$as_myself" |
1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249 s//\1/
1250 q
1251 }
1252 /^X\(\/\/\)[^/].*/{
1253 s//\1/
1254 q
1255 }
1256 /^X\(\/\/\)$/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\).*/{
1261 s//\1/
1262 q
1263 }
1264 s/.*/./; q'`
1265 srcdir=$ac_confdir
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 srcdir=..
1268 fi
1269else
1270 ac_srcdir_defaulted=no
1271fi
1272if test ! -r "$srcdir/$ac_unique_file"; then
1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1275fi
1276ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277ac_abs_confdir=`(
1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1279 pwd)`
1280# When building in place, set srcdir=.
1281if test "$ac_abs_confdir" = "$ac_pwd"; then
1282 srcdir=.
1283fi
1284# Remove unnecessary trailing slashes from srcdir.
1285# Double slashes in file names in object file debugging info
1286# mess up M-x gdb in Emacs.
1287case $srcdir in
1288*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289esac
1290for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295done
1296
1297#
1298# Report the --help message.
1299#
1300if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1303 cat <<_ACEOF
1304\`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
1305
1306Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309VAR=VALUE. See below for descriptions of some of the useful variables.
1310
1311Defaults for the options are specified in brackets.
1312
1313Configuration:
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1323
1324Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1328 [PREFIX]
1329
1330By default, \`make install' will install all the files in
1331\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333for instance \`--prefix=\$HOME'.
1334
1335For better control, use the options below.
1336
1337Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
1357_ACEOF
1358
1359 cat <<\_ACEOF
1360
1361Program names:
1362 --program-prefix=PREFIX prepend PREFIX to installed program names
1363 --program-suffix=SUFFIX append SUFFIX to installed program names
1364 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1365
1366System types:
1367 --build=BUILD configure for building on BUILD [guessed]
1368 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1369 --target=TARGET configure for building compilers for TARGET [HOST]
1370_ACEOF
1371fi
1372
1373if test -n "$ac_init_help"; then
1374 case $ac_init_help in
1375 short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
1376 esac
1377 cat <<\_ACEOF
1378
1379Optional Features:
1380 --disable-option-checking ignore unrecognized --enable/--with options
1381 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1382 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9f2a666b 1383 --enable-multilib build many library versions (default)
d6580113 1384 --enable-version-specific-runtime-libs
1385 specify that runtime libraries should be installed
1386 in a compiler-specific directory
0c0fb0a6 1387 --disable-dependency-tracking speeds up one-time build
1388 --enable-dependency-tracking do not reject slow dependency extractors
87969c8c 1389 --enable-shared[=PKGS] build shared libraries [default=yes]
1390 --enable-static[=PKGS] build static libraries [default=yes]
1391 --enable-fast-install[=PKGS]
1392 optimize for fast installation [default=yes]
1393 --disable-libtool-lock avoid locking (might break parallel builds)
1394 --enable-maintainer-mode enable make rules and dependencies not useful
1395 (and sometimes confusing) to the casual installer
bbb514dc 1396 --disable-symvers disable symbol versioning for libquadmath
d6580113 1397 --enable-generated-files-in-srcdir
1398 put copies of generated files in source dir intended
1399 for creating source tarballs for users without
1400 texinfo bison or flex
87969c8c 1401
1402Optional Packages:
1403 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1404 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
95cdaa86 1405 --with-bugurl=URL Direct users to URL to report a bug
87969c8c 1406 --with-pic try to use only PIC/non-PIC objects [default=use
1407 both]
1408 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1409
1410Some influential environment variables:
1411 CC C compiler command
1412 CFLAGS C compiler flags
1413 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1414 nonstandard directory <lib dir>
1415 LIBS libraries to pass to the linker, e.g. -l<library>
1416 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1417 you have headers in a nonstandard directory <include dir>
1418 CPP C preprocessor
1419
1420Use these variables to override the choices made by `configure' or to help
1421it to find libraries and programs with nonstandard names/locations.
1422
1423Report bugs to the package provider.
1424_ACEOF
1425ac_status=$?
1426fi
1427
1428if test "$ac_init_help" = "recursive"; then
1429 # If there are subdirs, report their specific --help.
1430 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431 test -d "$ac_dir" ||
1432 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1433 continue
1434 ac_builddir=.
1435
1436case "$ac_dir" in
1437.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438*)
1439 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440 # A ".." for each directory in $ac_dir_suffix.
1441 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442 case $ac_top_builddir_sub in
1443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445 esac ;;
1446esac
1447ac_abs_top_builddir=$ac_pwd
1448ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449# for backward compatibility:
1450ac_top_builddir=$ac_top_build_prefix
1451
1452case $srcdir in
1453 .) # We are building in place.
1454 ac_srcdir=.
1455 ac_top_srcdir=$ac_top_builddir_sub
1456 ac_abs_top_srcdir=$ac_pwd ;;
1457 [\\/]* | ?:[\\/]* ) # Absolute name.
1458 ac_srcdir=$srcdir$ac_dir_suffix;
1459 ac_top_srcdir=$srcdir
1460 ac_abs_top_srcdir=$srcdir ;;
1461 *) # Relative name.
1462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463 ac_top_srcdir=$ac_top_build_prefix$srcdir
1464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465esac
1466ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1467
1468 cd "$ac_dir" || { ac_status=$?; continue; }
1469 # Check for guested configure.
1470 if test -f "$ac_srcdir/configure.gnu"; then
1471 echo &&
1472 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473 elif test -f "$ac_srcdir/configure"; then
1474 echo &&
1475 $SHELL "$ac_srcdir/configure" --help=recursive
1476 else
1477 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478 fi || ac_status=$?
1479 cd "$ac_pwd" || { ac_status=$?; break; }
1480 done
1481fi
1482
1483test -n "$ac_init_help" && exit $ac_status
1484if $ac_init_version; then
1485 cat <<\_ACEOF
1486GCC Quad-precision Math Library configure 0.1
1487generated by GNU Autoconf 2.64
1488
1489Copyright (C) 2009 Free Software Foundation, Inc.
1490This configure script is free software; the Free Software Foundation
1491gives unlimited permission to copy, distribute and modify it.
1492_ACEOF
1493 exit
1494fi
1495
1496## ------------------------ ##
1497## Autoconf initialization. ##
1498## ------------------------ ##
1499
1500# ac_fn_c_try_compile LINENO
1501# --------------------------
1502# Try to compile conftest.$ac_ext, and return whether this succeeded.
1503ac_fn_c_try_compile ()
1504{
1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506 rm -f conftest.$ac_objext
1507 if { { ac_try="$ac_compile"
1508case "(($ac_try" in
1509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510 *) ac_try_echo=$ac_try;;
1511esac
1512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513$as_echo "$ac_try_echo"; } >&5
1514 (eval "$ac_compile") 2>conftest.err
1515 ac_status=$?
1516 if test -s conftest.err; then
1517 grep -v '^ *+' conftest.err >conftest.er1
1518 cat conftest.er1 >&5
1519 mv -f conftest.er1 conftest.err
1520 fi
1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522 test $ac_status = 0; } && {
1523 test -z "$ac_c_werror_flag" ||
1524 test ! -s conftest.err
1525 } && test -s conftest.$ac_objext; then :
1526 ac_retval=0
1527else
1528 $as_echo "$as_me: failed program was:" >&5
1529sed 's/^/| /' conftest.$ac_ext >&5
1530
1531 ac_retval=1
1532fi
1533 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1534 return $ac_retval
1535
1536} # ac_fn_c_try_compile
1537
0c0fb0a6 1538# ac_fn_c_try_cpp LINENO
1539# ----------------------
1540# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1541ac_fn_c_try_cpp ()
87969c8c 1542{
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
0c0fb0a6 1544 if { { ac_try="$ac_cpp conftest.$ac_ext"
87969c8c 1545case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548esac
1549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550$as_echo "$ac_try_echo"; } >&5
0c0fb0a6 1551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
87969c8c 1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1557 fi
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
0c0fb0a6 1559 test $ac_status = 0; } >/dev/null && {
1560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
87969c8c 1561 test ! -s conftest.err
87969c8c 1562 }; then :
1563 ac_retval=0
1564else
1565 $as_echo "$as_me: failed program was:" >&5
1566sed 's/^/| /' conftest.$ac_ext >&5
1567
0c0fb0a6 1568 ac_retval=1
87969c8c 1569fi
87969c8c 1570 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1571 return $ac_retval
1572
0c0fb0a6 1573} # ac_fn_c_try_cpp
87969c8c 1574
0c0fb0a6 1575# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
87969c8c 1576# -------------------------------------------------------
0c0fb0a6 1577# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1578# the include files in INCLUDES and setting the cache variable VAR
1579# accordingly.
1580ac_fn_c_check_header_mongrel ()
87969c8c 1581{
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
0c0fb0a6 1583 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
87969c8c 1584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1585$as_echo_n "checking for $2... " >&6; }
1586if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1587 $as_echo_n "(cached) " >&6
0c0fb0a6 1588fi
1589eval ac_res=\$$3
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1591$as_echo "$ac_res" >&6; }
87969c8c 1592else
0c0fb0a6 1593 # Is the header compilable?
1594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1595$as_echo_n "checking $2 usability... " >&6; }
1596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969c8c 1597/* end confdefs.h. */
1598$4
1599#include <$2>
1600_ACEOF
1601if ac_fn_c_try_compile "$LINENO"; then :
0c0fb0a6 1602 ac_header_compiler=yes
87969c8c 1603else
0c0fb0a6 1604 ac_header_compiler=no
87969c8c 1605fi
1606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0c0fb0a6 1607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1608$as_echo "$ac_header_compiler" >&6; }
87969c8c 1609
0c0fb0a6 1610# Is the header present?
1611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1612$as_echo_n "checking $2 presence... " >&6; }
1613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614/* end confdefs.h. */
1615#include <$2>
1616_ACEOF
1617if ac_fn_c_try_cpp "$LINENO"; then :
1618 ac_header_preproc=yes
1619else
1620 ac_header_preproc=no
1621fi
1622rm -f conftest.err conftest.$ac_ext
1623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1624$as_echo "$ac_header_preproc" >&6; }
87969c8c 1625
0c0fb0a6 1626# So? What about this header?
1627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1628 yes:no: )
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1630$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1632$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1633 ;;
1634 no:yes:* )
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1636$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1638$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1640$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1642$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1644$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1645 ;;
87969c8c 1646esac
0c0fb0a6 1647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648$as_echo_n "checking for $2... " >&6; }
1649if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1650 $as_echo_n "(cached) " >&6
87969c8c 1651else
0c0fb0a6 1652 eval "$3=\$ac_header_compiler"
1653fi
1654eval ac_res=\$$3
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1656$as_echo "$ac_res" >&6; }
87969c8c 1657fi
1658 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
87969c8c 1659
0c0fb0a6 1660} # ac_fn_c_check_header_mongrel
87969c8c 1661
1662# ac_fn_c_try_run LINENO
1663# ----------------------
1664# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1665# that executables *can* be run.
1666ac_fn_c_try_run ()
1667{
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 if { { ac_try="$ac_link"
1670case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673esac
1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675$as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_link") 2>&5
1677 ac_status=$?
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1680 { { case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683esac
1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685$as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_try") 2>&5
1687 ac_status=$?
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; }; }; then :
1690 ac_retval=0
1691else
1692 $as_echo "$as_me: program exited with status $ac_status" >&5
1693 $as_echo "$as_me: failed program was:" >&5
1694sed 's/^/| /' conftest.$ac_ext >&5
1695
1696 ac_retval=$ac_status
1697fi
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1700 return $ac_retval
1701
1702} # ac_fn_c_try_run
1703
0c0fb0a6 1704# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1705# -------------------------------------------------------
1706# Tests whether HEADER exists and can be compiled using the include files in
1707# INCLUDES, setting the cache variable VAR accordingly.
1708ac_fn_c_check_header_compile ()
1709{
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712$as_echo_n "checking for $2... " >&6; }
1713if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1714 $as_echo_n "(cached) " >&6
1715else
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717/* end confdefs.h. */
1718$4
1719#include <$2>
1720_ACEOF
1721if ac_fn_c_try_compile "$LINENO"; then :
1722 eval "$3=yes"
1723else
1724 eval "$3=no"
1725fi
1726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727fi
1728eval ac_res=\$$3
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730$as_echo "$ac_res" >&6; }
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732
1733} # ac_fn_c_check_header_compile
1734
1735# ac_fn_c_try_link LINENO
1736# -----------------------
1737# Try to link conftest.$ac_ext, and return whether this succeeded.
1738ac_fn_c_try_link ()
1739{
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext conftest$ac_exeext
1742 if { { ac_try="$ac_link"
1743case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1755 fi
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest$ac_exeext && {
1761 test "$cross_compiling" = yes ||
1762 $as_test_x conftest$ac_exeext
1763 }; then :
1764 ac_retval=0
1765else
1766 $as_echo "$as_me: failed program was:" >&5
1767sed 's/^/| /' conftest.$ac_ext >&5
1768
1769 ac_retval=1
1770fi
1771 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1772 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1773 # interfere with the next link command; also delete a directory that is
1774 # left behind by Apple's compiler. We do this before executing the actions.
1775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1777 return $ac_retval
1778
1779} # ac_fn_c_try_link
1780
87969c8c 1781# ac_fn_c_check_func LINENO FUNC VAR
1782# ----------------------------------
1783# Tests whether FUNC exists, setting the cache variable VAR accordingly
1784ac_fn_c_check_func ()
1785{
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788$as_echo_n "checking for $2... " >&6; }
1789if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1790 $as_echo_n "(cached) " >&6
1791else
cb3103a1 1792 if test x$gcc_no_link = xyes; then
1793 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1794fi
1795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969c8c 1796/* end confdefs.h. */
1797/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1799#define $2 innocuous_$2
1800
1801/* System header to define __stub macros and hopefully few prototypes,
1802 which can conflict with char $2 (); below.
1803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1804 <limits.h> exists even on freestanding compilers. */
1805
1806#ifdef __STDC__
1807# include <limits.h>
1808#else
1809# include <assert.h>
1810#endif
1811
1812#undef $2
1813
1814/* Override any GCC internal prototype to avoid an error.
1815 Use char because int might match the return type of a GCC
1816 builtin and then its argument prototype would still apply. */
1817#ifdef __cplusplus
1818extern "C"
1819#endif
1820char $2 ();
1821/* The GNU C library defines this for functions which it implements
1822 to always fail with ENOSYS. Some functions are actually named
1823 something starting with __ and the normal name is an alias. */
1824#if defined __stub_$2 || defined __stub___$2
1825choke me
1826#endif
1827
1828int
1829main ()
1830{
1831return $2 ();
1832 ;
1833 return 0;
1834}
1835_ACEOF
1836if ac_fn_c_try_link "$LINENO"; then :
1837 eval "$3=yes"
1838else
1839 eval "$3=no"
1840fi
1841rm -f core conftest.err conftest.$ac_objext \
1842 conftest$ac_exeext conftest.$ac_ext
1843fi
1844eval ac_res=\$$3
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846$as_echo "$ac_res" >&6; }
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848
1849} # ac_fn_c_check_func
0c0fb0a6 1850cat >config.log <<_ACEOF
1851This file contains any messages produced by compilers while
1852running configure, to aid debugging if configure makes a mistake.
bcaa791f 1853
0c0fb0a6 1854It was created by GCC Quad-precision Math Library $as_me 0.1, which was
1855generated by GNU Autoconf 2.64. Invocation command line was
1856
1857 $ $0 $@
1858
1859_ACEOF
1860exec 5>>config.log
87969c8c 1861{
1862cat <<_ASUNAME
1863## --------- ##
1864## Platform. ##
1865## --------- ##
1866
1867hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1868uname -m = `(uname -m) 2>/dev/null || echo unknown`
1869uname -r = `(uname -r) 2>/dev/null || echo unknown`
1870uname -s = `(uname -s) 2>/dev/null || echo unknown`
1871uname -v = `(uname -v) 2>/dev/null || echo unknown`
1872
1873/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1874/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1875
1876/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1877/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1878/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1879/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1880/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1881/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1882/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1883
1884_ASUNAME
1885
1886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887for as_dir in $PATH
1888do
1889 IFS=$as_save_IFS
1890 test -z "$as_dir" && as_dir=.
1891 $as_echo "PATH: $as_dir"
1892 done
1893IFS=$as_save_IFS
1894
1895} >&5
1896
1897cat >&5 <<_ACEOF
1898
1899
1900## ----------- ##
1901## Core tests. ##
1902## ----------- ##
1903
1904_ACEOF
1905
1906
1907# Keep a trace of the command line.
1908# Strip out --no-create and --no-recursion so they do not pile up.
1909# Strip out --silent because we don't want to record it for future runs.
1910# Also quote any args containing shell meta-characters.
1911# Make two passes to allow for proper duplicate-argument suppression.
1912ac_configure_args=
1913ac_configure_args0=
1914ac_configure_args1=
1915ac_must_keep_next=false
1916for ac_pass in 1 2
1917do
1918 for ac_arg
1919 do
1920 case $ac_arg in
1921 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1923 | -silent | --silent | --silen | --sile | --sil)
1924 continue ;;
1925 *\'*)
1926 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1927 esac
1928 case $ac_pass in
1929 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1930 2)
1931 as_fn_append ac_configure_args1 " '$ac_arg'"
1932 if test $ac_must_keep_next = true; then
1933 ac_must_keep_next=false # Got value, back to normal.
1934 else
1935 case $ac_arg in
1936 *=* | --config-cache | -C | -disable-* | --disable-* \
1937 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1938 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1939 | -with-* | --with-* | -without-* | --without-* | --x)
1940 case "$ac_configure_args0 " in
1941 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1942 esac
1943 ;;
1944 -* ) ac_must_keep_next=true ;;
1945 esac
1946 fi
1947 as_fn_append ac_configure_args " '$ac_arg'"
1948 ;;
1949 esac
1950 done
1951done
1952{ ac_configure_args0=; unset ac_configure_args0;}
1953{ ac_configure_args1=; unset ac_configure_args1;}
1954
1955# When interrupted or exit'd, cleanup temporary files, and complete
1956# config.log. We remove comments because anyway the quotes in there
1957# would cause problems or look ugly.
1958# WARNING: Use '\'' to represent an apostrophe within the trap.
1959# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1960trap 'exit_status=$?
1961 # Save into config.log some information that might help in debugging.
1962 {
1963 echo
1964
1965 cat <<\_ASBOX
1966## ---------------- ##
1967## Cache variables. ##
1968## ---------------- ##
1969_ASBOX
1970 echo
1971 # The following way of writing the cache mishandles newlines in values,
1972(
1973 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1974 eval ac_val=\$$ac_var
1975 case $ac_val in #(
1976 *${as_nl}*)
1977 case $ac_var in #(
1978 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1979$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1980 esac
1981 case $ac_var in #(
1982 _ | IFS | as_nl) ;; #(
1983 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1984 *) { eval $ac_var=; unset $ac_var;} ;;
1985 esac ;;
1986 esac
1987 done
1988 (set) 2>&1 |
1989 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1990 *${as_nl}ac_space=\ *)
1991 sed -n \
1992 "s/'\''/'\''\\\\'\'''\''/g;
1993 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1994 ;; #(
1995 *)
1996 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1997 ;;
1998 esac |
1999 sort
2000)
2001 echo
2002
2003 cat <<\_ASBOX
2004## ----------------- ##
2005## Output variables. ##
2006## ----------------- ##
2007_ASBOX
2008 echo
2009 for ac_var in $ac_subst_vars
2010 do
2011 eval ac_val=\$$ac_var
2012 case $ac_val in
2013 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2014 esac
2015 $as_echo "$ac_var='\''$ac_val'\''"
2016 done | sort
2017 echo
2018
2019 if test -n "$ac_subst_files"; then
2020 cat <<\_ASBOX
2021## ------------------- ##
2022## File substitutions. ##
2023## ------------------- ##
2024_ASBOX
2025 echo
2026 for ac_var in $ac_subst_files
2027 do
2028 eval ac_val=\$$ac_var
2029 case $ac_val in
2030 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031 esac
2032 $as_echo "$ac_var='\''$ac_val'\''"
2033 done | sort
2034 echo
2035 fi
2036
2037 if test -s confdefs.h; then
2038 cat <<\_ASBOX
2039## ----------- ##
2040## confdefs.h. ##
2041## ----------- ##
2042_ASBOX
2043 echo
2044 cat confdefs.h
2045 echo
2046 fi
2047 test "$ac_signal" != 0 &&
2048 $as_echo "$as_me: caught signal $ac_signal"
2049 $as_echo "$as_me: exit $exit_status"
2050 } >&5
2051 rm -f core *.core core.conftest.* &&
2052 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2053 exit $exit_status
2054' 0
2055for ac_signal in 1 2 13 15; do
2056 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2057done
2058ac_signal=0
2059
2060# confdefs.h avoids OS command line length limits that DEFS can exceed.
2061rm -f -r conftest* confdefs.h
2062
2063$as_echo "/* confdefs.h */" > confdefs.h
2064
2065# Predefined preprocessor variables.
2066
2067cat >>confdefs.h <<_ACEOF
2068#define PACKAGE_NAME "$PACKAGE_NAME"
2069_ACEOF
2070
2071cat >>confdefs.h <<_ACEOF
2072#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2073_ACEOF
2074
2075cat >>confdefs.h <<_ACEOF
2076#define PACKAGE_VERSION "$PACKAGE_VERSION"
2077_ACEOF
2078
2079cat >>confdefs.h <<_ACEOF
2080#define PACKAGE_STRING "$PACKAGE_STRING"
2081_ACEOF
2082
2083cat >>confdefs.h <<_ACEOF
2084#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2085_ACEOF
2086
2087cat >>confdefs.h <<_ACEOF
2088#define PACKAGE_URL "$PACKAGE_URL"
2089_ACEOF
2090
2091
2092# Let the site file select an alternate cache file if it wants to.
2093# Prefer an explicitly selected file to automatically selected ones.
2094ac_site_file1=NONE
2095ac_site_file2=NONE
2096if test -n "$CONFIG_SITE"; then
2097 ac_site_file1=$CONFIG_SITE
2098elif test "x$prefix" != xNONE; then
2099 ac_site_file1=$prefix/share/config.site
2100 ac_site_file2=$prefix/etc/config.site
2101else
2102 ac_site_file1=$ac_default_prefix/share/config.site
2103 ac_site_file2=$ac_default_prefix/etc/config.site
2104fi
2105for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2106do
2107 test "x$ac_site_file" = xNONE && continue
2108 if test -r "$ac_site_file"; then
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2110$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2111 sed 's/^/| /' "$ac_site_file" >&5
2112 . "$ac_site_file"
2113 fi
2114done
2115
2116if test -r "$cache_file"; then
2117 # Some versions of bash will fail to source /dev/null (special
2118 # files actually), so we avoid doing that.
2119 if test -f "$cache_file"; then
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2121$as_echo "$as_me: loading cache $cache_file" >&6;}
2122 case $cache_file in
2123 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2124 *) . "./$cache_file";;
2125 esac
2126 fi
2127else
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2129$as_echo "$as_me: creating cache $cache_file" >&6;}
2130 >$cache_file
2131fi
2132
2133# Check that the precious variables saved in the cache have kept the same
2134# value.
2135ac_cache_corrupted=false
2136for ac_var in $ac_precious_vars; do
2137 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2138 eval ac_new_set=\$ac_env_${ac_var}_set
2139 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2140 eval ac_new_val=\$ac_env_${ac_var}_value
2141 case $ac_old_set,$ac_new_set in
2142 set,)
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2144$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2145 ac_cache_corrupted=: ;;
2146 ,set)
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2148$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2149 ac_cache_corrupted=: ;;
2150 ,);;
2151 *)
2152 if test "x$ac_old_val" != "x$ac_new_val"; then
2153 # differences in whitespace do not lead to failure.
2154 ac_old_val_w=`echo x $ac_old_val`
2155 ac_new_val_w=`echo x $ac_new_val`
2156 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2158$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2159 ac_cache_corrupted=:
2160 else
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2162$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2163 eval $ac_var=\$ac_old_val
2164 fi
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2166$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2168$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2169 fi;;
2170 esac
2171 # Pass precious variables to config.status.
2172 if test "$ac_new_set" = set; then
2173 case $ac_new_val in
2174 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2175 *) ac_arg=$ac_var=$ac_new_val ;;
2176 esac
2177 case " $ac_configure_args " in
2178 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2179 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2180 esac
2181 fi
2182done
2183if $ac_cache_corrupted; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2187$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2188 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2189fi
2190## -------------------- ##
2191## Main body of script. ##
2192## -------------------- ##
2193
2194ac_ext=c
2195ac_cpp='$CPP $CPPFLAGS'
2196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2198ac_compiler_gnu=$ac_cv_c_compiler_gnu
2199
2200
2201
2202
2203
2204ac_config_headers="$ac_config_headers config.h"
2205
2206
2207# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2208#
2209# You will slowly go insane if you do not grok the following fact: when
2210# building this library, the top-level /target/ becomes the library's /host/.
2211#
2212# configure then causes --target to default to --host, exactly like any
2213# other package using autoconf. Therefore, 'target' and 'host' will
2214# always be the same. This makes sense both for native and cross compilers
2215# just think about it for a little while. :-)
2216#
2217# Also, if this library is being configured as part of a cross compiler, the
2218# top-level configure script will pass the "real" host as $with_cross_host.
2219#
2220# Do not delete or change the following two lines. For why, see
2221# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2222ac_aux_dir=
2223for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2224 for ac_t in install-sh install.sh shtool; do
2225 if test -f "$ac_dir/$ac_t"; then
2226 ac_aux_dir=$ac_dir
2227 ac_install_sh="$ac_aux_dir/$ac_t -c"
2228 break 2
2229 fi
2230 done
2231done
2232if test -z "$ac_aux_dir"; then
2233 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2234fi
2235
2236# These three variables are undocumented and unsupported,
2237# and are intended to be withdrawn in a future Autoconf release.
2238# They can cause serious problems if a builder's source tree is in a directory
2239# whose full name contains unusual characters.
2240ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2241ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2242ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2243
2244
2245# Make sure we can run config.sub.
2246$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2247 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2248
2249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2250$as_echo_n "checking build system type... " >&6; }
2251if test "${ac_cv_build+set}" = set; then :
2252 $as_echo_n "(cached) " >&6
2253else
2254 ac_build_alias=$build_alias
2255test "x$ac_build_alias" = x &&
2256 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2257test "x$ac_build_alias" = x &&
2258 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2259ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2260 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2261
2262fi
2263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2264$as_echo "$ac_cv_build" >&6; }
2265case $ac_cv_build in
2266*-*-*) ;;
2267*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2268esac
2269build=$ac_cv_build
2270ac_save_IFS=$IFS; IFS='-'
2271set x $ac_cv_build
2272shift
2273build_cpu=$1
2274build_vendor=$2
2275shift; shift
2276# Remember, the first character of IFS is used to create $*,
2277# except with old shells:
2278build_os=$*
2279IFS=$ac_save_IFS
2280case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2281
2282
2283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2284$as_echo_n "checking host system type... " >&6; }
2285if test "${ac_cv_host+set}" = set; then :
2286 $as_echo_n "(cached) " >&6
2287else
2288 if test "x$host_alias" = x; then
2289 ac_cv_host=$ac_cv_build
2290else
2291 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2292 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2293fi
2294
2295fi
2296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2297$as_echo "$ac_cv_host" >&6; }
2298case $ac_cv_host in
2299*-*-*) ;;
2300*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2301esac
2302host=$ac_cv_host
2303ac_save_IFS=$IFS; IFS='-'
2304set x $ac_cv_host
2305shift
2306host_cpu=$1
2307host_vendor=$2
2308shift; shift
2309# Remember, the first character of IFS is used to create $*,
2310# except with old shells:
2311host_os=$*
2312IFS=$ac_save_IFS
2313case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2314
2315
2316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2317$as_echo_n "checking target system type... " >&6; }
2318if test "${ac_cv_target+set}" = set; then :
2319 $as_echo_n "(cached) " >&6
2320else
2321 if test "x$target_alias" = x; then
2322 ac_cv_target=$ac_cv_host
2323else
2324 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2325 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2326fi
2327
2328fi
2329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2330$as_echo "$ac_cv_target" >&6; }
2331case $ac_cv_target in
2332*-*-*) ;;
2333*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2334esac
2335target=$ac_cv_target
2336ac_save_IFS=$IFS; IFS='-'
2337set x $ac_cv_target
2338shift
2339target_cpu=$1
2340target_vendor=$2
2341shift; shift
2342# Remember, the first character of IFS is used to create $*,
2343# except with old shells:
2344target_os=$*
2345IFS=$ac_save_IFS
2346case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2347
2348
2349# The aliases save the names the user supplied, while $host etc.
2350# will get canonicalized.
2351test -n "$target_alias" &&
2352 test "$program_prefix$program_suffix$program_transform_name" = \
2353 NONENONEs,x,x, &&
2354 program_prefix=${target_alias}-
2355
cb3103a1 2356 case ${build_alias} in
2357 "") build_noncanonical=${build} ;;
2358 *) build_noncanonical=${build_alias} ;;
2359esac
2360
2361 case ${host_alias} in
2362 "") host_noncanonical=${build_noncanonical} ;;
2363 *) host_noncanonical=${host_alias} ;;
2364esac
2365
2366 case ${target_alias} in
2367 "") target_noncanonical=${host_noncanonical} ;;
2368 *) target_noncanonical=${target_alias} ;;
2369esac
2370
2371
2372
2373
9f2a666b 2374# Default to --enable-multilib
2375# Check whether --enable-multilib was given.
2376if test "${enable_multilib+set}" = set; then :
2377 enableval=$enable_multilib; case "$enableval" in
2378 yes) multilib=yes ;;
2379 no) multilib=no ;;
2380 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2381 esac
2382else
2383 multilib=yes
2384fi
2385
2386
2387# We may get other options which we leave undocumented:
2388# --with-target-subdir, --with-multisrctop, --with-multisubdir
2389# See config-ml.in if you want the gory details.
2390
2391if test "$srcdir" = "."; then
2392 if test "$with_target_subdir" != "."; then
2393 multi_basedir="$srcdir/$with_multisrctop../.."
2394 else
2395 multi_basedir="$srcdir/$with_multisrctop.."
2396 fi
2397else
2398 multi_basedir="$srcdir/.."
2399fi
2400
2401
2402# Even if the default multilib is not a cross compilation,
2403# it may be that some of the other multilibs are.
2404if test $cross_compiling = no && test $multilib = yes \
2405 && test "x${with_multisubdir}" != x ; then
2406 cross_compiling=maybe
2407fi
2408
2409ac_config_commands="$ac_config_commands default-1"
2410
2411
87969c8c 2412target_alias=${target_alias-$host_alias}
2413
cb3103a1 2414
87969c8c 2415am__api_version='1.11'
2416
2417# Find a good install program. We prefer a C program (faster),
2418# so one script is as good as another. But avoid the broken or
2419# incompatible versions:
2420# SysV /etc/install, /usr/sbin/install
2421# SunOS /usr/etc/install
2422# IRIX /sbin/install
2423# AIX /bin/install
2424# AmigaOS /C/install, which installs bootblocks on floppy discs
2425# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2426# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2427# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2428# OS/2's system install, which has a completely different semantic
2429# ./install, which can be erroneously created by make from ./install.sh.
2430# Reject install programs that cannot install multiple files.
2431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2432$as_echo_n "checking for a BSD-compatible install... " >&6; }
2433if test -z "$INSTALL"; then
2434if test "${ac_cv_path_install+set}" = set; then :
2435 $as_echo_n "(cached) " >&6
2436else
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438for as_dir in $PATH
2439do
2440 IFS=$as_save_IFS
2441 test -z "$as_dir" && as_dir=.
2442 # Account for people who put trailing slashes in PATH elements.
2443case $as_dir/ in #((
2444 ./ | .// | /[cC]/* | \
2445 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2446 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2447 /usr/ucb/* ) ;;
2448 *)
2449 # OSF1 and SCO ODT 3.0 have their own names for install.
2450 # Don't use installbsd from OSF since it installs stuff as root
2451 # by default.
2452 for ac_prog in ginstall scoinst install; do
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2455 if test $ac_prog = install &&
2456 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2457 # AIX install. It has an incompatible calling convention.
2458 :
2459 elif test $ac_prog = install &&
2460 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461 # program-specific install script used by HP pwplus--don't use.
2462 :
2463 else
2464 rm -rf conftest.one conftest.two conftest.dir
2465 echo one > conftest.one
2466 echo two > conftest.two
2467 mkdir conftest.dir
2468 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2469 test -s conftest.one && test -s conftest.two &&
2470 test -s conftest.dir/conftest.one &&
2471 test -s conftest.dir/conftest.two
2472 then
2473 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2474 break 3
2475 fi
2476 fi
2477 fi
2478 done
2479 done
2480 ;;
2481esac
2482
2483 done
2484IFS=$as_save_IFS
2485
2486rm -rf conftest.one conftest.two conftest.dir
2487
2488fi
2489 if test "${ac_cv_path_install+set}" = set; then
2490 INSTALL=$ac_cv_path_install
2491 else
2492 # As a last resort, use the slow shell script. Don't cache a
2493 # value for INSTALL within a source directory, because that will
2494 # break other packages using the cache if that directory is
2495 # removed, or if the value is a relative name.
2496 INSTALL=$ac_install_sh
2497 fi
2498fi
2499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2500$as_echo "$INSTALL" >&6; }
2501
2502# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2503# It thinks the first close brace ends the variable substitution.
2504test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2505
2506test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2507
2508test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2509
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2511$as_echo_n "checking whether build environment is sane... " >&6; }
2512# Just in case
2513sleep 1
2514echo timestamp > conftest.file
2515# Reject unsafe characters in $srcdir or the absolute working directory
2516# name. Accept space and tab only in the latter.
2517am_lf='
2518'
2519case `pwd` in
2520 *[\\\"\#\$\&\'\`$am_lf]*)
2521 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2522esac
2523case $srcdir in
2524 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2525 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2526esac
2527
2528# Do `set' in a subshell so we don't clobber the current shell's
2529# arguments. Must try -L first in case configure is actually a
2530# symlink; some systems play weird games with the mod time of symlinks
2531# (eg FreeBSD returns the mod time of the symlink's containing
2532# directory).
2533if (
2534 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2535 if test "$*" = "X"; then
2536 # -L didn't work.
2537 set X `ls -t "$srcdir/configure" conftest.file`
2538 fi
2539 rm -f conftest.file
2540 if test "$*" != "X $srcdir/configure conftest.file" \
2541 && test "$*" != "X conftest.file $srcdir/configure"; then
2542
2543 # If neither matched, then we have a broken ls. This can happen
2544 # if, for instance, CONFIG_SHELL is bash and it inherits a
2545 # broken ls alias from the environment. This has actually
2546 # happened. Such a system could not be considered "sane".
2547 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2548alias in your environment" "$LINENO" 5
2549 fi
2550
2551 test "$2" = conftest.file
2552 )
2553then
2554 # Ok.
2555 :
2556else
2557 as_fn_error "newly created file is older than distributed files!
2558Check your system clock" "$LINENO" 5
2559fi
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2561$as_echo "yes" >&6; }
2562test "$program_prefix" != NONE &&
2563 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2564# Use a double $ so make ignores it.
2565test "$program_suffix" != NONE &&
2566 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2567# Double any \ or $.
2568# By default was `s,x,x', remove it if useless.
2569ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2570program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2571
2572# expand $ac_aux_dir to an absolute path
2573am_aux_dir=`cd $ac_aux_dir && pwd`
2574
2575if test x"${MISSING+set}" != xset; then
2576 case $am_aux_dir in
2577 *\ * | *\ *)
2578 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2579 *)
2580 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2581 esac
2582fi
2583# Use eval to expand $SHELL
2584if eval "$MISSING --run true"; then
2585 am_missing_run="$MISSING --run "
2586else
2587 am_missing_run=
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2589$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2590fi
2591
2592if test x"${install_sh}" != xset; then
2593 case $am_aux_dir in
2594 *\ * | *\ *)
2595 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2596 *)
2597 install_sh="\${SHELL} $am_aux_dir/install-sh"
2598 esac
2599fi
2600
2601# Installed binaries are usually stripped using `strip' when the user
2602# run `make install-strip'. However `strip' might not be the right
2603# tool to use in cross-compilation environments, therefore Automake
2604# will honor the `STRIP' environment variable to overrule this program.
2605if test "$cross_compiling" != no; then
2606 if test -n "$ac_tool_prefix"; then
2607 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2608set dummy ${ac_tool_prefix}strip; ac_word=$2
2609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2610$as_echo_n "checking for $ac_word... " >&6; }
2611if test "${ac_cv_prog_STRIP+set}" = set; then :
2612 $as_echo_n "(cached) " >&6
2613else
2614 if test -n "$STRIP"; then
2615 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2616else
2617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618for as_dir in $PATH
2619do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2624 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 break 2
2627 fi
2628done
2629 done
2630IFS=$as_save_IFS
2631
2632fi
2633fi
2634STRIP=$ac_cv_prog_STRIP
2635if test -n "$STRIP"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2637$as_echo "$STRIP" >&6; }
2638else
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2640$as_echo "no" >&6; }
2641fi
2642
2643
2644fi
2645if test -z "$ac_cv_prog_STRIP"; then
2646 ac_ct_STRIP=$STRIP
2647 # Extract the first word of "strip", so it can be a program name with args.
2648set dummy strip; ac_word=$2
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2650$as_echo_n "checking for $ac_word... " >&6; }
2651if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2652 $as_echo_n "(cached) " >&6
2653else
2654 if test -n "$ac_ct_STRIP"; then
2655 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2656else
2657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658for as_dir in $PATH
2659do
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664 ac_cv_prog_ac_ct_STRIP="strip"
2665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 break 2
2667 fi
2668done
2669 done
2670IFS=$as_save_IFS
2671
2672fi
2673fi
2674ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2675if test -n "$ac_ct_STRIP"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2677$as_echo "$ac_ct_STRIP" >&6; }
2678else
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680$as_echo "no" >&6; }
2681fi
2682
2683 if test "x$ac_ct_STRIP" = x; then
2684 STRIP=":"
2685 else
2686 case $cross_compiling:$ac_tool_warned in
2687yes:)
2688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2690ac_tool_warned=yes ;;
2691esac
2692 STRIP=$ac_ct_STRIP
2693 fi
2694else
2695 STRIP="$ac_cv_prog_STRIP"
2696fi
2697
2698fi
2699INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2700
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2702$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2703if test -z "$MKDIR_P"; then
2704 if test "${ac_cv_path_mkdir+set}" = set; then :
2705 $as_echo_n "(cached) " >&6
2706else
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2709do
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 for ac_prog in mkdir gmkdir; do
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2715 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2716 'mkdir (GNU coreutils) '* | \
2717 'mkdir (coreutils) '* | \
2718 'mkdir (fileutils) '4.1*)
2719 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2720 break 3;;
2721 esac
2722 done
2723 done
2724 done
2725IFS=$as_save_IFS
2726
2727fi
2728
2729 if test "${ac_cv_path_mkdir+set}" = set; then
2730 MKDIR_P="$ac_cv_path_mkdir -p"
2731 else
2732 # As a last resort, use the slow shell script. Don't cache a
2733 # value for MKDIR_P within a source directory, because that will
2734 # break other packages using the cache if that directory is
2735 # removed, or if the value is a relative name.
2736 test -d ./--version && rmdir ./--version
2737 MKDIR_P="$ac_install_sh -d"
2738 fi
2739fi
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2741$as_echo "$MKDIR_P" >&6; }
2742
2743mkdir_p="$MKDIR_P"
2744case $mkdir_p in
2745 [\\/$]* | ?:[\\/]*) ;;
2746 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2747esac
2748
2749for ac_prog in gawk mawk nawk awk
2750do
2751 # Extract the first word of "$ac_prog", so it can be a program name with args.
2752set dummy $ac_prog; ac_word=$2
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754$as_echo_n "checking for $ac_word... " >&6; }
2755if test "${ac_cv_prog_AWK+set}" = set; then :
2756 $as_echo_n "(cached) " >&6
2757else
2758 if test -n "$AWK"; then
2759 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2760else
2761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762for as_dir in $PATH
2763do
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768 ac_cv_prog_AWK="$ac_prog"
2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 break 2
2771 fi
2772done
2773 done
2774IFS=$as_save_IFS
2775
2776fi
2777fi
2778AWK=$ac_cv_prog_AWK
2779if test -n "$AWK"; then
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2781$as_echo "$AWK" >&6; }
2782else
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784$as_echo "no" >&6; }
2785fi
2786
2787
2788 test -n "$AWK" && break
2789done
2790
2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2792$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2793set x ${MAKE-make}
2794ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2795if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2796 $as_echo_n "(cached) " >&6
2797else
2798 cat >conftest.make <<\_ACEOF
2799SHELL = /bin/sh
2800all:
2801 @echo '@@@%%%=$(MAKE)=@@@%%%'
2802_ACEOF
2803# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2804case `${MAKE-make} -f conftest.make 2>/dev/null` in
2805 *@@@%%%=?*=@@@%%%*)
2806 eval ac_cv_prog_make_${ac_make}_set=yes;;
2807 *)
2808 eval ac_cv_prog_make_${ac_make}_set=no;;
2809esac
2810rm -f conftest.make
2811fi
2812if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2814$as_echo "yes" >&6; }
2815 SET_MAKE=
2816else
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818$as_echo "no" >&6; }
2819 SET_MAKE="MAKE=${MAKE-make}"
2820fi
2821
2822rm -rf .tst 2>/dev/null
2823mkdir .tst 2>/dev/null
2824if test -d .tst; then
2825 am__leading_dot=.
2826else
2827 am__leading_dot=_
2828fi
2829rmdir .tst 2>/dev/null
2830
2831if test "`cd $srcdir && pwd`" != "`pwd`"; then
2832 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2833 # is not polluted with repeated "-I."
2834 am__isrc=' -I$(srcdir)'
2835 # test to see if srcdir already configured
2836 if test -f $srcdir/config.status; then
2837 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2838 fi
2839fi
2840
2841# test whether we have cygpath
2842if test -z "$CYGPATH_W"; then
2843 if (cygpath --version) >/dev/null 2>/dev/null; then
2844 CYGPATH_W='cygpath -w'
2845 else
2846 CYGPATH_W=echo
2847 fi
2848fi
2849
2850
2851# Define the identity of the package.
2852 PACKAGE='libquadmath'
2853 VERSION='0.1'
2854
2855
2856cat >>confdefs.h <<_ACEOF
2857#define PACKAGE "$PACKAGE"
2858_ACEOF
2859
2860
2861cat >>confdefs.h <<_ACEOF
2862#define VERSION "$VERSION"
2863_ACEOF
2864
2865# Some tools Automake needs.
2866
2867ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2868
2869
2870AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2871
2872
2873AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2874
2875
2876AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2877
2878
2879MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2880
2881# We need awk for the "check" target. The system "awk" is bad on
2882# some platforms.
91fc47e3 2883# Always define AMTAR for backward compatibility. Yes, it's still used
2884# in the wild :-( We should find a proper way to deprecate it ...
2885AMTAR='$${TAR-tar}'
87969c8c 2886
91fc47e3 2887am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
87969c8c 2888
2889
2890
2891
2892
2893
cb3103a1 2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2895$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2896# Check whether --enable-version-specific-runtime-libs was given.
2897if test "${enable_version_specific_runtime_libs+set}" = set; then :
2898 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2899 yes) version_specific_libs=yes ;;
2900 no) version_specific_libs=no ;;
2901 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2902 esac
2903else
2904 version_specific_libs=no
2905fi
2906
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2908$as_echo "$version_specific_libs" >&6; }
2909
2910
2911
0c0fb0a6 2912DEPDIR="${am__leading_dot}deps"
d6580113 2913
0c0fb0a6 2914ac_config_commands="$ac_config_commands depfiles"
2915
2916
2917am_make=${MAKE-make}
2918cat > confinc << 'END'
2919am__doit:
2920 @echo this is the am__doit target
2921.PHONY: am__doit
2922END
2923# If we don't find an include directive, just comment out the code.
2924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2925$as_echo_n "checking for style of include used by $am_make... " >&6; }
2926am__include="#"
2927am__quote=
2928_am_result=none
2929# First try GNU make style include.
2930echo "include confinc" > confmf
2931# Ignore all kinds of additional output from `make'.
2932case `$am_make -s -f confmf 2> /dev/null` in #(
2933*the\ am__doit\ target*)
2934 am__include=include
2935 am__quote=
2936 _am_result=GNU
2937 ;;
2938esac
2939# Now try BSD make style include.
2940if test "$am__include" = "#"; then
2941 echo '.include "confinc"' > confmf
2942 case `$am_make -s -f confmf 2> /dev/null` in #(
2943 *the\ am__doit\ target*)
2944 am__include=.include
2945 am__quote="\""
2946 _am_result=BSD
2947 ;;
2948 esac
2949fi
2950
2951
2952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2953$as_echo "$_am_result" >&6; }
2954rm -f confinc confmf
2955
2956# Check whether --enable-dependency-tracking was given.
2957if test "${enable_dependency_tracking+set}" = set; then :
2958 enableval=$enable_dependency_tracking;
2959fi
2960
2961if test "x$enable_dependency_tracking" != xno; then
2962 am_depcomp="$ac_aux_dir/depcomp"
2963 AMDEPBACKSLASH='\'
91fc47e3 2964 am__nodep='_no'
0c0fb0a6 2965fi
2966 if test "x$enable_dependency_tracking" != xno; then
2967 AMDEP_TRUE=
2968 AMDEP_FALSE='#'
2969else
2970 AMDEP_TRUE='#'
2971 AMDEP_FALSE=
2972fi
2973
2974
2975ac_ext=c
2976ac_cpp='$CPP $CPPFLAGS'
2977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979ac_compiler_gnu=$ac_cv_c_compiler_gnu
2980if test -n "$ac_tool_prefix"; then
2981 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2982set dummy ${ac_tool_prefix}gcc; ac_word=$2
d6580113 2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984$as_echo_n "checking for $ac_word... " >&6; }
0c0fb0a6 2985if test "${ac_cv_prog_CC+set}" = set; then :
d6580113 2986 $as_echo_n "(cached) " >&6
2987else
0c0fb0a6 2988 if test -n "$CC"; then
2989 ac_cv_prog_CC="$CC" # Let the user override the test.
d6580113 2990else
2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992for as_dir in $PATH
2993do
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c0fb0a6 2998 ac_cv_prog_CC="${ac_tool_prefix}gcc"
d6580113 2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 break 2
3001 fi
3002done
3003 done
3004IFS=$as_save_IFS
3005
3006fi
3007fi
0c0fb0a6 3008CC=$ac_cv_prog_CC
3009if test -n "$CC"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3011$as_echo "$CC" >&6; }
d6580113 3012else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014$as_echo "no" >&6; }
3015fi
3016
3017
0c0fb0a6 3018fi
3019if test -z "$ac_cv_prog_CC"; then
3020 ac_ct_CC=$CC
3021 # Extract the first word of "gcc", so it can be a program name with args.
3022set dummy gcc; ac_word=$2
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024$as_echo_n "checking for $ac_word... " >&6; }
3025if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
d6580113 3026 $as_echo_n "(cached) " >&6
3027else
0c0fb0a6 3028 if test -n "$ac_ct_CC"; then
3029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3030else
3031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032for as_dir in $PATH
3033do
3034 IFS=$as_save_IFS
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3038 ac_cv_prog_ac_ct_CC="gcc"
3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 break 2
3041 fi
3042done
3043 done
3044IFS=$as_save_IFS
d6580113 3045
3046fi
0c0fb0a6 3047fi
3048ac_ct_CC=$ac_cv_prog_ac_ct_CC
3049if test -n "$ac_ct_CC"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3051$as_echo "$ac_ct_CC" >&6; }
3052else
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054$as_echo "no" >&6; }
3055fi
3056
3057 if test "x$ac_ct_CC" = x; then
3058 CC=""
d6580113 3059 else
0c0fb0a6 3060 case $cross_compiling:$ac_tool_warned in
3061yes:)
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3064ac_tool_warned=yes ;;
3065esac
3066 CC=$ac_ct_CC
d6580113 3067 fi
d6580113 3068else
0c0fb0a6 3069 CC="$ac_cv_prog_CC"
d6580113 3070fi
3071
0c0fb0a6 3072if test -z "$CC"; then
3073 if test -n "$ac_tool_prefix"; then
3074 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3075set dummy ${ac_tool_prefix}cc; ac_word=$2
87969c8c 3076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077$as_echo_n "checking for $ac_word... " >&6; }
3078if test "${ac_cv_prog_CC+set}" = set; then :
3079 $as_echo_n "(cached) " >&6
3080else
3081 if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
3083else
3084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085for as_dir in $PATH
3086do
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c0fb0a6 3091 ac_cv_prog_CC="${ac_tool_prefix}cc"
87969c8c 3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
3094 fi
3095done
3096 done
3097IFS=$as_save_IFS
3098
3099fi
3100fi
3101CC=$ac_cv_prog_CC
3102if test -n "$CC"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104$as_echo "$CC" >&6; }
3105else
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107$as_echo "no" >&6; }
3108fi
3109
3110
0c0fb0a6 3111 fi
87969c8c 3112fi
0c0fb0a6 3113if test -z "$CC"; then
3114 # Extract the first word of "cc", so it can be a program name with args.
3115set dummy cc; ac_word=$2
87969c8c 3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117$as_echo_n "checking for $ac_word... " >&6; }
0c0fb0a6 3118if test "${ac_cv_prog_CC+set}" = set; then :
87969c8c 3119 $as_echo_n "(cached) " >&6
3120else
0c0fb0a6 3121 if test -n "$CC"; then
3122 ac_cv_prog_CC="$CC" # Let the user override the test.
87969c8c 3123else
0c0fb0a6 3124 ac_prog_rejected=no
87969c8c 3125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126for as_dir in $PATH
3127do
3128 IFS=$as_save_IFS
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c0fb0a6 3132 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3133 ac_prog_rejected=yes
3134 continue
3135 fi
3136 ac_cv_prog_CC="cc"
87969c8c 3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3139 fi
3140done
3141 done
3142IFS=$as_save_IFS
3143
0c0fb0a6 3144if test $ac_prog_rejected = yes; then
3145 # We found a bogon in the path, so make sure we never use it.
3146 set dummy $ac_cv_prog_CC
3147 shift
3148 if test $# != 0; then
3149 # We chose a different compiler from the bogus one.
3150 # However, it has the same basename, so the bogon will be chosen
3151 # first if we set CC to just the basename; use the full file name.
3152 shift
3153 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3154 fi
87969c8c 3155fi
3156fi
0c0fb0a6 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; }
87969c8c 3162else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164$as_echo "no" >&6; }
3165fi
3166
87969c8c 3167
0c0fb0a6 3168fi
87969c8c 3169if test -z "$CC"; then
0c0fb0a6 3170 if test -n "$ac_tool_prefix"; then
3171 for ac_prog in cl.exe
3172 do
3173 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3174set dummy $ac_tool_prefix$ac_prog; ac_word=$2
87969c8c 3175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176$as_echo_n "checking for $ac_word... " >&6; }
3177if test "${ac_cv_prog_CC+set}" = set; then :
3178 $as_echo_n "(cached) " >&6
3179else
3180 if test -n "$CC"; then
3181 ac_cv_prog_CC="$CC" # Let the user override the test.
3182else
3183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184for as_dir in $PATH
3185do
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c0fb0a6 3190 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
87969c8c 3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 break 2
3193 fi
3194done
3195 done
3196IFS=$as_save_IFS
3197
3198fi
3199fi
3200CC=$ac_cv_prog_CC
3201if test -n "$CC"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3203$as_echo "$CC" >&6; }
3204else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206$as_echo "no" >&6; }
3207fi
3208
3209
3210 test -n "$CC" && break
3211 done
3212fi
3213if test -z "$CC"; then
3214 ac_ct_CC=$CC
3215 for ac_prog in cl.exe
3216do
3217 # Extract the first word of "$ac_prog", so it can be a program name with args.
3218set dummy $ac_prog; ac_word=$2
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220$as_echo_n "checking for $ac_word... " >&6; }
3221if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3222 $as_echo_n "(cached) " >&6
3223else
3224 if test -n "$ac_ct_CC"; then
3225 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3226else
3227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228for as_dir in $PATH
3229do
3230 IFS=$as_save_IFS
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3234 ac_cv_prog_ac_ct_CC="$ac_prog"
3235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3236 break 2
3237 fi
3238done
3239 done
3240IFS=$as_save_IFS
3241
3242fi
3243fi
3244ac_ct_CC=$ac_cv_prog_ac_ct_CC
3245if test -n "$ac_ct_CC"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3247$as_echo "$ac_ct_CC" >&6; }
3248else
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250$as_echo "no" >&6; }
3251fi
3252
3253
3254 test -n "$ac_ct_CC" && break
3255done
3256
3257 if test "x$ac_ct_CC" = x; then
3258 CC=""
3259 else
3260 case $cross_compiling:$ac_tool_warned in
3261yes:)
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3264ac_tool_warned=yes ;;
3265esac
3266 CC=$ac_ct_CC
3267 fi
3268fi
3269
3270fi
3271
3272
3273test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275as_fn_error "no acceptable C compiler found in \$PATH
3276See \`config.log' for more details." "$LINENO" 5; }
3277
3278# Provide some information about the compiler.
3279$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3280set X $ac_compile
3281ac_compiler=$2
3282for ac_option in --version -v -V -qversion; do
3283 { { ac_try="$ac_compiler $ac_option >&5"
3284case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3287esac
3288eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289$as_echo "$ac_try_echo"; } >&5
3290 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3291 ac_status=$?
3292 if test -s conftest.err; then
3293 sed '10a\
3294... rest of stderr output deleted ...
3295 10q' conftest.err >conftest.er1
3296 cat conftest.er1 >&5
3297 rm -f conftest.er1 conftest.err
3298 fi
3299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3300 test $ac_status = 0; }
3301done
3302
3303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304/* end confdefs.h. */
3305
cb3103a1 3306int
3307main ()
3308{
3309
3310 ;
3311 return 0;
3312}
3313_ACEOF
3314# FIXME: Cleanup?
3315if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3316 (eval $ac_link) 2>&5
3317 ac_status=$?
3318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319 test $ac_status = 0; }; then :
3320 gcc_no_link=no
3321else
3322 gcc_no_link=yes
3323fi
3324if test x$gcc_no_link = xyes; then
3325 # Setting cross_compile will disable run tests; it will
3326 # also disable AC_CHECK_FILE but that's generally
3327 # correct if we can't link.
3328 cross_compiling=yes
3329 EXEEXT=
3330else
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332/* end confdefs.h. */
3333
87969c8c 3334int
3335main ()
3336{
3337
3338 ;
3339 return 0;
3340}
3341_ACEOF
3342ac_clean_files_save=$ac_clean_files
3343ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3344# Try to create an executable without -o first, disregard a.out.
3345# It will help us diagnose broken compilers, and finding out an intuition
3346# of exeext.
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3348$as_echo_n "checking for C compiler default output file name... " >&6; }
3349ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3350
3351# The possible output files:
3352ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3353
3354ac_rmfiles=
3355for ac_file in $ac_files
3356do
3357 case $ac_file in
3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3359 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3360 esac
3361done
3362rm -f $ac_rmfiles
3363
3364if { { ac_try="$ac_link_default"
3365case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368esac
3369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370$as_echo "$ac_try_echo"; } >&5
3371 (eval "$ac_link_default") 2>&5
3372 ac_status=$?
3373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374 test $ac_status = 0; }; then :
3375 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3376# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3377# in a Makefile. We should not override ac_cv_exeext if it was cached,
3378# so that the user can short-circuit this test for compilers unknown to
3379# Autoconf.
3380for ac_file in $ac_files ''
3381do
3382 test -f "$ac_file" || continue
3383 case $ac_file in
3384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3385 ;;
3386 [ab].out )
3387 # We found the default executable, but exeext='' is most
3388 # certainly right.
3389 break;;
3390 *.* )
3391 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3392 then :; else
3393 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3394 fi
3395 # We set ac_cv_exeext here because the later test for it is not
3396 # safe: cross compilers may not add the suffix if given an `-o'
3397 # argument, so we may need to know it at that point already.
3398 # Even if this section looks crufty: it has the advantage of
3399 # actually working.
3400 break;;
3401 * )
3402 break;;
3403 esac
3404done
3405test "$ac_cv_exeext" = no && ac_cv_exeext=
3406
3407else
3408 ac_file=''
3409fi
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3411$as_echo "$ac_file" >&6; }
3412if test -z "$ac_file"; then :
3413 $as_echo "$as_me: failed program was:" >&5
3414sed 's/^/| /' conftest.$ac_ext >&5
3415
3416{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418{ as_fn_set_status 77
3419as_fn_error "C compiler cannot create executables
3420See \`config.log' for more details." "$LINENO" 5; }; }
3421fi
3422ac_exeext=$ac_cv_exeext
3423
3424# Check that the compiler produces executables we can run. If not, either
3425# the compiler is broken, or we cross compile.
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3427$as_echo_n "checking whether the C compiler works... " >&6; }
3428# If not cross compiling, check that we can run a simple program.
3429if test "$cross_compiling" != yes; then
3430 if { ac_try='./$ac_file'
3431 { { case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434esac
3435eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436$as_echo "$ac_try_echo"; } >&5
3437 (eval "$ac_try") 2>&5
3438 ac_status=$?
3439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440 test $ac_status = 0; }; }; then
3441 cross_compiling=no
3442 else
3443 if test "$cross_compiling" = maybe; then
3444 cross_compiling=yes
3445 else
3446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3448as_fn_error "cannot run C compiled programs.
3449If you meant to cross compile, use \`--host'.
3450See \`config.log' for more details." "$LINENO" 5; }
3451 fi
3452 fi
3453fi
3454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3455$as_echo "yes" >&6; }
3456
3457rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3458ac_clean_files=$ac_clean_files_save
3459# Check that the compiler produces executables we can run. If not, either
3460# the compiler is broken, or we cross compile.
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3462$as_echo_n "checking whether we are cross compiling... " >&6; }
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3464$as_echo "$cross_compiling" >&6; }
3465
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3467$as_echo_n "checking for suffix of executables... " >&6; }
3468if { { ac_try="$ac_link"
3469case "(($ac_try" in
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3472esac
3473eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3474$as_echo "$ac_try_echo"; } >&5
3475 (eval "$ac_link") 2>&5
3476 ac_status=$?
3477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478 test $ac_status = 0; }; then :
3479 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3480# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3481# work properly (i.e., refer to `conftest.exe'), while it won't with
3482# `rm'.
3483for ac_file in conftest.exe conftest conftest.*; do
3484 test -f "$ac_file" || continue
3485 case $ac_file in
3486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3487 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3488 break;;
3489 * ) break;;
3490 esac
3491done
3492else
3493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3495as_fn_error "cannot compute suffix of executables: cannot compile and link
3496See \`config.log' for more details." "$LINENO" 5; }
3497fi
3498rm -f conftest$ac_cv_exeext
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3500$as_echo "$ac_cv_exeext" >&6; }
3501
3502rm -f conftest.$ac_ext
3503EXEEXT=$ac_cv_exeext
3504ac_exeext=$EXEEXT
cb3103a1 3505fi
87969c8c 3506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3507$as_echo_n "checking for suffix of object files... " >&6; }
3508if test "${ac_cv_objext+set}" = set; then :
3509 $as_echo_n "(cached) " >&6
3510else
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512/* end confdefs.h. */
3513
3514int
3515main ()
3516{
3517
3518 ;
3519 return 0;
3520}
3521_ACEOF
3522rm -f conftest.o conftest.obj
3523if { { ac_try="$ac_compile"
3524case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3527esac
3528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3529$as_echo "$ac_try_echo"; } >&5
3530 (eval "$ac_compile") 2>&5
3531 ac_status=$?
3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533 test $ac_status = 0; }; then :
3534 for ac_file in conftest.o conftest.obj conftest.*; do
3535 test -f "$ac_file" || continue;
3536 case $ac_file in
3537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3538 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3539 break;;
3540 esac
3541done
3542else
3543 $as_echo "$as_me: failed program was:" >&5
3544sed 's/^/| /' conftest.$ac_ext >&5
3545
3546{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3548as_fn_error "cannot compute suffix of object files: cannot compile
3549See \`config.log' for more details." "$LINENO" 5; }
3550fi
3551rm -f conftest.$ac_cv_objext conftest.$ac_ext
3552fi
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3554$as_echo "$ac_cv_objext" >&6; }
3555OBJEXT=$ac_cv_objext
3556ac_objext=$OBJEXT
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3558$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3559if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3560 $as_echo_n "(cached) " >&6
3561else
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563/* end confdefs.h. */
3564
3565int
3566main ()
3567{
3568#ifndef __GNUC__
3569 choke me
3570#endif
3571
3572 ;
3573 return 0;
3574}
3575_ACEOF
3576if ac_fn_c_try_compile "$LINENO"; then :
3577 ac_compiler_gnu=yes
3578else
3579 ac_compiler_gnu=no
3580fi
3581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582ac_cv_c_compiler_gnu=$ac_compiler_gnu
3583
3584fi
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3586$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3587if test $ac_compiler_gnu = yes; then
3588 GCC=yes
3589else
3590 GCC=
3591fi
3592ac_test_CFLAGS=${CFLAGS+set}
3593ac_save_CFLAGS=$CFLAGS
3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3595$as_echo_n "checking whether $CC accepts -g... " >&6; }
3596if test "${ac_cv_prog_cc_g+set}" = set; then :
3597 $as_echo_n "(cached) " >&6
3598else
3599 ac_save_c_werror_flag=$ac_c_werror_flag
3600 ac_c_werror_flag=yes
3601 ac_cv_prog_cc_g=no
3602 CFLAGS="-g"
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604/* end confdefs.h. */
3605
3606int
3607main ()
3608{
3609
3610 ;
3611 return 0;
3612}
3613_ACEOF
3614if ac_fn_c_try_compile "$LINENO"; then :
3615 ac_cv_prog_cc_g=yes
3616else
3617 CFLAGS=""
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619/* end confdefs.h. */
3620
3621int
3622main ()
3623{
3624
3625 ;
3626 return 0;
3627}
3628_ACEOF
3629if ac_fn_c_try_compile "$LINENO"; then :
3630
3631else
3632 ac_c_werror_flag=$ac_save_c_werror_flag
3633 CFLAGS="-g"
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635/* end confdefs.h. */
3636
3637int
3638main ()
3639{
3640
3641 ;
3642 return 0;
3643}
3644_ACEOF
3645if ac_fn_c_try_compile "$LINENO"; then :
3646 ac_cv_prog_cc_g=yes
3647fi
3648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649fi
3650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651fi
3652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653 ac_c_werror_flag=$ac_save_c_werror_flag
3654fi
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3656$as_echo "$ac_cv_prog_cc_g" >&6; }
3657if test "$ac_test_CFLAGS" = set; then
3658 CFLAGS=$ac_save_CFLAGS
3659elif test $ac_cv_prog_cc_g = yes; then
3660 if test "$GCC" = yes; then
3661 CFLAGS="-g -O2"
3662 else
3663 CFLAGS="-g"
3664 fi
3665else
3666 if test "$GCC" = yes; then
3667 CFLAGS="-O2"
3668 else
3669 CFLAGS=
3670 fi
3671fi
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3673$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3674if test "${ac_cv_prog_cc_c89+set}" = set; then :
3675 $as_echo_n "(cached) " >&6
3676else
3677 ac_cv_prog_cc_c89=no
3678ac_save_CC=$CC
3679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680/* end confdefs.h. */
3681#include <stdarg.h>
3682#include <stdio.h>
3683#include <sys/types.h>
3684#include <sys/stat.h>
3685/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3686struct buf { int x; };
3687FILE * (*rcsopen) (struct buf *, struct stat *, int);
3688static char *e (p, i)
3689 char **p;
3690 int i;
3691{
3692 return p[i];
3693}
3694static char *f (char * (*g) (char **, int), char **p, ...)
3695{
3696 char *s;
3697 va_list v;
3698 va_start (v,p);
3699 s = g (p, va_arg (v,int));
3700 va_end (v);
3701 return s;
3702}
3703
3704/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3705 function prototypes and stuff, but not '\xHH' hex character constants.
3706 These don't provoke an error unfortunately, instead are silently treated
3707 as 'x'. The following induces an error, until -std is added to get
3708 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3709 array size at least. It's necessary to write '\x00'==0 to get something
3710 that's true only with -std. */
3711int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3712
3713/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3714 inside strings and character constants. */
3715#define FOO(x) 'x'
3716int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3717
3718int test (int i, double x);
3719struct s1 {int (*f) (int a);};
3720struct s2 {int (*f) (double a);};
3721int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3722int argc;
3723char **argv;
3724int
3725main ()
3726{
3727return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3728 ;
3729 return 0;
3730}
3731_ACEOF
3732for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3733 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3734do
3735 CC="$ac_save_CC $ac_arg"
3736 if ac_fn_c_try_compile "$LINENO"; then :
3737 ac_cv_prog_cc_c89=$ac_arg
3738fi
3739rm -f core conftest.err conftest.$ac_objext
3740 test "x$ac_cv_prog_cc_c89" != "xno" && break
3741done
3742rm -f conftest.$ac_ext
3743CC=$ac_save_CC
3744
3745fi
3746# AC_CACHE_VAL
3747case "x$ac_cv_prog_cc_c89" in
3748 x)
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3750$as_echo "none needed" >&6; } ;;
3751 xno)
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3753$as_echo "unsupported" >&6; } ;;
3754 *)
3755 CC="$CC $ac_cv_prog_cc_c89"
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3757$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3758esac
3759if test "x$ac_cv_prog_cc_c89" != xno; then :
3760
3761fi
3762
3763ac_ext=c
3764ac_cpp='$CPP $CPPFLAGS'
3765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767ac_compiler_gnu=$ac_cv_c_compiler_gnu
87969c8c 3768
cb3103a1 3769depcc="$CC" am_compiler_list=
87969c8c 3770
cb3103a1 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3772$as_echo_n "checking dependency style of $depcc... " >&6; }
3773if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3774 $as_echo_n "(cached) " >&6
3775else
3776 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3777 # We make a subdir and do the tests there. Otherwise we can end up
3778 # making bogus files that we don't know about and never remove. For
3779 # instance it was reported that on HP-UX the gcc test will end up
3780 # making a dummy file named `D' -- because `-MD' means `put the output
3781 # in D'.
91fc47e3 3782 rm -rf conftest.dir
cb3103a1 3783 mkdir conftest.dir
3784 # Copy depcomp to subdir because otherwise we won't find it if we're
3785 # using a relative directory.
3786 cp "$am_depcomp" conftest.dir
3787 cd conftest.dir
3788 # We will build objects and dependencies in a subdirectory because
3789 # it helps to detect inapplicable dependency modes. For instance
3790 # both Tru64's cc and ICC support -MD to output dependencies as a
3791 # side effect of compilation, but ICC will put the dependencies in
3792 # the current directory while Tru64 will put them in the object
3793 # directory.
3794 mkdir sub
87969c8c 3795
3796 am_cv_CC_dependencies_compiler_type=none
3797 if test "$am_compiler_list" = ""; then
3798 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3799 fi
3800 am__universal=false
3801 case " $depcc " in #(
3802 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3803 esac
3804
3805 for depmode in $am_compiler_list; do
3806 # Setup a source with many dependencies, because some compilers
3807 # like to wrap large dependency lists on column 80 (with \), and
3808 # we should not choose a depcomp mode which is confused by this.
3809 #
3810 # We need to recreate these files for each test, as the compiler may
3811 # overwrite some of them when testing with obscure command lines.
3812 # This happens at least with the AIX C compiler.
3813 : > sub/conftest.c
3814 for i in 1 2 3 4 5 6; do
3815 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3816 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3817 # Solaris 8's {/usr,}/bin/sh.
3818 touch sub/conftst$i.h
3819 done
3820 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3821
3822 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3823 # mode. It turns out that the SunPro C++ compiler does not properly
3824 # handle `-M -o', and we need to detect this. Also, some Intel
3825 # versions had trouble with output in subdirs
3826 am__obj=sub/conftest.${OBJEXT-o}
3827 am__minus_obj="-o $am__obj"
3828 case $depmode in
3829 gcc)
3830 # This depmode causes a compiler race in universal mode.
3831 test "$am__universal" = false || continue
3832 ;;
3833 nosideeffect)
3834 # after this tag, mechanisms are not by side-effect, so they'll
3835 # only be used when explicitly requested
3836 if test "x$enable_dependency_tracking" = xyes; then
3837 continue
3838 else
3839 break
3840 fi
3841 ;;
91fc47e3 3842 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
87969c8c 3843 # This compiler won't grok `-c -o', but also, the minuso test has
3844 # not run yet. These depmodes are late enough in the game, and
3845 # so weak that their functioning should not be impacted.
3846 am__obj=conftest.${OBJEXT-o}
3847 am__minus_obj=
3848 ;;
3849 none) break ;;
3850 esac
3851 if depmode=$depmode \
3852 source=sub/conftest.c object=$am__obj \
3853 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3854 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3855 >/dev/null 2>conftest.err &&
3856 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3857 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3858 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3859 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3860 # icc doesn't choke on unknown options, it will just issue warnings
3861 # or remarks (even with -Werror). So we grep stderr for any message
3862 # that says an option was ignored or not supported.
3863 # When given -MP, icc 7.0 and 7.1 complain thusly:
3864 # icc: Command line warning: ignoring option '-M'; no argument required
3865 # The diagnosis changed in icc 8.0:
3866 # icc: Command line remark: option '-MP' not supported
3867 if (grep 'ignoring option' conftest.err ||
3868 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3869 am_cv_CC_dependencies_compiler_type=$depmode
3870 break
3871 fi
3872 fi
3873 done
3874
3875 cd ..
3876 rm -rf conftest.dir
3877else
3878 am_cv_CC_dependencies_compiler_type=none
3879fi
3880
3881fi
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3883$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3884CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3885
3886 if
3887 test "x$enable_dependency_tracking" != xno \
3888 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3889 am__fastdepCC_TRUE=
3890 am__fastdepCC_FALSE='#'
3891else
3892 am__fastdepCC_TRUE='#'
3893 am__fastdepCC_FALSE=
3894fi
3895
3896
0c0fb0a6 3897
3898ac_ext=c
3899ac_cpp='$CPP $CPPFLAGS'
3900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3904$as_echo_n "checking how to run the C preprocessor... " >&6; }
3905# On Suns, sometimes $CPP names a directory.
3906if test -n "$CPP" && test -d "$CPP"; then
3907 CPP=
3908fi
3909if test -z "$CPP"; then
3910 if test "${ac_cv_prog_CPP+set}" = set; then :
87969c8c 3911 $as_echo_n "(cached) " >&6
3912else
0c0fb0a6 3913 # Double quotes because CPP needs to be expanded
3914 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3915 do
3916 ac_preproc_ok=false
3917for ac_c_preproc_warn_flag in '' yes
cb3103a1 3918do
0c0fb0a6 3919 # Use a header file that comes with gcc, so configuring glibc
3920 # with a fresh cross-compiler works.
3921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3922 # <limits.h> exists even on freestanding compilers.
3923 # On the NeXT, cc -E runs the code through the compiler's parser,
3924 # not just through cpp. "Syntax error" is here to catch this case.
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926/* end confdefs.h. */
3927#ifdef __STDC__
3928# include <limits.h>
3929#else
3930# include <assert.h>
3931#endif
3932 Syntax error
3933_ACEOF
3934if ac_fn_c_try_cpp "$LINENO"; then :
cb3103a1 3935
87969c8c 3936else
0c0fb0a6 3937 # Broken: fails on valid input.
3938continue
87969c8c 3939fi
0c0fb0a6 3940rm -f conftest.err conftest.$ac_ext
87969c8c 3941
0c0fb0a6 3942 # OK, works on sane cases. Now check whether nonexistent headers
3943 # can be detected and how.
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945/* end confdefs.h. */
3946#include <ac_nonexistent.h>
3947_ACEOF
3948if ac_fn_c_try_cpp "$LINENO"; then :
3949 # Broken: success on invalid input.
3950continue
3951else
3952 # Passes both tests.
3953ac_preproc_ok=:
3954break
87969c8c 3955fi
0c0fb0a6 3956rm -f conftest.err conftest.$ac_ext
87969c8c 3957
0c0fb0a6 3958done
3959# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3960rm -f conftest.err conftest.$ac_ext
3961if $ac_preproc_ok; then :
3962 break
3963fi
87969c8c 3964
0c0fb0a6 3965 done
3966 ac_cv_prog_CPP=$CPP
87969c8c 3967
0c0fb0a6 3968fi
3969 CPP=$ac_cv_prog_CPP
87969c8c 3970else
0c0fb0a6 3971 ac_cv_prog_CPP=$CPP
3972fi
3973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3974$as_echo "$CPP" >&6; }
3975ac_preproc_ok=false
3976for ac_c_preproc_warn_flag in '' yes
87969c8c 3977do
0c0fb0a6 3978 # Use a header file that comes with gcc, so configuring glibc
3979 # with a fresh cross-compiler works.
3980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3981 # <limits.h> exists even on freestanding compilers.
3982 # On the NeXT, cc -E runs the code through the compiler's parser,
3983 # not just through cpp. "Syntax error" is here to catch this case.
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985/* end confdefs.h. */
3986#ifdef __STDC__
3987# include <limits.h>
3988#else
3989# include <assert.h>
3990#endif
3991 Syntax error
3992_ACEOF
3993if ac_fn_c_try_cpp "$LINENO"; then :
3994
3995else
3996 # Broken: fails on valid input.
3997continue
3998fi
3999rm -f conftest.err conftest.$ac_ext
4000
4001 # OK, works on sane cases. Now check whether nonexistent headers
4002 # can be detected and how.
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004/* end confdefs.h. */
4005#include <ac_nonexistent.h>
4006_ACEOF
4007if ac_fn_c_try_cpp "$LINENO"; then :
4008 # Broken: success on invalid input.
4009continue
4010else
4011 # Passes both tests.
4012ac_preproc_ok=:
4013break
4014fi
4015rm -f conftest.err conftest.$ac_ext
4016
4017done
4018# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4019rm -f conftest.err conftest.$ac_ext
4020if $ac_preproc_ok; then :
4021
4022else
4023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4025as_fn_error "C preprocessor \"$CPP\" fails sanity check
4026See \`config.log' for more details." "$LINENO" 5; }
4027fi
4028
4029ac_ext=c
4030ac_cpp='$CPP $CPPFLAGS'
4031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4033ac_compiler_gnu=$ac_cv_c_compiler_gnu
4034
4035
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4037$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4038if test "${ac_cv_path_GREP+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
4040else
4041 if test -z "$GREP"; then
4042 ac_path_GREP_found=false
4043 # Loop through the user's path and test for each of PROGNAME-LIST
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4046do
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
4049 for ac_prog in grep ggrep; do
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4052 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4053# Check for GNU ac_path_GREP and select it if it is found.
4054 # Check for GNU $ac_path_GREP
4055case `"$ac_path_GREP" --version 2>&1` in
4056*GNU*)
87969c8c 4057 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4058*)
4059 ac_count=0
4060 $as_echo_n 0123456789 >"conftest.in"
4061 while :
4062 do
4063 cat "conftest.in" "conftest.in" >"conftest.tmp"
4064 mv "conftest.tmp" "conftest.in"
4065 cp "conftest.in" "conftest.nl"
4066 $as_echo 'GREP' >> "conftest.nl"
4067 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4068 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4069 as_fn_arith $ac_count + 1 && ac_count=$as_val
4070 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4071 # Best one so far, save it but keep looking for a better one
4072 ac_cv_path_GREP="$ac_path_GREP"
4073 ac_path_GREP_max=$ac_count
4074 fi
4075 # 10*(2^10) chars as input seems more than enough
4076 test $ac_count -gt 10 && break
4077 done
4078 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4079esac
4080
4081 $ac_path_GREP_found && break 3
4082 done
4083 done
4084 done
4085IFS=$as_save_IFS
4086 if test -z "$ac_cv_path_GREP"; then
4087 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4088 fi
4089else
4090 ac_cv_path_GREP=$GREP
4091fi
4092
4093fi
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4095$as_echo "$ac_cv_path_GREP" >&6; }
4096 GREP="$ac_cv_path_GREP"
4097
4098
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4100$as_echo_n "checking for egrep... " >&6; }
4101if test "${ac_cv_path_EGREP+set}" = set; then :
4102 $as_echo_n "(cached) " >&6
4103else
4104 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4105 then ac_cv_path_EGREP="$GREP -E"
4106 else
4107 if test -z "$EGREP"; then
4108 ac_path_EGREP_found=false
4109 # Loop through the user's path and test for each of PROGNAME-LIST
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4112do
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 for ac_prog in egrep; do
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4118 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4119# Check for GNU ac_path_EGREP and select it if it is found.
4120 # Check for GNU $ac_path_EGREP
4121case `"$ac_path_EGREP" --version 2>&1` in
4122*GNU*)
4123 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4124*)
4125 ac_count=0
4126 $as_echo_n 0123456789 >"conftest.in"
4127 while :
4128 do
4129 cat "conftest.in" "conftest.in" >"conftest.tmp"
4130 mv "conftest.tmp" "conftest.in"
4131 cp "conftest.in" "conftest.nl"
4132 $as_echo 'EGREP' >> "conftest.nl"
4133 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4135 as_fn_arith $ac_count + 1 && ac_count=$as_val
4136 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4137 # Best one so far, save it but keep looking for a better one
4138 ac_cv_path_EGREP="$ac_path_EGREP"
4139 ac_path_EGREP_max=$ac_count
4140 fi
4141 # 10*(2^10) chars as input seems more than enough
4142 test $ac_count -gt 10 && break
4143 done
4144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4145esac
4146
4147 $ac_path_EGREP_found && break 3
4148 done
4149 done
4150 done
4151IFS=$as_save_IFS
4152 if test -z "$ac_cv_path_EGREP"; then
4153 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4154 fi
4155else
4156 ac_cv_path_EGREP=$EGREP
4157fi
4158
4159 fi
4160fi
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4162$as_echo "$ac_cv_path_EGREP" >&6; }
4163 EGREP="$ac_cv_path_EGREP"
4164
4165
0c0fb0a6 4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4167$as_echo_n "checking for ANSI C header files... " >&6; }
4168if test "${ac_cv_header_stdc+set}" = set; then :
87969c8c 4169 $as_echo_n "(cached) " >&6
4170else
0c0fb0a6 4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172/* end confdefs.h. */
4173#include <stdlib.h>
4174#include <stdarg.h>
4175#include <string.h>
4176#include <float.h>
87969c8c 4177
0c0fb0a6 4178int
4179main ()
4180{
4181
4182 ;
4183 return 0;
4184}
4185_ACEOF
4186if ac_fn_c_try_compile "$LINENO"; then :
4187 ac_cv_header_stdc=yes
87969c8c 4188else
0c0fb0a6 4189 ac_cv_header_stdc=no
87969c8c 4190fi
0c0fb0a6 4191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
87969c8c 4192
0c0fb0a6 4193if test $ac_cv_header_stdc = yes; then
4194 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196/* end confdefs.h. */
4197#include <string.h>
4198
4199_ACEOF
4200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4201 $EGREP "memchr" >/dev/null 2>&1; then :
4202
4203else
4204 ac_cv_header_stdc=no
87969c8c 4205fi
0c0fb0a6 4206rm -f conftest*
87969c8c 4207
0c0fb0a6 4208fi
87969c8c 4209
0c0fb0a6 4210if test $ac_cv_header_stdc = yes; then
4211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213/* end confdefs.h. */
4214#include <stdlib.h>
87969c8c 4215
0c0fb0a6 4216_ACEOF
4217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4218 $EGREP "free" >/dev/null 2>&1; then :
87969c8c 4219
0c0fb0a6 4220else
4221 ac_cv_header_stdc=no
4222fi
4223rm -f conftest*
87969c8c 4224
0c0fb0a6 4225fi
87969c8c 4226
0c0fb0a6 4227if test $ac_cv_header_stdc = yes; then
4228 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4229 if test "$cross_compiling" = yes; then :
4230 :
4231else
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233/* end confdefs.h. */
4234#include <ctype.h>
4235#include <stdlib.h>
4236#if ((' ' & 0x0FF) == 0x020)
4237# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4238# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4239#else
4240# define ISLOWER(c) \
4241 (('a' <= (c) && (c) <= 'i') \
4242 || ('j' <= (c) && (c) <= 'r') \
4243 || ('s' <= (c) && (c) <= 'z'))
4244# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4245#endif
87969c8c 4246
0c0fb0a6 4247#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4248int
4249main ()
4250{
4251 int i;
4252 for (i = 0; i < 256; i++)
4253 if (XOR (islower (i), ISLOWER (i))
4254 || toupper (i) != TOUPPER (i))
4255 return 2;
4256 return 0;
4257}
4258_ACEOF
4259if ac_fn_c_try_run "$LINENO"; then :
87969c8c 4260
0c0fb0a6 4261else
4262 ac_cv_header_stdc=no
4263fi
4264rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4265 conftest.$ac_objext conftest.beam conftest.$ac_ext
4266fi
87969c8c 4267
0c0fb0a6 4268fi
4269fi
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4271$as_echo "$ac_cv_header_stdc" >&6; }
4272if test $ac_cv_header_stdc = yes; then
87969c8c 4273
0c0fb0a6 4274$as_echo "#define STDC_HEADERS 1" >>confdefs.h
87969c8c 4275
0c0fb0a6 4276fi
87969c8c 4277
0c0fb0a6 4278# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4279for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4280 inttypes.h stdint.h unistd.h
4281do :
4282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4283ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4284"
4285eval as_val=\$$as_ac_Header
4286 if test "x$as_val" = x""yes; then :
4287 cat >>confdefs.h <<_ACEOF
4288#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4289_ACEOF
87969c8c 4290
0c0fb0a6 4291fi
87969c8c 4292
0c0fb0a6 4293done
87969c8c 4294
4295
4296
0c0fb0a6 4297 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4298if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4299 MINIX=yes
4300else
4301 MINIX=
4302fi
87969c8c 4303
4304
0c0fb0a6 4305 if test "$MINIX" = yes; then
87969c8c 4306
0c0fb0a6 4307$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
87969c8c 4308
87969c8c 4309
0c0fb0a6 4310$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4311
4312
4313$as_echo "#define _MINIX 1" >>confdefs.h
4314
4315 fi
4316
4317
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4319$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4320if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
87969c8c 4321 $as_echo_n "(cached) " >&6
4322else
0c0fb0a6 4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324/* end confdefs.h. */
87969c8c 4325
0c0fb0a6 4326# define __EXTENSIONS__ 1
4327 $ac_includes_default
4328int
4329main ()
4330{
4331
4332 ;
4333 return 0;
4334}
4335_ACEOF
4336if ac_fn_c_try_compile "$LINENO"; then :
4337 ac_cv_safe_to_define___extensions__=yes
87969c8c 4338else
0c0fb0a6 4339 ac_cv_safe_to_define___extensions__=no
87969c8c 4340fi
0c0fb0a6 4341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
87969c8c 4342fi
0c0fb0a6 4343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4344$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4345 test $ac_cv_safe_to_define___extensions__ = yes &&
4346 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
87969c8c 4347
0c0fb0a6 4348 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
87969c8c 4349
0c0fb0a6 4350 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
87969c8c 4351
0c0fb0a6 4352 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
87969c8c 4353
0c0fb0a6 4354 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
87969c8c 4355
4356
4357
0c0fb0a6 4358# See if makeinfo has been installed and is modern enough
4359# that we can use it.
87969c8c 4360
0c0fb0a6 4361 # Extract the first word of "makeinfo", so it can be a program name with args.
4362set dummy makeinfo; ac_word=$2
87969c8c 4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364$as_echo_n "checking for $ac_word... " >&6; }
0c0fb0a6 4365if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
87969c8c 4366 $as_echo_n "(cached) " >&6
4367else
0c0fb0a6 4368 if test -n "$MAKEINFO"; then
4369 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
87969c8c 4370else
4371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372for as_dir in $PATH
4373do
4374 IFS=$as_save_IFS
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c0fb0a6 4378 ac_cv_prog_MAKEINFO="makeinfo"
87969c8c 4379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 break 2
4381 fi
4382done
4383 done
4384IFS=$as_save_IFS
4385
4386fi
4387fi
0c0fb0a6 4388MAKEINFO=$ac_cv_prog_MAKEINFO
4389if test -n "$MAKEINFO"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4391$as_echo "$MAKEINFO" >&6; }
87969c8c 4392else
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394$as_echo "no" >&6; }
4395fi
4396
4397
0c0fb0a6 4398 if test -n "$MAKEINFO"; then
4399 # Found it, now check the version.
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4401$as_echo_n "checking for modern makeinfo... " >&6; }
4402if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
87969c8c 4403 $as_echo_n "(cached) " >&6
4404else
0c0fb0a6 4405 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4406 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4407
4408 case $ac_prog_version in
4409 '') gcc_cv_prog_makeinfo_modern=no;;
4410 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4411 *) gcc_cv_prog_makeinfo_modern=no;;
4412 esac
87969c8c 4413
4414fi
0c0fb0a6 4415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4416$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4417 else
4418 gcc_cv_prog_makeinfo_modern=no
4419 fi
4420 if test $gcc_cv_prog_makeinfo_modern = no; then
4421 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4422 fi
4423
4424 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4425 BUILD_INFO_TRUE=
4426 BUILD_INFO_FALSE='#'
87969c8c 4427else
0c0fb0a6 4428 BUILD_INFO_TRUE='#'
4429 BUILD_INFO_FALSE=
87969c8c 4430fi
4431
4432
87969c8c 4433
87969c8c 4434
0c0fb0a6 4435# Check whether --with-bugurl was given.
4436if test "${with_bugurl+set}" = set; then :
4437 withval=$with_bugurl; case "$withval" in
4438 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
4439 no) BUGURL=
4440 ;;
4441 *) BUGURL="$withval"
4442 ;;
4443 esac
4444else
4445 BUGURL="http://gcc.gnu.org/bugs.html"
87969c8c 4446
87969c8c 4447fi
87969c8c 4448
0c0fb0a6 4449 case ${BUGURL} in
4450 "")
4451 REPORT_BUGS_TO=
4452 REPORT_BUGS_TEXI=
4453 ;;
4454 *)
4455 REPORT_BUGS_TO="<$BUGURL>"
4456 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4457 ;;
4458 esac;
87969c8c 4459
4460
4461
4462
0c0fb0a6 4463# Configure libtool
4464case `pwd` in
4465 *\ * | *\ *)
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4467$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4468esac
87969c8c 4469
87969c8c 4470
87969c8c 4471
0c0fb0a6 4472macro_version='2.2.7a'
4473macro_revision='1.3134'
87969c8c 4474
87969c8c 4475
87969c8c 4476
87969c8c 4477
87969c8c 4478
87969c8c 4479
87969c8c 4480
87969c8c 4481
87969c8c 4482
87969c8c 4483
4484
4485
4486
0c0fb0a6 4487ltmain="$ac_aux_dir/ltmain.sh"
87969c8c 4488
0c0fb0a6 4489# Backslashify metacharacters that are still active within
4490# double-quoted strings.
4491sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
87969c8c 4492
0c0fb0a6 4493# Same as above, but do not quote variable references.
4494double_quote_subst='s/\(["`\\]\)/\\\1/g'
87969c8c 4495
0c0fb0a6 4496# Sed substitution to delay expansion of an escaped shell variable in a
4497# double_quote_subst'ed string.
4498delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
87969c8c 4499
0c0fb0a6 4500# Sed substitution to delay expansion of an escaped single quote.
4501delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
87969c8c 4502
0c0fb0a6 4503# Sed substitution to avoid accidental globbing in evaled expressions
4504no_glob_subst='s/\*/\\\*/g'
87969c8c 4505
0c0fb0a6 4506ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4507ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4508ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
87969c8c 4509
0c0fb0a6 4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4511$as_echo_n "checking how to print strings... " >&6; }
4512# Test print first, because it will be a builtin if present.
4513if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4514 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4515 ECHO='print -r --'
4516elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4517 ECHO='printf %s\n'
87969c8c 4518else
0c0fb0a6 4519 # Use this function as a fallback that always works.
4520 func_fallback_echo ()
4521 {
4522 eval 'cat <<_LTECHO_EOF
4523$1
4524_LTECHO_EOF'
4525 }
4526 ECHO='func_fallback_echo'
87969c8c 4527fi
4528
0c0fb0a6 4529# func_echo_all arg...
4530# Invoke $ECHO with all args, space-separated.
4531func_echo_all ()
4532{
4533 $ECHO ""
4534}
87969c8c 4535
0c0fb0a6 4536case "$ECHO" in
4537 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4538$as_echo "printf" >&6; } ;;
4539 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4540$as_echo "print -r" >&6; } ;;
4541 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4542$as_echo "cat" >&6; } ;;
87969c8c 4543esac
4544
4545
4546
4547
4548
4549
4550
4551
4552
87969c8c 4553
4554
4555
4556
4557
0c0fb0a6 4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4559$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4560if test "${ac_cv_path_SED+set}" = set; then :
87969c8c 4561 $as_echo_n "(cached) " >&6
4562else
0c0fb0a6 4563 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4564 for ac_i in 1 2 3 4 5 6 7; do
4565 ac_script="$ac_script$as_nl$ac_script"
4566 done
4567 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4568 { ac_script=; unset ac_script;}
4569 if test -z "$SED"; then
4570 ac_path_SED_found=false
4571 # Loop through the user's path and test for each of PROGNAME-LIST
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
87969c8c 4573for as_dir in $PATH
4574do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
0c0fb0a6 4577 for ac_prog in sed gsed; do
87969c8c 4578 for ac_exec_ext in '' $ac_executable_extensions; do
0c0fb0a6 4579 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4580 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4581# Check for GNU ac_path_SED and select it if it is found.
4582 # Check for GNU $ac_path_SED
4583case `"$ac_path_SED" --version 2>&1` in
4584*GNU*)
4585 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4586*)
4587 ac_count=0
4588 $as_echo_n 0123456789 >"conftest.in"
4589 while :
4590 do
4591 cat "conftest.in" "conftest.in" >"conftest.tmp"
4592 mv "conftest.tmp" "conftest.in"
4593 cp "conftest.in" "conftest.nl"
4594 $as_echo '' >> "conftest.nl"
4595 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4597 as_fn_arith $ac_count + 1 && ac_count=$as_val
4598 if test $ac_count -gt ${ac_path_SED_max-0}; then
4599 # Best one so far, save it but keep looking for a better one
4600 ac_cv_path_SED="$ac_path_SED"
4601 ac_path_SED_max=$ac_count
4602 fi
4603 # 10*(2^10) chars as input seems more than enough
4604 test $ac_count -gt 10 && break
87969c8c 4605 done
0c0fb0a6 4606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4607esac
87969c8c 4608
0c0fb0a6 4609 $ac_path_SED_found && break 3
4610 done
4611 done
4612 done
4613IFS=$as_save_IFS
4614 if test -z "$ac_cv_path_SED"; then
4615 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4616 fi
87969c8c 4617else
0c0fb0a6 4618 ac_cv_path_SED=$SED
87969c8c 4619fi
4620
87969c8c 4621fi
0c0fb0a6 4622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4623$as_echo "$ac_cv_path_SED" >&6; }
4624 SED="$ac_cv_path_SED"
4625 rm -f conftest.sed
4626
4627test -z "$SED" && SED=sed
4628Xsed="$SED -e 1s/^X//"
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4641$as_echo_n "checking for fgrep... " >&6; }
4642if test "${ac_cv_path_FGREP+set}" = set; then :
87969c8c 4643 $as_echo_n "(cached) " >&6
4644else
0c0fb0a6 4645 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4646 then ac_cv_path_FGREP="$GREP -F"
4647 else
4648 if test -z "$FGREP"; then
4649 ac_path_FGREP_found=false
4650 # Loop through the user's path and test for each of PROGNAME-LIST
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
87969c8c 4653do
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
0c0fb0a6 4656 for ac_prog in fgrep; do
87969c8c 4657 for ac_exec_ext in '' $ac_executable_extensions; do
0c0fb0a6 4658 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4659 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4660# Check for GNU ac_path_FGREP and select it if it is found.
4661 # Check for GNU $ac_path_FGREP
4662case `"$ac_path_FGREP" --version 2>&1` in
4663*GNU*)
4664 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4665*)
4666 ac_count=0
4667 $as_echo_n 0123456789 >"conftest.in"
4668 while :
4669 do
4670 cat "conftest.in" "conftest.in" >"conftest.tmp"
4671 mv "conftest.tmp" "conftest.in"
4672 cp "conftest.in" "conftest.nl"
4673 $as_echo 'FGREP' >> "conftest.nl"
4674 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4675 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4676 as_fn_arith $ac_count + 1 && ac_count=$as_val
4677 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4678 # Best one so far, save it but keep looking for a better one
4679 ac_cv_path_FGREP="$ac_path_FGREP"
4680 ac_path_FGREP_max=$ac_count
4681 fi
4682 # 10*(2^10) chars as input seems more than enough
4683 test $ac_count -gt 10 && break
87969c8c 4684 done
0c0fb0a6 4685 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4686esac
87969c8c 4687
0c0fb0a6 4688 $ac_path_FGREP_found && break 3
4689 done
4690 done
4691 done
4692IFS=$as_save_IFS
4693 if test -z "$ac_cv_path_FGREP"; then
4694 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4695 fi
87969c8c 4696else
0c0fb0a6 4697 ac_cv_path_FGREP=$FGREP
87969c8c 4698fi
4699
0c0fb0a6 4700 fi
87969c8c 4701fi
0c0fb0a6 4702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4703$as_echo "$ac_cv_path_FGREP" >&6; }
4704 FGREP="$ac_cv_path_FGREP"
87969c8c 4705
87969c8c 4706
0c0fb0a6 4707test -z "$GREP" && GREP=grep
87969c8c 4708
4709
4710
4711
4712
4713
4714
4715
0c0fb0a6 4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727# Check whether --with-gnu-ld was given.
4728if test "${with_gnu_ld+set}" = set; then :
4729 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4730else
4731 with_gnu_ld=no
4732fi
4733
4734ac_prog=ld
4735if test "$GCC" = yes; then
4736 # Check if gcc -print-prog-name=ld gives a path.
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4738$as_echo_n "checking for ld used by $CC... " >&6; }
4739 case $host in
4740 *-*-mingw*)
4741 # gcc leaves a trailing carriage return which upsets mingw
4742 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4743 *)
4744 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4745 esac
4746 case $ac_prog in
4747 # Accept absolute paths.
4748 [\\/]* | ?:[\\/]*)
4749 re_direlt='/[^/][^/]*/\.\./'
4750 # Canonicalize the pathname of ld
4751 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4752 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4753 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4754 done
4755 test -z "$LD" && LD="$ac_prog"
4756 ;;
4757 "")
4758 # If it fails, then pretend we aren't using GCC.
4759 ac_prog=ld
4760 ;;
4761 *)
4762 # If it is relative, then search for the first ld in PATH.
4763 with_gnu_ld=unknown
4764 ;;
4765 esac
4766elif test "$with_gnu_ld" = yes; then
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4768$as_echo_n "checking for GNU ld... " >&6; }
4769else
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4771$as_echo_n "checking for non-GNU ld... " >&6; }
4772fi
4773if test "${lt_cv_path_LD+set}" = set; then :
4774 $as_echo_n "(cached) " >&6
4775else
4776 if test -z "$LD"; then
4777 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4778 for ac_dir in $PATH; do
4779 IFS="$lt_save_ifs"
4780 test -z "$ac_dir" && ac_dir=.
4781 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4782 lt_cv_path_LD="$ac_dir/$ac_prog"
4783 # Check to see if the program is GNU ld. I'd rather use --version,
4784 # but apparently some variants of GNU ld only accept -v.
4785 # Break only if it was the GNU/non-GNU ld that we prefer.
4786 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4787 *GNU* | *'with BFD'*)
4788 test "$with_gnu_ld" != no && break
4789 ;;
4790 *)
4791 test "$with_gnu_ld" != yes && break
4792 ;;
4793 esac
4794 fi
4795 done
4796 IFS="$lt_save_ifs"
4797else
4798 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4799fi
4800fi
4801
4802LD="$lt_cv_path_LD"
4803if test -n "$LD"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4805$as_echo "$LD" >&6; }
4806else
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808$as_echo "no" >&6; }
4809fi
4810test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4812$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4813if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4814 $as_echo_n "(cached) " >&6
4815else
4816 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4817case `$LD -v 2>&1 </dev/null` in
4818*GNU* | *'with BFD'*)
4819 lt_cv_prog_gnu_ld=yes
4820 ;;
4821*)
4822 lt_cv_prog_gnu_ld=no
4823 ;;
4824esac
4825fi
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4827$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4828with_gnu_ld=$lt_cv_prog_gnu_ld
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4839$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4840if test "${lt_cv_path_NM+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
4842else
4843 if test -n "$NM"; then
4844 # Let the user override the test.
4845 lt_cv_path_NM="$NM"
4846else
4847 lt_nm_to_check="${ac_tool_prefix}nm"
4848 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4849 lt_nm_to_check="$lt_nm_to_check nm"
4850 fi
4851 for lt_tmp_nm in $lt_nm_to_check; do
4852 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4853 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4854 IFS="$lt_save_ifs"
4855 test -z "$ac_dir" && ac_dir=.
4856 tmp_nm="$ac_dir/$lt_tmp_nm"
4857 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4858 # Check to see if the nm accepts a BSD-compat flag.
4859 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4860 # nm: unknown option "B" ignored
4861 # Tru64's nm complains that /dev/null is an invalid object file
4862 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4863 */dev/null* | *'Invalid file or object type'*)
4864 lt_cv_path_NM="$tmp_nm -B"
4865 break
4866 ;;
4867 *)
4868 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4869 */dev/null*)
4870 lt_cv_path_NM="$tmp_nm -p"
4871 break
4872 ;;
4873 *)
4874 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4875 continue # so that we can try to find one that supports BSD flags
4876 ;;
4877 esac
4878 ;;
4879 esac
4880 fi
4881 done
4882 IFS="$lt_save_ifs"
4883 done
4884 : ${lt_cv_path_NM=no}
4885fi
4886fi
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4888$as_echo "$lt_cv_path_NM" >&6; }
4889if test "$lt_cv_path_NM" != "no"; then
4890 NM="$lt_cv_path_NM"
4891else
4892 # Didn't find any BSD compatible name lister, look for dumpbin.
4893 if test -n "$DUMPBIN"; then :
4894 # Let the user override the test.
4895 else
4896 if test -n "$ac_tool_prefix"; then
4897 for ac_prog in dumpbin "link -dump"
4898 do
4899 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4900set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902$as_echo_n "checking for $ac_word... " >&6; }
4903if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4904 $as_echo_n "(cached) " >&6
4905else
4906 if test -n "$DUMPBIN"; then
4907 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4908else
4909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910for as_dir in $PATH
4911do
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4919 fi
4920done
4921 done
4922IFS=$as_save_IFS
4923
4924fi
4925fi
4926DUMPBIN=$ac_cv_prog_DUMPBIN
4927if test -n "$DUMPBIN"; then
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4929$as_echo "$DUMPBIN" >&6; }
4930else
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932$as_echo "no" >&6; }
4933fi
4934
4935
4936 test -n "$DUMPBIN" && break
4937 done
4938fi
4939if test -z "$DUMPBIN"; then
4940 ac_ct_DUMPBIN=$DUMPBIN
4941 for ac_prog in dumpbin "link -dump"
4942do
4943 # Extract the first word of "$ac_prog", so it can be a program name with args.
4944set dummy $ac_prog; ac_word=$2
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946$as_echo_n "checking for $ac_word... " >&6; }
4947if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4948 $as_echo_n "(cached) " >&6
4949else
4950 if test -n "$ac_ct_DUMPBIN"; then
4951 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4952else
4953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954for as_dir in $PATH
4955do
4956 IFS=$as_save_IFS
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4960 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 break 2
4963 fi
4964done
4965 done
4966IFS=$as_save_IFS
4967
4968fi
4969fi
4970ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4971if test -n "$ac_ct_DUMPBIN"; then
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4973$as_echo "$ac_ct_DUMPBIN" >&6; }
4974else
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976$as_echo "no" >&6; }
4977fi
4978
4979
4980 test -n "$ac_ct_DUMPBIN" && break
4981done
4982
4983 if test "x$ac_ct_DUMPBIN" = x; then
4984 DUMPBIN=":"
4985 else
4986 case $cross_compiling:$ac_tool_warned in
4987yes:)
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4990ac_tool_warned=yes ;;
4991esac
4992 DUMPBIN=$ac_ct_DUMPBIN
4993 fi
4994fi
4995
4996 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4997 *COFF*)
4998 DUMPBIN="$DUMPBIN -symbols"
4999 ;;
5000 *)
5001 DUMPBIN=:
5002 ;;
5003 esac
5004 fi
5005
5006 if test "$DUMPBIN" != ":"; then
5007 NM="$DUMPBIN"
5008 fi
5009fi
5010test -z "$NM" && NM=nm
5011
5012
5013
5014
5015
5016
5017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5018$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5019if test "${lt_cv_nm_interface+set}" = set; then :
5020 $as_echo_n "(cached) " >&6
5021else
5022 lt_cv_nm_interface="BSD nm"
5023 echo "int some_variable = 0;" > conftest.$ac_ext
5024 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5025 (eval "$ac_compile" 2>conftest.err)
5026 cat conftest.err >&5
5027 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5028 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5029 cat conftest.err >&5
5030 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5031 cat conftest.out >&5
5032 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5033 lt_cv_nm_interface="MS dumpbin"
5034 fi
5035 rm -f conftest*
5036fi
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5038$as_echo "$lt_cv_nm_interface" >&6; }
5039
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5041$as_echo_n "checking whether ln -s works... " >&6; }
5042LN_S=$as_ln_s
5043if test "$LN_S" = "ln -s"; then
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5045$as_echo "yes" >&6; }
5046else
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5048$as_echo "no, using $LN_S" >&6; }
5049fi
5050
5051# find the maximum length of command line arguments
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5053$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5054if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5055 $as_echo_n "(cached) " >&6
5056else
5057 i=0
5058 teststring="ABCD"
5059
5060 case $build_os in
5061 msdosdjgpp*)
5062 # On DJGPP, this test can blow up pretty badly due to problems in libc
5063 # (any single argument exceeding 2000 bytes causes a buffer overrun
5064 # during glob expansion). Even if it were fixed, the result of this
5065 # check would be larger than it should be.
5066 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5067 ;;
5068
5069 gnu*)
5070 # Under GNU Hurd, this test is not required because there is
5071 # no limit to the length of command line arguments.
5072 # Libtool will interpret -1 as no limit whatsoever
5073 lt_cv_sys_max_cmd_len=-1;
5074 ;;
5075
5076 cygwin* | mingw* | cegcc*)
5077 # On Win9x/ME, this test blows up -- it succeeds, but takes
5078 # about 5 minutes as the teststring grows exponentially.
5079 # Worse, since 9x/ME are not pre-emptively multitasking,
5080 # you end up with a "frozen" computer, even though with patience
5081 # the test eventually succeeds (with a max line length of 256k).
5082 # Instead, let's just punt: use the minimum linelength reported by
5083 # all of the supported platforms: 8192 (on NT/2K/XP).
5084 lt_cv_sys_max_cmd_len=8192;
5085 ;;
5086
5087 mint*)
5088 # On MiNT this can take a long time and run out of memory.
5089 lt_cv_sys_max_cmd_len=8192;
5090 ;;
5091
5092 amigaos*)
5093 # On AmigaOS with pdksh, this test takes hours, literally.
5094 # So we just punt and use a minimum line length of 8192.
5095 lt_cv_sys_max_cmd_len=8192;
5096 ;;
5097
5098 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5099 # This has been around since 386BSD, at least. Likely further.
5100 if test -x /sbin/sysctl; then
5101 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5102 elif test -x /usr/sbin/sysctl; then
5103 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5104 else
5105 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5106 fi
5107 # And add a safety zone
5108 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5109 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5110 ;;
5111
5112 interix*)
5113 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5114 lt_cv_sys_max_cmd_len=196608
5115 ;;
5116
5117 osf*)
5118 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5119 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5120 # nice to cause kernel panics so lets avoid the loop below.
5121 # First set a reasonable default.
5122 lt_cv_sys_max_cmd_len=16384
5123 #
5124 if test -x /sbin/sysconfig; then
5125 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5126 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5127 esac
5128 fi
5129 ;;
5130 sco3.2v5*)
5131 lt_cv_sys_max_cmd_len=102400
5132 ;;
5133 sysv5* | sco5v6* | sysv4.2uw2*)
5134 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5135 if test -n "$kargmax"; then
5136 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5137 else
5138 lt_cv_sys_max_cmd_len=32768
5139 fi
5140 ;;
5141 *)
5142 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5143 if test -n "$lt_cv_sys_max_cmd_len"; then
5144 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5145 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5146 else
5147 # Make teststring a little bigger before we do anything with it.
5148 # a 1K string should be a reasonable start.
5149 for i in 1 2 3 4 5 6 7 8 ; do
5150 teststring=$teststring$teststring
5151 done
5152 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5153 # If test is not a shell built-in, we'll probably end up computing a
5154 # maximum length that is only half of the actual maximum length, but
5155 # we can't tell.
5156 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5157 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5158 test $i != 17 # 1/2 MB should be enough
5159 do
5160 i=`expr $i + 1`
5161 teststring=$teststring$teststring
5162 done
5163 # Only check the string length outside the loop.
5164 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5165 teststring=
5166 # Add a significant safety factor because C++ compilers can tack on
5167 # massive amounts of additional arguments before passing them to the
5168 # linker. It appears as though 1/2 is a usable value.
5169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5170 fi
5171 ;;
5172 esac
5173
5174fi
5175
5176if test -n $lt_cv_sys_max_cmd_len ; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5178$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5179else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5181$as_echo "none" >&6; }
5182fi
5183max_cmd_len=$lt_cv_sys_max_cmd_len
5184
5185
5186
5187
5188
5189
5190: ${CP="cp -f"}
5191: ${MV="mv -f"}
5192: ${RM="rm -f"}
5193
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5195$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5196# Try some XSI features
5197xsi_shell=no
5198( _lt_dummy="a/b/c"
5199 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5200 = c,a/b,, \
5201 && eval 'test $(( 1 + 1 )) -eq 2 \
5202 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5203 && xsi_shell=yes
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5205$as_echo "$xsi_shell" >&6; }
5206
5207
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5209$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5210lt_shell_append=no
5211( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5212 >/dev/null 2>&1 \
5213 && lt_shell_append=yes
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5215$as_echo "$lt_shell_append" >&6; }
5216
5217
5218if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5219 lt_unset=unset
5220else
5221 lt_unset=false
5222fi
5223
5224
5225
5226
5227
5228# test EBCDIC or ASCII
5229case `echo X|tr X '\101'` in
5230 A) # ASCII based system
5231 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5232 lt_SP2NL='tr \040 \012'
5233 lt_NL2SP='tr \015\012 \040\040'
5234 ;;
5235 *) # EBCDIC based system
5236 lt_SP2NL='tr \100 \n'
5237 lt_NL2SP='tr \r\n \100\100'
5238 ;;
5239esac
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5250$as_echo_n "checking for $LD option to reload object files... " >&6; }
5251if test "${lt_cv_ld_reload_flag+set}" = set; then :
5252 $as_echo_n "(cached) " >&6
5253else
5254 lt_cv_ld_reload_flag='-r'
5255fi
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5257$as_echo "$lt_cv_ld_reload_flag" >&6; }
5258reload_flag=$lt_cv_ld_reload_flag
5259case $reload_flag in
5260"" | " "*) ;;
5261*) reload_flag=" $reload_flag" ;;
5262esac
5263reload_cmds='$LD$reload_flag -o $output$reload_objs'
5264case $host_os in
5265 darwin*)
5266 if test "$GCC" = yes; then
5267 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5268 else
5269 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5270 fi
5271 ;;
5272esac
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282if test -n "$ac_tool_prefix"; then
5283 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5284set dummy ${ac_tool_prefix}objdump; ac_word=$2
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286$as_echo_n "checking for $ac_word... " >&6; }
5287if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5288 $as_echo_n "(cached) " >&6
5289else
5290 if test -n "$OBJDUMP"; then
5291 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5292else
5293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294for as_dir in $PATH
5295do
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5300 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5303 fi
5304done
5305 done
5306IFS=$as_save_IFS
5307
5308fi
5309fi
5310OBJDUMP=$ac_cv_prog_OBJDUMP
5311if test -n "$OBJDUMP"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5313$as_echo "$OBJDUMP" >&6; }
5314else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316$as_echo "no" >&6; }
5317fi
5318
5319
5320fi
5321if test -z "$ac_cv_prog_OBJDUMP"; then
5322 ac_ct_OBJDUMP=$OBJDUMP
5323 # Extract the first word of "objdump", so it can be a program name with args.
5324set dummy objdump; ac_word=$2
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326$as_echo_n "checking for $ac_word... " >&6; }
5327if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5328 $as_echo_n "(cached) " >&6
5329else
5330 if test -n "$ac_ct_OBJDUMP"; then
5331 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5332else
5333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334for as_dir in $PATH
5335do
5336 IFS=$as_save_IFS
5337 test -z "$as_dir" && as_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5340 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 break 2
5343 fi
5344done
5345 done
5346IFS=$as_save_IFS
5347
5348fi
5349fi
5350ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5351if test -n "$ac_ct_OBJDUMP"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5353$as_echo "$ac_ct_OBJDUMP" >&6; }
5354else
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356$as_echo "no" >&6; }
5357fi
5358
5359 if test "x$ac_ct_OBJDUMP" = x; then
5360 OBJDUMP="false"
5361 else
5362 case $cross_compiling:$ac_tool_warned in
5363yes:)
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5366ac_tool_warned=yes ;;
5367esac
5368 OBJDUMP=$ac_ct_OBJDUMP
5369 fi
5370else
5371 OBJDUMP="$ac_cv_prog_OBJDUMP"
5372fi
5373
5374test -z "$OBJDUMP" && OBJDUMP=objdump
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5385$as_echo_n "checking how to recognize dependent libraries... " >&6; }
87969c8c 5386if test "${lt_cv_deplibs_check_method+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5388else
5389 lt_cv_file_magic_cmd='$MAGIC_CMD'
5390lt_cv_file_magic_test_file=
5391lt_cv_deplibs_check_method='unknown'
5392# Need to set the preceding variable on all platforms that support
5393# interlibrary dependencies.
5394# 'none' -- dependencies not supported.
5395# `unknown' -- same as none, but documents that we really don't know.
5396# 'pass_all' -- all dependencies passed with no checks.
5397# 'test_compile' -- check by making test program.
5398# 'file_magic [[regex]]' -- check by looking for files in library path
5399# which responds to the $file_magic_cmd with a given extended regex.
5400# If you have `file' or equivalent on your system and you're not sure
5401# whether `pass_all' will *always* work, you probably want this one.
5402
5403case $host_os in
5404aix[4-9]*)
5405 lt_cv_deplibs_check_method=pass_all
5406 ;;
5407
5408beos*)
5409 lt_cv_deplibs_check_method=pass_all
5410 ;;
5411
5412bsdi[45]*)
5413 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5414 lt_cv_file_magic_cmd='/usr/bin/file -L'
5415 lt_cv_file_magic_test_file=/shlib/libc.so
5416 ;;
5417
5418cygwin*)
5419 # func_win32_libid is a shell function defined in ltmain.sh
5420 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5421 lt_cv_file_magic_cmd='func_win32_libid'
5422 ;;
5423
5424mingw* | pw32*)
5425 # Base MSYS/MinGW do not provide the 'file' command needed by
5426 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5427 # unless we find 'file', for example because we are cross-compiling.
5428 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5429 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5430 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5431 lt_cv_file_magic_cmd='func_win32_libid'
5432 else
5433 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5434 lt_cv_file_magic_cmd='$OBJDUMP -f'
5435 fi
5436 ;;
5437
5438cegcc*)
5439 # use the weaker test based on 'objdump'. See mingw*.
5440 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5441 lt_cv_file_magic_cmd='$OBJDUMP -f'
5442 ;;
5443
5444darwin* | rhapsody*)
5445 lt_cv_deplibs_check_method=pass_all
5446 ;;
5447
5448freebsd* | dragonfly*)
5449 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5450 case $host_cpu in
5451 i*86 )
5452 # Not sure whether the presence of OpenBSD here was a mistake.
5453 # Let's accept both of them until this is cleared up.
5454 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5455 lt_cv_file_magic_cmd=/usr/bin/file
5456 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5457 ;;
5458 esac
5459 else
5460 lt_cv_deplibs_check_method=pass_all
5461 fi
5462 ;;
5463
5464gnu*)
5465 lt_cv_deplibs_check_method=pass_all
5466 ;;
5467
5468haiku*)
5469 lt_cv_deplibs_check_method=pass_all
5470 ;;
5471
5472hpux10.20* | hpux11*)
5473 lt_cv_file_magic_cmd=/usr/bin/file
5474 case $host_cpu in
5475 ia64*)
5476 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5477 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5478 ;;
5479 hppa*64*)
5480 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]'
5481 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5482 ;;
5483 *)
5484 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5485 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5486 ;;
5487 esac
5488 ;;
5489
5490interix[3-9]*)
5491 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5493 ;;
5494
5495irix5* | irix6* | nonstopux*)
5496 case $LD in
5497 *-32|*"-32 ") libmagic=32-bit;;
5498 *-n32|*"-n32 ") libmagic=N32;;
5499 *-64|*"-64 ") libmagic=64-bit;;
5500 *) libmagic=never-match;;
5501 esac
5502 lt_cv_deplibs_check_method=pass_all
5503 ;;
5504
5505# This must be Linux ELF.
5506linux* | k*bsd*-gnu | kopensolaris*-gnu)
5507 lt_cv_deplibs_check_method=pass_all
5508 ;;
5509
5510netbsd*)
5511 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5512 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5513 else
5514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5515 fi
5516 ;;
5517
5518newos6*)
5519 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5520 lt_cv_file_magic_cmd=/usr/bin/file
5521 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5522 ;;
5523
5524*nto* | *qnx*)
5525 lt_cv_deplibs_check_method=pass_all
5526 ;;
5527
5528openbsd*)
5529 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5530 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5531 else
5532 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5533 fi
5534 ;;
5535
5536osf3* | osf4* | osf5*)
5537 lt_cv_deplibs_check_method=pass_all
5538 ;;
5539
5540rdos*)
5541 lt_cv_deplibs_check_method=pass_all
5542 ;;
5543
5544solaris*)
5545 lt_cv_deplibs_check_method=pass_all
5546 ;;
5547
5548sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5549 lt_cv_deplibs_check_method=pass_all
5550 ;;
5551
5552sysv4 | sysv4.3*)
5553 case $host_vendor in
5554 motorola)
5555 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]'
5556 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5557 ;;
5558 ncr)
5559 lt_cv_deplibs_check_method=pass_all
5560 ;;
5561 sequent)
5562 lt_cv_file_magic_cmd='/bin/file'
5563 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5564 ;;
5565 sni)
5566 lt_cv_file_magic_cmd='/bin/file'
5567 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5568 lt_cv_file_magic_test_file=/lib/libc.so
5569 ;;
5570 siemens)
5571 lt_cv_deplibs_check_method=pass_all
5572 ;;
5573 pc)
5574 lt_cv_deplibs_check_method=pass_all
5575 ;;
5576 esac
5577 ;;
5578
5579tpf*)
5580 lt_cv_deplibs_check_method=pass_all
5581 ;;
5582esac
5583
5584fi
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5586$as_echo "$lt_cv_deplibs_check_method" >&6; }
5587file_magic_cmd=$lt_cv_file_magic_cmd
5588deplibs_check_method=$lt_cv_deplibs_check_method
5589test -z "$deplibs_check_method" && deplibs_check_method=unknown
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602if test -n "$ac_tool_prefix"; then
5603 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5604set dummy ${ac_tool_prefix}ar; ac_word=$2
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606$as_echo_n "checking for $ac_word... " >&6; }
5607if test "${ac_cv_prog_AR+set}" = set; then :
5608 $as_echo_n "(cached) " >&6
5609else
5610 if test -n "$AR"; then
5611 ac_cv_prog_AR="$AR" # Let the user override the test.
5612else
5613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614for as_dir in $PATH
5615do
5616 IFS=$as_save_IFS
5617 test -z "$as_dir" && as_dir=.
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5620 ac_cv_prog_AR="${ac_tool_prefix}ar"
5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622 break 2
5623 fi
5624done
5625 done
5626IFS=$as_save_IFS
5627
5628fi
5629fi
5630AR=$ac_cv_prog_AR
5631if test -n "$AR"; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5633$as_echo "$AR" >&6; }
5634else
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636$as_echo "no" >&6; }
5637fi
5638
5639
5640fi
5641if test -z "$ac_cv_prog_AR"; then
5642 ac_ct_AR=$AR
5643 # Extract the first word of "ar", so it can be a program name with args.
5644set dummy ar; ac_word=$2
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646$as_echo_n "checking for $ac_word... " >&6; }
5647if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5648 $as_echo_n "(cached) " >&6
5649else
5650 if test -n "$ac_ct_AR"; then
5651 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5652else
5653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654for as_dir in $PATH
5655do
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5660 ac_cv_prog_ac_ct_AR="ar"
5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 break 2
5663 fi
5664done
5665 done
5666IFS=$as_save_IFS
5667
5668fi
5669fi
5670ac_ct_AR=$ac_cv_prog_ac_ct_AR
5671if test -n "$ac_ct_AR"; then
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5673$as_echo "$ac_ct_AR" >&6; }
5674else
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676$as_echo "no" >&6; }
5677fi
5678
5679 if test "x$ac_ct_AR" = x; then
5680 AR="false"
5681 else
5682 case $cross_compiling:$ac_tool_warned in
5683yes:)
5684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5686ac_tool_warned=yes ;;
5687esac
5688 AR=$ac_ct_AR
5689 fi
5690else
5691 AR="$ac_cv_prog_AR"
5692fi
5693
5694test -z "$AR" && AR=ar
5695test -z "$AR_FLAGS" && AR_FLAGS=cru
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707if test -n "$ac_tool_prefix"; then
5708 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5709set dummy ${ac_tool_prefix}strip; ac_word=$2
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711$as_echo_n "checking for $ac_word... " >&6; }
5712if test "${ac_cv_prog_STRIP+set}" = set; then :
5713 $as_echo_n "(cached) " >&6
5714else
5715 if test -n "$STRIP"; then
5716 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5717else
5718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719for as_dir in $PATH
5720do
5721 IFS=$as_save_IFS
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5725 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5727 break 2
5728 fi
5729done
5730 done
5731IFS=$as_save_IFS
5732
5733fi
5734fi
5735STRIP=$ac_cv_prog_STRIP
5736if test -n "$STRIP"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5738$as_echo "$STRIP" >&6; }
5739else
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741$as_echo "no" >&6; }
5742fi
5743
5744
5745fi
5746if test -z "$ac_cv_prog_STRIP"; then
5747 ac_ct_STRIP=$STRIP
5748 # Extract the first word of "strip", so it can be a program name with args.
5749set dummy strip; ac_word=$2
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751$as_echo_n "checking for $ac_word... " >&6; }
5752if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5753 $as_echo_n "(cached) " >&6
5754else
5755 if test -n "$ac_ct_STRIP"; then
5756 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5757else
5758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759for as_dir in $PATH
5760do
5761 IFS=$as_save_IFS
5762 test -z "$as_dir" && as_dir=.
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5765 ac_cv_prog_ac_ct_STRIP="strip"
5766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 break 2
5768 fi
5769done
5770 done
5771IFS=$as_save_IFS
5772
5773fi
5774fi
5775ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5776if test -n "$ac_ct_STRIP"; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5778$as_echo "$ac_ct_STRIP" >&6; }
5779else
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781$as_echo "no" >&6; }
5782fi
5783
5784 if test "x$ac_ct_STRIP" = x; then
5785 STRIP=":"
5786 else
5787 case $cross_compiling:$ac_tool_warned in
5788yes:)
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5791ac_tool_warned=yes ;;
5792esac
5793 STRIP=$ac_ct_STRIP
5794 fi
5795else
5796 STRIP="$ac_cv_prog_STRIP"
5797fi
5798
5799test -z "$STRIP" && STRIP=:
5800
5801
5802
5803
5804
5805
5806if test -n "$ac_tool_prefix"; then
5807 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5808set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810$as_echo_n "checking for $ac_word... " >&6; }
5811if test "${ac_cv_prog_RANLIB+set}" = set; then :
5812 $as_echo_n "(cached) " >&6
5813else
5814 if test -n "$RANLIB"; then
5815 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5816else
5817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818for as_dir in $PATH
5819do
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5824 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 break 2
5827 fi
5828done
5829 done
5830IFS=$as_save_IFS
5831
5832fi
5833fi
5834RANLIB=$ac_cv_prog_RANLIB
5835if test -n "$RANLIB"; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5837$as_echo "$RANLIB" >&6; }
5838else
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840$as_echo "no" >&6; }
5841fi
5842
5843
5844fi
5845if test -z "$ac_cv_prog_RANLIB"; then
5846 ac_ct_RANLIB=$RANLIB
5847 # Extract the first word of "ranlib", so it can be a program name with args.
5848set dummy ranlib; ac_word=$2
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850$as_echo_n "checking for $ac_word... " >&6; }
5851if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5852 $as_echo_n "(cached) " >&6
5853else
5854 if test -n "$ac_ct_RANLIB"; then
5855 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5856else
5857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858for as_dir in $PATH
5859do
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864 ac_cv_prog_ac_ct_RANLIB="ranlib"
5865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 break 2
5867 fi
5868done
5869 done
5870IFS=$as_save_IFS
5871
5872fi
5873fi
5874ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5875if test -n "$ac_ct_RANLIB"; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5877$as_echo "$ac_ct_RANLIB" >&6; }
5878else
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880$as_echo "no" >&6; }
5881fi
5882
5883 if test "x$ac_ct_RANLIB" = x; then
5884 RANLIB=":"
5885 else
5886 case $cross_compiling:$ac_tool_warned in
5887yes:)
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5890ac_tool_warned=yes ;;
5891esac
5892 RANLIB=$ac_ct_RANLIB
5893 fi
5894else
5895 RANLIB="$ac_cv_prog_RANLIB"
5896fi
5897
5898test -z "$RANLIB" && RANLIB=:
5899
5900
5901
5902
5903
5904
5905# Determine commands to create old-style static archives.
5906old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5907old_postinstall_cmds='chmod 644 $oldlib'
5908old_postuninstall_cmds=
5909
5910if test -n "$RANLIB"; then
5911 case $host_os in
5912 openbsd*)
5913 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5914 ;;
5915 *)
5916 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5917 ;;
5918 esac
5919 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5920fi
5921
5922case $host_os in
5923 darwin*)
5924 lock_old_archive_extraction=yes ;;
5925 *)
5926 lock_old_archive_extraction=no ;;
5927esac
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967# If no C compiler was specified, use CC.
5968LTCC=${LTCC-"$CC"}
5969
5970# If no C compiler flags were specified, use CFLAGS.
5971LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5972
5973# Allow CC to be a program name with arguments.
5974compiler=$CC
5975
5976
5977# Check for command to grab the raw symbol name followed by C symbol from nm.
5978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5979$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5980if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5981 $as_echo_n "(cached) " >&6
5982else
5983
5984# These are sane defaults that work on at least a few old systems.
5985# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5986
5987# Character class describing NM global symbol codes.
5988symcode='[BCDEGRST]'
5989
5990# Regexp to match symbols that can be accessed directly from C.
5991sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5992
5993# Define system-specific variables.
5994case $host_os in
5995aix*)
5996 symcode='[BCDT]'
5997 ;;
5998cygwin* | mingw* | pw32* | cegcc*)
5999 symcode='[ABCDGISTW]'
6000 ;;
6001hpux*)
6002 if test "$host_cpu" = ia64; then
6003 symcode='[ABCDEGRST]'
6004 fi
6005 ;;
6006irix* | nonstopux*)
6007 symcode='[BCDEGRST]'
6008 ;;
6009osf*)
6010 symcode='[BCDEGQRST]'
6011 ;;
6012solaris*)
6013 symcode='[BDRT]'
6014 ;;
6015sco3.2v5*)
6016 symcode='[DT]'
6017 ;;
6018sysv4.2uw2*)
6019 symcode='[DT]'
6020 ;;
6021sysv5* | sco5v6* | unixware* | OpenUNIX*)
6022 symcode='[ABDT]'
6023 ;;
6024sysv4)
6025 symcode='[DFNSTU]'
6026 ;;
6027esac
6028
6029# If we're using GNU nm, then use its standard symbol codes.
6030case `$NM -V 2>&1` in
6031*GNU* | *'with BFD'*)
6032 symcode='[ABCDGIRSTW]' ;;
6033esac
6034
6035# Transform an extracted symbol line into a proper C declaration.
6036# Some systems (esp. on ia64) link data and code symbols differently,
6037# so use this general approach.
6038lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6039
6040# Transform an extracted symbol line into symbol name and symbol address
6041lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6042lt_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'"
6043
6044# Handle CRLF in mingw tool chain
6045opt_cr=
6046case $build_os in
6047mingw*)
6048 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6049 ;;
6050esac
6051
6052# Try without a prefix underscore, then with it.
6053for ac_symprfx in "" "_"; do
6054
6055 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6056 symxfrm="\\1 $ac_symprfx\\2 \\2"
6057
6058 # Write the raw and C identifiers.
6059 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6060 # Fake it for dumpbin and say T for any non-static function
6061 # and D for any global variable.
6062 # Also find C++ and __fastcall symbols from MSVC++,
6063 # which start with @ or ?.
6064 lt_cv_sys_global_symbol_pipe="$AWK '"\
6065" {last_section=section; section=\$ 3};"\
6066" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6067" \$ 0!~/External *\|/{next};"\
6068" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6069" {if(hide[section]) next};"\
6070" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6071" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6072" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6073" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6074" ' prfx=^$ac_symprfx"
6075 else
6076 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6077 fi
6078
6079 # Check to see that the pipe works correctly.
6080 pipe_works=no
6081
6082 rm -f conftest*
6083 cat > conftest.$ac_ext <<_LT_EOF
6084#ifdef __cplusplus
6085extern "C" {
6086#endif
6087char nm_test_var;
6088void nm_test_func(void);
6089void nm_test_func(void){}
6090#ifdef __cplusplus
6091}
6092#endif
6093int main(){nm_test_var='a';nm_test_func();return(0);}
6094_LT_EOF
6095
6096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6097 (eval $ac_compile) 2>&5
6098 ac_status=$?
6099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6100 test $ac_status = 0; }; then
6101 # Now try to grab the symbols.
6102 nlist=conftest.nm
6103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6104 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6105 ac_status=$?
6106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6107 test $ac_status = 0; } && test -s "$nlist"; then
6108 # Try sorting and uniquifying the output.
6109 if sort "$nlist" | uniq > "$nlist"T; then
6110 mv -f "$nlist"T "$nlist"
6111 else
6112 rm -f "$nlist"T
6113 fi
6114
6115 # Make sure that we snagged all the symbols we need.
6116 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6117 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6118 cat <<_LT_EOF > conftest.$ac_ext
6119#ifdef __cplusplus
6120extern "C" {
6121#endif
6122
6123_LT_EOF
6124 # Now generate the symbol file.
6125 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6126
6127 cat <<_LT_EOF >> conftest.$ac_ext
6128
6129/* The mapping between symbol names and symbols. */
6130const struct {
6131 const char *name;
6132 void *address;
6133}
6134lt__PROGRAM__LTX_preloaded_symbols[] =
6135{
6136 { "@PROGRAM@", (void *) 0 },
6137_LT_EOF
6138 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6139 cat <<\_LT_EOF >> conftest.$ac_ext
6140 {0, (void *) 0}
6141};
6142
6143/* This works around a problem in FreeBSD linker */
6144#ifdef FREEBSD_WORKAROUND
6145static const void *lt_preloaded_setup() {
6146 return lt__PROGRAM__LTX_preloaded_symbols;
6147}
6148#endif
6149
6150#ifdef __cplusplus
6151}
6152#endif
6153_LT_EOF
6154 # Now try linking the two files.
6155 mv conftest.$ac_objext conftstm.$ac_objext
6156 lt_save_LIBS="$LIBS"
6157 lt_save_CFLAGS="$CFLAGS"
6158 LIBS="conftstm.$ac_objext"
6159 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6161 (eval $ac_link) 2>&5
6162 ac_status=$?
6163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6164 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6165 pipe_works=yes
6166 fi
6167 LIBS="$lt_save_LIBS"
6168 CFLAGS="$lt_save_CFLAGS"
6169 else
6170 echo "cannot find nm_test_func in $nlist" >&5
6171 fi
6172 else
6173 echo "cannot find nm_test_var in $nlist" >&5
6174 fi
6175 else
6176 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6177 fi
6178 else
6179 echo "$progname: failed program was:" >&5
6180 cat conftest.$ac_ext >&5
6181 fi
6182 rm -rf conftest* conftst*
6183
6184 # Do not use the global_symbol_pipe unless it works.
6185 if test "$pipe_works" = yes; then
6186 break
6187 else
6188 lt_cv_sys_global_symbol_pipe=
6189 fi
6190done
6191
6192fi
6193
6194if test -z "$lt_cv_sys_global_symbol_pipe"; then
6195 lt_cv_sys_global_symbol_to_cdecl=
6196fi
6197if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6199$as_echo "failed" >&6; }
6200else
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6202$as_echo "ok" >&6; }
6203fi
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
87969c8c 6224
6225
6226# Check whether --enable-libtool-lock was given.
6227if test "${enable_libtool_lock+set}" = set; then :
6228 enableval=$enable_libtool_lock;
6229fi
6230
6231test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6232
6233# Some flags need to be propagated to the compiler or linker for good
6234# libtool support.
6235case $host in
6236ia64-*-hpux*)
6237 # Find out which ABI we are using.
6238 echo 'int i;' > conftest.$ac_ext
6239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6240 (eval $ac_compile) 2>&5
6241 ac_status=$?
6242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6243 test $ac_status = 0; }; then
6244 case `/usr/bin/file conftest.$ac_objext` in
6245 *ELF-32*)
6246 HPUX_IA64_MODE="32"
6247 ;;
6248 *ELF-64*)
6249 HPUX_IA64_MODE="64"
6250 ;;
6251 esac
6252 fi
6253 rm -rf conftest*
6254 ;;
6255*-*-irix6*)
6256 # Find out which ABI we are using.
6257 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6259 (eval $ac_compile) 2>&5
6260 ac_status=$?
6261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6262 test $ac_status = 0; }; then
6263 if test "$lt_cv_prog_gnu_ld" = yes; then
6264 case `/usr/bin/file conftest.$ac_objext` in
6265 *32-bit*)
6266 LD="${LD-ld} -melf32bsmip"
6267 ;;
6268 *N32*)
6269 LD="${LD-ld} -melf32bmipn32"
6270 ;;
6271 *64-bit*)
6272 LD="${LD-ld} -melf64bmip"
6273 ;;
6274 esac
6275 else
6276 case `/usr/bin/file conftest.$ac_objext` in
6277 *32-bit*)
6278 LD="${LD-ld} -32"
6279 ;;
6280 *N32*)
6281 LD="${LD-ld} -n32"
6282 ;;
6283 *64-bit*)
6284 LD="${LD-ld} -64"
6285 ;;
6286 esac
6287 fi
6288 fi
6289 rm -rf conftest*
6290 ;;
6291
9613c003 6292x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
87969c8c 6293s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6294 # Find out which ABI we are using.
6295 echo 'int i;' > conftest.$ac_ext
6296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6297 (eval $ac_compile) 2>&5
6298 ac_status=$?
6299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6300 test $ac_status = 0; }; then
6301 case `/usr/bin/file conftest.o` in
6302 *32-bit*)
6303 case $host in
6304 x86_64-*kfreebsd*-gnu)
6305 LD="${LD-ld} -m elf_i386_fbsd"
6306 ;;
6307 x86_64-*linux*)
b4b3bbba 6308 case `/usr/bin/file conftest.o` in
6309 *x86-64*)
6310 LD="${LD-ld} -m elf32_x86_64"
6311 ;;
6312 *)
6313 LD="${LD-ld} -m elf_i386"
6314 ;;
6315 esac
87969c8c 6316 ;;
9613c003 6317 powerpc64le-*linux*)
6318 LD="${LD-ld} -m elf32lppclinux"
6319 ;;
6320 powerpc64-*linux*)
87969c8c 6321 LD="${LD-ld} -m elf32ppclinux"
6322 ;;
6323 s390x-*linux*)
6324 LD="${LD-ld} -m elf_s390"
6325 ;;
6326 sparc64-*linux*)
6327 LD="${LD-ld} -m elf32_sparc"
6328 ;;
6329 esac
6330 ;;
6331 *64-bit*)
6332 case $host in
6333 x86_64-*kfreebsd*-gnu)
6334 LD="${LD-ld} -m elf_x86_64_fbsd"
6335 ;;
6336 x86_64-*linux*)
6337 LD="${LD-ld} -m elf_x86_64"
6338 ;;
9613c003 6339 powerpcle-*linux*)
6340 LD="${LD-ld} -m elf64lppc"
6341 ;;
6342 powerpc-*linux*)
87969c8c 6343 LD="${LD-ld} -m elf64ppc"
6344 ;;
6345 s390*-*linux*|s390*-*tpf*)
6346 LD="${LD-ld} -m elf64_s390"
6347 ;;
6348 sparc*-*linux*)
6349 LD="${LD-ld} -m elf64_sparc"
6350 ;;
6351 esac
6352 ;;
6353 esac
6354 fi
6355 rm -rf conftest*
6356 ;;
6357
6358*-*-sco3.2v5*)
6359 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6360 SAVE_CFLAGS="$CFLAGS"
6361 CFLAGS="$CFLAGS -belf"
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6363$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6364if test "${lt_cv_cc_needs_belf+set}" = set; then :
6365 $as_echo_n "(cached) " >&6
6366else
6367 ac_ext=c
6368ac_cpp='$CPP $CPPFLAGS'
6369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6371ac_compiler_gnu=$ac_cv_c_compiler_gnu
6372
cb3103a1 6373 if test x$gcc_no_link = xyes; then
6374 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6375fi
6376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969c8c 6377/* end confdefs.h. */
6378
6379int
6380main ()
6381{
6382
6383 ;
6384 return 0;
6385}
6386_ACEOF
6387if ac_fn_c_try_link "$LINENO"; then :
6388 lt_cv_cc_needs_belf=yes
6389else
6390 lt_cv_cc_needs_belf=no
6391fi
6392rm -f core conftest.err conftest.$ac_objext \
6393 conftest$ac_exeext conftest.$ac_ext
6394 ac_ext=c
6395ac_cpp='$CPP $CPPFLAGS'
6396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6398ac_compiler_gnu=$ac_cv_c_compiler_gnu
6399
6400fi
6401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6402$as_echo "$lt_cv_cc_needs_belf" >&6; }
6403 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6404 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6405 CFLAGS="$SAVE_CFLAGS"
6406 fi
6407 ;;
6408sparc*-*solaris*)
6409 # Find out which ABI we are using.
6410 echo 'int i;' > conftest.$ac_ext
6411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6412 (eval $ac_compile) 2>&5
6413 ac_status=$?
6414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6415 test $ac_status = 0; }; then
6416 case `/usr/bin/file conftest.o` in
6417 *64-bit*)
6418 case $lt_cv_prog_gnu_ld in
6419 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6420 *)
6421 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6422 LD="${LD-ld} -64"
6423 fi
6424 ;;
6425 esac
6426 ;;
6427 esac
6428 fi
6429 rm -rf conftest*
6430 ;;
6431esac
6432
6433need_locks="$enable_libtool_lock"
6434
6435
6436 case $host_os in
6437 rhapsody* | darwin*)
6438 if test -n "$ac_tool_prefix"; then
6439 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6440set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442$as_echo_n "checking for $ac_word... " >&6; }
6443if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6444 $as_echo_n "(cached) " >&6
6445else
6446 if test -n "$DSYMUTIL"; then
6447 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6448else
6449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450for as_dir in $PATH
6451do
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6456 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 break 2
6459 fi
6460done
6461 done
6462IFS=$as_save_IFS
6463
6464fi
6465fi
6466DSYMUTIL=$ac_cv_prog_DSYMUTIL
6467if test -n "$DSYMUTIL"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6469$as_echo "$DSYMUTIL" >&6; }
6470else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472$as_echo "no" >&6; }
6473fi
6474
6475
6476fi
6477if test -z "$ac_cv_prog_DSYMUTIL"; then
6478 ac_ct_DSYMUTIL=$DSYMUTIL
6479 # Extract the first word of "dsymutil", so it can be a program name with args.
6480set dummy dsymutil; ac_word=$2
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6482$as_echo_n "checking for $ac_word... " >&6; }
6483if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6484 $as_echo_n "(cached) " >&6
6485else
6486 if test -n "$ac_ct_DSYMUTIL"; then
6487 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6488else
6489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490for as_dir in $PATH
6491do
6492 IFS=$as_save_IFS
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 break 2
6499 fi
6500done
6501 done
6502IFS=$as_save_IFS
6503
6504fi
6505fi
6506ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6507if test -n "$ac_ct_DSYMUTIL"; then
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6509$as_echo "$ac_ct_DSYMUTIL" >&6; }
6510else
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512$as_echo "no" >&6; }
6513fi
6514
6515 if test "x$ac_ct_DSYMUTIL" = x; then
6516 DSYMUTIL=":"
6517 else
6518 case $cross_compiling:$ac_tool_warned in
6519yes:)
6520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6522ac_tool_warned=yes ;;
6523esac
6524 DSYMUTIL=$ac_ct_DSYMUTIL
6525 fi
6526else
6527 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6528fi
6529
6530 if test -n "$ac_tool_prefix"; then
6531 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6532set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534$as_echo_n "checking for $ac_word... " >&6; }
6535if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6536 $as_echo_n "(cached) " >&6
6537else
6538 if test -n "$NMEDIT"; then
6539 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6540else
6541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542for as_dir in $PATH
6543do
6544 IFS=$as_save_IFS
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6548 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 break 2
6551 fi
6552done
6553 done
6554IFS=$as_save_IFS
6555
6556fi
6557fi
6558NMEDIT=$ac_cv_prog_NMEDIT
6559if test -n "$NMEDIT"; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6561$as_echo "$NMEDIT" >&6; }
6562else
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564$as_echo "no" >&6; }
6565fi
6566
6567
6568fi
6569if test -z "$ac_cv_prog_NMEDIT"; then
6570 ac_ct_NMEDIT=$NMEDIT
6571 # Extract the first word of "nmedit", so it can be a program name with args.
6572set dummy nmedit; ac_word=$2
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574$as_echo_n "checking for $ac_word... " >&6; }
6575if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6576 $as_echo_n "(cached) " >&6
6577else
6578 if test -n "$ac_ct_NMEDIT"; then
6579 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6580else
6581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582for as_dir in $PATH
6583do
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 break 2
6591 fi
6592done
6593 done
6594IFS=$as_save_IFS
6595
6596fi
6597fi
6598ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6599if test -n "$ac_ct_NMEDIT"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6601$as_echo "$ac_ct_NMEDIT" >&6; }
6602else
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604$as_echo "no" >&6; }
6605fi
6606
6607 if test "x$ac_ct_NMEDIT" = x; then
6608 NMEDIT=":"
6609 else
6610 case $cross_compiling:$ac_tool_warned in
6611yes:)
6612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6614ac_tool_warned=yes ;;
6615esac
6616 NMEDIT=$ac_ct_NMEDIT
6617 fi
6618else
6619 NMEDIT="$ac_cv_prog_NMEDIT"
6620fi
6621
6622 if test -n "$ac_tool_prefix"; then
6623 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6624set dummy ${ac_tool_prefix}lipo; ac_word=$2
6625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626$as_echo_n "checking for $ac_word... " >&6; }
6627if test "${ac_cv_prog_LIPO+set}" = set; then :
6628 $as_echo_n "(cached) " >&6
6629else
6630 if test -n "$LIPO"; then
6631 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6632else
6633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634for as_dir in $PATH
6635do
6636 IFS=$as_save_IFS
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6640 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 break 2
6643 fi
6644done
6645 done
6646IFS=$as_save_IFS
6647
6648fi
6649fi
6650LIPO=$ac_cv_prog_LIPO
0c0fb0a6 6651if test -n "$LIPO"; then
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6653$as_echo "$LIPO" >&6; }
87969c8c 6654else
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656$as_echo "no" >&6; }
6657fi
6658
6659
6660fi
0c0fb0a6 6661if test -z "$ac_cv_prog_LIPO"; then
6662 ac_ct_LIPO=$LIPO
6663 # Extract the first word of "lipo", so it can be a program name with args.
6664set dummy lipo; ac_word=$2
87969c8c 6665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666$as_echo_n "checking for $ac_word... " >&6; }
0c0fb0a6 6667if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
87969c8c 6668 $as_echo_n "(cached) " >&6
6669else
0c0fb0a6 6670 if test -n "$ac_ct_LIPO"; then
6671 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
87969c8c 6672else
6673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674for as_dir in $PATH
6675do
6676 IFS=$as_save_IFS
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c0fb0a6 6680 ac_cv_prog_ac_ct_LIPO="lipo"
87969c8c 6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 break 2
6683 fi
6684done
6685 done
6686IFS=$as_save_IFS
6687
6688fi
6689fi
0c0fb0a6 6690ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6691if test -n "$ac_ct_LIPO"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6693$as_echo "$ac_ct_LIPO" >&6; }
87969c8c 6694else
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696$as_echo "no" >&6; }
6697fi
6698
0c0fb0a6 6699 if test "x$ac_ct_LIPO" = x; then
6700 LIPO=":"
87969c8c 6701 else
6702 case $cross_compiling:$ac_tool_warned in
6703yes:)
6704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6706ac_tool_warned=yes ;;
6707esac
0c0fb0a6 6708 LIPO=$ac_ct_LIPO
87969c8c 6709 fi
6710else
0c0fb0a6 6711 LIPO="$ac_cv_prog_LIPO"
87969c8c 6712fi
6713
0c0fb0a6 6714 if test -n "$ac_tool_prefix"; then
6715 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6716set dummy ${ac_tool_prefix}otool; ac_word=$2
6717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718$as_echo_n "checking for $ac_word... " >&6; }
6719if test "${ac_cv_prog_OTOOL+set}" = set; then :
87969c8c 6720 $as_echo_n "(cached) " >&6
6721else
0c0fb0a6 6722 if test -n "$OTOOL"; then
6723 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
87969c8c 6724else
0c0fb0a6 6725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726for as_dir in $PATH
6727do
6728 IFS=$as_save_IFS
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6732 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 break 2
6735 fi
6736done
6737 done
6738IFS=$as_save_IFS
87969c8c 6739
87969c8c 6740fi
87969c8c 6741fi
0c0fb0a6 6742OTOOL=$ac_cv_prog_OTOOL
6743if test -n "$OTOOL"; then
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6745$as_echo "$OTOOL" >&6; }
87969c8c 6746else
0c0fb0a6 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748$as_echo "no" >&6; }
87969c8c 6749fi
87969c8c 6750
0c0fb0a6 6751
87969c8c 6752fi
0c0fb0a6 6753if test -z "$ac_cv_prog_OTOOL"; then
6754 ac_ct_OTOOL=$OTOOL
6755 # Extract the first word of "otool", so it can be a program name with args.
6756set dummy otool; ac_word=$2
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758$as_echo_n "checking for $ac_word... " >&6; }
6759if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
87969c8c 6760 $as_echo_n "(cached) " >&6
6761else
0c0fb0a6 6762 if test -n "$ac_ct_OTOOL"; then
6763 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6764else
6765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766for as_dir in $PATH
6767do
6768 IFS=$as_save_IFS
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6772 ac_cv_prog_ac_ct_OTOOL="otool"
6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 break 2
6775 fi
6776done
6777 done
6778IFS=$as_save_IFS
87969c8c 6779
0c0fb0a6 6780fi
6781fi
6782ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6783if test -n "$ac_ct_OTOOL"; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6785$as_echo "$ac_ct_OTOOL" >&6; }
87969c8c 6786else
0c0fb0a6 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788$as_echo "no" >&6; }
87969c8c 6789fi
87969c8c 6790
0c0fb0a6 6791 if test "x$ac_ct_OTOOL" = x; then
6792 OTOOL=":"
6793 else
6794 case $cross_compiling:$ac_tool_warned in
6795yes:)
6796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6798ac_tool_warned=yes ;;
6799esac
6800 OTOOL=$ac_ct_OTOOL
6801 fi
87969c8c 6802else
0c0fb0a6 6803 OTOOL="$ac_cv_prog_OTOOL"
87969c8c 6804fi
87969c8c 6805
0c0fb0a6 6806 if test -n "$ac_tool_prefix"; then
6807 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6808set dummy ${ac_tool_prefix}otool64; ac_word=$2
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810$as_echo_n "checking for $ac_word... " >&6; }
6811if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6812 $as_echo_n "(cached) " >&6
6813else
6814 if test -n "$OTOOL64"; then
6815 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6816else
6817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818for as_dir in $PATH
6819do
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6824 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 break 2
6827 fi
87969c8c 6828done
0c0fb0a6 6829 done
6830IFS=$as_save_IFS
6831
6832fi
6833fi
6834OTOOL64=$ac_cv_prog_OTOOL64
6835if test -n "$OTOOL64"; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6837$as_echo "$OTOOL64" >&6; }
6838else
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840$as_echo "no" >&6; }
87969c8c 6841fi
6842
87969c8c 6843
6844fi
0c0fb0a6 6845if test -z "$ac_cv_prog_OTOOL64"; then
6846 ac_ct_OTOOL64=$OTOOL64
6847 # Extract the first word of "otool64", so it can be a program name with args.
6848set dummy otool64; ac_word=$2
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850$as_echo_n "checking for $ac_word... " >&6; }
6851if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6852 $as_echo_n "(cached) " >&6
87969c8c 6853else
0c0fb0a6 6854 if test -n "$ac_ct_OTOOL64"; then
6855 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6856else
6857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858for as_dir in $PATH
87969c8c 6859do
0c0fb0a6 6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6864 ac_cv_prog_ac_ct_OTOOL64="otool64"
6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6867 fi
6868done
6869 done
6870IFS=$as_save_IFS
87969c8c 6871
0c0fb0a6 6872fi
6873fi
6874ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6875if test -n "$ac_ct_OTOOL64"; then
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6877$as_echo "$ac_ct_OTOOL64" >&6; }
87969c8c 6878else
0c0fb0a6 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880$as_echo "no" >&6; }
87969c8c 6881fi
87969c8c 6882
0c0fb0a6 6883 if test "x$ac_ct_OTOOL64" = x; then
6884 OTOOL64=":"
6885 else
6886 case $cross_compiling:$ac_tool_warned in
6887yes:)
6888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6890ac_tool_warned=yes ;;
6891esac
6892 OTOOL64=$ac_ct_OTOOL64
6893 fi
87969c8c 6894else
0c0fb0a6 6895 OTOOL64="$ac_cv_prog_OTOOL64"
87969c8c 6896fi
87969c8c 6897
87969c8c 6898
87969c8c 6899
87969c8c 6900
6901
87969c8c 6902
87969c8c 6903
87969c8c 6904
87969c8c 6905
87969c8c 6906
87969c8c 6907
0c0fb0a6 6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6925$as_echo_n "checking for -single_module linker flag... " >&6; }
6926if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6927 $as_echo_n "(cached) " >&6
6928else
6929 lt_cv_apple_cc_single_mod=no
6930 if test -z "${LT_MULTI_MODULE}"; then
6931 # By default we will add the -single_module flag. You can override
6932 # by either setting the environment variable LT_MULTI_MODULE
6933 # non-empty at configure time, or by adding -multi_module to the
6934 # link flags.
6935 rm -rf libconftest.dylib*
6936 echo "int foo(void){return 1;}" > conftest.c
6937 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6938-dynamiclib -Wl,-single_module conftest.c" >&5
6939 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6940 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6941 _lt_result=$?
6942 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6943 lt_cv_apple_cc_single_mod=yes
6944 else
6945 cat conftest.err >&5
6946 fi
6947 rm -rf libconftest.dylib*
6948 rm -f conftest.*
6949 fi
87969c8c 6950fi
0c0fb0a6 6951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6952$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6954$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6955if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6956 $as_echo_n "(cached) " >&6
87969c8c 6957else
0c0fb0a6 6958 lt_cv_ld_exported_symbols_list=no
6959 save_LDFLAGS=$LDFLAGS
6960 echo "_main" > conftest.sym
6961 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6962 if test x$gcc_no_link = xyes; then
6963 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
87969c8c 6964fi
0c0fb0a6 6965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969c8c 6966/* end confdefs.h. */
87969c8c 6967
87969c8c 6968int
6969main ()
6970{
0c0fb0a6 6971
6972 ;
87969c8c 6973 return 0;
6974}
6975_ACEOF
0c0fb0a6 6976if ac_fn_c_try_link "$LINENO"; then :
6977 lt_cv_ld_exported_symbols_list=yes
87969c8c 6978else
0c0fb0a6 6979 lt_cv_ld_exported_symbols_list=no
87969c8c 6980fi
0c0fb0a6 6981rm -f core conftest.err conftest.$ac_objext \
6982 conftest$ac_exeext conftest.$ac_ext
6983 LDFLAGS="$save_LDFLAGS"
87969c8c 6984
6985fi
0c0fb0a6 6986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6987$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6989$as_echo_n "checking for -force_load linker flag... " >&6; }
6990if test "${lt_cv_ld_force_load+set}" = set; then :
6991 $as_echo_n "(cached) " >&6
6992else
6993 lt_cv_ld_force_load=no
6994 cat > conftest.c << _LT_EOF
6995int forced_loaded() { return 2;}
6996_LT_EOF
6997 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6998 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6999 echo "$AR cru libconftest.a conftest.o" >&5
7000 $AR cru libconftest.a conftest.o 2>&5
7001 cat > conftest.c << _LT_EOF
7002int main() { return 0;}
7003_LT_EOF
7004 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7005 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7006 _lt_result=$?
7007 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7008 lt_cv_ld_force_load=yes
7009 else
7010 cat conftest.err >&5
7011 fi
7012 rm -f conftest.err libconftest.a conftest conftest.c
7013 rm -rf conftest.dSYM
87969c8c 7014
7015fi
0c0fb0a6 7016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7017$as_echo "$lt_cv_ld_force_load" >&6; }
7018 case $host_os in
7019 rhapsody* | darwin1.[012])
7020 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7021 darwin1.*)
7022 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7023 darwin*) # darwin 5.x on
7024 # if running on 10.5 or later, the deployment target defaults
7025 # to the OS version, if on x86, and 10.4, the deployment
7026 # target defaults to 10.4. Don't you love it?
7027 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7028 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7029 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7c407808 7030 10.[012][,.]*)
0c0fb0a6 7031 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7032 10.*)
7033 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7034 esac
7035 ;;
7036 esac
7037 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7038 _lt_dar_single_mod='$single_module'
7039 fi
7040 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7041 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7042 else
7043 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7044 fi
7045 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7046 _lt_dsymutil='~$DSYMUTIL $lib || :'
7047 else
7048 _lt_dsymutil=
7049 fi
7050 ;;
7051 esac
87969c8c 7052
7053for ac_header in dlfcn.h
7054do :
7055 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7056"
7057if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7058 cat >>confdefs.h <<_ACEOF
7059#define HAVE_DLFCN_H 1
7060_ACEOF
7061
7062fi
7063
7064done
7065
7066
7067
7068
7069
7070# Set options
7071
7072
7073
7074 enable_dlopen=no
7075
7076
7077 enable_win32_dll=no
7078
7079
7080 # Check whether --enable-shared was given.
7081if test "${enable_shared+set}" = set; then :
7082 enableval=$enable_shared; p=${PACKAGE-default}
7083 case $enableval in
7084 yes) enable_shared=yes ;;
7085 no) enable_shared=no ;;
7086 *)
7087 enable_shared=no
7088 # Look at the argument we got. We use all the common list separators.
7089 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7090 for pkg in $enableval; do
7091 IFS="$lt_save_ifs"
7092 if test "X$pkg" = "X$p"; then
7093 enable_shared=yes
7094 fi
7095 done
7096 IFS="$lt_save_ifs"
7097 ;;
7098 esac
7099else
7100 enable_shared=yes
7101fi
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111 # Check whether --enable-static was given.
7112if test "${enable_static+set}" = set; then :
7113 enableval=$enable_static; p=${PACKAGE-default}
7114 case $enableval in
7115 yes) enable_static=yes ;;
7116 no) enable_static=no ;;
7117 *)
7118 enable_static=no
7119 # Look at the argument we got. We use all the common list separators.
7120 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7121 for pkg in $enableval; do
7122 IFS="$lt_save_ifs"
7123 if test "X$pkg" = "X$p"; then
7124 enable_static=yes
7125 fi
7126 done
7127 IFS="$lt_save_ifs"
7128 ;;
7129 esac
7130else
7131 enable_static=yes
7132fi
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143# Check whether --with-pic was given.
7144if test "${with_pic+set}" = set; then :
7145 withval=$with_pic; pic_mode="$withval"
7146else
7147 pic_mode=default
7148fi
7149
7150
7151test -z "$pic_mode" && pic_mode=default
7152
7153
7154
7155
7156
7157
7158
7159 # Check whether --enable-fast-install was given.
7160if test "${enable_fast_install+set}" = set; then :
7161 enableval=$enable_fast_install; p=${PACKAGE-default}
7162 case $enableval in
7163 yes) enable_fast_install=yes ;;
7164 no) enable_fast_install=no ;;
7165 *)
7166 enable_fast_install=no
7167 # Look at the argument we got. We use all the common list separators.
7168 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7169 for pkg in $enableval; do
7170 IFS="$lt_save_ifs"
7171 if test "X$pkg" = "X$p"; then
7172 enable_fast_install=yes
7173 fi
7174 done
7175 IFS="$lt_save_ifs"
7176 ;;
7177 esac
7178else
7179 enable_fast_install=yes
7180fi
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192# This can be used to rebuild libtool when needed
7193LIBTOOL_DEPS="$ltmain"
7194
7195# Always use our own libtool.
7196LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223test -z "$LN_S" && LN_S="ln -s"
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238if test -n "${ZSH_VERSION+set}" ; then
7239 setopt NO_GLOB_SUBST
7240fi
7241
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7243$as_echo_n "checking for objdir... " >&6; }
7244if test "${lt_cv_objdir+set}" = set; then :
7245 $as_echo_n "(cached) " >&6
7246else
7247 rm -f .libs 2>/dev/null
7248mkdir .libs 2>/dev/null
7249if test -d .libs; then
7250 lt_cv_objdir=.libs
7251else
7252 # MS-DOS does not allow filenames that begin with a dot.
7253 lt_cv_objdir=_libs
7254fi
7255rmdir .libs 2>/dev/null
7256fi
7257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7258$as_echo "$lt_cv_objdir" >&6; }
7259objdir=$lt_cv_objdir
7260
7261
7262
7263
7264
7265cat >>confdefs.h <<_ACEOF
7266#define LT_OBJDIR "$lt_cv_objdir/"
7267_ACEOF
7268
7269
7270
7271
7272case $host_os in
7273aix3*)
7274 # AIX sometimes has problems with the GCC collect2 program. For some
7275 # reason, if we set the COLLECT_NAMES environment variable, the problems
7276 # vanish in a puff of smoke.
7277 if test "X${COLLECT_NAMES+set}" != Xset; then
7278 COLLECT_NAMES=
7279 export COLLECT_NAMES
7280 fi
7281 ;;
7282esac
7283
7284# Global variables:
7285ofile=libtool
7286can_build_shared=yes
7287
7288# All known linkers require a `.a' archive for static linking (except MSVC,
7289# which needs '.lib').
7290libext=a
7291
7292with_gnu_ld="$lt_cv_prog_gnu_ld"
7293
7294old_CC="$CC"
7295old_CFLAGS="$CFLAGS"
7296
7297# Set sane defaults for various variables
7298test -z "$CC" && CC=cc
7299test -z "$LTCC" && LTCC=$CC
7300test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7301test -z "$LD" && LD=ld
7302test -z "$ac_objext" && ac_objext=o
7303
7304for cc_temp in $compiler""; do
7305 case $cc_temp in
7306 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7307 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7308 \-*) ;;
7309 *) break;;
7310 esac
7311done
7312cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7313
7314
7315# Only perform the check for file, if the check method requires it
7316test -z "$MAGIC_CMD" && MAGIC_CMD=file
7317case $deplibs_check_method in
7318file_magic*)
7319 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7321$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7322if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7323 $as_echo_n "(cached) " >&6
7324else
7325 case $MAGIC_CMD in
7326[\\/*] | ?:[\\/]*)
7327 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7328 ;;
7329*)
7330 lt_save_MAGIC_CMD="$MAGIC_CMD"
7331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7332 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7333 for ac_dir in $ac_dummy; do
7334 IFS="$lt_save_ifs"
7335 test -z "$ac_dir" && ac_dir=.
7336 if test -f $ac_dir/${ac_tool_prefix}file; then
7337 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7338 if test -n "$file_magic_test_file"; then
7339 case $deplibs_check_method in
7340 "file_magic "*)
7341 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7343 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7344 $EGREP "$file_magic_regex" > /dev/null; then
7345 :
7346 else
7347 cat <<_LT_EOF 1>&2
7348
7349*** Warning: the command libtool uses to detect shared libraries,
7350*** $file_magic_cmd, produces output that libtool cannot recognize.
7351*** The result is that libtool may fail to recognize shared libraries
7352*** as such. This will affect the creation of libtool libraries that
7353*** depend on shared libraries, but programs linked with such libtool
7354*** libraries will work regardless of this problem. Nevertheless, you
7355*** may want to report the problem to your system manager and/or to
7356*** bug-libtool@gnu.org
7357
7358_LT_EOF
7359 fi ;;
7360 esac
7361 fi
7362 break
7363 fi
7364 done
7365 IFS="$lt_save_ifs"
7366 MAGIC_CMD="$lt_save_MAGIC_CMD"
7367 ;;
7368esac
7369fi
7370
7371MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7372if test -n "$MAGIC_CMD"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7374$as_echo "$MAGIC_CMD" >&6; }
7375else
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377$as_echo "no" >&6; }
7378fi
7379
7380
7381
7382
7383
7384if test -z "$lt_cv_path_MAGIC_CMD"; then
7385 if test -n "$ac_tool_prefix"; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7387$as_echo_n "checking for file... " >&6; }
7388if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7389 $as_echo_n "(cached) " >&6
7390else
7391 case $MAGIC_CMD in
7392[\\/*] | ?:[\\/]*)
7393 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7394 ;;
7395*)
7396 lt_save_MAGIC_CMD="$MAGIC_CMD"
7397 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7398 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7399 for ac_dir in $ac_dummy; do
7400 IFS="$lt_save_ifs"
7401 test -z "$ac_dir" && ac_dir=.
7402 if test -f $ac_dir/file; then
7403 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7404 if test -n "$file_magic_test_file"; then
7405 case $deplibs_check_method in
7406 "file_magic "*)
7407 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7408 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7409 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7410 $EGREP "$file_magic_regex" > /dev/null; then
7411 :
7412 else
7413 cat <<_LT_EOF 1>&2
7414
7415*** Warning: the command libtool uses to detect shared libraries,
7416*** $file_magic_cmd, produces output that libtool cannot recognize.
7417*** The result is that libtool may fail to recognize shared libraries
7418*** as such. This will affect the creation of libtool libraries that
7419*** depend on shared libraries, but programs linked with such libtool
7420*** libraries will work regardless of this problem. Nevertheless, you
7421*** may want to report the problem to your system manager and/or to
7422*** bug-libtool@gnu.org
7423
7424_LT_EOF
7425 fi ;;
7426 esac
7427 fi
7428 break
7429 fi
7430 done
7431 IFS="$lt_save_ifs"
7432 MAGIC_CMD="$lt_save_MAGIC_CMD"
7433 ;;
7434esac
7435fi
7436
7437MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7438if test -n "$MAGIC_CMD"; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7440$as_echo "$MAGIC_CMD" >&6; }
7441else
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443$as_echo "no" >&6; }
7444fi
7445
7446
7447 else
7448 MAGIC_CMD=:
7449 fi
7450fi
7451
7452 fi
7453 ;;
7454esac
7455
7456# Use C for the default configuration in the libtool script
7457
7458lt_save_CC="$CC"
7459ac_ext=c
7460ac_cpp='$CPP $CPPFLAGS'
7461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7463ac_compiler_gnu=$ac_cv_c_compiler_gnu
7464
7465
7466# Source file extension for C test sources.
7467ac_ext=c
7468
7469# Object file extension for compiled C test sources.
7470objext=o
7471objext=$objext
7472
7473# Code to be used in simple compile tests
7474lt_simple_compile_test_code="int some_variable = 0;"
7475
7476# Code to be used in simple link tests
7477lt_simple_link_test_code='int main(){return(0);}'
7478
7479
7480
7481
7482
7483
7484
7485# If no C compiler was specified, use CC.
7486LTCC=${LTCC-"$CC"}
7487
7488# If no C compiler flags were specified, use CFLAGS.
7489LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7490
7491# Allow CC to be a program name with arguments.
7492compiler=$CC
7493
7494# Save the default compiler, since it gets overwritten when the other
7495# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7496compiler_DEFAULT=$CC
7497
7498# save warnings/boilerplate of simple test code
7499ac_outfile=conftest.$ac_objext
7500echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7501eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7502_lt_compiler_boilerplate=`cat conftest.err`
7503$RM conftest*
7504
7505ac_outfile=conftest.$ac_objext
7506echo "$lt_simple_link_test_code" >conftest.$ac_ext
7507eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7508_lt_linker_boilerplate=`cat conftest.err`
7509$RM -r conftest*
7510
7511
7512## CAVEAT EMPTOR:
7513## There is no encapsulation within the following macros, do not change
7514## the running order or otherwise move them around unless you know exactly
7515## what you are doing...
7516if test -n "$compiler"; then
7517
7518lt_prog_compiler_no_builtin_flag=
7519
7520if test "$GCC" = yes; then
7521 case $cc_basename in
7522 nvcc*)
7523 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7524 *)
7525 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7526 esac
7527
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7529$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7530if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7531 $as_echo_n "(cached) " >&6
7532else
7533 lt_cv_prog_compiler_rtti_exceptions=no
7534 ac_outfile=conftest.$ac_objext
7535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7536 lt_compiler_flag="-fno-rtti -fno-exceptions"
7537 # Insert the option either (1) after the last *FLAGS variable, or
7538 # (2) before a word containing "conftest.", or (3) at the end.
7539 # Note that $ac_compile itself does not contain backslashes and begins
7540 # with a dollar sign (not a hyphen), so the echo should work correctly.
7541 # The option is referenced via a variable to avoid confusing sed.
7542 lt_compile=`echo "$ac_compile" | $SED \
7543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7545 -e 's:$: $lt_compiler_flag:'`
7546 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7547 (eval "$lt_compile" 2>conftest.err)
7548 ac_status=$?
7549 cat conftest.err >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 if (exit $ac_status) && test -s "$ac_outfile"; then
7552 # The compiler can only warn and ignore the option if not recognized
7553 # So say no if there are warnings other than the usual output.
7554 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7556 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7557 lt_cv_prog_compiler_rtti_exceptions=yes
7558 fi
7559 fi
7560 $RM conftest*
7561
7562fi
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7564$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7565
7566if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7567 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7568else
7569 :
7570fi
7571
7572fi
7573
7574
7575
7576
7577
7578
7579 lt_prog_compiler_wl=
7580lt_prog_compiler_pic=
7581lt_prog_compiler_static=
7582
7583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7584$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7585
7586 if test "$GCC" = yes; then
7587 lt_prog_compiler_wl='-Wl,'
7588 lt_prog_compiler_static='-static'
7589
7590 case $host_os in
7591 aix*)
7592 # All AIX code is PIC.
7593 if test "$host_cpu" = ia64; then
7594 # AIX 5 now supports IA64 processor
7595 lt_prog_compiler_static='-Bstatic'
7596 fi
37bbb30d 7597 lt_prog_compiler_pic='-fPIC'
87969c8c 7598 ;;
7599
7600 amigaos*)
7601 case $host_cpu in
7602 powerpc)
7603 # see comment about AmigaOS4 .so support
7604 lt_prog_compiler_pic='-fPIC'
7605 ;;
7606 m68k)
7607 # FIXME: we need at least 68020 code to build shared libraries, but
7608 # adding the `-m68020' flag to GCC prevents building anything better,
7609 # like `-m68040'.
7610 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7611 ;;
7612 esac
7613 ;;
7614
7615 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7616 # PIC is the default for these OSes.
7617 ;;
7618
7619 mingw* | cygwin* | pw32* | os2* | cegcc*)
7620 # This hack is so that the source file can tell whether it is being
7621 # built for inclusion in a dll (and should export symbols for example).
7622 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7623 # (--disable-auto-import) libraries
7624 lt_prog_compiler_pic='-DDLL_EXPORT'
7625 ;;
7626
7627 darwin* | rhapsody*)
7628 # PIC is the default on this platform
7629 # Common symbols not allowed in MH_DYLIB files
7630 lt_prog_compiler_pic='-fno-common'
7631 ;;
7632
7633 haiku*)
7634 # PIC is the default for Haiku.
7635 # The "-static" flag exists, but is broken.
7636 lt_prog_compiler_static=
7637 ;;
7638
7639 hpux*)
7640 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7641 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7642 # sets the default TLS model and affects inlining.
7643 case $host_cpu in
7644 hppa*64*)
7645 # +Z the default
7646 ;;
7647 *)
7648 lt_prog_compiler_pic='-fPIC'
7649 ;;
7650 esac
7651 ;;
7652
7653 interix[3-9]*)
7654 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7655 # Instead, we relocate shared libraries at runtime.
7656 ;;
7657
7658 msdosdjgpp*)
7659 # Just because we use GCC doesn't mean we suddenly get shared libraries
7660 # on systems that don't support them.
7661 lt_prog_compiler_can_build_shared=no
7662 enable_shared=no
7663 ;;
7664
7665 *nto* | *qnx*)
7666 # QNX uses GNU C++, but need to define -shared option too, otherwise
7667 # it will coredump.
7668 lt_prog_compiler_pic='-fPIC -shared'
7669 ;;
7670
7671 sysv4*MP*)
7672 if test -d /usr/nec; then
7673 lt_prog_compiler_pic=-Kconform_pic
7674 fi
7675 ;;
7676
7677 *)
7678 lt_prog_compiler_pic='-fPIC'
7679 ;;
7680 esac
7681
7682 case $cc_basename in
7683 nvcc*) # Cuda Compiler Driver 2.2
7684 lt_prog_compiler_wl='-Xlinker '
7685 lt_prog_compiler_pic='-Xcompiler -fPIC'
7686 ;;
7687 esac
7688 else
7689 # PORTME Check for flag to pass linker flags through the system compiler.
7690 case $host_os in
7691 aix*)
7692 lt_prog_compiler_wl='-Wl,'
7693 if test "$host_cpu" = ia64; then
7694 # AIX 5 now supports IA64 processor
7695 lt_prog_compiler_static='-Bstatic'
7696 else
7697 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7698 fi
7699 ;;
7700
7701 mingw* | cygwin* | pw32* | os2* | cegcc*)
7702 # This hack is so that the source file can tell whether it is being
7703 # built for inclusion in a dll (and should export symbols for example).
7704 lt_prog_compiler_pic='-DDLL_EXPORT'
7705 ;;
7706
7707 hpux9* | hpux10* | hpux11*)
7708 lt_prog_compiler_wl='-Wl,'
7709 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7710 # not for PA HP-UX.
7711 case $host_cpu in
7712 hppa*64*|ia64*)
7713 # +Z the default
7714 ;;
7715 *)
7716 lt_prog_compiler_pic='+Z'
7717 ;;
7718 esac
7719 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7720 lt_prog_compiler_static='${wl}-a ${wl}archive'
7721 ;;
7722
7723 irix5* | irix6* | nonstopux*)
7724 lt_prog_compiler_wl='-Wl,'
7725 # PIC (with -KPIC) is the default.
7726 lt_prog_compiler_static='-non_shared'
7727 ;;
7728
7729 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7730 case $cc_basename in
7731 # old Intel for x86_64 which still supported -KPIC.
7732 ecc*)
7733 lt_prog_compiler_wl='-Wl,'
7734 lt_prog_compiler_pic='-KPIC'
7735 lt_prog_compiler_static='-static'
7736 ;;
7737 # icc used to be incompatible with GCC.
7738 # ICC 10 doesn't accept -KPIC any more.
7739 icc* | ifort*)
7740 lt_prog_compiler_wl='-Wl,'
7741 lt_prog_compiler_pic='-fPIC'
7742 lt_prog_compiler_static='-static'
7743 ;;
7744 # Lahey Fortran 8.1.
7745 lf95*)
7746 lt_prog_compiler_wl='-Wl,'
7747 lt_prog_compiler_pic='--shared'
7748 lt_prog_compiler_static='--static'
7749 ;;
7750 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7751 # Portland Group compilers (*not* the Pentium gcc compiler,
7752 # which looks to be a dead project)
7753 lt_prog_compiler_wl='-Wl,'
7754 lt_prog_compiler_pic='-fpic'
7755 lt_prog_compiler_static='-Bstatic'
7756 ;;
7757 ccc*)
7758 lt_prog_compiler_wl='-Wl,'
7759 # All Alpha code is PIC.
7760 lt_prog_compiler_static='-non_shared'
7761 ;;
7762 xl* | bgxl* | bgf* | mpixl*)
7763 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7764 lt_prog_compiler_wl='-Wl,'
7765 lt_prog_compiler_pic='-qpic'
7766 lt_prog_compiler_static='-qstaticlink'
7767 ;;
7768 *)
7769 case `$CC -V 2>&1 | sed 5q` in
7770 *Sun\ F* | *Sun*Fortran*)
7771 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7772 lt_prog_compiler_pic='-KPIC'
7773 lt_prog_compiler_static='-Bstatic'
7774 lt_prog_compiler_wl=''
7775 ;;
7776 *Sun\ C*)
7777 # Sun C 5.9
7778 lt_prog_compiler_pic='-KPIC'
7779 lt_prog_compiler_static='-Bstatic'
7780 lt_prog_compiler_wl='-Wl,'
7781 ;;
7782 esac
7783 ;;
7784 esac
7785 ;;
7786
7787 newsos6)
7788 lt_prog_compiler_pic='-KPIC'
7789 lt_prog_compiler_static='-Bstatic'
7790 ;;
7791
7792 *nto* | *qnx*)
7793 # QNX uses GNU C++, but need to define -shared option too, otherwise
7794 # it will coredump.
7795 lt_prog_compiler_pic='-fPIC -shared'
7796 ;;
7797
7798 osf3* | osf4* | osf5*)
7799 lt_prog_compiler_wl='-Wl,'
7800 # All OSF/1 code is PIC.
7801 lt_prog_compiler_static='-non_shared'
7802 ;;
7803
7804 rdos*)
7805 lt_prog_compiler_static='-non_shared'
7806 ;;
7807
7808 solaris*)
7809 lt_prog_compiler_pic='-KPIC'
7810 lt_prog_compiler_static='-Bstatic'
7811 case $cc_basename in
7812 f77* | f90* | f95*)
7813 lt_prog_compiler_wl='-Qoption ld ';;
7814 *)
7815 lt_prog_compiler_wl='-Wl,';;
7816 esac
7817 ;;
7818
7819 sunos4*)
7820 lt_prog_compiler_wl='-Qoption ld '
7821 lt_prog_compiler_pic='-PIC'
7822 lt_prog_compiler_static='-Bstatic'
7823 ;;
7824
7825 sysv4 | sysv4.2uw2* | sysv4.3*)
7826 lt_prog_compiler_wl='-Wl,'
7827 lt_prog_compiler_pic='-KPIC'
7828 lt_prog_compiler_static='-Bstatic'
7829 ;;
7830
7831 sysv4*MP*)
7832 if test -d /usr/nec ;then
7833 lt_prog_compiler_pic='-Kconform_pic'
7834 lt_prog_compiler_static='-Bstatic'
7835 fi
7836 ;;
7837
7838 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7839 lt_prog_compiler_wl='-Wl,'
7840 lt_prog_compiler_pic='-KPIC'
7841 lt_prog_compiler_static='-Bstatic'
7842 ;;
7843
7844 unicos*)
7845 lt_prog_compiler_wl='-Wl,'
7846 lt_prog_compiler_can_build_shared=no
7847 ;;
7848
7849 uts4*)
7850 lt_prog_compiler_pic='-pic'
7851 lt_prog_compiler_static='-Bstatic'
7852 ;;
7853
7854 *)
7855 lt_prog_compiler_can_build_shared=no
7856 ;;
7857 esac
7858 fi
7859
7860case $host_os in
7861 # For platforms which do not support PIC, -DPIC is meaningless:
7862 *djgpp*)
7863 lt_prog_compiler_pic=
7864 ;;
7865 *)
7866 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7867 ;;
7868esac
7869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7870$as_echo "$lt_prog_compiler_pic" >&6; }
7871
7872
7873
7874
7875
7876
7877#
7878# Check to make sure the PIC flag actually works.
7879#
7880if test -n "$lt_prog_compiler_pic"; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7882$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7883if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7884 $as_echo_n "(cached) " >&6
7885else
7886 lt_cv_prog_compiler_pic_works=no
7887 ac_outfile=conftest.$ac_objext
7888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7889 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7890 # Insert the option either (1) after the last *FLAGS variable, or
7891 # (2) before a word containing "conftest.", or (3) at the end.
7892 # Note that $ac_compile itself does not contain backslashes and begins
7893 # with a dollar sign (not a hyphen), so the echo should work correctly.
7894 # The option is referenced via a variable to avoid confusing sed.
7895 lt_compile=`echo "$ac_compile" | $SED \
7896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7898 -e 's:$: $lt_compiler_flag:'`
7899 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7900 (eval "$lt_compile" 2>conftest.err)
7901 ac_status=$?
7902 cat conftest.err >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 if (exit $ac_status) && test -s "$ac_outfile"; then
7905 # The compiler can only warn and ignore the option if not recognized
7906 # So say no if there are warnings other than the usual output.
7907 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7909 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7910 lt_cv_prog_compiler_pic_works=yes
7911 fi
7912 fi
7913 $RM conftest*
7914
7915fi
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7917$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7918
7919if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7920 case $lt_prog_compiler_pic in
7921 "" | " "*) ;;
7922 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7923 esac
7924else
7925 lt_prog_compiler_pic=
7926 lt_prog_compiler_can_build_shared=no
7927fi
7928
7929fi
7930
7931
7932
7933
7934
7935
7936#
7937# Check to make sure the static flag actually works.
7938#
7939wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7941$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7942if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7943 $as_echo_n "(cached) " >&6
7944else
7945 lt_cv_prog_compiler_static_works=no
7946 save_LDFLAGS="$LDFLAGS"
7947 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7948 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7949 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7950 # The linker can only warn and ignore the option if not recognized
7951 # So say no if there are warnings
7952 if test -s conftest.err; then
7953 # Append any errors to the config.log.
7954 cat conftest.err 1>&5
7955 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7957 if diff conftest.exp conftest.er2 >/dev/null; then
7958 lt_cv_prog_compiler_static_works=yes
7959 fi
7960 else
7961 lt_cv_prog_compiler_static_works=yes
7962 fi
7963 fi
7964 $RM -r conftest*
7965 LDFLAGS="$save_LDFLAGS"
7966
7967fi
7968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7969$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7970
7971if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7972 :
7973else
7974 lt_prog_compiler_static=
7975fi
7976
7977
7978
7979
7980
7981
7982
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7984$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7985if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7986 $as_echo_n "(cached) " >&6
7987else
7988 lt_cv_prog_compiler_c_o=no
7989 $RM -r conftest 2>/dev/null
7990 mkdir conftest
7991 cd conftest
7992 mkdir out
7993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7994
7995 lt_compiler_flag="-o out/conftest2.$ac_objext"
7996 # Insert the option either (1) after the last *FLAGS variable, or
7997 # (2) before a word containing "conftest.", or (3) at the end.
7998 # Note that $ac_compile itself does not contain backslashes and begins
7999 # with a dollar sign (not a hyphen), so the echo should work correctly.
8000 lt_compile=`echo "$ac_compile" | $SED \
8001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8003 -e 's:$: $lt_compiler_flag:'`
8004 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8005 (eval "$lt_compile" 2>out/conftest.err)
8006 ac_status=$?
8007 cat out/conftest.err >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8010 then
8011 # The compiler can only warn and ignore the option if not recognized
8012 # So say no if there are warnings
8013 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8014 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8015 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8016 lt_cv_prog_compiler_c_o=yes
8017 fi
8018 fi
8019 chmod u+w . 2>&5
8020 $RM conftest*
8021 # SGI C++ compiler will create directory out/ii_files/ for
8022 # template instantiation
8023 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8024 $RM out/* && rmdir out
8025 cd ..
8026 $RM -r conftest
8027 $RM conftest*
8028
8029fi
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8031$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8032
8033
8034
8035
8036
8037
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8039$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8040if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8041 $as_echo_n "(cached) " >&6
8042else
8043 lt_cv_prog_compiler_c_o=no
8044 $RM -r conftest 2>/dev/null
8045 mkdir conftest
8046 cd conftest
8047 mkdir out
8048 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8049
8050 lt_compiler_flag="-o out/conftest2.$ac_objext"
8051 # Insert the option either (1) after the last *FLAGS variable, or
8052 # (2) before a word containing "conftest.", or (3) at the end.
8053 # Note that $ac_compile itself does not contain backslashes and begins
8054 # with a dollar sign (not a hyphen), so the echo should work correctly.
8055 lt_compile=`echo "$ac_compile" | $SED \
8056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8058 -e 's:$: $lt_compiler_flag:'`
8059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8060 (eval "$lt_compile" 2>out/conftest.err)
8061 ac_status=$?
8062 cat out/conftest.err >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8065 then
8066 # The compiler can only warn and ignore the option if not recognized
8067 # So say no if there are warnings
8068 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8069 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8070 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8071 lt_cv_prog_compiler_c_o=yes
8072 fi
8073 fi
8074 chmod u+w . 2>&5
8075 $RM conftest*
8076 # SGI C++ compiler will create directory out/ii_files/ for
8077 # template instantiation
8078 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8079 $RM out/* && rmdir out
8080 cd ..
8081 $RM -r conftest
8082 $RM conftest*
8083
8084fi
8085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8086$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8087
8088
8089
8090
8091hard_links="nottested"
8092if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8093 # do not overwrite the value of need_locks provided by the user
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8095$as_echo_n "checking if we can lock with hard links... " >&6; }
8096 hard_links=yes
8097 $RM conftest*
8098 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8099 touch conftest.a
8100 ln conftest.a conftest.b 2>&5 || hard_links=no
8101 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8103$as_echo "$hard_links" >&6; }
8104 if test "$hard_links" = no; then
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8106$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8107 need_locks=warn
8108 fi
8109else
8110 need_locks=no
8111fi
8112
8113
8114
8115
8116
8117
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8119$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8120
8121 runpath_var=
8122 allow_undefined_flag=
8123 always_export_symbols=no
8124 archive_cmds=
8125 archive_expsym_cmds=
8126 compiler_needs_object=no
8127 enable_shared_with_static_runtimes=no
8128 export_dynamic_flag_spec=
8129 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8130 hardcode_automatic=no
8131 hardcode_direct=no
8132 hardcode_direct_absolute=no
8133 hardcode_libdir_flag_spec=
8134 hardcode_libdir_flag_spec_ld=
8135 hardcode_libdir_separator=
8136 hardcode_minus_L=no
8137 hardcode_shlibpath_var=unsupported
8138 inherit_rpath=no
8139 link_all_deplibs=unknown
8140 module_cmds=
8141 module_expsym_cmds=
8142 old_archive_from_new_cmds=
8143 old_archive_from_expsyms_cmds=
8144 thread_safe_flag_spec=
8145 whole_archive_flag_spec=
8146 # include_expsyms should be a list of space-separated symbols to be *always*
8147 # included in the symbol list
8148 include_expsyms=
8149 # exclude_expsyms can be an extended regexp of symbols to exclude
8150 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8151 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8152 # as well as any symbol that contains `d'.
8153 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8154 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8155 # platforms (ab)use it in PIC code, but their linkers get confused if
8156 # the symbol is explicitly referenced. Since portable code cannot
8157 # rely on this symbol name, it's probably fine to never include it in
8158 # preloaded symbol tables.
8159 # Exclude shared library initialization/finalization symbols.
8160 extract_expsyms_cmds=
8161
8162 case $host_os in
8163 cygwin* | mingw* | pw32* | cegcc*)
8164 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8165 # When not using gcc, we currently assume that we are using
8166 # Microsoft Visual C++.
8167 if test "$GCC" != yes; then
8168 with_gnu_ld=no
8169 fi
8170 ;;
8171 interix*)
8172 # we just hope/assume this is gcc and not c89 (= MSVC++)
8173 with_gnu_ld=yes
8174 ;;
8175 openbsd*)
8176 with_gnu_ld=no
8177 ;;
8178 esac
8179
8180 ld_shlibs=yes
8181
8182 # On some targets, GNU ld is compatible enough with the native linker
8183 # that we're better off using the native interface for both.
8184 lt_use_gnu_ld_interface=no
8185 if test "$with_gnu_ld" = yes; then
8186 case $host_os in
8187 aix*)
8188 # The AIX port of GNU ld has always aspired to compatibility
8189 # with the native linker. However, as the warning in the GNU ld
8190 # block says, versions before 2.19.5* couldn't really create working
8191 # shared libraries, regardless of the interface used.
8192 case `$LD -v 2>&1` in
8193 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8194 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8195 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8196 *)
8197 lt_use_gnu_ld_interface=yes
8198 ;;
8199 esac
8200 ;;
8201 *)
8202 lt_use_gnu_ld_interface=yes
8203 ;;
8204 esac
8205 fi
8206
8207 if test "$lt_use_gnu_ld_interface" = yes; then
8208 # If archive_cmds runs LD, not CC, wlarc should be empty
8209 wlarc='${wl}'
8210
8211 # Set some defaults for GNU ld with shared library support. These
8212 # are reset later if shared libraries are not supported. Putting them
8213 # here allows them to be overridden if necessary.
8214 runpath_var=LD_RUN_PATH
8215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8216 export_dynamic_flag_spec='${wl}--export-dynamic'
8217 # ancient GNU ld didn't support --whole-archive et. al.
8218 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8219 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8220 else
8221 whole_archive_flag_spec=
8222 fi
8223 supports_anon_versioning=no
8224 case `$LD -v 2>&1` in
8225 *GNU\ gold*) supports_anon_versioning=yes ;;
8226 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8227 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8228 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8229 *\ 2.11.*) ;; # other 2.11 versions
8230 *) supports_anon_versioning=yes ;;
8231 esac
8232
8233 # See if GNU ld supports shared libraries.
8234 case $host_os in
8235 aix[3-9]*)
8236 # On AIX/PPC, the GNU linker is very broken
8237 if test "$host_cpu" != ia64; then
8238 ld_shlibs=no
8239 cat <<_LT_EOF 1>&2
8240
8241*** Warning: the GNU linker, at least up to release 2.19, is reported
8242*** to be unable to reliably create shared libraries on AIX.
8243*** Therefore, libtool is disabling shared libraries support. If you
8244*** really care for shared libraries, you may want to install binutils
8245*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8246*** You will then need to restart the configuration process.
8247
8248_LT_EOF
8249 fi
8250 ;;
8251
8252 amigaos*)
8253 case $host_cpu in
8254 powerpc)
8255 # see comment about AmigaOS4 .so support
8256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8257 archive_expsym_cmds=''
8258 ;;
8259 m68k)
8260 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)'
8261 hardcode_libdir_flag_spec='-L$libdir'
8262 hardcode_minus_L=yes
8263 ;;
8264 esac
8265 ;;
8266
8267 beos*)
8268 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8269 allow_undefined_flag=unsupported
8270 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8271 # support --undefined. This deserves some investigation. FIXME
8272 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8273 else
8274 ld_shlibs=no
8275 fi
8276 ;;
8277
8278 cygwin* | mingw* | pw32* | cegcc*)
8279 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8280 # as there is no search path for DLLs.
8281 hardcode_libdir_flag_spec='-L$libdir'
8282 export_dynamic_flag_spec='${wl}--export-all-symbols'
8283 allow_undefined_flag=unsupported
8284 always_export_symbols=no
8285 enable_shared_with_static_runtimes=yes
8286 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8287
8288 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8290 # If the export-symbols file already is a .def file (1st line
8291 # is EXPORTS), use it as is; otherwise, prepend...
8292 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8293 cp $export_symbols $output_objdir/$soname.def;
8294 else
8295 echo EXPORTS > $output_objdir/$soname.def;
8296 cat $export_symbols >> $output_objdir/$soname.def;
8297 fi~
8298 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8299 else
8300 ld_shlibs=no
8301 fi
8302 ;;
8303
8304 haiku*)
8305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8306 link_all_deplibs=yes
8307 ;;
8308
8309 interix[3-9]*)
8310 hardcode_direct=no
8311 hardcode_shlibpath_var=no
8312 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8313 export_dynamic_flag_spec='${wl}-E'
8314 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8315 # Instead, shared libraries are loaded at an image base (0x10000000 by
8316 # default) and relocated if they conflict, which is a slow very memory
8317 # consuming and fragmenting process. To avoid this, we pick a random,
8318 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8319 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8320 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8321 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'
8322 ;;
8323
8324 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8325 tmp_diet=no
8326 if test "$host_os" = linux-dietlibc; then
8327 case $cc_basename in
8328 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8329 esac
8330 fi
8331 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8332 && test "$tmp_diet" = no
8333 then
4e8a08d4 8334 tmp_addflag=' $pic_flag'
87969c8c 8335 tmp_sharedflag='-shared'
8336 case $cc_basename,$host_cpu in
8337 pgcc*) # Portland Group C compiler
8338 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'
8339 tmp_addflag=' $pic_flag'
8340 ;;
8341 pgf77* | pgf90* | pgf95* | pgfortran*)
8342 # Portland Group f77 and f90 compilers
8343 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'
8344 tmp_addflag=' $pic_flag -Mnomain' ;;
8345 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8346 tmp_addflag=' -i_dynamic' ;;
8347 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8348 tmp_addflag=' -i_dynamic -nofor_main' ;;
8349 ifc* | ifort*) # Intel Fortran compiler
8350 tmp_addflag=' -nofor_main' ;;
8351 lf95*) # Lahey Fortran 8.1
8352 whole_archive_flag_spec=
8353 tmp_sharedflag='--shared' ;;
8354 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8355 tmp_sharedflag='-qmkshrobj'
8356 tmp_addflag= ;;
8357 nvcc*) # Cuda Compiler Driver 2.2
8358 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'
8359 compiler_needs_object=yes
8360 ;;
8361 esac
8362 case `$CC -V 2>&1 | sed 5q` in
8363 *Sun\ C*) # Sun C 5.9
8364 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'
8365 compiler_needs_object=yes
8366 tmp_sharedflag='-G' ;;
8367 *Sun\ F*) # Sun Fortran 8.3
8368 tmp_sharedflag='-G' ;;
8369 esac
8370 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8371
8372 if test "x$supports_anon_versioning" = xyes; then
8373 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8374 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8375 echo "local: *; };" >> $output_objdir/$libname.ver~
8376 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8377 fi
8378
8379 case $cc_basename in
8380 xlf* | bgf* | bgxlf* | mpixlf*)
8381 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8382 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8383 hardcode_libdir_flag_spec=
8384 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8385 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8386 if test "x$supports_anon_versioning" = xyes; then
8387 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8388 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8389 echo "local: *; };" >> $output_objdir/$libname.ver~
8390 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8391 fi
8392 ;;
8393 esac
8394 else
8395 ld_shlibs=no
8396 fi
8397 ;;
8398
8399 netbsd*)
8400 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8401 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8402 wlarc=
8403 else
8404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8405 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8406 fi
8407 ;;
8408
8409 solaris*)
8410 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8411 ld_shlibs=no
8412 cat <<_LT_EOF 1>&2
8413
8414*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8415*** create shared libraries on Solaris systems. Therefore, libtool
8416*** is disabling shared libraries support. We urge you to upgrade GNU
8417*** binutils to release 2.9.1 or newer. Another option is to modify
8418*** your PATH or compiler configuration so that the native linker is
8419*** used, and then restart.
8420
8421_LT_EOF
8422 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8424 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8425 else
8426 ld_shlibs=no
8427 fi
8428 ;;
8429
8430 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8431 case `$LD -v 2>&1` in
8432 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8433 ld_shlibs=no
8434 cat <<_LT_EOF 1>&2
8435
8436*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8437*** reliably create shared libraries on SCO systems. Therefore, libtool
8438*** is disabling shared libraries support. We urge you to upgrade GNU
8439*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8440*** your PATH or compiler configuration so that the native linker is
8441*** used, and then restart.
8442
8443_LT_EOF
8444 ;;
8445 *)
8446 # For security reasons, it is highly recommended that you always
8447 # use absolute paths for naming shared libraries, and exclude the
8448 # DT_RUNPATH tag from executables and libraries. But doing so
8449 # requires that you compile everything twice, which is a pain.
8450 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8452 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8453 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8454 else
8455 ld_shlibs=no
8456 fi
8457 ;;
8458 esac
8459 ;;
8460
8461 sunos4*)
8462 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8463 wlarc=
8464 hardcode_direct=yes
8465 hardcode_shlibpath_var=no
8466 ;;
8467
8468 *)
8469 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8470 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8471 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8472 else
8473 ld_shlibs=no
8474 fi
8475 ;;
8476 esac
8477
8478 if test "$ld_shlibs" = no; then
8479 runpath_var=
8480 hardcode_libdir_flag_spec=
8481 export_dynamic_flag_spec=
8482 whole_archive_flag_spec=
8483 fi
8484 else
8485 # PORTME fill in a description of your system's linker (not GNU ld)
8486 case $host_os in
8487 aix3*)
8488 allow_undefined_flag=unsupported
8489 always_export_symbols=yes
8490 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'
8491 # Note: this linker hardcodes the directories in LIBPATH if there
8492 # are no directories specified by -L.
8493 hardcode_minus_L=yes
8494 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8495 # Neither direct hardcoding nor static linking is supported with a
8496 # broken collect2.
8497 hardcode_direct=unsupported
8498 fi
8499 ;;
8500
8501 aix[4-9]*)
8502 if test "$host_cpu" = ia64; then
8503 # On IA64, the linker does run time linking by default, so we don't
8504 # have to do anything special.
8505 aix_use_runtimelinking=no
8506 exp_sym_flag='-Bexport'
8507 no_entry_flag=""
8508 else
8509 # If we're using GNU nm, then we don't want the "-C" option.
8510 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8511 # Also, AIX nm treats weak defined symbols like other global
8512 # defined symbols, whereas GNU nm marks them as "W".
8513 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8514 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'
8515 else
8516 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'
8517 fi
8518 aix_use_runtimelinking=no
8519
8520 # Test if we are trying to use run time linking or normal
8521 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8522 # need to do runtime linking.
8523 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8524 for ld_flag in $LDFLAGS; do
8525 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8526 aix_use_runtimelinking=yes
8527 break
8528 fi
8529 done
8530 ;;
8531 esac
8532
8533 exp_sym_flag='-bexport'
8534 no_entry_flag='-bnoentry'
8535 fi
8536
8537 # When large executables or shared objects are built, AIX ld can
8538 # have problems creating the table of contents. If linking a library
8539 # or program results in "error TOC overflow" add -mminimal-toc to
8540 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8541 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8542
8543 archive_cmds=''
8544 hardcode_direct=yes
8545 hardcode_direct_absolute=yes
8546 hardcode_libdir_separator=':'
8547 link_all_deplibs=yes
8548 file_list_spec='${wl}-f,'
8549
8550 if test "$GCC" = yes; then
8551 case $host_os in aix4.[012]|aix4.[012].*)
8552 # We only want to do this on AIX 4.2 and lower, the check
8553 # below for broken collect2 doesn't work under 4.3+
8554 collect2name=`${CC} -print-prog-name=collect2`
8555 if test -f "$collect2name" &&
8556 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8557 then
8558 # We have reworked collect2
8559 :
8560 else
8561 # We have old collect2
8562 hardcode_direct=unsupported
8563 # It fails to find uninstalled libraries when the uninstalled
8564 # path is not listed in the libpath. Setting hardcode_minus_L
8565 # to unsupported forces relinking
8566 hardcode_minus_L=yes
8567 hardcode_libdir_flag_spec='-L$libdir'
8568 hardcode_libdir_separator=
8569 fi
8570 ;;
8571 esac
8572 shared_flag='-shared'
8573 if test "$aix_use_runtimelinking" = yes; then
8574 shared_flag="$shared_flag "'${wl}-G'
8575 fi
8576 else
8577 # not using gcc
8578 if test "$host_cpu" = ia64; then
8579 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8580 # chokes on -Wl,-G. The following line is correct:
8581 shared_flag='-G'
8582 else
8583 if test "$aix_use_runtimelinking" = yes; then
8584 shared_flag='${wl}-G'
8585 else
8586 shared_flag='${wl}-bM:SRE'
8587 fi
8588 fi
8589 fi
8590
8591 export_dynamic_flag_spec='${wl}-bexpall'
8592 # It seems that -bexpall does not export symbols beginning with
8593 # underscore (_), so it is better to generate a list of symbols to export.
8594 always_export_symbols=yes
8595 if test "$aix_use_runtimelinking" = yes; then
8596 # Warning - without using the other runtime loading flags (-brtl),
8597 # -berok will link without error, but may produce a broken library.
8598 allow_undefined_flag='-berok'
8599 # Determine the default libpath from the value encoded in an
8600 # empty executable.
cb3103a1 8601 if test x$gcc_no_link = xyes; then
8602 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8603fi
8604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969c8c 8605/* end confdefs.h. */
8606
8607int
8608main ()
8609{
8610
8611 ;
8612 return 0;
8613}
8614_ACEOF
8615if ac_fn_c_try_link "$LINENO"; then :
8616
8617lt_aix_libpath_sed='
8618 /Import File Strings/,/^$/ {
8619 /^0/ {
8620 s/^0 *\(.*\)$/\1/
8621 p
8622 }
8623 }'
8624aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8625# Check for a 64-bit object if we didn't find anything.
8626if test -z "$aix_libpath"; then
8627 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8628fi
8629fi
8630rm -f core conftest.err conftest.$ac_objext \
8631 conftest$ac_exeext conftest.$ac_ext
8632if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8633
8634 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8635 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"
8636 else
8637 if test "$host_cpu" = ia64; then
8638 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8639 allow_undefined_flag="-z nodefs"
8640 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"
8641 else
8642 # Determine the default libpath from the value encoded in an
8643 # empty executable.
cb3103a1 8644 if test x$gcc_no_link = xyes; then
8645 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8646fi
8647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969c8c 8648/* end confdefs.h. */
8649
8650int
8651main ()
8652{
8653
8654 ;
8655 return 0;
8656}
8657_ACEOF
8658if ac_fn_c_try_link "$LINENO"; then :
8659
8660lt_aix_libpath_sed='
8661 /Import File Strings/,/^$/ {
8662 /^0/ {
8663 s/^0 *\(.*\)$/\1/
8664 p
8665 }
8666 }'
8667aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8668# Check for a 64-bit object if we didn't find anything.
8669if test -z "$aix_libpath"; then
8670 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8671fi
8672fi
8673rm -f core conftest.err conftest.$ac_objext \
8674 conftest$ac_exeext conftest.$ac_ext
8675if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8676
8677 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8678 # Warning - without using the other run time loading flags,
8679 # -berok will link without error, but may produce a broken library.
8680 no_undefined_flag=' ${wl}-bernotok'
8681 allow_undefined_flag=' ${wl}-berok'
8682 if test "$with_gnu_ld" = yes; then
8683 # We only use this code for GNU lds that support --whole-archive.
8684 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8685 else
8686 # Exported symbols can be pulled into shared objects from archives
8687 whole_archive_flag_spec='$convenience'
8688 fi
8689 archive_cmds_need_lc=yes
8690 # This is similar to how AIX traditionally builds its shared libraries.
8691 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'
8692 fi
8693 fi
8694 ;;
8695
8696 amigaos*)
8697 case $host_cpu in
8698 powerpc)
8699 # see comment about AmigaOS4 .so support
8700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8701 archive_expsym_cmds=''
8702 ;;
8703 m68k)
8704 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)'
8705 hardcode_libdir_flag_spec='-L$libdir'
8706 hardcode_minus_L=yes
8707 ;;
8708 esac
8709 ;;
8710
8711 bsdi[45]*)
8712 export_dynamic_flag_spec=-rdynamic
8713 ;;
8714
8715 cygwin* | mingw* | pw32* | cegcc*)
8716 # When not using gcc, we currently assume that we are using
8717 # Microsoft Visual C++.
8718 # hardcode_libdir_flag_spec is actually meaningless, as there is
8719 # no search path for DLLs.
8720 hardcode_libdir_flag_spec=' '
8721 allow_undefined_flag=unsupported
8722 # Tell ltmain to make .lib files, not .a files.
8723 libext=lib
8724 # Tell ltmain to make .dll files, not .so files.
8725 shrext_cmds=".dll"
8726 # FIXME: Setting linknames here is a bad hack.
8727 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8728 # The linker will automatically build a .lib file if we build a DLL.
8729 old_archive_from_new_cmds='true'
8730 # FIXME: Should let the user specify the lib program.
8731 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8732 fix_srcfile_path='`cygpath -w "$srcfile"`'
8733 enable_shared_with_static_runtimes=yes
8734 ;;
8735
8736 darwin* | rhapsody*)
8737
8738
8739 archive_cmds_need_lc=no
8740 hardcode_direct=no
8741 hardcode_automatic=yes
8742 hardcode_shlibpath_var=unsupported
8743 if test "$lt_cv_ld_force_load" = "yes"; then
8744 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\"`'
8745 else
8746 whole_archive_flag_spec=''
8747 fi
8748 link_all_deplibs=yes
8749 allow_undefined_flag="$_lt_dar_allow_undefined"
8750 case $cc_basename in
8751 ifort*) _lt_dar_can_shared=yes ;;
8752 *) _lt_dar_can_shared=$GCC ;;
8753 esac
8754 if test "$_lt_dar_can_shared" = "yes"; then
8755 output_verbose_link_cmd=func_echo_all
8756 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8757 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8758 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}"
8759 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}"
8760
8761 else
8762 ld_shlibs=no
8763 fi
8764
8765 ;;
8766
8767 dgux*)
8768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8769 hardcode_libdir_flag_spec='-L$libdir'
8770 hardcode_shlibpath_var=no
8771 ;;
8772
87969c8c 8773 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8774 # support. Future versions do this automatically, but an explicit c++rt0.o
8775 # does not break anything, and helps significantly (at the cost of a little
8776 # extra space).
8777 freebsd2.2*)
8778 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8779 hardcode_libdir_flag_spec='-R$libdir'
8780 hardcode_direct=yes
8781 hardcode_shlibpath_var=no
8782 ;;
8783
8784 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
30369aff 8785 freebsd2.*)
87969c8c 8786 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8787 hardcode_direct=yes
8788 hardcode_minus_L=yes
8789 hardcode_shlibpath_var=no
8790 ;;
8791
8792 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8793 freebsd* | dragonfly*)
8794 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8795 hardcode_libdir_flag_spec='-R$libdir'
8796 hardcode_direct=yes
8797 hardcode_shlibpath_var=no
8798 ;;
8799
8800 hpux9*)
8801 if test "$GCC" = yes; then
8802 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'
8803 else
8804 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'
8805 fi
8806 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8807 hardcode_libdir_separator=:
8808 hardcode_direct=yes
8809
8810 # hardcode_minus_L: Not really in the search PATH,
8811 # but as the default location of the library.
8812 hardcode_minus_L=yes
8813 export_dynamic_flag_spec='${wl}-E'
8814 ;;
8815
8816 hpux10*)
8817 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8818 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8819 else
8820 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8821 fi
8822 if test "$with_gnu_ld" = no; then
8823 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8824 hardcode_libdir_flag_spec_ld='+b $libdir'
8825 hardcode_libdir_separator=:
8826 hardcode_direct=yes
8827 hardcode_direct_absolute=yes
8828 export_dynamic_flag_spec='${wl}-E'
8829 # hardcode_minus_L: Not really in the search PATH,
8830 # but as the default location of the library.
8831 hardcode_minus_L=yes
8832 fi
8833 ;;
8834
8835 hpux11*)
8836 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8837 case $host_cpu in
8838 hppa*64*)
8839 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8840 ;;
8841 ia64*)
8842 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8843 ;;
8844 *)
8845 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8846 ;;
8847 esac
8848 else
8849 case $host_cpu in
8850 hppa*64*)
8851 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8852 ;;
8853 ia64*)
8854 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8855 ;;
8856 *)
8857
8858 # Older versions of the 11.00 compiler do not understand -b yet
8859 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8861$as_echo_n "checking if $CC understands -b... " >&6; }
8862if test "${lt_cv_prog_compiler__b+set}" = set; then :
8863 $as_echo_n "(cached) " >&6
8864else
8865 lt_cv_prog_compiler__b=no
8866 save_LDFLAGS="$LDFLAGS"
8867 LDFLAGS="$LDFLAGS -b"
8868 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8869 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8870 # The linker can only warn and ignore the option if not recognized
8871 # So say no if there are warnings
8872 if test -s conftest.err; then
8873 # Append any errors to the config.log.
8874 cat conftest.err 1>&5
8875 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8877 if diff conftest.exp conftest.er2 >/dev/null; then
8878 lt_cv_prog_compiler__b=yes
8879 fi
8880 else
8881 lt_cv_prog_compiler__b=yes
8882 fi
8883 fi
8884 $RM -r conftest*
8885 LDFLAGS="$save_LDFLAGS"
8886
8887fi
8888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8889$as_echo "$lt_cv_prog_compiler__b" >&6; }
8890
8891if test x"$lt_cv_prog_compiler__b" = xyes; then
8892 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8893else
8894 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8895fi
8896
8897 ;;
8898 esac
8899 fi
8900 if test "$with_gnu_ld" = no; then
8901 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8902 hardcode_libdir_separator=:
8903
8904 case $host_cpu in
8905 hppa*64*|ia64*)
8906 hardcode_direct=no
8907 hardcode_shlibpath_var=no
8908 ;;
8909 *)
8910 hardcode_direct=yes
8911 hardcode_direct_absolute=yes
8912 export_dynamic_flag_spec='${wl}-E'
8913
8914 # hardcode_minus_L: Not really in the search PATH,
8915 # but as the default location of the library.
8916 hardcode_minus_L=yes
8917 ;;
8918 esac
8919 fi
8920 ;;
8921
8922 irix5* | irix6* | nonstopux*)
8923 if test "$GCC" = yes; then
8924 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'
8925 # Try to use the -exported_symbol ld option, if it does not
8926 # work, assume that -exports_file does not work either and
8927 # implicitly export all symbols.
8928 save_LDFLAGS="$LDFLAGS"
8929 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cb3103a1 8930 if test x$gcc_no_link = xyes; then
8931 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8932fi
8933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969c8c 8934/* end confdefs.h. */
8935int foo(void) {}
8936_ACEOF
8937if ac_fn_c_try_link "$LINENO"; then :
8938 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'
8939
8940fi
8941rm -f core conftest.err conftest.$ac_objext \
8942 conftest$ac_exeext conftest.$ac_ext
8943 LDFLAGS="$save_LDFLAGS"
8944 else
8945 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'
8946 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'
8947 fi
8948 archive_cmds_need_lc='no'
8949 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8950 hardcode_libdir_separator=:
8951 inherit_rpath=yes
8952 link_all_deplibs=yes
8953 ;;
8954
8955 netbsd*)
8956 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8957 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8958 else
8959 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8960 fi
8961 hardcode_libdir_flag_spec='-R$libdir'
8962 hardcode_direct=yes
8963 hardcode_shlibpath_var=no
8964 ;;
8965
8966 newsos6)
8967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8968 hardcode_direct=yes
8969 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8970 hardcode_libdir_separator=:
8971 hardcode_shlibpath_var=no
8972 ;;
8973
8974 *nto* | *qnx*)
8975 ;;
8976
8977 openbsd*)
8978 if test -f /usr/libexec/ld.so; then
8979 hardcode_direct=yes
8980 hardcode_shlibpath_var=no
8981 hardcode_direct_absolute=yes
8982 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8983 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8984 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8985 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8986 export_dynamic_flag_spec='${wl}-E'
8987 else
8988 case $host_os in
8989 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8990 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8991 hardcode_libdir_flag_spec='-R$libdir'
8992 ;;
8993 *)
8994 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8995 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8996 ;;
8997 esac
8998 fi
8999 else
9000 ld_shlibs=no
9001 fi
9002 ;;
9003
9004 os2*)
9005 hardcode_libdir_flag_spec='-L$libdir'
9006 hardcode_minus_L=yes
9007 allow_undefined_flag=unsupported
9008 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'
9009 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9010 ;;
9011
9012 osf3*)
9013 if test "$GCC" = yes; then
9014 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9015 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'
9016 else
9017 allow_undefined_flag=' -expect_unresolved \*'
9018 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'
9019 fi
9020 archive_cmds_need_lc='no'
9021 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9022 hardcode_libdir_separator=:
9023 ;;
9024
9025 osf4* | osf5*) # as osf3* with the addition of -msym flag
9026 if test "$GCC" = yes; then
9027 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9028 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'
9029 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9030 else
9031 allow_undefined_flag=' -expect_unresolved \*'
9032 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'
9033 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~
9034 $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'
9035
9036 # Both c and cxx compiler support -rpath directly
9037 hardcode_libdir_flag_spec='-rpath $libdir'
9038 fi
9039 archive_cmds_need_lc='no'
9040 hardcode_libdir_separator=:
9041 ;;
9042
9043 solaris*)
9044 no_undefined_flag=' -z defs'
9045 if test "$GCC" = yes; then
9046 wlarc='${wl}'
9047 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9048 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9049 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9050 else
9051 case `$CC -V 2>&1` in
9052 *"Compilers 5.0"*)
9053 wlarc=''
9054 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9055 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9056 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9057 ;;
9058 *)
9059 wlarc='${wl}'
9060 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9061 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9062 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9063 ;;
9064 esac
9065 fi
9066 hardcode_libdir_flag_spec='-R$libdir'
9067 hardcode_shlibpath_var=no
9068 case $host_os in
9069 solaris2.[0-5] | solaris2.[0-5].*) ;;
9070 *)
9071 # The compiler driver will combine and reorder linker options,
9072 # but understands `-z linker_flag'. GCC discards it without `$wl',
9073 # but is careful enough not to reorder.
9074 # Supported since Solaris 2.6 (maybe 2.5.1?)
9075 if test "$GCC" = yes; then
9076 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9077 else
9078 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9079 fi
9080 ;;
9081 esac
9082 link_all_deplibs=yes
9083 ;;
9084
9085 sunos4*)
9086 if test "x$host_vendor" = xsequent; then
9087 # Use $CC to link under sequent, because it throws in some extra .o
9088 # files that make .init and .fini sections work.
9089 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9090 else
9091 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9092 fi
9093 hardcode_libdir_flag_spec='-L$libdir'
9094 hardcode_direct=yes
9095 hardcode_minus_L=yes
9096 hardcode_shlibpath_var=no
9097 ;;
9098
9099 sysv4)
9100 case $host_vendor in
9101 sni)
9102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9103 hardcode_direct=yes # is this really true???
9104 ;;
9105 siemens)
9106 ## LD is ld it makes a PLAMLIB
9107 ## CC just makes a GrossModule.
9108 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9109 reload_cmds='$CC -r -o $output$reload_objs'
9110 hardcode_direct=no
9111 ;;
9112 motorola)
9113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9114 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9115 ;;
9116 esac
9117 runpath_var='LD_RUN_PATH'
9118 hardcode_shlibpath_var=no
9119 ;;
9120
9121 sysv4.3*)
9122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9123 hardcode_shlibpath_var=no
9124 export_dynamic_flag_spec='-Bexport'
9125 ;;
9126
9127 sysv4*MP*)
9128 if test -d /usr/nec; then
9129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9130 hardcode_shlibpath_var=no
9131 runpath_var=LD_RUN_PATH
9132 hardcode_runpath_var=yes
9133 ld_shlibs=yes
9134 fi
9135 ;;
9136
9137 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9138 no_undefined_flag='${wl}-z,text'
9139 archive_cmds_need_lc=no
9140 hardcode_shlibpath_var=no
9141 runpath_var='LD_RUN_PATH'
9142
9143 if test "$GCC" = yes; then
9144 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9145 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9146 else
9147 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9148 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9149 fi
9150 ;;
9151
9152 sysv5* | sco3.2v5* | sco5v6*)
9153 # Note: We can NOT use -z defs as we might desire, because we do not
9154 # link with -lc, and that would cause any symbols used from libc to
9155 # always be unresolved, which means just about no library would
9156 # ever link correctly. If we're not using GNU ld we use -z text
9157 # though, which does catch some bad symbols but isn't as heavy-handed
9158 # as -z defs.
9159 no_undefined_flag='${wl}-z,text'
9160 allow_undefined_flag='${wl}-z,nodefs'
9161 archive_cmds_need_lc=no
9162 hardcode_shlibpath_var=no
9163 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9164 hardcode_libdir_separator=':'
9165 link_all_deplibs=yes
9166 export_dynamic_flag_spec='${wl}-Bexport'
9167 runpath_var='LD_RUN_PATH'
9168
9169 if test "$GCC" = yes; then
9170 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9171 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9172 else
9173 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9174 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9175 fi
9176 ;;
9177
9178 uts4*)
9179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9180 hardcode_libdir_flag_spec='-L$libdir'
9181 hardcode_shlibpath_var=no
9182 ;;
9183
9184 *)
9185 ld_shlibs=no
9186 ;;
9187 esac
9188
9189 if test x$host_vendor = xsni; then
9190 case $host in
9191 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9192 export_dynamic_flag_spec='${wl}-Blargedynsym'
9193 ;;
9194 esac
9195 fi
9196 fi
9197
9198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9199$as_echo "$ld_shlibs" >&6; }
9200test "$ld_shlibs" = no && can_build_shared=no
9201
9202with_gnu_ld=$with_gnu_ld
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218#
9219# Do we need to explicitly link libc?
9220#
9221case "x$archive_cmds_need_lc" in
9222x|xyes)
9223 # Assume -lc should be added
9224 archive_cmds_need_lc=yes
9225
9226 if test "$enable_shared" = yes && test "$GCC" = yes; then
9227 case $archive_cmds in
9228 *'~'*)
9229 # FIXME: we may have to deal with multi-command sequences.
9230 ;;
9231 '$CC '*)
9232 # Test whether the compiler implicitly links with -lc since on some
9233 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9234 # to ld, don't add -lc before -lgcc.
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9236$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9237if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9238 $as_echo_n "(cached) " >&6
9239else
9240 $RM conftest*
9241 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9242
9243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9244 (eval $ac_compile) 2>&5
9245 ac_status=$?
9246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9247 test $ac_status = 0; } 2>conftest.err; then
9248 soname=conftest
9249 lib=conftest
9250 libobjs=conftest.$ac_objext
9251 deplibs=
9252 wl=$lt_prog_compiler_wl
9253 pic_flag=$lt_prog_compiler_pic
9254 compiler_flags=-v
9255 linker_flags=-v
9256 verstring=
9257 output_objdir=.
9258 libname=conftest
9259 lt_save_allow_undefined_flag=$allow_undefined_flag
9260 allow_undefined_flag=
9261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9262 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9263 ac_status=$?
9264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9265 test $ac_status = 0; }
9266 then
9267 lt_cv_archive_cmds_need_lc=no
9268 else
9269 lt_cv_archive_cmds_need_lc=yes
9270 fi
9271 allow_undefined_flag=$lt_save_allow_undefined_flag
9272 else
9273 cat conftest.err 1>&5
9274 fi
9275 $RM conftest*
9276
9277fi
9278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9279$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9280 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9281 ;;
9282 esac
9283 fi
9284 ;;
9285esac
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
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9444$as_echo_n "checking dynamic linker characteristics... " >&6; }
9445
9446if test "$GCC" = yes; then
9447 case $host_os in
9448 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9449 *) lt_awk_arg="/^libraries:/" ;;
9450 esac
9451 case $host_os in
9452 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9453 *) lt_sed_strip_eq="s,=/,/,g" ;;
9454 esac
9455 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9456 case $lt_search_path_spec in
9457 *\;*)
9458 # if the path contains ";" then we assume it to be the separator
9459 # otherwise default to the standard path separator (i.e. ":") - it is
9460 # assumed that no part of a normal pathname contains ";" but that should
9461 # okay in the real world where ";" in dirpaths is itself problematic.
9462 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9463 ;;
9464 *)
9465 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9466 ;;
9467 esac
9468 # Ok, now we have the path, separated by spaces, we can step through it
9469 # and add multilib dir if necessary.
9470 lt_tmp_lt_search_path_spec=
9471 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9472 for lt_sys_path in $lt_search_path_spec; do
9473 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9474 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9475 else
9476 test -d "$lt_sys_path" && \
9477 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9478 fi
9479 done
9480 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9481BEGIN {RS=" "; FS="/|\n";} {
9482 lt_foo="";
9483 lt_count=0;
9484 for (lt_i = NF; lt_i > 0; lt_i--) {
9485 if ($lt_i != "" && $lt_i != ".") {
9486 if ($lt_i == "..") {
9487 lt_count++;
9488 } else {
9489 if (lt_count == 0) {
9490 lt_foo="/" $lt_i lt_foo;
9491 } else {
9492 lt_count--;
9493 }
9494 }
9495 }
9496 }
9497 if (lt_foo != "") { lt_freq[lt_foo]++; }
9498 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9499}'`
9500 # AWK program above erroneously prepends '/' to C:/dos/paths
9501 # for these hosts.
9502 case $host_os in
9503 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9504 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9505 esac
9506 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9507else
9508 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9509fi
9510library_names_spec=
9511libname_spec='lib$name'
9512soname_spec=
9513shrext_cmds=".so"
9514postinstall_cmds=
9515postuninstall_cmds=
9516finish_cmds=
9517finish_eval=
9518shlibpath_var=
9519shlibpath_overrides_runpath=unknown
9520version_type=none
9521dynamic_linker="$host_os ld.so"
9522sys_lib_dlsearch_path_spec="/lib /usr/lib"
9523need_lib_prefix=unknown
9524hardcode_into_libs=no
9525
9526# when you set need_version to no, make sure it does not cause -set_version
9527# flags to be left without arguments
9528need_version=unknown
9529
9530case $host_os in
9531aix3*)
9532 version_type=linux
9533 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9534 shlibpath_var=LIBPATH
9535
9536 # AIX 3 has no versioning support, so we append a major version to the name.
9537 soname_spec='${libname}${release}${shared_ext}$major'
9538 ;;
9539
9540aix[4-9]*)
9541 version_type=linux
9542 need_lib_prefix=no
9543 need_version=no
9544 hardcode_into_libs=yes
9545 if test "$host_cpu" = ia64; then
9546 # AIX 5 supports IA64
9547 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9548 shlibpath_var=LD_LIBRARY_PATH
9549 else
9550 # With GCC up to 2.95.x, collect2 would create an import file
9551 # for dependence libraries. The import file would start with
9552 # the line `#! .'. This would cause the generated library to
9553 # depend on `.', always an invalid library. This was fixed in
9554 # development snapshots of GCC prior to 3.0.
9555 case $host_os in
9556 aix4 | aix4.[01] | aix4.[01].*)
9557 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9558 echo ' yes '
9559 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9560 :
9561 else
9562 can_build_shared=no
9563 fi
9564 ;;
9565 esac
9566 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9567 # soname into executable. Probably we can add versioning support to
9568 # collect2, so additional links can be useful in future.
9569 if test "$aix_use_runtimelinking" = yes; then
9570 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9571 # instead of lib<name>.a to let people know that these are not
9572 # typical AIX shared libraries.
9573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9574 else
9575 # We preserve .a as extension for shared libraries through AIX4.2
9576 # and later when we are not doing run time linking.
9577 library_names_spec='${libname}${release}.a $libname.a'
9578 soname_spec='${libname}${release}${shared_ext}$major'
9579 fi
9580 shlibpath_var=LIBPATH
9581 fi
9582 ;;
9583
9584amigaos*)
9585 case $host_cpu in
9586 powerpc)
9587 # Since July 2007 AmigaOS4 officially supports .so libraries.
9588 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9590 ;;
9591 m68k)
9592 library_names_spec='$libname.ixlibrary $libname.a'
9593 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9594 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'
9595 ;;
9596 esac
9597 ;;
9598
9599beos*)
9600 library_names_spec='${libname}${shared_ext}'
9601 dynamic_linker="$host_os ld.so"
9602 shlibpath_var=LIBRARY_PATH
9603 ;;
9604
9605bsdi[45]*)
9606 version_type=linux
9607 need_version=no
9608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609 soname_spec='${libname}${release}${shared_ext}$major'
9610 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9611 shlibpath_var=LD_LIBRARY_PATH
9612 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9613 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9614 # the default ld.so.conf also contains /usr/contrib/lib and
9615 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9616 # libtool to hard-code these into programs
9617 ;;
9618
9619cygwin* | mingw* | pw32* | cegcc*)
9620 version_type=windows
9621 shrext_cmds=".dll"
9622 need_version=no
9623 need_lib_prefix=no
9624
9625 case $GCC,$host_os in
9626 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9627 library_names_spec='$libname.dll.a'
9628 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9629 postinstall_cmds='base_file=`basename \${file}`~
9630 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9631 dldir=$destdir/`dirname \$dlpath`~
9632 test -d \$dldir || mkdir -p \$dldir~
9633 $install_prog $dir/$dlname \$dldir/$dlname~
9634 chmod a+x \$dldir/$dlname~
9635 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9636 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9637 fi'
9638 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9639 dlpath=$dir/\$dldll~
9640 $RM \$dlpath'
9641 shlibpath_overrides_runpath=yes
9642
9643 case $host_os in
9644 cygwin*)
9645 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9646 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9647
9648 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9649 ;;
9650 mingw* | cegcc*)
9651 # MinGW DLLs use traditional 'lib' prefix
9652 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9653 ;;
9654 pw32*)
9655 # pw32 DLLs use 'pw' prefix rather than 'lib'
9656 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9657 ;;
9658 esac
9659 ;;
9660
9661 *)
9662 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9663 ;;
9664 esac
9665 dynamic_linker='Win32 ld.exe'
9666 # FIXME: first we should search . and the directory the executable is in
9667 shlibpath_var=PATH
9668 ;;
9669
9670darwin* | rhapsody*)
9671 dynamic_linker="$host_os dyld"
9672 version_type=darwin
9673 need_lib_prefix=no
9674 need_version=no
9675 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9676 soname_spec='${libname}${release}${major}$shared_ext'
9677 shlibpath_overrides_runpath=yes
9678 shlibpath_var=DYLD_LIBRARY_PATH
9679 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9680
9681 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9682 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9683 ;;
9684
9685dgux*)
9686 version_type=linux
9687 need_lib_prefix=no
9688 need_version=no
9689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9690 soname_spec='${libname}${release}${shared_ext}$major'
9691 shlibpath_var=LD_LIBRARY_PATH
9692 ;;
9693
87969c8c 9694freebsd* | dragonfly*)
9695 # DragonFly does not have aout. When/if they implement a new
9696 # versioning mechanism, adjust this.
9697 if test -x /usr/bin/objformat; then
9698 objformat=`/usr/bin/objformat`
9699 else
9700 case $host_os in
30369aff 9701 freebsd[23].*) objformat=aout ;;
87969c8c 9702 *) objformat=elf ;;
9703 esac
9704 fi
9705 version_type=freebsd-$objformat
9706 case $version_type in
9707 freebsd-elf*)
9708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9709 need_version=no
9710 need_lib_prefix=no
9711 ;;
9712 freebsd-*)
9713 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9714 need_version=yes
9715 ;;
9716 esac
9717 shlibpath_var=LD_LIBRARY_PATH
9718 case $host_os in
30369aff 9719 freebsd2.*)
87969c8c 9720 shlibpath_overrides_runpath=yes
9721 ;;
9722 freebsd3.[01]* | freebsdelf3.[01]*)
9723 shlibpath_overrides_runpath=yes
9724 hardcode_into_libs=yes
9725 ;;
9726 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9727 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9728 shlibpath_overrides_runpath=no
9729 hardcode_into_libs=yes
9730 ;;
9731 *) # from 4.6 on, and DragonFly
9732 shlibpath_overrides_runpath=yes
9733 hardcode_into_libs=yes
9734 ;;
9735 esac
9736 ;;
9737
9738gnu*)
9739 version_type=linux
9740 need_lib_prefix=no
9741 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
9745 hardcode_into_libs=yes
9746 ;;
9747
9748haiku*)
9749 version_type=linux
9750 need_lib_prefix=no
9751 need_version=no
9752 dynamic_linker="$host_os runtime_loader"
9753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9754 soname_spec='${libname}${release}${shared_ext}$major'
9755 shlibpath_var=LIBRARY_PATH
9756 shlibpath_overrides_runpath=yes
9757 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9758 hardcode_into_libs=yes
9759 ;;
9760
9761hpux9* | hpux10* | hpux11*)
9762 # Give a soname corresponding to the major version so that dld.sl refuses to
9763 # link against other versions.
9764 version_type=sunos
9765 need_lib_prefix=no
9766 need_version=no
9767 case $host_cpu in
9768 ia64*)
9769 shrext_cmds='.so'
9770 hardcode_into_libs=yes
9771 dynamic_linker="$host_os dld.so"
9772 shlibpath_var=LD_LIBRARY_PATH
9773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9775 soname_spec='${libname}${release}${shared_ext}$major'
9776 if test "X$HPUX_IA64_MODE" = X32; then
9777 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9778 else
9779 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9780 fi
9781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9782 ;;
9783 hppa*64*)
9784 shrext_cmds='.sl'
9785 hardcode_into_libs=yes
9786 dynamic_linker="$host_os dld.sl"
9787 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9788 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9790 soname_spec='${libname}${release}${shared_ext}$major'
9791 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9792 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9793 ;;
9794 *)
9795 shrext_cmds='.sl'
9796 dynamic_linker="$host_os dld.sl"
9797 shlibpath_var=SHLIB_PATH
9798 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9800 soname_spec='${libname}${release}${shared_ext}$major'
9801 ;;
9802 esac
9803 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9804 postinstall_cmds='chmod 555 $lib'
9805 # or fails outright, so override atomically:
9806 install_override_mode=555
9807 ;;
9808
9809interix[3-9]*)
9810 version_type=linux
9811 need_lib_prefix=no
9812 need_version=no
9813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9814 soname_spec='${libname}${release}${shared_ext}$major'
9815 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9816 shlibpath_var=LD_LIBRARY_PATH
9817 shlibpath_overrides_runpath=no
9818 hardcode_into_libs=yes
9819 ;;
9820
9821irix5* | irix6* | nonstopux*)
9822 case $host_os in
9823 nonstopux*) version_type=nonstopux ;;
9824 *)
9825 if test "$lt_cv_prog_gnu_ld" = yes; then
9826 version_type=linux
9827 else
9828 version_type=irix
9829 fi ;;
9830 esac
9831 need_lib_prefix=no
9832 need_version=no
9833 soname_spec='${libname}${release}${shared_ext}$major'
9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9835 case $host_os in
9836 irix5* | nonstopux*)
9837 libsuff= shlibsuff=
9838 ;;
9839 *)
9840 case $LD in # libtool.m4 will add one of these switches to LD
9841 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9842 libsuff= shlibsuff= libmagic=32-bit;;
9843 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9844 libsuff=32 shlibsuff=N32 libmagic=N32;;
9845 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9846 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9847 *) libsuff= shlibsuff= libmagic=never-match;;
9848 esac
9849 ;;
9850 esac
9851 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9852 shlibpath_overrides_runpath=no
9853 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9854 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9855 hardcode_into_libs=yes
9856 ;;
9857
9858# No shared lib support for Linux oldld, aout, or coff.
9859linux*oldld* | linux*aout* | linux*coff*)
9860 dynamic_linker=no
9861 ;;
9862
9863# This must be Linux ELF.
9864linux* | k*bsd*-gnu | kopensolaris*-gnu)
9865 version_type=linux
9866 need_lib_prefix=no
9867 need_version=no
9868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9869 soname_spec='${libname}${release}${shared_ext}$major'
9870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9871 shlibpath_var=LD_LIBRARY_PATH
9872 shlibpath_overrides_runpath=no
9873
9874 # Some binutils ld are patched to set DT_RUNPATH
9875 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9876 $as_echo_n "(cached) " >&6
9877else
9878 lt_cv_shlibpath_overrides_runpath=no
9879 save_LDFLAGS=$LDFLAGS
9880 save_libdir=$libdir
9881 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9882 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
cb3103a1 9883 if test x$gcc_no_link = xyes; then
9884 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9885fi
9886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969c8c 9887/* end confdefs.h. */
9888
9889int
9890main ()
9891{
9892
9893 ;
9894 return 0;
9895}
9896_ACEOF
9897if ac_fn_c_try_link "$LINENO"; then :
9898 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9899 lt_cv_shlibpath_overrides_runpath=yes
9900fi
9901fi
9902rm -f core conftest.err conftest.$ac_objext \
9903 conftest$ac_exeext conftest.$ac_ext
9904 LDFLAGS=$save_LDFLAGS
9905 libdir=$save_libdir
9906
9907fi
9908
9909 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9910
9911 # This implies no fast_install, which is unacceptable.
9912 # Some rework will be needed to allow for fast_install
9913 # before this can be enabled.
9914 hardcode_into_libs=yes
9915
9916 # Append ld.so.conf contents to the search path
9917 if test -f /etc/ld.so.conf; then
9918 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' ' '`
9919 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9920 fi
9921
9922 # We used to test for /lib/ld.so.1 and disable shared libraries on
9923 # powerpc, because MkLinux only supported shared libraries with the
9924 # GNU dynamic linker. Since this was broken with cross compilers,
9925 # most powerpc-linux boxes support dynamic linking these days and
9926 # people can always --disable-shared, the test was removed, and we
9927 # assume the GNU/Linux dynamic linker is in use.
9928 dynamic_linker='GNU/Linux ld.so'
9929 ;;
9930
9931netbsd*)
9932 version_type=sunos
9933 need_lib_prefix=no
9934 need_version=no
9935 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9938 dynamic_linker='NetBSD (a.out) ld.so'
9939 else
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9941 soname_spec='${libname}${release}${shared_ext}$major'
9942 dynamic_linker='NetBSD ld.elf_so'
9943 fi
9944 shlibpath_var=LD_LIBRARY_PATH
9945 shlibpath_overrides_runpath=yes
9946 hardcode_into_libs=yes
9947 ;;
9948
9949newsos6)
9950 version_type=linux
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952 shlibpath_var=LD_LIBRARY_PATH
9953 shlibpath_overrides_runpath=yes
9954 ;;
9955
9956*nto* | *qnx*)
9957 version_type=qnx
9958 need_lib_prefix=no
9959 need_version=no
9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9961 soname_spec='${libname}${release}${shared_ext}$major'
9962 shlibpath_var=LD_LIBRARY_PATH
9963 shlibpath_overrides_runpath=no
9964 hardcode_into_libs=yes
9965 dynamic_linker='ldqnx.so'
9966 ;;
9967
9968openbsd*)
9969 version_type=sunos
9970 sys_lib_dlsearch_path_spec="/usr/lib"
9971 need_lib_prefix=no
9972 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9973 case $host_os in
9974 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9975 *) need_version=no ;;
9976 esac
9977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9979 shlibpath_var=LD_LIBRARY_PATH
9980 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9981 case $host_os in
9982 openbsd2.[89] | openbsd2.[89].*)
9983 shlibpath_overrides_runpath=no
9984 ;;
9985 *)
9986 shlibpath_overrides_runpath=yes
9987 ;;
9988 esac
9989 else
9990 shlibpath_overrides_runpath=yes
9991 fi
9992 ;;
9993
9994os2*)
9995 libname_spec='$name'
9996 shrext_cmds=".dll"
9997 need_lib_prefix=no
9998 library_names_spec='$libname${shared_ext} $libname.a'
9999 dynamic_linker='OS/2 ld.exe'
10000 shlibpath_var=LIBPATH
10001 ;;
10002
10003osf3* | osf4* | osf5*)
10004 version_type=osf
10005 need_lib_prefix=no
10006 need_version=no
10007 soname_spec='${libname}${release}${shared_ext}$major'
10008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10009 shlibpath_var=LD_LIBRARY_PATH
10010 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10011 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10012 ;;
10013
10014rdos*)
10015 dynamic_linker=no
10016 ;;
10017
10018solaris*)
10019 version_type=linux
10020 need_lib_prefix=no
10021 need_version=no
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $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 # ldd complains unless libraries are executable
10028 postinstall_cmds='chmod +x $lib'
10029 ;;
10030
10031sunos4*)
10032 version_type=sunos
10033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10034 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10035 shlibpath_var=LD_LIBRARY_PATH
10036 shlibpath_overrides_runpath=yes
10037 if test "$with_gnu_ld" = yes; then
10038 need_lib_prefix=no
10039 fi
10040 need_version=yes
10041 ;;
10042
10043sysv4 | sysv4.3*)
10044 version_type=linux
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046 soname_spec='${libname}${release}${shared_ext}$major'
10047 shlibpath_var=LD_LIBRARY_PATH
10048 case $host_vendor in
10049 sni)
10050 shlibpath_overrides_runpath=no
10051 need_lib_prefix=no
10052 runpath_var=LD_RUN_PATH
10053 ;;
10054 siemens)
10055 need_lib_prefix=no
10056 ;;
10057 motorola)
10058 need_lib_prefix=no
10059 need_version=no
10060 shlibpath_overrides_runpath=no
10061 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10062 ;;
10063 esac
10064 ;;
10065
10066sysv4*MP*)
10067 if test -d /usr/nec ;then
10068 version_type=linux
10069 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10070 soname_spec='$libname${shared_ext}.$major'
10071 shlibpath_var=LD_LIBRARY_PATH
10072 fi
10073 ;;
10074
10075sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10076 version_type=freebsd-elf
10077 need_lib_prefix=no
10078 need_version=no
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10080 soname_spec='${libname}${release}${shared_ext}$major'
10081 shlibpath_var=LD_LIBRARY_PATH
10082 shlibpath_overrides_runpath=yes
10083 hardcode_into_libs=yes
10084 if test "$with_gnu_ld" = yes; then
10085 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10086 else
10087 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10088 case $host_os in
10089 sco3.2v5*)
10090 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10091 ;;
10092 esac
10093 fi
10094 sys_lib_dlsearch_path_spec='/usr/lib'
10095 ;;
10096
10097tpf*)
10098 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10099 version_type=linux
10100 need_lib_prefix=no
10101 need_version=no
10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10103 shlibpath_var=LD_LIBRARY_PATH
10104 shlibpath_overrides_runpath=no
10105 hardcode_into_libs=yes
10106 ;;
10107
10108uts4*)
10109 version_type=linux
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10111 soname_spec='${libname}${release}${shared_ext}$major'
10112 shlibpath_var=LD_LIBRARY_PATH
10113 ;;
10114
10115*)
10116 dynamic_linker=no
10117 ;;
10118esac
10119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10120$as_echo "$dynamic_linker" >&6; }
10121test "$dynamic_linker" = no && can_build_shared=no
10122
10123variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10124if test "$GCC" = yes; then
10125 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10126fi
10127
10128if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10129 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10130fi
10131if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10132 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10133fi
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
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10227$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10228hardcode_action=
10229if test -n "$hardcode_libdir_flag_spec" ||
10230 test -n "$runpath_var" ||
10231 test "X$hardcode_automatic" = "Xyes" ; then
10232
10233 # We can hardcode non-existent directories.
10234 if test "$hardcode_direct" != no &&
10235 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10236 # have to relink, otherwise we might link with an installed library
10237 # when we should be linking with a yet-to-be-installed one
10238 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10239 test "$hardcode_minus_L" != no; then
10240 # Linking always hardcodes the temporary library directory.
10241 hardcode_action=relink
10242 else
10243 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10244 hardcode_action=immediate
10245 fi
10246else
10247 # We cannot hardcode anything, or else we can only hardcode existing
10248 # directories.
10249 hardcode_action=unsupported
10250fi
10251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10252$as_echo "$hardcode_action" >&6; }
10253
10254if test "$hardcode_action" = relink ||
10255 test "$inherit_rpath" = yes; then
10256 # Fast installation is not supported
10257 enable_fast_install=no
10258elif test "$shlibpath_overrides_runpath" = yes ||
10259 test "$enable_shared" = no; then
10260 # Fast installation is not necessary
10261 enable_fast_install=needless
10262fi
10263
10264
10265
10266
10267
10268
10269 if test "x$enable_dlopen" != xyes; then
10270 enable_dlopen=unknown
10271 enable_dlopen_self=unknown
10272 enable_dlopen_self_static=unknown
10273else
10274 lt_cv_dlopen=no
10275 lt_cv_dlopen_libs=
10276
10277 case $host_os in
10278 beos*)
10279 lt_cv_dlopen="load_add_on"
10280 lt_cv_dlopen_libs=
10281 lt_cv_dlopen_self=yes
10282 ;;
10283
10284 mingw* | pw32* | cegcc*)
10285 lt_cv_dlopen="LoadLibrary"
10286 lt_cv_dlopen_libs=
10287 ;;
10288
10289 cygwin*)
10290 lt_cv_dlopen="dlopen"
10291 lt_cv_dlopen_libs=
10292 ;;
10293
10294 darwin*)
10295 # if libdl is installed we need to link against it
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10297$as_echo_n "checking for dlopen in -ldl... " >&6; }
10298if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10299 $as_echo_n "(cached) " >&6
10300else
10301 ac_check_lib_save_LIBS=$LIBS
10302LIBS="-ldl $LIBS"
cb3103a1 10303if test x$gcc_no_link = xyes; then
10304 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10305fi
87969c8c 10306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10307/* end confdefs.h. */
10308
10309/* Override any GCC internal prototype to avoid an error.
10310 Use char because int might match the return type of a GCC
10311 builtin and then its argument prototype would still apply. */
10312#ifdef __cplusplus
10313extern "C"
10314#endif
10315char dlopen ();
10316int
10317main ()
10318{
10319return dlopen ();
10320 ;
10321 return 0;
10322}
10323_ACEOF
10324if ac_fn_c_try_link "$LINENO"; then :
10325 ac_cv_lib_dl_dlopen=yes
10326else
10327 ac_cv_lib_dl_dlopen=no
10328fi
10329rm -f core conftest.err conftest.$ac_objext \
10330 conftest$ac_exeext conftest.$ac_ext
10331LIBS=$ac_check_lib_save_LIBS
10332fi
10333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10334$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10335if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10336 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10337else
10338
10339 lt_cv_dlopen="dyld"
10340 lt_cv_dlopen_libs=
10341 lt_cv_dlopen_self=yes
10342
10343fi
10344
10345 ;;
10346
10347 *)
10348 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10349if test "x$ac_cv_func_shl_load" = x""yes; then :
10350 lt_cv_dlopen="shl_load"
10351else
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10353$as_echo_n "checking for shl_load in -ldld... " >&6; }
10354if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10355 $as_echo_n "(cached) " >&6
10356else
10357 ac_check_lib_save_LIBS=$LIBS
10358LIBS="-ldld $LIBS"
cb3103a1 10359if test x$gcc_no_link = xyes; then
10360 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10361fi
87969c8c 10362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363/* end confdefs.h. */
10364
10365/* Override any GCC internal prototype to avoid an error.
10366 Use char because int might match the return type of a GCC
10367 builtin and then its argument prototype would still apply. */
10368#ifdef __cplusplus
10369extern "C"
10370#endif
10371char shl_load ();
10372int
10373main ()
10374{
10375return shl_load ();
10376 ;
10377 return 0;
10378}
10379_ACEOF
10380if ac_fn_c_try_link "$LINENO"; then :
10381 ac_cv_lib_dld_shl_load=yes
10382else
10383 ac_cv_lib_dld_shl_load=no
10384fi
10385rm -f core conftest.err conftest.$ac_objext \
10386 conftest$ac_exeext conftest.$ac_ext
10387LIBS=$ac_check_lib_save_LIBS
10388fi
10389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10390$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10391if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10392 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10393else
10394 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10395if test "x$ac_cv_func_dlopen" = x""yes; then :
10396 lt_cv_dlopen="dlopen"
10397else
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10399$as_echo_n "checking for dlopen in -ldl... " >&6; }
10400if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10401 $as_echo_n "(cached) " >&6
10402else
10403 ac_check_lib_save_LIBS=$LIBS
10404LIBS="-ldl $LIBS"
cb3103a1 10405if test x$gcc_no_link = xyes; then
10406 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10407fi
87969c8c 10408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409/* end confdefs.h. */
10410
10411/* Override any GCC internal prototype to avoid an error.
10412 Use char because int might match the return type of a GCC
10413 builtin and then its argument prototype would still apply. */
10414#ifdef __cplusplus
10415extern "C"
10416#endif
10417char dlopen ();
10418int
10419main ()
10420{
10421return dlopen ();
10422 ;
10423 return 0;
10424}
10425_ACEOF
10426if ac_fn_c_try_link "$LINENO"; then :
10427 ac_cv_lib_dl_dlopen=yes
10428else
10429 ac_cv_lib_dl_dlopen=no
10430fi
10431rm -f core conftest.err conftest.$ac_objext \
10432 conftest$ac_exeext conftest.$ac_ext
10433LIBS=$ac_check_lib_save_LIBS
10434fi
10435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10436$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10437if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10438 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10439else
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10441$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10442if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10443 $as_echo_n "(cached) " >&6
10444else
10445 ac_check_lib_save_LIBS=$LIBS
10446LIBS="-lsvld $LIBS"
cb3103a1 10447if test x$gcc_no_link = xyes; then
10448 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10449fi
87969c8c 10450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451/* end confdefs.h. */
10452
10453/* Override any GCC internal prototype to avoid an error.
10454 Use char because int might match the return type of a GCC
10455 builtin and then its argument prototype would still apply. */
10456#ifdef __cplusplus
10457extern "C"
10458#endif
10459char dlopen ();
10460int
10461main ()
10462{
10463return dlopen ();
10464 ;
10465 return 0;
10466}
10467_ACEOF
10468if ac_fn_c_try_link "$LINENO"; then :
10469 ac_cv_lib_svld_dlopen=yes
10470else
10471 ac_cv_lib_svld_dlopen=no
10472fi
10473rm -f core conftest.err conftest.$ac_objext \
10474 conftest$ac_exeext conftest.$ac_ext
10475LIBS=$ac_check_lib_save_LIBS
10476fi
10477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10478$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10479if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10480 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10481else
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10483$as_echo_n "checking for dld_link in -ldld... " >&6; }
10484if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10485 $as_echo_n "(cached) " >&6
10486else
10487 ac_check_lib_save_LIBS=$LIBS
10488LIBS="-ldld $LIBS"
cb3103a1 10489if test x$gcc_no_link = xyes; then
10490 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10491fi
87969c8c 10492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493/* end confdefs.h. */
10494
10495/* Override any GCC internal prototype to avoid an error.
10496 Use char because int might match the return type of a GCC
10497 builtin and then its argument prototype would still apply. */
10498#ifdef __cplusplus
10499extern "C"
10500#endif
10501char dld_link ();
10502int
10503main ()
10504{
10505return dld_link ();
10506 ;
10507 return 0;
10508}
10509_ACEOF
10510if ac_fn_c_try_link "$LINENO"; then :
10511 ac_cv_lib_dld_dld_link=yes
10512else
10513 ac_cv_lib_dld_dld_link=no
10514fi
10515rm -f core conftest.err conftest.$ac_objext \
10516 conftest$ac_exeext conftest.$ac_ext
10517LIBS=$ac_check_lib_save_LIBS
10518fi
10519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10520$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10521if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10522 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10523fi
10524
10525
10526fi
10527
10528
10529fi
10530
10531
10532fi
10533
10534
10535fi
10536
10537
10538fi
10539
10540 ;;
10541 esac
10542
10543 if test "x$lt_cv_dlopen" != xno; then
10544 enable_dlopen=yes
10545 else
10546 enable_dlopen=no
10547 fi
10548
10549 case $lt_cv_dlopen in
10550 dlopen)
10551 save_CPPFLAGS="$CPPFLAGS"
10552 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10553
10554 save_LDFLAGS="$LDFLAGS"
10555 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10556
10557 save_LIBS="$LIBS"
10558 LIBS="$lt_cv_dlopen_libs $LIBS"
10559
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10561$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10562if test "${lt_cv_dlopen_self+set}" = set; then :
10563 $as_echo_n "(cached) " >&6
10564else
10565 if test "$cross_compiling" = yes; then :
10566 lt_cv_dlopen_self=cross
10567else
10568 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10569 lt_status=$lt_dlunknown
10570 cat > conftest.$ac_ext <<_LT_EOF
91fc47e3 10571#line 10571 "configure"
87969c8c 10572#include "confdefs.h"
10573
10574#if HAVE_DLFCN_H
10575#include <dlfcn.h>
10576#endif
10577
10578#include <stdio.h>
10579
10580#ifdef RTLD_GLOBAL
10581# define LT_DLGLOBAL RTLD_GLOBAL
10582#else
10583# ifdef DL_GLOBAL
10584# define LT_DLGLOBAL DL_GLOBAL
10585# else
10586# define LT_DLGLOBAL 0
10587# endif
10588#endif
10589
10590/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10591 find out it does not work in some platform. */
10592#ifndef LT_DLLAZY_OR_NOW
10593# ifdef RTLD_LAZY
10594# define LT_DLLAZY_OR_NOW RTLD_LAZY
10595# else
10596# ifdef DL_LAZY
10597# define LT_DLLAZY_OR_NOW DL_LAZY
10598# else
10599# ifdef RTLD_NOW
10600# define LT_DLLAZY_OR_NOW RTLD_NOW
10601# else
10602# ifdef DL_NOW
10603# define LT_DLLAZY_OR_NOW DL_NOW
10604# else
10605# define LT_DLLAZY_OR_NOW 0
10606# endif
10607# endif
10608# endif
10609# endif
10610#endif
10611
10612/* When -fvisbility=hidden is used, assume the code has been annotated
10613 correspondingly for the symbols needed. */
10614#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10615void fnord () __attribute__((visibility("default")));
10616#endif
10617
10618void fnord () { int i=42; }
10619int main ()
10620{
10621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10622 int status = $lt_dlunknown;
10623
10624 if (self)
10625 {
10626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10627 else
10628 {
10629 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10630 else puts (dlerror ());
10631 }
10632 /* dlclose (self); */
10633 }
10634 else
10635 puts (dlerror ());
10636
10637 return status;
10638}
10639_LT_EOF
10640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10641 (eval $ac_link) 2>&5
10642 ac_status=$?
10643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10644 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10645 (./conftest; exit; ) >&5 2>/dev/null
10646 lt_status=$?
10647 case x$lt_status in
10648 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10649 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10650 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10651 esac
10652 else :
10653 # compilation failed
10654 lt_cv_dlopen_self=no
10655 fi
10656fi
10657rm -fr conftest*
10658
10659
10660fi
10661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10662$as_echo "$lt_cv_dlopen_self" >&6; }
10663
10664 if test "x$lt_cv_dlopen_self" = xyes; then
10665 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10667$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10668if test "${lt_cv_dlopen_self_static+set}" = set; then :
10669 $as_echo_n "(cached) " >&6
10670else
10671 if test "$cross_compiling" = yes; then :
10672 lt_cv_dlopen_self_static=cross
10673else
10674 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10675 lt_status=$lt_dlunknown
10676 cat > conftest.$ac_ext <<_LT_EOF
91fc47e3 10677#line 10677 "configure"
87969c8c 10678#include "confdefs.h"
10679
10680#if HAVE_DLFCN_H
10681#include <dlfcn.h>
10682#endif
10683
10684#include <stdio.h>
10685
10686#ifdef RTLD_GLOBAL
10687# define LT_DLGLOBAL RTLD_GLOBAL
10688#else
10689# ifdef DL_GLOBAL
10690# define LT_DLGLOBAL DL_GLOBAL
10691# else
10692# define LT_DLGLOBAL 0
10693# endif
10694#endif
10695
10696/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10697 find out it does not work in some platform. */
10698#ifndef LT_DLLAZY_OR_NOW
10699# ifdef RTLD_LAZY
10700# define LT_DLLAZY_OR_NOW RTLD_LAZY
10701# else
10702# ifdef DL_LAZY
10703# define LT_DLLAZY_OR_NOW DL_LAZY
10704# else
10705# ifdef RTLD_NOW
10706# define LT_DLLAZY_OR_NOW RTLD_NOW
10707# else
10708# ifdef DL_NOW
10709# define LT_DLLAZY_OR_NOW DL_NOW
10710# else
10711# define LT_DLLAZY_OR_NOW 0
10712# endif
10713# endif
10714# endif
10715# endif
10716#endif
10717
10718/* When -fvisbility=hidden is used, assume the code has been annotated
10719 correspondingly for the symbols needed. */
10720#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10721void fnord () __attribute__((visibility("default")));
10722#endif
10723
10724void fnord () { int i=42; }
10725int main ()
10726{
10727 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10728 int status = $lt_dlunknown;
10729
10730 if (self)
10731 {
10732 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10733 else
10734 {
10735 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10736 else puts (dlerror ());
10737 }
10738 /* dlclose (self); */
10739 }
10740 else
10741 puts (dlerror ());
10742
10743 return status;
10744}
10745_LT_EOF
10746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10747 (eval $ac_link) 2>&5
10748 ac_status=$?
10749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10750 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10751 (./conftest; exit; ) >&5 2>/dev/null
10752 lt_status=$?
10753 case x$lt_status in
10754 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10755 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10756 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10757 esac
10758 else :
10759 # compilation failed
10760 lt_cv_dlopen_self_static=no
10761 fi
10762fi
10763rm -fr conftest*
10764
10765
10766fi
10767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10768$as_echo "$lt_cv_dlopen_self_static" >&6; }
10769 fi
10770
10771 CPPFLAGS="$save_CPPFLAGS"
10772 LDFLAGS="$save_LDFLAGS"
10773 LIBS="$save_LIBS"
10774 ;;
10775 esac
10776
10777 case $lt_cv_dlopen_self in
10778 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10779 *) enable_dlopen_self=unknown ;;
10780 esac
10781
10782 case $lt_cv_dlopen_self_static in
10783 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10784 *) enable_dlopen_self_static=unknown ;;
10785 esac
10786fi
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804striplib=
10805old_striplib=
10806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10807$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10808if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10809 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10810 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10812$as_echo "yes" >&6; }
10813else
10814# FIXME - insert some real tests, host_os isn't really good enough
10815 case $host_os in
10816 darwin*)
10817 if test -n "$STRIP" ; then
10818 striplib="$STRIP -x"
10819 old_striplib="$STRIP -S"
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10821$as_echo "yes" >&6; }
10822 else
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10824$as_echo "no" >&6; }
10825 fi
10826 ;;
10827 *)
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829$as_echo "no" >&6; }
10830 ;;
10831 esac
10832fi
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845 # Report which library types will actually be built
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10847$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10849$as_echo "$can_build_shared" >&6; }
10850
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10852$as_echo_n "checking whether to build shared libraries... " >&6; }
10853 test "$can_build_shared" = "no" && enable_shared=no
10854
10855 # On AIX, shared libraries and static libraries use the same namespace, and
10856 # are all built from PIC.
10857 case $host_os in
10858 aix3*)
10859 test "$enable_shared" = yes && enable_static=no
10860 if test -n "$RANLIB"; then
10861 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10862 postinstall_cmds='$RANLIB $lib'
10863 fi
cb3103a1 10864 ;;
10865
10866 aix[4-9]*)
10867 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10868 test "$enable_shared" = yes && enable_static=no
10869 fi
10870 ;;
10871 esac
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10873$as_echo "$enable_shared" >&6; }
10874
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10876$as_echo_n "checking whether to build static libraries... " >&6; }
10877 # Make sure either enable_shared or enable_static is yes.
10878 test "$enable_shared" = yes || enable_static=yes
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10880$as_echo "$enable_static" >&6; }
10881
10882
10883
10884
10885fi
10886ac_ext=c
10887ac_cpp='$CPP $CPPFLAGS'
10888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10890ac_compiler_gnu=$ac_cv_c_compiler_gnu
10891
10892CC="$lt_save_CC"
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906 ac_config_commands="$ac_config_commands libtool"
10907
10908
10909
10910
10911# Only expand once:
10912
10913
10914
10915
10916
8c35d268 10917case $host in
10918 *-cygwin* | *-mingw*)
10919 # 'host' will be top-level target in the case of a target lib,
10920 # we must compare to with_cross_host to decide if this is a native
10921 # or cross-compiler and select where to install dlls appropriately.
10922 if test -n "$with_cross_host" &&
10923 test x"$with_cross_host" != x"no"; then
10924 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
10925 else
10926 lt_host_flags='-no-undefined -bindir "$(bindir)"';
10927 fi
10928 ;;
10929 *)
10930 lt_host_flags=
10931 ;;
10932esac
10933
10934
10935
10936
10937
10938
cb3103a1 10939
10940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10941$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10942 # Check whether --enable-maintainer-mode was given.
10943if test "${enable_maintainer_mode+set}" = set; then :
10944 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10945else
10946 USE_MAINTAINER_MODE=no
10947fi
10948
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10950$as_echo "$USE_MAINTAINER_MODE" >&6; }
10951 if test $USE_MAINTAINER_MODE = yes; then
10952 MAINTAINER_MODE_TRUE=
10953 MAINTAINER_MODE_FALSE='#'
10954else
10955 MAINTAINER_MODE_TRUE='#'
10956 MAINTAINER_MODE_FALSE=
10957fi
10958
10959 MAINT=$MAINTAINER_MODE_TRUE
10960
10961
cb3103a1 10962
10963ac_ext=c
10964ac_cpp='$CPP $CPPFLAGS'
10965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10967ac_compiler_gnu=$ac_cv_c_compiler_gnu
10968
10969# The same as in boehm-gc and libstdc++. Have to borrow it from there.
10970# We must force CC to /not/ be precious variables; otherwise
10971# the wrong, non-multilib-adjusted value will be used in multilibs.
10972# As a side effect, we have to subst CFLAGS ourselves.
10973
10974
10975
10976ac_ext=c
10977ac_cpp='$CPP $CPPFLAGS'
10978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10980ac_compiler_gnu=$ac_cv_c_compiler_gnu
10981if test -n "$ac_tool_prefix"; then
10982 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10983set dummy ${ac_tool_prefix}gcc; ac_word=$2
10984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10985$as_echo_n "checking for $ac_word... " >&6; }
10986if test "${ac_cv_prog_CC+set}" = set; then :
10987 $as_echo_n "(cached) " >&6
10988else
10989 if test -n "$CC"; then
10990 ac_cv_prog_CC="$CC" # Let the user override the test.
10991else
10992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10993for as_dir in $PATH
10994do
10995 IFS=$as_save_IFS
10996 test -z "$as_dir" && as_dir=.
10997 for ac_exec_ext in '' $ac_executable_extensions; do
10998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10999 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11001 break 2
11002 fi
11003done
11004 done
11005IFS=$as_save_IFS
11006
11007fi
11008fi
11009CC=$ac_cv_prog_CC
11010if test -n "$CC"; then
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11012$as_echo "$CC" >&6; }
11013else
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11015$as_echo "no" >&6; }
11016fi
11017
11018
11019fi
11020if test -z "$ac_cv_prog_CC"; then
11021 ac_ct_CC=$CC
11022 # Extract the first word of "gcc", so it can be a program name with args.
11023set dummy gcc; ac_word=$2
11024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11025$as_echo_n "checking for $ac_word... " >&6; }
11026if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11027 $as_echo_n "(cached) " >&6
11028else
11029 if test -n "$ac_ct_CC"; then
11030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11031else
11032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11033for as_dir in $PATH
11034do
11035 IFS=$as_save_IFS
11036 test -z "$as_dir" && as_dir=.
11037 for ac_exec_ext in '' $ac_executable_extensions; do
11038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11039 ac_cv_prog_ac_ct_CC="gcc"
11040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11041 break 2
11042 fi
11043done
11044 done
11045IFS=$as_save_IFS
11046
11047fi
11048fi
11049ac_ct_CC=$ac_cv_prog_ac_ct_CC
11050if test -n "$ac_ct_CC"; then
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11052$as_echo "$ac_ct_CC" >&6; }
11053else
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11055$as_echo "no" >&6; }
11056fi
11057
11058 if test "x$ac_ct_CC" = x; then
11059 CC=""
11060 else
11061 case $cross_compiling:$ac_tool_warned in
11062yes:)
11063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11065ac_tool_warned=yes ;;
11066esac
11067 CC=$ac_ct_CC
11068 fi
11069else
11070 CC="$ac_cv_prog_CC"
11071fi
11072
11073if test -z "$CC"; then
11074 if test -n "$ac_tool_prefix"; then
11075 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11076set dummy ${ac_tool_prefix}cc; ac_word=$2
11077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11078$as_echo_n "checking for $ac_word... " >&6; }
11079if test "${ac_cv_prog_CC+set}" = set; then :
11080 $as_echo_n "(cached) " >&6
11081else
11082 if test -n "$CC"; then
11083 ac_cv_prog_CC="$CC" # Let the user override the test.
11084else
11085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11086for as_dir in $PATH
11087do
11088 IFS=$as_save_IFS
11089 test -z "$as_dir" && as_dir=.
11090 for ac_exec_ext in '' $ac_executable_extensions; do
11091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11092 ac_cv_prog_CC="${ac_tool_prefix}cc"
11093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11094 break 2
11095 fi
11096done
11097 done
11098IFS=$as_save_IFS
11099
11100fi
11101fi
11102CC=$ac_cv_prog_CC
11103if test -n "$CC"; then
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11105$as_echo "$CC" >&6; }
11106else
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108$as_echo "no" >&6; }
11109fi
11110
11111
11112 fi
11113fi
11114if test -z "$CC"; then
11115 # Extract the first word of "cc", so it can be a program name with args.
11116set dummy cc; ac_word=$2
11117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11118$as_echo_n "checking for $ac_word... " >&6; }
11119if test "${ac_cv_prog_CC+set}" = set; then :
11120 $as_echo_n "(cached) " >&6
11121else
11122 if test -n "$CC"; then
11123 ac_cv_prog_CC="$CC" # Let the user override the test.
11124else
11125 ac_prog_rejected=no
11126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11127for as_dir in $PATH
11128do
11129 IFS=$as_save_IFS
11130 test -z "$as_dir" && as_dir=.
11131 for ac_exec_ext in '' $ac_executable_extensions; do
11132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11133 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11134 ac_prog_rejected=yes
11135 continue
11136 fi
11137 ac_cv_prog_CC="cc"
11138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11139 break 2
11140 fi
11141done
11142 done
11143IFS=$as_save_IFS
11144
11145if test $ac_prog_rejected = yes; then
11146 # We found a bogon in the path, so make sure we never use it.
11147 set dummy $ac_cv_prog_CC
11148 shift
11149 if test $# != 0; then
11150 # We chose a different compiler from the bogus one.
11151 # However, it has the same basename, so the bogon will be chosen
11152 # first if we set CC to just the basename; use the full file name.
11153 shift
11154 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11155 fi
11156fi
11157fi
11158fi
11159CC=$ac_cv_prog_CC
11160if test -n "$CC"; then
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11162$as_echo "$CC" >&6; }
11163else
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11165$as_echo "no" >&6; }
11166fi
11167
11168
11169fi
11170if test -z "$CC"; then
11171 if test -n "$ac_tool_prefix"; then
11172 for ac_prog in cl.exe
11173 do
11174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11175set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11177$as_echo_n "checking for $ac_word... " >&6; }
11178if test "${ac_cv_prog_CC+set}" = set; then :
11179 $as_echo_n "(cached) " >&6
11180else
11181 if test -n "$CC"; then
11182 ac_cv_prog_CC="$CC" # Let the user override the test.
11183else
11184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11185for as_dir in $PATH
11186do
11187 IFS=$as_save_IFS
11188 test -z "$as_dir" && as_dir=.
11189 for ac_exec_ext in '' $ac_executable_extensions; do
11190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11191 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11193 break 2
11194 fi
11195done
11196 done
11197IFS=$as_save_IFS
11198
11199fi
11200fi
11201CC=$ac_cv_prog_CC
11202if test -n "$CC"; then
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11204$as_echo "$CC" >&6; }
11205else
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11207$as_echo "no" >&6; }
11208fi
11209
11210
11211 test -n "$CC" && break
11212 done
11213fi
11214if test -z "$CC"; then
11215 ac_ct_CC=$CC
11216 for ac_prog in cl.exe
11217do
11218 # Extract the first word of "$ac_prog", so it can be a program name with args.
11219set dummy $ac_prog; ac_word=$2
11220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11221$as_echo_n "checking for $ac_word... " >&6; }
11222if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11223 $as_echo_n "(cached) " >&6
11224else
11225 if test -n "$ac_ct_CC"; then
11226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11227else
11228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11229for as_dir in $PATH
11230do
11231 IFS=$as_save_IFS
11232 test -z "$as_dir" && as_dir=.
11233 for ac_exec_ext in '' $ac_executable_extensions; do
11234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11235 ac_cv_prog_ac_ct_CC="$ac_prog"
11236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11237 break 2
11238 fi
11239done
11240 done
11241IFS=$as_save_IFS
11242
11243fi
11244fi
11245ac_ct_CC=$ac_cv_prog_ac_ct_CC
11246if test -n "$ac_ct_CC"; then
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11248$as_echo "$ac_ct_CC" >&6; }
11249else
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11251$as_echo "no" >&6; }
11252fi
11253
11254
11255 test -n "$ac_ct_CC" && break
11256done
11257
11258 if test "x$ac_ct_CC" = x; then
11259 CC=""
11260 else
11261 case $cross_compiling:$ac_tool_warned in
11262yes:)
11263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11265ac_tool_warned=yes ;;
11266esac
11267 CC=$ac_ct_CC
11268 fi
11269fi
11270
11271fi
11272
11273
11274test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11276as_fn_error "no acceptable C compiler found in \$PATH
11277See \`config.log' for more details." "$LINENO" 5; }
11278
11279# Provide some information about the compiler.
11280$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11281set X $ac_compile
11282ac_compiler=$2
11283for ac_option in --version -v -V -qversion; do
11284 { { ac_try="$ac_compiler $ac_option >&5"
11285case "(($ac_try" in
11286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287 *) ac_try_echo=$ac_try;;
11288esac
11289eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11290$as_echo "$ac_try_echo"; } >&5
11291 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11292 ac_status=$?
11293 if test -s conftest.err; then
11294 sed '10a\
11295... rest of stderr output deleted ...
11296 10q' conftest.err >conftest.er1
11297 cat conftest.er1 >&5
11298 rm -f conftest.er1 conftest.err
11299 fi
11300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11301 test $ac_status = 0; }
11302done
11303
11304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11305$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11306if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11307 $as_echo_n "(cached) " >&6
11308else
11309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310/* end confdefs.h. */
11311
11312int
11313main ()
11314{
11315#ifndef __GNUC__
11316 choke me
11317#endif
11318
11319 ;
11320 return 0;
11321}
11322_ACEOF
11323if ac_fn_c_try_compile "$LINENO"; then :
11324 ac_compiler_gnu=yes
11325else
11326 ac_compiler_gnu=no
11327fi
11328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11329ac_cv_c_compiler_gnu=$ac_compiler_gnu
11330
11331fi
11332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11333$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11334if test $ac_compiler_gnu = yes; then
11335 GCC=yes
11336else
11337 GCC=
11338fi
11339ac_test_CFLAGS=${CFLAGS+set}
11340ac_save_CFLAGS=$CFLAGS
11341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11342$as_echo_n "checking whether $CC accepts -g... " >&6; }
11343if test "${ac_cv_prog_cc_g+set}" = set; then :
11344 $as_echo_n "(cached) " >&6
11345else
11346 ac_save_c_werror_flag=$ac_c_werror_flag
11347 ac_c_werror_flag=yes
11348 ac_cv_prog_cc_g=no
11349 CFLAGS="-g"
11350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11351/* end confdefs.h. */
11352
11353int
11354main ()
11355{
11356
11357 ;
11358 return 0;
11359}
11360_ACEOF
11361if ac_fn_c_try_compile "$LINENO"; then :
11362 ac_cv_prog_cc_g=yes
11363else
11364 CFLAGS=""
11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366/* end confdefs.h. */
11367
11368int
11369main ()
11370{
11371
11372 ;
11373 return 0;
11374}
11375_ACEOF
11376if ac_fn_c_try_compile "$LINENO"; then :
11377
11378else
11379 ac_c_werror_flag=$ac_save_c_werror_flag
11380 CFLAGS="-g"
11381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11382/* end confdefs.h. */
11383
11384int
11385main ()
11386{
11387
11388 ;
11389 return 0;
11390}
11391_ACEOF
11392if ac_fn_c_try_compile "$LINENO"; then :
11393 ac_cv_prog_cc_g=yes
11394fi
11395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11396fi
11397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11398fi
11399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11400 ac_c_werror_flag=$ac_save_c_werror_flag
11401fi
11402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11403$as_echo "$ac_cv_prog_cc_g" >&6; }
11404if test "$ac_test_CFLAGS" = set; then
11405 CFLAGS=$ac_save_CFLAGS
11406elif test $ac_cv_prog_cc_g = yes; then
11407 if test "$GCC" = yes; then
11408 CFLAGS="-g -O2"
11409 else
11410 CFLAGS="-g"
11411 fi
11412else
11413 if test "$GCC" = yes; then
11414 CFLAGS="-O2"
11415 else
11416 CFLAGS=
11417 fi
11418fi
11419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11420$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11421if test "${ac_cv_prog_cc_c89+set}" = set; then :
11422 $as_echo_n "(cached) " >&6
11423else
11424 ac_cv_prog_cc_c89=no
11425ac_save_CC=$CC
11426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427/* end confdefs.h. */
11428#include <stdarg.h>
11429#include <stdio.h>
11430#include <sys/types.h>
11431#include <sys/stat.h>
11432/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11433struct buf { int x; };
11434FILE * (*rcsopen) (struct buf *, struct stat *, int);
11435static char *e (p, i)
11436 char **p;
11437 int i;
11438{
11439 return p[i];
11440}
11441static char *f (char * (*g) (char **, int), char **p, ...)
11442{
11443 char *s;
11444 va_list v;
11445 va_start (v,p);
11446 s = g (p, va_arg (v,int));
11447 va_end (v);
11448 return s;
11449}
11450
11451/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11452 function prototypes and stuff, but not '\xHH' hex character constants.
11453 These don't provoke an error unfortunately, instead are silently treated
11454 as 'x'. The following induces an error, until -std is added to get
11455 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11456 array size at least. It's necessary to write '\x00'==0 to get something
11457 that's true only with -std. */
11458int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11459
11460/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11461 inside strings and character constants. */
11462#define FOO(x) 'x'
11463int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11464
11465int test (int i, double x);
11466struct s1 {int (*f) (int a);};
11467struct s2 {int (*f) (double a);};
11468int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11469int argc;
11470char **argv;
11471int
11472main ()
11473{
11474return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11475 ;
11476 return 0;
11477}
11478_ACEOF
11479for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11480 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11481do
11482 CC="$ac_save_CC $ac_arg"
11483 if ac_fn_c_try_compile "$LINENO"; then :
11484 ac_cv_prog_cc_c89=$ac_arg
11485fi
11486rm -f core conftest.err conftest.$ac_objext
11487 test "x$ac_cv_prog_cc_c89" != "xno" && break
11488done
11489rm -f conftest.$ac_ext
11490CC=$ac_save_CC
11491
11492fi
11493# AC_CACHE_VAL
11494case "x$ac_cv_prog_cc_c89" in
11495 x)
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11497$as_echo "none needed" >&6; } ;;
11498 xno)
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11500$as_echo "unsupported" >&6; } ;;
11501 *)
11502 CC="$CC $ac_cv_prog_cc_c89"
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11504$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11505esac
11506if test "x$ac_cv_prog_cc_c89" != xno; then :
11507
11508fi
11509
11510ac_ext=c
11511ac_cpp='$CPP $CPPFLAGS'
11512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11514ac_compiler_gnu=$ac_cv_c_compiler_gnu
11515
11516depcc="$CC" am_compiler_list=
11517
11518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11519$as_echo_n "checking dependency style of $depcc... " >&6; }
11520if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11521 $as_echo_n "(cached) " >&6
11522else
11523 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11524 # We make a subdir and do the tests there. Otherwise we can end up
11525 # making bogus files that we don't know about and never remove. For
11526 # instance it was reported that on HP-UX the gcc test will end up
11527 # making a dummy file named `D' -- because `-MD' means `put the output
11528 # in D'.
91fc47e3 11529 rm -rf conftest.dir
cb3103a1 11530 mkdir conftest.dir
11531 # Copy depcomp to subdir because otherwise we won't find it if we're
11532 # using a relative directory.
11533 cp "$am_depcomp" conftest.dir
11534 cd conftest.dir
11535 # We will build objects and dependencies in a subdirectory because
11536 # it helps to detect inapplicable dependency modes. For instance
11537 # both Tru64's cc and ICC support -MD to output dependencies as a
11538 # side effect of compilation, but ICC will put the dependencies in
11539 # the current directory while Tru64 will put them in the object
11540 # directory.
11541 mkdir sub
11542
11543 am_cv_CC_dependencies_compiler_type=none
11544 if test "$am_compiler_list" = ""; then
11545 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11546 fi
11547 am__universal=false
11548 case " $depcc " in #(
11549 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11550 esac
11551
11552 for depmode in $am_compiler_list; do
11553 # Setup a source with many dependencies, because some compilers
11554 # like to wrap large dependency lists on column 80 (with \), and
11555 # we should not choose a depcomp mode which is confused by this.
11556 #
11557 # We need to recreate these files for each test, as the compiler may
11558 # overwrite some of them when testing with obscure command lines.
11559 # This happens at least with the AIX C compiler.
11560 : > sub/conftest.c
11561 for i in 1 2 3 4 5 6; do
11562 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11563 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11564 # Solaris 8's {/usr,}/bin/sh.
11565 touch sub/conftst$i.h
11566 done
11567 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11568
11569 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11570 # mode. It turns out that the SunPro C++ compiler does not properly
11571 # handle `-M -o', and we need to detect this. Also, some Intel
11572 # versions had trouble with output in subdirs
11573 am__obj=sub/conftest.${OBJEXT-o}
11574 am__minus_obj="-o $am__obj"
11575 case $depmode in
11576 gcc)
11577 # This depmode causes a compiler race in universal mode.
11578 test "$am__universal" = false || continue
11579 ;;
11580 nosideeffect)
11581 # after this tag, mechanisms are not by side-effect, so they'll
11582 # only be used when explicitly requested
11583 if test "x$enable_dependency_tracking" = xyes; then
11584 continue
11585 else
11586 break
11587 fi
11588 ;;
91fc47e3 11589 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cb3103a1 11590 # This compiler won't grok `-c -o', but also, the minuso test has
11591 # not run yet. These depmodes are late enough in the game, and
11592 # so weak that their functioning should not be impacted.
11593 am__obj=conftest.${OBJEXT-o}
11594 am__minus_obj=
11595 ;;
11596 none) break ;;
11597 esac
11598 if depmode=$depmode \
11599 source=sub/conftest.c object=$am__obj \
11600 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11601 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11602 >/dev/null 2>conftest.err &&
11603 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11604 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11605 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11606 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11607 # icc doesn't choke on unknown options, it will just issue warnings
11608 # or remarks (even with -Werror). So we grep stderr for any message
11609 # that says an option was ignored or not supported.
11610 # When given -MP, icc 7.0 and 7.1 complain thusly:
11611 # icc: Command line warning: ignoring option '-M'; no argument required
11612 # The diagnosis changed in icc 8.0:
11613 # icc: Command line remark: option '-MP' not supported
11614 if (grep 'ignoring option' conftest.err ||
11615 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11616 am_cv_CC_dependencies_compiler_type=$depmode
11617 break
11618 fi
11619 fi
11620 done
11621
11622 cd ..
11623 rm -rf conftest.dir
11624else
11625 am_cv_CC_dependencies_compiler_type=none
11626fi
11627
11628fi
11629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11630$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11631CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11632
11633 if
11634 test "x$enable_dependency_tracking" != xno \
11635 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11636 am__fastdepCC_TRUE=
11637 am__fastdepCC_FALSE='#'
11638else
11639 am__fastdepCC_TRUE='#'
11640 am__fastdepCC_FALSE=
11641fi
11642
11643
11644
11645
11646
11647
11648if test "x$CC" != xcc; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11650$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11651else
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11653$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11654fi
11655set dummy $CC; ac_cc=`$as_echo "$2" |
11656 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11657if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11658 $as_echo_n "(cached) " >&6
11659else
11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661/* end confdefs.h. */
11662
11663int
11664main ()
11665{
11666
11667 ;
11668 return 0;
11669}
11670_ACEOF
11671# Make sure it works both with $CC and with simple cc.
11672# We do the test twice because some compilers refuse to overwrite an
11673# existing .o file with -o, though they will create one.
11674ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11675rm -f conftest2.*
11676if { { case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11679esac
11680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11681$as_echo "$ac_try_echo"; } >&5
11682 (eval "$ac_try") 2>&5
11683 ac_status=$?
11684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11685 test $ac_status = 0; } &&
11686 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11689esac
11690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11691$as_echo "$ac_try_echo"; } >&5
11692 (eval "$ac_try") 2>&5
11693 ac_status=$?
11694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11695 test $ac_status = 0; };
11696then
11697 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11698 if test "x$CC" != xcc; then
11699 # Test first that cc exists at all.
11700 if { ac_try='cc -c conftest.$ac_ext >&5'
11701 { { case "(($ac_try" in
11702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703 *) ac_try_echo=$ac_try;;
11704esac
11705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11706$as_echo "$ac_try_echo"; } >&5
11707 (eval "$ac_try") 2>&5
11708 ac_status=$?
11709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11710 test $ac_status = 0; }; }; then
11711 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11712 rm -f conftest2.*
11713 if { { case "(($ac_try" in
11714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715 *) ac_try_echo=$ac_try;;
11716esac
11717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11718$as_echo "$ac_try_echo"; } >&5
11719 (eval "$ac_try") 2>&5
11720 ac_status=$?
11721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11722 test $ac_status = 0; } &&
11723 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725 *) ac_try_echo=$ac_try;;
11726esac
11727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11728$as_echo "$ac_try_echo"; } >&5
11729 (eval "$ac_try") 2>&5
11730 ac_status=$?
11731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11732 test $ac_status = 0; };
11733 then
11734 # cc works too.
11735 :
11736 else
11737 # cc exists but doesn't like -o.
11738 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11739 fi
11740 fi
11741 fi
11742else
11743 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11744fi
11745rm -f core conftest*
87969c8c 11746
cb3103a1 11747fi
11748if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11750$as_echo "yes" >&6; }
11751else
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753$as_echo "no" >&6; }
87969c8c 11754
cb3103a1 11755$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11756
11757fi
87969c8c 11758
cb3103a1 11759# FIXME: we rely on the cache variable name because
11760# there is no other way.
11761set dummy $CC
11762am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11763eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11764if test "$am_t" != yes; then
11765 # Losing compiler, so override with the script.
11766 # FIXME: It is wrong to rewrite CC.
11767 # But if we don't then we get into trouble of one sort or another.
11768 # A longer-term fix would be to have automake use am__CC in this case,
11769 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11770 CC="$am_aux_dir/compile $CC"
11771fi
87969c8c 11772
11773
11774
cb3103a1 11775if test "x$GCC" != "xyes"; then
11776 as_fn_error "libquadmath must be built with GCC" "$LINENO" 5
87969c8c 11777fi
11778ac_ext=c
11779ac_cpp='$CPP $CPPFLAGS'
11780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11782ac_compiler_gnu=$ac_cv_c_compiler_gnu
cb3103a1 11783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11784$as_echo_n "checking how to run the C preprocessor... " >&6; }
11785# On Suns, sometimes $CPP names a directory.
11786if test -n "$CPP" && test -d "$CPP"; then
11787 CPP=
11788fi
11789if test -z "$CPP"; then
11790 if test "${ac_cv_prog_CPP+set}" = set; then :
11791 $as_echo_n "(cached) " >&6
11792else
11793 # Double quotes because CPP needs to be expanded
11794 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11795 do
11796 ac_preproc_ok=false
11797for ac_c_preproc_warn_flag in '' yes
11798do
11799 # Use a header file that comes with gcc, so configuring glibc
11800 # with a fresh cross-compiler works.
11801 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11802 # <limits.h> exists even on freestanding compilers.
11803 # On the NeXT, cc -E runs the code through the compiler's parser,
11804 # not just through cpp. "Syntax error" is here to catch this case.
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806/* end confdefs.h. */
11807#ifdef __STDC__
11808# include <limits.h>
11809#else
11810# include <assert.h>
11811#endif
11812 Syntax error
11813_ACEOF
11814if ac_fn_c_try_cpp "$LINENO"; then :
87969c8c 11815
87969c8c 11816else
cb3103a1 11817 # Broken: fails on valid input.
11818continue
87969c8c 11819fi
cb3103a1 11820rm -f conftest.err conftest.$ac_ext
87969c8c 11821
cb3103a1 11822 # OK, works on sane cases. Now check whether nonexistent headers
11823 # can be detected and how.
11824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11825/* end confdefs.h. */
11826#include <ac_nonexistent.h>
11827_ACEOF
11828if ac_fn_c_try_cpp "$LINENO"; then :
11829 # Broken: success on invalid input.
11830continue
87969c8c 11831else
cb3103a1 11832 # Passes both tests.
11833ac_preproc_ok=:
11834break
87969c8c 11835fi
cb3103a1 11836rm -f conftest.err conftest.$ac_ext
87969c8c 11837
cb3103a1 11838done
11839# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11840rm -f conftest.err conftest.$ac_ext
11841if $ac_preproc_ok; then :
11842 break
11843fi
87969c8c 11844
cb3103a1 11845 done
11846 ac_cv_prog_CPP=$CPP
87969c8c 11847
cb3103a1 11848fi
11849 CPP=$ac_cv_prog_CPP
87969c8c 11850else
cb3103a1 11851 ac_cv_prog_CPP=$CPP
87969c8c 11852fi
cb3103a1 11853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11854$as_echo "$CPP" >&6; }
11855ac_preproc_ok=false
11856for ac_c_preproc_warn_flag in '' yes
11857do
11858 # Use a header file that comes with gcc, so configuring glibc
11859 # with a fresh cross-compiler works.
11860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11861 # <limits.h> exists even on freestanding compilers.
11862 # On the NeXT, cc -E runs the code through the compiler's parser,
11863 # not just through cpp. "Syntax error" is here to catch this case.
11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865/* end confdefs.h. */
11866#ifdef __STDC__
11867# include <limits.h>
11868#else
11869# include <assert.h>
11870#endif
11871 Syntax error
11872_ACEOF
11873if ac_fn_c_try_cpp "$LINENO"; then :
87969c8c 11874
cb3103a1 11875else
11876 # Broken: fails on valid input.
11877continue
11878fi
11879rm -f conftest.err conftest.$ac_ext
87969c8c 11880
cb3103a1 11881 # OK, works on sane cases. Now check whether nonexistent headers
11882 # can be detected and how.
11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884/* end confdefs.h. */
11885#include <ac_nonexistent.h>
11886_ACEOF
11887if ac_fn_c_try_cpp "$LINENO"; then :
11888 # Broken: success on invalid input.
11889continue
87969c8c 11890else
cb3103a1 11891 # Passes both tests.
11892ac_preproc_ok=:
11893break
87969c8c 11894fi
cb3103a1 11895rm -f conftest.err conftest.$ac_ext
87969c8c 11896
cb3103a1 11897done
11898# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11899rm -f conftest.err conftest.$ac_ext
11900if $ac_preproc_ok; then :
87969c8c 11901
cb3103a1 11902else
11903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11905as_fn_error "C preprocessor \"$CPP\" fails sanity check
11906See \`config.log' for more details." "$LINENO" 5; }
87969c8c 11907fi
11908
cb3103a1 11909ac_ext=c
11910ac_cpp='$CPP $CPPFLAGS'
11911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11913ac_compiler_gnu=$ac_cv_c_compiler_gnu
87969c8c 11914
11915
11916# Calculate toolexeclibdir
11917# Also toolexecdir, though it's only used in toolexeclibdir
11918case ${version_specific_libs} in
11919 yes)
11920 # Need the gcc compiler version to know where to install libraries
11921 # and header files if --enable-version-specific-runtime-libs option
11922 # is selected.
11923 toolexecdir='$(libdir)/gcc/$(target_alias)'
11924 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11925 ;;
11926 no)
11927 if test -n "$with_cross_host" &&
11928 test x"$with_cross_host" != x"no"; then
11929 # Install a library built with a cross compiler in tooldir, not libdir.
11930 toolexecdir='$(exec_prefix)/$(target_alias)'
11931 toolexeclibdir='$(toolexecdir)/lib'
11932 else
11933 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11934 toolexeclibdir='$(libdir)'
11935 fi
11936 multi_os_directory=`$CC -print-multi-os-directory`
11937 case $multi_os_directory in
11938 .) ;; # Avoid trailing /.
11939 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11940 esac
11941 ;;
11942esac
11943
11944
11945
1aca2b0f 11946for ac_header in fenv.h langinfo.h locale.h wchar.h wctype.h limits.h ctype.h printf.h errno.h
bcaa791f 11947do :
0c0fb0a6 11948 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11949ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11950eval as_val=\$$as_ac_Header
11951 if test "x$as_val" = x""yes; then :
bcaa791f 11952 cat >>confdefs.h <<_ACEOF
0c0fb0a6 11953#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
bcaa791f 11954_ACEOF
11955
11956fi
11957
11958done
11959
11960
41392972 11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the math.h includes POSIX's signgam" >&5
11962$as_echo_n "checking whether the math.h includes POSIX's signgam... " >&6; }
11963if test "${libgfor_cv_have_math_h_signgam+set}" = set; then :
11964 $as_echo_n "(cached) " >&6
11965else
11966
11967 save_CFLAGS="$CFLAGS"
11968 CFLAGS="$CFLAGS -Werror"
11969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11970/* end confdefs.h. */
11971
11972#include <math.h>
11973void foo(void) { signgam = 1; }
11974int
11975main ()
11976{
11977
11978 ;
11979 return 0;
11980}
11981_ACEOF
11982if ac_fn_c_try_compile "$LINENO"; then :
11983 libgfor_cv_have_math_h_signgam=yes
11984else
11985 libgfor_cv_have_math_h_signgam=no
11986fi
11987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11988 CFLAGS="$save_CFLAGS"
11989fi
11990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_math_h_signgam" >&5
11991$as_echo "$libgfor_cv_have_math_h_signgam" >&6; }
11992 if test $libgfor_cv_have_math_h_signgam = yes; then
11993
11994$as_echo "#define HAVE_MATH_H_SIGNGAM 1" >>confdefs.h
11995
11996 fi
11997
5edfcfbd 11998# If available, sqrtl and cbrtl speed up the calculation -
11999# but they are not required
12000if test x$gcc_no_link != xyes; then
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
87969c8c 12002$as_echo_n "checking for sqrtl in -lm... " >&6; }
12003if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
12004 $as_echo_n "(cached) " >&6
12005else
12006 ac_check_lib_save_LIBS=$LIBS
12007LIBS="-lm $LIBS"
cb3103a1 12008if test x$gcc_no_link = xyes; then
12009 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12010fi
87969c8c 12011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12012/* end confdefs.h. */
12013
12014/* Override any GCC internal prototype to avoid an error.
12015 Use char because int might match the return type of a GCC
12016 builtin and then its argument prototype would still apply. */
12017#ifdef __cplusplus
12018extern "C"
12019#endif
12020char sqrtl ();
12021int
12022main ()
12023{
12024return sqrtl ();
12025 ;
12026 return 0;
12027}
12028_ACEOF
12029if ac_fn_c_try_link "$LINENO"; then :
12030 ac_cv_lib_m_sqrtl=yes
12031else
12032 ac_cv_lib_m_sqrtl=no
12033fi
12034rm -f core conftest.err conftest.$ac_objext \
12035 conftest$ac_exeext conftest.$ac_ext
12036LIBS=$ac_check_lib_save_LIBS
12037fi
12038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
12039$as_echo "$ac_cv_lib_m_sqrtl" >&6; }
12040if test "x$ac_cv_lib_m_sqrtl" = x""yes; then :
12041
12042$as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12043
12044fi
12045
5edfcfbd 12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
87969c8c 12047$as_echo_n "checking for cbrtl in -lm... " >&6; }
12048if test "${ac_cv_lib_m_cbrtl+set}" = set; then :
12049 $as_echo_n "(cached) " >&6
12050else
12051 ac_check_lib_save_LIBS=$LIBS
12052LIBS="-lm $LIBS"
cb3103a1 12053if test x$gcc_no_link = xyes; then
12054 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12055fi
87969c8c 12056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12057/* end confdefs.h. */
12058
12059/* Override any GCC internal prototype to avoid an error.
12060 Use char because int might match the return type of a GCC
12061 builtin and then its argument prototype would still apply. */
12062#ifdef __cplusplus
12063extern "C"
12064#endif
12065char cbrtl ();
12066int
12067main ()
12068{
12069return cbrtl ();
12070 ;
12071 return 0;
12072}
12073_ACEOF
12074if ac_fn_c_try_link "$LINENO"; then :
12075 ac_cv_lib_m_cbrtl=yes
12076else
12077 ac_cv_lib_m_cbrtl=no
12078fi
12079rm -f core conftest.err conftest.$ac_objext \
12080 conftest$ac_exeext conftest.$ac_ext
12081LIBS=$ac_check_lib_save_LIBS
12082fi
12083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
12084$as_echo "$ac_cv_lib_m_cbrtl" >&6; }
12085if test "x$ac_cv_lib_m_cbrtl" = x""yes; then :
12086
12087$as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12088
bcaa791f 12089fi
12090
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feholdexcept in -lm" >&5
12092$as_echo_n "checking for feholdexcept in -lm... " >&6; }
12093if test "${ac_cv_lib_m_feholdexcept+set}" = set; then :
12094 $as_echo_n "(cached) " >&6
12095else
12096 ac_check_lib_save_LIBS=$LIBS
12097LIBS="-lm $LIBS"
12098if test x$gcc_no_link = xyes; then
12099 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12100fi
12101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12102/* end confdefs.h. */
12103
12104/* Override any GCC internal prototype to avoid an error.
12105 Use char because int might match the return type of a GCC
12106 builtin and then its argument prototype would still apply. */
12107#ifdef __cplusplus
12108extern "C"
12109#endif
12110char feholdexcept ();
12111int
12112main ()
12113{
12114return feholdexcept ();
12115 ;
12116 return 0;
12117}
12118_ACEOF
12119if ac_fn_c_try_link "$LINENO"; then :
12120 ac_cv_lib_m_feholdexcept=yes
12121else
12122 ac_cv_lib_m_feholdexcept=no
12123fi
12124rm -f core conftest.err conftest.$ac_objext \
12125 conftest$ac_exeext conftest.$ac_ext
12126LIBS=$ac_check_lib_save_LIBS
12127fi
12128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feholdexcept" >&5
12129$as_echo "$ac_cv_lib_m_feholdexcept" >&6; }
12130if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then :
12131
12132$as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12133
12134fi
12135
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround in -lm" >&5
12137$as_echo_n "checking for fesetround in -lm... " >&6; }
12138if test "${ac_cv_lib_m_fesetround+set}" = set; then :
12139 $as_echo_n "(cached) " >&6
12140else
12141 ac_check_lib_save_LIBS=$LIBS
12142LIBS="-lm $LIBS"
12143if test x$gcc_no_link = xyes; then
12144 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12145fi
12146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147/* end confdefs.h. */
12148
12149/* Override any GCC internal prototype to avoid an error.
12150 Use char because int might match the return type of a GCC
12151 builtin and then its argument prototype would still apply. */
12152#ifdef __cplusplus
12153extern "C"
12154#endif
12155char fesetround ();
12156int
12157main ()
12158{
12159return fesetround ();
12160 ;
12161 return 0;
12162}
12163_ACEOF
12164if ac_fn_c_try_link "$LINENO"; then :
12165 ac_cv_lib_m_fesetround=yes
12166else
12167 ac_cv_lib_m_fesetround=no
12168fi
12169rm -f core conftest.err conftest.$ac_objext \
12170 conftest$ac_exeext conftest.$ac_ext
12171LIBS=$ac_check_lib_save_LIBS
12172fi
12173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetround" >&5
12174$as_echo "$ac_cv_lib_m_fesetround" >&6; }
12175if test "x$ac_cv_lib_m_fesetround" = x""yes; then :
12176
12177$as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12178
12179fi
12180
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feupdateenv in -lm" >&5
12182$as_echo_n "checking for feupdateenv in -lm... " >&6; }
12183if test "${ac_cv_lib_m_feupdateenv+set}" = set; then :
12184 $as_echo_n "(cached) " >&6
12185else
12186 ac_check_lib_save_LIBS=$LIBS
12187LIBS="-lm $LIBS"
12188if test x$gcc_no_link = xyes; then
12189 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12190fi
12191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12192/* end confdefs.h. */
12193
12194/* Override any GCC internal prototype to avoid an error.
12195 Use char because int might match the return type of a GCC
12196 builtin and then its argument prototype would still apply. */
12197#ifdef __cplusplus
12198extern "C"
12199#endif
12200char feupdateenv ();
12201int
12202main ()
12203{
12204return feupdateenv ();
12205 ;
12206 return 0;
12207}
12208_ACEOF
12209if ac_fn_c_try_link "$LINENO"; then :
12210 ac_cv_lib_m_feupdateenv=yes
12211else
12212 ac_cv_lib_m_feupdateenv=no
12213fi
12214rm -f core conftest.err conftest.$ac_objext \
12215 conftest$ac_exeext conftest.$ac_ext
12216LIBS=$ac_check_lib_save_LIBS
12217fi
12218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feupdateenv" >&5
12219$as_echo "$ac_cv_lib_m_feupdateenv" >&6; }
12220if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then :
12221
12222$as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12223
12224fi
12225
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetenv in -lm" >&5
12227$as_echo_n "checking for fesetenv in -lm... " >&6; }
12228if test "${ac_cv_lib_m_fesetenv+set}" = set; then :
12229 $as_echo_n "(cached) " >&6
12230else
12231 ac_check_lib_save_LIBS=$LIBS
12232LIBS="-lm $LIBS"
12233if test x$gcc_no_link = xyes; then
12234 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12235fi
12236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237/* end confdefs.h. */
12238
12239/* Override any GCC internal prototype to avoid an error.
12240 Use char because int might match the return type of a GCC
12241 builtin and then its argument prototype would still apply. */
12242#ifdef __cplusplus
12243extern "C"
12244#endif
12245char fesetenv ();
12246int
12247main ()
12248{
12249return fesetenv ();
12250 ;
12251 return 0;
12252}
12253_ACEOF
12254if ac_fn_c_try_link "$LINENO"; then :
12255 ac_cv_lib_m_fesetenv=yes
12256else
12257 ac_cv_lib_m_fesetenv=no
12258fi
12259rm -f core conftest.err conftest.$ac_objext \
12260 conftest$ac_exeext conftest.$ac_ext
12261LIBS=$ac_check_lib_save_LIBS
12262fi
12263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetenv" >&5
12264$as_echo "$ac_cv_lib_m_fesetenv" >&6; }
12265if test "x$ac_cv_lib_m_fesetenv" = x""yes; then :
12266
12267$as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12268
12269fi
12270
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fetestexcept in -lm" >&5
12272$as_echo_n "checking for fetestexcept in -lm... " >&6; }
12273if test "${ac_cv_lib_m_fetestexcept+set}" = set; then :
12274 $as_echo_n "(cached) " >&6
12275else
12276 ac_check_lib_save_LIBS=$LIBS
12277LIBS="-lm $LIBS"
12278if test x$gcc_no_link = xyes; then
12279 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12280fi
12281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282/* end confdefs.h. */
12283
12284/* Override any GCC internal prototype to avoid an error.
12285 Use char because int might match the return type of a GCC
12286 builtin and then its argument prototype would still apply. */
12287#ifdef __cplusplus
12288extern "C"
12289#endif
12290char fetestexcept ();
12291int
12292main ()
12293{
12294return fetestexcept ();
12295 ;
12296 return 0;
12297}
12298_ACEOF
12299if ac_fn_c_try_link "$LINENO"; then :
12300 ac_cv_lib_m_fetestexcept=yes
12301else
12302 ac_cv_lib_m_fetestexcept=no
12303fi
12304rm -f core conftest.err conftest.$ac_objext \
12305 conftest$ac_exeext conftest.$ac_ext
12306LIBS=$ac_check_lib_save_LIBS
12307fi
12308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fetestexcept" >&5
12309$as_echo "$ac_cv_lib_m_fetestexcept" >&6; }
12310if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then :
12311
12312$as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12313
87969c8c 12314fi
12315
abb2a4bd 12316 for ac_func in strtoull
12317do :
12318 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
12319if test "x$ac_cv_func_strtoull" = x""yes; then :
12320 cat >>confdefs.h <<_ACEOF
12321#define HAVE_STRTOULL 1
12322_ACEOF
12323
12324fi
12325done
12326
5edfcfbd 12327else
12328 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then
12329
12330$as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12331
12332 fi
12333 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then
12334
12335$as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12336
bcaa791f 12337 fi
12338 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then
12339
12340$as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12341
12342 fi
12343 if test "x$ac_cv_lib_m_fesetround" = x""yes; then
12344
12345$as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12346
12347 fi
12348 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then
12349
12350$as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12351
12352 fi
12353 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then
12354
12355$as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12356
12357 fi
12358 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then
12359
12360$as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12361
5edfcfbd 12362 fi
12363fi
87969c8c 12364
0c0fb0a6 12365# Check for hidden visibility (copied from libssp).
1e95c98e 12366saved_CFLAGS="$CFLAGS"
12367CFLAGS="$CFLAGS -Werror"
0c0fb0a6 12368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
12369$as_echo_n "checking whether hidden visibility is supported... " >&6; }
12370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12371/* end confdefs.h. */
12372
12373void __attribute__((visibility ("hidden"))) bar (void) {}
12374int
12375main ()
12376{
12377
12378 ;
12379 return 0;
12380}
12381_ACEOF
12382if ac_fn_c_try_compile "$LINENO"; then :
12383 quadmath_hidden=yes
12384else
12385 quadmath_hidden=no
12386fi
12387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_hidden" >&5
12389$as_echo "$quadmath_hidden" >&6; }
12390if test x$quadmath_hidden = xyes; then
12391
12392$as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
12393
12394fi
1e95c98e 12395CFLAGS="$saved_CFLAGS"
0c0fb0a6 12396
87969c8c 12397# Check for symbol versioning (copied from libssp).
12398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
12399$as_echo_n "checking whether symbol versioning is supported... " >&6; }
bbb514dc 12400# Check whether --enable-symvers was given.
12401if test "${enable_symvers+set}" = set; then :
12402 enableval=$enable_symvers; quadmath_use_symver=$enableval
cb3103a1 12403else
bbb514dc 12404 quadmath_use_symver=yes
12405fi
12406
06e4a265 12407if test "x$quadmath_use_symver" != xno; then
bbb514dc 12408 if test x$gcc_no_link = xyes; then
12409 # If we cannot link, we cannot build shared libraries, so do not use
12410 # symbol versioning.
12411 quadmath_use_symver=no
12412 else
12413 save_LDFLAGS="$LDFLAGS"
12414 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
12415 cat > conftest.map <<EOF
87969c8c 12416FOO_1.0 {
12417 global: *foo*; bar; local: *;
12418};
12419EOF
bbb514dc 12420 if test x$gcc_no_link = xyes; then
cb3103a1 12421 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12422fi
87969c8c 12423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12424/* end confdefs.h. */
12425int foo;
12426int
12427main ()
12428{
12429
12430 ;
12431 return 0;
12432}
12433_ACEOF
12434if ac_fn_c_try_link "$LINENO"; then :
12435 quadmath_use_symver=gnu
12436else
12437 quadmath_use_symver=no
12438fi
12439rm -f core conftest.err conftest.$ac_objext \
12440 conftest$ac_exeext conftest.$ac_ext
bbb514dc 12441 if test x$quadmath_use_symver = xno; then
12442 case "$target_os" in
12443 solaris2*)
12444 LDFLAGS="$save_LDFLAGS"
12445 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
12446 # Sun ld cannot handle wildcards and treats all entries as undefined.
12447 cat > conftest.map <<EOF
87969c8c 12448FOO_1.0 {
12449 global: foo; local: *;
12450};
12451EOF
bbb514dc 12452 if test x$gcc_no_link = xyes; then
cb3103a1 12453 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12454fi
12455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969c8c 12456/* end confdefs.h. */
12457int foo;
12458int
12459main ()
12460{
12461
12462 ;
12463 return 0;
12464}
12465_ACEOF
12466if ac_fn_c_try_link "$LINENO"; then :
12467 quadmath_use_symver=sun
12468else
12469 quadmath_use_symver=no
12470fi
12471rm -f core conftest.err conftest.$ac_objext \
12472 conftest$ac_exeext conftest.$ac_ext
bbb514dc 12473 ;;
12474 esac
12475 fi
12476 LDFLAGS="$save_LDFLAGS"
cb3103a1 12477 fi
87969c8c 12478fi
87969c8c 12479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
12480$as_echo "$quadmath_use_symver" >&6; }
12481 if test "x$quadmath_use_symver" != xno; then
12482 LIBQUAD_USE_SYMVER_TRUE=
12483 LIBQUAD_USE_SYMVER_FALSE='#'
12484else
12485 LIBQUAD_USE_SYMVER_TRUE='#'
12486 LIBQUAD_USE_SYMVER_FALSE=
12487fi
12488
12489 if test "x$quadmath_use_symver" = xgnu; then
12490 LIBQUAD_USE_SYMVER_GNU_TRUE=
12491 LIBQUAD_USE_SYMVER_GNU_FALSE='#'
12492else
12493 LIBQUAD_USE_SYMVER_GNU_TRUE='#'
12494 LIBQUAD_USE_SYMVER_GNU_FALSE=
12495fi
12496
12497 if test "x$quadmath_use_symver" = xsun; then
12498 LIBQUAD_USE_SYMVER_SUN_TRUE=
12499 LIBQUAD_USE_SYMVER_SUN_FALSE='#'
12500else
12501 LIBQUAD_USE_SYMVER_SUN_TRUE='#'
12502 LIBQUAD_USE_SYMVER_SUN_FALSE=
12503fi
12504
12505
12506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
12507$as_echo_n "checking whether __float128 is supported... " >&6; }
eac55a56 12508if test "${libquad_cv_have_float128+set}" = set; then :
12509 $as_echo_n "(cached) " >&6
12510else
12511 if test x$gcc_no_link = xyes; then
12512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12513/* end confdefs.h. */
12514
12515 typedef _Complex float __attribute__((mode(TC))) __complex128;
12516
12517 __float128 foo (__float128 x)
12518 {
12519
12520 __complex128 z1, z2;
12521
12522 z1 = x;
12523 z2 = x / 7.Q;
12524 z2 /= z1;
12525
12526 return (__float128) z2;
12527 }
12528
12529 __float128 bar (__float128 x)
12530 {
12531 return x * __builtin_huge_valq ();
12532 }
12533
12534int
12535main ()
12536{
12537
12538 foo (1.2Q);
12539 bar (1.2Q);
12540
12541 ;
12542 return 0;
12543}
12544_ACEOF
12545if ac_fn_c_try_compile "$LINENO"; then :
12546
12547 libquad_cv_have_float128=yes
12548
12549else
12550
12551 libquad_cv_have_float128=no
12552
12553fi
12554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12555else
cb3103a1 12556 if test x$gcc_no_link = xyes; then
12557 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12558fi
12559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969c8c 12560/* end confdefs.h. */
12561
12562 typedef _Complex float __attribute__((mode(TC))) __complex128;
12563
12564 __float128 foo (__float128 x)
12565 {
12566
12567 __complex128 z1, z2;
12568
12569 z1 = x;
12570 z2 = x / 7.Q;
12571 z2 /= z1;
12572
12573 return (__float128) z2;
12574 }
12575
12576 __float128 bar (__float128 x)
12577 {
12578 return x * __builtin_huge_valq ();
12579 }
12580
12581int
12582main ()
12583{
12584
12585 foo (1.2Q);
12586 bar (1.2Q);
12587
12588 ;
12589 return 0;
12590}
12591_ACEOF
12592if ac_fn_c_try_link "$LINENO"; then :
12593
eac55a56 12594 libquad_cv_have_float128=yes
87969c8c 12595
12596else
12597
eac55a56 12598 libquad_cv_have_float128=no
87969c8c 12599
12600fi
12601rm -f core conftest.err conftest.$ac_objext \
12602 conftest$ac_exeext conftest.$ac_ext
eac55a56 12603fi
12604fi
12605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_cv_have_float128" >&5
12606$as_echo "$libquad_cv_have_float128" >&6; }
12607 if test "x$libquad_cv_have_float128" = xyes; then
87969c8c 12608 BUILD_LIBQUADMATH_TRUE=
12609 BUILD_LIBQUADMATH_FALSE='#'
12610else
12611 BUILD_LIBQUADMATH_TRUE='#'
12612 BUILD_LIBQUADMATH_FALSE=
12613fi
12614
12615
0c0fb0a6 12616# Check for printf hook support.
12617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf hooks are supported" >&5
12618$as_echo_n "checking whether printf hooks are supported... " >&6; }
12619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620/* end confdefs.h. */
12621
12622#include <printf.h>
12623#include <stdarg.h>
12624#include <stdlib.h>
12625extern void flt128_va (void *, va_list *);
12626extern int flt128_ais (const struct printf_info *, size_t, int *, int *);
12627extern int flt128_printf_fp (FILE *, const struct printf_info *, const void *const *);
12628
12629int
12630main ()
12631{
12632
12633int pa_flt128 = register_printf_type (flt128_va);
12634int mod_Q = register_printf_modifier (L"Q");
12635int res = register_printf_specifier ('f', flt128_printf_fp, flt128_ais);
aa44ed84 12636struct printf_info info = { .user = -1 };
0c0fb0a6 12637
12638 ;
12639 return 0;
12640}
12641_ACEOF
12642if ac_fn_c_try_compile "$LINENO"; then :
12643 quadmath_printf_hooks=yes
12644else
12645 quadmath_printf_hooks=no
12646fi
12647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_printf_hooks" >&5
12649$as_echo "$quadmath_printf_hooks" >&6; }
12650if test x$quadmath_printf_hooks = xyes; then
12651
12652$as_echo "#define HAVE_PRINTF_HOOKS 1" >>confdefs.h
12653
12654fi
12655
12656# Check for whether locale support for quadmath_snprintf or Q printf hooks
12657# should be provided.
1aca2b0f 12658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used" >&5
12659$as_echo_n "checking whether nl_langinfo should be used... " >&6; }
0c0fb0a6 12660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661/* end confdefs.h. */
12662#include <langinfo.h>
12663int
12664main ()
12665{
12666
12667const char *s;
12668s = nl_langinfo (DECIMAL_POINT);
12669s = nl_langinfo (MON_DECIMAL_POINT);
12670s = nl_langinfo (GROUPING);
12671s = nl_langinfo (MON_GROUPING);
12672s = nl_langinfo (THOUSANDS_SEP);
12673s = nl_langinfo (MON_THOUSANDS_SEP);
1aca2b0f 12674(void) s;
12675
12676 ;
12677 return 0;
12678}
12679_ACEOF
12680if ac_fn_c_try_compile "$LINENO"; then :
12681 quadmath_use_nl_langinfo=yes
12682else
12683 quadmath_use_nl_langinfo=no
12684fi
12685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo" >&5
12687$as_echo "$quadmath_use_nl_langinfo" >&6; }
12688if test x$quadmath_use_nl_langinfo = xyes; then
12689
12690$as_echo "#define USE_NL_LANGINFO 1" >>confdefs.h
12691
12692fi
12693
12694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used for wide char locale info" >&5
12695$as_echo_n "checking whether nl_langinfo should be used for wide char locale info... " >&6; }
12696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697/* end confdefs.h. */
12698#include <langinfo.h>
12699int
12700main ()
12701{
12702
12703const char *s;
0c0fb0a6 12704s = nl_langinfo (_NL_NUMERIC_DECIMAL_POINT_WC);
12705s = nl_langinfo (_NL_MONETARY_DECIMAL_POINT_WC);
12706s = nl_langinfo (_NL_NUMERIC_THOUSANDS_SEP_WC);
12707s = nl_langinfo (_NL_MONETARY_THOUSANDS_SEP_WC);
0c0fb0a6 12708(void) s;
12709
12710 ;
12711 return 0;
12712}
12713_ACEOF
12714if ac_fn_c_try_compile "$LINENO"; then :
1aca2b0f 12715 quadmath_use_nl_langinfo_wc=yes
0c0fb0a6 12716else
1aca2b0f 12717 quadmath_use_nl_langinfo_wc=no
0c0fb0a6 12718fi
12719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1aca2b0f 12720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo_wc" >&5
12721$as_echo "$quadmath_use_nl_langinfo_wc" >&6; }
12722if test x$quadmath_use_nl_langinfo_wc = xyes; then
0c0fb0a6 12723
1aca2b0f 12724$as_echo "#define USE_NL_LANGINFO_WC 1" >>confdefs.h
12725
12726fi
12727
12728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localeconv should be used" >&5
12729$as_echo_n "checking whether localeconv should be used... " >&6; }
12730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731/* end confdefs.h. */
12732#include <locale.h>
12733int
12734main ()
12735{
12736
12737const struct lconv *l = localeconv ();
12738const char *s;
12739s = l->decimal_point;
12740s = l->mon_decimal_point;
12741s = l->grouping;
12742s = l->mon_grouping;
12743s = l->thousands_sep;
12744s = l->mon_thousands_sep;
12745(void) s;
12746
12747 ;
12748 return 0;
12749}
12750_ACEOF
12751if ac_fn_c_try_compile "$LINENO"; then :
12752 quadmath_use_localeconv=yes
12753else
12754 quadmath_use_localeconv=no
12755fi
12756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_localeconv" >&5
12758$as_echo "$quadmath_use_localeconv" >&6; }
12759if test x$quadmath_use_localeconv = xyes; then
12760
12761$as_echo "#define USE_LOCALECONV 1" >>confdefs.h
0c0fb0a6 12762
12763fi
12764
12765# Check for whether i18n number rewriting support for quadmath_snprintf
12766# or Q printf hooks should be provided.
12767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i18n number rewriting support for quadmath_snprintf should be added" >&5
12768$as_echo_n "checking whether i18n number rewriting support for quadmath_snprintf should be added... " >&6; }
12769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770/* end confdefs.h. */
12771#include <langinfo.h>
12772#include <limits.h>
12773#include <string.h>
12774#include <wchar.h>
12775#include <wctype.h>
12776int
12777main ()
12778{
12779
12780const char *s;
12781char decimal[MB_LEN_MAX];
12782wctrans_t map = wctrans ("to_outpunct");
12783wint_t wdecimal = towctrans (L'.', map);
12784mbstate_t state;
12785memset (&state, '\0', sizeof (state));
12786wcrtomb (decimal, wdecimal, &state);
12787s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
12788s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_WC);
1aca2b0f 12789s = nl_langinfo (_NL_CTYPE_MB_CUR_MAX);
0c0fb0a6 12790(void) s;
12791
12792 ;
12793 return 0;
12794}
12795_ACEOF
12796if ac_fn_c_try_compile "$LINENO"; then :
12797 quadmath_use_i18n_number_h=yes
12798else
12799 quadmath_use_i18n_number_h=no
12800fi
12801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_i18n_number_h" >&5
12803$as_echo "$quadmath_use_i18n_number_h" >&6; }
12804if test x$quadmath_use_i18n_number_h = xyes; then
12805
12806$as_echo "#define USE_I18N_NUMBER_H 1" >>confdefs.h
12807
12808fi
12809
87969c8c 12810cat >confcache <<\_ACEOF
12811# This file is a shell script that caches the results of configure
12812# tests run on this system so they can be shared between configure
12813# scripts and configure runs, see configure's option --config-cache.
12814# It is not useful on other systems. If it contains results you don't
12815# want to keep, you may remove or edit it.
12816#
12817# config.status only pays attention to the cache file if you give it
12818# the --recheck option to rerun configure.
12819#
12820# `ac_cv_env_foo' variables (set or unset) will be overridden when
12821# loading this file, other *unset* `ac_cv_foo' will be assigned the
12822# following values.
12823
12824_ACEOF
12825
12826# The following way of writing the cache mishandles newlines in values,
12827# but we know of no workaround that is simple, portable, and efficient.
12828# So, we kill variables containing newlines.
12829# Ultrix sh set writes to stderr and can't be redirected directly,
12830# and sets the high bit in the cache file unless we assign to the vars.
12831(
12832 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12833 eval ac_val=\$$ac_var
12834 case $ac_val in #(
12835 *${as_nl}*)
12836 case $ac_var in #(
12837 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12838$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12839 esac
12840 case $ac_var in #(
12841 _ | IFS | as_nl) ;; #(
12842 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12843 *) { eval $ac_var=; unset $ac_var;} ;;
12844 esac ;;
12845 esac
12846 done
12847
12848 (set) 2>&1 |
12849 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12850 *${as_nl}ac_space=\ *)
12851 # `set' does not quote correctly, so add quotes: double-quote
12852 # substitution turns \\\\ into \\, and sed turns \\ into \.
12853 sed -n \
12854 "s/'/'\\\\''/g;
12855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12856 ;; #(
12857 *)
12858 # `set' quotes correctly as required by POSIX, so do not add quotes.
12859 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12860 ;;
12861 esac |
12862 sort
12863) |
12864 sed '
12865 /^ac_cv_env_/b end
12866 t clear
12867 :clear
12868 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12869 t end
12870 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12871 :end' >>confcache
12872if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12873 if test -w "$cache_file"; then
12874 test "x$cache_file" != "x/dev/null" &&
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12876$as_echo "$as_me: updating cache $cache_file" >&6;}
12877 cat confcache >$cache_file
12878 else
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12880$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12881 fi
12882fi
12883rm -f confcache
12884
12885if test ${multilib} = yes; then
12886 multilib_arg="--enable-multilib"
12887else
12888 multilib_arg=
12889fi
12890
d6580113 12891
12892# We would like our source tree to be readonly. However when releases or
12893# pre-releases are generated, the flex/bison generated files as well as the
12894# various formats of manuals need to be included along with the rest of the
12895# sources. Therefore we have --enable-generated-files-in-srcdir to do
12896# just that.
12897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
12898$as_echo_n "checking generated-files-in-srcdir... " >&6; }
12899# Check whether --enable-generated-files-in-srcdir was given.
12900if test "${enable_generated_files_in_srcdir+set}" = set; then :
12901 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
12902 yes) enable_generated_files_in_srcdir=yes ;;
12903 no) enable_generated_files_in_srcdir=no ;;
12904 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
12905 esac
12906else
12907 enable_generated_files_in_srcdir=no
12908fi
12909
12910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
12911$as_echo "$enable_generated_files_in_srcdir" >&6; }
12912 if test "$enable_generated_files_in_srcdir" = yes; then
12913 GENINSRC_TRUE=
12914 GENINSRC_FALSE='#'
12915else
12916 GENINSRC_TRUE='#'
12917 GENINSRC_FALSE=
12918fi
12919
12920
12921
87969c8c 12922ac_config_files="$ac_config_files Makefile"
12923
12924cat >confcache <<\_ACEOF
12925# This file is a shell script that caches the results of configure
12926# tests run on this system so they can be shared between configure
12927# scripts and configure runs, see configure's option --config-cache.
12928# It is not useful on other systems. If it contains results you don't
12929# want to keep, you may remove or edit it.
12930#
12931# config.status only pays attention to the cache file if you give it
12932# the --recheck option to rerun configure.
12933#
12934# `ac_cv_env_foo' variables (set or unset) will be overridden when
12935# loading this file, other *unset* `ac_cv_foo' will be assigned the
12936# following values.
12937
12938_ACEOF
12939
12940# The following way of writing the cache mishandles newlines in values,
12941# but we know of no workaround that is simple, portable, and efficient.
12942# So, we kill variables containing newlines.
12943# Ultrix sh set writes to stderr and can't be redirected directly,
12944# and sets the high bit in the cache file unless we assign to the vars.
12945(
12946 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12947 eval ac_val=\$$ac_var
12948 case $ac_val in #(
12949 *${as_nl}*)
12950 case $ac_var in #(
12951 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12952$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12953 esac
12954 case $ac_var in #(
12955 _ | IFS | as_nl) ;; #(
12956 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12957 *) { eval $ac_var=; unset $ac_var;} ;;
12958 esac ;;
12959 esac
12960 done
12961
12962 (set) 2>&1 |
12963 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12964 *${as_nl}ac_space=\ *)
12965 # `set' does not quote correctly, so add quotes: double-quote
12966 # substitution turns \\\\ into \\, and sed turns \\ into \.
12967 sed -n \
12968 "s/'/'\\\\''/g;
12969 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12970 ;; #(
12971 *)
12972 # `set' quotes correctly as required by POSIX, so do not add quotes.
12973 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12974 ;;
12975 esac |
12976 sort
12977) |
12978 sed '
12979 /^ac_cv_env_/b end
12980 t clear
12981 :clear
12982 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12983 t end
12984 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12985 :end' >>confcache
12986if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12987 if test -w "$cache_file"; then
12988 test "x$cache_file" != "x/dev/null" &&
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12990$as_echo "$as_me: updating cache $cache_file" >&6;}
12991 cat confcache >$cache_file
12992 else
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12994$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12995 fi
12996fi
12997rm -f confcache
12998
12999test "x$prefix" = xNONE && prefix=$ac_default_prefix
13000# Let make expand exec_prefix.
13001test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13002
13003DEFS=-DHAVE_CONFIG_H
13004
13005ac_libobjs=
13006ac_ltlibobjs=
13007for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13008 # 1. Remove the extension, and $U if already installed.
13009 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13010 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13011 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13012 # will be set to the directory where LIBOBJS objects are built.
13013 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13014 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13015done
13016LIBOBJS=$ac_libobjs
13017
13018LTLIBOBJS=$ac_ltlibobjs
13019
13020
13021 if test -n "$EXEEXT"; then
13022 am__EXEEXT_TRUE=
13023 am__EXEEXT_FALSE='#'
13024else
13025 am__EXEEXT_TRUE='#'
13026 am__EXEEXT_FALSE=
13027fi
13028
13029if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13030 as_fn_error "conditional \"AMDEP\" was never defined.
13031Usually this means the macro was only invoked conditionally." "$LINENO" 5
13032fi
13033if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13034 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13035Usually this means the macro was only invoked conditionally." "$LINENO" 5
13036fi
0c0fb0a6 13037if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
13038 as_fn_error "conditional \"BUILD_INFO\" was never defined.
13039Usually this means the macro was only invoked conditionally." "$LINENO" 5
13040fi
87969c8c 13041if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13042 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13043Usually this means the macro was only invoked conditionally." "$LINENO" 5
13044fi
cb3103a1 13045if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13046 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13047Usually this means the macro was only invoked conditionally." "$LINENO" 5
13048fi
87969c8c 13049if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
13050 as_fn_error "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
13051Usually this means the macro was only invoked conditionally." "$LINENO" 5
13052fi
13053if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
13054 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
13055Usually this means the macro was only invoked conditionally." "$LINENO" 5
13056fi
13057if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
13058 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
13059Usually this means the macro was only invoked conditionally." "$LINENO" 5
13060fi
13061if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
13062 as_fn_error "conditional \"BUILD_LIBQUADMATH\" was never defined.
d6580113 13063Usually this means the macro was only invoked conditionally." "$LINENO" 5
13064fi
13065if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
13066 as_fn_error "conditional \"GENINSRC\" was never defined.
87969c8c 13067Usually this means the macro was only invoked conditionally." "$LINENO" 5
13068fi
13069
13070: ${CONFIG_STATUS=./config.status}
13071ac_write_fail=0
13072ac_clean_files_save=$ac_clean_files
13073ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13074{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13075$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13076as_write_fail=0
13077cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13078#! $SHELL
13079# Generated by $as_me.
13080# Run this file to recreate the current configuration.
13081# Compiler output produced by configure, useful for debugging
13082# configure, is in config.log if it exists.
13083
13084debug=false
13085ac_cs_recheck=false
13086ac_cs_silent=false
13087
13088SHELL=\${CONFIG_SHELL-$SHELL}
13089export SHELL
13090_ASEOF
13091cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13092## -------------------- ##
13093## M4sh Initialization. ##
13094## -------------------- ##
13095
13096# Be more Bourne compatible
13097DUALCASE=1; export DUALCASE # for MKS sh
13098if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13099 emulate sh
13100 NULLCMD=:
13101 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13102 # is contrary to our usage. Disable this feature.
13103 alias -g '${1+"$@"}'='"$@"'
13104 setopt NO_GLOB_SUBST
13105else
13106 case `(set -o) 2>/dev/null` in #(
13107 *posix*) :
13108 set -o posix ;; #(
13109 *) :
13110 ;;
13111esac
13112fi
13113
13114
13115as_nl='
13116'
13117export as_nl
13118# Printing a long string crashes Solaris 7 /usr/bin/printf.
13119as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13120as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13121as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13122# Prefer a ksh shell builtin over an external printf program on Solaris,
13123# but without wasting forks for bash or zsh.
13124if test -z "$BASH_VERSION$ZSH_VERSION" \
13125 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13126 as_echo='print -r --'
13127 as_echo_n='print -rn --'
13128elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13129 as_echo='printf %s\n'
13130 as_echo_n='printf %s'
13131else
13132 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13133 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13134 as_echo_n='/usr/ucb/echo -n'
13135 else
13136 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13137 as_echo_n_body='eval
13138 arg=$1;
13139 case $arg in #(
13140 *"$as_nl"*)
13141 expr "X$arg" : "X\\(.*\\)$as_nl";
13142 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13143 esac;
13144 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13145 '
13146 export as_echo_n_body
13147 as_echo_n='sh -c $as_echo_n_body as_echo'
13148 fi
13149 export as_echo_body
13150 as_echo='sh -c $as_echo_body as_echo'
13151fi
13152
13153# The user is always right.
13154if test "${PATH_SEPARATOR+set}" != set; then
13155 PATH_SEPARATOR=:
13156 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13157 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13158 PATH_SEPARATOR=';'
13159 }
13160fi
13161
13162
13163# IFS
13164# We need space, tab and new line, in precisely that order. Quoting is
13165# there to prevent editors from complaining about space-tab.
13166# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13167# splitting by setting IFS to empty value.)
13168IFS=" "" $as_nl"
13169
13170# Find who we are. Look in the path if we contain no directory separator.
13171case $0 in #((
13172 *[\\/]* ) as_myself=$0 ;;
13173 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13174for as_dir in $PATH
13175do
13176 IFS=$as_save_IFS
13177 test -z "$as_dir" && as_dir=.
13178 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13179 done
13180IFS=$as_save_IFS
13181
13182 ;;
13183esac
13184# We did not find ourselves, most probably we were run as `sh COMMAND'
13185# in which case we are not to be found in the path.
13186if test "x$as_myself" = x; then
13187 as_myself=$0
13188fi
13189if test ! -f "$as_myself"; then
13190 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13191 exit 1
13192fi
13193
13194# Unset variables that we do not need and which cause bugs (e.g. in
13195# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13196# suppresses any "Segmentation fault" message there. '((' could
13197# trigger a bug in pdksh 5.2.14.
13198for as_var in BASH_ENV ENV MAIL MAILPATH
13199do eval test x\${$as_var+set} = xset \
13200 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13201done
13202PS1='$ '
13203PS2='> '
13204PS4='+ '
13205
13206# NLS nuisances.
13207LC_ALL=C
13208export LC_ALL
13209LANGUAGE=C
13210export LANGUAGE
13211
13212# CDPATH.
13213(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13214
13215
13216# as_fn_error ERROR [LINENO LOG_FD]
13217# ---------------------------------
13218# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13219# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13220# script with status $?, using 1 if that was 0.
13221as_fn_error ()
13222{
13223 as_status=$?; test $as_status -eq 0 && as_status=1
13224 if test "$3"; then
13225 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13226 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13227 fi
13228 $as_echo "$as_me: error: $1" >&2
13229 as_fn_exit $as_status
13230} # as_fn_error
13231
13232
13233# as_fn_set_status STATUS
13234# -----------------------
13235# Set $? to STATUS, without forking.
13236as_fn_set_status ()
13237{
13238 return $1
13239} # as_fn_set_status
13240
13241# as_fn_exit STATUS
13242# -----------------
13243# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13244as_fn_exit ()
13245{
13246 set +e
13247 as_fn_set_status $1
13248 exit $1
13249} # as_fn_exit
13250
13251# as_fn_unset VAR
13252# ---------------
13253# Portably unset VAR.
13254as_fn_unset ()
13255{
13256 { eval $1=; unset $1;}
13257}
13258as_unset=as_fn_unset
13259# as_fn_append VAR VALUE
13260# ----------------------
13261# Append the text in VALUE to the end of the definition contained in VAR. Take
13262# advantage of any shell optimizations that allow amortized linear growth over
13263# repeated appends, instead of the typical quadratic growth present in naive
13264# implementations.
13265if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13266 eval 'as_fn_append ()
13267 {
13268 eval $1+=\$2
13269 }'
13270else
13271 as_fn_append ()
13272 {
13273 eval $1=\$$1\$2
13274 }
13275fi # as_fn_append
13276
13277# as_fn_arith ARG...
13278# ------------------
13279# Perform arithmetic evaluation on the ARGs, and store the result in the
13280# global $as_val. Take advantage of shells that can avoid forks. The arguments
13281# must be portable across $(()) and expr.
13282if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13283 eval 'as_fn_arith ()
13284 {
13285 as_val=$(( $* ))
13286 }'
13287else
13288 as_fn_arith ()
13289 {
13290 as_val=`expr "$@" || test $? -eq 1`
13291 }
13292fi # as_fn_arith
13293
13294
13295if expr a : '\(a\)' >/dev/null 2>&1 &&
13296 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13297 as_expr=expr
13298else
13299 as_expr=false
13300fi
13301
13302if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13303 as_basename=basename
13304else
13305 as_basename=false
13306fi
13307
13308if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13309 as_dirname=dirname
13310else
13311 as_dirname=false
13312fi
13313
13314as_me=`$as_basename -- "$0" ||
13315$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13316 X"$0" : 'X\(//\)$' \| \
13317 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13318$as_echo X/"$0" |
13319 sed '/^.*\/\([^/][^/]*\)\/*$/{
13320 s//\1/
13321 q
13322 }
13323 /^X\/\(\/\/\)$/{
13324 s//\1/
13325 q
13326 }
13327 /^X\/\(\/\).*/{
13328 s//\1/
13329 q
13330 }
13331 s/.*/./; q'`
13332
13333# Avoid depending upon Character Ranges.
13334as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13335as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13336as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13337as_cr_digits='0123456789'
13338as_cr_alnum=$as_cr_Letters$as_cr_digits
13339
13340ECHO_C= ECHO_N= ECHO_T=
13341case `echo -n x` in #(((((
13342-n*)
13343 case `echo 'xy\c'` in
13344 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13345 xy) ECHO_C='\c';;
13346 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13347 ECHO_T=' ';;
13348 esac;;
13349*)
13350 ECHO_N='-n';;
13351esac
13352
13353rm -f conf$$ conf$$.exe conf$$.file
13354if test -d conf$$.dir; then
13355 rm -f conf$$.dir/conf$$.file
13356else
13357 rm -f conf$$.dir
13358 mkdir conf$$.dir 2>/dev/null
13359fi
13360if (echo >conf$$.file) 2>/dev/null; then
13361 if ln -s conf$$.file conf$$ 2>/dev/null; then
13362 as_ln_s='ln -s'
13363 # ... but there are two gotchas:
13364 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13365 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13366 # In both cases, we have to default to `cp -p'.
13367 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13368 as_ln_s='cp -p'
13369 elif ln conf$$.file conf$$ 2>/dev/null; then
13370 as_ln_s=ln
13371 else
13372 as_ln_s='cp -p'
13373 fi
13374else
13375 as_ln_s='cp -p'
13376fi
13377rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13378rmdir conf$$.dir 2>/dev/null
13379
13380
13381# as_fn_mkdir_p
13382# -------------
13383# Create "$as_dir" as a directory, including parents if necessary.
13384as_fn_mkdir_p ()
13385{
13386
13387 case $as_dir in #(
13388 -*) as_dir=./$as_dir;;
13389 esac
13390 test -d "$as_dir" || eval $as_mkdir_p || {
13391 as_dirs=
13392 while :; do
13393 case $as_dir in #(
13394 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13395 *) as_qdir=$as_dir;;
13396 esac
13397 as_dirs="'$as_qdir' $as_dirs"
13398 as_dir=`$as_dirname -- "$as_dir" ||
13399$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13400 X"$as_dir" : 'X\(//\)[^/]' \| \
13401 X"$as_dir" : 'X\(//\)$' \| \
13402 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13403$as_echo X"$as_dir" |
13404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13405 s//\1/
13406 q
13407 }
13408 /^X\(\/\/\)[^/].*/{
13409 s//\1/
13410 q
13411 }
13412 /^X\(\/\/\)$/{
13413 s//\1/
13414 q
13415 }
13416 /^X\(\/\).*/{
13417 s//\1/
13418 q
13419 }
13420 s/.*/./; q'`
13421 test -d "$as_dir" && break
13422 done
13423 test -z "$as_dirs" || eval "mkdir $as_dirs"
13424 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13425
13426
13427} # as_fn_mkdir_p
13428if mkdir -p . 2>/dev/null; then
13429 as_mkdir_p='mkdir -p "$as_dir"'
13430else
13431 test -d ./-p && rmdir ./-p
13432 as_mkdir_p=false
13433fi
13434
13435if test -x / >/dev/null 2>&1; then
13436 as_test_x='test -x'
13437else
13438 if ls -dL / >/dev/null 2>&1; then
13439 as_ls_L_option=L
13440 else
13441 as_ls_L_option=
13442 fi
13443 as_test_x='
13444 eval sh -c '\''
13445 if test -d "$1"; then
13446 test -d "$1/.";
13447 else
13448 case $1 in #(
13449 -*)set "./$1";;
13450 esac;
13451 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13452 ???[sx]*):;;*)false;;esac;fi
13453 '\'' sh
13454 '
13455fi
13456as_executable_p=$as_test_x
13457
13458# Sed expression to map a string onto a valid CPP name.
13459as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13460
13461# Sed expression to map a string onto a valid variable name.
13462as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13463
13464
13465exec 6>&1
13466## ----------------------------------- ##
13467## Main body of $CONFIG_STATUS script. ##
13468## ----------------------------------- ##
13469_ASEOF
13470test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13471
13472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13473# Save the log message, to keep $0 and so on meaningful, and to
13474# report actual input values of CONFIG_FILES etc. instead of their
13475# values after options handling.
13476ac_log="
13477This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
13478generated by GNU Autoconf 2.64. Invocation command line was
13479
13480 CONFIG_FILES = $CONFIG_FILES
13481 CONFIG_HEADERS = $CONFIG_HEADERS
13482 CONFIG_LINKS = $CONFIG_LINKS
13483 CONFIG_COMMANDS = $CONFIG_COMMANDS
13484 $ $0 $@
13485
13486on `(hostname || uname -n) 2>/dev/null | sed 1q`
13487"
13488
13489_ACEOF
13490
13491case $ac_config_files in *"
13492"*) set x $ac_config_files; shift; ac_config_files=$*;;
13493esac
13494
13495case $ac_config_headers in *"
13496"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13497esac
13498
13499
13500cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13501# Files that config.status was made for.
13502config_files="$ac_config_files"
13503config_headers="$ac_config_headers"
13504config_commands="$ac_config_commands"
13505
13506_ACEOF
13507
13508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13509ac_cs_usage="\
13510\`$as_me' instantiates files and other configuration actions
13511from templates according to the current configuration. Unless the files
13512and actions are specified as TAGs, all are instantiated by default.
13513
13514Usage: $0 [OPTION]... [TAG]...
13515
13516 -h, --help print this help, then exit
13517 -V, --version print version number and configuration settings, then exit
13518 -q, --quiet, --silent
13519 do not print progress messages
13520 -d, --debug don't remove temporary files
13521 --recheck update $as_me by reconfiguring in the same conditions
13522 --file=FILE[:TEMPLATE]
13523 instantiate the configuration file FILE
13524 --header=FILE[:TEMPLATE]
13525 instantiate the configuration header FILE
13526
13527Configuration files:
13528$config_files
13529
13530Configuration headers:
13531$config_headers
13532
13533Configuration commands:
13534$config_commands
13535
13536Report bugs to the package provider."
13537
13538_ACEOF
13539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13540ac_cs_version="\\
13541GCC Quad-precision Math Library config.status 0.1
13542configured by $0, generated by GNU Autoconf 2.64,
13543 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13544
13545Copyright (C) 2009 Free Software Foundation, Inc.
13546This config.status script is free software; the Free Software Foundation
13547gives unlimited permission to copy, distribute and modify it."
13548
13549ac_pwd='$ac_pwd'
13550srcdir='$srcdir'
13551INSTALL='$INSTALL'
13552MKDIR_P='$MKDIR_P'
13553AWK='$AWK'
13554test -n "\$AWK" || AWK=awk
13555_ACEOF
13556
13557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13558# The default lists apply if the user does not specify any file.
13559ac_need_defaults=:
13560while test $# != 0
13561do
13562 case $1 in
13563 --*=*)
13564 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13565 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13566 ac_shift=:
13567 ;;
13568 *)
13569 ac_option=$1
13570 ac_optarg=$2
13571 ac_shift=shift
13572 ;;
13573 esac
13574
13575 case $ac_option in
13576 # Handling of the options.
13577 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13578 ac_cs_recheck=: ;;
13579 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13580 $as_echo "$ac_cs_version"; exit ;;
13581 --debug | --debu | --deb | --de | --d | -d )
13582 debug=: ;;
13583 --file | --fil | --fi | --f )
13584 $ac_shift
13585 case $ac_optarg in
13586 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13587 esac
13588 as_fn_append CONFIG_FILES " '$ac_optarg'"
13589 ac_need_defaults=false;;
13590 --header | --heade | --head | --hea )
13591 $ac_shift
13592 case $ac_optarg in
13593 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13594 esac
13595 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13596 ac_need_defaults=false;;
13597 --he | --h)
13598 # Conflict between --help and --header
13599 as_fn_error "ambiguous option: \`$1'
13600Try \`$0 --help' for more information.";;
13601 --help | --hel | -h )
13602 $as_echo "$ac_cs_usage"; exit ;;
13603 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13604 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13605 ac_cs_silent=: ;;
13606
13607 # This is an error.
13608 -*) as_fn_error "unrecognized option: \`$1'
13609Try \`$0 --help' for more information." ;;
13610
13611 *) as_fn_append ac_config_targets " $1"
13612 ac_need_defaults=false ;;
13613
13614 esac
13615 shift
13616done
13617
13618ac_configure_extra_args=
13619
13620if $ac_cs_silent; then
13621 exec 6>/dev/null
13622 ac_configure_extra_args="$ac_configure_extra_args --silent"
13623fi
13624
13625_ACEOF
13626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13627if \$ac_cs_recheck; then
13628 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13629 shift
13630 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13631 CONFIG_SHELL='$SHELL'
13632 export CONFIG_SHELL
13633 exec "\$@"
13634fi
13635
13636_ACEOF
13637cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13638exec 5>>config.log
13639{
13640 echo
13641 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13642## Running $as_me. ##
13643_ASBOX
13644 $as_echo "$ac_log"
13645} >&5
13646
13647_ACEOF
13648cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13649#
13650# INIT-COMMANDS
13651#
9f2a666b 13652
13653srcdir="$srcdir"
13654host="$host"
13655target="$target"
13656with_multisubdir="$with_multisubdir"
13657with_multisrctop="$with_multisrctop"
13658with_target_subdir="$with_target_subdir"
13659ac_configure_args="${multilib_arg} ${ac_configure_args}"
13660multi_basedir="$multi_basedir"
13661CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13662CC="$CC"
13663CXX="$CXX"
13664GFORTRAN="$GFORTRAN"
13665GCJ="$GCJ"
87969c8c 13666AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13667
13668
13669# The HP-UX ksh and POSIX shell print the target directory to stdout
13670# if CDPATH is set.
13671(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13672
13673sed_quote_subst='$sed_quote_subst'
13674double_quote_subst='$double_quote_subst'
13675delay_variable_subst='$delay_variable_subst'
13676macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13677macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13678enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13679enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13680pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13681enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13682SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13683ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13684host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13685host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13686host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13687build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13688build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13689build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13690SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13691Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13692GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13693EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13694FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13695LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13696NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13697LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13698max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13699ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13700exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13701lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13702lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13703lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13704reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13705reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13706OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13707deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13708file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13709AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13710AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13711STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13712RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13713old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13714old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13715old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13716lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13717CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13718CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13719compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13720GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13721lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13722lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13723lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13724lt_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"`'
13725objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13726MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13727lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13728lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13729lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13730lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13731lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13732need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13733DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13734NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13735LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13736OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13737OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13738libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13739shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13740extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13741archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13742enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13743export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13744whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13745compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13746old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13747old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13748archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13749archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13750module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13751module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13752with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13753allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13754no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13755hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13756hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13757hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13758hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13759hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13760hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13761hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13762hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13763inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13764link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13765fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13766always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13767export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13768exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13769include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13770prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13771file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13772variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13773need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13774need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13775version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13776runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13777shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13778shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13779libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13780library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13781soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13782install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13783postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13784postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13785finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13786finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13787hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13788sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13789sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13790hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13791enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13792enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13793enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13794old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13795striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13796
13797LTCC='$LTCC'
13798LTCFLAGS='$LTCFLAGS'
13799compiler='$compiler_DEFAULT'
13800
13801# A function that is used when there is no print builtin or printf.
13802func_fallback_echo ()
13803{
13804 eval 'cat <<_LTECHO_EOF
13805\$1
13806_LTECHO_EOF'
13807}
13808
13809# Quote evaled strings.
13810for var in SHELL \
13811ECHO \
13812SED \
13813GREP \
13814EGREP \
13815FGREP \
13816LD \
13817NM \
13818LN_S \
13819lt_SP2NL \
13820lt_NL2SP \
13821reload_flag \
13822OBJDUMP \
13823deplibs_check_method \
13824file_magic_cmd \
13825AR \
13826AR_FLAGS \
13827STRIP \
13828RANLIB \
13829CC \
13830CFLAGS \
13831compiler \
13832lt_cv_sys_global_symbol_pipe \
13833lt_cv_sys_global_symbol_to_cdecl \
13834lt_cv_sys_global_symbol_to_c_name_address \
13835lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13836lt_prog_compiler_no_builtin_flag \
13837lt_prog_compiler_wl \
13838lt_prog_compiler_pic \
13839lt_prog_compiler_static \
13840lt_cv_prog_compiler_c_o \
13841need_locks \
13842DSYMUTIL \
13843NMEDIT \
13844LIPO \
13845OTOOL \
13846OTOOL64 \
13847shrext_cmds \
13848export_dynamic_flag_spec \
13849whole_archive_flag_spec \
13850compiler_needs_object \
13851with_gnu_ld \
13852allow_undefined_flag \
13853no_undefined_flag \
13854hardcode_libdir_flag_spec \
13855hardcode_libdir_flag_spec_ld \
13856hardcode_libdir_separator \
13857fix_srcfile_path \
13858exclude_expsyms \
13859include_expsyms \
13860file_list_spec \
13861variables_saved_for_relink \
13862libname_spec \
13863library_names_spec \
13864soname_spec \
13865install_override_mode \
13866finish_eval \
13867old_striplib \
13868striplib; do
13869 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13870 *[\\\\\\\`\\"\\\$]*)
13871 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13872 ;;
13873 *)
13874 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13875 ;;
13876 esac
13877done
13878
13879# Double-quote double-evaled strings.
13880for var in reload_cmds \
13881old_postinstall_cmds \
13882old_postuninstall_cmds \
13883old_archive_cmds \
13884extract_expsyms_cmds \
13885old_archive_from_new_cmds \
13886old_archive_from_expsyms_cmds \
13887archive_cmds \
13888archive_expsym_cmds \
13889module_cmds \
13890module_expsym_cmds \
13891export_symbols_cmds \
13892prelink_cmds \
13893postinstall_cmds \
13894postuninstall_cmds \
13895finish_cmds \
13896sys_lib_search_path_spec \
13897sys_lib_dlsearch_path_spec; do
13898 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13899 *[\\\\\\\`\\"\\\$]*)
13900 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13901 ;;
13902 *)
13903 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13904 ;;
13905 esac
13906done
13907
13908ac_aux_dir='$ac_aux_dir'
13909xsi_shell='$xsi_shell'
13910lt_shell_append='$lt_shell_append'
13911
13912# See if we are running on zsh, and set the options which allow our
13913# commands through without removal of \ escapes INIT.
13914if test -n "\${ZSH_VERSION+set}" ; then
13915 setopt NO_GLOB_SUBST
13916fi
13917
13918
13919 PACKAGE='$PACKAGE'
13920 VERSION='$VERSION'
13921 TIMESTAMP='$TIMESTAMP'
13922 RM='$RM'
13923 ofile='$ofile'
13924
13925
13926
13927
87969c8c 13928_ACEOF
13929
13930cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13931
13932# Handling of arguments.
13933for ac_config_target in $ac_config_targets
13934do
13935 case $ac_config_target in
13936 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9f2a666b 13937 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
87969c8c 13938 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13939 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
87969c8c 13940 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13941
13942 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13943 esac
13944done
13945
13946
13947# If the user did not use the arguments to specify the items to instantiate,
13948# then the envvar interface is used. Set only those that are not.
13949# We use the long form for the default assignment because of an extremely
13950# bizarre bug on SunOS 4.1.3.
13951if $ac_need_defaults; then
13952 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13953 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13954 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13955fi
13956
13957# Have a temporary directory for convenience. Make it in the build tree
13958# simply because there is no reason against having it here, and in addition,
13959# creating and moving files from /tmp can sometimes cause problems.
13960# Hook for its removal unless debugging.
13961# Note that there is a small window in which the directory will not be cleaned:
13962# after its creation but before its name has been assigned to `$tmp'.
13963$debug ||
13964{
13965 tmp=
13966 trap 'exit_status=$?
13967 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13968' 0
13969 trap 'as_fn_exit 1' 1 2 13 15
13970}
13971# Create a (secure) tmp directory for tmp files.
13972
13973{
13974 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13975 test -n "$tmp" && test -d "$tmp"
13976} ||
13977{
13978 tmp=./conf$$-$RANDOM
13979 (umask 077 && mkdir "$tmp")
13980} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13981
13982# Set up the scripts for CONFIG_FILES section.
13983# No need to generate them if there are no CONFIG_FILES.
13984# This happens for instance with `./config.status config.h'.
13985if test -n "$CONFIG_FILES"; then
13986
13987
13988ac_cr=`echo X | tr X '\015'`
13989# On cygwin, bash can eat \r inside `` if the user requested igncr.
13990# But we know of no other shell where ac_cr would be empty at this
13991# point, so we can use a bashism as a fallback.
13992if test "x$ac_cr" = x; then
13993 eval ac_cr=\$\'\\r\'
13994fi
13995ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13996if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13997 ac_cs_awk_cr='\r'
13998else
13999 ac_cs_awk_cr=$ac_cr
14000fi
14001
14002echo 'BEGIN {' >"$tmp/subs1.awk" &&
14003_ACEOF
14004
14005
14006{
14007 echo "cat >conf$$subs.awk <<_ACEOF" &&
14008 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14009 echo "_ACEOF"
14010} >conf$$subs.sh ||
14011 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14012ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14013ac_delim='%!_!# '
14014for ac_last_try in false false false false false :; do
14015 . ./conf$$subs.sh ||
14016 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14017
14018 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14019 if test $ac_delim_n = $ac_delim_num; then
14020 break
14021 elif $ac_last_try; then
14022 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14023 else
14024 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14025 fi
14026done
14027rm -f conf$$subs.sh
14028
14029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14030cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14031_ACEOF
14032sed -n '
14033h
14034s/^/S["/; s/!.*/"]=/
14035p
14036g
14037s/^[^!]*!//
14038:repl
14039t repl
14040s/'"$ac_delim"'$//
14041t delim
14042:nl
14043h
14044s/\(.\{148\}\).*/\1/
14045t more1
14046s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14047p
14048n
14049b repl
14050:more1
14051s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14052p
14053g
14054s/.\{148\}//
14055t nl
14056:delim
14057h
14058s/\(.\{148\}\).*/\1/
14059t more2
14060s/["\\]/\\&/g; s/^/"/; s/$/"/
14061p
14062b
14063:more2
14064s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14065p
14066g
14067s/.\{148\}//
14068t delim
14069' <conf$$subs.awk | sed '
14070/^[^""]/{
14071 N
14072 s/\n//
14073}
14074' >>$CONFIG_STATUS || ac_write_fail=1
14075rm -f conf$$subs.awk
14076cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14077_ACAWK
14078cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14079 for (key in S) S_is_set[key] = 1
14080 FS = "\a"
14081
14082}
14083{
14084 line = $ 0
14085 nfields = split(line, field, "@")
14086 substed = 0
14087 len = length(field[1])
14088 for (i = 2; i < nfields; i++) {
14089 key = field[i]
14090 keylen = length(key)
14091 if (S_is_set[key]) {
14092 value = S[key]
14093 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14094 len += length(value) + length(field[++i])
14095 substed = 1
14096 } else
14097 len += 1 + keylen
14098 }
14099
14100 print line
14101}
14102
14103_ACAWK
14104_ACEOF
14105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14106if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14107 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14108else
14109 cat
14110fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14111 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14112_ACEOF
14113
14114# VPATH may cause trouble with some makes, so we remove $(srcdir),
14115# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14116# trailing colons and then remove the whole line if VPATH becomes empty
14117# (actually we leave an empty line to preserve line numbers).
14118if test "x$srcdir" = x.; then
14119 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14120s/:*\$(srcdir):*/:/
14121s/:*\${srcdir}:*/:/
14122s/:*@srcdir@:*/:/
14123s/^\([^=]*=[ ]*\):*/\1/
14124s/:*$//
14125s/^[^=]*=[ ]*$//
14126}'
14127fi
14128
14129cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14130fi # test -n "$CONFIG_FILES"
14131
14132# Set up the scripts for CONFIG_HEADERS section.
14133# No need to generate them if there are no CONFIG_HEADERS.
14134# This happens for instance with `./config.status Makefile'.
14135if test -n "$CONFIG_HEADERS"; then
14136cat >"$tmp/defines.awk" <<\_ACAWK ||
14137BEGIN {
14138_ACEOF
14139
14140# Transform confdefs.h into an awk script `defines.awk', embedded as
14141# here-document in config.status, that substitutes the proper values into
14142# config.h.in to produce config.h.
14143
14144# Create a delimiter string that does not exist in confdefs.h, to ease
14145# handling of long lines.
14146ac_delim='%!_!# '
14147for ac_last_try in false false :; do
14148 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14149 if test -z "$ac_t"; then
14150 break
14151 elif $ac_last_try; then
14152 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14153 else
14154 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14155 fi
14156done
14157
14158# For the awk script, D is an array of macro values keyed by name,
14159# likewise P contains macro parameters if any. Preserve backslash
14160# newline sequences.
14161
14162ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14163sed -n '
14164s/.\{148\}/&'"$ac_delim"'/g
14165t rset
14166:rset
14167s/^[ ]*#[ ]*define[ ][ ]*/ /
14168t def
14169d
14170:def
14171s/\\$//
14172t bsnl
14173s/["\\]/\\&/g
14174s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14175D["\1"]=" \3"/p
14176s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14177d
14178:bsnl
14179s/["\\]/\\&/g
14180s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14181D["\1"]=" \3\\\\\\n"\\/p
14182t cont
14183s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14184t cont
14185d
14186:cont
14187n
14188s/.\{148\}/&'"$ac_delim"'/g
14189t clear
14190:clear
14191s/\\$//
14192t bsnlc
14193s/["\\]/\\&/g; s/^/"/; s/$/"/p
14194d
14195:bsnlc
14196s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14197b cont
14198' <confdefs.h | sed '
14199s/'"$ac_delim"'/"\\\
14200"/g' >>$CONFIG_STATUS || ac_write_fail=1
14201
14202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14203 for (key in D) D_is_set[key] = 1
14204 FS = "\a"
14205}
14206/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14207 line = \$ 0
14208 split(line, arg, " ")
14209 if (arg[1] == "#") {
14210 defundef = arg[2]
14211 mac1 = arg[3]
14212 } else {
14213 defundef = substr(arg[1], 2)
14214 mac1 = arg[2]
14215 }
14216 split(mac1, mac2, "(") #)
14217 macro = mac2[1]
14218 prefix = substr(line, 1, index(line, defundef) - 1)
14219 if (D_is_set[macro]) {
14220 # Preserve the white space surrounding the "#".
14221 print prefix "define", macro P[macro] D[macro]
14222 next
14223 } else {
14224 # Replace #undef with comments. This is necessary, for example,
14225 # in the case of _POSIX_SOURCE, which is predefined and required
14226 # on some systems where configure will not decide to define it.
14227 if (defundef == "undef") {
14228 print "/*", prefix defundef, macro, "*/"
14229 next
14230 }
14231 }
14232}
14233{ print }
14234_ACAWK
14235_ACEOF
14236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14237 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14238fi # test -n "$CONFIG_HEADERS"
14239
14240
14241eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14242shift
14243for ac_tag
14244do
14245 case $ac_tag in
14246 :[FHLC]) ac_mode=$ac_tag; continue;;
14247 esac
14248 case $ac_mode$ac_tag in
14249 :[FHL]*:*);;
14250 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14251 :[FH]-) ac_tag=-:-;;
14252 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14253 esac
14254 ac_save_IFS=$IFS
14255 IFS=:
14256 set x $ac_tag
14257 IFS=$ac_save_IFS
14258 shift
14259 ac_file=$1
14260 shift
14261
14262 case $ac_mode in
14263 :L) ac_source=$1;;
14264 :[FH])
14265 ac_file_inputs=
14266 for ac_f
14267 do
14268 case $ac_f in
14269 -) ac_f="$tmp/stdin";;
14270 *) # Look for the file first in the build tree, then in the source tree
14271 # (if the path is not absolute). The absolute path cannot be DOS-style,
14272 # because $ac_f cannot contain `:'.
14273 test -f "$ac_f" ||
14274 case $ac_f in
14275 [\\/$]*) false;;
14276 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14277 esac ||
14278 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14279 esac
14280 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14281 as_fn_append ac_file_inputs " '$ac_f'"
14282 done
14283
14284 # Let's still pretend it is `configure' which instantiates (i.e., don't
14285 # use $as_me), people would be surprised to read:
14286 # /* config.h. Generated by config.status. */
14287 configure_input='Generated from '`
14288 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14289 `' by configure.'
14290 if test x"$ac_file" != x-; then
14291 configure_input="$ac_file. $configure_input"
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14293$as_echo "$as_me: creating $ac_file" >&6;}
14294 fi
14295 # Neutralize special characters interpreted by sed in replacement strings.
14296 case $configure_input in #(
14297 *\&* | *\|* | *\\* )
14298 ac_sed_conf_input=`$as_echo "$configure_input" |
14299 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14300 *) ac_sed_conf_input=$configure_input;;
14301 esac
14302
14303 case $ac_tag in
14304 *:-:* | *:-) cat >"$tmp/stdin" \
14305 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14306 esac
14307 ;;
14308 esac
14309
14310 ac_dir=`$as_dirname -- "$ac_file" ||
14311$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14312 X"$ac_file" : 'X\(//\)[^/]' \| \
14313 X"$ac_file" : 'X\(//\)$' \| \
14314 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14315$as_echo X"$ac_file" |
14316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14317 s//\1/
14318 q
14319 }
14320 /^X\(\/\/\)[^/].*/{
14321 s//\1/
14322 q
14323 }
14324 /^X\(\/\/\)$/{
14325 s//\1/
14326 q
14327 }
14328 /^X\(\/\).*/{
14329 s//\1/
14330 q
14331 }
14332 s/.*/./; q'`
14333 as_dir="$ac_dir"; as_fn_mkdir_p
14334 ac_builddir=.
14335
14336case "$ac_dir" in
14337.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14338*)
14339 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14340 # A ".." for each directory in $ac_dir_suffix.
14341 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14342 case $ac_top_builddir_sub in
14343 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14344 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14345 esac ;;
14346esac
14347ac_abs_top_builddir=$ac_pwd
14348ac_abs_builddir=$ac_pwd$ac_dir_suffix
14349# for backward compatibility:
14350ac_top_builddir=$ac_top_build_prefix
14351
14352case $srcdir in
14353 .) # We are building in place.
14354 ac_srcdir=.
14355 ac_top_srcdir=$ac_top_builddir_sub
14356 ac_abs_top_srcdir=$ac_pwd ;;
14357 [\\/]* | ?:[\\/]* ) # Absolute name.
14358 ac_srcdir=$srcdir$ac_dir_suffix;
14359 ac_top_srcdir=$srcdir
14360 ac_abs_top_srcdir=$srcdir ;;
14361 *) # Relative name.
14362 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14363 ac_top_srcdir=$ac_top_build_prefix$srcdir
14364 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14365esac
14366ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14367
14368
14369 case $ac_mode in
14370 :F)
14371 #
14372 # CONFIG_FILE
14373 #
14374
14375 case $INSTALL in
14376 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14377 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14378 esac
14379 ac_MKDIR_P=$MKDIR_P
14380 case $MKDIR_P in
14381 [\\/$]* | ?:[\\/]* ) ;;
14382 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14383 esac
14384_ACEOF
14385
14386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14387# If the template does not know about datarootdir, expand it.
14388# FIXME: This hack should be removed a few years after 2.60.
14389ac_datarootdir_hack=; ac_datarootdir_seen=
14390ac_sed_dataroot='
14391/datarootdir/ {
14392 p
14393 q
14394}
14395/@datadir@/p
14396/@docdir@/p
14397/@infodir@/p
14398/@localedir@/p
14399/@mandir@/p'
14400case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14401*datarootdir*) ac_datarootdir_seen=yes;;
14402*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14404$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14405_ACEOF
14406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14407 ac_datarootdir_hack='
14408 s&@datadir@&$datadir&g
14409 s&@docdir@&$docdir&g
14410 s&@infodir@&$infodir&g
14411 s&@localedir@&$localedir&g
14412 s&@mandir@&$mandir&g
14413 s&\\\${datarootdir}&$datarootdir&g' ;;
14414esac
14415_ACEOF
14416
14417# Neutralize VPATH when `$srcdir' = `.'.
14418# Shell code in configure.ac might set extrasub.
14419# FIXME: do we really want to maintain this feature?
14420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14421ac_sed_extra="$ac_vpsub
14422$extrasub
14423_ACEOF
14424cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14425:t
14426/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14427s|@configure_input@|$ac_sed_conf_input|;t t
14428s&@top_builddir@&$ac_top_builddir_sub&;t t
14429s&@top_build_prefix@&$ac_top_build_prefix&;t t
14430s&@srcdir@&$ac_srcdir&;t t
14431s&@abs_srcdir@&$ac_abs_srcdir&;t t
14432s&@top_srcdir@&$ac_top_srcdir&;t t
14433s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14434s&@builddir@&$ac_builddir&;t t
14435s&@abs_builddir@&$ac_abs_builddir&;t t
14436s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14437s&@INSTALL@&$ac_INSTALL&;t t
14438s&@MKDIR_P@&$ac_MKDIR_P&;t t
14439$ac_datarootdir_hack
14440"
14441eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14442 || as_fn_error "could not create $ac_file" "$LINENO" 5
14443
14444test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14445 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14446 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14448which seems to be undefined. Please make sure it is defined." >&5
14449$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14450which seems to be undefined. Please make sure it is defined." >&2;}
14451
14452 rm -f "$tmp/stdin"
14453 case $ac_file in
14454 -) cat "$tmp/out" && rm -f "$tmp/out";;
14455 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14456 esac \
14457 || as_fn_error "could not create $ac_file" "$LINENO" 5
14458 ;;
14459 :H)
14460 #
14461 # CONFIG_HEADER
14462 #
14463 if test x"$ac_file" != x-; then
14464 {
14465 $as_echo "/* $configure_input */" \
14466 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14467 } >"$tmp/config.h" \
14468 || as_fn_error "could not create $ac_file" "$LINENO" 5
14469 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14471$as_echo "$as_me: $ac_file is unchanged" >&6;}
14472 else
14473 rm -f "$ac_file"
14474 mv "$tmp/config.h" "$ac_file" \
14475 || as_fn_error "could not create $ac_file" "$LINENO" 5
14476 fi
14477 else
14478 $as_echo "/* $configure_input */" \
14479 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14480 || as_fn_error "could not create -" "$LINENO" 5
14481 fi
14482# Compute "$ac_file"'s index in $config_headers.
14483_am_arg="$ac_file"
14484_am_stamp_count=1
14485for _am_header in $config_headers :; do
14486 case $_am_header in
14487 $_am_arg | $_am_arg:* )
14488 break ;;
14489 * )
14490 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14491 esac
14492done
14493echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14494$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14495 X"$_am_arg" : 'X\(//\)[^/]' \| \
14496 X"$_am_arg" : 'X\(//\)$' \| \
14497 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14498$as_echo X"$_am_arg" |
14499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14500 s//\1/
14501 q
14502 }
14503 /^X\(\/\/\)[^/].*/{
14504 s//\1/
14505 q
14506 }
14507 /^X\(\/\/\)$/{
14508 s//\1/
14509 q
14510 }
14511 /^X\(\/\).*/{
14512 s//\1/
14513 q
14514 }
14515 s/.*/./; q'`/stamp-h$_am_stamp_count
14516 ;;
14517
14518 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14519$as_echo "$as_me: executing $ac_file commands" >&6;}
14520 ;;
14521 esac
14522
14523
14524 case $ac_file$ac_mode in
9f2a666b 14525 "default-1":C)
14526# Only add multilib support code if we just rebuilt the top-level
14527# Makefile.
14528case " $CONFIG_FILES " in
14529 *" Makefile "*)
14530 ac_file=Makefile . ${multi_basedir}/config-ml.in
14531 ;;
14532esac ;;
87969c8c 14533 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14534 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14535 # are listed without --file. Let's play safe and only enable the eval
14536 # if we detect the quoting.
14537 case $CONFIG_FILES in
14538 *\'*) eval set x "$CONFIG_FILES" ;;
14539 *) set x $CONFIG_FILES ;;
14540 esac
14541 shift
14542 for mf
14543 do
14544 # Strip MF so we end up with the name of the file.
14545 mf=`echo "$mf" | sed -e 's/:.*$//'`
14546 # Check whether this is an Automake generated Makefile or not.
14547 # We used to match only the files named `Makefile.in', but
14548 # some people rename them; so instead we look at the file content.
14549 # Grep'ing the first line is not enough: some people post-process
14550 # each Makefile.in and add a new line on top of each file to say so.
14551 # Grep'ing the whole file is not good either: AIX grep has a line
14552 # limit of 2048, but all sed's we know have understand at least 4000.
14553 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14554 dirpart=`$as_dirname -- "$mf" ||
14555$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14556 X"$mf" : 'X\(//\)[^/]' \| \
14557 X"$mf" : 'X\(//\)$' \| \
14558 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14559$as_echo X"$mf" |
14560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14561 s//\1/
14562 q
14563 }
14564 /^X\(\/\/\)[^/].*/{
14565 s//\1/
14566 q
14567 }
14568 /^X\(\/\/\)$/{
14569 s//\1/
14570 q
14571 }
14572 /^X\(\/\).*/{
14573 s//\1/
14574 q
14575 }
14576 s/.*/./; q'`
14577 else
14578 continue
14579 fi
14580 # Extract the definition of DEPDIR, am__include, and am__quote
14581 # from the Makefile without running `make'.
14582 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14583 test -z "$DEPDIR" && continue
14584 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14585 test -z "am__include" && continue
14586 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14587 # When using ansi2knr, U may be empty or an underscore; expand it
14588 U=`sed -n 's/^U = //p' < "$mf"`
14589 # Find all dependency output files, they are included files with
14590 # $(DEPDIR) in their names. We invoke sed twice because it is the
14591 # simplest approach to changing $(DEPDIR) to its actual value in the
14592 # expansion.
14593 for file in `sed -n "
14594 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14595 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14596 # Make sure the directory exists.
14597 test -f "$dirpart/$file" && continue
14598 fdir=`$as_dirname -- "$file" ||
14599$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14600 X"$file" : 'X\(//\)[^/]' \| \
14601 X"$file" : 'X\(//\)$' \| \
14602 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14603$as_echo X"$file" |
14604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14605 s//\1/
14606 q
14607 }
14608 /^X\(\/\/\)[^/].*/{
14609 s//\1/
14610 q
14611 }
14612 /^X\(\/\/\)$/{
14613 s//\1/
14614 q
14615 }
14616 /^X\(\/\).*/{
14617 s//\1/
14618 q
14619 }
14620 s/.*/./; q'`
14621 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14622 # echo "creating $dirpart/$file"
14623 echo '# dummy' > "$dirpart/$file"
14624 done
14625 done
14626}
14627 ;;
14628 "libtool":C)
14629
14630 # See if we are running on zsh, and set the options which allow our
14631 # commands through without removal of \ escapes.
14632 if test -n "${ZSH_VERSION+set}" ; then
14633 setopt NO_GLOB_SUBST
14634 fi
14635
14636 cfgfile="${ofile}T"
14637 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14638 $RM "$cfgfile"
14639
14640 cat <<_LT_EOF >> "$cfgfile"
14641#! $SHELL
14642
14643# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14644# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14645# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14646# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14647#
14648# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14649# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14650# Written by Gordon Matzigkeit, 1996
14651#
14652# This file is part of GNU Libtool.
14653#
14654# GNU Libtool is free software; you can redistribute it and/or
14655# modify it under the terms of the GNU General Public License as
14656# published by the Free Software Foundation; either version 2 of
14657# the License, or (at your option) any later version.
14658#
14659# As a special exception to the GNU General Public License,
14660# if you distribute this file as part of a program or library that
14661# is built using GNU Libtool, you may include this file under the
14662# same distribution terms that you use for the rest of that program.
14663#
14664# GNU Libtool is distributed in the hope that it will be useful,
14665# but WITHOUT ANY WARRANTY; without even the implied warranty of
14666# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14667# GNU General Public License for more details.
14668#
14669# You should have received a copy of the GNU General Public License
14670# along with GNU Libtool; see the file COPYING. If not, a copy
14671# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14672# obtained by writing to the Free Software Foundation, Inc.,
14673# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14674
14675
14676# The names of the tagged configurations supported by this script.
14677available_tags=""
14678
14679# ### BEGIN LIBTOOL CONFIG
14680
14681# Which release of libtool.m4 was used?
14682macro_version=$macro_version
14683macro_revision=$macro_revision
14684
14685# Whether or not to build shared libraries.
14686build_libtool_libs=$enable_shared
14687
14688# Whether or not to build static libraries.
14689build_old_libs=$enable_static
14690
14691# What type of objects to build.
14692pic_mode=$pic_mode
14693
14694# Whether or not to optimize for fast installation.
14695fast_install=$enable_fast_install
14696
14697# Shell to use when invoking shell scripts.
14698SHELL=$lt_SHELL
14699
14700# An echo program that protects backslashes.
14701ECHO=$lt_ECHO
14702
14703# The host system.
14704host_alias=$host_alias
14705host=$host
14706host_os=$host_os
14707
14708# The build system.
14709build_alias=$build_alias
14710build=$build
14711build_os=$build_os
14712
14713# A sed program that does not truncate output.
14714SED=$lt_SED
14715
14716# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14717Xsed="\$SED -e 1s/^X//"
14718
14719# A grep program that handles long lines.
14720GREP=$lt_GREP
14721
14722# An ERE matcher.
14723EGREP=$lt_EGREP
14724
14725# A literal string matcher.
14726FGREP=$lt_FGREP
14727
14728# A BSD- or MS-compatible name lister.
14729NM=$lt_NM
14730
14731# Whether we need soft or hard links.
14732LN_S=$lt_LN_S
14733
14734# What is the maximum length of a command?
14735max_cmd_len=$max_cmd_len
14736
14737# Object file suffix (normally "o").
14738objext=$ac_objext
14739
14740# Executable file suffix (normally "").
14741exeext=$exeext
14742
14743# whether the shell understands "unset".
14744lt_unset=$lt_unset
14745
14746# turn spaces into newlines.
14747SP2NL=$lt_lt_SP2NL
14748
14749# turn newlines into spaces.
14750NL2SP=$lt_lt_NL2SP
14751
14752# An object symbol dumper.
14753OBJDUMP=$lt_OBJDUMP
14754
14755# Method to check whether dependent libraries are shared objects.
14756deplibs_check_method=$lt_deplibs_check_method
14757
14758# Command to use when deplibs_check_method == "file_magic".
14759file_magic_cmd=$lt_file_magic_cmd
14760
14761# The archiver.
14762AR=$lt_AR
14763AR_FLAGS=$lt_AR_FLAGS
14764
14765# A symbol stripping program.
14766STRIP=$lt_STRIP
14767
14768# Commands used to install an old-style archive.
14769RANLIB=$lt_RANLIB
14770old_postinstall_cmds=$lt_old_postinstall_cmds
14771old_postuninstall_cmds=$lt_old_postuninstall_cmds
14772
14773# Whether to use a lock for old archive extraction.
14774lock_old_archive_extraction=$lock_old_archive_extraction
14775
14776# A C compiler.
14777LTCC=$lt_CC
14778
14779# LTCC compiler flags.
14780LTCFLAGS=$lt_CFLAGS
14781
14782# Take the output of nm and produce a listing of raw symbols and C names.
14783global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14784
14785# Transform the output of nm in a proper C declaration.
14786global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14787
14788# Transform the output of nm in a C name address pair.
14789global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14790
14791# Transform the output of nm in a C name address pair when lib prefix is needed.
14792global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14793
14794# The name of the directory that contains temporary libtool files.
14795objdir=$objdir
14796
14797# Used to examine libraries when file_magic_cmd begins with "file".
14798MAGIC_CMD=$MAGIC_CMD
14799
14800# Must we lock files when doing compilation?
14801need_locks=$lt_need_locks
14802
14803# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14804DSYMUTIL=$lt_DSYMUTIL
14805
14806# Tool to change global to local symbols on Mac OS X.
14807NMEDIT=$lt_NMEDIT
14808
14809# Tool to manipulate fat objects and archives on Mac OS X.
14810LIPO=$lt_LIPO
14811
14812# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14813OTOOL=$lt_OTOOL
14814
14815# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14816OTOOL64=$lt_OTOOL64
14817
14818# Old archive suffix (normally "a").
14819libext=$libext
14820
14821# Shared library suffix (normally ".so").
14822shrext_cmds=$lt_shrext_cmds
14823
14824# The commands to extract the exported symbol list from a shared archive.
14825extract_expsyms_cmds=$lt_extract_expsyms_cmds
14826
14827# Variables whose values should be saved in libtool wrapper scripts and
14828# restored at link time.
14829variables_saved_for_relink=$lt_variables_saved_for_relink
14830
14831# Do we need the "lib" prefix for modules?
14832need_lib_prefix=$need_lib_prefix
14833
14834# Do we need a version for libraries?
14835need_version=$need_version
14836
14837# Library versioning type.
14838version_type=$version_type
14839
14840# Shared library runtime path variable.
14841runpath_var=$runpath_var
14842
14843# Shared library path variable.
14844shlibpath_var=$shlibpath_var
14845
14846# Is shlibpath searched before the hard-coded library search path?
14847shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14848
14849# Format of library name prefix.
14850libname_spec=$lt_libname_spec
14851
14852# List of archive names. First name is the real one, the rest are links.
14853# The last name is the one that the linker finds with -lNAME
14854library_names_spec=$lt_library_names_spec
14855
14856# The coded name of the library, if different from the real name.
14857soname_spec=$lt_soname_spec
14858
14859# Permission mode override for installation of shared libraries.
14860install_override_mode=$lt_install_override_mode
14861
14862# Command to use after installation of a shared archive.
14863postinstall_cmds=$lt_postinstall_cmds
14864
14865# Command to use after uninstallation of a shared archive.
14866postuninstall_cmds=$lt_postuninstall_cmds
14867
14868# Commands used to finish a libtool library installation in a directory.
14869finish_cmds=$lt_finish_cmds
14870
14871# As "finish_cmds", except a single script fragment to be evaled but
14872# not shown.
14873finish_eval=$lt_finish_eval
14874
14875# Whether we should hardcode library paths into libraries.
14876hardcode_into_libs=$hardcode_into_libs
14877
14878# Compile-time system search path for libraries.
14879sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14880
14881# Run-time system search path for libraries.
14882sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14883
14884# Whether dlopen is supported.
14885dlopen_support=$enable_dlopen
14886
14887# Whether dlopen of programs is supported.
14888dlopen_self=$enable_dlopen_self
14889
14890# Whether dlopen of statically linked programs is supported.
14891dlopen_self_static=$enable_dlopen_self_static
14892
14893# Commands to strip libraries.
14894old_striplib=$lt_old_striplib
14895striplib=$lt_striplib
14896
14897
14898# The linker used to build libraries.
14899LD=$lt_LD
14900
14901# How to create reloadable object files.
14902reload_flag=$lt_reload_flag
14903reload_cmds=$lt_reload_cmds
14904
14905# Commands used to build an old-style archive.
14906old_archive_cmds=$lt_old_archive_cmds
14907
14908# A language specific compiler.
14909CC=$lt_compiler
14910
14911# Is the compiler the GNU compiler?
14912with_gcc=$GCC
14913
14914# Compiler flag to turn off builtin functions.
14915no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14916
14917# How to pass a linker flag through the compiler.
14918wl=$lt_lt_prog_compiler_wl
14919
14920# Additional compiler flags for building library objects.
14921pic_flag=$lt_lt_prog_compiler_pic
14922
14923# Compiler flag to prevent dynamic linking.
14924link_static_flag=$lt_lt_prog_compiler_static
14925
14926# Does compiler simultaneously support -c and -o options?
14927compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14928
14929# Whether or not to add -lc for building shared libraries.
14930build_libtool_need_lc=$archive_cmds_need_lc
14931
14932# Whether or not to disallow shared libs when runtime libs are static.
14933allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14934
14935# Compiler flag to allow reflexive dlopens.
14936export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14937
14938# Compiler flag to generate shared objects directly from archives.
14939whole_archive_flag_spec=$lt_whole_archive_flag_spec
14940
14941# Whether the compiler copes with passing no objects directly.
14942compiler_needs_object=$lt_compiler_needs_object
14943
14944# Create an old-style archive from a shared archive.
14945old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14946
14947# Create a temporary old-style archive to link instead of a shared archive.
14948old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14949
14950# Commands used to build a shared archive.
14951archive_cmds=$lt_archive_cmds
14952archive_expsym_cmds=$lt_archive_expsym_cmds
14953
14954# Commands used to build a loadable module if different from building
14955# a shared archive.
14956module_cmds=$lt_module_cmds
14957module_expsym_cmds=$lt_module_expsym_cmds
14958
14959# Whether we are building with GNU ld or not.
14960with_gnu_ld=$lt_with_gnu_ld
14961
14962# Flag that allows shared libraries with undefined symbols to be built.
14963allow_undefined_flag=$lt_allow_undefined_flag
14964
14965# Flag that enforces no undefined symbols.
14966no_undefined_flag=$lt_no_undefined_flag
14967
14968# Flag to hardcode \$libdir into a binary during linking.
14969# This must work even if \$libdir does not exist
14970hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14971
14972# If ld is used when linking, flag to hardcode \$libdir into a binary
14973# during linking. This must work even if \$libdir does not exist.
14974hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14975
14976# Whether we need a single "-rpath" flag with a separated argument.
14977hardcode_libdir_separator=$lt_hardcode_libdir_separator
14978
14979# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14980# DIR into the resulting binary.
14981hardcode_direct=$hardcode_direct
14982
14983# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14984# DIR into the resulting binary and the resulting library dependency is
14985# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14986# library is relocated.
14987hardcode_direct_absolute=$hardcode_direct_absolute
14988
14989# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14990# into the resulting binary.
14991hardcode_minus_L=$hardcode_minus_L
14992
14993# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14994# into the resulting binary.
14995hardcode_shlibpath_var=$hardcode_shlibpath_var
14996
14997# Set to "yes" if building a shared library automatically hardcodes DIR
14998# into the library and all subsequent libraries and executables linked
14999# against it.
15000hardcode_automatic=$hardcode_automatic
15001
15002# Set to yes if linker adds runtime paths of dependent libraries
15003# to runtime path list.
15004inherit_rpath=$inherit_rpath
15005
15006# Whether libtool must link a program against all its dependency libraries.
15007link_all_deplibs=$link_all_deplibs
15008
15009# Fix the shell variable \$srcfile for the compiler.
15010fix_srcfile_path=$lt_fix_srcfile_path
15011
15012# Set to "yes" if exported symbols are required.
15013always_export_symbols=$always_export_symbols
15014
15015# The commands to list exported symbols.
15016export_symbols_cmds=$lt_export_symbols_cmds
15017
15018# Symbols that should not be listed in the preloaded symbols.
15019exclude_expsyms=$lt_exclude_expsyms
15020
15021# Symbols that must always be exported.
15022include_expsyms=$lt_include_expsyms
15023
15024# Commands necessary for linking programs (against libraries) with templates.
15025prelink_cmds=$lt_prelink_cmds
15026
15027# Specify filename containing input files.
15028file_list_spec=$lt_file_list_spec
15029
15030# How to hardcode a shared library path into an executable.
15031hardcode_action=$hardcode_action
15032
15033# ### END LIBTOOL CONFIG
15034
15035_LT_EOF
15036
15037 case $host_os in
15038 aix3*)
15039 cat <<\_LT_EOF >> "$cfgfile"
15040# AIX sometimes has problems with the GCC collect2 program. For some
15041# reason, if we set the COLLECT_NAMES environment variable, the problems
15042# vanish in a puff of smoke.
15043if test "X${COLLECT_NAMES+set}" != Xset; then
15044 COLLECT_NAMES=
15045 export COLLECT_NAMES
15046fi
15047_LT_EOF
15048 ;;
15049 esac
15050
15051
15052ltmain="$ac_aux_dir/ltmain.sh"
15053
15054
15055 # We use sed instead of cat because bash on DJGPP gets confused if
15056 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15057 # text mode, it properly converts lines to CR/LF. This bash problem
15058 # is reportedly fixed, but why not run on old versions too?
15059 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15060 || (rm -f "$cfgfile"; exit 1)
15061
15062 case $xsi_shell in
15063 yes)
15064 cat << \_LT_EOF >> "$cfgfile"
15065
15066# func_dirname file append nondir_replacement
15067# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15068# otherwise set result to NONDIR_REPLACEMENT.
15069func_dirname ()
15070{
15071 case ${1} in
15072 */*) func_dirname_result="${1%/*}${2}" ;;
15073 * ) func_dirname_result="${3}" ;;
15074 esac
15075}
15076
15077# func_basename file
15078func_basename ()
15079{
15080 func_basename_result="${1##*/}"
15081}
15082
15083# func_dirname_and_basename file append nondir_replacement
15084# perform func_basename and func_dirname in a single function
15085# call:
15086# dirname: Compute the dirname of FILE. If nonempty,
15087# add APPEND to the result, otherwise set result
15088# to NONDIR_REPLACEMENT.
15089# value returned in "$func_dirname_result"
15090# basename: Compute filename of FILE.
15091# value retuned in "$func_basename_result"
15092# Implementation must be kept synchronized with func_dirname
15093# and func_basename. For efficiency, we do not delegate to
15094# those functions but instead duplicate the functionality here.
15095func_dirname_and_basename ()
15096{
15097 case ${1} in
15098 */*) func_dirname_result="${1%/*}${2}" ;;
15099 * ) func_dirname_result="${3}" ;;
15100 esac
15101 func_basename_result="${1##*/}"
15102}
15103
15104# func_stripname prefix suffix name
15105# strip PREFIX and SUFFIX off of NAME.
15106# PREFIX and SUFFIX must not contain globbing or regex special
15107# characters, hashes, percent signs, but SUFFIX may contain a leading
15108# dot (in which case that matches only a dot).
15109func_stripname ()
15110{
15111 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15112 # positional parameters, so assign one to ordinary parameter first.
15113 func_stripname_result=${3}
15114 func_stripname_result=${func_stripname_result#"${1}"}
15115 func_stripname_result=${func_stripname_result%"${2}"}
15116}
15117
15118# func_opt_split
15119func_opt_split ()
15120{
15121 func_opt_split_opt=${1%%=*}
15122 func_opt_split_arg=${1#*=}
15123}
15124
15125# func_lo2o object
15126func_lo2o ()
15127{
15128 case ${1} in
15129 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15130 *) func_lo2o_result=${1} ;;
15131 esac
15132}
15133
15134# func_xform libobj-or-source
15135func_xform ()
15136{
15137 func_xform_result=${1%.*}.lo
15138}
15139
15140# func_arith arithmetic-term...
15141func_arith ()
15142{
15143 func_arith_result=$(( $* ))
15144}
15145
15146# func_len string
15147# STRING may not start with a hyphen.
15148func_len ()
15149{
15150 func_len_result=${#1}
15151}
15152
15153_LT_EOF
15154 ;;
15155 *) # Bourne compatible functions.
15156 cat << \_LT_EOF >> "$cfgfile"
15157
15158# func_dirname file append nondir_replacement
15159# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15160# otherwise set result to NONDIR_REPLACEMENT.
15161func_dirname ()
15162{
15163 # Extract subdirectory from the argument.
15164 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15165 if test "X$func_dirname_result" = "X${1}"; then
15166 func_dirname_result="${3}"
15167 else
15168 func_dirname_result="$func_dirname_result${2}"
15169 fi
15170}
15171
15172# func_basename file
15173func_basename ()
15174{
15175 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15176}
15177
15178
15179# func_stripname prefix suffix name
15180# strip PREFIX and SUFFIX off of NAME.
15181# PREFIX and SUFFIX must not contain globbing or regex special
15182# characters, hashes, percent signs, but SUFFIX may contain a leading
15183# dot (in which case that matches only a dot).
15184# func_strip_suffix prefix name
15185func_stripname ()
15186{
15187 case ${2} in
15188 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15189 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15190 esac
15191}
15192
15193# sed scripts:
15194my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15195my_sed_long_arg='1s/^-[^=]*=//'
15196
15197# func_opt_split
15198func_opt_split ()
15199{
15200 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15201 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15202}
15203
15204# func_lo2o object
15205func_lo2o ()
15206{
15207 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15208}
15209
15210# func_xform libobj-or-source
15211func_xform ()
15212{
15213 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15214}
15215
15216# func_arith arithmetic-term...
15217func_arith ()
15218{
15219 func_arith_result=`expr "$@"`
15220}
15221
15222# func_len string
15223# STRING may not start with a hyphen.
15224func_len ()
15225{
15226 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15227}
15228
15229_LT_EOF
15230esac
15231
15232case $lt_shell_append in
15233 yes)
15234 cat << \_LT_EOF >> "$cfgfile"
15235
15236# func_append var value
15237# Append VALUE to the end of shell variable VAR.
15238func_append ()
15239{
15240 eval "$1+=\$2"
15241}
15242_LT_EOF
15243 ;;
15244 *)
15245 cat << \_LT_EOF >> "$cfgfile"
15246
15247# func_append var value
15248# Append VALUE to the end of shell variable VAR.
15249func_append ()
15250{
15251 eval "$1=\$$1\$2"
15252}
15253
15254_LT_EOF
15255 ;;
15256 esac
15257
15258
15259 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15260 || (rm -f "$cfgfile"; exit 1)
15261
15262 mv -f "$cfgfile" "$ofile" ||
15263 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15264 chmod +x "$ofile"
15265
15266 ;;
87969c8c 15267
15268 esac
15269done # for ac_tag
15270
15271
15272as_fn_exit 0
15273_ACEOF
15274ac_clean_files=$ac_clean_files_save
15275
15276test $ac_write_fail = 0 ||
15277 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15278
15279
15280# configure is writing to config.log, and then calls config.status.
15281# config.status does its own redirection, appending to config.log.
15282# Unfortunately, on DOS this fails, as config.log is still kept open
15283# by configure, so config.status won't be able to write to it; its
15284# output is simply discarded. So we exec the FD to /dev/null,
15285# effectively closing config.log, so it can be properly (re)opened and
15286# appended to by config.status. When coming back to configure, we
15287# need to make the FD available again.
15288if test "$no_create" != yes; then
15289 ac_cs_success=:
15290 ac_config_status_args=
15291 test "$silent" = yes &&
15292 ac_config_status_args="$ac_config_status_args --quiet"
15293 exec 5>/dev/null
15294 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15295 exec 5>>config.log
15296 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15297 # would make configure fail if this is the last instruction.
15298 $ac_cs_success || as_fn_exit $?
15299fi
15300if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15302$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15303fi
15304