]> git.ipfire.org Git - thirdparty/gcc.git/blame - libcc1/configure
re PR other/79046 (g++ -print-file-name=plugin uses full version number in path)
[thirdparty/gcc.git] / libcc1 / configure
CommitLineData
ddc8de03
PM
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for libcc1 version-unused.
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
172test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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='libcc1'
558PACKAGE_TARNAME='libcc1'
559PACKAGE_VERSION='version-unused'
560PACKAGE_STRING='libcc1 version-unused'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
563
564ac_unique_file="libcc1.cc"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
568#ifdef HAVE_SYS_TYPES_H
569# include <sys/types.h>
570#endif
571#ifdef HAVE_SYS_STAT_H
572# include <sys/stat.h>
573#endif
574#ifdef STDC_HEADERS
575# include <stdlib.h>
576# include <stddef.h>
577#else
578# ifdef HAVE_STDLIB_H
579# include <stdlib.h>
580# endif
581#endif
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
588#ifdef HAVE_STRINGS_H
589# include <strings.h>
590#endif
591#ifdef HAVE_INTTYPES_H
592# include <inttypes.h>
593#endif
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
598# include <unistd.h>
599#endif"
600
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
605ENABLE_PLUGIN_FALSE
606ENABLE_PLUGIN_TRUE
607libsuffix
ca557f53
JJ
608GMPINC
609WERROR
ddc8de03 610WARN_FLAGS
ca37d49a 611CONFIG_STATUS_DEPENDENCIES
ddc8de03 612gcc_version
3c36aa6b 613get_gcc_base_ver
ddc8de03
PM
614visibility
615CXXCPP
616am__fastdepCXX_FALSE
617am__fastdepCXX_TRUE
618CXXDEPMODE
619ac_ct_CXX
620CXXFLAGS
621CXX
622OTOOL64
623OTOOL
624LIPO
625NMEDIT
626DSYMUTIL
627RANLIB
628AR
629OBJDUMP
630LN_S
631NM
632ac_ct_DUMPBIN
633DUMPBIN
634LD
635FGREP
636SED
637LIBTOOL
638MAINT
639MAINTAINER_MODE_FALSE
640MAINTAINER_MODE_TRUE
641am__fastdepCC_FALSE
642am__fastdepCC_TRUE
643CCDEPMODE
4709a6d2 644am__nodep
ddc8de03
PM
645AMDEPBACKSLASH
646AMDEP_FALSE
647AMDEP_TRUE
648am__quote
649am__include
650DEPDIR
651am__untar
652am__tar
653AMTAR
654am__leading_dot
655SET_MAKE
656AWK
657mkdir_p
658MKDIR_P
659INSTALL_STRIP_PROGRAM
660STRIP
661install_sh
662MAKEINFO
663AUTOHEADER
664AUTOMAKE
665AUTOCONF
666ACLOCAL
667VERSION
668PACKAGE
669CYGPATH_W
670am__isrc
671INSTALL_DATA
672INSTALL_SCRIPT
673INSTALL_PROGRAM
674target_subdir
675host_subdir
676build_subdir
677build_libsubdir
678target_noncanonical
679EGREP
680GREP
681CPP
682OBJEXT
683EXEEXT
684ac_ct_CC
685CPPFLAGS
686LDFLAGS
687CFLAGS
688CC
689target_os
690target_vendor
691target_cpu
692target
693host_os
694host_vendor
695host_cpu
696host
697build_os
698build_vendor
699build_cpu
700build
701target_alias
702host_alias
703build_alias
704LIBS
705ECHO_T
706ECHO_N
707ECHO_C
708DEFS
709mandir
710localedir
711libdir
712psdir
713pdfdir
714dvidir
715htmldir
716infodir
717docdir
718oldincludedir
719includedir
720localstatedir
721sharedstatedir
722sysconfdir
723datadir
724datarootdir
725libexecdir
726sbindir
727bindir
728program_transform_name
729prefix
730exec_prefix
731PACKAGE_URL
732PACKAGE_BUGREPORT
733PACKAGE_STRING
734PACKAGE_VERSION
735PACKAGE_TARNAME
736PACKAGE_NAME
737PATH_SEPARATOR
738SHELL'
739ac_subst_files=''
740ac_user_opts='
741enable_option_checking
742with_build_libsubdir
743enable_dependency_tracking
744enable_maintainer_mode
745enable_static
746enable_shared
747with_pic
748enable_fast_install
749with_gnu_ld
750enable_libtool_lock
3c36aa6b 751with_gcc_major_version_only
ca557f53 752enable_werror_always
ddc8de03
PM
753enable_plugin
754'
755 ac_precious_vars='build_alias
756host_alias
757target_alias
758CC
759CFLAGS
760LDFLAGS
761LIBS
762CPPFLAGS
763CPP
764CXX
765CXXFLAGS
766CCC
ca557f53
JJ
767CXXCPP
768GMPINC'
ddc8de03
PM
769
770
771# Initialize some variables set by options.
772ac_init_help=
773ac_init_version=false
774ac_unrecognized_opts=
775ac_unrecognized_sep=
776# The variables have the same names as the options, with
777# dashes changed to underlines.
778cache_file=/dev/null
779exec_prefix=NONE
780no_create=
781no_recursion=
782prefix=NONE
783program_prefix=NONE
784program_suffix=NONE
785program_transform_name=s,x,x,
786silent=
787site=
788srcdir=
789verbose=
790x_includes=NONE
791x_libraries=NONE
792
793# Installation directory options.
794# These are left unexpanded so users can "make install exec_prefix=/foo"
795# and all the variables that are supposed to be based on exec_prefix
796# by default will actually change.
797# Use braces instead of parens because sh, perl, etc. also accept them.
798# (The list follows the same order as the GNU Coding Standards.)
799bindir='${exec_prefix}/bin'
800sbindir='${exec_prefix}/sbin'
801libexecdir='${exec_prefix}/libexec'
802datarootdir='${prefix}/share'
803datadir='${datarootdir}'
804sysconfdir='${prefix}/etc'
805sharedstatedir='${prefix}/com'
806localstatedir='${prefix}/var'
807includedir='${prefix}/include'
808oldincludedir='/usr/include'
809docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
810infodir='${datarootdir}/info'
811htmldir='${docdir}'
812dvidir='${docdir}'
813pdfdir='${docdir}'
814psdir='${docdir}'
815libdir='${exec_prefix}/lib'
816localedir='${datarootdir}/locale'
817mandir='${datarootdir}/man'
818
819ac_prev=
820ac_dashdash=
821for ac_option
822do
823 # If the previous option needs an argument, assign it.
824 if test -n "$ac_prev"; then
825 eval $ac_prev=\$ac_option
826 ac_prev=
827 continue
828 fi
829
830 case $ac_option in
831 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832 *) ac_optarg=yes ;;
833 esac
834
835 # Accept the important Cygnus configure options, so we can diagnose typos.
836
837 case $ac_dashdash$ac_option in
838 --)
839 ac_dashdash=yes ;;
840
841 -bindir | --bindir | --bindi | --bind | --bin | --bi)
842 ac_prev=bindir ;;
843 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
844 bindir=$ac_optarg ;;
845
846 -build | --build | --buil | --bui | --bu)
847 ac_prev=build_alias ;;
848 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
849 build_alias=$ac_optarg ;;
850
851 -cache-file | --cache-file | --cache-fil | --cache-fi \
852 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
853 ac_prev=cache_file ;;
854 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
855 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
856 cache_file=$ac_optarg ;;
857
858 --config-cache | -C)
859 cache_file=config.cache ;;
860
861 -datadir | --datadir | --datadi | --datad)
862 ac_prev=datadir ;;
863 -datadir=* | --datadir=* | --datadi=* | --datad=*)
864 datadir=$ac_optarg ;;
865
866 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
867 | --dataroo | --dataro | --datar)
868 ac_prev=datarootdir ;;
869 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
870 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
871 datarootdir=$ac_optarg ;;
872
873 -disable-* | --disable-*)
874 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
875 # Reject names that are not valid shell variable names.
876 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
877 as_fn_error "invalid feature name: $ac_useropt"
878 ac_useropt_orig=$ac_useropt
879 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880 case $ac_user_opts in
881 *"
882"enable_$ac_useropt"
883"*) ;;
884 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
885 ac_unrecognized_sep=', ';;
886 esac
887 eval enable_$ac_useropt=no ;;
888
889 -docdir | --docdir | --docdi | --doc | --do)
890 ac_prev=docdir ;;
891 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
892 docdir=$ac_optarg ;;
893
894 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
895 ac_prev=dvidir ;;
896 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
897 dvidir=$ac_optarg ;;
898
899 -enable-* | --enable-*)
900 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903 as_fn_error "invalid feature name: $ac_useropt"
904 ac_useropt_orig=$ac_useropt
905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906 case $ac_user_opts in
907 *"
908"enable_$ac_useropt"
909"*) ;;
910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
911 ac_unrecognized_sep=', ';;
912 esac
913 eval enable_$ac_useropt=\$ac_optarg ;;
914
915 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
916 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
917 | --exec | --exe | --ex)
918 ac_prev=exec_prefix ;;
919 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
920 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
921 | --exec=* | --exe=* | --ex=*)
922 exec_prefix=$ac_optarg ;;
923
924 -gas | --gas | --ga | --g)
925 # Obsolete; use --with-gas.
926 with_gas=yes ;;
927
928 -help | --help | --hel | --he | -h)
929 ac_init_help=long ;;
930 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
931 ac_init_help=recursive ;;
932 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
933 ac_init_help=short ;;
934
935 -host | --host | --hos | --ho)
936 ac_prev=host_alias ;;
937 -host=* | --host=* | --hos=* | --ho=*)
938 host_alias=$ac_optarg ;;
939
940 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
941 ac_prev=htmldir ;;
942 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
943 | --ht=*)
944 htmldir=$ac_optarg ;;
945
946 -includedir | --includedir | --includedi | --included | --include \
947 | --includ | --inclu | --incl | --inc)
948 ac_prev=includedir ;;
949 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
950 | --includ=* | --inclu=* | --incl=* | --inc=*)
951 includedir=$ac_optarg ;;
952
953 -infodir | --infodir | --infodi | --infod | --info | --inf)
954 ac_prev=infodir ;;
955 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
956 infodir=$ac_optarg ;;
957
958 -libdir | --libdir | --libdi | --libd)
959 ac_prev=libdir ;;
960 -libdir=* | --libdir=* | --libdi=* | --libd=*)
961 libdir=$ac_optarg ;;
962
963 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
964 | --libexe | --libex | --libe)
965 ac_prev=libexecdir ;;
966 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
967 | --libexe=* | --libex=* | --libe=*)
968 libexecdir=$ac_optarg ;;
969
970 -localedir | --localedir | --localedi | --localed | --locale)
971 ac_prev=localedir ;;
972 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
973 localedir=$ac_optarg ;;
974
975 -localstatedir | --localstatedir | --localstatedi | --localstated \
976 | --localstate | --localstat | --localsta | --localst | --locals)
977 ac_prev=localstatedir ;;
978 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
979 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
980 localstatedir=$ac_optarg ;;
981
982 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
983 ac_prev=mandir ;;
984 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
985 mandir=$ac_optarg ;;
986
987 -nfp | --nfp | --nf)
988 # Obsolete; use --without-fp.
989 with_fp=no ;;
990
991 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
992 | --no-cr | --no-c | -n)
993 no_create=yes ;;
994
995 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
996 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
997 no_recursion=yes ;;
998
999 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1000 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1001 | --oldin | --oldi | --old | --ol | --o)
1002 ac_prev=oldincludedir ;;
1003 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1004 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1005 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1006 oldincludedir=$ac_optarg ;;
1007
1008 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1009 ac_prev=prefix ;;
1010 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1011 prefix=$ac_optarg ;;
1012
1013 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1014 | --program-pre | --program-pr | --program-p)
1015 ac_prev=program_prefix ;;
1016 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1017 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1018 program_prefix=$ac_optarg ;;
1019
1020 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1021 | --program-suf | --program-su | --program-s)
1022 ac_prev=program_suffix ;;
1023 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1024 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1025 program_suffix=$ac_optarg ;;
1026
1027 -program-transform-name | --program-transform-name \
1028 | --program-transform-nam | --program-transform-na \
1029 | --program-transform-n | --program-transform- \
1030 | --program-transform | --program-transfor \
1031 | --program-transfo | --program-transf \
1032 | --program-trans | --program-tran \
1033 | --progr-tra | --program-tr | --program-t)
1034 ac_prev=program_transform_name ;;
1035 -program-transform-name=* | --program-transform-name=* \
1036 | --program-transform-nam=* | --program-transform-na=* \
1037 | --program-transform-n=* | --program-transform-=* \
1038 | --program-transform=* | --program-transfor=* \
1039 | --program-transfo=* | --program-transf=* \
1040 | --program-trans=* | --program-tran=* \
1041 | --progr-tra=* | --program-tr=* | --program-t=*)
1042 program_transform_name=$ac_optarg ;;
1043
1044 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1045 ac_prev=pdfdir ;;
1046 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1047 pdfdir=$ac_optarg ;;
1048
1049 -psdir | --psdir | --psdi | --psd | --ps)
1050 ac_prev=psdir ;;
1051 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1052 psdir=$ac_optarg ;;
1053
1054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055 | -silent | --silent | --silen | --sile | --sil)
1056 silent=yes ;;
1057
1058 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1059 ac_prev=sbindir ;;
1060 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1061 | --sbi=* | --sb=*)
1062 sbindir=$ac_optarg ;;
1063
1064 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1065 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1066 | --sharedst | --shareds | --shared | --share | --shar \
1067 | --sha | --sh)
1068 ac_prev=sharedstatedir ;;
1069 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1070 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1071 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1072 | --sha=* | --sh=*)
1073 sharedstatedir=$ac_optarg ;;
1074
1075 -site | --site | --sit)
1076 ac_prev=site ;;
1077 -site=* | --site=* | --sit=*)
1078 site=$ac_optarg ;;
1079
1080 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1081 ac_prev=srcdir ;;
1082 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1083 srcdir=$ac_optarg ;;
1084
1085 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1086 | --syscon | --sysco | --sysc | --sys | --sy)
1087 ac_prev=sysconfdir ;;
1088 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1089 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1090 sysconfdir=$ac_optarg ;;
1091
1092 -target | --target | --targe | --targ | --tar | --ta | --t)
1093 ac_prev=target_alias ;;
1094 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1095 target_alias=$ac_optarg ;;
1096
1097 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1098 verbose=yes ;;
1099
1100 -version | --version | --versio | --versi | --vers | -V)
1101 ac_init_version=: ;;
1102
1103 -with-* | --with-*)
1104 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107 as_fn_error "invalid package name: $ac_useropt"
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1111 *"
1112"with_$ac_useropt"
1113"*) ;;
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1116 esac
1117 eval with_$ac_useropt=\$ac_optarg ;;
1118
1119 -without-* | --without-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128"with_$ac_useropt"
1129"*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=no ;;
1134
1135 --x)
1136 # Obsolete; use --with-x.
1137 with_x=yes ;;
1138
1139 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1140 | --x-incl | --x-inc | --x-in | --x-i)
1141 ac_prev=x_includes ;;
1142 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1143 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1144 x_includes=$ac_optarg ;;
1145
1146 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1147 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1148 ac_prev=x_libraries ;;
1149 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1150 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1151 x_libraries=$ac_optarg ;;
1152
1153 -*) as_fn_error "unrecognized option: \`$ac_option'
1154Try \`$0 --help' for more information."
1155 ;;
1156
1157 *=*)
1158 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1159 # Reject names that are not valid shell variable names.
1160 case $ac_envvar in #(
1161 '' | [0-9]* | *[!_$as_cr_alnum]* )
1162 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1163 esac
1164 eval $ac_envvar=\$ac_optarg
1165 export $ac_envvar ;;
1166
1167 *)
1168 # FIXME: should be removed in autoconf 3.0.
1169 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1170 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1172 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1173 ;;
1174
1175 esac
1176done
1177
1178if test -n "$ac_prev"; then
1179 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1180 as_fn_error "missing argument to $ac_option"
1181fi
1182
1183if test -n "$ac_unrecognized_opts"; then
1184 case $enable_option_checking in
1185 no) ;;
1186 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1187 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1188 esac
1189fi
1190
1191# Check all directory arguments for consistency.
1192for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1193 datadir sysconfdir sharedstatedir localstatedir includedir \
1194 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1195 libdir localedir mandir
1196do
1197 eval ac_val=\$$ac_var
1198 # Remove trailing slashes.
1199 case $ac_val in
1200 */ )
1201 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1202 eval $ac_var=\$ac_val;;
1203 esac
1204 # Be sure to have absolute directory names.
1205 case $ac_val in
1206 [\\/$]* | ?:[\\/]* ) continue;;
1207 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1208 esac
1209 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1210done
1211
1212# There might be people who depend on the old broken behavior: `$host'
1213# used to hold the argument of --host etc.
1214# FIXME: To remove some day.
1215build=$build_alias
1216host=$host_alias
1217target=$target_alias
1218
1219# FIXME: To remove some day.
1220if test "x$host_alias" != x; then
1221 if test "x$build_alias" = x; then
1222 cross_compiling=maybe
1223 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1224 If a cross compiler is detected then cross compile mode will be used." >&2
1225 elif test "x$build_alias" != "x$host_alias"; then
1226 cross_compiling=yes
1227 fi
1228fi
1229
1230ac_tool_prefix=
1231test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232
1233test "$silent" = yes && exec 6>/dev/null
1234
1235
1236ac_pwd=`pwd` && test -n "$ac_pwd" &&
1237ac_ls_di=`ls -di .` &&
1238ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1239 as_fn_error "working directory cannot be determined"
1240test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241 as_fn_error "pwd does not report name of working directory"
1242
1243
1244# Find the source files, if location was not specified.
1245if test -z "$srcdir"; then
1246 ac_srcdir_defaulted=yes
1247 # Try the directory containing this script, then the parent directory.
1248 ac_confdir=`$as_dirname -- "$as_myself" ||
1249$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250 X"$as_myself" : 'X\(//\)[^/]' \| \
1251 X"$as_myself" : 'X\(//\)$' \| \
1252 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1253$as_echo X"$as_myself" |
1254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\/\)[^/].*/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\/\)$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\).*/{
1267 s//\1/
1268 q
1269 }
1270 s/.*/./; q'`
1271 srcdir=$ac_confdir
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 srcdir=..
1274 fi
1275else
1276 ac_srcdir_defaulted=no
1277fi
1278if test ! -r "$srcdir/$ac_unique_file"; then
1279 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1281fi
1282ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1283ac_abs_confdir=`(
1284 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1285 pwd)`
1286# When building in place, set srcdir=.
1287if test "$ac_abs_confdir" = "$ac_pwd"; then
1288 srcdir=.
1289fi
1290# Remove unnecessary trailing slashes from srcdir.
1291# Double slashes in file names in object file debugging info
1292# mess up M-x gdb in Emacs.
1293case $srcdir in
1294*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1295esac
1296for ac_var in $ac_precious_vars; do
1297 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1298 eval ac_env_${ac_var}_value=\$${ac_var}
1299 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1301done
1302
1303#
1304# Report the --help message.
1305#
1306if test "$ac_init_help" = "long"; then
1307 # Omit some internal or obsolete options to make the list less imposing.
1308 # This message is too long to be a string in the A/UX 3.1 sh.
1309 cat <<_ACEOF
1310\`configure' configures libcc1 version-unused to adapt to many kinds of systems.
1311
1312Usage: $0 [OPTION]... [VAR=VALUE]...
1313
1314To assign environment variables (e.g., CC, CFLAGS...), specify them as
1315VAR=VALUE. See below for descriptions of some of the useful variables.
1316
1317Defaults for the options are specified in brackets.
1318
1319Configuration:
1320 -h, --help display this help and exit
1321 --help=short display options specific to this package
1322 --help=recursive display the short help of all the included packages
1323 -V, --version display version information and exit
1324 -q, --quiet, --silent do not print \`checking...' messages
1325 --cache-file=FILE cache test results in FILE [disabled]
1326 -C, --config-cache alias for \`--cache-file=config.cache'
1327 -n, --no-create do not create output files
1328 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1329
1330Installation directories:
1331 --prefix=PREFIX install architecture-independent files in PREFIX
1332 [$ac_default_prefix]
1333 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1334 [PREFIX]
1335
1336By default, \`make install' will install all the files in
1337\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1338an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1339for instance \`--prefix=\$HOME'.
1340
1341For better control, use the options below.
1342
1343Fine tuning of the installation directories:
1344 --bindir=DIR user executables [EPREFIX/bin]
1345 --sbindir=DIR system admin executables [EPREFIX/sbin]
1346 --libexecdir=DIR program executables [EPREFIX/libexec]
1347 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1348 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1349 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1350 --libdir=DIR object code libraries [EPREFIX/lib]
1351 --includedir=DIR C header files [PREFIX/include]
1352 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1353 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1354 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1355 --infodir=DIR info documentation [DATAROOTDIR/info]
1356 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1357 --mandir=DIR man documentation [DATAROOTDIR/man]
1358 --docdir=DIR documentation root [DATAROOTDIR/doc/libcc1]
1359 --htmldir=DIR html documentation [DOCDIR]
1360 --dvidir=DIR dvi documentation [DOCDIR]
1361 --pdfdir=DIR pdf documentation [DOCDIR]
1362 --psdir=DIR ps documentation [DOCDIR]
1363_ACEOF
1364
1365 cat <<\_ACEOF
1366
1367Program names:
1368 --program-prefix=PREFIX prepend PREFIX to installed program names
1369 --program-suffix=SUFFIX append SUFFIX to installed program names
1370 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1371
1372System types:
1373 --build=BUILD configure for building on BUILD [guessed]
1374 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1375 --target=TARGET configure for building compilers for TARGET [HOST]
1376_ACEOF
1377fi
1378
1379if test -n "$ac_init_help"; then
1380 case $ac_init_help in
1381 short | recursive ) echo "Configuration of libcc1 version-unused:";;
1382 esac
1383 cat <<\_ACEOF
1384
1385Optional Features:
1386 --disable-option-checking ignore unrecognized --enable/--with options
1387 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1388 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1389 --disable-dependency-tracking speeds up one-time build
1390 --enable-dependency-tracking do not reject slow dependency extractors
1391 --enable-maintainer-mode enable make rules and dependencies not useful
1392 (and sometimes confusing) to the casual installer
1393 --enable-static[=PKGS] build static libraries [default=no]
1394 --enable-shared[=PKGS] build shared libraries [default=yes]
1395 --enable-fast-install[=PKGS]
1396 optimize for fast installation [default=yes]
1397 --disable-libtool-lock avoid locking (might break parallel builds)
ca557f53 1398 --enable-werror-always enable -Werror despite compiler version
ddc8de03
PM
1399 --enable-plugin enable plugin support
1400
1401Optional Packages:
1402 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1403 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1404 --with-build-libsubdir=DIR Directory where to find libraries for build system
1405 --with-pic try to use only PIC/non-PIC objects [default=use
1406 both]
1407 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
3c36aa6b
JJ
1408 --with-gcc-major-version-only
1409 use only GCC major number in filesystem paths
ddc8de03
PM
1410
1411Some influential environment variables:
1412 CC C compiler command
1413 CFLAGS C compiler flags
1414 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1415 nonstandard directory <lib dir>
1416 LIBS libraries to pass to the linker, e.g. -l<library>
1417 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1418 you have headers in a nonstandard directory <include dir>
1419 CPP C preprocessor
1420 CXX C++ compiler command
1421 CXXFLAGS C++ compiler flags
1422 CXXCPP C++ preprocessor
ca557f53 1423 GMPINC How to find GMP include files
ddc8de03
PM
1424
1425Use these variables to override the choices made by `configure' or to help
1426it to find libraries and programs with nonstandard names/locations.
1427
1428Report bugs to the package provider.
1429_ACEOF
1430ac_status=$?
1431fi
1432
1433if test "$ac_init_help" = "recursive"; then
1434 # If there are subdirs, report their specific --help.
1435 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1436 test -d "$ac_dir" ||
1437 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1438 continue
1439 ac_builddir=.
1440
1441case "$ac_dir" in
1442.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443*)
1444 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1445 # A ".." for each directory in $ac_dir_suffix.
1446 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1447 case $ac_top_builddir_sub in
1448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1450 esac ;;
1451esac
1452ac_abs_top_builddir=$ac_pwd
1453ac_abs_builddir=$ac_pwd$ac_dir_suffix
1454# for backward compatibility:
1455ac_top_builddir=$ac_top_build_prefix
1456
1457case $srcdir in
1458 .) # We are building in place.
1459 ac_srcdir=.
1460 ac_top_srcdir=$ac_top_builddir_sub
1461 ac_abs_top_srcdir=$ac_pwd ;;
1462 [\\/]* | ?:[\\/]* ) # Absolute name.
1463 ac_srcdir=$srcdir$ac_dir_suffix;
1464 ac_top_srcdir=$srcdir
1465 ac_abs_top_srcdir=$srcdir ;;
1466 *) # Relative name.
1467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1468 ac_top_srcdir=$ac_top_build_prefix$srcdir
1469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1470esac
1471ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1472
1473 cd "$ac_dir" || { ac_status=$?; continue; }
1474 # Check for guested configure.
1475 if test -f "$ac_srcdir/configure.gnu"; then
1476 echo &&
1477 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1478 elif test -f "$ac_srcdir/configure"; then
1479 echo &&
1480 $SHELL "$ac_srcdir/configure" --help=recursive
1481 else
1482 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1483 fi || ac_status=$?
1484 cd "$ac_pwd" || { ac_status=$?; break; }
1485 done
1486fi
1487
1488test -n "$ac_init_help" && exit $ac_status
1489if $ac_init_version; then
1490 cat <<\_ACEOF
1491libcc1 configure version-unused
1492generated by GNU Autoconf 2.64
1493
1494Copyright (C) 2009 Free Software Foundation, Inc.
1495This configure script is free software; the Free Software Foundation
1496gives unlimited permission to copy, distribute and modify it.
1497_ACEOF
1498 exit
1499fi
1500
1501## ------------------------ ##
1502## Autoconf initialization. ##
1503## ------------------------ ##
1504
1505# ac_fn_c_try_compile LINENO
1506# --------------------------
1507# Try to compile conftest.$ac_ext, and return whether this succeeded.
1508ac_fn_c_try_compile ()
1509{
1510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511 rm -f conftest.$ac_objext
1512 if { { ac_try="$ac_compile"
1513case "(($ac_try" in
1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515 *) ac_try_echo=$ac_try;;
1516esac
1517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518$as_echo "$ac_try_echo"; } >&5
1519 (eval "$ac_compile") 2>conftest.err
1520 ac_status=$?
1521 if test -s conftest.err; then
1522 grep -v '^ *+' conftest.err >conftest.er1
1523 cat conftest.er1 >&5
1524 mv -f conftest.er1 conftest.err
1525 fi
1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 test $ac_status = 0; } && {
1528 test -z "$ac_c_werror_flag" ||
1529 test ! -s conftest.err
1530 } && test -s conftest.$ac_objext; then :
1531 ac_retval=0
1532else
1533 $as_echo "$as_me: failed program was:" >&5
1534sed 's/^/| /' conftest.$ac_ext >&5
1535
1536 ac_retval=1
1537fi
1538 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1539 return $ac_retval
1540
1541} # ac_fn_c_try_compile
1542
1543# ac_fn_c_try_cpp LINENO
1544# ----------------------
1545# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1546ac_fn_c_try_cpp ()
1547{
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 if { { ac_try="$ac_cpp conftest.$ac_ext"
1550case "(($ac_try" in
1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1553esac
1554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555$as_echo "$ac_try_echo"; } >&5
1556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1557 ac_status=$?
1558 if test -s conftest.err; then
1559 grep -v '^ *+' conftest.err >conftest.er1
1560 cat conftest.er1 >&5
1561 mv -f conftest.er1 conftest.err
1562 fi
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } >/dev/null && {
1565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1566 test ! -s conftest.err
1567 }; then :
1568 ac_retval=0
1569else
1570 $as_echo "$as_me: failed program was:" >&5
1571sed 's/^/| /' conftest.$ac_ext >&5
1572
1573 ac_retval=1
1574fi
1575 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1576 return $ac_retval
1577
1578} # ac_fn_c_try_cpp
1579
1580# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1581# -------------------------------------------------------
1582# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1583# the include files in INCLUDES and setting the cache variable VAR
1584# accordingly.
1585ac_fn_c_check_header_mongrel ()
1586{
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1590$as_echo_n "checking for $2... " >&6; }
1591if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1592 $as_echo_n "(cached) " >&6
1593fi
1594eval ac_res=\$$3
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1596$as_echo "$ac_res" >&6; }
1597else
1598 # Is the header compilable?
1599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1600$as_echo_n "checking $2 usability... " >&6; }
1601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1602/* end confdefs.h. */
1603$4
1604#include <$2>
1605_ACEOF
1606if ac_fn_c_try_compile "$LINENO"; then :
1607 ac_header_compiler=yes
1608else
1609 ac_header_compiler=no
1610fi
1611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1613$as_echo "$ac_header_compiler" >&6; }
1614
1615# Is the header present?
1616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1617$as_echo_n "checking $2 presence... " >&6; }
1618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619/* end confdefs.h. */
1620#include <$2>
1621_ACEOF
1622if ac_fn_c_try_cpp "$LINENO"; then :
1623 ac_header_preproc=yes
1624else
1625 ac_header_preproc=no
1626fi
1627rm -f conftest.err conftest.$ac_ext
1628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1629$as_echo "$ac_header_preproc" >&6; }
1630
1631# So? What about this header?
1632case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1633 yes:no: )
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1635$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1637$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1638 ;;
1639 no:yes:* )
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1641$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1643$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1645$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1647$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1649$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1650 ;;
1651esac
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1653$as_echo_n "checking for $2... " >&6; }
1654if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1655 $as_echo_n "(cached) " >&6
1656else
1657 eval "$3=\$ac_header_compiler"
1658fi
1659eval ac_res=\$$3
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661$as_echo "$ac_res" >&6; }
1662fi
1663 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1664
1665} # ac_fn_c_check_header_mongrel
1666
1667# ac_fn_c_try_run LINENO
1668# ----------------------
1669# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1670# that executables *can* be run.
1671ac_fn_c_try_run ()
1672{
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 if { { ac_try="$ac_link"
1675case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678esac
1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680$as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>&5
1682 ac_status=$?
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1685 { { case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688esac
1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690$as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_try") 2>&5
1692 ac_status=$?
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; }; }; then :
1695 ac_retval=0
1696else
1697 $as_echo "$as_me: program exited with status $ac_status" >&5
1698 $as_echo "$as_me: failed program was:" >&5
1699sed 's/^/| /' conftest.$ac_ext >&5
1700
1701 ac_retval=$ac_status
1702fi
1703 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1704 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1705 return $ac_retval
1706
1707} # ac_fn_c_try_run
1708
1709# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1710# -------------------------------------------------------
1711# Tests whether HEADER exists and can be compiled using the include files in
1712# INCLUDES, setting the cache variable VAR accordingly.
1713ac_fn_c_check_header_compile ()
1714{
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717$as_echo_n "checking for $2... " >&6; }
1718if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1719 $as_echo_n "(cached) " >&6
1720else
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722/* end confdefs.h. */
1723$4
1724#include <$2>
1725_ACEOF
1726if ac_fn_c_try_compile "$LINENO"; then :
1727 eval "$3=yes"
1728else
1729 eval "$3=no"
1730fi
1731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1732fi
1733eval ac_res=\$$3
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735$as_echo "$ac_res" >&6; }
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1737
1738} # ac_fn_c_check_header_compile
1739
1740# ac_fn_c_try_link LINENO
1741# -----------------------
1742# Try to link conftest.$ac_ext, and return whether this succeeded.
1743ac_fn_c_try_link ()
1744{
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 rm -f conftest.$ac_objext conftest$ac_exeext
1747 if { { ac_try="$ac_link"
1748case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751esac
1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753$as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1760 fi
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && {
1763 test -z "$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 } && test -s conftest$ac_exeext && {
1766 test "$cross_compiling" = yes ||
1767 $as_test_x conftest$ac_exeext
1768 }; then :
1769 ac_retval=0
1770else
1771 $as_echo "$as_me: failed program was:" >&5
1772sed 's/^/| /' conftest.$ac_ext >&5
1773
1774 ac_retval=1
1775fi
1776 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1777 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1778 # interfere with the next link command; also delete a directory that is
1779 # left behind by Apple's compiler. We do this before executing the actions.
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1782 return $ac_retval
1783
1784} # ac_fn_c_try_link
1785
1786# ac_fn_c_check_func LINENO FUNC VAR
1787# ----------------------------------
1788# Tests whether FUNC exists, setting the cache variable VAR accordingly
1789ac_fn_c_check_func ()
1790{
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793$as_echo_n "checking for $2... " >&6; }
1794if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1795 $as_echo_n "(cached) " >&6
1796else
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798/* end confdefs.h. */
1799/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1801#define $2 innocuous_$2
1802
1803/* System header to define __stub macros and hopefully few prototypes,
1804 which can conflict with char $2 (); below.
1805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1806 <limits.h> exists even on freestanding compilers. */
1807
1808#ifdef __STDC__
1809# include <limits.h>
1810#else
1811# include <assert.h>
1812#endif
1813
1814#undef $2
1815
1816/* Override any GCC internal prototype to avoid an error.
1817 Use char because int might match the return type of a GCC
1818 builtin and then its argument prototype would still apply. */
1819#ifdef __cplusplus
1820extern "C"
1821#endif
1822char $2 ();
1823/* The GNU C library defines this for functions which it implements
1824 to always fail with ENOSYS. Some functions are actually named
1825 something starting with __ and the normal name is an alias. */
1826#if defined __stub_$2 || defined __stub___$2
1827choke me
1828#endif
1829
1830int
1831main ()
1832{
1833return $2 ();
1834 ;
1835 return 0;
1836}
1837_ACEOF
1838if ac_fn_c_try_link "$LINENO"; then :
1839 eval "$3=yes"
1840else
1841 eval "$3=no"
1842fi
1843rm -f core conftest.err conftest.$ac_objext \
1844 conftest$ac_exeext conftest.$ac_ext
1845fi
1846eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848$as_echo "$ac_res" >&6; }
1849 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850
1851} # ac_fn_c_check_func
1852
1853# ac_fn_cxx_try_compile LINENO
1854# ----------------------------
1855# Try to compile conftest.$ac_ext, and return whether this succeeded.
1856ac_fn_cxx_try_compile ()
1857{
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext
1860 if { { ac_try="$ac_compile"
1861case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864esac
1865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866$as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_compile") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1873 fi
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_cxx_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest.$ac_objext; then :
1879 ac_retval=0
1880else
1881 $as_echo "$as_me: failed program was:" >&5
1882sed 's/^/| /' conftest.$ac_ext >&5
1883
1884 ac_retval=1
1885fi
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 return $ac_retval
1888
1889} # ac_fn_cxx_try_compile
1890
1891# ac_fn_cxx_try_cpp LINENO
1892# ------------------------
1893# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1894ac_fn_cxx_try_cpp ()
1895{
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 if { { ac_try="$ac_cpp conftest.$ac_ext"
1898case "(($ac_try" in
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1901esac
1902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903$as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1905 ac_status=$?
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1910 fi
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } >/dev/null && {
1913 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1914 test ! -s conftest.err
1915 }; then :
1916 ac_retval=0
1917else
1918 $as_echo "$as_me: failed program was:" >&5
1919sed 's/^/| /' conftest.$ac_ext >&5
1920
1921 ac_retval=1
1922fi
1923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924 return $ac_retval
1925
1926} # ac_fn_cxx_try_cpp
1927
1928# ac_fn_cxx_try_link LINENO
1929# -------------------------
1930# Try to link conftest.$ac_ext, and return whether this succeeded.
1931ac_fn_cxx_try_link ()
1932{
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 rm -f conftest.$ac_objext conftest$ac_exeext
1935 if { { ac_try="$ac_link"
1936case "(($ac_try" in
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1939esac
1940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941$as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>conftest.err
1943 ac_status=$?
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1948 fi
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && {
1951 test -z "$ac_cxx_werror_flag" ||
1952 test ! -s conftest.err
1953 } && test -s conftest$ac_exeext && {
1954 test "$cross_compiling" = yes ||
1955 $as_test_x conftest$ac_exeext
1956 }; then :
1957 ac_retval=0
1958else
1959 $as_echo "$as_me: failed program was:" >&5
1960sed 's/^/| /' conftest.$ac_ext >&5
1961
1962 ac_retval=1
1963fi
1964 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1965 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1966 # interfere with the next link command; also delete a directory that is
1967 # left behind by Apple's compiler. We do this before executing the actions.
1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970 return $ac_retval
1971
1972} # ac_fn_cxx_try_link
1973
1974# ac_fn_c_check_decl LINENO SYMBOL VAR
1975# ------------------------------------
1976# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1977ac_fn_c_check_decl ()
1978{
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 as_decl_name=`echo $2|sed 's/ *(.*//'`
1981 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1983$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1984if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1985 $as_echo_n "(cached) " >&6
1986else
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988/* end confdefs.h. */
1989$4
1990int
1991main ()
1992{
1993#ifndef $as_decl_name
1994#ifdef __cplusplus
1995 (void) $as_decl_use;
1996#else
1997 (void) $as_decl_name;
1998#endif
1999#endif
2000
2001 ;
2002 return 0;
2003}
2004_ACEOF
2005if ac_fn_c_try_compile "$LINENO"; then :
2006 eval "$3=yes"
2007else
2008 eval "$3=no"
2009fi
2010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011fi
2012eval ac_res=\$$3
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014$as_echo "$ac_res" >&6; }
2015 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2016
2017} # ac_fn_c_check_decl
2018cat >config.log <<_ACEOF
2019This file contains any messages produced by compilers while
2020running configure, to aid debugging if configure makes a mistake.
2021
2022It was created by libcc1 $as_me version-unused, which was
2023generated by GNU Autoconf 2.64. Invocation command line was
2024
2025 $ $0 $@
2026
2027_ACEOF
2028exec 5>>config.log
2029{
2030cat <<_ASUNAME
2031## --------- ##
2032## Platform. ##
2033## --------- ##
2034
2035hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2036uname -m = `(uname -m) 2>/dev/null || echo unknown`
2037uname -r = `(uname -r) 2>/dev/null || echo unknown`
2038uname -s = `(uname -s) 2>/dev/null || echo unknown`
2039uname -v = `(uname -v) 2>/dev/null || echo unknown`
2040
2041/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2042/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2043
2044/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2045/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2046/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2047/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2048/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2049/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2050/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2051
2052_ASUNAME
2053
2054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055for as_dir in $PATH
2056do
2057 IFS=$as_save_IFS
2058 test -z "$as_dir" && as_dir=.
2059 $as_echo "PATH: $as_dir"
2060 done
2061IFS=$as_save_IFS
2062
2063} >&5
2064
2065cat >&5 <<_ACEOF
2066
2067
2068## ----------- ##
2069## Core tests. ##
2070## ----------- ##
2071
2072_ACEOF
2073
2074
2075# Keep a trace of the command line.
2076# Strip out --no-create and --no-recursion so they do not pile up.
2077# Strip out --silent because we don't want to record it for future runs.
2078# Also quote any args containing shell meta-characters.
2079# Make two passes to allow for proper duplicate-argument suppression.
2080ac_configure_args=
2081ac_configure_args0=
2082ac_configure_args1=
2083ac_must_keep_next=false
2084for ac_pass in 1 2
2085do
2086 for ac_arg
2087 do
2088 case $ac_arg in
2089 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2091 | -silent | --silent | --silen | --sile | --sil)
2092 continue ;;
2093 *\'*)
2094 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2095 esac
2096 case $ac_pass in
2097 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2098 2)
2099 as_fn_append ac_configure_args1 " '$ac_arg'"
2100 if test $ac_must_keep_next = true; then
2101 ac_must_keep_next=false # Got value, back to normal.
2102 else
2103 case $ac_arg in
2104 *=* | --config-cache | -C | -disable-* | --disable-* \
2105 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2106 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2107 | -with-* | --with-* | -without-* | --without-* | --x)
2108 case "$ac_configure_args0 " in
2109 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2110 esac
2111 ;;
2112 -* ) ac_must_keep_next=true ;;
2113 esac
2114 fi
2115 as_fn_append ac_configure_args " '$ac_arg'"
2116 ;;
2117 esac
2118 done
2119done
2120{ ac_configure_args0=; unset ac_configure_args0;}
2121{ ac_configure_args1=; unset ac_configure_args1;}
2122
2123# When interrupted or exit'd, cleanup temporary files, and complete
2124# config.log. We remove comments because anyway the quotes in there
2125# would cause problems or look ugly.
2126# WARNING: Use '\'' to represent an apostrophe within the trap.
2127# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2128trap 'exit_status=$?
2129 # Save into config.log some information that might help in debugging.
2130 {
2131 echo
2132
2133 cat <<\_ASBOX
2134## ---------------- ##
2135## Cache variables. ##
2136## ---------------- ##
2137_ASBOX
2138 echo
2139 # The following way of writing the cache mishandles newlines in values,
2140(
2141 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2142 eval ac_val=\$$ac_var
2143 case $ac_val in #(
2144 *${as_nl}*)
2145 case $ac_var in #(
2146 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2147$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2148 esac
2149 case $ac_var in #(
2150 _ | IFS | as_nl) ;; #(
2151 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2152 *) { eval $ac_var=; unset $ac_var;} ;;
2153 esac ;;
2154 esac
2155 done
2156 (set) 2>&1 |
2157 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2158 *${as_nl}ac_space=\ *)
2159 sed -n \
2160 "s/'\''/'\''\\\\'\'''\''/g;
2161 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2162 ;; #(
2163 *)
2164 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2165 ;;
2166 esac |
2167 sort
2168)
2169 echo
2170
2171 cat <<\_ASBOX
2172## ----------------- ##
2173## Output variables. ##
2174## ----------------- ##
2175_ASBOX
2176 echo
2177 for ac_var in $ac_subst_vars
2178 do
2179 eval ac_val=\$$ac_var
2180 case $ac_val in
2181 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2182 esac
2183 $as_echo "$ac_var='\''$ac_val'\''"
2184 done | sort
2185 echo
2186
2187 if test -n "$ac_subst_files"; then
2188 cat <<\_ASBOX
2189## ------------------- ##
2190## File substitutions. ##
2191## ------------------- ##
2192_ASBOX
2193 echo
2194 for ac_var in $ac_subst_files
2195 do
2196 eval ac_val=\$$ac_var
2197 case $ac_val in
2198 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2199 esac
2200 $as_echo "$ac_var='\''$ac_val'\''"
2201 done | sort
2202 echo
2203 fi
2204
2205 if test -s confdefs.h; then
2206 cat <<\_ASBOX
2207## ----------- ##
2208## confdefs.h. ##
2209## ----------- ##
2210_ASBOX
2211 echo
2212 cat confdefs.h
2213 echo
2214 fi
2215 test "$ac_signal" != 0 &&
2216 $as_echo "$as_me: caught signal $ac_signal"
2217 $as_echo "$as_me: exit $exit_status"
2218 } >&5
2219 rm -f core *.core core.conftest.* &&
2220 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2221 exit $exit_status
2222' 0
2223for ac_signal in 1 2 13 15; do
2224 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2225done
2226ac_signal=0
2227
2228# confdefs.h avoids OS command line length limits that DEFS can exceed.
2229rm -f -r conftest* confdefs.h
2230
2231$as_echo "/* confdefs.h */" > confdefs.h
2232
2233# Predefined preprocessor variables.
2234
2235cat >>confdefs.h <<_ACEOF
2236#define PACKAGE_NAME "$PACKAGE_NAME"
2237_ACEOF
2238
2239cat >>confdefs.h <<_ACEOF
2240#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2241_ACEOF
2242
2243cat >>confdefs.h <<_ACEOF
2244#define PACKAGE_VERSION "$PACKAGE_VERSION"
2245_ACEOF
2246
2247cat >>confdefs.h <<_ACEOF
2248#define PACKAGE_STRING "$PACKAGE_STRING"
2249_ACEOF
2250
2251cat >>confdefs.h <<_ACEOF
2252#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2253_ACEOF
2254
2255cat >>confdefs.h <<_ACEOF
2256#define PACKAGE_URL "$PACKAGE_URL"
2257_ACEOF
2258
2259
2260# Let the site file select an alternate cache file if it wants to.
2261# Prefer an explicitly selected file to automatically selected ones.
2262ac_site_file1=NONE
2263ac_site_file2=NONE
2264if test -n "$CONFIG_SITE"; then
2265 ac_site_file1=$CONFIG_SITE
2266elif test "x$prefix" != xNONE; then
2267 ac_site_file1=$prefix/share/config.site
2268 ac_site_file2=$prefix/etc/config.site
2269else
2270 ac_site_file1=$ac_default_prefix/share/config.site
2271 ac_site_file2=$ac_default_prefix/etc/config.site
2272fi
2273for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2274do
2275 test "x$ac_site_file" = xNONE && continue
2276 if test -r "$ac_site_file"; then
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2278$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2279 sed 's/^/| /' "$ac_site_file" >&5
2280 . "$ac_site_file"
2281 fi
2282done
2283
2284if test -r "$cache_file"; then
2285 # Some versions of bash will fail to source /dev/null (special
2286 # files actually), so we avoid doing that.
2287 if test -f "$cache_file"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2289$as_echo "$as_me: loading cache $cache_file" >&6;}
2290 case $cache_file in
2291 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2292 *) . "./$cache_file";;
2293 esac
2294 fi
2295else
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2297$as_echo "$as_me: creating cache $cache_file" >&6;}
2298 >$cache_file
2299fi
2300
2301# Check that the precious variables saved in the cache have kept the same
2302# value.
2303ac_cache_corrupted=false
2304for ac_var in $ac_precious_vars; do
2305 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2306 eval ac_new_set=\$ac_env_${ac_var}_set
2307 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2308 eval ac_new_val=\$ac_env_${ac_var}_value
2309 case $ac_old_set,$ac_new_set in
2310 set,)
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2312$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2313 ac_cache_corrupted=: ;;
2314 ,set)
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2316$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2317 ac_cache_corrupted=: ;;
2318 ,);;
2319 *)
2320 if test "x$ac_old_val" != "x$ac_new_val"; then
2321 # differences in whitespace do not lead to failure.
2322 ac_old_val_w=`echo x $ac_old_val`
2323 ac_new_val_w=`echo x $ac_new_val`
2324 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2326$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2327 ac_cache_corrupted=:
2328 else
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2330$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2331 eval $ac_var=\$ac_old_val
2332 fi
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2334$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2336$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2337 fi;;
2338 esac
2339 # Pass precious variables to config.status.
2340 if test "$ac_new_set" = set; then
2341 case $ac_new_val in
2342 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2343 *) ac_arg=$ac_var=$ac_new_val ;;
2344 esac
2345 case " $ac_configure_args " in
2346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2347 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2348 esac
2349 fi
2350done
2351if $ac_cache_corrupted; then
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2355$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2356 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2357fi
2358## -------------------- ##
2359## Main body of script. ##
2360## -------------------- ##
2361
2362ac_ext=c
2363ac_cpp='$CPP $CPPFLAGS'
2364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2366ac_compiler_gnu=$ac_cv_c_compiler_gnu
2367
2368
2369
2370
2371
2372
2373ac_config_headers="$ac_config_headers cc1plugin-config.h"
2374
2375
2376ac_aux_dir=
2377for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2378 for ac_t in install-sh install.sh shtool; do
2379 if test -f "$ac_dir/$ac_t"; then
2380 ac_aux_dir=$ac_dir
2381 ac_install_sh="$ac_aux_dir/$ac_t -c"
2382 break 2
2383 fi
2384 done
2385done
2386if test -z "$ac_aux_dir"; then
2387 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2388fi
2389
2390# These three variables are undocumented and unsupported,
2391# and are intended to be withdrawn in a future Autoconf release.
2392# They can cause serious problems if a builder's source tree is in a directory
2393# whose full name contains unusual characters.
2394ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2395ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2396ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2397
2398
2399# Make sure we can run config.sub.
2400$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2401 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2402
2403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2404$as_echo_n "checking build system type... " >&6; }
2405if test "${ac_cv_build+set}" = set; then :
2406 $as_echo_n "(cached) " >&6
2407else
2408 ac_build_alias=$build_alias
2409test "x$ac_build_alias" = x &&
2410 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2411test "x$ac_build_alias" = x &&
2412 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2413ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2414 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2415
2416fi
2417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2418$as_echo "$ac_cv_build" >&6; }
2419case $ac_cv_build in
2420*-*-*) ;;
2421*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2422esac
2423build=$ac_cv_build
2424ac_save_IFS=$IFS; IFS='-'
2425set x $ac_cv_build
2426shift
2427build_cpu=$1
2428build_vendor=$2
2429shift; shift
2430# Remember, the first character of IFS is used to create $*,
2431# except with old shells:
2432build_os=$*
2433IFS=$ac_save_IFS
2434case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2435
2436
2437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2438$as_echo_n "checking host system type... " >&6; }
2439if test "${ac_cv_host+set}" = set; then :
2440 $as_echo_n "(cached) " >&6
2441else
2442 if test "x$host_alias" = x; then
2443 ac_cv_host=$ac_cv_build
2444else
2445 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2446 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2447fi
2448
2449fi
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2451$as_echo "$ac_cv_host" >&6; }
2452case $ac_cv_host in
2453*-*-*) ;;
2454*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2455esac
2456host=$ac_cv_host
2457ac_save_IFS=$IFS; IFS='-'
2458set x $ac_cv_host
2459shift
2460host_cpu=$1
2461host_vendor=$2
2462shift; shift
2463# Remember, the first character of IFS is used to create $*,
2464# except with old shells:
2465host_os=$*
2466IFS=$ac_save_IFS
2467case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2468
2469
2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2471$as_echo_n "checking target system type... " >&6; }
2472if test "${ac_cv_target+set}" = set; then :
2473 $as_echo_n "(cached) " >&6
2474else
2475 if test "x$target_alias" = x; then
2476 ac_cv_target=$ac_cv_host
2477else
2478 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2479 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2480fi
2481
2482fi
2483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2484$as_echo "$ac_cv_target" >&6; }
2485case $ac_cv_target in
2486*-*-*) ;;
2487*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2488esac
2489target=$ac_cv_target
2490ac_save_IFS=$IFS; IFS='-'
2491set x $ac_cv_target
2492shift
2493target_cpu=$1
2494target_vendor=$2
2495shift; shift
2496# Remember, the first character of IFS is used to create $*,
2497# except with old shells:
2498target_os=$*
2499IFS=$ac_save_IFS
2500case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2501
2502
2503# The aliases save the names the user supplied, while $host etc.
2504# will get canonicalized.
2505test -n "$target_alias" &&
2506 test "$program_prefix$program_suffix$program_transform_name" = \
2507 NONENONEs,x,x, &&
2508 program_prefix=${target_alias}-
2509
2510ac_ext=c
2511ac_cpp='$CPP $CPPFLAGS'
2512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2514ac_compiler_gnu=$ac_cv_c_compiler_gnu
2515if test -n "$ac_tool_prefix"; then
2516 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2517set dummy ${ac_tool_prefix}gcc; ac_word=$2
2518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2519$as_echo_n "checking for $ac_word... " >&6; }
2520if test "${ac_cv_prog_CC+set}" = set; then :
2521 $as_echo_n "(cached) " >&6
2522else
2523 if test -n "$CC"; then
2524 ac_cv_prog_CC="$CC" # Let the user override the test.
2525else
2526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527for as_dir in $PATH
2528do
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 break 2
2536 fi
2537done
2538 done
2539IFS=$as_save_IFS
2540
2541fi
2542fi
2543CC=$ac_cv_prog_CC
2544if test -n "$CC"; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2546$as_echo "$CC" >&6; }
2547else
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2549$as_echo "no" >&6; }
2550fi
2551
2552
2553fi
2554if test -z "$ac_cv_prog_CC"; then
2555 ac_ct_CC=$CC
2556 # Extract the first word of "gcc", so it can be a program name with args.
2557set dummy gcc; ac_word=$2
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559$as_echo_n "checking for $ac_word... " >&6; }
2560if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2561 $as_echo_n "(cached) " >&6
2562else
2563 if test -n "$ac_ct_CC"; then
2564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2565else
2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567for as_dir in $PATH
2568do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 ac_cv_prog_ac_ct_CC="gcc"
2574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575 break 2
2576 fi
2577done
2578 done
2579IFS=$as_save_IFS
2580
2581fi
2582fi
2583ac_ct_CC=$ac_cv_prog_ac_ct_CC
2584if test -n "$ac_ct_CC"; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2586$as_echo "$ac_ct_CC" >&6; }
2587else
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589$as_echo "no" >&6; }
2590fi
2591
2592 if test "x$ac_ct_CC" = x; then
2593 CC=""
2594 else
2595 case $cross_compiling:$ac_tool_warned in
2596yes:)
2597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2599ac_tool_warned=yes ;;
2600esac
2601 CC=$ac_ct_CC
2602 fi
2603else
2604 CC="$ac_cv_prog_CC"
2605fi
2606
2607if test -z "$CC"; then
2608 if test -n "$ac_tool_prefix"; then
2609 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2610set dummy ${ac_tool_prefix}cc; ac_word=$2
2611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2612$as_echo_n "checking for $ac_word... " >&6; }
2613if test "${ac_cv_prog_CC+set}" = set; then :
2614 $as_echo_n "(cached) " >&6
2615else
2616 if test -n "$CC"; then
2617 ac_cv_prog_CC="$CC" # Let the user override the test.
2618else
2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620for as_dir in $PATH
2621do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2626 ac_cv_prog_CC="${ac_tool_prefix}cc"
2627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2629 fi
2630done
2631 done
2632IFS=$as_save_IFS
2633
2634fi
2635fi
2636CC=$ac_cv_prog_CC
2637if test -n "$CC"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2639$as_echo "$CC" >&6; }
2640else
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642$as_echo "no" >&6; }
2643fi
2644
2645
2646 fi
2647fi
2648if test -z "$CC"; then
2649 # Extract the first word of "cc", so it can be a program name with args.
2650set dummy cc; ac_word=$2
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652$as_echo_n "checking for $ac_word... " >&6; }
2653if test "${ac_cv_prog_CC+set}" = set; then :
2654 $as_echo_n "(cached) " >&6
2655else
2656 if test -n "$CC"; then
2657 ac_cv_prog_CC="$CC" # Let the user override the test.
2658else
2659 ac_prog_rejected=no
2660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661for as_dir in $PATH
2662do
2663 IFS=$as_save_IFS
2664 test -z "$as_dir" && as_dir=.
2665 for ac_exec_ext in '' $ac_executable_extensions; do
2666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2668 ac_prog_rejected=yes
2669 continue
2670 fi
2671 ac_cv_prog_CC="cc"
2672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 break 2
2674 fi
2675done
2676 done
2677IFS=$as_save_IFS
2678
2679if test $ac_prog_rejected = yes; then
2680 # We found a bogon in the path, so make sure we never use it.
2681 set dummy $ac_cv_prog_CC
2682 shift
2683 if test $# != 0; then
2684 # We chose a different compiler from the bogus one.
2685 # However, it has the same basename, so the bogon will be chosen
2686 # first if we set CC to just the basename; use the full file name.
2687 shift
2688 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2689 fi
2690fi
2691fi
2692fi
2693CC=$ac_cv_prog_CC
2694if test -n "$CC"; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2696$as_echo "$CC" >&6; }
2697else
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2699$as_echo "no" >&6; }
2700fi
2701
2702
2703fi
2704if test -z "$CC"; then
2705 if test -n "$ac_tool_prefix"; then
2706 for ac_prog in cl.exe
2707 do
2708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2709set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2711$as_echo_n "checking for $ac_word... " >&6; }
2712if test "${ac_cv_prog_CC+set}" = set; then :
2713 $as_echo_n "(cached) " >&6
2714else
2715 if test -n "$CC"; then
2716 ac_cv_prog_CC="$CC" # Let the user override the test.
2717else
2718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719for as_dir in $PATH
2720do
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2725 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 break 2
2728 fi
2729done
2730 done
2731IFS=$as_save_IFS
2732
2733fi
2734fi
2735CC=$ac_cv_prog_CC
2736if test -n "$CC"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2738$as_echo "$CC" >&6; }
2739else
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741$as_echo "no" >&6; }
2742fi
2743
2744
2745 test -n "$CC" && break
2746 done
2747fi
2748if test -z "$CC"; then
2749 ac_ct_CC=$CC
2750 for ac_prog in cl.exe
2751do
2752 # Extract the first word of "$ac_prog", so it can be a program name with args.
2753set dummy $ac_prog; ac_word=$2
2754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755$as_echo_n "checking for $ac_word... " >&6; }
2756if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2757 $as_echo_n "(cached) " >&6
2758else
2759 if test -n "$ac_ct_CC"; then
2760 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2761else
2762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763for as_dir in $PATH
2764do
2765 IFS=$as_save_IFS
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2769 ac_cv_prog_ac_ct_CC="$ac_prog"
2770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 break 2
2772 fi
2773done
2774 done
2775IFS=$as_save_IFS
2776
2777fi
2778fi
2779ac_ct_CC=$ac_cv_prog_ac_ct_CC
2780if test -n "$ac_ct_CC"; then
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2782$as_echo "$ac_ct_CC" >&6; }
2783else
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785$as_echo "no" >&6; }
2786fi
2787
2788
2789 test -n "$ac_ct_CC" && break
2790done
2791
2792 if test "x$ac_ct_CC" = x; then
2793 CC=""
2794 else
2795 case $cross_compiling:$ac_tool_warned in
2796yes:)
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2799ac_tool_warned=yes ;;
2800esac
2801 CC=$ac_ct_CC
2802 fi
2803fi
2804
2805fi
2806
2807
2808test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2810as_fn_error "no acceptable C compiler found in \$PATH
2811See \`config.log' for more details." "$LINENO" 5; }
2812
2813# Provide some information about the compiler.
2814$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2815set X $ac_compile
2816ac_compiler=$2
2817for ac_option in --version -v -V -qversion; do
2818 { { ac_try="$ac_compiler $ac_option >&5"
2819case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2822esac
2823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2824$as_echo "$ac_try_echo"; } >&5
2825 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2826 ac_status=$?
2827 if test -s conftest.err; then
2828 sed '10a\
2829... rest of stderr output deleted ...
2830 10q' conftest.err >conftest.er1
2831 cat conftest.er1 >&5
2832 rm -f conftest.er1 conftest.err
2833 fi
2834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2835 test $ac_status = 0; }
2836done
2837
2838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839/* end confdefs.h. */
2840
2841int
2842main ()
2843{
2844
2845 ;
2846 return 0;
2847}
2848_ACEOF
2849ac_clean_files_save=$ac_clean_files
2850ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2851# Try to create an executable without -o first, disregard a.out.
2852# It will help us diagnose broken compilers, and finding out an intuition
2853# of exeext.
2854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2855$as_echo_n "checking for C compiler default output file name... " >&6; }
2856ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2857
2858# The possible output files:
2859ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2860
2861ac_rmfiles=
2862for ac_file in $ac_files
2863do
2864 case $ac_file in
2865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2866 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2867 esac
2868done
2869rm -f $ac_rmfiles
2870
2871if { { ac_try="$ac_link_default"
2872case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2875esac
2876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2877$as_echo "$ac_try_echo"; } >&5
2878 (eval "$ac_link_default") 2>&5
2879 ac_status=$?
2880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2881 test $ac_status = 0; }; then :
2882 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2883# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2884# in a Makefile. We should not override ac_cv_exeext if it was cached,
2885# so that the user can short-circuit this test for compilers unknown to
2886# Autoconf.
2887for ac_file in $ac_files ''
2888do
2889 test -f "$ac_file" || continue
2890 case $ac_file in
2891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2892 ;;
2893 [ab].out )
2894 # We found the default executable, but exeext='' is most
2895 # certainly right.
2896 break;;
2897 *.* )
2898 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2899 then :; else
2900 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2901 fi
2902 # We set ac_cv_exeext here because the later test for it is not
2903 # safe: cross compilers may not add the suffix if given an `-o'
2904 # argument, so we may need to know it at that point already.
2905 # Even if this section looks crufty: it has the advantage of
2906 # actually working.
2907 break;;
2908 * )
2909 break;;
2910 esac
2911done
2912test "$ac_cv_exeext" = no && ac_cv_exeext=
2913
2914else
2915 ac_file=''
2916fi
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2918$as_echo "$ac_file" >&6; }
2919if test -z "$ac_file"; then :
2920 $as_echo "$as_me: failed program was:" >&5
2921sed 's/^/| /' conftest.$ac_ext >&5
2922
2923{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2925{ as_fn_set_status 77
2926as_fn_error "C compiler cannot create executables
2927See \`config.log' for more details." "$LINENO" 5; }; }
2928fi
2929ac_exeext=$ac_cv_exeext
2930
2931# Check that the compiler produces executables we can run. If not, either
2932# the compiler is broken, or we cross compile.
2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2934$as_echo_n "checking whether the C compiler works... " >&6; }
2935# If not cross compiling, check that we can run a simple program.
2936if test "$cross_compiling" != yes; then
2937 if { ac_try='./$ac_file'
2938 { { case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941esac
2942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2943$as_echo "$ac_try_echo"; } >&5
2944 (eval "$ac_try") 2>&5
2945 ac_status=$?
2946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2947 test $ac_status = 0; }; }; then
2948 cross_compiling=no
2949 else
2950 if test "$cross_compiling" = maybe; then
2951 cross_compiling=yes
2952 else
2953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2954$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2955as_fn_error "cannot run C compiled programs.
2956If you meant to cross compile, use \`--host'.
2957See \`config.log' for more details." "$LINENO" 5; }
2958 fi
2959 fi
2960fi
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2962$as_echo "yes" >&6; }
2963
2964rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2965ac_clean_files=$ac_clean_files_save
2966# Check that the compiler produces executables we can run. If not, either
2967# the compiler is broken, or we cross compile.
2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2969$as_echo_n "checking whether we are cross compiling... " >&6; }
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2971$as_echo "$cross_compiling" >&6; }
2972
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2974$as_echo_n "checking for suffix of executables... " >&6; }
2975if { { ac_try="$ac_link"
2976case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2979esac
2980eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2981$as_echo "$ac_try_echo"; } >&5
2982 (eval "$ac_link") 2>&5
2983 ac_status=$?
2984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2985 test $ac_status = 0; }; then :
2986 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2987# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2988# work properly (i.e., refer to `conftest.exe'), while it won't with
2989# `rm'.
2990for ac_file in conftest.exe conftest conftest.*; do
2991 test -f "$ac_file" || continue
2992 case $ac_file in
2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2994 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2995 break;;
2996 * ) break;;
2997 esac
2998done
2999else
3000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3001$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3002as_fn_error "cannot compute suffix of executables: cannot compile and link
3003See \`config.log' for more details." "$LINENO" 5; }
3004fi
3005rm -f conftest$ac_cv_exeext
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3007$as_echo "$ac_cv_exeext" >&6; }
3008
3009rm -f conftest.$ac_ext
3010EXEEXT=$ac_cv_exeext
3011ac_exeext=$EXEEXT
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3013$as_echo_n "checking for suffix of object files... " >&6; }
3014if test "${ac_cv_objext+set}" = set; then :
3015 $as_echo_n "(cached) " >&6
3016else
3017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018/* end confdefs.h. */
3019
3020int
3021main ()
3022{
3023
3024 ;
3025 return 0;
3026}
3027_ACEOF
3028rm -f conftest.o conftest.obj
3029if { { ac_try="$ac_compile"
3030case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033esac
3034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3035$as_echo "$ac_try_echo"; } >&5
3036 (eval "$ac_compile") 2>&5
3037 ac_status=$?
3038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3039 test $ac_status = 0; }; then :
3040 for ac_file in conftest.o conftest.obj conftest.*; do
3041 test -f "$ac_file" || continue;
3042 case $ac_file in
3043 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3044 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3045 break;;
3046 esac
3047done
3048else
3049 $as_echo "$as_me: failed program was:" >&5
3050sed 's/^/| /' conftest.$ac_ext >&5
3051
3052{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3054as_fn_error "cannot compute suffix of object files: cannot compile
3055See \`config.log' for more details." "$LINENO" 5; }
3056fi
3057rm -f conftest.$ac_cv_objext conftest.$ac_ext
3058fi
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3060$as_echo "$ac_cv_objext" >&6; }
3061OBJEXT=$ac_cv_objext
3062ac_objext=$OBJEXT
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3064$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3065if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3066 $as_echo_n "(cached) " >&6
3067else
3068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069/* end confdefs.h. */
3070
3071int
3072main ()
3073{
3074#ifndef __GNUC__
3075 choke me
3076#endif
3077
3078 ;
3079 return 0;
3080}
3081_ACEOF
3082if ac_fn_c_try_compile "$LINENO"; then :
3083 ac_compiler_gnu=yes
3084else
3085 ac_compiler_gnu=no
3086fi
3087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088ac_cv_c_compiler_gnu=$ac_compiler_gnu
3089
3090fi
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3092$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3093if test $ac_compiler_gnu = yes; then
3094 GCC=yes
3095else
3096 GCC=
3097fi
3098ac_test_CFLAGS=${CFLAGS+set}
3099ac_save_CFLAGS=$CFLAGS
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3101$as_echo_n "checking whether $CC accepts -g... " >&6; }
3102if test "${ac_cv_prog_cc_g+set}" = set; then :
3103 $as_echo_n "(cached) " >&6
3104else
3105 ac_save_c_werror_flag=$ac_c_werror_flag
3106 ac_c_werror_flag=yes
3107 ac_cv_prog_cc_g=no
3108 CFLAGS="-g"
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110/* end confdefs.h. */
3111
3112int
3113main ()
3114{
3115
3116 ;
3117 return 0;
3118}
3119_ACEOF
3120if ac_fn_c_try_compile "$LINENO"; then :
3121 ac_cv_prog_cc_g=yes
3122else
3123 CFLAGS=""
3124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125/* end confdefs.h. */
3126
3127int
3128main ()
3129{
3130
3131 ;
3132 return 0;
3133}
3134_ACEOF
3135if ac_fn_c_try_compile "$LINENO"; then :
3136
3137else
3138 ac_c_werror_flag=$ac_save_c_werror_flag
3139 CFLAGS="-g"
3140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3141/* end confdefs.h. */
3142
3143int
3144main ()
3145{
3146
3147 ;
3148 return 0;
3149}
3150_ACEOF
3151if ac_fn_c_try_compile "$LINENO"; then :
3152 ac_cv_prog_cc_g=yes
3153fi
3154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155fi
3156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3157fi
3158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159 ac_c_werror_flag=$ac_save_c_werror_flag
3160fi
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3162$as_echo "$ac_cv_prog_cc_g" >&6; }
3163if test "$ac_test_CFLAGS" = set; then
3164 CFLAGS=$ac_save_CFLAGS
3165elif test $ac_cv_prog_cc_g = yes; then
3166 if test "$GCC" = yes; then
3167 CFLAGS="-g -O2"
3168 else
3169 CFLAGS="-g"
3170 fi
3171else
3172 if test "$GCC" = yes; then
3173 CFLAGS="-O2"
3174 else
3175 CFLAGS=
3176 fi
3177fi
3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3179$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3180if test "${ac_cv_prog_cc_c89+set}" = set; then :
3181 $as_echo_n "(cached) " >&6
3182else
3183 ac_cv_prog_cc_c89=no
3184ac_save_CC=$CC
3185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186/* end confdefs.h. */
3187#include <stdarg.h>
3188#include <stdio.h>
3189#include <sys/types.h>
3190#include <sys/stat.h>
3191/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3192struct buf { int x; };
3193FILE * (*rcsopen) (struct buf *, struct stat *, int);
3194static char *e (p, i)
3195 char **p;
3196 int i;
3197{
3198 return p[i];
3199}
3200static char *f (char * (*g) (char **, int), char **p, ...)
3201{
3202 char *s;
3203 va_list v;
3204 va_start (v,p);
3205 s = g (p, va_arg (v,int));
3206 va_end (v);
3207 return s;
3208}
3209
3210/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3211 function prototypes and stuff, but not '\xHH' hex character constants.
3212 These don't provoke an error unfortunately, instead are silently treated
3213 as 'x'. The following induces an error, until -std is added to get
3214 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3215 array size at least. It's necessary to write '\x00'==0 to get something
3216 that's true only with -std. */
3217int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3218
3219/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3220 inside strings and character constants. */
3221#define FOO(x) 'x'
3222int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3223
3224int test (int i, double x);
3225struct s1 {int (*f) (int a);};
3226struct s2 {int (*f) (double a);};
3227int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3228int argc;
3229char **argv;
3230int
3231main ()
3232{
3233return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3234 ;
3235 return 0;
3236}
3237_ACEOF
3238for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3239 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3240do
3241 CC="$ac_save_CC $ac_arg"
3242 if ac_fn_c_try_compile "$LINENO"; then :
3243 ac_cv_prog_cc_c89=$ac_arg
3244fi
3245rm -f core conftest.err conftest.$ac_objext
3246 test "x$ac_cv_prog_cc_c89" != "xno" && break
3247done
3248rm -f conftest.$ac_ext
3249CC=$ac_save_CC
3250
3251fi
3252# AC_CACHE_VAL
3253case "x$ac_cv_prog_cc_c89" in
3254 x)
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3256$as_echo "none needed" >&6; } ;;
3257 xno)
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3259$as_echo "unsupported" >&6; } ;;
3260 *)
3261 CC="$CC $ac_cv_prog_cc_c89"
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3263$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3264esac
3265if test "x$ac_cv_prog_cc_c89" != xno; then :
3266
3267fi
3268
3269ac_ext=c
3270ac_cpp='$CPP $CPPFLAGS'
3271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273ac_compiler_gnu=$ac_cv_c_compiler_gnu
3274
3275
3276ac_ext=c
3277ac_cpp='$CPP $CPPFLAGS'
3278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3282$as_echo_n "checking how to run the C preprocessor... " >&6; }
3283# On Suns, sometimes $CPP names a directory.
3284if test -n "$CPP" && test -d "$CPP"; then
3285 CPP=
3286fi
3287if test -z "$CPP"; then
3288 if test "${ac_cv_prog_CPP+set}" = set; then :
3289 $as_echo_n "(cached) " >&6
3290else
3291 # Double quotes because CPP needs to be expanded
3292 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3293 do
3294 ac_preproc_ok=false
3295for ac_c_preproc_warn_flag in '' yes
3296do
3297 # Use a header file that comes with gcc, so configuring glibc
3298 # with a fresh cross-compiler works.
3299 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3300 # <limits.h> exists even on freestanding compilers.
3301 # On the NeXT, cc -E runs the code through the compiler's parser,
3302 # not just through cpp. "Syntax error" is here to catch this case.
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304/* end confdefs.h. */
3305#ifdef __STDC__
3306# include <limits.h>
3307#else
3308# include <assert.h>
3309#endif
3310 Syntax error
3311_ACEOF
3312if ac_fn_c_try_cpp "$LINENO"; then :
3313
3314else
3315 # Broken: fails on valid input.
3316continue
3317fi
3318rm -f conftest.err conftest.$ac_ext
3319
3320 # OK, works on sane cases. Now check whether nonexistent headers
3321 # can be detected and how.
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323/* end confdefs.h. */
3324#include <ac_nonexistent.h>
3325_ACEOF
3326if ac_fn_c_try_cpp "$LINENO"; then :
3327 # Broken: success on invalid input.
3328continue
3329else
3330 # Passes both tests.
3331ac_preproc_ok=:
3332break
3333fi
3334rm -f conftest.err conftest.$ac_ext
3335
3336done
3337# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3338rm -f conftest.err conftest.$ac_ext
3339if $ac_preproc_ok; then :
3340 break
3341fi
3342
3343 done
3344 ac_cv_prog_CPP=$CPP
3345
3346fi
3347 CPP=$ac_cv_prog_CPP
3348else
3349 ac_cv_prog_CPP=$CPP
3350fi
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3352$as_echo "$CPP" >&6; }
3353ac_preproc_ok=false
3354for ac_c_preproc_warn_flag in '' yes
3355do
3356 # Use a header file that comes with gcc, so configuring glibc
3357 # with a fresh cross-compiler works.
3358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3359 # <limits.h> exists even on freestanding compilers.
3360 # On the NeXT, cc -E runs the code through the compiler's parser,
3361 # not just through cpp. "Syntax error" is here to catch this case.
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363/* end confdefs.h. */
3364#ifdef __STDC__
3365# include <limits.h>
3366#else
3367# include <assert.h>
3368#endif
3369 Syntax error
3370_ACEOF
3371if ac_fn_c_try_cpp "$LINENO"; then :
3372
3373else
3374 # Broken: fails on valid input.
3375continue
3376fi
3377rm -f conftest.err conftest.$ac_ext
3378
3379 # OK, works on sane cases. Now check whether nonexistent headers
3380 # can be detected and how.
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382/* end confdefs.h. */
3383#include <ac_nonexistent.h>
3384_ACEOF
3385if ac_fn_c_try_cpp "$LINENO"; then :
3386 # Broken: success on invalid input.
3387continue
3388else
3389 # Passes both tests.
3390ac_preproc_ok=:
3391break
3392fi
3393rm -f conftest.err conftest.$ac_ext
3394
3395done
3396# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3397rm -f conftest.err conftest.$ac_ext
3398if $ac_preproc_ok; then :
3399
3400else
3401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403as_fn_error "C preprocessor \"$CPP\" fails sanity check
3404See \`config.log' for more details." "$LINENO" 5; }
3405fi
3406
3407ac_ext=c
3408ac_cpp='$CPP $CPPFLAGS'
3409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411ac_compiler_gnu=$ac_cv_c_compiler_gnu
3412
3413
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3415$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3416if test "${ac_cv_path_GREP+set}" = set; then :
3417 $as_echo_n "(cached) " >&6
3418else
3419 if test -z "$GREP"; then
3420 ac_path_GREP_found=false
3421 # Loop through the user's path and test for each of PROGNAME-LIST
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3424do
3425 IFS=$as_save_IFS
3426 test -z "$as_dir" && as_dir=.
3427 for ac_prog in grep ggrep; do
3428 for ac_exec_ext in '' $ac_executable_extensions; do
3429 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3430 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3431# Check for GNU ac_path_GREP and select it if it is found.
3432 # Check for GNU $ac_path_GREP
3433case `"$ac_path_GREP" --version 2>&1` in
3434*GNU*)
3435 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3436*)
3437 ac_count=0
3438 $as_echo_n 0123456789 >"conftest.in"
3439 while :
3440 do
3441 cat "conftest.in" "conftest.in" >"conftest.tmp"
3442 mv "conftest.tmp" "conftest.in"
3443 cp "conftest.in" "conftest.nl"
3444 $as_echo 'GREP' >> "conftest.nl"
3445 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3447 as_fn_arith $ac_count + 1 && ac_count=$as_val
3448 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3449 # Best one so far, save it but keep looking for a better one
3450 ac_cv_path_GREP="$ac_path_GREP"
3451 ac_path_GREP_max=$ac_count
3452 fi
3453 # 10*(2^10) chars as input seems more than enough
3454 test $ac_count -gt 10 && break
3455 done
3456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3457esac
3458
3459 $ac_path_GREP_found && break 3
3460 done
3461 done
3462 done
3463IFS=$as_save_IFS
3464 if test -z "$ac_cv_path_GREP"; then
3465 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3466 fi
3467else
3468 ac_cv_path_GREP=$GREP
3469fi
3470
3471fi
3472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3473$as_echo "$ac_cv_path_GREP" >&6; }
3474 GREP="$ac_cv_path_GREP"
3475
3476
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3478$as_echo_n "checking for egrep... " >&6; }
3479if test "${ac_cv_path_EGREP+set}" = set; then :
3480 $as_echo_n "(cached) " >&6
3481else
3482 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3483 then ac_cv_path_EGREP="$GREP -E"
3484 else
3485 if test -z "$EGREP"; then
3486 ac_path_EGREP_found=false
3487 # Loop through the user's path and test for each of PROGNAME-LIST
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3490do
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_prog in egrep; do
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3496 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3497# Check for GNU ac_path_EGREP and select it if it is found.
3498 # Check for GNU $ac_path_EGREP
3499case `"$ac_path_EGREP" --version 2>&1` in
3500*GNU*)
3501 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3502*)
3503 ac_count=0
3504 $as_echo_n 0123456789 >"conftest.in"
3505 while :
3506 do
3507 cat "conftest.in" "conftest.in" >"conftest.tmp"
3508 mv "conftest.tmp" "conftest.in"
3509 cp "conftest.in" "conftest.nl"
3510 $as_echo 'EGREP' >> "conftest.nl"
3511 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3512 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3513 as_fn_arith $ac_count + 1 && ac_count=$as_val
3514 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3515 # Best one so far, save it but keep looking for a better one
3516 ac_cv_path_EGREP="$ac_path_EGREP"
3517 ac_path_EGREP_max=$ac_count
3518 fi
3519 # 10*(2^10) chars as input seems more than enough
3520 test $ac_count -gt 10 && break
3521 done
3522 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3523esac
3524
3525 $ac_path_EGREP_found && break 3
3526 done
3527 done
3528 done
3529IFS=$as_save_IFS
3530 if test -z "$ac_cv_path_EGREP"; then
3531 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3532 fi
3533else
3534 ac_cv_path_EGREP=$EGREP
3535fi
3536
3537 fi
3538fi
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3540$as_echo "$ac_cv_path_EGREP" >&6; }
3541 EGREP="$ac_cv_path_EGREP"
3542
3543
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3545$as_echo_n "checking for ANSI C header files... " >&6; }
3546if test "${ac_cv_header_stdc+set}" = set; then :
3547 $as_echo_n "(cached) " >&6
3548else
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550/* end confdefs.h. */
3551#include <stdlib.h>
3552#include <stdarg.h>
3553#include <string.h>
3554#include <float.h>
3555
3556int
3557main ()
3558{
3559
3560 ;
3561 return 0;
3562}
3563_ACEOF
3564if ac_fn_c_try_compile "$LINENO"; then :
3565 ac_cv_header_stdc=yes
3566else
3567 ac_cv_header_stdc=no
3568fi
3569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570
3571if test $ac_cv_header_stdc = yes; then
3572 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574/* end confdefs.h. */
3575#include <string.h>
3576
3577_ACEOF
3578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3579 $EGREP "memchr" >/dev/null 2>&1; then :
3580
3581else
3582 ac_cv_header_stdc=no
3583fi
3584rm -f conftest*
3585
3586fi
3587
3588if test $ac_cv_header_stdc = yes; then
3589 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591/* end confdefs.h. */
3592#include <stdlib.h>
3593
3594_ACEOF
3595if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3596 $EGREP "free" >/dev/null 2>&1; then :
3597
3598else
3599 ac_cv_header_stdc=no
3600fi
3601rm -f conftest*
3602
3603fi
3604
3605if test $ac_cv_header_stdc = yes; then
3606 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3607 if test "$cross_compiling" = yes; then :
3608 :
3609else
3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611/* end confdefs.h. */
3612#include <ctype.h>
3613#include <stdlib.h>
3614#if ((' ' & 0x0FF) == 0x020)
3615# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3616# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3617#else
3618# define ISLOWER(c) \
3619 (('a' <= (c) && (c) <= 'i') \
3620 || ('j' <= (c) && (c) <= 'r') \
3621 || ('s' <= (c) && (c) <= 'z'))
3622# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3623#endif
3624
3625#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3626int
3627main ()
3628{
3629 int i;
3630 for (i = 0; i < 256; i++)
3631 if (XOR (islower (i), ISLOWER (i))
3632 || toupper (i) != TOUPPER (i))
3633 return 2;
3634 return 0;
3635}
3636_ACEOF
3637if ac_fn_c_try_run "$LINENO"; then :
3638
3639else
3640 ac_cv_header_stdc=no
3641fi
3642rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3643 conftest.$ac_objext conftest.beam conftest.$ac_ext
3644fi
3645
3646fi
3647fi
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3649$as_echo "$ac_cv_header_stdc" >&6; }
3650if test $ac_cv_header_stdc = yes; then
3651
3652$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3653
3654fi
3655
3656# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3657for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3658 inttypes.h stdint.h unistd.h
3659do :
3660 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3661ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3662"
3663eval as_val=\$$as_ac_Header
3664 if test "x$as_val" = x""yes; then :
3665 cat >>confdefs.h <<_ACEOF
3666#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3667_ACEOF
3668
3669fi
3670
3671done
3672
3673
3674
3675 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3676if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3677 MINIX=yes
3678else
3679 MINIX=
3680fi
3681
3682
3683 if test "$MINIX" = yes; then
3684
3685$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3686
3687
3688$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3689
3690
3691$as_echo "#define _MINIX 1" >>confdefs.h
3692
3693 fi
3694
3695
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3697$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3698if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3699 $as_echo_n "(cached) " >&6
3700else
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702/* end confdefs.h. */
3703
3704# define __EXTENSIONS__ 1
3705 $ac_includes_default
3706int
3707main ()
3708{
3709
3710 ;
3711 return 0;
3712}
3713_ACEOF
3714if ac_fn_c_try_compile "$LINENO"; then :
3715 ac_cv_safe_to_define___extensions__=yes
3716else
3717 ac_cv_safe_to_define___extensions__=no
3718fi
3719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720fi
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3722$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3723 test $ac_cv_safe_to_define___extensions__ = yes &&
3724 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3725
3726 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3727
3728 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3729
3730 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3731
3732 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3733
3734
3735# Determine the noncanonical target name, for directory use.
3736 case ${build_alias} in
3737 "") build_noncanonical=${build} ;;
3738 *) build_noncanonical=${build_alias} ;;
3739esac
3740
3741 case ${host_alias} in
3742 "") host_noncanonical=${build_noncanonical} ;;
3743 *) host_noncanonical=${host_alias} ;;
3744esac
3745
3746 case ${target_alias} in
3747 "") target_noncanonical=${host_noncanonical} ;;
3748 *) target_noncanonical=${target_alias} ;;
3749esac
3750
3751
3752
3753
3754# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3755# have matching libraries, they should use host libraries: Makefile.tpl
3756# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3757# However, they still use the build modules, because the corresponding
3758# host modules (e.g. bison) are only built for the host when bootstrap
3759# finishes. So:
3760# - build_subdir is where we find build modules, and never changes.
3761# - build_libsubdir is where we find build libraries, and can be overridden.
3762
3763# Prefix 'build-' so this never conflicts with target_subdir.
3764build_subdir="build-${build_noncanonical}"
3765
3766# Check whether --with-build-libsubdir was given.
3767if test "${with_build_libsubdir+set}" = set; then :
3768 withval=$with_build_libsubdir; build_libsubdir="$withval"
3769else
3770 build_libsubdir="$build_subdir"
3771fi
3772
3773# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3774if ( test $srcdir = . && test -d gcc ) \
3775 || test -d $srcdir/../host-${host_noncanonical}; then
3776 host_subdir="host-${host_noncanonical}"
3777else
3778 host_subdir=.
3779fi
3780# No prefix.
3781target_subdir=${target_noncanonical}
3782
3783
3784# 1.11.1: Require that version of automake.
3785# foreign: Don't require README, INSTALL, NEWS, etc.
3786# no-define: Don't define PACKAGE and VERSION.
3787# -Wall: Issue all automake warnings.
3788# -Wno-portability: Don't warn about constructs supported by GNU make.
3789# (because GCC requires GNU make anyhow).
3790am__api_version='1.11'
3791
3792# Find a good install program. We prefer a C program (faster),
3793# so one script is as good as another. But avoid the broken or
3794# incompatible versions:
3795# SysV /etc/install, /usr/sbin/install
3796# SunOS /usr/etc/install
3797# IRIX /sbin/install
3798# AIX /bin/install
3799# AmigaOS /C/install, which installs bootblocks on floppy discs
3800# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3801# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3802# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3803# OS/2's system install, which has a completely different semantic
3804# ./install, which can be erroneously created by make from ./install.sh.
3805# Reject install programs that cannot install multiple files.
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3807$as_echo_n "checking for a BSD-compatible install... " >&6; }
3808if test -z "$INSTALL"; then
3809if test "${ac_cv_path_install+set}" = set; then :
3810 $as_echo_n "(cached) " >&6
3811else
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813for as_dir in $PATH
3814do
3815 IFS=$as_save_IFS
3816 test -z "$as_dir" && as_dir=.
3817 # Account for people who put trailing slashes in PATH elements.
3818case $as_dir/ in #((
3819 ./ | .// | /[cC]/* | \
3820 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3821 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3822 /usr/ucb/* ) ;;
3823 *)
3824 # OSF1 and SCO ODT 3.0 have their own names for install.
3825 # Don't use installbsd from OSF since it installs stuff as root
3826 # by default.
3827 for ac_prog in ginstall scoinst install; do
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3830 if test $ac_prog = install &&
3831 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3832 # AIX install. It has an incompatible calling convention.
3833 :
3834 elif test $ac_prog = install &&
3835 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3836 # program-specific install script used by HP pwplus--don't use.
3837 :
3838 else
3839 rm -rf conftest.one conftest.two conftest.dir
3840 echo one > conftest.one
3841 echo two > conftest.two
3842 mkdir conftest.dir
3843 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3844 test -s conftest.one && test -s conftest.two &&
3845 test -s conftest.dir/conftest.one &&
3846 test -s conftest.dir/conftest.two
3847 then
3848 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3849 break 3
3850 fi
3851 fi
3852 fi
3853 done
3854 done
3855 ;;
3856esac
3857
3858 done
3859IFS=$as_save_IFS
3860
3861rm -rf conftest.one conftest.two conftest.dir
3862
3863fi
3864 if test "${ac_cv_path_install+set}" = set; then
3865 INSTALL=$ac_cv_path_install
3866 else
3867 # As a last resort, use the slow shell script. Don't cache a
3868 # value for INSTALL within a source directory, because that will
3869 # break other packages using the cache if that directory is
3870 # removed, or if the value is a relative name.
3871 INSTALL=$ac_install_sh
3872 fi
3873fi
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3875$as_echo "$INSTALL" >&6; }
3876
3877# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3878# It thinks the first close brace ends the variable substitution.
3879test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3880
3881test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3882
3883test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3884
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3886$as_echo_n "checking whether build environment is sane... " >&6; }
3887# Just in case
3888sleep 1
3889echo timestamp > conftest.file
3890# Reject unsafe characters in $srcdir or the absolute working directory
3891# name. Accept space and tab only in the latter.
3892am_lf='
3893'
3894case `pwd` in
3895 *[\\\"\#\$\&\'\`$am_lf]*)
3896 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3897esac
3898case $srcdir in
3899 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3900 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3901esac
3902
3903# Do `set' in a subshell so we don't clobber the current shell's
3904# arguments. Must try -L first in case configure is actually a
3905# symlink; some systems play weird games with the mod time of symlinks
3906# (eg FreeBSD returns the mod time of the symlink's containing
3907# directory).
3908if (
3909 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3910 if test "$*" = "X"; then
3911 # -L didn't work.
3912 set X `ls -t "$srcdir/configure" conftest.file`
3913 fi
3914 rm -f conftest.file
3915 if test "$*" != "X $srcdir/configure conftest.file" \
3916 && test "$*" != "X conftest.file $srcdir/configure"; then
3917
3918 # If neither matched, then we have a broken ls. This can happen
3919 # if, for instance, CONFIG_SHELL is bash and it inherits a
3920 # broken ls alias from the environment. This has actually
3921 # happened. Such a system could not be considered "sane".
3922 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3923alias in your environment" "$LINENO" 5
3924 fi
3925
3926 test "$2" = conftest.file
3927 )
3928then
3929 # Ok.
3930 :
3931else
3932 as_fn_error "newly created file is older than distributed files!
3933Check your system clock" "$LINENO" 5
3934fi
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3936$as_echo "yes" >&6; }
3937test "$program_prefix" != NONE &&
3938 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3939# Use a double $ so make ignores it.
3940test "$program_suffix" != NONE &&
3941 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3942# Double any \ or $.
3943# By default was `s,x,x', remove it if useless.
3944ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3945program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3946
3947# expand $ac_aux_dir to an absolute path
3948am_aux_dir=`cd $ac_aux_dir && pwd`
3949
3950if test x"${MISSING+set}" != xset; then
3951 case $am_aux_dir in
3952 *\ * | *\ *)
3953 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3954 *)
3955 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3956 esac
3957fi
3958# Use eval to expand $SHELL
3959if eval "$MISSING --run true"; then
3960 am_missing_run="$MISSING --run "
3961else
3962 am_missing_run=
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3964$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3965fi
3966
3967if test x"${install_sh}" != xset; then
3968 case $am_aux_dir in
3969 *\ * | *\ *)
3970 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3971 *)
3972 install_sh="\${SHELL} $am_aux_dir/install-sh"
3973 esac
3974fi
3975
3976# Installed binaries are usually stripped using `strip' when the user
3977# run `make install-strip'. However `strip' might not be the right
3978# tool to use in cross-compilation environments, therefore Automake
3979# will honor the `STRIP' environment variable to overrule this program.
3980if test "$cross_compiling" != no; then
3981 if test -n "$ac_tool_prefix"; then
3982 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3983set dummy ${ac_tool_prefix}strip; ac_word=$2
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3985$as_echo_n "checking for $ac_word... " >&6; }
3986if test "${ac_cv_prog_STRIP+set}" = set; then :
3987 $as_echo_n "(cached) " >&6
3988else
3989 if test -n "$STRIP"; then
3990 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3991else
3992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993for as_dir in $PATH
3994do
3995 IFS=$as_save_IFS
3996 test -z "$as_dir" && as_dir=.
3997 for ac_exec_ext in '' $ac_executable_extensions; do
3998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3999 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4001 break 2
4002 fi
4003done
4004 done
4005IFS=$as_save_IFS
4006
4007fi
4008fi
4009STRIP=$ac_cv_prog_STRIP
4010if test -n "$STRIP"; then
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4012$as_echo "$STRIP" >&6; }
4013else
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4015$as_echo "no" >&6; }
4016fi
4017
4018
4019fi
4020if test -z "$ac_cv_prog_STRIP"; then
4021 ac_ct_STRIP=$STRIP
4022 # Extract the first word of "strip", so it can be a program name with args.
4023set dummy strip; ac_word=$2
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4025$as_echo_n "checking for $ac_word... " >&6; }
4026if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4027 $as_echo_n "(cached) " >&6
4028else
4029 if test -n "$ac_ct_STRIP"; then
4030 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4031else
4032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033for as_dir in $PATH
4034do
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4039 ac_cv_prog_ac_ct_STRIP="strip"
4040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 break 2
4042 fi
4043done
4044 done
4045IFS=$as_save_IFS
4046
4047fi
4048fi
4049ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4050if test -n "$ac_ct_STRIP"; then
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4052$as_echo "$ac_ct_STRIP" >&6; }
4053else
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055$as_echo "no" >&6; }
4056fi
4057
4058 if test "x$ac_ct_STRIP" = x; then
4059 STRIP=":"
4060 else
4061 case $cross_compiling:$ac_tool_warned in
4062yes:)
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4065ac_tool_warned=yes ;;
4066esac
4067 STRIP=$ac_ct_STRIP
4068 fi
4069else
4070 STRIP="$ac_cv_prog_STRIP"
4071fi
4072
4073fi
4074INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4075
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4077$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4078if test -z "$MKDIR_P"; then
4079 if test "${ac_cv_path_mkdir+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4081else
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4084do
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
4087 for ac_prog in mkdir gmkdir; do
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4090 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4091 'mkdir (GNU coreutils) '* | \
4092 'mkdir (coreutils) '* | \
4093 'mkdir (fileutils) '4.1*)
4094 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4095 break 3;;
4096 esac
4097 done
4098 done
4099 done
4100IFS=$as_save_IFS
4101
4102fi
4103
4104 if test "${ac_cv_path_mkdir+set}" = set; then
4105 MKDIR_P="$ac_cv_path_mkdir -p"
4106 else
4107 # As a last resort, use the slow shell script. Don't cache a
4108 # value for MKDIR_P within a source directory, because that will
4109 # break other packages using the cache if that directory is
4110 # removed, or if the value is a relative name.
4111 test -d ./--version && rmdir ./--version
4112 MKDIR_P="$ac_install_sh -d"
4113 fi
4114fi
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4116$as_echo "$MKDIR_P" >&6; }
4117
4118mkdir_p="$MKDIR_P"
4119case $mkdir_p in
4120 [\\/$]* | ?:[\\/]*) ;;
4121 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4122esac
4123
4124for ac_prog in gawk mawk nawk awk
4125do
4126 # Extract the first word of "$ac_prog", so it can be a program name with args.
4127set dummy $ac_prog; ac_word=$2
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129$as_echo_n "checking for $ac_word... " >&6; }
4130if test "${ac_cv_prog_AWK+set}" = set; then :
4131 $as_echo_n "(cached) " >&6
4132else
4133 if test -n "$AWK"; then
4134 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4135else
4136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137for as_dir in $PATH
4138do
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4143 ac_cv_prog_AWK="$ac_prog"
4144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 break 2
4146 fi
4147done
4148 done
4149IFS=$as_save_IFS
4150
4151fi
4152fi
4153AWK=$ac_cv_prog_AWK
4154if test -n "$AWK"; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4156$as_echo "$AWK" >&6; }
4157else
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159$as_echo "no" >&6; }
4160fi
4161
4162
4163 test -n "$AWK" && break
4164done
4165
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4167$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4168set x ${MAKE-make}
4169ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4170if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4171 $as_echo_n "(cached) " >&6
4172else
4173 cat >conftest.make <<\_ACEOF
4174SHELL = /bin/sh
4175all:
4176 @echo '@@@%%%=$(MAKE)=@@@%%%'
4177_ACEOF
4178# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4179case `${MAKE-make} -f conftest.make 2>/dev/null` in
4180 *@@@%%%=?*=@@@%%%*)
4181 eval ac_cv_prog_make_${ac_make}_set=yes;;
4182 *)
4183 eval ac_cv_prog_make_${ac_make}_set=no;;
4184esac
4185rm -f conftest.make
4186fi
4187if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4189$as_echo "yes" >&6; }
4190 SET_MAKE=
4191else
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193$as_echo "no" >&6; }
4194 SET_MAKE="MAKE=${MAKE-make}"
4195fi
4196
4197rm -rf .tst 2>/dev/null
4198mkdir .tst 2>/dev/null
4199if test -d .tst; then
4200 am__leading_dot=.
4201else
4202 am__leading_dot=_
4203fi
4204rmdir .tst 2>/dev/null
4205
4206DEPDIR="${am__leading_dot}deps"
4207
4208ac_config_commands="$ac_config_commands depfiles"
4209
4210
4211am_make=${MAKE-make}
4212cat > confinc << 'END'
4213am__doit:
4214 @echo this is the am__doit target
4215.PHONY: am__doit
4216END
4217# If we don't find an include directive, just comment out the code.
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4219$as_echo_n "checking for style of include used by $am_make... " >&6; }
4220am__include="#"
4221am__quote=
4222_am_result=none
4223# First try GNU make style include.
4224echo "include confinc" > confmf
4225# Ignore all kinds of additional output from `make'.
4226case `$am_make -s -f confmf 2> /dev/null` in #(
4227*the\ am__doit\ target*)
4228 am__include=include
4229 am__quote=
4230 _am_result=GNU
4231 ;;
4232esac
4233# Now try BSD make style include.
4234if test "$am__include" = "#"; then
4235 echo '.include "confinc"' > confmf
4236 case `$am_make -s -f confmf 2> /dev/null` in #(
4237 *the\ am__doit\ target*)
4238 am__include=.include
4239 am__quote="\""
4240 _am_result=BSD
4241 ;;
4242 esac
4243fi
4244
4245
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4247$as_echo "$_am_result" >&6; }
4248rm -f confinc confmf
4249
4250# Check whether --enable-dependency-tracking was given.
4251if test "${enable_dependency_tracking+set}" = set; then :
4252 enableval=$enable_dependency_tracking;
4253fi
4254
4255if test "x$enable_dependency_tracking" != xno; then
4256 am_depcomp="$ac_aux_dir/depcomp"
4257 AMDEPBACKSLASH='\'
4709a6d2 4258 am__nodep='_no'
ddc8de03
PM
4259fi
4260 if test "x$enable_dependency_tracking" != xno; then
4261 AMDEP_TRUE=
4262 AMDEP_FALSE='#'
4263else
4264 AMDEP_TRUE='#'
4265 AMDEP_FALSE=
4266fi
4267
4268
4269if test "`cd $srcdir && pwd`" != "`pwd`"; then
4270 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4271 # is not polluted with repeated "-I."
4272 am__isrc=' -I$(srcdir)'
4273 # test to see if srcdir already configured
4274 if test -f $srcdir/config.status; then
4275 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4276 fi
4277fi
4278
4279# test whether we have cygpath
4280if test -z "$CYGPATH_W"; then
4281 if (cygpath --version) >/dev/null 2>/dev/null; then
4282 CYGPATH_W='cygpath -w'
4283 else
4284 CYGPATH_W=echo
4285 fi
4286fi
4287
4288
4289# Define the identity of the package.
4290 PACKAGE='libcc1'
4291 VERSION='version-unused'
4292
4293
4294# Some tools Automake needs.
4295
4296ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4297
4298
4299AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4300
4301
4302AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4303
4304
4305AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4306
4307
4308MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4309
4310# We need awk for the "check" target. The system "awk" is bad on
4311# some platforms.
4709a6d2
MH
4312# Always define AMTAR for backward compatibility. Yes, it's still used
4313# in the wild :-( We should find a proper way to deprecate it ...
4314AMTAR='$${TAR-tar}'
ddc8de03 4315
4709a6d2 4316am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
ddc8de03
PM
4317
4318
4319
4320
4321depcc="$CC" am_compiler_list=
4322
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4324$as_echo_n "checking dependency style of $depcc... " >&6; }
4325if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4326 $as_echo_n "(cached) " >&6
4327else
4328 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4329 # We make a subdir and do the tests there. Otherwise we can end up
4330 # making bogus files that we don't know about and never remove. For
4331 # instance it was reported that on HP-UX the gcc test will end up
4332 # making a dummy file named `D' -- because `-MD' means `put the output
4333 # in D'.
4709a6d2 4334 rm -rf conftest.dir
ddc8de03
PM
4335 mkdir conftest.dir
4336 # Copy depcomp to subdir because otherwise we won't find it if we're
4337 # using a relative directory.
4338 cp "$am_depcomp" conftest.dir
4339 cd conftest.dir
4340 # We will build objects and dependencies in a subdirectory because
4341 # it helps to detect inapplicable dependency modes. For instance
4342 # both Tru64's cc and ICC support -MD to output dependencies as a
4343 # side effect of compilation, but ICC will put the dependencies in
4344 # the current directory while Tru64 will put them in the object
4345 # directory.
4346 mkdir sub
4347
4348 am_cv_CC_dependencies_compiler_type=none
4349 if test "$am_compiler_list" = ""; then
4350 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4351 fi
4352 am__universal=false
4353 case " $depcc " in #(
4354 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4355 esac
4356
4357 for depmode in $am_compiler_list; do
4358 # Setup a source with many dependencies, because some compilers
4359 # like to wrap large dependency lists on column 80 (with \), and
4360 # we should not choose a depcomp mode which is confused by this.
4361 #
4362 # We need to recreate these files for each test, as the compiler may
4363 # overwrite some of them when testing with obscure command lines.
4364 # This happens at least with the AIX C compiler.
4365 : > sub/conftest.c
4366 for i in 1 2 3 4 5 6; do
4367 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4368 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4369 # Solaris 8's {/usr,}/bin/sh.
4370 touch sub/conftst$i.h
4371 done
4372 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4373
4374 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4375 # mode. It turns out that the SunPro C++ compiler does not properly
4376 # handle `-M -o', and we need to detect this. Also, some Intel
4377 # versions had trouble with output in subdirs
4378 am__obj=sub/conftest.${OBJEXT-o}
4379 am__minus_obj="-o $am__obj"
4380 case $depmode in
4381 gcc)
4382 # This depmode causes a compiler race in universal mode.
4383 test "$am__universal" = false || continue
4384 ;;
4385 nosideeffect)
4386 # after this tag, mechanisms are not by side-effect, so they'll
4387 # only be used when explicitly requested
4388 if test "x$enable_dependency_tracking" = xyes; then
4389 continue
4390 else
4391 break
4392 fi
4393 ;;
4709a6d2 4394 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
ddc8de03
PM
4395 # This compiler won't grok `-c -o', but also, the minuso test has
4396 # not run yet. These depmodes are late enough in the game, and
4397 # so weak that their functioning should not be impacted.
4398 am__obj=conftest.${OBJEXT-o}
4399 am__minus_obj=
4400 ;;
4401 none) break ;;
4402 esac
4403 if depmode=$depmode \
4404 source=sub/conftest.c object=$am__obj \
4405 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4406 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4407 >/dev/null 2>conftest.err &&
4408 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4409 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4410 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4411 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4412 # icc doesn't choke on unknown options, it will just issue warnings
4413 # or remarks (even with -Werror). So we grep stderr for any message
4414 # that says an option was ignored or not supported.
4415 # When given -MP, icc 7.0 and 7.1 complain thusly:
4416 # icc: Command line warning: ignoring option '-M'; no argument required
4417 # The diagnosis changed in icc 8.0:
4418 # icc: Command line remark: option '-MP' not supported
4419 if (grep 'ignoring option' conftest.err ||
4420 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4421 am_cv_CC_dependencies_compiler_type=$depmode
4422 break
4423 fi
4424 fi
4425 done
4426
4427 cd ..
4428 rm -rf conftest.dir
4429else
4430 am_cv_CC_dependencies_compiler_type=none
4431fi
4432
4433fi
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4435$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4436CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4437
4438 if
4439 test "x$enable_dependency_tracking" != xno \
4440 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4441 am__fastdepCC_TRUE=
4442 am__fastdepCC_FALSE='#'
4443else
4444 am__fastdepCC_TRUE='#'
4445 am__fastdepCC_FALSE=
4446fi
4447
4448
4449
4450
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4452$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4453 # Check whether --enable-maintainer-mode was given.
4454if test "${enable_maintainer_mode+set}" = set; then :
4455 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4456else
4457 USE_MAINTAINER_MODE=no
4458fi
4459
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4461$as_echo "$USE_MAINTAINER_MODE" >&6; }
4462 if test $USE_MAINTAINER_MODE = yes; then
4463 MAINTAINER_MODE_TRUE=
4464 MAINTAINER_MODE_FALSE='#'
4465else
4466 MAINTAINER_MODE_TRUE='#'
4467 MAINTAINER_MODE_FALSE=
4468fi
4469
4470 MAINT=$MAINTAINER_MODE_TRUE
4471
4472
4473
4474case `pwd` in
4475 *\ * | *\ *)
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4477$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4478esac
4479
4480
4481
4482macro_version='2.2.7a'
4483macro_revision='1.3134'
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497ltmain="$ac_aux_dir/ltmain.sh"
4498
4499# Backslashify metacharacters that are still active within
4500# double-quoted strings.
4501sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4502
4503# Same as above, but do not quote variable references.
4504double_quote_subst='s/\(["`\\]\)/\\\1/g'
4505
4506# Sed substitution to delay expansion of an escaped shell variable in a
4507# double_quote_subst'ed string.
4508delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4509
4510# Sed substitution to delay expansion of an escaped single quote.
4511delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4512
4513# Sed substitution to avoid accidental globbing in evaled expressions
4514no_glob_subst='s/\*/\\\*/g'
4515
4516ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4517ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4518ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4519
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4521$as_echo_n "checking how to print strings... " >&6; }
4522# Test print first, because it will be a builtin if present.
4523if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4524 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4525 ECHO='print -r --'
4526elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4527 ECHO='printf %s\n'
4528else
4529 # Use this function as a fallback that always works.
4530 func_fallback_echo ()
4531 {
4532 eval 'cat <<_LTECHO_EOF
4533$1
4534_LTECHO_EOF'
4535 }
4536 ECHO='func_fallback_echo'
4537fi
4538
4539# func_echo_all arg...
4540# Invoke $ECHO with all args, space-separated.
4541func_echo_all ()
4542{
4543 $ECHO ""
4544}
4545
4546case "$ECHO" in
4547 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4548$as_echo "printf" >&6; } ;;
4549 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4550$as_echo "print -r" >&6; } ;;
4551 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4552$as_echo "cat" >&6; } ;;
4553esac
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4569$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4570if test "${ac_cv_path_SED+set}" = set; then :
4571 $as_echo_n "(cached) " >&6
4572else
4573 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4574 for ac_i in 1 2 3 4 5 6 7; do
4575 ac_script="$ac_script$as_nl$ac_script"
4576 done
4577 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4578 { ac_script=; unset ac_script;}
4579 if test -z "$SED"; then
4580 ac_path_SED_found=false
4581 # Loop through the user's path and test for each of PROGNAME-LIST
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583for as_dir in $PATH
4584do
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
4587 for ac_prog in sed gsed; do
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4590 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4591# Check for GNU ac_path_SED and select it if it is found.
4592 # Check for GNU $ac_path_SED
4593case `"$ac_path_SED" --version 2>&1` in
4594*GNU*)
4595 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4596*)
4597 ac_count=0
4598 $as_echo_n 0123456789 >"conftest.in"
4599 while :
4600 do
4601 cat "conftest.in" "conftest.in" >"conftest.tmp"
4602 mv "conftest.tmp" "conftest.in"
4603 cp "conftest.in" "conftest.nl"
4604 $as_echo '' >> "conftest.nl"
4605 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4607 as_fn_arith $ac_count + 1 && ac_count=$as_val
4608 if test $ac_count -gt ${ac_path_SED_max-0}; then
4609 # Best one so far, save it but keep looking for a better one
4610 ac_cv_path_SED="$ac_path_SED"
4611 ac_path_SED_max=$ac_count
4612 fi
4613 # 10*(2^10) chars as input seems more than enough
4614 test $ac_count -gt 10 && break
4615 done
4616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4617esac
4618
4619 $ac_path_SED_found && break 3
4620 done
4621 done
4622 done
4623IFS=$as_save_IFS
4624 if test -z "$ac_cv_path_SED"; then
4625 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4626 fi
4627else
4628 ac_cv_path_SED=$SED
4629fi
4630
4631fi
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4633$as_echo "$ac_cv_path_SED" >&6; }
4634 SED="$ac_cv_path_SED"
4635 rm -f conftest.sed
4636
4637test -z "$SED" && SED=sed
4638Xsed="$SED -e 1s/^X//"
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4651$as_echo_n "checking for fgrep... " >&6; }
4652if test "${ac_cv_path_FGREP+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
4654else
4655 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4656 then ac_cv_path_FGREP="$GREP -F"
4657 else
4658 if test -z "$FGREP"; then
4659 ac_path_FGREP_found=false
4660 # Loop through the user's path and test for each of PROGNAME-LIST
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4663do
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_prog in fgrep; do
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4669 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4670# Check for GNU ac_path_FGREP and select it if it is found.
4671 # Check for GNU $ac_path_FGREP
4672case `"$ac_path_FGREP" --version 2>&1` in
4673*GNU*)
4674 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4675*)
4676 ac_count=0
4677 $as_echo_n 0123456789 >"conftest.in"
4678 while :
4679 do
4680 cat "conftest.in" "conftest.in" >"conftest.tmp"
4681 mv "conftest.tmp" "conftest.in"
4682 cp "conftest.in" "conftest.nl"
4683 $as_echo 'FGREP' >> "conftest.nl"
4684 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4686 as_fn_arith $ac_count + 1 && ac_count=$as_val
4687 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4688 # Best one so far, save it but keep looking for a better one
4689 ac_cv_path_FGREP="$ac_path_FGREP"
4690 ac_path_FGREP_max=$ac_count
4691 fi
4692 # 10*(2^10) chars as input seems more than enough
4693 test $ac_count -gt 10 && break
4694 done
4695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4696esac
4697
4698 $ac_path_FGREP_found && break 3
4699 done
4700 done
4701 done
4702IFS=$as_save_IFS
4703 if test -z "$ac_cv_path_FGREP"; then
4704 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4705 fi
4706else
4707 ac_cv_path_FGREP=$FGREP
4708fi
4709
4710 fi
4711fi
4712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4713$as_echo "$ac_cv_path_FGREP" >&6; }
4714 FGREP="$ac_cv_path_FGREP"
4715
4716
4717test -z "$GREP" && GREP=grep
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737# Check whether --with-gnu-ld was given.
4738if test "${with_gnu_ld+set}" = set; then :
4739 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4740else
4741 with_gnu_ld=no
4742fi
4743
4744ac_prog=ld
4745if test "$GCC" = yes; then
4746 # Check if gcc -print-prog-name=ld gives a path.
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4748$as_echo_n "checking for ld used by $CC... " >&6; }
4749 case $host in
4750 *-*-mingw*)
4751 # gcc leaves a trailing carriage return which upsets mingw
4752 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4753 *)
4754 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4755 esac
4756 case $ac_prog in
4757 # Accept absolute paths.
4758 [\\/]* | ?:[\\/]*)
4759 re_direlt='/[^/][^/]*/\.\./'
4760 # Canonicalize the pathname of ld
4761 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4762 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4763 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4764 done
4765 test -z "$LD" && LD="$ac_prog"
4766 ;;
4767 "")
4768 # If it fails, then pretend we aren't using GCC.
4769 ac_prog=ld
4770 ;;
4771 *)
4772 # If it is relative, then search for the first ld in PATH.
4773 with_gnu_ld=unknown
4774 ;;
4775 esac
4776elif test "$with_gnu_ld" = yes; then
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4778$as_echo_n "checking for GNU ld... " >&6; }
4779else
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4781$as_echo_n "checking for non-GNU ld... " >&6; }
4782fi
4783if test "${lt_cv_path_LD+set}" = set; then :
4784 $as_echo_n "(cached) " >&6
4785else
4786 if test -z "$LD"; then
4787 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4788 for ac_dir in $PATH; do
4789 IFS="$lt_save_ifs"
4790 test -z "$ac_dir" && ac_dir=.
4791 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4792 lt_cv_path_LD="$ac_dir/$ac_prog"
4793 # Check to see if the program is GNU ld. I'd rather use --version,
4794 # but apparently some variants of GNU ld only accept -v.
4795 # Break only if it was the GNU/non-GNU ld that we prefer.
4796 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4797 *GNU* | *'with BFD'*)
4798 test "$with_gnu_ld" != no && break
4799 ;;
4800 *)
4801 test "$with_gnu_ld" != yes && break
4802 ;;
4803 esac
4804 fi
4805 done
4806 IFS="$lt_save_ifs"
4807else
4808 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4809fi
4810fi
4811
4812LD="$lt_cv_path_LD"
4813if test -n "$LD"; then
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4815$as_echo "$LD" >&6; }
4816else
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818$as_echo "no" >&6; }
4819fi
4820test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4822$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4823if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4824 $as_echo_n "(cached) " >&6
4825else
4826 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4827case `$LD -v 2>&1 </dev/null` in
4828*GNU* | *'with BFD'*)
4829 lt_cv_prog_gnu_ld=yes
4830 ;;
4831*)
4832 lt_cv_prog_gnu_ld=no
4833 ;;
4834esac
4835fi
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4837$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4838with_gnu_ld=$lt_cv_prog_gnu_ld
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4849$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4850if test "${lt_cv_path_NM+set}" = set; then :
4851 $as_echo_n "(cached) " >&6
4852else
4853 if test -n "$NM"; then
4854 # Let the user override the test.
4855 lt_cv_path_NM="$NM"
4856else
4857 lt_nm_to_check="${ac_tool_prefix}nm"
4858 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4859 lt_nm_to_check="$lt_nm_to_check nm"
4860 fi
4861 for lt_tmp_nm in $lt_nm_to_check; do
4862 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4863 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4864 IFS="$lt_save_ifs"
4865 test -z "$ac_dir" && ac_dir=.
4866 tmp_nm="$ac_dir/$lt_tmp_nm"
4867 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4868 # Check to see if the nm accepts a BSD-compat flag.
4869 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4870 # nm: unknown option "B" ignored
4871 # Tru64's nm complains that /dev/null is an invalid object file
4872 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4873 */dev/null* | *'Invalid file or object type'*)
4874 lt_cv_path_NM="$tmp_nm -B"
4875 break
4876 ;;
4877 *)
4878 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4879 */dev/null*)
4880 lt_cv_path_NM="$tmp_nm -p"
4881 break
4882 ;;
4883 *)
4884 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4885 continue # so that we can try to find one that supports BSD flags
4886 ;;
4887 esac
4888 ;;
4889 esac
4890 fi
4891 done
4892 IFS="$lt_save_ifs"
4893 done
4894 : ${lt_cv_path_NM=no}
4895fi
4896fi
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4898$as_echo "$lt_cv_path_NM" >&6; }
4899if test "$lt_cv_path_NM" != "no"; then
4900 NM="$lt_cv_path_NM"
4901else
4902 # Didn't find any BSD compatible name lister, look for dumpbin.
4903 if test -n "$DUMPBIN"; then :
4904 # Let the user override the test.
4905 else
4906 if test -n "$ac_tool_prefix"; then
4907 for ac_prog in dumpbin "link -dump"
4908 do
4909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4910set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912$as_echo_n "checking for $ac_word... " >&6; }
4913if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4914 $as_echo_n "(cached) " >&6
4915else
4916 if test -n "$DUMPBIN"; then
4917 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4918else
4919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920for as_dir in $PATH
4921do
4922 IFS=$as_save_IFS
4923 test -z "$as_dir" && as_dir=.
4924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4926 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 break 2
4929 fi
4930done
4931 done
4932IFS=$as_save_IFS
4933
4934fi
4935fi
4936DUMPBIN=$ac_cv_prog_DUMPBIN
4937if test -n "$DUMPBIN"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4939$as_echo "$DUMPBIN" >&6; }
4940else
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942$as_echo "no" >&6; }
4943fi
4944
4945
4946 test -n "$DUMPBIN" && break
4947 done
4948fi
4949if test -z "$DUMPBIN"; then
4950 ac_ct_DUMPBIN=$DUMPBIN
4951 for ac_prog in dumpbin "link -dump"
4952do
4953 # Extract the first word of "$ac_prog", so it can be a program name with args.
4954set dummy $ac_prog; ac_word=$2
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956$as_echo_n "checking for $ac_word... " >&6; }
4957if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4958 $as_echo_n "(cached) " >&6
4959else
4960 if test -n "$ac_ct_DUMPBIN"; then
4961 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4962else
4963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964for as_dir in $PATH
4965do
4966 IFS=$as_save_IFS
4967 test -z "$as_dir" && as_dir=.
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4970 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 break 2
4973 fi
4974done
4975 done
4976IFS=$as_save_IFS
4977
4978fi
4979fi
4980ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4981if test -n "$ac_ct_DUMPBIN"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4983$as_echo "$ac_ct_DUMPBIN" >&6; }
4984else
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986$as_echo "no" >&6; }
4987fi
4988
4989
4990 test -n "$ac_ct_DUMPBIN" && break
4991done
4992
4993 if test "x$ac_ct_DUMPBIN" = x; then
4994 DUMPBIN=":"
4995 else
4996 case $cross_compiling:$ac_tool_warned in
4997yes:)
4998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5000ac_tool_warned=yes ;;
5001esac
5002 DUMPBIN=$ac_ct_DUMPBIN
5003 fi
5004fi
5005
5006 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5007 *COFF*)
5008 DUMPBIN="$DUMPBIN -symbols"
5009 ;;
5010 *)
5011 DUMPBIN=:
5012 ;;
5013 esac
5014 fi
5015
5016 if test "$DUMPBIN" != ":"; then
5017 NM="$DUMPBIN"
5018 fi
5019fi
5020test -z "$NM" && NM=nm
5021
5022
5023
5024
5025
5026
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5028$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5029if test "${lt_cv_nm_interface+set}" = set; then :
5030 $as_echo_n "(cached) " >&6
5031else
5032 lt_cv_nm_interface="BSD nm"
5033 echo "int some_variable = 0;" > conftest.$ac_ext
5034 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5035 (eval "$ac_compile" 2>conftest.err)
5036 cat conftest.err >&5
5037 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5038 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5039 cat conftest.err >&5
5040 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5041 cat conftest.out >&5
5042 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5043 lt_cv_nm_interface="MS dumpbin"
5044 fi
5045 rm -f conftest*
5046fi
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5048$as_echo "$lt_cv_nm_interface" >&6; }
5049
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5051$as_echo_n "checking whether ln -s works... " >&6; }
5052LN_S=$as_ln_s
5053if test "$LN_S" = "ln -s"; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5055$as_echo "yes" >&6; }
5056else
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5058$as_echo "no, using $LN_S" >&6; }
5059fi
5060
5061# find the maximum length of command line arguments
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5063$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5064if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5065 $as_echo_n "(cached) " >&6
5066else
5067 i=0
5068 teststring="ABCD"
5069
5070 case $build_os in
5071 msdosdjgpp*)
5072 # On DJGPP, this test can blow up pretty badly due to problems in libc
5073 # (any single argument exceeding 2000 bytes causes a buffer overrun
5074 # during glob expansion). Even if it were fixed, the result of this
5075 # check would be larger than it should be.
5076 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5077 ;;
5078
5079 gnu*)
5080 # Under GNU Hurd, this test is not required because there is
5081 # no limit to the length of command line arguments.
5082 # Libtool will interpret -1 as no limit whatsoever
5083 lt_cv_sys_max_cmd_len=-1;
5084 ;;
5085
5086 cygwin* | mingw* | cegcc*)
5087 # On Win9x/ME, this test blows up -- it succeeds, but takes
5088 # about 5 minutes as the teststring grows exponentially.
5089 # Worse, since 9x/ME are not pre-emptively multitasking,
5090 # you end up with a "frozen" computer, even though with patience
5091 # the test eventually succeeds (with a max line length of 256k).
5092 # Instead, let's just punt: use the minimum linelength reported by
5093 # all of the supported platforms: 8192 (on NT/2K/XP).
5094 lt_cv_sys_max_cmd_len=8192;
5095 ;;
5096
5097 mint*)
5098 # On MiNT this can take a long time and run out of memory.
5099 lt_cv_sys_max_cmd_len=8192;
5100 ;;
5101
5102 amigaos*)
5103 # On AmigaOS with pdksh, this test takes hours, literally.
5104 # So we just punt and use a minimum line length of 8192.
5105 lt_cv_sys_max_cmd_len=8192;
5106 ;;
5107
5108 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5109 # This has been around since 386BSD, at least. Likely further.
5110 if test -x /sbin/sysctl; then
5111 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5112 elif test -x /usr/sbin/sysctl; then
5113 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5114 else
5115 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5116 fi
5117 # And add a safety zone
5118 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5119 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5120 ;;
5121
5122 interix*)
5123 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5124 lt_cv_sys_max_cmd_len=196608
5125 ;;
5126
5127 osf*)
5128 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5129 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5130 # nice to cause kernel panics so lets avoid the loop below.
5131 # First set a reasonable default.
5132 lt_cv_sys_max_cmd_len=16384
5133 #
5134 if test -x /sbin/sysconfig; then
5135 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5136 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5137 esac
5138 fi
5139 ;;
5140 sco3.2v5*)
5141 lt_cv_sys_max_cmd_len=102400
5142 ;;
5143 sysv5* | sco5v6* | sysv4.2uw2*)
5144 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5145 if test -n "$kargmax"; then
5146 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5147 else
5148 lt_cv_sys_max_cmd_len=32768
5149 fi
5150 ;;
5151 *)
5152 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5153 if test -n "$lt_cv_sys_max_cmd_len"; then
5154 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5155 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5156 else
5157 # Make teststring a little bigger before we do anything with it.
5158 # a 1K string should be a reasonable start.
5159 for i in 1 2 3 4 5 6 7 8 ; do
5160 teststring=$teststring$teststring
5161 done
5162 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5163 # If test is not a shell built-in, we'll probably end up computing a
5164 # maximum length that is only half of the actual maximum length, but
5165 # we can't tell.
5166 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5167 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5168 test $i != 17 # 1/2 MB should be enough
5169 do
5170 i=`expr $i + 1`
5171 teststring=$teststring$teststring
5172 done
5173 # Only check the string length outside the loop.
5174 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5175 teststring=
5176 # Add a significant safety factor because C++ compilers can tack on
5177 # massive amounts of additional arguments before passing them to the
5178 # linker. It appears as though 1/2 is a usable value.
5179 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5180 fi
5181 ;;
5182 esac
5183
5184fi
5185
5186if test -n $lt_cv_sys_max_cmd_len ; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5188$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5189else
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5191$as_echo "none" >&6; }
5192fi
5193max_cmd_len=$lt_cv_sys_max_cmd_len
5194
5195
5196
5197
5198
5199
5200: ${CP="cp -f"}
5201: ${MV="mv -f"}
5202: ${RM="rm -f"}
5203
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5205$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5206# Try some XSI features
5207xsi_shell=no
5208( _lt_dummy="a/b/c"
5209 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5210 = c,a/b,, \
5211 && eval 'test $(( 1 + 1 )) -eq 2 \
5212 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5213 && xsi_shell=yes
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5215$as_echo "$xsi_shell" >&6; }
5216
5217
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5219$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5220lt_shell_append=no
5221( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5222 >/dev/null 2>&1 \
5223 && lt_shell_append=yes
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5225$as_echo "$lt_shell_append" >&6; }
5226
5227
5228if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5229 lt_unset=unset
5230else
5231 lt_unset=false
5232fi
5233
5234
5235
5236
5237
5238# test EBCDIC or ASCII
5239case `echo X|tr X '\101'` in
5240 A) # ASCII based system
5241 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5242 lt_SP2NL='tr \040 \012'
5243 lt_NL2SP='tr \015\012 \040\040'
5244 ;;
5245 *) # EBCDIC based system
5246 lt_SP2NL='tr \100 \n'
5247 lt_NL2SP='tr \r\n \100\100'
5248 ;;
5249esac
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5260$as_echo_n "checking for $LD option to reload object files... " >&6; }
5261if test "${lt_cv_ld_reload_flag+set}" = set; then :
5262 $as_echo_n "(cached) " >&6
5263else
5264 lt_cv_ld_reload_flag='-r'
5265fi
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5267$as_echo "$lt_cv_ld_reload_flag" >&6; }
5268reload_flag=$lt_cv_ld_reload_flag
5269case $reload_flag in
5270"" | " "*) ;;
5271*) reload_flag=" $reload_flag" ;;
5272esac
5273reload_cmds='$LD$reload_flag -o $output$reload_objs'
5274case $host_os in
5275 darwin*)
5276 if test "$GCC" = yes; then
5277 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5278 else
5279 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5280 fi
5281 ;;
5282esac
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292if test -n "$ac_tool_prefix"; then
5293 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5294set dummy ${ac_tool_prefix}objdump; ac_word=$2
5295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296$as_echo_n "checking for $ac_word... " >&6; }
5297if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5298 $as_echo_n "(cached) " >&6
5299else
5300 if test -n "$OBJDUMP"; then
5301 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5302else
5303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304for as_dir in $PATH
5305do
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5310 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 break 2
5313 fi
5314done
5315 done
5316IFS=$as_save_IFS
5317
5318fi
5319fi
5320OBJDUMP=$ac_cv_prog_OBJDUMP
5321if test -n "$OBJDUMP"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5323$as_echo "$OBJDUMP" >&6; }
5324else
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326$as_echo "no" >&6; }
5327fi
5328
5329
5330fi
5331if test -z "$ac_cv_prog_OBJDUMP"; then
5332 ac_ct_OBJDUMP=$OBJDUMP
5333 # Extract the first word of "objdump", so it can be a program name with args.
5334set dummy objdump; ac_word=$2
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336$as_echo_n "checking for $ac_word... " >&6; }
5337if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5338 $as_echo_n "(cached) " >&6
5339else
5340 if test -n "$ac_ct_OBJDUMP"; then
5341 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5342else
5343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344for as_dir in $PATH
5345do
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5353 fi
5354done
5355 done
5356IFS=$as_save_IFS
5357
5358fi
5359fi
5360ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5361if test -n "$ac_ct_OBJDUMP"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5363$as_echo "$ac_ct_OBJDUMP" >&6; }
5364else
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366$as_echo "no" >&6; }
5367fi
5368
5369 if test "x$ac_ct_OBJDUMP" = x; then
5370 OBJDUMP="false"
5371 else
5372 case $cross_compiling:$ac_tool_warned in
5373yes:)
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5376ac_tool_warned=yes ;;
5377esac
5378 OBJDUMP=$ac_ct_OBJDUMP
5379 fi
5380else
5381 OBJDUMP="$ac_cv_prog_OBJDUMP"
5382fi
5383
5384test -z "$OBJDUMP" && OBJDUMP=objdump
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5395$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5396if test "${lt_cv_deplibs_check_method+set}" = set; then :
5397 $as_echo_n "(cached) " >&6
5398else
5399 lt_cv_file_magic_cmd='$MAGIC_CMD'
5400lt_cv_file_magic_test_file=
5401lt_cv_deplibs_check_method='unknown'
5402# Need to set the preceding variable on all platforms that support
5403# interlibrary dependencies.
5404# 'none' -- dependencies not supported.
5405# `unknown' -- same as none, but documents that we really don't know.
5406# 'pass_all' -- all dependencies passed with no checks.
5407# 'test_compile' -- check by making test program.
5408# 'file_magic [[regex]]' -- check by looking for files in library path
5409# which responds to the $file_magic_cmd with a given extended regex.
5410# If you have `file' or equivalent on your system and you're not sure
5411# whether `pass_all' will *always* work, you probably want this one.
5412
5413case $host_os in
5414aix[4-9]*)
5415 lt_cv_deplibs_check_method=pass_all
5416 ;;
5417
5418beos*)
5419 lt_cv_deplibs_check_method=pass_all
5420 ;;
5421
5422bsdi[45]*)
5423 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5424 lt_cv_file_magic_cmd='/usr/bin/file -L'
5425 lt_cv_file_magic_test_file=/shlib/libc.so
5426 ;;
5427
5428cygwin*)
5429 # func_win32_libid is a shell function defined in ltmain.sh
5430 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5431 lt_cv_file_magic_cmd='func_win32_libid'
5432 ;;
5433
5434mingw* | pw32*)
5435 # Base MSYS/MinGW do not provide the 'file' command needed by
5436 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5437 # unless we find 'file', for example because we are cross-compiling.
5438 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5439 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5440 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5441 lt_cv_file_magic_cmd='func_win32_libid'
5442 else
5443 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5444 lt_cv_file_magic_cmd='$OBJDUMP -f'
5445 fi
5446 ;;
5447
5448cegcc*)
5449 # use the weaker test based on 'objdump'. See mingw*.
5450 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5451 lt_cv_file_magic_cmd='$OBJDUMP -f'
5452 ;;
5453
5454darwin* | rhapsody*)
5455 lt_cv_deplibs_check_method=pass_all
5456 ;;
5457
5458freebsd* | dragonfly*)
5459 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5460 case $host_cpu in
5461 i*86 )
5462 # Not sure whether the presence of OpenBSD here was a mistake.
5463 # Let's accept both of them until this is cleared up.
5464 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5465 lt_cv_file_magic_cmd=/usr/bin/file
5466 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5467 ;;
5468 esac
5469 else
5470 lt_cv_deplibs_check_method=pass_all
5471 fi
5472 ;;
5473
5474gnu*)
5475 lt_cv_deplibs_check_method=pass_all
5476 ;;
5477
5478haiku*)
5479 lt_cv_deplibs_check_method=pass_all
5480 ;;
5481
5482hpux10.20* | hpux11*)
5483 lt_cv_file_magic_cmd=/usr/bin/file
5484 case $host_cpu in
5485 ia64*)
5486 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5487 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5488 ;;
5489 hppa*64*)
5490 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]'
5491 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5492 ;;
5493 *)
5494 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5495 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5496 ;;
5497 esac
5498 ;;
5499
5500interix[3-9]*)
5501 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5502 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5503 ;;
5504
5505irix5* | irix6* | nonstopux*)
5506 case $LD in
5507 *-32|*"-32 ") libmagic=32-bit;;
5508 *-n32|*"-n32 ") libmagic=N32;;
5509 *-64|*"-64 ") libmagic=64-bit;;
5510 *) libmagic=never-match;;
5511 esac
5512 lt_cv_deplibs_check_method=pass_all
5513 ;;
5514
5515# This must be Linux ELF.
5516linux* | k*bsd*-gnu | kopensolaris*-gnu)
5517 lt_cv_deplibs_check_method=pass_all
5518 ;;
5519
5520netbsd*)
5521 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5523 else
5524 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5525 fi
5526 ;;
5527
5528newos6*)
5529 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5530 lt_cv_file_magic_cmd=/usr/bin/file
5531 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5532 ;;
5533
5534*nto* | *qnx*)
5535 lt_cv_deplibs_check_method=pass_all
5536 ;;
5537
5538openbsd*)
5539 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5541 else
5542 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5543 fi
5544 ;;
5545
5546osf3* | osf4* | osf5*)
5547 lt_cv_deplibs_check_method=pass_all
5548 ;;
5549
5550rdos*)
5551 lt_cv_deplibs_check_method=pass_all
5552 ;;
5553
5554solaris*)
5555 lt_cv_deplibs_check_method=pass_all
5556 ;;
5557
5558sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5559 lt_cv_deplibs_check_method=pass_all
5560 ;;
5561
5562sysv4 | sysv4.3*)
5563 case $host_vendor in
5564 motorola)
5565 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]'
5566 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5567 ;;
5568 ncr)
5569 lt_cv_deplibs_check_method=pass_all
5570 ;;
5571 sequent)
5572 lt_cv_file_magic_cmd='/bin/file'
5573 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5574 ;;
5575 sni)
5576 lt_cv_file_magic_cmd='/bin/file'
5577 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5578 lt_cv_file_magic_test_file=/lib/libc.so
5579 ;;
5580 siemens)
5581 lt_cv_deplibs_check_method=pass_all
5582 ;;
5583 pc)
5584 lt_cv_deplibs_check_method=pass_all
5585 ;;
5586 esac
5587 ;;
5588
5589tpf*)
5590 lt_cv_deplibs_check_method=pass_all
5591 ;;
5592esac
5593
5594fi
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5596$as_echo "$lt_cv_deplibs_check_method" >&6; }
5597file_magic_cmd=$lt_cv_file_magic_cmd
5598deplibs_check_method=$lt_cv_deplibs_check_method
5599test -z "$deplibs_check_method" && deplibs_check_method=unknown
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612if test -n "$ac_tool_prefix"; then
5613 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5614set dummy ${ac_tool_prefix}ar; ac_word=$2
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616$as_echo_n "checking for $ac_word... " >&6; }
5617if test "${ac_cv_prog_AR+set}" = set; then :
5618 $as_echo_n "(cached) " >&6
5619else
5620 if test -n "$AR"; then
5621 ac_cv_prog_AR="$AR" # Let the user override the test.
5622else
5623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624for as_dir in $PATH
5625do
5626 IFS=$as_save_IFS
5627 test -z "$as_dir" && as_dir=.
5628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5630 ac_cv_prog_AR="${ac_tool_prefix}ar"
5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 break 2
5633 fi
5634done
5635 done
5636IFS=$as_save_IFS
5637
5638fi
5639fi
5640AR=$ac_cv_prog_AR
5641if test -n "$AR"; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5643$as_echo "$AR" >&6; }
5644else
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646$as_echo "no" >&6; }
5647fi
5648
5649
5650fi
5651if test -z "$ac_cv_prog_AR"; then
5652 ac_ct_AR=$AR
5653 # Extract the first word of "ar", so it can be a program name with args.
5654set dummy ar; ac_word=$2
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656$as_echo_n "checking for $ac_word... " >&6; }
5657if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5658 $as_echo_n "(cached) " >&6
5659else
5660 if test -n "$ac_ct_AR"; then
5661 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5662else
5663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664for as_dir in $PATH
5665do
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5670 ac_cv_prog_ac_ct_AR="ar"
5671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5672 break 2
5673 fi
5674done
5675 done
5676IFS=$as_save_IFS
5677
5678fi
5679fi
5680ac_ct_AR=$ac_cv_prog_ac_ct_AR
5681if test -n "$ac_ct_AR"; then
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5683$as_echo "$ac_ct_AR" >&6; }
5684else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686$as_echo "no" >&6; }
5687fi
5688
5689 if test "x$ac_ct_AR" = x; then
5690 AR="false"
5691 else
5692 case $cross_compiling:$ac_tool_warned in
5693yes:)
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5696ac_tool_warned=yes ;;
5697esac
5698 AR=$ac_ct_AR
5699 fi
5700else
5701 AR="$ac_cv_prog_AR"
5702fi
5703
5704test -z "$AR" && AR=ar
5705test -z "$AR_FLAGS" && AR_FLAGS=cru
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717if test -n "$ac_tool_prefix"; then
5718 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5719set dummy ${ac_tool_prefix}strip; ac_word=$2
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721$as_echo_n "checking for $ac_word... " >&6; }
5722if test "${ac_cv_prog_STRIP+set}" = set; then :
5723 $as_echo_n "(cached) " >&6
5724else
5725 if test -n "$STRIP"; then
5726 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5727else
5728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729for as_dir in $PATH
5730do
5731 IFS=$as_save_IFS
5732 test -z "$as_dir" && as_dir=.
5733 for ac_exec_ext in '' $ac_executable_extensions; do
5734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5735 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5737 break 2
5738 fi
5739done
5740 done
5741IFS=$as_save_IFS
5742
5743fi
5744fi
5745STRIP=$ac_cv_prog_STRIP
5746if test -n "$STRIP"; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5748$as_echo "$STRIP" >&6; }
5749else
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751$as_echo "no" >&6; }
5752fi
5753
5754
5755fi
5756if test -z "$ac_cv_prog_STRIP"; then
5757 ac_ct_STRIP=$STRIP
5758 # Extract the first word of "strip", so it can be a program name with args.
5759set dummy strip; ac_word=$2
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761$as_echo_n "checking for $ac_word... " >&6; }
5762if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5763 $as_echo_n "(cached) " >&6
5764else
5765 if test -n "$ac_ct_STRIP"; then
5766 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5767else
5768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769for as_dir in $PATH
5770do
5771 IFS=$as_save_IFS
5772 test -z "$as_dir" && as_dir=.
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5775 ac_cv_prog_ac_ct_STRIP="strip"
5776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5777 break 2
5778 fi
5779done
5780 done
5781IFS=$as_save_IFS
5782
5783fi
5784fi
5785ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5786if test -n "$ac_ct_STRIP"; then
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5788$as_echo "$ac_ct_STRIP" >&6; }
5789else
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791$as_echo "no" >&6; }
5792fi
5793
5794 if test "x$ac_ct_STRIP" = x; then
5795 STRIP=":"
5796 else
5797 case $cross_compiling:$ac_tool_warned in
5798yes:)
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5801ac_tool_warned=yes ;;
5802esac
5803 STRIP=$ac_ct_STRIP
5804 fi
5805else
5806 STRIP="$ac_cv_prog_STRIP"
5807fi
5808
5809test -z "$STRIP" && STRIP=:
5810
5811
5812
5813
5814
5815
5816if test -n "$ac_tool_prefix"; then
5817 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5818set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820$as_echo_n "checking for $ac_word... " >&6; }
5821if test "${ac_cv_prog_RANLIB+set}" = set; then :
5822 $as_echo_n "(cached) " >&6
5823else
5824 if test -n "$RANLIB"; then
5825 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5826else
5827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828for as_dir in $PATH
5829do
5830 IFS=$as_save_IFS
5831 test -z "$as_dir" && as_dir=.
5832 for ac_exec_ext in '' $ac_executable_extensions; do
5833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5834 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 break 2
5837 fi
5838done
5839 done
5840IFS=$as_save_IFS
5841
5842fi
5843fi
5844RANLIB=$ac_cv_prog_RANLIB
5845if test -n "$RANLIB"; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5847$as_echo "$RANLIB" >&6; }
5848else
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850$as_echo "no" >&6; }
5851fi
5852
5853
5854fi
5855if test -z "$ac_cv_prog_RANLIB"; then
5856 ac_ct_RANLIB=$RANLIB
5857 # Extract the first word of "ranlib", so it can be a program name with args.
5858set dummy ranlib; ac_word=$2
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860$as_echo_n "checking for $ac_word... " >&6; }
5861if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5863else
5864 if test -n "$ac_ct_RANLIB"; then
5865 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5866else
5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868for as_dir in $PATH
5869do
5870 IFS=$as_save_IFS
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5874 ac_cv_prog_ac_ct_RANLIB="ranlib"
5875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 break 2
5877 fi
5878done
5879 done
5880IFS=$as_save_IFS
5881
5882fi
5883fi
5884ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5885if test -n "$ac_ct_RANLIB"; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5887$as_echo "$ac_ct_RANLIB" >&6; }
5888else
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890$as_echo "no" >&6; }
5891fi
5892
5893 if test "x$ac_ct_RANLIB" = x; then
5894 RANLIB=":"
5895 else
5896 case $cross_compiling:$ac_tool_warned in
5897yes:)
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5900ac_tool_warned=yes ;;
5901esac
5902 RANLIB=$ac_ct_RANLIB
5903 fi
5904else
5905 RANLIB="$ac_cv_prog_RANLIB"
5906fi
5907
5908test -z "$RANLIB" && RANLIB=:
5909
5910
5911
5912
5913
5914
5915# Determine commands to create old-style static archives.
5916old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5917old_postinstall_cmds='chmod 644 $oldlib'
5918old_postuninstall_cmds=
5919
5920if test -n "$RANLIB"; then
5921 case $host_os in
5922 openbsd*)
5923 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5924 ;;
5925 *)
5926 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5927 ;;
5928 esac
5929 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5930fi
5931
5932case $host_os in
5933 darwin*)
5934 lock_old_archive_extraction=yes ;;
5935 *)
5936 lock_old_archive_extraction=no ;;
5937esac
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977# If no C compiler was specified, use CC.
5978LTCC=${LTCC-"$CC"}
5979
5980# If no C compiler flags were specified, use CFLAGS.
5981LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5982
5983# Allow CC to be a program name with arguments.
5984compiler=$CC
5985
5986
5987# Check for command to grab the raw symbol name followed by C symbol from nm.
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5989$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5990if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5991 $as_echo_n "(cached) " >&6
5992else
5993
5994# These are sane defaults that work on at least a few old systems.
5995# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5996
5997# Character class describing NM global symbol codes.
5998symcode='[BCDEGRST]'
5999
6000# Regexp to match symbols that can be accessed directly from C.
6001sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6002
6003# Define system-specific variables.
6004case $host_os in
6005aix*)
6006 symcode='[BCDT]'
6007 ;;
6008cygwin* | mingw* | pw32* | cegcc*)
6009 symcode='[ABCDGISTW]'
6010 ;;
6011hpux*)
6012 if test "$host_cpu" = ia64; then
6013 symcode='[ABCDEGRST]'
6014 fi
6015 ;;
6016irix* | nonstopux*)
6017 symcode='[BCDEGRST]'
6018 ;;
6019osf*)
6020 symcode='[BCDEGQRST]'
6021 ;;
6022solaris*)
6023 symcode='[BDRT]'
6024 ;;
6025sco3.2v5*)
6026 symcode='[DT]'
6027 ;;
6028sysv4.2uw2*)
6029 symcode='[DT]'
6030 ;;
6031sysv5* | sco5v6* | unixware* | OpenUNIX*)
6032 symcode='[ABDT]'
6033 ;;
6034sysv4)
6035 symcode='[DFNSTU]'
6036 ;;
6037esac
6038
6039# If we're using GNU nm, then use its standard symbol codes.
6040case `$NM -V 2>&1` in
6041*GNU* | *'with BFD'*)
6042 symcode='[ABCDGIRSTW]' ;;
6043esac
6044
6045# Transform an extracted symbol line into a proper C declaration.
6046# Some systems (esp. on ia64) link data and code symbols differently,
6047# so use this general approach.
6048lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6049
6050# Transform an extracted symbol line into symbol name and symbol address
6051lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6052lt_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'"
6053
6054# Handle CRLF in mingw tool chain
6055opt_cr=
6056case $build_os in
6057mingw*)
6058 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6059 ;;
6060esac
6061
6062# Try without a prefix underscore, then with it.
6063for ac_symprfx in "" "_"; do
6064
6065 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6066 symxfrm="\\1 $ac_symprfx\\2 \\2"
6067
6068 # Write the raw and C identifiers.
6069 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6070 # Fake it for dumpbin and say T for any non-static function
6071 # and D for any global variable.
6072 # Also find C++ and __fastcall symbols from MSVC++,
6073 # which start with @ or ?.
6074 lt_cv_sys_global_symbol_pipe="$AWK '"\
6075" {last_section=section; section=\$ 3};"\
6076" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6077" \$ 0!~/External *\|/{next};"\
6078" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6079" {if(hide[section]) next};"\
6080" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6081" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6082" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6083" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6084" ' prfx=^$ac_symprfx"
6085 else
6086 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6087 fi
6088
6089 # Check to see that the pipe works correctly.
6090 pipe_works=no
6091
6092 rm -f conftest*
6093 cat > conftest.$ac_ext <<_LT_EOF
6094#ifdef __cplusplus
6095extern "C" {
6096#endif
6097char nm_test_var;
6098void nm_test_func(void);
6099void nm_test_func(void){}
6100#ifdef __cplusplus
6101}
6102#endif
6103int main(){nm_test_var='a';nm_test_func();return(0);}
6104_LT_EOF
6105
6106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6107 (eval $ac_compile) 2>&5
6108 ac_status=$?
6109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6110 test $ac_status = 0; }; then
6111 # Now try to grab the symbols.
6112 nlist=conftest.nm
6113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6114 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6115 ac_status=$?
6116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6117 test $ac_status = 0; } && test -s "$nlist"; then
6118 # Try sorting and uniquifying the output.
6119 if sort "$nlist" | uniq > "$nlist"T; then
6120 mv -f "$nlist"T "$nlist"
6121 else
6122 rm -f "$nlist"T
6123 fi
6124
6125 # Make sure that we snagged all the symbols we need.
6126 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6127 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6128 cat <<_LT_EOF > conftest.$ac_ext
6129#ifdef __cplusplus
6130extern "C" {
6131#endif
6132
6133_LT_EOF
6134 # Now generate the symbol file.
6135 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6136
6137 cat <<_LT_EOF >> conftest.$ac_ext
6138
6139/* The mapping between symbol names and symbols. */
6140const struct {
6141 const char *name;
6142 void *address;
6143}
6144lt__PROGRAM__LTX_preloaded_symbols[] =
6145{
6146 { "@PROGRAM@", (void *) 0 },
6147_LT_EOF
6148 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6149 cat <<\_LT_EOF >> conftest.$ac_ext
6150 {0, (void *) 0}
6151};
6152
6153/* This works around a problem in FreeBSD linker */
6154#ifdef FREEBSD_WORKAROUND
6155static const void *lt_preloaded_setup() {
6156 return lt__PROGRAM__LTX_preloaded_symbols;
6157}
6158#endif
6159
6160#ifdef __cplusplus
6161}
6162#endif
6163_LT_EOF
6164 # Now try linking the two files.
6165 mv conftest.$ac_objext conftstm.$ac_objext
6166 lt_save_LIBS="$LIBS"
6167 lt_save_CFLAGS="$CFLAGS"
6168 LIBS="conftstm.$ac_objext"
6169 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6171 (eval $ac_link) 2>&5
6172 ac_status=$?
6173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6174 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6175 pipe_works=yes
6176 fi
6177 LIBS="$lt_save_LIBS"
6178 CFLAGS="$lt_save_CFLAGS"
6179 else
6180 echo "cannot find nm_test_func in $nlist" >&5
6181 fi
6182 else
6183 echo "cannot find nm_test_var in $nlist" >&5
6184 fi
6185 else
6186 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6187 fi
6188 else
6189 echo "$progname: failed program was:" >&5
6190 cat conftest.$ac_ext >&5
6191 fi
6192 rm -rf conftest* conftst*
6193
6194 # Do not use the global_symbol_pipe unless it works.
6195 if test "$pipe_works" = yes; then
6196 break
6197 else
6198 lt_cv_sys_global_symbol_pipe=
6199 fi
6200done
6201
6202fi
6203
6204if test -z "$lt_cv_sys_global_symbol_pipe"; then
6205 lt_cv_sys_global_symbol_to_cdecl=
6206fi
6207if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6209$as_echo "failed" >&6; }
6210else
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6212$as_echo "ok" >&6; }
6213fi
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236# Check whether --enable-libtool-lock was given.
6237if test "${enable_libtool_lock+set}" = set; then :
6238 enableval=$enable_libtool_lock;
6239fi
6240
6241test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6242
6243# Some flags need to be propagated to the compiler or linker for good
6244# libtool support.
6245case $host in
6246ia64-*-hpux*)
6247 # Find out which ABI we are using.
6248 echo 'int i;' > conftest.$ac_ext
6249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6250 (eval $ac_compile) 2>&5
6251 ac_status=$?
6252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6253 test $ac_status = 0; }; then
6254 case `/usr/bin/file conftest.$ac_objext` in
6255 *ELF-32*)
6256 HPUX_IA64_MODE="32"
6257 ;;
6258 *ELF-64*)
6259 HPUX_IA64_MODE="64"
6260 ;;
6261 esac
6262 fi
6263 rm -rf conftest*
6264 ;;
6265*-*-irix6*)
6266 # Find out which ABI we are using.
6267 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6269 (eval $ac_compile) 2>&5
6270 ac_status=$?
6271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6272 test $ac_status = 0; }; then
6273 if test "$lt_cv_prog_gnu_ld" = yes; then
6274 case `/usr/bin/file conftest.$ac_objext` in
6275 *32-bit*)
6276 LD="${LD-ld} -melf32bsmip"
6277 ;;
6278 *N32*)
6279 LD="${LD-ld} -melf32bmipn32"
6280 ;;
6281 *64-bit*)
6282 LD="${LD-ld} -melf64bmip"
6283 ;;
6284 esac
6285 else
6286 case `/usr/bin/file conftest.$ac_objext` in
6287 *32-bit*)
6288 LD="${LD-ld} -32"
6289 ;;
6290 *N32*)
6291 LD="${LD-ld} -n32"
6292 ;;
6293 *64-bit*)
6294 LD="${LD-ld} -64"
6295 ;;
6296 esac
6297 fi
6298 fi
6299 rm -rf conftest*
6300 ;;
6301
6302x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6303s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6304 # Find out which ABI we are using.
6305 echo 'int i;' > conftest.$ac_ext
6306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6307 (eval $ac_compile) 2>&5
6308 ac_status=$?
6309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6310 test $ac_status = 0; }; then
6311 case `/usr/bin/file conftest.o` in
6312 *32-bit*)
6313 case $host in
6314 x86_64-*kfreebsd*-gnu)
6315 LD="${LD-ld} -m elf_i386_fbsd"
6316 ;;
6317 x86_64-*linux*)
6318 case `/usr/bin/file conftest.o` in
6319 *x86-64*)
6320 LD="${LD-ld} -m elf32_x86_64"
6321 ;;
6322 *)
6323 LD="${LD-ld} -m elf_i386"
6324 ;;
6325 esac
6326 ;;
6327 powerpc64le-*linux*)
6328 LD="${LD-ld} -m elf32lppclinux"
6329 ;;
6330 powerpc64-*linux*)
6331 LD="${LD-ld} -m elf32ppclinux"
6332 ;;
6333 s390x-*linux*)
6334 LD="${LD-ld} -m elf_s390"
6335 ;;
6336 sparc64-*linux*)
6337 LD="${LD-ld} -m elf32_sparc"
6338 ;;
6339 esac
6340 ;;
6341 *64-bit*)
6342 case $host in
6343 x86_64-*kfreebsd*-gnu)
6344 LD="${LD-ld} -m elf_x86_64_fbsd"
6345 ;;
6346 x86_64-*linux*)
6347 LD="${LD-ld} -m elf_x86_64"
6348 ;;
6349 powerpcle-*linux*)
6350 LD="${LD-ld} -m elf64lppc"
6351 ;;
6352 powerpc-*linux*)
6353 LD="${LD-ld} -m elf64ppc"
6354 ;;
6355 s390*-*linux*|s390*-*tpf*)
6356 LD="${LD-ld} -m elf64_s390"
6357 ;;
6358 sparc*-*linux*)
6359 LD="${LD-ld} -m elf64_sparc"
6360 ;;
6361 esac
6362 ;;
6363 esac
6364 fi
6365 rm -rf conftest*
6366 ;;
6367
6368*-*-sco3.2v5*)
6369 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6370 SAVE_CFLAGS="$CFLAGS"
6371 CFLAGS="$CFLAGS -belf"
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6373$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6374if test "${lt_cv_cc_needs_belf+set}" = set; then :
6375 $as_echo_n "(cached) " >&6
6376else
6377 ac_ext=c
6378ac_cpp='$CPP $CPPFLAGS'
6379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6381ac_compiler_gnu=$ac_cv_c_compiler_gnu
6382
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384/* end confdefs.h. */
6385
6386int
6387main ()
6388{
6389
6390 ;
6391 return 0;
6392}
6393_ACEOF
6394if ac_fn_c_try_link "$LINENO"; then :
6395 lt_cv_cc_needs_belf=yes
6396else
6397 lt_cv_cc_needs_belf=no
6398fi
6399rm -f core conftest.err conftest.$ac_objext \
6400 conftest$ac_exeext conftest.$ac_ext
6401 ac_ext=c
6402ac_cpp='$CPP $CPPFLAGS'
6403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6405ac_compiler_gnu=$ac_cv_c_compiler_gnu
6406
6407fi
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6409$as_echo "$lt_cv_cc_needs_belf" >&6; }
6410 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6411 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6412 CFLAGS="$SAVE_CFLAGS"
6413 fi
6414 ;;
6415sparc*-*solaris*)
6416 # Find out which ABI we are using.
6417 echo 'int i;' > conftest.$ac_ext
6418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6419 (eval $ac_compile) 2>&5
6420 ac_status=$?
6421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6422 test $ac_status = 0; }; then
6423 case `/usr/bin/file conftest.o` in
6424 *64-bit*)
6425 case $lt_cv_prog_gnu_ld in
6426 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6427 *)
6428 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6429 LD="${LD-ld} -64"
6430 fi
6431 ;;
6432 esac
6433 ;;
6434 esac
6435 fi
6436 rm -rf conftest*
6437 ;;
6438esac
6439
6440need_locks="$enable_libtool_lock"
6441
6442
6443 case $host_os in
6444 rhapsody* | darwin*)
6445 if test -n "$ac_tool_prefix"; then
6446 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6447set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449$as_echo_n "checking for $ac_word... " >&6; }
6450if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6451 $as_echo_n "(cached) " >&6
6452else
6453 if test -n "$DSYMUTIL"; then
6454 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6455else
6456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457for as_dir in $PATH
6458do
6459 IFS=$as_save_IFS
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 break 2
6466 fi
6467done
6468 done
6469IFS=$as_save_IFS
6470
6471fi
6472fi
6473DSYMUTIL=$ac_cv_prog_DSYMUTIL
6474if test -n "$DSYMUTIL"; then
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6476$as_echo "$DSYMUTIL" >&6; }
6477else
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479$as_echo "no" >&6; }
6480fi
6481
6482
6483fi
6484if test -z "$ac_cv_prog_DSYMUTIL"; then
6485 ac_ct_DSYMUTIL=$DSYMUTIL
6486 # Extract the first word of "dsymutil", so it can be a program name with args.
6487set dummy dsymutil; ac_word=$2
6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489$as_echo_n "checking for $ac_word... " >&6; }
6490if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6491 $as_echo_n "(cached) " >&6
6492else
6493 if test -n "$ac_ct_DSYMUTIL"; then
6494 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6495else
6496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497for as_dir in $PATH
6498do
6499 IFS=$as_save_IFS
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6503 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 break 2
6506 fi
6507done
6508 done
6509IFS=$as_save_IFS
6510
6511fi
6512fi
6513ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6514if test -n "$ac_ct_DSYMUTIL"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6516$as_echo "$ac_ct_DSYMUTIL" >&6; }
6517else
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519$as_echo "no" >&6; }
6520fi
6521
6522 if test "x$ac_ct_DSYMUTIL" = x; then
6523 DSYMUTIL=":"
6524 else
6525 case $cross_compiling:$ac_tool_warned in
6526yes:)
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6529ac_tool_warned=yes ;;
6530esac
6531 DSYMUTIL=$ac_ct_DSYMUTIL
6532 fi
6533else
6534 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6535fi
6536
6537 if test -n "$ac_tool_prefix"; then
6538 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6539set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541$as_echo_n "checking for $ac_word... " >&6; }
6542if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6543 $as_echo_n "(cached) " >&6
6544else
6545 if test -n "$NMEDIT"; then
6546 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6547else
6548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549for as_dir in $PATH
6550do
6551 IFS=$as_save_IFS
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 break 2
6558 fi
6559done
6560 done
6561IFS=$as_save_IFS
6562
6563fi
6564fi
6565NMEDIT=$ac_cv_prog_NMEDIT
6566if test -n "$NMEDIT"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6568$as_echo "$NMEDIT" >&6; }
6569else
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571$as_echo "no" >&6; }
6572fi
6573
6574
6575fi
6576if test -z "$ac_cv_prog_NMEDIT"; then
6577 ac_ct_NMEDIT=$NMEDIT
6578 # Extract the first word of "nmedit", so it can be a program name with args.
6579set dummy nmedit; ac_word=$2
6580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581$as_echo_n "checking for $ac_word... " >&6; }
6582if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6583 $as_echo_n "(cached) " >&6
6584else
6585 if test -n "$ac_ct_NMEDIT"; then
6586 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6587else
6588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589for as_dir in $PATH
6590do
6591 IFS=$as_save_IFS
6592 test -z "$as_dir" && as_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6595 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 break 2
6598 fi
6599done
6600 done
6601IFS=$as_save_IFS
6602
6603fi
6604fi
6605ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6606if test -n "$ac_ct_NMEDIT"; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6608$as_echo "$ac_ct_NMEDIT" >&6; }
6609else
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611$as_echo "no" >&6; }
6612fi
6613
6614 if test "x$ac_ct_NMEDIT" = x; then
6615 NMEDIT=":"
6616 else
6617 case $cross_compiling:$ac_tool_warned in
6618yes:)
6619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6621ac_tool_warned=yes ;;
6622esac
6623 NMEDIT=$ac_ct_NMEDIT
6624 fi
6625else
6626 NMEDIT="$ac_cv_prog_NMEDIT"
6627fi
6628
6629 if test -n "$ac_tool_prefix"; then
6630 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6631set dummy ${ac_tool_prefix}lipo; ac_word=$2
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633$as_echo_n "checking for $ac_word... " >&6; }
6634if test "${ac_cv_prog_LIPO+set}" = set; then :
6635 $as_echo_n "(cached) " >&6
6636else
6637 if test -n "$LIPO"; then
6638 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6639else
6640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641for as_dir in $PATH
6642do
6643 IFS=$as_save_IFS
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6647 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 break 2
6650 fi
6651done
6652 done
6653IFS=$as_save_IFS
6654
6655fi
6656fi
6657LIPO=$ac_cv_prog_LIPO
6658if test -n "$LIPO"; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6660$as_echo "$LIPO" >&6; }
6661else
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663$as_echo "no" >&6; }
6664fi
6665
6666
6667fi
6668if test -z "$ac_cv_prog_LIPO"; then
6669 ac_ct_LIPO=$LIPO
6670 # Extract the first word of "lipo", so it can be a program name with args.
6671set dummy lipo; ac_word=$2
6672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673$as_echo_n "checking for $ac_word... " >&6; }
6674if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6675 $as_echo_n "(cached) " >&6
6676else
6677 if test -n "$ac_ct_LIPO"; then
6678 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6679else
6680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681for as_dir in $PATH
6682do
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6687 ac_cv_prog_ac_ct_LIPO="lipo"
6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 break 2
6690 fi
6691done
6692 done
6693IFS=$as_save_IFS
6694
6695fi
6696fi
6697ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6698if test -n "$ac_ct_LIPO"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6700$as_echo "$ac_ct_LIPO" >&6; }
6701else
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703$as_echo "no" >&6; }
6704fi
6705
6706 if test "x$ac_ct_LIPO" = x; then
6707 LIPO=":"
6708 else
6709 case $cross_compiling:$ac_tool_warned in
6710yes:)
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6712$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6713ac_tool_warned=yes ;;
6714esac
6715 LIPO=$ac_ct_LIPO
6716 fi
6717else
6718 LIPO="$ac_cv_prog_LIPO"
6719fi
6720
6721 if test -n "$ac_tool_prefix"; then
6722 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6723set dummy ${ac_tool_prefix}otool; ac_word=$2
6724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725$as_echo_n "checking for $ac_word... " >&6; }
6726if test "${ac_cv_prog_OTOOL+set}" = set; then :
6727 $as_echo_n "(cached) " >&6
6728else
6729 if test -n "$OTOOL"; then
6730 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6731else
6732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733for as_dir in $PATH
6734do
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6739 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6742 fi
6743done
6744 done
6745IFS=$as_save_IFS
6746
6747fi
6748fi
6749OTOOL=$ac_cv_prog_OTOOL
6750if test -n "$OTOOL"; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6752$as_echo "$OTOOL" >&6; }
6753else
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755$as_echo "no" >&6; }
6756fi
6757
6758
6759fi
6760if test -z "$ac_cv_prog_OTOOL"; then
6761 ac_ct_OTOOL=$OTOOL
6762 # Extract the first word of "otool", so it can be a program name with args.
6763set dummy otool; ac_word=$2
6764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765$as_echo_n "checking for $ac_word... " >&6; }
6766if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6767 $as_echo_n "(cached) " >&6
6768else
6769 if test -n "$ac_ct_OTOOL"; then
6770 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6771else
6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773for as_dir in $PATH
6774do
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_prog_ac_ct_OTOOL="otool"
6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6782 fi
6783done
6784 done
6785IFS=$as_save_IFS
6786
6787fi
6788fi
6789ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6790if test -n "$ac_ct_OTOOL"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6792$as_echo "$ac_ct_OTOOL" >&6; }
6793else
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795$as_echo "no" >&6; }
6796fi
6797
6798 if test "x$ac_ct_OTOOL" = x; then
6799 OTOOL=":"
6800 else
6801 case $cross_compiling:$ac_tool_warned in
6802yes:)
6803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6805ac_tool_warned=yes ;;
6806esac
6807 OTOOL=$ac_ct_OTOOL
6808 fi
6809else
6810 OTOOL="$ac_cv_prog_OTOOL"
6811fi
6812
6813 if test -n "$ac_tool_prefix"; then
6814 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6815set dummy ${ac_tool_prefix}otool64; ac_word=$2
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817$as_echo_n "checking for $ac_word... " >&6; }
6818if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6819 $as_echo_n "(cached) " >&6
6820else
6821 if test -n "$OTOOL64"; then
6822 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6823else
6824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825for as_dir in $PATH
6826do
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 break 2
6834 fi
6835done
6836 done
6837IFS=$as_save_IFS
6838
6839fi
6840fi
6841OTOOL64=$ac_cv_prog_OTOOL64
6842if test -n "$OTOOL64"; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6844$as_echo "$OTOOL64" >&6; }
6845else
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847$as_echo "no" >&6; }
6848fi
6849
6850
6851fi
6852if test -z "$ac_cv_prog_OTOOL64"; then
6853 ac_ct_OTOOL64=$OTOOL64
6854 # Extract the first word of "otool64", so it can be a program name with args.
6855set dummy otool64; ac_word=$2
6856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857$as_echo_n "checking for $ac_word... " >&6; }
6858if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6859 $as_echo_n "(cached) " >&6
6860else
6861 if test -n "$ac_ct_OTOOL64"; then
6862 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6863else
6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865for as_dir in $PATH
6866do
6867 IFS=$as_save_IFS
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871 ac_cv_prog_ac_ct_OTOOL64="otool64"
6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 break 2
6874 fi
6875done
6876 done
6877IFS=$as_save_IFS
6878
6879fi
6880fi
6881ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6882if test -n "$ac_ct_OTOOL64"; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6884$as_echo "$ac_ct_OTOOL64" >&6; }
6885else
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887$as_echo "no" >&6; }
6888fi
6889
6890 if test "x$ac_ct_OTOOL64" = x; then
6891 OTOOL64=":"
6892 else
6893 case $cross_compiling:$ac_tool_warned in
6894yes:)
6895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6897ac_tool_warned=yes ;;
6898esac
6899 OTOOL64=$ac_ct_OTOOL64
6900 fi
6901else
6902 OTOOL64="$ac_cv_prog_OTOOL64"
6903fi
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6932$as_echo_n "checking for -single_module linker flag... " >&6; }
6933if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6934 $as_echo_n "(cached) " >&6
6935else
6936 lt_cv_apple_cc_single_mod=no
6937 if test -z "${LT_MULTI_MODULE}"; then
6938 # By default we will add the -single_module flag. You can override
6939 # by either setting the environment variable LT_MULTI_MODULE
6940 # non-empty at configure time, or by adding -multi_module to the
6941 # link flags.
6942 rm -rf libconftest.dylib*
6943 echo "int foo(void){return 1;}" > conftest.c
6944 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6945-dynamiclib -Wl,-single_module conftest.c" >&5
6946 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6947 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6948 _lt_result=$?
6949 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6950 lt_cv_apple_cc_single_mod=yes
6951 else
6952 cat conftest.err >&5
6953 fi
6954 rm -rf libconftest.dylib*
6955 rm -f conftest.*
6956 fi
6957fi
6958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6959$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6961$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6962if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6963 $as_echo_n "(cached) " >&6
6964else
6965 lt_cv_ld_exported_symbols_list=no
6966 save_LDFLAGS=$LDFLAGS
6967 echo "_main" > conftest.sym
6968 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970/* end confdefs.h. */
6971
6972int
6973main ()
6974{
6975
6976 ;
6977 return 0;
6978}
6979_ACEOF
6980if ac_fn_c_try_link "$LINENO"; then :
6981 lt_cv_ld_exported_symbols_list=yes
6982else
6983 lt_cv_ld_exported_symbols_list=no
6984fi
6985rm -f core conftest.err conftest.$ac_objext \
6986 conftest$ac_exeext conftest.$ac_ext
6987 LDFLAGS="$save_LDFLAGS"
6988
6989fi
6990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6991$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6993$as_echo_n "checking for -force_load linker flag... " >&6; }
6994if test "${lt_cv_ld_force_load+set}" = set; then :
6995 $as_echo_n "(cached) " >&6
6996else
6997 lt_cv_ld_force_load=no
6998 cat > conftest.c << _LT_EOF
6999int forced_loaded() { return 2;}
7000_LT_EOF
7001 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7002 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7003 echo "$AR cru libconftest.a conftest.o" >&5
7004 $AR cru libconftest.a conftest.o 2>&5
7005 cat > conftest.c << _LT_EOF
7006int main() { return 0;}
7007_LT_EOF
7008 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7009 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7010 _lt_result=$?
7011 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7012 lt_cv_ld_force_load=yes
7013 else
7014 cat conftest.err >&5
7015 fi
7016 rm -f conftest.err libconftest.a conftest conftest.c
7017 rm -rf conftest.dSYM
7018
7019fi
7020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7021$as_echo "$lt_cv_ld_force_load" >&6; }
7022 case $host_os in
7023 rhapsody* | darwin1.[012])
7024 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7025 darwin1.*)
7026 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7027 darwin*) # darwin 5.x on
7028 # if running on 10.5 or later, the deployment target defaults
7029 # to the OS version, if on x86, and 10.4, the deployment
7030 # target defaults to 10.4. Don't you love it?
7031 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7032 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7033 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ebf6d33b 7034 10.[012][,.]*)
ddc8de03
PM
7035 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7036 10.*)
7037 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7038 esac
7039 ;;
7040 esac
7041 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7042 _lt_dar_single_mod='$single_module'
7043 fi
7044 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7045 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7046 else
7047 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7048 fi
7049 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7050 _lt_dsymutil='~$DSYMUTIL $lib || :'
7051 else
7052 _lt_dsymutil=
7053 fi
7054 ;;
7055 esac
7056
7057for ac_header in dlfcn.h
7058do :
7059 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7060"
7061if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7062 cat >>confdefs.h <<_ACEOF
7063#define HAVE_DLFCN_H 1
7064_ACEOF
7065
7066fi
7067
7068done
7069
7070
7071
7072
7073
7074# Set options
7075# Check whether --enable-static was given.
7076if test "${enable_static+set}" = set; then :
7077 enableval=$enable_static; p=${PACKAGE-default}
7078 case $enableval in
7079 yes) enable_static=yes ;;
7080 no) enable_static=no ;;
7081 *)
7082 enable_static=no
7083 # Look at the argument we got. We use all the common list separators.
7084 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7085 for pkg in $enableval; do
7086 IFS="$lt_save_ifs"
7087 if test "X$pkg" = "X$p"; then
7088 enable_static=yes
7089 fi
7090 done
7091 IFS="$lt_save_ifs"
7092 ;;
7093 esac
7094else
7095 enable_static=no
7096fi
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107 enable_dlopen=no
7108
7109
7110 enable_win32_dll=no
7111
7112
7113 # Check whether --enable-shared was given.
7114if test "${enable_shared+set}" = set; then :
7115 enableval=$enable_shared; p=${PACKAGE-default}
7116 case $enableval in
7117 yes) enable_shared=yes ;;
7118 no) enable_shared=no ;;
7119 *)
7120 enable_shared=no
7121 # Look at the argument we got. We use all the common list separators.
7122 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7123 for pkg in $enableval; do
7124 IFS="$lt_save_ifs"
7125 if test "X$pkg" = "X$p"; then
7126 enable_shared=yes
7127 fi
7128 done
7129 IFS="$lt_save_ifs"
7130 ;;
7131 esac
7132else
7133 enable_shared=yes
7134fi
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146# Check whether --with-pic was given.
7147if test "${with_pic+set}" = set; then :
7148 withval=$with_pic; pic_mode="$withval"
7149else
7150 pic_mode=default
7151fi
7152
7153
7154test -z "$pic_mode" && pic_mode=default
7155
7156
7157
7158
7159
7160
7161
7162 # Check whether --enable-fast-install was given.
7163if test "${enable_fast_install+set}" = set; then :
7164 enableval=$enable_fast_install; p=${PACKAGE-default}
7165 case $enableval in
7166 yes) enable_fast_install=yes ;;
7167 no) enable_fast_install=no ;;
7168 *)
7169 enable_fast_install=no
7170 # Look at the argument we got. We use all the common list separators.
7171 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7172 for pkg in $enableval; do
7173 IFS="$lt_save_ifs"
7174 if test "X$pkg" = "X$p"; then
7175 enable_fast_install=yes
7176 fi
7177 done
7178 IFS="$lt_save_ifs"
7179 ;;
7180 esac
7181else
7182 enable_fast_install=yes
7183fi
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195# This can be used to rebuild libtool when needed
7196LIBTOOL_DEPS="$ltmain"
7197
7198# Always use our own libtool.
7199LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226test -z "$LN_S" && LN_S="ln -s"
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241if test -n "${ZSH_VERSION+set}" ; then
7242 setopt NO_GLOB_SUBST
7243fi
7244
7245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7246$as_echo_n "checking for objdir... " >&6; }
7247if test "${lt_cv_objdir+set}" = set; then :
7248 $as_echo_n "(cached) " >&6
7249else
7250 rm -f .libs 2>/dev/null
7251mkdir .libs 2>/dev/null
7252if test -d .libs; then
7253 lt_cv_objdir=.libs
7254else
7255 # MS-DOS does not allow filenames that begin with a dot.
7256 lt_cv_objdir=_libs
7257fi
7258rmdir .libs 2>/dev/null
7259fi
7260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7261$as_echo "$lt_cv_objdir" >&6; }
7262objdir=$lt_cv_objdir
7263
7264
7265
7266
7267
7268cat >>confdefs.h <<_ACEOF
7269#define LT_OBJDIR "$lt_cv_objdir/"
7270_ACEOF
7271
7272
7273
7274
7275case $host_os in
7276aix3*)
7277 # AIX sometimes has problems with the GCC collect2 program. For some
7278 # reason, if we set the COLLECT_NAMES environment variable, the problems
7279 # vanish in a puff of smoke.
7280 if test "X${COLLECT_NAMES+set}" != Xset; then
7281 COLLECT_NAMES=
7282 export COLLECT_NAMES
7283 fi
7284 ;;
7285esac
7286
7287# Global variables:
7288ofile=libtool
7289can_build_shared=yes
7290
7291# All known linkers require a `.a' archive for static linking (except MSVC,
7292# which needs '.lib').
7293libext=a
7294
7295with_gnu_ld="$lt_cv_prog_gnu_ld"
7296
7297old_CC="$CC"
7298old_CFLAGS="$CFLAGS"
7299
7300# Set sane defaults for various variables
7301test -z "$CC" && CC=cc
7302test -z "$LTCC" && LTCC=$CC
7303test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7304test -z "$LD" && LD=ld
7305test -z "$ac_objext" && ac_objext=o
7306
7307for cc_temp in $compiler""; do
7308 case $cc_temp in
7309 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7310 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7311 \-*) ;;
7312 *) break;;
7313 esac
7314done
7315cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7316
7317
7318# Only perform the check for file, if the check method requires it
7319test -z "$MAGIC_CMD" && MAGIC_CMD=file
7320case $deplibs_check_method in
7321file_magic*)
7322 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7324$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7325if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7326 $as_echo_n "(cached) " >&6
7327else
7328 case $MAGIC_CMD in
7329[\\/*] | ?:[\\/]*)
7330 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7331 ;;
7332*)
7333 lt_save_MAGIC_CMD="$MAGIC_CMD"
7334 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7335 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7336 for ac_dir in $ac_dummy; do
7337 IFS="$lt_save_ifs"
7338 test -z "$ac_dir" && ac_dir=.
7339 if test -f $ac_dir/${ac_tool_prefix}file; then
7340 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7341 if test -n "$file_magic_test_file"; then
7342 case $deplibs_check_method in
7343 "file_magic "*)
7344 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7345 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7346 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7347 $EGREP "$file_magic_regex" > /dev/null; then
7348 :
7349 else
7350 cat <<_LT_EOF 1>&2
7351
7352*** Warning: the command libtool uses to detect shared libraries,
7353*** $file_magic_cmd, produces output that libtool cannot recognize.
7354*** The result is that libtool may fail to recognize shared libraries
7355*** as such. This will affect the creation of libtool libraries that
7356*** depend on shared libraries, but programs linked with such libtool
7357*** libraries will work regardless of this problem. Nevertheless, you
7358*** may want to report the problem to your system manager and/or to
7359*** bug-libtool@gnu.org
7360
7361_LT_EOF
7362 fi ;;
7363 esac
7364 fi
7365 break
7366 fi
7367 done
7368 IFS="$lt_save_ifs"
7369 MAGIC_CMD="$lt_save_MAGIC_CMD"
7370 ;;
7371esac
7372fi
7373
7374MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7375if test -n "$MAGIC_CMD"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7377$as_echo "$MAGIC_CMD" >&6; }
7378else
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380$as_echo "no" >&6; }
7381fi
7382
7383
7384
7385
7386
7387if test -z "$lt_cv_path_MAGIC_CMD"; then
7388 if test -n "$ac_tool_prefix"; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7390$as_echo_n "checking for file... " >&6; }
7391if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7392 $as_echo_n "(cached) " >&6
7393else
7394 case $MAGIC_CMD in
7395[\\/*] | ?:[\\/]*)
7396 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7397 ;;
7398*)
7399 lt_save_MAGIC_CMD="$MAGIC_CMD"
7400 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7401 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7402 for ac_dir in $ac_dummy; do
7403 IFS="$lt_save_ifs"
7404 test -z "$ac_dir" && ac_dir=.
7405 if test -f $ac_dir/file; then
7406 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7407 if test -n "$file_magic_test_file"; then
7408 case $deplibs_check_method in
7409 "file_magic "*)
7410 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7411 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7412 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7413 $EGREP "$file_magic_regex" > /dev/null; then
7414 :
7415 else
7416 cat <<_LT_EOF 1>&2
7417
7418*** Warning: the command libtool uses to detect shared libraries,
7419*** $file_magic_cmd, produces output that libtool cannot recognize.
7420*** The result is that libtool may fail to recognize shared libraries
7421*** as such. This will affect the creation of libtool libraries that
7422*** depend on shared libraries, but programs linked with such libtool
7423*** libraries will work regardless of this problem. Nevertheless, you
7424*** may want to report the problem to your system manager and/or to
7425*** bug-libtool@gnu.org
7426
7427_LT_EOF
7428 fi ;;
7429 esac
7430 fi
7431 break
7432 fi
7433 done
7434 IFS="$lt_save_ifs"
7435 MAGIC_CMD="$lt_save_MAGIC_CMD"
7436 ;;
7437esac
7438fi
7439
7440MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7441if test -n "$MAGIC_CMD"; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7443$as_echo "$MAGIC_CMD" >&6; }
7444else
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446$as_echo "no" >&6; }
7447fi
7448
7449
7450 else
7451 MAGIC_CMD=:
7452 fi
7453fi
7454
7455 fi
7456 ;;
7457esac
7458
7459# Use C for the default configuration in the libtool script
7460
7461lt_save_CC="$CC"
7462ac_ext=c
7463ac_cpp='$CPP $CPPFLAGS'
7464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7466ac_compiler_gnu=$ac_cv_c_compiler_gnu
7467
7468
7469# Source file extension for C test sources.
7470ac_ext=c
7471
7472# Object file extension for compiled C test sources.
7473objext=o
7474objext=$objext
7475
7476# Code to be used in simple compile tests
7477lt_simple_compile_test_code="int some_variable = 0;"
7478
7479# Code to be used in simple link tests
7480lt_simple_link_test_code='int main(){return(0);}'
7481
7482
7483
7484
7485
7486
7487
7488# If no C compiler was specified, use CC.
7489LTCC=${LTCC-"$CC"}
7490
7491# If no C compiler flags were specified, use CFLAGS.
7492LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7493
7494# Allow CC to be a program name with arguments.
7495compiler=$CC
7496
7497# Save the default compiler, since it gets overwritten when the other
7498# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7499compiler_DEFAULT=$CC
7500
7501# save warnings/boilerplate of simple test code
7502ac_outfile=conftest.$ac_objext
7503echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7504eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7505_lt_compiler_boilerplate=`cat conftest.err`
7506$RM conftest*
7507
7508ac_outfile=conftest.$ac_objext
7509echo "$lt_simple_link_test_code" >conftest.$ac_ext
7510eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7511_lt_linker_boilerplate=`cat conftest.err`
7512$RM -r conftest*
7513
7514
7515## CAVEAT EMPTOR:
7516## There is no encapsulation within the following macros, do not change
7517## the running order or otherwise move them around unless you know exactly
7518## what you are doing...
7519if test -n "$compiler"; then
7520
7521lt_prog_compiler_no_builtin_flag=
7522
7523if test "$GCC" = yes; then
7524 case $cc_basename in
7525 nvcc*)
7526 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7527 *)
7528 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7529 esac
7530
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7532$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7533if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
7535else
7536 lt_cv_prog_compiler_rtti_exceptions=no
7537 ac_outfile=conftest.$ac_objext
7538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7539 lt_compiler_flag="-fno-rtti -fno-exceptions"
7540 # Insert the option either (1) after the last *FLAGS variable, or
7541 # (2) before a word containing "conftest.", or (3) at the end.
7542 # Note that $ac_compile itself does not contain backslashes and begins
7543 # with a dollar sign (not a hyphen), so the echo should work correctly.
7544 # The option is referenced via a variable to avoid confusing sed.
7545 lt_compile=`echo "$ac_compile" | $SED \
7546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7548 -e 's:$: $lt_compiler_flag:'`
7549 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7550 (eval "$lt_compile" 2>conftest.err)
7551 ac_status=$?
7552 cat conftest.err >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 if (exit $ac_status) && test -s "$ac_outfile"; then
7555 # The compiler can only warn and ignore the option if not recognized
7556 # So say no if there are warnings other than the usual output.
7557 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7558 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7559 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7560 lt_cv_prog_compiler_rtti_exceptions=yes
7561 fi
7562 fi
7563 $RM conftest*
7564
7565fi
7566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7567$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7568
7569if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7570 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7571else
7572 :
7573fi
7574
7575fi
7576
7577
7578
7579
7580
7581
7582 lt_prog_compiler_wl=
7583lt_prog_compiler_pic=
7584lt_prog_compiler_static=
7585
7586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7587$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7588
7589 if test "$GCC" = yes; then
7590 lt_prog_compiler_wl='-Wl,'
7591 lt_prog_compiler_static='-static'
7592
7593 case $host_os in
7594 aix*)
7595 # All AIX code is PIC.
7596 if test "$host_cpu" = ia64; then
7597 # AIX 5 now supports IA64 processor
7598 lt_prog_compiler_static='-Bstatic'
7599 fi
7600 lt_prog_compiler_pic='-fPIC'
7601 ;;
7602
7603 amigaos*)
7604 case $host_cpu in
7605 powerpc)
7606 # see comment about AmigaOS4 .so support
7607 lt_prog_compiler_pic='-fPIC'
7608 ;;
7609 m68k)
7610 # FIXME: we need at least 68020 code to build shared libraries, but
7611 # adding the `-m68020' flag to GCC prevents building anything better,
7612 # like `-m68040'.
7613 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7614 ;;
7615 esac
7616 ;;
7617
7618 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7619 # PIC is the default for these OSes.
7620 ;;
7621
7622 mingw* | cygwin* | pw32* | os2* | cegcc*)
7623 # This hack is so that the source file can tell whether it is being
7624 # built for inclusion in a dll (and should export symbols for example).
7625 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7626 # (--disable-auto-import) libraries
7627 lt_prog_compiler_pic='-DDLL_EXPORT'
7628 ;;
7629
7630 darwin* | rhapsody*)
7631 # PIC is the default on this platform
7632 # Common symbols not allowed in MH_DYLIB files
7633 lt_prog_compiler_pic='-fno-common'
7634 ;;
7635
7636 haiku*)
7637 # PIC is the default for Haiku.
7638 # The "-static" flag exists, but is broken.
7639 lt_prog_compiler_static=
7640 ;;
7641
7642 hpux*)
7643 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7644 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7645 # sets the default TLS model and affects inlining.
7646 case $host_cpu in
7647 hppa*64*)
7648 # +Z the default
7649 ;;
7650 *)
7651 lt_prog_compiler_pic='-fPIC'
7652 ;;
7653 esac
7654 ;;
7655
7656 interix[3-9]*)
7657 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7658 # Instead, we relocate shared libraries at runtime.
7659 ;;
7660
7661 msdosdjgpp*)
7662 # Just because we use GCC doesn't mean we suddenly get shared libraries
7663 # on systems that don't support them.
7664 lt_prog_compiler_can_build_shared=no
7665 enable_shared=no
7666 ;;
7667
7668 *nto* | *qnx*)
7669 # QNX uses GNU C++, but need to define -shared option too, otherwise
7670 # it will coredump.
7671 lt_prog_compiler_pic='-fPIC -shared'
7672 ;;
7673
7674 sysv4*MP*)
7675 if test -d /usr/nec; then
7676 lt_prog_compiler_pic=-Kconform_pic
7677 fi
7678 ;;
7679
7680 *)
7681 lt_prog_compiler_pic='-fPIC'
7682 ;;
7683 esac
7684
7685 case $cc_basename in
7686 nvcc*) # Cuda Compiler Driver 2.2
7687 lt_prog_compiler_wl='-Xlinker '
7688 lt_prog_compiler_pic='-Xcompiler -fPIC'
7689 ;;
7690 esac
7691 else
7692 # PORTME Check for flag to pass linker flags through the system compiler.
7693 case $host_os in
7694 aix*)
7695 lt_prog_compiler_wl='-Wl,'
7696 if test "$host_cpu" = ia64; then
7697 # AIX 5 now supports IA64 processor
7698 lt_prog_compiler_static='-Bstatic'
7699 else
7700 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7701 fi
7702 ;;
7703
7704 mingw* | cygwin* | pw32* | os2* | cegcc*)
7705 # This hack is so that the source file can tell whether it is being
7706 # built for inclusion in a dll (and should export symbols for example).
7707 lt_prog_compiler_pic='-DDLL_EXPORT'
7708 ;;
7709
7710 hpux9* | hpux10* | hpux11*)
7711 lt_prog_compiler_wl='-Wl,'
7712 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7713 # not for PA HP-UX.
7714 case $host_cpu in
7715 hppa*64*|ia64*)
7716 # +Z the default
7717 ;;
7718 *)
7719 lt_prog_compiler_pic='+Z'
7720 ;;
7721 esac
7722 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7723 lt_prog_compiler_static='${wl}-a ${wl}archive'
7724 ;;
7725
7726 irix5* | irix6* | nonstopux*)
7727 lt_prog_compiler_wl='-Wl,'
7728 # PIC (with -KPIC) is the default.
7729 lt_prog_compiler_static='-non_shared'
7730 ;;
7731
7732 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7733 case $cc_basename in
7734 # old Intel for x86_64 which still supported -KPIC.
7735 ecc*)
7736 lt_prog_compiler_wl='-Wl,'
7737 lt_prog_compiler_pic='-KPIC'
7738 lt_prog_compiler_static='-static'
7739 ;;
7740 # icc used to be incompatible with GCC.
7741 # ICC 10 doesn't accept -KPIC any more.
7742 icc* | ifort*)
7743 lt_prog_compiler_wl='-Wl,'
7744 lt_prog_compiler_pic='-fPIC'
7745 lt_prog_compiler_static='-static'
7746 ;;
7747 # Lahey Fortran 8.1.
7748 lf95*)
7749 lt_prog_compiler_wl='-Wl,'
7750 lt_prog_compiler_pic='--shared'
7751 lt_prog_compiler_static='--static'
7752 ;;
7753 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7754 # Portland Group compilers (*not* the Pentium gcc compiler,
7755 # which looks to be a dead project)
7756 lt_prog_compiler_wl='-Wl,'
7757 lt_prog_compiler_pic='-fpic'
7758 lt_prog_compiler_static='-Bstatic'
7759 ;;
7760 ccc*)
7761 lt_prog_compiler_wl='-Wl,'
7762 # All Alpha code is PIC.
7763 lt_prog_compiler_static='-non_shared'
7764 ;;
7765 xl* | bgxl* | bgf* | mpixl*)
7766 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7767 lt_prog_compiler_wl='-Wl,'
7768 lt_prog_compiler_pic='-qpic'
7769 lt_prog_compiler_static='-qstaticlink'
7770 ;;
7771 *)
7772 case `$CC -V 2>&1 | sed 5q` in
7773 *Sun\ F* | *Sun*Fortran*)
7774 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7775 lt_prog_compiler_pic='-KPIC'
7776 lt_prog_compiler_static='-Bstatic'
7777 lt_prog_compiler_wl=''
7778 ;;
7779 *Sun\ C*)
7780 # Sun C 5.9
7781 lt_prog_compiler_pic='-KPIC'
7782 lt_prog_compiler_static='-Bstatic'
7783 lt_prog_compiler_wl='-Wl,'
7784 ;;
7785 esac
7786 ;;
7787 esac
7788 ;;
7789
7790 newsos6)
7791 lt_prog_compiler_pic='-KPIC'
7792 lt_prog_compiler_static='-Bstatic'
7793 ;;
7794
7795 *nto* | *qnx*)
7796 # QNX uses GNU C++, but need to define -shared option too, otherwise
7797 # it will coredump.
7798 lt_prog_compiler_pic='-fPIC -shared'
7799 ;;
7800
7801 osf3* | osf4* | osf5*)
7802 lt_prog_compiler_wl='-Wl,'
7803 # All OSF/1 code is PIC.
7804 lt_prog_compiler_static='-non_shared'
7805 ;;
7806
7807 rdos*)
7808 lt_prog_compiler_static='-non_shared'
7809 ;;
7810
7811 solaris*)
7812 lt_prog_compiler_pic='-KPIC'
7813 lt_prog_compiler_static='-Bstatic'
7814 case $cc_basename in
7815 f77* | f90* | f95*)
7816 lt_prog_compiler_wl='-Qoption ld ';;
7817 *)
7818 lt_prog_compiler_wl='-Wl,';;
7819 esac
7820 ;;
7821
7822 sunos4*)
7823 lt_prog_compiler_wl='-Qoption ld '
7824 lt_prog_compiler_pic='-PIC'
7825 lt_prog_compiler_static='-Bstatic'
7826 ;;
7827
7828 sysv4 | sysv4.2uw2* | sysv4.3*)
7829 lt_prog_compiler_wl='-Wl,'
7830 lt_prog_compiler_pic='-KPIC'
7831 lt_prog_compiler_static='-Bstatic'
7832 ;;
7833
7834 sysv4*MP*)
7835 if test -d /usr/nec ;then
7836 lt_prog_compiler_pic='-Kconform_pic'
7837 lt_prog_compiler_static='-Bstatic'
7838 fi
7839 ;;
7840
7841 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7842 lt_prog_compiler_wl='-Wl,'
7843 lt_prog_compiler_pic='-KPIC'
7844 lt_prog_compiler_static='-Bstatic'
7845 ;;
7846
7847 unicos*)
7848 lt_prog_compiler_wl='-Wl,'
7849 lt_prog_compiler_can_build_shared=no
7850 ;;
7851
7852 uts4*)
7853 lt_prog_compiler_pic='-pic'
7854 lt_prog_compiler_static='-Bstatic'
7855 ;;
7856
7857 *)
7858 lt_prog_compiler_can_build_shared=no
7859 ;;
7860 esac
7861 fi
7862
7863case $host_os in
7864 # For platforms which do not support PIC, -DPIC is meaningless:
7865 *djgpp*)
7866 lt_prog_compiler_pic=
7867 ;;
7868 *)
7869 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7870 ;;
7871esac
7872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7873$as_echo "$lt_prog_compiler_pic" >&6; }
7874
7875
7876
7877
7878
7879
7880#
7881# Check to make sure the PIC flag actually works.
7882#
7883if test -n "$lt_prog_compiler_pic"; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7885$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7886if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7887 $as_echo_n "(cached) " >&6
7888else
7889 lt_cv_prog_compiler_pic_works=no
7890 ac_outfile=conftest.$ac_objext
7891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7892 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7893 # Insert the option either (1) after the last *FLAGS variable, or
7894 # (2) before a word containing "conftest.", or (3) at the end.
7895 # Note that $ac_compile itself does not contain backslashes and begins
7896 # with a dollar sign (not a hyphen), so the echo should work correctly.
7897 # The option is referenced via a variable to avoid confusing sed.
7898 lt_compile=`echo "$ac_compile" | $SED \
7899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7901 -e 's:$: $lt_compiler_flag:'`
7902 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7903 (eval "$lt_compile" 2>conftest.err)
7904 ac_status=$?
7905 cat conftest.err >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 if (exit $ac_status) && test -s "$ac_outfile"; then
7908 # The compiler can only warn and ignore the option if not recognized
7909 # So say no if there are warnings other than the usual output.
7910 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7911 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7912 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7913 lt_cv_prog_compiler_pic_works=yes
7914 fi
7915 fi
7916 $RM conftest*
7917
7918fi
7919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7920$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7921
7922if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7923 case $lt_prog_compiler_pic in
7924 "" | " "*) ;;
7925 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7926 esac
7927else
7928 lt_prog_compiler_pic=
7929 lt_prog_compiler_can_build_shared=no
7930fi
7931
7932fi
7933
7934
7935
7936
7937
7938
7939#
7940# Check to make sure the static flag actually works.
7941#
7942wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7944$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7945if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7946 $as_echo_n "(cached) " >&6
7947else
7948 lt_cv_prog_compiler_static_works=no
7949 save_LDFLAGS="$LDFLAGS"
7950 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7951 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7952 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7953 # The linker can only warn and ignore the option if not recognized
7954 # So say no if there are warnings
7955 if test -s conftest.err; then
7956 # Append any errors to the config.log.
7957 cat conftest.err 1>&5
7958 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7959 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7960 if diff conftest.exp conftest.er2 >/dev/null; then
7961 lt_cv_prog_compiler_static_works=yes
7962 fi
7963 else
7964 lt_cv_prog_compiler_static_works=yes
7965 fi
7966 fi
7967 $RM -r conftest*
7968 LDFLAGS="$save_LDFLAGS"
7969
7970fi
7971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7972$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7973
7974if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7975 :
7976else
7977 lt_prog_compiler_static=
7978fi
7979
7980
7981
7982
7983
7984
7985
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7987$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7988if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7989 $as_echo_n "(cached) " >&6
7990else
7991 lt_cv_prog_compiler_c_o=no
7992 $RM -r conftest 2>/dev/null
7993 mkdir conftest
7994 cd conftest
7995 mkdir out
7996 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7997
7998 lt_compiler_flag="-o out/conftest2.$ac_objext"
7999 # Insert the option either (1) after the last *FLAGS variable, or
8000 # (2) before a word containing "conftest.", or (3) at the end.
8001 # Note that $ac_compile itself does not contain backslashes and begins
8002 # with a dollar sign (not a hyphen), so the echo should work correctly.
8003 lt_compile=`echo "$ac_compile" | $SED \
8004 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8006 -e 's:$: $lt_compiler_flag:'`
8007 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8008 (eval "$lt_compile" 2>out/conftest.err)
8009 ac_status=$?
8010 cat out/conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8013 then
8014 # The compiler can only warn and ignore the option if not recognized
8015 # So say no if there are warnings
8016 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8017 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8018 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8019 lt_cv_prog_compiler_c_o=yes
8020 fi
8021 fi
8022 chmod u+w . 2>&5
8023 $RM conftest*
8024 # SGI C++ compiler will create directory out/ii_files/ for
8025 # template instantiation
8026 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8027 $RM out/* && rmdir out
8028 cd ..
8029 $RM -r conftest
8030 $RM conftest*
8031
8032fi
8033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8034$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8035
8036
8037
8038
8039
8040
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8042$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8043if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8044 $as_echo_n "(cached) " >&6
8045else
8046 lt_cv_prog_compiler_c_o=no
8047 $RM -r conftest 2>/dev/null
8048 mkdir conftest
8049 cd conftest
8050 mkdir out
8051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8052
8053 lt_compiler_flag="-o out/conftest2.$ac_objext"
8054 # Insert the option either (1) after the last *FLAGS variable, or
8055 # (2) before a word containing "conftest.", or (3) at the end.
8056 # Note that $ac_compile itself does not contain backslashes and begins
8057 # with a dollar sign (not a hyphen), so the echo should work correctly.
8058 lt_compile=`echo "$ac_compile" | $SED \
8059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8061 -e 's:$: $lt_compiler_flag:'`
8062 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8063 (eval "$lt_compile" 2>out/conftest.err)
8064 ac_status=$?
8065 cat out/conftest.err >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8068 then
8069 # The compiler can only warn and ignore the option if not recognized
8070 # So say no if there are warnings
8071 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8072 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8073 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8074 lt_cv_prog_compiler_c_o=yes
8075 fi
8076 fi
8077 chmod u+w . 2>&5
8078 $RM conftest*
8079 # SGI C++ compiler will create directory out/ii_files/ for
8080 # template instantiation
8081 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8082 $RM out/* && rmdir out
8083 cd ..
8084 $RM -r conftest
8085 $RM conftest*
8086
8087fi
8088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8089$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8090
8091
8092
8093
8094hard_links="nottested"
8095if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8096 # do not overwrite the value of need_locks provided by the user
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8098$as_echo_n "checking if we can lock with hard links... " >&6; }
8099 hard_links=yes
8100 $RM conftest*
8101 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8102 touch conftest.a
8103 ln conftest.a conftest.b 2>&5 || hard_links=no
8104 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8106$as_echo "$hard_links" >&6; }
8107 if test "$hard_links" = no; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8109$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8110 need_locks=warn
8111 fi
8112else
8113 need_locks=no
8114fi
8115
8116
8117
8118
8119
8120
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8122$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8123
8124 runpath_var=
8125 allow_undefined_flag=
8126 always_export_symbols=no
8127 archive_cmds=
8128 archive_expsym_cmds=
8129 compiler_needs_object=no
8130 enable_shared_with_static_runtimes=no
8131 export_dynamic_flag_spec=
8132 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8133 hardcode_automatic=no
8134 hardcode_direct=no
8135 hardcode_direct_absolute=no
8136 hardcode_libdir_flag_spec=
8137 hardcode_libdir_flag_spec_ld=
8138 hardcode_libdir_separator=
8139 hardcode_minus_L=no
8140 hardcode_shlibpath_var=unsupported
8141 inherit_rpath=no
8142 link_all_deplibs=unknown
8143 module_cmds=
8144 module_expsym_cmds=
8145 old_archive_from_new_cmds=
8146 old_archive_from_expsyms_cmds=
8147 thread_safe_flag_spec=
8148 whole_archive_flag_spec=
8149 # include_expsyms should be a list of space-separated symbols to be *always*
8150 # included in the symbol list
8151 include_expsyms=
8152 # exclude_expsyms can be an extended regexp of symbols to exclude
8153 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8154 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8155 # as well as any symbol that contains `d'.
8156 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8157 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8158 # platforms (ab)use it in PIC code, but their linkers get confused if
8159 # the symbol is explicitly referenced. Since portable code cannot
8160 # rely on this symbol name, it's probably fine to never include it in
8161 # preloaded symbol tables.
8162 # Exclude shared library initialization/finalization symbols.
8163 extract_expsyms_cmds=
8164
8165 case $host_os in
8166 cygwin* | mingw* | pw32* | cegcc*)
8167 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8168 # When not using gcc, we currently assume that we are using
8169 # Microsoft Visual C++.
8170 if test "$GCC" != yes; then
8171 with_gnu_ld=no
8172 fi
8173 ;;
8174 interix*)
8175 # we just hope/assume this is gcc and not c89 (= MSVC++)
8176 with_gnu_ld=yes
8177 ;;
8178 openbsd*)
8179 with_gnu_ld=no
8180 ;;
8181 esac
8182
8183 ld_shlibs=yes
8184
8185 # On some targets, GNU ld is compatible enough with the native linker
8186 # that we're better off using the native interface for both.
8187 lt_use_gnu_ld_interface=no
8188 if test "$with_gnu_ld" = yes; then
8189 case $host_os in
8190 aix*)
8191 # The AIX port of GNU ld has always aspired to compatibility
8192 # with the native linker. However, as the warning in the GNU ld
8193 # block says, versions before 2.19.5* couldn't really create working
8194 # shared libraries, regardless of the interface used.
8195 case `$LD -v 2>&1` in
8196 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8197 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8198 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8199 *)
8200 lt_use_gnu_ld_interface=yes
8201 ;;
8202 esac
8203 ;;
8204 *)
8205 lt_use_gnu_ld_interface=yes
8206 ;;
8207 esac
8208 fi
8209
8210 if test "$lt_use_gnu_ld_interface" = yes; then
8211 # If archive_cmds runs LD, not CC, wlarc should be empty
8212 wlarc='${wl}'
8213
8214 # Set some defaults for GNU ld with shared library support. These
8215 # are reset later if shared libraries are not supported. Putting them
8216 # here allows them to be overridden if necessary.
8217 runpath_var=LD_RUN_PATH
8218 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8219 export_dynamic_flag_spec='${wl}--export-dynamic'
8220 # ancient GNU ld didn't support --whole-archive et. al.
8221 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8222 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8223 else
8224 whole_archive_flag_spec=
8225 fi
8226 supports_anon_versioning=no
8227 case `$LD -v 2>&1` in
8228 *GNU\ gold*) supports_anon_versioning=yes ;;
8229 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8230 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8231 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8232 *\ 2.11.*) ;; # other 2.11 versions
8233 *) supports_anon_versioning=yes ;;
8234 esac
8235
8236 # See if GNU ld supports shared libraries.
8237 case $host_os in
8238 aix[3-9]*)
8239 # On AIX/PPC, the GNU linker is very broken
8240 if test "$host_cpu" != ia64; then
8241 ld_shlibs=no
8242 cat <<_LT_EOF 1>&2
8243
8244*** Warning: the GNU linker, at least up to release 2.19, is reported
8245*** to be unable to reliably create shared libraries on AIX.
8246*** Therefore, libtool is disabling shared libraries support. If you
8247*** really care for shared libraries, you may want to install binutils
8248*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8249*** You will then need to restart the configuration process.
8250
8251_LT_EOF
8252 fi
8253 ;;
8254
8255 amigaos*)
8256 case $host_cpu in
8257 powerpc)
8258 # see comment about AmigaOS4 .so support
8259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8260 archive_expsym_cmds=''
8261 ;;
8262 m68k)
8263 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)'
8264 hardcode_libdir_flag_spec='-L$libdir'
8265 hardcode_minus_L=yes
8266 ;;
8267 esac
8268 ;;
8269
8270 beos*)
8271 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8272 allow_undefined_flag=unsupported
8273 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8274 # support --undefined. This deserves some investigation. FIXME
8275 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8276 else
8277 ld_shlibs=no
8278 fi
8279 ;;
8280
8281 cygwin* | mingw* | pw32* | cegcc*)
8282 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8283 # as there is no search path for DLLs.
8284 hardcode_libdir_flag_spec='-L$libdir'
8285 export_dynamic_flag_spec='${wl}--export-all-symbols'
8286 allow_undefined_flag=unsupported
8287 always_export_symbols=no
8288 enable_shared_with_static_runtimes=yes
8289 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8290
8291 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8293 # If the export-symbols file already is a .def file (1st line
8294 # is EXPORTS), use it as is; otherwise, prepend...
8295 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8296 cp $export_symbols $output_objdir/$soname.def;
8297 else
8298 echo EXPORTS > $output_objdir/$soname.def;
8299 cat $export_symbols >> $output_objdir/$soname.def;
8300 fi~
8301 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8302 else
8303 ld_shlibs=no
8304 fi
8305 ;;
8306
8307 haiku*)
8308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8309 link_all_deplibs=yes
8310 ;;
8311
8312 interix[3-9]*)
8313 hardcode_direct=no
8314 hardcode_shlibpath_var=no
8315 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8316 export_dynamic_flag_spec='${wl}-E'
8317 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8318 # Instead, shared libraries are loaded at an image base (0x10000000 by
8319 # default) and relocated if they conflict, which is a slow very memory
8320 # consuming and fragmenting process. To avoid this, we pick a random,
8321 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8322 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8323 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8324 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'
8325 ;;
8326
8327 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8328 tmp_diet=no
8329 if test "$host_os" = linux-dietlibc; then
8330 case $cc_basename in
8331 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8332 esac
8333 fi
8334 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8335 && test "$tmp_diet" = no
8336 then
a699d672 8337 tmp_addflag=' $pic_flag'
ddc8de03
PM
8338 tmp_sharedflag='-shared'
8339 case $cc_basename,$host_cpu in
8340 pgcc*) # Portland Group C compiler
8341 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'
8342 tmp_addflag=' $pic_flag'
8343 ;;
8344 pgf77* | pgf90* | pgf95* | pgfortran*)
8345 # Portland Group f77 and f90 compilers
8346 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'
8347 tmp_addflag=' $pic_flag -Mnomain' ;;
8348 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8349 tmp_addflag=' -i_dynamic' ;;
8350 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8351 tmp_addflag=' -i_dynamic -nofor_main' ;;
8352 ifc* | ifort*) # Intel Fortran compiler
8353 tmp_addflag=' -nofor_main' ;;
8354 lf95*) # Lahey Fortran 8.1
8355 whole_archive_flag_spec=
8356 tmp_sharedflag='--shared' ;;
8357 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8358 tmp_sharedflag='-qmkshrobj'
8359 tmp_addflag= ;;
8360 nvcc*) # Cuda Compiler Driver 2.2
8361 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'
8362 compiler_needs_object=yes
8363 ;;
8364 esac
8365 case `$CC -V 2>&1 | sed 5q` in
8366 *Sun\ C*) # Sun C 5.9
8367 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'
8368 compiler_needs_object=yes
8369 tmp_sharedflag='-G' ;;
8370 *Sun\ F*) # Sun Fortran 8.3
8371 tmp_sharedflag='-G' ;;
8372 esac
8373 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8374
8375 if test "x$supports_anon_versioning" = xyes; then
8376 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8377 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8378 echo "local: *; };" >> $output_objdir/$libname.ver~
8379 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8380 fi
8381
8382 case $cc_basename in
8383 xlf* | bgf* | bgxlf* | mpixlf*)
8384 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8385 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8386 hardcode_libdir_flag_spec=
8387 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8388 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8389 if test "x$supports_anon_versioning" = xyes; then
8390 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8391 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8392 echo "local: *; };" >> $output_objdir/$libname.ver~
8393 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8394 fi
8395 ;;
8396 esac
8397 else
8398 ld_shlibs=no
8399 fi
8400 ;;
8401
8402 netbsd*)
8403 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8404 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8405 wlarc=
8406 else
8407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8408 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8409 fi
8410 ;;
8411
8412 solaris*)
8413 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8414 ld_shlibs=no
8415 cat <<_LT_EOF 1>&2
8416
8417*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8418*** create shared libraries on Solaris systems. Therefore, libtool
8419*** is disabling shared libraries support. We urge you to upgrade GNU
8420*** binutils to release 2.9.1 or newer. Another option is to modify
8421*** your PATH or compiler configuration so that the native linker is
8422*** used, and then restart.
8423
8424_LT_EOF
8425 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8427 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8428 else
8429 ld_shlibs=no
8430 fi
8431 ;;
8432
8433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8434 case `$LD -v 2>&1` in
8435 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8436 ld_shlibs=no
8437 cat <<_LT_EOF 1>&2
8438
8439*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8440*** reliably create shared libraries on SCO systems. Therefore, libtool
8441*** is disabling shared libraries support. We urge you to upgrade GNU
8442*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8443*** your PATH or compiler configuration so that the native linker is
8444*** used, and then restart.
8445
8446_LT_EOF
8447 ;;
8448 *)
8449 # For security reasons, it is highly recommended that you always
8450 # use absolute paths for naming shared libraries, and exclude the
8451 # DT_RUNPATH tag from executables and libraries. But doing so
8452 # requires that you compile everything twice, which is a pain.
8453 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8456 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8457 else
8458 ld_shlibs=no
8459 fi
8460 ;;
8461 esac
8462 ;;
8463
8464 sunos4*)
8465 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8466 wlarc=
8467 hardcode_direct=yes
8468 hardcode_shlibpath_var=no
8469 ;;
8470
8471 *)
8472 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8474 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8475 else
8476 ld_shlibs=no
8477 fi
8478 ;;
8479 esac
8480
8481 if test "$ld_shlibs" = no; then
8482 runpath_var=
8483 hardcode_libdir_flag_spec=
8484 export_dynamic_flag_spec=
8485 whole_archive_flag_spec=
8486 fi
8487 else
8488 # PORTME fill in a description of your system's linker (not GNU ld)
8489 case $host_os in
8490 aix3*)
8491 allow_undefined_flag=unsupported
8492 always_export_symbols=yes
8493 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'
8494 # Note: this linker hardcodes the directories in LIBPATH if there
8495 # are no directories specified by -L.
8496 hardcode_minus_L=yes
8497 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8498 # Neither direct hardcoding nor static linking is supported with a
8499 # broken collect2.
8500 hardcode_direct=unsupported
8501 fi
8502 ;;
8503
8504 aix[4-9]*)
8505 if test "$host_cpu" = ia64; then
8506 # On IA64, the linker does run time linking by default, so we don't
8507 # have to do anything special.
8508 aix_use_runtimelinking=no
8509 exp_sym_flag='-Bexport'
8510 no_entry_flag=""
8511 else
8512 # If we're using GNU nm, then we don't want the "-C" option.
8513 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8514 # Also, AIX nm treats weak defined symbols like other global
8515 # defined symbols, whereas GNU nm marks them as "W".
8516 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8517 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'
8518 else
ca37d49a 8519 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
ddc8de03
PM
8520 fi
8521 aix_use_runtimelinking=no
8522
8523 # Test if we are trying to use run time linking or normal
8524 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8525 # need to do runtime linking.
8526 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8527 for ld_flag in $LDFLAGS; do
8528 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8529 aix_use_runtimelinking=yes
8530 break
8531 fi
8532 done
8533 ;;
8534 esac
8535
8536 exp_sym_flag='-bexport'
8537 no_entry_flag='-bnoentry'
8538 fi
8539
8540 # When large executables or shared objects are built, AIX ld can
8541 # have problems creating the table of contents. If linking a library
8542 # or program results in "error TOC overflow" add -mminimal-toc to
8543 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8544 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8545
8546 archive_cmds=''
8547 hardcode_direct=yes
8548 hardcode_direct_absolute=yes
8549 hardcode_libdir_separator=':'
8550 link_all_deplibs=yes
8551 file_list_spec='${wl}-f,'
8552
8553 if test "$GCC" = yes; then
8554 case $host_os in aix4.[012]|aix4.[012].*)
8555 # We only want to do this on AIX 4.2 and lower, the check
8556 # below for broken collect2 doesn't work under 4.3+
8557 collect2name=`${CC} -print-prog-name=collect2`
8558 if test -f "$collect2name" &&
8559 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8560 then
8561 # We have reworked collect2
8562 :
8563 else
8564 # We have old collect2
8565 hardcode_direct=unsupported
8566 # It fails to find uninstalled libraries when the uninstalled
8567 # path is not listed in the libpath. Setting hardcode_minus_L
8568 # to unsupported forces relinking
8569 hardcode_minus_L=yes
8570 hardcode_libdir_flag_spec='-L$libdir'
8571 hardcode_libdir_separator=
8572 fi
8573 ;;
8574 esac
8575 shared_flag='-shared'
8576 if test "$aix_use_runtimelinking" = yes; then
8577 shared_flag="$shared_flag "'${wl}-G'
8578 fi
8579 else
8580 # not using gcc
8581 if test "$host_cpu" = ia64; then
8582 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8583 # chokes on -Wl,-G. The following line is correct:
8584 shared_flag='-G'
8585 else
8586 if test "$aix_use_runtimelinking" = yes; then
8587 shared_flag='${wl}-G'
8588 else
8589 shared_flag='${wl}-bM:SRE'
8590 fi
8591 fi
8592 fi
8593
8594 export_dynamic_flag_spec='${wl}-bexpall'
8595 # It seems that -bexpall does not export symbols beginning with
8596 # underscore (_), so it is better to generate a list of symbols to export.
8597 always_export_symbols=yes
8598 if test "$aix_use_runtimelinking" = yes; then
8599 # Warning - without using the other runtime loading flags (-brtl),
8600 # -berok will link without error, but may produce a broken library.
8601 allow_undefined_flag='-berok'
8602 # Determine the default libpath from the value encoded in an
8603 # empty executable.
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605/* end confdefs.h. */
8606
8607int
8608main ()
8609{
8610
8611 ;
8612 return 0;
8613}
8614_ACEOF
8615if ac_fn_c_try_link "$LINENO"; then :
8616
8617lt_aix_libpath_sed='
8618 /Import File Strings/,/^$/ {
8619 /^0/ {
8620 s/^0 *\(.*\)$/\1/
8621 p
8622 }
8623 }'
8624aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8625# Check for a 64-bit object if we didn't find anything.
8626if test -z "$aix_libpath"; then
8627 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8628fi
8629fi
8630rm -f core conftest.err conftest.$ac_objext \
8631 conftest$ac_exeext conftest.$ac_ext
8632if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8633
8634 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8635 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8636 else
8637 if test "$host_cpu" = ia64; then
8638 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8639 allow_undefined_flag="-z nodefs"
8640 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8641 else
8642 # Determine the default libpath from the value encoded in an
8643 # empty executable.
8644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8645/* end confdefs.h. */
8646
8647int
8648main ()
8649{
8650
8651 ;
8652 return 0;
8653}
8654_ACEOF
8655if ac_fn_c_try_link "$LINENO"; then :
8656
8657lt_aix_libpath_sed='
8658 /Import File Strings/,/^$/ {
8659 /^0/ {
8660 s/^0 *\(.*\)$/\1/
8661 p
8662 }
8663 }'
8664aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8665# Check for a 64-bit object if we didn't find anything.
8666if test -z "$aix_libpath"; then
8667 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8668fi
8669fi
8670rm -f core conftest.err conftest.$ac_objext \
8671 conftest$ac_exeext conftest.$ac_ext
8672if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8673
8674 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8675 # Warning - without using the other run time loading flags,
8676 # -berok will link without error, but may produce a broken library.
8677 no_undefined_flag=' ${wl}-bernotok'
8678 allow_undefined_flag=' ${wl}-berok'
8679 if test "$with_gnu_ld" = yes; then
8680 # We only use this code for GNU lds that support --whole-archive.
8681 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8682 else
8683 # Exported symbols can be pulled into shared objects from archives
8684 whole_archive_flag_spec='$convenience'
8685 fi
8686 archive_cmds_need_lc=yes
8687 # This is similar to how AIX traditionally builds its shared libraries.
8688 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'
8689 fi
8690 fi
8691 ;;
8692
8693 amigaos*)
8694 case $host_cpu in
8695 powerpc)
8696 # see comment about AmigaOS4 .so support
8697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698 archive_expsym_cmds=''
8699 ;;
8700 m68k)
8701 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)'
8702 hardcode_libdir_flag_spec='-L$libdir'
8703 hardcode_minus_L=yes
8704 ;;
8705 esac
8706 ;;
8707
8708 bsdi[45]*)
8709 export_dynamic_flag_spec=-rdynamic
8710 ;;
8711
8712 cygwin* | mingw* | pw32* | cegcc*)
8713 # When not using gcc, we currently assume that we are using
8714 # Microsoft Visual C++.
8715 # hardcode_libdir_flag_spec is actually meaningless, as there is
8716 # no search path for DLLs.
8717 hardcode_libdir_flag_spec=' '
8718 allow_undefined_flag=unsupported
8719 # Tell ltmain to make .lib files, not .a files.
8720 libext=lib
8721 # Tell ltmain to make .dll files, not .so files.
8722 shrext_cmds=".dll"
8723 # FIXME: Setting linknames here is a bad hack.
8724 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8725 # The linker will automatically build a .lib file if we build a DLL.
8726 old_archive_from_new_cmds='true'
8727 # FIXME: Should let the user specify the lib program.
8728 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8729 fix_srcfile_path='`cygpath -w "$srcfile"`'
8730 enable_shared_with_static_runtimes=yes
8731 ;;
8732
8733 darwin* | rhapsody*)
8734
8735
8736 archive_cmds_need_lc=no
8737 hardcode_direct=no
8738 hardcode_automatic=yes
8739 hardcode_shlibpath_var=unsupported
8740 if test "$lt_cv_ld_force_load" = "yes"; then
8741 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\"`'
8742 else
8743 whole_archive_flag_spec=''
8744 fi
8745 link_all_deplibs=yes
8746 allow_undefined_flag="$_lt_dar_allow_undefined"
8747 case $cc_basename in
8748 ifort*) _lt_dar_can_shared=yes ;;
8749 *) _lt_dar_can_shared=$GCC ;;
8750 esac
8751 if test "$_lt_dar_can_shared" = "yes"; then
8752 output_verbose_link_cmd=func_echo_all
8753 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8754 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8755 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}"
8756 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}"
8757
8758 else
8759 ld_shlibs=no
8760 fi
8761
8762 ;;
8763
8764 dgux*)
8765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8766 hardcode_libdir_flag_spec='-L$libdir'
8767 hardcode_shlibpath_var=no
8768 ;;
8769
8770 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8771 # support. Future versions do this automatically, but an explicit c++rt0.o
8772 # does not break anything, and helps significantly (at the cost of a little
8773 # extra space).
8774 freebsd2.2*)
8775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8776 hardcode_libdir_flag_spec='-R$libdir'
8777 hardcode_direct=yes
8778 hardcode_shlibpath_var=no
8779 ;;
8780
8781 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8782 freebsd2.*)
8783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8784 hardcode_direct=yes
8785 hardcode_minus_L=yes
8786 hardcode_shlibpath_var=no
8787 ;;
8788
8789 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8790 freebsd* | dragonfly*)
8791 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8792 hardcode_libdir_flag_spec='-R$libdir'
8793 hardcode_direct=yes
8794 hardcode_shlibpath_var=no
8795 ;;
8796
8797 hpux9*)
8798 if test "$GCC" = yes; then
8799 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'
8800 else
8801 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'
8802 fi
8803 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8804 hardcode_libdir_separator=:
8805 hardcode_direct=yes
8806
8807 # hardcode_minus_L: Not really in the search PATH,
8808 # but as the default location of the library.
8809 hardcode_minus_L=yes
8810 export_dynamic_flag_spec='${wl}-E'
8811 ;;
8812
8813 hpux10*)
8814 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8815 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8816 else
8817 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8818 fi
8819 if test "$with_gnu_ld" = no; then
8820 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8821 hardcode_libdir_flag_spec_ld='+b $libdir'
8822 hardcode_libdir_separator=:
8823 hardcode_direct=yes
8824 hardcode_direct_absolute=yes
8825 export_dynamic_flag_spec='${wl}-E'
8826 # hardcode_minus_L: Not really in the search PATH,
8827 # but as the default location of the library.
8828 hardcode_minus_L=yes
8829 fi
8830 ;;
8831
8832 hpux11*)
8833 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8834 case $host_cpu in
8835 hppa*64*)
8836 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8837 ;;
8838 ia64*)
8839 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8840 ;;
8841 *)
8842 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8843 ;;
8844 esac
8845 else
8846 case $host_cpu in
8847 hppa*64*)
8848 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8849 ;;
8850 ia64*)
8851 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8852 ;;
8853 *)
8854
8855 # Older versions of the 11.00 compiler do not understand -b yet
8856 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8858$as_echo_n "checking if $CC understands -b... " >&6; }
8859if test "${lt_cv_prog_compiler__b+set}" = set; then :
8860 $as_echo_n "(cached) " >&6
8861else
8862 lt_cv_prog_compiler__b=no
8863 save_LDFLAGS="$LDFLAGS"
8864 LDFLAGS="$LDFLAGS -b"
8865 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8866 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8867 # The linker can only warn and ignore the option if not recognized
8868 # So say no if there are warnings
8869 if test -s conftest.err; then
8870 # Append any errors to the config.log.
8871 cat conftest.err 1>&5
8872 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8874 if diff conftest.exp conftest.er2 >/dev/null; then
8875 lt_cv_prog_compiler__b=yes
8876 fi
8877 else
8878 lt_cv_prog_compiler__b=yes
8879 fi
8880 fi
8881 $RM -r conftest*
8882 LDFLAGS="$save_LDFLAGS"
8883
8884fi
8885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8886$as_echo "$lt_cv_prog_compiler__b" >&6; }
8887
8888if test x"$lt_cv_prog_compiler__b" = xyes; then
8889 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8890else
8891 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8892fi
8893
8894 ;;
8895 esac
8896 fi
8897 if test "$with_gnu_ld" = no; then
8898 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8899 hardcode_libdir_separator=:
8900
8901 case $host_cpu in
8902 hppa*64*|ia64*)
8903 hardcode_direct=no
8904 hardcode_shlibpath_var=no
8905 ;;
8906 *)
8907 hardcode_direct=yes
8908 hardcode_direct_absolute=yes
8909 export_dynamic_flag_spec='${wl}-E'
8910
8911 # hardcode_minus_L: Not really in the search PATH,
8912 # but as the default location of the library.
8913 hardcode_minus_L=yes
8914 ;;
8915 esac
8916 fi
8917 ;;
8918
8919 irix5* | irix6* | nonstopux*)
8920 if test "$GCC" = yes; then
8921 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'
8922 # Try to use the -exported_symbol ld option, if it does not
8923 # work, assume that -exports_file does not work either and
8924 # implicitly export all symbols.
8925 save_LDFLAGS="$LDFLAGS"
8926 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928/* end confdefs.h. */
8929int foo(void) {}
8930_ACEOF
8931if ac_fn_c_try_link "$LINENO"; then :
8932 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'
8933
8934fi
8935rm -f core conftest.err conftest.$ac_objext \
8936 conftest$ac_exeext conftest.$ac_ext
8937 LDFLAGS="$save_LDFLAGS"
8938 else
8939 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'
8940 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'
8941 fi
8942 archive_cmds_need_lc='no'
8943 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8944 hardcode_libdir_separator=:
8945 inherit_rpath=yes
8946 link_all_deplibs=yes
8947 ;;
8948
8949 netbsd*)
8950 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8952 else
8953 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8954 fi
8955 hardcode_libdir_flag_spec='-R$libdir'
8956 hardcode_direct=yes
8957 hardcode_shlibpath_var=no
8958 ;;
8959
8960 newsos6)
8961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8962 hardcode_direct=yes
8963 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8964 hardcode_libdir_separator=:
8965 hardcode_shlibpath_var=no
8966 ;;
8967
8968 *nto* | *qnx*)
8969 ;;
8970
8971 openbsd*)
8972 if test -f /usr/libexec/ld.so; then
8973 hardcode_direct=yes
8974 hardcode_shlibpath_var=no
8975 hardcode_direct_absolute=yes
8976 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8977 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8978 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8979 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8980 export_dynamic_flag_spec='${wl}-E'
8981 else
8982 case $host_os in
8983 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8984 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8985 hardcode_libdir_flag_spec='-R$libdir'
8986 ;;
8987 *)
8988 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8989 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8990 ;;
8991 esac
8992 fi
8993 else
8994 ld_shlibs=no
8995 fi
8996 ;;
8997
8998 os2*)
8999 hardcode_libdir_flag_spec='-L$libdir'
9000 hardcode_minus_L=yes
9001 allow_undefined_flag=unsupported
9002 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'
9003 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9004 ;;
9005
9006 osf3*)
9007 if test "$GCC" = yes; then
9008 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9009 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'
9010 else
9011 allow_undefined_flag=' -expect_unresolved \*'
9012 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'
9013 fi
9014 archive_cmds_need_lc='no'
9015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9016 hardcode_libdir_separator=:
9017 ;;
9018
9019 osf4* | osf5*) # as osf3* with the addition of -msym flag
9020 if test "$GCC" = yes; then
9021 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9022 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'
9023 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9024 else
9025 allow_undefined_flag=' -expect_unresolved \*'
9026 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'
9027 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~
9028 $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'
9029
9030 # Both c and cxx compiler support -rpath directly
9031 hardcode_libdir_flag_spec='-rpath $libdir'
9032 fi
9033 archive_cmds_need_lc='no'
9034 hardcode_libdir_separator=:
9035 ;;
9036
9037 solaris*)
9038 no_undefined_flag=' -z defs'
9039 if test "$GCC" = yes; then
9040 wlarc='${wl}'
9041 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9042 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9043 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9044 else
9045 case `$CC -V 2>&1` in
9046 *"Compilers 5.0"*)
9047 wlarc=''
9048 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9049 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9050 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9051 ;;
9052 *)
9053 wlarc='${wl}'
9054 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9055 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9056 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9057 ;;
9058 esac
9059 fi
9060 hardcode_libdir_flag_spec='-R$libdir'
9061 hardcode_shlibpath_var=no
9062 case $host_os in
9063 solaris2.[0-5] | solaris2.[0-5].*) ;;
9064 *)
9065 # The compiler driver will combine and reorder linker options,
9066 # but understands `-z linker_flag'. GCC discards it without `$wl',
9067 # but is careful enough not to reorder.
9068 # Supported since Solaris 2.6 (maybe 2.5.1?)
9069 if test "$GCC" = yes; then
9070 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9071 else
9072 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9073 fi
9074 ;;
9075 esac
9076 link_all_deplibs=yes
9077 ;;
9078
9079 sunos4*)
9080 if test "x$host_vendor" = xsequent; then
9081 # Use $CC to link under sequent, because it throws in some extra .o
9082 # files that make .init and .fini sections work.
9083 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9084 else
9085 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9086 fi
9087 hardcode_libdir_flag_spec='-L$libdir'
9088 hardcode_direct=yes
9089 hardcode_minus_L=yes
9090 hardcode_shlibpath_var=no
9091 ;;
9092
9093 sysv4)
9094 case $host_vendor in
9095 sni)
9096 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9097 hardcode_direct=yes # is this really true???
9098 ;;
9099 siemens)
9100 ## LD is ld it makes a PLAMLIB
9101 ## CC just makes a GrossModule.
9102 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9103 reload_cmds='$CC -r -o $output$reload_objs'
9104 hardcode_direct=no
9105 ;;
9106 motorola)
9107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9108 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9109 ;;
9110 esac
9111 runpath_var='LD_RUN_PATH'
9112 hardcode_shlibpath_var=no
9113 ;;
9114
9115 sysv4.3*)
9116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9117 hardcode_shlibpath_var=no
9118 export_dynamic_flag_spec='-Bexport'
9119 ;;
9120
9121 sysv4*MP*)
9122 if test -d /usr/nec; then
9123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9124 hardcode_shlibpath_var=no
9125 runpath_var=LD_RUN_PATH
9126 hardcode_runpath_var=yes
9127 ld_shlibs=yes
9128 fi
9129 ;;
9130
9131 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9132 no_undefined_flag='${wl}-z,text'
9133 archive_cmds_need_lc=no
9134 hardcode_shlibpath_var=no
9135 runpath_var='LD_RUN_PATH'
9136
9137 if test "$GCC" = yes; then
9138 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9139 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9140 else
9141 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9142 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9143 fi
9144 ;;
9145
9146 sysv5* | sco3.2v5* | sco5v6*)
9147 # Note: We can NOT use -z defs as we might desire, because we do not
9148 # link with -lc, and that would cause any symbols used from libc to
9149 # always be unresolved, which means just about no library would
9150 # ever link correctly. If we're not using GNU ld we use -z text
9151 # though, which does catch some bad symbols but isn't as heavy-handed
9152 # as -z defs.
9153 no_undefined_flag='${wl}-z,text'
9154 allow_undefined_flag='${wl}-z,nodefs'
9155 archive_cmds_need_lc=no
9156 hardcode_shlibpath_var=no
9157 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9158 hardcode_libdir_separator=':'
9159 link_all_deplibs=yes
9160 export_dynamic_flag_spec='${wl}-Bexport'
9161 runpath_var='LD_RUN_PATH'
9162
9163 if test "$GCC" = yes; then
9164 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9165 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9166 else
9167 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9168 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9169 fi
9170 ;;
9171
9172 uts4*)
9173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9174 hardcode_libdir_flag_spec='-L$libdir'
9175 hardcode_shlibpath_var=no
9176 ;;
9177
9178 *)
9179 ld_shlibs=no
9180 ;;
9181 esac
9182
9183 if test x$host_vendor = xsni; then
9184 case $host in
9185 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9186 export_dynamic_flag_spec='${wl}-Blargedynsym'
9187 ;;
9188 esac
9189 fi
9190 fi
9191
9192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9193$as_echo "$ld_shlibs" >&6; }
9194test "$ld_shlibs" = no && can_build_shared=no
9195
9196with_gnu_ld=$with_gnu_ld
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212#
9213# Do we need to explicitly link libc?
9214#
9215case "x$archive_cmds_need_lc" in
9216x|xyes)
9217 # Assume -lc should be added
9218 archive_cmds_need_lc=yes
9219
9220 if test "$enable_shared" = yes && test "$GCC" = yes; then
9221 case $archive_cmds in
9222 *'~'*)
9223 # FIXME: we may have to deal with multi-command sequences.
9224 ;;
9225 '$CC '*)
9226 # Test whether the compiler implicitly links with -lc since on some
9227 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9228 # to ld, don't add -lc before -lgcc.
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9230$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9231if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9232 $as_echo_n "(cached) " >&6
9233else
9234 $RM conftest*
9235 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9236
9237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9238 (eval $ac_compile) 2>&5
9239 ac_status=$?
9240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9241 test $ac_status = 0; } 2>conftest.err; then
9242 soname=conftest
9243 lib=conftest
9244 libobjs=conftest.$ac_objext
9245 deplibs=
9246 wl=$lt_prog_compiler_wl
9247 pic_flag=$lt_prog_compiler_pic
9248 compiler_flags=-v
9249 linker_flags=-v
9250 verstring=
9251 output_objdir=.
9252 libname=conftest
9253 lt_save_allow_undefined_flag=$allow_undefined_flag
9254 allow_undefined_flag=
9255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9256 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9257 ac_status=$?
9258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9259 test $ac_status = 0; }
9260 then
9261 lt_cv_archive_cmds_need_lc=no
9262 else
9263 lt_cv_archive_cmds_need_lc=yes
9264 fi
9265 allow_undefined_flag=$lt_save_allow_undefined_flag
9266 else
9267 cat conftest.err 1>&5
9268 fi
9269 $RM conftest*
9270
9271fi
9272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9273$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9274 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9275 ;;
9276 esac
9277 fi
9278 ;;
9279esac
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9438$as_echo_n "checking dynamic linker characteristics... " >&6; }
9439
9440if test "$GCC" = yes; then
9441 case $host_os in
9442 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9443 *) lt_awk_arg="/^libraries:/" ;;
9444 esac
9445 case $host_os in
9446 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9447 *) lt_sed_strip_eq="s,=/,/,g" ;;
9448 esac
9449 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9450 case $lt_search_path_spec in
9451 *\;*)
9452 # if the path contains ";" then we assume it to be the separator
9453 # otherwise default to the standard path separator (i.e. ":") - it is
9454 # assumed that no part of a normal pathname contains ";" but that should
9455 # okay in the real world where ";" in dirpaths is itself problematic.
9456 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9457 ;;
9458 *)
9459 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9460 ;;
9461 esac
9462 # Ok, now we have the path, separated by spaces, we can step through it
9463 # and add multilib dir if necessary.
9464 lt_tmp_lt_search_path_spec=
9465 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9466 for lt_sys_path in $lt_search_path_spec; do
9467 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9468 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9469 else
9470 test -d "$lt_sys_path" && \
9471 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9472 fi
9473 done
9474 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9475BEGIN {RS=" "; FS="/|\n";} {
9476 lt_foo="";
9477 lt_count=0;
9478 for (lt_i = NF; lt_i > 0; lt_i--) {
9479 if ($lt_i != "" && $lt_i != ".") {
9480 if ($lt_i == "..") {
9481 lt_count++;
9482 } else {
9483 if (lt_count == 0) {
9484 lt_foo="/" $lt_i lt_foo;
9485 } else {
9486 lt_count--;
9487 }
9488 }
9489 }
9490 }
9491 if (lt_foo != "") { lt_freq[lt_foo]++; }
9492 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9493}'`
9494 # AWK program above erroneously prepends '/' to C:/dos/paths
9495 # for these hosts.
9496 case $host_os in
9497 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9498 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9499 esac
9500 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9501else
9502 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9503fi
9504library_names_spec=
9505libname_spec='lib$name'
9506soname_spec=
9507shrext_cmds=".so"
9508postinstall_cmds=
9509postuninstall_cmds=
9510finish_cmds=
9511finish_eval=
9512shlibpath_var=
9513shlibpath_overrides_runpath=unknown
9514version_type=none
9515dynamic_linker="$host_os ld.so"
9516sys_lib_dlsearch_path_spec="/lib /usr/lib"
9517need_lib_prefix=unknown
9518hardcode_into_libs=no
9519
9520# when you set need_version to no, make sure it does not cause -set_version
9521# flags to be left without arguments
9522need_version=unknown
9523
9524case $host_os in
9525aix3*)
9526 version_type=linux
9527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9528 shlibpath_var=LIBPATH
9529
9530 # AIX 3 has no versioning support, so we append a major version to the name.
9531 soname_spec='${libname}${release}${shared_ext}$major'
9532 ;;
9533
9534aix[4-9]*)
9535 version_type=linux
9536 need_lib_prefix=no
9537 need_version=no
9538 hardcode_into_libs=yes
9539 if test "$host_cpu" = ia64; then
9540 # AIX 5 supports IA64
9541 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9542 shlibpath_var=LD_LIBRARY_PATH
9543 else
9544 # With GCC up to 2.95.x, collect2 would create an import file
9545 # for dependence libraries. The import file would start with
9546 # the line `#! .'. This would cause the generated library to
9547 # depend on `.', always an invalid library. This was fixed in
9548 # development snapshots of GCC prior to 3.0.
9549 case $host_os in
9550 aix4 | aix4.[01] | aix4.[01].*)
9551 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9552 echo ' yes '
9553 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9554 :
9555 else
9556 can_build_shared=no
9557 fi
9558 ;;
9559 esac
9560 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9561 # soname into executable. Probably we can add versioning support to
9562 # collect2, so additional links can be useful in future.
9563 if test "$aix_use_runtimelinking" = yes; then
9564 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9565 # instead of lib<name>.a to let people know that these are not
9566 # typical AIX shared libraries.
9567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9568 else
9569 # We preserve .a as extension for shared libraries through AIX4.2
9570 # and later when we are not doing run time linking.
9571 library_names_spec='${libname}${release}.a $libname.a'
9572 soname_spec='${libname}${release}${shared_ext}$major'
9573 fi
9574 shlibpath_var=LIBPATH
9575 fi
9576 ;;
9577
9578amigaos*)
9579 case $host_cpu in
9580 powerpc)
9581 # Since July 2007 AmigaOS4 officially supports .so libraries.
9582 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9584 ;;
9585 m68k)
9586 library_names_spec='$libname.ixlibrary $libname.a'
9587 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9588 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'
9589 ;;
9590 esac
9591 ;;
9592
9593beos*)
9594 library_names_spec='${libname}${shared_ext}'
9595 dynamic_linker="$host_os ld.so"
9596 shlibpath_var=LIBRARY_PATH
9597 ;;
9598
9599bsdi[45]*)
9600 version_type=linux
9601 need_version=no
9602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9603 soname_spec='${libname}${release}${shared_ext}$major'
9604 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9605 shlibpath_var=LD_LIBRARY_PATH
9606 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9607 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9608 # the default ld.so.conf also contains /usr/contrib/lib and
9609 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9610 # libtool to hard-code these into programs
9611 ;;
9612
9613cygwin* | mingw* | pw32* | cegcc*)
9614 version_type=windows
9615 shrext_cmds=".dll"
9616 need_version=no
9617 need_lib_prefix=no
9618
9619 case $GCC,$host_os in
9620 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9621 library_names_spec='$libname.dll.a'
9622 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9623 postinstall_cmds='base_file=`basename \${file}`~
9624 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9625 dldir=$destdir/`dirname \$dlpath`~
9626 test -d \$dldir || mkdir -p \$dldir~
9627 $install_prog $dir/$dlname \$dldir/$dlname~
9628 chmod a+x \$dldir/$dlname~
9629 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9630 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9631 fi'
9632 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9633 dlpath=$dir/\$dldll~
9634 $RM \$dlpath'
9635 shlibpath_overrides_runpath=yes
9636
9637 case $host_os in
9638 cygwin*)
9639 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9640 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9641
9642 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9643 ;;
9644 mingw* | cegcc*)
9645 # MinGW DLLs use traditional 'lib' prefix
9646 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9647 ;;
9648 pw32*)
9649 # pw32 DLLs use 'pw' prefix rather than 'lib'
9650 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9651 ;;
9652 esac
9653 ;;
9654
9655 *)
9656 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9657 ;;
9658 esac
9659 dynamic_linker='Win32 ld.exe'
9660 # FIXME: first we should search . and the directory the executable is in
9661 shlibpath_var=PATH
9662 ;;
9663
9664darwin* | rhapsody*)
9665 dynamic_linker="$host_os dyld"
9666 version_type=darwin
9667 need_lib_prefix=no
9668 need_version=no
9669 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9670 soname_spec='${libname}${release}${major}$shared_ext'
9671 shlibpath_overrides_runpath=yes
9672 shlibpath_var=DYLD_LIBRARY_PATH
9673 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9674
9675 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9676 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9677 ;;
9678
9679dgux*)
9680 version_type=linux
9681 need_lib_prefix=no
9682 need_version=no
9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9684 soname_spec='${libname}${release}${shared_ext}$major'
9685 shlibpath_var=LD_LIBRARY_PATH
9686 ;;
9687
9688freebsd* | dragonfly*)
9689 # DragonFly does not have aout. When/if they implement a new
9690 # versioning mechanism, adjust this.
9691 if test -x /usr/bin/objformat; then
9692 objformat=`/usr/bin/objformat`
9693 else
9694 case $host_os in
9695 freebsd[23].*) objformat=aout ;;
9696 *) objformat=elf ;;
9697 esac
9698 fi
9699 version_type=freebsd-$objformat
9700 case $version_type in
9701 freebsd-elf*)
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9703 need_version=no
9704 need_lib_prefix=no
9705 ;;
9706 freebsd-*)
9707 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9708 need_version=yes
9709 ;;
9710 esac
9711 shlibpath_var=LD_LIBRARY_PATH
9712 case $host_os in
9713 freebsd2.*)
9714 shlibpath_overrides_runpath=yes
9715 ;;
9716 freebsd3.[01]* | freebsdelf3.[01]*)
9717 shlibpath_overrides_runpath=yes
9718 hardcode_into_libs=yes
9719 ;;
9720 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9721 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9722 shlibpath_overrides_runpath=no
9723 hardcode_into_libs=yes
9724 ;;
9725 *) # from 4.6 on, and DragonFly
9726 shlibpath_overrides_runpath=yes
9727 hardcode_into_libs=yes
9728 ;;
9729 esac
9730 ;;
9731
9732gnu*)
9733 version_type=linux
9734 need_lib_prefix=no
9735 need_version=no
9736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9737 soname_spec='${libname}${release}${shared_ext}$major'
9738 shlibpath_var=LD_LIBRARY_PATH
9739 hardcode_into_libs=yes
9740 ;;
9741
9742haiku*)
9743 version_type=linux
9744 need_lib_prefix=no
9745 need_version=no
9746 dynamic_linker="$host_os runtime_loader"
9747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9748 soname_spec='${libname}${release}${shared_ext}$major'
9749 shlibpath_var=LIBRARY_PATH
9750 shlibpath_overrides_runpath=yes
9751 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9752 hardcode_into_libs=yes
9753 ;;
9754
9755hpux9* | hpux10* | hpux11*)
9756 # Give a soname corresponding to the major version so that dld.sl refuses to
9757 # link against other versions.
9758 version_type=sunos
9759 need_lib_prefix=no
9760 need_version=no
9761 case $host_cpu in
9762 ia64*)
9763 shrext_cmds='.so'
9764 hardcode_into_libs=yes
9765 dynamic_linker="$host_os dld.so"
9766 shlibpath_var=LD_LIBRARY_PATH
9767 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9769 soname_spec='${libname}${release}${shared_ext}$major'
9770 if test "X$HPUX_IA64_MODE" = X32; then
9771 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9772 else
9773 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9774 fi
9775 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9776 ;;
9777 hppa*64*)
9778 shrext_cmds='.sl'
9779 hardcode_into_libs=yes
9780 dynamic_linker="$host_os dld.sl"
9781 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9784 soname_spec='${libname}${release}${shared_ext}$major'
9785 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9786 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9787 ;;
9788 *)
9789 shrext_cmds='.sl'
9790 dynamic_linker="$host_os dld.sl"
9791 shlibpath_var=SHLIB_PATH
9792 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9794 soname_spec='${libname}${release}${shared_ext}$major'
9795 ;;
9796 esac
9797 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9798 postinstall_cmds='chmod 555 $lib'
9799 # or fails outright, so override atomically:
9800 install_override_mode=555
9801 ;;
9802
9803interix[3-9]*)
9804 version_type=linux
9805 need_lib_prefix=no
9806 need_version=no
9807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9808 soname_spec='${libname}${release}${shared_ext}$major'
9809 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9810 shlibpath_var=LD_LIBRARY_PATH
9811 shlibpath_overrides_runpath=no
9812 hardcode_into_libs=yes
9813 ;;
9814
9815irix5* | irix6* | nonstopux*)
9816 case $host_os in
9817 nonstopux*) version_type=nonstopux ;;
9818 *)
9819 if test "$lt_cv_prog_gnu_ld" = yes; then
9820 version_type=linux
9821 else
9822 version_type=irix
9823 fi ;;
9824 esac
9825 need_lib_prefix=no
9826 need_version=no
9827 soname_spec='${libname}${release}${shared_ext}$major'
9828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9829 case $host_os in
9830 irix5* | nonstopux*)
9831 libsuff= shlibsuff=
9832 ;;
9833 *)
9834 case $LD in # libtool.m4 will add one of these switches to LD
9835 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9836 libsuff= shlibsuff= libmagic=32-bit;;
9837 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9838 libsuff=32 shlibsuff=N32 libmagic=N32;;
9839 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9840 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9841 *) libsuff= shlibsuff= libmagic=never-match;;
9842 esac
9843 ;;
9844 esac
9845 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9846 shlibpath_overrides_runpath=no
9847 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9848 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9849 hardcode_into_libs=yes
9850 ;;
9851
9852# No shared lib support for Linux oldld, aout, or coff.
9853linux*oldld* | linux*aout* | linux*coff*)
9854 dynamic_linker=no
9855 ;;
9856
9857# This must be Linux ELF.
9858linux* | k*bsd*-gnu | kopensolaris*-gnu)
9859 version_type=linux
9860 need_lib_prefix=no
9861 need_version=no
9862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9863 soname_spec='${libname}${release}${shared_ext}$major'
9864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9865 shlibpath_var=LD_LIBRARY_PATH
9866 shlibpath_overrides_runpath=no
9867
9868 # Some binutils ld are patched to set DT_RUNPATH
9869 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9870 $as_echo_n "(cached) " >&6
9871else
9872 lt_cv_shlibpath_overrides_runpath=no
9873 save_LDFLAGS=$LDFLAGS
9874 save_libdir=$libdir
9875 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9876 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878/* end confdefs.h. */
9879
9880int
9881main ()
9882{
9883
9884 ;
9885 return 0;
9886}
9887_ACEOF
9888if ac_fn_c_try_link "$LINENO"; then :
9889 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9890 lt_cv_shlibpath_overrides_runpath=yes
9891fi
9892fi
9893rm -f core conftest.err conftest.$ac_objext \
9894 conftest$ac_exeext conftest.$ac_ext
9895 LDFLAGS=$save_LDFLAGS
9896 libdir=$save_libdir
9897
9898fi
9899
9900 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9901
9902 # This implies no fast_install, which is unacceptable.
9903 # Some rework will be needed to allow for fast_install
9904 # before this can be enabled.
9905 hardcode_into_libs=yes
9906
9907 # Append ld.so.conf contents to the search path
9908 if test -f /etc/ld.so.conf; then
9909 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' ' '`
9910 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9911 fi
9912
9913 # We used to test for /lib/ld.so.1 and disable shared libraries on
9914 # powerpc, because MkLinux only supported shared libraries with the
9915 # GNU dynamic linker. Since this was broken with cross compilers,
9916 # most powerpc-linux boxes support dynamic linking these days and
9917 # people can always --disable-shared, the test was removed, and we
9918 # assume the GNU/Linux dynamic linker is in use.
9919 dynamic_linker='GNU/Linux ld.so'
9920 ;;
9921
9922netbsd*)
9923 version_type=sunos
9924 need_lib_prefix=no
9925 need_version=no
9926 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9929 dynamic_linker='NetBSD (a.out) ld.so'
9930 else
9931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9932 soname_spec='${libname}${release}${shared_ext}$major'
9933 dynamic_linker='NetBSD ld.elf_so'
9934 fi
9935 shlibpath_var=LD_LIBRARY_PATH
9936 shlibpath_overrides_runpath=yes
9937 hardcode_into_libs=yes
9938 ;;
9939
9940newsos6)
9941 version_type=linux
9942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9943 shlibpath_var=LD_LIBRARY_PATH
9944 shlibpath_overrides_runpath=yes
9945 ;;
9946
9947*nto* | *qnx*)
9948 version_type=qnx
9949 need_lib_prefix=no
9950 need_version=no
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952 soname_spec='${libname}${release}${shared_ext}$major'
9953 shlibpath_var=LD_LIBRARY_PATH
9954 shlibpath_overrides_runpath=no
9955 hardcode_into_libs=yes
9956 dynamic_linker='ldqnx.so'
9957 ;;
9958
9959openbsd*)
9960 version_type=sunos
9961 sys_lib_dlsearch_path_spec="/usr/lib"
9962 need_lib_prefix=no
9963 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9964 case $host_os in
9965 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9966 *) need_version=no ;;
9967 esac
9968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9970 shlibpath_var=LD_LIBRARY_PATH
9971 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9972 case $host_os in
9973 openbsd2.[89] | openbsd2.[89].*)
9974 shlibpath_overrides_runpath=no
9975 ;;
9976 *)
9977 shlibpath_overrides_runpath=yes
9978 ;;
9979 esac
9980 else
9981 shlibpath_overrides_runpath=yes
9982 fi
9983 ;;
9984
9985os2*)
9986 libname_spec='$name'
9987 shrext_cmds=".dll"
9988 need_lib_prefix=no
9989 library_names_spec='$libname${shared_ext} $libname.a'
9990 dynamic_linker='OS/2 ld.exe'
9991 shlibpath_var=LIBPATH
9992 ;;
9993
9994osf3* | osf4* | osf5*)
9995 version_type=osf
9996 need_lib_prefix=no
9997 need_version=no
9998 soname_spec='${libname}${release}${shared_ext}$major'
9999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10000 shlibpath_var=LD_LIBRARY_PATH
10001 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10002 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10003 ;;
10004
10005rdos*)
10006 dynamic_linker=no
10007 ;;
10008
10009solaris*)
10010 version_type=linux
10011 need_lib_prefix=no
10012 need_version=no
10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014 soname_spec='${libname}${release}${shared_ext}$major'
10015 shlibpath_var=LD_LIBRARY_PATH
10016 shlibpath_overrides_runpath=yes
10017 hardcode_into_libs=yes
10018 # ldd complains unless libraries are executable
10019 postinstall_cmds='chmod +x $lib'
10020 ;;
10021
10022sunos4*)
10023 version_type=sunos
10024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10025 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10026 shlibpath_var=LD_LIBRARY_PATH
10027 shlibpath_overrides_runpath=yes
10028 if test "$with_gnu_ld" = yes; then
10029 need_lib_prefix=no
10030 fi
10031 need_version=yes
10032 ;;
10033
10034sysv4 | sysv4.3*)
10035 version_type=linux
10036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10037 soname_spec='${libname}${release}${shared_ext}$major'
10038 shlibpath_var=LD_LIBRARY_PATH
10039 case $host_vendor in
10040 sni)
10041 shlibpath_overrides_runpath=no
10042 need_lib_prefix=no
10043 runpath_var=LD_RUN_PATH
10044 ;;
10045 siemens)
10046 need_lib_prefix=no
10047 ;;
10048 motorola)
10049 need_lib_prefix=no
10050 need_version=no
10051 shlibpath_overrides_runpath=no
10052 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10053 ;;
10054 esac
10055 ;;
10056
10057sysv4*MP*)
10058 if test -d /usr/nec ;then
10059 version_type=linux
10060 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10061 soname_spec='$libname${shared_ext}.$major'
10062 shlibpath_var=LD_LIBRARY_PATH
10063 fi
10064 ;;
10065
10066sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10067 version_type=freebsd-elf
10068 need_lib_prefix=no
10069 need_version=no
10070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10071 soname_spec='${libname}${release}${shared_ext}$major'
10072 shlibpath_var=LD_LIBRARY_PATH
10073 shlibpath_overrides_runpath=yes
10074 hardcode_into_libs=yes
10075 if test "$with_gnu_ld" = yes; then
10076 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10077 else
10078 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10079 case $host_os in
10080 sco3.2v5*)
10081 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10082 ;;
10083 esac
10084 fi
10085 sys_lib_dlsearch_path_spec='/usr/lib'
10086 ;;
10087
10088tpf*)
10089 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10090 version_type=linux
10091 need_lib_prefix=no
10092 need_version=no
10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10094 shlibpath_var=LD_LIBRARY_PATH
10095 shlibpath_overrides_runpath=no
10096 hardcode_into_libs=yes
10097 ;;
10098
10099uts4*)
10100 version_type=linux
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102 soname_spec='${libname}${release}${shared_ext}$major'
10103 shlibpath_var=LD_LIBRARY_PATH
10104 ;;
10105
10106*)
10107 dynamic_linker=no
10108 ;;
10109esac
10110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10111$as_echo "$dynamic_linker" >&6; }
10112test "$dynamic_linker" = no && can_build_shared=no
10113
10114variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10115if test "$GCC" = yes; then
10116 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10117fi
10118
10119if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10120 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10121fi
10122if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10123 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10124fi
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10218$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10219hardcode_action=
10220if test -n "$hardcode_libdir_flag_spec" ||
10221 test -n "$runpath_var" ||
10222 test "X$hardcode_automatic" = "Xyes" ; then
10223
10224 # We can hardcode non-existent directories.
10225 if test "$hardcode_direct" != no &&
10226 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10227 # have to relink, otherwise we might link with an installed library
10228 # when we should be linking with a yet-to-be-installed one
10229 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10230 test "$hardcode_minus_L" != no; then
10231 # Linking always hardcodes the temporary library directory.
10232 hardcode_action=relink
10233 else
10234 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10235 hardcode_action=immediate
10236 fi
10237else
10238 # We cannot hardcode anything, or else we can only hardcode existing
10239 # directories.
10240 hardcode_action=unsupported
10241fi
10242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10243$as_echo "$hardcode_action" >&6; }
10244
10245if test "$hardcode_action" = relink ||
10246 test "$inherit_rpath" = yes; then
10247 # Fast installation is not supported
10248 enable_fast_install=no
10249elif test "$shlibpath_overrides_runpath" = yes ||
10250 test "$enable_shared" = no; then
10251 # Fast installation is not necessary
10252 enable_fast_install=needless
10253fi
10254
10255
10256
10257
10258
10259
10260 if test "x$enable_dlopen" != xyes; then
10261 enable_dlopen=unknown
10262 enable_dlopen_self=unknown
10263 enable_dlopen_self_static=unknown
10264else
10265 lt_cv_dlopen=no
10266 lt_cv_dlopen_libs=
10267
10268 case $host_os in
10269 beos*)
10270 lt_cv_dlopen="load_add_on"
10271 lt_cv_dlopen_libs=
10272 lt_cv_dlopen_self=yes
10273 ;;
10274
10275 mingw* | pw32* | cegcc*)
10276 lt_cv_dlopen="LoadLibrary"
10277 lt_cv_dlopen_libs=
10278 ;;
10279
10280 cygwin*)
10281 lt_cv_dlopen="dlopen"
10282 lt_cv_dlopen_libs=
10283 ;;
10284
10285 darwin*)
10286 # if libdl is installed we need to link against it
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10288$as_echo_n "checking for dlopen in -ldl... " >&6; }
10289if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10290 $as_echo_n "(cached) " >&6
10291else
10292 ac_check_lib_save_LIBS=$LIBS
10293LIBS="-ldl $LIBS"
10294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10295/* end confdefs.h. */
10296
10297/* Override any GCC internal prototype to avoid an error.
10298 Use char because int might match the return type of a GCC
10299 builtin and then its argument prototype would still apply. */
10300#ifdef __cplusplus
10301extern "C"
10302#endif
10303char dlopen ();
10304int
10305main ()
10306{
10307return dlopen ();
10308 ;
10309 return 0;
10310}
10311_ACEOF
10312if ac_fn_c_try_link "$LINENO"; then :
10313 ac_cv_lib_dl_dlopen=yes
10314else
10315 ac_cv_lib_dl_dlopen=no
10316fi
10317rm -f core conftest.err conftest.$ac_objext \
10318 conftest$ac_exeext conftest.$ac_ext
10319LIBS=$ac_check_lib_save_LIBS
10320fi
10321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10322$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10323if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10324 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10325else
10326
10327 lt_cv_dlopen="dyld"
10328 lt_cv_dlopen_libs=
10329 lt_cv_dlopen_self=yes
10330
10331fi
10332
10333 ;;
10334
10335 *)
10336 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10337if test "x$ac_cv_func_shl_load" = x""yes; then :
10338 lt_cv_dlopen="shl_load"
10339else
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10341$as_echo_n "checking for shl_load in -ldld... " >&6; }
10342if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10343 $as_echo_n "(cached) " >&6
10344else
10345 ac_check_lib_save_LIBS=$LIBS
10346LIBS="-ldld $LIBS"
10347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348/* end confdefs.h. */
10349
10350/* Override any GCC internal prototype to avoid an error.
10351 Use char because int might match the return type of a GCC
10352 builtin and then its argument prototype would still apply. */
10353#ifdef __cplusplus
10354extern "C"
10355#endif
10356char shl_load ();
10357int
10358main ()
10359{
10360return shl_load ();
10361 ;
10362 return 0;
10363}
10364_ACEOF
10365if ac_fn_c_try_link "$LINENO"; then :
10366 ac_cv_lib_dld_shl_load=yes
10367else
10368 ac_cv_lib_dld_shl_load=no
10369fi
10370rm -f core conftest.err conftest.$ac_objext \
10371 conftest$ac_exeext conftest.$ac_ext
10372LIBS=$ac_check_lib_save_LIBS
10373fi
10374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10375$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10376if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10377 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10378else
10379 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10380if test "x$ac_cv_func_dlopen" = x""yes; then :
10381 lt_cv_dlopen="dlopen"
10382else
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10384$as_echo_n "checking for dlopen in -ldl... " >&6; }
10385if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10386 $as_echo_n "(cached) " >&6
10387else
10388 ac_check_lib_save_LIBS=$LIBS
10389LIBS="-ldl $LIBS"
10390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10391/* end confdefs.h. */
10392
10393/* Override any GCC internal prototype to avoid an error.
10394 Use char because int might match the return type of a GCC
10395 builtin and then its argument prototype would still apply. */
10396#ifdef __cplusplus
10397extern "C"
10398#endif
10399char dlopen ();
10400int
10401main ()
10402{
10403return dlopen ();
10404 ;
10405 return 0;
10406}
10407_ACEOF
10408if ac_fn_c_try_link "$LINENO"; then :
10409 ac_cv_lib_dl_dlopen=yes
10410else
10411 ac_cv_lib_dl_dlopen=no
10412fi
10413rm -f core conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
10415LIBS=$ac_check_lib_save_LIBS
10416fi
10417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10418$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10419if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10420 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10421else
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10423$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10424if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10425 $as_echo_n "(cached) " >&6
10426else
10427 ac_check_lib_save_LIBS=$LIBS
10428LIBS="-lsvld $LIBS"
10429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430/* end confdefs.h. */
10431
10432/* Override any GCC internal prototype to avoid an error.
10433 Use char because int might match the return type of a GCC
10434 builtin and then its argument prototype would still apply. */
10435#ifdef __cplusplus
10436extern "C"
10437#endif
10438char dlopen ();
10439int
10440main ()
10441{
10442return dlopen ();
10443 ;
10444 return 0;
10445}
10446_ACEOF
10447if ac_fn_c_try_link "$LINENO"; then :
10448 ac_cv_lib_svld_dlopen=yes
10449else
10450 ac_cv_lib_svld_dlopen=no
10451fi
10452rm -f core conftest.err conftest.$ac_objext \
10453 conftest$ac_exeext conftest.$ac_ext
10454LIBS=$ac_check_lib_save_LIBS
10455fi
10456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10457$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10458if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10459 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10460else
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10462$as_echo_n "checking for dld_link in -ldld... " >&6; }
10463if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10464 $as_echo_n "(cached) " >&6
10465else
10466 ac_check_lib_save_LIBS=$LIBS
10467LIBS="-ldld $LIBS"
10468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10469/* end confdefs.h. */
10470
10471/* Override any GCC internal prototype to avoid an error.
10472 Use char because int might match the return type of a GCC
10473 builtin and then its argument prototype would still apply. */
10474#ifdef __cplusplus
10475extern "C"
10476#endif
10477char dld_link ();
10478int
10479main ()
10480{
10481return dld_link ();
10482 ;
10483 return 0;
10484}
10485_ACEOF
10486if ac_fn_c_try_link "$LINENO"; then :
10487 ac_cv_lib_dld_dld_link=yes
10488else
10489 ac_cv_lib_dld_dld_link=no
10490fi
10491rm -f core conftest.err conftest.$ac_objext \
10492 conftest$ac_exeext conftest.$ac_ext
10493LIBS=$ac_check_lib_save_LIBS
10494fi
10495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10496$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10497if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10498 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10499fi
10500
10501
10502fi
10503
10504
10505fi
10506
10507
10508fi
10509
10510
10511fi
10512
10513
10514fi
10515
10516 ;;
10517 esac
10518
10519 if test "x$lt_cv_dlopen" != xno; then
10520 enable_dlopen=yes
10521 else
10522 enable_dlopen=no
10523 fi
10524
10525 case $lt_cv_dlopen in
10526 dlopen)
10527 save_CPPFLAGS="$CPPFLAGS"
10528 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10529
10530 save_LDFLAGS="$LDFLAGS"
10531 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10532
10533 save_LIBS="$LIBS"
10534 LIBS="$lt_cv_dlopen_libs $LIBS"
10535
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10537$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10538if test "${lt_cv_dlopen_self+set}" = set; then :
10539 $as_echo_n "(cached) " >&6
10540else
10541 if test "$cross_compiling" = yes; then :
10542 lt_cv_dlopen_self=cross
10543else
10544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10545 lt_status=$lt_dlunknown
10546 cat > conftest.$ac_ext <<_LT_EOF
3c36aa6b 10547#line 10547 "configure"
ddc8de03
PM
10548#include "confdefs.h"
10549
10550#if HAVE_DLFCN_H
10551#include <dlfcn.h>
10552#endif
10553
10554#include <stdio.h>
10555
10556#ifdef RTLD_GLOBAL
10557# define LT_DLGLOBAL RTLD_GLOBAL
10558#else
10559# ifdef DL_GLOBAL
10560# define LT_DLGLOBAL DL_GLOBAL
10561# else
10562# define LT_DLGLOBAL 0
10563# endif
10564#endif
10565
10566/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10567 find out it does not work in some platform. */
10568#ifndef LT_DLLAZY_OR_NOW
10569# ifdef RTLD_LAZY
10570# define LT_DLLAZY_OR_NOW RTLD_LAZY
10571# else
10572# ifdef DL_LAZY
10573# define LT_DLLAZY_OR_NOW DL_LAZY
10574# else
10575# ifdef RTLD_NOW
10576# define LT_DLLAZY_OR_NOW RTLD_NOW
10577# else
10578# ifdef DL_NOW
10579# define LT_DLLAZY_OR_NOW DL_NOW
10580# else
10581# define LT_DLLAZY_OR_NOW 0
10582# endif
10583# endif
10584# endif
10585# endif
10586#endif
10587
10588/* When -fvisbility=hidden is used, assume the code has been annotated
10589 correspondingly for the symbols needed. */
10590#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10591void fnord () __attribute__((visibility("default")));
10592#endif
10593
10594void fnord () { int i=42; }
10595int main ()
10596{
10597 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10598 int status = $lt_dlunknown;
10599
10600 if (self)
10601 {
10602 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10603 else
10604 {
10605 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10606 else puts (dlerror ());
10607 }
10608 /* dlclose (self); */
10609 }
10610 else
10611 puts (dlerror ());
10612
10613 return status;
10614}
10615_LT_EOF
10616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10617 (eval $ac_link) 2>&5
10618 ac_status=$?
10619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10620 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10621 (./conftest; exit; ) >&5 2>/dev/null
10622 lt_status=$?
10623 case x$lt_status in
10624 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10625 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10626 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10627 esac
10628 else :
10629 # compilation failed
10630 lt_cv_dlopen_self=no
10631 fi
10632fi
10633rm -fr conftest*
10634
10635
10636fi
10637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10638$as_echo "$lt_cv_dlopen_self" >&6; }
10639
10640 if test "x$lt_cv_dlopen_self" = xyes; then
10641 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10643$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10644if test "${lt_cv_dlopen_self_static+set}" = set; then :
10645 $as_echo_n "(cached) " >&6
10646else
10647 if test "$cross_compiling" = yes; then :
10648 lt_cv_dlopen_self_static=cross
10649else
10650 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10651 lt_status=$lt_dlunknown
10652 cat > conftest.$ac_ext <<_LT_EOF
3c36aa6b 10653#line 10653 "configure"
ddc8de03
PM
10654#include "confdefs.h"
10655
10656#if HAVE_DLFCN_H
10657#include <dlfcn.h>
10658#endif
10659
10660#include <stdio.h>
10661
10662#ifdef RTLD_GLOBAL
10663# define LT_DLGLOBAL RTLD_GLOBAL
10664#else
10665# ifdef DL_GLOBAL
10666# define LT_DLGLOBAL DL_GLOBAL
10667# else
10668# define LT_DLGLOBAL 0
10669# endif
10670#endif
10671
10672/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10673 find out it does not work in some platform. */
10674#ifndef LT_DLLAZY_OR_NOW
10675# ifdef RTLD_LAZY
10676# define LT_DLLAZY_OR_NOW RTLD_LAZY
10677# else
10678# ifdef DL_LAZY
10679# define LT_DLLAZY_OR_NOW DL_LAZY
10680# else
10681# ifdef RTLD_NOW
10682# define LT_DLLAZY_OR_NOW RTLD_NOW
10683# else
10684# ifdef DL_NOW
10685# define LT_DLLAZY_OR_NOW DL_NOW
10686# else
10687# define LT_DLLAZY_OR_NOW 0
10688# endif
10689# endif
10690# endif
10691# endif
10692#endif
10693
10694/* When -fvisbility=hidden is used, assume the code has been annotated
10695 correspondingly for the symbols needed. */
10696#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10697void fnord () __attribute__((visibility("default")));
10698#endif
10699
10700void fnord () { int i=42; }
10701int main ()
10702{
10703 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10704 int status = $lt_dlunknown;
10705
10706 if (self)
10707 {
10708 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10709 else
10710 {
10711 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10712 else puts (dlerror ());
10713 }
10714 /* dlclose (self); */
10715 }
10716 else
10717 puts (dlerror ());
10718
10719 return status;
10720}
10721_LT_EOF
10722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10723 (eval $ac_link) 2>&5
10724 ac_status=$?
10725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10726 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10727 (./conftest; exit; ) >&5 2>/dev/null
10728 lt_status=$?
10729 case x$lt_status in
10730 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10731 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10732 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10733 esac
10734 else :
10735 # compilation failed
10736 lt_cv_dlopen_self_static=no
10737 fi
10738fi
10739rm -fr conftest*
10740
10741
10742fi
10743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10744$as_echo "$lt_cv_dlopen_self_static" >&6; }
10745 fi
10746
10747 CPPFLAGS="$save_CPPFLAGS"
10748 LDFLAGS="$save_LDFLAGS"
10749 LIBS="$save_LIBS"
10750 ;;
10751 esac
10752
10753 case $lt_cv_dlopen_self in
10754 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10755 *) enable_dlopen_self=unknown ;;
10756 esac
10757
10758 case $lt_cv_dlopen_self_static in
10759 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10760 *) enable_dlopen_self_static=unknown ;;
10761 esac
10762fi
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780striplib=
10781old_striplib=
10782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10783$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10784if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10785 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10786 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10788$as_echo "yes" >&6; }
10789else
10790# FIXME - insert some real tests, host_os isn't really good enough
10791 case $host_os in
10792 darwin*)
10793 if test -n "$STRIP" ; then
10794 striplib="$STRIP -x"
10795 old_striplib="$STRIP -S"
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10797$as_echo "yes" >&6; }
10798 else
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10800$as_echo "no" >&6; }
10801 fi
10802 ;;
10803 *)
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10805$as_echo "no" >&6; }
10806 ;;
10807 esac
10808fi
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821 # Report which library types will actually be built
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10823$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10825$as_echo "$can_build_shared" >&6; }
10826
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10828$as_echo_n "checking whether to build shared libraries... " >&6; }
10829 test "$can_build_shared" = "no" && enable_shared=no
10830
10831 # On AIX, shared libraries and static libraries use the same namespace, and
10832 # are all built from PIC.
10833 case $host_os in
10834 aix3*)
10835 test "$enable_shared" = yes && enable_static=no
10836 if test -n "$RANLIB"; then
10837 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10838 postinstall_cmds='$RANLIB $lib'
10839 fi
10840 ;;
10841
10842 aix[4-9]*)
10843 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10844 test "$enable_shared" = yes && enable_static=no
10845 fi
10846 ;;
10847 esac
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10849$as_echo "$enable_shared" >&6; }
10850
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10852$as_echo_n "checking whether to build static libraries... " >&6; }
10853 # Make sure either enable_shared or enable_static is yes.
10854 test "$enable_shared" = yes || enable_static=yes
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10856$as_echo "$enable_static" >&6; }
10857
10858
10859
10860
10861fi
10862ac_ext=c
10863ac_cpp='$CPP $CPPFLAGS'
10864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10866ac_compiler_gnu=$ac_cv_c_compiler_gnu
10867
10868CC="$lt_save_CC"
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882 ac_config_commands="$ac_config_commands libtool"
10883
10884
10885
10886
10887# Only expand once:
10888
10889
10890
10891ac_ext=cpp
10892ac_cpp='$CXXCPP $CPPFLAGS'
10893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10896if test -z "$CXX"; then
10897 if test -n "$CCC"; then
10898 CXX=$CCC
10899 else
10900 if test -n "$ac_tool_prefix"; then
10901 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10902 do
10903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10904set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10906$as_echo_n "checking for $ac_word... " >&6; }
10907if test "${ac_cv_prog_CXX+set}" = set; then :
10908 $as_echo_n "(cached) " >&6
10909else
10910 if test -n "$CXX"; then
10911 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10912else
10913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10914for as_dir in $PATH
10915do
10916 IFS=$as_save_IFS
10917 test -z "$as_dir" && as_dir=.
10918 for ac_exec_ext in '' $ac_executable_extensions; do
10919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10920 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10922 break 2
10923 fi
10924done
10925 done
10926IFS=$as_save_IFS
10927
10928fi
10929fi
10930CXX=$ac_cv_prog_CXX
10931if test -n "$CXX"; then
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10933$as_echo "$CXX" >&6; }
10934else
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10936$as_echo "no" >&6; }
10937fi
10938
10939
10940 test -n "$CXX" && break
10941 done
10942fi
10943if test -z "$CXX"; then
10944 ac_ct_CXX=$CXX
10945 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10946do
10947 # Extract the first word of "$ac_prog", so it can be a program name with args.
10948set dummy $ac_prog; ac_word=$2
10949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10950$as_echo_n "checking for $ac_word... " >&6; }
10951if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10952 $as_echo_n "(cached) " >&6
10953else
10954 if test -n "$ac_ct_CXX"; then
10955 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10956else
10957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10958for as_dir in $PATH
10959do
10960 IFS=$as_save_IFS
10961 test -z "$as_dir" && as_dir=.
10962 for ac_exec_ext in '' $ac_executable_extensions; do
10963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10964 ac_cv_prog_ac_ct_CXX="$ac_prog"
10965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10966 break 2
10967 fi
10968done
10969 done
10970IFS=$as_save_IFS
10971
10972fi
10973fi
10974ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10975if test -n "$ac_ct_CXX"; then
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10977$as_echo "$ac_ct_CXX" >&6; }
10978else
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10980$as_echo "no" >&6; }
10981fi
10982
10983
10984 test -n "$ac_ct_CXX" && break
10985done
10986
10987 if test "x$ac_ct_CXX" = x; then
10988 CXX="g++"
10989 else
10990 case $cross_compiling:$ac_tool_warned in
10991yes:)
10992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10994ac_tool_warned=yes ;;
10995esac
10996 CXX=$ac_ct_CXX
10997 fi
10998fi
10999
11000 fi
11001fi
11002# Provide some information about the compiler.
11003$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11004set X $ac_compile
11005ac_compiler=$2
11006for ac_option in --version -v -V -qversion; do
11007 { { ac_try="$ac_compiler $ac_option >&5"
11008case "(($ac_try" in
11009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010 *) ac_try_echo=$ac_try;;
11011esac
11012eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11013$as_echo "$ac_try_echo"; } >&5
11014 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11015 ac_status=$?
11016 if test -s conftest.err; then
11017 sed '10a\
11018... rest of stderr output deleted ...
11019 10q' conftest.err >conftest.er1
11020 cat conftest.er1 >&5
11021 rm -f conftest.er1 conftest.err
11022 fi
11023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11024 test $ac_status = 0; }
11025done
11026
11027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11028$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11029if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11030 $as_echo_n "(cached) " >&6
11031else
11032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033/* end confdefs.h. */
11034
11035int
11036main ()
11037{
11038#ifndef __GNUC__
11039 choke me
11040#endif
11041
11042 ;
11043 return 0;
11044}
11045_ACEOF
11046if ac_fn_cxx_try_compile "$LINENO"; then :
11047 ac_compiler_gnu=yes
11048else
11049 ac_compiler_gnu=no
11050fi
11051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11052ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11053
11054fi
11055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11056$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11057if test $ac_compiler_gnu = yes; then
11058 GXX=yes
11059else
11060 GXX=
11061fi
11062ac_test_CXXFLAGS=${CXXFLAGS+set}
11063ac_save_CXXFLAGS=$CXXFLAGS
11064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11065$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11066if test "${ac_cv_prog_cxx_g+set}" = set; then :
11067 $as_echo_n "(cached) " >&6
11068else
11069 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11070 ac_cxx_werror_flag=yes
11071 ac_cv_prog_cxx_g=no
11072 CXXFLAGS="-g"
11073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11074/* end confdefs.h. */
11075
11076int
11077main ()
11078{
11079
11080 ;
11081 return 0;
11082}
11083_ACEOF
11084if ac_fn_cxx_try_compile "$LINENO"; then :
11085 ac_cv_prog_cxx_g=yes
11086else
11087 CXXFLAGS=""
11088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11089/* end confdefs.h. */
11090
11091int
11092main ()
11093{
11094
11095 ;
11096 return 0;
11097}
11098_ACEOF
11099if ac_fn_cxx_try_compile "$LINENO"; then :
11100
11101else
11102 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11103 CXXFLAGS="-g"
11104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105/* end confdefs.h. */
11106
11107int
11108main ()
11109{
11110
11111 ;
11112 return 0;
11113}
11114_ACEOF
11115if ac_fn_cxx_try_compile "$LINENO"; then :
11116 ac_cv_prog_cxx_g=yes
11117fi
11118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11119fi
11120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11121fi
11122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11123 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11124fi
11125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11126$as_echo "$ac_cv_prog_cxx_g" >&6; }
11127if test "$ac_test_CXXFLAGS" = set; then
11128 CXXFLAGS=$ac_save_CXXFLAGS
11129elif test $ac_cv_prog_cxx_g = yes; then
11130 if test "$GXX" = yes; then
11131 CXXFLAGS="-g -O2"
11132 else
11133 CXXFLAGS="-g"
11134 fi
11135else
11136 if test "$GXX" = yes; then
11137 CXXFLAGS="-O2"
11138 else
11139 CXXFLAGS=
11140 fi
11141fi
11142ac_ext=c
11143ac_cpp='$CPP $CPPFLAGS'
11144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11146ac_compiler_gnu=$ac_cv_c_compiler_gnu
11147
11148depcc="$CXX" am_compiler_list=
11149
11150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11151$as_echo_n "checking dependency style of $depcc... " >&6; }
11152if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11153 $as_echo_n "(cached) " >&6
11154else
11155 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11156 # We make a subdir and do the tests there. Otherwise we can end up
11157 # making bogus files that we don't know about and never remove. For
11158 # instance it was reported that on HP-UX the gcc test will end up
11159 # making a dummy file named `D' -- because `-MD' means `put the output
11160 # in D'.
4709a6d2 11161 rm -rf conftest.dir
ddc8de03
PM
11162 mkdir conftest.dir
11163 # Copy depcomp to subdir because otherwise we won't find it if we're
11164 # using a relative directory.
11165 cp "$am_depcomp" conftest.dir
11166 cd conftest.dir
11167 # We will build objects and dependencies in a subdirectory because
11168 # it helps to detect inapplicable dependency modes. For instance
11169 # both Tru64's cc and ICC support -MD to output dependencies as a
11170 # side effect of compilation, but ICC will put the dependencies in
11171 # the current directory while Tru64 will put them in the object
11172 # directory.
11173 mkdir sub
11174
11175 am_cv_CXX_dependencies_compiler_type=none
11176 if test "$am_compiler_list" = ""; then
11177 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11178 fi
11179 am__universal=false
11180 case " $depcc " in #(
11181 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11182 esac
11183
11184 for depmode in $am_compiler_list; do
11185 # Setup a source with many dependencies, because some compilers
11186 # like to wrap large dependency lists on column 80 (with \), and
11187 # we should not choose a depcomp mode which is confused by this.
11188 #
11189 # We need to recreate these files for each test, as the compiler may
11190 # overwrite some of them when testing with obscure command lines.
11191 # This happens at least with the AIX C compiler.
11192 : > sub/conftest.c
11193 for i in 1 2 3 4 5 6; do
11194 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11195 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11196 # Solaris 8's {/usr,}/bin/sh.
11197 touch sub/conftst$i.h
11198 done
11199 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11200
11201 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11202 # mode. It turns out that the SunPro C++ compiler does not properly
11203 # handle `-M -o', and we need to detect this. Also, some Intel
11204 # versions had trouble with output in subdirs
11205 am__obj=sub/conftest.${OBJEXT-o}
11206 am__minus_obj="-o $am__obj"
11207 case $depmode in
11208 gcc)
11209 # This depmode causes a compiler race in universal mode.
11210 test "$am__universal" = false || continue
11211 ;;
11212 nosideeffect)
11213 # after this tag, mechanisms are not by side-effect, so they'll
11214 # only be used when explicitly requested
11215 if test "x$enable_dependency_tracking" = xyes; then
11216 continue
11217 else
11218 break
11219 fi
11220 ;;
4709a6d2 11221 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
ddc8de03
PM
11222 # This compiler won't grok `-c -o', but also, the minuso test has
11223 # not run yet. These depmodes are late enough in the game, and
11224 # so weak that their functioning should not be impacted.
11225 am__obj=conftest.${OBJEXT-o}
11226 am__minus_obj=
11227 ;;
11228 none) break ;;
11229 esac
11230 if depmode=$depmode \
11231 source=sub/conftest.c object=$am__obj \
11232 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11233 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11234 >/dev/null 2>conftest.err &&
11235 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11236 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11237 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11238 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11239 # icc doesn't choke on unknown options, it will just issue warnings
11240 # or remarks (even with -Werror). So we grep stderr for any message
11241 # that says an option was ignored or not supported.
11242 # When given -MP, icc 7.0 and 7.1 complain thusly:
11243 # icc: Command line warning: ignoring option '-M'; no argument required
11244 # The diagnosis changed in icc 8.0:
11245 # icc: Command line remark: option '-MP' not supported
11246 if (grep 'ignoring option' conftest.err ||
11247 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11248 am_cv_CXX_dependencies_compiler_type=$depmode
11249 break
11250 fi
11251 fi
11252 done
11253
11254 cd ..
11255 rm -rf conftest.dir
11256else
11257 am_cv_CXX_dependencies_compiler_type=none
11258fi
11259
11260fi
11261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11262$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11263CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11264
11265 if
11266 test "x$enable_dependency_tracking" != xno \
11267 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11268 am__fastdepCXX_TRUE=
11269 am__fastdepCXX_FALSE='#'
11270else
11271 am__fastdepCXX_TRUE='#'
11272 am__fastdepCXX_FALSE=
11273fi
11274
11275
11276 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11277 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11278 (test "X$CXX" != "Xg++"))) ; then
11279 ac_ext=cpp
11280ac_cpp='$CXXCPP $CPPFLAGS'
11281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11285$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11286if test -z "$CXXCPP"; then
11287 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11288 $as_echo_n "(cached) " >&6
11289else
11290 # Double quotes because CXXCPP needs to be expanded
11291 for CXXCPP in "$CXX -E" "/lib/cpp"
11292 do
11293 ac_preproc_ok=false
11294for ac_cxx_preproc_warn_flag in '' yes
11295do
11296 # Use a header file that comes with gcc, so configuring glibc
11297 # with a fresh cross-compiler works.
11298 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11299 # <limits.h> exists even on freestanding compilers.
11300 # On the NeXT, cc -E runs the code through the compiler's parser,
11301 # not just through cpp. "Syntax error" is here to catch this case.
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303/* end confdefs.h. */
11304#ifdef __STDC__
11305# include <limits.h>
11306#else
11307# include <assert.h>
11308#endif
11309 Syntax error
11310_ACEOF
11311if ac_fn_cxx_try_cpp "$LINENO"; then :
11312
11313else
11314 # Broken: fails on valid input.
11315continue
11316fi
11317rm -f conftest.err conftest.$ac_ext
11318
11319 # OK, works on sane cases. Now check whether nonexistent headers
11320 # can be detected and how.
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322/* end confdefs.h. */
11323#include <ac_nonexistent.h>
11324_ACEOF
11325if ac_fn_cxx_try_cpp "$LINENO"; then :
11326 # Broken: success on invalid input.
11327continue
11328else
11329 # Passes both tests.
11330ac_preproc_ok=:
11331break
11332fi
11333rm -f conftest.err conftest.$ac_ext
11334
11335done
11336# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11337rm -f conftest.err conftest.$ac_ext
11338if $ac_preproc_ok; then :
11339 break
11340fi
11341
11342 done
11343 ac_cv_prog_CXXCPP=$CXXCPP
11344
11345fi
11346 CXXCPP=$ac_cv_prog_CXXCPP
11347else
11348 ac_cv_prog_CXXCPP=$CXXCPP
11349fi
11350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11351$as_echo "$CXXCPP" >&6; }
11352ac_preproc_ok=false
11353for ac_cxx_preproc_warn_flag in '' yes
11354do
11355 # Use a header file that comes with gcc, so configuring glibc
11356 # with a fresh cross-compiler works.
11357 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11358 # <limits.h> exists even on freestanding compilers.
11359 # On the NeXT, cc -E runs the code through the compiler's parser,
11360 # not just through cpp. "Syntax error" is here to catch this case.
11361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362/* end confdefs.h. */
11363#ifdef __STDC__
11364# include <limits.h>
11365#else
11366# include <assert.h>
11367#endif
11368 Syntax error
11369_ACEOF
11370if ac_fn_cxx_try_cpp "$LINENO"; then :
11371
11372else
11373 # Broken: fails on valid input.
11374continue
11375fi
11376rm -f conftest.err conftest.$ac_ext
11377
11378 # OK, works on sane cases. Now check whether nonexistent headers
11379 # can be detected and how.
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381/* end confdefs.h. */
11382#include <ac_nonexistent.h>
11383_ACEOF
11384if ac_fn_cxx_try_cpp "$LINENO"; then :
11385 # Broken: success on invalid input.
11386continue
11387else
11388 # Passes both tests.
11389ac_preproc_ok=:
11390break
11391fi
11392rm -f conftest.err conftest.$ac_ext
11393
11394done
11395# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11396rm -f conftest.err conftest.$ac_ext
11397if $ac_preproc_ok; then :
11398
11399else
11400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11402as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11403See \`config.log' for more details." "$LINENO" 5; }
11404fi
11405
11406ac_ext=c
11407ac_cpp='$CPP $CPPFLAGS'
11408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11410ac_compiler_gnu=$ac_cv_c_compiler_gnu
11411
11412else
11413 _lt_caught_CXX_error=yes
11414fi
11415
11416ac_ext=cpp
11417ac_cpp='$CXXCPP $CPPFLAGS'
11418ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11419ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11420ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11421
11422archive_cmds_need_lc_CXX=no
11423allow_undefined_flag_CXX=
11424always_export_symbols_CXX=no
11425archive_expsym_cmds_CXX=
11426compiler_needs_object_CXX=no
11427export_dynamic_flag_spec_CXX=
11428hardcode_direct_CXX=no
11429hardcode_direct_absolute_CXX=no
11430hardcode_libdir_flag_spec_CXX=
11431hardcode_libdir_flag_spec_ld_CXX=
11432hardcode_libdir_separator_CXX=
11433hardcode_minus_L_CXX=no
11434hardcode_shlibpath_var_CXX=unsupported
11435hardcode_automatic_CXX=no
11436inherit_rpath_CXX=no
11437module_cmds_CXX=
11438module_expsym_cmds_CXX=
11439link_all_deplibs_CXX=unknown
11440old_archive_cmds_CXX=$old_archive_cmds
11441reload_flag_CXX=$reload_flag
11442reload_cmds_CXX=$reload_cmds
11443no_undefined_flag_CXX=
11444whole_archive_flag_spec_CXX=
11445enable_shared_with_static_runtimes_CXX=no
11446
11447# Source file extension for C++ test sources.
11448ac_ext=cpp
11449
11450# Object file extension for compiled C++ test sources.
11451objext=o
11452objext_CXX=$objext
11453
11454# No sense in running all these tests if we already determined that
11455# the CXX compiler isn't working. Some variables (like enable_shared)
11456# are currently assumed to apply to all compilers on this platform,
11457# and will be corrupted by setting them based on a non-working compiler.
11458if test "$_lt_caught_CXX_error" != yes; then
11459 # Code to be used in simple compile tests
11460 lt_simple_compile_test_code="int some_variable = 0;"
11461
11462 # Code to be used in simple link tests
11463 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11464
11465 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11466
11467
11468
11469
11470
11471
11472# If no C compiler was specified, use CC.
11473LTCC=${LTCC-"$CC"}
11474
11475# If no C compiler flags were specified, use CFLAGS.
11476LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11477
11478# Allow CC to be a program name with arguments.
11479compiler=$CC
11480
11481
11482 # save warnings/boilerplate of simple test code
11483 ac_outfile=conftest.$ac_objext
11484echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11485eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11486_lt_compiler_boilerplate=`cat conftest.err`
11487$RM conftest*
11488
11489 ac_outfile=conftest.$ac_objext
11490echo "$lt_simple_link_test_code" >conftest.$ac_ext
11491eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11492_lt_linker_boilerplate=`cat conftest.err`
11493$RM -r conftest*
11494
11495
11496 # Allow CC to be a program name with arguments.
11497 lt_save_CC=$CC
11498 lt_save_LD=$LD
11499 lt_save_GCC=$GCC
11500 GCC=$GXX
11501 lt_save_with_gnu_ld=$with_gnu_ld
11502 lt_save_path_LD=$lt_cv_path_LD
11503 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11504 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11505 else
11506 $as_unset lt_cv_prog_gnu_ld
11507 fi
11508 if test -n "${lt_cv_path_LDCXX+set}"; then
11509 lt_cv_path_LD=$lt_cv_path_LDCXX
11510 else
11511 $as_unset lt_cv_path_LD
11512 fi
11513 test -z "${LDCXX+set}" || LD=$LDCXX
11514 CC=${CXX-"c++"}
11515 compiler=$CC
11516 compiler_CXX=$CC
11517 for cc_temp in $compiler""; do
11518 case $cc_temp in
11519 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11520 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11521 \-*) ;;
11522 *) break;;
11523 esac
11524done
11525cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11526
11527
11528 if test -n "$compiler"; then
11529 # We don't want -fno-exception when compiling C++ code, so set the
11530 # no_builtin_flag separately
11531 if test "$GXX" = yes; then
11532 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11533 else
11534 lt_prog_compiler_no_builtin_flag_CXX=
11535 fi
11536
11537 if test "$GXX" = yes; then
11538 # Set up default GNU C++ configuration
11539
11540
11541
11542# Check whether --with-gnu-ld was given.
11543if test "${with_gnu_ld+set}" = set; then :
11544 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11545else
11546 with_gnu_ld=no
11547fi
11548
11549ac_prog=ld
11550if test "$GCC" = yes; then
11551 # Check if gcc -print-prog-name=ld gives a path.
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11553$as_echo_n "checking for ld used by $CC... " >&6; }
11554 case $host in
11555 *-*-mingw*)
11556 # gcc leaves a trailing carriage return which upsets mingw
11557 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11558 *)
11559 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11560 esac
11561 case $ac_prog in
11562 # Accept absolute paths.
11563 [\\/]* | ?:[\\/]*)
11564 re_direlt='/[^/][^/]*/\.\./'
11565 # Canonicalize the pathname of ld
11566 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11567 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11568 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11569 done
11570 test -z "$LD" && LD="$ac_prog"
11571 ;;
11572 "")
11573 # If it fails, then pretend we aren't using GCC.
11574 ac_prog=ld
11575 ;;
11576 *)
11577 # If it is relative, then search for the first ld in PATH.
11578 with_gnu_ld=unknown
11579 ;;
11580 esac
11581elif test "$with_gnu_ld" = yes; then
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11583$as_echo_n "checking for GNU ld... " >&6; }
11584else
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11586$as_echo_n "checking for non-GNU ld... " >&6; }
11587fi
11588if test "${lt_cv_path_LD+set}" = set; then :
11589 $as_echo_n "(cached) " >&6
11590else
11591 if test -z "$LD"; then
11592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11593 for ac_dir in $PATH; do
11594 IFS="$lt_save_ifs"
11595 test -z "$ac_dir" && ac_dir=.
11596 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11597 lt_cv_path_LD="$ac_dir/$ac_prog"
11598 # Check to see if the program is GNU ld. I'd rather use --version,
11599 # but apparently some variants of GNU ld only accept -v.
11600 # Break only if it was the GNU/non-GNU ld that we prefer.
11601 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11602 *GNU* | *'with BFD'*)
11603 test "$with_gnu_ld" != no && break
11604 ;;
11605 *)
11606 test "$with_gnu_ld" != yes && break
11607 ;;
11608 esac
11609 fi
11610 done
11611 IFS="$lt_save_ifs"
11612else
11613 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11614fi
11615fi
11616
11617LD="$lt_cv_path_LD"
11618if test -n "$LD"; then
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11620$as_echo "$LD" >&6; }
11621else
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623$as_echo "no" >&6; }
11624fi
11625test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11627$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11628if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11629 $as_echo_n "(cached) " >&6
11630else
11631 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11632case `$LD -v 2>&1 </dev/null` in
11633*GNU* | *'with BFD'*)
11634 lt_cv_prog_gnu_ld=yes
11635 ;;
11636*)
11637 lt_cv_prog_gnu_ld=no
11638 ;;
11639esac
11640fi
11641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11642$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11643with_gnu_ld=$lt_cv_prog_gnu_ld
11644
11645
11646
11647
11648
11649
11650
11651 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11652 # archiving commands below assume that GNU ld is being used.
11653 if test "$with_gnu_ld" = yes; then
a699d672
L
11654 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11655 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ddc8de03
PM
11656
11657 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11658 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11659
11660 # If archive_cmds runs LD, not CC, wlarc should be empty
11661 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11662 # investigate it a little bit more. (MM)
11663 wlarc='${wl}'
11664
11665 # ancient GNU ld didn't support --whole-archive et. al.
11666 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11667 $GREP 'no-whole-archive' > /dev/null; then
11668 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11669 else
11670 whole_archive_flag_spec_CXX=
11671 fi
11672 else
11673 with_gnu_ld=no
11674 wlarc=
11675
11676 # A generic and very simple default shared library creation
11677 # command for GNU C++ for the case where it uses the native
11678 # linker, instead of GNU ld. If possible, this setting should
11679 # overridden to take advantage of the native linker features on
11680 # the platform it is being used on.
11681 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11682 fi
11683
11684 # Commands to make compiler produce verbose output that lists
11685 # what "hidden" libraries, object files and flags are used when
11686 # linking a shared library.
11687 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11688
11689 else
11690 GXX=no
11691 with_gnu_ld=no
11692 wlarc=
11693 fi
11694
11695 # PORTME: fill in a description of your system's C++ link characteristics
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11697$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11698 ld_shlibs_CXX=yes
11699 case $host_os in
11700 aix3*)
11701 # FIXME: insert proper C++ library support
11702 ld_shlibs_CXX=no
11703 ;;
11704 aix[4-9]*)
11705 if test "$host_cpu" = ia64; then
11706 # On IA64, the linker does run time linking by default, so we don't
11707 # have to do anything special.
11708 aix_use_runtimelinking=no
11709 exp_sym_flag='-Bexport'
11710 no_entry_flag=""
11711 else
11712 aix_use_runtimelinking=no
11713
11714 # Test if we are trying to use run time linking or normal
11715 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11716 # need to do runtime linking.
11717 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11718 for ld_flag in $LDFLAGS; do
11719 case $ld_flag in
11720 *-brtl*)
11721 aix_use_runtimelinking=yes
11722 break
11723 ;;
11724 esac
11725 done
11726 ;;
11727 esac
11728
11729 exp_sym_flag='-bexport'
11730 no_entry_flag='-bnoentry'
11731 fi
11732
11733 # When large executables or shared objects are built, AIX ld can
11734 # have problems creating the table of contents. If linking a library
11735 # or program results in "error TOC overflow" add -mminimal-toc to
11736 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11737 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11738
11739 archive_cmds_CXX=''
11740 hardcode_direct_CXX=yes
11741 hardcode_direct_absolute_CXX=yes
11742 hardcode_libdir_separator_CXX=':'
11743 link_all_deplibs_CXX=yes
11744 file_list_spec_CXX='${wl}-f,'
11745
11746 if test "$GXX" = yes; then
11747 case $host_os in aix4.[012]|aix4.[012].*)
11748 # We only want to do this on AIX 4.2 and lower, the check
11749 # below for broken collect2 doesn't work under 4.3+
11750 collect2name=`${CC} -print-prog-name=collect2`
11751 if test -f "$collect2name" &&
11752 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11753 then
11754 # We have reworked collect2
11755 :
11756 else
11757 # We have old collect2
11758 hardcode_direct_CXX=unsupported
11759 # It fails to find uninstalled libraries when the uninstalled
11760 # path is not listed in the libpath. Setting hardcode_minus_L
11761 # to unsupported forces relinking
11762 hardcode_minus_L_CXX=yes
11763 hardcode_libdir_flag_spec_CXX='-L$libdir'
11764 hardcode_libdir_separator_CXX=
11765 fi
11766 esac
11767 shared_flag='-shared'
11768 if test "$aix_use_runtimelinking" = yes; then
11769 shared_flag="$shared_flag "'${wl}-G'
11770 fi
11771 else
11772 # not using gcc
11773 if test "$host_cpu" = ia64; then
11774 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11775 # chokes on -Wl,-G. The following line is correct:
11776 shared_flag='-G'
11777 else
11778 if test "$aix_use_runtimelinking" = yes; then
11779 shared_flag='${wl}-G'
11780 else
11781 shared_flag='${wl}-bM:SRE'
11782 fi
11783 fi
11784 fi
11785
11786 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11787 # It seems that -bexpall does not export symbols beginning with
11788 # underscore (_), so it is better to generate a list of symbols to
11789 # export.
11790 always_export_symbols_CXX=yes
11791 if test "$aix_use_runtimelinking" = yes; then
11792 # Warning - without using the other runtime loading flags (-brtl),
11793 # -berok will link without error, but may produce a broken library.
11794 allow_undefined_flag_CXX='-berok'
11795 # Determine the default libpath from the value encoded in an empty
11796 # executable.
11797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11798/* end confdefs.h. */
11799
11800int
11801main ()
11802{
11803
11804 ;
11805 return 0;
11806}
11807_ACEOF
11808if ac_fn_cxx_try_link "$LINENO"; then :
11809
11810lt_aix_libpath_sed='
11811 /Import File Strings/,/^$/ {
11812 /^0/ {
11813 s/^0 *\(.*\)$/\1/
11814 p
11815 }
11816 }'
11817aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11818# Check for a 64-bit object if we didn't find anything.
11819if test -z "$aix_libpath"; then
11820 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11821fi
11822fi
11823rm -f core conftest.err conftest.$ac_objext \
11824 conftest$ac_exeext conftest.$ac_ext
11825if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11826
11827 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11828
11829 archive_expsym_cmds_CXX='$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"
11830 else
11831 if test "$host_cpu" = ia64; then
11832 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11833 allow_undefined_flag_CXX="-z nodefs"
11834 archive_expsym_cmds_CXX="\$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"
11835 else
11836 # Determine the default libpath from the value encoded in an
11837 # empty executable.
11838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11839/* end confdefs.h. */
11840
11841int
11842main ()
11843{
11844
11845 ;
11846 return 0;
11847}
11848_ACEOF
11849if ac_fn_cxx_try_link "$LINENO"; then :
11850
11851lt_aix_libpath_sed='
11852 /Import File Strings/,/^$/ {
11853 /^0/ {
11854 s/^0 *\(.*\)$/\1/
11855 p
11856 }
11857 }'
11858aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11859# Check for a 64-bit object if we didn't find anything.
11860if test -z "$aix_libpath"; then
11861 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11862fi
11863fi
11864rm -f core conftest.err conftest.$ac_objext \
11865 conftest$ac_exeext conftest.$ac_ext
11866if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11867
11868 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11869 # Warning - without using the other run time loading flags,
11870 # -berok will link without error, but may produce a broken library.
11871 no_undefined_flag_CXX=' ${wl}-bernotok'
11872 allow_undefined_flag_CXX=' ${wl}-berok'
11873 if test "$with_gnu_ld" = yes; then
11874 # We only use this code for GNU lds that support --whole-archive.
11875 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11876 else
11877 # Exported symbols can be pulled into shared objects from archives
11878 whole_archive_flag_spec_CXX='$convenience'
11879 fi
11880 archive_cmds_need_lc_CXX=yes
11881 # This is similar to how AIX traditionally builds its shared
11882 # libraries.
11883 archive_expsym_cmds_CXX="\$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'
11884 fi
11885 fi
11886 ;;
11887
11888 beos*)
11889 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11890 allow_undefined_flag_CXX=unsupported
11891 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11892 # support --undefined. This deserves some investigation. FIXME
11893 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11894 else
11895 ld_shlibs_CXX=no
11896 fi
11897 ;;
11898
11899 chorus*)
11900 case $cc_basename in
11901 *)
11902 # FIXME: insert proper C++ library support
11903 ld_shlibs_CXX=no
11904 ;;
11905 esac
11906 ;;
11907
11908 cygwin* | mingw* | pw32* | cegcc*)
11909 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11910 # as there is no search path for DLLs.
11911 hardcode_libdir_flag_spec_CXX='-L$libdir'
11912 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
11913 allow_undefined_flag_CXX=unsupported
11914 always_export_symbols_CXX=no
11915 enable_shared_with_static_runtimes_CXX=yes
11916
11917 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11918 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11919 # If the export-symbols file already is a .def file (1st line
11920 # is EXPORTS), use it as is; otherwise, prepend...
11921 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11922 cp $export_symbols $output_objdir/$soname.def;
11923 else
11924 echo EXPORTS > $output_objdir/$soname.def;
11925 cat $export_symbols >> $output_objdir/$soname.def;
11926 fi~
11927 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11928 else
11929 ld_shlibs_CXX=no
11930 fi
11931 ;;
11932 darwin* | rhapsody*)
11933
11934
11935 archive_cmds_need_lc_CXX=no
11936 hardcode_direct_CXX=no
11937 hardcode_automatic_CXX=yes
11938 hardcode_shlibpath_var_CXX=unsupported
11939 if test "$lt_cv_ld_force_load" = "yes"; then
11940 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11941 else
11942 whole_archive_flag_spec_CXX=''
11943 fi
11944 link_all_deplibs_CXX=yes
11945 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11946 case $cc_basename in
11947 ifort*) _lt_dar_can_shared=yes ;;
11948 *) _lt_dar_can_shared=$GCC ;;
11949 esac
11950 if test "$_lt_dar_can_shared" = "yes"; then
11951 output_verbose_link_cmd=func_echo_all
11952 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11953 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11954 archive_expsym_cmds_CXX="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}"
11955 module_expsym_cmds_CXX="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}"
11956 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11957 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11958 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11959 fi
11960
11961 else
11962 ld_shlibs_CXX=no
11963 fi
11964
11965 ;;
11966
11967 dgux*)
11968 case $cc_basename in
11969 ec++*)
11970 # FIXME: insert proper C++ library support
11971 ld_shlibs_CXX=no
11972 ;;
11973 ghcx*)
11974 # Green Hills C++ Compiler
11975 # FIXME: insert proper C++ library support
11976 ld_shlibs_CXX=no
11977 ;;
11978 *)
11979 # FIXME: insert proper C++ library support
11980 ld_shlibs_CXX=no
11981 ;;
11982 esac
11983 ;;
11984
11985 freebsd2.*)
11986 # C++ shared libraries reported to be fairly broken before
11987 # switch to ELF
11988 ld_shlibs_CXX=no
11989 ;;
11990
11991 freebsd-elf*)
11992 archive_cmds_need_lc_CXX=no
11993 ;;
11994
11995 freebsd* | dragonfly*)
11996 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11997 # conventions
11998 ld_shlibs_CXX=yes
11999 ;;
12000
12001 gnu*)
12002 ;;
12003
12004 haiku*)
12005 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12006 link_all_deplibs_CXX=yes
12007 ;;
12008
12009 hpux9*)
12010 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12011 hardcode_libdir_separator_CXX=:
12012 export_dynamic_flag_spec_CXX='${wl}-E'
12013 hardcode_direct_CXX=yes
12014 hardcode_minus_L_CXX=yes # Not in the search PATH,
12015 # but as the default
12016 # location of the library.
12017
12018 case $cc_basename in
12019 CC*)
12020 # FIXME: insert proper C++ library support
12021 ld_shlibs_CXX=no
12022 ;;
12023 aCC*)
12024 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12025 # Commands to make compiler produce verbose output that lists
12026 # what "hidden" libraries, object files and flags are used when
12027 # linking a shared library.
12028 #
12029 # There doesn't appear to be a way to prevent this compiler from
12030 # explicitly linking system object files so we need to strip them
12031 # from the output so that they don't get included in the library
12032 # dependencies.
12033 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12034 ;;
12035 *)
12036 if test "$GXX" = yes; then
12037 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12038 else
12039 # FIXME: insert proper C++ library support
12040 ld_shlibs_CXX=no
12041 fi
12042 ;;
12043 esac
12044 ;;
12045
12046 hpux10*|hpux11*)
12047 if test $with_gnu_ld = no; then
12048 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12049 hardcode_libdir_separator_CXX=:
12050
12051 case $host_cpu in
12052 hppa*64*|ia64*)
12053 ;;
12054 *)
12055 export_dynamic_flag_spec_CXX='${wl}-E'
12056 ;;
12057 esac
12058 fi
12059 case $host_cpu in
12060 hppa*64*|ia64*)
12061 hardcode_direct_CXX=no
12062 hardcode_shlibpath_var_CXX=no
12063 ;;
12064 *)
12065 hardcode_direct_CXX=yes
12066 hardcode_direct_absolute_CXX=yes
12067 hardcode_minus_L_CXX=yes # Not in the search PATH,
12068 # but as the default
12069 # location of the library.
12070 ;;
12071 esac
12072
12073 case $cc_basename in
12074 CC*)
12075 # FIXME: insert proper C++ library support
12076 ld_shlibs_CXX=no
12077 ;;
12078 aCC*)
12079 case $host_cpu in
12080 hppa*64*)
12081 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12082 ;;
12083 ia64*)
12084 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12085 ;;
12086 *)
12087 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12088 ;;
12089 esac
12090 # Commands to make compiler produce verbose output that lists
12091 # what "hidden" libraries, object files and flags are used when
12092 # linking a shared library.
12093 #
12094 # There doesn't appear to be a way to prevent this compiler from
12095 # explicitly linking system object files so we need to strip them
12096 # from the output so that they don't get included in the library
12097 # dependencies.
12098 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12099 ;;
12100 *)
12101 if test "$GXX" = yes; then
12102 if test $with_gnu_ld = no; then
12103 case $host_cpu in
12104 hppa*64*)
12105 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12106 ;;
12107 ia64*)
12108 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12109 ;;
12110 *)
12111 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12112 ;;
12113 esac
12114 fi
12115 else
12116 # FIXME: insert proper C++ library support
12117 ld_shlibs_CXX=no
12118 fi
12119 ;;
12120 esac
12121 ;;
12122
12123 interix[3-9]*)
12124 hardcode_direct_CXX=no
12125 hardcode_shlibpath_var_CXX=no
12126 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12127 export_dynamic_flag_spec_CXX='${wl}-E'
12128 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12129 # Instead, shared libraries are loaded at an image base (0x10000000 by
12130 # default) and relocated if they conflict, which is a slow very memory
12131 # consuming and fragmenting process. To avoid this, we pick a random,
12132 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12133 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12134 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12135 archive_expsym_cmds_CXX='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'
12136 ;;
12137 irix5* | irix6*)
12138 case $cc_basename in
12139 CC*)
12140 # SGI C++
12141 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12142
12143 # Archives containing C++ object files must be created using
12144 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12145 # necessary to make sure instantiated templates are included
12146 # in the archive.
12147 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12148 ;;
12149 *)
12150 if test "$GXX" = yes; then
12151 if test "$with_gnu_ld" = no; then
12152 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12153 else
12154 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12155 fi
12156 fi
12157 link_all_deplibs_CXX=yes
12158 ;;
12159 esac
12160 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12161 hardcode_libdir_separator_CXX=:
12162 inherit_rpath_CXX=yes
12163 ;;
12164
12165 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12166 case $cc_basename in
12167 KCC*)
12168 # Kuck and Associates, Inc. (KAI) C++ Compiler
12169
12170 # KCC will only create a shared library if the output file
12171 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12172 # to its proper name (with version) after linking.
12173 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12174 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12175 # Commands to make compiler produce verbose output that lists
12176 # what "hidden" libraries, object files and flags are used when
12177 # linking a shared library.
12178 #
12179 # There doesn't appear to be a way to prevent this compiler from
12180 # explicitly linking system object files so we need to strip them
12181 # from the output so that they don't get included in the library
12182 # dependencies.
12183 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12184
12185 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12186 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12187
12188 # Archives containing C++ object files must be created using
12189 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12190 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12191 ;;
12192 icpc* | ecpc* )
12193 # Intel C++
12194 with_gnu_ld=yes
12195 # version 8.0 and above of icpc choke on multiply defined symbols
12196 # if we add $predep_objects and $postdep_objects, however 7.1 and
12197 # earlier do not add the objects themselves.
12198 case `$CC -V 2>&1` in
12199 *"Version 7."*)
12200 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12201 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12202 ;;
12203 *) # Version 8.0 or newer
12204 tmp_idyn=
12205 case $host_cpu in
12206 ia64*) tmp_idyn=' -i_dynamic';;
12207 esac
12208 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12209 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12210 ;;
12211 esac
12212 archive_cmds_need_lc_CXX=no
12213 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12214 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12215 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12216 ;;
12217 pgCC* | pgcpp*)
12218 # Portland Group C++ compiler
12219 case `$CC -V` in
12220 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12221 prelink_cmds_CXX='tpldir=Template.dir~
12222 rm -rf $tpldir~
12223 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12224 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12225 old_archive_cmds_CXX='tpldir=Template.dir~
12226 rm -rf $tpldir~
12227 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12228 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12229 $RANLIB $oldlib'
12230 archive_cmds_CXX='tpldir=Template.dir~
12231 rm -rf $tpldir~
12232 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12233 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12234 archive_expsym_cmds_CXX='tpldir=Template.dir~
12235 rm -rf $tpldir~
12236 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12237 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12238 ;;
12239 *) # Version 6 and above use weak symbols
12240 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12241 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12242 ;;
12243 esac
12244
12245 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12246 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12247 whole_archive_flag_spec_CXX='${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'
12248 ;;
12249 cxx*)
12250 # Compaq C++
12251 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12252 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12253
12254 runpath_var=LD_RUN_PATH
12255 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12256 hardcode_libdir_separator_CXX=:
12257
12258 # Commands to make compiler produce verbose output that lists
12259 # what "hidden" libraries, object files and flags are used when
12260 # linking a shared library.
12261 #
12262 # There doesn't appear to be a way to prevent this compiler from
12263 # explicitly linking system object files so we need to strip them
12264 # from the output so that they don't get included in the library
12265 # dependencies.
12266 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12267 ;;
12268 xl* | mpixl* | bgxl*)
12269 # IBM XL 8.0 on PPC, with GNU ld
12270 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12271 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12272 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12273 if test "x$supports_anon_versioning" = xyes; then
12274 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12275 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12276 echo "local: *; };" >> $output_objdir/$libname.ver~
12277 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12278 fi
12279 ;;
12280 *)
12281 case `$CC -V 2>&1 | sed 5q` in
12282 *Sun\ C*)
12283 # Sun C++ 5.9
12284 no_undefined_flag_CXX=' -zdefs'
12285 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12286 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12287 hardcode_libdir_flag_spec_CXX='-R$libdir'
12288 whole_archive_flag_spec_CXX='${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'
12289 compiler_needs_object_CXX=yes
12290
12291 # Not sure whether something based on
12292 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12293 # would be better.
12294 output_verbose_link_cmd='func_echo_all'
12295
12296 # Archives containing C++ object files must be created using
12297 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12298 # necessary to make sure instantiated templates are included
12299 # in the archive.
12300 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12301 ;;
12302 esac
12303 ;;
12304 esac
12305 ;;
12306
12307 lynxos*)
12308 # FIXME: insert proper C++ library support
12309 ld_shlibs_CXX=no
12310 ;;
12311
12312 m88k*)
12313 # FIXME: insert proper C++ library support
12314 ld_shlibs_CXX=no
12315 ;;
12316
12317 mvs*)
12318 case $cc_basename in
12319 cxx*)
12320 # FIXME: insert proper C++ library support
12321 ld_shlibs_CXX=no
12322 ;;
12323 *)
12324 # FIXME: insert proper C++ library support
12325 ld_shlibs_CXX=no
12326 ;;
12327 esac
12328 ;;
12329
12330 netbsd*)
12331 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12332 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12333 wlarc=
12334 hardcode_libdir_flag_spec_CXX='-R$libdir'
12335 hardcode_direct_CXX=yes
12336 hardcode_shlibpath_var_CXX=no
12337 fi
12338 # Workaround some broken pre-1.5 toolchains
12339 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12340 ;;
12341
12342 *nto* | *qnx*)
12343 ld_shlibs_CXX=yes
12344 ;;
12345
12346 openbsd2*)
12347 # C++ shared libraries are fairly broken
12348 ld_shlibs_CXX=no
12349 ;;
12350
12351 openbsd*)
12352 if test -f /usr/libexec/ld.so; then
12353 hardcode_direct_CXX=yes
12354 hardcode_shlibpath_var_CXX=no
12355 hardcode_direct_absolute_CXX=yes
12356 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12357 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12358 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12359 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12360 export_dynamic_flag_spec_CXX='${wl}-E'
12361 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12362 fi
12363 output_verbose_link_cmd=func_echo_all
12364 else
12365 ld_shlibs_CXX=no
12366 fi
12367 ;;
12368
12369 osf3* | osf4* | osf5*)
12370 case $cc_basename in
12371 KCC*)
12372 # Kuck and Associates, Inc. (KAI) C++ Compiler
12373
12374 # KCC will only create a shared library if the output file
12375 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12376 # to its proper name (with version) after linking.
12377 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12378
12379 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12380 hardcode_libdir_separator_CXX=:
12381
12382 # Archives containing C++ object files must be created using
12383 # the KAI C++ compiler.
12384 case $host in
12385 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12386 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12387 esac
12388 ;;
12389 RCC*)
12390 # Rational C++ 2.4.1
12391 # FIXME: insert proper C++ library support
12392 ld_shlibs_CXX=no
12393 ;;
12394 cxx*)
12395 case $host in
12396 osf3*)
12397 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12398 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12399 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12400 ;;
12401 *)
12402 allow_undefined_flag_CXX=' -expect_unresolved \*'
12403 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12404 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12405 echo "-hidden">> $lib.exp~
12406 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
12407 $RM $lib.exp'
12408 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12409 ;;
12410 esac
12411
12412 hardcode_libdir_separator_CXX=:
12413
12414 # Commands to make compiler produce verbose output that lists
12415 # what "hidden" libraries, object files and flags are used when
12416 # linking a shared library.
12417 #
12418 # There doesn't appear to be a way to prevent this compiler from
12419 # explicitly linking system object files so we need to strip them
12420 # from the output so that they don't get included in the library
12421 # dependencies.
12422 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12423 ;;
12424 *)
12425 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12426 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12427 case $host in
12428 osf3*)
12429 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12430 ;;
12431 *)
12432 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12433 ;;
12434 esac
12435
12436 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12437 hardcode_libdir_separator_CXX=:
12438
12439 # Commands to make compiler produce verbose output that lists
12440 # what "hidden" libraries, object files and flags are used when
12441 # linking a shared library.
12442 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12443
12444 else
12445 # FIXME: insert proper C++ library support
12446 ld_shlibs_CXX=no
12447 fi
12448 ;;
12449 esac
12450 ;;
12451
12452 psos*)
12453 # FIXME: insert proper C++ library support
12454 ld_shlibs_CXX=no
12455 ;;
12456
12457 sunos4*)
12458 case $cc_basename in
12459 CC*)
12460 # Sun C++ 4.x
12461 # FIXME: insert proper C++ library support
12462 ld_shlibs_CXX=no
12463 ;;
12464 lcc*)
12465 # Lucid
12466 # FIXME: insert proper C++ library support
12467 ld_shlibs_CXX=no
12468 ;;
12469 *)
12470 # FIXME: insert proper C++ library support
12471 ld_shlibs_CXX=no
12472 ;;
12473 esac
12474 ;;
12475
12476 solaris*)
12477 case $cc_basename in
12478 CC*)
12479 # Sun C++ 4.2, 5.x and Centerline C++
12480 archive_cmds_need_lc_CXX=yes
12481 no_undefined_flag_CXX=' -zdefs'
12482 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12483 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12484 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12485
12486 hardcode_libdir_flag_spec_CXX='-R$libdir'
12487 hardcode_shlibpath_var_CXX=no
12488 case $host_os in
12489 solaris2.[0-5] | solaris2.[0-5].*) ;;
12490 *)
12491 # The compiler driver will combine and reorder linker options,
12492 # but understands `-z linker_flag'.
12493 # Supported since Solaris 2.6 (maybe 2.5.1?)
12494 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12495 ;;
12496 esac
12497 link_all_deplibs_CXX=yes
12498
12499 output_verbose_link_cmd='func_echo_all'
12500
12501 # Archives containing C++ object files must be created using
12502 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12503 # necessary to make sure instantiated templates are included
12504 # in the archive.
12505 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12506 ;;
12507 gcx*)
12508 # Green Hills C++ Compiler
12509 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12510
12511 # The C++ compiler must be used to create the archive.
12512 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12513 ;;
12514 *)
12515 # GNU C++ compiler with Solaris linker
12516 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12517 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12518 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12519 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12520 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12521 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12522
12523 # Commands to make compiler produce verbose output that lists
12524 # what "hidden" libraries, object files and flags are used when
12525 # linking a shared library.
12526 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12527 else
12528 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12529 # platform.
12530 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12531 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12532 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12533
12534 # Commands to make compiler produce verbose output that lists
12535 # what "hidden" libraries, object files and flags are used when
12536 # linking a shared library.
12537 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12538 fi
12539
12540 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12541 case $host_os in
12542 solaris2.[0-5] | solaris2.[0-5].*) ;;
12543 *)
12544 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12545 ;;
12546 esac
12547 fi
12548 ;;
12549 esac
12550 ;;
12551
12552 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12553 no_undefined_flag_CXX='${wl}-z,text'
12554 archive_cmds_need_lc_CXX=no
12555 hardcode_shlibpath_var_CXX=no
12556 runpath_var='LD_RUN_PATH'
12557
12558 case $cc_basename in
12559 CC*)
12560 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12561 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12562 ;;
12563 *)
12564 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12565 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12566 ;;
12567 esac
12568 ;;
12569
12570 sysv5* | sco3.2v5* | sco5v6*)
12571 # Note: We can NOT use -z defs as we might desire, because we do not
12572 # link with -lc, and that would cause any symbols used from libc to
12573 # always be unresolved, which means just about no library would
12574 # ever link correctly. If we're not using GNU ld we use -z text
12575 # though, which does catch some bad symbols but isn't as heavy-handed
12576 # as -z defs.
12577 no_undefined_flag_CXX='${wl}-z,text'
12578 allow_undefined_flag_CXX='${wl}-z,nodefs'
12579 archive_cmds_need_lc_CXX=no
12580 hardcode_shlibpath_var_CXX=no
12581 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12582 hardcode_libdir_separator_CXX=':'
12583 link_all_deplibs_CXX=yes
12584 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12585 runpath_var='LD_RUN_PATH'
12586
12587 case $cc_basename in
12588 CC*)
12589 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12590 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12591 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12592 '"$old_archive_cmds_CXX"
12593 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12594 '"$reload_cmds_CXX"
12595 ;;
12596 *)
12597 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12598 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12599 ;;
12600 esac
12601 ;;
12602
12603 tandem*)
12604 case $cc_basename in
12605 NCC*)
12606 # NonStop-UX NCC 3.20
12607 # FIXME: insert proper C++ library support
12608 ld_shlibs_CXX=no
12609 ;;
12610 *)
12611 # FIXME: insert proper C++ library support
12612 ld_shlibs_CXX=no
12613 ;;
12614 esac
12615 ;;
12616
12617 vxworks*)
12618 # FIXME: insert proper C++ library support
12619 ld_shlibs_CXX=no
12620 ;;
12621
12622 *)
12623 # FIXME: insert proper C++ library support
12624 ld_shlibs_CXX=no
12625 ;;
12626 esac
12627
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12629$as_echo "$ld_shlibs_CXX" >&6; }
12630 test "$ld_shlibs_CXX" = no && can_build_shared=no
12631
12632 GCC_CXX="$GXX"
12633 LD_CXX="$LD"
12634
12635 ## CAVEAT EMPTOR:
12636 ## There is no encapsulation within the following macros, do not change
12637 ## the running order or otherwise move them around unless you know exactly
12638 ## what you are doing...
12639 # Dependencies to place before and after the object being linked:
12640predep_objects_CXX=
12641postdep_objects_CXX=
12642predeps_CXX=
12643postdeps_CXX=
12644compiler_lib_search_path_CXX=
12645
12646cat > conftest.$ac_ext <<_LT_EOF
12647class Foo
12648{
12649public:
12650 Foo (void) { a = 0; }
12651private:
12652 int a;
12653};
12654_LT_EOF
12655
12656if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12657 (eval $ac_compile) 2>&5
12658 ac_status=$?
12659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12660 test $ac_status = 0; }; then
12661 # Parse the compiler output and extract the necessary
12662 # objects, libraries and library flags.
12663
12664 # Sentinel used to keep track of whether or not we are before
12665 # the conftest object file.
12666 pre_test_object_deps_done=no
12667
12668 for p in `eval "$output_verbose_link_cmd"`; do
12669 case $p in
12670
12671 -L* | -R* | -l*)
12672 # Some compilers place space between "-{L,R}" and the path.
12673 # Remove the space.
12674 if test $p = "-L" ||
12675 test $p = "-R"; then
12676 prev=$p
12677 continue
12678 else
12679 prev=
12680 fi
12681
12682 if test "$pre_test_object_deps_done" = no; then
12683 case $p in
12684 -L* | -R*)
12685 # Internal compiler library paths should come after those
12686 # provided the user. The postdeps already come after the
12687 # user supplied libs so there is no need to process them.
12688 if test -z "$compiler_lib_search_path_CXX"; then
12689 compiler_lib_search_path_CXX="${prev}${p}"
12690 else
12691 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12692 fi
12693 ;;
12694 # The "-l" case would never come before the object being
12695 # linked, so don't bother handling this case.
12696 esac
12697 else
12698 if test -z "$postdeps_CXX"; then
12699 postdeps_CXX="${prev}${p}"
12700 else
12701 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12702 fi
12703 fi
12704 ;;
12705
12706 *.$objext)
12707 # This assumes that the test object file only shows up
12708 # once in the compiler output.
12709 if test "$p" = "conftest.$objext"; then
12710 pre_test_object_deps_done=yes
12711 continue
12712 fi
12713
12714 if test "$pre_test_object_deps_done" = no; then
12715 if test -z "$predep_objects_CXX"; then
12716 predep_objects_CXX="$p"
12717 else
12718 predep_objects_CXX="$predep_objects_CXX $p"
12719 fi
12720 else
12721 if test -z "$postdep_objects_CXX"; then
12722 postdep_objects_CXX="$p"
12723 else
12724 postdep_objects_CXX="$postdep_objects_CXX $p"
12725 fi
12726 fi
12727 ;;
12728
12729 *) ;; # Ignore the rest.
12730
12731 esac
12732 done
12733
12734 # Clean up.
12735 rm -f a.out a.exe
12736else
12737 echo "libtool.m4: error: problem compiling CXX test program"
12738fi
12739
12740$RM -f confest.$objext
12741
12742# PORTME: override above test on systems where it is broken
12743case $host_os in
12744interix[3-9]*)
12745 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12746 # hack all around it, let's just trust "g++" to DTRT.
12747 predep_objects_CXX=
12748 postdep_objects_CXX=
12749 postdeps_CXX=
12750 ;;
12751
12752linux*)
12753 case `$CC -V 2>&1 | sed 5q` in
12754 *Sun\ C*)
12755 # Sun C++ 5.9
12756
12757 # The more standards-conforming stlport4 library is
12758 # incompatible with the Cstd library. Avoid specifying
12759 # it if it's in CXXFLAGS. Ignore libCrun as
12760 # -library=stlport4 depends on it.
12761 case " $CXX $CXXFLAGS " in
12762 *" -library=stlport4 "*)
12763 solaris_use_stlport4=yes
12764 ;;
12765 esac
12766
12767 if test "$solaris_use_stlport4" != yes; then
12768 postdeps_CXX='-library=Cstd -library=Crun'
12769 fi
12770 ;;
12771 esac
12772 ;;
12773
12774solaris*)
12775 case $cc_basename in
12776 CC*)
12777 # The more standards-conforming stlport4 library is
12778 # incompatible with the Cstd library. Avoid specifying
12779 # it if it's in CXXFLAGS. Ignore libCrun as
12780 # -library=stlport4 depends on it.
12781 case " $CXX $CXXFLAGS " in
12782 *" -library=stlport4 "*)
12783 solaris_use_stlport4=yes
12784 ;;
12785 esac
12786
12787 # Adding this requires a known-good setup of shared libraries for
12788 # Sun compiler versions before 5.6, else PIC objects from an old
12789 # archive will be linked into the output, leading to subtle bugs.
12790 if test "$solaris_use_stlport4" != yes; then
12791 postdeps_CXX='-library=Cstd -library=Crun'
12792 fi
12793 ;;
12794 esac
12795 ;;
12796esac
12797
12798
12799case " $postdeps_CXX " in
12800*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12801esac
12802 compiler_lib_search_dirs_CXX=
12803if test -n "${compiler_lib_search_path_CXX}"; then
12804 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12805fi
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837 lt_prog_compiler_wl_CXX=
12838lt_prog_compiler_pic_CXX=
12839lt_prog_compiler_static_CXX=
12840
12841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12842$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12843
12844 # C++ specific cases for pic, static, wl, etc.
12845 if test "$GXX" = yes; then
12846 lt_prog_compiler_wl_CXX='-Wl,'
12847 lt_prog_compiler_static_CXX='-static'
12848
12849 case $host_os in
12850 aix*)
12851 # All AIX code is PIC.
12852 if test "$host_cpu" = ia64; then
12853 # AIX 5 now supports IA64 processor
12854 lt_prog_compiler_static_CXX='-Bstatic'
12855 fi
12856 lt_prog_compiler_pic_CXX='-fPIC'
12857 ;;
12858
12859 amigaos*)
12860 case $host_cpu in
12861 powerpc)
12862 # see comment about AmigaOS4 .so support
12863 lt_prog_compiler_pic_CXX='-fPIC'
12864 ;;
12865 m68k)
12866 # FIXME: we need at least 68020 code to build shared libraries, but
12867 # adding the `-m68020' flag to GCC prevents building anything better,
12868 # like `-m68040'.
12869 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12870 ;;
12871 esac
12872 ;;
12873
12874 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12875 # PIC is the default for these OSes.
12876 ;;
12877 mingw* | cygwin* | os2* | pw32* | cegcc*)
12878 # This hack is so that the source file can tell whether it is being
12879 # built for inclusion in a dll (and should export symbols for example).
12880 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12881 # (--disable-auto-import) libraries
12882 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12883 ;;
12884 darwin* | rhapsody*)
12885 # PIC is the default on this platform
12886 # Common symbols not allowed in MH_DYLIB files
12887 lt_prog_compiler_pic_CXX='-fno-common'
12888 ;;
12889 *djgpp*)
12890 # DJGPP does not support shared libraries at all
12891 lt_prog_compiler_pic_CXX=
12892 ;;
12893 haiku*)
12894 # PIC is the default for Haiku.
12895 # The "-static" flag exists, but is broken.
12896 lt_prog_compiler_static_CXX=
12897 ;;
12898 interix[3-9]*)
12899 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12900 # Instead, we relocate shared libraries at runtime.
12901 ;;
12902 sysv4*MP*)
12903 if test -d /usr/nec; then
12904 lt_prog_compiler_pic_CXX=-Kconform_pic
12905 fi
12906 ;;
12907 hpux*)
12908 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12909 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12910 # sets the default TLS model and affects inlining.
12911 case $host_cpu in
12912 hppa*64*)
12913 ;;
12914 *)
12915 lt_prog_compiler_pic_CXX='-fPIC'
12916 ;;
12917 esac
12918 ;;
12919 *qnx* | *nto*)
12920 # QNX uses GNU C++, but need to define -shared option too, otherwise
12921 # it will coredump.
12922 lt_prog_compiler_pic_CXX='-fPIC -shared'
12923 ;;
12924 *)
12925 lt_prog_compiler_pic_CXX='-fPIC'
12926 ;;
12927 esac
12928 else
12929 case $host_os in
12930 aix[4-9]*)
12931 # All AIX code is PIC.
12932 if test "$host_cpu" = ia64; then
12933 # AIX 5 now supports IA64 processor
12934 lt_prog_compiler_static_CXX='-Bstatic'
12935 else
12936 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12937 fi
12938 ;;
12939 chorus*)
12940 case $cc_basename in
12941 cxch68*)
12942 # Green Hills C++ Compiler
12943 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12944 ;;
12945 esac
12946 ;;
12947 dgux*)
12948 case $cc_basename in
12949 ec++*)
12950 lt_prog_compiler_pic_CXX='-KPIC'
12951 ;;
12952 ghcx*)
12953 # Green Hills C++ Compiler
12954 lt_prog_compiler_pic_CXX='-pic'
12955 ;;
12956 *)
12957 ;;
12958 esac
12959 ;;
12960 freebsd* | dragonfly*)
12961 # FreeBSD uses GNU C++
12962 ;;
12963 hpux9* | hpux10* | hpux11*)
12964 case $cc_basename in
12965 CC*)
12966 lt_prog_compiler_wl_CXX='-Wl,'
12967 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12968 if test "$host_cpu" != ia64; then
12969 lt_prog_compiler_pic_CXX='+Z'
12970 fi
12971 ;;
12972 aCC*)
12973 lt_prog_compiler_wl_CXX='-Wl,'
12974 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12975 case $host_cpu in
12976 hppa*64*|ia64*)
12977 # +Z the default
12978 ;;
12979 *)
12980 lt_prog_compiler_pic_CXX='+Z'
12981 ;;
12982 esac
12983 ;;
12984 *)
12985 ;;
12986 esac
12987 ;;
12988 interix*)
12989 # This is c89, which is MS Visual C++ (no shared libs)
12990 # Anyone wants to do a port?
12991 ;;
12992 irix5* | irix6* | nonstopux*)
12993 case $cc_basename in
12994 CC*)
12995 lt_prog_compiler_wl_CXX='-Wl,'
12996 lt_prog_compiler_static_CXX='-non_shared'
12997 # CC pic flag -KPIC is the default.
12998 ;;
12999 *)
13000 ;;
13001 esac
13002 ;;
13003 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13004 case $cc_basename in
13005 KCC*)
13006 # KAI C++ Compiler
13007 lt_prog_compiler_wl_CXX='--backend -Wl,'
13008 lt_prog_compiler_pic_CXX='-fPIC'
13009 ;;
13010 ecpc* )
13011 # old Intel C++ for x86_64 which still supported -KPIC.
13012 lt_prog_compiler_wl_CXX='-Wl,'
13013 lt_prog_compiler_pic_CXX='-KPIC'
13014 lt_prog_compiler_static_CXX='-static'
13015 ;;
13016 icpc* )
13017 # Intel C++, used to be incompatible with GCC.
13018 # ICC 10 doesn't accept -KPIC any more.
13019 lt_prog_compiler_wl_CXX='-Wl,'
13020 lt_prog_compiler_pic_CXX='-fPIC'
13021 lt_prog_compiler_static_CXX='-static'
13022 ;;
13023 pgCC* | pgcpp*)
13024 # Portland Group C++ compiler
13025 lt_prog_compiler_wl_CXX='-Wl,'
13026 lt_prog_compiler_pic_CXX='-fpic'
13027 lt_prog_compiler_static_CXX='-Bstatic'
13028 ;;
13029 cxx*)
13030 # Compaq C++
13031 # Make sure the PIC flag is empty. It appears that all Alpha
13032 # Linux and Compaq Tru64 Unix objects are PIC.
13033 lt_prog_compiler_pic_CXX=
13034 lt_prog_compiler_static_CXX='-non_shared'
13035 ;;
13036 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13037 # IBM XL 8.0, 9.0 on PPC and BlueGene
13038 lt_prog_compiler_wl_CXX='-Wl,'
13039 lt_prog_compiler_pic_CXX='-qpic'
13040 lt_prog_compiler_static_CXX='-qstaticlink'
13041 ;;
13042 *)
13043 case `$CC -V 2>&1 | sed 5q` in
13044 *Sun\ C*)
13045 # Sun C++ 5.9
13046 lt_prog_compiler_pic_CXX='-KPIC'
13047 lt_prog_compiler_static_CXX='-Bstatic'
13048 lt_prog_compiler_wl_CXX='-Qoption ld '
13049 ;;
13050 esac
13051 ;;
13052 esac
13053 ;;
13054 lynxos*)
13055 ;;
13056 m88k*)
13057 ;;
13058 mvs*)
13059 case $cc_basename in
13060 cxx*)
13061 lt_prog_compiler_pic_CXX='-W c,exportall'
13062 ;;
13063 *)
13064 ;;
13065 esac
13066 ;;
13067 netbsd*)
13068 ;;
13069 *qnx* | *nto*)
13070 # QNX uses GNU C++, but need to define -shared option too, otherwise
13071 # it will coredump.
13072 lt_prog_compiler_pic_CXX='-fPIC -shared'
13073 ;;
13074 osf3* | osf4* | osf5*)
13075 case $cc_basename in
13076 KCC*)
13077 lt_prog_compiler_wl_CXX='--backend -Wl,'
13078 ;;
13079 RCC*)
13080 # Rational C++ 2.4.1
13081 lt_prog_compiler_pic_CXX='-pic'
13082 ;;
13083 cxx*)
13084 # Digital/Compaq C++
13085 lt_prog_compiler_wl_CXX='-Wl,'
13086 # Make sure the PIC flag is empty. It appears that all Alpha
13087 # Linux and Compaq Tru64 Unix objects are PIC.
13088 lt_prog_compiler_pic_CXX=
13089 lt_prog_compiler_static_CXX='-non_shared'
13090 ;;
13091 *)
13092 ;;
13093 esac
13094 ;;
13095 psos*)
13096 ;;
13097 solaris*)
13098 case $cc_basename in
13099 CC*)
13100 # Sun C++ 4.2, 5.x and Centerline C++
13101 lt_prog_compiler_pic_CXX='-KPIC'
13102 lt_prog_compiler_static_CXX='-Bstatic'
13103 lt_prog_compiler_wl_CXX='-Qoption ld '
13104 ;;
13105 gcx*)
13106 # Green Hills C++ Compiler
13107 lt_prog_compiler_pic_CXX='-PIC'
13108 ;;
13109 *)
13110 ;;
13111 esac
13112 ;;
13113 sunos4*)
13114 case $cc_basename in
13115 CC*)
13116 # Sun C++ 4.x
13117 lt_prog_compiler_pic_CXX='-pic'
13118 lt_prog_compiler_static_CXX='-Bstatic'
13119 ;;
13120 lcc*)
13121 # Lucid
13122 lt_prog_compiler_pic_CXX='-pic'
13123 ;;
13124 *)
13125 ;;
13126 esac
13127 ;;
13128 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13129 case $cc_basename in
13130 CC*)
13131 lt_prog_compiler_wl_CXX='-Wl,'
13132 lt_prog_compiler_pic_CXX='-KPIC'
13133 lt_prog_compiler_static_CXX='-Bstatic'
13134 ;;
13135 esac
13136 ;;
13137 tandem*)
13138 case $cc_basename in
13139 NCC*)
13140 # NonStop-UX NCC 3.20
13141 lt_prog_compiler_pic_CXX='-KPIC'
13142 ;;
13143 *)
13144 ;;
13145 esac
13146 ;;
13147 vxworks*)
13148 ;;
13149 *)
13150 lt_prog_compiler_can_build_shared_CXX=no
13151 ;;
13152 esac
13153 fi
13154
13155case $host_os in
13156 # For platforms which do not support PIC, -DPIC is meaningless:
13157 *djgpp*)
13158 lt_prog_compiler_pic_CXX=
13159 ;;
13160 *)
13161 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13162 ;;
13163esac
13164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13165$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13166
13167
13168
13169#
13170# Check to make sure the PIC flag actually works.
13171#
13172if test -n "$lt_prog_compiler_pic_CXX"; then
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13174$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13175if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13176 $as_echo_n "(cached) " >&6
13177else
13178 lt_cv_prog_compiler_pic_works_CXX=no
13179 ac_outfile=conftest.$ac_objext
13180 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13181 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13182 # Insert the option either (1) after the last *FLAGS variable, or
13183 # (2) before a word containing "conftest.", or (3) at the end.
13184 # Note that $ac_compile itself does not contain backslashes and begins
13185 # with a dollar sign (not a hyphen), so the echo should work correctly.
13186 # The option is referenced via a variable to avoid confusing sed.
13187 lt_compile=`echo "$ac_compile" | $SED \
13188 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13190 -e 's:$: $lt_compiler_flag:'`
13191 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13192 (eval "$lt_compile" 2>conftest.err)
13193 ac_status=$?
13194 cat conftest.err >&5
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 if (exit $ac_status) && test -s "$ac_outfile"; then
13197 # The compiler can only warn and ignore the option if not recognized
13198 # So say no if there are warnings other than the usual output.
13199 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13201 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13202 lt_cv_prog_compiler_pic_works_CXX=yes
13203 fi
13204 fi
13205 $RM conftest*
13206
13207fi
13208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13209$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13210
13211if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13212 case $lt_prog_compiler_pic_CXX in
13213 "" | " "*) ;;
13214 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13215 esac
13216else
13217 lt_prog_compiler_pic_CXX=
13218 lt_prog_compiler_can_build_shared_CXX=no
13219fi
13220
13221fi
13222
13223
13224
13225#
13226# Check to make sure the static flag actually works.
13227#
13228wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13230$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13231if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13232 $as_echo_n "(cached) " >&6
13233else
13234 lt_cv_prog_compiler_static_works_CXX=no
13235 save_LDFLAGS="$LDFLAGS"
13236 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13237 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13238 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13239 # The linker can only warn and ignore the option if not recognized
13240 # So say no if there are warnings
13241 if test -s conftest.err; then
13242 # Append any errors to the config.log.
13243 cat conftest.err 1>&5
13244 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13246 if diff conftest.exp conftest.er2 >/dev/null; then
13247 lt_cv_prog_compiler_static_works_CXX=yes
13248 fi
13249 else
13250 lt_cv_prog_compiler_static_works_CXX=yes
13251 fi
13252 fi
13253 $RM -r conftest*
13254 LDFLAGS="$save_LDFLAGS"
13255
13256fi
13257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13258$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13259
13260if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13261 :
13262else
13263 lt_prog_compiler_static_CXX=
13264fi
13265
13266
13267
13268
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13270$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13271if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13272 $as_echo_n "(cached) " >&6
13273else
13274 lt_cv_prog_compiler_c_o_CXX=no
13275 $RM -r conftest 2>/dev/null
13276 mkdir conftest
13277 cd conftest
13278 mkdir out
13279 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13280
13281 lt_compiler_flag="-o out/conftest2.$ac_objext"
13282 # Insert the option either (1) after the last *FLAGS variable, or
13283 # (2) before a word containing "conftest.", or (3) at the end.
13284 # Note that $ac_compile itself does not contain backslashes and begins
13285 # with a dollar sign (not a hyphen), so the echo should work correctly.
13286 lt_compile=`echo "$ac_compile" | $SED \
13287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13289 -e 's:$: $lt_compiler_flag:'`
13290 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13291 (eval "$lt_compile" 2>out/conftest.err)
13292 ac_status=$?
13293 cat out/conftest.err >&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13296 then
13297 # The compiler can only warn and ignore the option if not recognized
13298 # So say no if there are warnings
13299 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13300 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13301 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13302 lt_cv_prog_compiler_c_o_CXX=yes
13303 fi
13304 fi
13305 chmod u+w . 2>&5
13306 $RM conftest*
13307 # SGI C++ compiler will create directory out/ii_files/ for
13308 # template instantiation
13309 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13310 $RM out/* && rmdir out
13311 cd ..
13312 $RM -r conftest
13313 $RM conftest*
13314
13315fi
13316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13317$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13318
13319
13320
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13322$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13323if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13324 $as_echo_n "(cached) " >&6
13325else
13326 lt_cv_prog_compiler_c_o_CXX=no
13327 $RM -r conftest 2>/dev/null
13328 mkdir conftest
13329 cd conftest
13330 mkdir out
13331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13332
13333 lt_compiler_flag="-o out/conftest2.$ac_objext"
13334 # Insert the option either (1) after the last *FLAGS variable, or
13335 # (2) before a word containing "conftest.", or (3) at the end.
13336 # Note that $ac_compile itself does not contain backslashes and begins
13337 # with a dollar sign (not a hyphen), so the echo should work correctly.
13338 lt_compile=`echo "$ac_compile" | $SED \
13339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13341 -e 's:$: $lt_compiler_flag:'`
13342 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13343 (eval "$lt_compile" 2>out/conftest.err)
13344 ac_status=$?
13345 cat out/conftest.err >&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13348 then
13349 # The compiler can only warn and ignore the option if not recognized
13350 # So say no if there are warnings
13351 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13352 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13353 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13354 lt_cv_prog_compiler_c_o_CXX=yes
13355 fi
13356 fi
13357 chmod u+w . 2>&5
13358 $RM conftest*
13359 # SGI C++ compiler will create directory out/ii_files/ for
13360 # template instantiation
13361 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13362 $RM out/* && rmdir out
13363 cd ..
13364 $RM -r conftest
13365 $RM conftest*
13366
13367fi
13368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13369$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13370
13371
13372
13373
13374hard_links="nottested"
13375if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13376 # do not overwrite the value of need_locks provided by the user
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13378$as_echo_n "checking if we can lock with hard links... " >&6; }
13379 hard_links=yes
13380 $RM conftest*
13381 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13382 touch conftest.a
13383 ln conftest.a conftest.b 2>&5 || hard_links=no
13384 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13386$as_echo "$hard_links" >&6; }
13387 if test "$hard_links" = no; then
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13389$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13390 need_locks=warn
13391 fi
13392else
13393 need_locks=no
13394fi
13395
13396
13397
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13399$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13400
13401 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13402 case $host_os in
13403 aix[4-9]*)
13404 # If we're using GNU nm, then we don't want the "-C" option.
13405 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13406 # Also, AIX nm treats weak defined symbols like other global defined
13407 # symbols, whereas GNU nm marks them as "W".
13408 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13409 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13410 else
ca37d49a 13411 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
ddc8de03
PM
13412 fi
13413 ;;
13414 pw32*)
13415 export_symbols_cmds_CXX="$ltdll_cmds"
13416 ;;
13417 cygwin* | mingw* | cegcc*)
13418 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13419 ;;
13420 *)
13421 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13422 ;;
13423 esac
13424 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13425
13426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13427$as_echo "$ld_shlibs_CXX" >&6; }
13428test "$ld_shlibs_CXX" = no && can_build_shared=no
13429
13430with_gnu_ld_CXX=$with_gnu_ld
13431
13432
13433
13434
13435
13436
13437#
13438# Do we need to explicitly link libc?
13439#
13440case "x$archive_cmds_need_lc_CXX" in
13441x|xyes)
13442 # Assume -lc should be added
13443 archive_cmds_need_lc_CXX=yes
13444
13445 if test "$enable_shared" = yes && test "$GCC" = yes; then
13446 case $archive_cmds_CXX in
13447 *'~'*)
13448 # FIXME: we may have to deal with multi-command sequences.
13449 ;;
13450 '$CC '*)
13451 # Test whether the compiler implicitly links with -lc since on some
13452 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13453 # to ld, don't add -lc before -lgcc.
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13455$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13456if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13457 $as_echo_n "(cached) " >&6
13458else
13459 $RM conftest*
13460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13461
13462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13463 (eval $ac_compile) 2>&5
13464 ac_status=$?
13465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13466 test $ac_status = 0; } 2>conftest.err; then
13467 soname=conftest
13468 lib=conftest
13469 libobjs=conftest.$ac_objext
13470 deplibs=
13471 wl=$lt_prog_compiler_wl_CXX
13472 pic_flag=$lt_prog_compiler_pic_CXX
13473 compiler_flags=-v
13474 linker_flags=-v
13475 verstring=
13476 output_objdir=.
13477 libname=conftest
13478 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13479 allow_undefined_flag_CXX=
13480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13481 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13482 ac_status=$?
13483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13484 test $ac_status = 0; }
13485 then
13486 lt_cv_archive_cmds_need_lc_CXX=no
13487 else
13488 lt_cv_archive_cmds_need_lc_CXX=yes
13489 fi
13490 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13491 else
13492 cat conftest.err 1>&5
13493 fi
13494 $RM conftest*
13495
13496fi
13497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13498$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13499 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13500 ;;
13501 esac
13502 fi
13503 ;;
13504esac
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13570$as_echo_n "checking dynamic linker characteristics... " >&6; }
13571
13572library_names_spec=
13573libname_spec='lib$name'
13574soname_spec=
13575shrext_cmds=".so"
13576postinstall_cmds=
13577postuninstall_cmds=
13578finish_cmds=
13579finish_eval=
13580shlibpath_var=
13581shlibpath_overrides_runpath=unknown
13582version_type=none
13583dynamic_linker="$host_os ld.so"
13584sys_lib_dlsearch_path_spec="/lib /usr/lib"
13585need_lib_prefix=unknown
13586hardcode_into_libs=no
13587
13588# when you set need_version to no, make sure it does not cause -set_version
13589# flags to be left without arguments
13590need_version=unknown
13591
13592case $host_os in
13593aix3*)
13594 version_type=linux
13595 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13596 shlibpath_var=LIBPATH
13597
13598 # AIX 3 has no versioning support, so we append a major version to the name.
13599 soname_spec='${libname}${release}${shared_ext}$major'
13600 ;;
13601
13602aix[4-9]*)
13603 version_type=linux
13604 need_lib_prefix=no
13605 need_version=no
13606 hardcode_into_libs=yes
13607 if test "$host_cpu" = ia64; then
13608 # AIX 5 supports IA64
13609 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13610 shlibpath_var=LD_LIBRARY_PATH
13611 else
13612 # With GCC up to 2.95.x, collect2 would create an import file
13613 # for dependence libraries. The import file would start with
13614 # the line `#! .'. This would cause the generated library to
13615 # depend on `.', always an invalid library. This was fixed in
13616 # development snapshots of GCC prior to 3.0.
13617 case $host_os in
13618 aix4 | aix4.[01] | aix4.[01].*)
13619 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13620 echo ' yes '
13621 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13622 :
13623 else
13624 can_build_shared=no
13625 fi
13626 ;;
13627 esac
13628 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13629 # soname into executable. Probably we can add versioning support to
13630 # collect2, so additional links can be useful in future.
13631 if test "$aix_use_runtimelinking" = yes; then
13632 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13633 # instead of lib<name>.a to let people know that these are not
13634 # typical AIX shared libraries.
13635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13636 else
13637 # We preserve .a as extension for shared libraries through AIX4.2
13638 # and later when we are not doing run time linking.
13639 library_names_spec='${libname}${release}.a $libname.a'
13640 soname_spec='${libname}${release}${shared_ext}$major'
13641 fi
13642 shlibpath_var=LIBPATH
13643 fi
13644 ;;
13645
13646amigaos*)
13647 case $host_cpu in
13648 powerpc)
13649 # Since July 2007 AmigaOS4 officially supports .so libraries.
13650 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13652 ;;
13653 m68k)
13654 library_names_spec='$libname.ixlibrary $libname.a'
13655 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13656 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'
13657 ;;
13658 esac
13659 ;;
13660
13661beos*)
13662 library_names_spec='${libname}${shared_ext}'
13663 dynamic_linker="$host_os ld.so"
13664 shlibpath_var=LIBRARY_PATH
13665 ;;
13666
13667bsdi[45]*)
13668 version_type=linux
13669 need_version=no
13670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13671 soname_spec='${libname}${release}${shared_ext}$major'
13672 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13673 shlibpath_var=LD_LIBRARY_PATH
13674 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13675 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13676 # the default ld.so.conf also contains /usr/contrib/lib and
13677 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13678 # libtool to hard-code these into programs
13679 ;;
13680
13681cygwin* | mingw* | pw32* | cegcc*)
13682 version_type=windows
13683 shrext_cmds=".dll"
13684 need_version=no
13685 need_lib_prefix=no
13686
13687 case $GCC,$host_os in
13688 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13689 library_names_spec='$libname.dll.a'
13690 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13691 postinstall_cmds='base_file=`basename \${file}`~
13692 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13693 dldir=$destdir/`dirname \$dlpath`~
13694 test -d \$dldir || mkdir -p \$dldir~
13695 $install_prog $dir/$dlname \$dldir/$dlname~
13696 chmod a+x \$dldir/$dlname~
13697 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13698 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13699 fi'
13700 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13701 dlpath=$dir/\$dldll~
13702 $RM \$dlpath'
13703 shlibpath_overrides_runpath=yes
13704
13705 case $host_os in
13706 cygwin*)
13707 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13708 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13709
13710 ;;
13711 mingw* | cegcc*)
13712 # MinGW DLLs use traditional 'lib' prefix
13713 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13714 ;;
13715 pw32*)
13716 # pw32 DLLs use 'pw' prefix rather than 'lib'
13717 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13718 ;;
13719 esac
13720 ;;
13721
13722 *)
13723 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13724 ;;
13725 esac
13726 dynamic_linker='Win32 ld.exe'
13727 # FIXME: first we should search . and the directory the executable is in
13728 shlibpath_var=PATH
13729 ;;
13730
13731darwin* | rhapsody*)
13732 dynamic_linker="$host_os dyld"
13733 version_type=darwin
13734 need_lib_prefix=no
13735 need_version=no
13736 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13737 soname_spec='${libname}${release}${major}$shared_ext'
13738 shlibpath_overrides_runpath=yes
13739 shlibpath_var=DYLD_LIBRARY_PATH
13740 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13741
13742 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13743 ;;
13744
13745dgux*)
13746 version_type=linux
13747 need_lib_prefix=no
13748 need_version=no
13749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13750 soname_spec='${libname}${release}${shared_ext}$major'
13751 shlibpath_var=LD_LIBRARY_PATH
13752 ;;
13753
13754freebsd* | dragonfly*)
13755 # DragonFly does not have aout. When/if they implement a new
13756 # versioning mechanism, adjust this.
13757 if test -x /usr/bin/objformat; then
13758 objformat=`/usr/bin/objformat`
13759 else
13760 case $host_os in
13761 freebsd[23].*) objformat=aout ;;
13762 *) objformat=elf ;;
13763 esac
13764 fi
13765 version_type=freebsd-$objformat
13766 case $version_type in
13767 freebsd-elf*)
13768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13769 need_version=no
13770 need_lib_prefix=no
13771 ;;
13772 freebsd-*)
13773 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13774 need_version=yes
13775 ;;
13776 esac
13777 shlibpath_var=LD_LIBRARY_PATH
13778 case $host_os in
13779 freebsd2.*)
13780 shlibpath_overrides_runpath=yes
13781 ;;
13782 freebsd3.[01]* | freebsdelf3.[01]*)
13783 shlibpath_overrides_runpath=yes
13784 hardcode_into_libs=yes
13785 ;;
13786 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13787 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13788 shlibpath_overrides_runpath=no
13789 hardcode_into_libs=yes
13790 ;;
13791 *) # from 4.6 on, and DragonFly
13792 shlibpath_overrides_runpath=yes
13793 hardcode_into_libs=yes
13794 ;;
13795 esac
13796 ;;
13797
13798gnu*)
13799 version_type=linux
13800 need_lib_prefix=no
13801 need_version=no
13802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13803 soname_spec='${libname}${release}${shared_ext}$major'
13804 shlibpath_var=LD_LIBRARY_PATH
13805 hardcode_into_libs=yes
13806 ;;
13807
13808haiku*)
13809 version_type=linux
13810 need_lib_prefix=no
13811 need_version=no
13812 dynamic_linker="$host_os runtime_loader"
13813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13814 soname_spec='${libname}${release}${shared_ext}$major'
13815 shlibpath_var=LIBRARY_PATH
13816 shlibpath_overrides_runpath=yes
13817 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13818 hardcode_into_libs=yes
13819 ;;
13820
13821hpux9* | hpux10* | hpux11*)
13822 # Give a soname corresponding to the major version so that dld.sl refuses to
13823 # link against other versions.
13824 version_type=sunos
13825 need_lib_prefix=no
13826 need_version=no
13827 case $host_cpu in
13828 ia64*)
13829 shrext_cmds='.so'
13830 hardcode_into_libs=yes
13831 dynamic_linker="$host_os dld.so"
13832 shlibpath_var=LD_LIBRARY_PATH
13833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13835 soname_spec='${libname}${release}${shared_ext}$major'
13836 if test "X$HPUX_IA64_MODE" = X32; then
13837 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13838 else
13839 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13840 fi
13841 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13842 ;;
13843 hppa*64*)
13844 shrext_cmds='.sl'
13845 hardcode_into_libs=yes
13846 dynamic_linker="$host_os dld.sl"
13847 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13848 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13850 soname_spec='${libname}${release}${shared_ext}$major'
13851 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13852 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13853 ;;
13854 *)
13855 shrext_cmds='.sl'
13856 dynamic_linker="$host_os dld.sl"
13857 shlibpath_var=SHLIB_PATH
13858 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13860 soname_spec='${libname}${release}${shared_ext}$major'
13861 ;;
13862 esac
13863 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13864 postinstall_cmds='chmod 555 $lib'
13865 # or fails outright, so override atomically:
13866 install_override_mode=555
13867 ;;
13868
13869interix[3-9]*)
13870 version_type=linux
13871 need_lib_prefix=no
13872 need_version=no
13873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13874 soname_spec='${libname}${release}${shared_ext}$major'
13875 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13876 shlibpath_var=LD_LIBRARY_PATH
13877 shlibpath_overrides_runpath=no
13878 hardcode_into_libs=yes
13879 ;;
13880
13881irix5* | irix6* | nonstopux*)
13882 case $host_os in
13883 nonstopux*) version_type=nonstopux ;;
13884 *)
13885 if test "$lt_cv_prog_gnu_ld" = yes; then
13886 version_type=linux
13887 else
13888 version_type=irix
13889 fi ;;
13890 esac
13891 need_lib_prefix=no
13892 need_version=no
13893 soname_spec='${libname}${release}${shared_ext}$major'
13894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13895 case $host_os in
13896 irix5* | nonstopux*)
13897 libsuff= shlibsuff=
13898 ;;
13899 *)
13900 case $LD in # libtool.m4 will add one of these switches to LD
13901 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13902 libsuff= shlibsuff= libmagic=32-bit;;
13903 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13904 libsuff=32 shlibsuff=N32 libmagic=N32;;
13905 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13906 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13907 *) libsuff= shlibsuff= libmagic=never-match;;
13908 esac
13909 ;;
13910 esac
13911 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13912 shlibpath_overrides_runpath=no
13913 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13914 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13915 hardcode_into_libs=yes
13916 ;;
13917
13918# No shared lib support for Linux oldld, aout, or coff.
13919linux*oldld* | linux*aout* | linux*coff*)
13920 dynamic_linker=no
13921 ;;
13922
13923# This must be Linux ELF.
13924linux* | k*bsd*-gnu | kopensolaris*-gnu)
13925 version_type=linux
13926 need_lib_prefix=no
13927 need_version=no
13928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13929 soname_spec='${libname}${release}${shared_ext}$major'
13930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13931 shlibpath_var=LD_LIBRARY_PATH
13932 shlibpath_overrides_runpath=no
13933
13934 # Some binutils ld are patched to set DT_RUNPATH
13935 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
13936 $as_echo_n "(cached) " >&6
13937else
13938 lt_cv_shlibpath_overrides_runpath=no
13939 save_LDFLAGS=$LDFLAGS
13940 save_libdir=$libdir
13941 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13942 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13944/* end confdefs.h. */
13945
13946int
13947main ()
13948{
13949
13950 ;
13951 return 0;
13952}
13953_ACEOF
13954if ac_fn_cxx_try_link "$LINENO"; then :
13955 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13956 lt_cv_shlibpath_overrides_runpath=yes
13957fi
13958fi
13959rm -f core conftest.err conftest.$ac_objext \
13960 conftest$ac_exeext conftest.$ac_ext
13961 LDFLAGS=$save_LDFLAGS
13962 libdir=$save_libdir
13963
13964fi
13965
13966 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13967
13968 # This implies no fast_install, which is unacceptable.
13969 # Some rework will be needed to allow for fast_install
13970 # before this can be enabled.
13971 hardcode_into_libs=yes
13972
13973 # Append ld.so.conf contents to the search path
13974 if test -f /etc/ld.so.conf; then
13975 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' ' '`
13976 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13977 fi
13978
13979 # We used to test for /lib/ld.so.1 and disable shared libraries on
13980 # powerpc, because MkLinux only supported shared libraries with the
13981 # GNU dynamic linker. Since this was broken with cross compilers,
13982 # most powerpc-linux boxes support dynamic linking these days and
13983 # people can always --disable-shared, the test was removed, and we
13984 # assume the GNU/Linux dynamic linker is in use.
13985 dynamic_linker='GNU/Linux ld.so'
13986 ;;
13987
13988netbsd*)
13989 version_type=sunos
13990 need_lib_prefix=no
13991 need_version=no
13992 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13995 dynamic_linker='NetBSD (a.out) ld.so'
13996 else
13997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13998 soname_spec='${libname}${release}${shared_ext}$major'
13999 dynamic_linker='NetBSD ld.elf_so'
14000 fi
14001 shlibpath_var=LD_LIBRARY_PATH
14002 shlibpath_overrides_runpath=yes
14003 hardcode_into_libs=yes
14004 ;;
14005
14006newsos6)
14007 version_type=linux
14008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14009 shlibpath_var=LD_LIBRARY_PATH
14010 shlibpath_overrides_runpath=yes
14011 ;;
14012
14013*nto* | *qnx*)
14014 version_type=qnx
14015 need_lib_prefix=no
14016 need_version=no
14017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14018 soname_spec='${libname}${release}${shared_ext}$major'
14019 shlibpath_var=LD_LIBRARY_PATH
14020 shlibpath_overrides_runpath=no
14021 hardcode_into_libs=yes
14022 dynamic_linker='ldqnx.so'
14023 ;;
14024
14025openbsd*)
14026 version_type=sunos
14027 sys_lib_dlsearch_path_spec="/usr/lib"
14028 need_lib_prefix=no
14029 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14030 case $host_os in
14031 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14032 *) need_version=no ;;
14033 esac
14034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14036 shlibpath_var=LD_LIBRARY_PATH
14037 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14038 case $host_os in
14039 openbsd2.[89] | openbsd2.[89].*)
14040 shlibpath_overrides_runpath=no
14041 ;;
14042 *)
14043 shlibpath_overrides_runpath=yes
14044 ;;
14045 esac
14046 else
14047 shlibpath_overrides_runpath=yes
14048 fi
14049 ;;
14050
14051os2*)
14052 libname_spec='$name'
14053 shrext_cmds=".dll"
14054 need_lib_prefix=no
14055 library_names_spec='$libname${shared_ext} $libname.a'
14056 dynamic_linker='OS/2 ld.exe'
14057 shlibpath_var=LIBPATH
14058 ;;
14059
14060osf3* | osf4* | osf5*)
14061 version_type=osf
14062 need_lib_prefix=no
14063 need_version=no
14064 soname_spec='${libname}${release}${shared_ext}$major'
14065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14066 shlibpath_var=LD_LIBRARY_PATH
14067 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14068 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14069 ;;
14070
14071rdos*)
14072 dynamic_linker=no
14073 ;;
14074
14075solaris*)
14076 version_type=linux
14077 need_lib_prefix=no
14078 need_version=no
14079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14080 soname_spec='${libname}${release}${shared_ext}$major'
14081 shlibpath_var=LD_LIBRARY_PATH
14082 shlibpath_overrides_runpath=yes
14083 hardcode_into_libs=yes
14084 # ldd complains unless libraries are executable
14085 postinstall_cmds='chmod +x $lib'
14086 ;;
14087
14088sunos4*)
14089 version_type=sunos
14090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14091 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14092 shlibpath_var=LD_LIBRARY_PATH
14093 shlibpath_overrides_runpath=yes
14094 if test "$with_gnu_ld" = yes; then
14095 need_lib_prefix=no
14096 fi
14097 need_version=yes
14098 ;;
14099
14100sysv4 | sysv4.3*)
14101 version_type=linux
14102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14103 soname_spec='${libname}${release}${shared_ext}$major'
14104 shlibpath_var=LD_LIBRARY_PATH
14105 case $host_vendor in
14106 sni)
14107 shlibpath_overrides_runpath=no
14108 need_lib_prefix=no
14109 runpath_var=LD_RUN_PATH
14110 ;;
14111 siemens)
14112 need_lib_prefix=no
14113 ;;
14114 motorola)
14115 need_lib_prefix=no
14116 need_version=no
14117 shlibpath_overrides_runpath=no
14118 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14119 ;;
14120 esac
14121 ;;
14122
14123sysv4*MP*)
14124 if test -d /usr/nec ;then
14125 version_type=linux
14126 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14127 soname_spec='$libname${shared_ext}.$major'
14128 shlibpath_var=LD_LIBRARY_PATH
14129 fi
14130 ;;
14131
14132sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14133 version_type=freebsd-elf
14134 need_lib_prefix=no
14135 need_version=no
14136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14137 soname_spec='${libname}${release}${shared_ext}$major'
14138 shlibpath_var=LD_LIBRARY_PATH
14139 shlibpath_overrides_runpath=yes
14140 hardcode_into_libs=yes
14141 if test "$with_gnu_ld" = yes; then
14142 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14143 else
14144 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14145 case $host_os in
14146 sco3.2v5*)
14147 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14148 ;;
14149 esac
14150 fi
14151 sys_lib_dlsearch_path_spec='/usr/lib'
14152 ;;
14153
14154tpf*)
14155 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14156 version_type=linux
14157 need_lib_prefix=no
14158 need_version=no
14159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14160 shlibpath_var=LD_LIBRARY_PATH
14161 shlibpath_overrides_runpath=no
14162 hardcode_into_libs=yes
14163 ;;
14164
14165uts4*)
14166 version_type=linux
14167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14168 soname_spec='${libname}${release}${shared_ext}$major'
14169 shlibpath_var=LD_LIBRARY_PATH
14170 ;;
14171
14172*)
14173 dynamic_linker=no
14174 ;;
14175esac
14176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14177$as_echo "$dynamic_linker" >&6; }
14178test "$dynamic_linker" = no && can_build_shared=no
14179
14180variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14181if test "$GCC" = yes; then
14182 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14183fi
14184
14185if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14186 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14187fi
14188if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14189 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14190fi
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14230$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14231hardcode_action_CXX=
14232if test -n "$hardcode_libdir_flag_spec_CXX" ||
14233 test -n "$runpath_var_CXX" ||
14234 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14235
14236 # We can hardcode non-existent directories.
14237 if test "$hardcode_direct_CXX" != no &&
14238 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14239 # have to relink, otherwise we might link with an installed library
14240 # when we should be linking with a yet-to-be-installed one
14241 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14242 test "$hardcode_minus_L_CXX" != no; then
14243 # Linking always hardcodes the temporary library directory.
14244 hardcode_action_CXX=relink
14245 else
14246 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14247 hardcode_action_CXX=immediate
14248 fi
14249else
14250 # We cannot hardcode anything, or else we can only hardcode existing
14251 # directories.
14252 hardcode_action_CXX=unsupported
14253fi
14254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14255$as_echo "$hardcode_action_CXX" >&6; }
14256
14257if test "$hardcode_action_CXX" = relink ||
14258 test "$inherit_rpath_CXX" = yes; then
14259 # Fast installation is not supported
14260 enable_fast_install=no
14261elif test "$shlibpath_overrides_runpath" = yes ||
14262 test "$enable_shared" = no; then
14263 # Fast installation is not necessary
14264 enable_fast_install=needless
14265fi
14266
14267
14268
14269
14270
14271
14272
14273 fi # test -n "$compiler"
14274
14275 CC=$lt_save_CC
14276 LDCXX=$LD
14277 LD=$lt_save_LD
14278 GCC=$lt_save_GCC
14279 with_gnu_ld=$lt_save_with_gnu_ld
14280 lt_cv_path_LDCXX=$lt_cv_path_LD
14281 lt_cv_path_LD=$lt_save_path_LD
14282 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14283 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14284fi # test "$_lt_caught_CXX_error" != yes
14285
14286ac_ext=c
14287ac_cpp='$CPP $CPPFLAGS'
14288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14290ac_compiler_gnu=$ac_cv_c_compiler_gnu
14291
14292
14293
14294visibility=
14295if test "$GXX" = yes; then
14296 visibility=-fvisibility=hidden
14297fi
14298
14299
14300ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
14301if test "x$ac_cv_have_decl_basename" = x""yes; then :
14302 ac_have_decl=1
14303else
14304 ac_have_decl=0
14305fi
14306
14307cat >>confdefs.h <<_ACEOF
14308#define HAVE_DECL_BASENAME $ac_have_decl
14309_ACEOF
14310
14311
3c36aa6b
JJ
14312
14313 get_gcc_base_ver="cat"
14314
14315# Check whether --with-gcc-major-version-only was given.
14316if test "${with_gcc_major_version_only+set}" = set; then :
14317 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14318 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
14319 fi
14320
14321fi
14322
14323
14324
14325
14326if test x$with_gcc_major_version_only = xyes ; then
14327 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/../gcc/BASE-VER`
14328 else
14329 gcc_version=`cat $srcdir/../gcc/BASE-VER`
14330fi
ddc8de03 14331
ca37d49a
AS
14332CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/../gcc/BASE-VER'
14333
14334
14335ac_ext=c
14336ac_cpp='$CPP $CPPFLAGS'
14337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14339ac_compiler_gnu=$ac_cv_c_compiler_gnu
ddc8de03
PM
14340
14341WARN_FLAGS=
14342save_CFLAGS="$CFLAGS"
14343for real_option in -W -Wall; do
14344 # Do the check with the no- prefix removed since gcc silently
14345 # accepts any -Wno-* option on purpose
14346 case $real_option in
14347 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
14348 *) option=$real_option ;;
14349 esac
14350 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
14351
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
14353$as_echo_n "checking whether $CC supports $option... " >&6; }
14354if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
14355 $as_echo_n "(cached) " >&6
14356else
14357 CFLAGS="$option"
14358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359/* end confdefs.h. */
14360
14361int
14362main ()
14363{
14364
14365 ;
14366 return 0;
14367}
14368_ACEOF
14369if ac_fn_c_try_compile "$LINENO"; then :
14370 eval "$as_acx_Woption=yes"
14371else
14372 eval "$as_acx_Woption=no"
14373fi
14374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14375
14376fi
14377eval ac_res=\$$as_acx_Woption
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14379$as_echo "$ac_res" >&6; }
14380 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
14381 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
14382fi
14383 done
14384CFLAGS="$save_CFLAGS"
ca37d49a
AS
14385ac_ext=c
14386ac_cpp='$CPP $CPPFLAGS'
14387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14389ac_compiler_gnu=$ac_cv_c_compiler_gnu
14390
ddc8de03 14391
ca557f53 14392
ca37d49a
AS
14393ac_ext=c
14394ac_cpp='$CPP $CPPFLAGS'
14395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14397ac_compiler_gnu=$ac_cv_c_compiler_gnu
14398
ca557f53
JJ
14399WERROR=
14400# Check whether --enable-werror-always was given.
14401if test "${enable_werror_always+set}" = set; then :
14402 enableval=$enable_werror_always;
14403else
14404 enable_werror_always=no
14405fi
14406
14407if test $enable_werror_always = yes; then :
14408 WERROR="$WERROR${WERROR:+ }-Werror"
14409fi
14410
ca37d49a
AS
14411ac_ext=c
14412ac_cpp='$CPP $CPPFLAGS'
14413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14415ac_compiler_gnu=$ac_cv_c_compiler_gnu
14416
ca557f53
JJ
14417
14418
ddc8de03
PM
14419
14420
14421libsuffix=
14422if test "$GXX" = yes; then
14423 libsuffix=`$CXX -print-multi-os-directory`
14424fi
14425
14426
0ed4f879
RO
14427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14428$as_echo_n "checking for socket libraries... " >&6; }
14429if test "${libcc1_cv_lib_sockets+set}" = set; then :
14430 $as_echo_n "(cached) " >&6
14431else
14432 libcc1_cv_lib_sockets=
14433 libcc1_check_both=no
14434 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14435if test "x$ac_cv_func_connect" = x""yes; then :
14436 libcc1_check_socket=no
14437else
14438 libcc1_check_socket=yes
14439fi
14440
14441 if test "$libcc1_check_socket" = "yes"; then
14442 unset ac_cv_func_connect
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14444$as_echo_n "checking for main in -lsocket... " >&6; }
14445if test "${ac_cv_lib_socket_main+set}" = set; then :
14446 $as_echo_n "(cached) " >&6
14447else
14448 ac_check_lib_save_LIBS=$LIBS
14449LIBS="-lsocket $LIBS"
14450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451/* end confdefs.h. */
14452
14453
14454int
14455main ()
14456{
14457return main ();
14458 ;
14459 return 0;
14460}
14461_ACEOF
14462if ac_fn_c_try_link "$LINENO"; then :
14463 ac_cv_lib_socket_main=yes
14464else
14465 ac_cv_lib_socket_main=no
14466fi
14467rm -f core conftest.err conftest.$ac_objext \
14468 conftest$ac_exeext conftest.$ac_ext
14469LIBS=$ac_check_lib_save_LIBS
14470fi
14471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14472$as_echo "$ac_cv_lib_socket_main" >&6; }
14473if test "x$ac_cv_lib_socket_main" = x""yes; then :
14474 libcc1_cv_lib_sockets="-lsocket"
14475else
14476 libcc1_check_both=yes
14477fi
14478
14479 fi
14480 if test "$libcc1_check_both" = "yes"; then
14481 libcc1_old_libs=$LIBS
14482 LIBS="$LIBS -lsocket -lnsl"
14483 unset ac_cv_func_accept
14484 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14485if test "x$ac_cv_func_accept" = x""yes; then :
14486 libcc1_check_nsl=no
14487 libcc1_cv_lib_sockets="-lsocket -lnsl"
14488fi
14489
14490 unset ac_cv_func_accept
14491 LIBS=$libcc1_old_libs
14492 fi
14493 unset ac_cv_func_gethostbyname
14494 libcc1_old_libs="$LIBS"
14495 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14496if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14497
14498else
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14500$as_echo_n "checking for main in -lnsl... " >&6; }
14501if test "${ac_cv_lib_nsl_main+set}" = set; then :
14502 $as_echo_n "(cached) " >&6
14503else
14504 ac_check_lib_save_LIBS=$LIBS
14505LIBS="-lnsl $LIBS"
14506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14507/* end confdefs.h. */
14508
14509
14510int
14511main ()
14512{
14513return main ();
14514 ;
14515 return 0;
14516}
14517_ACEOF
14518if ac_fn_c_try_link "$LINENO"; then :
14519 ac_cv_lib_nsl_main=yes
14520else
14521 ac_cv_lib_nsl_main=no
14522fi
14523rm -f core conftest.err conftest.$ac_objext \
14524 conftest$ac_exeext conftest.$ac_ext
14525LIBS=$ac_check_lib_save_LIBS
14526fi
14527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14528$as_echo "$ac_cv_lib_nsl_main" >&6; }
14529if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14530 libcc1_cv_lib_sockets="$libcc1_cv_lib_sockets -lnsl"
14531fi
14532
14533fi
14534
14535 unset ac_cv_func_gethostbyname
14536 LIBS=$libcc1_old_libs
14537
14538fi
14539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcc1_cv_lib_sockets" >&5
14540$as_echo "$libcc1_cv_lib_sockets" >&6; }
14541LIBS="$LIBS $libcc1_cv_lib_sockets"
14542
ddc8de03
PM
14543# If any of these functions are missing, simply don't bother building
14544# this plugin.
14545# Check for plugin support
14546 # Check whether --enable-plugin was given.
14547if test "${enable_plugin+set}" = set; then :
14548 enableval=$enable_plugin; enable_plugin=$enableval
14549else
14550 enable_plugin=yes; default_plugin=yes
14551fi
14552
14553
14554 pluginlibs=
14555
14556 case "${host}" in
14557 *-*-darwin*)
14558 if test x$build = x$host; then
14559 export_sym_check="nm${exeext} -g"
14560 elif test x$host = x$target; then
14561 export_sym_check="$gcc_cv_nm -g"
14562 else
14563 export_sym_check=
14564 fi
14565 ;;
14566 *)
14567 if test x$build = x$host; then
14568 export_sym_check="objdump${exeext} -T"
14569 elif test x$host = x$target; then
14570 export_sym_check="$gcc_cv_objdump -T"
14571 else
14572 export_sym_check=
14573 fi
14574 ;;
14575 esac
14576
14577 if test x"$enable_plugin" = x"yes"; then
14578
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
14580$as_echo_n "checking for exported symbols... " >&6; }
14581 if test "x$export_sym_check" != x; then
14582 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
14583 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
14584 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
14585 : # No need to use a flag
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14587$as_echo "yes" >&6; }
14588 else
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14590$as_echo "yes" >&6; }
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
14592$as_echo_n "checking for -rdynamic... " >&6; }
14593 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
14594 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
14595 plugin_rdynamic=yes
14596 pluginlibs="-rdynamic"
14597 else
14598 plugin_rdynamic=no
14599 enable_plugin=no
14600 fi
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
14602$as_echo "$plugin_rdynamic" >&6; }
14603 fi
14604 else
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
14606$as_echo "unable to check" >&6; }
14607 fi
14608
14609 # Check -ldl
14610 saved_LIBS="$LIBS"
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14612$as_echo_n "checking for library containing dlopen... " >&6; }
14613if test "${ac_cv_search_dlopen+set}" = set; then :
14614 $as_echo_n "(cached) " >&6
14615else
14616 ac_func_search_save_LIBS=$LIBS
14617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14618/* end confdefs.h. */
14619
14620/* Override any GCC internal prototype to avoid an error.
14621 Use char because int might match the return type of a GCC
14622 builtin and then its argument prototype would still apply. */
14623#ifdef __cplusplus
14624extern "C"
14625#endif
14626char dlopen ();
14627int
14628main ()
14629{
14630return dlopen ();
14631 ;
14632 return 0;
14633}
14634_ACEOF
14635for ac_lib in '' dl; do
14636 if test -z "$ac_lib"; then
14637 ac_res="none required"
14638 else
14639 ac_res=-l$ac_lib
14640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14641 fi
14642 if ac_fn_c_try_link "$LINENO"; then :
14643 ac_cv_search_dlopen=$ac_res
14644fi
14645rm -f core conftest.err conftest.$ac_objext \
14646 conftest$ac_exeext
14647 if test "${ac_cv_search_dlopen+set}" = set; then :
14648 break
14649fi
14650done
14651if test "${ac_cv_search_dlopen+set}" = set; then :
14652
14653else
14654 ac_cv_search_dlopen=no
14655fi
14656rm conftest.$ac_ext
14657LIBS=$ac_func_search_save_LIBS
14658fi
14659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14660$as_echo "$ac_cv_search_dlopen" >&6; }
14661ac_res=$ac_cv_search_dlopen
14662if test "$ac_res" != no; then :
14663 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14664
14665fi
14666
14667 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
14668 pluginlibs="$pluginlibs -ldl"
14669 fi
14670 LIBS="$saved_LIBS"
14671
14672 # Check that we can build shared objects with -fPIC -shared
14673 saved_LDFLAGS="$LDFLAGS"
14674 saved_CFLAGS="$CFLAGS"
14675 case "${host}" in
14676 *-*-darwin*)
14677 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
14678 CFLAGS="$CFLAGS -fPIC"
14679 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
14680 ;;
14681 *)
14682 CFLAGS="$CFLAGS -fPIC"
14683 LDFLAGS="$LDFLAGS -fPIC -shared"
14684 ;;
14685 esac
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
14687$as_echo_n "checking for -fPIC -shared... " >&6; }
14688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689/* end confdefs.h. */
14690extern int X;
14691int
14692main ()
14693{
14694return X == 0;
14695 ;
14696 return 0;
14697}
14698_ACEOF
14699if ac_fn_c_try_link "$LINENO"; then :
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14701$as_echo "yes" >&6; }; have_pic_shared=yes
14702else
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14704$as_echo "no" >&6; }; have_pic_shared=no
14705fi
14706rm -f core conftest.err conftest.$ac_objext \
14707 conftest$ac_exeext conftest.$ac_ext
14708 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
14709 pluginlibs=
14710 enable_plugin=no
14711 fi
14712 LDFLAGS="$saved_LDFLAGS"
14713 CFLAGS="$saved_CFLAGS"
14714
14715 # If plugin support had been requested but not available, fail.
14716 if test x"$enable_plugin" = x"no" ; then
14717 if test x"$default_plugin" != x"yes"; then
14718 as_fn_error "
14719 Building GCC with plugin support requires a host that supports
14720 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
14721 fi
14722 fi
14723 fi
14724
14725ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
14726if test "x$ac_cv_func_socketpair" = x""yes; then :
14727
14728else
14729 enable_plugin=no
14730fi
14731
14732ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14733if test "x$ac_cv_func_select" = x""yes; then :
14734
14735else
14736 enable_plugin=no
14737fi
14738
14739ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
14740if test "x$ac_cv_func_fork" = x""yes; then :
14741
14742else
14743 enable_plugin=no
14744fi
14745
14746 if test $enable_plugin = yes; then
14747 ENABLE_PLUGIN_TRUE=
14748 ENABLE_PLUGIN_FALSE='#'
14749else
14750 ENABLE_PLUGIN_TRUE='#'
14751 ENABLE_PLUGIN_FALSE=
14752fi
14753
14754
14755ac_config_files="$ac_config_files Makefile"
14756
14757cat >confcache <<\_ACEOF
14758# This file is a shell script that caches the results of configure
14759# tests run on this system so they can be shared between configure
14760# scripts and configure runs, see configure's option --config-cache.
14761# It is not useful on other systems. If it contains results you don't
14762# want to keep, you may remove or edit it.
14763#
14764# config.status only pays attention to the cache file if you give it
14765# the --recheck option to rerun configure.
14766#
14767# `ac_cv_env_foo' variables (set or unset) will be overridden when
14768# loading this file, other *unset* `ac_cv_foo' will be assigned the
14769# following values.
14770
14771_ACEOF
14772
14773# The following way of writing the cache mishandles newlines in values,
14774# but we know of no workaround that is simple, portable, and efficient.
14775# So, we kill variables containing newlines.
14776# Ultrix sh set writes to stderr and can't be redirected directly,
14777# and sets the high bit in the cache file unless we assign to the vars.
14778(
14779 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14780 eval ac_val=\$$ac_var
14781 case $ac_val in #(
14782 *${as_nl}*)
14783 case $ac_var in #(
14784 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14785$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14786 esac
14787 case $ac_var in #(
14788 _ | IFS | as_nl) ;; #(
14789 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14790 *) { eval $ac_var=; unset $ac_var;} ;;
14791 esac ;;
14792 esac
14793 done
14794
14795 (set) 2>&1 |
14796 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14797 *${as_nl}ac_space=\ *)
14798 # `set' does not quote correctly, so add quotes: double-quote
14799 # substitution turns \\\\ into \\, and sed turns \\ into \.
14800 sed -n \
14801 "s/'/'\\\\''/g;
14802 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14803 ;; #(
14804 *)
14805 # `set' quotes correctly as required by POSIX, so do not add quotes.
14806 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14807 ;;
14808 esac |
14809 sort
14810) |
14811 sed '
14812 /^ac_cv_env_/b end
14813 t clear
14814 :clear
14815 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14816 t end
14817 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14818 :end' >>confcache
14819if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14820 if test -w "$cache_file"; then
14821 test "x$cache_file" != "x/dev/null" &&
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14823$as_echo "$as_me: updating cache $cache_file" >&6;}
14824 cat confcache >$cache_file
14825 else
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14827$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14828 fi
14829fi
14830rm -f confcache
14831
14832test "x$prefix" = xNONE && prefix=$ac_default_prefix
14833# Let make expand exec_prefix.
14834test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14835
14836DEFS=-DHAVE_CONFIG_H
14837
14838ac_libobjs=
14839ac_ltlibobjs=
14840for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14841 # 1. Remove the extension, and $U if already installed.
14842 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14843 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14844 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14845 # will be set to the directory where LIBOBJS objects are built.
14846 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14847 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14848done
14849LIBOBJS=$ac_libobjs
14850
14851LTLIBOBJS=$ac_ltlibobjs
14852
14853
14854if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14855 as_fn_error "conditional \"AMDEP\" was never defined.
14856Usually this means the macro was only invoked conditionally." "$LINENO" 5
14857fi
14858if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14859 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14860Usually this means the macro was only invoked conditionally." "$LINENO" 5
14861fi
14862 if test -n "$EXEEXT"; then
14863 am__EXEEXT_TRUE=
14864 am__EXEEXT_FALSE='#'
14865else
14866 am__EXEEXT_TRUE='#'
14867 am__EXEEXT_FALSE=
14868fi
14869
14870if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14871 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14872Usually this means the macro was only invoked conditionally." "$LINENO" 5
14873fi
14874if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14875 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14876Usually this means the macro was only invoked conditionally." "$LINENO" 5
14877fi
14878if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
14879 as_fn_error "conditional \"ENABLE_PLUGIN\" was never defined.
14880Usually this means the macro was only invoked conditionally." "$LINENO" 5
14881fi
14882
14883: ${CONFIG_STATUS=./config.status}
14884ac_write_fail=0
14885ac_clean_files_save=$ac_clean_files
14886ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14887{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14888$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14889as_write_fail=0
14890cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14891#! $SHELL
14892# Generated by $as_me.
14893# Run this file to recreate the current configuration.
14894# Compiler output produced by configure, useful for debugging
14895# configure, is in config.log if it exists.
14896
14897debug=false
14898ac_cs_recheck=false
14899ac_cs_silent=false
14900
14901SHELL=\${CONFIG_SHELL-$SHELL}
14902export SHELL
14903_ASEOF
14904cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14905## -------------------- ##
14906## M4sh Initialization. ##
14907## -------------------- ##
14908
14909# Be more Bourne compatible
14910DUALCASE=1; export DUALCASE # for MKS sh
14911if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14912 emulate sh
14913 NULLCMD=:
14914 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14915 # is contrary to our usage. Disable this feature.
14916 alias -g '${1+"$@"}'='"$@"'
14917 setopt NO_GLOB_SUBST
14918else
14919 case `(set -o) 2>/dev/null` in #(
14920 *posix*) :
14921 set -o posix ;; #(
14922 *) :
14923 ;;
14924esac
14925fi
14926
14927
14928as_nl='
14929'
14930export as_nl
14931# Printing a long string crashes Solaris 7 /usr/bin/printf.
14932as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14933as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14934as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14935# Prefer a ksh shell builtin over an external printf program on Solaris,
14936# but without wasting forks for bash or zsh.
14937if test -z "$BASH_VERSION$ZSH_VERSION" \
14938 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14939 as_echo='print -r --'
14940 as_echo_n='print -rn --'
14941elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14942 as_echo='printf %s\n'
14943 as_echo_n='printf %s'
14944else
14945 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14946 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14947 as_echo_n='/usr/ucb/echo -n'
14948 else
14949 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14950 as_echo_n_body='eval
14951 arg=$1;
14952 case $arg in #(
14953 *"$as_nl"*)
14954 expr "X$arg" : "X\\(.*\\)$as_nl";
14955 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14956 esac;
14957 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14958 '
14959 export as_echo_n_body
14960 as_echo_n='sh -c $as_echo_n_body as_echo'
14961 fi
14962 export as_echo_body
14963 as_echo='sh -c $as_echo_body as_echo'
14964fi
14965
14966# The user is always right.
14967if test "${PATH_SEPARATOR+set}" != set; then
14968 PATH_SEPARATOR=:
14969 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14970 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14971 PATH_SEPARATOR=';'
14972 }
14973fi
14974
14975
14976# IFS
14977# We need space, tab and new line, in precisely that order. Quoting is
14978# there to prevent editors from complaining about space-tab.
14979# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14980# splitting by setting IFS to empty value.)
14981IFS=" "" $as_nl"
14982
14983# Find who we are. Look in the path if we contain no directory separator.
14984case $0 in #((
14985 *[\\/]* ) as_myself=$0 ;;
14986 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14987for as_dir in $PATH
14988do
14989 IFS=$as_save_IFS
14990 test -z "$as_dir" && as_dir=.
14991 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14992 done
14993IFS=$as_save_IFS
14994
14995 ;;
14996esac
14997# We did not find ourselves, most probably we were run as `sh COMMAND'
14998# in which case we are not to be found in the path.
14999if test "x$as_myself" = x; then
15000 as_myself=$0
15001fi
15002if test ! -f "$as_myself"; then
15003 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15004 exit 1
15005fi
15006
15007# Unset variables that we do not need and which cause bugs (e.g. in
15008# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15009# suppresses any "Segmentation fault" message there. '((' could
15010# trigger a bug in pdksh 5.2.14.
15011for as_var in BASH_ENV ENV MAIL MAILPATH
15012do eval test x\${$as_var+set} = xset \
15013 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15014done
15015PS1='$ '
15016PS2='> '
15017PS4='+ '
15018
15019# NLS nuisances.
15020LC_ALL=C
15021export LC_ALL
15022LANGUAGE=C
15023export LANGUAGE
15024
15025# CDPATH.
15026(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15027
15028
15029# as_fn_error ERROR [LINENO LOG_FD]
15030# ---------------------------------
15031# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15032# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15033# script with status $?, using 1 if that was 0.
15034as_fn_error ()
15035{
15036 as_status=$?; test $as_status -eq 0 && as_status=1
15037 if test "$3"; then
15038 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15039 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15040 fi
15041 $as_echo "$as_me: error: $1" >&2
15042 as_fn_exit $as_status
15043} # as_fn_error
15044
15045
15046# as_fn_set_status STATUS
15047# -----------------------
15048# Set $? to STATUS, without forking.
15049as_fn_set_status ()
15050{
15051 return $1
15052} # as_fn_set_status
15053
15054# as_fn_exit STATUS
15055# -----------------
15056# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15057as_fn_exit ()
15058{
15059 set +e
15060 as_fn_set_status $1
15061 exit $1
15062} # as_fn_exit
15063
15064# as_fn_unset VAR
15065# ---------------
15066# Portably unset VAR.
15067as_fn_unset ()
15068{
15069 { eval $1=; unset $1;}
15070}
15071as_unset=as_fn_unset
15072# as_fn_append VAR VALUE
15073# ----------------------
15074# Append the text in VALUE to the end of the definition contained in VAR. Take
15075# advantage of any shell optimizations that allow amortized linear growth over
15076# repeated appends, instead of the typical quadratic growth present in naive
15077# implementations.
15078if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15079 eval 'as_fn_append ()
15080 {
15081 eval $1+=\$2
15082 }'
15083else
15084 as_fn_append ()
15085 {
15086 eval $1=\$$1\$2
15087 }
15088fi # as_fn_append
15089
15090# as_fn_arith ARG...
15091# ------------------
15092# Perform arithmetic evaluation on the ARGs, and store the result in the
15093# global $as_val. Take advantage of shells that can avoid forks. The arguments
15094# must be portable across $(()) and expr.
15095if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15096 eval 'as_fn_arith ()
15097 {
15098 as_val=$(( $* ))
15099 }'
15100else
15101 as_fn_arith ()
15102 {
15103 as_val=`expr "$@" || test $? -eq 1`
15104 }
15105fi # as_fn_arith
15106
15107
15108if expr a : '\(a\)' >/dev/null 2>&1 &&
15109 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15110 as_expr=expr
15111else
15112 as_expr=false
15113fi
15114
15115if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15116 as_basename=basename
15117else
15118 as_basename=false
15119fi
15120
15121if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15122 as_dirname=dirname
15123else
15124 as_dirname=false
15125fi
15126
15127as_me=`$as_basename -- "$0" ||
15128$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15129 X"$0" : 'X\(//\)$' \| \
15130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15131$as_echo X/"$0" |
15132 sed '/^.*\/\([^/][^/]*\)\/*$/{
15133 s//\1/
15134 q
15135 }
15136 /^X\/\(\/\/\)$/{
15137 s//\1/
15138 q
15139 }
15140 /^X\/\(\/\).*/{
15141 s//\1/
15142 q
15143 }
15144 s/.*/./; q'`
15145
15146# Avoid depending upon Character Ranges.
15147as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15148as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15149as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15150as_cr_digits='0123456789'
15151as_cr_alnum=$as_cr_Letters$as_cr_digits
15152
15153ECHO_C= ECHO_N= ECHO_T=
15154case `echo -n x` in #(((((
15155-n*)
15156 case `echo 'xy\c'` in
15157 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15158 xy) ECHO_C='\c';;
15159 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15160 ECHO_T=' ';;
15161 esac;;
15162*)
15163 ECHO_N='-n';;
15164esac
15165
15166rm -f conf$$ conf$$.exe conf$$.file
15167if test -d conf$$.dir; then
15168 rm -f conf$$.dir/conf$$.file
15169else
15170 rm -f conf$$.dir
15171 mkdir conf$$.dir 2>/dev/null
15172fi
15173if (echo >conf$$.file) 2>/dev/null; then
15174 if ln -s conf$$.file conf$$ 2>/dev/null; then
15175 as_ln_s='ln -s'
15176 # ... but there are two gotchas:
15177 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15178 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15179 # In both cases, we have to default to `cp -p'.
15180 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15181 as_ln_s='cp -p'
15182 elif ln conf$$.file conf$$ 2>/dev/null; then
15183 as_ln_s=ln
15184 else
15185 as_ln_s='cp -p'
15186 fi
15187else
15188 as_ln_s='cp -p'
15189fi
15190rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15191rmdir conf$$.dir 2>/dev/null
15192
15193
15194# as_fn_mkdir_p
15195# -------------
15196# Create "$as_dir" as a directory, including parents if necessary.
15197as_fn_mkdir_p ()
15198{
15199
15200 case $as_dir in #(
15201 -*) as_dir=./$as_dir;;
15202 esac
15203 test -d "$as_dir" || eval $as_mkdir_p || {
15204 as_dirs=
15205 while :; do
15206 case $as_dir in #(
15207 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15208 *) as_qdir=$as_dir;;
15209 esac
15210 as_dirs="'$as_qdir' $as_dirs"
15211 as_dir=`$as_dirname -- "$as_dir" ||
15212$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15213 X"$as_dir" : 'X\(//\)[^/]' \| \
15214 X"$as_dir" : 'X\(//\)$' \| \
15215 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15216$as_echo X"$as_dir" |
15217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15218 s//\1/
15219 q
15220 }
15221 /^X\(\/\/\)[^/].*/{
15222 s//\1/
15223 q
15224 }
15225 /^X\(\/\/\)$/{
15226 s//\1/
15227 q
15228 }
15229 /^X\(\/\).*/{
15230 s//\1/
15231 q
15232 }
15233 s/.*/./; q'`
15234 test -d "$as_dir" && break
15235 done
15236 test -z "$as_dirs" || eval "mkdir $as_dirs"
15237 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15238
15239
15240} # as_fn_mkdir_p
15241if mkdir -p . 2>/dev/null; then
15242 as_mkdir_p='mkdir -p "$as_dir"'
15243else
15244 test -d ./-p && rmdir ./-p
15245 as_mkdir_p=false
15246fi
15247
15248if test -x / >/dev/null 2>&1; then
15249 as_test_x='test -x'
15250else
15251 if ls -dL / >/dev/null 2>&1; then
15252 as_ls_L_option=L
15253 else
15254 as_ls_L_option=
15255 fi
15256 as_test_x='
15257 eval sh -c '\''
15258 if test -d "$1"; then
15259 test -d "$1/.";
15260 else
15261 case $1 in #(
15262 -*)set "./$1";;
15263 esac;
15264 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15265 ???[sx]*):;;*)false;;esac;fi
15266 '\'' sh
15267 '
15268fi
15269as_executable_p=$as_test_x
15270
15271# Sed expression to map a string onto a valid CPP name.
15272as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15273
15274# Sed expression to map a string onto a valid variable name.
15275as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15276
15277
15278exec 6>&1
15279## ----------------------------------- ##
15280## Main body of $CONFIG_STATUS script. ##
15281## ----------------------------------- ##
15282_ASEOF
15283test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15284
15285cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15286# Save the log message, to keep $0 and so on meaningful, and to
15287# report actual input values of CONFIG_FILES etc. instead of their
15288# values after options handling.
15289ac_log="
15290This file was extended by libcc1 $as_me version-unused, which was
15291generated by GNU Autoconf 2.64. Invocation command line was
15292
15293 CONFIG_FILES = $CONFIG_FILES
15294 CONFIG_HEADERS = $CONFIG_HEADERS
15295 CONFIG_LINKS = $CONFIG_LINKS
15296 CONFIG_COMMANDS = $CONFIG_COMMANDS
15297 $ $0 $@
15298
15299on `(hostname || uname -n) 2>/dev/null | sed 1q`
15300"
15301
15302_ACEOF
15303
15304case $ac_config_files in *"
15305"*) set x $ac_config_files; shift; ac_config_files=$*;;
15306esac
15307
15308case $ac_config_headers in *"
15309"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15310esac
15311
15312
15313cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15314# Files that config.status was made for.
15315config_files="$ac_config_files"
15316config_headers="$ac_config_headers"
15317config_commands="$ac_config_commands"
15318
15319_ACEOF
15320
15321cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15322ac_cs_usage="\
15323\`$as_me' instantiates files and other configuration actions
15324from templates according to the current configuration. Unless the files
15325and actions are specified as TAGs, all are instantiated by default.
15326
15327Usage: $0 [OPTION]... [TAG]...
15328
15329 -h, --help print this help, then exit
15330 -V, --version print version number and configuration settings, then exit
15331 -q, --quiet, --silent
15332 do not print progress messages
15333 -d, --debug don't remove temporary files
15334 --recheck update $as_me by reconfiguring in the same conditions
15335 --file=FILE[:TEMPLATE]
15336 instantiate the configuration file FILE
15337 --header=FILE[:TEMPLATE]
15338 instantiate the configuration header FILE
15339
15340Configuration files:
15341$config_files
15342
15343Configuration headers:
15344$config_headers
15345
15346Configuration commands:
15347$config_commands
15348
15349Report bugs to the package provider."
15350
15351_ACEOF
15352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15353ac_cs_version="\\
15354libcc1 config.status version-unused
15355configured by $0, generated by GNU Autoconf 2.64,
15356 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15357
15358Copyright (C) 2009 Free Software Foundation, Inc.
15359This config.status script is free software; the Free Software Foundation
15360gives unlimited permission to copy, distribute and modify it."
15361
15362ac_pwd='$ac_pwd'
15363srcdir='$srcdir'
15364INSTALL='$INSTALL'
15365MKDIR_P='$MKDIR_P'
15366AWK='$AWK'
15367test -n "\$AWK" || AWK=awk
15368_ACEOF
15369
15370cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15371# The default lists apply if the user does not specify any file.
15372ac_need_defaults=:
15373while test $# != 0
15374do
15375 case $1 in
15376 --*=*)
15377 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15378 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15379 ac_shift=:
15380 ;;
15381 *)
15382 ac_option=$1
15383 ac_optarg=$2
15384 ac_shift=shift
15385 ;;
15386 esac
15387
15388 case $ac_option in
15389 # Handling of the options.
15390 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15391 ac_cs_recheck=: ;;
15392 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15393 $as_echo "$ac_cs_version"; exit ;;
15394 --debug | --debu | --deb | --de | --d | -d )
15395 debug=: ;;
15396 --file | --fil | --fi | --f )
15397 $ac_shift
15398 case $ac_optarg in
15399 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15400 esac
15401 as_fn_append CONFIG_FILES " '$ac_optarg'"
15402 ac_need_defaults=false;;
15403 --header | --heade | --head | --hea )
15404 $ac_shift
15405 case $ac_optarg in
15406 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15407 esac
15408 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15409 ac_need_defaults=false;;
15410 --he | --h)
15411 # Conflict between --help and --header
15412 as_fn_error "ambiguous option: \`$1'
15413Try \`$0 --help' for more information.";;
15414 --help | --hel | -h )
15415 $as_echo "$ac_cs_usage"; exit ;;
15416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15417 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15418 ac_cs_silent=: ;;
15419
15420 # This is an error.
15421 -*) as_fn_error "unrecognized option: \`$1'
15422Try \`$0 --help' for more information." ;;
15423
15424 *) as_fn_append ac_config_targets " $1"
15425 ac_need_defaults=false ;;
15426
15427 esac
15428 shift
15429done
15430
15431ac_configure_extra_args=
15432
15433if $ac_cs_silent; then
15434 exec 6>/dev/null
15435 ac_configure_extra_args="$ac_configure_extra_args --silent"
15436fi
15437
15438_ACEOF
15439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15440if \$ac_cs_recheck; then
15441 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15442 shift
15443 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15444 CONFIG_SHELL='$SHELL'
15445 export CONFIG_SHELL
15446 exec "\$@"
15447fi
15448
15449_ACEOF
15450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15451exec 5>>config.log
15452{
15453 echo
15454 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15455## Running $as_me. ##
15456_ASBOX
15457 $as_echo "$ac_log"
15458} >&5
15459
15460_ACEOF
15461cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15462#
15463# INIT-COMMANDS
15464#
15465AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15466
15467
15468# The HP-UX ksh and POSIX shell print the target directory to stdout
15469# if CDPATH is set.
15470(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15471
15472sed_quote_subst='$sed_quote_subst'
15473double_quote_subst='$double_quote_subst'
15474delay_variable_subst='$delay_variable_subst'
15475macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15476macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15477enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15478enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15479pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15480enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15481SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15482ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15483host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15484host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15485host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15486build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15487build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15488build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15489SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15490Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15491GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15492EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15493FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15494LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15495NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15496LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15497max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15498ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15499exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15500lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15501lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15502lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15503reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15504reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15505OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15506deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15507file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15508AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15509AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15510STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15511RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15512old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15513old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15514old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15515lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15516CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15517CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15518compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15519GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15520lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15521lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15522lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15523lt_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"`'
15524objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15525MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15526lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15527lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15528lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15529lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15530lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15531need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15532DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15533NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15534LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15535OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15536OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15537libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15538shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15539extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15540archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15541enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15542export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15543whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15544compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15545old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15546old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15547archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15548archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15549module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15550module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15551with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15552allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15553no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15554hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15555hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15556hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15557hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15558hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15559hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15560hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15561hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15562inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15563link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15564fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15565always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15566export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15567exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15568include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15569prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15570file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15571variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15572need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15573need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15574version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15575runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15576shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15577shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15578libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15579library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15580soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15581install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15582postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15583postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15584finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15585finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15586hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15587sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15588sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15589hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15590enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15591enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15592enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15593old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15594striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15595compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15596predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15597postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15598predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15599postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15600compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15601LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15602reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15603reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15604old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15605compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15606GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15607lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15608lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15609lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15610lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15611lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15612archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15613enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15614export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15615whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15616compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15617old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15618old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15619archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15620archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15621module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15622module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15623with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15624allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15625no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15626hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15627hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15628hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15629hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15630hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15631hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15632hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15633hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15634inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15635link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15636fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15637always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15638export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15639exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15640include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15641prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15642file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15643hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15644compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15645predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15646postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15647predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15648postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15649compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15650
15651LTCC='$LTCC'
15652LTCFLAGS='$LTCFLAGS'
15653compiler='$compiler_DEFAULT'
15654
15655# A function that is used when there is no print builtin or printf.
15656func_fallback_echo ()
15657{
15658 eval 'cat <<_LTECHO_EOF
15659\$1
15660_LTECHO_EOF'
15661}
15662
15663# Quote evaled strings.
15664for var in SHELL \
15665ECHO \
15666SED \
15667GREP \
15668EGREP \
15669FGREP \
15670LD \
15671NM \
15672LN_S \
15673lt_SP2NL \
15674lt_NL2SP \
15675reload_flag \
15676OBJDUMP \
15677deplibs_check_method \
15678file_magic_cmd \
15679AR \
15680AR_FLAGS \
15681STRIP \
15682RANLIB \
15683CC \
15684CFLAGS \
15685compiler \
15686lt_cv_sys_global_symbol_pipe \
15687lt_cv_sys_global_symbol_to_cdecl \
15688lt_cv_sys_global_symbol_to_c_name_address \
15689lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15690lt_prog_compiler_no_builtin_flag \
15691lt_prog_compiler_wl \
15692lt_prog_compiler_pic \
15693lt_prog_compiler_static \
15694lt_cv_prog_compiler_c_o \
15695need_locks \
15696DSYMUTIL \
15697NMEDIT \
15698LIPO \
15699OTOOL \
15700OTOOL64 \
15701shrext_cmds \
15702export_dynamic_flag_spec \
15703whole_archive_flag_spec \
15704compiler_needs_object \
15705with_gnu_ld \
15706allow_undefined_flag \
15707no_undefined_flag \
15708hardcode_libdir_flag_spec \
15709hardcode_libdir_flag_spec_ld \
15710hardcode_libdir_separator \
15711fix_srcfile_path \
15712exclude_expsyms \
15713include_expsyms \
15714file_list_spec \
15715variables_saved_for_relink \
15716libname_spec \
15717library_names_spec \
15718soname_spec \
15719install_override_mode \
15720finish_eval \
15721old_striplib \
15722striplib \
15723compiler_lib_search_dirs \
15724predep_objects \
15725postdep_objects \
15726predeps \
15727postdeps \
15728compiler_lib_search_path \
15729LD_CXX \
15730reload_flag_CXX \
15731compiler_CXX \
15732lt_prog_compiler_no_builtin_flag_CXX \
15733lt_prog_compiler_wl_CXX \
15734lt_prog_compiler_pic_CXX \
15735lt_prog_compiler_static_CXX \
15736lt_cv_prog_compiler_c_o_CXX \
15737export_dynamic_flag_spec_CXX \
15738whole_archive_flag_spec_CXX \
15739compiler_needs_object_CXX \
15740with_gnu_ld_CXX \
15741allow_undefined_flag_CXX \
15742no_undefined_flag_CXX \
15743hardcode_libdir_flag_spec_CXX \
15744hardcode_libdir_flag_spec_ld_CXX \
15745hardcode_libdir_separator_CXX \
15746fix_srcfile_path_CXX \
15747exclude_expsyms_CXX \
15748include_expsyms_CXX \
15749file_list_spec_CXX \
15750compiler_lib_search_dirs_CXX \
15751predep_objects_CXX \
15752postdep_objects_CXX \
15753predeps_CXX \
15754postdeps_CXX \
15755compiler_lib_search_path_CXX; do
15756 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15757 *[\\\\\\\`\\"\\\$]*)
15758 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15759 ;;
15760 *)
15761 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15762 ;;
15763 esac
15764done
15765
15766# Double-quote double-evaled strings.
15767for var in reload_cmds \
15768old_postinstall_cmds \
15769old_postuninstall_cmds \
15770old_archive_cmds \
15771extract_expsyms_cmds \
15772old_archive_from_new_cmds \
15773old_archive_from_expsyms_cmds \
15774archive_cmds \
15775archive_expsym_cmds \
15776module_cmds \
15777module_expsym_cmds \
15778export_symbols_cmds \
15779prelink_cmds \
15780postinstall_cmds \
15781postuninstall_cmds \
15782finish_cmds \
15783sys_lib_search_path_spec \
15784sys_lib_dlsearch_path_spec \
15785reload_cmds_CXX \
15786old_archive_cmds_CXX \
15787old_archive_from_new_cmds_CXX \
15788old_archive_from_expsyms_cmds_CXX \
15789archive_cmds_CXX \
15790archive_expsym_cmds_CXX \
15791module_cmds_CXX \
15792module_expsym_cmds_CXX \
15793export_symbols_cmds_CXX \
15794prelink_cmds_CXX; do
15795 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15796 *[\\\\\\\`\\"\\\$]*)
15797 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15798 ;;
15799 *)
15800 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15801 ;;
15802 esac
15803done
15804
15805ac_aux_dir='$ac_aux_dir'
15806xsi_shell='$xsi_shell'
15807lt_shell_append='$lt_shell_append'
15808
15809# See if we are running on zsh, and set the options which allow our
15810# commands through without removal of \ escapes INIT.
15811if test -n "\${ZSH_VERSION+set}" ; then
15812 setopt NO_GLOB_SUBST
15813fi
15814
15815
15816 PACKAGE='$PACKAGE'
15817 VERSION='$VERSION'
15818 TIMESTAMP='$TIMESTAMP'
15819 RM='$RM'
15820 ofile='$ofile'
15821
15822
15823
15824
15825
15826
15827_ACEOF
15828
15829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15830
15831# Handling of arguments.
15832for ac_config_target in $ac_config_targets
15833do
15834 case $ac_config_target in
15835 "cc1plugin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS cc1plugin-config.h" ;;
15836 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15837 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15838 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15839
15840 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15841 esac
15842done
15843
15844
15845# If the user did not use the arguments to specify the items to instantiate,
15846# then the envvar interface is used. Set only those that are not.
15847# We use the long form for the default assignment because of an extremely
15848# bizarre bug on SunOS 4.1.3.
15849if $ac_need_defaults; then
15850 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15851 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15852 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15853fi
15854
15855# Have a temporary directory for convenience. Make it in the build tree
15856# simply because there is no reason against having it here, and in addition,
15857# creating and moving files from /tmp can sometimes cause problems.
15858# Hook for its removal unless debugging.
15859# Note that there is a small window in which the directory will not be cleaned:
15860# after its creation but before its name has been assigned to `$tmp'.
15861$debug ||
15862{
15863 tmp=
15864 trap 'exit_status=$?
15865 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15866' 0
15867 trap 'as_fn_exit 1' 1 2 13 15
15868}
15869# Create a (secure) tmp directory for tmp files.
15870
15871{
15872 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15873 test -n "$tmp" && test -d "$tmp"
15874} ||
15875{
15876 tmp=./conf$$-$RANDOM
15877 (umask 077 && mkdir "$tmp")
15878} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15879
15880# Set up the scripts for CONFIG_FILES section.
15881# No need to generate them if there are no CONFIG_FILES.
15882# This happens for instance with `./config.status config.h'.
15883if test -n "$CONFIG_FILES"; then
15884
15885
15886ac_cr=`echo X | tr X '\015'`
15887# On cygwin, bash can eat \r inside `` if the user requested igncr.
15888# But we know of no other shell where ac_cr would be empty at this
15889# point, so we can use a bashism as a fallback.
15890if test "x$ac_cr" = x; then
15891 eval ac_cr=\$\'\\r\'
15892fi
15893ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15894if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15895 ac_cs_awk_cr='\r'
15896else
15897 ac_cs_awk_cr=$ac_cr
15898fi
15899
15900echo 'BEGIN {' >"$tmp/subs1.awk" &&
15901_ACEOF
15902
15903
15904{
15905 echo "cat >conf$$subs.awk <<_ACEOF" &&
15906 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15907 echo "_ACEOF"
15908} >conf$$subs.sh ||
15909 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15910ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15911ac_delim='%!_!# '
15912for ac_last_try in false false false false false :; do
15913 . ./conf$$subs.sh ||
15914 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15915
15916 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15917 if test $ac_delim_n = $ac_delim_num; then
15918 break
15919 elif $ac_last_try; then
15920 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15921 else
15922 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15923 fi
15924done
15925rm -f conf$$subs.sh
15926
15927cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15928cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15929_ACEOF
15930sed -n '
15931h
15932s/^/S["/; s/!.*/"]=/
15933p
15934g
15935s/^[^!]*!//
15936:repl
15937t repl
15938s/'"$ac_delim"'$//
15939t delim
15940:nl
15941h
15942s/\(.\{148\}\).*/\1/
15943t more1
15944s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15945p
15946n
15947b repl
15948:more1
15949s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15950p
15951g
15952s/.\{148\}//
15953t nl
15954:delim
15955h
15956s/\(.\{148\}\).*/\1/
15957t more2
15958s/["\\]/\\&/g; s/^/"/; s/$/"/
15959p
15960b
15961:more2
15962s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15963p
15964g
15965s/.\{148\}//
15966t delim
15967' <conf$$subs.awk | sed '
15968/^[^""]/{
15969 N
15970 s/\n//
15971}
15972' >>$CONFIG_STATUS || ac_write_fail=1
15973rm -f conf$$subs.awk
15974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15975_ACAWK
15976cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15977 for (key in S) S_is_set[key] = 1
15978 FS = "\a"
15979
15980}
15981{
15982 line = $ 0
15983 nfields = split(line, field, "@")
15984 substed = 0
15985 len = length(field[1])
15986 for (i = 2; i < nfields; i++) {
15987 key = field[i]
15988 keylen = length(key)
15989 if (S_is_set[key]) {
15990 value = S[key]
15991 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15992 len += length(value) + length(field[++i])
15993 substed = 1
15994 } else
15995 len += 1 + keylen
15996 }
15997
15998 print line
15999}
16000
16001_ACAWK
16002_ACEOF
16003cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16004if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16005 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16006else
16007 cat
16008fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16009 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16010_ACEOF
16011
16012# VPATH may cause trouble with some makes, so we remove $(srcdir),
16013# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16014# trailing colons and then remove the whole line if VPATH becomes empty
16015# (actually we leave an empty line to preserve line numbers).
16016if test "x$srcdir" = x.; then
16017 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16018s/:*\$(srcdir):*/:/
16019s/:*\${srcdir}:*/:/
16020s/:*@srcdir@:*/:/
16021s/^\([^=]*=[ ]*\):*/\1/
16022s/:*$//
16023s/^[^=]*=[ ]*$//
16024}'
16025fi
16026
16027cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16028fi # test -n "$CONFIG_FILES"
16029
16030# Set up the scripts for CONFIG_HEADERS section.
16031# No need to generate them if there are no CONFIG_HEADERS.
16032# This happens for instance with `./config.status Makefile'.
16033if test -n "$CONFIG_HEADERS"; then
16034cat >"$tmp/defines.awk" <<\_ACAWK ||
16035BEGIN {
16036_ACEOF
16037
16038# Transform confdefs.h into an awk script `defines.awk', embedded as
16039# here-document in config.status, that substitutes the proper values into
16040# config.h.in to produce config.h.
16041
16042# Create a delimiter string that does not exist in confdefs.h, to ease
16043# handling of long lines.
16044ac_delim='%!_!# '
16045for ac_last_try in false false :; do
16046 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16047 if test -z "$ac_t"; then
16048 break
16049 elif $ac_last_try; then
16050 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16051 else
16052 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16053 fi
16054done
16055
16056# For the awk script, D is an array of macro values keyed by name,
16057# likewise P contains macro parameters if any. Preserve backslash
16058# newline sequences.
16059
16060ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16061sed -n '
16062s/.\{148\}/&'"$ac_delim"'/g
16063t rset
16064:rset
16065s/^[ ]*#[ ]*define[ ][ ]*/ /
16066t def
16067d
16068:def
16069s/\\$//
16070t bsnl
16071s/["\\]/\\&/g
16072s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16073D["\1"]=" \3"/p
16074s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16075d
16076:bsnl
16077s/["\\]/\\&/g
16078s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16079D["\1"]=" \3\\\\\\n"\\/p
16080t cont
16081s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16082t cont
16083d
16084:cont
16085n
16086s/.\{148\}/&'"$ac_delim"'/g
16087t clear
16088:clear
16089s/\\$//
16090t bsnlc
16091s/["\\]/\\&/g; s/^/"/; s/$/"/p
16092d
16093:bsnlc
16094s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16095b cont
16096' <confdefs.h | sed '
16097s/'"$ac_delim"'/"\\\
16098"/g' >>$CONFIG_STATUS || ac_write_fail=1
16099
16100cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16101 for (key in D) D_is_set[key] = 1
16102 FS = "\a"
16103}
16104/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16105 line = \$ 0
16106 split(line, arg, " ")
16107 if (arg[1] == "#") {
16108 defundef = arg[2]
16109 mac1 = arg[3]
16110 } else {
16111 defundef = substr(arg[1], 2)
16112 mac1 = arg[2]
16113 }
16114 split(mac1, mac2, "(") #)
16115 macro = mac2[1]
16116 prefix = substr(line, 1, index(line, defundef) - 1)
16117 if (D_is_set[macro]) {
16118 # Preserve the white space surrounding the "#".
16119 print prefix "define", macro P[macro] D[macro]
16120 next
16121 } else {
16122 # Replace #undef with comments. This is necessary, for example,
16123 # in the case of _POSIX_SOURCE, which is predefined and required
16124 # on some systems where configure will not decide to define it.
16125 if (defundef == "undef") {
16126 print "/*", prefix defundef, macro, "*/"
16127 next
16128 }
16129 }
16130}
16131{ print }
16132_ACAWK
16133_ACEOF
16134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16135 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16136fi # test -n "$CONFIG_HEADERS"
16137
16138
16139eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16140shift
16141for ac_tag
16142do
16143 case $ac_tag in
16144 :[FHLC]) ac_mode=$ac_tag; continue;;
16145 esac
16146 case $ac_mode$ac_tag in
16147 :[FHL]*:*);;
16148 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16149 :[FH]-) ac_tag=-:-;;
16150 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16151 esac
16152 ac_save_IFS=$IFS
16153 IFS=:
16154 set x $ac_tag
16155 IFS=$ac_save_IFS
16156 shift
16157 ac_file=$1
16158 shift
16159
16160 case $ac_mode in
16161 :L) ac_source=$1;;
16162 :[FH])
16163 ac_file_inputs=
16164 for ac_f
16165 do
16166 case $ac_f in
16167 -) ac_f="$tmp/stdin";;
16168 *) # Look for the file first in the build tree, then in the source tree
16169 # (if the path is not absolute). The absolute path cannot be DOS-style,
16170 # because $ac_f cannot contain `:'.
16171 test -f "$ac_f" ||
16172 case $ac_f in
16173 [\\/$]*) false;;
16174 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16175 esac ||
16176 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16177 esac
16178 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16179 as_fn_append ac_file_inputs " '$ac_f'"
16180 done
16181
16182 # Let's still pretend it is `configure' which instantiates (i.e., don't
16183 # use $as_me), people would be surprised to read:
16184 # /* config.h. Generated by config.status. */
16185 configure_input='Generated from '`
16186 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16187 `' by configure.'
16188 if test x"$ac_file" != x-; then
16189 configure_input="$ac_file. $configure_input"
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16191$as_echo "$as_me: creating $ac_file" >&6;}
16192 fi
16193 # Neutralize special characters interpreted by sed in replacement strings.
16194 case $configure_input in #(
16195 *\&* | *\|* | *\\* )
16196 ac_sed_conf_input=`$as_echo "$configure_input" |
16197 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16198 *) ac_sed_conf_input=$configure_input;;
16199 esac
16200
16201 case $ac_tag in
16202 *:-:* | *:-) cat >"$tmp/stdin" \
16203 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16204 esac
16205 ;;
16206 esac
16207
16208 ac_dir=`$as_dirname -- "$ac_file" ||
16209$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16210 X"$ac_file" : 'X\(//\)[^/]' \| \
16211 X"$ac_file" : 'X\(//\)$' \| \
16212 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16213$as_echo X"$ac_file" |
16214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16215 s//\1/
16216 q
16217 }
16218 /^X\(\/\/\)[^/].*/{
16219 s//\1/
16220 q
16221 }
16222 /^X\(\/\/\)$/{
16223 s//\1/
16224 q
16225 }
16226 /^X\(\/\).*/{
16227 s//\1/
16228 q
16229 }
16230 s/.*/./; q'`
16231 as_dir="$ac_dir"; as_fn_mkdir_p
16232 ac_builddir=.
16233
16234case "$ac_dir" in
16235.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16236*)
16237 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16238 # A ".." for each directory in $ac_dir_suffix.
16239 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16240 case $ac_top_builddir_sub in
16241 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16242 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16243 esac ;;
16244esac
16245ac_abs_top_builddir=$ac_pwd
16246ac_abs_builddir=$ac_pwd$ac_dir_suffix
16247# for backward compatibility:
16248ac_top_builddir=$ac_top_build_prefix
16249
16250case $srcdir in
16251 .) # We are building in place.
16252 ac_srcdir=.
16253 ac_top_srcdir=$ac_top_builddir_sub
16254 ac_abs_top_srcdir=$ac_pwd ;;
16255 [\\/]* | ?:[\\/]* ) # Absolute name.
16256 ac_srcdir=$srcdir$ac_dir_suffix;
16257 ac_top_srcdir=$srcdir
16258 ac_abs_top_srcdir=$srcdir ;;
16259 *) # Relative name.
16260 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16261 ac_top_srcdir=$ac_top_build_prefix$srcdir
16262 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16263esac
16264ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16265
16266
16267 case $ac_mode in
16268 :F)
16269 #
16270 # CONFIG_FILE
16271 #
16272
16273 case $INSTALL in
16274 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16275 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16276 esac
16277 ac_MKDIR_P=$MKDIR_P
16278 case $MKDIR_P in
16279 [\\/$]* | ?:[\\/]* ) ;;
16280 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16281 esac
16282_ACEOF
16283
16284cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16285# If the template does not know about datarootdir, expand it.
16286# FIXME: This hack should be removed a few years after 2.60.
16287ac_datarootdir_hack=; ac_datarootdir_seen=
16288ac_sed_dataroot='
16289/datarootdir/ {
16290 p
16291 q
16292}
16293/@datadir@/p
16294/@docdir@/p
16295/@infodir@/p
16296/@localedir@/p
16297/@mandir@/p'
16298case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16299*datarootdir*) ac_datarootdir_seen=yes;;
16300*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16302$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16303_ACEOF
16304cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16305 ac_datarootdir_hack='
16306 s&@datadir@&$datadir&g
16307 s&@docdir@&$docdir&g
16308 s&@infodir@&$infodir&g
16309 s&@localedir@&$localedir&g
16310 s&@mandir@&$mandir&g
16311 s&\\\${datarootdir}&$datarootdir&g' ;;
16312esac
16313_ACEOF
16314
16315# Neutralize VPATH when `$srcdir' = `.'.
16316# Shell code in configure.ac might set extrasub.
16317# FIXME: do we really want to maintain this feature?
16318cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16319ac_sed_extra="$ac_vpsub
16320$extrasub
16321_ACEOF
16322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16323:t
16324/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16325s|@configure_input@|$ac_sed_conf_input|;t t
16326s&@top_builddir@&$ac_top_builddir_sub&;t t
16327s&@top_build_prefix@&$ac_top_build_prefix&;t t
16328s&@srcdir@&$ac_srcdir&;t t
16329s&@abs_srcdir@&$ac_abs_srcdir&;t t
16330s&@top_srcdir@&$ac_top_srcdir&;t t
16331s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16332s&@builddir@&$ac_builddir&;t t
16333s&@abs_builddir@&$ac_abs_builddir&;t t
16334s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16335s&@INSTALL@&$ac_INSTALL&;t t
16336s&@MKDIR_P@&$ac_MKDIR_P&;t t
16337$ac_datarootdir_hack
16338"
16339eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16340 || as_fn_error "could not create $ac_file" "$LINENO" 5
16341
16342test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16343 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16344 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16346which seems to be undefined. Please make sure it is defined." >&5
16347$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16348which seems to be undefined. Please make sure it is defined." >&2;}
16349
16350 rm -f "$tmp/stdin"
16351 case $ac_file in
16352 -) cat "$tmp/out" && rm -f "$tmp/out";;
16353 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16354 esac \
16355 || as_fn_error "could not create $ac_file" "$LINENO" 5
16356 ;;
16357 :H)
16358 #
16359 # CONFIG_HEADER
16360 #
16361 if test x"$ac_file" != x-; then
16362 {
16363 $as_echo "/* $configure_input */" \
16364 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16365 } >"$tmp/config.h" \
16366 || as_fn_error "could not create $ac_file" "$LINENO" 5
16367 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16369$as_echo "$as_me: $ac_file is unchanged" >&6;}
16370 else
16371 rm -f "$ac_file"
16372 mv "$tmp/config.h" "$ac_file" \
16373 || as_fn_error "could not create $ac_file" "$LINENO" 5
16374 fi
16375 else
16376 $as_echo "/* $configure_input */" \
16377 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16378 || as_fn_error "could not create -" "$LINENO" 5
16379 fi
16380# Compute "$ac_file"'s index in $config_headers.
16381_am_arg="$ac_file"
16382_am_stamp_count=1
16383for _am_header in $config_headers :; do
16384 case $_am_header in
16385 $_am_arg | $_am_arg:* )
16386 break ;;
16387 * )
16388 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16389 esac
16390done
16391echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16392$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16393 X"$_am_arg" : 'X\(//\)[^/]' \| \
16394 X"$_am_arg" : 'X\(//\)$' \| \
16395 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16396$as_echo X"$_am_arg" |
16397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16398 s//\1/
16399 q
16400 }
16401 /^X\(\/\/\)[^/].*/{
16402 s//\1/
16403 q
16404 }
16405 /^X\(\/\/\)$/{
16406 s//\1/
16407 q
16408 }
16409 /^X\(\/\).*/{
16410 s//\1/
16411 q
16412 }
16413 s/.*/./; q'`/stamp-h$_am_stamp_count
16414 ;;
16415
16416 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16417$as_echo "$as_me: executing $ac_file commands" >&6;}
16418 ;;
16419 esac
16420
16421
16422 case $ac_file$ac_mode in
16423 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16424 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16425 # are listed without --file. Let's play safe and only enable the eval
16426 # if we detect the quoting.
16427 case $CONFIG_FILES in
16428 *\'*) eval set x "$CONFIG_FILES" ;;
16429 *) set x $CONFIG_FILES ;;
16430 esac
16431 shift
16432 for mf
16433 do
16434 # Strip MF so we end up with the name of the file.
16435 mf=`echo "$mf" | sed -e 's/:.*$//'`
16436 # Check whether this is an Automake generated Makefile or not.
16437 # We used to match only the files named `Makefile.in', but
16438 # some people rename them; so instead we look at the file content.
16439 # Grep'ing the first line is not enough: some people post-process
16440 # each Makefile.in and add a new line on top of each file to say so.
16441 # Grep'ing the whole file is not good either: AIX grep has a line
16442 # limit of 2048, but all sed's we know have understand at least 4000.
16443 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16444 dirpart=`$as_dirname -- "$mf" ||
16445$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16446 X"$mf" : 'X\(//\)[^/]' \| \
16447 X"$mf" : 'X\(//\)$' \| \
16448 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16449$as_echo X"$mf" |
16450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16451 s//\1/
16452 q
16453 }
16454 /^X\(\/\/\)[^/].*/{
16455 s//\1/
16456 q
16457 }
16458 /^X\(\/\/\)$/{
16459 s//\1/
16460 q
16461 }
16462 /^X\(\/\).*/{
16463 s//\1/
16464 q
16465 }
16466 s/.*/./; q'`
16467 else
16468 continue
16469 fi
16470 # Extract the definition of DEPDIR, am__include, and am__quote
16471 # from the Makefile without running `make'.
16472 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16473 test -z "$DEPDIR" && continue
16474 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16475 test -z "am__include" && continue
16476 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16477 # When using ansi2knr, U may be empty or an underscore; expand it
16478 U=`sed -n 's/^U = //p' < "$mf"`
16479 # Find all dependency output files, they are included files with
16480 # $(DEPDIR) in their names. We invoke sed twice because it is the
16481 # simplest approach to changing $(DEPDIR) to its actual value in the
16482 # expansion.
16483 for file in `sed -n "
16484 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16485 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16486 # Make sure the directory exists.
16487 test -f "$dirpart/$file" && continue
16488 fdir=`$as_dirname -- "$file" ||
16489$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16490 X"$file" : 'X\(//\)[^/]' \| \
16491 X"$file" : 'X\(//\)$' \| \
16492 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16493$as_echo X"$file" |
16494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16495 s//\1/
16496 q
16497 }
16498 /^X\(\/\/\)[^/].*/{
16499 s//\1/
16500 q
16501 }
16502 /^X\(\/\/\)$/{
16503 s//\1/
16504 q
16505 }
16506 /^X\(\/\).*/{
16507 s//\1/
16508 q
16509 }
16510 s/.*/./; q'`
16511 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16512 # echo "creating $dirpart/$file"
16513 echo '# dummy' > "$dirpart/$file"
16514 done
16515 done
16516}
16517 ;;
16518 "libtool":C)
16519
16520 # See if we are running on zsh, and set the options which allow our
16521 # commands through without removal of \ escapes.
16522 if test -n "${ZSH_VERSION+set}" ; then
16523 setopt NO_GLOB_SUBST
16524 fi
16525
16526 cfgfile="${ofile}T"
16527 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16528 $RM "$cfgfile"
16529
16530 cat <<_LT_EOF >> "$cfgfile"
16531#! $SHELL
16532
16533# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16534# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16535# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16536# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16537#
16538# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16539# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16540# Written by Gordon Matzigkeit, 1996
16541#
16542# This file is part of GNU Libtool.
16543#
16544# GNU Libtool is free software; you can redistribute it and/or
16545# modify it under the terms of the GNU General Public License as
16546# published by the Free Software Foundation; either version 2 of
16547# the License, or (at your option) any later version.
16548#
16549# As a special exception to the GNU General Public License,
16550# if you distribute this file as part of a program or library that
16551# is built using GNU Libtool, you may include this file under the
16552# same distribution terms that you use for the rest of that program.
16553#
16554# GNU Libtool is distributed in the hope that it will be useful,
16555# but WITHOUT ANY WARRANTY; without even the implied warranty of
16556# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16557# GNU General Public License for more details.
16558#
16559# You should have received a copy of the GNU General Public License
16560# along with GNU Libtool; see the file COPYING. If not, a copy
16561# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16562# obtained by writing to the Free Software Foundation, Inc.,
16563# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16564
16565
16566# The names of the tagged configurations supported by this script.
16567available_tags="CXX "
16568
16569# ### BEGIN LIBTOOL CONFIG
16570
16571# Which release of libtool.m4 was used?
16572macro_version=$macro_version
16573macro_revision=$macro_revision
16574
16575# Whether or not to build static libraries.
16576build_old_libs=$enable_static
16577
16578# Whether or not to build shared libraries.
16579build_libtool_libs=$enable_shared
16580
16581# What type of objects to build.
16582pic_mode=$pic_mode
16583
16584# Whether or not to optimize for fast installation.
16585fast_install=$enable_fast_install
16586
16587# Shell to use when invoking shell scripts.
16588SHELL=$lt_SHELL
16589
16590# An echo program that protects backslashes.
16591ECHO=$lt_ECHO
16592
16593# The host system.
16594host_alias=$host_alias
16595host=$host
16596host_os=$host_os
16597
16598# The build system.
16599build_alias=$build_alias
16600build=$build
16601build_os=$build_os
16602
16603# A sed program that does not truncate output.
16604SED=$lt_SED
16605
16606# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16607Xsed="\$SED -e 1s/^X//"
16608
16609# A grep program that handles long lines.
16610GREP=$lt_GREP
16611
16612# An ERE matcher.
16613EGREP=$lt_EGREP
16614
16615# A literal string matcher.
16616FGREP=$lt_FGREP
16617
16618# A BSD- or MS-compatible name lister.
16619NM=$lt_NM
16620
16621# Whether we need soft or hard links.
16622LN_S=$lt_LN_S
16623
16624# What is the maximum length of a command?
16625max_cmd_len=$max_cmd_len
16626
16627# Object file suffix (normally "o").
16628objext=$ac_objext
16629
16630# Executable file suffix (normally "").
16631exeext=$exeext
16632
16633# whether the shell understands "unset".
16634lt_unset=$lt_unset
16635
16636# turn spaces into newlines.
16637SP2NL=$lt_lt_SP2NL
16638
16639# turn newlines into spaces.
16640NL2SP=$lt_lt_NL2SP
16641
16642# An object symbol dumper.
16643OBJDUMP=$lt_OBJDUMP
16644
16645# Method to check whether dependent libraries are shared objects.
16646deplibs_check_method=$lt_deplibs_check_method
16647
16648# Command to use when deplibs_check_method == "file_magic".
16649file_magic_cmd=$lt_file_magic_cmd
16650
16651# The archiver.
16652AR=$lt_AR
16653AR_FLAGS=$lt_AR_FLAGS
16654
16655# A symbol stripping program.
16656STRIP=$lt_STRIP
16657
16658# Commands used to install an old-style archive.
16659RANLIB=$lt_RANLIB
16660old_postinstall_cmds=$lt_old_postinstall_cmds
16661old_postuninstall_cmds=$lt_old_postuninstall_cmds
16662
16663# Whether to use a lock for old archive extraction.
16664lock_old_archive_extraction=$lock_old_archive_extraction
16665
16666# A C compiler.
16667LTCC=$lt_CC
16668
16669# LTCC compiler flags.
16670LTCFLAGS=$lt_CFLAGS
16671
16672# Take the output of nm and produce a listing of raw symbols and C names.
16673global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16674
16675# Transform the output of nm in a proper C declaration.
16676global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16677
16678# Transform the output of nm in a C name address pair.
16679global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16680
16681# Transform the output of nm in a C name address pair when lib prefix is needed.
16682global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16683
16684# The name of the directory that contains temporary libtool files.
16685objdir=$objdir
16686
16687# Used to examine libraries when file_magic_cmd begins with "file".
16688MAGIC_CMD=$MAGIC_CMD
16689
16690# Must we lock files when doing compilation?
16691need_locks=$lt_need_locks
16692
16693# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16694DSYMUTIL=$lt_DSYMUTIL
16695
16696# Tool to change global to local symbols on Mac OS X.
16697NMEDIT=$lt_NMEDIT
16698
16699# Tool to manipulate fat objects and archives on Mac OS X.
16700LIPO=$lt_LIPO
16701
16702# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16703OTOOL=$lt_OTOOL
16704
16705# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16706OTOOL64=$lt_OTOOL64
16707
16708# Old archive suffix (normally "a").
16709libext=$libext
16710
16711# Shared library suffix (normally ".so").
16712shrext_cmds=$lt_shrext_cmds
16713
16714# The commands to extract the exported symbol list from a shared archive.
16715extract_expsyms_cmds=$lt_extract_expsyms_cmds
16716
16717# Variables whose values should be saved in libtool wrapper scripts and
16718# restored at link time.
16719variables_saved_for_relink=$lt_variables_saved_for_relink
16720
16721# Do we need the "lib" prefix for modules?
16722need_lib_prefix=$need_lib_prefix
16723
16724# Do we need a version for libraries?
16725need_version=$need_version
16726
16727# Library versioning type.
16728version_type=$version_type
16729
16730# Shared library runtime path variable.
16731runpath_var=$runpath_var
16732
16733# Shared library path variable.
16734shlibpath_var=$shlibpath_var
16735
16736# Is shlibpath searched before the hard-coded library search path?
16737shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16738
16739# Format of library name prefix.
16740libname_spec=$lt_libname_spec
16741
16742# List of archive names. First name is the real one, the rest are links.
16743# The last name is the one that the linker finds with -lNAME
16744library_names_spec=$lt_library_names_spec
16745
16746# The coded name of the library, if different from the real name.
16747soname_spec=$lt_soname_spec
16748
16749# Permission mode override for installation of shared libraries.
16750install_override_mode=$lt_install_override_mode
16751
16752# Command to use after installation of a shared archive.
16753postinstall_cmds=$lt_postinstall_cmds
16754
16755# Command to use after uninstallation of a shared archive.
16756postuninstall_cmds=$lt_postuninstall_cmds
16757
16758# Commands used to finish a libtool library installation in a directory.
16759finish_cmds=$lt_finish_cmds
16760
16761# As "finish_cmds", except a single script fragment to be evaled but
16762# not shown.
16763finish_eval=$lt_finish_eval
16764
16765# Whether we should hardcode library paths into libraries.
16766hardcode_into_libs=$hardcode_into_libs
16767
16768# Compile-time system search path for libraries.
16769sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16770
16771# Run-time system search path for libraries.
16772sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16773
16774# Whether dlopen is supported.
16775dlopen_support=$enable_dlopen
16776
16777# Whether dlopen of programs is supported.
16778dlopen_self=$enable_dlopen_self
16779
16780# Whether dlopen of statically linked programs is supported.
16781dlopen_self_static=$enable_dlopen_self_static
16782
16783# Commands to strip libraries.
16784old_striplib=$lt_old_striplib
16785striplib=$lt_striplib
16786
16787
16788# The linker used to build libraries.
16789LD=$lt_LD
16790
16791# How to create reloadable object files.
16792reload_flag=$lt_reload_flag
16793reload_cmds=$lt_reload_cmds
16794
16795# Commands used to build an old-style archive.
16796old_archive_cmds=$lt_old_archive_cmds
16797
16798# A language specific compiler.
16799CC=$lt_compiler
16800
16801# Is the compiler the GNU compiler?
16802with_gcc=$GCC
16803
16804# Compiler flag to turn off builtin functions.
16805no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16806
16807# How to pass a linker flag through the compiler.
16808wl=$lt_lt_prog_compiler_wl
16809
16810# Additional compiler flags for building library objects.
16811pic_flag=$lt_lt_prog_compiler_pic
16812
16813# Compiler flag to prevent dynamic linking.
16814link_static_flag=$lt_lt_prog_compiler_static
16815
16816# Does compiler simultaneously support -c and -o options?
16817compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16818
16819# Whether or not to add -lc for building shared libraries.
16820build_libtool_need_lc=$archive_cmds_need_lc
16821
16822# Whether or not to disallow shared libs when runtime libs are static.
16823allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16824
16825# Compiler flag to allow reflexive dlopens.
16826export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16827
16828# Compiler flag to generate shared objects directly from archives.
16829whole_archive_flag_spec=$lt_whole_archive_flag_spec
16830
16831# Whether the compiler copes with passing no objects directly.
16832compiler_needs_object=$lt_compiler_needs_object
16833
16834# Create an old-style archive from a shared archive.
16835old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16836
16837# Create a temporary old-style archive to link instead of a shared archive.
16838old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16839
16840# Commands used to build a shared archive.
16841archive_cmds=$lt_archive_cmds
16842archive_expsym_cmds=$lt_archive_expsym_cmds
16843
16844# Commands used to build a loadable module if different from building
16845# a shared archive.
16846module_cmds=$lt_module_cmds
16847module_expsym_cmds=$lt_module_expsym_cmds
16848
16849# Whether we are building with GNU ld or not.
16850with_gnu_ld=$lt_with_gnu_ld
16851
16852# Flag that allows shared libraries with undefined symbols to be built.
16853allow_undefined_flag=$lt_allow_undefined_flag
16854
16855# Flag that enforces no undefined symbols.
16856no_undefined_flag=$lt_no_undefined_flag
16857
16858# Flag to hardcode \$libdir into a binary during linking.
16859# This must work even if \$libdir does not exist
16860hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16861
16862# If ld is used when linking, flag to hardcode \$libdir into a binary
16863# during linking. This must work even if \$libdir does not exist.
16864hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16865
16866# Whether we need a single "-rpath" flag with a separated argument.
16867hardcode_libdir_separator=$lt_hardcode_libdir_separator
16868
16869# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16870# DIR into the resulting binary.
16871hardcode_direct=$hardcode_direct
16872
16873# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16874# DIR into the resulting binary and the resulting library dependency is
16875# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16876# library is relocated.
16877hardcode_direct_absolute=$hardcode_direct_absolute
16878
16879# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16880# into the resulting binary.
16881hardcode_minus_L=$hardcode_minus_L
16882
16883# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16884# into the resulting binary.
16885hardcode_shlibpath_var=$hardcode_shlibpath_var
16886
16887# Set to "yes" if building a shared library automatically hardcodes DIR
16888# into the library and all subsequent libraries and executables linked
16889# against it.
16890hardcode_automatic=$hardcode_automatic
16891
16892# Set to yes if linker adds runtime paths of dependent libraries
16893# to runtime path list.
16894inherit_rpath=$inherit_rpath
16895
16896# Whether libtool must link a program against all its dependency libraries.
16897link_all_deplibs=$link_all_deplibs
16898
16899# Fix the shell variable \$srcfile for the compiler.
16900fix_srcfile_path=$lt_fix_srcfile_path
16901
16902# Set to "yes" if exported symbols are required.
16903always_export_symbols=$always_export_symbols
16904
16905# The commands to list exported symbols.
16906export_symbols_cmds=$lt_export_symbols_cmds
16907
16908# Symbols that should not be listed in the preloaded symbols.
16909exclude_expsyms=$lt_exclude_expsyms
16910
16911# Symbols that must always be exported.
16912include_expsyms=$lt_include_expsyms
16913
16914# Commands necessary for linking programs (against libraries) with templates.
16915prelink_cmds=$lt_prelink_cmds
16916
16917# Specify filename containing input files.
16918file_list_spec=$lt_file_list_spec
16919
16920# How to hardcode a shared library path into an executable.
16921hardcode_action=$hardcode_action
16922
16923# The directories searched by this compiler when creating a shared library.
16924compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16925
16926# Dependencies to place before and after the objects being linked to
16927# create a shared library.
16928predep_objects=$lt_predep_objects
16929postdep_objects=$lt_postdep_objects
16930predeps=$lt_predeps
16931postdeps=$lt_postdeps
16932
16933# The library search path used internally by the compiler when linking
16934# a shared library.
16935compiler_lib_search_path=$lt_compiler_lib_search_path
16936
16937# ### END LIBTOOL CONFIG
16938
16939_LT_EOF
16940
16941 case $host_os in
16942 aix3*)
16943 cat <<\_LT_EOF >> "$cfgfile"
16944# AIX sometimes has problems with the GCC collect2 program. For some
16945# reason, if we set the COLLECT_NAMES environment variable, the problems
16946# vanish in a puff of smoke.
16947if test "X${COLLECT_NAMES+set}" != Xset; then
16948 COLLECT_NAMES=
16949 export COLLECT_NAMES
16950fi
16951_LT_EOF
16952 ;;
16953 esac
16954
16955
16956ltmain="$ac_aux_dir/ltmain.sh"
16957
16958
16959 # We use sed instead of cat because bash on DJGPP gets confused if
16960 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16961 # text mode, it properly converts lines to CR/LF. This bash problem
16962 # is reportedly fixed, but why not run on old versions too?
16963 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16964 || (rm -f "$cfgfile"; exit 1)
16965
16966 case $xsi_shell in
16967 yes)
16968 cat << \_LT_EOF >> "$cfgfile"
16969
16970# func_dirname file append nondir_replacement
16971# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16972# otherwise set result to NONDIR_REPLACEMENT.
16973func_dirname ()
16974{
16975 case ${1} in
16976 */*) func_dirname_result="${1%/*}${2}" ;;
16977 * ) func_dirname_result="${3}" ;;
16978 esac
16979}
16980
16981# func_basename file
16982func_basename ()
16983{
16984 func_basename_result="${1##*/}"
16985}
16986
16987# func_dirname_and_basename file append nondir_replacement
16988# perform func_basename and func_dirname in a single function
16989# call:
16990# dirname: Compute the dirname of FILE. If nonempty,
16991# add APPEND to the result, otherwise set result
16992# to NONDIR_REPLACEMENT.
16993# value returned in "$func_dirname_result"
16994# basename: Compute filename of FILE.
16995# value retuned in "$func_basename_result"
16996# Implementation must be kept synchronized with func_dirname
16997# and func_basename. For efficiency, we do not delegate to
16998# those functions but instead duplicate the functionality here.
16999func_dirname_and_basename ()
17000{
17001 case ${1} in
17002 */*) func_dirname_result="${1%/*}${2}" ;;
17003 * ) func_dirname_result="${3}" ;;
17004 esac
17005 func_basename_result="${1##*/}"
17006}
17007
17008# func_stripname prefix suffix name
17009# strip PREFIX and SUFFIX off of NAME.
17010# PREFIX and SUFFIX must not contain globbing or regex special
17011# characters, hashes, percent signs, but SUFFIX may contain a leading
17012# dot (in which case that matches only a dot).
17013func_stripname ()
17014{
17015 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17016 # positional parameters, so assign one to ordinary parameter first.
17017 func_stripname_result=${3}
17018 func_stripname_result=${func_stripname_result#"${1}"}
17019 func_stripname_result=${func_stripname_result%"${2}"}
17020}
17021
17022# func_opt_split
17023func_opt_split ()
17024{
17025 func_opt_split_opt=${1%%=*}
17026 func_opt_split_arg=${1#*=}
17027}
17028
17029# func_lo2o object
17030func_lo2o ()
17031{
17032 case ${1} in
17033 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17034 *) func_lo2o_result=${1} ;;
17035 esac
17036}
17037
17038# func_xform libobj-or-source
17039func_xform ()
17040{
17041 func_xform_result=${1%.*}.lo
17042}
17043
17044# func_arith arithmetic-term...
17045func_arith ()
17046{
17047 func_arith_result=$(( $* ))
17048}
17049
17050# func_len string
17051# STRING may not start with a hyphen.
17052func_len ()
17053{
17054 func_len_result=${#1}
17055}
17056
17057_LT_EOF
17058 ;;
17059 *) # Bourne compatible functions.
17060 cat << \_LT_EOF >> "$cfgfile"
17061
17062# func_dirname file append nondir_replacement
17063# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17064# otherwise set result to NONDIR_REPLACEMENT.
17065func_dirname ()
17066{
17067 # Extract subdirectory from the argument.
17068 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17069 if test "X$func_dirname_result" = "X${1}"; then
17070 func_dirname_result="${3}"
17071 else
17072 func_dirname_result="$func_dirname_result${2}"
17073 fi
17074}
17075
17076# func_basename file
17077func_basename ()
17078{
17079 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17080}
17081
17082
17083# func_stripname prefix suffix name
17084# strip PREFIX and SUFFIX off of NAME.
17085# PREFIX and SUFFIX must not contain globbing or regex special
17086# characters, hashes, percent signs, but SUFFIX may contain a leading
17087# dot (in which case that matches only a dot).
17088# func_strip_suffix prefix name
17089func_stripname ()
17090{
17091 case ${2} in
17092 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17093 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17094 esac
17095}
17096
17097# sed scripts:
17098my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17099my_sed_long_arg='1s/^-[^=]*=//'
17100
17101# func_opt_split
17102func_opt_split ()
17103{
17104 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17105 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17106}
17107
17108# func_lo2o object
17109func_lo2o ()
17110{
17111 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17112}
17113
17114# func_xform libobj-or-source
17115func_xform ()
17116{
17117 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17118}
17119
17120# func_arith arithmetic-term...
17121func_arith ()
17122{
17123 func_arith_result=`expr "$@"`
17124}
17125
17126# func_len string
17127# STRING may not start with a hyphen.
17128func_len ()
17129{
17130 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17131}
17132
17133_LT_EOF
17134esac
17135
17136case $lt_shell_append in
17137 yes)
17138 cat << \_LT_EOF >> "$cfgfile"
17139
17140# func_append var value
17141# Append VALUE to the end of shell variable VAR.
17142func_append ()
17143{
17144 eval "$1+=\$2"
17145}
17146_LT_EOF
17147 ;;
17148 *)
17149 cat << \_LT_EOF >> "$cfgfile"
17150
17151# func_append var value
17152# Append VALUE to the end of shell variable VAR.
17153func_append ()
17154{
17155 eval "$1=\$$1\$2"
17156}
17157
17158_LT_EOF
17159 ;;
17160 esac
17161
17162
17163 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17164 || (rm -f "$cfgfile"; exit 1)
17165
17166 mv -f "$cfgfile" "$ofile" ||
17167 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17168 chmod +x "$ofile"
17169
17170
17171 cat <<_LT_EOF >> "$ofile"
17172
17173# ### BEGIN LIBTOOL TAG CONFIG: CXX
17174
17175# The linker used to build libraries.
17176LD=$lt_LD_CXX
17177
17178# How to create reloadable object files.
17179reload_flag=$lt_reload_flag_CXX
17180reload_cmds=$lt_reload_cmds_CXX
17181
17182# Commands used to build an old-style archive.
17183old_archive_cmds=$lt_old_archive_cmds_CXX
17184
17185# A language specific compiler.
17186CC=$lt_compiler_CXX
17187
17188# Is the compiler the GNU compiler?
17189with_gcc=$GCC_CXX
17190
17191# Compiler flag to turn off builtin functions.
17192no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17193
17194# How to pass a linker flag through the compiler.
17195wl=$lt_lt_prog_compiler_wl_CXX
17196
17197# Additional compiler flags for building library objects.
17198pic_flag=$lt_lt_prog_compiler_pic_CXX
17199
17200# Compiler flag to prevent dynamic linking.
17201link_static_flag=$lt_lt_prog_compiler_static_CXX
17202
17203# Does compiler simultaneously support -c and -o options?
17204compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17205
17206# Whether or not to add -lc for building shared libraries.
17207build_libtool_need_lc=$archive_cmds_need_lc_CXX
17208
17209# Whether or not to disallow shared libs when runtime libs are static.
17210allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17211
17212# Compiler flag to allow reflexive dlopens.
17213export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17214
17215# Compiler flag to generate shared objects directly from archives.
17216whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17217
17218# Whether the compiler copes with passing no objects directly.
17219compiler_needs_object=$lt_compiler_needs_object_CXX
17220
17221# Create an old-style archive from a shared archive.
17222old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17223
17224# Create a temporary old-style archive to link instead of a shared archive.
17225old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17226
17227# Commands used to build a shared archive.
17228archive_cmds=$lt_archive_cmds_CXX
17229archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17230
17231# Commands used to build a loadable module if different from building
17232# a shared archive.
17233module_cmds=$lt_module_cmds_CXX
17234module_expsym_cmds=$lt_module_expsym_cmds_CXX
17235
17236# Whether we are building with GNU ld or not.
17237with_gnu_ld=$lt_with_gnu_ld_CXX
17238
17239# Flag that allows shared libraries with undefined symbols to be built.
17240allow_undefined_flag=$lt_allow_undefined_flag_CXX
17241
17242# Flag that enforces no undefined symbols.
17243no_undefined_flag=$lt_no_undefined_flag_CXX
17244
17245# Flag to hardcode \$libdir into a binary during linking.
17246# This must work even if \$libdir does not exist
17247hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17248
17249# If ld is used when linking, flag to hardcode \$libdir into a binary
17250# during linking. This must work even if \$libdir does not exist.
17251hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17252
17253# Whether we need a single "-rpath" flag with a separated argument.
17254hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17255
17256# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17257# DIR into the resulting binary.
17258hardcode_direct=$hardcode_direct_CXX
17259
17260# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17261# DIR into the resulting binary and the resulting library dependency is
17262# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17263# library is relocated.
17264hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17265
17266# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17267# into the resulting binary.
17268hardcode_minus_L=$hardcode_minus_L_CXX
17269
17270# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17271# into the resulting binary.
17272hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17273
17274# Set to "yes" if building a shared library automatically hardcodes DIR
17275# into the library and all subsequent libraries and executables linked
17276# against it.
17277hardcode_automatic=$hardcode_automatic_CXX
17278
17279# Set to yes if linker adds runtime paths of dependent libraries
17280# to runtime path list.
17281inherit_rpath=$inherit_rpath_CXX
17282
17283# Whether libtool must link a program against all its dependency libraries.
17284link_all_deplibs=$link_all_deplibs_CXX
17285
17286# Fix the shell variable \$srcfile for the compiler.
17287fix_srcfile_path=$lt_fix_srcfile_path_CXX
17288
17289# Set to "yes" if exported symbols are required.
17290always_export_symbols=$always_export_symbols_CXX
17291
17292# The commands to list exported symbols.
17293export_symbols_cmds=$lt_export_symbols_cmds_CXX
17294
17295# Symbols that should not be listed in the preloaded symbols.
17296exclude_expsyms=$lt_exclude_expsyms_CXX
17297
17298# Symbols that must always be exported.
17299include_expsyms=$lt_include_expsyms_CXX
17300
17301# Commands necessary for linking programs (against libraries) with templates.
17302prelink_cmds=$lt_prelink_cmds_CXX
17303
17304# Specify filename containing input files.
17305file_list_spec=$lt_file_list_spec_CXX
17306
17307# How to hardcode a shared library path into an executable.
17308hardcode_action=$hardcode_action_CXX
17309
17310# The directories searched by this compiler when creating a shared library.
17311compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17312
17313# Dependencies to place before and after the objects being linked to
17314# create a shared library.
17315predep_objects=$lt_predep_objects_CXX
17316postdep_objects=$lt_postdep_objects_CXX
17317predeps=$lt_predeps_CXX
17318postdeps=$lt_postdeps_CXX
17319
17320# The library search path used internally by the compiler when linking
17321# a shared library.
17322compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17323
17324# ### END LIBTOOL TAG CONFIG: CXX
17325_LT_EOF
17326
17327 ;;
17328
17329 esac
17330done # for ac_tag
17331
17332
17333as_fn_exit 0
17334_ACEOF
17335ac_clean_files=$ac_clean_files_save
17336
17337test $ac_write_fail = 0 ||
17338 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17339
17340
17341# configure is writing to config.log, and then calls config.status.
17342# config.status does its own redirection, appending to config.log.
17343# Unfortunately, on DOS this fails, as config.log is still kept open
17344# by configure, so config.status won't be able to write to it; its
17345# output is simply discarded. So we exec the FD to /dev/null,
17346# effectively closing config.log, so it can be properly (re)opened and
17347# appended to by config.status. When coming back to configure, we
17348# need to make the FD available again.
17349if test "$no_create" != yes; then
17350 ac_cs_success=:
17351 ac_config_status_args=
17352 test "$silent" = yes &&
17353 ac_config_status_args="$ac_config_status_args --quiet"
17354 exec 5>/dev/null
17355 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17356 exec 5>>config.log
17357 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17358 # would make configure fail if this is the last instruction.
17359 $ac_cs_success || as_fn_exit $?
17360fi
17361if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17363$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17364fi
17365