]> git.ipfire.org Git - thirdparty/gcc.git/blame - libquadmath/configure
/
[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
172
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180test \$(( 1 + 1 )) = 2 || exit 1"
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
604BUILD_LIBQUADMATH_FALSE
605BUILD_LIBQUADMATH_TRUE
606LIBQUAD_USE_SYMVER_SUN_FALSE
607LIBQUAD_USE_SYMVER_SUN_TRUE
608LIBQUAD_USE_SYMVER_GNU_FALSE
609LIBQUAD_USE_SYMVER_GNU_TRUE
610LIBQUAD_USE_SYMVER_FALSE
611LIBQUAD_USE_SYMVER_TRUE
612toolexeclibdir
613toolexecdir
614multi_basedir
615MAINT
616MAINTAINER_MODE_FALSE
617MAINTAINER_MODE_TRUE
618enable_static
619enable_shared
620CPP
621OTOOL64
622OTOOL
623LIPO
624NMEDIT
625DSYMUTIL
626RANLIB
627AR
628OBJDUMP
629LN_S
630NM
631ac_ct_DUMPBIN
632DUMPBIN
633LD
634FGREP
635EGREP
636GREP
637SED
638LIBTOOL
639am__fastdepCC_FALSE
640am__fastdepCC_TRUE
641CCDEPMODE
642AMDEPBACKSLASH
643AMDEP_FALSE
644AMDEP_TRUE
645am__quote
646am__include
647DEPDIR
648OBJEXT
649EXEEXT
650ac_ct_CC
651CPPFLAGS
652LDFLAGS
653CFLAGS
654CC
655am__untar
656am__tar
657AMTAR
658am__leading_dot
659SET_MAKE
660AWK
661mkdir_p
662MKDIR_P
663INSTALL_STRIP_PROGRAM
664STRIP
665install_sh
666MAKEINFO
667AUTOHEADER
668AUTOMAKE
669AUTOCONF
670ACLOCAL
671VERSION
672PACKAGE
673CYGPATH_W
674am__isrc
675INSTALL_DATA
676INSTALL_SCRIPT
677INSTALL_PROGRAM
678target_os
679target_vendor
680target_cpu
681target
682host_os
683host_vendor
684host_cpu
685host
686build_os
687build_vendor
688build_cpu
689build
690target_alias
691host_alias
692build_alias
693LIBS
694ECHO_T
695ECHO_N
696ECHO_C
697DEFS
698mandir
699localedir
700libdir
701psdir
702pdfdir
703dvidir
704htmldir
705infodir
706docdir
707oldincludedir
708includedir
709localstatedir
710sharedstatedir
711sysconfdir
712datadir
713datarootdir
714libexecdir
715sbindir
716bindir
717program_transform_name
718prefix
719exec_prefix
720PACKAGE_URL
721PACKAGE_BUGREPORT
722PACKAGE_STRING
723PACKAGE_VERSION
724PACKAGE_TARNAME
725PACKAGE_NAME
726PATH_SEPARATOR
727SHELL'
728ac_subst_files=''
729ac_user_opts='
730enable_option_checking
731enable_dependency_tracking
732enable_version_specific_runtime_libs
733enable_shared
734enable_static
735with_pic
736enable_fast_install
737with_gnu_ld
738enable_libtool_lock
739enable_maintainer_mode
740enable_multilib
741'
742 ac_precious_vars='build_alias
743host_alias
744target_alias
745CC
746CFLAGS
747LDFLAGS
748LIBS
749CPPFLAGS
750CPP'
751
752
753# Initialize some variables set by options.
754ac_init_help=
755ac_init_version=false
756ac_unrecognized_opts=
757ac_unrecognized_sep=
758# The variables have the same names as the options, with
759# dashes changed to underlines.
760cache_file=/dev/null
761exec_prefix=NONE
762no_create=
763no_recursion=
764prefix=NONE
765program_prefix=NONE
766program_suffix=NONE
767program_transform_name=s,x,x,
768silent=
769site=
770srcdir=
771verbose=
772x_includes=NONE
773x_libraries=NONE
774
775# Installation directory options.
776# These are left unexpanded so users can "make install exec_prefix=/foo"
777# and all the variables that are supposed to be based on exec_prefix
778# by default will actually change.
779# Use braces instead of parens because sh, perl, etc. also accept them.
780# (The list follows the same order as the GNU Coding Standards.)
781bindir='${exec_prefix}/bin'
782sbindir='${exec_prefix}/sbin'
783libexecdir='${exec_prefix}/libexec'
784datarootdir='${prefix}/share'
785datadir='${datarootdir}'
786sysconfdir='${prefix}/etc'
787sharedstatedir='${prefix}/com'
788localstatedir='${prefix}/var'
789includedir='${prefix}/include'
790oldincludedir='/usr/include'
791docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
792infodir='${datarootdir}/info'
793htmldir='${docdir}'
794dvidir='${docdir}'
795pdfdir='${docdir}'
796psdir='${docdir}'
797libdir='${exec_prefix}/lib'
798localedir='${datarootdir}/locale'
799mandir='${datarootdir}/man'
800
801ac_prev=
802ac_dashdash=
803for ac_option
804do
805 # If the previous option needs an argument, assign it.
806 if test -n "$ac_prev"; then
807 eval $ac_prev=\$ac_option
808 ac_prev=
809 continue
810 fi
811
812 case $ac_option in
813 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814 *) ac_optarg=yes ;;
815 esac
816
817 # Accept the important Cygnus configure options, so we can diagnose typos.
818
819 case $ac_dashdash$ac_option in
820 --)
821 ac_dashdash=yes ;;
822
823 -bindir | --bindir | --bindi | --bind | --bin | --bi)
824 ac_prev=bindir ;;
825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826 bindir=$ac_optarg ;;
827
828 -build | --build | --buil | --bui | --bu)
829 ac_prev=build_alias ;;
830 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831 build_alias=$ac_optarg ;;
832
833 -cache-file | --cache-file | --cache-fil | --cache-fi \
834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835 ac_prev=cache_file ;;
836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838 cache_file=$ac_optarg ;;
839
840 --config-cache | -C)
841 cache_file=config.cache ;;
842
843 -datadir | --datadir | --datadi | --datad)
844 ac_prev=datadir ;;
845 -datadir=* | --datadir=* | --datadi=* | --datad=*)
846 datadir=$ac_optarg ;;
847
848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849 | --dataroo | --dataro | --datar)
850 ac_prev=datarootdir ;;
851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853 datarootdir=$ac_optarg ;;
854
855 -disable-* | --disable-*)
856 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859 as_fn_error "invalid feature name: $ac_useropt"
860 ac_useropt_orig=$ac_useropt
861 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
862 case $ac_user_opts in
863 *"
864"enable_$ac_useropt"
865"*) ;;
866 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
867 ac_unrecognized_sep=', ';;
868 esac
869 eval enable_$ac_useropt=no ;;
870
871 -docdir | --docdir | --docdi | --doc | --do)
872 ac_prev=docdir ;;
873 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
874 docdir=$ac_optarg ;;
875
876 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
877 ac_prev=dvidir ;;
878 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
879 dvidir=$ac_optarg ;;
880
881 -enable-* | --enable-*)
882 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885 as_fn_error "invalid feature name: $ac_useropt"
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
889 *"
890"enable_$ac_useropt"
891"*) ;;
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
894 esac
895 eval enable_$ac_useropt=\$ac_optarg ;;
896
897 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
898 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
899 | --exec | --exe | --ex)
900 ac_prev=exec_prefix ;;
901 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
902 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
903 | --exec=* | --exe=* | --ex=*)
904 exec_prefix=$ac_optarg ;;
905
906 -gas | --gas | --ga | --g)
907 # Obsolete; use --with-gas.
908 with_gas=yes ;;
909
910 -help | --help | --hel | --he | -h)
911 ac_init_help=long ;;
912 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
913 ac_init_help=recursive ;;
914 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
915 ac_init_help=short ;;
916
917 -host | --host | --hos | --ho)
918 ac_prev=host_alias ;;
919 -host=* | --host=* | --hos=* | --ho=*)
920 host_alias=$ac_optarg ;;
921
922 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923 ac_prev=htmldir ;;
924 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925 | --ht=*)
926 htmldir=$ac_optarg ;;
927
928 -includedir | --includedir | --includedi | --included | --include \
929 | --includ | --inclu | --incl | --inc)
930 ac_prev=includedir ;;
931 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
932 | --includ=* | --inclu=* | --incl=* | --inc=*)
933 includedir=$ac_optarg ;;
934
935 -infodir | --infodir | --infodi | --infod | --info | --inf)
936 ac_prev=infodir ;;
937 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
938 infodir=$ac_optarg ;;
939
940 -libdir | --libdir | --libdi | --libd)
941 ac_prev=libdir ;;
942 -libdir=* | --libdir=* | --libdi=* | --libd=*)
943 libdir=$ac_optarg ;;
944
945 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
946 | --libexe | --libex | --libe)
947 ac_prev=libexecdir ;;
948 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
949 | --libexe=* | --libex=* | --libe=*)
950 libexecdir=$ac_optarg ;;
951
952 -localedir | --localedir | --localedi | --localed | --locale)
953 ac_prev=localedir ;;
954 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
955 localedir=$ac_optarg ;;
956
957 -localstatedir | --localstatedir | --localstatedi | --localstated \
958 | --localstate | --localstat | --localsta | --localst | --locals)
959 ac_prev=localstatedir ;;
960 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
961 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
962 localstatedir=$ac_optarg ;;
963
964 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965 ac_prev=mandir ;;
966 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
967 mandir=$ac_optarg ;;
968
969 -nfp | --nfp | --nf)
970 # Obsolete; use --without-fp.
971 with_fp=no ;;
972
973 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974 | --no-cr | --no-c | -n)
975 no_create=yes ;;
976
977 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
978 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
979 no_recursion=yes ;;
980
981 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
982 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
983 | --oldin | --oldi | --old | --ol | --o)
984 ac_prev=oldincludedir ;;
985 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
986 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
987 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
988 oldincludedir=$ac_optarg ;;
989
990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991 ac_prev=prefix ;;
992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
993 prefix=$ac_optarg ;;
994
995 -program-prefix | --program-prefix | --program-prefi | --program-pref \
996 | --program-pre | --program-pr | --program-p)
997 ac_prev=program_prefix ;;
998 -program-prefix=* | --program-prefix=* | --program-prefi=* \
999 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1000 program_prefix=$ac_optarg ;;
1001
1002 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1003 | --program-suf | --program-su | --program-s)
1004 ac_prev=program_suffix ;;
1005 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1006 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1007 program_suffix=$ac_optarg ;;
1008
1009 -program-transform-name | --program-transform-name \
1010 | --program-transform-nam | --program-transform-na \
1011 | --program-transform-n | --program-transform- \
1012 | --program-transform | --program-transfor \
1013 | --program-transfo | --program-transf \
1014 | --program-trans | --program-tran \
1015 | --progr-tra | --program-tr | --program-t)
1016 ac_prev=program_transform_name ;;
1017 -program-transform-name=* | --program-transform-name=* \
1018 | --program-transform-nam=* | --program-transform-na=* \
1019 | --program-transform-n=* | --program-transform-=* \
1020 | --program-transform=* | --program-transfor=* \
1021 | --program-transfo=* | --program-transf=* \
1022 | --program-trans=* | --program-tran=* \
1023 | --progr-tra=* | --program-tr=* | --program-t=*)
1024 program_transform_name=$ac_optarg ;;
1025
1026 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027 ac_prev=pdfdir ;;
1028 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1029 pdfdir=$ac_optarg ;;
1030
1031 -psdir | --psdir | --psdi | --psd | --ps)
1032 ac_prev=psdir ;;
1033 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1034 psdir=$ac_optarg ;;
1035
1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037 | -silent | --silent | --silen | --sile | --sil)
1038 silent=yes ;;
1039
1040 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1041 ac_prev=sbindir ;;
1042 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1043 | --sbi=* | --sb=*)
1044 sbindir=$ac_optarg ;;
1045
1046 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1047 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1048 | --sharedst | --shareds | --shared | --share | --shar \
1049 | --sha | --sh)
1050 ac_prev=sharedstatedir ;;
1051 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1052 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1053 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054 | --sha=* | --sh=*)
1055 sharedstatedir=$ac_optarg ;;
1056
1057 -site | --site | --sit)
1058 ac_prev=site ;;
1059 -site=* | --site=* | --sit=*)
1060 site=$ac_optarg ;;
1061
1062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1063 ac_prev=srcdir ;;
1064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1065 srcdir=$ac_optarg ;;
1066
1067 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1068 | --syscon | --sysco | --sysc | --sys | --sy)
1069 ac_prev=sysconfdir ;;
1070 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1071 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1072 sysconfdir=$ac_optarg ;;
1073
1074 -target | --target | --targe | --targ | --tar | --ta | --t)
1075 ac_prev=target_alias ;;
1076 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1077 target_alias=$ac_optarg ;;
1078
1079 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1080 verbose=yes ;;
1081
1082 -version | --version | --versio | --versi | --vers | -V)
1083 ac_init_version=: ;;
1084
1085 -with-* | --with-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error "invalid package name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1093 *"
1094"with_$ac_useropt"
1095"*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval with_$ac_useropt=\$ac_optarg ;;
1100
1101 -without-* | --without-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1109 *"
1110"with_$ac_useropt"
1111"*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=no ;;
1116
1117 --x)
1118 # Obsolete; use --with-x.
1119 with_x=yes ;;
1120
1121 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1122 | --x-incl | --x-inc | --x-in | --x-i)
1123 ac_prev=x_includes ;;
1124 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1125 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1126 x_includes=$ac_optarg ;;
1127
1128 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1129 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1130 ac_prev=x_libraries ;;
1131 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1132 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1133 x_libraries=$ac_optarg ;;
1134
1135 -*) as_fn_error "unrecognized option: \`$ac_option'
1136Try \`$0 --help' for more information."
1137 ;;
1138
1139 *=*)
1140 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1141 # Reject names that are not valid shell variable names.
1142 case $ac_envvar in #(
1143 '' | [0-9]* | *[!_$as_cr_alnum]* )
1144 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1145 esac
1146 eval $ac_envvar=\$ac_optarg
1147 export $ac_envvar ;;
1148
1149 *)
1150 # FIXME: should be removed in autoconf 3.0.
1151 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1155 ;;
1156
1157 esac
1158done
1159
1160if test -n "$ac_prev"; then
1161 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1162 as_fn_error "missing argument to $ac_option"
1163fi
1164
1165if test -n "$ac_unrecognized_opts"; then
1166 case $enable_option_checking in
1167 no) ;;
1168 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1169 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1170 esac
1171fi
1172
1173# Check all directory arguments for consistency.
1174for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175 datadir sysconfdir sharedstatedir localstatedir includedir \
1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1177 libdir localedir mandir
1178do
1179 eval ac_val=\$$ac_var
1180 # Remove trailing slashes.
1181 case $ac_val in
1182 */ )
1183 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1184 eval $ac_var=\$ac_val;;
1185 esac
1186 # Be sure to have absolute directory names.
1187 case $ac_val in
1188 [\\/$]* | ?:[\\/]* ) continue;;
1189 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1190 esac
1191 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1192done
1193
1194# There might be people who depend on the old broken behavior: `$host'
1195# used to hold the argument of --host etc.
1196# FIXME: To remove some day.
1197build=$build_alias
1198host=$host_alias
1199target=$target_alias
1200
1201# FIXME: To remove some day.
1202if test "x$host_alias" != x; then
1203 if test "x$build_alias" = x; then
1204 cross_compiling=maybe
1205 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1206 If a cross compiler is detected then cross compile mode will be used." >&2
1207 elif test "x$build_alias" != "x$host_alias"; then
1208 cross_compiling=yes
1209 fi
1210fi
1211
1212ac_tool_prefix=
1213test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214
1215test "$silent" = yes && exec 6>/dev/null
1216
1217
1218ac_pwd=`pwd` && test -n "$ac_pwd" &&
1219ac_ls_di=`ls -di .` &&
1220ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1221 as_fn_error "working directory cannot be determined"
1222test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 as_fn_error "pwd does not report name of working directory"
1224
1225
1226# Find the source files, if location was not specified.
1227if test -z "$srcdir"; then
1228 ac_srcdir_defaulted=yes
1229 # Try the directory containing this script, then the parent directory.
1230 ac_confdir=`$as_dirname -- "$as_myself" ||
1231$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1232 X"$as_myself" : 'X\(//\)[^/]' \| \
1233 X"$as_myself" : 'X\(//\)$' \| \
1234 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1235$as_echo X"$as_myself" |
1236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1237 s//\1/
1238 q
1239 }
1240 /^X\(\/\/\)[^/].*/{
1241 s//\1/
1242 q
1243 }
1244 /^X\(\/\/\)$/{
1245 s//\1/
1246 q
1247 }
1248 /^X\(\/\).*/{
1249 s//\1/
1250 q
1251 }
1252 s/.*/./; q'`
1253 srcdir=$ac_confdir
1254 if test ! -r "$srcdir/$ac_unique_file"; then
1255 srcdir=..
1256 fi
1257else
1258 ac_srcdir_defaulted=no
1259fi
1260if test ! -r "$srcdir/$ac_unique_file"; then
1261 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1262 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1263fi
1264ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1265ac_abs_confdir=`(
1266 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1267 pwd)`
1268# When building in place, set srcdir=.
1269if test "$ac_abs_confdir" = "$ac_pwd"; then
1270 srcdir=.
1271fi
1272# Remove unnecessary trailing slashes from srcdir.
1273# Double slashes in file names in object file debugging info
1274# mess up M-x gdb in Emacs.
1275case $srcdir in
1276*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277esac
1278for ac_var in $ac_precious_vars; do
1279 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_env_${ac_var}_value=\$${ac_var}
1281 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1282 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1283done
1284
1285#
1286# Report the --help message.
1287#
1288if test "$ac_init_help" = "long"; then
1289 # Omit some internal or obsolete options to make the list less imposing.
1290 # This message is too long to be a string in the A/UX 3.1 sh.
1291 cat <<_ACEOF
1292\`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
1293
1294Usage: $0 [OPTION]... [VAR=VALUE]...
1295
1296To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297VAR=VALUE. See below for descriptions of some of the useful variables.
1298
1299Defaults for the options are specified in brackets.
1300
1301Configuration:
1302 -h, --help display this help and exit
1303 --help=short display options specific to this package
1304 --help=recursive display the short help of all the included packages
1305 -V, --version display version information and exit
1306 -q, --quiet, --silent do not print \`checking...' messages
1307 --cache-file=FILE cache test results in FILE [disabled]
1308 -C, --config-cache alias for \`--cache-file=config.cache'
1309 -n, --no-create do not create output files
1310 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1311
1312Installation directories:
1313 --prefix=PREFIX install architecture-independent files in PREFIX
1314 [$ac_default_prefix]
1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1316 [PREFIX]
1317
1318By default, \`make install' will install all the files in
1319\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1320an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321for instance \`--prefix=\$HOME'.
1322
1323For better control, use the options below.
1324
1325Fine tuning of the installation directories:
1326 --bindir=DIR user executables [EPREFIX/bin]
1327 --sbindir=DIR system admin executables [EPREFIX/sbin]
1328 --libexecdir=DIR program executables [EPREFIX/libexec]
1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1332 --libdir=DIR object code libraries [EPREFIX/lib]
1333 --includedir=DIR C header files [PREFIX/include]
1334 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1337 --infodir=DIR info documentation [DATAROOTDIR/info]
1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1339 --mandir=DIR man documentation [DATAROOTDIR/man]
1340 --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath]
1341 --htmldir=DIR html documentation [DOCDIR]
1342 --dvidir=DIR dvi documentation [DOCDIR]
1343 --pdfdir=DIR pdf documentation [DOCDIR]
1344 --psdir=DIR ps documentation [DOCDIR]
1345_ACEOF
1346
1347 cat <<\_ACEOF
1348
1349Program names:
1350 --program-prefix=PREFIX prepend PREFIX to installed program names
1351 --program-suffix=SUFFIX append SUFFIX to installed program names
1352 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1353
1354System types:
1355 --build=BUILD configure for building on BUILD [guessed]
1356 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1357 --target=TARGET configure for building compilers for TARGET [HOST]
1358_ACEOF
1359fi
1360
1361if test -n "$ac_init_help"; then
1362 case $ac_init_help in
1363 short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
1364 esac
1365 cat <<\_ACEOF
1366
1367Optional Features:
1368 --disable-option-checking ignore unrecognized --enable/--with options
1369 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1370 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1371 --disable-dependency-tracking speeds up one-time build
1372 --enable-dependency-tracking do not reject slow dependency extractors
1373 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1374 --enable-shared[=PKGS] build shared libraries [default=yes]
1375 --enable-static[=PKGS] build static libraries [default=yes]
1376 --enable-fast-install[=PKGS]
1377 optimize for fast installation [default=yes]
1378 --disable-libtool-lock avoid locking (might break parallel builds)
1379 --enable-maintainer-mode enable make rules and dependencies not useful
1380 (and sometimes confusing) to the casual installer
1381 --enable-multilib build many library versions (default)
1382
1383Optional Packages:
1384 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1385 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1386 --with-pic try to use only PIC/non-PIC objects [default=use
1387 both]
1388 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1389
1390Some influential environment variables:
1391 CC C compiler command
1392 CFLAGS C compiler flags
1393 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1394 nonstandard directory <lib dir>
1395 LIBS libraries to pass to the linker, e.g. -l<library>
1396 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1397 you have headers in a nonstandard directory <include dir>
1398 CPP C preprocessor
1399
1400Use these variables to override the choices made by `configure' or to help
1401it to find libraries and programs with nonstandard names/locations.
1402
1403Report bugs to the package provider.
1404_ACEOF
1405ac_status=$?
1406fi
1407
1408if test "$ac_init_help" = "recursive"; then
1409 # If there are subdirs, report their specific --help.
1410 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1411 test -d "$ac_dir" ||
1412 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1413 continue
1414 ac_builddir=.
1415
1416case "$ac_dir" in
1417.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418*)
1419 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1420 # A ".." for each directory in $ac_dir_suffix.
1421 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1422 case $ac_top_builddir_sub in
1423 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1424 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1425 esac ;;
1426esac
1427ac_abs_top_builddir=$ac_pwd
1428ac_abs_builddir=$ac_pwd$ac_dir_suffix
1429# for backward compatibility:
1430ac_top_builddir=$ac_top_build_prefix
1431
1432case $srcdir in
1433 .) # We are building in place.
1434 ac_srcdir=.
1435 ac_top_srcdir=$ac_top_builddir_sub
1436 ac_abs_top_srcdir=$ac_pwd ;;
1437 [\\/]* | ?:[\\/]* ) # Absolute name.
1438 ac_srcdir=$srcdir$ac_dir_suffix;
1439 ac_top_srcdir=$srcdir
1440 ac_abs_top_srcdir=$srcdir ;;
1441 *) # Relative name.
1442 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1443 ac_top_srcdir=$ac_top_build_prefix$srcdir
1444 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1445esac
1446ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1447
1448 cd "$ac_dir" || { ac_status=$?; continue; }
1449 # Check for guested configure.
1450 if test -f "$ac_srcdir/configure.gnu"; then
1451 echo &&
1452 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1453 elif test -f "$ac_srcdir/configure"; then
1454 echo &&
1455 $SHELL "$ac_srcdir/configure" --help=recursive
1456 else
1457 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1458 fi || ac_status=$?
1459 cd "$ac_pwd" || { ac_status=$?; break; }
1460 done
1461fi
1462
1463test -n "$ac_init_help" && exit $ac_status
1464if $ac_init_version; then
1465 cat <<\_ACEOF
1466GCC Quad-precision Math Library configure 0.1
1467generated by GNU Autoconf 2.64
1468
1469Copyright (C) 2009 Free Software Foundation, Inc.
1470This configure script is free software; the Free Software Foundation
1471gives unlimited permission to copy, distribute and modify it.
1472_ACEOF
1473 exit
1474fi
1475
1476## ------------------------ ##
1477## Autoconf initialization. ##
1478## ------------------------ ##
1479
1480# ac_fn_c_try_compile LINENO
1481# --------------------------
1482# Try to compile conftest.$ac_ext, and return whether this succeeded.
1483ac_fn_c_try_compile ()
1484{
1485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1486 rm -f conftest.$ac_objext
1487 if { { ac_try="$ac_compile"
1488case "(($ac_try" in
1489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1490 *) ac_try_echo=$ac_try;;
1491esac
1492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1493$as_echo "$ac_try_echo"; } >&5
1494 (eval "$ac_compile") 2>conftest.err
1495 ac_status=$?
1496 if test -s conftest.err; then
1497 grep -v '^ *+' conftest.err >conftest.er1
1498 cat conftest.er1 >&5
1499 mv -f conftest.er1 conftest.err
1500 fi
1501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502 test $ac_status = 0; } && {
1503 test -z "$ac_c_werror_flag" ||
1504 test ! -s conftest.err
1505 } && test -s conftest.$ac_objext; then :
1506 ac_retval=0
1507else
1508 $as_echo "$as_me: failed program was:" >&5
1509sed 's/^/| /' conftest.$ac_ext >&5
1510
1511 ac_retval=1
1512fi
1513 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1514 return $ac_retval
1515
1516} # ac_fn_c_try_compile
1517
1518# ac_fn_c_try_link LINENO
1519# -----------------------
1520# Try to link conftest.$ac_ext, and return whether this succeeded.
1521ac_fn_c_try_link ()
1522{
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 rm -f conftest.$ac_objext conftest$ac_exeext
1525 if { { ac_try="$ac_link"
1526case "(($ac_try" in
1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1529esac
1530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531$as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_link") 2>conftest.err
1533 ac_status=$?
1534 if test -s conftest.err; then
1535 grep -v '^ *+' conftest.err >conftest.er1
1536 cat conftest.er1 >&5
1537 mv -f conftest.er1 conftest.err
1538 fi
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } && {
1541 test -z "$ac_c_werror_flag" ||
1542 test ! -s conftest.err
1543 } && test -s conftest$ac_exeext && {
1544 test "$cross_compiling" = yes ||
1545 $as_test_x conftest$ac_exeext
1546 }; then :
1547 ac_retval=0
1548else
1549 $as_echo "$as_me: failed program was:" >&5
1550sed 's/^/| /' conftest.$ac_ext >&5
1551
1552 ac_retval=1
1553fi
1554 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1555 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1556 # interfere with the next link command; also delete a directory that is
1557 # left behind by Apple's compiler. We do this before executing the actions.
1558 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1560 return $ac_retval
1561
1562} # ac_fn_c_try_link
1563
1564# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1565# -------------------------------------------------------
1566# Tests whether HEADER exists and can be compiled using the include files in
1567# INCLUDES, setting the cache variable VAR accordingly.
1568ac_fn_c_check_header_compile ()
1569{
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1572$as_echo_n "checking for $2... " >&6; }
1573if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1574 $as_echo_n "(cached) " >&6
1575else
1576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1577/* end confdefs.h. */
1578$4
1579#include <$2>
1580_ACEOF
1581if ac_fn_c_try_compile "$LINENO"; then :
1582 eval "$3=yes"
1583else
1584 eval "$3=no"
1585fi
1586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1587fi
1588eval ac_res=\$$3
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1590$as_echo "$ac_res" >&6; }
1591 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1592
1593} # ac_fn_c_check_header_compile
1594
1595# ac_fn_c_try_cpp LINENO
1596# ----------------------
1597# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1598ac_fn_c_try_cpp ()
1599{
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if { { ac_try="$ac_cpp conftest.$ac_ext"
1602case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605esac
1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607$as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } >/dev/null && {
1617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 }; then :
1620 ac_retval=0
1621else
1622 $as_echo "$as_me: failed program was:" >&5
1623sed 's/^/| /' conftest.$ac_ext >&5
1624
1625 ac_retval=1
1626fi
1627 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1628 return $ac_retval
1629
1630} # ac_fn_c_try_cpp
1631
1632# ac_fn_c_try_run LINENO
1633# ----------------------
1634# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1635# that executables *can* be run.
1636ac_fn_c_try_run ()
1637{
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 if { { ac_try="$ac_link"
1640case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643esac
1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645$as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_link") 2>&5
1647 ac_status=$?
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1650 { { case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653esac
1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655$as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_try") 2>&5
1657 ac_status=$?
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; }; }; then :
1660 ac_retval=0
1661else
1662 $as_echo "$as_me: program exited with status $ac_status" >&5
1663 $as_echo "$as_me: failed program was:" >&5
1664sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=$ac_status
1667fi
1668 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1669 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1670 return $ac_retval
1671
1672} # ac_fn_c_try_run
1673
1674# ac_fn_c_check_func LINENO FUNC VAR
1675# ----------------------------------
1676# Tests whether FUNC exists, setting the cache variable VAR accordingly
1677ac_fn_c_check_func ()
1678{
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681$as_echo_n "checking for $2... " >&6; }
1682if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1683 $as_echo_n "(cached) " >&6
1684else
1685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686/* end confdefs.h. */
1687/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1689#define $2 innocuous_$2
1690
1691/* System header to define __stub macros and hopefully few prototypes,
1692 which can conflict with char $2 (); below.
1693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1694 <limits.h> exists even on freestanding compilers. */
1695
1696#ifdef __STDC__
1697# include <limits.h>
1698#else
1699# include <assert.h>
1700#endif
1701
1702#undef $2
1703
1704/* Override any GCC internal prototype to avoid an error.
1705 Use char because int might match the return type of a GCC
1706 builtin and then its argument prototype would still apply. */
1707#ifdef __cplusplus
1708extern "C"
1709#endif
1710char $2 ();
1711/* The GNU C library defines this for functions which it implements
1712 to always fail with ENOSYS. Some functions are actually named
1713 something starting with __ and the normal name is an alias. */
1714#if defined __stub_$2 || defined __stub___$2
1715choke me
1716#endif
1717
1718int
1719main ()
1720{
1721return $2 ();
1722 ;
1723 return 0;
1724}
1725_ACEOF
1726if ac_fn_c_try_link "$LINENO"; then :
1727 eval "$3=yes"
1728else
1729 eval "$3=no"
1730fi
1731rm -f core conftest.err conftest.$ac_objext \
1732 conftest$ac_exeext conftest.$ac_ext
1733fi
1734eval ac_res=\$$3
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736$as_echo "$ac_res" >&6; }
1737 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1738
1739} # ac_fn_c_check_func
1740cat >config.log <<_ACEOF
1741This file contains any messages produced by compilers while
1742running configure, to aid debugging if configure makes a mistake.
1743
1744It was created by GCC Quad-precision Math Library $as_me 0.1, which was
1745generated by GNU Autoconf 2.64. Invocation command line was
1746
1747 $ $0 $@
1748
1749_ACEOF
1750exec 5>>config.log
1751{
1752cat <<_ASUNAME
1753## --------- ##
1754## Platform. ##
1755## --------- ##
1756
1757hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1758uname -m = `(uname -m) 2>/dev/null || echo unknown`
1759uname -r = `(uname -r) 2>/dev/null || echo unknown`
1760uname -s = `(uname -s) 2>/dev/null || echo unknown`
1761uname -v = `(uname -v) 2>/dev/null || echo unknown`
1762
1763/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1764/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1765
1766/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1767/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1768/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1769/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1770/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1771/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1772/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1773
1774_ASUNAME
1775
1776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777for as_dir in $PATH
1778do
1779 IFS=$as_save_IFS
1780 test -z "$as_dir" && as_dir=.
1781 $as_echo "PATH: $as_dir"
1782 done
1783IFS=$as_save_IFS
1784
1785} >&5
1786
1787cat >&5 <<_ACEOF
1788
1789
1790## ----------- ##
1791## Core tests. ##
1792## ----------- ##
1793
1794_ACEOF
1795
1796
1797# Keep a trace of the command line.
1798# Strip out --no-create and --no-recursion so they do not pile up.
1799# Strip out --silent because we don't want to record it for future runs.
1800# Also quote any args containing shell meta-characters.
1801# Make two passes to allow for proper duplicate-argument suppression.
1802ac_configure_args=
1803ac_configure_args0=
1804ac_configure_args1=
1805ac_must_keep_next=false
1806for ac_pass in 1 2
1807do
1808 for ac_arg
1809 do
1810 case $ac_arg in
1811 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1812 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1813 | -silent | --silent | --silen | --sile | --sil)
1814 continue ;;
1815 *\'*)
1816 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1817 esac
1818 case $ac_pass in
1819 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1820 2)
1821 as_fn_append ac_configure_args1 " '$ac_arg'"
1822 if test $ac_must_keep_next = true; then
1823 ac_must_keep_next=false # Got value, back to normal.
1824 else
1825 case $ac_arg in
1826 *=* | --config-cache | -C | -disable-* | --disable-* \
1827 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1828 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1829 | -with-* | --with-* | -without-* | --without-* | --x)
1830 case "$ac_configure_args0 " in
1831 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1832 esac
1833 ;;
1834 -* ) ac_must_keep_next=true ;;
1835 esac
1836 fi
1837 as_fn_append ac_configure_args " '$ac_arg'"
1838 ;;
1839 esac
1840 done
1841done
1842{ ac_configure_args0=; unset ac_configure_args0;}
1843{ ac_configure_args1=; unset ac_configure_args1;}
1844
1845# When interrupted or exit'd, cleanup temporary files, and complete
1846# config.log. We remove comments because anyway the quotes in there
1847# would cause problems or look ugly.
1848# WARNING: Use '\'' to represent an apostrophe within the trap.
1849# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1850trap 'exit_status=$?
1851 # Save into config.log some information that might help in debugging.
1852 {
1853 echo
1854
1855 cat <<\_ASBOX
1856## ---------------- ##
1857## Cache variables. ##
1858## ---------------- ##
1859_ASBOX
1860 echo
1861 # The following way of writing the cache mishandles newlines in values,
1862(
1863 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1864 eval ac_val=\$$ac_var
1865 case $ac_val in #(
1866 *${as_nl}*)
1867 case $ac_var in #(
1868 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1869$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1870 esac
1871 case $ac_var in #(
1872 _ | IFS | as_nl) ;; #(
1873 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1874 *) { eval $ac_var=; unset $ac_var;} ;;
1875 esac ;;
1876 esac
1877 done
1878 (set) 2>&1 |
1879 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1880 *${as_nl}ac_space=\ *)
1881 sed -n \
1882 "s/'\''/'\''\\\\'\'''\''/g;
1883 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1884 ;; #(
1885 *)
1886 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1887 ;;
1888 esac |
1889 sort
1890)
1891 echo
1892
1893 cat <<\_ASBOX
1894## ----------------- ##
1895## Output variables. ##
1896## ----------------- ##
1897_ASBOX
1898 echo
1899 for ac_var in $ac_subst_vars
1900 do
1901 eval ac_val=\$$ac_var
1902 case $ac_val in
1903 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1904 esac
1905 $as_echo "$ac_var='\''$ac_val'\''"
1906 done | sort
1907 echo
1908
1909 if test -n "$ac_subst_files"; then
1910 cat <<\_ASBOX
1911## ------------------- ##
1912## File substitutions. ##
1913## ------------------- ##
1914_ASBOX
1915 echo
1916 for ac_var in $ac_subst_files
1917 do
1918 eval ac_val=\$$ac_var
1919 case $ac_val in
1920 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1921 esac
1922 $as_echo "$ac_var='\''$ac_val'\''"
1923 done | sort
1924 echo
1925 fi
1926
1927 if test -s confdefs.h; then
1928 cat <<\_ASBOX
1929## ----------- ##
1930## confdefs.h. ##
1931## ----------- ##
1932_ASBOX
1933 echo
1934 cat confdefs.h
1935 echo
1936 fi
1937 test "$ac_signal" != 0 &&
1938 $as_echo "$as_me: caught signal $ac_signal"
1939 $as_echo "$as_me: exit $exit_status"
1940 } >&5
1941 rm -f core *.core core.conftest.* &&
1942 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1943 exit $exit_status
1944' 0
1945for ac_signal in 1 2 13 15; do
1946 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1947done
1948ac_signal=0
1949
1950# confdefs.h avoids OS command line length limits that DEFS can exceed.
1951rm -f -r conftest* confdefs.h
1952
1953$as_echo "/* confdefs.h */" > confdefs.h
1954
1955# Predefined preprocessor variables.
1956
1957cat >>confdefs.h <<_ACEOF
1958#define PACKAGE_NAME "$PACKAGE_NAME"
1959_ACEOF
1960
1961cat >>confdefs.h <<_ACEOF
1962#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1963_ACEOF
1964
1965cat >>confdefs.h <<_ACEOF
1966#define PACKAGE_VERSION "$PACKAGE_VERSION"
1967_ACEOF
1968
1969cat >>confdefs.h <<_ACEOF
1970#define PACKAGE_STRING "$PACKAGE_STRING"
1971_ACEOF
1972
1973cat >>confdefs.h <<_ACEOF
1974#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1975_ACEOF
1976
1977cat >>confdefs.h <<_ACEOF
1978#define PACKAGE_URL "$PACKAGE_URL"
1979_ACEOF
1980
1981
1982# Let the site file select an alternate cache file if it wants to.
1983# Prefer an explicitly selected file to automatically selected ones.
1984ac_site_file1=NONE
1985ac_site_file2=NONE
1986if test -n "$CONFIG_SITE"; then
1987 ac_site_file1=$CONFIG_SITE
1988elif test "x$prefix" != xNONE; then
1989 ac_site_file1=$prefix/share/config.site
1990 ac_site_file2=$prefix/etc/config.site
1991else
1992 ac_site_file1=$ac_default_prefix/share/config.site
1993 ac_site_file2=$ac_default_prefix/etc/config.site
1994fi
1995for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1996do
1997 test "x$ac_site_file" = xNONE && continue
1998 if test -r "$ac_site_file"; then
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2000$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2001 sed 's/^/| /' "$ac_site_file" >&5
2002 . "$ac_site_file"
2003 fi
2004done
2005
2006if test -r "$cache_file"; then
2007 # Some versions of bash will fail to source /dev/null (special
2008 # files actually), so we avoid doing that.
2009 if test -f "$cache_file"; then
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2011$as_echo "$as_me: loading cache $cache_file" >&6;}
2012 case $cache_file in
2013 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2014 *) . "./$cache_file";;
2015 esac
2016 fi
2017else
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2019$as_echo "$as_me: creating cache $cache_file" >&6;}
2020 >$cache_file
2021fi
2022
2023# Check that the precious variables saved in the cache have kept the same
2024# value.
2025ac_cache_corrupted=false
2026for ac_var in $ac_precious_vars; do
2027 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2028 eval ac_new_set=\$ac_env_${ac_var}_set
2029 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2030 eval ac_new_val=\$ac_env_${ac_var}_value
2031 case $ac_old_set,$ac_new_set in
2032 set,)
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2034$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2035 ac_cache_corrupted=: ;;
2036 ,set)
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2038$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2039 ac_cache_corrupted=: ;;
2040 ,);;
2041 *)
2042 if test "x$ac_old_val" != "x$ac_new_val"; then
2043 # differences in whitespace do not lead to failure.
2044 ac_old_val_w=`echo x $ac_old_val`
2045 ac_new_val_w=`echo x $ac_new_val`
2046 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2048$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2049 ac_cache_corrupted=:
2050 else
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2052$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2053 eval $ac_var=\$ac_old_val
2054 fi
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2056$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2058$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2059 fi;;
2060 esac
2061 # Pass precious variables to config.status.
2062 if test "$ac_new_set" = set; then
2063 case $ac_new_val in
2064 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2065 *) ac_arg=$ac_var=$ac_new_val ;;
2066 esac
2067 case " $ac_configure_args " in
2068 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2069 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2070 esac
2071 fi
2072done
2073if $ac_cache_corrupted; then
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2077$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2078 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2079fi
2080## -------------------- ##
2081## Main body of script. ##
2082## -------------------- ##
2083
2084ac_ext=c
2085ac_cpp='$CPP $CPPFLAGS'
2086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2088ac_compiler_gnu=$ac_cv_c_compiler_gnu
2089
2090
2091
2092
2093
2094ac_config_headers="$ac_config_headers config.h"
2095
2096
2097# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2098#
2099# You will slowly go insane if you do not grok the following fact: when
2100# building this library, the top-level /target/ becomes the library's /host/.
2101#
2102# configure then causes --target to default to --host, exactly like any
2103# other package using autoconf. Therefore, 'target' and 'host' will
2104# always be the same. This makes sense both for native and cross compilers
2105# just think about it for a little while. :-)
2106#
2107# Also, if this library is being configured as part of a cross compiler, the
2108# top-level configure script will pass the "real" host as $with_cross_host.
2109#
2110# Do not delete or change the following two lines. For why, see
2111# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2112ac_aux_dir=
2113for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2114 for ac_t in install-sh install.sh shtool; do
2115 if test -f "$ac_dir/$ac_t"; then
2116 ac_aux_dir=$ac_dir
2117 ac_install_sh="$ac_aux_dir/$ac_t -c"
2118 break 2
2119 fi
2120 done
2121done
2122if test -z "$ac_aux_dir"; then
2123 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2124fi
2125
2126# These three variables are undocumented and unsupported,
2127# and are intended to be withdrawn in a future Autoconf release.
2128# They can cause serious problems if a builder's source tree is in a directory
2129# whose full name contains unusual characters.
2130ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2131ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2132ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2133
2134
2135# Make sure we can run config.sub.
2136$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2137 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2138
2139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2140$as_echo_n "checking build system type... " >&6; }
2141if test "${ac_cv_build+set}" = set; then :
2142 $as_echo_n "(cached) " >&6
2143else
2144 ac_build_alias=$build_alias
2145test "x$ac_build_alias" = x &&
2146 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2147test "x$ac_build_alias" = x &&
2148 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2149ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2150 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2151
2152fi
2153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2154$as_echo "$ac_cv_build" >&6; }
2155case $ac_cv_build in
2156*-*-*) ;;
2157*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2158esac
2159build=$ac_cv_build
2160ac_save_IFS=$IFS; IFS='-'
2161set x $ac_cv_build
2162shift
2163build_cpu=$1
2164build_vendor=$2
2165shift; shift
2166# Remember, the first character of IFS is used to create $*,
2167# except with old shells:
2168build_os=$*
2169IFS=$ac_save_IFS
2170case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2171
2172
2173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2174$as_echo_n "checking host system type... " >&6; }
2175if test "${ac_cv_host+set}" = set; then :
2176 $as_echo_n "(cached) " >&6
2177else
2178 if test "x$host_alias" = x; then
2179 ac_cv_host=$ac_cv_build
2180else
2181 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2182 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2183fi
2184
2185fi
2186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2187$as_echo "$ac_cv_host" >&6; }
2188case $ac_cv_host in
2189*-*-*) ;;
2190*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2191esac
2192host=$ac_cv_host
2193ac_save_IFS=$IFS; IFS='-'
2194set x $ac_cv_host
2195shift
2196host_cpu=$1
2197host_vendor=$2
2198shift; shift
2199# Remember, the first character of IFS is used to create $*,
2200# except with old shells:
2201host_os=$*
2202IFS=$ac_save_IFS
2203case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2204
2205
2206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2207$as_echo_n "checking target system type... " >&6; }
2208if test "${ac_cv_target+set}" = set; then :
2209 $as_echo_n "(cached) " >&6
2210else
2211 if test "x$target_alias" = x; then
2212 ac_cv_target=$ac_cv_host
2213else
2214 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2215 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2216fi
2217
2218fi
2219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2220$as_echo "$ac_cv_target" >&6; }
2221case $ac_cv_target in
2222*-*-*) ;;
2223*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2224esac
2225target=$ac_cv_target
2226ac_save_IFS=$IFS; IFS='-'
2227set x $ac_cv_target
2228shift
2229target_cpu=$1
2230target_vendor=$2
2231shift; shift
2232# Remember, the first character of IFS is used to create $*,
2233# except with old shells:
2234target_os=$*
2235IFS=$ac_save_IFS
2236case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2237
2238
2239# The aliases save the names the user supplied, while $host etc.
2240# will get canonicalized.
2241test -n "$target_alias" &&
2242 test "$program_prefix$program_suffix$program_transform_name" = \
2243 NONENONEs,x,x, &&
2244 program_prefix=${target_alias}-
2245
2246target_alias=${target_alias-$host_alias}
2247
2248am__api_version='1.11'
2249
2250# Find a good install program. We prefer a C program (faster),
2251# so one script is as good as another. But avoid the broken or
2252# incompatible versions:
2253# SysV /etc/install, /usr/sbin/install
2254# SunOS /usr/etc/install
2255# IRIX /sbin/install
2256# AIX /bin/install
2257# AmigaOS /C/install, which installs bootblocks on floppy discs
2258# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2259# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2260# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2261# OS/2's system install, which has a completely different semantic
2262# ./install, which can be erroneously created by make from ./install.sh.
2263# Reject install programs that cannot install multiple files.
2264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2265$as_echo_n "checking for a BSD-compatible install... " >&6; }
2266if test -z "$INSTALL"; then
2267if test "${ac_cv_path_install+set}" = set; then :
2268 $as_echo_n "(cached) " >&6
2269else
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271for as_dir in $PATH
2272do
2273 IFS=$as_save_IFS
2274 test -z "$as_dir" && as_dir=.
2275 # Account for people who put trailing slashes in PATH elements.
2276case $as_dir/ in #((
2277 ./ | .// | /[cC]/* | \
2278 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2279 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2280 /usr/ucb/* ) ;;
2281 *)
2282 # OSF1 and SCO ODT 3.0 have their own names for install.
2283 # Don't use installbsd from OSF since it installs stuff as root
2284 # by default.
2285 for ac_prog in ginstall scoinst install; do
2286 for ac_exec_ext in '' $ac_executable_extensions; do
2287 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2288 if test $ac_prog = install &&
2289 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2290 # AIX install. It has an incompatible calling convention.
2291 :
2292 elif test $ac_prog = install &&
2293 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2294 # program-specific install script used by HP pwplus--don't use.
2295 :
2296 else
2297 rm -rf conftest.one conftest.two conftest.dir
2298 echo one > conftest.one
2299 echo two > conftest.two
2300 mkdir conftest.dir
2301 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2302 test -s conftest.one && test -s conftest.two &&
2303 test -s conftest.dir/conftest.one &&
2304 test -s conftest.dir/conftest.two
2305 then
2306 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2307 break 3
2308 fi
2309 fi
2310 fi
2311 done
2312 done
2313 ;;
2314esac
2315
2316 done
2317IFS=$as_save_IFS
2318
2319rm -rf conftest.one conftest.two conftest.dir
2320
2321fi
2322 if test "${ac_cv_path_install+set}" = set; then
2323 INSTALL=$ac_cv_path_install
2324 else
2325 # As a last resort, use the slow shell script. Don't cache a
2326 # value for INSTALL within a source directory, because that will
2327 # break other packages using the cache if that directory is
2328 # removed, or if the value is a relative name.
2329 INSTALL=$ac_install_sh
2330 fi
2331fi
2332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2333$as_echo "$INSTALL" >&6; }
2334
2335# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2336# It thinks the first close brace ends the variable substitution.
2337test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2338
2339test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2340
2341test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2342
2343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2344$as_echo_n "checking whether build environment is sane... " >&6; }
2345# Just in case
2346sleep 1
2347echo timestamp > conftest.file
2348# Reject unsafe characters in $srcdir or the absolute working directory
2349# name. Accept space and tab only in the latter.
2350am_lf='
2351'
2352case `pwd` in
2353 *[\\\"\#\$\&\'\`$am_lf]*)
2354 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2355esac
2356case $srcdir in
2357 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2358 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2359esac
2360
2361# Do `set' in a subshell so we don't clobber the current shell's
2362# arguments. Must try -L first in case configure is actually a
2363# symlink; some systems play weird games with the mod time of symlinks
2364# (eg FreeBSD returns the mod time of the symlink's containing
2365# directory).
2366if (
2367 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2368 if test "$*" = "X"; then
2369 # -L didn't work.
2370 set X `ls -t "$srcdir/configure" conftest.file`
2371 fi
2372 rm -f conftest.file
2373 if test "$*" != "X $srcdir/configure conftest.file" \
2374 && test "$*" != "X conftest.file $srcdir/configure"; then
2375
2376 # If neither matched, then we have a broken ls. This can happen
2377 # if, for instance, CONFIG_SHELL is bash and it inherits a
2378 # broken ls alias from the environment. This has actually
2379 # happened. Such a system could not be considered "sane".
2380 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2381alias in your environment" "$LINENO" 5
2382 fi
2383
2384 test "$2" = conftest.file
2385 )
2386then
2387 # Ok.
2388 :
2389else
2390 as_fn_error "newly created file is older than distributed files!
2391Check your system clock" "$LINENO" 5
2392fi
2393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2394$as_echo "yes" >&6; }
2395test "$program_prefix" != NONE &&
2396 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2397# Use a double $ so make ignores it.
2398test "$program_suffix" != NONE &&
2399 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2400# Double any \ or $.
2401# By default was `s,x,x', remove it if useless.
2402ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2403program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2404
2405# expand $ac_aux_dir to an absolute path
2406am_aux_dir=`cd $ac_aux_dir && pwd`
2407
2408if test x"${MISSING+set}" != xset; then
2409 case $am_aux_dir in
2410 *\ * | *\ *)
2411 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2412 *)
2413 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2414 esac
2415fi
2416# Use eval to expand $SHELL
2417if eval "$MISSING --run true"; then
2418 am_missing_run="$MISSING --run "
2419else
2420 am_missing_run=
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2422$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2423fi
2424
2425if test x"${install_sh}" != xset; then
2426 case $am_aux_dir in
2427 *\ * | *\ *)
2428 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2429 *)
2430 install_sh="\${SHELL} $am_aux_dir/install-sh"
2431 esac
2432fi
2433
2434# Installed binaries are usually stripped using `strip' when the user
2435# run `make install-strip'. However `strip' might not be the right
2436# tool to use in cross-compilation environments, therefore Automake
2437# will honor the `STRIP' environment variable to overrule this program.
2438if test "$cross_compiling" != no; then
2439 if test -n "$ac_tool_prefix"; then
2440 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2441set dummy ${ac_tool_prefix}strip; ac_word=$2
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2443$as_echo_n "checking for $ac_word... " >&6; }
2444if test "${ac_cv_prog_STRIP+set}" = set; then :
2445 $as_echo_n "(cached) " >&6
2446else
2447 if test -n "$STRIP"; then
2448 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2449else
2450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451for as_dir in $PATH
2452do
2453 IFS=$as_save_IFS
2454 test -z "$as_dir" && as_dir=.
2455 for ac_exec_ext in '' $ac_executable_extensions; do
2456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2457 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 break 2
2460 fi
2461done
2462 done
2463IFS=$as_save_IFS
2464
2465fi
2466fi
2467STRIP=$ac_cv_prog_STRIP
2468if test -n "$STRIP"; then
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2470$as_echo "$STRIP" >&6; }
2471else
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2473$as_echo "no" >&6; }
2474fi
2475
2476
2477fi
2478if test -z "$ac_cv_prog_STRIP"; then
2479 ac_ct_STRIP=$STRIP
2480 # Extract the first word of "strip", so it can be a program name with args.
2481set dummy strip; ac_word=$2
2482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2483$as_echo_n "checking for $ac_word... " >&6; }
2484if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2485 $as_echo_n "(cached) " >&6
2486else
2487 if test -n "$ac_ct_STRIP"; then
2488 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2489else
2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491for as_dir in $PATH
2492do
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497 ac_cv_prog_ac_ct_STRIP="strip"
2498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 break 2
2500 fi
2501done
2502 done
2503IFS=$as_save_IFS
2504
2505fi
2506fi
2507ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2508if test -n "$ac_ct_STRIP"; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2510$as_echo "$ac_ct_STRIP" >&6; }
2511else
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2513$as_echo "no" >&6; }
2514fi
2515
2516 if test "x$ac_ct_STRIP" = x; then
2517 STRIP=":"
2518 else
2519 case $cross_compiling:$ac_tool_warned in
2520yes:)
2521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2523ac_tool_warned=yes ;;
2524esac
2525 STRIP=$ac_ct_STRIP
2526 fi
2527else
2528 STRIP="$ac_cv_prog_STRIP"
2529fi
2530
2531fi
2532INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2533
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2535$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2536if test -z "$MKDIR_P"; then
2537 if test "${ac_cv_path_mkdir+set}" = set; then :
2538 $as_echo_n "(cached) " >&6
2539else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2542do
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_prog in mkdir gmkdir; do
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2548 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2549 'mkdir (GNU coreutils) '* | \
2550 'mkdir (coreutils) '* | \
2551 'mkdir (fileutils) '4.1*)
2552 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2553 break 3;;
2554 esac
2555 done
2556 done
2557 done
2558IFS=$as_save_IFS
2559
2560fi
2561
2562 if test "${ac_cv_path_mkdir+set}" = set; then
2563 MKDIR_P="$ac_cv_path_mkdir -p"
2564 else
2565 # As a last resort, use the slow shell script. Don't cache a
2566 # value for MKDIR_P within a source directory, because that will
2567 # break other packages using the cache if that directory is
2568 # removed, or if the value is a relative name.
2569 test -d ./--version && rmdir ./--version
2570 MKDIR_P="$ac_install_sh -d"
2571 fi
2572fi
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2574$as_echo "$MKDIR_P" >&6; }
2575
2576mkdir_p="$MKDIR_P"
2577case $mkdir_p in
2578 [\\/$]* | ?:[\\/]*) ;;
2579 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2580esac
2581
2582for ac_prog in gawk mawk nawk awk
2583do
2584 # Extract the first word of "$ac_prog", so it can be a program name with args.
2585set dummy $ac_prog; ac_word=$2
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587$as_echo_n "checking for $ac_word... " >&6; }
2588if test "${ac_cv_prog_AWK+set}" = set; then :
2589 $as_echo_n "(cached) " >&6
2590else
2591 if test -n "$AWK"; then
2592 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2593else
2594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595for as_dir in $PATH
2596do
2597 IFS=$as_save_IFS
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601 ac_cv_prog_AWK="$ac_prog"
2602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 break 2
2604 fi
2605done
2606 done
2607IFS=$as_save_IFS
2608
2609fi
2610fi
2611AWK=$ac_cv_prog_AWK
2612if test -n "$AWK"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2614$as_echo "$AWK" >&6; }
2615else
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617$as_echo "no" >&6; }
2618fi
2619
2620
2621 test -n "$AWK" && break
2622done
2623
2624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2625$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2626set x ${MAKE-make}
2627ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2628if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2629 $as_echo_n "(cached) " >&6
2630else
2631 cat >conftest.make <<\_ACEOF
2632SHELL = /bin/sh
2633all:
2634 @echo '@@@%%%=$(MAKE)=@@@%%%'
2635_ACEOF
2636# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2637case `${MAKE-make} -f conftest.make 2>/dev/null` in
2638 *@@@%%%=?*=@@@%%%*)
2639 eval ac_cv_prog_make_${ac_make}_set=yes;;
2640 *)
2641 eval ac_cv_prog_make_${ac_make}_set=no;;
2642esac
2643rm -f conftest.make
2644fi
2645if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2647$as_echo "yes" >&6; }
2648 SET_MAKE=
2649else
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651$as_echo "no" >&6; }
2652 SET_MAKE="MAKE=${MAKE-make}"
2653fi
2654
2655rm -rf .tst 2>/dev/null
2656mkdir .tst 2>/dev/null
2657if test -d .tst; then
2658 am__leading_dot=.
2659else
2660 am__leading_dot=_
2661fi
2662rmdir .tst 2>/dev/null
2663
2664if test "`cd $srcdir && pwd`" != "`pwd`"; then
2665 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2666 # is not polluted with repeated "-I."
2667 am__isrc=' -I$(srcdir)'
2668 # test to see if srcdir already configured
2669 if test -f $srcdir/config.status; then
2670 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2671 fi
2672fi
2673
2674# test whether we have cygpath
2675if test -z "$CYGPATH_W"; then
2676 if (cygpath --version) >/dev/null 2>/dev/null; then
2677 CYGPATH_W='cygpath -w'
2678 else
2679 CYGPATH_W=echo
2680 fi
2681fi
2682
2683
2684# Define the identity of the package.
2685 PACKAGE='libquadmath'
2686 VERSION='0.1'
2687
2688
2689cat >>confdefs.h <<_ACEOF
2690#define PACKAGE "$PACKAGE"
2691_ACEOF
2692
2693
2694cat >>confdefs.h <<_ACEOF
2695#define VERSION "$VERSION"
2696_ACEOF
2697
2698# Some tools Automake needs.
2699
2700ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2701
2702
2703AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2704
2705
2706AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2707
2708
2709AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2710
2711
2712MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2713
2714# We need awk for the "check" target. The system "awk" is bad on
2715# some platforms.
2716# Always define AMTAR for backward compatibility.
2717
2718AMTAR=${AMTAR-"${am_missing_run}tar"}
2719
2720am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2721
2722
2723
2724
2725
2726
2727ac_ext=c
2728ac_cpp='$CPP $CPPFLAGS'
2729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731ac_compiler_gnu=$ac_cv_c_compiler_gnu
2732if test -n "$ac_tool_prefix"; then
2733 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2734set dummy ${ac_tool_prefix}gcc; ac_word=$2
2735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2736$as_echo_n "checking for $ac_word... " >&6; }
2737if test "${ac_cv_prog_CC+set}" = set; then :
2738 $as_echo_n "(cached) " >&6
2739else
2740 if test -n "$CC"; then
2741 ac_cv_prog_CC="$CC" # Let the user override the test.
2742else
2743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744for as_dir in $PATH
2745do
2746 IFS=$as_save_IFS
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2750 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 break 2
2753 fi
2754done
2755 done
2756IFS=$as_save_IFS
2757
2758fi
2759fi
2760CC=$ac_cv_prog_CC
2761if test -n "$CC"; then
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2763$as_echo "$CC" >&6; }
2764else
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766$as_echo "no" >&6; }
2767fi
2768
2769
2770fi
2771if test -z "$ac_cv_prog_CC"; then
2772 ac_ct_CC=$CC
2773 # Extract the first word of "gcc", so it can be a program name with args.
2774set dummy gcc; ac_word=$2
2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776$as_echo_n "checking for $ac_word... " >&6; }
2777if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2778 $as_echo_n "(cached) " >&6
2779else
2780 if test -n "$ac_ct_CC"; then
2781 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2782else
2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784for as_dir in $PATH
2785do
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790 ac_cv_prog_ac_ct_CC="gcc"
2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2793 fi
2794done
2795 done
2796IFS=$as_save_IFS
2797
2798fi
2799fi
2800ac_ct_CC=$ac_cv_prog_ac_ct_CC
2801if test -n "$ac_ct_CC"; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2803$as_echo "$ac_ct_CC" >&6; }
2804else
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806$as_echo "no" >&6; }
2807fi
2808
2809 if test "x$ac_ct_CC" = x; then
2810 CC=""
2811 else
2812 case $cross_compiling:$ac_tool_warned in
2813yes:)
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2816ac_tool_warned=yes ;;
2817esac
2818 CC=$ac_ct_CC
2819 fi
2820else
2821 CC="$ac_cv_prog_CC"
2822fi
2823
2824if test -z "$CC"; then
2825 if test -n "$ac_tool_prefix"; then
2826 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2827set dummy ${ac_tool_prefix}cc; ac_word=$2
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2829$as_echo_n "checking for $ac_word... " >&6; }
2830if test "${ac_cv_prog_CC+set}" = set; then :
2831 $as_echo_n "(cached) " >&6
2832else
2833 if test -n "$CC"; then
2834 ac_cv_prog_CC="$CC" # Let the user override the test.
2835else
2836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837for as_dir in $PATH
2838do
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 ac_cv_prog_CC="${ac_tool_prefix}cc"
2844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2846 fi
2847done
2848 done
2849IFS=$as_save_IFS
2850
2851fi
2852fi
2853CC=$ac_cv_prog_CC
2854if test -n "$CC"; then
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2856$as_echo "$CC" >&6; }
2857else
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859$as_echo "no" >&6; }
2860fi
2861
2862
2863 fi
2864fi
2865if test -z "$CC"; then
2866 # Extract the first word of "cc", so it can be a program name with args.
2867set dummy cc; ac_word=$2
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2869$as_echo_n "checking for $ac_word... " >&6; }
2870if test "${ac_cv_prog_CC+set}" = set; then :
2871 $as_echo_n "(cached) " >&6
2872else
2873 if test -n "$CC"; then
2874 ac_cv_prog_CC="$CC" # Let the user override the test.
2875else
2876 ac_prog_rejected=no
2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878for as_dir in $PATH
2879do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2884 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2885 ac_prog_rejected=yes
2886 continue
2887 fi
2888 ac_cv_prog_CC="cc"
2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892done
2893 done
2894IFS=$as_save_IFS
2895
2896if test $ac_prog_rejected = yes; then
2897 # We found a bogon in the path, so make sure we never use it.
2898 set dummy $ac_cv_prog_CC
2899 shift
2900 if test $# != 0; then
2901 # We chose a different compiler from the bogus one.
2902 # However, it has the same basename, so the bogon will be chosen
2903 # first if we set CC to just the basename; use the full file name.
2904 shift
2905 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2906 fi
2907fi
2908fi
2909fi
2910CC=$ac_cv_prog_CC
2911if test -n "$CC"; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2913$as_echo "$CC" >&6; }
2914else
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916$as_echo "no" >&6; }
2917fi
2918
2919
2920fi
2921if test -z "$CC"; then
2922 if test -n "$ac_tool_prefix"; then
2923 for ac_prog in cl.exe
2924 do
2925 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2926set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928$as_echo_n "checking for $ac_word... " >&6; }
2929if test "${ac_cv_prog_CC+set}" = set; then :
2930 $as_echo_n "(cached) " >&6
2931else
2932 if test -n "$CC"; then
2933 ac_cv_prog_CC="$CC" # Let the user override the test.
2934else
2935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936for as_dir in $PATH
2937do
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2945 fi
2946done
2947 done
2948IFS=$as_save_IFS
2949
2950fi
2951fi
2952CC=$ac_cv_prog_CC
2953if test -n "$CC"; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2955$as_echo "$CC" >&6; }
2956else
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958$as_echo "no" >&6; }
2959fi
2960
2961
2962 test -n "$CC" && break
2963 done
2964fi
2965if test -z "$CC"; then
2966 ac_ct_CC=$CC
2967 for ac_prog in cl.exe
2968do
2969 # Extract the first word of "$ac_prog", so it can be a program name with args.
2970set dummy $ac_prog; ac_word=$2
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972$as_echo_n "checking for $ac_word... " >&6; }
2973if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2974 $as_echo_n "(cached) " >&6
2975else
2976 if test -n "$ac_ct_CC"; then
2977 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2978else
2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980for as_dir in $PATH
2981do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986 ac_cv_prog_ac_ct_CC="$ac_prog"
2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 break 2
2989 fi
2990done
2991 done
2992IFS=$as_save_IFS
2993
2994fi
2995fi
2996ac_ct_CC=$ac_cv_prog_ac_ct_CC
2997if test -n "$ac_ct_CC"; then
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2999$as_echo "$ac_ct_CC" >&6; }
3000else
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002$as_echo "no" >&6; }
3003fi
3004
3005
3006 test -n "$ac_ct_CC" && break
3007done
3008
3009 if test "x$ac_ct_CC" = x; then
3010 CC=""
3011 else
3012 case $cross_compiling:$ac_tool_warned in
3013yes:)
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3016ac_tool_warned=yes ;;
3017esac
3018 CC=$ac_ct_CC
3019 fi
3020fi
3021
3022fi
3023
3024
3025test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3027as_fn_error "no acceptable C compiler found in \$PATH
3028See \`config.log' for more details." "$LINENO" 5; }
3029
3030# Provide some information about the compiler.
3031$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3032set X $ac_compile
3033ac_compiler=$2
3034for ac_option in --version -v -V -qversion; do
3035 { { ac_try="$ac_compiler $ac_option >&5"
3036case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039esac
3040eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3041$as_echo "$ac_try_echo"; } >&5
3042 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3043 ac_status=$?
3044 if test -s conftest.err; then
3045 sed '10a\
3046... rest of stderr output deleted ...
3047 10q' conftest.err >conftest.er1
3048 cat conftest.er1 >&5
3049 rm -f conftest.er1 conftest.err
3050 fi
3051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3052 test $ac_status = 0; }
3053done
3054
3055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3056/* end confdefs.h. */
3057
3058int
3059main ()
3060{
3061
3062 ;
3063 return 0;
3064}
3065_ACEOF
3066ac_clean_files_save=$ac_clean_files
3067ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3068# Try to create an executable without -o first, disregard a.out.
3069# It will help us diagnose broken compilers, and finding out an intuition
3070# of exeext.
3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3072$as_echo_n "checking for C compiler default output file name... " >&6; }
3073ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3074
3075# The possible output files:
3076ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3077
3078ac_rmfiles=
3079for ac_file in $ac_files
3080do
3081 case $ac_file in
3082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3083 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3084 esac
3085done
3086rm -f $ac_rmfiles
3087
3088if { { ac_try="$ac_link_default"
3089case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092esac
3093eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3094$as_echo "$ac_try_echo"; } >&5
3095 (eval "$ac_link_default") 2>&5
3096 ac_status=$?
3097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3098 test $ac_status = 0; }; then :
3099 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3100# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3101# in a Makefile. We should not override ac_cv_exeext if it was cached,
3102# so that the user can short-circuit this test for compilers unknown to
3103# Autoconf.
3104for ac_file in $ac_files ''
3105do
3106 test -f "$ac_file" || continue
3107 case $ac_file in
3108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3109 ;;
3110 [ab].out )
3111 # We found the default executable, but exeext='' is most
3112 # certainly right.
3113 break;;
3114 *.* )
3115 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3116 then :; else
3117 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3118 fi
3119 # We set ac_cv_exeext here because the later test for it is not
3120 # safe: cross compilers may not add the suffix if given an `-o'
3121 # argument, so we may need to know it at that point already.
3122 # Even if this section looks crufty: it has the advantage of
3123 # actually working.
3124 break;;
3125 * )
3126 break;;
3127 esac
3128done
3129test "$ac_cv_exeext" = no && ac_cv_exeext=
3130
3131else
3132 ac_file=''
3133fi
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3135$as_echo "$ac_file" >&6; }
3136if test -z "$ac_file"; then :
3137 $as_echo "$as_me: failed program was:" >&5
3138sed 's/^/| /' conftest.$ac_ext >&5
3139
3140{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142{ as_fn_set_status 77
3143as_fn_error "C compiler cannot create executables
3144See \`config.log' for more details." "$LINENO" 5; }; }
3145fi
3146ac_exeext=$ac_cv_exeext
3147
3148# Check that the compiler produces executables we can run. If not, either
3149# the compiler is broken, or we cross compile.
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3151$as_echo_n "checking whether the C compiler works... " >&6; }
3152# If not cross compiling, check that we can run a simple program.
3153if test "$cross_compiling" != yes; then
3154 if { ac_try='./$ac_file'
3155 { { case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3158esac
3159eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3160$as_echo "$ac_try_echo"; } >&5
3161 (eval "$ac_try") 2>&5
3162 ac_status=$?
3163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164 test $ac_status = 0; }; }; then
3165 cross_compiling=no
3166 else
3167 if test "$cross_compiling" = maybe; then
3168 cross_compiling=yes
3169 else
3170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3172as_fn_error "cannot run C compiled programs.
3173If you meant to cross compile, use \`--host'.
3174See \`config.log' for more details." "$LINENO" 5; }
3175 fi
3176 fi
3177fi
3178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3179$as_echo "yes" >&6; }
3180
3181rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3182ac_clean_files=$ac_clean_files_save
3183# Check that the compiler produces executables we can run. If not, either
3184# the compiler is broken, or we cross compile.
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3186$as_echo_n "checking whether we are cross compiling... " >&6; }
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3188$as_echo "$cross_compiling" >&6; }
3189
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3191$as_echo_n "checking for suffix of executables... " >&6; }
3192if { { ac_try="$ac_link"
3193case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196esac
3197eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198$as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_link") 2>&5
3200 ac_status=$?
3201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202 test $ac_status = 0; }; then :
3203 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3204# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3205# work properly (i.e., refer to `conftest.exe'), while it won't with
3206# `rm'.
3207for ac_file in conftest.exe conftest conftest.*; do
3208 test -f "$ac_file" || continue
3209 case $ac_file in
3210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3211 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3212 break;;
3213 * ) break;;
3214 esac
3215done
3216else
3217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219as_fn_error "cannot compute suffix of executables: cannot compile and link
3220See \`config.log' for more details." "$LINENO" 5; }
3221fi
3222rm -f conftest$ac_cv_exeext
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3224$as_echo "$ac_cv_exeext" >&6; }
3225
3226rm -f conftest.$ac_ext
3227EXEEXT=$ac_cv_exeext
3228ac_exeext=$EXEEXT
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3230$as_echo_n "checking for suffix of object files... " >&6; }
3231if test "${ac_cv_objext+set}" = set; then :
3232 $as_echo_n "(cached) " >&6
3233else
3234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235/* end confdefs.h. */
3236
3237int
3238main ()
3239{
3240
3241 ;
3242 return 0;
3243}
3244_ACEOF
3245rm -f conftest.o conftest.obj
3246if { { ac_try="$ac_compile"
3247case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250esac
3251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252$as_echo "$ac_try_echo"; } >&5
3253 (eval "$ac_compile") 2>&5
3254 ac_status=$?
3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }; then :
3257 for ac_file in conftest.o conftest.obj conftest.*; do
3258 test -f "$ac_file" || continue;
3259 case $ac_file in
3260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3261 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3262 break;;
3263 esac
3264done
3265else
3266 $as_echo "$as_me: failed program was:" >&5
3267sed 's/^/| /' conftest.$ac_ext >&5
3268
3269{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3270$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3271as_fn_error "cannot compute suffix of object files: cannot compile
3272See \`config.log' for more details." "$LINENO" 5; }
3273fi
3274rm -f conftest.$ac_cv_objext conftest.$ac_ext
3275fi
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3277$as_echo "$ac_cv_objext" >&6; }
3278OBJEXT=$ac_cv_objext
3279ac_objext=$OBJEXT
3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3281$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3282if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3283 $as_echo_n "(cached) " >&6
3284else
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286/* end confdefs.h. */
3287
3288int
3289main ()
3290{
3291#ifndef __GNUC__
3292 choke me
3293#endif
3294
3295 ;
3296 return 0;
3297}
3298_ACEOF
3299if ac_fn_c_try_compile "$LINENO"; then :
3300 ac_compiler_gnu=yes
3301else
3302 ac_compiler_gnu=no
3303fi
3304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3305ac_cv_c_compiler_gnu=$ac_compiler_gnu
3306
3307fi
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3309$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3310if test $ac_compiler_gnu = yes; then
3311 GCC=yes
3312else
3313 GCC=
3314fi
3315ac_test_CFLAGS=${CFLAGS+set}
3316ac_save_CFLAGS=$CFLAGS
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3318$as_echo_n "checking whether $CC accepts -g... " >&6; }
3319if test "${ac_cv_prog_cc_g+set}" = set; then :
3320 $as_echo_n "(cached) " >&6
3321else
3322 ac_save_c_werror_flag=$ac_c_werror_flag
3323 ac_c_werror_flag=yes
3324 ac_cv_prog_cc_g=no
3325 CFLAGS="-g"
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327/* end confdefs.h. */
3328
3329int
3330main ()
3331{
3332
3333 ;
3334 return 0;
3335}
3336_ACEOF
3337if ac_fn_c_try_compile "$LINENO"; then :
3338 ac_cv_prog_cc_g=yes
3339else
3340 CFLAGS=""
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342/* end confdefs.h. */
3343
3344int
3345main ()
3346{
3347
3348 ;
3349 return 0;
3350}
3351_ACEOF
3352if ac_fn_c_try_compile "$LINENO"; then :
3353
3354else
3355 ac_c_werror_flag=$ac_save_c_werror_flag
3356 CFLAGS="-g"
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358/* end confdefs.h. */
3359
3360int
3361main ()
3362{
3363
3364 ;
3365 return 0;
3366}
3367_ACEOF
3368if ac_fn_c_try_compile "$LINENO"; then :
3369 ac_cv_prog_cc_g=yes
3370fi
3371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3372fi
3373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3374fi
3375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3376 ac_c_werror_flag=$ac_save_c_werror_flag
3377fi
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3379$as_echo "$ac_cv_prog_cc_g" >&6; }
3380if test "$ac_test_CFLAGS" = set; then
3381 CFLAGS=$ac_save_CFLAGS
3382elif test $ac_cv_prog_cc_g = yes; then
3383 if test "$GCC" = yes; then
3384 CFLAGS="-g -O2"
3385 else
3386 CFLAGS="-g"
3387 fi
3388else
3389 if test "$GCC" = yes; then
3390 CFLAGS="-O2"
3391 else
3392 CFLAGS=
3393 fi
3394fi
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3396$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3397if test "${ac_cv_prog_cc_c89+set}" = set; then :
3398 $as_echo_n "(cached) " >&6
3399else
3400 ac_cv_prog_cc_c89=no
3401ac_save_CC=$CC
3402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403/* end confdefs.h. */
3404#include <stdarg.h>
3405#include <stdio.h>
3406#include <sys/types.h>
3407#include <sys/stat.h>
3408/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3409struct buf { int x; };
3410FILE * (*rcsopen) (struct buf *, struct stat *, int);
3411static char *e (p, i)
3412 char **p;
3413 int i;
3414{
3415 return p[i];
3416}
3417static char *f (char * (*g) (char **, int), char **p, ...)
3418{
3419 char *s;
3420 va_list v;
3421 va_start (v,p);
3422 s = g (p, va_arg (v,int));
3423 va_end (v);
3424 return s;
3425}
3426
3427/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3428 function prototypes and stuff, but not '\xHH' hex character constants.
3429 These don't provoke an error unfortunately, instead are silently treated
3430 as 'x'. The following induces an error, until -std is added to get
3431 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3432 array size at least. It's necessary to write '\x00'==0 to get something
3433 that's true only with -std. */
3434int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3435
3436/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3437 inside strings and character constants. */
3438#define FOO(x) 'x'
3439int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3440
3441int test (int i, double x);
3442struct s1 {int (*f) (int a);};
3443struct s2 {int (*f) (double a);};
3444int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3445int argc;
3446char **argv;
3447int
3448main ()
3449{
3450return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3451 ;
3452 return 0;
3453}
3454_ACEOF
3455for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3456 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3457do
3458 CC="$ac_save_CC $ac_arg"
3459 if ac_fn_c_try_compile "$LINENO"; then :
3460 ac_cv_prog_cc_c89=$ac_arg
3461fi
3462rm -f core conftest.err conftest.$ac_objext
3463 test "x$ac_cv_prog_cc_c89" != "xno" && break
3464done
3465rm -f conftest.$ac_ext
3466CC=$ac_save_CC
3467
3468fi
3469# AC_CACHE_VAL
3470case "x$ac_cv_prog_cc_c89" in
3471 x)
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3473$as_echo "none needed" >&6; } ;;
3474 xno)
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3476$as_echo "unsupported" >&6; } ;;
3477 *)
3478 CC="$CC $ac_cv_prog_cc_c89"
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3480$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3481esac
3482if test "x$ac_cv_prog_cc_c89" != xno; then :
3483
3484fi
3485
3486ac_ext=c
3487ac_cpp='$CPP $CPPFLAGS'
3488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490ac_compiler_gnu=$ac_cv_c_compiler_gnu
3491DEPDIR="${am__leading_dot}deps"
3492
3493ac_config_commands="$ac_config_commands depfiles"
3494
3495
3496am_make=${MAKE-make}
3497cat > confinc << 'END'
3498am__doit:
3499 @echo this is the am__doit target
3500.PHONY: am__doit
3501END
3502# If we don't find an include directive, just comment out the code.
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3504$as_echo_n "checking for style of include used by $am_make... " >&6; }
3505am__include="#"
3506am__quote=
3507_am_result=none
3508# First try GNU make style include.
3509echo "include confinc" > confmf
3510# Ignore all kinds of additional output from `make'.
3511case `$am_make -s -f confmf 2> /dev/null` in #(
3512*the\ am__doit\ target*)
3513 am__include=include
3514 am__quote=
3515 _am_result=GNU
3516 ;;
3517esac
3518# Now try BSD make style include.
3519if test "$am__include" = "#"; then
3520 echo '.include "confinc"' > confmf
3521 case `$am_make -s -f confmf 2> /dev/null` in #(
3522 *the\ am__doit\ target*)
3523 am__include=.include
3524 am__quote="\""
3525 _am_result=BSD
3526 ;;
3527 esac
3528fi
3529
3530
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3532$as_echo "$_am_result" >&6; }
3533rm -f confinc confmf
3534
3535# Check whether --enable-dependency-tracking was given.
3536if test "${enable_dependency_tracking+set}" = set; then :
3537 enableval=$enable_dependency_tracking;
3538fi
3539
3540if test "x$enable_dependency_tracking" != xno; then
3541 am_depcomp="$ac_aux_dir/depcomp"
3542 AMDEPBACKSLASH='\'
3543fi
3544 if test "x$enable_dependency_tracking" != xno; then
3545 AMDEP_TRUE=
3546 AMDEP_FALSE='#'
3547else
3548 AMDEP_TRUE='#'
3549 AMDEP_FALSE=
3550fi
3551
3552
3553
3554depcc="$CC" am_compiler_list=
3555
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3557$as_echo_n "checking dependency style of $depcc... " >&6; }
3558if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3559 $as_echo_n "(cached) " >&6
3560else
3561 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3562 # We make a subdir and do the tests there. Otherwise we can end up
3563 # making bogus files that we don't know about and never remove. For
3564 # instance it was reported that on HP-UX the gcc test will end up
3565 # making a dummy file named `D' -- because `-MD' means `put the output
3566 # in D'.
3567 mkdir conftest.dir
3568 # Copy depcomp to subdir because otherwise we won't find it if we're
3569 # using a relative directory.
3570 cp "$am_depcomp" conftest.dir
3571 cd conftest.dir
3572 # We will build objects and dependencies in a subdirectory because
3573 # it helps to detect inapplicable dependency modes. For instance
3574 # both Tru64's cc and ICC support -MD to output dependencies as a
3575 # side effect of compilation, but ICC will put the dependencies in
3576 # the current directory while Tru64 will put them in the object
3577 # directory.
3578 mkdir sub
3579
3580 am_cv_CC_dependencies_compiler_type=none
3581 if test "$am_compiler_list" = ""; then
3582 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3583 fi
3584 am__universal=false
3585 case " $depcc " in #(
3586 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3587 esac
3588
3589 for depmode in $am_compiler_list; do
3590 # Setup a source with many dependencies, because some compilers
3591 # like to wrap large dependency lists on column 80 (with \), and
3592 # we should not choose a depcomp mode which is confused by this.
3593 #
3594 # We need to recreate these files for each test, as the compiler may
3595 # overwrite some of them when testing with obscure command lines.
3596 # This happens at least with the AIX C compiler.
3597 : > sub/conftest.c
3598 for i in 1 2 3 4 5 6; do
3599 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3600 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3601 # Solaris 8's {/usr,}/bin/sh.
3602 touch sub/conftst$i.h
3603 done
3604 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3605
3606 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3607 # mode. It turns out that the SunPro C++ compiler does not properly
3608 # handle `-M -o', and we need to detect this. Also, some Intel
3609 # versions had trouble with output in subdirs
3610 am__obj=sub/conftest.${OBJEXT-o}
3611 am__minus_obj="-o $am__obj"
3612 case $depmode in
3613 gcc)
3614 # This depmode causes a compiler race in universal mode.
3615 test "$am__universal" = false || continue
3616 ;;
3617 nosideeffect)
3618 # after this tag, mechanisms are not by side-effect, so they'll
3619 # only be used when explicitly requested
3620 if test "x$enable_dependency_tracking" = xyes; then
3621 continue
3622 else
3623 break
3624 fi
3625 ;;
3626 msvisualcpp | msvcmsys)
3627 # This compiler won't grok `-c -o', but also, the minuso test has
3628 # not run yet. These depmodes are late enough in the game, and
3629 # so weak that their functioning should not be impacted.
3630 am__obj=conftest.${OBJEXT-o}
3631 am__minus_obj=
3632 ;;
3633 none) break ;;
3634 esac
3635 if depmode=$depmode \
3636 source=sub/conftest.c object=$am__obj \
3637 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3638 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3639 >/dev/null 2>conftest.err &&
3640 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3641 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3642 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3643 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3644 # icc doesn't choke on unknown options, it will just issue warnings
3645 # or remarks (even with -Werror). So we grep stderr for any message
3646 # that says an option was ignored or not supported.
3647 # When given -MP, icc 7.0 and 7.1 complain thusly:
3648 # icc: Command line warning: ignoring option '-M'; no argument required
3649 # The diagnosis changed in icc 8.0:
3650 # icc: Command line remark: option '-MP' not supported
3651 if (grep 'ignoring option' conftest.err ||
3652 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3653 am_cv_CC_dependencies_compiler_type=$depmode
3654 break
3655 fi
3656 fi
3657 done
3658
3659 cd ..
3660 rm -rf conftest.dir
3661else
3662 am_cv_CC_dependencies_compiler_type=none
3663fi
3664
3665fi
3666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3667$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3668CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3669
3670 if
3671 test "x$enable_dependency_tracking" != xno \
3672 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3673 am__fastdepCC_TRUE=
3674 am__fastdepCC_FALSE='#'
3675else
3676 am__fastdepCC_TRUE='#'
3677 am__fastdepCC_FALSE=
3678fi
3679
3680
3681if test "x$CC" != xcc; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3683$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3684else
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3686$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3687fi
3688set dummy $CC; ac_cc=`$as_echo "$2" |
3689 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3690if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
3691 $as_echo_n "(cached) " >&6
3692else
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694/* end confdefs.h. */
3695
3696int
3697main ()
3698{
3699
3700 ;
3701 return 0;
3702}
3703_ACEOF
3704# Make sure it works both with $CC and with simple cc.
3705# We do the test twice because some compilers refuse to overwrite an
3706# existing .o file with -o, though they will create one.
3707ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3708rm -f conftest2.*
3709if { { case "(($ac_try" in
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3712esac
3713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714$as_echo "$ac_try_echo"; } >&5
3715 (eval "$ac_try") 2>&5
3716 ac_status=$?
3717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718 test $ac_status = 0; } &&
3719 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3722esac
3723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724$as_echo "$ac_try_echo"; } >&5
3725 (eval "$ac_try") 2>&5
3726 ac_status=$?
3727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728 test $ac_status = 0; };
3729then
3730 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3731 if test "x$CC" != xcc; then
3732 # Test first that cc exists at all.
3733 if { ac_try='cc -c conftest.$ac_ext >&5'
3734 { { case "(($ac_try" in
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3737esac
3738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3739$as_echo "$ac_try_echo"; } >&5
3740 (eval "$ac_try") 2>&5
3741 ac_status=$?
3742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3743 test $ac_status = 0; }; }; then
3744 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3745 rm -f conftest2.*
3746 if { { case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749esac
3750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751$as_echo "$ac_try_echo"; } >&5
3752 (eval "$ac_try") 2>&5
3753 ac_status=$?
3754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755 test $ac_status = 0; } &&
3756 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3759esac
3760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3761$as_echo "$ac_try_echo"; } >&5
3762 (eval "$ac_try") 2>&5
3763 ac_status=$?
3764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765 test $ac_status = 0; };
3766 then
3767 # cc works too.
3768 :
3769 else
3770 # cc exists but doesn't like -o.
3771 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3772 fi
3773 fi
3774 fi
3775else
3776 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3777fi
3778rm -f core conftest*
3779
3780fi
3781if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3783$as_echo "yes" >&6; }
3784else
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786$as_echo "no" >&6; }
3787
3788$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3789
3790fi
3791
3792# FIXME: we rely on the cache variable name because
3793# there is no other way.
3794set dummy $CC
3795am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3796eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3797if test "$am_t" != yes; then
3798 # Losing compiler, so override with the script.
3799 # FIXME: It is wrong to rewrite CC.
3800 # But if we don't then we get into trouble of one sort or another.
3801 # A longer-term fix would be to have automake use am__CC in this case,
3802 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3803 CC="$am_aux_dir/compile $CC"
3804fi
3805
3806
3807
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
3809$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
3810# Check whether --enable-version-specific-runtime-libs was given.
3811if test "${enable_version_specific_runtime_libs+set}" = set; then :
3812 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3813 yes) version_specific_libs=yes ;;
3814 no) version_specific_libs=no ;;
3815 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3816 esac
3817else
3818 version_specific_libs=no
3819fi
3820
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
3822$as_echo "$version_specific_libs" >&6; }
3823
3824
3825# Configure libtool
3826case `pwd` in
3827 *\ * | *\ *)
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3829$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3830esac
3831
3832
3833
3834macro_version='2.2.7a'
3835macro_revision='1.3134'
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849ltmain="$ac_aux_dir/ltmain.sh"
3850
3851# Backslashify metacharacters that are still active within
3852# double-quoted strings.
3853sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3854
3855# Same as above, but do not quote variable references.
3856double_quote_subst='s/\(["`\\]\)/\\\1/g'
3857
3858# Sed substitution to delay expansion of an escaped shell variable in a
3859# double_quote_subst'ed string.
3860delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3861
3862# Sed substitution to delay expansion of an escaped single quote.
3863delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3864
3865# Sed substitution to avoid accidental globbing in evaled expressions
3866no_glob_subst='s/\*/\\\*/g'
3867
3868ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3869ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3870ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3871
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3873$as_echo_n "checking how to print strings... " >&6; }
3874# Test print first, because it will be a builtin if present.
3875if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3876 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3877 ECHO='print -r --'
3878elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3879 ECHO='printf %s\n'
3880else
3881 # Use this function as a fallback that always works.
3882 func_fallback_echo ()
3883 {
3884 eval 'cat <<_LTECHO_EOF
3885$1
3886_LTECHO_EOF'
3887 }
3888 ECHO='func_fallback_echo'
3889fi
3890
3891# func_echo_all arg...
3892# Invoke $ECHO with all args, space-separated.
3893func_echo_all ()
3894{
3895 $ECHO ""
3896}
3897
3898case "$ECHO" in
3899 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3900$as_echo "printf" >&6; } ;;
3901 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3902$as_echo "print -r" >&6; } ;;
3903 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3904$as_echo "cat" >&6; } ;;
3905esac
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3921$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3922if test "${ac_cv_path_SED+set}" = set; then :
3923 $as_echo_n "(cached) " >&6
3924else
3925 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3926 for ac_i in 1 2 3 4 5 6 7; do
3927 ac_script="$ac_script$as_nl$ac_script"
3928 done
3929 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3930 { ac_script=; unset ac_script;}
3931 if test -z "$SED"; then
3932 ac_path_SED_found=false
3933 # Loop through the user's path and test for each of PROGNAME-LIST
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935for as_dir in $PATH
3936do
3937 IFS=$as_save_IFS
3938 test -z "$as_dir" && as_dir=.
3939 for ac_prog in sed gsed; do
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3942 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3943# Check for GNU ac_path_SED and select it if it is found.
3944 # Check for GNU $ac_path_SED
3945case `"$ac_path_SED" --version 2>&1` in
3946*GNU*)
3947 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3948*)
3949 ac_count=0
3950 $as_echo_n 0123456789 >"conftest.in"
3951 while :
3952 do
3953 cat "conftest.in" "conftest.in" >"conftest.tmp"
3954 mv "conftest.tmp" "conftest.in"
3955 cp "conftest.in" "conftest.nl"
3956 $as_echo '' >> "conftest.nl"
3957 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3959 as_fn_arith $ac_count + 1 && ac_count=$as_val
3960 if test $ac_count -gt ${ac_path_SED_max-0}; then
3961 # Best one so far, save it but keep looking for a better one
3962 ac_cv_path_SED="$ac_path_SED"
3963 ac_path_SED_max=$ac_count
3964 fi
3965 # 10*(2^10) chars as input seems more than enough
3966 test $ac_count -gt 10 && break
3967 done
3968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3969esac
3970
3971 $ac_path_SED_found && break 3
3972 done
3973 done
3974 done
3975IFS=$as_save_IFS
3976 if test -z "$ac_cv_path_SED"; then
3977 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3978 fi
3979else
3980 ac_cv_path_SED=$SED
3981fi
3982
3983fi
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3985$as_echo "$ac_cv_path_SED" >&6; }
3986 SED="$ac_cv_path_SED"
3987 rm -f conftest.sed
3988
3989test -z "$SED" && SED=sed
3990Xsed="$SED -e 1s/^X//"
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4003$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4004if test "${ac_cv_path_GREP+set}" = set; then :
4005 $as_echo_n "(cached) " >&6
4006else
4007 if test -z "$GREP"; then
4008 ac_path_GREP_found=false
4009 # Loop through the user's path and test for each of PROGNAME-LIST
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4012do
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
4015 for ac_prog in grep ggrep; do
4016 for ac_exec_ext in '' $ac_executable_extensions; do
4017 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4018 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4019# Check for GNU ac_path_GREP and select it if it is found.
4020 # Check for GNU $ac_path_GREP
4021case `"$ac_path_GREP" --version 2>&1` in
4022*GNU*)
4023 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4024*)
4025 ac_count=0
4026 $as_echo_n 0123456789 >"conftest.in"
4027 while :
4028 do
4029 cat "conftest.in" "conftest.in" >"conftest.tmp"
4030 mv "conftest.tmp" "conftest.in"
4031 cp "conftest.in" "conftest.nl"
4032 $as_echo 'GREP' >> "conftest.nl"
4033 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4035 as_fn_arith $ac_count + 1 && ac_count=$as_val
4036 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4037 # Best one so far, save it but keep looking for a better one
4038 ac_cv_path_GREP="$ac_path_GREP"
4039 ac_path_GREP_max=$ac_count
4040 fi
4041 # 10*(2^10) chars as input seems more than enough
4042 test $ac_count -gt 10 && break
4043 done
4044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4045esac
4046
4047 $ac_path_GREP_found && break 3
4048 done
4049 done
4050 done
4051IFS=$as_save_IFS
4052 if test -z "$ac_cv_path_GREP"; then
4053 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4054 fi
4055else
4056 ac_cv_path_GREP=$GREP
4057fi
4058
4059fi
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4061$as_echo "$ac_cv_path_GREP" >&6; }
4062 GREP="$ac_cv_path_GREP"
4063
4064
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4066$as_echo_n "checking for egrep... " >&6; }
4067if test "${ac_cv_path_EGREP+set}" = set; then :
4068 $as_echo_n "(cached) " >&6
4069else
4070 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4071 then ac_cv_path_EGREP="$GREP -E"
4072 else
4073 if test -z "$EGREP"; then
4074 ac_path_EGREP_found=false
4075 # Loop through the user's path and test for each of PROGNAME-LIST
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4078do
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 for ac_prog in egrep; do
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4084 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4085# Check for GNU ac_path_EGREP and select it if it is found.
4086 # Check for GNU $ac_path_EGREP
4087case `"$ac_path_EGREP" --version 2>&1` in
4088*GNU*)
4089 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4090*)
4091 ac_count=0
4092 $as_echo_n 0123456789 >"conftest.in"
4093 while :
4094 do
4095 cat "conftest.in" "conftest.in" >"conftest.tmp"
4096 mv "conftest.tmp" "conftest.in"
4097 cp "conftest.in" "conftest.nl"
4098 $as_echo 'EGREP' >> "conftest.nl"
4099 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4101 as_fn_arith $ac_count + 1 && ac_count=$as_val
4102 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4103 # Best one so far, save it but keep looking for a better one
4104 ac_cv_path_EGREP="$ac_path_EGREP"
4105 ac_path_EGREP_max=$ac_count
4106 fi
4107 # 10*(2^10) chars as input seems more than enough
4108 test $ac_count -gt 10 && break
4109 done
4110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4111esac
4112
4113 $ac_path_EGREP_found && break 3
4114 done
4115 done
4116 done
4117IFS=$as_save_IFS
4118 if test -z "$ac_cv_path_EGREP"; then
4119 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4120 fi
4121else
4122 ac_cv_path_EGREP=$EGREP
4123fi
4124
4125 fi
4126fi
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4128$as_echo "$ac_cv_path_EGREP" >&6; }
4129 EGREP="$ac_cv_path_EGREP"
4130
4131
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4133$as_echo_n "checking for fgrep... " >&6; }
4134if test "${ac_cv_path_FGREP+set}" = set; then :
4135 $as_echo_n "(cached) " >&6
4136else
4137 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4138 then ac_cv_path_FGREP="$GREP -F"
4139 else
4140 if test -z "$FGREP"; then
4141 ac_path_FGREP_found=false
4142 # Loop through the user's path and test for each of PROGNAME-LIST
4143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4145do
4146 IFS=$as_save_IFS
4147 test -z "$as_dir" && as_dir=.
4148 for ac_prog in fgrep; do
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4151 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4152# Check for GNU ac_path_FGREP and select it if it is found.
4153 # Check for GNU $ac_path_FGREP
4154case `"$ac_path_FGREP" --version 2>&1` in
4155*GNU*)
4156 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4157*)
4158 ac_count=0
4159 $as_echo_n 0123456789 >"conftest.in"
4160 while :
4161 do
4162 cat "conftest.in" "conftest.in" >"conftest.tmp"
4163 mv "conftest.tmp" "conftest.in"
4164 cp "conftest.in" "conftest.nl"
4165 $as_echo 'FGREP' >> "conftest.nl"
4166 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4167 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4168 as_fn_arith $ac_count + 1 && ac_count=$as_val
4169 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4170 # Best one so far, save it but keep looking for a better one
4171 ac_cv_path_FGREP="$ac_path_FGREP"
4172 ac_path_FGREP_max=$ac_count
4173 fi
4174 # 10*(2^10) chars as input seems more than enough
4175 test $ac_count -gt 10 && break
4176 done
4177 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4178esac
4179
4180 $ac_path_FGREP_found && break 3
4181 done
4182 done
4183 done
4184IFS=$as_save_IFS
4185 if test -z "$ac_cv_path_FGREP"; then
4186 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4187 fi
4188else
4189 ac_cv_path_FGREP=$FGREP
4190fi
4191
4192 fi
4193fi
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4195$as_echo "$ac_cv_path_FGREP" >&6; }
4196 FGREP="$ac_cv_path_FGREP"
4197
4198
4199test -z "$GREP" && GREP=grep
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219# Check whether --with-gnu-ld was given.
4220if test "${with_gnu_ld+set}" = set; then :
4221 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4222else
4223 with_gnu_ld=no
4224fi
4225
4226ac_prog=ld
4227if test "$GCC" = yes; then
4228 # Check if gcc -print-prog-name=ld gives a path.
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4230$as_echo_n "checking for ld used by $CC... " >&6; }
4231 case $host in
4232 *-*-mingw*)
4233 # gcc leaves a trailing carriage return which upsets mingw
4234 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4235 *)
4236 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4237 esac
4238 case $ac_prog in
4239 # Accept absolute paths.
4240 [\\/]* | ?:[\\/]*)
4241 re_direlt='/[^/][^/]*/\.\./'
4242 # Canonicalize the pathname of ld
4243 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4244 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4245 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4246 done
4247 test -z "$LD" && LD="$ac_prog"
4248 ;;
4249 "")
4250 # If it fails, then pretend we aren't using GCC.
4251 ac_prog=ld
4252 ;;
4253 *)
4254 # If it is relative, then search for the first ld in PATH.
4255 with_gnu_ld=unknown
4256 ;;
4257 esac
4258elif test "$with_gnu_ld" = yes; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4260$as_echo_n "checking for GNU ld... " >&6; }
4261else
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4263$as_echo_n "checking for non-GNU ld... " >&6; }
4264fi
4265if test "${lt_cv_path_LD+set}" = set; then :
4266 $as_echo_n "(cached) " >&6
4267else
4268 if test -z "$LD"; then
4269 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4270 for ac_dir in $PATH; do
4271 IFS="$lt_save_ifs"
4272 test -z "$ac_dir" && ac_dir=.
4273 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4274 lt_cv_path_LD="$ac_dir/$ac_prog"
4275 # Check to see if the program is GNU ld. I'd rather use --version,
4276 # but apparently some variants of GNU ld only accept -v.
4277 # Break only if it was the GNU/non-GNU ld that we prefer.
4278 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4279 *GNU* | *'with BFD'*)
4280 test "$with_gnu_ld" != no && break
4281 ;;
4282 *)
4283 test "$with_gnu_ld" != yes && break
4284 ;;
4285 esac
4286 fi
4287 done
4288 IFS="$lt_save_ifs"
4289else
4290 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4291fi
4292fi
4293
4294LD="$lt_cv_path_LD"
4295if test -n "$LD"; then
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4297$as_echo "$LD" >&6; }
4298else
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300$as_echo "no" >&6; }
4301fi
4302test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4304$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4305if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4306 $as_echo_n "(cached) " >&6
4307else
4308 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4309case `$LD -v 2>&1 </dev/null` in
4310*GNU* | *'with BFD'*)
4311 lt_cv_prog_gnu_ld=yes
4312 ;;
4313*)
4314 lt_cv_prog_gnu_ld=no
4315 ;;
4316esac
4317fi
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4319$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4320with_gnu_ld=$lt_cv_prog_gnu_ld
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4331$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4332if test "${lt_cv_path_NM+set}" = set; then :
4333 $as_echo_n "(cached) " >&6
4334else
4335 if test -n "$NM"; then
4336 # Let the user override the test.
4337 lt_cv_path_NM="$NM"
4338else
4339 lt_nm_to_check="${ac_tool_prefix}nm"
4340 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4341 lt_nm_to_check="$lt_nm_to_check nm"
4342 fi
4343 for lt_tmp_nm in $lt_nm_to_check; do
4344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4345 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4346 IFS="$lt_save_ifs"
4347 test -z "$ac_dir" && ac_dir=.
4348 tmp_nm="$ac_dir/$lt_tmp_nm"
4349 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4350 # Check to see if the nm accepts a BSD-compat flag.
4351 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4352 # nm: unknown option "B" ignored
4353 # Tru64's nm complains that /dev/null is an invalid object file
4354 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4355 */dev/null* | *'Invalid file or object type'*)
4356 lt_cv_path_NM="$tmp_nm -B"
4357 break
4358 ;;
4359 *)
4360 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4361 */dev/null*)
4362 lt_cv_path_NM="$tmp_nm -p"
4363 break
4364 ;;
4365 *)
4366 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4367 continue # so that we can try to find one that supports BSD flags
4368 ;;
4369 esac
4370 ;;
4371 esac
4372 fi
4373 done
4374 IFS="$lt_save_ifs"
4375 done
4376 : ${lt_cv_path_NM=no}
4377fi
4378fi
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4380$as_echo "$lt_cv_path_NM" >&6; }
4381if test "$lt_cv_path_NM" != "no"; then
4382 NM="$lt_cv_path_NM"
4383else
4384 # Didn't find any BSD compatible name lister, look for dumpbin.
4385 if test -n "$DUMPBIN"; then :
4386 # Let the user override the test.
4387 else
4388 if test -n "$ac_tool_prefix"; then
4389 for ac_prog in dumpbin "link -dump"
4390 do
4391 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4392set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394$as_echo_n "checking for $ac_word... " >&6; }
4395if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4396 $as_echo_n "(cached) " >&6
4397else
4398 if test -n "$DUMPBIN"; then
4399 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4400else
4401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402for as_dir in $PATH
4403do
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 break 2
4411 fi
4412done
4413 done
4414IFS=$as_save_IFS
4415
4416fi
4417fi
4418DUMPBIN=$ac_cv_prog_DUMPBIN
4419if test -n "$DUMPBIN"; then
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4421$as_echo "$DUMPBIN" >&6; }
4422else
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424$as_echo "no" >&6; }
4425fi
4426
4427
4428 test -n "$DUMPBIN" && break
4429 done
4430fi
4431if test -z "$DUMPBIN"; then
4432 ac_ct_DUMPBIN=$DUMPBIN
4433 for ac_prog in dumpbin "link -dump"
4434do
4435 # Extract the first word of "$ac_prog", so it can be a program name with args.
4436set dummy $ac_prog; ac_word=$2
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4438$as_echo_n "checking for $ac_word... " >&6; }
4439if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4440 $as_echo_n "(cached) " >&6
4441else
4442 if test -n "$ac_ct_DUMPBIN"; then
4443 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4444else
4445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446for as_dir in $PATH
4447do
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4452 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 break 2
4455 fi
4456done
4457 done
4458IFS=$as_save_IFS
4459
4460fi
4461fi
4462ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4463if test -n "$ac_ct_DUMPBIN"; then
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4465$as_echo "$ac_ct_DUMPBIN" >&6; }
4466else
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4468$as_echo "no" >&6; }
4469fi
4470
4471
4472 test -n "$ac_ct_DUMPBIN" && break
4473done
4474
4475 if test "x$ac_ct_DUMPBIN" = x; then
4476 DUMPBIN=":"
4477 else
4478 case $cross_compiling:$ac_tool_warned in
4479yes:)
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4481$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4482ac_tool_warned=yes ;;
4483esac
4484 DUMPBIN=$ac_ct_DUMPBIN
4485 fi
4486fi
4487
4488 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4489 *COFF*)
4490 DUMPBIN="$DUMPBIN -symbols"
4491 ;;
4492 *)
4493 DUMPBIN=:
4494 ;;
4495 esac
4496 fi
4497
4498 if test "$DUMPBIN" != ":"; then
4499 NM="$DUMPBIN"
4500 fi
4501fi
4502test -z "$NM" && NM=nm
4503
4504
4505
4506
4507
4508
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4510$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4511if test "${lt_cv_nm_interface+set}" = set; then :
4512 $as_echo_n "(cached) " >&6
4513else
4514 lt_cv_nm_interface="BSD nm"
4515 echo "int some_variable = 0;" > conftest.$ac_ext
4516 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4517 (eval "$ac_compile" 2>conftest.err)
4518 cat conftest.err >&5
4519 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4520 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4521 cat conftest.err >&5
4522 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4523 cat conftest.out >&5
4524 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4525 lt_cv_nm_interface="MS dumpbin"
4526 fi
4527 rm -f conftest*
4528fi
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4530$as_echo "$lt_cv_nm_interface" >&6; }
4531
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4533$as_echo_n "checking whether ln -s works... " >&6; }
4534LN_S=$as_ln_s
4535if test "$LN_S" = "ln -s"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4537$as_echo "yes" >&6; }
4538else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4540$as_echo "no, using $LN_S" >&6; }
4541fi
4542
4543# find the maximum length of command line arguments
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4545$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4546if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4547 $as_echo_n "(cached) " >&6
4548else
4549 i=0
4550 teststring="ABCD"
4551
4552 case $build_os in
4553 msdosdjgpp*)
4554 # On DJGPP, this test can blow up pretty badly due to problems in libc
4555 # (any single argument exceeding 2000 bytes causes a buffer overrun
4556 # during glob expansion). Even if it were fixed, the result of this
4557 # check would be larger than it should be.
4558 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4559 ;;
4560
4561 gnu*)
4562 # Under GNU Hurd, this test is not required because there is
4563 # no limit to the length of command line arguments.
4564 # Libtool will interpret -1 as no limit whatsoever
4565 lt_cv_sys_max_cmd_len=-1;
4566 ;;
4567
4568 cygwin* | mingw* | cegcc*)
4569 # On Win9x/ME, this test blows up -- it succeeds, but takes
4570 # about 5 minutes as the teststring grows exponentially.
4571 # Worse, since 9x/ME are not pre-emptively multitasking,
4572 # you end up with a "frozen" computer, even though with patience
4573 # the test eventually succeeds (with a max line length of 256k).
4574 # Instead, let's just punt: use the minimum linelength reported by
4575 # all of the supported platforms: 8192 (on NT/2K/XP).
4576 lt_cv_sys_max_cmd_len=8192;
4577 ;;
4578
4579 mint*)
4580 # On MiNT this can take a long time and run out of memory.
4581 lt_cv_sys_max_cmd_len=8192;
4582 ;;
4583
4584 amigaos*)
4585 # On AmigaOS with pdksh, this test takes hours, literally.
4586 # So we just punt and use a minimum line length of 8192.
4587 lt_cv_sys_max_cmd_len=8192;
4588 ;;
4589
4590 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4591 # This has been around since 386BSD, at least. Likely further.
4592 if test -x /sbin/sysctl; then
4593 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4594 elif test -x /usr/sbin/sysctl; then
4595 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4596 else
4597 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4598 fi
4599 # And add a safety zone
4600 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4602 ;;
4603
4604 interix*)
4605 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4606 lt_cv_sys_max_cmd_len=196608
4607 ;;
4608
4609 osf*)
4610 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4611 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4612 # nice to cause kernel panics so lets avoid the loop below.
4613 # First set a reasonable default.
4614 lt_cv_sys_max_cmd_len=16384
4615 #
4616 if test -x /sbin/sysconfig; then
4617 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4618 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4619 esac
4620 fi
4621 ;;
4622 sco3.2v5*)
4623 lt_cv_sys_max_cmd_len=102400
4624 ;;
4625 sysv5* | sco5v6* | sysv4.2uw2*)
4626 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4627 if test -n "$kargmax"; then
4628 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4629 else
4630 lt_cv_sys_max_cmd_len=32768
4631 fi
4632 ;;
4633 *)
4634 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4635 if test -n "$lt_cv_sys_max_cmd_len"; then
4636 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4637 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4638 else
4639 # Make teststring a little bigger before we do anything with it.
4640 # a 1K string should be a reasonable start.
4641 for i in 1 2 3 4 5 6 7 8 ; do
4642 teststring=$teststring$teststring
4643 done
4644 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4645 # If test is not a shell built-in, we'll probably end up computing a
4646 # maximum length that is only half of the actual maximum length, but
4647 # we can't tell.
4648 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4649 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4650 test $i != 17 # 1/2 MB should be enough
4651 do
4652 i=`expr $i + 1`
4653 teststring=$teststring$teststring
4654 done
4655 # Only check the string length outside the loop.
4656 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4657 teststring=
4658 # Add a significant safety factor because C++ compilers can tack on
4659 # massive amounts of additional arguments before passing them to the
4660 # linker. It appears as though 1/2 is a usable value.
4661 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4662 fi
4663 ;;
4664 esac
4665
4666fi
4667
4668if test -n $lt_cv_sys_max_cmd_len ; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4670$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4671else
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4673$as_echo "none" >&6; }
4674fi
4675max_cmd_len=$lt_cv_sys_max_cmd_len
4676
4677
4678
4679
4680
4681
4682: ${CP="cp -f"}
4683: ${MV="mv -f"}
4684: ${RM="rm -f"}
4685
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4687$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4688# Try some XSI features
4689xsi_shell=no
4690( _lt_dummy="a/b/c"
4691 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4692 = c,a/b,, \
4693 && eval 'test $(( 1 + 1 )) -eq 2 \
4694 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4695 && xsi_shell=yes
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4697$as_echo "$xsi_shell" >&6; }
4698
4699
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4701$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4702lt_shell_append=no
4703( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4704 >/dev/null 2>&1 \
4705 && lt_shell_append=yes
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4707$as_echo "$lt_shell_append" >&6; }
4708
4709
4710if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4711 lt_unset=unset
4712else
4713 lt_unset=false
4714fi
4715
4716
4717
4718
4719
4720# test EBCDIC or ASCII
4721case `echo X|tr X '\101'` in
4722 A) # ASCII based system
4723 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4724 lt_SP2NL='tr \040 \012'
4725 lt_NL2SP='tr \015\012 \040\040'
4726 ;;
4727 *) # EBCDIC based system
4728 lt_SP2NL='tr \100 \n'
4729 lt_NL2SP='tr \r\n \100\100'
4730 ;;
4731esac
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4742$as_echo_n "checking for $LD option to reload object files... " >&6; }
4743if test "${lt_cv_ld_reload_flag+set}" = set; then :
4744 $as_echo_n "(cached) " >&6
4745else
4746 lt_cv_ld_reload_flag='-r'
4747fi
4748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4749$as_echo "$lt_cv_ld_reload_flag" >&6; }
4750reload_flag=$lt_cv_ld_reload_flag
4751case $reload_flag in
4752"" | " "*) ;;
4753*) reload_flag=" $reload_flag" ;;
4754esac
4755reload_cmds='$LD$reload_flag -o $output$reload_objs'
4756case $host_os in
4757 darwin*)
4758 if test "$GCC" = yes; then
4759 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4760 else
4761 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4762 fi
4763 ;;
4764esac
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774if test -n "$ac_tool_prefix"; then
4775 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4776set dummy ${ac_tool_prefix}objdump; ac_word=$2
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778$as_echo_n "checking for $ac_word... " >&6; }
4779if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4781else
4782 if test -n "$OBJDUMP"; then
4783 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4784else
4785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786for as_dir in $PATH
4787do
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 break 2
4795 fi
4796done
4797 done
4798IFS=$as_save_IFS
4799
4800fi
4801fi
4802OBJDUMP=$ac_cv_prog_OBJDUMP
4803if test -n "$OBJDUMP"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4805$as_echo "$OBJDUMP" >&6; }
4806else
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808$as_echo "no" >&6; }
4809fi
4810
4811
4812fi
4813if test -z "$ac_cv_prog_OBJDUMP"; then
4814 ac_ct_OBJDUMP=$OBJDUMP
4815 # Extract the first word of "objdump", so it can be a program name with args.
4816set dummy objdump; ac_word=$2
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818$as_echo_n "checking for $ac_word... " >&6; }
4819if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4821else
4822 if test -n "$ac_ct_OBJDUMP"; then
4823 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4824else
4825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH
4827do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4835 fi
4836done
4837 done
4838IFS=$as_save_IFS
4839
4840fi
4841fi
4842ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4843if test -n "$ac_ct_OBJDUMP"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4845$as_echo "$ac_ct_OBJDUMP" >&6; }
4846else
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848$as_echo "no" >&6; }
4849fi
4850
4851 if test "x$ac_ct_OBJDUMP" = x; then
4852 OBJDUMP="false"
4853 else
4854 case $cross_compiling:$ac_tool_warned in
4855yes:)
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4857$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4858ac_tool_warned=yes ;;
4859esac
4860 OBJDUMP=$ac_ct_OBJDUMP
4861 fi
4862else
4863 OBJDUMP="$ac_cv_prog_OBJDUMP"
4864fi
4865
4866test -z "$OBJDUMP" && OBJDUMP=objdump
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4877$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4878if test "${lt_cv_deplibs_check_method+set}" = set; then :
4879 $as_echo_n "(cached) " >&6
4880else
4881 lt_cv_file_magic_cmd='$MAGIC_CMD'
4882lt_cv_file_magic_test_file=
4883lt_cv_deplibs_check_method='unknown'
4884# Need to set the preceding variable on all platforms that support
4885# interlibrary dependencies.
4886# 'none' -- dependencies not supported.
4887# `unknown' -- same as none, but documents that we really don't know.
4888# 'pass_all' -- all dependencies passed with no checks.
4889# 'test_compile' -- check by making test program.
4890# 'file_magic [[regex]]' -- check by looking for files in library path
4891# which responds to the $file_magic_cmd with a given extended regex.
4892# If you have `file' or equivalent on your system and you're not sure
4893# whether `pass_all' will *always* work, you probably want this one.
4894
4895case $host_os in
4896aix[4-9]*)
4897 lt_cv_deplibs_check_method=pass_all
4898 ;;
4899
4900beos*)
4901 lt_cv_deplibs_check_method=pass_all
4902 ;;
4903
4904bsdi[45]*)
4905 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4906 lt_cv_file_magic_cmd='/usr/bin/file -L'
4907 lt_cv_file_magic_test_file=/shlib/libc.so
4908 ;;
4909
4910cygwin*)
4911 # func_win32_libid is a shell function defined in ltmain.sh
4912 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4913 lt_cv_file_magic_cmd='func_win32_libid'
4914 ;;
4915
4916mingw* | pw32*)
4917 # Base MSYS/MinGW do not provide the 'file' command needed by
4918 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4919 # unless we find 'file', for example because we are cross-compiling.
4920 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4921 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4922 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4923 lt_cv_file_magic_cmd='func_win32_libid'
4924 else
4925 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4926 lt_cv_file_magic_cmd='$OBJDUMP -f'
4927 fi
4928 ;;
4929
4930cegcc*)
4931 # use the weaker test based on 'objdump'. See mingw*.
4932 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4933 lt_cv_file_magic_cmd='$OBJDUMP -f'
4934 ;;
4935
4936darwin* | rhapsody*)
4937 lt_cv_deplibs_check_method=pass_all
4938 ;;
4939
4940freebsd* | dragonfly*)
4941 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4942 case $host_cpu in
4943 i*86 )
4944 # Not sure whether the presence of OpenBSD here was a mistake.
4945 # Let's accept both of them until this is cleared up.
4946 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4947 lt_cv_file_magic_cmd=/usr/bin/file
4948 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4949 ;;
4950 esac
4951 else
4952 lt_cv_deplibs_check_method=pass_all
4953 fi
4954 ;;
4955
4956gnu*)
4957 lt_cv_deplibs_check_method=pass_all
4958 ;;
4959
4960haiku*)
4961 lt_cv_deplibs_check_method=pass_all
4962 ;;
4963
4964hpux10.20* | hpux11*)
4965 lt_cv_file_magic_cmd=/usr/bin/file
4966 case $host_cpu in
4967 ia64*)
4968 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4969 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4970 ;;
4971 hppa*64*)
4972 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]'
4973 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4974 ;;
4975 *)
4976 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4977 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4978 ;;
4979 esac
4980 ;;
4981
4982interix[3-9]*)
4983 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4984 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4985 ;;
4986
4987irix5* | irix6* | nonstopux*)
4988 case $LD in
4989 *-32|*"-32 ") libmagic=32-bit;;
4990 *-n32|*"-n32 ") libmagic=N32;;
4991 *-64|*"-64 ") libmagic=64-bit;;
4992 *) libmagic=never-match;;
4993 esac
4994 lt_cv_deplibs_check_method=pass_all
4995 ;;
4996
4997# This must be Linux ELF.
4998linux* | k*bsd*-gnu | kopensolaris*-gnu)
4999 lt_cv_deplibs_check_method=pass_all
5000 ;;
5001
5002netbsd*)
5003 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5004 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5005 else
5006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5007 fi
5008 ;;
5009
5010newos6*)
5011 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5012 lt_cv_file_magic_cmd=/usr/bin/file
5013 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5014 ;;
5015
5016*nto* | *qnx*)
5017 lt_cv_deplibs_check_method=pass_all
5018 ;;
5019
5020openbsd*)
5021 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5023 else
5024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5025 fi
5026 ;;
5027
5028osf3* | osf4* | osf5*)
5029 lt_cv_deplibs_check_method=pass_all
5030 ;;
5031
5032rdos*)
5033 lt_cv_deplibs_check_method=pass_all
5034 ;;
5035
5036solaris*)
5037 lt_cv_deplibs_check_method=pass_all
5038 ;;
5039
5040sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5041 lt_cv_deplibs_check_method=pass_all
5042 ;;
5043
5044sysv4 | sysv4.3*)
5045 case $host_vendor in
5046 motorola)
5047 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]'
5048 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5049 ;;
5050 ncr)
5051 lt_cv_deplibs_check_method=pass_all
5052 ;;
5053 sequent)
5054 lt_cv_file_magic_cmd='/bin/file'
5055 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5056 ;;
5057 sni)
5058 lt_cv_file_magic_cmd='/bin/file'
5059 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5060 lt_cv_file_magic_test_file=/lib/libc.so
5061 ;;
5062 siemens)
5063 lt_cv_deplibs_check_method=pass_all
5064 ;;
5065 pc)
5066 lt_cv_deplibs_check_method=pass_all
5067 ;;
5068 esac
5069 ;;
5070
5071tpf*)
5072 lt_cv_deplibs_check_method=pass_all
5073 ;;
5074esac
5075
5076fi
5077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5078$as_echo "$lt_cv_deplibs_check_method" >&6; }
5079file_magic_cmd=$lt_cv_file_magic_cmd
5080deplibs_check_method=$lt_cv_deplibs_check_method
5081test -z "$deplibs_check_method" && deplibs_check_method=unknown
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094if test -n "$ac_tool_prefix"; then
5095 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5096set dummy ${ac_tool_prefix}ar; ac_word=$2
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098$as_echo_n "checking for $ac_word... " >&6; }
5099if test "${ac_cv_prog_AR+set}" = set; then :
5100 $as_echo_n "(cached) " >&6
5101else
5102 if test -n "$AR"; then
5103 ac_cv_prog_AR="$AR" # Let the user override the test.
5104else
5105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106for as_dir in $PATH
5107do
5108 IFS=$as_save_IFS
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112 ac_cv_prog_AR="${ac_tool_prefix}ar"
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 break 2
5115 fi
5116done
5117 done
5118IFS=$as_save_IFS
5119
5120fi
5121fi
5122AR=$ac_cv_prog_AR
5123if test -n "$AR"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5125$as_echo "$AR" >&6; }
5126else
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128$as_echo "no" >&6; }
5129fi
5130
5131
5132fi
5133if test -z "$ac_cv_prog_AR"; then
5134 ac_ct_AR=$AR
5135 # Extract the first word of "ar", so it can be a program name with args.
5136set dummy ar; ac_word=$2
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138$as_echo_n "checking for $ac_word... " >&6; }
5139if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5140 $as_echo_n "(cached) " >&6
5141else
5142 if test -n "$ac_ct_AR"; then
5143 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5144else
5145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146for as_dir in $PATH
5147do
5148 IFS=$as_save_IFS
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152 ac_cv_prog_ac_ct_AR="ar"
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 break 2
5155 fi
5156done
5157 done
5158IFS=$as_save_IFS
5159
5160fi
5161fi
5162ac_ct_AR=$ac_cv_prog_ac_ct_AR
5163if test -n "$ac_ct_AR"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5165$as_echo "$ac_ct_AR" >&6; }
5166else
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168$as_echo "no" >&6; }
5169fi
5170
5171 if test "x$ac_ct_AR" = x; then
5172 AR="false"
5173 else
5174 case $cross_compiling:$ac_tool_warned in
5175yes:)
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5178ac_tool_warned=yes ;;
5179esac
5180 AR=$ac_ct_AR
5181 fi
5182else
5183 AR="$ac_cv_prog_AR"
5184fi
5185
5186test -z "$AR" && AR=ar
5187test -z "$AR_FLAGS" && AR_FLAGS=cru
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199if test -n "$ac_tool_prefix"; then
5200 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5201set dummy ${ac_tool_prefix}strip; ac_word=$2
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203$as_echo_n "checking for $ac_word... " >&6; }
5204if test "${ac_cv_prog_STRIP+set}" = set; then :
5205 $as_echo_n "(cached) " >&6
5206else
5207 if test -n "$STRIP"; then
5208 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5209else
5210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211for as_dir in $PATH
5212do
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5217 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5220 fi
5221done
5222 done
5223IFS=$as_save_IFS
5224
5225fi
5226fi
5227STRIP=$ac_cv_prog_STRIP
5228if test -n "$STRIP"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5230$as_echo "$STRIP" >&6; }
5231else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233$as_echo "no" >&6; }
5234fi
5235
5236
5237fi
5238if test -z "$ac_cv_prog_STRIP"; then
5239 ac_ct_STRIP=$STRIP
5240 # Extract the first word of "strip", so it can be a program name with args.
5241set dummy strip; ac_word=$2
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243$as_echo_n "checking for $ac_word... " >&6; }
5244if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5245 $as_echo_n "(cached) " >&6
5246else
5247 if test -n "$ac_ct_STRIP"; then
5248 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5249else
5250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251for as_dir in $PATH
5252do
5253 IFS=$as_save_IFS
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5257 ac_cv_prog_ac_ct_STRIP="strip"
5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 break 2
5260 fi
5261done
5262 done
5263IFS=$as_save_IFS
5264
5265fi
5266fi
5267ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5268if test -n "$ac_ct_STRIP"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5270$as_echo "$ac_ct_STRIP" >&6; }
5271else
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273$as_echo "no" >&6; }
5274fi
5275
5276 if test "x$ac_ct_STRIP" = x; then
5277 STRIP=":"
5278 else
5279 case $cross_compiling:$ac_tool_warned in
5280yes:)
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5283ac_tool_warned=yes ;;
5284esac
5285 STRIP=$ac_ct_STRIP
5286 fi
5287else
5288 STRIP="$ac_cv_prog_STRIP"
5289fi
5290
5291test -z "$STRIP" && STRIP=:
5292
5293
5294
5295
5296
5297
5298if test -n "$ac_tool_prefix"; then
5299 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5300set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302$as_echo_n "checking for $ac_word... " >&6; }
5303if test "${ac_cv_prog_RANLIB+set}" = set; then :
5304 $as_echo_n "(cached) " >&6
5305else
5306 if test -n "$RANLIB"; then
5307 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5308else
5309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310for as_dir in $PATH
5311do
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5316 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 break 2
5319 fi
5320done
5321 done
5322IFS=$as_save_IFS
5323
5324fi
5325fi
5326RANLIB=$ac_cv_prog_RANLIB
5327if test -n "$RANLIB"; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5329$as_echo "$RANLIB" >&6; }
5330else
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332$as_echo "no" >&6; }
5333fi
5334
5335
5336fi
5337if test -z "$ac_cv_prog_RANLIB"; then
5338 ac_ct_RANLIB=$RANLIB
5339 # Extract the first word of "ranlib", so it can be a program name with args.
5340set dummy ranlib; ac_word=$2
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5342$as_echo_n "checking for $ac_word... " >&6; }
5343if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5344 $as_echo_n "(cached) " >&6
5345else
5346 if test -n "$ac_ct_RANLIB"; then
5347 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5348else
5349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350for as_dir in $PATH
5351do
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5356 ac_cv_prog_ac_ct_RANLIB="ranlib"
5357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 break 2
5359 fi
5360done
5361 done
5362IFS=$as_save_IFS
5363
5364fi
5365fi
5366ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5367if test -n "$ac_ct_RANLIB"; then
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5369$as_echo "$ac_ct_RANLIB" >&6; }
5370else
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372$as_echo "no" >&6; }
5373fi
5374
5375 if test "x$ac_ct_RANLIB" = x; then
5376 RANLIB=":"
5377 else
5378 case $cross_compiling:$ac_tool_warned in
5379yes:)
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5382ac_tool_warned=yes ;;
5383esac
5384 RANLIB=$ac_ct_RANLIB
5385 fi
5386else
5387 RANLIB="$ac_cv_prog_RANLIB"
5388fi
5389
5390test -z "$RANLIB" && RANLIB=:
5391
5392
5393
5394
5395
5396
5397# Determine commands to create old-style static archives.
5398old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5399old_postinstall_cmds='chmod 644 $oldlib'
5400old_postuninstall_cmds=
5401
5402if test -n "$RANLIB"; then
5403 case $host_os in
5404 openbsd*)
5405 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5406 ;;
5407 *)
5408 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5409 ;;
5410 esac
5411 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5412fi
5413
5414case $host_os in
5415 darwin*)
5416 lock_old_archive_extraction=yes ;;
5417 *)
5418 lock_old_archive_extraction=no ;;
5419esac
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459# If no C compiler was specified, use CC.
5460LTCC=${LTCC-"$CC"}
5461
5462# If no C compiler flags were specified, use CFLAGS.
5463LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5464
5465# Allow CC to be a program name with arguments.
5466compiler=$CC
5467
5468
5469# Check for command to grab the raw symbol name followed by C symbol from nm.
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5471$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5472if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5473 $as_echo_n "(cached) " >&6
5474else
5475
5476# These are sane defaults that work on at least a few old systems.
5477# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5478
5479# Character class describing NM global symbol codes.
5480symcode='[BCDEGRST]'
5481
5482# Regexp to match symbols that can be accessed directly from C.
5483sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5484
5485# Define system-specific variables.
5486case $host_os in
5487aix*)
5488 symcode='[BCDT]'
5489 ;;
5490cygwin* | mingw* | pw32* | cegcc*)
5491 symcode='[ABCDGISTW]'
5492 ;;
5493hpux*)
5494 if test "$host_cpu" = ia64; then
5495 symcode='[ABCDEGRST]'
5496 fi
5497 ;;
5498irix* | nonstopux*)
5499 symcode='[BCDEGRST]'
5500 ;;
5501osf*)
5502 symcode='[BCDEGQRST]'
5503 ;;
5504solaris*)
5505 symcode='[BDRT]'
5506 ;;
5507sco3.2v5*)
5508 symcode='[DT]'
5509 ;;
5510sysv4.2uw2*)
5511 symcode='[DT]'
5512 ;;
5513sysv5* | sco5v6* | unixware* | OpenUNIX*)
5514 symcode='[ABDT]'
5515 ;;
5516sysv4)
5517 symcode='[DFNSTU]'
5518 ;;
5519esac
5520
5521# If we're using GNU nm, then use its standard symbol codes.
5522case `$NM -V 2>&1` in
5523*GNU* | *'with BFD'*)
5524 symcode='[ABCDGIRSTW]' ;;
5525esac
5526
5527# Transform an extracted symbol line into a proper C declaration.
5528# Some systems (esp. on ia64) link data and code symbols differently,
5529# so use this general approach.
5530lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5531
5532# Transform an extracted symbol line into symbol name and symbol address
5533lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5534lt_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'"
5535
5536# Handle CRLF in mingw tool chain
5537opt_cr=
5538case $build_os in
5539mingw*)
5540 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5541 ;;
5542esac
5543
5544# Try without a prefix underscore, then with it.
5545for ac_symprfx in "" "_"; do
5546
5547 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5548 symxfrm="\\1 $ac_symprfx\\2 \\2"
5549
5550 # Write the raw and C identifiers.
5551 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5552 # Fake it for dumpbin and say T for any non-static function
5553 # and D for any global variable.
5554 # Also find C++ and __fastcall symbols from MSVC++,
5555 # which start with @ or ?.
5556 lt_cv_sys_global_symbol_pipe="$AWK '"\
5557" {last_section=section; section=\$ 3};"\
5558" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5559" \$ 0!~/External *\|/{next};"\
5560" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5561" {if(hide[section]) next};"\
5562" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5563" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5564" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5565" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5566" ' prfx=^$ac_symprfx"
5567 else
5568 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5569 fi
5570
5571 # Check to see that the pipe works correctly.
5572 pipe_works=no
5573
5574 rm -f conftest*
5575 cat > conftest.$ac_ext <<_LT_EOF
5576#ifdef __cplusplus
5577extern "C" {
5578#endif
5579char nm_test_var;
5580void nm_test_func(void);
5581void nm_test_func(void){}
5582#ifdef __cplusplus
5583}
5584#endif
5585int main(){nm_test_var='a';nm_test_func();return(0);}
5586_LT_EOF
5587
5588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5589 (eval $ac_compile) 2>&5
5590 ac_status=$?
5591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5592 test $ac_status = 0; }; then
5593 # Now try to grab the symbols.
5594 nlist=conftest.nm
5595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5596 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5597 ac_status=$?
5598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5599 test $ac_status = 0; } && test -s "$nlist"; then
5600 # Try sorting and uniquifying the output.
5601 if sort "$nlist" | uniq > "$nlist"T; then
5602 mv -f "$nlist"T "$nlist"
5603 else
5604 rm -f "$nlist"T
5605 fi
5606
5607 # Make sure that we snagged all the symbols we need.
5608 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5609 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5610 cat <<_LT_EOF > conftest.$ac_ext
5611#ifdef __cplusplus
5612extern "C" {
5613#endif
5614
5615_LT_EOF
5616 # Now generate the symbol file.
5617 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5618
5619 cat <<_LT_EOF >> conftest.$ac_ext
5620
5621/* The mapping between symbol names and symbols. */
5622const struct {
5623 const char *name;
5624 void *address;
5625}
5626lt__PROGRAM__LTX_preloaded_symbols[] =
5627{
5628 { "@PROGRAM@", (void *) 0 },
5629_LT_EOF
5630 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5631 cat <<\_LT_EOF >> conftest.$ac_ext
5632 {0, (void *) 0}
5633};
5634
5635/* This works around a problem in FreeBSD linker */
5636#ifdef FREEBSD_WORKAROUND
5637static const void *lt_preloaded_setup() {
5638 return lt__PROGRAM__LTX_preloaded_symbols;
5639}
5640#endif
5641
5642#ifdef __cplusplus
5643}
5644#endif
5645_LT_EOF
5646 # Now try linking the two files.
5647 mv conftest.$ac_objext conftstm.$ac_objext
5648 lt_save_LIBS="$LIBS"
5649 lt_save_CFLAGS="$CFLAGS"
5650 LIBS="conftstm.$ac_objext"
5651 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5653 (eval $ac_link) 2>&5
5654 ac_status=$?
5655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5656 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5657 pipe_works=yes
5658 fi
5659 LIBS="$lt_save_LIBS"
5660 CFLAGS="$lt_save_CFLAGS"
5661 else
5662 echo "cannot find nm_test_func in $nlist" >&5
5663 fi
5664 else
5665 echo "cannot find nm_test_var in $nlist" >&5
5666 fi
5667 else
5668 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5669 fi
5670 else
5671 echo "$progname: failed program was:" >&5
5672 cat conftest.$ac_ext >&5
5673 fi
5674 rm -rf conftest* conftst*
5675
5676 # Do not use the global_symbol_pipe unless it works.
5677 if test "$pipe_works" = yes; then
5678 break
5679 else
5680 lt_cv_sys_global_symbol_pipe=
5681 fi
5682done
5683
5684fi
5685
5686if test -z "$lt_cv_sys_global_symbol_pipe"; then
5687 lt_cv_sys_global_symbol_to_cdecl=
5688fi
5689if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5691$as_echo "failed" >&6; }
5692else
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5694$as_echo "ok" >&6; }
5695fi
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719# Check whether --enable-libtool-lock was given.
5720if test "${enable_libtool_lock+set}" = set; then :
5721 enableval=$enable_libtool_lock;
5722fi
5723
5724test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5725
5726# Some flags need to be propagated to the compiler or linker for good
5727# libtool support.
5728case $host in
5729ia64-*-hpux*)
5730 # Find out which ABI we are using.
5731 echo 'int i;' > conftest.$ac_ext
5732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5733 (eval $ac_compile) 2>&5
5734 ac_status=$?
5735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5736 test $ac_status = 0; }; then
5737 case `/usr/bin/file conftest.$ac_objext` in
5738 *ELF-32*)
5739 HPUX_IA64_MODE="32"
5740 ;;
5741 *ELF-64*)
5742 HPUX_IA64_MODE="64"
5743 ;;
5744 esac
5745 fi
5746 rm -rf conftest*
5747 ;;
5748*-*-irix6*)
5749 # Find out which ABI we are using.
5750 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5752 (eval $ac_compile) 2>&5
5753 ac_status=$?
5754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5755 test $ac_status = 0; }; then
5756 if test "$lt_cv_prog_gnu_ld" = yes; then
5757 case `/usr/bin/file conftest.$ac_objext` in
5758 *32-bit*)
5759 LD="${LD-ld} -melf32bsmip"
5760 ;;
5761 *N32*)
5762 LD="${LD-ld} -melf32bmipn32"
5763 ;;
5764 *64-bit*)
5765 LD="${LD-ld} -melf64bmip"
5766 ;;
5767 esac
5768 else
5769 case `/usr/bin/file conftest.$ac_objext` in
5770 *32-bit*)
5771 LD="${LD-ld} -32"
5772 ;;
5773 *N32*)
5774 LD="${LD-ld} -n32"
5775 ;;
5776 *64-bit*)
5777 LD="${LD-ld} -64"
5778 ;;
5779 esac
5780 fi
5781 fi
5782 rm -rf conftest*
5783 ;;
5784
5785x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5786s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5787 # Find out which ABI we are using.
5788 echo 'int i;' > conftest.$ac_ext
5789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5790 (eval $ac_compile) 2>&5
5791 ac_status=$?
5792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5793 test $ac_status = 0; }; then
5794 case `/usr/bin/file conftest.o` in
5795 *32-bit*)
5796 case $host in
5797 x86_64-*kfreebsd*-gnu)
5798 LD="${LD-ld} -m elf_i386_fbsd"
5799 ;;
5800 x86_64-*linux*)
5801 LD="${LD-ld} -m elf_i386"
5802 ;;
5803 ppc64-*linux*|powerpc64-*linux*)
5804 LD="${LD-ld} -m elf32ppclinux"
5805 ;;
5806 s390x-*linux*)
5807 LD="${LD-ld} -m elf_s390"
5808 ;;
5809 sparc64-*linux*)
5810 LD="${LD-ld} -m elf32_sparc"
5811 ;;
5812 esac
5813 ;;
5814 *64-bit*)
5815 case $host in
5816 x86_64-*kfreebsd*-gnu)
5817 LD="${LD-ld} -m elf_x86_64_fbsd"
5818 ;;
5819 x86_64-*linux*)
5820 LD="${LD-ld} -m elf_x86_64"
5821 ;;
5822 ppc*-*linux*|powerpc*-*linux*)
5823 LD="${LD-ld} -m elf64ppc"
5824 ;;
5825 s390*-*linux*|s390*-*tpf*)
5826 LD="${LD-ld} -m elf64_s390"
5827 ;;
5828 sparc*-*linux*)
5829 LD="${LD-ld} -m elf64_sparc"
5830 ;;
5831 esac
5832 ;;
5833 esac
5834 fi
5835 rm -rf conftest*
5836 ;;
5837
5838*-*-sco3.2v5*)
5839 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5840 SAVE_CFLAGS="$CFLAGS"
5841 CFLAGS="$CFLAGS -belf"
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5843$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5844if test "${lt_cv_cc_needs_belf+set}" = set; then :
5845 $as_echo_n "(cached) " >&6
5846else
5847 ac_ext=c
5848ac_cpp='$CPP $CPPFLAGS'
5849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5851ac_compiler_gnu=$ac_cv_c_compiler_gnu
5852
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854/* end confdefs.h. */
5855
5856int
5857main ()
5858{
5859
5860 ;
5861 return 0;
5862}
5863_ACEOF
5864if ac_fn_c_try_link "$LINENO"; then :
5865 lt_cv_cc_needs_belf=yes
5866else
5867 lt_cv_cc_needs_belf=no
5868fi
5869rm -f core conftest.err conftest.$ac_objext \
5870 conftest$ac_exeext conftest.$ac_ext
5871 ac_ext=c
5872ac_cpp='$CPP $CPPFLAGS'
5873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5875ac_compiler_gnu=$ac_cv_c_compiler_gnu
5876
5877fi
5878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5879$as_echo "$lt_cv_cc_needs_belf" >&6; }
5880 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5881 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5882 CFLAGS="$SAVE_CFLAGS"
5883 fi
5884 ;;
5885sparc*-*solaris*)
5886 # Find out which ABI we are using.
5887 echo 'int i;' > conftest.$ac_ext
5888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5889 (eval $ac_compile) 2>&5
5890 ac_status=$?
5891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5892 test $ac_status = 0; }; then
5893 case `/usr/bin/file conftest.o` in
5894 *64-bit*)
5895 case $lt_cv_prog_gnu_ld in
5896 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5897 *)
5898 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5899 LD="${LD-ld} -64"
5900 fi
5901 ;;
5902 esac
5903 ;;
5904 esac
5905 fi
5906 rm -rf conftest*
5907 ;;
5908esac
5909
5910need_locks="$enable_libtool_lock"
5911
5912
5913 case $host_os in
5914 rhapsody* | darwin*)
5915 if test -n "$ac_tool_prefix"; then
5916 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5917set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919$as_echo_n "checking for $ac_word... " >&6; }
5920if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5921 $as_echo_n "(cached) " >&6
5922else
5923 if test -n "$DSYMUTIL"; then
5924 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5925else
5926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927for as_dir in $PATH
5928do
5929 IFS=$as_save_IFS
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5933 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 break 2
5936 fi
5937done
5938 done
5939IFS=$as_save_IFS
5940
5941fi
5942fi
5943DSYMUTIL=$ac_cv_prog_DSYMUTIL
5944if test -n "$DSYMUTIL"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5946$as_echo "$DSYMUTIL" >&6; }
5947else
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949$as_echo "no" >&6; }
5950fi
5951
5952
5953fi
5954if test -z "$ac_cv_prog_DSYMUTIL"; then
5955 ac_ct_DSYMUTIL=$DSYMUTIL
5956 # Extract the first word of "dsymutil", so it can be a program name with args.
5957set dummy dsymutil; ac_word=$2
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959$as_echo_n "checking for $ac_word... " >&6; }
5960if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5961 $as_echo_n "(cached) " >&6
5962else
5963 if test -n "$ac_ct_DSYMUTIL"; then
5964 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5965else
5966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967for as_dir in $PATH
5968do
5969 IFS=$as_save_IFS
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5973 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 break 2
5976 fi
5977done
5978 done
5979IFS=$as_save_IFS
5980
5981fi
5982fi
5983ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5984if test -n "$ac_ct_DSYMUTIL"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5986$as_echo "$ac_ct_DSYMUTIL" >&6; }
5987else
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989$as_echo "no" >&6; }
5990fi
5991
5992 if test "x$ac_ct_DSYMUTIL" = x; then
5993 DSYMUTIL=":"
5994 else
5995 case $cross_compiling:$ac_tool_warned in
5996yes:)
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5999ac_tool_warned=yes ;;
6000esac
6001 DSYMUTIL=$ac_ct_DSYMUTIL
6002 fi
6003else
6004 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6005fi
6006
6007 if test -n "$ac_tool_prefix"; then
6008 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6009set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011$as_echo_n "checking for $ac_word... " >&6; }
6012if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6013 $as_echo_n "(cached) " >&6
6014else
6015 if test -n "$NMEDIT"; then
6016 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6017else
6018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019for as_dir in $PATH
6020do
6021 IFS=$as_save_IFS
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6025 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 break 2
6028 fi
6029done
6030 done
6031IFS=$as_save_IFS
6032
6033fi
6034fi
6035NMEDIT=$ac_cv_prog_NMEDIT
6036if test -n "$NMEDIT"; then
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6038$as_echo "$NMEDIT" >&6; }
6039else
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041$as_echo "no" >&6; }
6042fi
6043
6044
6045fi
6046if test -z "$ac_cv_prog_NMEDIT"; then
6047 ac_ct_NMEDIT=$NMEDIT
6048 # Extract the first word of "nmedit", so it can be a program name with args.
6049set dummy nmedit; ac_word=$2
6050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051$as_echo_n "checking for $ac_word... " >&6; }
6052if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6053 $as_echo_n "(cached) " >&6
6054else
6055 if test -n "$ac_ct_NMEDIT"; then
6056 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6057else
6058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059for as_dir in $PATH
6060do
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6065 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 break 2
6068 fi
6069done
6070 done
6071IFS=$as_save_IFS
6072
6073fi
6074fi
6075ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6076if test -n "$ac_ct_NMEDIT"; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6078$as_echo "$ac_ct_NMEDIT" >&6; }
6079else
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081$as_echo "no" >&6; }
6082fi
6083
6084 if test "x$ac_ct_NMEDIT" = x; then
6085 NMEDIT=":"
6086 else
6087 case $cross_compiling:$ac_tool_warned in
6088yes:)
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6091ac_tool_warned=yes ;;
6092esac
6093 NMEDIT=$ac_ct_NMEDIT
6094 fi
6095else
6096 NMEDIT="$ac_cv_prog_NMEDIT"
6097fi
6098
6099 if test -n "$ac_tool_prefix"; then
6100 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6101set dummy ${ac_tool_prefix}lipo; ac_word=$2
6102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6103$as_echo_n "checking for $ac_word... " >&6; }
6104if test "${ac_cv_prog_LIPO+set}" = set; then :
6105 $as_echo_n "(cached) " >&6
6106else
6107 if test -n "$LIPO"; then
6108 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6109else
6110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111for as_dir in $PATH
6112do
6113 IFS=$as_save_IFS
6114 test -z "$as_dir" && as_dir=.
6115 for ac_exec_ext in '' $ac_executable_extensions; do
6116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6117 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6119 break 2
6120 fi
6121done
6122 done
6123IFS=$as_save_IFS
6124
6125fi
6126fi
6127LIPO=$ac_cv_prog_LIPO
6128if test -n "$LIPO"; then
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6130$as_echo "$LIPO" >&6; }
6131else
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133$as_echo "no" >&6; }
6134fi
6135
6136
6137fi
6138if test -z "$ac_cv_prog_LIPO"; then
6139 ac_ct_LIPO=$LIPO
6140 # Extract the first word of "lipo", so it can be a program name with args.
6141set dummy lipo; ac_word=$2
6142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6143$as_echo_n "checking for $ac_word... " >&6; }
6144if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6145 $as_echo_n "(cached) " >&6
6146else
6147 if test -n "$ac_ct_LIPO"; then
6148 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6149else
6150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151for as_dir in $PATH
6152do
6153 IFS=$as_save_IFS
6154 test -z "$as_dir" && as_dir=.
6155 for ac_exec_ext in '' $ac_executable_extensions; do
6156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6157 ac_cv_prog_ac_ct_LIPO="lipo"
6158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6159 break 2
6160 fi
6161done
6162 done
6163IFS=$as_save_IFS
6164
6165fi
6166fi
6167ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6168if test -n "$ac_ct_LIPO"; then
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6170$as_echo "$ac_ct_LIPO" >&6; }
6171else
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6173$as_echo "no" >&6; }
6174fi
6175
6176 if test "x$ac_ct_LIPO" = x; then
6177 LIPO=":"
6178 else
6179 case $cross_compiling:$ac_tool_warned in
6180yes:)
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6183ac_tool_warned=yes ;;
6184esac
6185 LIPO=$ac_ct_LIPO
6186 fi
6187else
6188 LIPO="$ac_cv_prog_LIPO"
6189fi
6190
6191 if test -n "$ac_tool_prefix"; then
6192 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6193set dummy ${ac_tool_prefix}otool; ac_word=$2
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195$as_echo_n "checking for $ac_word... " >&6; }
6196if test "${ac_cv_prog_OTOOL+set}" = set; then :
6197 $as_echo_n "(cached) " >&6
6198else
6199 if test -n "$OTOOL"; then
6200 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6201else
6202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203for as_dir in $PATH
6204do
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 break 2
6212 fi
6213done
6214 done
6215IFS=$as_save_IFS
6216
6217fi
6218fi
6219OTOOL=$ac_cv_prog_OTOOL
6220if test -n "$OTOOL"; then
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6222$as_echo "$OTOOL" >&6; }
6223else
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225$as_echo "no" >&6; }
6226fi
6227
6228
6229fi
6230if test -z "$ac_cv_prog_OTOOL"; then
6231 ac_ct_OTOOL=$OTOOL
6232 # Extract the first word of "otool", so it can be a program name with args.
6233set dummy otool; ac_word=$2
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235$as_echo_n "checking for $ac_word... " >&6; }
6236if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6237 $as_echo_n "(cached) " >&6
6238else
6239 if test -n "$ac_ct_OTOOL"; then
6240 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6241else
6242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243for as_dir in $PATH
6244do
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249 ac_cv_prog_ac_ct_OTOOL="otool"
6250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 break 2
6252 fi
6253done
6254 done
6255IFS=$as_save_IFS
6256
6257fi
6258fi
6259ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6260if test -n "$ac_ct_OTOOL"; then
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6262$as_echo "$ac_ct_OTOOL" >&6; }
6263else
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265$as_echo "no" >&6; }
6266fi
6267
6268 if test "x$ac_ct_OTOOL" = x; then
6269 OTOOL=":"
6270 else
6271 case $cross_compiling:$ac_tool_warned in
6272yes:)
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6275ac_tool_warned=yes ;;
6276esac
6277 OTOOL=$ac_ct_OTOOL
6278 fi
6279else
6280 OTOOL="$ac_cv_prog_OTOOL"
6281fi
6282
6283 if test -n "$ac_tool_prefix"; then
6284 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6285set dummy ${ac_tool_prefix}otool64; ac_word=$2
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287$as_echo_n "checking for $ac_word... " >&6; }
6288if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6289 $as_echo_n "(cached) " >&6
6290else
6291 if test -n "$OTOOL64"; then
6292 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6293else
6294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295for as_dir in $PATH
6296do
6297 IFS=$as_save_IFS
6298 test -z "$as_dir" && as_dir=.
6299 for ac_exec_ext in '' $ac_executable_extensions; do
6300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6301 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6303 break 2
6304 fi
6305done
6306 done
6307IFS=$as_save_IFS
6308
6309fi
6310fi
6311OTOOL64=$ac_cv_prog_OTOOL64
6312if test -n "$OTOOL64"; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6314$as_echo "$OTOOL64" >&6; }
6315else
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317$as_echo "no" >&6; }
6318fi
6319
6320
6321fi
6322if test -z "$ac_cv_prog_OTOOL64"; then
6323 ac_ct_OTOOL64=$OTOOL64
6324 # Extract the first word of "otool64", so it can be a program name with args.
6325set dummy otool64; ac_word=$2
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327$as_echo_n "checking for $ac_word... " >&6; }
6328if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6329 $as_echo_n "(cached) " >&6
6330else
6331 if test -n "$ac_ct_OTOOL64"; then
6332 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6333else
6334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335for as_dir in $PATH
6336do
6337 IFS=$as_save_IFS
6338 test -z "$as_dir" && as_dir=.
6339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6341 ac_cv_prog_ac_ct_OTOOL64="otool64"
6342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 break 2
6344 fi
6345done
6346 done
6347IFS=$as_save_IFS
6348
6349fi
6350fi
6351ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6352if test -n "$ac_ct_OTOOL64"; then
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6354$as_echo "$ac_ct_OTOOL64" >&6; }
6355else
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357$as_echo "no" >&6; }
6358fi
6359
6360 if test "x$ac_ct_OTOOL64" = x; then
6361 OTOOL64=":"
6362 else
6363 case $cross_compiling:$ac_tool_warned in
6364yes:)
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6366$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6367ac_tool_warned=yes ;;
6368esac
6369 OTOOL64=$ac_ct_OTOOL64
6370 fi
6371else
6372 OTOOL64="$ac_cv_prog_OTOOL64"
6373fi
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6402$as_echo_n "checking for -single_module linker flag... " >&6; }
6403if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6404 $as_echo_n "(cached) " >&6
6405else
6406 lt_cv_apple_cc_single_mod=no
6407 if test -z "${LT_MULTI_MODULE}"; then
6408 # By default we will add the -single_module flag. You can override
6409 # by either setting the environment variable LT_MULTI_MODULE
6410 # non-empty at configure time, or by adding -multi_module to the
6411 # link flags.
6412 rm -rf libconftest.dylib*
6413 echo "int foo(void){return 1;}" > conftest.c
6414 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6415-dynamiclib -Wl,-single_module conftest.c" >&5
6416 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6417 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6418 _lt_result=$?
6419 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6420 lt_cv_apple_cc_single_mod=yes
6421 else
6422 cat conftest.err >&5
6423 fi
6424 rm -rf libconftest.dylib*
6425 rm -f conftest.*
6426 fi
6427fi
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6429$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6431$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6432if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6433 $as_echo_n "(cached) " >&6
6434else
6435 lt_cv_ld_exported_symbols_list=no
6436 save_LDFLAGS=$LDFLAGS
6437 echo "_main" > conftest.sym
6438 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440/* end confdefs.h. */
6441
6442int
6443main ()
6444{
6445
6446 ;
6447 return 0;
6448}
6449_ACEOF
6450if ac_fn_c_try_link "$LINENO"; then :
6451 lt_cv_ld_exported_symbols_list=yes
6452else
6453 lt_cv_ld_exported_symbols_list=no
6454fi
6455rm -f core conftest.err conftest.$ac_objext \
6456 conftest$ac_exeext conftest.$ac_ext
6457 LDFLAGS="$save_LDFLAGS"
6458
6459fi
6460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6461$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6463$as_echo_n "checking for -force_load linker flag... " >&6; }
6464if test "${lt_cv_ld_force_load+set}" = set; then :
6465 $as_echo_n "(cached) " >&6
6466else
6467 lt_cv_ld_force_load=no
6468 cat > conftest.c << _LT_EOF
6469int forced_loaded() { return 2;}
6470_LT_EOF
6471 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6472 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6473 echo "$AR cru libconftest.a conftest.o" >&5
6474 $AR cru libconftest.a conftest.o 2>&5
6475 cat > conftest.c << _LT_EOF
6476int main() { return 0;}
6477_LT_EOF
6478 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6479 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6480 _lt_result=$?
6481 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6482 lt_cv_ld_force_load=yes
6483 else
6484 cat conftest.err >&5
6485 fi
6486 rm -f conftest.err libconftest.a conftest conftest.c
6487 rm -rf conftest.dSYM
6488
6489fi
6490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6491$as_echo "$lt_cv_ld_force_load" >&6; }
6492 case $host_os in
6493 rhapsody* | darwin1.[012])
6494 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6495 darwin1.*)
6496 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6497 darwin*) # darwin 5.x on
6498 # if running on 10.5 or later, the deployment target defaults
6499 # to the OS version, if on x86, and 10.4, the deployment
6500 # target defaults to 10.4. Don't you love it?
6501 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6502 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6503 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6504 10.[012]*)
6505 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6506 10.*)
6507 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6508 esac
6509 ;;
6510 esac
6511 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6512 _lt_dar_single_mod='$single_module'
6513 fi
6514 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6515 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6516 else
6517 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6518 fi
6519 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6520 _lt_dsymutil='~$DSYMUTIL $lib || :'
6521 else
6522 _lt_dsymutil=
6523 fi
6524 ;;
6525 esac
6526
6527ac_ext=c
6528ac_cpp='$CPP $CPPFLAGS'
6529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6531ac_compiler_gnu=$ac_cv_c_compiler_gnu
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6533$as_echo_n "checking how to run the C preprocessor... " >&6; }
6534# On Suns, sometimes $CPP names a directory.
6535if test -n "$CPP" && test -d "$CPP"; then
6536 CPP=
6537fi
6538if test -z "$CPP"; then
6539 if test "${ac_cv_prog_CPP+set}" = set; then :
6540 $as_echo_n "(cached) " >&6
6541else
6542 # Double quotes because CPP needs to be expanded
6543 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6544 do
6545 ac_preproc_ok=false
6546for ac_c_preproc_warn_flag in '' yes
6547do
6548 # Use a header file that comes with gcc, so configuring glibc
6549 # with a fresh cross-compiler works.
6550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6551 # <limits.h> exists even on freestanding compilers.
6552 # On the NeXT, cc -E runs the code through the compiler's parser,
6553 # not just through cpp. "Syntax error" is here to catch this case.
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555/* end confdefs.h. */
6556#ifdef __STDC__
6557# include <limits.h>
6558#else
6559# include <assert.h>
6560#endif
6561 Syntax error
6562_ACEOF
6563if ac_fn_c_try_cpp "$LINENO"; then :
6564
6565else
6566 # Broken: fails on valid input.
6567continue
6568fi
6569rm -f conftest.err conftest.$ac_ext
6570
6571 # OK, works on sane cases. Now check whether nonexistent headers
6572 # can be detected and how.
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574/* end confdefs.h. */
6575#include <ac_nonexistent.h>
6576_ACEOF
6577if ac_fn_c_try_cpp "$LINENO"; then :
6578 # Broken: success on invalid input.
6579continue
6580else
6581 # Passes both tests.
6582ac_preproc_ok=:
6583break
6584fi
6585rm -f conftest.err conftest.$ac_ext
6586
6587done
6588# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6589rm -f conftest.err conftest.$ac_ext
6590if $ac_preproc_ok; then :
6591 break
6592fi
6593
6594 done
6595 ac_cv_prog_CPP=$CPP
6596
6597fi
6598 CPP=$ac_cv_prog_CPP
6599else
6600 ac_cv_prog_CPP=$CPP
6601fi
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6603$as_echo "$CPP" >&6; }
6604ac_preproc_ok=false
6605for ac_c_preproc_warn_flag in '' yes
6606do
6607 # Use a header file that comes with gcc, so configuring glibc
6608 # with a fresh cross-compiler works.
6609 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6610 # <limits.h> exists even on freestanding compilers.
6611 # On the NeXT, cc -E runs the code through the compiler's parser,
6612 # not just through cpp. "Syntax error" is here to catch this case.
6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614/* end confdefs.h. */
6615#ifdef __STDC__
6616# include <limits.h>
6617#else
6618# include <assert.h>
6619#endif
6620 Syntax error
6621_ACEOF
6622if ac_fn_c_try_cpp "$LINENO"; then :
6623
6624else
6625 # Broken: fails on valid input.
6626continue
6627fi
6628rm -f conftest.err conftest.$ac_ext
6629
6630 # OK, works on sane cases. Now check whether nonexistent headers
6631 # can be detected and how.
6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633/* end confdefs.h. */
6634#include <ac_nonexistent.h>
6635_ACEOF
6636if ac_fn_c_try_cpp "$LINENO"; then :
6637 # Broken: success on invalid input.
6638continue
6639else
6640 # Passes both tests.
6641ac_preproc_ok=:
6642break
6643fi
6644rm -f conftest.err conftest.$ac_ext
6645
6646done
6647# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6648rm -f conftest.err conftest.$ac_ext
6649if $ac_preproc_ok; then :
6650
6651else
6652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6653$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6654as_fn_error "C preprocessor \"$CPP\" fails sanity check
6655See \`config.log' for more details." "$LINENO" 5; }
6656fi
6657
6658ac_ext=c
6659ac_cpp='$CPP $CPPFLAGS'
6660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6662ac_compiler_gnu=$ac_cv_c_compiler_gnu
6663
6664
6665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6666$as_echo_n "checking for ANSI C header files... " >&6; }
6667if test "${ac_cv_header_stdc+set}" = set; then :
6668 $as_echo_n "(cached) " >&6
6669else
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671/* end confdefs.h. */
6672#include <stdlib.h>
6673#include <stdarg.h>
6674#include <string.h>
6675#include <float.h>
6676
6677int
6678main ()
6679{
6680
6681 ;
6682 return 0;
6683}
6684_ACEOF
6685if ac_fn_c_try_compile "$LINENO"; then :
6686 ac_cv_header_stdc=yes
6687else
6688 ac_cv_header_stdc=no
6689fi
6690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691
6692if test $ac_cv_header_stdc = yes; then
6693 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695/* end confdefs.h. */
6696#include <string.h>
6697
6698_ACEOF
6699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6700 $EGREP "memchr" >/dev/null 2>&1; then :
6701
6702else
6703 ac_cv_header_stdc=no
6704fi
6705rm -f conftest*
6706
6707fi
6708
6709if test $ac_cv_header_stdc = yes; then
6710 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712/* end confdefs.h. */
6713#include <stdlib.h>
6714
6715_ACEOF
6716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6717 $EGREP "free" >/dev/null 2>&1; then :
6718
6719else
6720 ac_cv_header_stdc=no
6721fi
6722rm -f conftest*
6723
6724fi
6725
6726if test $ac_cv_header_stdc = yes; then
6727 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6728 if test "$cross_compiling" = yes; then :
6729 :
6730else
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732/* end confdefs.h. */
6733#include <ctype.h>
6734#include <stdlib.h>
6735#if ((' ' & 0x0FF) == 0x020)
6736# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6737# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6738#else
6739# define ISLOWER(c) \
6740 (('a' <= (c) && (c) <= 'i') \
6741 || ('j' <= (c) && (c) <= 'r') \
6742 || ('s' <= (c) && (c) <= 'z'))
6743# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6744#endif
6745
6746#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6747int
6748main ()
6749{
6750 int i;
6751 for (i = 0; i < 256; i++)
6752 if (XOR (islower (i), ISLOWER (i))
6753 || toupper (i) != TOUPPER (i))
6754 return 2;
6755 return 0;
6756}
6757_ACEOF
6758if ac_fn_c_try_run "$LINENO"; then :
6759
6760else
6761 ac_cv_header_stdc=no
6762fi
6763rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6764 conftest.$ac_objext conftest.beam conftest.$ac_ext
6765fi
6766
6767fi
6768fi
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6770$as_echo "$ac_cv_header_stdc" >&6; }
6771if test $ac_cv_header_stdc = yes; then
6772
6773$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6774
6775fi
6776
6777# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6778for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6779 inttypes.h stdint.h unistd.h
6780do :
6781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6782ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6783"
6784eval as_val=\$$as_ac_Header
6785 if test "x$as_val" = x""yes; then :
6786 cat >>confdefs.h <<_ACEOF
6787#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6788_ACEOF
6789
6790fi
6791
6792done
6793
6794
6795for ac_header in dlfcn.h
6796do :
6797 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6798"
6799if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6800 cat >>confdefs.h <<_ACEOF
6801#define HAVE_DLFCN_H 1
6802_ACEOF
6803
6804fi
6805
6806done
6807
6808
6809
6810
6811
6812# Set options
6813
6814
6815
6816 enable_dlopen=no
6817
6818
6819 enable_win32_dll=no
6820
6821
6822 # Check whether --enable-shared was given.
6823if test "${enable_shared+set}" = set; then :
6824 enableval=$enable_shared; p=${PACKAGE-default}
6825 case $enableval in
6826 yes) enable_shared=yes ;;
6827 no) enable_shared=no ;;
6828 *)
6829 enable_shared=no
6830 # Look at the argument we got. We use all the common list separators.
6831 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6832 for pkg in $enableval; do
6833 IFS="$lt_save_ifs"
6834 if test "X$pkg" = "X$p"; then
6835 enable_shared=yes
6836 fi
6837 done
6838 IFS="$lt_save_ifs"
6839 ;;
6840 esac
6841else
6842 enable_shared=yes
6843fi
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853 # Check whether --enable-static was given.
6854if test "${enable_static+set}" = set; then :
6855 enableval=$enable_static; p=${PACKAGE-default}
6856 case $enableval in
6857 yes) enable_static=yes ;;
6858 no) enable_static=no ;;
6859 *)
6860 enable_static=no
6861 # Look at the argument we got. We use all the common list separators.
6862 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6863 for pkg in $enableval; do
6864 IFS="$lt_save_ifs"
6865 if test "X$pkg" = "X$p"; then
6866 enable_static=yes
6867 fi
6868 done
6869 IFS="$lt_save_ifs"
6870 ;;
6871 esac
6872else
6873 enable_static=yes
6874fi
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885# Check whether --with-pic was given.
6886if test "${with_pic+set}" = set; then :
6887 withval=$with_pic; pic_mode="$withval"
6888else
6889 pic_mode=default
6890fi
6891
6892
6893test -z "$pic_mode" && pic_mode=default
6894
6895
6896
6897
6898
6899
6900
6901 # Check whether --enable-fast-install was given.
6902if test "${enable_fast_install+set}" = set; then :
6903 enableval=$enable_fast_install; p=${PACKAGE-default}
6904 case $enableval in
6905 yes) enable_fast_install=yes ;;
6906 no) enable_fast_install=no ;;
6907 *)
6908 enable_fast_install=no
6909 # Look at the argument we got. We use all the common list separators.
6910 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6911 for pkg in $enableval; do
6912 IFS="$lt_save_ifs"
6913 if test "X$pkg" = "X$p"; then
6914 enable_fast_install=yes
6915 fi
6916 done
6917 IFS="$lt_save_ifs"
6918 ;;
6919 esac
6920else
6921 enable_fast_install=yes
6922fi
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934# This can be used to rebuild libtool when needed
6935LIBTOOL_DEPS="$ltmain"
6936
6937# Always use our own libtool.
6938LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965test -z "$LN_S" && LN_S="ln -s"
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980if test -n "${ZSH_VERSION+set}" ; then
6981 setopt NO_GLOB_SUBST
6982fi
6983
6984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6985$as_echo_n "checking for objdir... " >&6; }
6986if test "${lt_cv_objdir+set}" = set; then :
6987 $as_echo_n "(cached) " >&6
6988else
6989 rm -f .libs 2>/dev/null
6990mkdir .libs 2>/dev/null
6991if test -d .libs; then
6992 lt_cv_objdir=.libs
6993else
6994 # MS-DOS does not allow filenames that begin with a dot.
6995 lt_cv_objdir=_libs
6996fi
6997rmdir .libs 2>/dev/null
6998fi
6999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7000$as_echo "$lt_cv_objdir" >&6; }
7001objdir=$lt_cv_objdir
7002
7003
7004
7005
7006
7007cat >>confdefs.h <<_ACEOF
7008#define LT_OBJDIR "$lt_cv_objdir/"
7009_ACEOF
7010
7011
7012
7013
7014case $host_os in
7015aix3*)
7016 # AIX sometimes has problems with the GCC collect2 program. For some
7017 # reason, if we set the COLLECT_NAMES environment variable, the problems
7018 # vanish in a puff of smoke.
7019 if test "X${COLLECT_NAMES+set}" != Xset; then
7020 COLLECT_NAMES=
7021 export COLLECT_NAMES
7022 fi
7023 ;;
7024esac
7025
7026# Global variables:
7027ofile=libtool
7028can_build_shared=yes
7029
7030# All known linkers require a `.a' archive for static linking (except MSVC,
7031# which needs '.lib').
7032libext=a
7033
7034with_gnu_ld="$lt_cv_prog_gnu_ld"
7035
7036old_CC="$CC"
7037old_CFLAGS="$CFLAGS"
7038
7039# Set sane defaults for various variables
7040test -z "$CC" && CC=cc
7041test -z "$LTCC" && LTCC=$CC
7042test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7043test -z "$LD" && LD=ld
7044test -z "$ac_objext" && ac_objext=o
7045
7046for cc_temp in $compiler""; do
7047 case $cc_temp in
7048 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7049 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7050 \-*) ;;
7051 *) break;;
7052 esac
7053done
7054cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7055
7056
7057# Only perform the check for file, if the check method requires it
7058test -z "$MAGIC_CMD" && MAGIC_CMD=file
7059case $deplibs_check_method in
7060file_magic*)
7061 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7063$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7064if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7065 $as_echo_n "(cached) " >&6
7066else
7067 case $MAGIC_CMD in
7068[\\/*] | ?:[\\/]*)
7069 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7070 ;;
7071*)
7072 lt_save_MAGIC_CMD="$MAGIC_CMD"
7073 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7074 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7075 for ac_dir in $ac_dummy; do
7076 IFS="$lt_save_ifs"
7077 test -z "$ac_dir" && ac_dir=.
7078 if test -f $ac_dir/${ac_tool_prefix}file; then
7079 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7080 if test -n "$file_magic_test_file"; then
7081 case $deplibs_check_method in
7082 "file_magic "*)
7083 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7084 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7085 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7086 $EGREP "$file_magic_regex" > /dev/null; then
7087 :
7088 else
7089 cat <<_LT_EOF 1>&2
7090
7091*** Warning: the command libtool uses to detect shared libraries,
7092*** $file_magic_cmd, produces output that libtool cannot recognize.
7093*** The result is that libtool may fail to recognize shared libraries
7094*** as such. This will affect the creation of libtool libraries that
7095*** depend on shared libraries, but programs linked with such libtool
7096*** libraries will work regardless of this problem. Nevertheless, you
7097*** may want to report the problem to your system manager and/or to
7098*** bug-libtool@gnu.org
7099
7100_LT_EOF
7101 fi ;;
7102 esac
7103 fi
7104 break
7105 fi
7106 done
7107 IFS="$lt_save_ifs"
7108 MAGIC_CMD="$lt_save_MAGIC_CMD"
7109 ;;
7110esac
7111fi
7112
7113MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7114if test -n "$MAGIC_CMD"; then
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7116$as_echo "$MAGIC_CMD" >&6; }
7117else
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119$as_echo "no" >&6; }
7120fi
7121
7122
7123
7124
7125
7126if test -z "$lt_cv_path_MAGIC_CMD"; then
7127 if test -n "$ac_tool_prefix"; then
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7129$as_echo_n "checking for file... " >&6; }
7130if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7131 $as_echo_n "(cached) " >&6
7132else
7133 case $MAGIC_CMD in
7134[\\/*] | ?:[\\/]*)
7135 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7136 ;;
7137*)
7138 lt_save_MAGIC_CMD="$MAGIC_CMD"
7139 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7140 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7141 for ac_dir in $ac_dummy; do
7142 IFS="$lt_save_ifs"
7143 test -z "$ac_dir" && ac_dir=.
7144 if test -f $ac_dir/file; then
7145 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7146 if test -n "$file_magic_test_file"; then
7147 case $deplibs_check_method in
7148 "file_magic "*)
7149 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7151 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7152 $EGREP "$file_magic_regex" > /dev/null; then
7153 :
7154 else
7155 cat <<_LT_EOF 1>&2
7156
7157*** Warning: the command libtool uses to detect shared libraries,
7158*** $file_magic_cmd, produces output that libtool cannot recognize.
7159*** The result is that libtool may fail to recognize shared libraries
7160*** as such. This will affect the creation of libtool libraries that
7161*** depend on shared libraries, but programs linked with such libtool
7162*** libraries will work regardless of this problem. Nevertheless, you
7163*** may want to report the problem to your system manager and/or to
7164*** bug-libtool@gnu.org
7165
7166_LT_EOF
7167 fi ;;
7168 esac
7169 fi
7170 break
7171 fi
7172 done
7173 IFS="$lt_save_ifs"
7174 MAGIC_CMD="$lt_save_MAGIC_CMD"
7175 ;;
7176esac
7177fi
7178
7179MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7180if test -n "$MAGIC_CMD"; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7182$as_echo "$MAGIC_CMD" >&6; }
7183else
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185$as_echo "no" >&6; }
7186fi
7187
7188
7189 else
7190 MAGIC_CMD=:
7191 fi
7192fi
7193
7194 fi
7195 ;;
7196esac
7197
7198# Use C for the default configuration in the libtool script
7199
7200lt_save_CC="$CC"
7201ac_ext=c
7202ac_cpp='$CPP $CPPFLAGS'
7203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7205ac_compiler_gnu=$ac_cv_c_compiler_gnu
7206
7207
7208# Source file extension for C test sources.
7209ac_ext=c
7210
7211# Object file extension for compiled C test sources.
7212objext=o
7213objext=$objext
7214
7215# Code to be used in simple compile tests
7216lt_simple_compile_test_code="int some_variable = 0;"
7217
7218# Code to be used in simple link tests
7219lt_simple_link_test_code='int main(){return(0);}'
7220
7221
7222
7223
7224
7225
7226
7227# If no C compiler was specified, use CC.
7228LTCC=${LTCC-"$CC"}
7229
7230# If no C compiler flags were specified, use CFLAGS.
7231LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7232
7233# Allow CC to be a program name with arguments.
7234compiler=$CC
7235
7236# Save the default compiler, since it gets overwritten when the other
7237# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7238compiler_DEFAULT=$CC
7239
7240# save warnings/boilerplate of simple test code
7241ac_outfile=conftest.$ac_objext
7242echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7243eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7244_lt_compiler_boilerplate=`cat conftest.err`
7245$RM conftest*
7246
7247ac_outfile=conftest.$ac_objext
7248echo "$lt_simple_link_test_code" >conftest.$ac_ext
7249eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7250_lt_linker_boilerplate=`cat conftest.err`
7251$RM -r conftest*
7252
7253
7254## CAVEAT EMPTOR:
7255## There is no encapsulation within the following macros, do not change
7256## the running order or otherwise move them around unless you know exactly
7257## what you are doing...
7258if test -n "$compiler"; then
7259
7260lt_prog_compiler_no_builtin_flag=
7261
7262if test "$GCC" = yes; then
7263 case $cc_basename in
7264 nvcc*)
7265 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7266 *)
7267 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7268 esac
7269
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7271$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7272if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7273 $as_echo_n "(cached) " >&6
7274else
7275 lt_cv_prog_compiler_rtti_exceptions=no
7276 ac_outfile=conftest.$ac_objext
7277 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7278 lt_compiler_flag="-fno-rtti -fno-exceptions"
7279 # Insert the option either (1) after the last *FLAGS variable, or
7280 # (2) before a word containing "conftest.", or (3) at the end.
7281 # Note that $ac_compile itself does not contain backslashes and begins
7282 # with a dollar sign (not a hyphen), so the echo should work correctly.
7283 # The option is referenced via a variable to avoid confusing sed.
7284 lt_compile=`echo "$ac_compile" | $SED \
7285 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7286 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7287 -e 's:$: $lt_compiler_flag:'`
7288 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7289 (eval "$lt_compile" 2>conftest.err)
7290 ac_status=$?
7291 cat conftest.err >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 if (exit $ac_status) && test -s "$ac_outfile"; then
7294 # The compiler can only warn and ignore the option if not recognized
7295 # So say no if there are warnings other than the usual output.
7296 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7297 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7298 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7299 lt_cv_prog_compiler_rtti_exceptions=yes
7300 fi
7301 fi
7302 $RM conftest*
7303
7304fi
7305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7306$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7307
7308if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7309 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7310else
7311 :
7312fi
7313
7314fi
7315
7316
7317
7318
7319
7320
7321 lt_prog_compiler_wl=
7322lt_prog_compiler_pic=
7323lt_prog_compiler_static=
7324
7325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7326$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7327
7328 if test "$GCC" = yes; then
7329 lt_prog_compiler_wl='-Wl,'
7330 lt_prog_compiler_static='-static'
7331
7332 case $host_os in
7333 aix*)
7334 # All AIX code is PIC.
7335 if test "$host_cpu" = ia64; then
7336 # AIX 5 now supports IA64 processor
7337 lt_prog_compiler_static='-Bstatic'
7338 fi
7339 ;;
7340
7341 amigaos*)
7342 case $host_cpu in
7343 powerpc)
7344 # see comment about AmigaOS4 .so support
7345 lt_prog_compiler_pic='-fPIC'
7346 ;;
7347 m68k)
7348 # FIXME: we need at least 68020 code to build shared libraries, but
7349 # adding the `-m68020' flag to GCC prevents building anything better,
7350 # like `-m68040'.
7351 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7352 ;;
7353 esac
7354 ;;
7355
7356 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7357 # PIC is the default for these OSes.
7358 ;;
7359
7360 mingw* | cygwin* | pw32* | os2* | cegcc*)
7361 # This hack is so that the source file can tell whether it is being
7362 # built for inclusion in a dll (and should export symbols for example).
7363 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7364 # (--disable-auto-import) libraries
7365 lt_prog_compiler_pic='-DDLL_EXPORT'
7366 ;;
7367
7368 darwin* | rhapsody*)
7369 # PIC is the default on this platform
7370 # Common symbols not allowed in MH_DYLIB files
7371 lt_prog_compiler_pic='-fno-common'
7372 ;;
7373
7374 haiku*)
7375 # PIC is the default for Haiku.
7376 # The "-static" flag exists, but is broken.
7377 lt_prog_compiler_static=
7378 ;;
7379
7380 hpux*)
7381 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7382 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7383 # sets the default TLS model and affects inlining.
7384 case $host_cpu in
7385 hppa*64*)
7386 # +Z the default
7387 ;;
7388 *)
7389 lt_prog_compiler_pic='-fPIC'
7390 ;;
7391 esac
7392 ;;
7393
7394 interix[3-9]*)
7395 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7396 # Instead, we relocate shared libraries at runtime.
7397 ;;
7398
7399 msdosdjgpp*)
7400 # Just because we use GCC doesn't mean we suddenly get shared libraries
7401 # on systems that don't support them.
7402 lt_prog_compiler_can_build_shared=no
7403 enable_shared=no
7404 ;;
7405
7406 *nto* | *qnx*)
7407 # QNX uses GNU C++, but need to define -shared option too, otherwise
7408 # it will coredump.
7409 lt_prog_compiler_pic='-fPIC -shared'
7410 ;;
7411
7412 sysv4*MP*)
7413 if test -d /usr/nec; then
7414 lt_prog_compiler_pic=-Kconform_pic
7415 fi
7416 ;;
7417
7418 *)
7419 lt_prog_compiler_pic='-fPIC'
7420 ;;
7421 esac
7422
7423 case $cc_basename in
7424 nvcc*) # Cuda Compiler Driver 2.2
7425 lt_prog_compiler_wl='-Xlinker '
7426 lt_prog_compiler_pic='-Xcompiler -fPIC'
7427 ;;
7428 esac
7429 else
7430 # PORTME Check for flag to pass linker flags through the system compiler.
7431 case $host_os in
7432 aix*)
7433 lt_prog_compiler_wl='-Wl,'
7434 if test "$host_cpu" = ia64; then
7435 # AIX 5 now supports IA64 processor
7436 lt_prog_compiler_static='-Bstatic'
7437 else
7438 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7439 fi
7440 ;;
7441
7442 mingw* | cygwin* | pw32* | os2* | cegcc*)
7443 # This hack is so that the source file can tell whether it is being
7444 # built for inclusion in a dll (and should export symbols for example).
7445 lt_prog_compiler_pic='-DDLL_EXPORT'
7446 ;;
7447
7448 hpux9* | hpux10* | hpux11*)
7449 lt_prog_compiler_wl='-Wl,'
7450 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7451 # not for PA HP-UX.
7452 case $host_cpu in
7453 hppa*64*|ia64*)
7454 # +Z the default
7455 ;;
7456 *)
7457 lt_prog_compiler_pic='+Z'
7458 ;;
7459 esac
7460 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7461 lt_prog_compiler_static='${wl}-a ${wl}archive'
7462 ;;
7463
7464 irix5* | irix6* | nonstopux*)
7465 lt_prog_compiler_wl='-Wl,'
7466 # PIC (with -KPIC) is the default.
7467 lt_prog_compiler_static='-non_shared'
7468 ;;
7469
7470 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7471 case $cc_basename in
7472 # old Intel for x86_64 which still supported -KPIC.
7473 ecc*)
7474 lt_prog_compiler_wl='-Wl,'
7475 lt_prog_compiler_pic='-KPIC'
7476 lt_prog_compiler_static='-static'
7477 ;;
7478 # icc used to be incompatible with GCC.
7479 # ICC 10 doesn't accept -KPIC any more.
7480 icc* | ifort*)
7481 lt_prog_compiler_wl='-Wl,'
7482 lt_prog_compiler_pic='-fPIC'
7483 lt_prog_compiler_static='-static'
7484 ;;
7485 # Lahey Fortran 8.1.
7486 lf95*)
7487 lt_prog_compiler_wl='-Wl,'
7488 lt_prog_compiler_pic='--shared'
7489 lt_prog_compiler_static='--static'
7490 ;;
7491 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7492 # Portland Group compilers (*not* the Pentium gcc compiler,
7493 # which looks to be a dead project)
7494 lt_prog_compiler_wl='-Wl,'
7495 lt_prog_compiler_pic='-fpic'
7496 lt_prog_compiler_static='-Bstatic'
7497 ;;
7498 ccc*)
7499 lt_prog_compiler_wl='-Wl,'
7500 # All Alpha code is PIC.
7501 lt_prog_compiler_static='-non_shared'
7502 ;;
7503 xl* | bgxl* | bgf* | mpixl*)
7504 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7505 lt_prog_compiler_wl='-Wl,'
7506 lt_prog_compiler_pic='-qpic'
7507 lt_prog_compiler_static='-qstaticlink'
7508 ;;
7509 *)
7510 case `$CC -V 2>&1 | sed 5q` in
7511 *Sun\ F* | *Sun*Fortran*)
7512 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7513 lt_prog_compiler_pic='-KPIC'
7514 lt_prog_compiler_static='-Bstatic'
7515 lt_prog_compiler_wl=''
7516 ;;
7517 *Sun\ C*)
7518 # Sun C 5.9
7519 lt_prog_compiler_pic='-KPIC'
7520 lt_prog_compiler_static='-Bstatic'
7521 lt_prog_compiler_wl='-Wl,'
7522 ;;
7523 esac
7524 ;;
7525 esac
7526 ;;
7527
7528 newsos6)
7529 lt_prog_compiler_pic='-KPIC'
7530 lt_prog_compiler_static='-Bstatic'
7531 ;;
7532
7533 *nto* | *qnx*)
7534 # QNX uses GNU C++, but need to define -shared option too, otherwise
7535 # it will coredump.
7536 lt_prog_compiler_pic='-fPIC -shared'
7537 ;;
7538
7539 osf3* | osf4* | osf5*)
7540 lt_prog_compiler_wl='-Wl,'
7541 # All OSF/1 code is PIC.
7542 lt_prog_compiler_static='-non_shared'
7543 ;;
7544
7545 rdos*)
7546 lt_prog_compiler_static='-non_shared'
7547 ;;
7548
7549 solaris*)
7550 lt_prog_compiler_pic='-KPIC'
7551 lt_prog_compiler_static='-Bstatic'
7552 case $cc_basename in
7553 f77* | f90* | f95*)
7554 lt_prog_compiler_wl='-Qoption ld ';;
7555 *)
7556 lt_prog_compiler_wl='-Wl,';;
7557 esac
7558 ;;
7559
7560 sunos4*)
7561 lt_prog_compiler_wl='-Qoption ld '
7562 lt_prog_compiler_pic='-PIC'
7563 lt_prog_compiler_static='-Bstatic'
7564 ;;
7565
7566 sysv4 | sysv4.2uw2* | sysv4.3*)
7567 lt_prog_compiler_wl='-Wl,'
7568 lt_prog_compiler_pic='-KPIC'
7569 lt_prog_compiler_static='-Bstatic'
7570 ;;
7571
7572 sysv4*MP*)
7573 if test -d /usr/nec ;then
7574 lt_prog_compiler_pic='-Kconform_pic'
7575 lt_prog_compiler_static='-Bstatic'
7576 fi
7577 ;;
7578
7579 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7580 lt_prog_compiler_wl='-Wl,'
7581 lt_prog_compiler_pic='-KPIC'
7582 lt_prog_compiler_static='-Bstatic'
7583 ;;
7584
7585 unicos*)
7586 lt_prog_compiler_wl='-Wl,'
7587 lt_prog_compiler_can_build_shared=no
7588 ;;
7589
7590 uts4*)
7591 lt_prog_compiler_pic='-pic'
7592 lt_prog_compiler_static='-Bstatic'
7593 ;;
7594
7595 *)
7596 lt_prog_compiler_can_build_shared=no
7597 ;;
7598 esac
7599 fi
7600
7601case $host_os in
7602 # For platforms which do not support PIC, -DPIC is meaningless:
7603 *djgpp*)
7604 lt_prog_compiler_pic=
7605 ;;
7606 *)
7607 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7608 ;;
7609esac
7610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7611$as_echo "$lt_prog_compiler_pic" >&6; }
7612
7613
7614
7615
7616
7617
7618#
7619# Check to make sure the PIC flag actually works.
7620#
7621if test -n "$lt_prog_compiler_pic"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7623$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7624if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7625 $as_echo_n "(cached) " >&6
7626else
7627 lt_cv_prog_compiler_pic_works=no
7628 ac_outfile=conftest.$ac_objext
7629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7630 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7631 # Insert the option either (1) after the last *FLAGS variable, or
7632 # (2) before a word containing "conftest.", or (3) at the end.
7633 # Note that $ac_compile itself does not contain backslashes and begins
7634 # with a dollar sign (not a hyphen), so the echo should work correctly.
7635 # The option is referenced via a variable to avoid confusing sed.
7636 lt_compile=`echo "$ac_compile" | $SED \
7637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7639 -e 's:$: $lt_compiler_flag:'`
7640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7641 (eval "$lt_compile" 2>conftest.err)
7642 ac_status=$?
7643 cat conftest.err >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 if (exit $ac_status) && test -s "$ac_outfile"; then
7646 # The compiler can only warn and ignore the option if not recognized
7647 # So say no if there are warnings other than the usual output.
7648 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7650 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7651 lt_cv_prog_compiler_pic_works=yes
7652 fi
7653 fi
7654 $RM conftest*
7655
7656fi
7657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7658$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7659
7660if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7661 case $lt_prog_compiler_pic in
7662 "" | " "*) ;;
7663 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7664 esac
7665else
7666 lt_prog_compiler_pic=
7667 lt_prog_compiler_can_build_shared=no
7668fi
7669
7670fi
7671
7672
7673
7674
7675
7676
7677#
7678# Check to make sure the static flag actually works.
7679#
7680wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7682$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7683if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7684 $as_echo_n "(cached) " >&6
7685else
7686 lt_cv_prog_compiler_static_works=no
7687 save_LDFLAGS="$LDFLAGS"
7688 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7689 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7690 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7691 # The linker can only warn and ignore the option if not recognized
7692 # So say no if there are warnings
7693 if test -s conftest.err; then
7694 # Append any errors to the config.log.
7695 cat conftest.err 1>&5
7696 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7697 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7698 if diff conftest.exp conftest.er2 >/dev/null; then
7699 lt_cv_prog_compiler_static_works=yes
7700 fi
7701 else
7702 lt_cv_prog_compiler_static_works=yes
7703 fi
7704 fi
7705 $RM -r conftest*
7706 LDFLAGS="$save_LDFLAGS"
7707
7708fi
7709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7710$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7711
7712if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7713 :
7714else
7715 lt_prog_compiler_static=
7716fi
7717
7718
7719
7720
7721
7722
7723
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7725$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7726if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7727 $as_echo_n "(cached) " >&6
7728else
7729 lt_cv_prog_compiler_c_o=no
7730 $RM -r conftest 2>/dev/null
7731 mkdir conftest
7732 cd conftest
7733 mkdir out
7734 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7735
7736 lt_compiler_flag="-o out/conftest2.$ac_objext"
7737 # Insert the option either (1) after the last *FLAGS variable, or
7738 # (2) before a word containing "conftest.", or (3) at the end.
7739 # Note that $ac_compile itself does not contain backslashes and begins
7740 # with a dollar sign (not a hyphen), so the echo should work correctly.
7741 lt_compile=`echo "$ac_compile" | $SED \
7742 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7743 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7744 -e 's:$: $lt_compiler_flag:'`
7745 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7746 (eval "$lt_compile" 2>out/conftest.err)
7747 ac_status=$?
7748 cat out/conftest.err >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7751 then
7752 # The compiler can only warn and ignore the option if not recognized
7753 # So say no if there are warnings
7754 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7755 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7756 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7757 lt_cv_prog_compiler_c_o=yes
7758 fi
7759 fi
7760 chmod u+w . 2>&5
7761 $RM conftest*
7762 # SGI C++ compiler will create directory out/ii_files/ for
7763 # template instantiation
7764 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7765 $RM out/* && rmdir out
7766 cd ..
7767 $RM -r conftest
7768 $RM conftest*
7769
7770fi
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7772$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7773
7774
7775
7776
7777
7778
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7780$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7781if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7782 $as_echo_n "(cached) " >&6
7783else
7784 lt_cv_prog_compiler_c_o=no
7785 $RM -r conftest 2>/dev/null
7786 mkdir conftest
7787 cd conftest
7788 mkdir out
7789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7790
7791 lt_compiler_flag="-o out/conftest2.$ac_objext"
7792 # Insert the option either (1) after the last *FLAGS variable, or
7793 # (2) before a word containing "conftest.", or (3) at the end.
7794 # Note that $ac_compile itself does not contain backslashes and begins
7795 # with a dollar sign (not a hyphen), so the echo should work correctly.
7796 lt_compile=`echo "$ac_compile" | $SED \
7797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7799 -e 's:$: $lt_compiler_flag:'`
7800 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7801 (eval "$lt_compile" 2>out/conftest.err)
7802 ac_status=$?
7803 cat out/conftest.err >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7806 then
7807 # The compiler can only warn and ignore the option if not recognized
7808 # So say no if there are warnings
7809 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7810 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7811 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7812 lt_cv_prog_compiler_c_o=yes
7813 fi
7814 fi
7815 chmod u+w . 2>&5
7816 $RM conftest*
7817 # SGI C++ compiler will create directory out/ii_files/ for
7818 # template instantiation
7819 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7820 $RM out/* && rmdir out
7821 cd ..
7822 $RM -r conftest
7823 $RM conftest*
7824
7825fi
7826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7827$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7828
7829
7830
7831
7832hard_links="nottested"
7833if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7834 # do not overwrite the value of need_locks provided by the user
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7836$as_echo_n "checking if we can lock with hard links... " >&6; }
7837 hard_links=yes
7838 $RM conftest*
7839 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7840 touch conftest.a
7841 ln conftest.a conftest.b 2>&5 || hard_links=no
7842 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7844$as_echo "$hard_links" >&6; }
7845 if test "$hard_links" = no; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7847$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7848 need_locks=warn
7849 fi
7850else
7851 need_locks=no
7852fi
7853
7854
7855
7856
7857
7858
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7860$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7861
7862 runpath_var=
7863 allow_undefined_flag=
7864 always_export_symbols=no
7865 archive_cmds=
7866 archive_expsym_cmds=
7867 compiler_needs_object=no
7868 enable_shared_with_static_runtimes=no
7869 export_dynamic_flag_spec=
7870 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7871 hardcode_automatic=no
7872 hardcode_direct=no
7873 hardcode_direct_absolute=no
7874 hardcode_libdir_flag_spec=
7875 hardcode_libdir_flag_spec_ld=
7876 hardcode_libdir_separator=
7877 hardcode_minus_L=no
7878 hardcode_shlibpath_var=unsupported
7879 inherit_rpath=no
7880 link_all_deplibs=unknown
7881 module_cmds=
7882 module_expsym_cmds=
7883 old_archive_from_new_cmds=
7884 old_archive_from_expsyms_cmds=
7885 thread_safe_flag_spec=
7886 whole_archive_flag_spec=
7887 # include_expsyms should be a list of space-separated symbols to be *always*
7888 # included in the symbol list
7889 include_expsyms=
7890 # exclude_expsyms can be an extended regexp of symbols to exclude
7891 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7892 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7893 # as well as any symbol that contains `d'.
7894 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7895 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7896 # platforms (ab)use it in PIC code, but their linkers get confused if
7897 # the symbol is explicitly referenced. Since portable code cannot
7898 # rely on this symbol name, it's probably fine to never include it in
7899 # preloaded symbol tables.
7900 # Exclude shared library initialization/finalization symbols.
7901 extract_expsyms_cmds=
7902
7903 case $host_os in
7904 cygwin* | mingw* | pw32* | cegcc*)
7905 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7906 # When not using gcc, we currently assume that we are using
7907 # Microsoft Visual C++.
7908 if test "$GCC" != yes; then
7909 with_gnu_ld=no
7910 fi
7911 ;;
7912 interix*)
7913 # we just hope/assume this is gcc and not c89 (= MSVC++)
7914 with_gnu_ld=yes
7915 ;;
7916 openbsd*)
7917 with_gnu_ld=no
7918 ;;
7919 esac
7920
7921 ld_shlibs=yes
7922
7923 # On some targets, GNU ld is compatible enough with the native linker
7924 # that we're better off using the native interface for both.
7925 lt_use_gnu_ld_interface=no
7926 if test "$with_gnu_ld" = yes; then
7927 case $host_os in
7928 aix*)
7929 # The AIX port of GNU ld has always aspired to compatibility
7930 # with the native linker. However, as the warning in the GNU ld
7931 # block says, versions before 2.19.5* couldn't really create working
7932 # shared libraries, regardless of the interface used.
7933 case `$LD -v 2>&1` in
7934 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7935 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7936 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7937 *)
7938 lt_use_gnu_ld_interface=yes
7939 ;;
7940 esac
7941 ;;
7942 *)
7943 lt_use_gnu_ld_interface=yes
7944 ;;
7945 esac
7946 fi
7947
7948 if test "$lt_use_gnu_ld_interface" = yes; then
7949 # If archive_cmds runs LD, not CC, wlarc should be empty
7950 wlarc='${wl}'
7951
7952 # Set some defaults for GNU ld with shared library support. These
7953 # are reset later if shared libraries are not supported. Putting them
7954 # here allows them to be overridden if necessary.
7955 runpath_var=LD_RUN_PATH
7956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7957 export_dynamic_flag_spec='${wl}--export-dynamic'
7958 # ancient GNU ld didn't support --whole-archive et. al.
7959 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7960 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7961 else
7962 whole_archive_flag_spec=
7963 fi
7964 supports_anon_versioning=no
7965 case `$LD -v 2>&1` in
7966 *GNU\ gold*) supports_anon_versioning=yes ;;
7967 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7968 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7969 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7970 *\ 2.11.*) ;; # other 2.11 versions
7971 *) supports_anon_versioning=yes ;;
7972 esac
7973
7974 # See if GNU ld supports shared libraries.
7975 case $host_os in
7976 aix[3-9]*)
7977 # On AIX/PPC, the GNU linker is very broken
7978 if test "$host_cpu" != ia64; then
7979 ld_shlibs=no
7980 cat <<_LT_EOF 1>&2
7981
7982*** Warning: the GNU linker, at least up to release 2.19, is reported
7983*** to be unable to reliably create shared libraries on AIX.
7984*** Therefore, libtool is disabling shared libraries support. If you
7985*** really care for shared libraries, you may want to install binutils
7986*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7987*** You will then need to restart the configuration process.
7988
7989_LT_EOF
7990 fi
7991 ;;
7992
7993 amigaos*)
7994 case $host_cpu in
7995 powerpc)
7996 # see comment about AmigaOS4 .so support
7997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7998 archive_expsym_cmds=''
7999 ;;
8000 m68k)
8001 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)'
8002 hardcode_libdir_flag_spec='-L$libdir'
8003 hardcode_minus_L=yes
8004 ;;
8005 esac
8006 ;;
8007
8008 beos*)
8009 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8010 allow_undefined_flag=unsupported
8011 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8012 # support --undefined. This deserves some investigation. FIXME
8013 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8014 else
8015 ld_shlibs=no
8016 fi
8017 ;;
8018
8019 cygwin* | mingw* | pw32* | cegcc*)
8020 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8021 # as there is no search path for DLLs.
8022 hardcode_libdir_flag_spec='-L$libdir'
8023 export_dynamic_flag_spec='${wl}--export-all-symbols'
8024 allow_undefined_flag=unsupported
8025 always_export_symbols=no
8026 enable_shared_with_static_runtimes=yes
8027 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8028
8029 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8031 # If the export-symbols file already is a .def file (1st line
8032 # is EXPORTS), use it as is; otherwise, prepend...
8033 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8034 cp $export_symbols $output_objdir/$soname.def;
8035 else
8036 echo EXPORTS > $output_objdir/$soname.def;
8037 cat $export_symbols >> $output_objdir/$soname.def;
8038 fi~
8039 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8040 else
8041 ld_shlibs=no
8042 fi
8043 ;;
8044
8045 haiku*)
8046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8047 link_all_deplibs=yes
8048 ;;
8049
8050 interix[3-9]*)
8051 hardcode_direct=no
8052 hardcode_shlibpath_var=no
8053 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8054 export_dynamic_flag_spec='${wl}-E'
8055 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8056 # Instead, shared libraries are loaded at an image base (0x10000000 by
8057 # default) and relocated if they conflict, which is a slow very memory
8058 # consuming and fragmenting process. To avoid this, we pick a random,
8059 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8060 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8061 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8062 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'
8063 ;;
8064
8065 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8066 tmp_diet=no
8067 if test "$host_os" = linux-dietlibc; then
8068 case $cc_basename in
8069 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8070 esac
8071 fi
8072 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8073 && test "$tmp_diet" = no
8074 then
8075 tmp_addflag=
8076 tmp_sharedflag='-shared'
8077 case $cc_basename,$host_cpu in
8078 pgcc*) # Portland Group C compiler
8079 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'
8080 tmp_addflag=' $pic_flag'
8081 ;;
8082 pgf77* | pgf90* | pgf95* | pgfortran*)
8083 # Portland Group f77 and f90 compilers
8084 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'
8085 tmp_addflag=' $pic_flag -Mnomain' ;;
8086 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8087 tmp_addflag=' -i_dynamic' ;;
8088 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8089 tmp_addflag=' -i_dynamic -nofor_main' ;;
8090 ifc* | ifort*) # Intel Fortran compiler
8091 tmp_addflag=' -nofor_main' ;;
8092 lf95*) # Lahey Fortran 8.1
8093 whole_archive_flag_spec=
8094 tmp_sharedflag='--shared' ;;
8095 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8096 tmp_sharedflag='-qmkshrobj'
8097 tmp_addflag= ;;
8098 nvcc*) # Cuda Compiler Driver 2.2
8099 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'
8100 compiler_needs_object=yes
8101 ;;
8102 esac
8103 case `$CC -V 2>&1 | sed 5q` in
8104 *Sun\ C*) # Sun C 5.9
8105 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'
8106 compiler_needs_object=yes
8107 tmp_sharedflag='-G' ;;
8108 *Sun\ F*) # Sun Fortran 8.3
8109 tmp_sharedflag='-G' ;;
8110 esac
8111 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8112
8113 if test "x$supports_anon_versioning" = xyes; then
8114 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8115 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8116 echo "local: *; };" >> $output_objdir/$libname.ver~
8117 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8118 fi
8119
8120 case $cc_basename in
8121 xlf* | bgf* | bgxlf* | mpixlf*)
8122 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8123 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8124 hardcode_libdir_flag_spec=
8125 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8126 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8127 if test "x$supports_anon_versioning" = xyes; then
8128 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8129 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8130 echo "local: *; };" >> $output_objdir/$libname.ver~
8131 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8132 fi
8133 ;;
8134 esac
8135 else
8136 ld_shlibs=no
8137 fi
8138 ;;
8139
8140 netbsd*)
8141 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8142 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8143 wlarc=
8144 else
8145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8146 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8147 fi
8148 ;;
8149
8150 solaris*)
8151 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8152 ld_shlibs=no
8153 cat <<_LT_EOF 1>&2
8154
8155*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8156*** create shared libraries on Solaris systems. Therefore, libtool
8157*** is disabling shared libraries support. We urge you to upgrade GNU
8158*** binutils to release 2.9.1 or newer. Another option is to modify
8159*** your PATH or compiler configuration so that the native linker is
8160*** used, and then restart.
8161
8162_LT_EOF
8163 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8164 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8165 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8166 else
8167 ld_shlibs=no
8168 fi
8169 ;;
8170
8171 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8172 case `$LD -v 2>&1` in
8173 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8174 ld_shlibs=no
8175 cat <<_LT_EOF 1>&2
8176
8177*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8178*** reliably create shared libraries on SCO systems. Therefore, libtool
8179*** is disabling shared libraries support. We urge you to upgrade GNU
8180*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8181*** your PATH or compiler configuration so that the native linker is
8182*** used, and then restart.
8183
8184_LT_EOF
8185 ;;
8186 *)
8187 # For security reasons, it is highly recommended that you always
8188 # use absolute paths for naming shared libraries, and exclude the
8189 # DT_RUNPATH tag from executables and libraries. But doing so
8190 # requires that you compile everything twice, which is a pain.
8191 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8192 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8194 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8195 else
8196 ld_shlibs=no
8197 fi
8198 ;;
8199 esac
8200 ;;
8201
8202 sunos4*)
8203 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8204 wlarc=
8205 hardcode_direct=yes
8206 hardcode_shlibpath_var=no
8207 ;;
8208
8209 *)
8210 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8212 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8213 else
8214 ld_shlibs=no
8215 fi
8216 ;;
8217 esac
8218
8219 if test "$ld_shlibs" = no; then
8220 runpath_var=
8221 hardcode_libdir_flag_spec=
8222 export_dynamic_flag_spec=
8223 whole_archive_flag_spec=
8224 fi
8225 else
8226 # PORTME fill in a description of your system's linker (not GNU ld)
8227 case $host_os in
8228 aix3*)
8229 allow_undefined_flag=unsupported
8230 always_export_symbols=yes
8231 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'
8232 # Note: this linker hardcodes the directories in LIBPATH if there
8233 # are no directories specified by -L.
8234 hardcode_minus_L=yes
8235 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8236 # Neither direct hardcoding nor static linking is supported with a
8237 # broken collect2.
8238 hardcode_direct=unsupported
8239 fi
8240 ;;
8241
8242 aix[4-9]*)
8243 if test "$host_cpu" = ia64; then
8244 # On IA64, the linker does run time linking by default, so we don't
8245 # have to do anything special.
8246 aix_use_runtimelinking=no
8247 exp_sym_flag='-Bexport'
8248 no_entry_flag=""
8249 else
8250 # If we're using GNU nm, then we don't want the "-C" option.
8251 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8252 # Also, AIX nm treats weak defined symbols like other global
8253 # defined symbols, whereas GNU nm marks them as "W".
8254 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8255 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'
8256 else
8257 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'
8258 fi
8259 aix_use_runtimelinking=no
8260
8261 # Test if we are trying to use run time linking or normal
8262 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8263 # need to do runtime linking.
8264 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8265 for ld_flag in $LDFLAGS; do
8266 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8267 aix_use_runtimelinking=yes
8268 break
8269 fi
8270 done
8271 ;;
8272 esac
8273
8274 exp_sym_flag='-bexport'
8275 no_entry_flag='-bnoentry'
8276 fi
8277
8278 # When large executables or shared objects are built, AIX ld can
8279 # have problems creating the table of contents. If linking a library
8280 # or program results in "error TOC overflow" add -mminimal-toc to
8281 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8282 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8283
8284 archive_cmds=''
8285 hardcode_direct=yes
8286 hardcode_direct_absolute=yes
8287 hardcode_libdir_separator=':'
8288 link_all_deplibs=yes
8289 file_list_spec='${wl}-f,'
8290
8291 if test "$GCC" = yes; then
8292 case $host_os in aix4.[012]|aix4.[012].*)
8293 # We only want to do this on AIX 4.2 and lower, the check
8294 # below for broken collect2 doesn't work under 4.3+
8295 collect2name=`${CC} -print-prog-name=collect2`
8296 if test -f "$collect2name" &&
8297 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8298 then
8299 # We have reworked collect2
8300 :
8301 else
8302 # We have old collect2
8303 hardcode_direct=unsupported
8304 # It fails to find uninstalled libraries when the uninstalled
8305 # path is not listed in the libpath. Setting hardcode_minus_L
8306 # to unsupported forces relinking
8307 hardcode_minus_L=yes
8308 hardcode_libdir_flag_spec='-L$libdir'
8309 hardcode_libdir_separator=
8310 fi
8311 ;;
8312 esac
8313 shared_flag='-shared'
8314 if test "$aix_use_runtimelinking" = yes; then
8315 shared_flag="$shared_flag "'${wl}-G'
8316 fi
8317 else
8318 # not using gcc
8319 if test "$host_cpu" = ia64; then
8320 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8321 # chokes on -Wl,-G. The following line is correct:
8322 shared_flag='-G'
8323 else
8324 if test "$aix_use_runtimelinking" = yes; then
8325 shared_flag='${wl}-G'
8326 else
8327 shared_flag='${wl}-bM:SRE'
8328 fi
8329 fi
8330 fi
8331
8332 export_dynamic_flag_spec='${wl}-bexpall'
8333 # It seems that -bexpall does not export symbols beginning with
8334 # underscore (_), so it is better to generate a list of symbols to export.
8335 always_export_symbols=yes
8336 if test "$aix_use_runtimelinking" = yes; then
8337 # Warning - without using the other runtime loading flags (-brtl),
8338 # -berok will link without error, but may produce a broken library.
8339 allow_undefined_flag='-berok'
8340 # Determine the default libpath from the value encoded in an
8341 # empty executable.
8342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343/* end confdefs.h. */
8344
8345int
8346main ()
8347{
8348
8349 ;
8350 return 0;
8351}
8352_ACEOF
8353if ac_fn_c_try_link "$LINENO"; then :
8354
8355lt_aix_libpath_sed='
8356 /Import File Strings/,/^$/ {
8357 /^0/ {
8358 s/^0 *\(.*\)$/\1/
8359 p
8360 }
8361 }'
8362aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8363# Check for a 64-bit object if we didn't find anything.
8364if test -z "$aix_libpath"; then
8365 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8366fi
8367fi
8368rm -f core conftest.err conftest.$ac_objext \
8369 conftest$ac_exeext conftest.$ac_ext
8370if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8371
8372 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8373 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"
8374 else
8375 if test "$host_cpu" = ia64; then
8376 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8377 allow_undefined_flag="-z nodefs"
8378 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"
8379 else
8380 # Determine the default libpath from the value encoded in an
8381 # empty executable.
8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383/* end confdefs.h. */
8384
8385int
8386main ()
8387{
8388
8389 ;
8390 return 0;
8391}
8392_ACEOF
8393if ac_fn_c_try_link "$LINENO"; then :
8394
8395lt_aix_libpath_sed='
8396 /Import File Strings/,/^$/ {
8397 /^0/ {
8398 s/^0 *\(.*\)$/\1/
8399 p
8400 }
8401 }'
8402aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8403# Check for a 64-bit object if we didn't find anything.
8404if test -z "$aix_libpath"; then
8405 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8406fi
8407fi
8408rm -f core conftest.err conftest.$ac_objext \
8409 conftest$ac_exeext conftest.$ac_ext
8410if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8411
8412 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8413 # Warning - without using the other run time loading flags,
8414 # -berok will link without error, but may produce a broken library.
8415 no_undefined_flag=' ${wl}-bernotok'
8416 allow_undefined_flag=' ${wl}-berok'
8417 if test "$with_gnu_ld" = yes; then
8418 # We only use this code for GNU lds that support --whole-archive.
8419 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8420 else
8421 # Exported symbols can be pulled into shared objects from archives
8422 whole_archive_flag_spec='$convenience'
8423 fi
8424 archive_cmds_need_lc=yes
8425 # This is similar to how AIX traditionally builds its shared libraries.
8426 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'
8427 fi
8428 fi
8429 ;;
8430
8431 amigaos*)
8432 case $host_cpu in
8433 powerpc)
8434 # see comment about AmigaOS4 .so support
8435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8436 archive_expsym_cmds=''
8437 ;;
8438 m68k)
8439 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)'
8440 hardcode_libdir_flag_spec='-L$libdir'
8441 hardcode_minus_L=yes
8442 ;;
8443 esac
8444 ;;
8445
8446 bsdi[45]*)
8447 export_dynamic_flag_spec=-rdynamic
8448 ;;
8449
8450 cygwin* | mingw* | pw32* | cegcc*)
8451 # When not using gcc, we currently assume that we are using
8452 # Microsoft Visual C++.
8453 # hardcode_libdir_flag_spec is actually meaningless, as there is
8454 # no search path for DLLs.
8455 hardcode_libdir_flag_spec=' '
8456 allow_undefined_flag=unsupported
8457 # Tell ltmain to make .lib files, not .a files.
8458 libext=lib
8459 # Tell ltmain to make .dll files, not .so files.
8460 shrext_cmds=".dll"
8461 # FIXME: Setting linknames here is a bad hack.
8462 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8463 # The linker will automatically build a .lib file if we build a DLL.
8464 old_archive_from_new_cmds='true'
8465 # FIXME: Should let the user specify the lib program.
8466 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8467 fix_srcfile_path='`cygpath -w "$srcfile"`'
8468 enable_shared_with_static_runtimes=yes
8469 ;;
8470
8471 darwin* | rhapsody*)
8472
8473
8474 archive_cmds_need_lc=no
8475 hardcode_direct=no
8476 hardcode_automatic=yes
8477 hardcode_shlibpath_var=unsupported
8478 if test "$lt_cv_ld_force_load" = "yes"; then
8479 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\"`'
8480 else
8481 whole_archive_flag_spec=''
8482 fi
8483 link_all_deplibs=yes
8484 allow_undefined_flag="$_lt_dar_allow_undefined"
8485 case $cc_basename in
8486 ifort*) _lt_dar_can_shared=yes ;;
8487 *) _lt_dar_can_shared=$GCC ;;
8488 esac
8489 if test "$_lt_dar_can_shared" = "yes"; then
8490 output_verbose_link_cmd=func_echo_all
8491 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8492 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8493 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}"
8494 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}"
8495
8496 else
8497 ld_shlibs=no
8498 fi
8499
8500 ;;
8501
8502 dgux*)
8503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8504 hardcode_libdir_flag_spec='-L$libdir'
8505 hardcode_shlibpath_var=no
8506 ;;
8507
8508 freebsd1*)
8509 ld_shlibs=no
8510 ;;
8511
8512 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8513 # support. Future versions do this automatically, but an explicit c++rt0.o
8514 # does not break anything, and helps significantly (at the cost of a little
8515 # extra space).
8516 freebsd2.2*)
8517 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8518 hardcode_libdir_flag_spec='-R$libdir'
8519 hardcode_direct=yes
8520 hardcode_shlibpath_var=no
8521 ;;
8522
8523 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8524 freebsd2*)
8525 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8526 hardcode_direct=yes
8527 hardcode_minus_L=yes
8528 hardcode_shlibpath_var=no
8529 ;;
8530
8531 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8532 freebsd* | dragonfly*)
8533 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8534 hardcode_libdir_flag_spec='-R$libdir'
8535 hardcode_direct=yes
8536 hardcode_shlibpath_var=no
8537 ;;
8538
8539 hpux9*)
8540 if test "$GCC" = yes; then
8541 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'
8542 else
8543 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'
8544 fi
8545 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8546 hardcode_libdir_separator=:
8547 hardcode_direct=yes
8548
8549 # hardcode_minus_L: Not really in the search PATH,
8550 # but as the default location of the library.
8551 hardcode_minus_L=yes
8552 export_dynamic_flag_spec='${wl}-E'
8553 ;;
8554
8555 hpux10*)
8556 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8557 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8558 else
8559 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8560 fi
8561 if test "$with_gnu_ld" = no; then
8562 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8563 hardcode_libdir_flag_spec_ld='+b $libdir'
8564 hardcode_libdir_separator=:
8565 hardcode_direct=yes
8566 hardcode_direct_absolute=yes
8567 export_dynamic_flag_spec='${wl}-E'
8568 # hardcode_minus_L: Not really in the search PATH,
8569 # but as the default location of the library.
8570 hardcode_minus_L=yes
8571 fi
8572 ;;
8573
8574 hpux11*)
8575 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8576 case $host_cpu in
8577 hppa*64*)
8578 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8579 ;;
8580 ia64*)
8581 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8582 ;;
8583 *)
8584 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8585 ;;
8586 esac
8587 else
8588 case $host_cpu in
8589 hppa*64*)
8590 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8591 ;;
8592 ia64*)
8593 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8594 ;;
8595 *)
8596
8597 # Older versions of the 11.00 compiler do not understand -b yet
8598 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8600$as_echo_n "checking if $CC understands -b... " >&6; }
8601if test "${lt_cv_prog_compiler__b+set}" = set; then :
8602 $as_echo_n "(cached) " >&6
8603else
8604 lt_cv_prog_compiler__b=no
8605 save_LDFLAGS="$LDFLAGS"
8606 LDFLAGS="$LDFLAGS -b"
8607 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8608 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8609 # The linker can only warn and ignore the option if not recognized
8610 # So say no if there are warnings
8611 if test -s conftest.err; then
8612 # Append any errors to the config.log.
8613 cat conftest.err 1>&5
8614 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8616 if diff conftest.exp conftest.er2 >/dev/null; then
8617 lt_cv_prog_compiler__b=yes
8618 fi
8619 else
8620 lt_cv_prog_compiler__b=yes
8621 fi
8622 fi
8623 $RM -r conftest*
8624 LDFLAGS="$save_LDFLAGS"
8625
8626fi
8627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8628$as_echo "$lt_cv_prog_compiler__b" >&6; }
8629
8630if test x"$lt_cv_prog_compiler__b" = xyes; then
8631 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8632else
8633 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8634fi
8635
8636 ;;
8637 esac
8638 fi
8639 if test "$with_gnu_ld" = no; then
8640 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8641 hardcode_libdir_separator=:
8642
8643 case $host_cpu in
8644 hppa*64*|ia64*)
8645 hardcode_direct=no
8646 hardcode_shlibpath_var=no
8647 ;;
8648 *)
8649 hardcode_direct=yes
8650 hardcode_direct_absolute=yes
8651 export_dynamic_flag_spec='${wl}-E'
8652
8653 # hardcode_minus_L: Not really in the search PATH,
8654 # but as the default location of the library.
8655 hardcode_minus_L=yes
8656 ;;
8657 esac
8658 fi
8659 ;;
8660
8661 irix5* | irix6* | nonstopux*)
8662 if test "$GCC" = yes; then
8663 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'
8664 # Try to use the -exported_symbol ld option, if it does not
8665 # work, assume that -exports_file does not work either and
8666 # implicitly export all symbols.
8667 save_LDFLAGS="$LDFLAGS"
8668 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8670/* end confdefs.h. */
8671int foo(void) {}
8672_ACEOF
8673if ac_fn_c_try_link "$LINENO"; then :
8674 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'
8675
8676fi
8677rm -f core conftest.err conftest.$ac_objext \
8678 conftest$ac_exeext conftest.$ac_ext
8679 LDFLAGS="$save_LDFLAGS"
8680 else
8681 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'
8682 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'
8683 fi
8684 archive_cmds_need_lc='no'
8685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8686 hardcode_libdir_separator=:
8687 inherit_rpath=yes
8688 link_all_deplibs=yes
8689 ;;
8690
8691 netbsd*)
8692 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8693 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8694 else
8695 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8696 fi
8697 hardcode_libdir_flag_spec='-R$libdir'
8698 hardcode_direct=yes
8699 hardcode_shlibpath_var=no
8700 ;;
8701
8702 newsos6)
8703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8704 hardcode_direct=yes
8705 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8706 hardcode_libdir_separator=:
8707 hardcode_shlibpath_var=no
8708 ;;
8709
8710 *nto* | *qnx*)
8711 ;;
8712
8713 openbsd*)
8714 if test -f /usr/libexec/ld.so; then
8715 hardcode_direct=yes
8716 hardcode_shlibpath_var=no
8717 hardcode_direct_absolute=yes
8718 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8719 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8720 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8721 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8722 export_dynamic_flag_spec='${wl}-E'
8723 else
8724 case $host_os in
8725 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8726 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8727 hardcode_libdir_flag_spec='-R$libdir'
8728 ;;
8729 *)
8730 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8731 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8732 ;;
8733 esac
8734 fi
8735 else
8736 ld_shlibs=no
8737 fi
8738 ;;
8739
8740 os2*)
8741 hardcode_libdir_flag_spec='-L$libdir'
8742 hardcode_minus_L=yes
8743 allow_undefined_flag=unsupported
8744 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'
8745 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8746 ;;
8747
8748 osf3*)
8749 if test "$GCC" = yes; then
8750 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8751 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'
8752 else
8753 allow_undefined_flag=' -expect_unresolved \*'
8754 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'
8755 fi
8756 archive_cmds_need_lc='no'
8757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8758 hardcode_libdir_separator=:
8759 ;;
8760
8761 osf4* | osf5*) # as osf3* with the addition of -msym flag
8762 if test "$GCC" = yes; then
8763 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8764 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'
8765 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8766 else
8767 allow_undefined_flag=' -expect_unresolved \*'
8768 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'
8769 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~
8770 $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'
8771
8772 # Both c and cxx compiler support -rpath directly
8773 hardcode_libdir_flag_spec='-rpath $libdir'
8774 fi
8775 archive_cmds_need_lc='no'
8776 hardcode_libdir_separator=:
8777 ;;
8778
8779 solaris*)
8780 no_undefined_flag=' -z defs'
8781 if test "$GCC" = yes; then
8782 wlarc='${wl}'
8783 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8784 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8785 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8786 else
8787 case `$CC -V 2>&1` in
8788 *"Compilers 5.0"*)
8789 wlarc=''
8790 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8791 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8792 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8793 ;;
8794 *)
8795 wlarc='${wl}'
8796 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8797 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8798 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8799 ;;
8800 esac
8801 fi
8802 hardcode_libdir_flag_spec='-R$libdir'
8803 hardcode_shlibpath_var=no
8804 case $host_os in
8805 solaris2.[0-5] | solaris2.[0-5].*) ;;
8806 *)
8807 # The compiler driver will combine and reorder linker options,
8808 # but understands `-z linker_flag'. GCC discards it without `$wl',
8809 # but is careful enough not to reorder.
8810 # Supported since Solaris 2.6 (maybe 2.5.1?)
8811 if test "$GCC" = yes; then
8812 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8813 else
8814 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8815 fi
8816 ;;
8817 esac
8818 link_all_deplibs=yes
8819 ;;
8820
8821 sunos4*)
8822 if test "x$host_vendor" = xsequent; then
8823 # Use $CC to link under sequent, because it throws in some extra .o
8824 # files that make .init and .fini sections work.
8825 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8826 else
8827 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8828 fi
8829 hardcode_libdir_flag_spec='-L$libdir'
8830 hardcode_direct=yes
8831 hardcode_minus_L=yes
8832 hardcode_shlibpath_var=no
8833 ;;
8834
8835 sysv4)
8836 case $host_vendor in
8837 sni)
8838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8839 hardcode_direct=yes # is this really true???
8840 ;;
8841 siemens)
8842 ## LD is ld it makes a PLAMLIB
8843 ## CC just makes a GrossModule.
8844 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8845 reload_cmds='$CC -r -o $output$reload_objs'
8846 hardcode_direct=no
8847 ;;
8848 motorola)
8849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8850 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8851 ;;
8852 esac
8853 runpath_var='LD_RUN_PATH'
8854 hardcode_shlibpath_var=no
8855 ;;
8856
8857 sysv4.3*)
8858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8859 hardcode_shlibpath_var=no
8860 export_dynamic_flag_spec='-Bexport'
8861 ;;
8862
8863 sysv4*MP*)
8864 if test -d /usr/nec; then
8865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8866 hardcode_shlibpath_var=no
8867 runpath_var=LD_RUN_PATH
8868 hardcode_runpath_var=yes
8869 ld_shlibs=yes
8870 fi
8871 ;;
8872
8873 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8874 no_undefined_flag='${wl}-z,text'
8875 archive_cmds_need_lc=no
8876 hardcode_shlibpath_var=no
8877 runpath_var='LD_RUN_PATH'
8878
8879 if test "$GCC" = yes; then
8880 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8881 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8882 else
8883 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8884 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8885 fi
8886 ;;
8887
8888 sysv5* | sco3.2v5* | sco5v6*)
8889 # Note: We can NOT use -z defs as we might desire, because we do not
8890 # link with -lc, and that would cause any symbols used from libc to
8891 # always be unresolved, which means just about no library would
8892 # ever link correctly. If we're not using GNU ld we use -z text
8893 # though, which does catch some bad symbols but isn't as heavy-handed
8894 # as -z defs.
8895 no_undefined_flag='${wl}-z,text'
8896 allow_undefined_flag='${wl}-z,nodefs'
8897 archive_cmds_need_lc=no
8898 hardcode_shlibpath_var=no
8899 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8900 hardcode_libdir_separator=':'
8901 link_all_deplibs=yes
8902 export_dynamic_flag_spec='${wl}-Bexport'
8903 runpath_var='LD_RUN_PATH'
8904
8905 if test "$GCC" = yes; then
8906 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8907 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8908 else
8909 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8910 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8911 fi
8912 ;;
8913
8914 uts4*)
8915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8916 hardcode_libdir_flag_spec='-L$libdir'
8917 hardcode_shlibpath_var=no
8918 ;;
8919
8920 *)
8921 ld_shlibs=no
8922 ;;
8923 esac
8924
8925 if test x$host_vendor = xsni; then
8926 case $host in
8927 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8928 export_dynamic_flag_spec='${wl}-Blargedynsym'
8929 ;;
8930 esac
8931 fi
8932 fi
8933
8934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8935$as_echo "$ld_shlibs" >&6; }
8936test "$ld_shlibs" = no && can_build_shared=no
8937
8938with_gnu_ld=$with_gnu_ld
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954#
8955# Do we need to explicitly link libc?
8956#
8957case "x$archive_cmds_need_lc" in
8958x|xyes)
8959 # Assume -lc should be added
8960 archive_cmds_need_lc=yes
8961
8962 if test "$enable_shared" = yes && test "$GCC" = yes; then
8963 case $archive_cmds in
8964 *'~'*)
8965 # FIXME: we may have to deal with multi-command sequences.
8966 ;;
8967 '$CC '*)
8968 # Test whether the compiler implicitly links with -lc since on some
8969 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8970 # to ld, don't add -lc before -lgcc.
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8972$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8973if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
8974 $as_echo_n "(cached) " >&6
8975else
8976 $RM conftest*
8977 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8978
8979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8980 (eval $ac_compile) 2>&5
8981 ac_status=$?
8982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8983 test $ac_status = 0; } 2>conftest.err; then
8984 soname=conftest
8985 lib=conftest
8986 libobjs=conftest.$ac_objext
8987 deplibs=
8988 wl=$lt_prog_compiler_wl
8989 pic_flag=$lt_prog_compiler_pic
8990 compiler_flags=-v
8991 linker_flags=-v
8992 verstring=
8993 output_objdir=.
8994 libname=conftest
8995 lt_save_allow_undefined_flag=$allow_undefined_flag
8996 allow_undefined_flag=
8997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8998 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8999 ac_status=$?
9000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9001 test $ac_status = 0; }
9002 then
9003 lt_cv_archive_cmds_need_lc=no
9004 else
9005 lt_cv_archive_cmds_need_lc=yes
9006 fi
9007 allow_undefined_flag=$lt_save_allow_undefined_flag
9008 else
9009 cat conftest.err 1>&5
9010 fi
9011 $RM conftest*
9012
9013fi
9014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9015$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9016 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9017 ;;
9018 esac
9019 fi
9020 ;;
9021esac
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9180$as_echo_n "checking dynamic linker characteristics... " >&6; }
9181
9182if test "$GCC" = yes; then
9183 case $host_os in
9184 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9185 *) lt_awk_arg="/^libraries:/" ;;
9186 esac
9187 case $host_os in
9188 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9189 *) lt_sed_strip_eq="s,=/,/,g" ;;
9190 esac
9191 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9192 case $lt_search_path_spec in
9193 *\;*)
9194 # if the path contains ";" then we assume it to be the separator
9195 # otherwise default to the standard path separator (i.e. ":") - it is
9196 # assumed that no part of a normal pathname contains ";" but that should
9197 # okay in the real world where ";" in dirpaths is itself problematic.
9198 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9199 ;;
9200 *)
9201 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9202 ;;
9203 esac
9204 # Ok, now we have the path, separated by spaces, we can step through it
9205 # and add multilib dir if necessary.
9206 lt_tmp_lt_search_path_spec=
9207 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9208 for lt_sys_path in $lt_search_path_spec; do
9209 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9210 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9211 else
9212 test -d "$lt_sys_path" && \
9213 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9214 fi
9215 done
9216 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9217BEGIN {RS=" "; FS="/|\n";} {
9218 lt_foo="";
9219 lt_count=0;
9220 for (lt_i = NF; lt_i > 0; lt_i--) {
9221 if ($lt_i != "" && $lt_i != ".") {
9222 if ($lt_i == "..") {
9223 lt_count++;
9224 } else {
9225 if (lt_count == 0) {
9226 lt_foo="/" $lt_i lt_foo;
9227 } else {
9228 lt_count--;
9229 }
9230 }
9231 }
9232 }
9233 if (lt_foo != "") { lt_freq[lt_foo]++; }
9234 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9235}'`
9236 # AWK program above erroneously prepends '/' to C:/dos/paths
9237 # for these hosts.
9238 case $host_os in
9239 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9240 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9241 esac
9242 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9243else
9244 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9245fi
9246library_names_spec=
9247libname_spec='lib$name'
9248soname_spec=
9249shrext_cmds=".so"
9250postinstall_cmds=
9251postuninstall_cmds=
9252finish_cmds=
9253finish_eval=
9254shlibpath_var=
9255shlibpath_overrides_runpath=unknown
9256version_type=none
9257dynamic_linker="$host_os ld.so"
9258sys_lib_dlsearch_path_spec="/lib /usr/lib"
9259need_lib_prefix=unknown
9260hardcode_into_libs=no
9261
9262# when you set need_version to no, make sure it does not cause -set_version
9263# flags to be left without arguments
9264need_version=unknown
9265
9266case $host_os in
9267aix3*)
9268 version_type=linux
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9270 shlibpath_var=LIBPATH
9271
9272 # AIX 3 has no versioning support, so we append a major version to the name.
9273 soname_spec='${libname}${release}${shared_ext}$major'
9274 ;;
9275
9276aix[4-9]*)
9277 version_type=linux
9278 need_lib_prefix=no
9279 need_version=no
9280 hardcode_into_libs=yes
9281 if test "$host_cpu" = ia64; then
9282 # AIX 5 supports IA64
9283 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9284 shlibpath_var=LD_LIBRARY_PATH
9285 else
9286 # With GCC up to 2.95.x, collect2 would create an import file
9287 # for dependence libraries. The import file would start with
9288 # the line `#! .'. This would cause the generated library to
9289 # depend on `.', always an invalid library. This was fixed in
9290 # development snapshots of GCC prior to 3.0.
9291 case $host_os in
9292 aix4 | aix4.[01] | aix4.[01].*)
9293 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9294 echo ' yes '
9295 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9296 :
9297 else
9298 can_build_shared=no
9299 fi
9300 ;;
9301 esac
9302 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9303 # soname into executable. Probably we can add versioning support to
9304 # collect2, so additional links can be useful in future.
9305 if test "$aix_use_runtimelinking" = yes; then
9306 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9307 # instead of lib<name>.a to let people know that these are not
9308 # typical AIX shared libraries.
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310 else
9311 # We preserve .a as extension for shared libraries through AIX4.2
9312 # and later when we are not doing run time linking.
9313 library_names_spec='${libname}${release}.a $libname.a'
9314 soname_spec='${libname}${release}${shared_ext}$major'
9315 fi
9316 shlibpath_var=LIBPATH
9317 fi
9318 ;;
9319
9320amigaos*)
9321 case $host_cpu in
9322 powerpc)
9323 # Since July 2007 AmigaOS4 officially supports .so libraries.
9324 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9326 ;;
9327 m68k)
9328 library_names_spec='$libname.ixlibrary $libname.a'
9329 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9330 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'
9331 ;;
9332 esac
9333 ;;
9334
9335beos*)
9336 library_names_spec='${libname}${shared_ext}'
9337 dynamic_linker="$host_os ld.so"
9338 shlibpath_var=LIBRARY_PATH
9339 ;;
9340
9341bsdi[45]*)
9342 version_type=linux
9343 need_version=no
9344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9345 soname_spec='${libname}${release}${shared_ext}$major'
9346 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9347 shlibpath_var=LD_LIBRARY_PATH
9348 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9349 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9350 # the default ld.so.conf also contains /usr/contrib/lib and
9351 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9352 # libtool to hard-code these into programs
9353 ;;
9354
9355cygwin* | mingw* | pw32* | cegcc*)
9356 version_type=windows
9357 shrext_cmds=".dll"
9358 need_version=no
9359 need_lib_prefix=no
9360
9361 case $GCC,$host_os in
9362 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9363 library_names_spec='$libname.dll.a'
9364 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9365 postinstall_cmds='base_file=`basename \${file}`~
9366 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9367 dldir=$destdir/`dirname \$dlpath`~
9368 test -d \$dldir || mkdir -p \$dldir~
9369 $install_prog $dir/$dlname \$dldir/$dlname~
9370 chmod a+x \$dldir/$dlname~
9371 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9372 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9373 fi'
9374 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9375 dlpath=$dir/\$dldll~
9376 $RM \$dlpath'
9377 shlibpath_overrides_runpath=yes
9378
9379 case $host_os in
9380 cygwin*)
9381 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9382 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9383
9384 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9385 ;;
9386 mingw* | cegcc*)
9387 # MinGW DLLs use traditional 'lib' prefix
9388 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9389 ;;
9390 pw32*)
9391 # pw32 DLLs use 'pw' prefix rather than 'lib'
9392 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9393 ;;
9394 esac
9395 ;;
9396
9397 *)
9398 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9399 ;;
9400 esac
9401 dynamic_linker='Win32 ld.exe'
9402 # FIXME: first we should search . and the directory the executable is in
9403 shlibpath_var=PATH
9404 ;;
9405
9406darwin* | rhapsody*)
9407 dynamic_linker="$host_os dyld"
9408 version_type=darwin
9409 need_lib_prefix=no
9410 need_version=no
9411 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9412 soname_spec='${libname}${release}${major}$shared_ext'
9413 shlibpath_overrides_runpath=yes
9414 shlibpath_var=DYLD_LIBRARY_PATH
9415 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9416
9417 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9418 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9419 ;;
9420
9421dgux*)
9422 version_type=linux
9423 need_lib_prefix=no
9424 need_version=no
9425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9426 soname_spec='${libname}${release}${shared_ext}$major'
9427 shlibpath_var=LD_LIBRARY_PATH
9428 ;;
9429
9430freebsd1*)
9431 dynamic_linker=no
9432 ;;
9433
9434freebsd* | dragonfly*)
9435 # DragonFly does not have aout. When/if they implement a new
9436 # versioning mechanism, adjust this.
9437 if test -x /usr/bin/objformat; then
9438 objformat=`/usr/bin/objformat`
9439 else
9440 case $host_os in
9441 freebsd[123]*) objformat=aout ;;
9442 *) objformat=elf ;;
9443 esac
9444 fi
9445 version_type=freebsd-$objformat
9446 case $version_type in
9447 freebsd-elf*)
9448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9449 need_version=no
9450 need_lib_prefix=no
9451 ;;
9452 freebsd-*)
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9454 need_version=yes
9455 ;;
9456 esac
9457 shlibpath_var=LD_LIBRARY_PATH
9458 case $host_os in
9459 freebsd2*)
9460 shlibpath_overrides_runpath=yes
9461 ;;
9462 freebsd3.[01]* | freebsdelf3.[01]*)
9463 shlibpath_overrides_runpath=yes
9464 hardcode_into_libs=yes
9465 ;;
9466 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9467 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9468 shlibpath_overrides_runpath=no
9469 hardcode_into_libs=yes
9470 ;;
9471 *) # from 4.6 on, and DragonFly
9472 shlibpath_overrides_runpath=yes
9473 hardcode_into_libs=yes
9474 ;;
9475 esac
9476 ;;
9477
9478gnu*)
9479 version_type=linux
9480 need_lib_prefix=no
9481 need_version=no
9482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9483 soname_spec='${libname}${release}${shared_ext}$major'
9484 shlibpath_var=LD_LIBRARY_PATH
9485 hardcode_into_libs=yes
9486 ;;
9487
9488haiku*)
9489 version_type=linux
9490 need_lib_prefix=no
9491 need_version=no
9492 dynamic_linker="$host_os runtime_loader"
9493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9494 soname_spec='${libname}${release}${shared_ext}$major'
9495 shlibpath_var=LIBRARY_PATH
9496 shlibpath_overrides_runpath=yes
9497 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9498 hardcode_into_libs=yes
9499 ;;
9500
9501hpux9* | hpux10* | hpux11*)
9502 # Give a soname corresponding to the major version so that dld.sl refuses to
9503 # link against other versions.
9504 version_type=sunos
9505 need_lib_prefix=no
9506 need_version=no
9507 case $host_cpu in
9508 ia64*)
9509 shrext_cmds='.so'
9510 hardcode_into_libs=yes
9511 dynamic_linker="$host_os dld.so"
9512 shlibpath_var=LD_LIBRARY_PATH
9513 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9515 soname_spec='${libname}${release}${shared_ext}$major'
9516 if test "X$HPUX_IA64_MODE" = X32; then
9517 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9518 else
9519 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9520 fi
9521 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9522 ;;
9523 hppa*64*)
9524 shrext_cmds='.sl'
9525 hardcode_into_libs=yes
9526 dynamic_linker="$host_os dld.sl"
9527 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9528 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9530 soname_spec='${libname}${release}${shared_ext}$major'
9531 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9532 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9533 ;;
9534 *)
9535 shrext_cmds='.sl'
9536 dynamic_linker="$host_os dld.sl"
9537 shlibpath_var=SHLIB_PATH
9538 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540 soname_spec='${libname}${release}${shared_ext}$major'
9541 ;;
9542 esac
9543 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9544 postinstall_cmds='chmod 555 $lib'
9545 # or fails outright, so override atomically:
9546 install_override_mode=555
9547 ;;
9548
9549interix[3-9]*)
9550 version_type=linux
9551 need_lib_prefix=no
9552 need_version=no
9553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9554 soname_spec='${libname}${release}${shared_ext}$major'
9555 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9556 shlibpath_var=LD_LIBRARY_PATH
9557 shlibpath_overrides_runpath=no
9558 hardcode_into_libs=yes
9559 ;;
9560
9561irix5* | irix6* | nonstopux*)
9562 case $host_os in
9563 nonstopux*) version_type=nonstopux ;;
9564 *)
9565 if test "$lt_cv_prog_gnu_ld" = yes; then
9566 version_type=linux
9567 else
9568 version_type=irix
9569 fi ;;
9570 esac
9571 need_lib_prefix=no
9572 need_version=no
9573 soname_spec='${libname}${release}${shared_ext}$major'
9574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9575 case $host_os in
9576 irix5* | nonstopux*)
9577 libsuff= shlibsuff=
9578 ;;
9579 *)
9580 case $LD in # libtool.m4 will add one of these switches to LD
9581 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9582 libsuff= shlibsuff= libmagic=32-bit;;
9583 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9584 libsuff=32 shlibsuff=N32 libmagic=N32;;
9585 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9586 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9587 *) libsuff= shlibsuff= libmagic=never-match;;
9588 esac
9589 ;;
9590 esac
9591 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9592 shlibpath_overrides_runpath=no
9593 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9594 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9595 hardcode_into_libs=yes
9596 ;;
9597
9598# No shared lib support for Linux oldld, aout, or coff.
9599linux*oldld* | linux*aout* | linux*coff*)
9600 dynamic_linker=no
9601 ;;
9602
9603# This must be Linux ELF.
9604linux* | k*bsd*-gnu | kopensolaris*-gnu)
9605 version_type=linux
9606 need_lib_prefix=no
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 -n $libdir'
9611 shlibpath_var=LD_LIBRARY_PATH
9612 shlibpath_overrides_runpath=no
9613
9614 # Some binutils ld are patched to set DT_RUNPATH
9615 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9616 $as_echo_n "(cached) " >&6
9617else
9618 lt_cv_shlibpath_overrides_runpath=no
9619 save_LDFLAGS=$LDFLAGS
9620 save_libdir=$libdir
9621 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9622 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9624/* end confdefs.h. */
9625
9626int
9627main ()
9628{
9629
9630 ;
9631 return 0;
9632}
9633_ACEOF
9634if ac_fn_c_try_link "$LINENO"; then :
9635 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9636 lt_cv_shlibpath_overrides_runpath=yes
9637fi
9638fi
9639rm -f core conftest.err conftest.$ac_objext \
9640 conftest$ac_exeext conftest.$ac_ext
9641 LDFLAGS=$save_LDFLAGS
9642 libdir=$save_libdir
9643
9644fi
9645
9646 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9647
9648 # This implies no fast_install, which is unacceptable.
9649 # Some rework will be needed to allow for fast_install
9650 # before this can be enabled.
9651 hardcode_into_libs=yes
9652
9653 # Append ld.so.conf contents to the search path
9654 if test -f /etc/ld.so.conf; then
9655 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' ' '`
9656 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9657 fi
9658
9659 # We used to test for /lib/ld.so.1 and disable shared libraries on
9660 # powerpc, because MkLinux only supported shared libraries with the
9661 # GNU dynamic linker. Since this was broken with cross compilers,
9662 # most powerpc-linux boxes support dynamic linking these days and
9663 # people can always --disable-shared, the test was removed, and we
9664 # assume the GNU/Linux dynamic linker is in use.
9665 dynamic_linker='GNU/Linux ld.so'
9666 ;;
9667
9668netbsd*)
9669 version_type=sunos
9670 need_lib_prefix=no
9671 need_version=no
9672 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9674 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9675 dynamic_linker='NetBSD (a.out) ld.so'
9676 else
9677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9678 soname_spec='${libname}${release}${shared_ext}$major'
9679 dynamic_linker='NetBSD ld.elf_so'
9680 fi
9681 shlibpath_var=LD_LIBRARY_PATH
9682 shlibpath_overrides_runpath=yes
9683 hardcode_into_libs=yes
9684 ;;
9685
9686newsos6)
9687 version_type=linux
9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9689 shlibpath_var=LD_LIBRARY_PATH
9690 shlibpath_overrides_runpath=yes
9691 ;;
9692
9693*nto* | *qnx*)
9694 version_type=qnx
9695 need_lib_prefix=no
9696 need_version=no
9697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9698 soname_spec='${libname}${release}${shared_ext}$major'
9699 shlibpath_var=LD_LIBRARY_PATH
9700 shlibpath_overrides_runpath=no
9701 hardcode_into_libs=yes
9702 dynamic_linker='ldqnx.so'
9703 ;;
9704
9705openbsd*)
9706 version_type=sunos
9707 sys_lib_dlsearch_path_spec="/usr/lib"
9708 need_lib_prefix=no
9709 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9710 case $host_os in
9711 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9712 *) need_version=no ;;
9713 esac
9714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9715 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9716 shlibpath_var=LD_LIBRARY_PATH
9717 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9718 case $host_os in
9719 openbsd2.[89] | openbsd2.[89].*)
9720 shlibpath_overrides_runpath=no
9721 ;;
9722 *)
9723 shlibpath_overrides_runpath=yes
9724 ;;
9725 esac
9726 else
9727 shlibpath_overrides_runpath=yes
9728 fi
9729 ;;
9730
9731os2*)
9732 libname_spec='$name'
9733 shrext_cmds=".dll"
9734 need_lib_prefix=no
9735 library_names_spec='$libname${shared_ext} $libname.a'
9736 dynamic_linker='OS/2 ld.exe'
9737 shlibpath_var=LIBPATH
9738 ;;
9739
9740osf3* | osf4* | osf5*)
9741 version_type=osf
9742 need_lib_prefix=no
9743 need_version=no
9744 soname_spec='${libname}${release}${shared_ext}$major'
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746 shlibpath_var=LD_LIBRARY_PATH
9747 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9748 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9749 ;;
9750
9751rdos*)
9752 dynamic_linker=no
9753 ;;
9754
9755solaris*)
9756 version_type=linux
9757 need_lib_prefix=no
9758 need_version=no
9759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9760 soname_spec='${libname}${release}${shared_ext}$major'
9761 shlibpath_var=LD_LIBRARY_PATH
9762 shlibpath_overrides_runpath=yes
9763 hardcode_into_libs=yes
9764 # ldd complains unless libraries are executable
9765 postinstall_cmds='chmod +x $lib'
9766 ;;
9767
9768sunos4*)
9769 version_type=sunos
9770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9771 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9772 shlibpath_var=LD_LIBRARY_PATH
9773 shlibpath_overrides_runpath=yes
9774 if test "$with_gnu_ld" = yes; then
9775 need_lib_prefix=no
9776 fi
9777 need_version=yes
9778 ;;
9779
9780sysv4 | sysv4.3*)
9781 version_type=linux
9782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9783 soname_spec='${libname}${release}${shared_ext}$major'
9784 shlibpath_var=LD_LIBRARY_PATH
9785 case $host_vendor in
9786 sni)
9787 shlibpath_overrides_runpath=no
9788 need_lib_prefix=no
9789 runpath_var=LD_RUN_PATH
9790 ;;
9791 siemens)
9792 need_lib_prefix=no
9793 ;;
9794 motorola)
9795 need_lib_prefix=no
9796 need_version=no
9797 shlibpath_overrides_runpath=no
9798 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9799 ;;
9800 esac
9801 ;;
9802
9803sysv4*MP*)
9804 if test -d /usr/nec ;then
9805 version_type=linux
9806 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9807 soname_spec='$libname${shared_ext}.$major'
9808 shlibpath_var=LD_LIBRARY_PATH
9809 fi
9810 ;;
9811
9812sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9813 version_type=freebsd-elf
9814 need_lib_prefix=no
9815 need_version=no
9816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9817 soname_spec='${libname}${release}${shared_ext}$major'
9818 shlibpath_var=LD_LIBRARY_PATH
9819 shlibpath_overrides_runpath=yes
9820 hardcode_into_libs=yes
9821 if test "$with_gnu_ld" = yes; then
9822 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9823 else
9824 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9825 case $host_os in
9826 sco3.2v5*)
9827 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9828 ;;
9829 esac
9830 fi
9831 sys_lib_dlsearch_path_spec='/usr/lib'
9832 ;;
9833
9834tpf*)
9835 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9836 version_type=linux
9837 need_lib_prefix=no
9838 need_version=no
9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9840 shlibpath_var=LD_LIBRARY_PATH
9841 shlibpath_overrides_runpath=no
9842 hardcode_into_libs=yes
9843 ;;
9844
9845uts4*)
9846 version_type=linux
9847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9848 soname_spec='${libname}${release}${shared_ext}$major'
9849 shlibpath_var=LD_LIBRARY_PATH
9850 ;;
9851
9852*)
9853 dynamic_linker=no
9854 ;;
9855esac
9856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9857$as_echo "$dynamic_linker" >&6; }
9858test "$dynamic_linker" = no && can_build_shared=no
9859
9860variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9861if test "$GCC" = yes; then
9862 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9863fi
9864
9865if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9866 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9867fi
9868if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9869 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9870fi
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9964$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9965hardcode_action=
9966if test -n "$hardcode_libdir_flag_spec" ||
9967 test -n "$runpath_var" ||
9968 test "X$hardcode_automatic" = "Xyes" ; then
9969
9970 # We can hardcode non-existent directories.
9971 if test "$hardcode_direct" != no &&
9972 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9973 # have to relink, otherwise we might link with an installed library
9974 # when we should be linking with a yet-to-be-installed one
9975 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9976 test "$hardcode_minus_L" != no; then
9977 # Linking always hardcodes the temporary library directory.
9978 hardcode_action=relink
9979 else
9980 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9981 hardcode_action=immediate
9982 fi
9983else
9984 # We cannot hardcode anything, or else we can only hardcode existing
9985 # directories.
9986 hardcode_action=unsupported
9987fi
9988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9989$as_echo "$hardcode_action" >&6; }
9990
9991if test "$hardcode_action" = relink ||
9992 test "$inherit_rpath" = yes; then
9993 # Fast installation is not supported
9994 enable_fast_install=no
9995elif test "$shlibpath_overrides_runpath" = yes ||
9996 test "$enable_shared" = no; then
9997 # Fast installation is not necessary
9998 enable_fast_install=needless
9999fi
10000
10001
10002
10003
10004
10005
10006 if test "x$enable_dlopen" != xyes; then
10007 enable_dlopen=unknown
10008 enable_dlopen_self=unknown
10009 enable_dlopen_self_static=unknown
10010else
10011 lt_cv_dlopen=no
10012 lt_cv_dlopen_libs=
10013
10014 case $host_os in
10015 beos*)
10016 lt_cv_dlopen="load_add_on"
10017 lt_cv_dlopen_libs=
10018 lt_cv_dlopen_self=yes
10019 ;;
10020
10021 mingw* | pw32* | cegcc*)
10022 lt_cv_dlopen="LoadLibrary"
10023 lt_cv_dlopen_libs=
10024 ;;
10025
10026 cygwin*)
10027 lt_cv_dlopen="dlopen"
10028 lt_cv_dlopen_libs=
10029 ;;
10030
10031 darwin*)
10032 # if libdl is installed we need to link against it
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10034$as_echo_n "checking for dlopen in -ldl... " >&6; }
10035if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10036 $as_echo_n "(cached) " >&6
10037else
10038 ac_check_lib_save_LIBS=$LIBS
10039LIBS="-ldl $LIBS"
10040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041/* end confdefs.h. */
10042
10043/* Override any GCC internal prototype to avoid an error.
10044 Use char because int might match the return type of a GCC
10045 builtin and then its argument prototype would still apply. */
10046#ifdef __cplusplus
10047extern "C"
10048#endif
10049char dlopen ();
10050int
10051main ()
10052{
10053return dlopen ();
10054 ;
10055 return 0;
10056}
10057_ACEOF
10058if ac_fn_c_try_link "$LINENO"; then :
10059 ac_cv_lib_dl_dlopen=yes
10060else
10061 ac_cv_lib_dl_dlopen=no
10062fi
10063rm -f core conftest.err conftest.$ac_objext \
10064 conftest$ac_exeext conftest.$ac_ext
10065LIBS=$ac_check_lib_save_LIBS
10066fi
10067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10068$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10069if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10070 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10071else
10072
10073 lt_cv_dlopen="dyld"
10074 lt_cv_dlopen_libs=
10075 lt_cv_dlopen_self=yes
10076
10077fi
10078
10079 ;;
10080
10081 *)
10082 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10083if test "x$ac_cv_func_shl_load" = x""yes; then :
10084 lt_cv_dlopen="shl_load"
10085else
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10087$as_echo_n "checking for shl_load in -ldld... " >&6; }
10088if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10089 $as_echo_n "(cached) " >&6
10090else
10091 ac_check_lib_save_LIBS=$LIBS
10092LIBS="-ldld $LIBS"
10093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094/* end confdefs.h. */
10095
10096/* Override any GCC internal prototype to avoid an error.
10097 Use char because int might match the return type of a GCC
10098 builtin and then its argument prototype would still apply. */
10099#ifdef __cplusplus
10100extern "C"
10101#endif
10102char shl_load ();
10103int
10104main ()
10105{
10106return shl_load ();
10107 ;
10108 return 0;
10109}
10110_ACEOF
10111if ac_fn_c_try_link "$LINENO"; then :
10112 ac_cv_lib_dld_shl_load=yes
10113else
10114 ac_cv_lib_dld_shl_load=no
10115fi
10116rm -f core conftest.err conftest.$ac_objext \
10117 conftest$ac_exeext conftest.$ac_ext
10118LIBS=$ac_check_lib_save_LIBS
10119fi
10120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10121$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10122if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10123 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10124else
10125 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10126if test "x$ac_cv_func_dlopen" = x""yes; then :
10127 lt_cv_dlopen="dlopen"
10128else
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10130$as_echo_n "checking for dlopen in -ldl... " >&6; }
10131if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10132 $as_echo_n "(cached) " >&6
10133else
10134 ac_check_lib_save_LIBS=$LIBS
10135LIBS="-ldl $LIBS"
10136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10137/* end confdefs.h. */
10138
10139/* Override any GCC internal prototype to avoid an error.
10140 Use char because int might match the return type of a GCC
10141 builtin and then its argument prototype would still apply. */
10142#ifdef __cplusplus
10143extern "C"
10144#endif
10145char dlopen ();
10146int
10147main ()
10148{
10149return dlopen ();
10150 ;
10151 return 0;
10152}
10153_ACEOF
10154if ac_fn_c_try_link "$LINENO"; then :
10155 ac_cv_lib_dl_dlopen=yes
10156else
10157 ac_cv_lib_dl_dlopen=no
10158fi
10159rm -f core conftest.err conftest.$ac_objext \
10160 conftest$ac_exeext conftest.$ac_ext
10161LIBS=$ac_check_lib_save_LIBS
10162fi
10163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10164$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10165if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10166 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10167else
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10169$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10170if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10171 $as_echo_n "(cached) " >&6
10172else
10173 ac_check_lib_save_LIBS=$LIBS
10174LIBS="-lsvld $LIBS"
10175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10176/* end confdefs.h. */
10177
10178/* Override any GCC internal prototype to avoid an error.
10179 Use char because int might match the return type of a GCC
10180 builtin and then its argument prototype would still apply. */
10181#ifdef __cplusplus
10182extern "C"
10183#endif
10184char dlopen ();
10185int
10186main ()
10187{
10188return dlopen ();
10189 ;
10190 return 0;
10191}
10192_ACEOF
10193if ac_fn_c_try_link "$LINENO"; then :
10194 ac_cv_lib_svld_dlopen=yes
10195else
10196 ac_cv_lib_svld_dlopen=no
10197fi
10198rm -f core conftest.err conftest.$ac_objext \
10199 conftest$ac_exeext conftest.$ac_ext
10200LIBS=$ac_check_lib_save_LIBS
10201fi
10202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10203$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10204if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10205 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10206else
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10208$as_echo_n "checking for dld_link in -ldld... " >&6; }
10209if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10210 $as_echo_n "(cached) " >&6
10211else
10212 ac_check_lib_save_LIBS=$LIBS
10213LIBS="-ldld $LIBS"
10214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10215/* end confdefs.h. */
10216
10217/* Override any GCC internal prototype to avoid an error.
10218 Use char because int might match the return type of a GCC
10219 builtin and then its argument prototype would still apply. */
10220#ifdef __cplusplus
10221extern "C"
10222#endif
10223char dld_link ();
10224int
10225main ()
10226{
10227return dld_link ();
10228 ;
10229 return 0;
10230}
10231_ACEOF
10232if ac_fn_c_try_link "$LINENO"; then :
10233 ac_cv_lib_dld_dld_link=yes
10234else
10235 ac_cv_lib_dld_dld_link=no
10236fi
10237rm -f core conftest.err conftest.$ac_objext \
10238 conftest$ac_exeext conftest.$ac_ext
10239LIBS=$ac_check_lib_save_LIBS
10240fi
10241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10242$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10243if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10244 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10245fi
10246
10247
10248fi
10249
10250
10251fi
10252
10253
10254fi
10255
10256
10257fi
10258
10259
10260fi
10261
10262 ;;
10263 esac
10264
10265 if test "x$lt_cv_dlopen" != xno; then
10266 enable_dlopen=yes
10267 else
10268 enable_dlopen=no
10269 fi
10270
10271 case $lt_cv_dlopen in
10272 dlopen)
10273 save_CPPFLAGS="$CPPFLAGS"
10274 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10275
10276 save_LDFLAGS="$LDFLAGS"
10277 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10278
10279 save_LIBS="$LIBS"
10280 LIBS="$lt_cv_dlopen_libs $LIBS"
10281
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10283$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10284if test "${lt_cv_dlopen_self+set}" = set; then :
10285 $as_echo_n "(cached) " >&6
10286else
10287 if test "$cross_compiling" = yes; then :
10288 lt_cv_dlopen_self=cross
10289else
10290 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10291 lt_status=$lt_dlunknown
10292 cat > conftest.$ac_ext <<_LT_EOF
10293#line 10293 "configure"
10294#include "confdefs.h"
10295
10296#if HAVE_DLFCN_H
10297#include <dlfcn.h>
10298#endif
10299
10300#include <stdio.h>
10301
10302#ifdef RTLD_GLOBAL
10303# define LT_DLGLOBAL RTLD_GLOBAL
10304#else
10305# ifdef DL_GLOBAL
10306# define LT_DLGLOBAL DL_GLOBAL
10307# else
10308# define LT_DLGLOBAL 0
10309# endif
10310#endif
10311
10312/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10313 find out it does not work in some platform. */
10314#ifndef LT_DLLAZY_OR_NOW
10315# ifdef RTLD_LAZY
10316# define LT_DLLAZY_OR_NOW RTLD_LAZY
10317# else
10318# ifdef DL_LAZY
10319# define LT_DLLAZY_OR_NOW DL_LAZY
10320# else
10321# ifdef RTLD_NOW
10322# define LT_DLLAZY_OR_NOW RTLD_NOW
10323# else
10324# ifdef DL_NOW
10325# define LT_DLLAZY_OR_NOW DL_NOW
10326# else
10327# define LT_DLLAZY_OR_NOW 0
10328# endif
10329# endif
10330# endif
10331# endif
10332#endif
10333
10334/* When -fvisbility=hidden is used, assume the code has been annotated
10335 correspondingly for the symbols needed. */
10336#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10337void fnord () __attribute__((visibility("default")));
10338#endif
10339
10340void fnord () { int i=42; }
10341int main ()
10342{
10343 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10344 int status = $lt_dlunknown;
10345
10346 if (self)
10347 {
10348 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10349 else
10350 {
10351 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10352 else puts (dlerror ());
10353 }
10354 /* dlclose (self); */
10355 }
10356 else
10357 puts (dlerror ());
10358
10359 return status;
10360}
10361_LT_EOF
10362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10363 (eval $ac_link) 2>&5
10364 ac_status=$?
10365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10366 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10367 (./conftest; exit; ) >&5 2>/dev/null
10368 lt_status=$?
10369 case x$lt_status in
10370 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10371 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10372 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10373 esac
10374 else :
10375 # compilation failed
10376 lt_cv_dlopen_self=no
10377 fi
10378fi
10379rm -fr conftest*
10380
10381
10382fi
10383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10384$as_echo "$lt_cv_dlopen_self" >&6; }
10385
10386 if test "x$lt_cv_dlopen_self" = xyes; then
10387 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10389$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10390if test "${lt_cv_dlopen_self_static+set}" = set; then :
10391 $as_echo_n "(cached) " >&6
10392else
10393 if test "$cross_compiling" = yes; then :
10394 lt_cv_dlopen_self_static=cross
10395else
10396 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10397 lt_status=$lt_dlunknown
10398 cat > conftest.$ac_ext <<_LT_EOF
10399#line 10399 "configure"
10400#include "confdefs.h"
10401
10402#if HAVE_DLFCN_H
10403#include <dlfcn.h>
10404#endif
10405
10406#include <stdio.h>
10407
10408#ifdef RTLD_GLOBAL
10409# define LT_DLGLOBAL RTLD_GLOBAL
10410#else
10411# ifdef DL_GLOBAL
10412# define LT_DLGLOBAL DL_GLOBAL
10413# else
10414# define LT_DLGLOBAL 0
10415# endif
10416#endif
10417
10418/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10419 find out it does not work in some platform. */
10420#ifndef LT_DLLAZY_OR_NOW
10421# ifdef RTLD_LAZY
10422# define LT_DLLAZY_OR_NOW RTLD_LAZY
10423# else
10424# ifdef DL_LAZY
10425# define LT_DLLAZY_OR_NOW DL_LAZY
10426# else
10427# ifdef RTLD_NOW
10428# define LT_DLLAZY_OR_NOW RTLD_NOW
10429# else
10430# ifdef DL_NOW
10431# define LT_DLLAZY_OR_NOW DL_NOW
10432# else
10433# define LT_DLLAZY_OR_NOW 0
10434# endif
10435# endif
10436# endif
10437# endif
10438#endif
10439
10440/* When -fvisbility=hidden is used, assume the code has been annotated
10441 correspondingly for the symbols needed. */
10442#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10443void fnord () __attribute__((visibility("default")));
10444#endif
10445
10446void fnord () { int i=42; }
10447int main ()
10448{
10449 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10450 int status = $lt_dlunknown;
10451
10452 if (self)
10453 {
10454 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10455 else
10456 {
10457 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10458 else puts (dlerror ());
10459 }
10460 /* dlclose (self); */
10461 }
10462 else
10463 puts (dlerror ());
10464
10465 return status;
10466}
10467_LT_EOF
10468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10469 (eval $ac_link) 2>&5
10470 ac_status=$?
10471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10472 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10473 (./conftest; exit; ) >&5 2>/dev/null
10474 lt_status=$?
10475 case x$lt_status in
10476 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10477 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10478 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10479 esac
10480 else :
10481 # compilation failed
10482 lt_cv_dlopen_self_static=no
10483 fi
10484fi
10485rm -fr conftest*
10486
10487
10488fi
10489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10490$as_echo "$lt_cv_dlopen_self_static" >&6; }
10491 fi
10492
10493 CPPFLAGS="$save_CPPFLAGS"
10494 LDFLAGS="$save_LDFLAGS"
10495 LIBS="$save_LIBS"
10496 ;;
10497 esac
10498
10499 case $lt_cv_dlopen_self in
10500 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10501 *) enable_dlopen_self=unknown ;;
10502 esac
10503
10504 case $lt_cv_dlopen_self_static in
10505 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10506 *) enable_dlopen_self_static=unknown ;;
10507 esac
10508fi
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526striplib=
10527old_striplib=
10528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10529$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10530if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10531 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10532 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10534$as_echo "yes" >&6; }
10535else
10536# FIXME - insert some real tests, host_os isn't really good enough
10537 case $host_os in
10538 darwin*)
10539 if test -n "$STRIP" ; then
10540 striplib="$STRIP -x"
10541 old_striplib="$STRIP -S"
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10543$as_echo "yes" >&6; }
10544 else
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546$as_echo "no" >&6; }
10547 fi
10548 ;;
10549 *)
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551$as_echo "no" >&6; }
10552 ;;
10553 esac
10554fi
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567 # Report which library types will actually be built
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10569$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10571$as_echo "$can_build_shared" >&6; }
10572
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10574$as_echo_n "checking whether to build shared libraries... " >&6; }
10575 test "$can_build_shared" = "no" && enable_shared=no
10576
10577 # On AIX, shared libraries and static libraries use the same namespace, and
10578 # are all built from PIC.
10579 case $host_os in
10580 aix3*)
10581 test "$enable_shared" = yes && enable_static=no
10582 if test -n "$RANLIB"; then
10583 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10584 postinstall_cmds='$RANLIB $lib'
10585 fi
10586 ;;
10587
10588 aix[4-9]*)
10589 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10590 test "$enable_shared" = yes && enable_static=no
10591 fi
10592 ;;
10593 esac
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10595$as_echo "$enable_shared" >&6; }
10596
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10598$as_echo_n "checking whether to build static libraries... " >&6; }
10599 # Make sure either enable_shared or enable_static is yes.
10600 test "$enable_shared" = yes || enable_static=yes
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10602$as_echo "$enable_static" >&6; }
10603
10604
10605
10606
10607fi
10608ac_ext=c
10609ac_cpp='$CPP $CPPFLAGS'
10610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10612ac_compiler_gnu=$ac_cv_c_compiler_gnu
10613
10614CC="$lt_save_CC"
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628 ac_config_commands="$ac_config_commands libtool"
10629
10630
10631
10632
10633# Only expand once:
10634
10635
10636
10637
10638
10639
10640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10641$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10642 # Check whether --enable-maintainer-mode was given.
10643if test "${enable_maintainer_mode+set}" = set; then :
10644 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10645else
10646 USE_MAINTAINER_MODE=no
10647fi
10648
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10650$as_echo "$USE_MAINTAINER_MODE" >&6; }
10651 if test $USE_MAINTAINER_MODE = yes; then
10652 MAINTAINER_MODE_TRUE=
10653 MAINTAINER_MODE_FALSE='#'
10654else
10655 MAINTAINER_MODE_TRUE='#'
10656 MAINTAINER_MODE_FALSE=
10657fi
10658
10659 MAINT=$MAINTAINER_MODE_TRUE
10660
10661
10662# Default to --enable-multilib
10663# Check whether --enable-multilib was given.
10664if test "${enable_multilib+set}" = set; then :
10665 enableval=$enable_multilib; case "$enableval" in
10666 yes) multilib=yes ;;
10667 no) multilib=no ;;
10668 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
10669 esac
10670else
10671 multilib=yes
10672fi
10673
10674
10675# We may get other options which we leave undocumented:
10676# --with-target-subdir, --with-multisrctop, --with-multisubdir
10677# See config-ml.in if you want the gory details.
10678
10679if test "$srcdir" = "."; then
10680 if test "$with_target_subdir" != "."; then
10681 multi_basedir="$srcdir/$with_multisrctop../.."
10682 else
10683 multi_basedir="$srcdir/$with_multisrctop.."
10684 fi
10685else
10686 multi_basedir="$srcdir/.."
10687fi
10688
10689
10690# Even if the default multilib is not a cross compilation,
10691# it may be that some of the other multilibs are.
10692if test $cross_compiling = no && test $multilib = yes \
10693 && test "x${with_multisubdir}" != x ; then
10694 cross_compiling=maybe
10695fi
10696
10697ac_config_commands="$ac_config_commands default-1"
10698
10699
10700# Calculate toolexeclibdir
10701# Also toolexecdir, though it's only used in toolexeclibdir
10702case ${version_specific_libs} in
10703 yes)
10704 # Need the gcc compiler version to know where to install libraries
10705 # and header files if --enable-version-specific-runtime-libs option
10706 # is selected.
10707 toolexecdir='$(libdir)/gcc/$(target_alias)'
10708 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
10709 ;;
10710 no)
10711 if test -n "$with_cross_host" &&
10712 test x"$with_cross_host" != x"no"; then
10713 # Install a library built with a cross compiler in tooldir, not libdir.
10714 toolexecdir='$(exec_prefix)/$(target_alias)'
10715 toolexeclibdir='$(toolexecdir)/lib'
10716 else
10717 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
10718 toolexeclibdir='$(libdir)'
10719 fi
10720 multi_os_directory=`$CC -print-multi-os-directory`
10721 case $multi_os_directory in
10722 .) ;; # Avoid trailing /.
10723 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
10724 esac
10725 ;;
10726esac
10727
10728
10729
10730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
10731$as_echo_n "checking for sqrtl in -lm... " >&6; }
10732if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
10733 $as_echo_n "(cached) " >&6
10734else
10735 ac_check_lib_save_LIBS=$LIBS
10736LIBS="-lm $LIBS"
10737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738/* end confdefs.h. */
10739
10740/* Override any GCC internal prototype to avoid an error.
10741 Use char because int might match the return type of a GCC
10742 builtin and then its argument prototype would still apply. */
10743#ifdef __cplusplus
10744extern "C"
10745#endif
10746char sqrtl ();
10747int
10748main ()
10749{
10750return sqrtl ();
10751 ;
10752 return 0;
10753}
10754_ACEOF
10755if ac_fn_c_try_link "$LINENO"; then :
10756 ac_cv_lib_m_sqrtl=yes
10757else
10758 ac_cv_lib_m_sqrtl=no
10759fi
10760rm -f core conftest.err conftest.$ac_objext \
10761 conftest$ac_exeext conftest.$ac_ext
10762LIBS=$ac_check_lib_save_LIBS
10763fi
10764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
10765$as_echo "$ac_cv_lib_m_sqrtl" >&6; }
10766if test "x$ac_cv_lib_m_sqrtl" = x""yes; then :
10767
10768$as_echo "#define HAVE_SQRTL 1" >>confdefs.h
10769
10770fi
10771
10772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
10773$as_echo_n "checking for cbrtl in -lm... " >&6; }
10774if test "${ac_cv_lib_m_cbrtl+set}" = set; then :
10775 $as_echo_n "(cached) " >&6
10776else
10777 ac_check_lib_save_LIBS=$LIBS
10778LIBS="-lm $LIBS"
10779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10780/* end confdefs.h. */
10781
10782/* Override any GCC internal prototype to avoid an error.
10783 Use char because int might match the return type of a GCC
10784 builtin and then its argument prototype would still apply. */
10785#ifdef __cplusplus
10786extern "C"
10787#endif
10788char cbrtl ();
10789int
10790main ()
10791{
10792return cbrtl ();
10793 ;
10794 return 0;
10795}
10796_ACEOF
10797if ac_fn_c_try_link "$LINENO"; then :
10798 ac_cv_lib_m_cbrtl=yes
10799else
10800 ac_cv_lib_m_cbrtl=no
10801fi
10802rm -f core conftest.err conftest.$ac_objext \
10803 conftest$ac_exeext conftest.$ac_ext
10804LIBS=$ac_check_lib_save_LIBS
10805fi
10806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
10807$as_echo "$ac_cv_lib_m_cbrtl" >&6; }
10808if test "x$ac_cv_lib_m_cbrtl" = x""yes; then :
10809
10810$as_echo "#define HAVE_CBRTL 1" >>confdefs.h
10811
10812fi
10813
10814
10815# Check for symbol versioning (copied from libssp).
10816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
10817$as_echo_n "checking whether symbol versioning is supported... " >&6; }
10818save_LDFLAGS="$LDFLAGS"
10819LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
10820cat > conftest.map <<EOF
10821FOO_1.0 {
10822 global: *foo*; bar; local: *;
10823};
10824EOF
10825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826/* end confdefs.h. */
10827int foo;
10828int
10829main ()
10830{
10831
10832 ;
10833 return 0;
10834}
10835_ACEOF
10836if ac_fn_c_try_link "$LINENO"; then :
10837 quadmath_use_symver=gnu
10838else
10839 quadmath_use_symver=no
10840fi
10841rm -f core conftest.err conftest.$ac_objext \
10842 conftest$ac_exeext conftest.$ac_ext
10843if test x$quadmath_use_symver = xno; then
10844 case "$target_os" in
10845 solaris2*)
10846 LDFLAGS="$save_LDFLAGS"
10847 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
10848 # Sun ld cannot handle wildcards and treats all entries as undefined.
10849 cat > conftest.map <<EOF
10850FOO_1.0 {
10851 global: foo; local: *;
10852};
10853EOF
10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855/* end confdefs.h. */
10856int foo;
10857int
10858main ()
10859{
10860
10861 ;
10862 return 0;
10863}
10864_ACEOF
10865if ac_fn_c_try_link "$LINENO"; then :
10866 quadmath_use_symver=sun
10867else
10868 quadmath_use_symver=no
10869fi
10870rm -f core conftest.err conftest.$ac_objext \
10871 conftest$ac_exeext conftest.$ac_ext
10872 ;;
10873 esac
10874fi
10875LDFLAGS="$save_LDFLAGS"
10876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
10877$as_echo "$quadmath_use_symver" >&6; }
10878 if test "x$quadmath_use_symver" != xno; then
10879 LIBQUAD_USE_SYMVER_TRUE=
10880 LIBQUAD_USE_SYMVER_FALSE='#'
10881else
10882 LIBQUAD_USE_SYMVER_TRUE='#'
10883 LIBQUAD_USE_SYMVER_FALSE=
10884fi
10885
10886 if test "x$quadmath_use_symver" = xgnu; then
10887 LIBQUAD_USE_SYMVER_GNU_TRUE=
10888 LIBQUAD_USE_SYMVER_GNU_FALSE='#'
10889else
10890 LIBQUAD_USE_SYMVER_GNU_TRUE='#'
10891 LIBQUAD_USE_SYMVER_GNU_FALSE=
10892fi
10893
10894 if test "x$quadmath_use_symver" = xsun; then
10895 LIBQUAD_USE_SYMVER_SUN_TRUE=
10896 LIBQUAD_USE_SYMVER_SUN_FALSE='#'
10897else
10898 LIBQUAD_USE_SYMVER_SUN_TRUE='#'
10899 LIBQUAD_USE_SYMVER_SUN_FALSE=
10900fi
10901
10902
10903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
10904$as_echo_n "checking whether __float128 is supported... " >&6; }
10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906/* end confdefs.h. */
10907
10908 typedef _Complex float __attribute__((mode(TC))) __complex128;
10909
10910 __float128 foo (__float128 x)
10911 {
10912
10913 __complex128 z1, z2;
10914
10915 z1 = x;
10916 z2 = x / 7.Q;
10917 z2 /= z1;
10918
10919 return (__float128) z2;
10920 }
10921
10922 __float128 bar (__float128 x)
10923 {
10924 return x * __builtin_huge_valq ();
10925 }
10926
10927int
10928main ()
10929{
10930
10931 foo (1.2Q);
10932 bar (1.2Q);
10933
10934 ;
10935 return 0;
10936}
10937_ACEOF
10938if ac_fn_c_try_link "$LINENO"; then :
10939
10940 libquad_have_float128=yes
10941
10942else
10943
10944 libquad_have_float128=no
10945
10946fi
10947rm -f core conftest.err conftest.$ac_objext \
10948 conftest$ac_exeext conftest.$ac_ext
10949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_have_float128" >&5
10950$as_echo "$libquad_have_float128" >&6; }
10951
10952
10953 if test "x$libquad_have_float128" = xyes; then
10954 BUILD_LIBQUADMATH_TRUE=
10955 BUILD_LIBQUADMATH_FALSE='#'
10956else
10957 BUILD_LIBQUADMATH_TRUE='#'
10958 BUILD_LIBQUADMATH_FALSE=
10959fi
10960
10961
10962cat >confcache <<\_ACEOF
10963# This file is a shell script that caches the results of configure
10964# tests run on this system so they can be shared between configure
10965# scripts and configure runs, see configure's option --config-cache.
10966# It is not useful on other systems. If it contains results you don't
10967# want to keep, you may remove or edit it.
10968#
10969# config.status only pays attention to the cache file if you give it
10970# the --recheck option to rerun configure.
10971#
10972# `ac_cv_env_foo' variables (set or unset) will be overridden when
10973# loading this file, other *unset* `ac_cv_foo' will be assigned the
10974# following values.
10975
10976_ACEOF
10977
10978# The following way of writing the cache mishandles newlines in values,
10979# but we know of no workaround that is simple, portable, and efficient.
10980# So, we kill variables containing newlines.
10981# Ultrix sh set writes to stderr and can't be redirected directly,
10982# and sets the high bit in the cache file unless we assign to the vars.
10983(
10984 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10985 eval ac_val=\$$ac_var
10986 case $ac_val in #(
10987 *${as_nl}*)
10988 case $ac_var in #(
10989 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10990$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10991 esac
10992 case $ac_var in #(
10993 _ | IFS | as_nl) ;; #(
10994 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10995 *) { eval $ac_var=; unset $ac_var;} ;;
10996 esac ;;
10997 esac
10998 done
10999
11000 (set) 2>&1 |
11001 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11002 *${as_nl}ac_space=\ *)
11003 # `set' does not quote correctly, so add quotes: double-quote
11004 # substitution turns \\\\ into \\, and sed turns \\ into \.
11005 sed -n \
11006 "s/'/'\\\\''/g;
11007 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11008 ;; #(
11009 *)
11010 # `set' quotes correctly as required by POSIX, so do not add quotes.
11011 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11012 ;;
11013 esac |
11014 sort
11015) |
11016 sed '
11017 /^ac_cv_env_/b end
11018 t clear
11019 :clear
11020 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11021 t end
11022 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11023 :end' >>confcache
11024if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11025 if test -w "$cache_file"; then
11026 test "x$cache_file" != "x/dev/null" &&
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11028$as_echo "$as_me: updating cache $cache_file" >&6;}
11029 cat confcache >$cache_file
11030 else
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11032$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11033 fi
11034fi
11035rm -f confcache
11036
11037if test ${multilib} = yes; then
11038 multilib_arg="--enable-multilib"
11039else
11040 multilib_arg=
11041fi
11042
11043ac_config_files="$ac_config_files Makefile"
11044
11045cat >confcache <<\_ACEOF
11046# This file is a shell script that caches the results of configure
11047# tests run on this system so they can be shared between configure
11048# scripts and configure runs, see configure's option --config-cache.
11049# It is not useful on other systems. If it contains results you don't
11050# want to keep, you may remove or edit it.
11051#
11052# config.status only pays attention to the cache file if you give it
11053# the --recheck option to rerun configure.
11054#
11055# `ac_cv_env_foo' variables (set or unset) will be overridden when
11056# loading this file, other *unset* `ac_cv_foo' will be assigned the
11057# following values.
11058
11059_ACEOF
11060
11061# The following way of writing the cache mishandles newlines in values,
11062# but we know of no workaround that is simple, portable, and efficient.
11063# So, we kill variables containing newlines.
11064# Ultrix sh set writes to stderr and can't be redirected directly,
11065# and sets the high bit in the cache file unless we assign to the vars.
11066(
11067 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11068 eval ac_val=\$$ac_var
11069 case $ac_val in #(
11070 *${as_nl}*)
11071 case $ac_var in #(
11072 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11073$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11074 esac
11075 case $ac_var in #(
11076 _ | IFS | as_nl) ;; #(
11077 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11078 *) { eval $ac_var=; unset $ac_var;} ;;
11079 esac ;;
11080 esac
11081 done
11082
11083 (set) 2>&1 |
11084 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11085 *${as_nl}ac_space=\ *)
11086 # `set' does not quote correctly, so add quotes: double-quote
11087 # substitution turns \\\\ into \\, and sed turns \\ into \.
11088 sed -n \
11089 "s/'/'\\\\''/g;
11090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11091 ;; #(
11092 *)
11093 # `set' quotes correctly as required by POSIX, so do not add quotes.
11094 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11095 ;;
11096 esac |
11097 sort
11098) |
11099 sed '
11100 /^ac_cv_env_/b end
11101 t clear
11102 :clear
11103 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11104 t end
11105 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11106 :end' >>confcache
11107if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11108 if test -w "$cache_file"; then
11109 test "x$cache_file" != "x/dev/null" &&
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11111$as_echo "$as_me: updating cache $cache_file" >&6;}
11112 cat confcache >$cache_file
11113 else
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11115$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11116 fi
11117fi
11118rm -f confcache
11119
11120test "x$prefix" = xNONE && prefix=$ac_default_prefix
11121# Let make expand exec_prefix.
11122test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11123
11124DEFS=-DHAVE_CONFIG_H
11125
11126ac_libobjs=
11127ac_ltlibobjs=
11128for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11129 # 1. Remove the extension, and $U if already installed.
11130 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11131 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11132 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11133 # will be set to the directory where LIBOBJS objects are built.
11134 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11135 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11136done
11137LIBOBJS=$ac_libobjs
11138
11139LTLIBOBJS=$ac_ltlibobjs
11140
11141
11142 if test -n "$EXEEXT"; then
11143 am__EXEEXT_TRUE=
11144 am__EXEEXT_FALSE='#'
11145else
11146 am__EXEEXT_TRUE='#'
11147 am__EXEEXT_FALSE=
11148fi
11149
11150if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11151 as_fn_error "conditional \"AMDEP\" was never defined.
11152Usually this means the macro was only invoked conditionally." "$LINENO" 5
11153fi
11154if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11155 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11156Usually this means the macro was only invoked conditionally." "$LINENO" 5
11157fi
11158if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11159 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11160Usually this means the macro was only invoked conditionally." "$LINENO" 5
11161fi
11162if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
11163 as_fn_error "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
11164Usually this means the macro was only invoked conditionally." "$LINENO" 5
11165fi
11166if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
11167 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
11168Usually this means the macro was only invoked conditionally." "$LINENO" 5
11169fi
11170if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
11171 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
11172Usually this means the macro was only invoked conditionally." "$LINENO" 5
11173fi
11174if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
11175 as_fn_error "conditional \"BUILD_LIBQUADMATH\" was never defined.
11176Usually this means the macro was only invoked conditionally." "$LINENO" 5
11177fi
11178
11179: ${CONFIG_STATUS=./config.status}
11180ac_write_fail=0
11181ac_clean_files_save=$ac_clean_files
11182ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11183{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11184$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11185as_write_fail=0
11186cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11187#! $SHELL
11188# Generated by $as_me.
11189# Run this file to recreate the current configuration.
11190# Compiler output produced by configure, useful for debugging
11191# configure, is in config.log if it exists.
11192
11193debug=false
11194ac_cs_recheck=false
11195ac_cs_silent=false
11196
11197SHELL=\${CONFIG_SHELL-$SHELL}
11198export SHELL
11199_ASEOF
11200cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11201## -------------------- ##
11202## M4sh Initialization. ##
11203## -------------------- ##
11204
11205# Be more Bourne compatible
11206DUALCASE=1; export DUALCASE # for MKS sh
11207if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11208 emulate sh
11209 NULLCMD=:
11210 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11211 # is contrary to our usage. Disable this feature.
11212 alias -g '${1+"$@"}'='"$@"'
11213 setopt NO_GLOB_SUBST
11214else
11215 case `(set -o) 2>/dev/null` in #(
11216 *posix*) :
11217 set -o posix ;; #(
11218 *) :
11219 ;;
11220esac
11221fi
11222
11223
11224as_nl='
11225'
11226export as_nl
11227# Printing a long string crashes Solaris 7 /usr/bin/printf.
11228as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11229as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11230as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11231# Prefer a ksh shell builtin over an external printf program on Solaris,
11232# but without wasting forks for bash or zsh.
11233if test -z "$BASH_VERSION$ZSH_VERSION" \
11234 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11235 as_echo='print -r --'
11236 as_echo_n='print -rn --'
11237elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11238 as_echo='printf %s\n'
11239 as_echo_n='printf %s'
11240else
11241 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11242 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11243 as_echo_n='/usr/ucb/echo -n'
11244 else
11245 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11246 as_echo_n_body='eval
11247 arg=$1;
11248 case $arg in #(
11249 *"$as_nl"*)
11250 expr "X$arg" : "X\\(.*\\)$as_nl";
11251 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11252 esac;
11253 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11254 '
11255 export as_echo_n_body
11256 as_echo_n='sh -c $as_echo_n_body as_echo'
11257 fi
11258 export as_echo_body
11259 as_echo='sh -c $as_echo_body as_echo'
11260fi
11261
11262# The user is always right.
11263if test "${PATH_SEPARATOR+set}" != set; then
11264 PATH_SEPARATOR=:
11265 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11266 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11267 PATH_SEPARATOR=';'
11268 }
11269fi
11270
11271
11272# IFS
11273# We need space, tab and new line, in precisely that order. Quoting is
11274# there to prevent editors from complaining about space-tab.
11275# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11276# splitting by setting IFS to empty value.)
11277IFS=" "" $as_nl"
11278
11279# Find who we are. Look in the path if we contain no directory separator.
11280case $0 in #((
11281 *[\\/]* ) as_myself=$0 ;;
11282 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283for as_dir in $PATH
11284do
11285 IFS=$as_save_IFS
11286 test -z "$as_dir" && as_dir=.
11287 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11288 done
11289IFS=$as_save_IFS
11290
11291 ;;
11292esac
11293# We did not find ourselves, most probably we were run as `sh COMMAND'
11294# in which case we are not to be found in the path.
11295if test "x$as_myself" = x; then
11296 as_myself=$0
11297fi
11298if test ! -f "$as_myself"; then
11299 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11300 exit 1
11301fi
11302
11303# Unset variables that we do not need and which cause bugs (e.g. in
11304# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11305# suppresses any "Segmentation fault" message there. '((' could
11306# trigger a bug in pdksh 5.2.14.
11307for as_var in BASH_ENV ENV MAIL MAILPATH
11308do eval test x\${$as_var+set} = xset \
11309 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11310done
11311PS1='$ '
11312PS2='> '
11313PS4='+ '
11314
11315# NLS nuisances.
11316LC_ALL=C
11317export LC_ALL
11318LANGUAGE=C
11319export LANGUAGE
11320
11321# CDPATH.
11322(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11323
11324
11325# as_fn_error ERROR [LINENO LOG_FD]
11326# ---------------------------------
11327# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11328# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11329# script with status $?, using 1 if that was 0.
11330as_fn_error ()
11331{
11332 as_status=$?; test $as_status -eq 0 && as_status=1
11333 if test "$3"; then
11334 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11335 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11336 fi
11337 $as_echo "$as_me: error: $1" >&2
11338 as_fn_exit $as_status
11339} # as_fn_error
11340
11341
11342# as_fn_set_status STATUS
11343# -----------------------
11344# Set $? to STATUS, without forking.
11345as_fn_set_status ()
11346{
11347 return $1
11348} # as_fn_set_status
11349
11350# as_fn_exit STATUS
11351# -----------------
11352# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11353as_fn_exit ()
11354{
11355 set +e
11356 as_fn_set_status $1
11357 exit $1
11358} # as_fn_exit
11359
11360# as_fn_unset VAR
11361# ---------------
11362# Portably unset VAR.
11363as_fn_unset ()
11364{
11365 { eval $1=; unset $1;}
11366}
11367as_unset=as_fn_unset
11368# as_fn_append VAR VALUE
11369# ----------------------
11370# Append the text in VALUE to the end of the definition contained in VAR. Take
11371# advantage of any shell optimizations that allow amortized linear growth over
11372# repeated appends, instead of the typical quadratic growth present in naive
11373# implementations.
11374if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11375 eval 'as_fn_append ()
11376 {
11377 eval $1+=\$2
11378 }'
11379else
11380 as_fn_append ()
11381 {
11382 eval $1=\$$1\$2
11383 }
11384fi # as_fn_append
11385
11386# as_fn_arith ARG...
11387# ------------------
11388# Perform arithmetic evaluation on the ARGs, and store the result in the
11389# global $as_val. Take advantage of shells that can avoid forks. The arguments
11390# must be portable across $(()) and expr.
11391if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11392 eval 'as_fn_arith ()
11393 {
11394 as_val=$(( $* ))
11395 }'
11396else
11397 as_fn_arith ()
11398 {
11399 as_val=`expr "$@" || test $? -eq 1`
11400 }
11401fi # as_fn_arith
11402
11403
11404if expr a : '\(a\)' >/dev/null 2>&1 &&
11405 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11406 as_expr=expr
11407else
11408 as_expr=false
11409fi
11410
11411if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11412 as_basename=basename
11413else
11414 as_basename=false
11415fi
11416
11417if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11418 as_dirname=dirname
11419else
11420 as_dirname=false
11421fi
11422
11423as_me=`$as_basename -- "$0" ||
11424$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11425 X"$0" : 'X\(//\)$' \| \
11426 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11427$as_echo X/"$0" |
11428 sed '/^.*\/\([^/][^/]*\)\/*$/{
11429 s//\1/
11430 q
11431 }
11432 /^X\/\(\/\/\)$/{
11433 s//\1/
11434 q
11435 }
11436 /^X\/\(\/\).*/{
11437 s//\1/
11438 q
11439 }
11440 s/.*/./; q'`
11441
11442# Avoid depending upon Character Ranges.
11443as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11444as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11445as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11446as_cr_digits='0123456789'
11447as_cr_alnum=$as_cr_Letters$as_cr_digits
11448
11449ECHO_C= ECHO_N= ECHO_T=
11450case `echo -n x` in #(((((
11451-n*)
11452 case `echo 'xy\c'` in
11453 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11454 xy) ECHO_C='\c';;
11455 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11456 ECHO_T=' ';;
11457 esac;;
11458*)
11459 ECHO_N='-n';;
11460esac
11461
11462rm -f conf$$ conf$$.exe conf$$.file
11463if test -d conf$$.dir; then
11464 rm -f conf$$.dir/conf$$.file
11465else
11466 rm -f conf$$.dir
11467 mkdir conf$$.dir 2>/dev/null
11468fi
11469if (echo >conf$$.file) 2>/dev/null; then
11470 if ln -s conf$$.file conf$$ 2>/dev/null; then
11471 as_ln_s='ln -s'
11472 # ... but there are two gotchas:
11473 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11474 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11475 # In both cases, we have to default to `cp -p'.
11476 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11477 as_ln_s='cp -p'
11478 elif ln conf$$.file conf$$ 2>/dev/null; then
11479 as_ln_s=ln
11480 else
11481 as_ln_s='cp -p'
11482 fi
11483else
11484 as_ln_s='cp -p'
11485fi
11486rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11487rmdir conf$$.dir 2>/dev/null
11488
11489
11490# as_fn_mkdir_p
11491# -------------
11492# Create "$as_dir" as a directory, including parents if necessary.
11493as_fn_mkdir_p ()
11494{
11495
11496 case $as_dir in #(
11497 -*) as_dir=./$as_dir;;
11498 esac
11499 test -d "$as_dir" || eval $as_mkdir_p || {
11500 as_dirs=
11501 while :; do
11502 case $as_dir in #(
11503 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11504 *) as_qdir=$as_dir;;
11505 esac
11506 as_dirs="'$as_qdir' $as_dirs"
11507 as_dir=`$as_dirname -- "$as_dir" ||
11508$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11509 X"$as_dir" : 'X\(//\)[^/]' \| \
11510 X"$as_dir" : 'X\(//\)$' \| \
11511 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11512$as_echo X"$as_dir" |
11513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11514 s//\1/
11515 q
11516 }
11517 /^X\(\/\/\)[^/].*/{
11518 s//\1/
11519 q
11520 }
11521 /^X\(\/\/\)$/{
11522 s//\1/
11523 q
11524 }
11525 /^X\(\/\).*/{
11526 s//\1/
11527 q
11528 }
11529 s/.*/./; q'`
11530 test -d "$as_dir" && break
11531 done
11532 test -z "$as_dirs" || eval "mkdir $as_dirs"
11533 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11534
11535
11536} # as_fn_mkdir_p
11537if mkdir -p . 2>/dev/null; then
11538 as_mkdir_p='mkdir -p "$as_dir"'
11539else
11540 test -d ./-p && rmdir ./-p
11541 as_mkdir_p=false
11542fi
11543
11544if test -x / >/dev/null 2>&1; then
11545 as_test_x='test -x'
11546else
11547 if ls -dL / >/dev/null 2>&1; then
11548 as_ls_L_option=L
11549 else
11550 as_ls_L_option=
11551 fi
11552 as_test_x='
11553 eval sh -c '\''
11554 if test -d "$1"; then
11555 test -d "$1/.";
11556 else
11557 case $1 in #(
11558 -*)set "./$1";;
11559 esac;
11560 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11561 ???[sx]*):;;*)false;;esac;fi
11562 '\'' sh
11563 '
11564fi
11565as_executable_p=$as_test_x
11566
11567# Sed expression to map a string onto a valid CPP name.
11568as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11569
11570# Sed expression to map a string onto a valid variable name.
11571as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11572
11573
11574exec 6>&1
11575## ----------------------------------- ##
11576## Main body of $CONFIG_STATUS script. ##
11577## ----------------------------------- ##
11578_ASEOF
11579test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11580
11581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11582# Save the log message, to keep $0 and so on meaningful, and to
11583# report actual input values of CONFIG_FILES etc. instead of their
11584# values after options handling.
11585ac_log="
11586This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
11587generated by GNU Autoconf 2.64. Invocation command line was
11588
11589 CONFIG_FILES = $CONFIG_FILES
11590 CONFIG_HEADERS = $CONFIG_HEADERS
11591 CONFIG_LINKS = $CONFIG_LINKS
11592 CONFIG_COMMANDS = $CONFIG_COMMANDS
11593 $ $0 $@
11594
11595on `(hostname || uname -n) 2>/dev/null | sed 1q`
11596"
11597
11598_ACEOF
11599
11600case $ac_config_files in *"
11601"*) set x $ac_config_files; shift; ac_config_files=$*;;
11602esac
11603
11604case $ac_config_headers in *"
11605"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11606esac
11607
11608
11609cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11610# Files that config.status was made for.
11611config_files="$ac_config_files"
11612config_headers="$ac_config_headers"
11613config_commands="$ac_config_commands"
11614
11615_ACEOF
11616
11617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11618ac_cs_usage="\
11619\`$as_me' instantiates files and other configuration actions
11620from templates according to the current configuration. Unless the files
11621and actions are specified as TAGs, all are instantiated by default.
11622
11623Usage: $0 [OPTION]... [TAG]...
11624
11625 -h, --help print this help, then exit
11626 -V, --version print version number and configuration settings, then exit
11627 -q, --quiet, --silent
11628 do not print progress messages
11629 -d, --debug don't remove temporary files
11630 --recheck update $as_me by reconfiguring in the same conditions
11631 --file=FILE[:TEMPLATE]
11632 instantiate the configuration file FILE
11633 --header=FILE[:TEMPLATE]
11634 instantiate the configuration header FILE
11635
11636Configuration files:
11637$config_files
11638
11639Configuration headers:
11640$config_headers
11641
11642Configuration commands:
11643$config_commands
11644
11645Report bugs to the package provider."
11646
11647_ACEOF
11648cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11649ac_cs_version="\\
11650GCC Quad-precision Math Library config.status 0.1
11651configured by $0, generated by GNU Autoconf 2.64,
11652 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11653
11654Copyright (C) 2009 Free Software Foundation, Inc.
11655This config.status script is free software; the Free Software Foundation
11656gives unlimited permission to copy, distribute and modify it."
11657
11658ac_pwd='$ac_pwd'
11659srcdir='$srcdir'
11660INSTALL='$INSTALL'
11661MKDIR_P='$MKDIR_P'
11662AWK='$AWK'
11663test -n "\$AWK" || AWK=awk
11664_ACEOF
11665
11666cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11667# The default lists apply if the user does not specify any file.
11668ac_need_defaults=:
11669while test $# != 0
11670do
11671 case $1 in
11672 --*=*)
11673 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11674 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11675 ac_shift=:
11676 ;;
11677 *)
11678 ac_option=$1
11679 ac_optarg=$2
11680 ac_shift=shift
11681 ;;
11682 esac
11683
11684 case $ac_option in
11685 # Handling of the options.
11686 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11687 ac_cs_recheck=: ;;
11688 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11689 $as_echo "$ac_cs_version"; exit ;;
11690 --debug | --debu | --deb | --de | --d | -d )
11691 debug=: ;;
11692 --file | --fil | --fi | --f )
11693 $ac_shift
11694 case $ac_optarg in
11695 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11696 esac
11697 as_fn_append CONFIG_FILES " '$ac_optarg'"
11698 ac_need_defaults=false;;
11699 --header | --heade | --head | --hea )
11700 $ac_shift
11701 case $ac_optarg in
11702 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11703 esac
11704 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11705 ac_need_defaults=false;;
11706 --he | --h)
11707 # Conflict between --help and --header
11708 as_fn_error "ambiguous option: \`$1'
11709Try \`$0 --help' for more information.";;
11710 --help | --hel | -h )
11711 $as_echo "$ac_cs_usage"; exit ;;
11712 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11713 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11714 ac_cs_silent=: ;;
11715
11716 # This is an error.
11717 -*) as_fn_error "unrecognized option: \`$1'
11718Try \`$0 --help' for more information." ;;
11719
11720 *) as_fn_append ac_config_targets " $1"
11721 ac_need_defaults=false ;;
11722
11723 esac
11724 shift
11725done
11726
11727ac_configure_extra_args=
11728
11729if $ac_cs_silent; then
11730 exec 6>/dev/null
11731 ac_configure_extra_args="$ac_configure_extra_args --silent"
11732fi
11733
11734_ACEOF
11735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11736if \$ac_cs_recheck; then
11737 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11738 shift
11739 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11740 CONFIG_SHELL='$SHELL'
11741 export CONFIG_SHELL
11742 exec "\$@"
11743fi
11744
11745_ACEOF
11746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11747exec 5>>config.log
11748{
11749 echo
11750 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11751## Running $as_me. ##
11752_ASBOX
11753 $as_echo "$ac_log"
11754} >&5
11755
11756_ACEOF
11757cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11758#
11759# INIT-COMMANDS
11760#
11761AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11762
11763
11764# The HP-UX ksh and POSIX shell print the target directory to stdout
11765# if CDPATH is set.
11766(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11767
11768sed_quote_subst='$sed_quote_subst'
11769double_quote_subst='$double_quote_subst'
11770delay_variable_subst='$delay_variable_subst'
11771macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11772macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11773enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11774enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11775pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11776enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11777SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11778ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11779host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11780host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11781host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11782build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11783build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11784build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11785SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11786Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11787GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11788EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11789FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11790LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11791NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11792LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11793max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11794ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11795exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11796lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11797lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11798lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11799reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11800reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11801OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11802deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11803file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11804AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11805AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11806STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11807RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11808old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11809old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11810old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11811lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11812CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11813CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11814compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11815GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11816lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11817lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11818lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11819lt_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"`'
11820objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11821MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11822lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11823lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11824lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11825lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11826lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11827need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11828DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11829NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11830LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11831OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11832OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11833libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11834shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11835extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11836archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11837enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11838export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11839whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11840compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11841old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11842old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11843archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11844archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11845module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11846module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11847with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11848allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11849no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11850hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11851hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11852hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11853hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11854hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11855hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11856hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11857hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11858inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11859link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11860fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11861always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11862export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11863exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11864include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11865prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11866file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11867variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11868need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
11869need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
11870version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
11871runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
11872shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
11873shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
11874libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
11875library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
11876soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
11877install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
11878postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11879postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11880finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
11881finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
11882hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
11883sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
11884sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
11885hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
11886enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
11887enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
11888enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
11889old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
11890striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
11891
11892LTCC='$LTCC'
11893LTCFLAGS='$LTCFLAGS'
11894compiler='$compiler_DEFAULT'
11895
11896# A function that is used when there is no print builtin or printf.
11897func_fallback_echo ()
11898{
11899 eval 'cat <<_LTECHO_EOF
11900\$1
11901_LTECHO_EOF'
11902}
11903
11904# Quote evaled strings.
11905for var in SHELL \
11906ECHO \
11907SED \
11908GREP \
11909EGREP \
11910FGREP \
11911LD \
11912NM \
11913LN_S \
11914lt_SP2NL \
11915lt_NL2SP \
11916reload_flag \
11917OBJDUMP \
11918deplibs_check_method \
11919file_magic_cmd \
11920AR \
11921AR_FLAGS \
11922STRIP \
11923RANLIB \
11924CC \
11925CFLAGS \
11926compiler \
11927lt_cv_sys_global_symbol_pipe \
11928lt_cv_sys_global_symbol_to_cdecl \
11929lt_cv_sys_global_symbol_to_c_name_address \
11930lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11931lt_prog_compiler_no_builtin_flag \
11932lt_prog_compiler_wl \
11933lt_prog_compiler_pic \
11934lt_prog_compiler_static \
11935lt_cv_prog_compiler_c_o \
11936need_locks \
11937DSYMUTIL \
11938NMEDIT \
11939LIPO \
11940OTOOL \
11941OTOOL64 \
11942shrext_cmds \
11943export_dynamic_flag_spec \
11944whole_archive_flag_spec \
11945compiler_needs_object \
11946with_gnu_ld \
11947allow_undefined_flag \
11948no_undefined_flag \
11949hardcode_libdir_flag_spec \
11950hardcode_libdir_flag_spec_ld \
11951hardcode_libdir_separator \
11952fix_srcfile_path \
11953exclude_expsyms \
11954include_expsyms \
11955file_list_spec \
11956variables_saved_for_relink \
11957libname_spec \
11958library_names_spec \
11959soname_spec \
11960install_override_mode \
11961finish_eval \
11962old_striplib \
11963striplib; do
11964 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11965 *[\\\\\\\`\\"\\\$]*)
11966 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11967 ;;
11968 *)
11969 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11970 ;;
11971 esac
11972done
11973
11974# Double-quote double-evaled strings.
11975for var in reload_cmds \
11976old_postinstall_cmds \
11977old_postuninstall_cmds \
11978old_archive_cmds \
11979extract_expsyms_cmds \
11980old_archive_from_new_cmds \
11981old_archive_from_expsyms_cmds \
11982archive_cmds \
11983archive_expsym_cmds \
11984module_cmds \
11985module_expsym_cmds \
11986export_symbols_cmds \
11987prelink_cmds \
11988postinstall_cmds \
11989postuninstall_cmds \
11990finish_cmds \
11991sys_lib_search_path_spec \
11992sys_lib_dlsearch_path_spec; do
11993 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11994 *[\\\\\\\`\\"\\\$]*)
11995 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11996 ;;
11997 *)
11998 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11999 ;;
12000 esac
12001done
12002
12003ac_aux_dir='$ac_aux_dir'
12004xsi_shell='$xsi_shell'
12005lt_shell_append='$lt_shell_append'
12006
12007# See if we are running on zsh, and set the options which allow our
12008# commands through without removal of \ escapes INIT.
12009if test -n "\${ZSH_VERSION+set}" ; then
12010 setopt NO_GLOB_SUBST
12011fi
12012
12013
12014 PACKAGE='$PACKAGE'
12015 VERSION='$VERSION'
12016 TIMESTAMP='$TIMESTAMP'
12017 RM='$RM'
12018 ofile='$ofile'
12019
12020
12021
12022
12023srcdir="$srcdir"
12024host="$host"
12025target="$target"
12026with_multisubdir="$with_multisubdir"
12027with_multisrctop="$with_multisrctop"
12028with_target_subdir="$with_target_subdir"
12029ac_configure_args="${multilib_arg} ${ac_configure_args}"
12030multi_basedir="$multi_basedir"
12031CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12032CC="$CC"
12033CXX="$CXX"
12034GFORTRAN="$GFORTRAN"
12035GCJ="$GCJ"
12036
12037_ACEOF
12038
12039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12040
12041# Handling of arguments.
12042for ac_config_target in $ac_config_targets
12043do
12044 case $ac_config_target in
12045 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12046 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12047 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12048 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12049 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12050
12051 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12052 esac
12053done
12054
12055
12056# If the user did not use the arguments to specify the items to instantiate,
12057# then the envvar interface is used. Set only those that are not.
12058# We use the long form for the default assignment because of an extremely
12059# bizarre bug on SunOS 4.1.3.
12060if $ac_need_defaults; then
12061 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12062 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12063 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12064fi
12065
12066# Have a temporary directory for convenience. Make it in the build tree
12067# simply because there is no reason against having it here, and in addition,
12068# creating and moving files from /tmp can sometimes cause problems.
12069# Hook for its removal unless debugging.
12070# Note that there is a small window in which the directory will not be cleaned:
12071# after its creation but before its name has been assigned to `$tmp'.
12072$debug ||
12073{
12074 tmp=
12075 trap 'exit_status=$?
12076 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12077' 0
12078 trap 'as_fn_exit 1' 1 2 13 15
12079}
12080# Create a (secure) tmp directory for tmp files.
12081
12082{
12083 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12084 test -n "$tmp" && test -d "$tmp"
12085} ||
12086{
12087 tmp=./conf$$-$RANDOM
12088 (umask 077 && mkdir "$tmp")
12089} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12090
12091# Set up the scripts for CONFIG_FILES section.
12092# No need to generate them if there are no CONFIG_FILES.
12093# This happens for instance with `./config.status config.h'.
12094if test -n "$CONFIG_FILES"; then
12095
12096
12097ac_cr=`echo X | tr X '\015'`
12098# On cygwin, bash can eat \r inside `` if the user requested igncr.
12099# But we know of no other shell where ac_cr would be empty at this
12100# point, so we can use a bashism as a fallback.
12101if test "x$ac_cr" = x; then
12102 eval ac_cr=\$\'\\r\'
12103fi
12104ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12105if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12106 ac_cs_awk_cr='\r'
12107else
12108 ac_cs_awk_cr=$ac_cr
12109fi
12110
12111echo 'BEGIN {' >"$tmp/subs1.awk" &&
12112_ACEOF
12113
12114
12115{
12116 echo "cat >conf$$subs.awk <<_ACEOF" &&
12117 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12118 echo "_ACEOF"
12119} >conf$$subs.sh ||
12120 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12121ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12122ac_delim='%!_!# '
12123for ac_last_try in false false false false false :; do
12124 . ./conf$$subs.sh ||
12125 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12126
12127 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12128 if test $ac_delim_n = $ac_delim_num; then
12129 break
12130 elif $ac_last_try; then
12131 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12132 else
12133 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12134 fi
12135done
12136rm -f conf$$subs.sh
12137
12138cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12139cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12140_ACEOF
12141sed -n '
12142h
12143s/^/S["/; s/!.*/"]=/
12144p
12145g
12146s/^[^!]*!//
12147:repl
12148t repl
12149s/'"$ac_delim"'$//
12150t delim
12151:nl
12152h
12153s/\(.\{148\}\).*/\1/
12154t more1
12155s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12156p
12157n
12158b repl
12159:more1
12160s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12161p
12162g
12163s/.\{148\}//
12164t nl
12165:delim
12166h
12167s/\(.\{148\}\).*/\1/
12168t more2
12169s/["\\]/\\&/g; s/^/"/; s/$/"/
12170p
12171b
12172:more2
12173s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12174p
12175g
12176s/.\{148\}//
12177t delim
12178' <conf$$subs.awk | sed '
12179/^[^""]/{
12180 N
12181 s/\n//
12182}
12183' >>$CONFIG_STATUS || ac_write_fail=1
12184rm -f conf$$subs.awk
12185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12186_ACAWK
12187cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12188 for (key in S) S_is_set[key] = 1
12189 FS = "\a"
12190
12191}
12192{
12193 line = $ 0
12194 nfields = split(line, field, "@")
12195 substed = 0
12196 len = length(field[1])
12197 for (i = 2; i < nfields; i++) {
12198 key = field[i]
12199 keylen = length(key)
12200 if (S_is_set[key]) {
12201 value = S[key]
12202 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12203 len += length(value) + length(field[++i])
12204 substed = 1
12205 } else
12206 len += 1 + keylen
12207 }
12208
12209 print line
12210}
12211
12212_ACAWK
12213_ACEOF
12214cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12215if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12216 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12217else
12218 cat
12219fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12220 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12221_ACEOF
12222
12223# VPATH may cause trouble with some makes, so we remove $(srcdir),
12224# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12225# trailing colons and then remove the whole line if VPATH becomes empty
12226# (actually we leave an empty line to preserve line numbers).
12227if test "x$srcdir" = x.; then
12228 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12229s/:*\$(srcdir):*/:/
12230s/:*\${srcdir}:*/:/
12231s/:*@srcdir@:*/:/
12232s/^\([^=]*=[ ]*\):*/\1/
12233s/:*$//
12234s/^[^=]*=[ ]*$//
12235}'
12236fi
12237
12238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12239fi # test -n "$CONFIG_FILES"
12240
12241# Set up the scripts for CONFIG_HEADERS section.
12242# No need to generate them if there are no CONFIG_HEADERS.
12243# This happens for instance with `./config.status Makefile'.
12244if test -n "$CONFIG_HEADERS"; then
12245cat >"$tmp/defines.awk" <<\_ACAWK ||
12246BEGIN {
12247_ACEOF
12248
12249# Transform confdefs.h into an awk script `defines.awk', embedded as
12250# here-document in config.status, that substitutes the proper values into
12251# config.h.in to produce config.h.
12252
12253# Create a delimiter string that does not exist in confdefs.h, to ease
12254# handling of long lines.
12255ac_delim='%!_!# '
12256for ac_last_try in false false :; do
12257 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12258 if test -z "$ac_t"; then
12259 break
12260 elif $ac_last_try; then
12261 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12262 else
12263 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12264 fi
12265done
12266
12267# For the awk script, D is an array of macro values keyed by name,
12268# likewise P contains macro parameters if any. Preserve backslash
12269# newline sequences.
12270
12271ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12272sed -n '
12273s/.\{148\}/&'"$ac_delim"'/g
12274t rset
12275:rset
12276s/^[ ]*#[ ]*define[ ][ ]*/ /
12277t def
12278d
12279:def
12280s/\\$//
12281t bsnl
12282s/["\\]/\\&/g
12283s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12284D["\1"]=" \3"/p
12285s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12286d
12287:bsnl
12288s/["\\]/\\&/g
12289s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12290D["\1"]=" \3\\\\\\n"\\/p
12291t cont
12292s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12293t cont
12294d
12295:cont
12296n
12297s/.\{148\}/&'"$ac_delim"'/g
12298t clear
12299:clear
12300s/\\$//
12301t bsnlc
12302s/["\\]/\\&/g; s/^/"/; s/$/"/p
12303d
12304:bsnlc
12305s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12306b cont
12307' <confdefs.h | sed '
12308s/'"$ac_delim"'/"\\\
12309"/g' >>$CONFIG_STATUS || ac_write_fail=1
12310
12311cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12312 for (key in D) D_is_set[key] = 1
12313 FS = "\a"
12314}
12315/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12316 line = \$ 0
12317 split(line, arg, " ")
12318 if (arg[1] == "#") {
12319 defundef = arg[2]
12320 mac1 = arg[3]
12321 } else {
12322 defundef = substr(arg[1], 2)
12323 mac1 = arg[2]
12324 }
12325 split(mac1, mac2, "(") #)
12326 macro = mac2[1]
12327 prefix = substr(line, 1, index(line, defundef) - 1)
12328 if (D_is_set[macro]) {
12329 # Preserve the white space surrounding the "#".
12330 print prefix "define", macro P[macro] D[macro]
12331 next
12332 } else {
12333 # Replace #undef with comments. This is necessary, for example,
12334 # in the case of _POSIX_SOURCE, which is predefined and required
12335 # on some systems where configure will not decide to define it.
12336 if (defundef == "undef") {
12337 print "/*", prefix defundef, macro, "*/"
12338 next
12339 }
12340 }
12341}
12342{ print }
12343_ACAWK
12344_ACEOF
12345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12346 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12347fi # test -n "$CONFIG_HEADERS"
12348
12349
12350eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12351shift
12352for ac_tag
12353do
12354 case $ac_tag in
12355 :[FHLC]) ac_mode=$ac_tag; continue;;
12356 esac
12357 case $ac_mode$ac_tag in
12358 :[FHL]*:*);;
12359 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12360 :[FH]-) ac_tag=-:-;;
12361 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12362 esac
12363 ac_save_IFS=$IFS
12364 IFS=:
12365 set x $ac_tag
12366 IFS=$ac_save_IFS
12367 shift
12368 ac_file=$1
12369 shift
12370
12371 case $ac_mode in
12372 :L) ac_source=$1;;
12373 :[FH])
12374 ac_file_inputs=
12375 for ac_f
12376 do
12377 case $ac_f in
12378 -) ac_f="$tmp/stdin";;
12379 *) # Look for the file first in the build tree, then in the source tree
12380 # (if the path is not absolute). The absolute path cannot be DOS-style,
12381 # because $ac_f cannot contain `:'.
12382 test -f "$ac_f" ||
12383 case $ac_f in
12384 [\\/$]*) false;;
12385 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12386 esac ||
12387 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12388 esac
12389 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12390 as_fn_append ac_file_inputs " '$ac_f'"
12391 done
12392
12393 # Let's still pretend it is `configure' which instantiates (i.e., don't
12394 # use $as_me), people would be surprised to read:
12395 # /* config.h. Generated by config.status. */
12396 configure_input='Generated from '`
12397 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12398 `' by configure.'
12399 if test x"$ac_file" != x-; then
12400 configure_input="$ac_file. $configure_input"
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12402$as_echo "$as_me: creating $ac_file" >&6;}
12403 fi
12404 # Neutralize special characters interpreted by sed in replacement strings.
12405 case $configure_input in #(
12406 *\&* | *\|* | *\\* )
12407 ac_sed_conf_input=`$as_echo "$configure_input" |
12408 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12409 *) ac_sed_conf_input=$configure_input;;
12410 esac
12411
12412 case $ac_tag in
12413 *:-:* | *:-) cat >"$tmp/stdin" \
12414 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12415 esac
12416 ;;
12417 esac
12418
12419 ac_dir=`$as_dirname -- "$ac_file" ||
12420$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12421 X"$ac_file" : 'X\(//\)[^/]' \| \
12422 X"$ac_file" : 'X\(//\)$' \| \
12423 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12424$as_echo X"$ac_file" |
12425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12426 s//\1/
12427 q
12428 }
12429 /^X\(\/\/\)[^/].*/{
12430 s//\1/
12431 q
12432 }
12433 /^X\(\/\/\)$/{
12434 s//\1/
12435 q
12436 }
12437 /^X\(\/\).*/{
12438 s//\1/
12439 q
12440 }
12441 s/.*/./; q'`
12442 as_dir="$ac_dir"; as_fn_mkdir_p
12443 ac_builddir=.
12444
12445case "$ac_dir" in
12446.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12447*)
12448 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12449 # A ".." for each directory in $ac_dir_suffix.
12450 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12451 case $ac_top_builddir_sub in
12452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12454 esac ;;
12455esac
12456ac_abs_top_builddir=$ac_pwd
12457ac_abs_builddir=$ac_pwd$ac_dir_suffix
12458# for backward compatibility:
12459ac_top_builddir=$ac_top_build_prefix
12460
12461case $srcdir in
12462 .) # We are building in place.
12463 ac_srcdir=.
12464 ac_top_srcdir=$ac_top_builddir_sub
12465 ac_abs_top_srcdir=$ac_pwd ;;
12466 [\\/]* | ?:[\\/]* ) # Absolute name.
12467 ac_srcdir=$srcdir$ac_dir_suffix;
12468 ac_top_srcdir=$srcdir
12469 ac_abs_top_srcdir=$srcdir ;;
12470 *) # Relative name.
12471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12472 ac_top_srcdir=$ac_top_build_prefix$srcdir
12473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12474esac
12475ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12476
12477
12478 case $ac_mode in
12479 :F)
12480 #
12481 # CONFIG_FILE
12482 #
12483
12484 case $INSTALL in
12485 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12486 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12487 esac
12488 ac_MKDIR_P=$MKDIR_P
12489 case $MKDIR_P in
12490 [\\/$]* | ?:[\\/]* ) ;;
12491 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12492 esac
12493_ACEOF
12494
12495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12496# If the template does not know about datarootdir, expand it.
12497# FIXME: This hack should be removed a few years after 2.60.
12498ac_datarootdir_hack=; ac_datarootdir_seen=
12499ac_sed_dataroot='
12500/datarootdir/ {
12501 p
12502 q
12503}
12504/@datadir@/p
12505/@docdir@/p
12506/@infodir@/p
12507/@localedir@/p
12508/@mandir@/p'
12509case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12510*datarootdir*) ac_datarootdir_seen=yes;;
12511*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12513$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12514_ACEOF
12515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12516 ac_datarootdir_hack='
12517 s&@datadir@&$datadir&g
12518 s&@docdir@&$docdir&g
12519 s&@infodir@&$infodir&g
12520 s&@localedir@&$localedir&g
12521 s&@mandir@&$mandir&g
12522 s&\\\${datarootdir}&$datarootdir&g' ;;
12523esac
12524_ACEOF
12525
12526# Neutralize VPATH when `$srcdir' = `.'.
12527# Shell code in configure.ac might set extrasub.
12528# FIXME: do we really want to maintain this feature?
12529cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12530ac_sed_extra="$ac_vpsub
12531$extrasub
12532_ACEOF
12533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12534:t
12535/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12536s|@configure_input@|$ac_sed_conf_input|;t t
12537s&@top_builddir@&$ac_top_builddir_sub&;t t
12538s&@top_build_prefix@&$ac_top_build_prefix&;t t
12539s&@srcdir@&$ac_srcdir&;t t
12540s&@abs_srcdir@&$ac_abs_srcdir&;t t
12541s&@top_srcdir@&$ac_top_srcdir&;t t
12542s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12543s&@builddir@&$ac_builddir&;t t
12544s&@abs_builddir@&$ac_abs_builddir&;t t
12545s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12546s&@INSTALL@&$ac_INSTALL&;t t
12547s&@MKDIR_P@&$ac_MKDIR_P&;t t
12548$ac_datarootdir_hack
12549"
12550eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12551 || as_fn_error "could not create $ac_file" "$LINENO" 5
12552
12553test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12554 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12555 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12557which seems to be undefined. Please make sure it is defined." >&5
12558$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12559which seems to be undefined. Please make sure it is defined." >&2;}
12560
12561 rm -f "$tmp/stdin"
12562 case $ac_file in
12563 -) cat "$tmp/out" && rm -f "$tmp/out";;
12564 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12565 esac \
12566 || as_fn_error "could not create $ac_file" "$LINENO" 5
12567 ;;
12568 :H)
12569 #
12570 # CONFIG_HEADER
12571 #
12572 if test x"$ac_file" != x-; then
12573 {
12574 $as_echo "/* $configure_input */" \
12575 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12576 } >"$tmp/config.h" \
12577 || as_fn_error "could not create $ac_file" "$LINENO" 5
12578 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12580$as_echo "$as_me: $ac_file is unchanged" >&6;}
12581 else
12582 rm -f "$ac_file"
12583 mv "$tmp/config.h" "$ac_file" \
12584 || as_fn_error "could not create $ac_file" "$LINENO" 5
12585 fi
12586 else
12587 $as_echo "/* $configure_input */" \
12588 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12589 || as_fn_error "could not create -" "$LINENO" 5
12590 fi
12591# Compute "$ac_file"'s index in $config_headers.
12592_am_arg="$ac_file"
12593_am_stamp_count=1
12594for _am_header in $config_headers :; do
12595 case $_am_header in
12596 $_am_arg | $_am_arg:* )
12597 break ;;
12598 * )
12599 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12600 esac
12601done
12602echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12603$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12604 X"$_am_arg" : 'X\(//\)[^/]' \| \
12605 X"$_am_arg" : 'X\(//\)$' \| \
12606 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12607$as_echo X"$_am_arg" |
12608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12609 s//\1/
12610 q
12611 }
12612 /^X\(\/\/\)[^/].*/{
12613 s//\1/
12614 q
12615 }
12616 /^X\(\/\/\)$/{
12617 s//\1/
12618 q
12619 }
12620 /^X\(\/\).*/{
12621 s//\1/
12622 q
12623 }
12624 s/.*/./; q'`/stamp-h$_am_stamp_count
12625 ;;
12626
12627 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12628$as_echo "$as_me: executing $ac_file commands" >&6;}
12629 ;;
12630 esac
12631
12632
12633 case $ac_file$ac_mode in
12634 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12635 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12636 # are listed without --file. Let's play safe and only enable the eval
12637 # if we detect the quoting.
12638 case $CONFIG_FILES in
12639 *\'*) eval set x "$CONFIG_FILES" ;;
12640 *) set x $CONFIG_FILES ;;
12641 esac
12642 shift
12643 for mf
12644 do
12645 # Strip MF so we end up with the name of the file.
12646 mf=`echo "$mf" | sed -e 's/:.*$//'`
12647 # Check whether this is an Automake generated Makefile or not.
12648 # We used to match only the files named `Makefile.in', but
12649 # some people rename them; so instead we look at the file content.
12650 # Grep'ing the first line is not enough: some people post-process
12651 # each Makefile.in and add a new line on top of each file to say so.
12652 # Grep'ing the whole file is not good either: AIX grep has a line
12653 # limit of 2048, but all sed's we know have understand at least 4000.
12654 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12655 dirpart=`$as_dirname -- "$mf" ||
12656$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12657 X"$mf" : 'X\(//\)[^/]' \| \
12658 X"$mf" : 'X\(//\)$' \| \
12659 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12660$as_echo X"$mf" |
12661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12662 s//\1/
12663 q
12664 }
12665 /^X\(\/\/\)[^/].*/{
12666 s//\1/
12667 q
12668 }
12669 /^X\(\/\/\)$/{
12670 s//\1/
12671 q
12672 }
12673 /^X\(\/\).*/{
12674 s//\1/
12675 q
12676 }
12677 s/.*/./; q'`
12678 else
12679 continue
12680 fi
12681 # Extract the definition of DEPDIR, am__include, and am__quote
12682 # from the Makefile without running `make'.
12683 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12684 test -z "$DEPDIR" && continue
12685 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12686 test -z "am__include" && continue
12687 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12688 # When using ansi2knr, U may be empty or an underscore; expand it
12689 U=`sed -n 's/^U = //p' < "$mf"`
12690 # Find all dependency output files, they are included files with
12691 # $(DEPDIR) in their names. We invoke sed twice because it is the
12692 # simplest approach to changing $(DEPDIR) to its actual value in the
12693 # expansion.
12694 for file in `sed -n "
12695 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12696 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12697 # Make sure the directory exists.
12698 test -f "$dirpart/$file" && continue
12699 fdir=`$as_dirname -- "$file" ||
12700$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12701 X"$file" : 'X\(//\)[^/]' \| \
12702 X"$file" : 'X\(//\)$' \| \
12703 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12704$as_echo X"$file" |
12705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12706 s//\1/
12707 q
12708 }
12709 /^X\(\/\/\)[^/].*/{
12710 s//\1/
12711 q
12712 }
12713 /^X\(\/\/\)$/{
12714 s//\1/
12715 q
12716 }
12717 /^X\(\/\).*/{
12718 s//\1/
12719 q
12720 }
12721 s/.*/./; q'`
12722 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12723 # echo "creating $dirpart/$file"
12724 echo '# dummy' > "$dirpart/$file"
12725 done
12726 done
12727}
12728 ;;
12729 "libtool":C)
12730
12731 # See if we are running on zsh, and set the options which allow our
12732 # commands through without removal of \ escapes.
12733 if test -n "${ZSH_VERSION+set}" ; then
12734 setopt NO_GLOB_SUBST
12735 fi
12736
12737 cfgfile="${ofile}T"
12738 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12739 $RM "$cfgfile"
12740
12741 cat <<_LT_EOF >> "$cfgfile"
12742#! $SHELL
12743
12744# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12745# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12746# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12747# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12748#
12749# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12750# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12751# Written by Gordon Matzigkeit, 1996
12752#
12753# This file is part of GNU Libtool.
12754#
12755# GNU Libtool is free software; you can redistribute it and/or
12756# modify it under the terms of the GNU General Public License as
12757# published by the Free Software Foundation; either version 2 of
12758# the License, or (at your option) any later version.
12759#
12760# As a special exception to the GNU General Public License,
12761# if you distribute this file as part of a program or library that
12762# is built using GNU Libtool, you may include this file under the
12763# same distribution terms that you use for the rest of that program.
12764#
12765# GNU Libtool is distributed in the hope that it will be useful,
12766# but WITHOUT ANY WARRANTY; without even the implied warranty of
12767# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12768# GNU General Public License for more details.
12769#
12770# You should have received a copy of the GNU General Public License
12771# along with GNU Libtool; see the file COPYING. If not, a copy
12772# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12773# obtained by writing to the Free Software Foundation, Inc.,
12774# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12775
12776
12777# The names of the tagged configurations supported by this script.
12778available_tags=""
12779
12780# ### BEGIN LIBTOOL CONFIG
12781
12782# Which release of libtool.m4 was used?
12783macro_version=$macro_version
12784macro_revision=$macro_revision
12785
12786# Whether or not to build shared libraries.
12787build_libtool_libs=$enable_shared
12788
12789# Whether or not to build static libraries.
12790build_old_libs=$enable_static
12791
12792# What type of objects to build.
12793pic_mode=$pic_mode
12794
12795# Whether or not to optimize for fast installation.
12796fast_install=$enable_fast_install
12797
12798# Shell to use when invoking shell scripts.
12799SHELL=$lt_SHELL
12800
12801# An echo program that protects backslashes.
12802ECHO=$lt_ECHO
12803
12804# The host system.
12805host_alias=$host_alias
12806host=$host
12807host_os=$host_os
12808
12809# The build system.
12810build_alias=$build_alias
12811build=$build
12812build_os=$build_os
12813
12814# A sed program that does not truncate output.
12815SED=$lt_SED
12816
12817# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12818Xsed="\$SED -e 1s/^X//"
12819
12820# A grep program that handles long lines.
12821GREP=$lt_GREP
12822
12823# An ERE matcher.
12824EGREP=$lt_EGREP
12825
12826# A literal string matcher.
12827FGREP=$lt_FGREP
12828
12829# A BSD- or MS-compatible name lister.
12830NM=$lt_NM
12831
12832# Whether we need soft or hard links.
12833LN_S=$lt_LN_S
12834
12835# What is the maximum length of a command?
12836max_cmd_len=$max_cmd_len
12837
12838# Object file suffix (normally "o").
12839objext=$ac_objext
12840
12841# Executable file suffix (normally "").
12842exeext=$exeext
12843
12844# whether the shell understands "unset".
12845lt_unset=$lt_unset
12846
12847# turn spaces into newlines.
12848SP2NL=$lt_lt_SP2NL
12849
12850# turn newlines into spaces.
12851NL2SP=$lt_lt_NL2SP
12852
12853# An object symbol dumper.
12854OBJDUMP=$lt_OBJDUMP
12855
12856# Method to check whether dependent libraries are shared objects.
12857deplibs_check_method=$lt_deplibs_check_method
12858
12859# Command to use when deplibs_check_method == "file_magic".
12860file_magic_cmd=$lt_file_magic_cmd
12861
12862# The archiver.
12863AR=$lt_AR
12864AR_FLAGS=$lt_AR_FLAGS
12865
12866# A symbol stripping program.
12867STRIP=$lt_STRIP
12868
12869# Commands used to install an old-style archive.
12870RANLIB=$lt_RANLIB
12871old_postinstall_cmds=$lt_old_postinstall_cmds
12872old_postuninstall_cmds=$lt_old_postuninstall_cmds
12873
12874# Whether to use a lock for old archive extraction.
12875lock_old_archive_extraction=$lock_old_archive_extraction
12876
12877# A C compiler.
12878LTCC=$lt_CC
12879
12880# LTCC compiler flags.
12881LTCFLAGS=$lt_CFLAGS
12882
12883# Take the output of nm and produce a listing of raw symbols and C names.
12884global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12885
12886# Transform the output of nm in a proper C declaration.
12887global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12888
12889# Transform the output of nm in a C name address pair.
12890global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12891
12892# Transform the output of nm in a C name address pair when lib prefix is needed.
12893global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12894
12895# The name of the directory that contains temporary libtool files.
12896objdir=$objdir
12897
12898# Used to examine libraries when file_magic_cmd begins with "file".
12899MAGIC_CMD=$MAGIC_CMD
12900
12901# Must we lock files when doing compilation?
12902need_locks=$lt_need_locks
12903
12904# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12905DSYMUTIL=$lt_DSYMUTIL
12906
12907# Tool to change global to local symbols on Mac OS X.
12908NMEDIT=$lt_NMEDIT
12909
12910# Tool to manipulate fat objects and archives on Mac OS X.
12911LIPO=$lt_LIPO
12912
12913# ldd/readelf like tool for Mach-O binaries on Mac OS X.
12914OTOOL=$lt_OTOOL
12915
12916# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12917OTOOL64=$lt_OTOOL64
12918
12919# Old archive suffix (normally "a").
12920libext=$libext
12921
12922# Shared library suffix (normally ".so").
12923shrext_cmds=$lt_shrext_cmds
12924
12925# The commands to extract the exported symbol list from a shared archive.
12926extract_expsyms_cmds=$lt_extract_expsyms_cmds
12927
12928# Variables whose values should be saved in libtool wrapper scripts and
12929# restored at link time.
12930variables_saved_for_relink=$lt_variables_saved_for_relink
12931
12932# Do we need the "lib" prefix for modules?
12933need_lib_prefix=$need_lib_prefix
12934
12935# Do we need a version for libraries?
12936need_version=$need_version
12937
12938# Library versioning type.
12939version_type=$version_type
12940
12941# Shared library runtime path variable.
12942runpath_var=$runpath_var
12943
12944# Shared library path variable.
12945shlibpath_var=$shlibpath_var
12946
12947# Is shlibpath searched before the hard-coded library search path?
12948shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12949
12950# Format of library name prefix.
12951libname_spec=$lt_libname_spec
12952
12953# List of archive names. First name is the real one, the rest are links.
12954# The last name is the one that the linker finds with -lNAME
12955library_names_spec=$lt_library_names_spec
12956
12957# The coded name of the library, if different from the real name.
12958soname_spec=$lt_soname_spec
12959
12960# Permission mode override for installation of shared libraries.
12961install_override_mode=$lt_install_override_mode
12962
12963# Command to use after installation of a shared archive.
12964postinstall_cmds=$lt_postinstall_cmds
12965
12966# Command to use after uninstallation of a shared archive.
12967postuninstall_cmds=$lt_postuninstall_cmds
12968
12969# Commands used to finish a libtool library installation in a directory.
12970finish_cmds=$lt_finish_cmds
12971
12972# As "finish_cmds", except a single script fragment to be evaled but
12973# not shown.
12974finish_eval=$lt_finish_eval
12975
12976# Whether we should hardcode library paths into libraries.
12977hardcode_into_libs=$hardcode_into_libs
12978
12979# Compile-time system search path for libraries.
12980sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12981
12982# Run-time system search path for libraries.
12983sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12984
12985# Whether dlopen is supported.
12986dlopen_support=$enable_dlopen
12987
12988# Whether dlopen of programs is supported.
12989dlopen_self=$enable_dlopen_self
12990
12991# Whether dlopen of statically linked programs is supported.
12992dlopen_self_static=$enable_dlopen_self_static
12993
12994# Commands to strip libraries.
12995old_striplib=$lt_old_striplib
12996striplib=$lt_striplib
12997
12998
12999# The linker used to build libraries.
13000LD=$lt_LD
13001
13002# How to create reloadable object files.
13003reload_flag=$lt_reload_flag
13004reload_cmds=$lt_reload_cmds
13005
13006# Commands used to build an old-style archive.
13007old_archive_cmds=$lt_old_archive_cmds
13008
13009# A language specific compiler.
13010CC=$lt_compiler
13011
13012# Is the compiler the GNU compiler?
13013with_gcc=$GCC
13014
13015# Compiler flag to turn off builtin functions.
13016no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13017
13018# How to pass a linker flag through the compiler.
13019wl=$lt_lt_prog_compiler_wl
13020
13021# Additional compiler flags for building library objects.
13022pic_flag=$lt_lt_prog_compiler_pic
13023
13024# Compiler flag to prevent dynamic linking.
13025link_static_flag=$lt_lt_prog_compiler_static
13026
13027# Does compiler simultaneously support -c and -o options?
13028compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13029
13030# Whether or not to add -lc for building shared libraries.
13031build_libtool_need_lc=$archive_cmds_need_lc
13032
13033# Whether or not to disallow shared libs when runtime libs are static.
13034allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13035
13036# Compiler flag to allow reflexive dlopens.
13037export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13038
13039# Compiler flag to generate shared objects directly from archives.
13040whole_archive_flag_spec=$lt_whole_archive_flag_spec
13041
13042# Whether the compiler copes with passing no objects directly.
13043compiler_needs_object=$lt_compiler_needs_object
13044
13045# Create an old-style archive from a shared archive.
13046old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13047
13048# Create a temporary old-style archive to link instead of a shared archive.
13049old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13050
13051# Commands used to build a shared archive.
13052archive_cmds=$lt_archive_cmds
13053archive_expsym_cmds=$lt_archive_expsym_cmds
13054
13055# Commands used to build a loadable module if different from building
13056# a shared archive.
13057module_cmds=$lt_module_cmds
13058module_expsym_cmds=$lt_module_expsym_cmds
13059
13060# Whether we are building with GNU ld or not.
13061with_gnu_ld=$lt_with_gnu_ld
13062
13063# Flag that allows shared libraries with undefined symbols to be built.
13064allow_undefined_flag=$lt_allow_undefined_flag
13065
13066# Flag that enforces no undefined symbols.
13067no_undefined_flag=$lt_no_undefined_flag
13068
13069# Flag to hardcode \$libdir into a binary during linking.
13070# This must work even if \$libdir does not exist
13071hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13072
13073# If ld is used when linking, flag to hardcode \$libdir into a binary
13074# during linking. This must work even if \$libdir does not exist.
13075hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13076
13077# Whether we need a single "-rpath" flag with a separated argument.
13078hardcode_libdir_separator=$lt_hardcode_libdir_separator
13079
13080# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13081# DIR into the resulting binary.
13082hardcode_direct=$hardcode_direct
13083
13084# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13085# DIR into the resulting binary and the resulting library dependency is
13086# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13087# library is relocated.
13088hardcode_direct_absolute=$hardcode_direct_absolute
13089
13090# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13091# into the resulting binary.
13092hardcode_minus_L=$hardcode_minus_L
13093
13094# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13095# into the resulting binary.
13096hardcode_shlibpath_var=$hardcode_shlibpath_var
13097
13098# Set to "yes" if building a shared library automatically hardcodes DIR
13099# into the library and all subsequent libraries and executables linked
13100# against it.
13101hardcode_automatic=$hardcode_automatic
13102
13103# Set to yes if linker adds runtime paths of dependent libraries
13104# to runtime path list.
13105inherit_rpath=$inherit_rpath
13106
13107# Whether libtool must link a program against all its dependency libraries.
13108link_all_deplibs=$link_all_deplibs
13109
13110# Fix the shell variable \$srcfile for the compiler.
13111fix_srcfile_path=$lt_fix_srcfile_path
13112
13113# Set to "yes" if exported symbols are required.
13114always_export_symbols=$always_export_symbols
13115
13116# The commands to list exported symbols.
13117export_symbols_cmds=$lt_export_symbols_cmds
13118
13119# Symbols that should not be listed in the preloaded symbols.
13120exclude_expsyms=$lt_exclude_expsyms
13121
13122# Symbols that must always be exported.
13123include_expsyms=$lt_include_expsyms
13124
13125# Commands necessary for linking programs (against libraries) with templates.
13126prelink_cmds=$lt_prelink_cmds
13127
13128# Specify filename containing input files.
13129file_list_spec=$lt_file_list_spec
13130
13131# How to hardcode a shared library path into an executable.
13132hardcode_action=$hardcode_action
13133
13134# ### END LIBTOOL CONFIG
13135
13136_LT_EOF
13137
13138 case $host_os in
13139 aix3*)
13140 cat <<\_LT_EOF >> "$cfgfile"
13141# AIX sometimes has problems with the GCC collect2 program. For some
13142# reason, if we set the COLLECT_NAMES environment variable, the problems
13143# vanish in a puff of smoke.
13144if test "X${COLLECT_NAMES+set}" != Xset; then
13145 COLLECT_NAMES=
13146 export COLLECT_NAMES
13147fi
13148_LT_EOF
13149 ;;
13150 esac
13151
13152
13153ltmain="$ac_aux_dir/ltmain.sh"
13154
13155
13156 # We use sed instead of cat because bash on DJGPP gets confused if
13157 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13158 # text mode, it properly converts lines to CR/LF. This bash problem
13159 # is reportedly fixed, but why not run on old versions too?
13160 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13161 || (rm -f "$cfgfile"; exit 1)
13162
13163 case $xsi_shell in
13164 yes)
13165 cat << \_LT_EOF >> "$cfgfile"
13166
13167# func_dirname file append nondir_replacement
13168# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13169# otherwise set result to NONDIR_REPLACEMENT.
13170func_dirname ()
13171{
13172 case ${1} in
13173 */*) func_dirname_result="${1%/*}${2}" ;;
13174 * ) func_dirname_result="${3}" ;;
13175 esac
13176}
13177
13178# func_basename file
13179func_basename ()
13180{
13181 func_basename_result="${1##*/}"
13182}
13183
13184# func_dirname_and_basename file append nondir_replacement
13185# perform func_basename and func_dirname in a single function
13186# call:
13187# dirname: Compute the dirname of FILE. If nonempty,
13188# add APPEND to the result, otherwise set result
13189# to NONDIR_REPLACEMENT.
13190# value returned in "$func_dirname_result"
13191# basename: Compute filename of FILE.
13192# value retuned in "$func_basename_result"
13193# Implementation must be kept synchronized with func_dirname
13194# and func_basename. For efficiency, we do not delegate to
13195# those functions but instead duplicate the functionality here.
13196func_dirname_and_basename ()
13197{
13198 case ${1} in
13199 */*) func_dirname_result="${1%/*}${2}" ;;
13200 * ) func_dirname_result="${3}" ;;
13201 esac
13202 func_basename_result="${1##*/}"
13203}
13204
13205# func_stripname prefix suffix name
13206# strip PREFIX and SUFFIX off of NAME.
13207# PREFIX and SUFFIX must not contain globbing or regex special
13208# characters, hashes, percent signs, but SUFFIX may contain a leading
13209# dot (in which case that matches only a dot).
13210func_stripname ()
13211{
13212 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13213 # positional parameters, so assign one to ordinary parameter first.
13214 func_stripname_result=${3}
13215 func_stripname_result=${func_stripname_result#"${1}"}
13216 func_stripname_result=${func_stripname_result%"${2}"}
13217}
13218
13219# func_opt_split
13220func_opt_split ()
13221{
13222 func_opt_split_opt=${1%%=*}
13223 func_opt_split_arg=${1#*=}
13224}
13225
13226# func_lo2o object
13227func_lo2o ()
13228{
13229 case ${1} in
13230 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13231 *) func_lo2o_result=${1} ;;
13232 esac
13233}
13234
13235# func_xform libobj-or-source
13236func_xform ()
13237{
13238 func_xform_result=${1%.*}.lo
13239}
13240
13241# func_arith arithmetic-term...
13242func_arith ()
13243{
13244 func_arith_result=$(( $* ))
13245}
13246
13247# func_len string
13248# STRING may not start with a hyphen.
13249func_len ()
13250{
13251 func_len_result=${#1}
13252}
13253
13254_LT_EOF
13255 ;;
13256 *) # Bourne compatible functions.
13257 cat << \_LT_EOF >> "$cfgfile"
13258
13259# func_dirname file append nondir_replacement
13260# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13261# otherwise set result to NONDIR_REPLACEMENT.
13262func_dirname ()
13263{
13264 # Extract subdirectory from the argument.
13265 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13266 if test "X$func_dirname_result" = "X${1}"; then
13267 func_dirname_result="${3}"
13268 else
13269 func_dirname_result="$func_dirname_result${2}"
13270 fi
13271}
13272
13273# func_basename file
13274func_basename ()
13275{
13276 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13277}
13278
13279
13280# func_stripname prefix suffix name
13281# strip PREFIX and SUFFIX off of NAME.
13282# PREFIX and SUFFIX must not contain globbing or regex special
13283# characters, hashes, percent signs, but SUFFIX may contain a leading
13284# dot (in which case that matches only a dot).
13285# func_strip_suffix prefix name
13286func_stripname ()
13287{
13288 case ${2} in
13289 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13290 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13291 esac
13292}
13293
13294# sed scripts:
13295my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13296my_sed_long_arg='1s/^-[^=]*=//'
13297
13298# func_opt_split
13299func_opt_split ()
13300{
13301 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13302 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13303}
13304
13305# func_lo2o object
13306func_lo2o ()
13307{
13308 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13309}
13310
13311# func_xform libobj-or-source
13312func_xform ()
13313{
13314 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13315}
13316
13317# func_arith arithmetic-term...
13318func_arith ()
13319{
13320 func_arith_result=`expr "$@"`
13321}
13322
13323# func_len string
13324# STRING may not start with a hyphen.
13325func_len ()
13326{
13327 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13328}
13329
13330_LT_EOF
13331esac
13332
13333case $lt_shell_append in
13334 yes)
13335 cat << \_LT_EOF >> "$cfgfile"
13336
13337# func_append var value
13338# Append VALUE to the end of shell variable VAR.
13339func_append ()
13340{
13341 eval "$1+=\$2"
13342}
13343_LT_EOF
13344 ;;
13345 *)
13346 cat << \_LT_EOF >> "$cfgfile"
13347
13348# func_append var value
13349# Append VALUE to the end of shell variable VAR.
13350func_append ()
13351{
13352 eval "$1=\$$1\$2"
13353}
13354
13355_LT_EOF
13356 ;;
13357 esac
13358
13359
13360 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13361 || (rm -f "$cfgfile"; exit 1)
13362
13363 mv -f "$cfgfile" "$ofile" ||
13364 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13365 chmod +x "$ofile"
13366
13367 ;;
13368 "default-1":C)
13369# Only add multilib support code if we just rebuilt the top-level
13370# Makefile.
13371case " $CONFIG_FILES " in
13372 *" Makefile "*)
13373 ac_file=Makefile . ${multi_basedir}/config-ml.in
13374 ;;
13375esac ;;
13376
13377 esac
13378done # for ac_tag
13379
13380
13381as_fn_exit 0
13382_ACEOF
13383ac_clean_files=$ac_clean_files_save
13384
13385test $ac_write_fail = 0 ||
13386 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13387
13388
13389# configure is writing to config.log, and then calls config.status.
13390# config.status does its own redirection, appending to config.log.
13391# Unfortunately, on DOS this fails, as config.log is still kept open
13392# by configure, so config.status won't be able to write to it; its
13393# output is simply discarded. So we exec the FD to /dev/null,
13394# effectively closing config.log, so it can be properly (re)opened and
13395# appended to by config.status. When coming back to configure, we
13396# need to make the FD available again.
13397if test "$no_create" != yes; then
13398 ac_cs_success=:
13399 ac_config_status_args=
13400 test "$silent" = yes &&
13401 ac_config_status_args="$ac_config_status_args --quiet"
13402 exec 5>/dev/null
13403 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13404 exec 5>>config.log
13405 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13406 # would make configure fail if this is the last instruction.
13407 $ac_cs_success || as_fn_exit $?
13408fi
13409if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13411$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13412fi
13413