Delete scm-generics.exp.
[deliverable/binutils-gdb.git] / ld / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
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.
252b5132
RH
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
42ecbf5e 14
81ecdfbb
RW
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 :
42ecbf5e
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
42ecbf5e 31fi
42ecbf5e 32
81ecdfbb
RW
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 }
42ecbf5e
DJ
79fi
80
81
81ecdfbb
RW
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
42ecbf5e
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
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
3725885a
RW
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"
81ecdfbb
RW
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
42ecbf5e 192do
81ecdfbb
RW
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."
42ecbf5e 236 else
81ecdfbb
RW
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."
42ecbf5e 241 fi
81ecdfbb
RW
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
42ecbf5e 380
81ecdfbb
RW
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
383 as_expr=expr
384else
385 as_expr=false
386fi
387
81ecdfbb 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
389 as_basename=basename
390else
391 as_basename=false
392fi
393
81ecdfbb
RW
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
42ecbf5e 399
81ecdfbb 400as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
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'`
42ecbf5e 418
42ecbf5e
DJ
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
42ecbf5e 426
81ecdfbb
RW
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 |
42ecbf5e 436 sed '
81ecdfbb
RW
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
42ecbf5e 441 N
81ecdfbb
RW
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42ecbf5e 444 t loop
81ecdfbb 445 s/-\n.*//
42ecbf5e 446 ' >$as_me.lineno &&
81ecdfbb
RW
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; }
42ecbf5e
DJ
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
81ecdfbb
RW
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
42ecbf5e
DJ
454 # Exit status is that of the last command.
455 exit
456}
457
81ecdfbb
RW
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';;
42ecbf5e
DJ
469esac
470
81ecdfbb
RW
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
42ecbf5e 474else
81ecdfbb
RW
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
42ecbf5e 477fi
81ecdfbb
RW
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 480 as_ln_s='ln -s'
81ecdfbb
RW
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'
42ecbf5e 491 fi
42ecbf5e
DJ
492else
493 as_ln_s='cp -p'
494fi
81ecdfbb
RW
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
42ecbf5e
DJ
497
498if mkdir -p . 2>/dev/null; then
81ecdfbb 499 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
81ecdfbb
RW
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
42ecbf5e
DJ
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
d7040cdb
SE
534SHELL=${CONFIG_SHELL-/bin/sh}
535
d7040cdb 536
81ecdfbb
RW
537exec 7<&0 </dev/null 6>&1
538
42ecbf5e
DJ
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`
252b5132 543
42ecbf5e
DJ
544#
545# Initializations.
546#
252b5132 547ac_default_prefix=/usr/local
81ecdfbb 548ac_clean_files=
42ecbf5e 549ac_config_libobj_dir=.
81ecdfbb 550LIBOBJS=
42ecbf5e
DJ
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
42ecbf5e
DJ
555
556# Identity of this package.
557PACKAGE_NAME=
558PACKAGE_TARNAME=
559PACKAGE_VERSION=
560PACKAGE_STRING=
561PACKAGE_BUGREPORT=
81ecdfbb 562PACKAGE_URL=
42ecbf5e
DJ
563
564ac_unique_file="ldmain.c"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
81ecdfbb 568#ifdef HAVE_SYS_TYPES_H
42ecbf5e
DJ
569# include <sys/types.h>
570#endif
81ecdfbb 571#ifdef HAVE_SYS_STAT_H
42ecbf5e
DJ
572# include <sys/stat.h>
573#endif
81ecdfbb 574#ifdef STDC_HEADERS
42ecbf5e
DJ
575# include <stdlib.h>
576# include <stddef.h>
577#else
81ecdfbb 578# ifdef HAVE_STDLIB_H
42ecbf5e
DJ
579# include <stdlib.h>
580# endif
581#endif
81ecdfbb
RW
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
42ecbf5e
DJ
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
81ecdfbb 588#ifdef HAVE_STRINGS_H
42ecbf5e
DJ
589# include <strings.h>
590#endif
81ecdfbb 591#ifdef HAVE_INTTYPES_H
42ecbf5e 592# include <inttypes.h>
42ecbf5e 593#endif
81ecdfbb
RW
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
42ecbf5e
DJ
598# include <unistd.h>
599#endif"
600
81ecdfbb
RW
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
605TESTBFDLIB
606EMULATION_LIBPATH
607LIB_PATH
608EMUL_EXTRA_OFILES
609EMULATION_OFILES
610EMUL
611STRINGIFY
02ecc8e9 612enable_initfini_array
5d3236ee
DK
613ENABLE_PLUGINS_FALSE
614ENABLE_PLUGINS_TRUE
81ecdfbb 615NATIVE_LIB_DIRS
b27caf75 616HOSTING_SLIBS
81ecdfbb 617HOSTING_LIBS
6738cadc 618HOSTING_SCRT0
81ecdfbb
RW
619HOSTING_CRT0
620HDEFINES
621do_compare
622GENINSRC_NEVER_FALSE
623GENINSRC_NEVER_TRUE
81ecdfbb
RW
624LEXLIB
625LEX_OUTPUT_ROOT
626LEX
627YFLAGS
628YACC
629MSGMERGE
630MSGFMT
631MKINSTALLDIRS
632CATOBJEXT
633GENCAT
634INSTOBJEXT
635DATADIRNAME
636CATALOGS
637POSUB
638GMSGFMT
639XGETTEXT
640INCINTL
641LIBINTL_DEP
642LIBINTL
643USE_NLS
3cb62297 644CXXCPP
81ecdfbb
RW
645OTOOL64
646OTOOL
647LIPO
648NMEDIT
649DSYMUTIL
81ecdfbb
RW
650RANLIB
651AR
652OBJDUMP
653LN_S
654NM
655ac_ct_DUMPBIN
656DUMPBIN
657LD
658FGREP
659SED
660LIBTOOL
3cb62297
L
661am__fastdepCXX_FALSE
662am__fastdepCXX_TRUE
663CXXDEPMODE
664ac_ct_CXX
665CXXFLAGS
666CXX
397841b5
AM
667NO_WERROR
668WARN_CFLAGS
81ecdfbb
RW
669EGREP
670GREP
671CPP
4fda8867
NC
672installed_linker
673install_as_default
81ecdfbb
RW
674TARGET_SYSTEM_ROOT_DEFINE
675TARGET_SYSTEM_ROOT
676use_sysroot
64ac50ac
RW
677MAINT
678MAINTAINER_MODE_FALSE
679MAINTAINER_MODE_TRUE
81ecdfbb
RW
680am__fastdepCC_FALSE
681am__fastdepCC_TRUE
682CCDEPMODE
683AMDEPBACKSLASH
684AMDEP_FALSE
685AMDEP_TRUE
686am__quote
687am__include
688DEPDIR
689am__untar
690am__tar
691AMTAR
692am__leading_dot
693SET_MAKE
694AWK
695mkdir_p
696MKDIR_P
697INSTALL_STRIP_PROGRAM
698STRIP
699install_sh
700MAKEINFO
701AUTOHEADER
702AUTOMAKE
703AUTOCONF
704ACLOCAL
705VERSION
706PACKAGE
707CYGPATH_W
708am__isrc
709INSTALL_DATA
710INSTALL_SCRIPT
711INSTALL_PROGRAM
712OBJEXT
713EXEEXT
714ac_ct_CC
715CPPFLAGS
716LDFLAGS
717CFLAGS
718CC
719target_os
720target_vendor
721target_cpu
722target
723host_os
724host_vendor
725host_cpu
726host
727build_os
728build_vendor
729build_cpu
730build
731target_alias
732host_alias
733build_alias
734LIBS
735ECHO_T
736ECHO_N
737ECHO_C
738DEFS
739mandir
740localedir
741libdir
742psdir
743pdfdir
744dvidir
745htmldir
746infodir
747docdir
748oldincludedir
749includedir
750localstatedir
751sharedstatedir
752sysconfdir
753datadir
754datarootdir
755libexecdir
756sbindir
757bindir
758program_transform_name
759prefix
760exec_prefix
761PACKAGE_URL
762PACKAGE_BUGREPORT
763PACKAGE_STRING
764PACKAGE_VERSION
765PACKAGE_TARNAME
766PACKAGE_NAME
767PATH_SEPARATOR
768SHELL'
42ecbf5e 769ac_subst_files='TDIRS'
81ecdfbb
RW
770ac_user_opts='
771enable_option_checking
772enable_dependency_tracking
64ac50ac 773enable_maintainer_mode
81ecdfbb
RW
774with_lib_path
775enable_targets
776enable_64_bit_bfd
777with_sysroot
4fda8867 778enable_gold
81ecdfbb
RW
779enable_got
780enable_werror
781enable_build_warnings
da2f07f1 782enable_plugins
81ecdfbb
RW
783enable_largefile
784enable_shared
785enable_static
786with_pic
787enable_fast_install
788with_gnu_ld
789enable_libtool_lock
790enable_nls
02ecc8e9 791enable_initfini_array
52546677 792with_zlib
81ecdfbb
RW
793'
794 ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800LIBS
801CPPFLAGS
802CPP
3cb62297
L
803CXX
804CXXFLAGS
805CCC
806CXXCPP
81ecdfbb
RW
807YACC
808YFLAGS'
809
252b5132
RH
810
811# Initialize some variables set by options.
42ecbf5e
DJ
812ac_init_help=
813ac_init_version=false
81ecdfbb
RW
814ac_unrecognized_opts=
815ac_unrecognized_sep=
252b5132
RH
816# The variables have the same names as the options, with
817# dashes changed to underlines.
42ecbf5e 818cache_file=/dev/null
252b5132 819exec_prefix=NONE
252b5132 820no_create=
252b5132
RH
821no_recursion=
822prefix=NONE
823program_prefix=NONE
824program_suffix=NONE
825program_transform_name=s,x,x,
826silent=
827site=
828srcdir=
252b5132
RH
829verbose=
830x_includes=NONE
831x_libraries=NONE
42ecbf5e
DJ
832
833# Installation directory options.
834# These are left unexpanded so users can "make install exec_prefix=/foo"
835# and all the variables that are supposed to be based on exec_prefix
836# by default will actually change.
837# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 838# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
839bindir='${exec_prefix}/bin'
840sbindir='${exec_prefix}/sbin'
841libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
842datarootdir='${prefix}/share'
843datadir='${datarootdir}'
252b5132
RH
844sysconfdir='${prefix}/etc'
845sharedstatedir='${prefix}/com'
846localstatedir='${prefix}/var'
252b5132
RH
847includedir='${prefix}/include'
848oldincludedir='/usr/include'
81ecdfbb
RW
849docdir='${datarootdir}/doc/${PACKAGE}'
850infodir='${datarootdir}/info'
851htmldir='${docdir}'
852dvidir='${docdir}'
853pdfdir='${docdir}'
854psdir='${docdir}'
855libdir='${exec_prefix}/lib'
856localedir='${datarootdir}/locale'
857mandir='${datarootdir}/man'
252b5132 858
252b5132 859ac_prev=
81ecdfbb 860ac_dashdash=
252b5132
RH
861for ac_option
862do
252b5132
RH
863 # If the previous option needs an argument, assign it.
864 if test -n "$ac_prev"; then
81ecdfbb 865 eval $ac_prev=\$ac_option
252b5132
RH
866 ac_prev=
867 continue
868 fi
869
81ecdfbb
RW
870 case $ac_option in
871 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872 *) ac_optarg=yes ;;
873 esac
252b5132
RH
874
875 # Accept the important Cygnus configure options, so we can diagnose typos.
876
81ecdfbb
RW
877 case $ac_dashdash$ac_option in
878 --)
879 ac_dashdash=yes ;;
252b5132
RH
880
881 -bindir | --bindir | --bindi | --bind | --bin | --bi)
882 ac_prev=bindir ;;
883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 884 bindir=$ac_optarg ;;
252b5132
RH
885
886 -build | --build | --buil | --bui | --bu)
42ecbf5e 887 ac_prev=build_alias ;;
252b5132 888 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 889 build_alias=$ac_optarg ;;
252b5132
RH
890
891 -cache-file | --cache-file | --cache-fil | --cache-fi \
892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893 ac_prev=cache_file ;;
894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
896 cache_file=$ac_optarg ;;
897
898 --config-cache | -C)
899 cache_file=config.cache ;;
252b5132 900
81ecdfbb 901 -datadir | --datadir | --datadi | --datad)
252b5132 902 ac_prev=datadir ;;
81ecdfbb 903 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 904 datadir=$ac_optarg ;;
252b5132 905
81ecdfbb
RW
906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907 | --dataroo | --dataro | --datar)
908 ac_prev=datarootdir ;;
909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911 datarootdir=$ac_optarg ;;
912
252b5132 913 -disable-* | --disable-*)
81ecdfbb 914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 915 # Reject names that are not valid shell variable names.
81ecdfbb
RW
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error "invalid feature name: $ac_useropt"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
921 *"
922"enable_$ac_useropt"
923"*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=no ;;
928
929 -docdir | --docdir | --docdi | --doc | --do)
930 ac_prev=docdir ;;
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 docdir=$ac_optarg ;;
933
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 ac_prev=dvidir ;;
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 dvidir=$ac_optarg ;;
252b5132
RH
938
939 -enable-* | --enable-*)
81ecdfbb 940 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 941 # Reject names that are not valid shell variable names.
81ecdfbb
RW
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948"enable_$ac_useropt"
949"*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
252b5132 952 esac
81ecdfbb 953 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
954
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
42ecbf5e 962 exec_prefix=$ac_optarg ;;
252b5132
RH
963
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
966 with_gas=yes ;;
967
42ecbf5e
DJ
968 -help | --help | --hel | --he | -h)
969 ac_init_help=long ;;
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
252b5132
RH
974
975 -host | --host | --hos | --ho)
42ecbf5e 976 ac_prev=host_alias ;;
252b5132 977 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 978 host_alias=$ac_optarg ;;
252b5132 979
81ecdfbb
RW
980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 ac_prev=htmldir ;;
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 | --ht=*)
984 htmldir=$ac_optarg ;;
985
252b5132
RH
986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 991 includedir=$ac_optarg ;;
252b5132
RH
992
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 ac_prev=infodir ;;
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 996 infodir=$ac_optarg ;;
252b5132
RH
997
998 -libdir | --libdir | --libdi | --libd)
999 ac_prev=libdir ;;
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 1001 libdir=$ac_optarg ;;
252b5132
RH
1002
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 1008 libexecdir=$ac_optarg ;;
252b5132 1009
81ecdfbb
RW
1010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1014
252b5132 1015 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1016 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1020 localstatedir=$ac_optarg ;;
252b5132
RH
1021
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 ac_prev=mandir ;;
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1025 mandir=$ac_optarg ;;
252b5132
RH
1026
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1029 with_fp=no ;;
1030
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1032 | --no-cr | --no-c | -n)
252b5132
RH
1033 no_create=yes ;;
1034
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 no_recursion=yes ;;
1038
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1046 oldincludedir=$ac_optarg ;;
252b5132
RH
1047
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 ac_prev=prefix ;;
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1051 prefix=$ac_optarg ;;
252b5132
RH
1052
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1058 program_prefix=$ac_optarg ;;
252b5132
RH
1059
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1065 program_suffix=$ac_optarg ;;
252b5132
RH
1066
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev=program_transform_name ;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1082 program_transform_name=$ac_optarg ;;
252b5132 1083
81ecdfbb
RW
1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 ac_prev=pdfdir ;;
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1088
1089 -psdir | --psdir | --psdi | --psd | --ps)
1090 ac_prev=psdir ;;
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 psdir=$ac_optarg ;;
1093
252b5132
RH
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1096 silent=yes ;;
1097
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 ac_prev=sbindir ;;
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 | --sbi=* | --sb=*)
42ecbf5e 1102 sbindir=$ac_optarg ;;
252b5132
RH
1103
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1107 | --sha | --sh)
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 | --sha=* | --sh=*)
42ecbf5e 1113 sharedstatedir=$ac_optarg ;;
252b5132
RH
1114
1115 -site | --site | --sit)
1116 ac_prev=site ;;
1117 -site=* | --site=* | --sit=*)
42ecbf5e 1118 site=$ac_optarg ;;
85fbca6a 1119
252b5132
RH
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 ac_prev=srcdir ;;
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1123 srcdir=$ac_optarg ;;
252b5132
RH
1124
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1130 sysconfdir=$ac_optarg ;;
252b5132
RH
1131
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1133 ac_prev=target_alias ;;
252b5132 1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1135 target_alias=$ac_optarg ;;
252b5132
RH
1136
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 verbose=yes ;;
1139
42ecbf5e
DJ
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
252b5132
RH
1142
1143 -with-* | --with-*)
81ecdfbb 1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1145 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error "invalid package name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1151 *"
1152"with_$ac_useropt"
1153"*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
252b5132 1156 esac
81ecdfbb 1157 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1158
1159 -without-* | --without-*)
81ecdfbb 1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1161 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error "invalid package name: $ac_useropt"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1167 *"
1168"with_$ac_useropt"
1169"*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=no ;;
252b5132
RH
1174
1175 --x)
1176 # Obsolete; use --with-x.
1177 with_x=yes ;;
1178
1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180 | --x-incl | --x-inc | --x-in | --x-i)
1181 ac_prev=x_includes ;;
1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1184 x_includes=$ac_optarg ;;
252b5132
RH
1185
1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188 ac_prev=x_libraries ;;
1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1191 x_libraries=$ac_optarg ;;
252b5132 1192
81ecdfbb
RW
1193 -*) as_fn_error "unrecognized option: \`$ac_option'
1194Try \`$0 --help' for more information."
252b5132
RH
1195 ;;
1196
42ecbf5e
DJ
1197 *=*)
1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1200 case $ac_envvar in #(
1201 '' | [0-9]* | *[!_$as_cr_alnum]* )
1202 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1203 esac
1204 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1205 export $ac_envvar ;;
1206
252b5132 1207 *)
42ecbf5e 1208 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1209 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1211 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
42ecbf5e 1212 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1213 ;;
1214
1215 esac
1216done
1217
1218if test -n "$ac_prev"; then
42ecbf5e 1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1220 as_fn_error "missing argument to $ac_option"
252b5132 1221fi
252b5132 1222
81ecdfbb
RW
1223if test -n "$ac_unrecognized_opts"; then
1224 case $enable_option_checking in
1225 no) ;;
1226 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1227 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1228 esac
81ecdfbb 1229fi
252b5132 1230
81ecdfbb
RW
1231# Check all directory arguments for consistency.
1232for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir
252b5132 1236do
81ecdfbb
RW
1237 eval ac_val=\$$ac_var
1238 # Remove trailing slashes.
1239 case $ac_val in
1240 */ )
1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242 eval $ac_var=\$ac_val;;
1243 esac
1244 # Be sure to have absolute directory names.
42ecbf5e 1245 case $ac_val in
81ecdfbb
RW
1246 [\\/$]* | ?:[\\/]* ) continue;;
1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1248 esac
81ecdfbb 1249 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1250done
1251
42ecbf5e
DJ
1252# There might be people who depend on the old broken behavior: `$host'
1253# used to hold the argument of --host etc.
1254# FIXME: To remove some day.
1255build=$build_alias
1256host=$host_alias
1257target=$target_alias
1258
1259# FIXME: To remove some day.
1260if test "x$host_alias" != x; then
1261 if test "x$build_alias" = x; then
1262 cross_compiling=maybe
81ecdfbb 1263 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
42ecbf5e
DJ
1264 If a cross compiler is detected then cross compile mode will be used." >&2
1265 elif test "x$build_alias" != "x$host_alias"; then
1266 cross_compiling=yes
1267 fi
1268fi
e5a52504 1269
42ecbf5e
DJ
1270ac_tool_prefix=
1271test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272
1273test "$silent" = yes && exec 6>/dev/null
252b5132 1274
252b5132 1275
81ecdfbb
RW
1276ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277ac_ls_di=`ls -di .` &&
1278ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279 as_fn_error "working directory cannot be determined"
1280test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281 as_fn_error "pwd does not report name of working directory"
1282
1283
252b5132
RH
1284# Find the source files, if location was not specified.
1285if test -z "$srcdir"; then
1286 ac_srcdir_defaulted=yes
81ecdfbb
RW
1287 # Try the directory containing this script, then the parent directory.
1288 ac_confdir=`$as_dirname -- "$as_myself" ||
1289$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290 X"$as_myself" : 'X\(//\)[^/]' \| \
1291 X"$as_myself" : 'X\(//\)$' \| \
1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293$as_echo X"$as_myself" |
1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\/\)[^/].*/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\/\)$/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\).*/{
1307 s//\1/
1308 q
1309 }
1310 s/.*/./; q'`
252b5132 1311 srcdir=$ac_confdir
81ecdfbb 1312 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1313 srcdir=..
1314 fi
1315else
1316 ac_srcdir_defaulted=no
1317fi
81ecdfbb
RW
1318if test ! -r "$srcdir/$ac_unique_file"; then
1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1321fi
1322ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323ac_abs_confdir=`(
1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1325 pwd)`
1326# When building in place, set srcdir=.
1327if test "$ac_abs_confdir" = "$ac_pwd"; then
1328 srcdir=.
1329fi
1330# Remove unnecessary trailing slashes from srcdir.
1331# Double slashes in file names in object file debugging info
1332# mess up M-x gdb in Emacs.
1333case $srcdir in
1334*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335esac
1336for ac_var in $ac_precious_vars; do
1337 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_env_${ac_var}_value=\$${ac_var}
1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341done
252b5132 1342
42ecbf5e
DJ
1343#
1344# Report the --help message.
1345#
1346if test "$ac_init_help" = "long"; then
1347 # Omit some internal or obsolete options to make the list less imposing.
1348 # This message is too long to be a string in the A/UX 3.1 sh.
1349 cat <<_ACEOF
1350\`configure' configures this package to adapt to many kinds of systems.
252b5132 1351
42ecbf5e 1352Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1353
42ecbf5e
DJ
1354To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1356
42ecbf5e 1357Defaults for the options are specified in brackets.
ac48eca1 1358
42ecbf5e
DJ
1359Configuration:
1360 -h, --help display this help and exit
1361 --help=short display options specific to this package
1362 --help=recursive display the short help of all the included packages
1363 -V, --version display version information and exit
1364 -q, --quiet, --silent do not print \`checking...' messages
1365 --cache-file=FILE cache test results in FILE [disabled]
1366 -C, --config-cache alias for \`--cache-file=config.cache'
1367 -n, --no-create do not create output files
1368 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1369
42ecbf5e
DJ
1370Installation directories:
1371 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1372 [$ac_default_prefix]
42ecbf5e 1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1374 [PREFIX]
ac48eca1 1375
42ecbf5e
DJ
1376By default, \`make install' will install all the files in
1377\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1378an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379for instance \`--prefix=\$HOME'.
ac48eca1 1380
42ecbf5e 1381For better control, use the options below.
ac48eca1 1382
42ecbf5e 1383Fine tuning of the installation directories:
81ecdfbb
RW
1384 --bindir=DIR user executables [EPREFIX/bin]
1385 --sbindir=DIR system admin executables [EPREFIX/sbin]
1386 --libexecdir=DIR program executables [EPREFIX/libexec]
1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1390 --libdir=DIR object code libraries [EPREFIX/lib]
1391 --includedir=DIR C header files [PREFIX/include]
1392 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1393 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1394 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1395 --infodir=DIR info documentation [DATAROOTDIR/info]
1396 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1397 --mandir=DIR man documentation [DATAROOTDIR/man]
1398 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1399 --htmldir=DIR html documentation [DOCDIR]
1400 --dvidir=DIR dvi documentation [DOCDIR]
1401 --pdfdir=DIR pdf documentation [DOCDIR]
1402 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1403_ACEOF
ac48eca1 1404
42ecbf5e 1405 cat <<\_ACEOF
252b5132 1406
42ecbf5e
DJ
1407Program names:
1408 --program-prefix=PREFIX prepend PREFIX to installed program names
1409 --program-suffix=SUFFIX append SUFFIX to installed program names
1410 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1411
42ecbf5e
DJ
1412System types:
1413 --build=BUILD configure for building on BUILD [guessed]
1414 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1415 --target=TARGET configure for building compilers for TARGET [HOST]
1416_ACEOF
252b5132 1417fi
252b5132 1418
42ecbf5e 1419if test -n "$ac_init_help"; then
252b5132 1420
42ecbf5e 1421 cat <<\_ACEOF
e5a52504 1422
42ecbf5e 1423Optional Features:
81ecdfbb 1424 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1427 --disable-dependency-tracking speeds up one-time build
1428 --enable-dependency-tracking do not reject slow dependency extractors
64ac50ac
RW
1429 --enable-maintainer-mode enable make rules and dependencies not useful
1430 (and sometimes confusing) to the casual installer
ce2cded5
L
1431 --enable-targets alternative target configurations
1432 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
c7791212 1433 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7fb9f789
NC
1434 --enable-got=<type> GOT handling scheme (target, single, negative,
1435 multigot)
ce2cded5
L
1436 --enable-werror treat compile warnings as errors
1437 --enable-build-warnings enable build-time compiler warnings
da2f07f1 1438 --enable-plugins Enable support for plugins (defaults no)
d053aef8 1439 --disable-largefile omit support for large files
81ecdfbb
RW
1440 --enable-shared[=PKGS] build shared libraries [default=yes]
1441 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1442 --enable-fast-install[=PKGS]
1443 optimize for fast installation [default=yes]
42ecbf5e 1444 --disable-libtool-lock avoid locking (might break parallel builds)
42ecbf5e 1445 --disable-nls do not use Native Language Support
02ecc8e9 1446 --enable-initfini-array use .init_array/.fini_array sections
42ecbf5e
DJ
1447
1448Optional Packages:
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
ce2cded5
L
1451 --with-lib-path=dir1:dir2... set default LIB_PATH
1452 --with-sysroot=DIR Search for usr/lib et al within DIR.
d7040cdb
SE
1453 --with-pic try to use only PIC/non-PIC objects [default=use
1454 both]
1455 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
52546677 1456 --with-zlib include zlib support (auto/yes/no) default=auto
42ecbf5e
DJ
1457
1458Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
81ecdfbb
RW
1463 LIBS libraries to pass to the linker, e.g. -l<library>
1464 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1465 you have headers in a nonstandard directory <include dir>
42ecbf5e 1466 CPP C preprocessor
3cb62297
L
1467 CXX C++ compiler command
1468 CXXFLAGS C++ compiler flags
1469 CXXCPP C++ preprocessor
81ecdfbb
RW
1470 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1471 the first program found out of: `bison -y', `byacc', `yacc'.
1472 YFLAGS The list of arguments that will be passed by default to $YACC.
1473 This script will default YFLAGS to the empty string to avoid a
1474 default value of `-d' given by some make applications.
42ecbf5e
DJ
1475
1476Use these variables to override the choices made by `configure' or to help
1477it to find libraries and programs with nonstandard names/locations.
1478
81ecdfbb 1479Report bugs to the package provider.
42ecbf5e 1480_ACEOF
81ecdfbb 1481ac_status=$?
42ecbf5e
DJ
1482fi
1483
1484if test "$ac_init_help" = "recursive"; then
1485 # If there are subdirs, report their specific --help.
42ecbf5e 1486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1487 test -d "$ac_dir" ||
1488 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489 continue
42ecbf5e
DJ
1490 ac_builddir=.
1491
81ecdfbb
RW
1492case "$ac_dir" in
1493.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494*)
1495 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;;
1502esac
1503ac_abs_top_builddir=$ac_pwd
1504ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505# for backward compatibility:
1506ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
1507
1508case $srcdir in
81ecdfbb 1509 .) # We are building in place.
42ecbf5e 1510 ac_srcdir=.
81ecdfbb
RW
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1514 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1517 *) # Relative name.
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 1521esac
81ecdfbb
RW
1522ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1532 else
81ecdfbb
RW
1533 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 fi || ac_status=$?
1535 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e 1536 done
a2d91340
AC
1537fi
1538
81ecdfbb 1539test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1540if $ac_init_version; then
1541 cat <<\_ACEOF
81ecdfbb
RW
1542configure
1543generated by GNU Autoconf 2.64
a2d91340 1544
81ecdfbb 1545Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
1546This configure script is free software; the Free Software Foundation
1547gives unlimited permission to copy, distribute and modify it.
1548_ACEOF
81ecdfbb 1549 exit
42ecbf5e 1550fi
a2d91340 1551
81ecdfbb
RW
1552## ------------------------ ##
1553## Autoconf initialization. ##
1554## ------------------------ ##
a2d91340 1555
81ecdfbb
RW
1556# ac_fn_c_try_compile LINENO
1557# --------------------------
1558# Try to compile conftest.$ac_ext, and return whether this succeeded.
1559ac_fn_c_try_compile ()
1560{
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 rm -f conftest.$ac_objext
1563 if { { ac_try="$ac_compile"
1564case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567esac
1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569$as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_compile") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1576 fi
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 } && test -s conftest.$ac_objext; then :
1582 ac_retval=0
1583else
1584 $as_echo "$as_me: failed program was:" >&5
1585sed 's/^/| /' conftest.$ac_ext >&5
a2d91340 1586
81ecdfbb
RW
1587 ac_retval=1
1588fi
1589 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1590 return $ac_retval
1591
1592} # ac_fn_c_try_compile
1593
1594# ac_fn_c_try_link LINENO
1595# -----------------------
1596# Try to link conftest.$ac_ext, and return whether this succeeded.
1597ac_fn_c_try_link ()
42ecbf5e 1598{
81ecdfbb
RW
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext conftest$ac_exeext
1601 if { { ac_try="$ac_link"
1602case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605esac
1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607$as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_link") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest$ac_exeext && {
1620 test "$cross_compiling" = yes ||
1621 $as_test_x conftest$ac_exeext
1622 }; then :
1623 ac_retval=0
1624else
1625 $as_echo "$as_me: failed program was:" >&5
1626sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1627
81ecdfbb
RW
1628 ac_retval=1
1629fi
1630 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1631 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1632 # interfere with the next link command; also delete a directory that is
1633 # left behind by Apple's compiler. We do this before executing the actions.
1634 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1635 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1636 return $ac_retval
42ecbf5e 1637
81ecdfbb 1638} # ac_fn_c_try_link
42ecbf5e 1639
81ecdfbb
RW
1640# ac_fn_c_try_cpp LINENO
1641# ----------------------
1642# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1643ac_fn_c_try_cpp ()
1644{
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 if { { ac_try="$ac_cpp conftest.$ac_ext"
1647case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1650esac
1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652$as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1654 ac_status=$?
1655 if test -s conftest.err; then
1656 grep -v '^ *+' conftest.err >conftest.er1
1657 cat conftest.er1 >&5
1658 mv -f conftest.er1 conftest.err
1659 fi
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } >/dev/null && {
1662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1663 test ! -s conftest.err
1664 }; then :
1665 ac_retval=0
1666else
1667 $as_echo "$as_me: failed program was:" >&5
1668sed 's/^/| /' conftest.$ac_ext >&5
1669
1670 ac_retval=1
1671fi
1672 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1673 return $ac_retval
1674
1675} # ac_fn_c_try_cpp
1676
3cb62297
L
1677# ac_fn_cxx_try_compile LINENO
1678# ----------------------------
1679# Try to compile conftest.$ac_ext, and return whether this succeeded.
1680ac_fn_cxx_try_compile ()
1681{
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 rm -f conftest.$ac_objext
1684 if { { ac_try="$ac_compile"
1685case "(($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_compile") 2>conftest.err
1692 ac_status=$?
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1697 fi
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && {
1700 test -z "$ac_cxx_werror_flag" ||
1701 test ! -s conftest.err
1702 } && test -s conftest.$ac_objext; then :
1703 ac_retval=0
1704else
1705 $as_echo "$as_me: failed program was:" >&5
1706sed 's/^/| /' conftest.$ac_ext >&5
1707
1708 ac_retval=1
1709fi
1710 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1711 return $ac_retval
1712
1713} # ac_fn_cxx_try_compile
1714
81ecdfbb
RW
1715# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1716# -------------------------------------------------------
1717# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1718# the include files in INCLUDES and setting the cache variable VAR
1719# accordingly.
1720ac_fn_c_check_header_mongrel ()
1721{
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725$as_echo_n "checking for $2... " >&6; }
1726if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1727 $as_echo_n "(cached) " >&6
1728fi
1729eval ac_res=\$$3
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731$as_echo "$ac_res" >&6; }
1732else
1733 # Is the header compilable?
1734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1735$as_echo_n "checking $2 usability... " >&6; }
1736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737/* end confdefs.h. */
1738$4
1739#include <$2>
1740_ACEOF
1741if ac_fn_c_try_compile "$LINENO"; then :
1742 ac_header_compiler=yes
1743else
1744 ac_header_compiler=no
1745fi
1746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1748$as_echo "$ac_header_compiler" >&6; }
1749
1750# Is the header present?
1751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1752$as_echo_n "checking $2 presence... " >&6; }
1753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h. */
1755#include <$2>
1756_ACEOF
1757if ac_fn_c_try_cpp "$LINENO"; then :
1758 ac_header_preproc=yes
1759else
1760 ac_header_preproc=no
1761fi
1762rm -f conftest.err conftest.$ac_ext
1763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1764$as_echo "$ac_header_preproc" >&6; }
1765
1766# So? What about this header?
1767case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1768 yes:no: )
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1770$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1772$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1773 ;;
1774 no:yes:* )
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1776$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1778$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1780$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1782$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1784$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1785 ;;
1786esac
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788$as_echo_n "checking for $2... " >&6; }
1789if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1790 $as_echo_n "(cached) " >&6
1791else
1792 eval "$3=\$ac_header_compiler"
1793fi
1794eval ac_res=\$$3
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796$as_echo "$ac_res" >&6; }
1797fi
1798 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1799
1800} # ac_fn_c_check_header_mongrel
1801
1802# ac_fn_c_try_run LINENO
1803# ----------------------
1804# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1805# that executables *can* be run.
1806ac_fn_c_try_run ()
1807{
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 if { { ac_try="$ac_link"
1810case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813esac
1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815$as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_link") 2>&5
1817 ac_status=$?
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1820 { { case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823esac
1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825$as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_try") 2>&5
1827 ac_status=$?
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; }; }; then :
1830 ac_retval=0
1831else
1832 $as_echo "$as_me: program exited with status $ac_status" >&5
1833 $as_echo "$as_me: failed program was:" >&5
1834sed 's/^/| /' conftest.$ac_ext >&5
1835
1836 ac_retval=$ac_status
1837fi
1838 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1839 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840 return $ac_retval
1841
1842} # ac_fn_c_try_run
1843
1844# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1845# -------------------------------------------------------
1846# Tests whether HEADER exists and can be compiled using the include files in
1847# INCLUDES, setting the cache variable VAR accordingly.
1848ac_fn_c_check_header_compile ()
1849{
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852$as_echo_n "checking for $2... " >&6; }
1853if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1854 $as_echo_n "(cached) " >&6
1855else
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857/* end confdefs.h. */
1858$4
1859#include <$2>
1860_ACEOF
1861if ac_fn_c_try_compile "$LINENO"; then :
1862 eval "$3=yes"
1863else
1864 eval "$3=no"
1865fi
1866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1867fi
1868eval ac_res=\$$3
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870$as_echo "$ac_res" >&6; }
1871 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1872
1873} # ac_fn_c_check_header_compile
1874
1875# ac_fn_c_check_func LINENO FUNC VAR
1876# ----------------------------------
1877# Tests whether FUNC exists, setting the cache variable VAR accordingly
1878ac_fn_c_check_func ()
1879{
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882$as_echo_n "checking for $2... " >&6; }
1883if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1884 $as_echo_n "(cached) " >&6
1885else
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887/* end confdefs.h. */
1888/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1890#define $2 innocuous_$2
1891
1892/* System header to define __stub macros and hopefully few prototypes,
1893 which can conflict with char $2 (); below.
1894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1895 <limits.h> exists even on freestanding compilers. */
1896
1897#ifdef __STDC__
1898# include <limits.h>
1899#else
1900# include <assert.h>
1901#endif
1902
1903#undef $2
1904
1905/* Override any GCC internal prototype to avoid an error.
1906 Use char because int might match the return type of a GCC
1907 builtin and then its argument prototype would still apply. */
1908#ifdef __cplusplus
1909extern "C"
1910#endif
1911char $2 ();
1912/* The GNU C library defines this for functions which it implements
1913 to always fail with ENOSYS. Some functions are actually named
1914 something starting with __ and the normal name is an alias. */
1915#if defined __stub_$2 || defined __stub___$2
1916choke me
1917#endif
1918
1919int
1920main ()
1921{
1922return $2 ();
1923 ;
1924 return 0;
1925}
1926_ACEOF
1927if ac_fn_c_try_link "$LINENO"; then :
1928 eval "$3=yes"
1929else
1930 eval "$3=no"
1931fi
1932rm -f core conftest.err conftest.$ac_objext \
1933 conftest$ac_exeext conftest.$ac_ext
1934fi
1935eval ac_res=\$$3
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937$as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1939
1940} # ac_fn_c_check_func
1941
3cb62297
L
1942# ac_fn_cxx_try_cpp LINENO
1943# ------------------------
1944# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1945ac_fn_cxx_try_cpp ()
1946{
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 if { { ac_try="$ac_cpp conftest.$ac_ext"
1949case "(($ac_try" in
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1952esac
1953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954$as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1956 ac_status=$?
1957 if test -s conftest.err; then
1958 grep -v '^ *+' conftest.err >conftest.er1
1959 cat conftest.er1 >&5
1960 mv -f conftest.er1 conftest.err
1961 fi
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; } >/dev/null && {
1964 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1965 test ! -s conftest.err
1966 }; then :
1967 ac_retval=0
1968else
1969 $as_echo "$as_me: failed program was:" >&5
1970sed 's/^/| /' conftest.$ac_ext >&5
1971
1972 ac_retval=1
1973fi
1974 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1975 return $ac_retval
1976
1977} # ac_fn_cxx_try_cpp
1978
1979# ac_fn_cxx_try_link LINENO
1980# -------------------------
1981# Try to link conftest.$ac_ext, and return whether this succeeded.
1982ac_fn_cxx_try_link ()
1983{
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 rm -f conftest.$ac_objext conftest$ac_exeext
1986 if { { ac_try="$ac_link"
1987case "(($ac_try" in
1988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989 *) ac_try_echo=$ac_try;;
1990esac
1991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992$as_echo "$ac_try_echo"; } >&5
1993 (eval "$ac_link") 2>conftest.err
1994 ac_status=$?
1995 if test -s conftest.err; then
1996 grep -v '^ *+' conftest.err >conftest.er1
1997 cat conftest.er1 >&5
1998 mv -f conftest.er1 conftest.err
1999 fi
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; } && {
2002 test -z "$ac_cxx_werror_flag" ||
2003 test ! -s conftest.err
2004 } && test -s conftest$ac_exeext && {
2005 test "$cross_compiling" = yes ||
2006 $as_test_x conftest$ac_exeext
2007 }; then :
2008 ac_retval=0
2009else
2010 $as_echo "$as_me: failed program was:" >&5
2011sed 's/^/| /' conftest.$ac_ext >&5
2012
2013 ac_retval=1
2014fi
2015 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2016 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2017 # interfere with the next link command; also delete a directory that is
2018 # left behind by Apple's compiler. We do this before executing the actions.
2019 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2021 return $ac_retval
2022
2023} # ac_fn_cxx_try_link
2024
81ecdfbb
RW
2025# ac_fn_c_check_decl LINENO SYMBOL VAR
2026# ------------------------------------
2027# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2028ac_fn_c_check_decl ()
2029{
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
2031 as_decl_name=`echo $2|sed 's/ *(.*//'`
2032 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2034$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
2035if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2036 $as_echo_n "(cached) " >&6
2037else
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039/* end confdefs.h. */
2040$4
2041int
2042main ()
2043{
360cfc9c
AM
2044#ifndef $as_decl_name
2045#ifdef __cplusplus
2046 (void) $as_decl_use;
2047#else
2048 (void) $as_decl_name;
2049#endif
81ecdfbb
RW
2050#endif
2051
2052 ;
2053 return 0;
2054}
2055_ACEOF
2056if ac_fn_c_try_compile "$LINENO"; then :
2057 eval "$3=yes"
2058else
2059 eval "$3=no"
2060fi
2061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062fi
2063eval ac_res=\$$3
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065$as_echo "$ac_res" >&6; }
2066 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2067
2068} # ac_fn_c_check_decl
2069
2070# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2071# --------------------------------------------
2072# Tries to find the compile-time value of EXPR in a program that includes
2073# INCLUDES, setting VAR accordingly. Returns whether the value could be
2074# computed
2075ac_fn_c_compute_int ()
2076{
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 if test "$cross_compiling" = yes; then
2079 # Depending upon the size, compute the lo and hi bounds.
2080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081/* end confdefs.h. */
2082$4
2083int
2084main ()
2085{
2086static int test_array [1 - 2 * !(($2) >= 0)];
2087test_array [0] = 0
2088
2089 ;
2090 return 0;
2091}
2092_ACEOF
2093if ac_fn_c_try_compile "$LINENO"; then :
2094 ac_lo=0 ac_mid=0
2095 while :; do
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097/* end confdefs.h. */
2098$4
2099int
2100main ()
2101{
2102static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2103test_array [0] = 0
2104
2105 ;
2106 return 0;
2107}
2108_ACEOF
2109if ac_fn_c_try_compile "$LINENO"; then :
2110 ac_hi=$ac_mid; break
2111else
2112 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2113 if test $ac_lo -le $ac_mid; then
2114 ac_lo= ac_hi=
2115 break
2116 fi
2117 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2118fi
2119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 done
2121else
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123/* end confdefs.h. */
2124$4
2125int
2126main ()
2127{
2128static int test_array [1 - 2 * !(($2) < 0)];
2129test_array [0] = 0
2130
2131 ;
2132 return 0;
2133}
2134_ACEOF
2135if ac_fn_c_try_compile "$LINENO"; then :
2136 ac_hi=-1 ac_mid=-1
2137 while :; do
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139/* end confdefs.h. */
2140$4
2141int
2142main ()
2143{
2144static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2145test_array [0] = 0
2146
2147 ;
2148 return 0;
2149}
2150_ACEOF
2151if ac_fn_c_try_compile "$LINENO"; then :
2152 ac_lo=$ac_mid; break
2153else
2154 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2155 if test $ac_mid -le $ac_hi; then
2156 ac_lo= ac_hi=
2157 break
2158 fi
2159 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2160fi
2161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 done
2163else
2164 ac_lo= ac_hi=
2165fi
2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167fi
2168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169# Binary search between lo and hi bounds.
2170while test "x$ac_lo" != "x$ac_hi"; do
2171 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173/* end confdefs.h. */
2174$4
2175int
2176main ()
2177{
2178static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2179test_array [0] = 0
2180
2181 ;
2182 return 0;
2183}
2184_ACEOF
2185if ac_fn_c_try_compile "$LINENO"; then :
2186 ac_hi=$ac_mid
2187else
2188 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2189fi
2190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191done
2192case $ac_lo in #((
2193?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2194'') ac_retval=1 ;;
2195esac
2196 else
2197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198/* end confdefs.h. */
2199$4
2200static long int longval () { return $2; }
2201static unsigned long int ulongval () { return $2; }
2202#include <stdio.h>
2203#include <stdlib.h>
2204int
2205main ()
2206{
2207
2208 FILE *f = fopen ("conftest.val", "w");
2209 if (! f)
2210 return 1;
2211 if (($2) < 0)
2212 {
2213 long int i = longval ();
2214 if (i != ($2))
2215 return 1;
2216 fprintf (f, "%ld", i);
2217 }
2218 else
2219 {
2220 unsigned long int i = ulongval ();
2221 if (i != ($2))
2222 return 1;
2223 fprintf (f, "%lu", i);
2224 }
2225 /* Do not output a trailing newline, as this causes \r\n confusion
2226 on some platforms. */
2227 return ferror (f) || fclose (f) != 0;
2228
2229 ;
2230 return 0;
2231}
2232_ACEOF
2233if ac_fn_c_try_run "$LINENO"; then :
2234 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2235else
2236 ac_retval=1
2237fi
2238rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2239 conftest.$ac_objext conftest.beam conftest.$ac_ext
2240rm -f conftest.val
2241
2242 fi
2243 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2244 return $ac_retval
2245
2246} # ac_fn_c_compute_int
2247cat >config.log <<_ACEOF
2248This file contains any messages produced by compilers while
2249running configure, to aid debugging if configure makes a mistake.
2250
2251It was created by $as_me, which was
2252generated by GNU Autoconf 2.64. Invocation command line was
2253
2254 $ $0 $@
2255
2256_ACEOF
2257exec 5>>config.log
2258{
2259cat <<_ASUNAME
2260## --------- ##
2261## Platform. ##
2262## --------- ##
2263
2264hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2265uname -m = `(uname -m) 2>/dev/null || echo unknown`
2266uname -r = `(uname -r) 2>/dev/null || echo unknown`
2267uname -s = `(uname -s) 2>/dev/null || echo unknown`
2268uname -v = `(uname -v) 2>/dev/null || echo unknown`
2269
2270/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2271/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2272
2273/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2274/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2275/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2276/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2277/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2278/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2279/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2280
2281_ASUNAME
2282
2283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284for as_dir in $PATH
2285do
2286 IFS=$as_save_IFS
2287 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2288 $as_echo "PATH: $as_dir"
2289 done
2290IFS=$as_save_IFS
252b5132 2291
42ecbf5e 2292} >&5
5d64ca4e 2293
42ecbf5e 2294cat >&5 <<_ACEOF
5d64ca4e 2295
5d64ca4e 2296
42ecbf5e
DJ
2297## ----------- ##
2298## Core tests. ##
2299## ----------- ##
5d64ca4e 2300
42ecbf5e 2301_ACEOF
2469cfa2 2302
42ecbf5e
DJ
2303
2304# Keep a trace of the command line.
2305# Strip out --no-create and --no-recursion so they do not pile up.
2306# Strip out --silent because we don't want to record it for future runs.
2307# Also quote any args containing shell meta-characters.
2308# Make two passes to allow for proper duplicate-argument suppression.
2309ac_configure_args=
2310ac_configure_args0=
2311ac_configure_args1=
42ecbf5e
DJ
2312ac_must_keep_next=false
2313for ac_pass in 1 2
2314do
2315 for ac_arg
2316 do
2317 case $ac_arg in
2318 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2319 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2320 | -silent | --silent | --silen | --sile | --sil)
2321 continue ;;
81ecdfbb
RW
2322 *\'*)
2323 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2324 esac
2325 case $ac_pass in
81ecdfbb 2326 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2327 2)
81ecdfbb 2328 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2329 if test $ac_must_keep_next = true; then
2330 ac_must_keep_next=false # Got value, back to normal.
2331 else
2332 case $ac_arg in
2333 *=* | --config-cache | -C | -disable-* | --disable-* \
2334 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2335 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2336 | -with-* | --with-* | -without-* | --without-* | --x)
2337 case "$ac_configure_args0 " in
2338 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2339 esac
2340 ;;
2341 -* ) ac_must_keep_next=true ;;
2342 esac
2343 fi
81ecdfbb 2344 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2345 ;;
2346 esac
2347 done
2348done
81ecdfbb
RW
2349{ ac_configure_args0=; unset ac_configure_args0;}
2350{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2351
2352# When interrupted or exit'd, cleanup temporary files, and complete
2353# config.log. We remove comments because anyway the quotes in there
2354# would cause problems or look ugly.
81ecdfbb
RW
2355# WARNING: Use '\'' to represent an apostrophe within the trap.
2356# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2357trap 'exit_status=$?
2358 # Save into config.log some information that might help in debugging.
2359 {
2360 echo
2361
2362 cat <<\_ASBOX
2363## ---------------- ##
2364## Cache variables. ##
2365## ---------------- ##
2366_ASBOX
2367 echo
2368 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2369(
2370 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2371 eval ac_val=\$$ac_var
2372 case $ac_val in #(
2373 *${as_nl}*)
2374 case $ac_var in #(
2375 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2376$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2377 esac
2378 case $ac_var in #(
2379 _ | IFS | as_nl) ;; #(
2380 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2381 *) { eval $ac_var=; unset $ac_var;} ;;
2382 esac ;;
2383 esac
2384 done
42ecbf5e 2385 (set) 2>&1 |
81ecdfbb
RW
2386 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2387 *${as_nl}ac_space=\ *)
42ecbf5e 2388 sed -n \
81ecdfbb
RW
2389 "s/'\''/'\''\\\\'\'''\''/g;
2390 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2391 ;; #(
42ecbf5e 2392 *)
81ecdfbb 2393 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2394 ;;
81ecdfbb
RW
2395 esac |
2396 sort
2397)
42ecbf5e
DJ
2398 echo
2399
2400 cat <<\_ASBOX
2401## ----------------- ##
2402## Output variables. ##
2403## ----------------- ##
2404_ASBOX
2405 echo
2406 for ac_var in $ac_subst_vars
2407 do
81ecdfbb
RW
2408 eval ac_val=\$$ac_var
2409 case $ac_val in
2410 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2411 esac
2412 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2413 done | sort
2414 echo
2415
2416 if test -n "$ac_subst_files"; then
2417 cat <<\_ASBOX
81ecdfbb
RW
2418## ------------------- ##
2419## File substitutions. ##
2420## ------------------- ##
42ecbf5e
DJ
2421_ASBOX
2422 echo
2423 for ac_var in $ac_subst_files
2424 do
81ecdfbb
RW
2425 eval ac_val=\$$ac_var
2426 case $ac_val in
2427 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2428 esac
2429 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2430 done | sort
2431 echo
2432 fi
2433
2434 if test -s confdefs.h; then
2435 cat <<\_ASBOX
2436## ----------- ##
2437## confdefs.h. ##
2438## ----------- ##
2439_ASBOX
2440 echo
81ecdfbb 2441 cat confdefs.h
42ecbf5e
DJ
2442 echo
2443 fi
2444 test "$ac_signal" != 0 &&
81ecdfbb
RW
2445 $as_echo "$as_me: caught signal $ac_signal"
2446 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2447 } >&5
81ecdfbb
RW
2448 rm -f core *.core core.conftest.* &&
2449 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2450 exit $exit_status
81ecdfbb 2451' 0
42ecbf5e 2452for ac_signal in 1 2 13 15; do
81ecdfbb 2453 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2454done
2455ac_signal=0
2456
2457# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2458rm -f -r conftest* confdefs.h
2459
2460$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2461
2462# Predefined preprocessor variables.
2463
2464cat >>confdefs.h <<_ACEOF
2465#define PACKAGE_NAME "$PACKAGE_NAME"
2466_ACEOF
2467
42ecbf5e
DJ
2468cat >>confdefs.h <<_ACEOF
2469#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2470_ACEOF
2471
42ecbf5e
DJ
2472cat >>confdefs.h <<_ACEOF
2473#define PACKAGE_VERSION "$PACKAGE_VERSION"
2474_ACEOF
2475
42ecbf5e
DJ
2476cat >>confdefs.h <<_ACEOF
2477#define PACKAGE_STRING "$PACKAGE_STRING"
2478_ACEOF
2479
42ecbf5e
DJ
2480cat >>confdefs.h <<_ACEOF
2481#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2482_ACEOF
2483
81ecdfbb
RW
2484cat >>confdefs.h <<_ACEOF
2485#define PACKAGE_URL "$PACKAGE_URL"
2486_ACEOF
2487
42ecbf5e
DJ
2488
2489# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2490# Prefer an explicitly selected file to automatically selected ones.
2491ac_site_file1=NONE
2492ac_site_file2=NONE
2493if test -n "$CONFIG_SITE"; then
2494 ac_site_file1=$CONFIG_SITE
2495elif test "x$prefix" != xNONE; then
2496 ac_site_file1=$prefix/share/config.site
2497 ac_site_file2=$prefix/etc/config.site
2498else
2499 ac_site_file1=$ac_default_prefix/share/config.site
2500 ac_site_file2=$ac_default_prefix/etc/config.site
2501fi
2502for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2503do
2504 test "x$ac_site_file" = xNONE && continue
42ecbf5e 2505 if test -r "$ac_site_file"; then
81ecdfbb
RW
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2507$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e
DJ
2508 sed 's/^/| /' "$ac_site_file" >&5
2509 . "$ac_site_file"
2510 fi
2511done
2512
2513if test -r "$cache_file"; then
2514 # Some versions of bash will fail to source /dev/null (special
2515 # files actually), so we avoid doing that.
2516 if test -f "$cache_file"; then
81ecdfbb
RW
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2518$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2519 case $cache_file in
81ecdfbb
RW
2520 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2521 *) . "./$cache_file";;
42ecbf5e
DJ
2522 esac
2523 fi
2524else
81ecdfbb
RW
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2526$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2527 >$cache_file
2528fi
2529
2530# Check that the precious variables saved in the cache have kept the same
2531# value.
2532ac_cache_corrupted=false
81ecdfbb 2533for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2534 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2535 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2536 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2537 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2538 case $ac_old_set,$ac_new_set in
2539 set,)
81ecdfbb
RW
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2541$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2542 ac_cache_corrupted=: ;;
2543 ,set)
81ecdfbb
RW
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2545$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2546 ac_cache_corrupted=: ;;
2547 ,);;
2548 *)
2549 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2550 # differences in whitespace do not lead to failure.
2551 ac_old_val_w=`echo x $ac_old_val`
2552 ac_new_val_w=`echo x $ac_new_val`
2553 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2555$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2556 ac_cache_corrupted=:
2557 else
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2559$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2560 eval $ac_var=\$ac_old_val
2561 fi
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2563$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2565$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2566 fi;;
2567 esac
2568 # Pass precious variables to config.status.
2569 if test "$ac_new_set" = set; then
2570 case $ac_new_val in
81ecdfbb 2571 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2572 *) ac_arg=$ac_var=$ac_new_val ;;
2573 esac
2574 case " $ac_configure_args " in
2575 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2576 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2577 esac
2578 fi
2579done
2580if $ac_cache_corrupted; then
81ecdfbb
RW
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2584$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2585 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2586fi
81ecdfbb
RW
2587## -------------------- ##
2588## Main body of script. ##
2589## -------------------- ##
42ecbf5e
DJ
2590
2591ac_ext=c
2592ac_cpp='$CPP $CPPFLAGS'
2593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595ac_compiler_gnu=$ac_cv_c_compiler_gnu
2596
2597
2598
42ecbf5e 2599
da594c4a 2600
42ecbf5e
DJ
2601
2602
2603ac_aux_dir=
81ecdfbb
RW
2604for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2605 for ac_t in install-sh install.sh shtool; do
2606 if test -f "$ac_dir/$ac_t"; then
2607 ac_aux_dir=$ac_dir
2608 ac_install_sh="$ac_aux_dir/$ac_t -c"
2609 break 2
2610 fi
2611 done
42ecbf5e
DJ
2612done
2613if test -z "$ac_aux_dir"; then
81ecdfbb 2614 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2615fi
81ecdfbb
RW
2616
2617# These three variables are undocumented and unsupported,
2618# and are intended to be withdrawn in a future Autoconf release.
2619# They can cause serious problems if a builder's source tree is in a directory
2620# whose full name contains unusual characters.
2621ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2622ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2623ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2624
42ecbf5e
DJ
2625
2626# Make sure we can run config.sub.
81ecdfbb
RW
2627$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2628 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2629
2630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2631$as_echo_n "checking build system type... " >&6; }
2632if test "${ac_cv_build+set}" = set; then :
2633 $as_echo_n "(cached) " >&6
2634else
2635 ac_build_alias=$build_alias
2636test "x$ac_build_alias" = x &&
2637 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2638test "x$ac_build_alias" = x &&
2639 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2640ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2641 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2642
2643fi
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2645$as_echo "$ac_cv_build" >&6; }
2646case $ac_cv_build in
2647*-*-*) ;;
2648*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2649esac
42ecbf5e 2650build=$ac_cv_build
81ecdfbb
RW
2651ac_save_IFS=$IFS; IFS='-'
2652set x $ac_cv_build
2653shift
2654build_cpu=$1
2655build_vendor=$2
2656shift; shift
2657# Remember, the first character of IFS is used to create $*,
2658# except with old shells:
2659build_os=$*
2660IFS=$ac_save_IFS
2661case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2662
2663
81ecdfbb
RW
2664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2665$as_echo_n "checking host system type... " >&6; }
2666if test "${ac_cv_host+set}" = set; then :
2667 $as_echo_n "(cached) " >&6
2668else
2669 if test "x$host_alias" = x; then
2670 ac_cv_host=$ac_cv_build
42ecbf5e 2671else
81ecdfbb
RW
2672 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2673 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2674fi
42ecbf5e
DJ
2675
2676fi
81ecdfbb
RW
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2678$as_echo "$ac_cv_host" >&6; }
2679case $ac_cv_host in
2680*-*-*) ;;
2681*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2682esac
42ecbf5e 2683host=$ac_cv_host
81ecdfbb
RW
2684ac_save_IFS=$IFS; IFS='-'
2685set x $ac_cv_host
2686shift
2687host_cpu=$1
2688host_vendor=$2
2689shift; shift
2690# Remember, the first character of IFS is used to create $*,
2691# except with old shells:
2692host_os=$*
2693IFS=$ac_save_IFS
2694case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2695
2696
81ecdfbb
RW
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2698$as_echo_n "checking target system type... " >&6; }
2699if test "${ac_cv_target+set}" = set; then :
2700 $as_echo_n "(cached) " >&6
42ecbf5e 2701else
81ecdfbb
RW
2702 if test "x$target_alias" = x; then
2703 ac_cv_target=$ac_cv_host
2704else
2705 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2706 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2707fi
42ecbf5e
DJ
2708
2709fi
81ecdfbb
RW
2710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2711$as_echo "$ac_cv_target" >&6; }
2712case $ac_cv_target in
2713*-*-*) ;;
2714*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2715esac
42ecbf5e 2716target=$ac_cv_target
81ecdfbb
RW
2717ac_save_IFS=$IFS; IFS='-'
2718set x $ac_cv_target
2719shift
2720target_cpu=$1
2721target_vendor=$2
2722shift; shift
2723# Remember, the first character of IFS is used to create $*,
2724# except with old shells:
2725target_os=$*
2726IFS=$ac_save_IFS
2727case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2728
2729
2730# The aliases save the names the user supplied, while $host etc.
2731# will get canonicalized.
2732test -n "$target_alias" &&
2733 test "$program_prefix$program_suffix$program_transform_name" = \
2734 NONENONEs,x,x, &&
2735 program_prefix=${target_alias}-
02ecc8e9 2736
42ecbf5e
DJ
2737ac_ext=c
2738ac_cpp='$CPP $CPPFLAGS'
2739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2741ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742if test -n "$ac_tool_prefix"; then
2743 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2744set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2746$as_echo_n "checking for $ac_word... " >&6; }
2747if test "${ac_cv_prog_CC+set}" = set; then :
2748 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2749else
2750 if test -n "$CC"; then
2751 ac_cv_prog_CC="$CC" # Let the user override the test.
2752else
2753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754for as_dir in $PATH
2755do
2756 IFS=$as_save_IFS
2757 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2758 for ac_exec_ext in '' $ac_executable_extensions; do
2759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2760 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2762 break 2
2763 fi
2764done
81ecdfbb
RW
2765 done
2766IFS=$as_save_IFS
42ecbf5e
DJ
2767
2768fi
2769fi
2770CC=$ac_cv_prog_CC
2771if test -n "$CC"; then
81ecdfbb
RW
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2773$as_echo "$CC" >&6; }
42ecbf5e 2774else
81ecdfbb
RW
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776$as_echo "no" >&6; }
42ecbf5e
DJ
2777fi
2778
81ecdfbb 2779
42ecbf5e
DJ
2780fi
2781if test -z "$ac_cv_prog_CC"; then
2782 ac_ct_CC=$CC
2783 # Extract the first word of "gcc", so it can be a program name with args.
2784set dummy gcc; ac_word=$2
81ecdfbb
RW
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786$as_echo_n "checking for $ac_word... " >&6; }
2787if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2788 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2789else
2790 if test -n "$ac_ct_CC"; then
2791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2792else
2793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2800 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2802 break 2
2803 fi
2804done
81ecdfbb
RW
2805 done
2806IFS=$as_save_IFS
42ecbf5e
DJ
2807
2808fi
2809fi
2810ac_ct_CC=$ac_cv_prog_ac_ct_CC
2811if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2813$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2814else
81ecdfbb
RW
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816$as_echo "no" >&6; }
42ecbf5e
DJ
2817fi
2818
81ecdfbb
RW
2819 if test "x$ac_ct_CC" = x; then
2820 CC=""
2821 else
2822 case $cross_compiling:$ac_tool_warned in
2823yes:)
2824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2826ac_tool_warned=yes ;;
2827esac
2828 CC=$ac_ct_CC
2829 fi
42ecbf5e
DJ
2830else
2831 CC="$ac_cv_prog_CC"
2832fi
2833
2834if test -z "$CC"; then
81ecdfbb
RW
2835 if test -n "$ac_tool_prefix"; then
2836 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
42ecbf5e 2837set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839$as_echo_n "checking for $ac_word... " >&6; }
2840if test "${ac_cv_prog_CC+set}" = set; then :
2841 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2842else
2843 if test -n "$CC"; then
2844 ac_cv_prog_CC="$CC" # Let the user override the test.
2845else
2846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847for as_dir in $PATH
2848do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2853 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2855 break 2
2856 fi
2857done
81ecdfbb
RW
2858 done
2859IFS=$as_save_IFS
42ecbf5e
DJ
2860
2861fi
2862fi
2863CC=$ac_cv_prog_CC
2864if test -n "$CC"; then
81ecdfbb
RW
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2866$as_echo "$CC" >&6; }
42ecbf5e 2867else
81ecdfbb
RW
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869$as_echo "no" >&6; }
42ecbf5e
DJ
2870fi
2871
42ecbf5e 2872
81ecdfbb 2873 fi
42ecbf5e
DJ
2874fi
2875if test -z "$CC"; then
2876 # Extract the first word of "cc", so it can be a program name with args.
2877set dummy cc; ac_word=$2
81ecdfbb
RW
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879$as_echo_n "checking for $ac_word... " >&6; }
2880if test "${ac_cv_prog_CC+set}" = set; then :
2881 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2882else
2883 if test -n "$CC"; then
2884 ac_cv_prog_CC="$CC" # Let the user override the test.
2885else
2886 ac_prog_rejected=no
2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888for as_dir in $PATH
2889do
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e
DJ
2894 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2895 ac_prog_rejected=yes
2896 continue
2897 fi
2898 ac_cv_prog_CC="cc"
81ecdfbb 2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2900 break 2
2901 fi
2902done
81ecdfbb
RW
2903 done
2904IFS=$as_save_IFS
42ecbf5e
DJ
2905
2906if test $ac_prog_rejected = yes; then
2907 # We found a bogon in the path, so make sure we never use it.
2908 set dummy $ac_cv_prog_CC
2909 shift
2910 if test $# != 0; then
2911 # We chose a different compiler from the bogus one.
2912 # However, it has the same basename, so the bogon will be chosen
2913 # first if we set CC to just the basename; use the full file name.
2914 shift
2915 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2916 fi
2917fi
2918fi
2919fi
2920CC=$ac_cv_prog_CC
2921if test -n "$CC"; then
81ecdfbb
RW
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2923$as_echo "$CC" >&6; }
42ecbf5e 2924else
81ecdfbb
RW
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926$as_echo "no" >&6; }
42ecbf5e
DJ
2927fi
2928
81ecdfbb 2929
42ecbf5e
DJ
2930fi
2931if test -z "$CC"; then
2932 if test -n "$ac_tool_prefix"; then
81ecdfbb 2933 for ac_prog in cl.exe
42ecbf5e
DJ
2934 do
2935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2936set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938$as_echo_n "checking for $ac_word... " >&6; }
2939if test "${ac_cv_prog_CC+set}" = set; then :
2940 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2941else
2942 if test -n "$CC"; then
2943 ac_cv_prog_CC="$CC" # Let the user override the test.
2944else
2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946for as_dir in $PATH
2947do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2952 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2954 break 2
2955 fi
2956done
81ecdfbb
RW
2957 done
2958IFS=$as_save_IFS
42ecbf5e
DJ
2959
2960fi
2961fi
2962CC=$ac_cv_prog_CC
2963if test -n "$CC"; then
81ecdfbb
RW
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2965$as_echo "$CC" >&6; }
42ecbf5e 2966else
81ecdfbb
RW
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968$as_echo "no" >&6; }
42ecbf5e
DJ
2969fi
2970
81ecdfbb 2971
42ecbf5e
DJ
2972 test -n "$CC" && break
2973 done
2974fi
2975if test -z "$CC"; then
2976 ac_ct_CC=$CC
81ecdfbb 2977 for ac_prog in cl.exe
42ecbf5e
DJ
2978do
2979 # Extract the first word of "$ac_prog", so it can be a program name with args.
2980set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982$as_echo_n "checking for $ac_word... " >&6; }
2983if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2984 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2985else
2986 if test -n "$ac_ct_CC"; then
2987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2988else
2989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990for as_dir in $PATH
2991do
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2996 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2998 break 2
2999 fi
3000done
81ecdfbb
RW
3001 done
3002IFS=$as_save_IFS
42ecbf5e
DJ
3003
3004fi
3005fi
3006ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3009$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 3010else
81ecdfbb
RW
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012$as_echo "no" >&6; }
42ecbf5e
DJ
3013fi
3014
81ecdfbb 3015
42ecbf5e
DJ
3016 test -n "$ac_ct_CC" && break
3017done
3018
81ecdfbb
RW
3019 if test "x$ac_ct_CC" = x; then
3020 CC=""
3021 else
3022 case $cross_compiling:$ac_tool_warned in
3023yes:)
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3026ac_tool_warned=yes ;;
3027esac
3028 CC=$ac_ct_CC
3029 fi
42ecbf5e
DJ
3030fi
3031
3032fi
3033
3034
81ecdfbb
RW
3035test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3037as_fn_error "no acceptable C compiler found in \$PATH
3038See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3039
3040# Provide some information about the compiler.
81ecdfbb
RW
3041$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3042set X $ac_compile
3043ac_compiler=$2
3044for ac_option in --version -v -V -qversion; do
3045 { { ac_try="$ac_compiler $ac_option >&5"
3046case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3049esac
3050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3051$as_echo "$ac_try_echo"; } >&5
3052 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
42ecbf5e 3053 ac_status=$?
81ecdfbb
RW
3054 if test -s conftest.err; then
3055 sed '10a\
3056... rest of stderr output deleted ...
3057 10q' conftest.err >conftest.er1
3058 cat conftest.er1 >&5
3059 rm -f conftest.er1 conftest.err
3060 fi
3061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3062 test $ac_status = 0; }
3063done
42ecbf5e 3064
81ecdfbb 3065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3066/* end confdefs.h. */
3067
3068int
3069main ()
3070{
3071
3072 ;
3073 return 0;
3074}
3075_ACEOF
3076ac_clean_files_save=$ac_clean_files
81ecdfbb 3077ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
42ecbf5e
DJ
3078# Try to create an executable without -o first, disregard a.out.
3079# It will help us diagnose broken compilers, and finding out an intuition
3080# of exeext.
81ecdfbb
RW
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3082$as_echo_n "checking for C compiler default output file name... " >&6; }
3083ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3084
3085# The possible output files:
3086ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3087
3088ac_rmfiles=
3089for ac_file in $ac_files
3090do
3091 case $ac_file in
3092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3093 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3094 esac
3095done
3096rm -f $ac_rmfiles
3097
3098if { { ac_try="$ac_link_default"
3099case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102esac
3103eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3104$as_echo "$ac_try_echo"; } >&5
3105 (eval "$ac_link_default") 2>&5
3106 ac_status=$?
3107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3108 test $ac_status = 0; }; then :
3109 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3110# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3111# in a Makefile. We should not override ac_cv_exeext if it was cached,
3112# so that the user can short-circuit this test for compilers unknown to
3113# Autoconf.
3114for ac_file in $ac_files ''
42ecbf5e
DJ
3115do
3116 test -f "$ac_file" || continue
3117 case $ac_file in
81ecdfbb 3118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
42ecbf5e
DJ
3119 ;;
3120 [ab].out )
3121 # We found the default executable, but exeext='' is most
3122 # certainly right.
3123 break;;
3124 *.* )
81ecdfbb
RW
3125 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3126 then :; else
3127 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3128 fi
3129 # We set ac_cv_exeext here because the later test for it is not
3130 # safe: cross compilers may not add the suffix if given an `-o'
3131 # argument, so we may need to know it at that point already.
3132 # Even if this section looks crufty: it has the advantage of
3133 # actually working.
42ecbf5e
DJ
3134 break;;
3135 * )
3136 break;;
3137 esac
3138done
81ecdfbb
RW
3139test "$ac_cv_exeext" = no && ac_cv_exeext=
3140
42ecbf5e 3141else
81ecdfbb
RW
3142 ac_file=''
3143fi
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3145$as_echo "$ac_file" >&6; }
3146if test -z "$ac_file"; then :
3147 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3148sed 's/^/| /' conftest.$ac_ext >&5
3149
81ecdfbb
RW
3150{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3152{ as_fn_set_status 77
3153as_fn_error "C compiler cannot create executables
3154See \`config.log' for more details." "$LINENO" 5; }; }
42ecbf5e 3155fi
42ecbf5e 3156ac_exeext=$ac_cv_exeext
42ecbf5e 3157
81ecdfbb 3158# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3159# the compiler is broken, or we cross compile.
81ecdfbb
RW
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3161$as_echo_n "checking whether the C compiler works... " >&6; }
42ecbf5e
DJ
3162# If not cross compiling, check that we can run a simple program.
3163if test "$cross_compiling" != yes; then
3164 if { ac_try='./$ac_file'
81ecdfbb
RW
3165 { { case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168esac
3169eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170$as_echo "$ac_try_echo"; } >&5
3171 (eval "$ac_try") 2>&5
42ecbf5e 3172 ac_status=$?
81ecdfbb
RW
3173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174 test $ac_status = 0; }; }; then
42ecbf5e
DJ
3175 cross_compiling=no
3176 else
3177 if test "$cross_compiling" = maybe; then
3178 cross_compiling=yes
3179 else
81ecdfbb
RW
3180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182as_fn_error "cannot run C compiled programs.
42ecbf5e 3183If you meant to cross compile, use \`--host'.
81ecdfbb 3184See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3185 fi
3186 fi
3187fi
81ecdfbb
RW
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3189$as_echo "yes" >&6; }
42ecbf5e 3190
81ecdfbb 3191rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
42ecbf5e 3192ac_clean_files=$ac_clean_files_save
81ecdfbb 3193# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3194# the compiler is broken, or we cross compile.
81ecdfbb
RW
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3196$as_echo_n "checking whether we are cross compiling... " >&6; }
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3198$as_echo "$cross_compiling" >&6; }
3199
3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3201$as_echo_n "checking for suffix of executables... " >&6; }
3202if { { ac_try="$ac_link"
3203case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206esac
3207eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208$as_echo "$ac_try_echo"; } >&5
3209 (eval "$ac_link") 2>&5
42ecbf5e 3210 ac_status=$?
81ecdfbb
RW
3211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212 test $ac_status = 0; }; then :
42ecbf5e
DJ
3213 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3214# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3215# work properly (i.e., refer to `conftest.exe'), while it won't with
3216# `rm'.
3217for ac_file in conftest.exe conftest conftest.*; do
3218 test -f "$ac_file" || continue
3219 case $ac_file in
81ecdfbb 3220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
42ecbf5e 3221 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
42ecbf5e
DJ
3222 break;;
3223 * ) break;;
3224 esac
3225done
3226else
81ecdfbb
RW
3227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3229as_fn_error "cannot compute suffix of executables: cannot compile and link
3230See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3231fi
42ecbf5e 3232rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3234$as_echo "$ac_cv_exeext" >&6; }
42ecbf5e
DJ
3235
3236rm -f conftest.$ac_ext
3237EXEEXT=$ac_cv_exeext
3238ac_exeext=$EXEEXT
81ecdfbb
RW
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3240$as_echo_n "checking for suffix of object files... " >&6; }
3241if test "${ac_cv_objext+set}" = set; then :
3242 $as_echo_n "(cached) " >&6
42ecbf5e 3243else
81ecdfbb 3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3245/* end confdefs.h. */
3246
3247int
3248main ()
3249{
3250
3251 ;
3252 return 0;
3253}
3254_ACEOF
3255rm -f conftest.o conftest.obj
81ecdfbb
RW
3256if { { ac_try="$ac_compile"
3257case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260esac
3261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262$as_echo "$ac_try_echo"; } >&5
3263 (eval "$ac_compile") 2>&5
3264 ac_status=$?
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }; then :
3267 for ac_file in conftest.o conftest.obj conftest.*; do
3268 test -f "$ac_file" || continue;
42ecbf5e 3269 case $ac_file in
81ecdfbb 3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
42ecbf5e
DJ
3271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3272 break;;
3273 esac
3274done
3275else
81ecdfbb 3276 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3277sed 's/^/| /' conftest.$ac_ext >&5
3278
81ecdfbb
RW
3279{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3281as_fn_error "cannot compute suffix of object files: cannot compile
3282See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3283fi
42ecbf5e
DJ
3284rm -f conftest.$ac_cv_objext conftest.$ac_ext
3285fi
81ecdfbb
RW
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3287$as_echo "$ac_cv_objext" >&6; }
42ecbf5e
DJ
3288OBJEXT=$ac_cv_objext
3289ac_objext=$OBJEXT
81ecdfbb
RW
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3291$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3292if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3293 $as_echo_n "(cached) " >&6
42ecbf5e 3294else
81ecdfbb 3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3296/* end confdefs.h. */
3297
3298int
3299main ()
3300{
3301#ifndef __GNUC__
3302 choke me
3303#endif
3304
3305 ;
3306 return 0;
3307}
3308_ACEOF
81ecdfbb 3309if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3310 ac_compiler_gnu=yes
3311else
81ecdfbb 3312 ac_compiler_gnu=no
42ecbf5e 3313fi
81ecdfbb 3314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e
DJ
3315ac_cv_c_compiler_gnu=$ac_compiler_gnu
3316
3317fi
81ecdfbb
RW
3318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3319$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3320if test $ac_compiler_gnu = yes; then
3321 GCC=yes
3322else
3323 GCC=
3324fi
42ecbf5e
DJ
3325ac_test_CFLAGS=${CFLAGS+set}
3326ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3328$as_echo_n "checking whether $CC accepts -g... " >&6; }
3329if test "${ac_cv_prog_cc_g+set}" = set; then :
3330 $as_echo_n "(cached) " >&6
3331else
3332 ac_save_c_werror_flag=$ac_c_werror_flag
3333 ac_c_werror_flag=yes
3334 ac_cv_prog_cc_g=no
3335 CFLAGS="-g"
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3337/* end confdefs.h. */
3338
3339int
3340main ()
3341{
3342
3343 ;
3344 return 0;
3345}
3346_ACEOF
81ecdfbb 3347if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3348 ac_cv_prog_cc_g=yes
3349else
81ecdfbb
RW
3350 CFLAGS=""
3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352/* end confdefs.h. */
3353
3354int
3355main ()
3356{
3357
3358 ;
3359 return 0;
3360}
3361_ACEOF
3362if ac_fn_c_try_compile "$LINENO"; then :
3363
3364else
3365 ac_c_werror_flag=$ac_save_c_werror_flag
3366 CFLAGS="-g"
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368/* end confdefs.h. */
3369
3370int
3371main ()
3372{
42ecbf5e 3373
81ecdfbb
RW
3374 ;
3375 return 0;
3376}
3377_ACEOF
3378if ac_fn_c_try_compile "$LINENO"; then :
3379 ac_cv_prog_cc_g=yes
3380fi
3381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382fi
3383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 3384fi
81ecdfbb
RW
3385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 ac_c_werror_flag=$ac_save_c_werror_flag
42ecbf5e 3387fi
81ecdfbb
RW
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3389$as_echo "$ac_cv_prog_cc_g" >&6; }
42ecbf5e
DJ
3390if test "$ac_test_CFLAGS" = set; then
3391 CFLAGS=$ac_save_CFLAGS
3392elif test $ac_cv_prog_cc_g = yes; then
3393 if test "$GCC" = yes; then
3394 CFLAGS="-g -O2"
3395 else
3396 CFLAGS="-g"
3397 fi
3398else
3399 if test "$GCC" = yes; then
3400 CFLAGS="-O2"
3401 else
3402 CFLAGS=
3403 fi
3404fi
81ecdfbb
RW
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3406$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3407if test "${ac_cv_prog_cc_c89+set}" = set; then :
3408 $as_echo_n "(cached) " >&6
42ecbf5e 3409else
81ecdfbb 3410 ac_cv_prog_cc_c89=no
42ecbf5e 3411ac_save_CC=$CC
81ecdfbb 3412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3413/* end confdefs.h. */
3414#include <stdarg.h>
3415#include <stdio.h>
3416#include <sys/types.h>
3417#include <sys/stat.h>
3418/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3419struct buf { int x; };
3420FILE * (*rcsopen) (struct buf *, struct stat *, int);
3421static char *e (p, i)
3422 char **p;
3423 int i;
3424{
3425 return p[i];
3426}
3427static char *f (char * (*g) (char **, int), char **p, ...)
3428{
3429 char *s;
3430 va_list v;
3431 va_start (v,p);
3432 s = g (p, va_arg (v,int));
3433 va_end (v);
3434 return s;
3435}
3436
3437/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3438 function prototypes and stuff, but not '\xHH' hex character constants.
3439 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3440 as 'x'. The following induces an error, until -std is added to get
42ecbf5e
DJ
3441 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3442 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3443 that's true only with -std. */
42ecbf5e
DJ
3444int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3445
81ecdfbb
RW
3446/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3447 inside strings and character constants. */
3448#define FOO(x) 'x'
3449int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3450
42ecbf5e
DJ
3451int test (int i, double x);
3452struct s1 {int (*f) (int a);};
3453struct s2 {int (*f) (double a);};
3454int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3455int argc;
3456char **argv;
3457int
3458main ()
3459{
3460return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3461 ;
3462 return 0;
3463}
3464_ACEOF
81ecdfbb
RW
3465for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3466 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
42ecbf5e
DJ
3467do
3468 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3469 if ac_fn_c_try_compile "$LINENO"; then :
3470 ac_cv_prog_cc_c89=$ac_arg
42ecbf5e 3471fi
81ecdfbb
RW
3472rm -f core conftest.err conftest.$ac_objext
3473 test "x$ac_cv_prog_cc_c89" != "xno" && break
42ecbf5e 3474done
81ecdfbb 3475rm -f conftest.$ac_ext
42ecbf5e
DJ
3476CC=$ac_save_CC
3477
3478fi
81ecdfbb
RW
3479# AC_CACHE_VAL
3480case "x$ac_cv_prog_cc_c89" in
3481 x)
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3483$as_echo "none needed" >&6; } ;;
3484 xno)
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3486$as_echo "unsupported" >&6; } ;;
42ecbf5e 3487 *)
81ecdfbb
RW
3488 CC="$CC $ac_cv_prog_cc_c89"
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3490$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
42ecbf5e 3491esac
81ecdfbb 3492if test "x$ac_cv_prog_cc_c89" != xno; then :
42ecbf5e 3493
42ecbf5e
DJ
3494fi
3495
42ecbf5e
DJ
3496ac_ext=c
3497ac_cpp='$CPP $CPPFLAGS'
3498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500ac_compiler_gnu=$ac_cv_c_compiler_gnu
3501
3502
81ecdfbb
RW
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3504$as_echo_n "checking for library containing strerror... " >&6; }
3505if test "${ac_cv_search_strerror+set}" = set; then :
3506 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3507else
3508 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3510/* end confdefs.h. */
3511
81ecdfbb
RW
3512/* Override any GCC internal prototype to avoid an error.
3513 Use char because int might match the return type of a GCC
3514 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
3515#ifdef __cplusplus
3516extern "C"
3517#endif
42ecbf5e
DJ
3518char strerror ();
3519int
3520main ()
3521{
81ecdfbb 3522return strerror ();
42ecbf5e
DJ
3523 ;
3524 return 0;
3525}
3526_ACEOF
81ecdfbb
RW
3527for ac_lib in '' cposix; do
3528 if test -z "$ac_lib"; then
3529 ac_res="none required"
3530 else
3531 ac_res=-l$ac_lib
42ecbf5e 3532 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3533 fi
3534 if ac_fn_c_try_link "$LINENO"; then :
3535 ac_cv_search_strerror=$ac_res
3536fi
3537rm -f core conftest.err conftest.$ac_objext \
3538 conftest$ac_exeext
3539 if test "${ac_cv_search_strerror+set}" = set; then :
3540 break
3541fi
3542done
3543if test "${ac_cv_search_strerror+set}" = set; then :
42ecbf5e 3544
42ecbf5e 3545else
81ecdfbb 3546 ac_cv_search_strerror=no
42ecbf5e 3547fi
81ecdfbb 3548rm conftest.$ac_ext
42ecbf5e
DJ
3549LIBS=$ac_func_search_save_LIBS
3550fi
81ecdfbb
RW
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3552$as_echo "$ac_cv_search_strerror" >&6; }
3553ac_res=$ac_cv_search_strerror
3554if test "$ac_res" != no; then :
3555 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e
DJ
3556
3557fi
e5a52504
MM
3558
3559
c4dd807e 3560BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'`
81ecdfbb
RW
3561am__api_version='1.11'
3562
e5a52504
MM
3563# Find a good install program. We prefer a C program (faster),
3564# so one script is as good as another. But avoid the broken or
3565# incompatible versions:
3566# SysV /etc/install, /usr/sbin/install
3567# SunOS /usr/etc/install
3568# IRIX /sbin/install
3569# AIX /bin/install
42ecbf5e 3570# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
3571# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3572# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3573# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 3574# OS/2's system install, which has a completely different semantic
e5a52504 3575# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3576# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3578$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5a52504 3579if test -z "$INSTALL"; then
81ecdfbb
RW
3580if test "${ac_cv_path_install+set}" = set; then :
3581 $as_echo_n "(cached) " >&6
e5a52504 3582else
42ecbf5e
DJ
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584for as_dir in $PATH
3585do
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3588 # Account for people who put trailing slashes in PATH elements.
3589case $as_dir/ in #((
3590 ./ | .// | /[cC]/* | \
42ecbf5e 3591 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3592 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
42ecbf5e
DJ
3593 /usr/ucb/* ) ;;
3594 *)
3595 # OSF1 and SCO ODT 3.0 have their own names for install.
3596 # Don't use installbsd from OSF since it installs stuff as root
3597 # by default.
3598 for ac_prog in ginstall scoinst install; do
3599 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3600 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
252b5132 3601 if test $ac_prog = install &&
42ecbf5e 3602 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3603 # AIX install. It has an incompatible calling convention.
3604 :
42ecbf5e
DJ
3605 elif test $ac_prog = install &&
3606 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3607 # program-specific install script used by HP pwplus--don't use.
3608 :
252b5132 3609 else
58c85be7
RW
3610 rm -rf conftest.one conftest.two conftest.dir
3611 echo one > conftest.one
3612 echo two > conftest.two
3613 mkdir conftest.dir
3614 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3615 test -s conftest.one && test -s conftest.two &&
3616 test -s conftest.dir/conftest.one &&
3617 test -s conftest.dir/conftest.two
3618 then
3619 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3620 break 3
3621 fi
252b5132
RH
3622 fi
3623 fi
3624 done
42ecbf5e
DJ
3625 done
3626 ;;
3627esac
81ecdfbb
RW
3628
3629 done
3630IFS=$as_save_IFS
42ecbf5e 3631
58c85be7 3632rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3633
3634fi
3635 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 3636 INSTALL=$ac_cv_path_install
252b5132 3637 else
58c85be7
RW
3638 # As a last resort, use the slow shell script. Don't cache a
3639 # value for INSTALL within a source directory, because that will
252b5132 3640 # break other packages using the cache if that directory is
58c85be7 3641 # removed, or if the value is a relative name.
42ecbf5e 3642 INSTALL=$ac_install_sh
252b5132
RH
3643 fi
3644fi
81ecdfbb
RW
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3646$as_echo "$INSTALL" >&6; }
252b5132
RH
3647
3648# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3649# It thinks the first close brace ends the variable substitution.
3650test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3651
42ecbf5e 3652test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3653
3654test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3655
81ecdfbb
RW
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3657$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3658# Just in case
3659sleep 1
42ecbf5e 3660echo timestamp > conftest.file
81ecdfbb
RW
3661# Reject unsafe characters in $srcdir or the absolute working directory
3662# name. Accept space and tab only in the latter.
3663am_lf='
3664'
3665case `pwd` in
3666 *[\\\"\#\$\&\'\`$am_lf]*)
3667 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3668esac
3669case $srcdir in
3670 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3671 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3672esac
3673
252b5132
RH
3674# Do `set' in a subshell so we don't clobber the current shell's
3675# arguments. Must try -L first in case configure is actually a
3676# symlink; some systems play weird games with the mod time of symlinks
3677# (eg FreeBSD returns the mod time of the symlink's containing
3678# directory).
3679if (
81ecdfbb 3680 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3681 if test "$*" = "X"; then
3682 # -L didn't work.
81ecdfbb 3683 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3684 fi
42ecbf5e
DJ
3685 rm -f conftest.file
3686 if test "$*" != "X $srcdir/configure conftest.file" \
3687 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3688
3689 # If neither matched, then we have a broken ls. This can happen
3690 # if, for instance, CONFIG_SHELL is bash and it inherits a
3691 # broken ls alias from the environment. This has actually
3692 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3693 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3694alias in your environment" "$LINENO" 5
252b5132
RH
3695 fi
3696
42ecbf5e 3697 test "$2" = conftest.file
252b5132
RH
3698 )
3699then
3700 # Ok.
3701 :
3702else
81ecdfbb
RW
3703 as_fn_error "newly created file is older than distributed files!
3704Check your system clock" "$LINENO" 5
252b5132 3705fi
81ecdfbb
RW
3706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3707$as_echo "yes" >&6; }
252b5132 3708test "$program_prefix" != NONE &&
81ecdfbb 3709 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3710# Use a double $ so make ignores it.
3711test "$program_suffix" != NONE &&
81ecdfbb
RW
3712 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3713# Double any \ or $.
42ecbf5e 3714# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3715ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3716program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e
DJ
3717
3718# expand $ac_aux_dir to an absolute path
3719am_aux_dir=`cd $ac_aux_dir && pwd`
3720
81ecdfbb
RW
3721if test x"${MISSING+set}" != xset; then
3722 case $am_aux_dir in
3723 *\ * | *\ *)
3724 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3725 *)
3726 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3727 esac
3728fi
42ecbf5e
DJ
3729# Use eval to expand $SHELL
3730if eval "$MISSING --run true"; then
3731 am_missing_run="$MISSING --run "
3732else
3733 am_missing_run=
81ecdfbb
RW
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3735$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3736fi
3737
3738if test x"${install_sh}" != xset; then
3739 case $am_aux_dir in
3740 *\ * | *\ *)
3741 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3742 *)
3743 install_sh="\${SHELL} $am_aux_dir/install-sh"
3744 esac
3745fi
3746
3747# Installed binaries are usually stripped using `strip' when the user
3748# run `make install-strip'. However `strip' might not be the right
3749# tool to use in cross-compilation environments, therefore Automake
3750# will honor the `STRIP' environment variable to overrule this program.
3751if test "$cross_compiling" != no; then
3752 if test -n "$ac_tool_prefix"; then
3753 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3754set dummy ${ac_tool_prefix}strip; ac_word=$2
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3756$as_echo_n "checking for $ac_word... " >&6; }
3757if test "${ac_cv_prog_STRIP+set}" = set; then :
3758 $as_echo_n "(cached) " >&6
3759else
3760 if test -n "$STRIP"; then
3761 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3762else
3763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764for as_dir in $PATH
3765do
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3770 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3772 break 2
3773 fi
3774done
3775 done
3776IFS=$as_save_IFS
3777
3778fi
3779fi
3780STRIP=$ac_cv_prog_STRIP
3781if test -n "$STRIP"; then
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3783$as_echo "$STRIP" >&6; }
3784else
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786$as_echo "no" >&6; }
3787fi
3788
3789
3790fi
3791if test -z "$ac_cv_prog_STRIP"; then
3792 ac_ct_STRIP=$STRIP
3793 # Extract the first word of "strip", so it can be a program name with args.
3794set dummy strip; ac_word=$2
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796$as_echo_n "checking for $ac_word... " >&6; }
3797if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3798 $as_echo_n "(cached) " >&6
3799else
3800 if test -n "$ac_ct_STRIP"; then
3801 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3802else
3803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804for as_dir in $PATH
3805do
3806 IFS=$as_save_IFS
3807 test -z "$as_dir" && as_dir=.
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3810 ac_cv_prog_ac_ct_STRIP="strip"
3811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3812 break 2
3813 fi
3814done
3815 done
3816IFS=$as_save_IFS
3817
3818fi
3819fi
3820ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3821if test -n "$ac_ct_STRIP"; then
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3823$as_echo "$ac_ct_STRIP" >&6; }
3824else
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826$as_echo "no" >&6; }
3827fi
3828
3829 if test "x$ac_ct_STRIP" = x; then
3830 STRIP=":"
3831 else
3832 case $cross_compiling:$ac_tool_warned in
3833yes:)
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3836ac_tool_warned=yes ;;
3837esac
3838 STRIP=$ac_ct_STRIP
3839 fi
3840else
3841 STRIP="$ac_cv_prog_STRIP"
3842fi
3843
3844fi
3845INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3846
3847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3848$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3849if test -z "$MKDIR_P"; then
3850 if test "${ac_cv_path_mkdir+set}" = set; then :
3851 $as_echo_n "(cached) " >&6
3852else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3855do
3856 IFS=$as_save_IFS
3857 test -z "$as_dir" && as_dir=.
3858 for ac_prog in mkdir gmkdir; do
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3861 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3862 'mkdir (GNU coreutils) '* | \
3863 'mkdir (coreutils) '* | \
3864 'mkdir (fileutils) '4.1*)
3865 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3866 break 3;;
3867 esac
3868 done
3869 done
42ecbf5e 3870 done
81ecdfbb
RW
3871IFS=$as_save_IFS
3872
3873fi
3874
3875 if test "${ac_cv_path_mkdir+set}" = set; then
3876 MKDIR_P="$ac_cv_path_mkdir -p"
42ecbf5e 3877 else
81ecdfbb
RW
3878 # As a last resort, use the slow shell script. Don't cache a
3879 # value for MKDIR_P within a source directory, because that will
3880 # break other packages using the cache if that directory is
3881 # removed, or if the value is a relative name.
3882 test -d ./--version && rmdir ./--version
3883 MKDIR_P="$ac_install_sh -d"
42ecbf5e
DJ
3884 fi
3885fi
81ecdfbb
RW
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3887$as_echo "$MKDIR_P" >&6; }
3888
3889mkdir_p="$MKDIR_P"
3890case $mkdir_p in
3891 [\\/$]* | ?:[\\/]*) ;;
3892 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3893esac
42ecbf5e
DJ
3894
3895for ac_prog in gawk mawk nawk awk
3896do
3897 # Extract the first word of "$ac_prog", so it can be a program name with args.
3898set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3900$as_echo_n "checking for $ac_word... " >&6; }
3901if test "${ac_cv_prog_AWK+set}" = set; then :
3902 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3903else
3904 if test -n "$AWK"; then
3905 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3906else
3907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908for as_dir in $PATH
3909do
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 3914 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3916 break 2
3917 fi
3918done
81ecdfbb
RW
3919 done
3920IFS=$as_save_IFS
42ecbf5e
DJ
3921
3922fi
3923fi
3924AWK=$ac_cv_prog_AWK
3925if test -n "$AWK"; then
81ecdfbb
RW
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3927$as_echo "$AWK" >&6; }
42ecbf5e 3928else
81ecdfbb
RW
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930$as_echo "no" >&6; }
42ecbf5e 3931fi
252b5132 3932
81ecdfbb 3933
42ecbf5e
DJ
3934 test -n "$AWK" && break
3935done
252b5132 3936
81ecdfbb
RW
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3938$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3939set x ${MAKE-make}
3940ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3941if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3942 $as_echo_n "(cached) " >&6
252b5132 3943else
42ecbf5e 3944 cat >conftest.make <<\_ACEOF
81ecdfbb 3945SHELL = /bin/sh
252b5132 3946all:
81ecdfbb 3947 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 3948_ACEOF
252b5132 3949# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3950case `${MAKE-make} -f conftest.make 2>/dev/null` in
3951 *@@@%%%=?*=@@@%%%*)
3952 eval ac_cv_prog_make_${ac_make}_set=yes;;
3953 *)
3954 eval ac_cv_prog_make_${ac_make}_set=no;;
3955esac
42ecbf5e 3956rm -f conftest.make
252b5132 3957fi
81ecdfbb
RW
3958if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3960$as_echo "yes" >&6; }
252b5132
RH
3961 SET_MAKE=
3962else
81ecdfbb
RW
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964$as_echo "no" >&6; }
252b5132
RH
3965 SET_MAKE="MAKE=${MAKE-make}"
3966fi
3967
42ecbf5e
DJ
3968rm -rf .tst 2>/dev/null
3969mkdir .tst 2>/dev/null
3970if test -d .tst; then
3971 am__leading_dot=.
3972else
3973 am__leading_dot=_
3974fi
3975rmdir .tst 2>/dev/null
3976
3977DEPDIR="${am__leading_dot}deps"
3978
81ecdfbb 3979ac_config_commands="$ac_config_commands depfiles"
42ecbf5e
DJ
3980
3981
3982am_make=${MAKE-make}
3983cat > confinc << 'END'
3984am__doit:
81ecdfbb 3985 @echo this is the am__doit target
42ecbf5e
DJ
3986.PHONY: am__doit
3987END
3988# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3990$as_echo_n "checking for style of include used by $am_make... " >&6; }
42ecbf5e
DJ
3991am__include="#"
3992am__quote=
3993_am_result=none
3994# First try GNU make style include.
3995echo "include confinc" > confmf
81ecdfbb
RW
3996# Ignore all kinds of additional output from `make'.
3997case `$am_make -s -f confmf 2> /dev/null` in #(
3998*the\ am__doit\ target*)
3999 am__include=include
4000 am__quote=
4001 _am_result=GNU
4002 ;;
4003esac
42ecbf5e
DJ
4004# Now try BSD make style include.
4005if test "$am__include" = "#"; then
4006 echo '.include "confinc"' > confmf
81ecdfbb
RW
4007 case `$am_make -s -f confmf 2> /dev/null` in #(
4008 *the\ am__doit\ target*)
4009 am__include=.include
4010 am__quote="\""
4011 _am_result=BSD
4012 ;;
4013 esac
42ecbf5e
DJ
4014fi
4015
4016
81ecdfbb
RW
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4018$as_echo "$_am_result" >&6; }
42ecbf5e
DJ
4019rm -f confinc confmf
4020
81ecdfbb
RW
4021# Check whether --enable-dependency-tracking was given.
4022if test "${enable_dependency_tracking+set}" = set; then :
4023 enableval=$enable_dependency_tracking;
4024fi
42ecbf5e 4025
42ecbf5e
DJ
4026if test "x$enable_dependency_tracking" != xno; then
4027 am_depcomp="$ac_aux_dir/depcomp"
4028 AMDEPBACKSLASH='\'
4029fi
81ecdfbb 4030 if test "x$enable_dependency_tracking" != xno; then
42ecbf5e
DJ
4031 AMDEP_TRUE=
4032 AMDEP_FALSE='#'
4033else
4034 AMDEP_TRUE='#'
4035 AMDEP_FALSE=
4036fi
4037
e5a52504 4038
81ecdfbb
RW
4039if test "`cd $srcdir && pwd`" != "`pwd`"; then
4040 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4041 # is not polluted with repeated "-I."
4042 am__isrc=' -I$(srcdir)'
4043 # test to see if srcdir already configured
4044 if test -f $srcdir/config.status; then
4045 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4046 fi
42ecbf5e 4047fi
252b5132 4048
42ecbf5e
DJ
4049# test whether we have cygpath
4050if test -z "$CYGPATH_W"; then
4051 if (cygpath --version) >/dev/null 2>/dev/null; then
4052 CYGPATH_W='cygpath -w'
4053 else
4054 CYGPATH_W=echo
4055 fi
252b5132 4056fi
42ecbf5e
DJ
4057
4058
4059# Define the identity of the package.
4060 PACKAGE=ld
4061 VERSION=${BFD_VERSION}
4062
4063
4064cat >>confdefs.h <<_ACEOF
e5a52504 4065#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
4066_ACEOF
4067
252b5132 4068
42ecbf5e 4069cat >>confdefs.h <<_ACEOF
e5a52504 4070#define VERSION "$VERSION"
42ecbf5e
DJ
4071_ACEOF
4072
4073# Some tools Automake needs.
4074
4075ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4076
4077
4078AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4079
4080
4081AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4082
4083
4084AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4085
e5a52504 4086
42ecbf5e 4087MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 4088
42ecbf5e
DJ
4089# We need awk for the "check" target. The system "awk" is bad on
4090# some platforms.
4091# Always define AMTAR for backward compatibility.
4092
4093AMTAR=${AMTAR-"${am_missing_run}tar"}
4094
4095am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4096
4097
4098
4099
4100depcc="$CC" am_compiler_list=
4101
81ecdfbb
RW
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4103$as_echo_n "checking dependency style of $depcc... " >&6; }
4104if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4105 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
4106else
4107 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4108 # We make a subdir and do the tests there. Otherwise we can end up
4109 # making bogus files that we don't know about and never remove. For
4110 # instance it was reported that on HP-UX the gcc test will end up
4111 # making a dummy file named `D' -- because `-MD' means `put the output
4112 # in D'.
4113 mkdir conftest.dir
4114 # Copy depcomp to subdir because otherwise we won't find it if we're
4115 # using a relative directory.
4116 cp "$am_depcomp" conftest.dir
4117 cd conftest.dir
4118 # We will build objects and dependencies in a subdirectory because
4119 # it helps to detect inapplicable dependency modes. For instance
4120 # both Tru64's cc and ICC support -MD to output dependencies as a
4121 # side effect of compilation, but ICC will put the dependencies in
4122 # the current directory while Tru64 will put them in the object
4123 # directory.
4124 mkdir sub
4125
4126 am_cv_CC_dependencies_compiler_type=none
4127 if test "$am_compiler_list" = ""; then
4128 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4129 fi
81ecdfbb
RW
4130 am__universal=false
4131 case " $depcc " in #(
4132 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4133 esac
4134
42ecbf5e
DJ
4135 for depmode in $am_compiler_list; do
4136 # Setup a source with many dependencies, because some compilers
4137 # like to wrap large dependency lists on column 80 (with \), and
4138 # we should not choose a depcomp mode which is confused by this.
4139 #
4140 # We need to recreate these files for each test, as the compiler may
4141 # overwrite some of them when testing with obscure command lines.
4142 # This happens at least with the AIX C compiler.
4143 : > sub/conftest.c
4144 for i in 1 2 3 4 5 6; do
4145 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4146 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4147 # Solaris 8's {/usr,}/bin/sh.
4148 touch sub/conftst$i.h
4149 done
4150 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4151
81ecdfbb
RW
4152 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4153 # mode. It turns out that the SunPro C++ compiler does not properly
4154 # handle `-M -o', and we need to detect this. Also, some Intel
4155 # versions had trouble with output in subdirs
4156 am__obj=sub/conftest.${OBJEXT-o}
4157 am__minus_obj="-o $am__obj"
42ecbf5e 4158 case $depmode in
81ecdfbb
RW
4159 gcc)
4160 # This depmode causes a compiler race in universal mode.
4161 test "$am__universal" = false || continue
4162 ;;
42ecbf5e
DJ
4163 nosideeffect)
4164 # after this tag, mechanisms are not by side-effect, so they'll
4165 # only be used when explicitly requested
4166 if test "x$enable_dependency_tracking" = xyes; then
4167 continue
4168 else
4169 break
4170 fi
4171 ;;
81ecdfbb
RW
4172 msvisualcpp | msvcmsys)
4173 # This compiler won't grok `-c -o', but also, the minuso test has
4174 # not run yet. These depmodes are late enough in the game, and
4175 # so weak that their functioning should not be impacted.
4176 am__obj=conftest.${OBJEXT-o}
4177 am__minus_obj=
4178 ;;
42ecbf5e
DJ
4179 none) break ;;
4180 esac
42ecbf5e 4181 if depmode=$depmode \
81ecdfbb 4182 source=sub/conftest.c object=$am__obj \
42ecbf5e 4183 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4184 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
42ecbf5e 4185 >/dev/null 2>conftest.err &&
81ecdfbb 4186 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e 4187 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4188 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e
DJ
4189 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4190 # icc doesn't choke on unknown options, it will just issue warnings
4191 # or remarks (even with -Werror). So we grep stderr for any message
4192 # that says an option was ignored or not supported.
4193 # When given -MP, icc 7.0 and 7.1 complain thusly:
4194 # icc: Command line warning: ignoring option '-M'; no argument required
4195 # The diagnosis changed in icc 8.0:
4196 # icc: Command line remark: option '-MP' not supported
4197 if (grep 'ignoring option' conftest.err ||
4198 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4199 am_cv_CC_dependencies_compiler_type=$depmode
4200 break
4201 fi
4202 fi
4203 done
2469cfa2 4204
42ecbf5e
DJ
4205 cd ..
4206 rm -rf conftest.dir
2469cfa2 4207else
42ecbf5e
DJ
4208 am_cv_CC_dependencies_compiler_type=none
4209fi
4210
2469cfa2 4211fi
81ecdfbb
RW
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4213$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
42ecbf5e
DJ
4214CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4215
81ecdfbb 4216 if
42ecbf5e
DJ
4217 test "x$enable_dependency_tracking" != xno \
4218 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4219 am__fastdepCC_TRUE=
4220 am__fastdepCC_FALSE='#'
2469cfa2 4221else
42ecbf5e
DJ
4222 am__fastdepCC_TRUE='#'
4223 am__fastdepCC_FALSE=
2469cfa2 4224fi
2469cfa2 4225
2469cfa2 4226
e5a52504 4227
42ecbf5e 4228
64ac50ac
RW
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4230$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4231 # Check whether --enable-maintainer-mode was given.
4232if test "${enable_maintainer_mode+set}" = set; then :
4233 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4234else
4235 USE_MAINTAINER_MODE=no
4236fi
4237
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4239$as_echo "$USE_MAINTAINER_MODE" >&6; }
4240 if test $USE_MAINTAINER_MODE = yes; then
4241 MAINTAINER_MODE_TRUE=
4242 MAINTAINER_MODE_FALSE='#'
4243else
4244 MAINTAINER_MODE_TRUE='#'
4245 MAINTAINER_MODE_FALSE=
4246fi
4247
4248 MAINT=$MAINTAINER_MODE_TRUE
4249
4250
4251
d7040cdb 4252
81ecdfbb
RW
4253# Check whether --with-lib-path was given.
4254if test "${with_lib_path+set}" = set; then :
4255 withval=$with_lib_path; LIB_PATH=$withval
4256fi
4257
4258# Check whether --enable-targets was given.
4259if test "${enable_targets+set}" = set; then :
4260 enableval=$enable_targets; case "${enableval}" in
4261 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
ce2cded5
L
4262 ;;
4263 no) enable_targets= ;;
4264 *) enable_targets=$enableval ;;
4265esac
81ecdfbb
RW
4266fi
4267# Check whether --enable-64-bit-bfd was given.
4268if test "${enable_64_bit_bfd+set}" = set; then :
4269 enableval=$enable_64_bit_bfd; case "${enableval}" in
ce2cded5
L
4270 yes) want64=true ;;
4271 no) want64=false ;;
81ecdfbb 4272 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
ce2cded5 4273esac
2469cfa2 4274else
ce2cded5 4275 want64=false
81ecdfbb 4276fi
d7040cdb
SE
4277
4278
81ecdfbb
RW
4279# Check whether --with-sysroot was given.
4280if test "${with_sysroot+set}" = set; then :
4281 withval=$with_sysroot;
ce2cded5
L
4282 case ${with_sysroot} in
4283 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4284 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4285 esac
d7040cdb 4286
ce2cded5
L
4287 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4288 use_sysroot=yes
d7040cdb 4289
ce2cded5
L
4290 if test "x$prefix" = xNONE; then
4291 test_prefix=/usr/local
4292 else
4293 test_prefix=$prefix
4294 fi
4295 if test "x$exec_prefix" = xNONE; then
4296 test_exec_prefix=$test_prefix
4297 else
4298 test_exec_prefix=$exec_prefix
4299 fi
4300 case ${TARGET_SYSTEM_ROOT} in
4301 "${test_prefix}"|"${test_prefix}/"*|\
4302 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
4303 '${prefix}'|'${prefix}/'*|\
4304 '${exec_prefix}'|'${exec_prefix}/'*)
4305 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4306 TARGET_SYSTEM_ROOT_DEFINE="$t"
4307 ;;
4308 esac
d7040cdb 4309
e5a52504 4310else
d7040cdb 4311
ce2cded5
L
4312 use_sysroot=no
4313 TARGET_SYSTEM_ROOT=
4314 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
d7040cdb 4315
81ecdfbb
RW
4316fi
4317
d7040cdb
SE
4318
4319
4320
4321
4fda8867
NC
4322# Check whether --enable-gold was given.
4323if test "${enable_gold+set}" = set; then :
4324 enableval=$enable_gold; case "${enableval}" in
c7791212 4325 default)
4fda8867
NC
4326 install_as_default=no
4327 installed_linker=ld.bfd
4328 ;;
c7791212 4329 yes|no)
4fda8867
NC
4330 install_as_default=yes
4331 installed_linker=ld.bfd
4332 ;;
4333 *)
4334 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
4335 ;;
4336 esac
4337else
c7791212
NC
4338 install_as_default=yes
4339 installed_linker=ld.bfd
4fda8867
NC
4340fi
4341
4342
4343
4344
81ecdfbb
RW
4345# Check whether --enable-got was given.
4346if test "${enable_got+set}" = set; then :
4347 enableval=$enable_got; case "${enableval}" in
7fb9f789 4348 target | single | negative | multigot) got_handling=$enableval ;;
81ecdfbb 4349 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
7fb9f789
NC
4350esac
4351else
4352 got_handling=target
81ecdfbb
RW
4353fi
4354
7fb9f789
NC
4355
4356case "${got_handling}" in
4357 target)
4358
81ecdfbb 4359$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
7fb9f789
NC
4360 ;;
4361 single)
4362
81ecdfbb 4363$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
7fb9f789
NC
4364 ;;
4365 negative)
4366
81ecdfbb 4367$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
7fb9f789
NC
4368 ;;
4369 multigot)
4370
81ecdfbb 4371$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
7fb9f789 4372 ;;
81ecdfbb 4373 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
7fb9f789
NC
4374esac
4375
397841b5
AM
4376ac_ext=c
4377ac_cpp='$CPP $CPPFLAGS'
4378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380ac_compiler_gnu=$ac_cv_c_compiler_gnu
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4382$as_echo_n "checking how to run the C preprocessor... " >&6; }
4383# On Suns, sometimes $CPP names a directory.
4384if test -n "$CPP" && test -d "$CPP"; then
4385 CPP=
ce2cded5 4386fi
397841b5
AM
4387if test -z "$CPP"; then
4388 if test "${ac_cv_prog_CPP+set}" = set; then :
4389 $as_echo_n "(cached) " >&6
4390else
4391 # Double quotes because CPP needs to be expanded
4392 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4393 do
4394 ac_preproc_ok=false
4395for ac_c_preproc_warn_flag in '' yes
4396do
4397 # Use a header file that comes with gcc, so configuring glibc
4398 # with a fresh cross-compiler works.
4399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4400 # <limits.h> exists even on freestanding compilers.
4401 # On the NeXT, cc -E runs the code through the compiler's parser,
4402 # not just through cpp. "Syntax error" is here to catch this case.
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404/* end confdefs.h. */
4405#ifdef __STDC__
4406# include <limits.h>
4407#else
4408# include <assert.h>
4409#endif
4410 Syntax error
4411_ACEOF
4412if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4413
397841b5
AM
4414else
4415 # Broken: fails on valid input.
4416continue
ce2cded5 4417fi
397841b5 4418rm -f conftest.err conftest.$ac_ext
d7040cdb 4419
397841b5
AM
4420 # OK, works on sane cases. Now check whether nonexistent headers
4421 # can be detected and how.
4422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423/* end confdefs.h. */
4424#include <ac_nonexistent.h>
4425_ACEOF
4426if ac_fn_c_try_cpp "$LINENO"; then :
4427 # Broken: success on invalid input.
4428continue
4429else
4430 # Passes both tests.
4431ac_preproc_ok=:
4432break
ce2cded5 4433fi
397841b5 4434rm -f conftest.err conftest.$ac_ext
d7040cdb 4435
397841b5
AM
4436done
4437# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4438rm -f conftest.err conftest.$ac_ext
4439if $ac_preproc_ok; then :
4440 break
81ecdfbb
RW
4441fi
4442
397841b5
AM
4443 done
4444 ac_cv_prog_CPP=$CPP
d7040cdb 4445
ce2cded5 4446fi
397841b5
AM
4447 CPP=$ac_cv_prog_CPP
4448else
4449 ac_cv_prog_CPP=$CPP
4450fi
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4452$as_echo "$CPP" >&6; }
4453ac_preproc_ok=false
4454for ac_c_preproc_warn_flag in '' yes
4455do
4456 # Use a header file that comes with gcc, so configuring glibc
4457 # with a fresh cross-compiler works.
4458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4459 # <limits.h> exists even on freestanding compilers.
4460 # On the NeXT, cc -E runs the code through the compiler's parser,
4461 # not just through cpp. "Syntax error" is here to catch this case.
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463/* end confdefs.h. */
4464#ifdef __STDC__
4465# include <limits.h>
4466#else
4467# include <assert.h>
4468#endif
4469 Syntax error
4470_ACEOF
4471if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4472
397841b5
AM
4473else
4474 # Broken: fails on valid input.
4475continue
4476fi
4477rm -f conftest.err conftest.$ac_ext
2469cfa2 4478
397841b5
AM
4479 # OK, works on sane cases. Now check whether nonexistent headers
4480 # can be detected and how.
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482/* end confdefs.h. */
4483#include <ac_nonexistent.h>
4484_ACEOF
4485if ac_fn_c_try_cpp "$LINENO"; then :
4486 # Broken: success on invalid input.
4487continue
4488else
4489 # Passes both tests.
4490ac_preproc_ok=:
4491break
4492fi
4493rm -f conftest.err conftest.$ac_ext
d7040cdb 4494
397841b5
AM
4495done
4496# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4497rm -f conftest.err conftest.$ac_ext
4498if $ac_preproc_ok; then :
d7040cdb 4499
397841b5
AM
4500else
4501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4502$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4503as_fn_error "C preprocessor \"$CPP\" fails sanity check
4504See \`config.log' for more details." "$LINENO" 5; }
ce2cded5 4505fi
d7040cdb 4506
ce2cded5
L
4507ac_ext=c
4508ac_cpp='$CPP $CPPFLAGS'
4509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511ac_compiler_gnu=$ac_cv_c_compiler_gnu
397841b5
AM
4512
4513
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4515$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4516if test "${ac_cv_path_GREP+set}" = set; then :
81ecdfbb 4517 $as_echo_n "(cached) " >&6
d7040cdb 4518else
397841b5
AM
4519 if test -z "$GREP"; then
4520 ac_path_GREP_found=false
4521 # Loop through the user's path and test for each of PROGNAME-LIST
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
d7040cdb
SE
4524do
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
397841b5 4527 for ac_prog in grep ggrep; do
81ecdfbb 4528 for ac_exec_ext in '' $ac_executable_extensions; do
397841b5
AM
4529 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4530 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4531# Check for GNU ac_path_GREP and select it if it is found.
4532 # Check for GNU $ac_path_GREP
4533case `"$ac_path_GREP" --version 2>&1` in
4534*GNU*)
4535 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4536*)
4537 ac_count=0
4538 $as_echo_n 0123456789 >"conftest.in"
4539 while :
4540 do
4541 cat "conftest.in" "conftest.in" >"conftest.tmp"
4542 mv "conftest.tmp" "conftest.in"
4543 cp "conftest.in" "conftest.nl"
4544 $as_echo 'GREP' >> "conftest.nl"
4545 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4546 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4547 as_fn_arith $ac_count + 1 && ac_count=$as_val
4548 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4549 # Best one so far, save it but keep looking for a better one
4550 ac_cv_path_GREP="$ac_path_GREP"
4551 ac_path_GREP_max=$ac_count
4552 fi
4553 # 10*(2^10) chars as input seems more than enough
4554 test $ac_count -gt 10 && break
81ecdfbb 4555 done
397841b5
AM
4556 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4557esac
d7040cdb 4558
397841b5
AM
4559 $ac_path_GREP_found && break 3
4560 done
4561 done
4562 done
4563IFS=$as_save_IFS
4564 if test -z "$ac_cv_path_GREP"; then
4565 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4566 fi
d7040cdb 4567else
397841b5 4568 ac_cv_path_GREP=$GREP
d7040cdb 4569fi
d7040cdb 4570
252b5132 4571fi
397841b5
AM
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4573$as_echo "$ac_cv_path_GREP" >&6; }
4574 GREP="$ac_cv_path_GREP"
4575
4576
4577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4578$as_echo_n "checking for egrep... " >&6; }
4579if test "${ac_cv_path_EGREP+set}" = set; then :
4580 $as_echo_n "(cached) " >&6
4581else
4582 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4583 then ac_cv_path_EGREP="$GREP -E"
4584 else
4585 if test -z "$EGREP"; then
4586 ac_path_EGREP_found=false
4587 # Loop through the user's path and test for each of PROGNAME-LIST
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4590do
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_prog in egrep; do
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4596 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4597# Check for GNU ac_path_EGREP and select it if it is found.
4598 # Check for GNU $ac_path_EGREP
4599case `"$ac_path_EGREP" --version 2>&1` in
4600*GNU*)
4601 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4602*)
4603 ac_count=0
4604 $as_echo_n 0123456789 >"conftest.in"
4605 while :
4606 do
4607 cat "conftest.in" "conftest.in" >"conftest.tmp"
4608 mv "conftest.tmp" "conftest.in"
4609 cp "conftest.in" "conftest.nl"
4610 $as_echo 'EGREP' >> "conftest.nl"
4611 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4612 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4613 as_fn_arith $ac_count + 1 && ac_count=$as_val
4614 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4615 # Best one so far, save it but keep looking for a better one
4616 ac_cv_path_EGREP="$ac_path_EGREP"
4617 ac_path_EGREP_max=$ac_count
4618 fi
4619 # 10*(2^10) chars as input seems more than enough
4620 test $ac_count -gt 10 && break
4621 done
4622 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4623esac
4624
4625 $ac_path_EGREP_found && break 3
4626 done
4627 done
4628 done
4629IFS=$as_save_IFS
4630 if test -z "$ac_cv_path_EGREP"; then
4631 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4632 fi
4633else
4634 ac_cv_path_EGREP=$EGREP
4635fi
4636
4637 fi
4638fi
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4640$as_echo "$ac_cv_path_EGREP" >&6; }
4641 EGREP="$ac_cv_path_EGREP"
4642
4643
4644
4645GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647/* end confdefs.h. */
4648__GNUC__
4649_ACEOF
4650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4651 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
4652
4653else
4654 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
4655fi
4656rm -f conftest*
4657
4658
4659# Check whether --enable-werror was given.
4660if test "${enable_werror+set}" = set; then :
4661 enableval=$enable_werror; case "${enableval}" in
4662 yes | y) ERROR_ON_WARNING="yes" ;;
4663 no | n) ERROR_ON_WARNING="no" ;;
4664 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4665 esac
4666fi
4667
4668
4669# Disable -Wformat by default when using gcc on mingw
4670case "${host}" in
4671 *-*-mingw32*)
4672 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4673 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
4674 fi
4675 ;;
4676 *) ;;
4677esac
4678
4679# Enable -Werror by default when using gcc
4680if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4681 ERROR_ON_WARNING=yes
4682fi
4683
4684NO_WERROR=
4685if test "${ERROR_ON_WARNING}" = yes ; then
4686 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4687 NO_WERROR="-Wno-error"
4688fi
4689
4690if test "${GCC}" = yes ; then
4691 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4692fi
4693
4694# Check whether --enable-build-warnings was given.
4695if test "${enable_build_warnings+set}" = set; then :
4696 enableval=$enable_build_warnings; case "${enableval}" in
4697 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4698 no) if test "${GCC}" = yes ; then
4699 WARN_CFLAGS="-w"
4700 fi;;
4701 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4702 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4703 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4704 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4705 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4706esac
4707fi
4708
4709
4710if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4711 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4712fi
4713
4714
4715
4716
4717
44350750
NC
4718
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
4720$as_echo_n "checking for LC_MESSAGES... " >&6; }
4721if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
4722 $as_echo_n "(cached) " >&6
4723else
4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725/* end confdefs.h. */
4726#include <locale.h>
4727int
4728main ()
4729{
4730return LC_MESSAGES
4731 ;
4732 return 0;
4733}
4734_ACEOF
4735if ac_fn_c_try_link "$LINENO"; then :
4736 am_cv_val_LC_MESSAGES=yes
4737else
4738 am_cv_val_LC_MESSAGES=no
4739fi
4740rm -f core conftest.err conftest.$ac_objext \
4741 conftest$ac_exeext conftest.$ac_ext
4742fi
4743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
4744$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
4745 if test $am_cv_val_LC_MESSAGES = yes; then
4746
4747$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
4748
4749 fi
4750
4751
397841b5
AM
4752ac_config_headers="$ac_config_headers config.h:config.in"
4753
4754
df7b86aa
NC
4755# PR 14072
4756
4757
397841b5
AM
4758if test -z "$target" ; then
4759 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
4760fi
4761if test -z "$host" ; then
4762 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
4763fi
4764
4765# host-specific stuff:
4766
4767ac_ext=c
4768ac_cpp='$CPP $CPPFLAGS'
4769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4771ac_compiler_gnu=$ac_cv_c_compiler_gnu
4772if test -n "$ac_tool_prefix"; then
4773 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4774set dummy ${ac_tool_prefix}gcc; ac_word=$2
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4776$as_echo_n "checking for $ac_word... " >&6; }
4777if test "${ac_cv_prog_CC+set}" = set; then :
4778 $as_echo_n "(cached) " >&6
4779else
4780 if test -n "$CC"; then
4781 ac_cv_prog_CC="$CC" # Let the user override the test.
4782else
4783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784for as_dir in $PATH
4785do
4786 IFS=$as_save_IFS
4787 test -z "$as_dir" && as_dir=.
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 break 2
4793 fi
4794done
4795 done
4796IFS=$as_save_IFS
4797
4798fi
4799fi
4800CC=$ac_cv_prog_CC
4801if test -n "$CC"; then
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4803$as_echo "$CC" >&6; }
4804else
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806$as_echo "no" >&6; }
4807fi
4808
4809
4810fi
4811if test -z "$ac_cv_prog_CC"; then
4812 ac_ct_CC=$CC
4813 # Extract the first word of "gcc", so it can be a program name with args.
4814set dummy gcc; ac_word=$2
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816$as_echo_n "checking for $ac_word... " >&6; }
81ecdfbb
RW
4817if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
252b5132 4819else
ce2cded5
L
4820 if test -n "$ac_ct_CC"; then
4821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 4822else
ce2cded5
L
4823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824for as_dir in $PATH
4825do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4830 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4832 break 2
4833 fi
4834done
81ecdfbb
RW
4835 done
4836IFS=$as_save_IFS
4837
252b5132
RH
4838fi
4839fi
ce2cded5
L
4840ac_ct_CC=$ac_cv_prog_ac_ct_CC
4841if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4843$as_echo "$ac_ct_CC" >&6; }
252b5132 4844else
81ecdfbb
RW
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846$as_echo "no" >&6; }
252b5132 4847fi
ce2cded5 4848
81ecdfbb
RW
4849 if test "x$ac_ct_CC" = x; then
4850 CC=""
4851 else
4852 case $cross_compiling:$ac_tool_warned in
4853yes:)
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4856ac_tool_warned=yes ;;
4857esac
4858 CC=$ac_ct_CC
4859 fi
252b5132 4860else
ce2cded5 4861 CC="$ac_cv_prog_CC"
252b5132 4862fi
d7040cdb 4863
ce2cded5 4864if test -z "$CC"; then
81ecdfbb
RW
4865 if test -n "$ac_tool_prefix"; then
4866 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 4867set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869$as_echo_n "checking for $ac_word... " >&6; }
4870if test "${ac_cv_prog_CC+set}" = set; then :
4871 $as_echo_n "(cached) " >&6
252b5132 4872else
ce2cded5
L
4873 if test -n "$CC"; then
4874 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4875else
ce2cded5
L
4876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877for as_dir in $PATH
4878do
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4883 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4885 break 2
4886 fi
4887done
81ecdfbb
RW
4888 done
4889IFS=$as_save_IFS
ce2cded5 4890
252b5132
RH
4891fi
4892fi
ce2cded5
L
4893CC=$ac_cv_prog_CC
4894if test -n "$CC"; then
81ecdfbb
RW
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4896$as_echo "$CC" >&6; }
ce2cded5 4897else
81ecdfbb
RW
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899$as_echo "no" >&6; }
ce2cded5
L
4900fi
4901
ce2cded5 4902
81ecdfbb 4903 fi
ce2cded5
L
4904fi
4905if test -z "$CC"; then
4906 # Extract the first word of "cc", so it can be a program name with args.
4907set dummy cc; ac_word=$2
81ecdfbb
RW
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909$as_echo_n "checking for $ac_word... " >&6; }
4910if test "${ac_cv_prog_CC+set}" = set; then :
4911 $as_echo_n "(cached) " >&6
ce2cded5
L
4912else
4913 if test -n "$CC"; then
4914 ac_cv_prog_CC="$CC" # Let the user override the test.
4915else
4916 ac_prog_rejected=no
4917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918for as_dir in $PATH
4919do
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5
L
4924 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4925 ac_prog_rejected=yes
4926 continue
4927 fi
4928 ac_cv_prog_CC="cc"
81ecdfbb 4929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4930 break 2
4931 fi
4932done
81ecdfbb
RW
4933 done
4934IFS=$as_save_IFS
ce2cded5
L
4935
4936if test $ac_prog_rejected = yes; then
4937 # We found a bogon in the path, so make sure we never use it.
4938 set dummy $ac_cv_prog_CC
4939 shift
4940 if test $# != 0; then
4941 # We chose a different compiler from the bogus one.
4942 # However, it has the same basename, so the bogon will be chosen
4943 # first if we set CC to just the basename; use the full file name.
4944 shift
4945 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4946 fi
4947fi
4948fi
4949fi
4950CC=$ac_cv_prog_CC
4951if test -n "$CC"; then
81ecdfbb
RW
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4953$as_echo "$CC" >&6; }
ce2cded5 4954else
81ecdfbb
RW
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956$as_echo "no" >&6; }
ce2cded5
L
4957fi
4958
81ecdfbb 4959
ce2cded5
L
4960fi
4961if test -z "$CC"; then
d7040cdb 4962 if test -n "$ac_tool_prefix"; then
81ecdfbb 4963 for ac_prog in cl.exe
d7040cdb
SE
4964 do
4965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4966set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968$as_echo_n "checking for $ac_word... " >&6; }
4969if test "${ac_cv_prog_CC+set}" = set; then :
4970 $as_echo_n "(cached) " >&6
d7040cdb 4971else
ce2cded5
L
4972 if test -n "$CC"; then
4973 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb
SE
4974else
4975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976for as_dir in $PATH
4977do
4978 IFS=$as_save_IFS
4979 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4982 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
4984 break 2
4985 fi
4986done
81ecdfbb
RW
4987 done
4988IFS=$as_save_IFS
d7040cdb
SE
4989
4990fi
4991fi
ce2cded5
L
4992CC=$ac_cv_prog_CC
4993if test -n "$CC"; then
81ecdfbb
RW
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4995$as_echo "$CC" >&6; }
d7040cdb 4996else
81ecdfbb
RW
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998$as_echo "no" >&6; }
d7040cdb
SE
4999fi
5000
81ecdfbb 5001
ce2cded5 5002 test -n "$CC" && break
d7040cdb
SE
5003 done
5004fi
ce2cded5
L
5005if test -z "$CC"; then
5006 ac_ct_CC=$CC
81ecdfbb 5007 for ac_prog in cl.exe
d7040cdb
SE
5008do
5009 # Extract the first word of "$ac_prog", so it can be a program name with args.
5010set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012$as_echo_n "checking for $ac_word... " >&6; }
5013if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5014 $as_echo_n "(cached) " >&6
d7040cdb 5015else
ce2cded5
L
5016 if test -n "$ac_ct_CC"; then
5017 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
5018else
5019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020for as_dir in $PATH
5021do
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 5026 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
5028 break 2
5029 fi
5030done
81ecdfbb
RW
5031 done
5032IFS=$as_save_IFS
d7040cdb
SE
5033
5034fi
5035fi
ce2cded5
L
5036ac_ct_CC=$ac_cv_prog_ac_ct_CC
5037if test -n "$ac_ct_CC"; then
81ecdfbb
RW
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5039$as_echo "$ac_ct_CC" >&6; }
d7040cdb 5040else
81ecdfbb
RW
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042$as_echo "no" >&6; }
d7040cdb
SE
5043fi
5044
81ecdfbb 5045
ce2cded5 5046 test -n "$ac_ct_CC" && break
d7040cdb 5047done
d7040cdb 5048
81ecdfbb
RW
5049 if test "x$ac_ct_CC" = x; then
5050 CC=""
5051 else
5052 case $cross_compiling:$ac_tool_warned in
5053yes:)
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5056ac_tool_warned=yes ;;
5057esac
5058 CC=$ac_ct_CC
5059 fi
d7040cdb
SE
5060fi
5061
d7040cdb 5062fi
d7040cdb
SE
5063
5064
81ecdfbb
RW
5065test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5067as_fn_error "no acceptable C compiler found in \$PATH
5068See \`config.log' for more details." "$LINENO" 5; }
d7040cdb 5069
ce2cded5 5070# Provide some information about the compiler.
81ecdfbb
RW
5071$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5072set X $ac_compile
5073ac_compiler=$2
5074for ac_option in --version -v -V -qversion; do
5075 { { ac_try="$ac_compiler $ac_option >&5"
5076case "(($ac_try" in
5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5078 *) ac_try_echo=$ac_try;;
5079esac
5080eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5081$as_echo "$ac_try_echo"; } >&5
5082 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 5083 ac_status=$?
81ecdfbb
RW
5084 if test -s conftest.err; then
5085 sed '10a\
5086... rest of stderr output deleted ...
5087 10q' conftest.err >conftest.er1
5088 cat conftest.er1 >&5
5089 rm -f conftest.er1 conftest.err
5090 fi
5091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5092 test $ac_status = 0; }
5093done
d7040cdb 5094
81ecdfbb
RW
5095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5096$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5097if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
d7040cdb 5099else
81ecdfbb 5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 5101/* end confdefs.h. */
d7040cdb 5102
ce2cded5
L
5103int
5104main ()
5105{
5106#ifndef __GNUC__
5107 choke me
5108#endif
5109
5110 ;
5111 return 0;
5112}
5113_ACEOF
81ecdfbb 5114if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 5115 ac_compiler_gnu=yes
d7040cdb 5116else
81ecdfbb 5117 ac_compiler_gnu=no
d7040cdb 5118fi
81ecdfbb 5119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 5120ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7040cdb 5121
ce2cded5 5122fi
81ecdfbb
RW
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5124$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5125if test $ac_compiler_gnu = yes; then
5126 GCC=yes
5127else
5128 GCC=
5129fi
ce2cded5
L
5130ac_test_CFLAGS=${CFLAGS+set}
5131ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
5132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5133$as_echo_n "checking whether $CC accepts -g... " >&6; }
5134if test "${ac_cv_prog_cc_g+set}" = set; then :
5135 $as_echo_n "(cached) " >&6
5136else
5137 ac_save_c_werror_flag=$ac_c_werror_flag
5138 ac_c_werror_flag=yes
5139 ac_cv_prog_cc_g=no
5140 CFLAGS="-g"
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 5142/* end confdefs.h. */
d7040cdb 5143
ce2cded5
L
5144int
5145main ()
5146{
d7040cdb 5147
ce2cded5
L
5148 ;
5149 return 0;
5150}
5151_ACEOF
81ecdfbb 5152if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
5153 ac_cv_prog_cc_g=yes
5154else
81ecdfbb
RW
5155 CFLAGS=""
5156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157/* end confdefs.h. */
5158
5159int
5160main ()
5161{
5162
5163 ;
5164 return 0;
5165}
5166_ACEOF
5167if ac_fn_c_try_compile "$LINENO"; then :
5168
5169else
5170 ac_c_werror_flag=$ac_save_c_werror_flag
5171 CFLAGS="-g"
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173/* end confdefs.h. */
5174
5175int
5176main ()
5177{
d7040cdb 5178
81ecdfbb
RW
5179 ;
5180 return 0;
5181}
5182_ACEOF
5183if ac_fn_c_try_compile "$LINENO"; then :
5184 ac_cv_prog_cc_g=yes
5185fi
5186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5187fi
5188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 5189fi
81ecdfbb
RW
5190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5191 ac_c_werror_flag=$ac_save_c_werror_flag
ce2cded5 5192fi
81ecdfbb
RW
5193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5194$as_echo "$ac_cv_prog_cc_g" >&6; }
ce2cded5
L
5195if test "$ac_test_CFLAGS" = set; then
5196 CFLAGS=$ac_save_CFLAGS
5197elif test $ac_cv_prog_cc_g = yes; then
5198 if test "$GCC" = yes; then
5199 CFLAGS="-g -O2"
5200 else
5201 CFLAGS="-g"
5202 fi
d7040cdb 5203else
ce2cded5
L
5204 if test "$GCC" = yes; then
5205 CFLAGS="-O2"
5206 else
5207 CFLAGS=
5208 fi
d7040cdb 5209fi
81ecdfbb
RW
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5211$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5212if test "${ac_cv_prog_cc_c89+set}" = set; then :
5213 $as_echo_n "(cached) " >&6
d7040cdb 5214else
81ecdfbb 5215 ac_cv_prog_cc_c89=no
ce2cded5 5216ac_save_CC=$CC
81ecdfbb 5217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
5218/* end confdefs.h. */
5219#include <stdarg.h>
5220#include <stdio.h>
5221#include <sys/types.h>
5222#include <sys/stat.h>
5223/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5224struct buf { int x; };
5225FILE * (*rcsopen) (struct buf *, struct stat *, int);
5226static char *e (p, i)
5227 char **p;
5228 int i;
5229{
5230 return p[i];
5231}
5232static char *f (char * (*g) (char **, int), char **p, ...)
5233{
5234 char *s;
5235 va_list v;
5236 va_start (v,p);
5237 s = g (p, va_arg (v,int));
5238 va_end (v);
5239 return s;
5240}
d7040cdb 5241
ce2cded5
L
5242/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5243 function prototypes and stuff, but not '\xHH' hex character constants.
5244 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 5245 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
5246 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5247 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 5248 that's true only with -std. */
ce2cded5 5249int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 5250
81ecdfbb
RW
5251/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5252 inside strings and character constants. */
5253#define FOO(x) 'x'
5254int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5255
ce2cded5
L
5256int test (int i, double x);
5257struct s1 {int (*f) (int a);};
5258struct s2 {int (*f) (double a);};
5259int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5260int argc;
5261char **argv;
5262int
5263main ()
5264{
5265return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5266 ;
5267 return 0;
5268}
5269_ACEOF
81ecdfbb
RW
5270for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5271 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
5272do
5273 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
5274 if ac_fn_c_try_compile "$LINENO"; then :
5275 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 5276fi
81ecdfbb
RW
5277rm -f core conftest.err conftest.$ac_objext
5278 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 5279done
81ecdfbb 5280rm -f conftest.$ac_ext
ce2cded5 5281CC=$ac_save_CC
d7040cdb 5282
ce2cded5 5283fi
81ecdfbb
RW
5284# AC_CACHE_VAL
5285case "x$ac_cv_prog_cc_c89" in
5286 x)
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5288$as_echo "none needed" >&6; } ;;
5289 xno)
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5291$as_echo "unsupported" >&6; } ;;
ce2cded5 5292 *)
81ecdfbb
RW
5293 CC="$CC $ac_cv_prog_cc_c89"
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5295$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d7040cdb 5296esac
81ecdfbb 5297if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 5298
ce2cded5 5299fi
d7040cdb 5300
ce2cded5
L
5301ac_ext=c
5302ac_cpp='$CPP $CPPFLAGS'
5303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5305ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5306
3cb62297
L
5307ac_ext=cpp
5308ac_cpp='$CXXCPP $CPPFLAGS'
5309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5312if test -z "$CXX"; then
5313 if test -n "$CCC"; then
5314 CXX=$CCC
5315 else
5316 if test -n "$ac_tool_prefix"; then
5317 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5318 do
5319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5320set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5322$as_echo_n "checking for $ac_word... " >&6; }
5323if test "${ac_cv_prog_CXX+set}" = set; then :
81ecdfbb
RW
5324 $as_echo_n "(cached) " >&6
5325else
3cb62297
L
5326 if test -n "$CXX"; then
5327 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5328else
5329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330for as_dir in $PATH
5331do
5332 IFS=$as_save_IFS
5333 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5336 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 break 2
5339 fi
5340done
5341 done
5342IFS=$as_save_IFS
81ecdfbb 5343
3cb62297
L
5344fi
5345fi
5346CXX=$ac_cv_prog_CXX
5347if test -n "$CXX"; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5349$as_echo "$CXX" >&6; }
81ecdfbb 5350else
3cb62297
L
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352$as_echo "no" >&6; }
7357c5b6 5353fi
42ecbf5e 5354
81ecdfbb 5355
3cb62297
L
5356 test -n "$CXX" && break
5357 done
7357c5b6 5358fi
3cb62297
L
5359if test -z "$CXX"; then
5360 ac_ct_CXX=$CXX
5361 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5362do
5363 # Extract the first word of "$ac_prog", so it can be a program name with args.
5364set dummy $ac_prog; ac_word=$2
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366$as_echo_n "checking for $ac_word... " >&6; }
5367if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5368 $as_echo_n "(cached) " >&6
5369else
5370 if test -n "$ac_ct_CXX"; then
5371 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5372else
5373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374for as_dir in $PATH
5375do
5376 IFS=$as_save_IFS
5377 test -z "$as_dir" && as_dir=.
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5380 ac_cv_prog_ac_ct_CXX="$ac_prog"
5381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 break 2
5383 fi
5384done
5385 done
5386IFS=$as_save_IFS
252b5132 5387
3cb62297
L
5388fi
5389fi
5390ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5391if test -n "$ac_ct_CXX"; then
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5393$as_echo "$ac_ct_CXX" >&6; }
5394else
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396$as_echo "no" >&6; }
7357c5b6 5397fi
252b5132 5398
42ecbf5e 5399
3cb62297
L
5400 test -n "$ac_ct_CXX" && break
5401done
81ecdfbb 5402
3cb62297
L
5403 if test "x$ac_ct_CXX" = x; then
5404 CXX="g++"
5405 else
5406 case $cross_compiling:$ac_tool_warned in
5407yes:)
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5410ac_tool_warned=yes ;;
5411esac
5412 CXX=$ac_ct_CXX
5413 fi
7357c5b6 5414fi
ac48eca1 5415
3cb62297 5416 fi
7357c5b6 5417fi
3cb62297
L
5418# Provide some information about the compiler.
5419$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5420set X $ac_compile
5421ac_compiler=$2
5422for ac_option in --version -v -V -qversion; do
5423 { { ac_try="$ac_compiler $ac_option >&5"
5424case "(($ac_try" in
5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5427esac
5428eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5429$as_echo "$ac_try_echo"; } >&5
5430 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5431 ac_status=$?
5432 if test -s conftest.err; then
5433 sed '10a\
5434... rest of stderr output deleted ...
5435 10q' conftest.err >conftest.er1
5436 cat conftest.er1 >&5
5437 rm -f conftest.er1 conftest.err
5438 fi
5439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5440 test $ac_status = 0; }
5441done
d7040cdb 5442
3cb62297
L
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5444$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5445if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5446 $as_echo_n "(cached) " >&6
7357c5b6 5447else
81ecdfbb 5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 5449/* end confdefs.h. */
d7040cdb 5450
7357c5b6
AM
5451int
5452main ()
5453{
3cb62297
L
5454#ifndef __GNUC__
5455 choke me
5456#endif
5457
5458 ;
81ecdfbb 5459 return 0;
7357c5b6
AM
5460}
5461_ACEOF
3cb62297
L
5462if ac_fn_cxx_try_compile "$LINENO"; then :
5463 ac_compiler_gnu=yes
81ecdfbb 5464else
3cb62297 5465 ac_compiler_gnu=no
7357c5b6 5466fi
3cb62297
L
5467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
81ecdfbb 5469
7357c5b6 5470fi
3cb62297
L
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5472$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5473if test $ac_compiler_gnu = yes; then
5474 GXX=yes
5475else
5476 GXX=
7357c5b6 5477fi
3cb62297
L
5478ac_test_CXXFLAGS=${CXXFLAGS+set}
5479ac_save_CXXFLAGS=$CXXFLAGS
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5481$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5482if test "${ac_cv_prog_cxx_g+set}" = set; then :
5483 $as_echo_n "(cached) " >&6
5484else
5485 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5486 ac_cxx_werror_flag=yes
5487 ac_cv_prog_cxx_g=no
5488 CXXFLAGS="-g"
5489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490/* end confdefs.h. */
252b5132 5491
3cb62297
L
5492int
5493main ()
5494{
252b5132 5495
3cb62297
L
5496 ;
5497 return 0;
5498}
7357c5b6 5499_ACEOF
3cb62297
L
5500if ac_fn_cxx_try_compile "$LINENO"; then :
5501 ac_cv_prog_cxx_g=yes
5502else
5503 CXXFLAGS=""
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505/* end confdefs.h. */
42ecbf5e 5506
3cb62297
L
5507int
5508main ()
5509{
42ecbf5e 5510
3cb62297
L
5511 ;
5512 return 0;
5513}
5514_ACEOF
5515if ac_fn_cxx_try_compile "$LINENO"; then :
42ecbf5e 5516
3cb62297
L
5517else
5518 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5519 CXXFLAGS="-g"
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521/* end confdefs.h. */
42ecbf5e 5522
3cb62297
L
5523int
5524main ()
5525{
42ecbf5e 5526
3cb62297
L
5527 ;
5528 return 0;
5529}
5530_ACEOF
5531if ac_fn_cxx_try_compile "$LINENO"; then :
5532 ac_cv_prog_cxx_g=yes
5533fi
5534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535fi
5536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537fi
5538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5540fi
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5542$as_echo "$ac_cv_prog_cxx_g" >&6; }
5543if test "$ac_test_CXXFLAGS" = set; then
5544 CXXFLAGS=$ac_save_CXXFLAGS
5545elif test $ac_cv_prog_cxx_g = yes; then
5546 if test "$GXX" = yes; then
5547 CXXFLAGS="-g -O2"
5548 else
5549 CXXFLAGS="-g"
5550 fi
ce2cded5 5551else
3cb62297
L
5552 if test "$GXX" = yes; then
5553 CXXFLAGS="-O2"
5554 else
5555 CXXFLAGS=
5556 fi
ce2cded5 5557fi
3cb62297
L
5558ac_ext=c
5559ac_cpp='$CPP $CPPFLAGS'
5560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5562ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 5563
3cb62297 5564depcc="$CXX" am_compiler_list=
e5a52504 5565
3cb62297
L
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5567$as_echo_n "checking dependency style of $depcc... " >&6; }
5568if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5569 $as_echo_n "(cached) " >&6
5570else
5571 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5572 # We make a subdir and do the tests there. Otherwise we can end up
5573 # making bogus files that we don't know about and never remove. For
5574 # instance it was reported that on HP-UX the gcc test will end up
5575 # making a dummy file named `D' -- because `-MD' means `put the output
5576 # in D'.
5577 mkdir conftest.dir
5578 # Copy depcomp to subdir because otherwise we won't find it if we're
5579 # using a relative directory.
5580 cp "$am_depcomp" conftest.dir
5581 cd conftest.dir
5582 # We will build objects and dependencies in a subdirectory because
5583 # it helps to detect inapplicable dependency modes. For instance
5584 # both Tru64's cc and ICC support -MD to output dependencies as a
5585 # side effect of compilation, but ICC will put the dependencies in
5586 # the current directory while Tru64 will put them in the object
5587 # directory.
5588 mkdir sub
7357c5b6 5589
3cb62297
L
5590 am_cv_CXX_dependencies_compiler_type=none
5591 if test "$am_compiler_list" = ""; then
5592 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5593 fi
5594 am__universal=false
5595 case " $depcc " in #(
5596 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5597 esac
d7040cdb 5598
3cb62297
L
5599 for depmode in $am_compiler_list; do
5600 # Setup a source with many dependencies, because some compilers
5601 # like to wrap large dependency lists on column 80 (with \), and
5602 # we should not choose a depcomp mode which is confused by this.
5603 #
5604 # We need to recreate these files for each test, as the compiler may
5605 # overwrite some of them when testing with obscure command lines.
5606 # This happens at least with the AIX C compiler.
5607 : > sub/conftest.c
5608 for i in 1 2 3 4 5 6; do
5609 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5610 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5611 # Solaris 8's {/usr,}/bin/sh.
5612 touch sub/conftst$i.h
5613 done
5614 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
d7040cdb 5615
3cb62297
L
5616 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5617 # mode. It turns out that the SunPro C++ compiler does not properly
5618 # handle `-M -o', and we need to detect this. Also, some Intel
5619 # versions had trouble with output in subdirs
5620 am__obj=sub/conftest.${OBJEXT-o}
5621 am__minus_obj="-o $am__obj"
5622 case $depmode in
5623 gcc)
5624 # This depmode causes a compiler race in universal mode.
5625 test "$am__universal" = false || continue
5626 ;;
5627 nosideeffect)
5628 # after this tag, mechanisms are not by side-effect, so they'll
5629 # only be used when explicitly requested
5630 if test "x$enable_dependency_tracking" = xyes; then
5631 continue
5632 else
5633 break
5634 fi
5635 ;;
5636 msvisualcpp | msvcmsys)
5637 # This compiler won't grok `-c -o', but also, the minuso test has
5638 # not run yet. These depmodes are late enough in the game, and
5639 # so weak that their functioning should not be impacted.
5640 am__obj=conftest.${OBJEXT-o}
5641 am__minus_obj=
5642 ;;
5643 none) break ;;
5644 esac
5645 if depmode=$depmode \
5646 source=sub/conftest.c object=$am__obj \
5647 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5648 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5649 >/dev/null 2>conftest.err &&
5650 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5651 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5652 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5653 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5654 # icc doesn't choke on unknown options, it will just issue warnings
5655 # or remarks (even with -Werror). So we grep stderr for any message
5656 # that says an option was ignored or not supported.
5657 # When given -MP, icc 7.0 and 7.1 complain thusly:
5658 # icc: Command line warning: ignoring option '-M'; no argument required
5659 # The diagnosis changed in icc 8.0:
5660 # icc: Command line remark: option '-MP' not supported
5661 if (grep 'ignoring option' conftest.err ||
5662 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5663 am_cv_CXX_dependencies_compiler_type=$depmode
5664 break
5665 fi
5666 fi
5667 done
d7040cdb 5668
3cb62297
L
5669 cd ..
5670 rm -rf conftest.dir
5671else
5672 am_cv_CXX_dependencies_compiler_type=none
5673fi
d7040cdb 5674
3cb62297
L
5675fi
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5677$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5678CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
d7040cdb 5679
3cb62297
L
5680 if
5681 test "x$enable_dependency_tracking" != xno \
5682 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5683 am__fastdepCXX_TRUE=
5684 am__fastdepCXX_FALSE='#'
5685else
5686 am__fastdepCXX_TRUE='#'
5687 am__fastdepCXX_FALSE=
5688fi
d7040cdb 5689
d7040cdb 5690
3cb62297
L
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5692$as_echo_n "checking for ANSI C header files... " >&6; }
5693if test "${ac_cv_header_stdc+set}" = set; then :
81ecdfbb 5694 $as_echo_n "(cached) " >&6
ce2cded5 5695else
81ecdfbb 5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 5697/* end confdefs.h. */
3cb62297
L
5698#include <stdlib.h>
5699#include <stdarg.h>
5700#include <string.h>
5701#include <float.h>
7357c5b6 5702
7357c5b6
AM
5703int
5704main ()
5705{
5706
5707 ;
5708 return 0;
5709}
5710_ACEOF
81ecdfbb 5711if ac_fn_c_try_compile "$LINENO"; then :
3cb62297 5712 ac_cv_header_stdc=yes
ce2cded5 5713else
3cb62297 5714 ac_cv_header_stdc=no
ce2cded5 5715fi
81ecdfbb 5716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 5717
3cb62297
L
5718if test $ac_cv_header_stdc = yes; then
5719 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721/* end confdefs.h. */
5722#include <string.h>
7357c5b6 5723
3cb62297
L
5724_ACEOF
5725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5726 $EGREP "memchr" >/dev/null 2>&1; then :
d053aef8 5727
3cb62297
L
5728else
5729 ac_cv_header_stdc=no
5730fi
5731rm -f conftest*
da2f07f1 5732
3cb62297 5733fi
3388710e 5734
3cb62297
L
5735if test $ac_cv_header_stdc = yes; then
5736 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5738/* end confdefs.h. */
5739#include <stdlib.h>
3388710e 5740
3cb62297
L
5741_ACEOF
5742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5743 $EGREP "free" >/dev/null 2>&1; then :
3388710e 5744
3cb62297
L
5745else
5746 ac_cv_header_stdc=no
5747fi
5748rm -f conftest*
5749
5750fi
5751
5752if test $ac_cv_header_stdc = yes; then
5753 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5754 if test "$cross_compiling" = yes; then :
5755 :
5756else
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758/* end confdefs.h. */
5759#include <ctype.h>
5760#include <stdlib.h>
5761#if ((' ' & 0x0FF) == 0x020)
5762# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5763# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5764#else
5765# define ISLOWER(c) \
5766 (('a' <= (c) && (c) <= 'i') \
5767 || ('j' <= (c) && (c) <= 'r') \
5768 || ('s' <= (c) && (c) <= 'z'))
5769# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5770#endif
5771
5772#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5773int
5774main ()
5775{
5776 int i;
5777 for (i = 0; i < 256; i++)
5778 if (XOR (islower (i), ISLOWER (i))
5779 || toupper (i) != TOUPPER (i))
5780 return 2;
5781 return 0;
5782}
5783_ACEOF
5784if ac_fn_c_try_run "$LINENO"; then :
5785
5786else
5787 ac_cv_header_stdc=no
5788fi
5789rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5790 conftest.$ac_objext conftest.beam conftest.$ac_ext
5791fi
5792
5793fi
5794fi
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5796$as_echo "$ac_cv_header_stdc" >&6; }
5797if test $ac_cv_header_stdc = yes; then
5798
5799$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5800
5801fi
5802
5803# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5804for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5805 inttypes.h stdint.h unistd.h
5806do :
5807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5808ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5809"
5810eval as_val=\$$as_ac_Header
5811 if test "x$as_val" = x""yes; then :
5812 cat >>confdefs.h <<_ACEOF
5813#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5814_ACEOF
5815
5816fi
5817
5818done
5819
5820
5821
5822 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5823if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5824 MINIX=yes
5825else
5826 MINIX=
5827fi
5828
5829
5830 if test "$MINIX" = yes; then
5831
5832$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5833
5834
5835$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5836
5837
5838$as_echo "#define _MINIX 1" >>confdefs.h
5839
5840 fi
5841
5842
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5844$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5845if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5846 $as_echo_n "(cached) " >&6
5847else
5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849/* end confdefs.h. */
5850
5851# define __EXTENSIONS__ 1
5852 $ac_includes_default
5853int
5854main ()
5855{
5856
5857 ;
5858 return 0;
5859}
5860_ACEOF
5861if ac_fn_c_try_compile "$LINENO"; then :
5862 ac_cv_safe_to_define___extensions__=yes
5863else
5864 ac_cv_safe_to_define___extensions__=no
5865fi
5866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5867fi
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5869$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5870 test $ac_cv_safe_to_define___extensions__ = yes &&
5871 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5872
5873 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5874
5875 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5876
5877 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5878
5879 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5880
5881
5882
5883
5884
5885# The tests for host and target for $enable_largefile require
5886# canonical names.
5887
5888
5889
5890# As the $enable_largefile decision depends on --enable-plugins we must set it
5891# even in directories otherwise not depending on the $plugins option.
da2f07f1
JK
5892
5893
5894# Check whether --enable-plugins was given.
5895if test "${enable_plugins+set}" = set; then :
5896 enableval=$enable_plugins; case "${enableval}" in
5897 yes | "") plugins=yes ;;
5898 no) plugins=no ;;
5899 *) plugins=yes ;;
5900 esac
5901else
5902 plugins=no
5903fi
5904
5905
5906
5907case "${host}" in
5908 sparc-*-solaris*|i[3-7]86-*-solaris*)
5909 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5910 # are mutually exclusive; and without procfs support, the bfd/ elf module
5911 # cannot provide certain routines such as elfcore_write_prpsinfo
5912 # or elfcore_write_prstatus. So unless the user explicitly requested
5913 # large-file support through the --enable-largefile switch, disable
5914 # large-file support in favor of procfs support.
5915 test "${target}" = "${host}" -a "x$plugins" = xno \
5916 && : ${enable_largefile="no"}
5917 ;;
5918esac
5919
81ecdfbb
RW
5920# Check whether --enable-largefile was given.
5921if test "${enable_largefile+set}" = set; then :
5922 enableval=$enable_largefile;
5923fi
5924
d053aef8
JK
5925if test "$enable_largefile" != no; then
5926
81ecdfbb
RW
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5928$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5929if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
d053aef8
JK
5931else
5932 ac_cv_sys_largefile_CC=no
5933 if test "$GCC" != yes; then
5934 ac_save_CC=$CC
5935 while :; do
81ecdfbb
RW
5936 # IRIX 6.2 and later do not support large files by default,
5937 # so use the C compiler's -n32 option if that helps.
5938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5939/* end confdefs.h. */
5940#include <sys/types.h>
5941 /* Check that off_t can represent 2**63 - 1 correctly.
5942 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5943 since some C++ compilers masquerading as C compilers
5944 incorrectly reject 9223372036854775807. */
5945#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5946 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5947 && LARGE_OFF_T % 2147483647 == 1)
5948 ? 1 : -1];
5949int
5950main ()
5951{
5952
5953 ;
5954 return 0;
5955}
5956_ACEOF
81ecdfbb 5957 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5958 break
d053aef8 5959fi
81ecdfbb
RW
5960rm -f core conftest.err conftest.$ac_objext
5961 CC="$CC -n32"
5962 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5963 ac_cv_sys_largefile_CC=' -n32'; break
d053aef8 5964fi
81ecdfbb 5965rm -f core conftest.err conftest.$ac_objext
d053aef8
JK
5966 break
5967 done
5968 CC=$ac_save_CC
5969 rm -f conftest.$ac_ext
5970 fi
5971fi
81ecdfbb
RW
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5973$as_echo "$ac_cv_sys_largefile_CC" >&6; }
d053aef8
JK
5974 if test "$ac_cv_sys_largefile_CC" != no; then
5975 CC=$CC$ac_cv_sys_largefile_CC
5976 fi
5977
81ecdfbb
RW
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5979$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5980if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5981 $as_echo_n "(cached) " >&6
d053aef8
JK
5982else
5983 while :; do
81ecdfbb 5984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5985/* end confdefs.h. */
5986#include <sys/types.h>
5987 /* Check that off_t can represent 2**63 - 1 correctly.
5988 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5989 since some C++ compilers masquerading as C compilers
5990 incorrectly reject 9223372036854775807. */
5991#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5992 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5993 && LARGE_OFF_T % 2147483647 == 1)
5994 ? 1 : -1];
5995int
5996main ()
5997{
5998
5999 ;
6000 return 0;
6001}
6002_ACEOF
81ecdfbb
RW
6003if ac_fn_c_try_compile "$LINENO"; then :
6004 ac_cv_sys_file_offset_bits=no; break
d053aef8 6005fi
81ecdfbb
RW
6006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
6008/* end confdefs.h. */
6009#define _FILE_OFFSET_BITS 64
6010#include <sys/types.h>
6011 /* Check that off_t can represent 2**63 - 1 correctly.
6012 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6013 since some C++ compilers masquerading as C compilers
6014 incorrectly reject 9223372036854775807. */
6015#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6016 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6017 && LARGE_OFF_T % 2147483647 == 1)
6018 ? 1 : -1];
6019int
6020main ()
6021{
6022
6023 ;
6024 return 0;
6025}
6026_ACEOF
81ecdfbb 6027if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 6028 ac_cv_sys_file_offset_bits=64; break
d053aef8 6029fi
81ecdfbb
RW
6030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031 ac_cv_sys_file_offset_bits=unknown
d053aef8
JK
6032 break
6033done
6034fi
81ecdfbb
RW
6035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6036$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6037case $ac_cv_sys_file_offset_bits in #(
6038 no | unknown) ;;
6039 *)
d053aef8
JK
6040cat >>confdefs.h <<_ACEOF
6041#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6042_ACEOF
81ecdfbb
RW
6043;;
6044esac
6045rm -rf conftest*
6046 if test $ac_cv_sys_file_offset_bits = unknown; then
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6048$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6049if test "${ac_cv_sys_large_files+set}" = set; then :
6050 $as_echo_n "(cached) " >&6
d053aef8
JK
6051else
6052 while :; do
81ecdfbb 6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
6054/* end confdefs.h. */
6055#include <sys/types.h>
6056 /* Check that off_t can represent 2**63 - 1 correctly.
6057 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6058 since some C++ compilers masquerading as C compilers
6059 incorrectly reject 9223372036854775807. */
6060#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6061 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6062 && LARGE_OFF_T % 2147483647 == 1)
6063 ? 1 : -1];
6064int
6065main ()
6066{
6067
6068 ;
6069 return 0;
6070}
6071_ACEOF
81ecdfbb
RW
6072if ac_fn_c_try_compile "$LINENO"; then :
6073 ac_cv_sys_large_files=no; break
d053aef8 6074fi
81ecdfbb
RW
6075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
6077/* end confdefs.h. */
6078#define _LARGE_FILES 1
6079#include <sys/types.h>
6080 /* Check that off_t can represent 2**63 - 1 correctly.
6081 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6082 since some C++ compilers masquerading as C compilers
6083 incorrectly reject 9223372036854775807. */
6084#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6085 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6086 && LARGE_OFF_T % 2147483647 == 1)
6087 ? 1 : -1];
6088int
6089main ()
6090{
6091
6092 ;
6093 return 0;
6094}
6095_ACEOF
81ecdfbb 6096if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 6097 ac_cv_sys_large_files=1; break
d053aef8 6098fi
81ecdfbb
RW
6099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100 ac_cv_sys_large_files=unknown
d053aef8
JK
6101 break
6102done
6103fi
81ecdfbb
RW
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6105$as_echo "$ac_cv_sys_large_files" >&6; }
6106case $ac_cv_sys_large_files in #(
6107 no | unknown) ;;
6108 *)
d053aef8
JK
6109cat >>confdefs.h <<_ACEOF
6110#define _LARGE_FILES $ac_cv_sys_large_files
6111_ACEOF
81ecdfbb
RW
6112;;
6113esac
6114rm -rf conftest*
6115 fi
d053aef8
JK
6116fi
6117
42ecbf5e 6118
42ecbf5e 6119
da2f07f1 6120
b214d478
SE
6121case `pwd` in
6122 *\ * | *\ *)
81ecdfbb
RW
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6124$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
b214d478 6125esac
252b5132 6126
42ecbf5e 6127
d7040cdb 6128
3725885a
RW
6129macro_version='2.2.7a'
6130macro_revision='1.3134'
d7040cdb 6131
d7040cdb
SE
6132
6133
d7040cdb 6134
d7040cdb 6135
42ecbf5e 6136
d7040cdb 6137
252b5132 6138
252b5132 6139
252b5132 6140
252b5132
RH
6141
6142
ce2cded5 6143
b214d478 6144ltmain="$ac_aux_dir/ltmain.sh"
ce2cded5 6145
3725885a
RW
6146# Backslashify metacharacters that are still active within
6147# double-quoted strings.
6148sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6149
6150# Same as above, but do not quote variable references.
6151double_quote_subst='s/\(["`\\]\)/\\\1/g'
6152
6153# Sed substitution to delay expansion of an escaped shell variable in a
6154# double_quote_subst'ed string.
6155delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6156
6157# Sed substitution to delay expansion of an escaped single quote.
6158delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6159
6160# Sed substitution to avoid accidental globbing in evaled expressions
6161no_glob_subst='s/\*/\\\*/g'
6162
6163ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6164ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6165ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6166
6167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6168$as_echo_n "checking how to print strings... " >&6; }
6169# Test print first, because it will be a builtin if present.
6170if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6171 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6172 ECHO='print -r --'
6173elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6174 ECHO='printf %s\n'
6175else
6176 # Use this function as a fallback that always works.
6177 func_fallback_echo ()
6178 {
6179 eval 'cat <<_LTECHO_EOF
6180$1
6181_LTECHO_EOF'
6182 }
6183 ECHO='func_fallback_echo'
6184fi
6185
6186# func_echo_all arg...
6187# Invoke $ECHO with all args, space-separated.
6188func_echo_all ()
6189{
6190 $ECHO ""
6191}
6192
6193case "$ECHO" in
6194 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6195$as_echo "printf" >&6; } ;;
6196 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6197$as_echo "print -r" >&6; } ;;
6198 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6199$as_echo "cat" >&6; } ;;
6200esac
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
81ecdfbb
RW
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6216$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6217if test "${ac_cv_path_SED+set}" = set; then :
6218 $as_echo_n "(cached) " >&6
6219else
6220 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6221 for ac_i in 1 2 3 4 5 6 7; do
6222 ac_script="$ac_script$as_nl$ac_script"
6223 done
6224 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6225 { ac_script=; unset ac_script;}
6226 if test -z "$SED"; then
6227 ac_path_SED_found=false
6228 # Loop through the user's path and test for each of PROGNAME-LIST
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
6230for as_dir in $PATH
6231do
6232 IFS=$as_save_IFS
6233 test -z "$as_dir" && as_dir=.
81ecdfbb 6234 for ac_prog in sed gsed; do
7357c5b6 6235 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
6236 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6237 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6238# Check for GNU ac_path_SED and select it if it is found.
6239 # Check for GNU $ac_path_SED
6240case `"$ac_path_SED" --version 2>&1` in
6241*GNU*)
6242 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6243*)
6244 ac_count=0
6245 $as_echo_n 0123456789 >"conftest.in"
6246 while :
6247 do
6248 cat "conftest.in" "conftest.in" >"conftest.tmp"
6249 mv "conftest.tmp" "conftest.in"
6250 cp "conftest.in" "conftest.nl"
6251 $as_echo '' >> "conftest.nl"
6252 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6253 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6254 as_fn_arith $ac_count + 1 && ac_count=$as_val
6255 if test $ac_count -gt ${ac_path_SED_max-0}; then
6256 # Best one so far, save it but keep looking for a better one
6257 ac_cv_path_SED="$ac_path_SED"
6258 ac_path_SED_max=$ac_count
6259 fi
6260 # 10*(2^10) chars as input seems more than enough
6261 test $ac_count -gt 10 && break
6262 done
6263 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6264esac
6265
6266 $ac_path_SED_found && break 3
7357c5b6
AM
6267 done
6268 done
81ecdfbb 6269 done
7357c5b6 6270IFS=$as_save_IFS
81ecdfbb
RW
6271 if test -z "$ac_cv_path_SED"; then
6272 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
ce2cded5 6273 fi
81ecdfbb
RW
6274else
6275 ac_cv_path_SED=$SED
7357c5b6 6276fi
20e95c23 6277
81ecdfbb
RW
6278fi
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6280$as_echo "$ac_cv_path_SED" >&6; }
6281 SED="$ac_cv_path_SED"
6282 rm -f conftest.sed
20e95c23 6283
7357c5b6
AM
6284test -z "$SED" && SED=sed
6285Xsed="$SED -e 1s/^X//"
20e95c23
DJ
6286
6287
6288
6289
6290
6291
20e95c23 6292
20e95c23 6293
d7040cdb 6294
d7040cdb 6295
7357c5b6 6296
81ecdfbb
RW
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6298$as_echo_n "checking for fgrep... " >&6; }
6299if test "${ac_cv_path_FGREP+set}" = set; then :
6300 $as_echo_n "(cached) " >&6
7357c5b6 6301else
81ecdfbb
RW
6302 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6303 then ac_cv_path_FGREP="$GREP -F"
6304 else
6305 if test -z "$FGREP"; then
6306 ac_path_FGREP_found=false
6307 # Loop through the user's path and test for each of PROGNAME-LIST
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6310do
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
6313 for ac_prog in fgrep; do
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6316 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6317# Check for GNU ac_path_FGREP and select it if it is found.
6318 # Check for GNU $ac_path_FGREP
6319case `"$ac_path_FGREP" --version 2>&1` in
6320*GNU*)
6321 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6322*)
6323 ac_count=0
6324 $as_echo_n 0123456789 >"conftest.in"
6325 while :
6326 do
6327 cat "conftest.in" "conftest.in" >"conftest.tmp"
6328 mv "conftest.tmp" "conftest.in"
6329 cp "conftest.in" "conftest.nl"
6330 $as_echo 'FGREP' >> "conftest.nl"
6331 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6333 as_fn_arith $ac_count + 1 && ac_count=$as_val
6334 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6335 # Best one so far, save it but keep looking for a better one
6336 ac_cv_path_FGREP="$ac_path_FGREP"
6337 ac_path_FGREP_max=$ac_count
7357c5b6 6338 fi
81ecdfbb
RW
6339 # 10*(2^10) chars as input seems more than enough
6340 test $ac_count -gt 10 && break
6341 done
6342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6343esac
6344
6345 $ac_path_FGREP_found && break 3
6346 done
6347 done
6348 done
6349IFS=$as_save_IFS
6350 if test -z "$ac_cv_path_FGREP"; then
6351 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6352 fi
6353else
6354 ac_cv_path_FGREP=$FGREP
6355fi
6356
6357 fi
20e95c23 6358fi
81ecdfbb
RW
6359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6360$as_echo "$ac_cv_path_FGREP" >&6; }
6361 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
6362
6363
6364test -z "$GREP" && GREP=grep
6365
d7040cdb
SE
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
20e95c23 6377
ce2cded5 6378
d7040cdb 6379
7357c5b6
AM
6380
6381
6382
6383
81ecdfbb
RW
6384# Check whether --with-gnu-ld was given.
6385if test "${with_gnu_ld+set}" = set; then :
6386 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
6387else
6388 with_gnu_ld=no
81ecdfbb
RW
6389fi
6390
7357c5b6
AM
6391ac_prog=ld
6392if test "$GCC" = yes; then
6393 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6395$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
6396 case $host in
6397 *-*-mingw*)
6398 # gcc leaves a trailing carriage return which upsets mingw
6399 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6400 *)
6401 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6402 esac
6403 case $ac_prog in
6404 # Accept absolute paths.
6405 [\\/]* | ?:[\\/]*)
6406 re_direlt='/[^/][^/]*/\.\./'
6407 # Canonicalize the pathname of ld
6408 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6409 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6410 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6411 done
6412 test -z "$LD" && LD="$ac_prog"
6413 ;;
6414 "")
6415 # If it fails, then pretend we aren't using GCC.
6416 ac_prog=ld
6417 ;;
6418 *)
6419 # If it is relative, then search for the first ld in PATH.
6420 with_gnu_ld=unknown
6421 ;;
6422 esac
6423elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6425$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 6426else
81ecdfbb
RW
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6428$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 6429fi
81ecdfbb
RW
6430if test "${lt_cv_path_LD+set}" = set; then :
6431 $as_echo_n "(cached) " >&6
ce2cded5 6432else
7357c5b6
AM
6433 if test -z "$LD"; then
6434 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6435 for ac_dir in $PATH; do
6436 IFS="$lt_save_ifs"
6437 test -z "$ac_dir" && ac_dir=.
6438 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6439 lt_cv_path_LD="$ac_dir/$ac_prog"
6440 # Check to see if the program is GNU ld. I'd rather use --version,
6441 # but apparently some variants of GNU ld only accept -v.
6442 # Break only if it was the GNU/non-GNU ld that we prefer.
6443 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6444 *GNU* | *'with BFD'*)
6445 test "$with_gnu_ld" != no && break
6446 ;;
6447 *)
6448 test "$with_gnu_ld" != yes && break
6449 ;;
6450 esac
6451 fi
6452 done
6453 IFS="$lt_save_ifs"
ce2cded5 6454else
7357c5b6 6455 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ce2cded5
L
6456fi
6457fi
7357c5b6
AM
6458
6459LD="$lt_cv_path_LD"
6460if test -n "$LD"; then
81ecdfbb
RW
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6462$as_echo "$LD" >&6; }
ce2cded5 6463else
81ecdfbb
RW
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465$as_echo "no" >&6; }
ce2cded5 6466fi
81ecdfbb
RW
6467test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6469$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6470if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6471 $as_echo_n "(cached) " >&6
ce2cded5 6472else
7357c5b6
AM
6473 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6474case `$LD -v 2>&1 </dev/null` in
6475*GNU* | *'with BFD'*)
6476 lt_cv_prog_gnu_ld=yes
6477 ;;
6478*)
6479 lt_cv_prog_gnu_ld=no
6480 ;;
6481esac
ce2cded5 6482fi
81ecdfbb
RW
6483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6484$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 6485with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
6486
6487
6488
6489
6490
6491
6492
6493
6494
81ecdfbb
RW
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6496$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6497if test "${lt_cv_path_NM+set}" = set; then :
6498 $as_echo_n "(cached) " >&6
ce2cded5 6499else
7357c5b6
AM
6500 if test -n "$NM"; then
6501 # Let the user override the test.
6502 lt_cv_path_NM="$NM"
ce2cded5 6503else
7357c5b6
AM
6504 lt_nm_to_check="${ac_tool_prefix}nm"
6505 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6506 lt_nm_to_check="$lt_nm_to_check nm"
20e95c23 6507 fi
7357c5b6
AM
6508 for lt_tmp_nm in $lt_nm_to_check; do
6509 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6510 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6511 IFS="$lt_save_ifs"
6512 test -z "$ac_dir" && ac_dir=.
6513 tmp_nm="$ac_dir/$lt_tmp_nm"
6514 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6515 # Check to see if the nm accepts a BSD-compat flag.
6516 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6517 # nm: unknown option "B" ignored
6518 # Tru64's nm complains that /dev/null is an invalid object file
6519 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6520 */dev/null* | *'Invalid file or object type'*)
6521 lt_cv_path_NM="$tmp_nm -B"
6522 break
6523 ;;
6524 *)
6525 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6526 */dev/null*)
6527 lt_cv_path_NM="$tmp_nm -p"
6528 break
6529 ;;
6530 *)
6531 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6532 continue # so that we can try to find one that supports BSD flags
6533 ;;
6534 esac
6535 ;;
6536 esac
6537 fi
6538 done
6539 IFS="$lt_save_ifs"
6540 done
6541 : ${lt_cv_path_NM=no}
ce2cded5
L
6542fi
6543fi
81ecdfbb
RW
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6545$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
6546if test "$lt_cv_path_NM" != "no"; then
6547 NM="$lt_cv_path_NM"
ce2cded5 6548else
7357c5b6 6549 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
6550 if test -n "$DUMPBIN"; then :
6551 # Let the user override the test.
6552 else
6553 if test -n "$ac_tool_prefix"; then
6554 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6555 do
6556 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6557set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
6558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6559$as_echo_n "checking for $ac_word... " >&6; }
6560if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6561 $as_echo_n "(cached) " >&6
20e95c23 6562else
7357c5b6
AM
6563 if test -n "$DUMPBIN"; then
6564 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
6565else
6566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567for as_dir in $PATH
6568do
6569 IFS=$as_save_IFS
6570 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6571 for ac_exec_ext in '' $ac_executable_extensions; do
6572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6573 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 6574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6575 break 2
6576 fi
6577done
81ecdfbb
RW
6578 done
6579IFS=$as_save_IFS
d7040cdb 6580
20e95c23 6581fi
ce2cded5 6582fi
7357c5b6
AM
6583DUMPBIN=$ac_cv_prog_DUMPBIN
6584if test -n "$DUMPBIN"; then
81ecdfbb
RW
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6586$as_echo "$DUMPBIN" >&6; }
42ecbf5e 6587else
81ecdfbb
RW
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6589$as_echo "no" >&6; }
42ecbf5e
DJ
6590fi
6591
81ecdfbb 6592
7357c5b6
AM
6593 test -n "$DUMPBIN" && break
6594 done
ce2cded5 6595fi
7357c5b6
AM
6596if test -z "$DUMPBIN"; then
6597 ac_ct_DUMPBIN=$DUMPBIN
3725885a 6598 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6599do
6600 # Extract the first word of "$ac_prog", so it can be a program name with args.
6601set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6603$as_echo_n "checking for $ac_word... " >&6; }
6604if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6605 $as_echo_n "(cached) " >&6
42ecbf5e 6606else
7357c5b6
AM
6607 if test -n "$ac_ct_DUMPBIN"; then
6608 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
6609else
6610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611for as_dir in $PATH
6612do
6613 IFS=$as_save_IFS
6614 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6617 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 6618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6619 break 2
6620 fi
6621done
81ecdfbb
RW
6622 done
6623IFS=$as_save_IFS
d7040cdb 6624
ce2cded5
L
6625fi
6626fi
7357c5b6
AM
6627ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6628if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6630$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 6631else
81ecdfbb
RW
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6633$as_echo "no" >&6; }
ce2cded5 6634fi
d7040cdb 6635
81ecdfbb 6636
7357c5b6 6637 test -n "$ac_ct_DUMPBIN" && break
ce2cded5 6638done
d7040cdb 6639
81ecdfbb
RW
6640 if test "x$ac_ct_DUMPBIN" = x; then
6641 DUMPBIN=":"
6642 else
6643 case $cross_compiling:$ac_tool_warned in
6644yes:)
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6646$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6647ac_tool_warned=yes ;;
6648esac
6649 DUMPBIN=$ac_ct_DUMPBIN
6650 fi
ce2cded5 6651fi
7357c5b6 6652
3725885a
RW
6653 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6654 *COFF*)
6655 DUMPBIN="$DUMPBIN -symbols"
6656 ;;
6657 *)
6658 DUMPBIN=:
6659 ;;
6660 esac
6661 fi
7357c5b6
AM
6662
6663 if test "$DUMPBIN" != ":"; then
6664 NM="$DUMPBIN"
6665 fi
ce2cded5 6666fi
7357c5b6
AM
6667test -z "$NM" && NM=nm
6668
6669
6670
6671
6672
6673
81ecdfbb
RW
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6675$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6676if test "${lt_cv_nm_interface+set}" = set; then :
6677 $as_echo_n "(cached) " >&6
20e95c23 6678else
7357c5b6
AM
6679 lt_cv_nm_interface="BSD nm"
6680 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 6681 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7357c5b6
AM
6682 (eval "$ac_compile" 2>conftest.err)
6683 cat conftest.err >&5
3725885a 6684 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
6685 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6686 cat conftest.err >&5
3725885a 6687 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7357c5b6
AM
6688 cat conftest.out >&5
6689 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6690 lt_cv_nm_interface="MS dumpbin"
6691 fi
6692 rm -f conftest*
20e95c23 6693fi
81ecdfbb
RW
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6695$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 6696
81ecdfbb
RW
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6698$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
6699LN_S=$as_ln_s
6700if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6702$as_echo "yes" >&6; }
ce2cded5 6703else
81ecdfbb
RW
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6705$as_echo "no, using $LN_S" >&6; }
d7040cdb 6706fi
20e95c23 6707
7357c5b6 6708# find the maximum length of command line arguments
81ecdfbb
RW
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6710$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6711if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6712 $as_echo_n "(cached) " >&6
7357c5b6
AM
6713else
6714 i=0
6715 teststring="ABCD"
20e95c23 6716
7357c5b6
AM
6717 case $build_os in
6718 msdosdjgpp*)
6719 # On DJGPP, this test can blow up pretty badly due to problems in libc
6720 # (any single argument exceeding 2000 bytes causes a buffer overrun
6721 # during glob expansion). Even if it were fixed, the result of this
6722 # check would be larger than it should be.
6723 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6724 ;;
20e95c23 6725
7357c5b6
AM
6726 gnu*)
6727 # Under GNU Hurd, this test is not required because there is
6728 # no limit to the length of command line arguments.
6729 # Libtool will interpret -1 as no limit whatsoever
6730 lt_cv_sys_max_cmd_len=-1;
6731 ;;
20e95c23 6732
b214d478 6733 cygwin* | mingw* | cegcc*)
7357c5b6
AM
6734 # On Win9x/ME, this test blows up -- it succeeds, but takes
6735 # about 5 minutes as the teststring grows exponentially.
6736 # Worse, since 9x/ME are not pre-emptively multitasking,
6737 # you end up with a "frozen" computer, even though with patience
6738 # the test eventually succeeds (with a max line length of 256k).
6739 # Instead, let's just punt: use the minimum linelength reported by
6740 # all of the supported platforms: 8192 (on NT/2K/XP).
6741 lt_cv_sys_max_cmd_len=8192;
6742 ;;
20e95c23 6743
3725885a
RW
6744 mint*)
6745 # On MiNT this can take a long time and run out of memory.
6746 lt_cv_sys_max_cmd_len=8192;
6747 ;;
6748
7357c5b6
AM
6749 amigaos*)
6750 # On AmigaOS with pdksh, this test takes hours, literally.
6751 # So we just punt and use a minimum line length of 8192.
6752 lt_cv_sys_max_cmd_len=8192;
6753 ;;
20e95c23 6754
7357c5b6
AM
6755 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6756 # This has been around since 386BSD, at least. Likely further.
6757 if test -x /sbin/sysctl; then
6758 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6759 elif test -x /usr/sbin/sysctl; then
6760 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6761 else
6762 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6763 fi
6764 # And add a safety zone
6765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6767 ;;
d7040cdb 6768
7357c5b6
AM
6769 interix*)
6770 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6771 lt_cv_sys_max_cmd_len=196608
6772 ;;
d7040cdb 6773
7357c5b6
AM
6774 osf*)
6775 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6776 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6777 # nice to cause kernel panics so lets avoid the loop below.
6778 # First set a reasonable default.
6779 lt_cv_sys_max_cmd_len=16384
6780 #
6781 if test -x /sbin/sysconfig; then
6782 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6783 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6784 esac
6785 fi
6786 ;;
6787 sco3.2v5*)
6788 lt_cv_sys_max_cmd_len=102400
6789 ;;
6790 sysv5* | sco5v6* | sysv4.2uw2*)
6791 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6792 if test -n "$kargmax"; then
6793 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6794 else
6795 lt_cv_sys_max_cmd_len=32768
6796 fi
ce2cded5
L
6797 ;;
6798 *)
b214d478
SE
6799 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6800 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
6801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6803 else
6804 # Make teststring a little bigger before we do anything with it.
6805 # a 1K string should be a reasonable start.
6806 for i in 1 2 3 4 5 6 7 8 ; do
6807 teststring=$teststring$teststring
6808 done
6809 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6810 # If test is not a shell built-in, we'll probably end up computing a
6811 # maximum length that is only half of the actual maximum length, but
6812 # we can't tell.
3725885a
RW
6813 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6814 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357c5b6
AM
6815 test $i != 17 # 1/2 MB should be enough
6816 do
6817 i=`expr $i + 1`
6818 teststring=$teststring$teststring
6819 done
6820 # Only check the string length outside the loop.
6821 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6822 teststring=
6823 # Add a significant safety factor because C++ compilers can tack on
6824 # massive amounts of additional arguments before passing them to the
6825 # linker. It appears as though 1/2 is a usable value.
6826 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6827 fi
ce2cded5
L
6828 ;;
6829 esac
d7040cdb 6830
7357c5b6 6831fi
d7040cdb 6832
7357c5b6 6833if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6835$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 6836else
81ecdfbb
RW
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6838$as_echo "none" >&6; }
7357c5b6
AM
6839fi
6840max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
6841
6842
6843
6844
6845
d7040cdb 6846
7357c5b6
AM
6847: ${CP="cp -f"}
6848: ${MV="mv -f"}
6849: ${RM="rm -f"}
d7040cdb 6850
81ecdfbb
RW
6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6852$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
6853# Try some XSI features
6854xsi_shell=no
6855( _lt_dummy="a/b/c"
6856 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
6857 = c,a/b,, \
6858 && eval 'test $(( 1 + 1 )) -eq 2 \
6859 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 6860 && xsi_shell=yes
81ecdfbb
RW
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6862$as_echo "$xsi_shell" >&6; }
d7040cdb 6863
d7040cdb 6864
81ecdfbb
RW
6865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6866$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
6867lt_shell_append=no
6868( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6869 >/dev/null 2>&1 \
6870 && lt_shell_append=yes
81ecdfbb
RW
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6872$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6873
6874
7357c5b6
AM
6875if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6876 lt_unset=unset
6877else
6878 lt_unset=false
6879fi
d7040cdb 6880
d7040cdb 6881
d7040cdb 6882
d7040cdb 6883
d7040cdb 6884
7357c5b6
AM
6885# test EBCDIC or ASCII
6886case `echo X|tr X '\101'` in
6887 A) # ASCII based system
6888 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6889 lt_SP2NL='tr \040 \012'
6890 lt_NL2SP='tr \015\012 \040\040'
6891 ;;
6892 *) # EBCDIC based system
6893 lt_SP2NL='tr \100 \n'
6894 lt_NL2SP='tr \r\n \100\100'
6895 ;;
6896esac
42ecbf5e 6897
d7040cdb
SE
6898
6899
6900
6901
6902
6903
d7040cdb 6904
d7040cdb 6905
81ecdfbb
RW
6906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6907$as_echo_n "checking for $LD option to reload object files... " >&6; }
6908if test "${lt_cv_ld_reload_flag+set}" = set; then :
6909 $as_echo_n "(cached) " >&6
7357c5b6
AM
6910else
6911 lt_cv_ld_reload_flag='-r'
6912fi
81ecdfbb
RW
6913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6914$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
6915reload_flag=$lt_cv_ld_reload_flag
6916case $reload_flag in
6917"" | " "*) ;;
6918*) reload_flag=" $reload_flag" ;;
6919esac
6920reload_cmds='$LD$reload_flag -o $output$reload_objs'
6921case $host_os in
6922 darwin*)
6923 if test "$GCC" = yes; then
6924 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6925 else
6926 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6927 fi
6928 ;;
6929esac
d7040cdb 6930
d7040cdb 6931
d7040cdb 6932
d7040cdb 6933
d7040cdb 6934
d7040cdb 6935
d7040cdb 6936
d7040cdb 6937
d7040cdb 6938
b214d478
SE
6939if test -n "$ac_tool_prefix"; then
6940 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6941set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943$as_echo_n "checking for $ac_word... " >&6; }
6944if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6945 $as_echo_n "(cached) " >&6
b214d478
SE
6946else
6947 if test -n "$OBJDUMP"; then
6948 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6949else
6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951for as_dir in $PATH
6952do
6953 IFS=$as_save_IFS
6954 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6957 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6959 break 2
6960 fi
6961done
81ecdfbb
RW
6962 done
6963IFS=$as_save_IFS
b214d478
SE
6964
6965fi
6966fi
6967OBJDUMP=$ac_cv_prog_OBJDUMP
6968if test -n "$OBJDUMP"; then
81ecdfbb
RW
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6970$as_echo "$OBJDUMP" >&6; }
b214d478 6971else
81ecdfbb
RW
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973$as_echo "no" >&6; }
b214d478
SE
6974fi
6975
81ecdfbb 6976
b214d478
SE
6977fi
6978if test -z "$ac_cv_prog_OBJDUMP"; then
6979 ac_ct_OBJDUMP=$OBJDUMP
6980 # Extract the first word of "objdump", so it can be a program name with args.
6981set dummy objdump; ac_word=$2
81ecdfbb
RW
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983$as_echo_n "checking for $ac_word... " >&6; }
6984if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6985 $as_echo_n "(cached) " >&6
b214d478
SE
6986else
6987 if test -n "$ac_ct_OBJDUMP"; then
6988 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6989else
6990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991for as_dir in $PATH
6992do
6993 IFS=$as_save_IFS
6994 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6997 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6999 break 2
7000 fi
7001done
81ecdfbb
RW
7002 done
7003IFS=$as_save_IFS
b214d478 7004
b214d478
SE
7005fi
7006fi
7007ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7008if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7010$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 7011else
81ecdfbb
RW
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013$as_echo "no" >&6; }
b214d478
SE
7014fi
7015
81ecdfbb
RW
7016 if test "x$ac_ct_OBJDUMP" = x; then
7017 OBJDUMP="false"
7018 else
7019 case $cross_compiling:$ac_tool_warned in
7020yes:)
7021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7023ac_tool_warned=yes ;;
7024esac
7025 OBJDUMP=$ac_ct_OBJDUMP
7026 fi
b214d478
SE
7027else
7028 OBJDUMP="$ac_cv_prog_OBJDUMP"
7029fi
7030
7031test -z "$OBJDUMP" && OBJDUMP=objdump
7032
7033
7034
7035
7036
7037
7038
7039
d7040cdb 7040
81ecdfbb
RW
7041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7042$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7043if test "${lt_cv_deplibs_check_method+set}" = set; then :
7044 $as_echo_n "(cached) " >&6
ce2cded5 7045else
7357c5b6
AM
7046 lt_cv_file_magic_cmd='$MAGIC_CMD'
7047lt_cv_file_magic_test_file=
7048lt_cv_deplibs_check_method='unknown'
7049# Need to set the preceding variable on all platforms that support
7050# interlibrary dependencies.
7051# 'none' -- dependencies not supported.
7052# `unknown' -- same as none, but documents that we really don't know.
7053# 'pass_all' -- all dependencies passed with no checks.
7054# 'test_compile' -- check by making test program.
7055# 'file_magic [[regex]]' -- check by looking for files in library path
7056# which responds to the $file_magic_cmd with a given extended regex.
7057# If you have `file' or equivalent on your system and you're not sure
7058# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 7059
ce2cded5 7060case $host_os in
7357c5b6
AM
7061aix[4-9]*)
7062 lt_cv_deplibs_check_method=pass_all
ce2cded5 7063 ;;
7357c5b6
AM
7064
7065beos*)
7066 lt_cv_deplibs_check_method=pass_all
ce2cded5 7067 ;;
7357c5b6
AM
7068
7069bsdi[45]*)
7070 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7071 lt_cv_file_magic_cmd='/usr/bin/file -L'
7072 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 7073 ;;
7357c5b6
AM
7074
7075cygwin*)
7076 # func_win32_libid is a shell function defined in ltmain.sh
7077 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7078 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 7079 ;;
7357c5b6
AM
7080
7081mingw* | pw32*)
7082 # Base MSYS/MinGW do not provide the 'file' command needed by
7083 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7084 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
7085 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7086 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7357c5b6
AM
7087 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7088 lt_cv_file_magic_cmd='func_win32_libid'
7089 else
7090 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7091 lt_cv_file_magic_cmd='$OBJDUMP -f'
7092 fi
ce2cded5 7093 ;;
7357c5b6 7094
3725885a 7095cegcc*)
b214d478
SE
7096 # use the weaker test based on 'objdump'. See mingw*.
7097 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7098 lt_cv_file_magic_cmd='$OBJDUMP -f'
7099 ;;
7100
7357c5b6
AM
7101darwin* | rhapsody*)
7102 lt_cv_deplibs_check_method=pass_all
ce2cded5 7103 ;;
7357c5b6
AM
7104
7105freebsd* | dragonfly*)
7106 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7107 case $host_cpu in
7108 i*86 )
7109 # Not sure whether the presence of OpenBSD here was a mistake.
7110 # Let's accept both of them until this is cleared up.
7111 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7112 lt_cv_file_magic_cmd=/usr/bin/file
7113 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7114 ;;
7115 esac
7116 else
7117 lt_cv_deplibs_check_method=pass_all
7118 fi
ce2cded5 7119 ;;
7357c5b6
AM
7120
7121gnu*)
7122 lt_cv_deplibs_check_method=pass_all
ce2cded5 7123 ;;
7357c5b6 7124
3725885a
RW
7125haiku*)
7126 lt_cv_deplibs_check_method=pass_all
7127 ;;
7128
7357c5b6
AM
7129hpux10.20* | hpux11*)
7130 lt_cv_file_magic_cmd=/usr/bin/file
7131 case $host_cpu in
7132 ia64*)
7133 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7134 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7135 ;;
7136 hppa*64*)
3725885a 7137 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]'
7357c5b6
AM
7138 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7139 ;;
7140 *)
3725885a 7141 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7357c5b6
AM
7142 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7143 ;;
7144 esac
ce2cded5 7145 ;;
d7040cdb 7146
7357c5b6
AM
7147interix[3-9]*)
7148 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7150 ;;
d7040cdb 7151
7357c5b6
AM
7152irix5* | irix6* | nonstopux*)
7153 case $LD in
7154 *-32|*"-32 ") libmagic=32-bit;;
7155 *-n32|*"-n32 ") libmagic=N32;;
7156 *-64|*"-64 ") libmagic=64-bit;;
7157 *) libmagic=never-match;;
7158 esac
7159 lt_cv_deplibs_check_method=pass_all
7160 ;;
d7040cdb 7161
7357c5b6 7162# This must be Linux ELF.
58e24671 7163linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
7164 lt_cv_deplibs_check_method=pass_all
7165 ;;
d7040cdb 7166
7357c5b6
AM
7167netbsd*)
7168 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7170 else
7171 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7172 fi
ce2cded5 7173 ;;
d7040cdb 7174
7357c5b6
AM
7175newos6*)
7176 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7177 lt_cv_file_magic_cmd=/usr/bin/file
7178 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7179 ;;
d7040cdb 7180
7357c5b6
AM
7181*nto* | *qnx*)
7182 lt_cv_deplibs_check_method=pass_all
7183 ;;
d7040cdb 7184
7357c5b6
AM
7185openbsd*)
7186 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7187 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
ce2cded5 7188 else
7357c5b6 7189 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 7190 fi
7357c5b6 7191 ;;
d7040cdb 7192
7357c5b6
AM
7193osf3* | osf4* | osf5*)
7194 lt_cv_deplibs_check_method=pass_all
7195 ;;
d7040cdb 7196
7357c5b6
AM
7197rdos*)
7198 lt_cv_deplibs_check_method=pass_all
7199 ;;
d7040cdb 7200
7357c5b6
AM
7201solaris*)
7202 lt_cv_deplibs_check_method=pass_all
7203 ;;
d7040cdb 7204
7357c5b6
AM
7205sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7206 lt_cv_deplibs_check_method=pass_all
7207 ;;
d7040cdb 7208
7357c5b6
AM
7209sysv4 | sysv4.3*)
7210 case $host_vendor in
7211 motorola)
7212 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]'
7213 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7214 ;;
7215 ncr)
7216 lt_cv_deplibs_check_method=pass_all
7217 ;;
7218 sequent)
7219 lt_cv_file_magic_cmd='/bin/file'
7220 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7221 ;;
7222 sni)
7223 lt_cv_file_magic_cmd='/bin/file'
7224 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7225 lt_cv_file_magic_test_file=/lib/libc.so
7226 ;;
7227 siemens)
7228 lt_cv_deplibs_check_method=pass_all
7229 ;;
7230 pc)
7231 lt_cv_deplibs_check_method=pass_all
7232 ;;
7233 esac
7234 ;;
d7040cdb 7235
7357c5b6
AM
7236tpf*)
7237 lt_cv_deplibs_check_method=pass_all
7238 ;;
7239esac
d7040cdb 7240
7357c5b6 7241fi
81ecdfbb
RW
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7243$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
7244file_magic_cmd=$lt_cv_file_magic_cmd
7245deplibs_check_method=$lt_cv_deplibs_check_method
7246test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
7247
7248
7249
7357c5b6
AM
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259if test -n "$ac_tool_prefix"; then
7260 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7261set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263$as_echo_n "checking for $ac_word... " >&6; }
7264if test "${ac_cv_prog_AR+set}" = set; then :
7265 $as_echo_n "(cached) " >&6
7357c5b6
AM
7266else
7267 if test -n "$AR"; then
7268 ac_cv_prog_AR="$AR" # Let the user override the test.
7269else
7270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271for as_dir in $PATH
7272do
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7277 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7279 break 2
ce2cded5
L
7280 fi
7281done
81ecdfbb
RW
7282 done
7283IFS=$as_save_IFS
d7040cdb 7284
42ecbf5e 7285fi
ce2cded5 7286fi
7357c5b6
AM
7287AR=$ac_cv_prog_AR
7288if test -n "$AR"; then
81ecdfbb
RW
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7290$as_echo "$AR" >&6; }
42ecbf5e 7291else
81ecdfbb
RW
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293$as_echo "no" >&6; }
42ecbf5e
DJ
7294fi
7295
81ecdfbb 7296
7357c5b6
AM
7297fi
7298if test -z "$ac_cv_prog_AR"; then
7299 ac_ct_AR=$AR
7300 # Extract the first word of "ar", so it can be a program name with args.
7301set dummy ar; ac_word=$2
81ecdfbb
RW
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303$as_echo_n "checking for $ac_word... " >&6; }
7304if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7305 $as_echo_n "(cached) " >&6
7357c5b6
AM
7306else
7307 if test -n "$ac_ct_AR"; then
7308 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7309else
7310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7317 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
7319 break 2
7320 fi
7321done
81ecdfbb
RW
7322 done
7323IFS=$as_save_IFS
42ecbf5e 7324
7357c5b6
AM
7325fi
7326fi
7327ac_ct_AR=$ac_cv_prog_ac_ct_AR
7328if test -n "$ac_ct_AR"; then
81ecdfbb
RW
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7330$as_echo "$ac_ct_AR" >&6; }
7357c5b6 7331else
81ecdfbb
RW
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333$as_echo "no" >&6; }
7357c5b6 7334fi
d7040cdb 7335
81ecdfbb
RW
7336 if test "x$ac_ct_AR" = x; then
7337 AR="false"
7338 else
7339 case $cross_compiling:$ac_tool_warned in
7340yes:)
7341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7343ac_tool_warned=yes ;;
7344esac
7345 AR=$ac_ct_AR
7346 fi
7357c5b6
AM
7347else
7348 AR="$ac_cv_prog_AR"
7349fi
d7040cdb 7350
7357c5b6
AM
7351test -z "$AR" && AR=ar
7352test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
7353
7354
7355
20e95c23 7356
d7040cdb 7357
d7040cdb
SE
7358
7359
7360
7361
7362
7363
7357c5b6
AM
7364if test -n "$ac_tool_prefix"; then
7365 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7366set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
7367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7368$as_echo_n "checking for $ac_word... " >&6; }
7369if test "${ac_cv_prog_STRIP+set}" = set; then :
7370 $as_echo_n "(cached) " >&6
7357c5b6
AM
7371else
7372 if test -n "$STRIP"; then
7373 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7374else
7375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376for as_dir in $PATH
7377do
7378 IFS=$as_save_IFS
7379 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7382 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 7383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7384 break 2
ce2cded5 7385 fi
7357c5b6 7386done
81ecdfbb
RW
7387 done
7388IFS=$as_save_IFS
d7040cdb 7389
7357c5b6
AM
7390fi
7391fi
7392STRIP=$ac_cv_prog_STRIP
7393if test -n "$STRIP"; then
81ecdfbb
RW
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7395$as_echo "$STRIP" >&6; }
7357c5b6 7396else
81ecdfbb
RW
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398$as_echo "no" >&6; }
7357c5b6
AM
7399fi
7400
81ecdfbb 7401
7357c5b6
AM
7402fi
7403if test -z "$ac_cv_prog_STRIP"; then
7404 ac_ct_STRIP=$STRIP
7405 # Extract the first word of "strip", so it can be a program name with args.
7406set dummy strip; ac_word=$2
81ecdfbb
RW
7407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7408$as_echo_n "checking for $ac_word... " >&6; }
7409if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7410 $as_echo_n "(cached) " >&6
7357c5b6
AM
7411else
7412 if test -n "$ac_ct_STRIP"; then
7413 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7414else
7415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416for as_dir in $PATH
7417do
7418 IFS=$as_save_IFS
7419 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7420 for ac_exec_ext in '' $ac_executable_extensions; do
7421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7422 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 7423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7424 break 2
ce2cded5 7425 fi
7357c5b6 7426done
81ecdfbb
RW
7427 done
7428IFS=$as_save_IFS
d7040cdb 7429
7357c5b6
AM
7430fi
7431fi
7432ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7433if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7435$as_echo "$ac_ct_STRIP" >&6; }
20e95c23 7436else
81ecdfbb
RW
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438$as_echo "no" >&6; }
7357c5b6 7439fi
d7040cdb 7440
81ecdfbb
RW
7441 if test "x$ac_ct_STRIP" = x; then
7442 STRIP=":"
7443 else
7444 case $cross_compiling:$ac_tool_warned in
7445yes:)
7446{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7447$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7448ac_tool_warned=yes ;;
7449esac
7450 STRIP=$ac_ct_STRIP
7451 fi
7357c5b6
AM
7452else
7453 STRIP="$ac_cv_prog_STRIP"
7454fi
d7040cdb 7455
7357c5b6 7456test -z "$STRIP" && STRIP=:
d7040cdb 7457
d7040cdb
SE
7458
7459
7460
d7040cdb 7461
7357c5b6
AM
7462
7463if test -n "$ac_tool_prefix"; then
7464 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7465set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
7466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467$as_echo_n "checking for $ac_word... " >&6; }
7468if test "${ac_cv_prog_RANLIB+set}" = set; then :
7469 $as_echo_n "(cached) " >&6
ce2cded5 7470else
7357c5b6
AM
7471 if test -n "$RANLIB"; then
7472 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7473else
7474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475for as_dir in $PATH
ce2cded5 7476do
7357c5b6
AM
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7481 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 7482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7483 break 2
ce2cded5 7484 fi
7357c5b6 7485done
81ecdfbb
RW
7486 done
7487IFS=$as_save_IFS
7357c5b6 7488
ce2cded5 7489fi
7357c5b6
AM
7490fi
7491RANLIB=$ac_cv_prog_RANLIB
7492if test -n "$RANLIB"; then
81ecdfbb
RW
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7494$as_echo "$RANLIB" >&6; }
ce2cded5 7495else
81ecdfbb
RW
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497$as_echo "no" >&6; }
ce2cded5 7498fi
d7040cdb 7499
81ecdfbb 7500
7357c5b6
AM
7501fi
7502if test -z "$ac_cv_prog_RANLIB"; then
7503 ac_ct_RANLIB=$RANLIB
7504 # Extract the first word of "ranlib", so it can be a program name with args.
7505set dummy ranlib; ac_word=$2
81ecdfbb
RW
7506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7507$as_echo_n "checking for $ac_word... " >&6; }
7508if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7509 $as_echo_n "(cached) " >&6
ce2cded5 7510else
7357c5b6
AM
7511 if test -n "$ac_ct_RANLIB"; then
7512 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7513else
7514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515for as_dir in $PATH
7516do
7517 IFS=$as_save_IFS
7518 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7521 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 7522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
7523 break 2
7524 fi
7525done
81ecdfbb
RW
7526 done
7527IFS=$as_save_IFS
7357c5b6 7528
ce2cded5 7529fi
7357c5b6
AM
7530fi
7531ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7532if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7534$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 7535else
81ecdfbb
RW
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537$as_echo "no" >&6; }
ce2cded5 7538fi
d7040cdb 7539
81ecdfbb
RW
7540 if test "x$ac_ct_RANLIB" = x; then
7541 RANLIB=":"
7542 else
7543 case $cross_compiling:$ac_tool_warned in
7544yes:)
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7547ac_tool_warned=yes ;;
7548esac
7549 RANLIB=$ac_ct_RANLIB
7550 fi
7357c5b6
AM
7551else
7552 RANLIB="$ac_cv_prog_RANLIB"
ce2cded5 7553fi
d7040cdb 7554
7357c5b6 7555test -z "$RANLIB" && RANLIB=:
d7040cdb 7556
7357c5b6
AM
7557
7558
7559
7560
7561
7562# Determine commands to create old-style static archives.
b214d478 7563old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
7564old_postinstall_cmds='chmod 644 $oldlib'
7565old_postuninstall_cmds=
7566
7567if test -n "$RANLIB"; then
7568 case $host_os in
7569 openbsd*)
7570 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7571 ;;
7572 *)
7573 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7574 ;;
7575 esac
7576 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 7577fi
7357c5b6 7578
3725885a
RW
7579case $host_os in
7580 darwin*)
7581 lock_old_archive_extraction=yes ;;
7582 *)
7583 lock_old_archive_extraction=no ;;
7584esac
7585
7586
7587
7588
7589
7590
7357c5b6
AM
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624# If no C compiler was specified, use CC.
7625LTCC=${LTCC-"$CC"}
7626
7627# If no C compiler flags were specified, use CFLAGS.
7628LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7629
7630# Allow CC to be a program name with arguments.
7631compiler=$CC
7632
7633
7634# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
7635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7636$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7637if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7638 $as_echo_n "(cached) " >&6
ce2cded5 7639else
d7040cdb 7640
7357c5b6
AM
7641# These are sane defaults that work on at least a few old systems.
7642# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 7643
7357c5b6
AM
7644# Character class describing NM global symbol codes.
7645symcode='[BCDEGRST]'
7646
7647# Regexp to match symbols that can be accessed directly from C.
7648sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7649
7650# Define system-specific variables.
7651case $host_os in
7652aix*)
7653 symcode='[BCDT]'
7654 ;;
b214d478 7655cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
7656 symcode='[ABCDGISTW]'
7657 ;;
7658hpux*)
7659 if test "$host_cpu" = ia64; then
7660 symcode='[ABCDEGRST]'
ce2cded5 7661 fi
7357c5b6
AM
7662 ;;
7663irix* | nonstopux*)
7664 symcode='[BCDEGRST]'
7665 ;;
7666osf*)
7667 symcode='[BCDEGQRST]'
7668 ;;
7669solaris*)
7670 symcode='[BDRT]'
7671 ;;
7672sco3.2v5*)
7673 symcode='[DT]'
7674 ;;
7675sysv4.2uw2*)
7676 symcode='[DT]'
7677 ;;
7678sysv5* | sco5v6* | unixware* | OpenUNIX*)
7679 symcode='[ABDT]'
7680 ;;
7681sysv4)
7682 symcode='[DFNSTU]'
7683 ;;
7684esac
d7040cdb 7685
7357c5b6
AM
7686# If we're using GNU nm, then use its standard symbol codes.
7687case `$NM -V 2>&1` in
7688*GNU* | *'with BFD'*)
7689 symcode='[ABCDGIRSTW]' ;;
7690esac
d7040cdb 7691
7357c5b6
AM
7692# Transform an extracted symbol line into a proper C declaration.
7693# Some systems (esp. on ia64) link data and code symbols differently,
7694# so use this general approach.
7695lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7696
7697# Transform an extracted symbol line into symbol name and symbol address
7698lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 7699lt_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'"
7357c5b6
AM
7700
7701# Handle CRLF in mingw tool chain
7702opt_cr=
7703case $build_os in
7704mingw*)
7705 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7706 ;;
7707esac
d7040cdb 7708
7357c5b6
AM
7709# Try without a prefix underscore, then with it.
7710for ac_symprfx in "" "_"; do
d7040cdb 7711
7357c5b6
AM
7712 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7713 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 7714
7357c5b6
AM
7715 # Write the raw and C identifiers.
7716 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7717 # Fake it for dumpbin and say T for any non-static function
7718 # and D for any global variable.
7719 # Also find C++ and __fastcall symbols from MSVC++,
7720 # which start with @ or ?.
7721 lt_cv_sys_global_symbol_pipe="$AWK '"\
7722" {last_section=section; section=\$ 3};"\
7723" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7724" \$ 0!~/External *\|/{next};"\
7725" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7726" {if(hide[section]) next};"\
7727" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7728" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7729" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7730" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7731" ' prfx=^$ac_symprfx"
7732 else
7733 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7734 fi
d7040cdb 7735
7357c5b6
AM
7736 # Check to see that the pipe works correctly.
7737 pipe_works=no
d7040cdb 7738
7357c5b6
AM
7739 rm -f conftest*
7740 cat > conftest.$ac_ext <<_LT_EOF
7741#ifdef __cplusplus
7742extern "C" {
7743#endif
7744char nm_test_var;
7745void nm_test_func(void);
7746void nm_test_func(void){}
7747#ifdef __cplusplus
20e95c23 7748}
7357c5b6
AM
7749#endif
7750int main(){nm_test_var='a';nm_test_func();return(0);}
7751_LT_EOF
7752
81ecdfbb 7753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 7754 (eval $ac_compile) 2>&5
20e95c23 7755 ac_status=$?
81ecdfbb
RW
7756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7757 test $ac_status = 0; }; then
7357c5b6
AM
7758 # Now try to grab the symbols.
7759 nlist=conftest.nm
3725885a
RW
7760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7761 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
20e95c23 7762 ac_status=$?
81ecdfbb
RW
7763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7764 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
7765 # Try sorting and uniquifying the output.
7766 if sort "$nlist" | uniq > "$nlist"T; then
7767 mv -f "$nlist"T "$nlist"
7768 else
7769 rm -f "$nlist"T
7770 fi
d7040cdb 7771
7357c5b6
AM
7772 # Make sure that we snagged all the symbols we need.
7773 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7774 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7775 cat <<_LT_EOF > conftest.$ac_ext
7776#ifdef __cplusplus
7777extern "C" {
7778#endif
ce2cded5 7779
7357c5b6
AM
7780_LT_EOF
7781 # Now generate the symbol file.
7782 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
ce2cded5 7783
7357c5b6 7784 cat <<_LT_EOF >> conftest.$ac_ext
42ecbf5e 7785
7357c5b6
AM
7786/* The mapping between symbol names and symbols. */
7787const struct {
7788 const char *name;
7789 void *address;
7790}
7791lt__PROGRAM__LTX_preloaded_symbols[] =
7792{
7793 { "@PROGRAM@", (void *) 0 },
7794_LT_EOF
7795 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7796 cat <<\_LT_EOF >> conftest.$ac_ext
7797 {0, (void *) 0}
7798};
d7040cdb 7799
7357c5b6
AM
7800/* This works around a problem in FreeBSD linker */
7801#ifdef FREEBSD_WORKAROUND
7802static const void *lt_preloaded_setup() {
7803 return lt__PROGRAM__LTX_preloaded_symbols;
7804}
ce2cded5 7805#endif
42ecbf5e 7806
7357c5b6 7807#ifdef __cplusplus
ce2cded5 7808}
7357c5b6
AM
7809#endif
7810_LT_EOF
7811 # Now try linking the two files.
7812 mv conftest.$ac_objext conftstm.$ac_objext
7813 lt_save_LIBS="$LIBS"
7814 lt_save_CFLAGS="$CFLAGS"
7815 LIBS="conftstm.$ac_objext"
7816 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
7818 (eval $ac_link) 2>&5
7819 ac_status=$?
81ecdfbb
RW
7820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7821 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
7822 pipe_works=yes
7823 fi
7824 LIBS="$lt_save_LIBS"
7825 CFLAGS="$lt_save_CFLAGS"
7826 else
7827 echo "cannot find nm_test_func in $nlist" >&5
7828 fi
7829 else
7830 echo "cannot find nm_test_var in $nlist" >&5
7831 fi
7832 else
7833 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7834 fi
7835 else
7836 echo "$progname: failed program was:" >&5
7837 cat conftest.$ac_ext >&5
7838 fi
b214d478 7839 rm -rf conftest* conftst*
7357c5b6
AM
7840
7841 # Do not use the global_symbol_pipe unless it works.
7842 if test "$pipe_works" = yes; then
7843 break
7844 else
7845 lt_cv_sys_global_symbol_pipe=
7846 fi
7847done
42ecbf5e 7848
ce2cded5 7849fi
7357c5b6
AM
7850
7851if test -z "$lt_cv_sys_global_symbol_pipe"; then
7852 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 7853fi
7357c5b6 7854if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7856$as_echo "failed" >&6; }
7357c5b6 7857else
81ecdfbb
RW
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7859$as_echo "ok" >&6; }
ce2cded5 7860fi
e5a52504 7861
d7040cdb 7862
e5a52504 7863
d7040cdb 7864
d7040cdb 7865
d7040cdb 7866
d7040cdb 7867
d7040cdb 7868
d7040cdb 7869
d7040cdb 7870
d7040cdb 7871
d7040cdb 7872
7357c5b6
AM
7873
7874
7875
b214d478
SE
7876
7877
7878
7879
7880
7357c5b6
AM
7881
7882
81ecdfbb
RW
7883# Check whether --enable-libtool-lock was given.
7884if test "${enable_libtool_lock+set}" = set; then :
7885 enableval=$enable_libtool_lock;
7886fi
7357c5b6 7887
7357c5b6
AM
7888test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7889
7890# Some flags need to be propagated to the compiler or linker for good
7891# libtool support.
7892case $host in
7893ia64-*-hpux*)
7894 # Find out which ABI we are using.
7895 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7897 (eval $ac_compile) 2>&5
7898 ac_status=$?
81ecdfbb
RW
7899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7900 test $ac_status = 0; }; then
7357c5b6
AM
7901 case `/usr/bin/file conftest.$ac_objext` in
7902 *ELF-32*)
7903 HPUX_IA64_MODE="32"
7904 ;;
7905 *ELF-64*)
7906 HPUX_IA64_MODE="64"
7907 ;;
7908 esac
7909 fi
7910 rm -rf conftest*
7911 ;;
7912*-*-irix6*)
7913 # Find out which ABI we are using.
3725885a 7914 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7916 (eval $ac_compile) 2>&5
7917 ac_status=$?
81ecdfbb
RW
7918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7919 test $ac_status = 0; }; then
7357c5b6
AM
7920 if test "$lt_cv_prog_gnu_ld" = yes; then
7921 case `/usr/bin/file conftest.$ac_objext` in
7922 *32-bit*)
7923 LD="${LD-ld} -melf32bsmip"
7924 ;;
7925 *N32*)
7926 LD="${LD-ld} -melf32bmipn32"
7927 ;;
7928 *64-bit*)
7929 LD="${LD-ld} -melf64bmip"
7930 ;;
7931 esac
7932 else
7933 case `/usr/bin/file conftest.$ac_objext` in
7934 *32-bit*)
7935 LD="${LD-ld} -32"
7936 ;;
7937 *N32*)
7938 LD="${LD-ld} -n32"
7939 ;;
7940 *64-bit*)
7941 LD="${LD-ld} -64"
7942 ;;
7943 esac
7944 fi
7945 fi
7946 rm -rf conftest*
7947 ;;
7948
cc9afea3 7949x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
7950s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7951 # Find out which ABI we are using.
7952 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7954 (eval $ac_compile) 2>&5
7955 ac_status=$?
81ecdfbb
RW
7956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7957 test $ac_status = 0; }; then
7357c5b6
AM
7958 case `/usr/bin/file conftest.o` in
7959 *32-bit*)
7960 case $host in
7961 x86_64-*kfreebsd*-gnu)
7962 LD="${LD-ld} -m elf_i386_fbsd"
7963 ;;
7964 x86_64-*linux*)
6d2920c8
L
7965 case `/usr/bin/file conftest.o` in
7966 *x86-64*)
7967 LD="${LD-ld} -m elf32_x86_64"
7968 ;;
7969 *)
7970 LD="${LD-ld} -m elf_i386"
7971 ;;
7972 esac
7357c5b6 7973 ;;
cc9afea3
AM
7974 powerpc64le-*linux*)
7975 LD="${LD-ld} -m elf32lppclinux"
7976 ;;
7977 powerpc64-*linux*)
7357c5b6
AM
7978 LD="${LD-ld} -m elf32ppclinux"
7979 ;;
7980 s390x-*linux*)
7981 LD="${LD-ld} -m elf_s390"
7982 ;;
7983 sparc64-*linux*)
7984 LD="${LD-ld} -m elf32_sparc"
7985 ;;
7986 esac
7987 ;;
7988 *64-bit*)
7989 case $host in
7990 x86_64-*kfreebsd*-gnu)
7991 LD="${LD-ld} -m elf_x86_64_fbsd"
7992 ;;
7993 x86_64-*linux*)
7994 LD="${LD-ld} -m elf_x86_64"
7995 ;;
cc9afea3
AM
7996 powerpcle-*linux*)
7997 LD="${LD-ld} -m elf64lppc"
7998 ;;
7999 powerpc-*linux*)
7357c5b6
AM
8000 LD="${LD-ld} -m elf64ppc"
8001 ;;
8002 s390*-*linux*|s390*-*tpf*)
8003 LD="${LD-ld} -m elf64_s390"
8004 ;;
8005 sparc*-*linux*)
8006 LD="${LD-ld} -m elf64_sparc"
8007 ;;
8008 esac
8009 ;;
8010 esac
8011 fi
8012 rm -rf conftest*
8013 ;;
8014
8015*-*-sco3.2v5*)
8016 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8017 SAVE_CFLAGS="$CFLAGS"
8018 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8020$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8021if test "${lt_cv_cc_needs_belf+set}" = set; then :
8022 $as_echo_n "(cached) " >&6
ce2cded5 8023else
7357c5b6
AM
8024 ac_ext=c
8025ac_cpp='$CPP $CPPFLAGS'
8026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8028ac_compiler_gnu=$ac_cv_c_compiler_gnu
8029
81ecdfbb 8030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 8031/* end confdefs.h. */
d7040cdb 8032
7357c5b6
AM
8033int
8034main ()
8035{
8036
8037 ;
8038 return 0;
8039}
ce2cded5 8040_ACEOF
81ecdfbb 8041if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 8042 lt_cv_cc_needs_belf=yes
ce2cded5 8043else
81ecdfbb 8044 lt_cv_cc_needs_belf=no
ce2cded5 8045fi
81ecdfbb
RW
8046rm -f core conftest.err conftest.$ac_objext \
8047 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
8048 ac_ext=c
8049ac_cpp='$CPP $CPPFLAGS'
8050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8052ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 8053
b214d478 8054fi
81ecdfbb
RW
8055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8056$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
8057 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8058 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8059 CFLAGS="$SAVE_CFLAGS"
8060 fi
8061 ;;
8062sparc*-*solaris*)
8063 # Find out which ABI we are using.
8064 echo 'int i;' > conftest.$ac_ext
81ecdfbb 8065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
8066 (eval $ac_compile) 2>&5
8067 ac_status=$?
81ecdfbb
RW
8068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8069 test $ac_status = 0; }; then
b214d478
SE
8070 case `/usr/bin/file conftest.o` in
8071 *64-bit*)
8072 case $lt_cv_prog_gnu_ld in
8073 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8074 *)
8075 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8076 LD="${LD-ld} -64"
8077 fi
8078 ;;
8079 esac
8080 ;;
8081 esac
8082 fi
8083 rm -rf conftest*
8084 ;;
8085esac
8086
8087need_locks="$enable_libtool_lock"
8088
8089
8090 case $host_os in
8091 rhapsody* | darwin*)
8092 if test -n "$ac_tool_prefix"; then
8093 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8094set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
8095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8096$as_echo_n "checking for $ac_word... " >&6; }
8097if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8098 $as_echo_n "(cached) " >&6
b214d478
SE
8099else
8100 if test -n "$DSYMUTIL"; then
8101 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8102else
8103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104for as_dir in $PATH
8105do
8106 IFS=$as_save_IFS
8107 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8108 for ac_exec_ext in '' $ac_executable_extensions; do
8109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8110 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 8111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8112 break 2
8113 fi
8114done
81ecdfbb
RW
8115 done
8116IFS=$as_save_IFS
b214d478
SE
8117
8118fi
8119fi
8120DSYMUTIL=$ac_cv_prog_DSYMUTIL
8121if test -n "$DSYMUTIL"; then
81ecdfbb
RW
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8123$as_echo "$DSYMUTIL" >&6; }
b214d478 8124else
81ecdfbb
RW
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8126$as_echo "no" >&6; }
b214d478
SE
8127fi
8128
81ecdfbb 8129
b214d478
SE
8130fi
8131if test -z "$ac_cv_prog_DSYMUTIL"; then
8132 ac_ct_DSYMUTIL=$DSYMUTIL
8133 # Extract the first word of "dsymutil", so it can be a program name with args.
8134set dummy dsymutil; ac_word=$2
81ecdfbb
RW
8135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8136$as_echo_n "checking for $ac_word... " >&6; }
8137if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8138 $as_echo_n "(cached) " >&6
b214d478
SE
8139else
8140 if test -n "$ac_ct_DSYMUTIL"; then
8141 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8142else
8143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144for as_dir in $PATH
8145do
8146 IFS=$as_save_IFS
8147 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8148 for ac_exec_ext in '' $ac_executable_extensions; do
8149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8150 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 8151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8152 break 2
8153 fi
8154done
81ecdfbb
RW
8155 done
8156IFS=$as_save_IFS
b214d478 8157
b214d478
SE
8158fi
8159fi
8160ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8161if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8163$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 8164else
81ecdfbb
RW
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8166$as_echo "no" >&6; }
b214d478
SE
8167fi
8168
81ecdfbb
RW
8169 if test "x$ac_ct_DSYMUTIL" = x; then
8170 DSYMUTIL=":"
8171 else
8172 case $cross_compiling:$ac_tool_warned in
8173yes:)
8174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8176ac_tool_warned=yes ;;
8177esac
8178 DSYMUTIL=$ac_ct_DSYMUTIL
8179 fi
b214d478
SE
8180else
8181 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8182fi
8183
8184 if test -n "$ac_tool_prefix"; then
8185 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8186set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
8187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8188$as_echo_n "checking for $ac_word... " >&6; }
8189if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8190 $as_echo_n "(cached) " >&6
b214d478
SE
8191else
8192 if test -n "$NMEDIT"; then
8193 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8194else
8195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196for as_dir in $PATH
8197do
8198 IFS=$as_save_IFS
8199 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8200 for ac_exec_ext in '' $ac_executable_extensions; do
8201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8202 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 8203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8204 break 2
8205 fi
8206done
81ecdfbb
RW
8207 done
8208IFS=$as_save_IFS
b214d478
SE
8209
8210fi
8211fi
8212NMEDIT=$ac_cv_prog_NMEDIT
8213if test -n "$NMEDIT"; then
81ecdfbb
RW
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8215$as_echo "$NMEDIT" >&6; }
b214d478 8216else
81ecdfbb
RW
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8218$as_echo "no" >&6; }
b214d478
SE
8219fi
8220
81ecdfbb 8221
b214d478
SE
8222fi
8223if test -z "$ac_cv_prog_NMEDIT"; then
8224 ac_ct_NMEDIT=$NMEDIT
8225 # Extract the first word of "nmedit", so it can be a program name with args.
8226set dummy nmedit; ac_word=$2
81ecdfbb
RW
8227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228$as_echo_n "checking for $ac_word... " >&6; }
8229if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8230 $as_echo_n "(cached) " >&6
b214d478
SE
8231else
8232 if test -n "$ac_ct_NMEDIT"; then
8233 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8234else
8235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236for as_dir in $PATH
8237do
8238 IFS=$as_save_IFS
8239 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8240 for ac_exec_ext in '' $ac_executable_extensions; do
8241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8242 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 8243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8244 break 2
8245 fi
8246done
81ecdfbb
RW
8247 done
8248IFS=$as_save_IFS
b214d478 8249
b214d478
SE
8250fi
8251fi
8252ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8253if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8255$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 8256else
81ecdfbb
RW
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258$as_echo "no" >&6; }
b214d478
SE
8259fi
8260
81ecdfbb
RW
8261 if test "x$ac_ct_NMEDIT" = x; then
8262 NMEDIT=":"
8263 else
8264 case $cross_compiling:$ac_tool_warned in
8265yes:)
8266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8268ac_tool_warned=yes ;;
8269esac
8270 NMEDIT=$ac_ct_NMEDIT
8271 fi
b214d478
SE
8272else
8273 NMEDIT="$ac_cv_prog_NMEDIT"
8274fi
8275
8276 if test -n "$ac_tool_prefix"; then
8277 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8278set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
8279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8280$as_echo_n "checking for $ac_word... " >&6; }
8281if test "${ac_cv_prog_LIPO+set}" = set; then :
8282 $as_echo_n "(cached) " >&6
b214d478
SE
8283else
8284 if test -n "$LIPO"; then
8285 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8286else
8287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288for as_dir in $PATH
8289do
8290 IFS=$as_save_IFS
8291 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8292 for ac_exec_ext in '' $ac_executable_extensions; do
8293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8294 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 8295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8296 break 2
8297 fi
8298done
81ecdfbb
RW
8299 done
8300IFS=$as_save_IFS
b214d478
SE
8301
8302fi
8303fi
8304LIPO=$ac_cv_prog_LIPO
8305if test -n "$LIPO"; then
81ecdfbb
RW
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8307$as_echo "$LIPO" >&6; }
b214d478 8308else
81ecdfbb
RW
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310$as_echo "no" >&6; }
b214d478
SE
8311fi
8312
81ecdfbb 8313
b214d478
SE
8314fi
8315if test -z "$ac_cv_prog_LIPO"; then
8316 ac_ct_LIPO=$LIPO
8317 # Extract the first word of "lipo", so it can be a program name with args.
8318set dummy lipo; ac_word=$2
81ecdfbb
RW
8319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8320$as_echo_n "checking for $ac_word... " >&6; }
8321if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8322 $as_echo_n "(cached) " >&6
b214d478
SE
8323else
8324 if test -n "$ac_ct_LIPO"; then
8325 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8326else
8327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328for as_dir in $PATH
8329do
8330 IFS=$as_save_IFS
8331 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8332 for ac_exec_ext in '' $ac_executable_extensions; do
8333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8334 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 8335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8336 break 2
8337 fi
8338done
81ecdfbb
RW
8339 done
8340IFS=$as_save_IFS
b214d478 8341
b214d478
SE
8342fi
8343fi
8344ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8345if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8347$as_echo "$ac_ct_LIPO" >&6; }
b214d478 8348else
81ecdfbb
RW
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350$as_echo "no" >&6; }
b214d478
SE
8351fi
8352
81ecdfbb
RW
8353 if test "x$ac_ct_LIPO" = x; then
8354 LIPO=":"
8355 else
8356 case $cross_compiling:$ac_tool_warned in
8357yes:)
8358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8360ac_tool_warned=yes ;;
8361esac
8362 LIPO=$ac_ct_LIPO
8363 fi
b214d478
SE
8364else
8365 LIPO="$ac_cv_prog_LIPO"
8366fi
8367
8368 if test -n "$ac_tool_prefix"; then
8369 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8370set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
8371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8372$as_echo_n "checking for $ac_word... " >&6; }
8373if test "${ac_cv_prog_OTOOL+set}" = set; then :
8374 $as_echo_n "(cached) " >&6
b214d478
SE
8375else
8376 if test -n "$OTOOL"; then
8377 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8378else
8379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380for as_dir in $PATH
8381do
8382 IFS=$as_save_IFS
8383 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8384 for ac_exec_ext in '' $ac_executable_extensions; do
8385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8386 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 8387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8388 break 2
8389 fi
8390done
81ecdfbb
RW
8391 done
8392IFS=$as_save_IFS
b214d478
SE
8393
8394fi
8395fi
8396OTOOL=$ac_cv_prog_OTOOL
8397if test -n "$OTOOL"; then
81ecdfbb
RW
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8399$as_echo "$OTOOL" >&6; }
b214d478 8400else
81ecdfbb
RW
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8402$as_echo "no" >&6; }
b214d478
SE
8403fi
8404
81ecdfbb 8405
b214d478
SE
8406fi
8407if test -z "$ac_cv_prog_OTOOL"; then
8408 ac_ct_OTOOL=$OTOOL
8409 # Extract the first word of "otool", so it can be a program name with args.
8410set dummy otool; ac_word=$2
81ecdfbb
RW
8411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412$as_echo_n "checking for $ac_word... " >&6; }
8413if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8414 $as_echo_n "(cached) " >&6
b214d478
SE
8415else
8416 if test -n "$ac_ct_OTOOL"; then
8417 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8418else
8419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420for as_dir in $PATH
8421do
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8426 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8428 break 2
8429 fi
8430done
81ecdfbb
RW
8431 done
8432IFS=$as_save_IFS
b214d478 8433
b214d478
SE
8434fi
8435fi
8436ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8437if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8439$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 8440else
81ecdfbb
RW
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442$as_echo "no" >&6; }
b214d478
SE
8443fi
8444
81ecdfbb
RW
8445 if test "x$ac_ct_OTOOL" = x; then
8446 OTOOL=":"
8447 else
8448 case $cross_compiling:$ac_tool_warned in
8449yes:)
8450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8452ac_tool_warned=yes ;;
8453esac
8454 OTOOL=$ac_ct_OTOOL
8455 fi
b214d478
SE
8456else
8457 OTOOL="$ac_cv_prog_OTOOL"
8458fi
8459
8460 if test -n "$ac_tool_prefix"; then
8461 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8462set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
8463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8464$as_echo_n "checking for $ac_word... " >&6; }
8465if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8466 $as_echo_n "(cached) " >&6
b214d478
SE
8467else
8468 if test -n "$OTOOL64"; then
8469 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8470else
8471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472for as_dir in $PATH
8473do
8474 IFS=$as_save_IFS
8475 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8476 for ac_exec_ext in '' $ac_executable_extensions; do
8477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8478 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 8479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8480 break 2
8481 fi
8482done
81ecdfbb
RW
8483 done
8484IFS=$as_save_IFS
b214d478
SE
8485
8486fi
8487fi
8488OTOOL64=$ac_cv_prog_OTOOL64
8489if test -n "$OTOOL64"; then
81ecdfbb
RW
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8491$as_echo "$OTOOL64" >&6; }
b214d478 8492else
81ecdfbb
RW
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8494$as_echo "no" >&6; }
b214d478
SE
8495fi
8496
81ecdfbb 8497
b214d478
SE
8498fi
8499if test -z "$ac_cv_prog_OTOOL64"; then
8500 ac_ct_OTOOL64=$OTOOL64
8501 # Extract the first word of "otool64", so it can be a program name with args.
8502set dummy otool64; ac_word=$2
81ecdfbb
RW
8503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8504$as_echo_n "checking for $ac_word... " >&6; }
8505if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8506 $as_echo_n "(cached) " >&6
b214d478
SE
8507else
8508 if test -n "$ac_ct_OTOOL64"; then
8509 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8510else
8511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512for as_dir in $PATH
8513do
8514 IFS=$as_save_IFS
8515 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8516 for ac_exec_ext in '' $ac_executable_extensions; do
8517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8518 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 8519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8520 break 2
8521 fi
8522done
81ecdfbb
RW
8523 done
8524IFS=$as_save_IFS
b214d478 8525
b214d478
SE
8526fi
8527fi
8528ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8529if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8531$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 8532else
81ecdfbb
RW
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8534$as_echo "no" >&6; }
b214d478
SE
8535fi
8536
81ecdfbb
RW
8537 if test "x$ac_ct_OTOOL64" = x; then
8538 OTOOL64=":"
8539 else
8540 case $cross_compiling:$ac_tool_warned in
8541yes:)
8542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8544ac_tool_warned=yes ;;
8545esac
8546 OTOOL64=$ac_ct_OTOOL64
8547 fi
b214d478
SE
8548else
8549 OTOOL64="$ac_cv_prog_OTOOL64"
8550fi
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
81ecdfbb
RW
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8579$as_echo_n "checking for -single_module linker flag... " >&6; }
8580if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8581 $as_echo_n "(cached) " >&6
b214d478
SE
8582else
8583 lt_cv_apple_cc_single_mod=no
8584 if test -z "${LT_MULTI_MODULE}"; then
8585 # By default we will add the -single_module flag. You can override
8586 # by either setting the environment variable LT_MULTI_MODULE
8587 # non-empty at configure time, or by adding -multi_module to the
8588 # link flags.
8589 rm -rf libconftest.dylib*
8590 echo "int foo(void){return 1;}" > conftest.c
8591 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8592-dynamiclib -Wl,-single_module conftest.c" >&5
8593 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8594 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8595 _lt_result=$?
8596 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8597 lt_cv_apple_cc_single_mod=yes
8598 else
8599 cat conftest.err >&5
8600 fi
8601 rm -rf libconftest.dylib*
8602 rm -f conftest.*
8603 fi
8604fi
81ecdfbb
RW
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8606$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8608$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8609if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8610 $as_echo_n "(cached) " >&6
b214d478
SE
8611else
8612 lt_cv_ld_exported_symbols_list=no
8613 save_LDFLAGS=$LDFLAGS
8614 echo "_main" > conftest.sym
8615 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
8617/* end confdefs.h. */
8618
8619int
8620main ()
8621{
8622
8623 ;
8624 return 0;
8625}
8626_ACEOF
81ecdfbb 8627if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
8628 lt_cv_ld_exported_symbols_list=yes
8629else
81ecdfbb 8630 lt_cv_ld_exported_symbols_list=no
b214d478 8631fi
81ecdfbb
RW
8632rm -f core conftest.err conftest.$ac_objext \
8633 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
8634 LDFLAGS="$save_LDFLAGS"
8635
8636fi
81ecdfbb
RW
8637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8638$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8640$as_echo_n "checking for -force_load linker flag... " >&6; }
8641if test "${lt_cv_ld_force_load+set}" = set; then :
8642 $as_echo_n "(cached) " >&6
8643else
8644 lt_cv_ld_force_load=no
8645 cat > conftest.c << _LT_EOF
8646int forced_loaded() { return 2;}
8647_LT_EOF
8648 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8649 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8650 echo "$AR cru libconftest.a conftest.o" >&5
8651 $AR cru libconftest.a conftest.o 2>&5
8652 cat > conftest.c << _LT_EOF
8653int main() { return 0;}
8654_LT_EOF
8655 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8656 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8657 _lt_result=$?
8658 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8659 lt_cv_ld_force_load=yes
8660 else
8661 cat conftest.err >&5
8662 fi
8663 rm -f conftest.err libconftest.a conftest conftest.c
8664 rm -rf conftest.dSYM
8665
8666fi
8667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8668$as_echo "$lt_cv_ld_force_load" >&6; }
b214d478
SE
8669 case $host_os in
8670 rhapsody* | darwin1.[012])
8671 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8672 darwin1.*)
8673 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8674 darwin*) # darwin 5.x on
8675 # if running on 10.5 or later, the deployment target defaults
8676 # to the OS version, if on x86, and 10.4, the deployment
8677 # target defaults to 10.4. Don't you love it?
8678 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8679 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8680 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8681 10.[012]*)
8682 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8683 10.*)
8684 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8685 esac
8686 ;;
8687 esac
8688 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8689 _lt_dar_single_mod='$single_module'
8690 fi
8691 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8692 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8693 else
8694 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8695 fi
3725885a 8696 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
b214d478
SE
8697 _lt_dsymutil='~$DSYMUTIL $lib || :'
8698 else
8699 _lt_dsymutil=
8700 fi
8701 ;;
8702 esac
8703
b214d478 8704for ac_header in dlfcn.h
81ecdfbb
RW
8705do :
8706 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8707"
8708if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
b214d478 8709 cat >>confdefs.h <<_ACEOF
81ecdfbb 8710#define HAVE_DLFCN_H 1
b214d478
SE
8711_ACEOF
8712
8713fi
8714
8715done
8716
8717
8718
3725885a
RW
8719
8720
3cb62297 8721
b214d478
SE
8722# Set options
8723
8724
8725
8726 enable_dlopen=no
8727
8728
8729 enable_win32_dll=no
8730
8731
81ecdfbb
RW
8732 # Check whether --enable-shared was given.
8733if test "${enable_shared+set}" = set; then :
8734 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
8735 case $enableval in
8736 yes) enable_shared=yes ;;
8737 no) enable_shared=no ;;
8738 *)
8739 enable_shared=no
8740 # Look at the argument we got. We use all the common list separators.
8741 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8742 for pkg in $enableval; do
8743 IFS="$lt_save_ifs"
8744 if test "X$pkg" = "X$p"; then
8745 enable_shared=yes
8746 fi
8747 done
8748 IFS="$lt_save_ifs"
8749 ;;
8750 esac
8751else
8752 enable_shared=yes
81ecdfbb 8753fi
b214d478
SE
8754
8755
8756
8757
8758
8759
8760
8761
81ecdfbb
RW
8762
8763 # Check whether --enable-static was given.
8764if test "${enable_static+set}" = set; then :
8765 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
8766 case $enableval in
8767 yes) enable_static=yes ;;
8768 no) enable_static=no ;;
8769 *)
8770 enable_static=no
8771 # Look at the argument we got. We use all the common list separators.
8772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8773 for pkg in $enableval; do
8774 IFS="$lt_save_ifs"
8775 if test "X$pkg" = "X$p"; then
8776 enable_static=yes
8777 fi
8778 done
8779 IFS="$lt_save_ifs"
8780 ;;
8781 esac
8782else
8783 enable_static=yes
81ecdfbb 8784fi
b214d478
SE
8785
8786
8787
8788
8789
8790
8791
8792
8793
81ecdfbb
RW
8794
8795# Check whether --with-pic was given.
8796if test "${with_pic+set}" = set; then :
8797 withval=$with_pic; pic_mode="$withval"
b214d478
SE
8798else
8799 pic_mode=default
81ecdfbb
RW
8800fi
8801
b214d478
SE
8802
8803test -z "$pic_mode" && pic_mode=default
8804
8805
8806
8807
8808
8809
8810
81ecdfbb
RW
8811 # Check whether --enable-fast-install was given.
8812if test "${enable_fast_install+set}" = set; then :
8813 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
8814 case $enableval in
8815 yes) enable_fast_install=yes ;;
8816 no) enable_fast_install=no ;;
8817 *)
8818 enable_fast_install=no
8819 # Look at the argument we got. We use all the common list separators.
8820 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8821 for pkg in $enableval; do
8822 IFS="$lt_save_ifs"
8823 if test "X$pkg" = "X$p"; then
8824 enable_fast_install=yes
8825 fi
8826 done
8827 IFS="$lt_save_ifs"
7357c5b6
AM
8828 ;;
8829 esac
b214d478
SE
8830else
8831 enable_fast_install=yes
81ecdfbb
RW
8832fi
8833
ce2cded5 8834
ce2cded5
L
8835
8836
ce2cded5 8837
42ecbf5e 8838
d7040cdb 8839
d7040cdb 8840
d7040cdb 8841
d7040cdb 8842
d7040cdb 8843
ce2cded5
L
8844# This can be used to rebuild libtool when needed
8845LIBTOOL_DEPS="$ltmain"
d7040cdb 8846
ce2cded5
L
8847# Always use our own libtool.
8848LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 8849
d7040cdb 8850
d7040cdb 8851
d7040cdb 8852
d7040cdb 8853
d7040cdb 8854
d7040cdb 8855
d7040cdb 8856
d7040cdb 8857
d7040cdb 8858
d7040cdb 8859
d7040cdb 8860
d7040cdb 8861
d7040cdb 8862
d7040cdb 8863
d7040cdb 8864
d7040cdb
SE
8865
8866
8867
8868
8869
8870
8871
3725885a 8872
d7040cdb
SE
8873
8874
ce2cded5 8875test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
8876
8877
8878
8879
8880
8881
d7040cdb
SE
8882
8883
8884
8885
8886
8887
8888
8889
ce2cded5
L
8890if test -n "${ZSH_VERSION+set}" ; then
8891 setopt NO_GLOB_SUBST
8892fi
d7040cdb 8893
81ecdfbb
RW
8894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8895$as_echo_n "checking for objdir... " >&6; }
8896if test "${lt_cv_objdir+set}" = set; then :
8897 $as_echo_n "(cached) " >&6
ce2cded5
L
8898else
8899 rm -f .libs 2>/dev/null
8900mkdir .libs 2>/dev/null
8901if test -d .libs; then
8902 lt_cv_objdir=.libs
8903else
8904 # MS-DOS does not allow filenames that begin with a dot.
8905 lt_cv_objdir=_libs
8906fi
8907rmdir .libs 2>/dev/null
8908fi
81ecdfbb
RW
8909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8910$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 8911objdir=$lt_cv_objdir
d7040cdb
SE
8912
8913
8914
8915
8916
ce2cded5
L
8917cat >>confdefs.h <<_ACEOF
8918#define LT_OBJDIR "$lt_cv_objdir/"
8919_ACEOF
d7040cdb
SE
8920
8921
8922
8923
ce2cded5
L
8924case $host_os in
8925aix3*)
8926 # AIX sometimes has problems with the GCC collect2 program. For some
8927 # reason, if we set the COLLECT_NAMES environment variable, the problems
8928 # vanish in a puff of smoke.
8929 if test "X${COLLECT_NAMES+set}" != Xset; then
8930 COLLECT_NAMES=
8931 export COLLECT_NAMES
8932 fi
8933 ;;
8934esac
d7040cdb 8935
ce2cded5
L
8936# Global variables:
8937ofile=libtool
8938can_build_shared=yes
d7040cdb 8939
ce2cded5
L
8940# All known linkers require a `.a' archive for static linking (except MSVC,
8941# which needs '.lib').
8942libext=a
d7040cdb 8943
ce2cded5 8944with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8945
ce2cded5
L
8946old_CC="$CC"
8947old_CFLAGS="$CFLAGS"
d7040cdb 8948
ce2cded5
L
8949# Set sane defaults for various variables
8950test -z "$CC" && CC=cc
8951test -z "$LTCC" && LTCC=$CC
8952test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8953test -z "$LD" && LD=ld
8954test -z "$ac_objext" && ac_objext=o
d7040cdb 8955
ce2cded5
L
8956for cc_temp in $compiler""; do
8957 case $cc_temp in
8958 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8959 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8960 \-*) ;;
8961 *) break;;
8962 esac
8963done
3725885a 8964cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
8965
8966
ce2cded5
L
8967# Only perform the check for file, if the check method requires it
8968test -z "$MAGIC_CMD" && MAGIC_CMD=file
8969case $deplibs_check_method in
8970file_magic*)
8971 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8973$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8974if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8975 $as_echo_n "(cached) " >&6
ce2cded5
L
8976else
8977 case $MAGIC_CMD in
8978[\\/*] | ?:[\\/]*)
8979 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8980 ;;
8981*)
8982 lt_save_MAGIC_CMD="$MAGIC_CMD"
8983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8984 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8985 for ac_dir in $ac_dummy; do
8986 IFS="$lt_save_ifs"
8987 test -z "$ac_dir" && ac_dir=.
8988 if test -f $ac_dir/${ac_tool_prefix}file; then
8989 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8990 if test -n "$file_magic_test_file"; then
8991 case $deplibs_check_method in
8992 "file_magic "*)
8993 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8995 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8996 $EGREP "$file_magic_regex" > /dev/null; then
8997 :
8998 else
8999 cat <<_LT_EOF 1>&2
d7040cdb 9000
ce2cded5
L
9001*** Warning: the command libtool uses to detect shared libraries,
9002*** $file_magic_cmd, produces output that libtool cannot recognize.
9003*** The result is that libtool may fail to recognize shared libraries
9004*** as such. This will affect the creation of libtool libraries that
9005*** depend on shared libraries, but programs linked with such libtool
9006*** libraries will work regardless of this problem. Nevertheless, you
9007*** may want to report the problem to your system manager and/or to
9008*** bug-libtool@gnu.org
d7040cdb 9009
ce2cded5
L
9010_LT_EOF
9011 fi ;;
9012 esac
9013 fi
9014 break
9015 fi
9016 done
9017 IFS="$lt_save_ifs"
9018 MAGIC_CMD="$lt_save_MAGIC_CMD"
9019 ;;
9020esac
9021fi
d7040cdb 9022
ce2cded5
L
9023MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9024if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9026$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 9027else
81ecdfbb
RW
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9029$as_echo "no" >&6; }
ce2cded5 9030fi
d7040cdb
SE
9031
9032
9033
9034
9035
ce2cded5
L
9036if test -z "$lt_cv_path_MAGIC_CMD"; then
9037 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9039$as_echo_n "checking for file... " >&6; }
9040if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9041 $as_echo_n "(cached) " >&6
ce2cded5
L
9042else
9043 case $MAGIC_CMD in
9044[\\/*] | ?:[\\/]*)
9045 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9046 ;;
9047*)
9048 lt_save_MAGIC_CMD="$MAGIC_CMD"
9049 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9050 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9051 for ac_dir in $ac_dummy; do
9052 IFS="$lt_save_ifs"
9053 test -z "$ac_dir" && ac_dir=.
9054 if test -f $ac_dir/file; then
9055 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9056 if test -n "$file_magic_test_file"; then
9057 case $deplibs_check_method in
9058 "file_magic "*)
9059 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9060 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9061 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9062 $EGREP "$file_magic_regex" > /dev/null; then
9063 :
9064 else
9065 cat <<_LT_EOF 1>&2
d7040cdb 9066
ce2cded5
L
9067*** Warning: the command libtool uses to detect shared libraries,
9068*** $file_magic_cmd, produces output that libtool cannot recognize.
9069*** The result is that libtool may fail to recognize shared libraries
9070*** as such. This will affect the creation of libtool libraries that
9071*** depend on shared libraries, but programs linked with such libtool
9072*** libraries will work regardless of this problem. Nevertheless, you
9073*** may want to report the problem to your system manager and/or to
9074*** bug-libtool@gnu.org
d7040cdb 9075
ce2cded5
L
9076_LT_EOF
9077 fi ;;
9078 esac
9079 fi
9080 break
9081 fi
9082 done
9083 IFS="$lt_save_ifs"
9084 MAGIC_CMD="$lt_save_MAGIC_CMD"
9085 ;;
9086esac
9087fi
d7040cdb 9088
ce2cded5
L
9089MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9090if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9092$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 9093else
81ecdfbb
RW
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095$as_echo "no" >&6; }
ce2cded5 9096fi
d7040cdb
SE
9097
9098
ce2cded5
L
9099 else
9100 MAGIC_CMD=:
9101 fi
9102fi
d7040cdb 9103
ce2cded5
L
9104 fi
9105 ;;
9106esac
d7040cdb 9107
ce2cded5 9108# Use C for the default configuration in the libtool script
d7040cdb 9109
ce2cded5
L
9110lt_save_CC="$CC"
9111ac_ext=c
9112ac_cpp='$CPP $CPPFLAGS'
9113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9115ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
9116
9117
ce2cded5
L
9118# Source file extension for C test sources.
9119ac_ext=c
d7040cdb 9120
ce2cded5
L
9121# Object file extension for compiled C test sources.
9122objext=o
9123objext=$objext
d7040cdb 9124
ce2cded5
L
9125# Code to be used in simple compile tests
9126lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 9127
ce2cded5
L
9128# Code to be used in simple link tests
9129lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
9130
9131
9132
9133
9134
9135
9136
ce2cded5
L
9137# If no C compiler was specified, use CC.
9138LTCC=${LTCC-"$CC"}
d7040cdb 9139
ce2cded5
L
9140# If no C compiler flags were specified, use CFLAGS.
9141LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 9142
ce2cded5
L
9143# Allow CC to be a program name with arguments.
9144compiler=$CC
d7040cdb 9145
ce2cded5
L
9146# Save the default compiler, since it gets overwritten when the other
9147# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9148compiler_DEFAULT=$CC
d7040cdb 9149
ce2cded5
L
9150# save warnings/boilerplate of simple test code
9151ac_outfile=conftest.$ac_objext
9152echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9153eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9154_lt_compiler_boilerplate=`cat conftest.err`
9155$RM conftest*
d7040cdb 9156
ce2cded5
L
9157ac_outfile=conftest.$ac_objext
9158echo "$lt_simple_link_test_code" >conftest.$ac_ext
9159eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9160_lt_linker_boilerplate=`cat conftest.err`
b214d478 9161$RM -r conftest*
d7040cdb
SE
9162
9163
ce2cded5
L
9164## CAVEAT EMPTOR:
9165## There is no encapsulation within the following macros, do not change
9166## the running order or otherwise move them around unless you know exactly
9167## what you are doing...
9168if test -n "$compiler"; then
d7040cdb 9169
ce2cded5 9170lt_prog_compiler_no_builtin_flag=
d7040cdb 9171
ce2cded5 9172if test "$GCC" = yes; then
3725885a
RW
9173 case $cc_basename in
9174 nvcc*)
9175 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9176 *)
9177 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9178 esac
d7040cdb 9179
81ecdfbb
RW
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9181$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9182if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9183 $as_echo_n "(cached) " >&6
ce2cded5
L
9184else
9185 lt_cv_prog_compiler_rtti_exceptions=no
9186 ac_outfile=conftest.$ac_objext
9187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9188 lt_compiler_flag="-fno-rtti -fno-exceptions"
9189 # Insert the option either (1) after the last *FLAGS variable, or
9190 # (2) before a word containing "conftest.", or (3) at the end.
9191 # Note that $ac_compile itself does not contain backslashes and begins
9192 # with a dollar sign (not a hyphen), so the echo should work correctly.
9193 # The option is referenced via a variable to avoid confusing sed.
9194 lt_compile=`echo "$ac_compile" | $SED \
9195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9197 -e 's:$: $lt_compiler_flag:'`
3725885a 9198 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9199 (eval "$lt_compile" 2>conftest.err)
9200 ac_status=$?
9201 cat conftest.err >&5
3725885a 9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9203 if (exit $ac_status) && test -s "$ac_outfile"; then
9204 # The compiler can only warn and ignore the option if not recognized
9205 # So say no if there are warnings other than the usual output.
3725885a 9206 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
9207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9208 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9209 lt_cv_prog_compiler_rtti_exceptions=yes
9210 fi
9211 fi
9212 $RM conftest*
d7040cdb 9213
ce2cded5 9214fi
81ecdfbb
RW
9215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9216$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 9217
ce2cded5
L
9218if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9219 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9220else
9221 :
9222fi
d7040cdb 9223
ce2cded5 9224fi
d7040cdb
SE
9225
9226
9227
9228
9229
9230
ce2cded5
L
9231 lt_prog_compiler_wl=
9232lt_prog_compiler_pic=
9233lt_prog_compiler_static=
d7040cdb 9234
81ecdfbb
RW
9235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9236$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 9237
ce2cded5
L
9238 if test "$GCC" = yes; then
9239 lt_prog_compiler_wl='-Wl,'
9240 lt_prog_compiler_static='-static'
d7040cdb 9241
ce2cded5
L
9242 case $host_os in
9243 aix*)
9244 # All AIX code is PIC.
9245 if test "$host_cpu" = ia64; then
9246 # AIX 5 now supports IA64 processor
9247 lt_prog_compiler_static='-Bstatic'
9248 fi
52204357 9249 lt_prog_compiler_pic='-fPIC'
ce2cded5 9250 ;;
d7040cdb 9251
ce2cded5 9252 amigaos*)
b214d478
SE
9253 case $host_cpu in
9254 powerpc)
9255 # see comment about AmigaOS4 .so support
9256 lt_prog_compiler_pic='-fPIC'
9257 ;;
9258 m68k)
9259 # FIXME: we need at least 68020 code to build shared libraries, but
9260 # adding the `-m68020' flag to GCC prevents building anything better,
9261 # like `-m68040'.
9262 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9263 ;;
9264 esac
ce2cded5 9265 ;;
d7040cdb 9266
ce2cded5
L
9267 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9268 # PIC is the default for these OSes.
9269 ;;
d7040cdb 9270
b214d478 9271 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
9272 # This hack is so that the source file can tell whether it is being
9273 # built for inclusion in a dll (and should export symbols for example).
9274 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9275 # (--disable-auto-import) libraries
9276 lt_prog_compiler_pic='-DDLL_EXPORT'
9277 ;;
d7040cdb 9278
ce2cded5
L
9279 darwin* | rhapsody*)
9280 # PIC is the default on this platform
9281 # Common symbols not allowed in MH_DYLIB files
9282 lt_prog_compiler_pic='-fno-common'
9283 ;;
d7040cdb 9284
3725885a
RW
9285 haiku*)
9286 # PIC is the default for Haiku.
9287 # The "-static" flag exists, but is broken.
9288 lt_prog_compiler_static=
9289 ;;
9290
ce2cded5 9291 hpux*)
b214d478
SE
9292 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9293 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9294 # sets the default TLS model and affects inlining.
ce2cded5 9295 case $host_cpu in
b214d478 9296 hppa*64*)
ce2cded5
L
9297 # +Z the default
9298 ;;
9299 *)
9300 lt_prog_compiler_pic='-fPIC'
9301 ;;
9302 esac
9303 ;;
d7040cdb 9304
ce2cded5
L
9305 interix[3-9]*)
9306 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9307 # Instead, we relocate shared libraries at runtime.
9308 ;;
d7040cdb 9309
ce2cded5
L
9310 msdosdjgpp*)
9311 # Just because we use GCC doesn't mean we suddenly get shared libraries
9312 # on systems that don't support them.
9313 lt_prog_compiler_can_build_shared=no
9314 enable_shared=no
9315 ;;
d7040cdb 9316
ce2cded5
L
9317 *nto* | *qnx*)
9318 # QNX uses GNU C++, but need to define -shared option too, otherwise
9319 # it will coredump.
9320 lt_prog_compiler_pic='-fPIC -shared'
9321 ;;
d7040cdb 9322
ce2cded5
L
9323 sysv4*MP*)
9324 if test -d /usr/nec; then
9325 lt_prog_compiler_pic=-Kconform_pic
9326 fi
9327 ;;
d7040cdb 9328
ce2cded5
L
9329 *)
9330 lt_prog_compiler_pic='-fPIC'
9331 ;;
9332 esac
3725885a
RW
9333
9334 case $cc_basename in
9335 nvcc*) # Cuda Compiler Driver 2.2
9336 lt_prog_compiler_wl='-Xlinker '
9337 lt_prog_compiler_pic='-Xcompiler -fPIC'
9338 ;;
9339 esac
ce2cded5
L
9340 else
9341 # PORTME Check for flag to pass linker flags through the system compiler.
9342 case $host_os in
9343 aix*)
9344 lt_prog_compiler_wl='-Wl,'
9345 if test "$host_cpu" = ia64; then
9346 # AIX 5 now supports IA64 processor
9347 lt_prog_compiler_static='-Bstatic'
9348 else
9349 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9350 fi
9351 ;;
d7040cdb 9352
b214d478 9353 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
9354 # This hack is so that the source file can tell whether it is being
9355 # built for inclusion in a dll (and should export symbols for example).
9356 lt_prog_compiler_pic='-DDLL_EXPORT'
9357 ;;
d7040cdb 9358
ce2cded5
L
9359 hpux9* | hpux10* | hpux11*)
9360 lt_prog_compiler_wl='-Wl,'
9361 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9362 # not for PA HP-UX.
9363 case $host_cpu in
9364 hppa*64*|ia64*)
9365 # +Z the default
9366 ;;
9367 *)
9368 lt_prog_compiler_pic='+Z'
9369 ;;
9370 esac
9371 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9372 lt_prog_compiler_static='${wl}-a ${wl}archive'
9373 ;;
d7040cdb 9374
ce2cded5
L
9375 irix5* | irix6* | nonstopux*)
9376 lt_prog_compiler_wl='-Wl,'
9377 # PIC (with -KPIC) is the default.
9378 lt_prog_compiler_static='-non_shared'
9379 ;;
d7040cdb 9380
58e24671 9381 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 9382 case $cc_basename in
b214d478
SE
9383 # old Intel for x86_64 which still supported -KPIC.
9384 ecc*)
ce2cded5
L
9385 lt_prog_compiler_wl='-Wl,'
9386 lt_prog_compiler_pic='-KPIC'
9387 lt_prog_compiler_static='-static'
9388 ;;
b214d478
SE
9389 # icc used to be incompatible with GCC.
9390 # ICC 10 doesn't accept -KPIC any more.
9391 icc* | ifort*)
9392 lt_prog_compiler_wl='-Wl,'
9393 lt_prog_compiler_pic='-fPIC'
9394 lt_prog_compiler_static='-static'
9395 ;;
9396 # Lahey Fortran 8.1.
9397 lf95*)
9398 lt_prog_compiler_wl='-Wl,'
9399 lt_prog_compiler_pic='--shared'
9400 lt_prog_compiler_static='--static'
9401 ;;
3725885a 9402 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
9403 # Portland Group compilers (*not* the Pentium gcc compiler,
9404 # which looks to be a dead project)
9405 lt_prog_compiler_wl='-Wl,'
9406 lt_prog_compiler_pic='-fpic'
9407 lt_prog_compiler_static='-Bstatic'
9408 ;;
9409 ccc*)
9410 lt_prog_compiler_wl='-Wl,'
9411 # All Alpha code is PIC.
9412 lt_prog_compiler_static='-non_shared'
9413 ;;
3725885a
RW
9414 xl* | bgxl* | bgf* | mpixl*)
9415 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
b214d478
SE
9416 lt_prog_compiler_wl='-Wl,'
9417 lt_prog_compiler_pic='-qpic'
9418 lt_prog_compiler_static='-qstaticlink'
9419 ;;
ce2cded5
L
9420 *)
9421 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
9422 *Sun\ F* | *Sun*Fortran*)
9423 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
9424 lt_prog_compiler_pic='-KPIC'
9425 lt_prog_compiler_static='-Bstatic'
3725885a 9426 lt_prog_compiler_wl=''
ce2cded5 9427 ;;
3725885a
RW
9428 *Sun\ C*)
9429 # Sun C 5.9
ce2cded5
L
9430 lt_prog_compiler_pic='-KPIC'
9431 lt_prog_compiler_static='-Bstatic'
3725885a 9432 lt_prog_compiler_wl='-Wl,'
ce2cded5
L
9433 ;;
9434 esac
9435 ;;
9436 esac
9437 ;;
d7040cdb 9438
ce2cded5
L
9439 newsos6)
9440 lt_prog_compiler_pic='-KPIC'
9441 lt_prog_compiler_static='-Bstatic'
9442 ;;
d7040cdb 9443
ce2cded5
L
9444 *nto* | *qnx*)
9445 # QNX uses GNU C++, but need to define -shared option too, otherwise
9446 # it will coredump.
9447 lt_prog_compiler_pic='-fPIC -shared'
9448 ;;
d7040cdb 9449
ce2cded5
L
9450 osf3* | osf4* | osf5*)
9451 lt_prog_compiler_wl='-Wl,'
9452 # All OSF/1 code is PIC.
9453 lt_prog_compiler_static='-non_shared'
9454 ;;
d7040cdb 9455
ce2cded5
L
9456 rdos*)
9457 lt_prog_compiler_static='-non_shared'
9458 ;;
d7040cdb 9459
ce2cded5
L
9460 solaris*)
9461 lt_prog_compiler_pic='-KPIC'
9462 lt_prog_compiler_static='-Bstatic'
9463 case $cc_basename in
9464 f77* | f90* | f95*)
9465 lt_prog_compiler_wl='-Qoption ld ';;
9466 *)
9467 lt_prog_compiler_wl='-Wl,';;
9468 esac
9469 ;;
d7040cdb 9470
ce2cded5
L
9471 sunos4*)
9472 lt_prog_compiler_wl='-Qoption ld '
9473 lt_prog_compiler_pic='-PIC'
9474 lt_prog_compiler_static='-Bstatic'
9475 ;;
d7040cdb 9476
ce2cded5
L
9477 sysv4 | sysv4.2uw2* | sysv4.3*)
9478 lt_prog_compiler_wl='-Wl,'
9479 lt_prog_compiler_pic='-KPIC'
9480 lt_prog_compiler_static='-Bstatic'
9481 ;;
d7040cdb 9482
ce2cded5
L
9483 sysv4*MP*)
9484 if test -d /usr/nec ;then
9485 lt_prog_compiler_pic='-Kconform_pic'
9486 lt_prog_compiler_static='-Bstatic'
9487 fi
9488 ;;
d7040cdb 9489
ce2cded5
L
9490 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9491 lt_prog_compiler_wl='-Wl,'
9492 lt_prog_compiler_pic='-KPIC'
9493 lt_prog_compiler_static='-Bstatic'
9494 ;;
d7040cdb 9495
ce2cded5
L
9496 unicos*)
9497 lt_prog_compiler_wl='-Wl,'
9498 lt_prog_compiler_can_build_shared=no
9499 ;;
d7040cdb 9500
ce2cded5
L
9501 uts4*)
9502 lt_prog_compiler_pic='-pic'
9503 lt_prog_compiler_static='-Bstatic'
9504 ;;
d7040cdb 9505
ce2cded5
L
9506 *)
9507 lt_prog_compiler_can_build_shared=no
9508 ;;
9509 esac
9510 fi
d7040cdb 9511
ce2cded5
L
9512case $host_os in
9513 # For platforms which do not support PIC, -DPIC is meaningless:
9514 *djgpp*)
9515 lt_prog_compiler_pic=
9516 ;;
9517 *)
9518 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9519 ;;
9520esac
81ecdfbb
RW
9521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9522$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
9523
9524
9525
9526
9527
9528
ce2cded5
L
9529#
9530# Check to make sure the PIC flag actually works.
9531#
9532if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9534$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9535if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9536 $as_echo_n "(cached) " >&6
ce2cded5 9537else
b214d478 9538 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
9539 ac_outfile=conftest.$ac_objext
9540 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9541 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9542 # Insert the option either (1) after the last *FLAGS variable, or
9543 # (2) before a word containing "conftest.", or (3) at the end.
9544 # Note that $ac_compile itself does not contain backslashes and begins
9545 # with a dollar sign (not a hyphen), so the echo should work correctly.
9546 # The option is referenced via a variable to avoid confusing sed.
9547 lt_compile=`echo "$ac_compile" | $SED \
9548 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9549 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9550 -e 's:$: $lt_compiler_flag:'`
3725885a 9551 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9552 (eval "$lt_compile" 2>conftest.err)
9553 ac_status=$?
9554 cat conftest.err >&5
3725885a 9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9556 if (exit $ac_status) && test -s "$ac_outfile"; then
9557 # The compiler can only warn and ignore the option if not recognized
9558 # So say no if there are warnings other than the usual output.
3725885a 9559 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
9560 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9561 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9562 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
9563 fi
9564 fi
9565 $RM conftest*
d7040cdb 9566
ce2cded5 9567fi
81ecdfbb
RW
9568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9569$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
ce2cded5 9570
b214d478 9571if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
9572 case $lt_prog_compiler_pic in
9573 "" | " "*) ;;
9574 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9575 esac
9576else
9577 lt_prog_compiler_pic=
9578 lt_prog_compiler_can_build_shared=no
9579fi
9580
9581fi
d7040cdb
SE
9582
9583
9584
9585
9586
9587
ce2cded5
L
9588#
9589# Check to make sure the static flag actually works.
9590#
9591wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
9592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9593$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9594if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9595 $as_echo_n "(cached) " >&6
ce2cded5 9596else
b214d478 9597 lt_cv_prog_compiler_static_works=no
ce2cded5
L
9598 save_LDFLAGS="$LDFLAGS"
9599 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9600 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9601 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9602 # The linker can only warn and ignore the option if not recognized
9603 # So say no if there are warnings
9604 if test -s conftest.err; then
9605 # Append any errors to the config.log.
9606 cat conftest.err 1>&5
3725885a 9607 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
9608 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9609 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9610 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9611 fi
9612 else
b214d478 9613 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9614 fi
9615 fi
b214d478 9616 $RM -r conftest*
ce2cded5 9617 LDFLAGS="$save_LDFLAGS"
d7040cdb 9618
ce2cded5 9619fi
81ecdfbb
RW
9620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9621$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 9622
b214d478 9623if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
9624 :
9625else
9626 lt_prog_compiler_static=
9627fi
d7040cdb
SE
9628
9629
9630
9631
9632
9633
9634
81ecdfbb
RW
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9636$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9637if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9638 $as_echo_n "(cached) " >&6
ce2cded5
L
9639else
9640 lt_cv_prog_compiler_c_o=no
9641 $RM -r conftest 2>/dev/null
9642 mkdir conftest
9643 cd conftest
9644 mkdir out
9645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9646
ce2cded5
L
9647 lt_compiler_flag="-o out/conftest2.$ac_objext"
9648 # Insert the option either (1) after the last *FLAGS variable, or
9649 # (2) before a word containing "conftest.", or (3) at the end.
9650 # Note that $ac_compile itself does not contain backslashes and begins
9651 # with a dollar sign (not a hyphen), so the echo should work correctly.
9652 lt_compile=`echo "$ac_compile" | $SED \
9653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9655 -e 's:$: $lt_compiler_flag:'`
3725885a 9656 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9657 (eval "$lt_compile" 2>out/conftest.err)
9658 ac_status=$?
9659 cat out/conftest.err >&5
3725885a 9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9661 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9662 then
9663 # The compiler can only warn and ignore the option if not recognized
9664 # So say no if there are warnings
3725885a 9665 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9666 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9667 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9668 lt_cv_prog_compiler_c_o=yes
9669 fi
9670 fi
9671 chmod u+w . 2>&5
9672 $RM conftest*
9673 # SGI C++ compiler will create directory out/ii_files/ for
9674 # template instantiation
9675 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9676 $RM out/* && rmdir out
9677 cd ..
9678 $RM -r conftest
9679 $RM conftest*
d7040cdb 9680
ce2cded5 9681fi
81ecdfbb
RW
9682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9683$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
9684
9685
9686
9687
9688
9689
81ecdfbb
RW
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9691$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9692if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9693 $as_echo_n "(cached) " >&6
ce2cded5
L
9694else
9695 lt_cv_prog_compiler_c_o=no
9696 $RM -r conftest 2>/dev/null
9697 mkdir conftest
9698 cd conftest
9699 mkdir out
9700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9701
ce2cded5
L
9702 lt_compiler_flag="-o out/conftest2.$ac_objext"
9703 # Insert the option either (1) after the last *FLAGS variable, or
9704 # (2) before a word containing "conftest.", or (3) at the end.
9705 # Note that $ac_compile itself does not contain backslashes and begins
9706 # with a dollar sign (not a hyphen), so the echo should work correctly.
9707 lt_compile=`echo "$ac_compile" | $SED \
9708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9710 -e 's:$: $lt_compiler_flag:'`
3725885a 9711 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9712 (eval "$lt_compile" 2>out/conftest.err)
9713 ac_status=$?
9714 cat out/conftest.err >&5
3725885a 9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9716 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9717 then
9718 # The compiler can only warn and ignore the option if not recognized
9719 # So say no if there are warnings
3725885a 9720 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9721 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9722 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9723 lt_cv_prog_compiler_c_o=yes
9724 fi
9725 fi
9726 chmod u+w . 2>&5
9727 $RM conftest*
9728 # SGI C++ compiler will create directory out/ii_files/ for
9729 # template instantiation
9730 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9731 $RM out/* && rmdir out
9732 cd ..
9733 $RM -r conftest
9734 $RM conftest*
9735
9736fi
81ecdfbb
RW
9737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9738$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
9739
9740
9741
9742
9743hard_links="nottested"
9744if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9745 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9747$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
9748 hard_links=yes
9749 $RM conftest*
9750 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9751 touch conftest.a
9752 ln conftest.a conftest.b 2>&5 || hard_links=no
9753 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9755$as_echo "$hard_links" >&6; }
ce2cded5 9756 if test "$hard_links" = no; then
81ecdfbb
RW
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9758$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 9759 need_locks=warn
d7040cdb 9760 fi
d7040cdb 9761else
ce2cded5 9762 need_locks=no
d7040cdb 9763fi
d7040cdb 9764
d7040cdb 9765
d7040cdb 9766
d7040cdb 9767
d7040cdb 9768
d7040cdb 9769
81ecdfbb
RW
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9771$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 9772
ce2cded5
L
9773 runpath_var=
9774 allow_undefined_flag=
9775 always_export_symbols=no
9776 archive_cmds=
9777 archive_expsym_cmds=
9778 compiler_needs_object=no
9779 enable_shared_with_static_runtimes=no
9780 export_dynamic_flag_spec=
9781 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9782 hardcode_automatic=no
9783 hardcode_direct=no
9784 hardcode_direct_absolute=no
9785 hardcode_libdir_flag_spec=
9786 hardcode_libdir_flag_spec_ld=
9787 hardcode_libdir_separator=
9788 hardcode_minus_L=no
9789 hardcode_shlibpath_var=unsupported
9790 inherit_rpath=no
9791 link_all_deplibs=unknown
9792 module_cmds=
9793 module_expsym_cmds=
9794 old_archive_from_new_cmds=
9795 old_archive_from_expsyms_cmds=
9796 thread_safe_flag_spec=
9797 whole_archive_flag_spec=
9798 # include_expsyms should be a list of space-separated symbols to be *always*
9799 # included in the symbol list
9800 include_expsyms=
9801 # exclude_expsyms can be an extended regexp of symbols to exclude
9802 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9803 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9804 # as well as any symbol that contains `d'.
b214d478 9805 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
9806 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9807 # platforms (ab)use it in PIC code, but their linkers get confused if
9808 # the symbol is explicitly referenced. Since portable code cannot
9809 # rely on this symbol name, it's probably fine to never include it in
9810 # preloaded symbol tables.
b214d478 9811 # Exclude shared library initialization/finalization symbols.
ce2cded5 9812 extract_expsyms_cmds=
d7040cdb 9813
ce2cded5 9814 case $host_os in
b214d478 9815 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9816 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9817 # When not using gcc, we currently assume that we are using
9818 # Microsoft Visual C++.
9819 if test "$GCC" != yes; then
9820 with_gnu_ld=no
9821 fi
d7040cdb 9822 ;;
ce2cded5
L
9823 interix*)
9824 # we just hope/assume this is gcc and not c89 (= MSVC++)
9825 with_gnu_ld=yes
9826 ;;
9827 openbsd*)
9828 with_gnu_ld=no
d7040cdb
SE
9829 ;;
9830 esac
d7040cdb 9831
ce2cded5 9832 ld_shlibs=yes
3725885a
RW
9833
9834 # On some targets, GNU ld is compatible enough with the native linker
9835 # that we're better off using the native interface for both.
9836 lt_use_gnu_ld_interface=no
ce2cded5 9837 if test "$with_gnu_ld" = yes; then
3725885a
RW
9838 case $host_os in
9839 aix*)
9840 # The AIX port of GNU ld has always aspired to compatibility
9841 # with the native linker. However, as the warning in the GNU ld
9842 # block says, versions before 2.19.5* couldn't really create working
9843 # shared libraries, regardless of the interface used.
9844 case `$LD -v 2>&1` in
9845 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9846 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9847 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9848 *)
9849 lt_use_gnu_ld_interface=yes
9850 ;;
9851 esac
9852 ;;
9853 *)
9854 lt_use_gnu_ld_interface=yes
9855 ;;
9856 esac
9857 fi
9858
9859 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
9860 # If archive_cmds runs LD, not CC, wlarc should be empty
9861 wlarc='${wl}'
d7040cdb 9862
ce2cded5
L
9863 # Set some defaults for GNU ld with shared library support. These
9864 # are reset later if shared libraries are not supported. Putting them
9865 # here allows them to be overridden if necessary.
9866 runpath_var=LD_RUN_PATH
9867 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9868 export_dynamic_flag_spec='${wl}--export-dynamic'
9869 # ancient GNU ld didn't support --whole-archive et. al.
9870 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9871 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9872 else
9873 whole_archive_flag_spec=
9874 fi
9875 supports_anon_versioning=no
9876 case `$LD -v 2>&1` in
3725885a 9877 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
9878 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9879 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9880 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9881 *\ 2.11.*) ;; # other 2.11 versions
9882 *) supports_anon_versioning=yes ;;
9883 esac
d7040cdb 9884
ce2cded5
L
9885 # See if GNU ld supports shared libraries.
9886 case $host_os in
50e7d84b 9887 aix[3-9]*)
ce2cded5
L
9888 # On AIX/PPC, the GNU linker is very broken
9889 if test "$host_cpu" != ia64; then
9890 ld_shlibs=no
9891 cat <<_LT_EOF 1>&2
d7040cdb 9892
3725885a 9893*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
9894*** to be unable to reliably create shared libraries on AIX.
9895*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9896*** really care for shared libraries, you may want to install binutils
9897*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9898*** You will then need to restart the configuration process.
d7040cdb 9899
ce2cded5
L
9900_LT_EOF
9901 fi
d7040cdb 9902 ;;
d7040cdb 9903
ce2cded5 9904 amigaos*)
b214d478
SE
9905 case $host_cpu in
9906 powerpc)
9907 # see comment about AmigaOS4 .so support
9908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9909 archive_expsym_cmds=''
9910 ;;
9911 m68k)
9912 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)'
9913 hardcode_libdir_flag_spec='-L$libdir'
9914 hardcode_minus_L=yes
9915 ;;
9916 esac
ce2cded5 9917 ;;
d7040cdb 9918
ce2cded5
L
9919 beos*)
9920 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9921 allow_undefined_flag=unsupported
9922 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9923 # support --undefined. This deserves some investigation. FIXME
9924 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9925 else
9926 ld_shlibs=no
9927 fi
9928 ;;
d7040cdb 9929
b214d478 9930 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9931 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9932 # as there is no search path for DLLs.
9933 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9934 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
9935 allow_undefined_flag=unsupported
9936 always_export_symbols=no
9937 enable_shared_with_static_runtimes=yes
9938 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9939
9940 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9942 # If the export-symbols file already is a .def file (1st line
9943 # is EXPORTS), use it as is; otherwise, prepend...
9944 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9945 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 9946 else
ce2cded5
L
9947 echo EXPORTS > $output_objdir/$soname.def;
9948 cat $export_symbols >> $output_objdir/$soname.def;
9949 fi~
9950 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9951 else
9952 ld_shlibs=no
9953 fi
9954 ;;
d7040cdb 9955
3725885a
RW
9956 haiku*)
9957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9958 link_all_deplibs=yes
9959 ;;
9960
ce2cded5
L
9961 interix[3-9]*)
9962 hardcode_direct=no
9963 hardcode_shlibpath_var=no
9964 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9965 export_dynamic_flag_spec='${wl}-E'
9966 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9967 # Instead, shared libraries are loaded at an image base (0x10000000 by
9968 # default) and relocated if they conflict, which is a slow very memory
9969 # consuming and fragmenting process. To avoid this, we pick a random,
9970 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9971 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9972 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9973 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'
9974 ;;
d7040cdb 9975
58e24671 9976 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
9977 tmp_diet=no
9978 if test "$host_os" = linux-dietlibc; then
9979 case $cc_basename in
9980 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9981 esac
9982 fi
9983 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9984 && test "$tmp_diet" = no
9985 then
9986 tmp_addflag=
b214d478 9987 tmp_sharedflag='-shared'
ce2cded5
L
9988 case $cc_basename,$host_cpu in
9989 pgcc*) # Portland Group C compiler
3725885a 9990 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'
ce2cded5
L
9991 tmp_addflag=' $pic_flag'
9992 ;;
3725885a
RW
9993 pgf77* | pgf90* | pgf95* | pgfortran*)
9994 # Portland Group f77 and f90 compilers
9995 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'
ce2cded5
L
9996 tmp_addflag=' $pic_flag -Mnomain' ;;
9997 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9998 tmp_addflag=' -i_dynamic' ;;
9999 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10000 tmp_addflag=' -i_dynamic -nofor_main' ;;
10001 ifc* | ifort*) # Intel Fortran compiler
10002 tmp_addflag=' -nofor_main' ;;
b214d478
SE
10003 lf95*) # Lahey Fortran 8.1
10004 whole_archive_flag_spec=
10005 tmp_sharedflag='--shared' ;;
3725885a 10006 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
b214d478
SE
10007 tmp_sharedflag='-qmkshrobj'
10008 tmp_addflag= ;;
3725885a
RW
10009 nvcc*) # Cuda Compiler Driver 2.2
10010 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'
10011 compiler_needs_object=yes
10012 ;;
ce2cded5
L
10013 esac
10014 case `$CC -V 2>&1 | sed 5q` in
10015 *Sun\ C*) # Sun C 5.9
3725885a 10016 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'
ce2cded5
L
10017 compiler_needs_object=yes
10018 tmp_sharedflag='-G' ;;
10019 *Sun\ F*) # Sun Fortran 8.3
10020 tmp_sharedflag='-G' ;;
ce2cded5
L
10021 esac
10022 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 10023
ce2cded5
L
10024 if test "x$supports_anon_versioning" = xyes; then
10025 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10026 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10027 echo "local: *; };" >> $output_objdir/$libname.ver~
10028 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10029 fi
b214d478
SE
10030
10031 case $cc_basename in
3725885a 10032 xlf* | bgf* | bgxlf* | mpixlf*)
b214d478
SE
10033 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10034 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10035 hardcode_libdir_flag_spec=
10036 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10037 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10038 if test "x$supports_anon_versioning" = xyes; then
10039 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10040 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10041 echo "local: *; };" >> $output_objdir/$libname.ver~
10042 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10043 fi
10044 ;;
10045 esac
ce2cded5
L
10046 else
10047 ld_shlibs=no
10048 fi
10049 ;;
d7040cdb 10050
ce2cded5
L
10051 netbsd*)
10052 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10053 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10054 wlarc=
10055 else
10056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10057 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10058 fi
10059 ;;
10060
10061 solaris*)
10062 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10063 ld_shlibs=no
10064 cat <<_LT_EOF 1>&2
10065
10066*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10067*** create shared libraries on Solaris systems. Therefore, libtool
10068*** is disabling shared libraries support. We urge you to upgrade GNU
10069*** binutils to release 2.9.1 or newer. Another option is to modify
10070*** your PATH or compiler configuration so that the native linker is
10071*** used, and then restart.
10072
10073_LT_EOF
10074 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10076 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10077 else
10078 ld_shlibs=no
10079 fi
10080 ;;
10081
10082 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10083 case `$LD -v 2>&1` in
10084 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10085 ld_shlibs=no
10086 cat <<_LT_EOF 1>&2
10087
10088*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10089*** reliably create shared libraries on SCO systems. Therefore, libtool
10090*** is disabling shared libraries support. We urge you to upgrade GNU
10091*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10092*** your PATH or compiler configuration so that the native linker is
10093*** used, and then restart.
10094
10095_LT_EOF
10096 ;;
10097 *)
10098 # For security reasons, it is highly recommended that you always
10099 # use absolute paths for naming shared libraries, and exclude the
10100 # DT_RUNPATH tag from executables and libraries. But doing so
10101 # requires that you compile everything twice, which is a pain.
10102 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10103 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10105 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10106 else
10107 ld_shlibs=no
10108 fi
10109 ;;
10110 esac
10111 ;;
10112
10113 sunos4*)
10114 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10115 wlarc=
10116 hardcode_direct=yes
10117 hardcode_shlibpath_var=no
10118 ;;
10119
10120 *)
10121 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10123 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10124 else
10125 ld_shlibs=no
10126 fi
10127 ;;
10128 esac
10129
10130 if test "$ld_shlibs" = no; then
10131 runpath_var=
10132 hardcode_libdir_flag_spec=
10133 export_dynamic_flag_spec=
10134 whole_archive_flag_spec=
10135 fi
10136 else
10137 # PORTME fill in a description of your system's linker (not GNU ld)
10138 case $host_os in
10139 aix3*)
10140 allow_undefined_flag=unsupported
10141 always_export_symbols=yes
10142 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'
10143 # Note: this linker hardcodes the directories in LIBPATH if there
10144 # are no directories specified by -L.
10145 hardcode_minus_L=yes
10146 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10147 # Neither direct hardcoding nor static linking is supported with a
10148 # broken collect2.
10149 hardcode_direct=unsupported
10150 fi
10151 ;;
10152
50e7d84b 10153 aix[4-9]*)
ce2cded5
L
10154 if test "$host_cpu" = ia64; then
10155 # On IA64, the linker does run time linking by default, so we don't
10156 # have to do anything special.
10157 aix_use_runtimelinking=no
10158 exp_sym_flag='-Bexport'
10159 no_entry_flag=""
10160 else
10161 # If we're using GNU nm, then we don't want the "-C" option.
10162 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
10163 # Also, AIX nm treats weak defined symbols like other global
10164 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 10165 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 10166 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'
ce2cded5
L
10167 else
10168 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10169 fi
10170 aix_use_runtimelinking=no
10171
10172 # Test if we are trying to use run time linking or normal
10173 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10174 # need to do runtime linking.
50e7d84b 10175 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
10176 for ld_flag in $LDFLAGS; do
10177 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10178 aix_use_runtimelinking=yes
10179 break
10180 fi
10181 done
10182 ;;
10183 esac
10184
10185 exp_sym_flag='-bexport'
10186 no_entry_flag='-bnoentry'
10187 fi
10188
10189 # When large executables or shared objects are built, AIX ld can
10190 # have problems creating the table of contents. If linking a library
10191 # or program results in "error TOC overflow" add -mminimal-toc to
10192 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10193 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10194
10195 archive_cmds=''
10196 hardcode_direct=yes
10197 hardcode_direct_absolute=yes
10198 hardcode_libdir_separator=':'
10199 link_all_deplibs=yes
10200 file_list_spec='${wl}-f,'
10201
10202 if test "$GCC" = yes; then
10203 case $host_os in aix4.[012]|aix4.[012].*)
10204 # We only want to do this on AIX 4.2 and lower, the check
10205 # below for broken collect2 doesn't work under 4.3+
10206 collect2name=`${CC} -print-prog-name=collect2`
10207 if test -f "$collect2name" &&
10208 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10209 then
10210 # We have reworked collect2
10211 :
10212 else
10213 # We have old collect2
10214 hardcode_direct=unsupported
10215 # It fails to find uninstalled libraries when the uninstalled
10216 # path is not listed in the libpath. Setting hardcode_minus_L
10217 # to unsupported forces relinking
10218 hardcode_minus_L=yes
10219 hardcode_libdir_flag_spec='-L$libdir'
10220 hardcode_libdir_separator=
10221 fi
10222 ;;
10223 esac
10224 shared_flag='-shared'
10225 if test "$aix_use_runtimelinking" = yes; then
10226 shared_flag="$shared_flag "'${wl}-G'
10227 fi
10228 else
10229 # not using gcc
10230 if test "$host_cpu" = ia64; then
10231 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10232 # chokes on -Wl,-G. The following line is correct:
10233 shared_flag='-G'
10234 else
10235 if test "$aix_use_runtimelinking" = yes; then
10236 shared_flag='${wl}-G'
10237 else
10238 shared_flag='${wl}-bM:SRE'
10239 fi
10240 fi
10241 fi
10242
b214d478 10243 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
10244 # It seems that -bexpall does not export symbols beginning with
10245 # underscore (_), so it is better to generate a list of symbols to export.
10246 always_export_symbols=yes
10247 if test "$aix_use_runtimelinking" = yes; then
10248 # Warning - without using the other runtime loading flags (-brtl),
10249 # -berok will link without error, but may produce a broken library.
10250 allow_undefined_flag='-berok'
10251 # Determine the default libpath from the value encoded in an
10252 # empty executable.
81ecdfbb 10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
10254/* end confdefs.h. */
10255
10256int
10257main ()
10258{
10259
10260 ;
10261 return 0;
10262}
10263_ACEOF
81ecdfbb 10264if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 10265
ce2cded5
L
10266lt_aix_libpath_sed='
10267 /Import File Strings/,/^$/ {
10268 /^0/ {
10269 s/^0 *\(.*\)$/\1/
10270 p
10271 }
10272 }'
10273aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10274# Check for a 64-bit object if we didn't find anything.
10275if test -z "$aix_libpath"; then
10276 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10277fi
d7040cdb 10278fi
81ecdfbb
RW
10279rm -f core conftest.err conftest.$ac_objext \
10280 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10281if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 10282
ce2cded5 10283 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 10284 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"
ce2cded5
L
10285 else
10286 if test "$host_cpu" = ia64; then
10287 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10288 allow_undefined_flag="-z nodefs"
10289 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"
10290 else
10291 # Determine the default libpath from the value encoded in an
10292 # empty executable.
81ecdfbb 10293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10294/* end confdefs.h. */
d7040cdb 10295
ce2cded5
L
10296int
10297main ()
10298{
d7040cdb 10299
ce2cded5
L
10300 ;
10301 return 0;
10302}
10303_ACEOF
81ecdfbb 10304if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 10305
ce2cded5
L
10306lt_aix_libpath_sed='
10307 /Import File Strings/,/^$/ {
10308 /^0/ {
10309 s/^0 *\(.*\)$/\1/
10310 p
10311 }
10312 }'
10313aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10314# Check for a 64-bit object if we didn't find anything.
10315if test -z "$aix_libpath"; then
10316 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10317fi
ce2cded5 10318fi
81ecdfbb
RW
10319rm -f core conftest.err conftest.$ac_objext \
10320 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10321if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 10322
ce2cded5
L
10323 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10324 # Warning - without using the other run time loading flags,
10325 # -berok will link without error, but may produce a broken library.
10326 no_undefined_flag=' ${wl}-bernotok'
10327 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
10328 if test "$with_gnu_ld" = yes; then
10329 # We only use this code for GNU lds that support --whole-archive.
10330 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10331 else
10332 # Exported symbols can be pulled into shared objects from archives
10333 whole_archive_flag_spec='$convenience'
10334 fi
ce2cded5
L
10335 archive_cmds_need_lc=yes
10336 # This is similar to how AIX traditionally builds its shared libraries.
10337 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'
10338 fi
10339 fi
10340 ;;
d7040cdb 10341
ce2cded5 10342 amigaos*)
b214d478
SE
10343 case $host_cpu in
10344 powerpc)
10345 # see comment about AmigaOS4 .so support
10346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10347 archive_expsym_cmds=''
10348 ;;
10349 m68k)
10350 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)'
10351 hardcode_libdir_flag_spec='-L$libdir'
10352 hardcode_minus_L=yes
10353 ;;
10354 esac
ce2cded5
L
10355 ;;
10356
10357 bsdi[45]*)
10358 export_dynamic_flag_spec=-rdynamic
10359 ;;
10360
b214d478 10361 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10362 # When not using gcc, we currently assume that we are using
10363 # Microsoft Visual C++.
10364 # hardcode_libdir_flag_spec is actually meaningless, as there is
10365 # no search path for DLLs.
10366 hardcode_libdir_flag_spec=' '
10367 allow_undefined_flag=unsupported
10368 # Tell ltmain to make .lib files, not .a files.
10369 libext=lib
10370 # Tell ltmain to make .dll files, not .so files.
10371 shrext_cmds=".dll"
10372 # FIXME: Setting linknames here is a bad hack.
3725885a 10373 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
10374 # The linker will automatically build a .lib file if we build a DLL.
10375 old_archive_from_new_cmds='true'
10376 # FIXME: Should let the user specify the lib program.
10377 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10378 fix_srcfile_path='`cygpath -w "$srcfile"`'
10379 enable_shared_with_static_runtimes=yes
10380 ;;
10381
10382 darwin* | rhapsody*)
d7040cdb 10383
b214d478
SE
10384
10385 archive_cmds_need_lc=no
10386 hardcode_direct=no
10387 hardcode_automatic=yes
10388 hardcode_shlibpath_var=unsupported
3725885a
RW
10389 if test "$lt_cv_ld_force_load" = "yes"; then
10390 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\"`'
10391 else
10392 whole_archive_flag_spec=''
10393 fi
b214d478
SE
10394 link_all_deplibs=yes
10395 allow_undefined_flag="$_lt_dar_allow_undefined"
10396 case $cc_basename in
10397 ifort*) _lt_dar_can_shared=yes ;;
10398 *) _lt_dar_can_shared=$GCC ;;
10399 esac
10400 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 10401 output_verbose_link_cmd=func_echo_all
b214d478
SE
10402 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10403 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10404 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}"
10405 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}"
10406
10407 else
10408 ld_shlibs=no
10409 fi
10410
ce2cded5 10411 ;;
d7040cdb 10412
ce2cded5
L
10413 dgux*)
10414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10415 hardcode_libdir_flag_spec='-L$libdir'
10416 hardcode_shlibpath_var=no
10417 ;;
d7040cdb 10418
ce2cded5
L
10419 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10420 # support. Future versions do this automatically, but an explicit c++rt0.o
10421 # does not break anything, and helps significantly (at the cost of a little
10422 # extra space).
10423 freebsd2.2*)
10424 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10425 hardcode_libdir_flag_spec='-R$libdir'
10426 hardcode_direct=yes
10427 hardcode_shlibpath_var=no
d7040cdb 10428 ;;
d7040cdb 10429
ce2cded5 10430 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 10431 freebsd2.*)
ce2cded5
L
10432 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10433 hardcode_direct=yes
10434 hardcode_minus_L=yes
10435 hardcode_shlibpath_var=no
10436 ;;
d7040cdb 10437
ce2cded5
L
10438 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10439 freebsd* | dragonfly*)
10440 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10441 hardcode_libdir_flag_spec='-R$libdir'
10442 hardcode_direct=yes
10443 hardcode_shlibpath_var=no
10444 ;;
d7040cdb 10445
ce2cded5
L
10446 hpux9*)
10447 if test "$GCC" = yes; then
10448 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'
10449 else
10450 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'
10451 fi
10452 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10453 hardcode_libdir_separator=:
10454 hardcode_direct=yes
d7040cdb 10455
ce2cded5
L
10456 # hardcode_minus_L: Not really in the search PATH,
10457 # but as the default location of the library.
10458 hardcode_minus_L=yes
10459 export_dynamic_flag_spec='${wl}-E'
10460 ;;
d7040cdb 10461
ce2cded5 10462 hpux10*)
3725885a 10463 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
10464 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10465 else
10466 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10467 fi
10468 if test "$with_gnu_ld" = no; then
10469 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10470 hardcode_libdir_flag_spec_ld='+b $libdir'
10471 hardcode_libdir_separator=:
10472 hardcode_direct=yes
10473 hardcode_direct_absolute=yes
10474 export_dynamic_flag_spec='${wl}-E'
10475 # hardcode_minus_L: Not really in the search PATH,
10476 # but as the default location of the library.
10477 hardcode_minus_L=yes
10478 fi
10479 ;;
d7040cdb 10480
ce2cded5 10481 hpux11*)
3725885a 10482 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
10483 case $host_cpu in
10484 hppa*64*)
10485 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10486 ;;
10487 ia64*)
b214d478 10488 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
10489 ;;
10490 *)
10491 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10492 ;;
10493 esac
10494 else
10495 case $host_cpu in
10496 hppa*64*)
10497 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10498 ;;
10499 ia64*)
10500 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10501 ;;
10502 *)
3725885a
RW
10503
10504 # Older versions of the 11.00 compiler do not understand -b yet
10505 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10507$as_echo_n "checking if $CC understands -b... " >&6; }
10508if test "${lt_cv_prog_compiler__b+set}" = set; then :
10509 $as_echo_n "(cached) " >&6
10510else
10511 lt_cv_prog_compiler__b=no
10512 save_LDFLAGS="$LDFLAGS"
10513 LDFLAGS="$LDFLAGS -b"
10514 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10515 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10516 # The linker can only warn and ignore the option if not recognized
10517 # So say no if there are warnings
10518 if test -s conftest.err; then
10519 # Append any errors to the config.log.
10520 cat conftest.err 1>&5
10521 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10522 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10523 if diff conftest.exp conftest.er2 >/dev/null; then
10524 lt_cv_prog_compiler__b=yes
10525 fi
10526 else
10527 lt_cv_prog_compiler__b=yes
10528 fi
10529 fi
10530 $RM -r conftest*
10531 LDFLAGS="$save_LDFLAGS"
10532
10533fi
10534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10535$as_echo "$lt_cv_prog_compiler__b" >&6; }
10536
10537if test x"$lt_cv_prog_compiler__b" = xyes; then
10538 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10539else
10540 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10541fi
10542
ce2cded5
L
10543 ;;
10544 esac
10545 fi
10546 if test "$with_gnu_ld" = no; then
10547 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10548 hardcode_libdir_separator=:
d7040cdb 10549
ce2cded5
L
10550 case $host_cpu in
10551 hppa*64*|ia64*)
10552 hardcode_direct=no
10553 hardcode_shlibpath_var=no
10554 ;;
10555 *)
10556 hardcode_direct=yes
10557 hardcode_direct_absolute=yes
10558 export_dynamic_flag_spec='${wl}-E'
d7040cdb 10559
ce2cded5
L
10560 # hardcode_minus_L: Not really in the search PATH,
10561 # but as the default location of the library.
10562 hardcode_minus_L=yes
10563 ;;
10564 esac
10565 fi
10566 ;;
d7040cdb 10567
ce2cded5
L
10568 irix5* | irix6* | nonstopux*)
10569 if test "$GCC" = yes; then
3725885a 10570 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'
ce2cded5
L
10571 # Try to use the -exported_symbol ld option, if it does not
10572 # work, assume that -exports_file does not work either and
10573 # implicitly export all symbols.
10574 save_LDFLAGS="$LDFLAGS"
10575 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
10576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10577/* end confdefs.h. */
ce2cded5
L
10578int foo(void) {}
10579_ACEOF
81ecdfbb 10580if ac_fn_c_try_link "$LINENO"; then :
3725885a 10581 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'
d7040cdb 10582
ce2cded5 10583fi
81ecdfbb
RW
10584rm -f core conftest.err conftest.$ac_objext \
10585 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10586 LDFLAGS="$save_LDFLAGS"
10587 else
3725885a
RW
10588 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'
10589 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'
ce2cded5
L
10590 fi
10591 archive_cmds_need_lc='no'
10592 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10593 hardcode_libdir_separator=:
10594 inherit_rpath=yes
10595 link_all_deplibs=yes
10596 ;;
d7040cdb 10597
ce2cded5
L
10598 netbsd*)
10599 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10600 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10601 else
10602 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10603 fi
10604 hardcode_libdir_flag_spec='-R$libdir'
10605 hardcode_direct=yes
10606 hardcode_shlibpath_var=no
10607 ;;
d7040cdb 10608
ce2cded5
L
10609 newsos6)
10610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10611 hardcode_direct=yes
10612 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10613 hardcode_libdir_separator=:
10614 hardcode_shlibpath_var=no
10615 ;;
d7040cdb 10616
ce2cded5
L
10617 *nto* | *qnx*)
10618 ;;
d7040cdb 10619
ce2cded5 10620 openbsd*)
b214d478
SE
10621 if test -f /usr/libexec/ld.so; then
10622 hardcode_direct=yes
10623 hardcode_shlibpath_var=no
10624 hardcode_direct_absolute=yes
10625 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 10626 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 10627 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 10628 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
10629 export_dynamic_flag_spec='${wl}-E'
10630 else
10631 case $host_os in
10632 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10633 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10634 hardcode_libdir_flag_spec='-R$libdir'
10635 ;;
10636 *)
10637 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10638 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10639 ;;
10640 esac
10641 fi
10642 else
10643 ld_shlibs=no
ce2cded5
L
10644 fi
10645 ;;
d7040cdb 10646
ce2cded5
L
10647 os2*)
10648 hardcode_libdir_flag_spec='-L$libdir'
10649 hardcode_minus_L=yes
10650 allow_undefined_flag=unsupported
3725885a 10651 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'
ce2cded5
L
10652 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10653 ;;
d7040cdb 10654
ce2cded5
L
10655 osf3*)
10656 if test "$GCC" = yes; then
10657 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10658 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'
ce2cded5
L
10659 else
10660 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10661 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'
ce2cded5
L
10662 fi
10663 archive_cmds_need_lc='no'
10664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10665 hardcode_libdir_separator=:
10666 ;;
d7040cdb 10667
ce2cded5
L
10668 osf4* | osf5*) # as osf3* with the addition of -msym flag
10669 if test "$GCC" = yes; then
10670 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10671 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'
ce2cded5
L
10672 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10673 else
10674 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10675 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'
ce2cded5 10676 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~
3725885a 10677 $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'
d7040cdb 10678
ce2cded5
L
10679 # Both c and cxx compiler support -rpath directly
10680 hardcode_libdir_flag_spec='-rpath $libdir'
10681 fi
10682 archive_cmds_need_lc='no'
10683 hardcode_libdir_separator=:
10684 ;;
d7040cdb 10685
ce2cded5
L
10686 solaris*)
10687 no_undefined_flag=' -z defs'
10688 if test "$GCC" = yes; then
10689 wlarc='${wl}'
10690 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10691 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10692 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10693 else
10694 case `$CC -V 2>&1` in
10695 *"Compilers 5.0"*)
10696 wlarc=''
10697 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10698 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10699 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10700 ;;
10701 *)
10702 wlarc='${wl}'
10703 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10704 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10705 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10706 ;;
10707 esac
10708 fi
10709 hardcode_libdir_flag_spec='-R$libdir'
10710 hardcode_shlibpath_var=no
10711 case $host_os in
10712 solaris2.[0-5] | solaris2.[0-5].*) ;;
10713 *)
10714 # The compiler driver will combine and reorder linker options,
10715 # but understands `-z linker_flag'. GCC discards it without `$wl',
10716 # but is careful enough not to reorder.
10717 # Supported since Solaris 2.6 (maybe 2.5.1?)
10718 if test "$GCC" = yes; then
10719 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10720 else
10721 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10722 fi
10723 ;;
10724 esac
10725 link_all_deplibs=yes
10726 ;;
d7040cdb 10727
ce2cded5
L
10728 sunos4*)
10729 if test "x$host_vendor" = xsequent; then
10730 # Use $CC to link under sequent, because it throws in some extra .o
10731 # files that make .init and .fini sections work.
10732 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10733 else
10734 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10735 fi
10736 hardcode_libdir_flag_spec='-L$libdir'
10737 hardcode_direct=yes
10738 hardcode_minus_L=yes
10739 hardcode_shlibpath_var=no
10740 ;;
d7040cdb 10741
ce2cded5
L
10742 sysv4)
10743 case $host_vendor in
10744 sni)
10745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10746 hardcode_direct=yes # is this really true???
10747 ;;
10748 siemens)
10749 ## LD is ld it makes a PLAMLIB
10750 ## CC just makes a GrossModule.
10751 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10752 reload_cmds='$CC -r -o $output$reload_objs'
10753 hardcode_direct=no
10754 ;;
10755 motorola)
10756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10757 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10758 ;;
10759 esac
10760 runpath_var='LD_RUN_PATH'
10761 hardcode_shlibpath_var=no
10762 ;;
d7040cdb 10763
ce2cded5
L
10764 sysv4.3*)
10765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10766 hardcode_shlibpath_var=no
10767 export_dynamic_flag_spec='-Bexport'
10768 ;;
d7040cdb 10769
ce2cded5
L
10770 sysv4*MP*)
10771 if test -d /usr/nec; then
10772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10773 hardcode_shlibpath_var=no
10774 runpath_var=LD_RUN_PATH
10775 hardcode_runpath_var=yes
10776 ld_shlibs=yes
10777 fi
10778 ;;
d7040cdb 10779
ce2cded5
L
10780 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10781 no_undefined_flag='${wl}-z,text'
10782 archive_cmds_need_lc=no
10783 hardcode_shlibpath_var=no
10784 runpath_var='LD_RUN_PATH'
d7040cdb 10785
ce2cded5
L
10786 if test "$GCC" = yes; then
10787 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10788 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10789 else
10790 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10791 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10792 fi
10793 ;;
d7040cdb 10794
ce2cded5
L
10795 sysv5* | sco3.2v5* | sco5v6*)
10796 # Note: We can NOT use -z defs as we might desire, because we do not
10797 # link with -lc, and that would cause any symbols used from libc to
10798 # always be unresolved, which means just about no library would
10799 # ever link correctly. If we're not using GNU ld we use -z text
10800 # though, which does catch some bad symbols but isn't as heavy-handed
10801 # as -z defs.
10802 no_undefined_flag='${wl}-z,text'
10803 allow_undefined_flag='${wl}-z,nodefs'
10804 archive_cmds_need_lc=no
10805 hardcode_shlibpath_var=no
10806 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10807 hardcode_libdir_separator=':'
10808 link_all_deplibs=yes
10809 export_dynamic_flag_spec='${wl}-Bexport'
10810 runpath_var='LD_RUN_PATH'
d7040cdb 10811
ce2cded5
L
10812 if test "$GCC" = yes; then
10813 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10814 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10815 else
10816 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10817 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10818 fi
10819 ;;
d7040cdb 10820
ce2cded5
L
10821 uts4*)
10822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10823 hardcode_libdir_flag_spec='-L$libdir'
10824 hardcode_shlibpath_var=no
10825 ;;
d7040cdb 10826
ce2cded5
L
10827 *)
10828 ld_shlibs=no
10829 ;;
10830 esac
d7040cdb 10831
ce2cded5
L
10832 if test x$host_vendor = xsni; then
10833 case $host in
10834 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10835 export_dynamic_flag_spec='${wl}-Blargedynsym'
10836 ;;
10837 esac
10838 fi
10839 fi
d7040cdb 10840
81ecdfbb
RW
10841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10842$as_echo "$ld_shlibs" >&6; }
ce2cded5 10843test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 10844
ce2cded5 10845with_gnu_ld=$with_gnu_ld
d7040cdb
SE
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
ce2cded5
L
10861#
10862# Do we need to explicitly link libc?
10863#
10864case "x$archive_cmds_need_lc" in
10865x|xyes)
10866 # Assume -lc should be added
10867 archive_cmds_need_lc=yes
d7040cdb 10868
ce2cded5
L
10869 if test "$enable_shared" = yes && test "$GCC" = yes; then
10870 case $archive_cmds in
10871 *'~'*)
10872 # FIXME: we may have to deal with multi-command sequences.
10873 ;;
10874 '$CC '*)
10875 # Test whether the compiler implicitly links with -lc since on some
10876 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10877 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10879$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10880if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10881 $as_echo_n "(cached) " >&6
39144654
RW
10882else
10883 $RM conftest*
10884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10885
81ecdfbb 10886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
10887 (eval $ac_compile) 2>&5
10888 ac_status=$?
81ecdfbb
RW
10889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10890 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10891 soname=conftest
10892 lib=conftest
10893 libobjs=conftest.$ac_objext
10894 deplibs=
10895 wl=$lt_prog_compiler_wl
10896 pic_flag=$lt_prog_compiler_pic
10897 compiler_flags=-v
10898 linker_flags=-v
10899 verstring=
10900 output_objdir=.
10901 libname=conftest
10902 lt_save_allow_undefined_flag=$allow_undefined_flag
10903 allow_undefined_flag=
81ecdfbb 10904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
10905 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10906 ac_status=$?
81ecdfbb
RW
10907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10908 test $ac_status = 0; }
39144654
RW
10909 then
10910 lt_cv_archive_cmds_need_lc=no
10911 else
10912 lt_cv_archive_cmds_need_lc=yes
10913 fi
10914 allow_undefined_flag=$lt_save_allow_undefined_flag
10915 else
10916 cat conftest.err 1>&5
10917 fi
10918 $RM conftest*
10919
10920fi
81ecdfbb
RW
10921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10922$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10923 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
10924 ;;
10925 esac
10926 fi
10927 ;;
10928esac
d7040cdb
SE
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
d7040cdb 10956
d7040cdb 10957
d7040cdb
SE
10958
10959
10960
10961
10962
10963
d7040cdb 10964
d7040cdb 10965
d7040cdb 10966
d7040cdb 10967
d7040cdb 10968
d7040cdb 10969
d7040cdb 10970
d7040cdb 10971
d7040cdb 10972
d7040cdb 10973
d7040cdb 10974
d7040cdb 10975
d7040cdb 10976
d7040cdb 10977
d7040cdb 10978
d7040cdb 10979
d7040cdb 10980
d7040cdb 10981
d7040cdb 10982
d7040cdb 10983
d7040cdb 10984
d7040cdb 10985
d7040cdb 10986
d7040cdb 10987
d7040cdb 10988
d7040cdb 10989
d7040cdb 10990
d7040cdb 10991
ce2cded5
L
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
81ecdfbb
RW
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11087$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
11088
11089if test "$GCC" = yes; then
ce2cded5
L
11090 case $host_os in
11091 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11092 *) lt_awk_arg="/^libraries:/" ;;
11093 esac
3725885a
RW
11094 case $host_os in
11095 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11096 *) lt_sed_strip_eq="s,=/,/,g" ;;
11097 esac
11098 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11099 case $lt_search_path_spec in
11100 *\;*)
ce2cded5
L
11101 # if the path contains ";" then we assume it to be the separator
11102 # otherwise default to the standard path separator (i.e. ":") - it is
11103 # assumed that no part of a normal pathname contains ";" but that should
11104 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
11105 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11106 ;;
11107 *)
11108 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11109 ;;
11110 esac
ce2cded5
L
11111 # Ok, now we have the path, separated by spaces, we can step through it
11112 # and add multilib dir if necessary.
11113 lt_tmp_lt_search_path_spec=
11114 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11115 for lt_sys_path in $lt_search_path_spec; do
11116 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11117 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11118 else
11119 test -d "$lt_sys_path" && \
11120 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11121 fi
11122 done
3725885a 11123 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
11124BEGIN {RS=" "; FS="/|\n";} {
11125 lt_foo="";
11126 lt_count=0;
11127 for (lt_i = NF; lt_i > 0; lt_i--) {
11128 if ($lt_i != "" && $lt_i != ".") {
11129 if ($lt_i == "..") {
11130 lt_count++;
11131 } else {
11132 if (lt_count == 0) {
11133 lt_foo="/" $lt_i lt_foo;
11134 } else {
11135 lt_count--;
11136 }
11137 }
11138 }
11139 }
11140 if (lt_foo != "") { lt_freq[lt_foo]++; }
11141 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11142}'`
3725885a
RW
11143 # AWK program above erroneously prepends '/' to C:/dos/paths
11144 # for these hosts.
11145 case $host_os in
11146 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11147 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11148 esac
11149 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 11150else
ce2cded5
L
11151 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11152fi
11153library_names_spec=
11154libname_spec='lib$name'
11155soname_spec=
11156shrext_cmds=".so"
11157postinstall_cmds=
11158postuninstall_cmds=
11159finish_cmds=
11160finish_eval=
11161shlibpath_var=
11162shlibpath_overrides_runpath=unknown
11163version_type=none
11164dynamic_linker="$host_os ld.so"
11165sys_lib_dlsearch_path_spec="/lib /usr/lib"
11166need_lib_prefix=unknown
11167hardcode_into_libs=no
11168
11169# when you set need_version to no, make sure it does not cause -set_version
11170# flags to be left without arguments
11171need_version=unknown
11172
11173case $host_os in
11174aix3*)
11175 version_type=linux
11176 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11177 shlibpath_var=LIBPATH
11178
11179 # AIX 3 has no versioning support, so we append a major version to the name.
11180 soname_spec='${libname}${release}${shared_ext}$major'
11181 ;;
11182
50e7d84b 11183aix[4-9]*)
ce2cded5
L
11184 version_type=linux
11185 need_lib_prefix=no
11186 need_version=no
11187 hardcode_into_libs=yes
11188 if test "$host_cpu" = ia64; then
11189 # AIX 5 supports IA64
11190 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11191 shlibpath_var=LD_LIBRARY_PATH
11192 else
11193 # With GCC up to 2.95.x, collect2 would create an import file
11194 # for dependence libraries. The import file would start with
11195 # the line `#! .'. This would cause the generated library to
11196 # depend on `.', always an invalid library. This was fixed in
11197 # development snapshots of GCC prior to 3.0.
11198 case $host_os in
11199 aix4 | aix4.[01] | aix4.[01].*)
11200 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11201 echo ' yes '
11202 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11203 :
11204 else
11205 can_build_shared=no
11206 fi
11207 ;;
11208 esac
11209 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11210 # soname into executable. Probably we can add versioning support to
11211 # collect2, so additional links can be useful in future.
11212 if test "$aix_use_runtimelinking" = yes; then
11213 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11214 # instead of lib<name>.a to let people know that these are not
11215 # typical AIX shared libraries.
11216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11217 else
11218 # We preserve .a as extension for shared libraries through AIX4.2
11219 # and later when we are not doing run time linking.
11220 library_names_spec='${libname}${release}.a $libname.a'
11221 soname_spec='${libname}${release}${shared_ext}$major'
11222 fi
11223 shlibpath_var=LIBPATH
11224 fi
11225 ;;
11226
11227amigaos*)
b214d478
SE
11228 case $host_cpu in
11229 powerpc)
11230 # Since July 2007 AmigaOS4 officially supports .so libraries.
11231 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11233 ;;
11234 m68k)
ce2cded5
L
11235 library_names_spec='$libname.ixlibrary $libname.a'
11236 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 11237 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'
b214d478
SE
11238 ;;
11239 esac
ce2cded5
L
11240 ;;
11241
11242beos*)
11243 library_names_spec='${libname}${shared_ext}'
11244 dynamic_linker="$host_os ld.so"
11245 shlibpath_var=LIBRARY_PATH
11246 ;;
11247
11248bsdi[45]*)
11249 version_type=linux
11250 need_version=no
11251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11252 soname_spec='${libname}${release}${shared_ext}$major'
11253 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11254 shlibpath_var=LD_LIBRARY_PATH
11255 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11256 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11257 # the default ld.so.conf also contains /usr/contrib/lib and
11258 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11259 # libtool to hard-code these into programs
11260 ;;
11261
b214d478 11262cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
11263 version_type=windows
11264 shrext_cmds=".dll"
11265 need_version=no
11266 need_lib_prefix=no
11267
b214d478
SE
11268 case $GCC,$host_os in
11269 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
11270 library_names_spec='$libname.dll.a'
11271 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11272 postinstall_cmds='base_file=`basename \${file}`~
11273 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11274 dldir=$destdir/`dirname \$dlpath`~
11275 test -d \$dldir || mkdir -p \$dldir~
11276 $install_prog $dir/$dlname \$dldir/$dlname~
11277 chmod a+x \$dldir/$dlname~
11278 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11279 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11280 fi'
11281 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11282 dlpath=$dir/\$dldll~
11283 $RM \$dlpath'
11284 shlibpath_overrides_runpath=yes
11285
11286 case $host_os in
11287 cygwin*)
11288 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11289 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
11290
11291 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 11292 ;;
b214d478 11293 mingw* | cegcc*)
ce2cded5
L
11294 # MinGW DLLs use traditional 'lib' prefix
11295 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
11296 ;;
11297 pw32*)
11298 # pw32 DLLs use 'pw' prefix rather than 'lib'
11299 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11300 ;;
11301 esac
11302 ;;
11303
11304 *)
11305 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11306 ;;
11307 esac
11308 dynamic_linker='Win32 ld.exe'
11309 # FIXME: first we should search . and the directory the executable is in
11310 shlibpath_var=PATH
11311 ;;
11312
11313darwin* | rhapsody*)
11314 dynamic_linker="$host_os dyld"
11315 version_type=darwin
11316 need_lib_prefix=no
11317 need_version=no
11318 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11319 soname_spec='${libname}${release}${major}$shared_ext'
11320 shlibpath_overrides_runpath=yes
11321 shlibpath_var=DYLD_LIBRARY_PATH
11322 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11323
11324 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11325 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11326 ;;
11327
11328dgux*)
11329 version_type=linux
11330 need_lib_prefix=no
11331 need_version=no
11332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11333 soname_spec='${libname}${release}${shared_ext}$major'
11334 shlibpath_var=LD_LIBRARY_PATH
11335 ;;
11336
ce2cded5
L
11337freebsd* | dragonfly*)
11338 # DragonFly does not have aout. When/if they implement a new
11339 # versioning mechanism, adjust this.
11340 if test -x /usr/bin/objformat; then
11341 objformat=`/usr/bin/objformat`
11342 else
11343 case $host_os in
6d2920c8 11344 freebsd[23].*) objformat=aout ;;
ce2cded5
L
11345 *) objformat=elf ;;
11346 esac
11347 fi
11348 version_type=freebsd-$objformat
11349 case $version_type in
11350 freebsd-elf*)
11351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11352 need_version=no
11353 need_lib_prefix=no
11354 ;;
11355 freebsd-*)
11356 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11357 need_version=yes
11358 ;;
11359 esac
11360 shlibpath_var=LD_LIBRARY_PATH
11361 case $host_os in
6d2920c8 11362 freebsd2.*)
ce2cded5
L
11363 shlibpath_overrides_runpath=yes
11364 ;;
11365 freebsd3.[01]* | freebsdelf3.[01]*)
11366 shlibpath_overrides_runpath=yes
11367 hardcode_into_libs=yes
11368 ;;
11369 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11370 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11371 shlibpath_overrides_runpath=no
11372 hardcode_into_libs=yes
11373 ;;
11374 *) # from 4.6 on, and DragonFly
11375 shlibpath_overrides_runpath=yes
11376 hardcode_into_libs=yes
11377 ;;
11378 esac
11379 ;;
11380
11381gnu*)
11382 version_type=linux
11383 need_lib_prefix=no
11384 need_version=no
11385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11386 soname_spec='${libname}${release}${shared_ext}$major'
11387 shlibpath_var=LD_LIBRARY_PATH
11388 hardcode_into_libs=yes
11389 ;;
11390
3725885a
RW
11391haiku*)
11392 version_type=linux
11393 need_lib_prefix=no
11394 need_version=no
11395 dynamic_linker="$host_os runtime_loader"
11396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11397 soname_spec='${libname}${release}${shared_ext}$major'
11398 shlibpath_var=LIBRARY_PATH
11399 shlibpath_overrides_runpath=yes
11400 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11401 hardcode_into_libs=yes
11402 ;;
11403
ce2cded5
L
11404hpux9* | hpux10* | hpux11*)
11405 # Give a soname corresponding to the major version so that dld.sl refuses to
11406 # link against other versions.
11407 version_type=sunos
11408 need_lib_prefix=no
11409 need_version=no
11410 case $host_cpu in
11411 ia64*)
11412 shrext_cmds='.so'
11413 hardcode_into_libs=yes
11414 dynamic_linker="$host_os dld.so"
11415 shlibpath_var=LD_LIBRARY_PATH
11416 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418 soname_spec='${libname}${release}${shared_ext}$major'
11419 if test "X$HPUX_IA64_MODE" = X32; then
11420 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11421 else
11422 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11423 fi
11424 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11425 ;;
11426 hppa*64*)
11427 shrext_cmds='.sl'
11428 hardcode_into_libs=yes
11429 dynamic_linker="$host_os dld.sl"
11430 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11431 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11433 soname_spec='${libname}${release}${shared_ext}$major'
11434 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11435 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11436 ;;
11437 *)
11438 shrext_cmds='.sl'
11439 dynamic_linker="$host_os dld.sl"
11440 shlibpath_var=SHLIB_PATH
11441 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11443 soname_spec='${libname}${release}${shared_ext}$major'
11444 ;;
11445 esac
3725885a 11446 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 11447 postinstall_cmds='chmod 555 $lib'
3725885a
RW
11448 # or fails outright, so override atomically:
11449 install_override_mode=555
ce2cded5
L
11450 ;;
11451
11452interix[3-9]*)
11453 version_type=linux
11454 need_lib_prefix=no
11455 need_version=no
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11457 soname_spec='${libname}${release}${shared_ext}$major'
11458 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11459 shlibpath_var=LD_LIBRARY_PATH
11460 shlibpath_overrides_runpath=no
11461 hardcode_into_libs=yes
11462 ;;
11463
11464irix5* | irix6* | nonstopux*)
11465 case $host_os in
11466 nonstopux*) version_type=nonstopux ;;
11467 *)
11468 if test "$lt_cv_prog_gnu_ld" = yes; then
11469 version_type=linux
11470 else
11471 version_type=irix
11472 fi ;;
11473 esac
11474 need_lib_prefix=no
11475 need_version=no
11476 soname_spec='${libname}${release}${shared_ext}$major'
11477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11478 case $host_os in
11479 irix5* | nonstopux*)
11480 libsuff= shlibsuff=
11481 ;;
11482 *)
11483 case $LD in # libtool.m4 will add one of these switches to LD
11484 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11485 libsuff= shlibsuff= libmagic=32-bit;;
11486 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11487 libsuff=32 shlibsuff=N32 libmagic=N32;;
11488 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11489 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11490 *) libsuff= shlibsuff= libmagic=never-match;;
11491 esac
11492 ;;
11493 esac
11494 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11495 shlibpath_overrides_runpath=no
11496 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11497 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11498 hardcode_into_libs=yes
11499 ;;
11500
11501# No shared lib support for Linux oldld, aout, or coff.
11502linux*oldld* | linux*aout* | linux*coff*)
11503 dynamic_linker=no
11504 ;;
11505
11506# This must be Linux ELF.
58e24671 11507linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
11508 version_type=linux
11509 need_lib_prefix=no
11510 need_version=no
11511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512 soname_spec='${libname}${release}${shared_ext}$major'
11513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11514 shlibpath_var=LD_LIBRARY_PATH
11515 shlibpath_overrides_runpath=no
39144654 11516
ce2cded5 11517 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
11518 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11519 $as_echo_n "(cached) " >&6
39144654
RW
11520else
11521 lt_cv_shlibpath_overrides_runpath=no
11522 save_LDFLAGS=$LDFLAGS
11523 save_libdir=$libdir
11524 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11525 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 11526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11527/* end confdefs.h. */
11528
d7040cdb
SE
11529int
11530main ()
11531{
ce2cded5 11532
d7040cdb
SE
11533 ;
11534 return 0;
11535}
11536_ACEOF
81ecdfbb
RW
11537if ac_fn_c_try_link "$LINENO"; then :
11538 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 11539 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 11540fi
d7040cdb 11541fi
81ecdfbb
RW
11542rm -f core conftest.err conftest.$ac_objext \
11543 conftest$ac_exeext conftest.$ac_ext
39144654
RW
11544 LDFLAGS=$save_LDFLAGS
11545 libdir=$save_libdir
11546
11547fi
11548
11549 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 11550
ce2cded5
L
11551 # This implies no fast_install, which is unacceptable.
11552 # Some rework will be needed to allow for fast_install
11553 # before this can be enabled.
11554 hardcode_into_libs=yes
d7040cdb 11555
ce2cded5
L
11556 # Append ld.so.conf contents to the search path
11557 if test -f /etc/ld.so.conf; then
3725885a 11558 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' ' '`
ce2cded5
L
11559 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11560 fi
d7040cdb 11561
ce2cded5
L
11562 # We used to test for /lib/ld.so.1 and disable shared libraries on
11563 # powerpc, because MkLinux only supported shared libraries with the
11564 # GNU dynamic linker. Since this was broken with cross compilers,
11565 # most powerpc-linux boxes support dynamic linking these days and
11566 # people can always --disable-shared, the test was removed, and we
11567 # assume the GNU/Linux dynamic linker is in use.
11568 dynamic_linker='GNU/Linux ld.so'
11569 ;;
d7040cdb 11570
ce2cded5
L
11571netbsd*)
11572 version_type=sunos
11573 need_lib_prefix=no
11574 need_version=no
11575 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11578 dynamic_linker='NetBSD (a.out) ld.so'
11579 else
11580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11581 soname_spec='${libname}${release}${shared_ext}$major'
11582 dynamic_linker='NetBSD ld.elf_so'
11583 fi
11584 shlibpath_var=LD_LIBRARY_PATH
11585 shlibpath_overrides_runpath=yes
11586 hardcode_into_libs=yes
11587 ;;
d7040cdb 11588
ce2cded5
L
11589newsos6)
11590 version_type=linux
11591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11592 shlibpath_var=LD_LIBRARY_PATH
11593 shlibpath_overrides_runpath=yes
11594 ;;
d7040cdb 11595
ce2cded5
L
11596*nto* | *qnx*)
11597 version_type=qnx
11598 need_lib_prefix=no
11599 need_version=no
11600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11601 soname_spec='${libname}${release}${shared_ext}$major'
11602 shlibpath_var=LD_LIBRARY_PATH
11603 shlibpath_overrides_runpath=no
11604 hardcode_into_libs=yes
11605 dynamic_linker='ldqnx.so'
11606 ;;
d7040cdb 11607
ce2cded5
L
11608openbsd*)
11609 version_type=sunos
11610 sys_lib_dlsearch_path_spec="/usr/lib"
11611 need_lib_prefix=no
11612 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11613 case $host_os in
11614 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11615 *) need_version=no ;;
11616 esac
11617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11619 shlibpath_var=LD_LIBRARY_PATH
11620 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11621 case $host_os in
11622 openbsd2.[89] | openbsd2.[89].*)
11623 shlibpath_overrides_runpath=no
11624 ;;
11625 *)
11626 shlibpath_overrides_runpath=yes
11627 ;;
11628 esac
11629 else
11630 shlibpath_overrides_runpath=yes
11631 fi
11632 ;;
d7040cdb 11633
ce2cded5
L
11634os2*)
11635 libname_spec='$name'
11636 shrext_cmds=".dll"
11637 need_lib_prefix=no
11638 library_names_spec='$libname${shared_ext} $libname.a'
11639 dynamic_linker='OS/2 ld.exe'
11640 shlibpath_var=LIBPATH
11641 ;;
d7040cdb 11642
ce2cded5
L
11643osf3* | osf4* | osf5*)
11644 version_type=osf
11645 need_lib_prefix=no
11646 need_version=no
11647 soname_spec='${libname}${release}${shared_ext}$major'
11648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11649 shlibpath_var=LD_LIBRARY_PATH
11650 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11651 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11652 ;;
d7040cdb 11653
ce2cded5
L
11654rdos*)
11655 dynamic_linker=no
11656 ;;
d7040cdb 11657
ce2cded5
L
11658solaris*)
11659 version_type=linux
11660 need_lib_prefix=no
11661 need_version=no
11662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11663 soname_spec='${libname}${release}${shared_ext}$major'
11664 shlibpath_var=LD_LIBRARY_PATH
11665 shlibpath_overrides_runpath=yes
11666 hardcode_into_libs=yes
11667 # ldd complains unless libraries are executable
11668 postinstall_cmds='chmod +x $lib'
11669 ;;
d7040cdb 11670
ce2cded5
L
11671sunos4*)
11672 version_type=sunos
11673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11674 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11675 shlibpath_var=LD_LIBRARY_PATH
11676 shlibpath_overrides_runpath=yes
11677 if test "$with_gnu_ld" = yes; then
11678 need_lib_prefix=no
11679 fi
11680 need_version=yes
11681 ;;
d7040cdb 11682
ce2cded5
L
11683sysv4 | sysv4.3*)
11684 version_type=linux
11685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11686 soname_spec='${libname}${release}${shared_ext}$major'
11687 shlibpath_var=LD_LIBRARY_PATH
11688 case $host_vendor in
11689 sni)
11690 shlibpath_overrides_runpath=no
11691 need_lib_prefix=no
11692 runpath_var=LD_RUN_PATH
11693 ;;
11694 siemens)
11695 need_lib_prefix=no
11696 ;;
11697 motorola)
11698 need_lib_prefix=no
11699 need_version=no
11700 shlibpath_overrides_runpath=no
11701 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11702 ;;
11703 esac
11704 ;;
d7040cdb 11705
ce2cded5
L
11706sysv4*MP*)
11707 if test -d /usr/nec ;then
11708 version_type=linux
11709 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11710 soname_spec='$libname${shared_ext}.$major'
11711 shlibpath_var=LD_LIBRARY_PATH
11712 fi
11713 ;;
d7040cdb 11714
ce2cded5
L
11715sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11716 version_type=freebsd-elf
11717 need_lib_prefix=no
11718 need_version=no
11719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11720 soname_spec='${libname}${release}${shared_ext}$major'
11721 shlibpath_var=LD_LIBRARY_PATH
11722 shlibpath_overrides_runpath=yes
11723 hardcode_into_libs=yes
11724 if test "$with_gnu_ld" = yes; then
11725 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11726 else
11727 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11728 case $host_os in
11729 sco3.2v5*)
11730 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11731 ;;
11732 esac
11733 fi
11734 sys_lib_dlsearch_path_spec='/usr/lib'
11735 ;;
d7040cdb 11736
ce2cded5
L
11737tpf*)
11738 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11739 version_type=linux
11740 need_lib_prefix=no
11741 need_version=no
b214d478 11742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
11743 shlibpath_var=LD_LIBRARY_PATH
11744 shlibpath_overrides_runpath=no
11745 hardcode_into_libs=yes
11746 ;;
d7040cdb 11747
ce2cded5
L
11748uts4*)
11749 version_type=linux
11750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11751 soname_spec='${libname}${release}${shared_ext}$major'
11752 shlibpath_var=LD_LIBRARY_PATH
11753 ;;
d7040cdb 11754
ce2cded5
L
11755*)
11756 dynamic_linker=no
11757 ;;
11758esac
81ecdfbb
RW
11759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11760$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
11761test "$dynamic_linker" = no && can_build_shared=no
11762
11763variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11764if test "$GCC" = yes; then
11765 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
11766fi
11767
b214d478
SE
11768if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11769 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11770fi
11771if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11772 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11773fi
11774
d7040cdb
SE
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
d7040cdb 11786
d7040cdb 11787
d7040cdb 11788
d7040cdb 11789
d7040cdb
SE
11790
11791
11792
11793
d7040cdb 11794
d7040cdb
SE
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
d7040cdb
SE
11808
11809
11810
11811
d7040cdb
SE
11812
11813
11814
11815
d7040cdb 11816
d7040cdb 11817
d7040cdb 11818
d7040cdb 11819
d7040cdb 11820
d7040cdb 11821
d7040cdb 11822
d7040cdb
SE
11823
11824
11825
11826
11827
d7040cdb 11828
d7040cdb 11829
d7040cdb 11830
d7040cdb 11831
d7040cdb 11832
d7040cdb 11833
d7040cdb
SE
11834
11835
11836
11837
11838
d7040cdb
SE
11839
11840
d7040cdb 11841
d7040cdb 11842
d7040cdb 11843
d7040cdb 11844
ce2cded5
L
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
3725885a
RW
11855
11856
11857
11858
11859
ce2cded5
L
11860
11861
11862
11863
11864
11865
81ecdfbb
RW
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11867$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
11868hardcode_action=
11869if test -n "$hardcode_libdir_flag_spec" ||
11870 test -n "$runpath_var" ||
11871 test "X$hardcode_automatic" = "Xyes" ; then
11872
11873 # We can hardcode non-existent directories.
11874 if test "$hardcode_direct" != no &&
11875 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11876 # have to relink, otherwise we might link with an installed library
11877 # when we should be linking with a yet-to-be-installed one
11878 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11879 test "$hardcode_minus_L" != no; then
11880 # Linking always hardcodes the temporary library directory.
11881 hardcode_action=relink
11882 else
11883 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11884 hardcode_action=immediate
d7040cdb 11885 fi
d7040cdb 11886else
ce2cded5
L
11887 # We cannot hardcode anything, or else we can only hardcode existing
11888 # directories.
11889 hardcode_action=unsupported
d7040cdb 11890fi
81ecdfbb
RW
11891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11892$as_echo "$hardcode_action" >&6; }
d7040cdb 11893
ce2cded5
L
11894if test "$hardcode_action" = relink ||
11895 test "$inherit_rpath" = yes; then
11896 # Fast installation is not supported
11897 enable_fast_install=no
11898elif test "$shlibpath_overrides_runpath" = yes ||
11899 test "$enable_shared" = no; then
11900 # Fast installation is not necessary
11901 enable_fast_install=needless
d7040cdb
SE
11902fi
11903
d7040cdb 11904
d7040cdb 11905
d7040cdb 11906
d7040cdb 11907
d7040cdb 11908
ce2cded5
L
11909 if test "x$enable_dlopen" != xyes; then
11910 enable_dlopen=unknown
11911 enable_dlopen_self=unknown
11912 enable_dlopen_self_static=unknown
d7040cdb 11913else
ce2cded5
L
11914 lt_cv_dlopen=no
11915 lt_cv_dlopen_libs=
d7040cdb 11916
ce2cded5
L
11917 case $host_os in
11918 beos*)
11919 lt_cv_dlopen="load_add_on"
11920 lt_cv_dlopen_libs=
11921 lt_cv_dlopen_self=yes
11922 ;;
d7040cdb 11923
b214d478 11924 mingw* | pw32* | cegcc*)
ce2cded5
L
11925 lt_cv_dlopen="LoadLibrary"
11926 lt_cv_dlopen_libs=
11927 ;;
11928
11929 cygwin*)
11930 lt_cv_dlopen="dlopen"
11931 lt_cv_dlopen_libs=
11932 ;;
11933
11934 darwin*)
11935 # if libdl is installed we need to link against it
81ecdfbb
RW
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11937$as_echo_n "checking for dlopen in -ldl... " >&6; }
11938if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11939 $as_echo_n "(cached) " >&6
d7040cdb 11940else
ce2cded5
L
11941 ac_check_lib_save_LIBS=$LIBS
11942LIBS="-ldl $LIBS"
81ecdfbb 11943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11944/* end confdefs.h. */
11945
81ecdfbb
RW
11946/* Override any GCC internal prototype to avoid an error.
11947 Use char because int might match the return type of a GCC
11948 builtin and then its argument prototype would still apply. */
ce2cded5
L
11949#ifdef __cplusplus
11950extern "C"
11951#endif
ce2cded5
L
11952char dlopen ();
11953int
11954main ()
11955{
81ecdfbb 11956return dlopen ();
ce2cded5
L
11957 ;
11958 return 0;
11959}
11960_ACEOF
81ecdfbb 11961if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11962 ac_cv_lib_dl_dlopen=yes
11963else
81ecdfbb 11964 ac_cv_lib_dl_dlopen=no
d7040cdb 11965fi
81ecdfbb
RW
11966rm -f core conftest.err conftest.$ac_objext \
11967 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11968LIBS=$ac_check_lib_save_LIBS
d7040cdb 11969fi
81ecdfbb
RW
11970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11971$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11972if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11973 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11974else
d7040cdb 11975
ce2cded5
L
11976 lt_cv_dlopen="dyld"
11977 lt_cv_dlopen_libs=
11978 lt_cv_dlopen_self=yes
11979
d7040cdb 11980fi
ce2cded5
L
11981
11982 ;;
11983
11984 *)
81ecdfbb
RW
11985 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11986if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
11987 lt_cv_dlopen="shl_load"
11988else
81ecdfbb
RW
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11990$as_echo_n "checking for shl_load in -ldld... " >&6; }
11991if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11992 $as_echo_n "(cached) " >&6
ce2cded5
L
11993else
11994 ac_check_lib_save_LIBS=$LIBS
11995LIBS="-ldld $LIBS"
81ecdfbb 11996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11997/* end confdefs.h. */
d7040cdb 11998
81ecdfbb
RW
11999/* Override any GCC internal prototype to avoid an error.
12000 Use char because int might match the return type of a GCC
12001 builtin and then its argument prototype would still apply. */
ce2cded5
L
12002#ifdef __cplusplus
12003extern "C"
12004#endif
ce2cded5
L
12005char shl_load ();
12006int
12007main ()
12008{
81ecdfbb 12009return shl_load ();
ce2cded5
L
12010 ;
12011 return 0;
12012}
12013_ACEOF
81ecdfbb 12014if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
12015 ac_cv_lib_dld_shl_load=yes
12016else
81ecdfbb 12017 ac_cv_lib_dld_shl_load=no
ce2cded5 12018fi
81ecdfbb
RW
12019rm -f core conftest.err conftest.$ac_objext \
12020 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
12021LIBS=$ac_check_lib_save_LIBS
12022fi
81ecdfbb
RW
12023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12024$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12025if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
b214d478 12026 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 12027else
81ecdfbb
RW
12028 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12029if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
12030 lt_cv_dlopen="dlopen"
12031else
81ecdfbb
RW
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12033$as_echo_n "checking for dlopen in -ldl... " >&6; }
12034if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12035 $as_echo_n "(cached) " >&6
d7040cdb 12036else
ce2cded5
L
12037 ac_check_lib_save_LIBS=$LIBS
12038LIBS="-ldl $LIBS"
81ecdfbb 12039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
12040/* end confdefs.h. */
12041
81ecdfbb
RW
12042/* Override any GCC internal prototype to avoid an error.
12043 Use char because int might match the return type of a GCC
12044 builtin and then its argument prototype would still apply. */
ce2cded5
L
12045#ifdef __cplusplus
12046extern "C"
12047#endif
ce2cded5 12048char dlopen ();
d7040cdb
SE
12049int
12050main ()
12051{
81ecdfbb 12052return dlopen ();
d7040cdb
SE
12053 ;
12054 return 0;
12055}
12056_ACEOF
81ecdfbb 12057if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 12058 ac_cv_lib_dl_dlopen=yes
d7040cdb 12059else
81ecdfbb 12060 ac_cv_lib_dl_dlopen=no
d7040cdb 12061fi
81ecdfbb
RW
12062rm -f core conftest.err conftest.$ac_objext \
12063 conftest$ac_exeext conftest.$ac_ext
ce2cded5 12064LIBS=$ac_check_lib_save_LIBS
d7040cdb 12065fi
81ecdfbb
RW
12066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12067$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12068if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 12069 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 12070else
81ecdfbb
RW
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12072$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12073if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12074 $as_echo_n "(cached) " >&6
d7040cdb 12075else
ce2cded5
L
12076 ac_check_lib_save_LIBS=$LIBS
12077LIBS="-lsvld $LIBS"
81ecdfbb 12078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 12079/* end confdefs.h. */
d7040cdb 12080
81ecdfbb
RW
12081/* Override any GCC internal prototype to avoid an error.
12082 Use char because int might match the return type of a GCC
12083 builtin and then its argument prototype would still apply. */
ce2cded5
L
12084#ifdef __cplusplus
12085extern "C"
12086#endif
ce2cded5 12087char dlopen ();
d7040cdb
SE
12088int
12089main ()
12090{
81ecdfbb 12091return dlopen ();
d7040cdb
SE
12092 ;
12093 return 0;
12094}
12095_ACEOF
81ecdfbb 12096if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 12097 ac_cv_lib_svld_dlopen=yes
d7040cdb 12098else
81ecdfbb 12099 ac_cv_lib_svld_dlopen=no
d7040cdb 12100fi
81ecdfbb
RW
12101rm -f core conftest.err conftest.$ac_objext \
12102 conftest$ac_exeext conftest.$ac_ext
ce2cded5 12103LIBS=$ac_check_lib_save_LIBS
d7040cdb 12104fi
81ecdfbb
RW
12105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12106$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12107if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
12108 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12109else
81ecdfbb
RW
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12111$as_echo_n "checking for dld_link in -ldld... " >&6; }
12112if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12113 $as_echo_n "(cached) " >&6
ce2cded5
L
12114else
12115 ac_check_lib_save_LIBS=$LIBS
12116LIBS="-ldld $LIBS"
81ecdfbb 12117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
12118/* end confdefs.h. */
12119
81ecdfbb
RW
12120/* Override any GCC internal prototype to avoid an error.
12121 Use char because int might match the return type of a GCC
12122 builtin and then its argument prototype would still apply. */
ce2cded5
L
12123#ifdef __cplusplus
12124extern "C"
12125#endif
ce2cded5 12126char dld_link ();
d7040cdb
SE
12127int
12128main ()
12129{
81ecdfbb 12130return dld_link ();
d7040cdb
SE
12131 ;
12132 return 0;
12133}
12134_ACEOF
81ecdfbb 12135if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 12136 ac_cv_lib_dld_dld_link=yes
d7040cdb 12137else
81ecdfbb 12138 ac_cv_lib_dld_dld_link=no
d7040cdb 12139fi
81ecdfbb
RW
12140rm -f core conftest.err conftest.$ac_objext \
12141 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
12142LIBS=$ac_check_lib_save_LIBS
12143fi
81ecdfbb
RW
12144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12145$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12146if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
b214d478 12147 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
12148fi
12149
12150
12151fi
12152
12153
12154fi
12155
12156
12157fi
12158
12159
12160fi
12161
12162
12163fi
12164
12165 ;;
12166 esac
12167
12168 if test "x$lt_cv_dlopen" != xno; then
12169 enable_dlopen=yes
12170 else
12171 enable_dlopen=no
12172 fi
12173
12174 case $lt_cv_dlopen in
12175 dlopen)
12176 save_CPPFLAGS="$CPPFLAGS"
12177 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12178
12179 save_LDFLAGS="$LDFLAGS"
12180 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12181
12182 save_LIBS="$LIBS"
12183 LIBS="$lt_cv_dlopen_libs $LIBS"
12184
81ecdfbb
RW
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12186$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12187if test "${lt_cv_dlopen_self+set}" = set; then :
12188 $as_echo_n "(cached) " >&6
ce2cded5
L
12189else
12190 if test "$cross_compiling" = yes; then :
12191 lt_cv_dlopen_self=cross
12192else
12193 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12194 lt_status=$lt_dlunknown
12195 cat > conftest.$ac_ext <<_LT_EOF
edf84efc 12196#line 12196 "configure"
ce2cded5
L
12197#include "confdefs.h"
12198
12199#if HAVE_DLFCN_H
12200#include <dlfcn.h>
12201#endif
12202
12203#include <stdio.h>
12204
12205#ifdef RTLD_GLOBAL
12206# define LT_DLGLOBAL RTLD_GLOBAL
12207#else
12208# ifdef DL_GLOBAL
12209# define LT_DLGLOBAL DL_GLOBAL
12210# else
12211# define LT_DLGLOBAL 0
12212# endif
12213#endif
12214
12215/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12216 find out it does not work in some platform. */
12217#ifndef LT_DLLAZY_OR_NOW
12218# ifdef RTLD_LAZY
12219# define LT_DLLAZY_OR_NOW RTLD_LAZY
12220# else
12221# ifdef DL_LAZY
12222# define LT_DLLAZY_OR_NOW DL_LAZY
12223# else
12224# ifdef RTLD_NOW
12225# define LT_DLLAZY_OR_NOW RTLD_NOW
12226# else
12227# ifdef DL_NOW
12228# define LT_DLLAZY_OR_NOW DL_NOW
12229# else
12230# define LT_DLLAZY_OR_NOW 0
12231# endif
12232# endif
12233# endif
12234# endif
12235#endif
12236
3725885a
RW
12237/* When -fvisbility=hidden is used, assume the code has been annotated
12238 correspondingly for the symbols needed. */
12239#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12240void fnord () __attribute__((visibility("default")));
12241#endif
12242
12243void fnord () { int i=42; }
ce2cded5 12244int main ()
d7040cdb 12245{
ce2cded5
L
12246 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12247 int status = $lt_dlunknown;
12248
12249 if (self)
12250 {
12251 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
12252 else
12253 {
12254 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12255 else puts (dlerror ());
12256 }
ce2cded5
L
12257 /* dlclose (self); */
12258 }
12259 else
12260 puts (dlerror ());
12261
b214d478 12262 return status;
d7040cdb 12263}
ce2cded5 12264_LT_EOF
81ecdfbb 12265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 12266 (eval $ac_link) 2>&5
d7040cdb 12267 ac_status=$?
81ecdfbb
RW
12268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12269 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
12270 (./conftest; exit; ) >&5 2>/dev/null
12271 lt_status=$?
12272 case x$lt_status in
12273 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12274 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12275 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12276 esac
12277 else :
12278 # compilation failed
12279 lt_cv_dlopen_self=no
12280 fi
12281fi
12282rm -fr conftest*
12283
12284
12285fi
81ecdfbb
RW
12286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12287$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
12288
12289 if test "x$lt_cv_dlopen_self" = xyes; then
12290 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12292$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12293if test "${lt_cv_dlopen_self_static+set}" = set; then :
12294 $as_echo_n "(cached) " >&6
ce2cded5
L
12295else
12296 if test "$cross_compiling" = yes; then :
12297 lt_cv_dlopen_self_static=cross
12298else
12299 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12300 lt_status=$lt_dlunknown
12301 cat > conftest.$ac_ext <<_LT_EOF
edf84efc 12302#line 12302 "configure"
ce2cded5
L
12303#include "confdefs.h"
12304
12305#if HAVE_DLFCN_H
12306#include <dlfcn.h>
12307#endif
12308
12309#include <stdio.h>
12310
12311#ifdef RTLD_GLOBAL
12312# define LT_DLGLOBAL RTLD_GLOBAL
12313#else
12314# ifdef DL_GLOBAL
12315# define LT_DLGLOBAL DL_GLOBAL
12316# else
12317# define LT_DLGLOBAL 0
12318# endif
12319#endif
12320
12321/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12322 find out it does not work in some platform. */
12323#ifndef LT_DLLAZY_OR_NOW
12324# ifdef RTLD_LAZY
12325# define LT_DLLAZY_OR_NOW RTLD_LAZY
12326# else
12327# ifdef DL_LAZY
12328# define LT_DLLAZY_OR_NOW DL_LAZY
12329# else
12330# ifdef RTLD_NOW
12331# define LT_DLLAZY_OR_NOW RTLD_NOW
12332# else
12333# ifdef DL_NOW
12334# define LT_DLLAZY_OR_NOW DL_NOW
12335# else
12336# define LT_DLLAZY_OR_NOW 0
12337# endif
12338# endif
12339# endif
12340# endif
12341#endif
12342
3cb62297
L
12343/* When -fvisbility=hidden is used, assume the code has been annotated
12344 correspondingly for the symbols needed. */
12345#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12346void fnord () __attribute__((visibility("default")));
12347#endif
12348
12349void fnord () { int i=42; }
12350int main ()
12351{
12352 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12353 int status = $lt_dlunknown;
12354
12355 if (self)
12356 {
12357 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12358 else
12359 {
12360 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12361 else puts (dlerror ());
12362 }
12363 /* dlclose (self); */
12364 }
12365 else
12366 puts (dlerror ());
12367
12368 return status;
12369}
12370_LT_EOF
12371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12372 (eval $ac_link) 2>&5
12373 ac_status=$?
12374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12375 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12376 (./conftest; exit; ) >&5 2>/dev/null
12377 lt_status=$?
12378 case x$lt_status in
12379 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12380 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12381 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12382 esac
12383 else :
12384 # compilation failed
12385 lt_cv_dlopen_self_static=no
12386 fi
12387fi
12388rm -fr conftest*
12389
12390
12391fi
12392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12393$as_echo "$lt_cv_dlopen_self_static" >&6; }
12394 fi
12395
12396 CPPFLAGS="$save_CPPFLAGS"
12397 LDFLAGS="$save_LDFLAGS"
12398 LIBS="$save_LIBS"
12399 ;;
12400 esac
12401
12402 case $lt_cv_dlopen_self in
12403 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12404 *) enable_dlopen_self=unknown ;;
12405 esac
12406
12407 case $lt_cv_dlopen_self_static in
12408 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12409 *) enable_dlopen_self_static=unknown ;;
12410 esac
12411fi
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429striplib=
12430old_striplib=
12431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12432$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12433if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12434 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12435 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12437$as_echo "yes" >&6; }
12438else
12439# FIXME - insert some real tests, host_os isn't really good enough
12440 case $host_os in
12441 darwin*)
12442 if test -n "$STRIP" ; then
12443 striplib="$STRIP -x"
12444 old_striplib="$STRIP -S"
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12446$as_echo "yes" >&6; }
12447 else
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12449$as_echo "no" >&6; }
12450 fi
12451 ;;
12452 *)
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12454$as_echo "no" >&6; }
12455 ;;
12456 esac
12457fi
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470 # Report which library types will actually be built
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12472$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12474$as_echo "$can_build_shared" >&6; }
12475
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12477$as_echo_n "checking whether to build shared libraries... " >&6; }
12478 test "$can_build_shared" = "no" && enable_shared=no
12479
12480 # On AIX, shared libraries and static libraries use the same namespace, and
12481 # are all built from PIC.
12482 case $host_os in
12483 aix3*)
12484 test "$enable_shared" = yes && enable_static=no
12485 if test -n "$RANLIB"; then
12486 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12487 postinstall_cmds='$RANLIB $lib'
12488 fi
12489 ;;
12490
12491 aix[4-9]*)
12492 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12493 test "$enable_shared" = yes && enable_static=no
12494 fi
12495 ;;
12496 esac
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12498$as_echo "$enable_shared" >&6; }
12499
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12501$as_echo_n "checking whether to build static libraries... " >&6; }
12502 # Make sure either enable_shared or enable_static is yes.
12503 test "$enable_shared" = yes || enable_static=yes
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12505$as_echo "$enable_static" >&6; }
12506
12507
12508
12509
12510fi
12511ac_ext=c
12512ac_cpp='$CPP $CPPFLAGS'
12513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12515ac_compiler_gnu=$ac_cv_c_compiler_gnu
12516
12517CC="$lt_save_CC"
12518
12519 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12520 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12521 (test "X$CXX" != "Xg++"))) ; then
12522 ac_ext=cpp
12523ac_cpp='$CXXCPP $CPPFLAGS'
12524ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12525ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12526ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12528$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12529if test -z "$CXXCPP"; then
12530 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12531 $as_echo_n "(cached) " >&6
12532else
12533 # Double quotes because CXXCPP needs to be expanded
12534 for CXXCPP in "$CXX -E" "/lib/cpp"
12535 do
12536 ac_preproc_ok=false
12537for ac_cxx_preproc_warn_flag in '' yes
12538do
12539 # Use a header file that comes with gcc, so configuring glibc
12540 # with a fresh cross-compiler works.
12541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12542 # <limits.h> exists even on freestanding compilers.
12543 # On the NeXT, cc -E runs the code through the compiler's parser,
12544 # not just through cpp. "Syntax error" is here to catch this case.
12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546/* end confdefs.h. */
12547#ifdef __STDC__
12548# include <limits.h>
12549#else
12550# include <assert.h>
12551#endif
12552 Syntax error
12553_ACEOF
12554if ac_fn_cxx_try_cpp "$LINENO"; then :
12555
12556else
12557 # Broken: fails on valid input.
12558continue
12559fi
12560rm -f conftest.err conftest.$ac_ext
12561
12562 # OK, works on sane cases. Now check whether nonexistent headers
12563 # can be detected and how.
12564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12565/* end confdefs.h. */
12566#include <ac_nonexistent.h>
12567_ACEOF
12568if ac_fn_cxx_try_cpp "$LINENO"; then :
12569 # Broken: success on invalid input.
12570continue
12571else
12572 # Passes both tests.
12573ac_preproc_ok=:
12574break
12575fi
12576rm -f conftest.err conftest.$ac_ext
12577
12578done
12579# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12580rm -f conftest.err conftest.$ac_ext
12581if $ac_preproc_ok; then :
12582 break
12583fi
12584
12585 done
12586 ac_cv_prog_CXXCPP=$CXXCPP
12587
12588fi
12589 CXXCPP=$ac_cv_prog_CXXCPP
12590else
12591 ac_cv_prog_CXXCPP=$CXXCPP
12592fi
12593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12594$as_echo "$CXXCPP" >&6; }
12595ac_preproc_ok=false
12596for ac_cxx_preproc_warn_flag in '' yes
12597do
12598 # Use a header file that comes with gcc, so configuring glibc
12599 # with a fresh cross-compiler works.
12600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12601 # <limits.h> exists even on freestanding compilers.
12602 # On the NeXT, cc -E runs the code through the compiler's parser,
12603 # not just through cpp. "Syntax error" is here to catch this case.
12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605/* end confdefs.h. */
12606#ifdef __STDC__
12607# include <limits.h>
12608#else
12609# include <assert.h>
12610#endif
12611 Syntax error
12612_ACEOF
12613if ac_fn_cxx_try_cpp "$LINENO"; then :
12614
12615else
12616 # Broken: fails on valid input.
12617continue
12618fi
12619rm -f conftest.err conftest.$ac_ext
12620
12621 # OK, works on sane cases. Now check whether nonexistent headers
12622 # can be detected and how.
12623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624/* end confdefs.h. */
12625#include <ac_nonexistent.h>
12626_ACEOF
12627if ac_fn_cxx_try_cpp "$LINENO"; then :
12628 # Broken: success on invalid input.
12629continue
12630else
12631 # Passes both tests.
12632ac_preproc_ok=:
12633break
12634fi
12635rm -f conftest.err conftest.$ac_ext
12636
12637done
12638# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12639rm -f conftest.err conftest.$ac_ext
12640if $ac_preproc_ok; then :
12641
12642else
12643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12645as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12646See \`config.log' for more details." "$LINENO" 5; }
12647fi
12648
12649ac_ext=c
12650ac_cpp='$CPP $CPPFLAGS'
12651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12653ac_compiler_gnu=$ac_cv_c_compiler_gnu
12654
12655else
12656 _lt_caught_CXX_error=yes
12657fi
12658
12659ac_ext=cpp
12660ac_cpp='$CXXCPP $CPPFLAGS'
12661ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12662ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12663ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12664
12665archive_cmds_need_lc_CXX=no
12666allow_undefined_flag_CXX=
12667always_export_symbols_CXX=no
12668archive_expsym_cmds_CXX=
12669compiler_needs_object_CXX=no
12670export_dynamic_flag_spec_CXX=
12671hardcode_direct_CXX=no
12672hardcode_direct_absolute_CXX=no
12673hardcode_libdir_flag_spec_CXX=
12674hardcode_libdir_flag_spec_ld_CXX=
12675hardcode_libdir_separator_CXX=
12676hardcode_minus_L_CXX=no
12677hardcode_shlibpath_var_CXX=unsupported
12678hardcode_automatic_CXX=no
12679inherit_rpath_CXX=no
12680module_cmds_CXX=
12681module_expsym_cmds_CXX=
12682link_all_deplibs_CXX=unknown
12683old_archive_cmds_CXX=$old_archive_cmds
12684reload_flag_CXX=$reload_flag
12685reload_cmds_CXX=$reload_cmds
12686no_undefined_flag_CXX=
12687whole_archive_flag_spec_CXX=
12688enable_shared_with_static_runtimes_CXX=no
12689
12690# Source file extension for C++ test sources.
12691ac_ext=cpp
12692
12693# Object file extension for compiled C++ test sources.
12694objext=o
12695objext_CXX=$objext
12696
12697# No sense in running all these tests if we already determined that
12698# the CXX compiler isn't working. Some variables (like enable_shared)
12699# are currently assumed to apply to all compilers on this platform,
12700# and will be corrupted by setting them based on a non-working compiler.
12701if test "$_lt_caught_CXX_error" != yes; then
12702 # Code to be used in simple compile tests
12703 lt_simple_compile_test_code="int some_variable = 0;"
12704
12705 # Code to be used in simple link tests
12706 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12707
12708 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12709
12710
12711
12712
12713
12714
12715# If no C compiler was specified, use CC.
12716LTCC=${LTCC-"$CC"}
12717
12718# If no C compiler flags were specified, use CFLAGS.
12719LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12720
12721# Allow CC to be a program name with arguments.
12722compiler=$CC
12723
12724
12725 # save warnings/boilerplate of simple test code
12726 ac_outfile=conftest.$ac_objext
12727echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12728eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12729_lt_compiler_boilerplate=`cat conftest.err`
12730$RM conftest*
12731
12732 ac_outfile=conftest.$ac_objext
12733echo "$lt_simple_link_test_code" >conftest.$ac_ext
12734eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12735_lt_linker_boilerplate=`cat conftest.err`
12736$RM -r conftest*
12737
12738
12739 # Allow CC to be a program name with arguments.
12740 lt_save_CC=$CC
12741 lt_save_LD=$LD
12742 lt_save_GCC=$GCC
12743 GCC=$GXX
12744 lt_save_with_gnu_ld=$with_gnu_ld
12745 lt_save_path_LD=$lt_cv_path_LD
12746 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12747 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12748 else
12749 $as_unset lt_cv_prog_gnu_ld
12750 fi
12751 if test -n "${lt_cv_path_LDCXX+set}"; then
12752 lt_cv_path_LD=$lt_cv_path_LDCXX
12753 else
12754 $as_unset lt_cv_path_LD
12755 fi
12756 test -z "${LDCXX+set}" || LD=$LDCXX
12757 CC=${CXX-"c++"}
12758 compiler=$CC
12759 compiler_CXX=$CC
12760 for cc_temp in $compiler""; do
12761 case $cc_temp in
12762 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12763 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12764 \-*) ;;
12765 *) break;;
12766 esac
12767done
12768cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12769
12770
12771 if test -n "$compiler"; then
12772 # We don't want -fno-exception when compiling C++ code, so set the
12773 # no_builtin_flag separately
12774 if test "$GXX" = yes; then
12775 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12776 else
12777 lt_prog_compiler_no_builtin_flag_CXX=
12778 fi
12779
12780 if test "$GXX" = yes; then
12781 # Set up default GNU C++ configuration
12782
12783
12784
12785# Check whether --with-gnu-ld was given.
12786if test "${with_gnu_ld+set}" = set; then :
12787 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12788else
12789 with_gnu_ld=no
12790fi
12791
12792ac_prog=ld
12793if test "$GCC" = yes; then
12794 # Check if gcc -print-prog-name=ld gives a path.
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12796$as_echo_n "checking for ld used by $CC... " >&6; }
12797 case $host in
12798 *-*-mingw*)
12799 # gcc leaves a trailing carriage return which upsets mingw
12800 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12801 *)
12802 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12803 esac
12804 case $ac_prog in
12805 # Accept absolute paths.
12806 [\\/]* | ?:[\\/]*)
12807 re_direlt='/[^/][^/]*/\.\./'
12808 # Canonicalize the pathname of ld
12809 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12810 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12811 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12812 done
12813 test -z "$LD" && LD="$ac_prog"
12814 ;;
12815 "")
12816 # If it fails, then pretend we aren't using GCC.
12817 ac_prog=ld
12818 ;;
12819 *)
12820 # If it is relative, then search for the first ld in PATH.
12821 with_gnu_ld=unknown
12822 ;;
12823 esac
12824elif test "$with_gnu_ld" = yes; then
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12826$as_echo_n "checking for GNU ld... " >&6; }
12827else
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12829$as_echo_n "checking for non-GNU ld... " >&6; }
12830fi
12831if test "${lt_cv_path_LD+set}" = set; then :
12832 $as_echo_n "(cached) " >&6
12833else
12834 if test -z "$LD"; then
12835 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12836 for ac_dir in $PATH; do
12837 IFS="$lt_save_ifs"
12838 test -z "$ac_dir" && ac_dir=.
12839 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12840 lt_cv_path_LD="$ac_dir/$ac_prog"
12841 # Check to see if the program is GNU ld. I'd rather use --version,
12842 # but apparently some variants of GNU ld only accept -v.
12843 # Break only if it was the GNU/non-GNU ld that we prefer.
12844 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12845 *GNU* | *'with BFD'*)
12846 test "$with_gnu_ld" != no && break
12847 ;;
12848 *)
12849 test "$with_gnu_ld" != yes && break
12850 ;;
12851 esac
12852 fi
12853 done
12854 IFS="$lt_save_ifs"
12855else
12856 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12857fi
12858fi
12859
12860LD="$lt_cv_path_LD"
12861if test -n "$LD"; then
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12863$as_echo "$LD" >&6; }
12864else
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12866$as_echo "no" >&6; }
12867fi
12868test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12870$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12871if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12872 $as_echo_n "(cached) " >&6
12873else
12874 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12875case `$LD -v 2>&1 </dev/null` in
12876*GNU* | *'with BFD'*)
12877 lt_cv_prog_gnu_ld=yes
12878 ;;
12879*)
12880 lt_cv_prog_gnu_ld=no
12881 ;;
12882esac
12883fi
12884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12885$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12886with_gnu_ld=$lt_cv_prog_gnu_ld
12887
12888
12889
12890
12891
12892
12893
12894 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12895 # archiving commands below assume that GNU ld is being used.
12896 if test "$with_gnu_ld" = yes; then
12897 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12898 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12899
12900 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12901 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12902
12903 # If archive_cmds runs LD, not CC, wlarc should be empty
12904 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12905 # investigate it a little bit more. (MM)
12906 wlarc='${wl}'
12907
12908 # ancient GNU ld didn't support --whole-archive et. al.
12909 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12910 $GREP 'no-whole-archive' > /dev/null; then
12911 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12912 else
12913 whole_archive_flag_spec_CXX=
12914 fi
12915 else
12916 with_gnu_ld=no
12917 wlarc=
12918
12919 # A generic and very simple default shared library creation
12920 # command for GNU C++ for the case where it uses the native
12921 # linker, instead of GNU ld. If possible, this setting should
12922 # overridden to take advantage of the native linker features on
12923 # the platform it is being used on.
12924 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12925 fi
12926
12927 # Commands to make compiler produce verbose output that lists
12928 # what "hidden" libraries, object files and flags are used when
12929 # linking a shared library.
12930 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12931
12932 else
12933 GXX=no
12934 with_gnu_ld=no
12935 wlarc=
12936 fi
12937
12938 # PORTME: fill in a description of your system's C++ link characteristics
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12940$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12941 ld_shlibs_CXX=yes
12942 case $host_os in
12943 aix3*)
12944 # FIXME: insert proper C++ library support
12945 ld_shlibs_CXX=no
12946 ;;
12947 aix[4-9]*)
12948 if test "$host_cpu" = ia64; then
12949 # On IA64, the linker does run time linking by default, so we don't
12950 # have to do anything special.
12951 aix_use_runtimelinking=no
12952 exp_sym_flag='-Bexport'
12953 no_entry_flag=""
12954 else
12955 aix_use_runtimelinking=no
12956
12957 # Test if we are trying to use run time linking or normal
12958 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12959 # need to do runtime linking.
12960 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12961 for ld_flag in $LDFLAGS; do
12962 case $ld_flag in
12963 *-brtl*)
12964 aix_use_runtimelinking=yes
12965 break
12966 ;;
12967 esac
12968 done
12969 ;;
12970 esac
12971
12972 exp_sym_flag='-bexport'
12973 no_entry_flag='-bnoentry'
12974 fi
12975
12976 # When large executables or shared objects are built, AIX ld can
12977 # have problems creating the table of contents. If linking a library
12978 # or program results in "error TOC overflow" add -mminimal-toc to
12979 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12980 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12981
12982 archive_cmds_CXX=''
12983 hardcode_direct_CXX=yes
12984 hardcode_direct_absolute_CXX=yes
12985 hardcode_libdir_separator_CXX=':'
12986 link_all_deplibs_CXX=yes
12987 file_list_spec_CXX='${wl}-f,'
12988
12989 if test "$GXX" = yes; then
12990 case $host_os in aix4.[012]|aix4.[012].*)
12991 # We only want to do this on AIX 4.2 and lower, the check
12992 # below for broken collect2 doesn't work under 4.3+
12993 collect2name=`${CC} -print-prog-name=collect2`
12994 if test -f "$collect2name" &&
12995 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12996 then
12997 # We have reworked collect2
12998 :
12999 else
13000 # We have old collect2
13001 hardcode_direct_CXX=unsupported
13002 # It fails to find uninstalled libraries when the uninstalled
13003 # path is not listed in the libpath. Setting hardcode_minus_L
13004 # to unsupported forces relinking
13005 hardcode_minus_L_CXX=yes
13006 hardcode_libdir_flag_spec_CXX='-L$libdir'
13007 hardcode_libdir_separator_CXX=
13008 fi
13009 esac
13010 shared_flag='-shared'
13011 if test "$aix_use_runtimelinking" = yes; then
13012 shared_flag="$shared_flag "'${wl}-G'
13013 fi
13014 else
13015 # not using gcc
13016 if test "$host_cpu" = ia64; then
13017 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13018 # chokes on -Wl,-G. The following line is correct:
13019 shared_flag='-G'
13020 else
13021 if test "$aix_use_runtimelinking" = yes; then
13022 shared_flag='${wl}-G'
13023 else
13024 shared_flag='${wl}-bM:SRE'
13025 fi
13026 fi
13027 fi
13028
13029 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13030 # It seems that -bexpall does not export symbols beginning with
13031 # underscore (_), so it is better to generate a list of symbols to
13032 # export.
13033 always_export_symbols_CXX=yes
13034 if test "$aix_use_runtimelinking" = yes; then
13035 # Warning - without using the other runtime loading flags (-brtl),
13036 # -berok will link without error, but may produce a broken library.
13037 allow_undefined_flag_CXX='-berok'
13038 # Determine the default libpath from the value encoded in an empty
13039 # executable.
13040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13041/* end confdefs.h. */
13042
13043int
13044main ()
13045{
13046
13047 ;
13048 return 0;
13049}
13050_ACEOF
13051if ac_fn_cxx_try_link "$LINENO"; then :
13052
13053lt_aix_libpath_sed='
13054 /Import File Strings/,/^$/ {
13055 /^0/ {
13056 s/^0 *\(.*\)$/\1/
13057 p
13058 }
13059 }'
13060aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13061# Check for a 64-bit object if we didn't find anything.
13062if test -z "$aix_libpath"; then
13063 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13064fi
13065fi
13066rm -f core conftest.err conftest.$ac_objext \
13067 conftest$ac_exeext conftest.$ac_ext
13068if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13069
13070 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13071
13072 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"
13073 else
13074 if test "$host_cpu" = ia64; then
13075 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13076 allow_undefined_flag_CXX="-z nodefs"
13077 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"
13078 else
13079 # Determine the default libpath from the value encoded in an
13080 # empty executable.
13081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082/* end confdefs.h. */
13083
13084int
13085main ()
13086{
13087
13088 ;
13089 return 0;
13090}
13091_ACEOF
13092if ac_fn_cxx_try_link "$LINENO"; then :
13093
13094lt_aix_libpath_sed='
13095 /Import File Strings/,/^$/ {
13096 /^0/ {
13097 s/^0 *\(.*\)$/\1/
13098 p
13099 }
13100 }'
13101aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13102# Check for a 64-bit object if we didn't find anything.
13103if test -z "$aix_libpath"; then
13104 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13105fi
13106fi
13107rm -f core conftest.err conftest.$ac_objext \
13108 conftest$ac_exeext conftest.$ac_ext
13109if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13110
13111 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13112 # Warning - without using the other run time loading flags,
13113 # -berok will link without error, but may produce a broken library.
13114 no_undefined_flag_CXX=' ${wl}-bernotok'
13115 allow_undefined_flag_CXX=' ${wl}-berok'
13116 if test "$with_gnu_ld" = yes; then
13117 # We only use this code for GNU lds that support --whole-archive.
13118 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13119 else
13120 # Exported symbols can be pulled into shared objects from archives
13121 whole_archive_flag_spec_CXX='$convenience'
13122 fi
13123 archive_cmds_need_lc_CXX=yes
13124 # This is similar to how AIX traditionally builds its shared
13125 # libraries.
13126 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'
13127 fi
13128 fi
13129 ;;
13130
13131 beos*)
13132 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13133 allow_undefined_flag_CXX=unsupported
13134 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13135 # support --undefined. This deserves some investigation. FIXME
13136 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13137 else
13138 ld_shlibs_CXX=no
13139 fi
13140 ;;
13141
13142 chorus*)
13143 case $cc_basename in
13144 *)
13145 # FIXME: insert proper C++ library support
13146 ld_shlibs_CXX=no
13147 ;;
13148 esac
13149 ;;
13150
13151 cygwin* | mingw* | pw32* | cegcc*)
13152 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13153 # as there is no search path for DLLs.
13154 hardcode_libdir_flag_spec_CXX='-L$libdir'
13155 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13156 allow_undefined_flag_CXX=unsupported
13157 always_export_symbols_CXX=no
13158 enable_shared_with_static_runtimes_CXX=yes
13159
13160 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13161 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'
13162 # If the export-symbols file already is a .def file (1st line
13163 # is EXPORTS), use it as is; otherwise, prepend...
13164 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13165 cp $export_symbols $output_objdir/$soname.def;
13166 else
13167 echo EXPORTS > $output_objdir/$soname.def;
13168 cat $export_symbols >> $output_objdir/$soname.def;
13169 fi~
13170 $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'
13171 else
13172 ld_shlibs_CXX=no
13173 fi
13174 ;;
13175 darwin* | rhapsody*)
13176
13177
13178 archive_cmds_need_lc_CXX=no
13179 hardcode_direct_CXX=no
13180 hardcode_automatic_CXX=yes
13181 hardcode_shlibpath_var_CXX=unsupported
13182 if test "$lt_cv_ld_force_load" = "yes"; then
13183 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\"`'
13184 else
13185 whole_archive_flag_spec_CXX=''
13186 fi
13187 link_all_deplibs_CXX=yes
13188 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13189 case $cc_basename in
13190 ifort*) _lt_dar_can_shared=yes ;;
13191 *) _lt_dar_can_shared=$GCC ;;
13192 esac
13193 if test "$_lt_dar_can_shared" = "yes"; then
13194 output_verbose_link_cmd=func_echo_all
13195 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}"
13196 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13197 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}"
13198 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}"
13199 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13200 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}"
13201 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}"
13202 fi
13203
13204 else
13205 ld_shlibs_CXX=no
13206 fi
13207
13208 ;;
13209
13210 dgux*)
13211 case $cc_basename in
13212 ec++*)
13213 # FIXME: insert proper C++ library support
13214 ld_shlibs_CXX=no
13215 ;;
13216 ghcx*)
13217 # Green Hills C++ Compiler
13218 # FIXME: insert proper C++ library support
13219 ld_shlibs_CXX=no
13220 ;;
13221 *)
13222 # FIXME: insert proper C++ library support
13223 ld_shlibs_CXX=no
13224 ;;
13225 esac
13226 ;;
13227
6d2920c8 13228 freebsd2.*)
3cb62297
L
13229 # C++ shared libraries reported to be fairly broken before
13230 # switch to ELF
13231 ld_shlibs_CXX=no
13232 ;;
13233
13234 freebsd-elf*)
13235 archive_cmds_need_lc_CXX=no
13236 ;;
13237
13238 freebsd* | dragonfly*)
13239 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13240 # conventions
13241 ld_shlibs_CXX=yes
13242 ;;
13243
13244 gnu*)
13245 ;;
13246
13247 haiku*)
13248 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13249 link_all_deplibs_CXX=yes
13250 ;;
13251
13252 hpux9*)
13253 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13254 hardcode_libdir_separator_CXX=:
13255 export_dynamic_flag_spec_CXX='${wl}-E'
13256 hardcode_direct_CXX=yes
13257 hardcode_minus_L_CXX=yes # Not in the search PATH,
13258 # but as the default
13259 # location of the library.
13260
13261 case $cc_basename in
13262 CC*)
13263 # FIXME: insert proper C++ library support
13264 ld_shlibs_CXX=no
13265 ;;
13266 aCC*)
13267 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'
13268 # Commands to make compiler produce verbose output that lists
13269 # what "hidden" libraries, object files and flags are used when
13270 # linking a shared library.
13271 #
13272 # There doesn't appear to be a way to prevent this compiler from
13273 # explicitly linking system object files so we need to strip them
13274 # from the output so that they don't get included in the library
13275 # dependencies.
13276 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"'
13277 ;;
13278 *)
13279 if test "$GXX" = yes; then
13280 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'
13281 else
13282 # FIXME: insert proper C++ library support
13283 ld_shlibs_CXX=no
13284 fi
13285 ;;
13286 esac
13287 ;;
13288
13289 hpux10*|hpux11*)
13290 if test $with_gnu_ld = no; then
13291 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13292 hardcode_libdir_separator_CXX=:
13293
13294 case $host_cpu in
13295 hppa*64*|ia64*)
13296 ;;
13297 *)
13298 export_dynamic_flag_spec_CXX='${wl}-E'
13299 ;;
13300 esac
13301 fi
13302 case $host_cpu in
13303 hppa*64*|ia64*)
13304 hardcode_direct_CXX=no
13305 hardcode_shlibpath_var_CXX=no
13306 ;;
13307 *)
13308 hardcode_direct_CXX=yes
13309 hardcode_direct_absolute_CXX=yes
13310 hardcode_minus_L_CXX=yes # Not in the search PATH,
13311 # but as the default
13312 # location of the library.
13313 ;;
13314 esac
13315
13316 case $cc_basename in
13317 CC*)
13318 # FIXME: insert proper C++ library support
13319 ld_shlibs_CXX=no
13320 ;;
13321 aCC*)
13322 case $host_cpu in
13323 hppa*64*)
13324 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13325 ;;
13326 ia64*)
13327 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13328 ;;
13329 *)
13330 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13331 ;;
13332 esac
13333 # Commands to make compiler produce verbose output that lists
13334 # what "hidden" libraries, object files and flags are used when
13335 # linking a shared library.
13336 #
13337 # There doesn't appear to be a way to prevent this compiler from
13338 # explicitly linking system object files so we need to strip them
13339 # from the output so that they don't get included in the library
13340 # dependencies.
13341 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"'
13342 ;;
13343 *)
13344 if test "$GXX" = yes; then
13345 if test $with_gnu_ld = no; then
13346 case $host_cpu in
13347 hppa*64*)
13348 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13349 ;;
13350 ia64*)
13351 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13352 ;;
13353 *)
13354 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'
13355 ;;
13356 esac
13357 fi
13358 else
13359 # FIXME: insert proper C++ library support
13360 ld_shlibs_CXX=no
13361 fi
13362 ;;
13363 esac
13364 ;;
13365
13366 interix[3-9]*)
13367 hardcode_direct_CXX=no
13368 hardcode_shlibpath_var_CXX=no
13369 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13370 export_dynamic_flag_spec_CXX='${wl}-E'
13371 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13372 # Instead, shared libraries are loaded at an image base (0x10000000 by
13373 # default) and relocated if they conflict, which is a slow very memory
13374 # consuming and fragmenting process. To avoid this, we pick a random,
13375 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13376 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13377 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'
13378 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'
13379 ;;
13380 irix5* | irix6*)
13381 case $cc_basename in
13382 CC*)
13383 # SGI C++
13384 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'
13385
13386 # Archives containing C++ object files must be created using
13387 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13388 # necessary to make sure instantiated templates are included
13389 # in the archive.
13390 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13391 ;;
13392 *)
13393 if test "$GXX" = yes; then
13394 if test "$with_gnu_ld" = no; then
13395 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'
13396 else
13397 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'
13398 fi
13399 fi
13400 link_all_deplibs_CXX=yes
13401 ;;
13402 esac
13403 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13404 hardcode_libdir_separator_CXX=:
13405 inherit_rpath_CXX=yes
13406 ;;
13407
13408 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13409 case $cc_basename in
13410 KCC*)
13411 # Kuck and Associates, Inc. (KAI) C++ Compiler
13412
13413 # KCC will only create a shared library if the output file
13414 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13415 # to its proper name (with version) after linking.
13416 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'
13417 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'
13418 # Commands to make compiler produce verbose output that lists
13419 # what "hidden" libraries, object files and flags are used when
13420 # linking a shared library.
13421 #
13422 # There doesn't appear to be a way to prevent this compiler from
13423 # explicitly linking system object files so we need to strip them
13424 # from the output so that they don't get included in the library
13425 # dependencies.
13426 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"'
13427
13428 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13429 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13430
13431 # Archives containing C++ object files must be created using
13432 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13433 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13434 ;;
13435 icpc* | ecpc* )
13436 # Intel C++
13437 with_gnu_ld=yes
13438 # version 8.0 and above of icpc choke on multiply defined symbols
13439 # if we add $predep_objects and $postdep_objects, however 7.1 and
13440 # earlier do not add the objects themselves.
13441 case `$CC -V 2>&1` in
13442 *"Version 7."*)
13443 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13444 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'
13445 ;;
13446 *) # Version 8.0 or newer
13447 tmp_idyn=
13448 case $host_cpu in
13449 ia64*) tmp_idyn=' -i_dynamic';;
13450 esac
13451 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13452 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'
13453 ;;
13454 esac
13455 archive_cmds_need_lc_CXX=no
13456 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13457 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13458 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13459 ;;
13460 pgCC* | pgcpp*)
13461 # Portland Group C++ compiler
13462 case `$CC -V` in
13463 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13464 prelink_cmds_CXX='tpldir=Template.dir~
13465 rm -rf $tpldir~
13466 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13467 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13468 old_archive_cmds_CXX='tpldir=Template.dir~
13469 rm -rf $tpldir~
13470 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13471 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13472 $RANLIB $oldlib'
13473 archive_cmds_CXX='tpldir=Template.dir~
13474 rm -rf $tpldir~
13475 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13476 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13477 archive_expsym_cmds_CXX='tpldir=Template.dir~
13478 rm -rf $tpldir~
13479 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13480 $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'
13481 ;;
13482 *) # Version 6 and above use weak symbols
13483 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13484 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'
13485 ;;
13486 esac
13487
13488 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13489 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13490 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'
13491 ;;
13492 cxx*)
13493 # Compaq C++
13494 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13495 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'
13496
13497 runpath_var=LD_RUN_PATH
13498 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13499 hardcode_libdir_separator_CXX=:
13500
13501 # Commands to make compiler produce verbose output that lists
13502 # what "hidden" libraries, object files and flags are used when
13503 # linking a shared library.
13504 #
13505 # There doesn't appear to be a way to prevent this compiler from
13506 # explicitly linking system object files so we need to strip them
13507 # from the output so that they don't get included in the library
13508 # dependencies.
13509 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'
13510 ;;
13511 xl* | mpixl* | bgxl*)
13512 # IBM XL 8.0 on PPC, with GNU ld
13513 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13514 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13515 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13516 if test "x$supports_anon_versioning" = xyes; then
13517 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13518 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13519 echo "local: *; };" >> $output_objdir/$libname.ver~
13520 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13521 fi
13522 ;;
13523 *)
13524 case `$CC -V 2>&1 | sed 5q` in
13525 *Sun\ C*)
13526 # Sun C++ 5.9
13527 no_undefined_flag_CXX=' -zdefs'
13528 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13529 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'
13530 hardcode_libdir_flag_spec_CXX='-R$libdir'
13531 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'
13532 compiler_needs_object_CXX=yes
13533
13534 # Not sure whether something based on
13535 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13536 # would be better.
13537 output_verbose_link_cmd='func_echo_all'
13538
13539 # Archives containing C++ object files must be created using
13540 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13541 # necessary to make sure instantiated templates are included
13542 # in the archive.
13543 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13544 ;;
13545 esac
13546 ;;
13547 esac
13548 ;;
13549
13550 lynxos*)
13551 # FIXME: insert proper C++ library support
13552 ld_shlibs_CXX=no
13553 ;;
13554
13555 m88k*)
13556 # FIXME: insert proper C++ library support
13557 ld_shlibs_CXX=no
13558 ;;
13559
13560 mvs*)
13561 case $cc_basename in
13562 cxx*)
13563 # FIXME: insert proper C++ library support
13564 ld_shlibs_CXX=no
13565 ;;
13566 *)
13567 # FIXME: insert proper C++ library support
13568 ld_shlibs_CXX=no
13569 ;;
13570 esac
13571 ;;
13572
13573 netbsd*)
13574 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13575 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13576 wlarc=
13577 hardcode_libdir_flag_spec_CXX='-R$libdir'
13578 hardcode_direct_CXX=yes
13579 hardcode_shlibpath_var_CXX=no
13580 fi
13581 # Workaround some broken pre-1.5 toolchains
13582 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13583 ;;
13584
13585 *nto* | *qnx*)
13586 ld_shlibs_CXX=yes
13587 ;;
13588
13589 openbsd2*)
13590 # C++ shared libraries are fairly broken
13591 ld_shlibs_CXX=no
13592 ;;
13593
13594 openbsd*)
13595 if test -f /usr/libexec/ld.so; then
13596 hardcode_direct_CXX=yes
13597 hardcode_shlibpath_var_CXX=no
13598 hardcode_direct_absolute_CXX=yes
13599 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13600 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13601 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13602 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13603 export_dynamic_flag_spec_CXX='${wl}-E'
13604 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13605 fi
13606 output_verbose_link_cmd=func_echo_all
13607 else
13608 ld_shlibs_CXX=no
13609 fi
13610 ;;
13611
13612 osf3* | osf4* | osf5*)
13613 case $cc_basename in
13614 KCC*)
13615 # Kuck and Associates, Inc. (KAI) C++ Compiler
13616
13617 # KCC will only create a shared library if the output file
13618 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13619 # to its proper name (with version) after linking.
13620 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'
13621
13622 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13623 hardcode_libdir_separator_CXX=:
13624
13625 # Archives containing C++ object files must be created using
13626 # the KAI C++ compiler.
13627 case $host in
13628 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13629 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13630 esac
13631 ;;
13632 RCC*)
13633 # Rational C++ 2.4.1
13634 # FIXME: insert proper C++ library support
13635 ld_shlibs_CXX=no
13636 ;;
13637 cxx*)
13638 case $host in
13639 osf3*)
13640 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13641 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'
13642 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13643 ;;
13644 *)
13645 allow_undefined_flag_CXX=' -expect_unresolved \*'
13646 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'
13647 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13648 echo "-hidden">> $lib.exp~
13649 $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~
13650 $RM $lib.exp'
13651 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13652 ;;
13653 esac
13654
13655 hardcode_libdir_separator_CXX=:
13656
13657 # Commands to make compiler produce verbose output that lists
13658 # what "hidden" libraries, object files and flags are used when
13659 # linking a shared library.
13660 #
13661 # There doesn't appear to be a way to prevent this compiler from
13662 # explicitly linking system object files so we need to strip them
13663 # from the output so that they don't get included in the library
13664 # dependencies.
13665 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"'
13666 ;;
13667 *)
13668 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13669 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13670 case $host in
13671 osf3*)
13672 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'
13673 ;;
13674 *)
13675 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'
13676 ;;
13677 esac
13678
13679 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13680 hardcode_libdir_separator_CXX=:
13681
13682 # Commands to make compiler produce verbose output that lists
13683 # what "hidden" libraries, object files and flags are used when
13684 # linking a shared library.
13685 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13686
13687 else
13688 # FIXME: insert proper C++ library support
13689 ld_shlibs_CXX=no
13690 fi
13691 ;;
13692 esac
13693 ;;
13694
13695 psos*)
13696 # FIXME: insert proper C++ library support
13697 ld_shlibs_CXX=no
13698 ;;
13699
13700 sunos4*)
13701 case $cc_basename in
13702 CC*)
13703 # Sun C++ 4.x
13704 # FIXME: insert proper C++ library support
13705 ld_shlibs_CXX=no
13706 ;;
13707 lcc*)
13708 # Lucid
13709 # FIXME: insert proper C++ library support
13710 ld_shlibs_CXX=no
13711 ;;
13712 *)
13713 # FIXME: insert proper C++ library support
13714 ld_shlibs_CXX=no
13715 ;;
13716 esac
13717 ;;
13718
13719 solaris*)
13720 case $cc_basename in
13721 CC*)
13722 # Sun C++ 4.2, 5.x and Centerline C++
13723 archive_cmds_need_lc_CXX=yes
13724 no_undefined_flag_CXX=' -zdefs'
13725 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13726 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13727 $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'
13728
13729 hardcode_libdir_flag_spec_CXX='-R$libdir'
13730 hardcode_shlibpath_var_CXX=no
13731 case $host_os in
13732 solaris2.[0-5] | solaris2.[0-5].*) ;;
13733 *)
13734 # The compiler driver will combine and reorder linker options,
13735 # but understands `-z linker_flag'.
13736 # Supported since Solaris 2.6 (maybe 2.5.1?)
13737 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13738 ;;
13739 esac
13740 link_all_deplibs_CXX=yes
13741
13742 output_verbose_link_cmd='func_echo_all'
13743
13744 # Archives containing C++ object files must be created using
13745 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13746 # necessary to make sure instantiated templates are included
13747 # in the archive.
13748 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13749 ;;
13750 gcx*)
13751 # Green Hills C++ Compiler
13752 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13753
13754 # The C++ compiler must be used to create the archive.
13755 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13756 ;;
13757 *)
13758 # GNU C++ compiler with Solaris linker
13759 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13760 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13761 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13762 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13763 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13764 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13765
13766 # Commands to make compiler produce verbose output that lists
13767 # what "hidden" libraries, object files and flags are used when
13768 # linking a shared library.
13769 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13770 else
13771 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13772 # platform.
13773 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13774 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13775 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13776
13777 # Commands to make compiler produce verbose output that lists
13778 # what "hidden" libraries, object files and flags are used when
13779 # linking a shared library.
13780 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13781 fi
13782
13783 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13784 case $host_os in
13785 solaris2.[0-5] | solaris2.[0-5].*) ;;
13786 *)
13787 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13788 ;;
13789 esac
13790 fi
13791 ;;
13792 esac
13793 ;;
13794
13795 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13796 no_undefined_flag_CXX='${wl}-z,text'
13797 archive_cmds_need_lc_CXX=no
13798 hardcode_shlibpath_var_CXX=no
13799 runpath_var='LD_RUN_PATH'
13800
13801 case $cc_basename in
13802 CC*)
13803 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13804 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13805 ;;
13806 *)
13807 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13808 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13809 ;;
13810 esac
13811 ;;
13812
13813 sysv5* | sco3.2v5* | sco5v6*)
13814 # Note: We can NOT use -z defs as we might desire, because we do not
13815 # link with -lc, and that would cause any symbols used from libc to
13816 # always be unresolved, which means just about no library would
13817 # ever link correctly. If we're not using GNU ld we use -z text
13818 # though, which does catch some bad symbols but isn't as heavy-handed
13819 # as -z defs.
13820 no_undefined_flag_CXX='${wl}-z,text'
13821 allow_undefined_flag_CXX='${wl}-z,nodefs'
13822 archive_cmds_need_lc_CXX=no
13823 hardcode_shlibpath_var_CXX=no
13824 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13825 hardcode_libdir_separator_CXX=':'
13826 link_all_deplibs_CXX=yes
13827 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13828 runpath_var='LD_RUN_PATH'
13829
13830 case $cc_basename in
13831 CC*)
13832 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13833 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13834 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13835 '"$old_archive_cmds_CXX"
13836 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13837 '"$reload_cmds_CXX"
13838 ;;
13839 *)
13840 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13841 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13842 ;;
13843 esac
13844 ;;
13845
13846 tandem*)
13847 case $cc_basename in
13848 NCC*)
13849 # NonStop-UX NCC 3.20
13850 # FIXME: insert proper C++ library support
13851 ld_shlibs_CXX=no
13852 ;;
13853 *)
13854 # FIXME: insert proper C++ library support
13855 ld_shlibs_CXX=no
13856 ;;
13857 esac
13858 ;;
13859
13860 vxworks*)
13861 # FIXME: insert proper C++ library support
13862 ld_shlibs_CXX=no
13863 ;;
13864
13865 *)
13866 # FIXME: insert proper C++ library support
13867 ld_shlibs_CXX=no
13868 ;;
13869 esac
13870
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13872$as_echo "$ld_shlibs_CXX" >&6; }
13873 test "$ld_shlibs_CXX" = no && can_build_shared=no
13874
13875 GCC_CXX="$GXX"
13876 LD_CXX="$LD"
13877
13878 ## CAVEAT EMPTOR:
13879 ## There is no encapsulation within the following macros, do not change
13880 ## the running order or otherwise move them around unless you know exactly
13881 ## what you are doing...
13882 # Dependencies to place before and after the object being linked:
13883predep_objects_CXX=
13884postdep_objects_CXX=
13885predeps_CXX=
13886postdeps_CXX=
13887compiler_lib_search_path_CXX=
13888
13889cat > conftest.$ac_ext <<_LT_EOF
13890class Foo
13891{
13892public:
13893 Foo (void) { a = 0; }
13894private:
13895 int a;
13896};
13897_LT_EOF
13898
13899if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13900 (eval $ac_compile) 2>&5
13901 ac_status=$?
13902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13903 test $ac_status = 0; }; then
13904 # Parse the compiler output and extract the necessary
13905 # objects, libraries and library flags.
13906
13907 # Sentinel used to keep track of whether or not we are before
13908 # the conftest object file.
13909 pre_test_object_deps_done=no
13910
13911 for p in `eval "$output_verbose_link_cmd"`; do
13912 case $p in
13913
13914 -L* | -R* | -l*)
13915 # Some compilers place space between "-{L,R}" and the path.
13916 # Remove the space.
13917 if test $p = "-L" ||
13918 test $p = "-R"; then
13919 prev=$p
13920 continue
13921 else
13922 prev=
13923 fi
13924
13925 if test "$pre_test_object_deps_done" = no; then
13926 case $p in
13927 -L* | -R*)
13928 # Internal compiler library paths should come after those
13929 # provided the user. The postdeps already come after the
13930 # user supplied libs so there is no need to process them.
13931 if test -z "$compiler_lib_search_path_CXX"; then
13932 compiler_lib_search_path_CXX="${prev}${p}"
13933 else
13934 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13935 fi
13936 ;;
13937 # The "-l" case would never come before the object being
13938 # linked, so don't bother handling this case.
13939 esac
13940 else
13941 if test -z "$postdeps_CXX"; then
13942 postdeps_CXX="${prev}${p}"
13943 else
13944 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13945 fi
13946 fi
13947 ;;
13948
13949 *.$objext)
13950 # This assumes that the test object file only shows up
13951 # once in the compiler output.
13952 if test "$p" = "conftest.$objext"; then
13953 pre_test_object_deps_done=yes
13954 continue
13955 fi
13956
13957 if test "$pre_test_object_deps_done" = no; then
13958 if test -z "$predep_objects_CXX"; then
13959 predep_objects_CXX="$p"
13960 else
13961 predep_objects_CXX="$predep_objects_CXX $p"
13962 fi
13963 else
13964 if test -z "$postdep_objects_CXX"; then
13965 postdep_objects_CXX="$p"
13966 else
13967 postdep_objects_CXX="$postdep_objects_CXX $p"
13968 fi
13969 fi
13970 ;;
13971
13972 *) ;; # Ignore the rest.
13973
13974 esac
13975 done
13976
13977 # Clean up.
13978 rm -f a.out a.exe
13979else
13980 echo "libtool.m4: error: problem compiling CXX test program"
13981fi
13982
13983$RM -f confest.$objext
13984
13985# PORTME: override above test on systems where it is broken
13986case $host_os in
13987interix[3-9]*)
13988 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13989 # hack all around it, let's just trust "g++" to DTRT.
13990 predep_objects_CXX=
13991 postdep_objects_CXX=
13992 postdeps_CXX=
13993 ;;
13994
13995linux*)
13996 case `$CC -V 2>&1 | sed 5q` in
13997 *Sun\ C*)
13998 # Sun C++ 5.9
13999
14000 # The more standards-conforming stlport4 library is
14001 # incompatible with the Cstd library. Avoid specifying
14002 # it if it's in CXXFLAGS. Ignore libCrun as
14003 # -library=stlport4 depends on it.
14004 case " $CXX $CXXFLAGS " in
14005 *" -library=stlport4 "*)
14006 solaris_use_stlport4=yes
14007 ;;
14008 esac
14009
14010 if test "$solaris_use_stlport4" != yes; then
14011 postdeps_CXX='-library=Cstd -library=Crun'
14012 fi
14013 ;;
14014 esac
14015 ;;
14016
14017solaris*)
14018 case $cc_basename in
14019 CC*)
14020 # The more standards-conforming stlport4 library is
14021 # incompatible with the Cstd library. Avoid specifying
14022 # it if it's in CXXFLAGS. Ignore libCrun as
14023 # -library=stlport4 depends on it.
14024 case " $CXX $CXXFLAGS " in
14025 *" -library=stlport4 "*)
14026 solaris_use_stlport4=yes
14027 ;;
14028 esac
14029
14030 # Adding this requires a known-good setup of shared libraries for
14031 # Sun compiler versions before 5.6, else PIC objects from an old
14032 # archive will be linked into the output, leading to subtle bugs.
14033 if test "$solaris_use_stlport4" != yes; then
14034 postdeps_CXX='-library=Cstd -library=Crun'
14035 fi
14036 ;;
14037 esac
14038 ;;
14039esac
14040
14041
14042case " $postdeps_CXX " in
14043*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14044esac
14045 compiler_lib_search_dirs_CXX=
14046if test -n "${compiler_lib_search_path_CXX}"; then
14047 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14048fi
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080 lt_prog_compiler_wl_CXX=
14081lt_prog_compiler_pic_CXX=
14082lt_prog_compiler_static_CXX=
14083
14084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14085$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14086
14087 # C++ specific cases for pic, static, wl, etc.
14088 if test "$GXX" = yes; then
14089 lt_prog_compiler_wl_CXX='-Wl,'
14090 lt_prog_compiler_static_CXX='-static'
14091
14092 case $host_os in
14093 aix*)
14094 # All AIX code is PIC.
14095 if test "$host_cpu" = ia64; then
14096 # AIX 5 now supports IA64 processor
14097 lt_prog_compiler_static_CXX='-Bstatic'
14098 fi
52204357 14099 lt_prog_compiler_pic_CXX='-fPIC'
3cb62297
L
14100 ;;
14101
14102 amigaos*)
14103 case $host_cpu in
14104 powerpc)
14105 # see comment about AmigaOS4 .so support
14106 lt_prog_compiler_pic_CXX='-fPIC'
14107 ;;
14108 m68k)
14109 # FIXME: we need at least 68020 code to build shared libraries, but
14110 # adding the `-m68020' flag to GCC prevents building anything better,
14111 # like `-m68040'.
14112 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14113 ;;
14114 esac
14115 ;;
14116
14117 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14118 # PIC is the default for these OSes.
14119 ;;
14120 mingw* | cygwin* | os2* | pw32* | cegcc*)
14121 # This hack is so that the source file can tell whether it is being
14122 # built for inclusion in a dll (and should export symbols for example).
14123 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14124 # (--disable-auto-import) libraries
14125 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14126 ;;
14127 darwin* | rhapsody*)
14128 # PIC is the default on this platform
14129 # Common symbols not allowed in MH_DYLIB files
14130 lt_prog_compiler_pic_CXX='-fno-common'
14131 ;;
14132 *djgpp*)
14133 # DJGPP does not support shared libraries at all
14134 lt_prog_compiler_pic_CXX=
14135 ;;
14136 haiku*)
14137 # PIC is the default for Haiku.
14138 # The "-static" flag exists, but is broken.
14139 lt_prog_compiler_static_CXX=
14140 ;;
14141 interix[3-9]*)
14142 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14143 # Instead, we relocate shared libraries at runtime.
14144 ;;
14145 sysv4*MP*)
14146 if test -d /usr/nec; then
14147 lt_prog_compiler_pic_CXX=-Kconform_pic
14148 fi
14149 ;;
14150 hpux*)
14151 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14152 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14153 # sets the default TLS model and affects inlining.
14154 case $host_cpu in
14155 hppa*64*)
14156 ;;
14157 *)
14158 lt_prog_compiler_pic_CXX='-fPIC'
14159 ;;
14160 esac
14161 ;;
14162 *qnx* | *nto*)
14163 # QNX uses GNU C++, but need to define -shared option too, otherwise
14164 # it will coredump.
14165 lt_prog_compiler_pic_CXX='-fPIC -shared'
14166 ;;
14167 *)
14168 lt_prog_compiler_pic_CXX='-fPIC'
14169 ;;
14170 esac
14171 else
14172 case $host_os in
14173 aix[4-9]*)
14174 # All AIX code is PIC.
14175 if test "$host_cpu" = ia64; then
14176 # AIX 5 now supports IA64 processor
14177 lt_prog_compiler_static_CXX='-Bstatic'
14178 else
14179 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14180 fi
14181 ;;
14182 chorus*)
14183 case $cc_basename in
14184 cxch68*)
14185 # Green Hills C++ Compiler
14186 # _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"
14187 ;;
14188 esac
14189 ;;
14190 dgux*)
14191 case $cc_basename in
14192 ec++*)
14193 lt_prog_compiler_pic_CXX='-KPIC'
14194 ;;
14195 ghcx*)
14196 # Green Hills C++ Compiler
14197 lt_prog_compiler_pic_CXX='-pic'
14198 ;;
14199 *)
14200 ;;
14201 esac
14202 ;;
14203 freebsd* | dragonfly*)
14204 # FreeBSD uses GNU C++
14205 ;;
14206 hpux9* | hpux10* | hpux11*)
14207 case $cc_basename in
14208 CC*)
14209 lt_prog_compiler_wl_CXX='-Wl,'
14210 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14211 if test "$host_cpu" != ia64; then
14212 lt_prog_compiler_pic_CXX='+Z'
14213 fi
14214 ;;
14215 aCC*)
14216 lt_prog_compiler_wl_CXX='-Wl,'
14217 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14218 case $host_cpu in
14219 hppa*64*|ia64*)
14220 # +Z the default
14221 ;;
14222 *)
14223 lt_prog_compiler_pic_CXX='+Z'
14224 ;;
14225 esac
14226 ;;
14227 *)
14228 ;;
14229 esac
14230 ;;
14231 interix*)
14232 # This is c89, which is MS Visual C++ (no shared libs)
14233 # Anyone wants to do a port?
14234 ;;
14235 irix5* | irix6* | nonstopux*)
14236 case $cc_basename in
14237 CC*)
14238 lt_prog_compiler_wl_CXX='-Wl,'
14239 lt_prog_compiler_static_CXX='-non_shared'
14240 # CC pic flag -KPIC is the default.
14241 ;;
14242 *)
14243 ;;
14244 esac
14245 ;;
14246 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14247 case $cc_basename in
14248 KCC*)
14249 # KAI C++ Compiler
14250 lt_prog_compiler_wl_CXX='--backend -Wl,'
14251 lt_prog_compiler_pic_CXX='-fPIC'
14252 ;;
14253 ecpc* )
14254 # old Intel C++ for x86_64 which still supported -KPIC.
14255 lt_prog_compiler_wl_CXX='-Wl,'
14256 lt_prog_compiler_pic_CXX='-KPIC'
14257 lt_prog_compiler_static_CXX='-static'
14258 ;;
14259 icpc* )
14260 # Intel C++, used to be incompatible with GCC.
14261 # ICC 10 doesn't accept -KPIC any more.
14262 lt_prog_compiler_wl_CXX='-Wl,'
14263 lt_prog_compiler_pic_CXX='-fPIC'
14264 lt_prog_compiler_static_CXX='-static'
14265 ;;
14266 pgCC* | pgcpp*)
14267 # Portland Group C++ compiler
14268 lt_prog_compiler_wl_CXX='-Wl,'
14269 lt_prog_compiler_pic_CXX='-fpic'
14270 lt_prog_compiler_static_CXX='-Bstatic'
14271 ;;
14272 cxx*)
14273 # Compaq C++
14274 # Make sure the PIC flag is empty. It appears that all Alpha
14275 # Linux and Compaq Tru64 Unix objects are PIC.
14276 lt_prog_compiler_pic_CXX=
14277 lt_prog_compiler_static_CXX='-non_shared'
14278 ;;
14279 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14280 # IBM XL 8.0, 9.0 on PPC and BlueGene
14281 lt_prog_compiler_wl_CXX='-Wl,'
14282 lt_prog_compiler_pic_CXX='-qpic'
14283 lt_prog_compiler_static_CXX='-qstaticlink'
14284 ;;
14285 *)
14286 case `$CC -V 2>&1 | sed 5q` in
14287 *Sun\ C*)
14288 # Sun C++ 5.9
14289 lt_prog_compiler_pic_CXX='-KPIC'
14290 lt_prog_compiler_static_CXX='-Bstatic'
14291 lt_prog_compiler_wl_CXX='-Qoption ld '
14292 ;;
14293 esac
14294 ;;
14295 esac
14296 ;;
14297 lynxos*)
14298 ;;
14299 m88k*)
14300 ;;
14301 mvs*)
14302 case $cc_basename in
14303 cxx*)
14304 lt_prog_compiler_pic_CXX='-W c,exportall'
14305 ;;
14306 *)
14307 ;;
14308 esac
14309 ;;
14310 netbsd*)
14311 ;;
14312 *qnx* | *nto*)
14313 # QNX uses GNU C++, but need to define -shared option too, otherwise
14314 # it will coredump.
14315 lt_prog_compiler_pic_CXX='-fPIC -shared'
14316 ;;
14317 osf3* | osf4* | osf5*)
14318 case $cc_basename in
14319 KCC*)
14320 lt_prog_compiler_wl_CXX='--backend -Wl,'
14321 ;;
14322 RCC*)
14323 # Rational C++ 2.4.1
14324 lt_prog_compiler_pic_CXX='-pic'
14325 ;;
14326 cxx*)
14327 # Digital/Compaq C++
14328 lt_prog_compiler_wl_CXX='-Wl,'
14329 # Make sure the PIC flag is empty. It appears that all Alpha
14330 # Linux and Compaq Tru64 Unix objects are PIC.
14331 lt_prog_compiler_pic_CXX=
14332 lt_prog_compiler_static_CXX='-non_shared'
14333 ;;
14334 *)
14335 ;;
14336 esac
14337 ;;
14338 psos*)
14339 ;;
14340 solaris*)
14341 case $cc_basename in
14342 CC*)
14343 # Sun C++ 4.2, 5.x and Centerline C++
14344 lt_prog_compiler_pic_CXX='-KPIC'
14345 lt_prog_compiler_static_CXX='-Bstatic'
14346 lt_prog_compiler_wl_CXX='-Qoption ld '
14347 ;;
14348 gcx*)
14349 # Green Hills C++ Compiler
14350 lt_prog_compiler_pic_CXX='-PIC'
14351 ;;
14352 *)
14353 ;;
14354 esac
14355 ;;
14356 sunos4*)
14357 case $cc_basename in
14358 CC*)
14359 # Sun C++ 4.x
14360 lt_prog_compiler_pic_CXX='-pic'
14361 lt_prog_compiler_static_CXX='-Bstatic'
14362 ;;
14363 lcc*)
14364 # Lucid
14365 lt_prog_compiler_pic_CXX='-pic'
14366 ;;
14367 *)
14368 ;;
14369 esac
14370 ;;
14371 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14372 case $cc_basename in
14373 CC*)
14374 lt_prog_compiler_wl_CXX='-Wl,'
14375 lt_prog_compiler_pic_CXX='-KPIC'
14376 lt_prog_compiler_static_CXX='-Bstatic'
14377 ;;
14378 esac
14379 ;;
14380 tandem*)
14381 case $cc_basename in
14382 NCC*)
14383 # NonStop-UX NCC 3.20
14384 lt_prog_compiler_pic_CXX='-KPIC'
14385 ;;
14386 *)
14387 ;;
14388 esac
14389 ;;
14390 vxworks*)
14391 ;;
14392 *)
14393 lt_prog_compiler_can_build_shared_CXX=no
14394 ;;
14395 esac
14396 fi
14397
14398case $host_os in
14399 # For platforms which do not support PIC, -DPIC is meaningless:
14400 *djgpp*)
14401 lt_prog_compiler_pic_CXX=
14402 ;;
14403 *)
14404 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14405 ;;
14406esac
14407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14408$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14409
14410
14411
14412#
14413# Check to make sure the PIC flag actually works.
14414#
14415if test -n "$lt_prog_compiler_pic_CXX"; then
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14417$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14418if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14419 $as_echo_n "(cached) " >&6
14420else
14421 lt_cv_prog_compiler_pic_works_CXX=no
14422 ac_outfile=conftest.$ac_objext
14423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14424 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14425 # Insert the option either (1) after the last *FLAGS variable, or
14426 # (2) before a word containing "conftest.", or (3) at the end.
14427 # Note that $ac_compile itself does not contain backslashes and begins
14428 # with a dollar sign (not a hyphen), so the echo should work correctly.
14429 # The option is referenced via a variable to avoid confusing sed.
14430 lt_compile=`echo "$ac_compile" | $SED \
14431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14433 -e 's:$: $lt_compiler_flag:'`
14434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14435 (eval "$lt_compile" 2>conftest.err)
14436 ac_status=$?
14437 cat conftest.err >&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 if (exit $ac_status) && test -s "$ac_outfile"; then
14440 # The compiler can only warn and ignore the option if not recognized
14441 # So say no if there are warnings other than the usual output.
14442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14444 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14445 lt_cv_prog_compiler_pic_works_CXX=yes
14446 fi
14447 fi
14448 $RM conftest*
14449
14450fi
14451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14452$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14453
14454if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14455 case $lt_prog_compiler_pic_CXX in
14456 "" | " "*) ;;
14457 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14458 esac
14459else
14460 lt_prog_compiler_pic_CXX=
14461 lt_prog_compiler_can_build_shared_CXX=no
14462fi
14463
14464fi
14465
14466
14467
14468#
14469# Check to make sure the static flag actually works.
14470#
14471wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14473$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14474if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14475 $as_echo_n "(cached) " >&6
14476else
14477 lt_cv_prog_compiler_static_works_CXX=no
14478 save_LDFLAGS="$LDFLAGS"
14479 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14480 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14481 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14482 # The linker can only warn and ignore the option if not recognized
14483 # So say no if there are warnings
14484 if test -s conftest.err; then
14485 # Append any errors to the config.log.
14486 cat conftest.err 1>&5
14487 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14489 if diff conftest.exp conftest.er2 >/dev/null; then
14490 lt_cv_prog_compiler_static_works_CXX=yes
14491 fi
14492 else
14493 lt_cv_prog_compiler_static_works_CXX=yes
14494 fi
14495 fi
14496 $RM -r conftest*
14497 LDFLAGS="$save_LDFLAGS"
14498
14499fi
14500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14501$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14502
14503if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14504 :
14505else
14506 lt_prog_compiler_static_CXX=
14507fi
14508
14509
14510
14511
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14513$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14514if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14515 $as_echo_n "(cached) " >&6
14516else
14517 lt_cv_prog_compiler_c_o_CXX=no
14518 $RM -r conftest 2>/dev/null
14519 mkdir conftest
14520 cd conftest
14521 mkdir out
14522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14523
14524 lt_compiler_flag="-o out/conftest2.$ac_objext"
14525 # Insert the option either (1) after the last *FLAGS variable, or
14526 # (2) before a word containing "conftest.", or (3) at the end.
14527 # Note that $ac_compile itself does not contain backslashes and begins
14528 # with a dollar sign (not a hyphen), so the echo should work correctly.
14529 lt_compile=`echo "$ac_compile" | $SED \
14530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14532 -e 's:$: $lt_compiler_flag:'`
14533 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14534 (eval "$lt_compile" 2>out/conftest.err)
14535 ac_status=$?
14536 cat out/conftest.err >&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14539 then
14540 # The compiler can only warn and ignore the option if not recognized
14541 # So say no if there are warnings
14542 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14543 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14544 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14545 lt_cv_prog_compiler_c_o_CXX=yes
14546 fi
14547 fi
14548 chmod u+w . 2>&5
14549 $RM conftest*
14550 # SGI C++ compiler will create directory out/ii_files/ for
14551 # template instantiation
14552 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14553 $RM out/* && rmdir out
14554 cd ..
14555 $RM -r conftest
14556 $RM conftest*
14557
14558fi
14559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14560$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14561
14562
14563
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14565$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14566if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14567 $as_echo_n "(cached) " >&6
14568else
14569 lt_cv_prog_compiler_c_o_CXX=no
14570 $RM -r conftest 2>/dev/null
14571 mkdir conftest
14572 cd conftest
14573 mkdir out
14574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14575
14576 lt_compiler_flag="-o out/conftest2.$ac_objext"
14577 # Insert the option either (1) after the last *FLAGS variable, or
14578 # (2) before a word containing "conftest.", or (3) at the end.
14579 # Note that $ac_compile itself does not contain backslashes and begins
14580 # with a dollar sign (not a hyphen), so the echo should work correctly.
14581 lt_compile=`echo "$ac_compile" | $SED \
14582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14584 -e 's:$: $lt_compiler_flag:'`
14585 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14586 (eval "$lt_compile" 2>out/conftest.err)
14587 ac_status=$?
14588 cat out/conftest.err >&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14591 then
14592 # The compiler can only warn and ignore the option if not recognized
14593 # So say no if there are warnings
14594 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14595 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14596 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14597 lt_cv_prog_compiler_c_o_CXX=yes
14598 fi
14599 fi
14600 chmod u+w . 2>&5
14601 $RM conftest*
14602 # SGI C++ compiler will create directory out/ii_files/ for
14603 # template instantiation
14604 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14605 $RM out/* && rmdir out
14606 cd ..
14607 $RM -r conftest
14608 $RM conftest*
14609
14610fi
14611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14612$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14613
14614
14615
14616
14617hard_links="nottested"
14618if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14619 # do not overwrite the value of need_locks provided by the user
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14621$as_echo_n "checking if we can lock with hard links... " >&6; }
14622 hard_links=yes
14623 $RM conftest*
14624 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14625 touch conftest.a
14626 ln conftest.a conftest.b 2>&5 || hard_links=no
14627 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14629$as_echo "$hard_links" >&6; }
14630 if test "$hard_links" = no; then
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14632$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14633 need_locks=warn
14634 fi
14635else
14636 need_locks=no
14637fi
14638
14639
14640
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14642$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14643
14644 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14645 case $host_os in
14646 aix[4-9]*)
14647 # If we're using GNU nm, then we don't want the "-C" option.
14648 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14649 # Also, AIX nm treats weak defined symbols like other global defined
14650 # symbols, whereas GNU nm marks them as "W".
14651 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14652 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'
14653 else
14654 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14655 fi
14656 ;;
14657 pw32*)
14658 export_symbols_cmds_CXX="$ltdll_cmds"
14659 ;;
14660 cygwin* | mingw* | cegcc*)
14661 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'
14662 ;;
14663 *)
14664 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14665 ;;
14666 esac
14667 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14668
14669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14670$as_echo "$ld_shlibs_CXX" >&6; }
14671test "$ld_shlibs_CXX" = no && can_build_shared=no
14672
14673with_gnu_ld_CXX=$with_gnu_ld
14674
14675
14676
14677
14678
14679
14680#
14681# Do we need to explicitly link libc?
14682#
14683case "x$archive_cmds_need_lc_CXX" in
14684x|xyes)
14685 # Assume -lc should be added
14686 archive_cmds_need_lc_CXX=yes
14687
14688 if test "$enable_shared" = yes && test "$GCC" = yes; then
14689 case $archive_cmds_CXX in
14690 *'~'*)
14691 # FIXME: we may have to deal with multi-command sequences.
14692 ;;
14693 '$CC '*)
14694 # Test whether the compiler implicitly links with -lc since on some
14695 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14696 # to ld, don't add -lc before -lgcc.
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14698$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14699if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14700 $as_echo_n "(cached) " >&6
14701else
14702 $RM conftest*
14703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14704
14705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14706 (eval $ac_compile) 2>&5
14707 ac_status=$?
14708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14709 test $ac_status = 0; } 2>conftest.err; then
14710 soname=conftest
14711 lib=conftest
14712 libobjs=conftest.$ac_objext
14713 deplibs=
14714 wl=$lt_prog_compiler_wl_CXX
14715 pic_flag=$lt_prog_compiler_pic_CXX
14716 compiler_flags=-v
14717 linker_flags=-v
14718 verstring=
14719 output_objdir=.
14720 libname=conftest
14721 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14722 allow_undefined_flag_CXX=
14723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14724 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14725 ac_status=$?
14726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14727 test $ac_status = 0; }
14728 then
14729 lt_cv_archive_cmds_need_lc_CXX=no
14730 else
14731 lt_cv_archive_cmds_need_lc_CXX=yes
14732 fi
14733 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14734 else
14735 cat conftest.err 1>&5
14736 fi
14737 $RM conftest*
14738
14739fi
14740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14741$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14742 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14743 ;;
14744 esac
14745 fi
14746 ;;
14747esac
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14813$as_echo_n "checking dynamic linker characteristics... " >&6; }
14814
14815library_names_spec=
14816libname_spec='lib$name'
14817soname_spec=
14818shrext_cmds=".so"
14819postinstall_cmds=
14820postuninstall_cmds=
14821finish_cmds=
14822finish_eval=
14823shlibpath_var=
14824shlibpath_overrides_runpath=unknown
14825version_type=none
14826dynamic_linker="$host_os ld.so"
14827sys_lib_dlsearch_path_spec="/lib /usr/lib"
14828need_lib_prefix=unknown
14829hardcode_into_libs=no
14830
14831# when you set need_version to no, make sure it does not cause -set_version
14832# flags to be left without arguments
14833need_version=unknown
14834
14835case $host_os in
14836aix3*)
14837 version_type=linux
14838 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14839 shlibpath_var=LIBPATH
14840
14841 # AIX 3 has no versioning support, so we append a major version to the name.
14842 soname_spec='${libname}${release}${shared_ext}$major'
14843 ;;
14844
14845aix[4-9]*)
14846 version_type=linux
14847 need_lib_prefix=no
14848 need_version=no
14849 hardcode_into_libs=yes
14850 if test "$host_cpu" = ia64; then
14851 # AIX 5 supports IA64
14852 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14853 shlibpath_var=LD_LIBRARY_PATH
14854 else
14855 # With GCC up to 2.95.x, collect2 would create an import file
14856 # for dependence libraries. The import file would start with
14857 # the line `#! .'. This would cause the generated library to
14858 # depend on `.', always an invalid library. This was fixed in
14859 # development snapshots of GCC prior to 3.0.
14860 case $host_os in
14861 aix4 | aix4.[01] | aix4.[01].*)
14862 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14863 echo ' yes '
14864 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14865 :
14866 else
14867 can_build_shared=no
14868 fi
14869 ;;
14870 esac
14871 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14872 # soname into executable. Probably we can add versioning support to
14873 # collect2, so additional links can be useful in future.
14874 if test "$aix_use_runtimelinking" = yes; then
14875 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14876 # instead of lib<name>.a to let people know that these are not
14877 # typical AIX shared libraries.
14878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14879 else
14880 # We preserve .a as extension for shared libraries through AIX4.2
14881 # and later when we are not doing run time linking.
14882 library_names_spec='${libname}${release}.a $libname.a'
14883 soname_spec='${libname}${release}${shared_ext}$major'
14884 fi
14885 shlibpath_var=LIBPATH
14886 fi
14887 ;;
14888
14889amigaos*)
14890 case $host_cpu in
14891 powerpc)
14892 # Since July 2007 AmigaOS4 officially supports .so libraries.
14893 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14895 ;;
14896 m68k)
14897 library_names_spec='$libname.ixlibrary $libname.a'
14898 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14899 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'
14900 ;;
14901 esac
14902 ;;
14903
14904beos*)
14905 library_names_spec='${libname}${shared_ext}'
14906 dynamic_linker="$host_os ld.so"
14907 shlibpath_var=LIBRARY_PATH
14908 ;;
14909
14910bsdi[45]*)
14911 version_type=linux
14912 need_version=no
14913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14914 soname_spec='${libname}${release}${shared_ext}$major'
14915 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14916 shlibpath_var=LD_LIBRARY_PATH
14917 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14918 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14919 # the default ld.so.conf also contains /usr/contrib/lib and
14920 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14921 # libtool to hard-code these into programs
14922 ;;
14923
14924cygwin* | mingw* | pw32* | cegcc*)
14925 version_type=windows
14926 shrext_cmds=".dll"
14927 need_version=no
14928 need_lib_prefix=no
14929
14930 case $GCC,$host_os in
14931 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14932 library_names_spec='$libname.dll.a'
14933 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14934 postinstall_cmds='base_file=`basename \${file}`~
14935 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14936 dldir=$destdir/`dirname \$dlpath`~
14937 test -d \$dldir || mkdir -p \$dldir~
14938 $install_prog $dir/$dlname \$dldir/$dlname~
14939 chmod a+x \$dldir/$dlname~
14940 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14941 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14942 fi'
14943 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14944 dlpath=$dir/\$dldll~
14945 $RM \$dlpath'
14946 shlibpath_overrides_runpath=yes
14947
14948 case $host_os in
14949 cygwin*)
14950 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14951 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14952
14953 ;;
14954 mingw* | cegcc*)
14955 # MinGW DLLs use traditional 'lib' prefix
14956 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14957 ;;
14958 pw32*)
14959 # pw32 DLLs use 'pw' prefix rather than 'lib'
14960 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14961 ;;
14962 esac
14963 ;;
14964
14965 *)
14966 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14967 ;;
14968 esac
14969 dynamic_linker='Win32 ld.exe'
14970 # FIXME: first we should search . and the directory the executable is in
14971 shlibpath_var=PATH
14972 ;;
14973
14974darwin* | rhapsody*)
14975 dynamic_linker="$host_os dyld"
14976 version_type=darwin
14977 need_lib_prefix=no
14978 need_version=no
14979 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14980 soname_spec='${libname}${release}${major}$shared_ext'
14981 shlibpath_overrides_runpath=yes
14982 shlibpath_var=DYLD_LIBRARY_PATH
14983 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14984
14985 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14986 ;;
14987
14988dgux*)
14989 version_type=linux
14990 need_lib_prefix=no
14991 need_version=no
14992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14993 soname_spec='${libname}${release}${shared_ext}$major'
14994 shlibpath_var=LD_LIBRARY_PATH
14995 ;;
14996
3cb62297
L
14997freebsd* | dragonfly*)
14998 # DragonFly does not have aout. When/if they implement a new
14999 # versioning mechanism, adjust this.
15000 if test -x /usr/bin/objformat; then
15001 objformat=`/usr/bin/objformat`
15002 else
15003 case $host_os in
6d2920c8 15004 freebsd[23].*) objformat=aout ;;
3cb62297
L
15005 *) objformat=elf ;;
15006 esac
15007 fi
15008 version_type=freebsd-$objformat
15009 case $version_type in
15010 freebsd-elf*)
15011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15012 need_version=no
15013 need_lib_prefix=no
15014 ;;
15015 freebsd-*)
15016 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15017 need_version=yes
15018 ;;
15019 esac
15020 shlibpath_var=LD_LIBRARY_PATH
15021 case $host_os in
6d2920c8 15022 freebsd2.*)
3cb62297
L
15023 shlibpath_overrides_runpath=yes
15024 ;;
15025 freebsd3.[01]* | freebsdelf3.[01]*)
15026 shlibpath_overrides_runpath=yes
15027 hardcode_into_libs=yes
15028 ;;
15029 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15030 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15031 shlibpath_overrides_runpath=no
15032 hardcode_into_libs=yes
15033 ;;
15034 *) # from 4.6 on, and DragonFly
15035 shlibpath_overrides_runpath=yes
15036 hardcode_into_libs=yes
15037 ;;
15038 esac
15039 ;;
15040
15041gnu*)
15042 version_type=linux
15043 need_lib_prefix=no
15044 need_version=no
15045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15046 soname_spec='${libname}${release}${shared_ext}$major'
15047 shlibpath_var=LD_LIBRARY_PATH
15048 hardcode_into_libs=yes
15049 ;;
15050
15051haiku*)
15052 version_type=linux
15053 need_lib_prefix=no
15054 need_version=no
15055 dynamic_linker="$host_os runtime_loader"
15056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15057 soname_spec='${libname}${release}${shared_ext}$major'
15058 shlibpath_var=LIBRARY_PATH
15059 shlibpath_overrides_runpath=yes
15060 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15061 hardcode_into_libs=yes
15062 ;;
15063
15064hpux9* | hpux10* | hpux11*)
15065 # Give a soname corresponding to the major version so that dld.sl refuses to
15066 # link against other versions.
15067 version_type=sunos
15068 need_lib_prefix=no
15069 need_version=no
15070 case $host_cpu in
15071 ia64*)
15072 shrext_cmds='.so'
15073 hardcode_into_libs=yes
15074 dynamic_linker="$host_os dld.so"
15075 shlibpath_var=LD_LIBRARY_PATH
15076 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15078 soname_spec='${libname}${release}${shared_ext}$major'
15079 if test "X$HPUX_IA64_MODE" = X32; then
15080 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15081 else
15082 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15083 fi
15084 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15085 ;;
15086 hppa*64*)
15087 shrext_cmds='.sl'
15088 hardcode_into_libs=yes
15089 dynamic_linker="$host_os dld.sl"
15090 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15091 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15093 soname_spec='${libname}${release}${shared_ext}$major'
15094 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15095 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15096 ;;
15097 *)
15098 shrext_cmds='.sl'
15099 dynamic_linker="$host_os dld.sl"
15100 shlibpath_var=SHLIB_PATH
15101 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15103 soname_spec='${libname}${release}${shared_ext}$major'
15104 ;;
15105 esac
15106 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15107 postinstall_cmds='chmod 555 $lib'
15108 # or fails outright, so override atomically:
15109 install_override_mode=555
15110 ;;
15111
15112interix[3-9]*)
15113 version_type=linux
15114 need_lib_prefix=no
15115 need_version=no
15116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15117 soname_spec='${libname}${release}${shared_ext}$major'
15118 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15119 shlibpath_var=LD_LIBRARY_PATH
15120 shlibpath_overrides_runpath=no
15121 hardcode_into_libs=yes
15122 ;;
15123
15124irix5* | irix6* | nonstopux*)
15125 case $host_os in
15126 nonstopux*) version_type=nonstopux ;;
15127 *)
15128 if test "$lt_cv_prog_gnu_ld" = yes; then
15129 version_type=linux
15130 else
15131 version_type=irix
15132 fi ;;
15133 esac
15134 need_lib_prefix=no
15135 need_version=no
15136 soname_spec='${libname}${release}${shared_ext}$major'
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15138 case $host_os in
15139 irix5* | nonstopux*)
15140 libsuff= shlibsuff=
15141 ;;
15142 *)
15143 case $LD in # libtool.m4 will add one of these switches to LD
15144 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15145 libsuff= shlibsuff= libmagic=32-bit;;
15146 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15147 libsuff=32 shlibsuff=N32 libmagic=N32;;
15148 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15149 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15150 *) libsuff= shlibsuff= libmagic=never-match;;
15151 esac
15152 ;;
15153 esac
15154 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15155 shlibpath_overrides_runpath=no
15156 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15157 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15158 hardcode_into_libs=yes
15159 ;;
15160
15161# No shared lib support for Linux oldld, aout, or coff.
15162linux*oldld* | linux*aout* | linux*coff*)
15163 dynamic_linker=no
15164 ;;
15165
15166# This must be Linux ELF.
15167linux* | k*bsd*-gnu | kopensolaris*-gnu)
15168 version_type=linux
15169 need_lib_prefix=no
15170 need_version=no
15171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15172 soname_spec='${libname}${release}${shared_ext}$major'
15173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15174 shlibpath_var=LD_LIBRARY_PATH
15175 shlibpath_overrides_runpath=no
15176
15177 # Some binutils ld are patched to set DT_RUNPATH
15178 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15179 $as_echo_n "(cached) " >&6
15180else
15181 lt_cv_shlibpath_overrides_runpath=no
15182 save_LDFLAGS=$LDFLAGS
15183 save_libdir=$libdir
15184 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15185 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15187/* end confdefs.h. */
15188
15189int
15190main ()
15191{
15192
15193 ;
15194 return 0;
15195}
15196_ACEOF
15197if ac_fn_cxx_try_link "$LINENO"; then :
15198 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15199 lt_cv_shlibpath_overrides_runpath=yes
15200fi
15201fi
15202rm -f core conftest.err conftest.$ac_objext \
15203 conftest$ac_exeext conftest.$ac_ext
15204 LDFLAGS=$save_LDFLAGS
15205 libdir=$save_libdir
15206
15207fi
15208
15209 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15210
15211 # This implies no fast_install, which is unacceptable.
15212 # Some rework will be needed to allow for fast_install
15213 # before this can be enabled.
15214 hardcode_into_libs=yes
15215
15216 # Append ld.so.conf contents to the search path
15217 if test -f /etc/ld.so.conf; then
15218 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' ' '`
15219 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15220 fi
15221
15222 # We used to test for /lib/ld.so.1 and disable shared libraries on
15223 # powerpc, because MkLinux only supported shared libraries with the
15224 # GNU dynamic linker. Since this was broken with cross compilers,
15225 # most powerpc-linux boxes support dynamic linking these days and
15226 # people can always --disable-shared, the test was removed, and we
15227 # assume the GNU/Linux dynamic linker is in use.
15228 dynamic_linker='GNU/Linux ld.so'
15229 ;;
15230
15231netbsd*)
15232 version_type=sunos
15233 need_lib_prefix=no
15234 need_version=no
15235 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15237 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15238 dynamic_linker='NetBSD (a.out) ld.so'
15239 else
15240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15241 soname_spec='${libname}${release}${shared_ext}$major'
15242 dynamic_linker='NetBSD ld.elf_so'
15243 fi
15244 shlibpath_var=LD_LIBRARY_PATH
15245 shlibpath_overrides_runpath=yes
15246 hardcode_into_libs=yes
15247 ;;
15248
15249newsos6)
15250 version_type=linux
15251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15252 shlibpath_var=LD_LIBRARY_PATH
15253 shlibpath_overrides_runpath=yes
15254 ;;
15255
15256*nto* | *qnx*)
15257 version_type=qnx
15258 need_lib_prefix=no
15259 need_version=no
15260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15261 soname_spec='${libname}${release}${shared_ext}$major'
15262 shlibpath_var=LD_LIBRARY_PATH
15263 shlibpath_overrides_runpath=no
15264 hardcode_into_libs=yes
15265 dynamic_linker='ldqnx.so'
15266 ;;
15267
15268openbsd*)
15269 version_type=sunos
15270 sys_lib_dlsearch_path_spec="/usr/lib"
15271 need_lib_prefix=no
15272 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15273 case $host_os in
15274 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15275 *) need_version=no ;;
15276 esac
15277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15278 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15279 shlibpath_var=LD_LIBRARY_PATH
15280 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15281 case $host_os in
15282 openbsd2.[89] | openbsd2.[89].*)
15283 shlibpath_overrides_runpath=no
15284 ;;
15285 *)
15286 shlibpath_overrides_runpath=yes
15287 ;;
15288 esac
15289 else
15290 shlibpath_overrides_runpath=yes
15291 fi
15292 ;;
15293
15294os2*)
15295 libname_spec='$name'
15296 shrext_cmds=".dll"
15297 need_lib_prefix=no
15298 library_names_spec='$libname${shared_ext} $libname.a'
15299 dynamic_linker='OS/2 ld.exe'
15300 shlibpath_var=LIBPATH
15301 ;;
15302
15303osf3* | osf4* | osf5*)
15304 version_type=osf
15305 need_lib_prefix=no
15306 need_version=no
15307 soname_spec='${libname}${release}${shared_ext}$major'
15308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15309 shlibpath_var=LD_LIBRARY_PATH
15310 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15311 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15312 ;;
15313
15314rdos*)
15315 dynamic_linker=no
15316 ;;
15317
15318solaris*)
15319 version_type=linux
15320 need_lib_prefix=no
15321 need_version=no
15322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15323 soname_spec='${libname}${release}${shared_ext}$major'
15324 shlibpath_var=LD_LIBRARY_PATH
15325 shlibpath_overrides_runpath=yes
15326 hardcode_into_libs=yes
15327 # ldd complains unless libraries are executable
15328 postinstall_cmds='chmod +x $lib'
15329 ;;
15330
15331sunos4*)
15332 version_type=sunos
15333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15334 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15335 shlibpath_var=LD_LIBRARY_PATH
15336 shlibpath_overrides_runpath=yes
15337 if test "$with_gnu_ld" = yes; then
15338 need_lib_prefix=no
15339 fi
15340 need_version=yes
15341 ;;
15342
15343sysv4 | sysv4.3*)
15344 version_type=linux
15345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15346 soname_spec='${libname}${release}${shared_ext}$major'
15347 shlibpath_var=LD_LIBRARY_PATH
15348 case $host_vendor in
15349 sni)
15350 shlibpath_overrides_runpath=no
15351 need_lib_prefix=no
15352 runpath_var=LD_RUN_PATH
15353 ;;
15354 siemens)
15355 need_lib_prefix=no
15356 ;;
15357 motorola)
15358 need_lib_prefix=no
15359 need_version=no
15360 shlibpath_overrides_runpath=no
15361 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15362 ;;
15363 esac
15364 ;;
15365
15366sysv4*MP*)
15367 if test -d /usr/nec ;then
15368 version_type=linux
15369 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15370 soname_spec='$libname${shared_ext}.$major'
15371 shlibpath_var=LD_LIBRARY_PATH
15372 fi
15373 ;;
15374
15375sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15376 version_type=freebsd-elf
15377 need_lib_prefix=no
15378 need_version=no
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15380 soname_spec='${libname}${release}${shared_ext}$major'
15381 shlibpath_var=LD_LIBRARY_PATH
15382 shlibpath_overrides_runpath=yes
15383 hardcode_into_libs=yes
15384 if test "$with_gnu_ld" = yes; then
15385 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15386 else
15387 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15388 case $host_os in
15389 sco3.2v5*)
15390 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15391 ;;
15392 esac
15393 fi
15394 sys_lib_dlsearch_path_spec='/usr/lib'
15395 ;;
15396
15397tpf*)
15398 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15399 version_type=linux
15400 need_lib_prefix=no
15401 need_version=no
15402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15403 shlibpath_var=LD_LIBRARY_PATH
15404 shlibpath_overrides_runpath=no
15405 hardcode_into_libs=yes
15406 ;;
15407
15408uts4*)
15409 version_type=linux
15410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15411 soname_spec='${libname}${release}${shared_ext}$major'
15412 shlibpath_var=LD_LIBRARY_PATH
15413 ;;
15414
15415*)
15416 dynamic_linker=no
15417 ;;
15418esac
15419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15420$as_echo "$dynamic_linker" >&6; }
15421test "$dynamic_linker" = no && can_build_shared=no
15422
15423variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15424if test "$GCC" = yes; then
15425 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15426fi
15427
15428if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15429 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15430fi
15431if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15432 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15433fi
15434
3725885a 15435
ce2cded5 15436
ce2cded5 15437
ce2cded5 15438
d7040cdb 15439
ce2cded5 15440
ce2cded5 15441
ce2cded5 15442
d7040cdb 15443
ce2cded5
L
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
ce2cded5
L
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
3cb62297
L
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15473$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15474hardcode_action_CXX=
15475if test -n "$hardcode_libdir_flag_spec_CXX" ||
15476 test -n "$runpath_var_CXX" ||
15477 test "X$hardcode_automatic_CXX" = "Xyes" ; then
ce2cded5 15478
3cb62297
L
15479 # We can hardcode non-existent directories.
15480 if test "$hardcode_direct_CXX" != no &&
15481 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15482 # have to relink, otherwise we might link with an installed library
15483 # when we should be linking with a yet-to-be-installed one
15484 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15485 test "$hardcode_minus_L_CXX" != no; then
15486 # Linking always hardcodes the temporary library directory.
15487 hardcode_action_CXX=relink
15488 else
15489 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15490 hardcode_action_CXX=immediate
15491 fi
15492else
15493 # We cannot hardcode anything, or else we can only hardcode existing
15494 # directories.
15495 hardcode_action_CXX=unsupported
15496fi
15497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15498$as_echo "$hardcode_action_CXX" >&6; }
ce2cded5 15499
3cb62297
L
15500if test "$hardcode_action_CXX" = relink ||
15501 test "$inherit_rpath_CXX" = yes; then
15502 # Fast installation is not supported
15503 enable_fast_install=no
15504elif test "$shlibpath_overrides_runpath" = yes ||
15505 test "$enable_shared" = no; then
15506 # Fast installation is not necessary
15507 enable_fast_install=needless
15508fi
ce2cded5 15509
ce2cded5 15510
ce2cded5
L
15511
15512
15513
d7040cdb 15514
3cb62297
L
15515
15516 fi # test -n "$compiler"
15517
15518 CC=$lt_save_CC
15519 LDCXX=$LD
15520 LD=$lt_save_LD
15521 GCC=$lt_save_GCC
15522 with_gnu_ld=$lt_save_with_gnu_ld
15523 lt_cv_path_LDCXX=$lt_cv_path_LD
15524 lt_cv_path_LD=$lt_save_path_LD
15525 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15526 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15527fi # test "$_lt_caught_CXX_error" != yes
15528
d7040cdb
SE
15529ac_ext=c
15530ac_cpp='$CPP $CPPFLAGS'
15531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15533ac_compiler_gnu=$ac_cv_c_compiler_gnu
15534
67310ccd
AM
15535
15536
d7040cdb
SE
15537
15538
d7040cdb 15539
d7040cdb 15540
d7040cdb 15541
ce2cded5
L
15542
15543
15544
15545
15546
81ecdfbb 15547 ac_config_commands="$ac_config_commands libtool"
ce2cded5
L
15548
15549
15550
15551
15552# Only expand once:
15553
d7040cdb
SE
15554
15555
3e4fe8ac 15556ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk"
d7040cdb
SE
15557# If we haven't got the data from the intl directory,
15558# assume NLS is disabled.
15559USE_NLS=no
15560LIBINTL=
15561LIBINTL_DEP=
15562INCINTL=
15563XGETTEXT=
15564GMSGFMT=
15565POSUB=
15566
15567if test -f ../intl/config.intl; then
15568 . ../intl/config.intl
15569fi
81ecdfbb
RW
15570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15571$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 15572if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15574$as_echo "no" >&6; }
d7040cdb 15575else
81ecdfbb
RW
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15577$as_echo "yes" >&6; }
d7040cdb 15578
81ecdfbb 15579$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
15580
15581
81ecdfbb
RW
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15583$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
15584 # Look for .po and .gmo files in the source directory.
15585 CATALOGS=
15586 XLINGUAS=
15587 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15588 # If there aren't any .gmo files the shell will give us the
15589 # literal string "../path/to/srcdir/po/*.gmo" which has to be
15590 # weeded out.
15591 case "$cat" in *\**)
15592 continue;;
15593 esac
15594 # The quadruple backslash is collapsed to a double backslash
15595 # by the backticks, then collapsed again by the double quotes,
15596 # leaving us with one backslash in the sed expression (right
15597 # before the dot that mustn't act as a wildcard).
15598 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15599 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15600 # The user is allowed to set LINGUAS to a list of languages to
15601 # install catalogs for. If it's empty that means "all of them."
15602 if test "x$LINGUAS" = x; then
15603 CATALOGS="$CATALOGS $cat"
15604 XLINGUAS="$XLINGUAS $lang"
15605 else
15606 case "$LINGUAS" in *$lang*)
15607 CATALOGS="$CATALOGS $cat"
15608 XLINGUAS="$XLINGUAS $lang"
15609 ;;
15610 esac
15611 fi
15612 done
15613 LINGUAS="$XLINGUAS"
81ecdfbb
RW
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15615$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
15616
15617
15618 DATADIRNAME=share
15619
15620 INSTOBJEXT=.mo
15621
15622 GENCAT=gencat
15623
15624 CATOBJEXT=.gmo
15625
15626fi
15627
15628 MKINSTALLDIRS=
15629 if test -n "$ac_aux_dir"; then
15630 case "$ac_aux_dir" in
15631 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15632 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15633 esac
15634 fi
15635 if test -z "$MKINSTALLDIRS"; then
15636 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15637 fi
15638
15639
15640
81ecdfbb
RW
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15642$as_echo_n "checking whether NLS is requested... " >&6; }
15643 # Check whether --enable-nls was given.
15644if test "${enable_nls+set}" = set; then :
15645 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
15646else
15647 USE_NLS=yes
81ecdfbb
RW
15648fi
15649
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15651$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
15652
15653
15654
15655
15656
15657
15658# Prepare PATH_SEPARATOR.
15659# The user is always right.
15660if test "${PATH_SEPARATOR+set}" != set; then
15661 echo "#! /bin/sh" >conf$$.sh
15662 echo "exit 0" >>conf$$.sh
15663 chmod +x conf$$.sh
15664 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15665 PATH_SEPARATOR=';'
15666 else
15667 PATH_SEPARATOR=:
15668 fi
15669 rm -f conf$$.sh
15670fi
15671
15672# Find out how to test for executable files. Don't use a zero-byte file,
15673# as systems may use methods other than mode bits to determine executability.
15674cat >conf$$.file <<_ASEOF
15675#! /bin/sh
15676exit 0
15677_ASEOF
15678chmod +x conf$$.file
15679if test -x conf$$.file >/dev/null 2>&1; then
15680 ac_executable_p="test -x"
15681else
15682 ac_executable_p="test -f"
15683fi
15684rm -f conf$$.file
15685
15686# Extract the first word of "msgfmt", so it can be a program name with args.
15687set dummy msgfmt; ac_word=$2
81ecdfbb
RW
15688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15689$as_echo_n "checking for $ac_word... " >&6; }
15690if test "${ac_cv_path_MSGFMT+set}" = set; then :
15691 $as_echo_n "(cached) " >&6
d7040cdb
SE
15692else
15693 case "$MSGFMT" in
15694 [\\/]* | ?:[\\/]*)
15695 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15696 ;;
15697 *)
15698 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15699 for ac_dir in $PATH; do
15700 IFS="$ac_save_IFS"
15701 test -z "$ac_dir" && ac_dir=.
15702 for ac_exec_ext in '' $ac_executable_extensions; do
15703 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15704 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15705 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15706 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15707 break 2
15708 fi
15709 fi
15710 done
15711 done
15712 IFS="$ac_save_IFS"
15713 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15714 ;;
15715esac
15716fi
15717MSGFMT="$ac_cv_path_MSGFMT"
15718if test "$MSGFMT" != ":"; then
81ecdfbb
RW
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15720$as_echo "$MSGFMT" >&6; }
d7040cdb 15721else
81ecdfbb
RW
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15723$as_echo "no" >&6; }
d7040cdb
SE
15724fi
15725
15726 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15727set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
15728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15729$as_echo_n "checking for $ac_word... " >&6; }
15730if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15731 $as_echo_n "(cached) " >&6
d7040cdb
SE
15732else
15733 case $GMSGFMT in
15734 [\\/]* | ?:[\\/]*)
15735 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15736 ;;
15737 *)
15738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15739for as_dir in $PATH
15740do
15741 IFS=$as_save_IFS
15742 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
15743 for ac_exec_ext in '' $ac_executable_extensions; do
15744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 15745 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 15746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
15747 break 2
15748 fi
15749done
81ecdfbb
RW
15750 done
15751IFS=$as_save_IFS
d7040cdb
SE
15752
15753 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15754 ;;
15755esac
15756fi
15757GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 15758if test -n "$GMSGFMT"; then
81ecdfbb
RW
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15760$as_echo "$GMSGFMT" >&6; }
d7040cdb 15761else
81ecdfbb
RW
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15763$as_echo "no" >&6; }
20e95c23 15764fi
42ecbf5e 15765
20e95c23 15766
252b5132 15767
81ecdfbb 15768
d7040cdb
SE
15769# Prepare PATH_SEPARATOR.
15770# The user is always right.
15771if test "${PATH_SEPARATOR+set}" != set; then
15772 echo "#! /bin/sh" >conf$$.sh
15773 echo "exit 0" >>conf$$.sh
15774 chmod +x conf$$.sh
15775 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15776 PATH_SEPARATOR=';'
15777 else
15778 PATH_SEPARATOR=:
15779 fi
15780 rm -f conf$$.sh
20e95c23 15781fi
252b5132 15782
d7040cdb
SE
15783# Find out how to test for executable files. Don't use a zero-byte file,
15784# as systems may use methods other than mode bits to determine executability.
15785cat >conf$$.file <<_ASEOF
15786#! /bin/sh
15787exit 0
15788_ASEOF
15789chmod +x conf$$.file
15790if test -x conf$$.file >/dev/null 2>&1; then
15791 ac_executable_p="test -x"
20e95c23 15792else
d7040cdb
SE
15793 ac_executable_p="test -f"
15794fi
15795rm -f conf$$.file
20e95c23 15796
d7040cdb
SE
15797# Extract the first word of "xgettext", so it can be a program name with args.
15798set dummy xgettext; ac_word=$2
81ecdfbb
RW
15799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15800$as_echo_n "checking for $ac_word... " >&6; }
15801if test "${ac_cv_path_XGETTEXT+set}" = set; then :
15802 $as_echo_n "(cached) " >&6
252b5132 15803else
d7040cdb
SE
15804 case "$XGETTEXT" in
15805 [\\/]* | ?:[\\/]*)
15806 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15807 ;;
15808 *)
15809 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15810 for ac_dir in $PATH; do
15811 IFS="$ac_save_IFS"
15812 test -z "$ac_dir" && ac_dir=.
15813 for ac_exec_ext in '' $ac_executable_extensions; do
15814 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15815 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15816 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15817 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15818 break 2
15819 fi
15820 fi
15821 done
15822 done
15823 IFS="$ac_save_IFS"
15824 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15825 ;;
15826esac
252b5132 15827fi
d7040cdb
SE
15828XGETTEXT="$ac_cv_path_XGETTEXT"
15829if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15831$as_echo "$XGETTEXT" >&6; }
d5fbea21 15832else
81ecdfbb
RW
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15834$as_echo "no" >&6; }
d5fbea21
DJ
15835fi
15836
d7040cdb 15837 rm -f messages.po
d5fbea21 15838
20e95c23 15839
d7040cdb
SE
15840# Prepare PATH_SEPARATOR.
15841# The user is always right.
15842if test "${PATH_SEPARATOR+set}" != set; then
15843 echo "#! /bin/sh" >conf$$.sh
15844 echo "exit 0" >>conf$$.sh
15845 chmod +x conf$$.sh
15846 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15847 PATH_SEPARATOR=';'
15848 else
15849 PATH_SEPARATOR=:
15850 fi
15851 rm -f conf$$.sh
15852fi
20e95c23 15853
d7040cdb
SE
15854# Find out how to test for executable files. Don't use a zero-byte file,
15855# as systems may use methods other than mode bits to determine executability.
15856cat >conf$$.file <<_ASEOF
15857#! /bin/sh
15858exit 0
15859_ASEOF
15860chmod +x conf$$.file
15861if test -x conf$$.file >/dev/null 2>&1; then
15862 ac_executable_p="test -x"
15863else
15864 ac_executable_p="test -f"
15865fi
15866rm -f conf$$.file
20e95c23 15867
d7040cdb
SE
15868# Extract the first word of "msgmerge", so it can be a program name with args.
15869set dummy msgmerge; ac_word=$2
81ecdfbb
RW
15870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15871$as_echo_n "checking for $ac_word... " >&6; }
15872if test "${ac_cv_path_MSGMERGE+set}" = set; then :
15873 $as_echo_n "(cached) " >&6
d7040cdb
SE
15874else
15875 case "$MSGMERGE" in
15876 [\\/]* | ?:[\\/]*)
15877 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15878 ;;
15879 *)
15880 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15881 for ac_dir in $PATH; do
15882 IFS="$ac_save_IFS"
15883 test -z "$ac_dir" && ac_dir=.
15884 for ac_exec_ext in '' $ac_executable_extensions; do
15885 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15886 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15887 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15888 break 2
15889 fi
15890 fi
15891 done
15892 done
15893 IFS="$ac_save_IFS"
15894 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15895 ;;
15896esac
15897fi
15898MSGMERGE="$ac_cv_path_MSGMERGE"
15899if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15901$as_echo "$MSGMERGE" >&6; }
d7040cdb 15902else
81ecdfbb
RW
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15904$as_echo "no" >&6; }
d7040cdb 15905fi
20e95c23
DJ
15906
15907
d7040cdb
SE
15908 if test "$GMSGFMT" != ":"; then
15909 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15910 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15911 : ;
15912 else
15913 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15915$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
15916 GMSGFMT=":"
15917 fi
15918 fi
20e95c23 15919
d7040cdb
SE
15920 if test "$XGETTEXT" != ":"; then
15921 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15922 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15923 : ;
15924 else
81ecdfbb
RW
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
15926$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
15927 XGETTEXT=":"
15928 fi
15929 rm -f messages.po
20e95c23 15930 fi
42ecbf5e 15931
81ecdfbb 15932 ac_config_commands="$ac_config_commands default-1"
252b5132 15933
42ecbf5e 15934
252b5132 15935
42ecbf5e
DJ
15936
15937
d7040cdb 15938for ac_prog in 'bison -y' byacc
20e95c23 15939do
d7040cdb
SE
15940 # Extract the first word of "$ac_prog", so it can be a program name with args.
15941set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
15942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15943$as_echo_n "checking for $ac_word... " >&6; }
15944if test "${ac_cv_prog_YACC+set}" = set; then :
15945 $as_echo_n "(cached) " >&6
20e95c23 15946else
d7040cdb
SE
15947 if test -n "$YACC"; then
15948 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 15949else
d7040cdb
SE
15950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15951for as_dir in $PATH
15952do
15953 IFS=$as_save_IFS
15954 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
15955 for ac_exec_ext in '' $ac_executable_extensions; do
15956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 15957 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 15958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
15959 break 2
15960 fi
15961done
81ecdfbb
RW
15962 done
15963IFS=$as_save_IFS
42ecbf5e 15964
42ecbf5e 15965fi
e5a52504 15966fi
d7040cdb
SE
15967YACC=$ac_cv_prog_YACC
15968if test -n "$YACC"; then
81ecdfbb
RW
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
15970$as_echo "$YACC" >&6; }
42ecbf5e 15971else
81ecdfbb
RW
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15973$as_echo "no" >&6; }
42ecbf5e 15974fi
252b5132 15975
81ecdfbb 15976
d7040cdb 15977 test -n "$YACC" && break
42ecbf5e 15978done
d7040cdb 15979test -n "$YACC" || YACC="yacc"
d15b04bd 15980
d7040cdb
SE
15981for ac_prog in flex lex
15982do
15983 # Extract the first word of "$ac_prog", so it can be a program name with args.
15984set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
15985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15986$as_echo_n "checking for $ac_word... " >&6; }
15987if test "${ac_cv_prog_LEX+set}" = set; then :
15988 $as_echo_n "(cached) " >&6
d15b04bd 15989else
d7040cdb
SE
15990 if test -n "$LEX"; then
15991 ac_cv_prog_LEX="$LEX" # Let the user override the test.
15992else
15993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15994for as_dir in $PATH
15995do
15996 IFS=$as_save_IFS
15997 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
15998 for ac_exec_ext in '' $ac_executable_extensions; do
15999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 16000 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 16001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16002 break 2
16003 fi
16004done
81ecdfbb
RW
16005 done
16006IFS=$as_save_IFS
d7040cdb
SE
16007
16008fi
16009fi
16010LEX=$ac_cv_prog_LEX
16011if test -n "$LEX"; then
81ecdfbb
RW
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16013$as_echo "$LEX" >&6; }
d7040cdb 16014else
81ecdfbb
RW
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16016$as_echo "no" >&6; }
d15b04bd 16017fi
e5a52504 16018
81ecdfbb 16019
d7040cdb
SE
16020 test -n "$LEX" && break
16021done
16022test -n "$LEX" || LEX=":"
42ecbf5e 16023
81ecdfbb
RW
16024if test "x$LEX" != "x:"; then
16025 cat >conftest.l <<_ACEOF
16026%%
16027a { ECHO; }
16028b { REJECT; }
16029c { yymore (); }
16030d { yyless (1); }
16031e { yyless (input () != 0); }
16032f { unput (yytext[0]); }
16033. { BEGIN INITIAL; }
16034%%
16035#ifdef YYTEXT_POINTER
16036extern char *yytext;
d7040cdb 16037#endif
42ecbf5e 16038int
81ecdfbb 16039main (void)
42ecbf5e 16040{
81ecdfbb 16041 return ! yylex () + ! yywrap ();
42ecbf5e
DJ
16042}
16043_ACEOF
81ecdfbb
RW
16044{ { ac_try="$LEX conftest.l"
16045case "(($ac_try" in
16046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16047 *) ac_try_echo=$ac_try;;
16048esac
16049eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16050$as_echo "$ac_try_echo"; } >&5
16051 (eval "$LEX conftest.l") 2>&5
42ecbf5e 16052 ac_status=$?
81ecdfbb
RW
16053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16054 test $ac_status = 0; }
16055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16056$as_echo_n "checking lex output file root... " >&6; }
16057if test "${ac_cv_prog_lex_root+set}" = set; then :
16058 $as_echo_n "(cached) " >&6
42ecbf5e 16059else
42ecbf5e 16060
81ecdfbb
RW
16061if test -f lex.yy.c; then
16062 ac_cv_prog_lex_root=lex.yy
16063elif test -f lexyy.c; then
16064 ac_cv_prog_lex_root=lexyy
16065else
16066 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
42ecbf5e 16067fi
42ecbf5e 16068fi
81ecdfbb
RW
16069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16070$as_echo "$ac_cv_prog_lex_root" >&6; }
16071LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 16072
81ecdfbb
RW
16073if test -z "${LEXLIB+set}"; then
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16075$as_echo_n "checking lex library... " >&6; }
16076if test "${ac_cv_lib_lex+set}" = set; then :
16077 $as_echo_n "(cached) " >&6
252b5132 16078else
20e95c23 16079
81ecdfbb
RW
16080 ac_save_LIBS=$LIBS
16081 ac_cv_lib_lex='none needed'
16082 for ac_lib in '' -lfl -ll; do
16083 LIBS="$ac_lib $ac_save_LIBS"
16084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16085/* end confdefs.h. */
16086`cat $LEX_OUTPUT_ROOT.c`
16087_ACEOF
16088if ac_fn_c_try_link "$LINENO"; then :
16089 ac_cv_lib_lex=$ac_lib
20e95c23 16090fi
81ecdfbb
RW
16091rm -f core conftest.err conftest.$ac_objext \
16092 conftest$ac_exeext conftest.$ac_ext
16093 test "$ac_cv_lib_lex" != 'none needed' && break
16094 done
16095 LIBS=$ac_save_LIBS
20e95c23
DJ
16096
16097fi
81ecdfbb
RW
16098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16099$as_echo "$ac_cv_lib_lex" >&6; }
16100 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb 16101fi
20e95c23 16102
20e95c23 16103
81ecdfbb
RW
16104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16105$as_echo_n "checking whether yytext is a pointer... " >&6; }
16106if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16107 $as_echo_n "(cached) " >&6
d7040cdb
SE
16108else
16109 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 16110# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
16111# not all implementations provide the %pointer and %array declarations.
16112ac_cv_prog_lex_yytext_pointer=no
d7040cdb 16113ac_save_LIBS=$LIBS
81ecdfbb
RW
16114LIBS="$LEXLIB $ac_save_LIBS"
16115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16116/* end confdefs.h. */
16117#define YYTEXT_POINTER 1
d7040cdb 16118`cat $LEX_OUTPUT_ROOT.c`
20e95c23 16119_ACEOF
81ecdfbb 16120if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 16121 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 16122fi
81ecdfbb
RW
16123rm -f core conftest.err conftest.$ac_objext \
16124 conftest$ac_exeext conftest.$ac_ext
d7040cdb 16125LIBS=$ac_save_LIBS
d7040cdb
SE
16126
16127fi
81ecdfbb
RW
16128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16129$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
16130if test $ac_cv_prog_lex_yytext_pointer = yes; then
16131
81ecdfbb 16132$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
16133
16134fi
81ecdfbb 16135rm -f conftest.l $LEX_OUTPUT_ROOT.c
d7040cdb
SE
16136
16137fi
16138if test "$LEX" = :; then
16139 LEX=${am_missing_run}flex
16140fi
16141
81ecdfbb
RW
16142
16143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16144$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16145 # Check whether --enable-maintainer-mode was given.
16146if test "${enable_maintainer_mode+set}" = set; then :
16147 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 16148else
d7040cdb 16149 USE_MAINTAINER_MODE=no
81ecdfbb 16150fi
d7040cdb 16151
81ecdfbb
RW
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16153$as_echo "$USE_MAINTAINER_MODE" >&6; }
16154 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
16155 MAINTAINER_MODE_TRUE=
16156 MAINTAINER_MODE_FALSE='#'
16157else
16158 MAINTAINER_MODE_TRUE='#'
16159 MAINTAINER_MODE_FALSE=
252b5132 16160fi
252b5132 16161
d7040cdb
SE
16162 MAINT=$MAINTAINER_MODE_TRUE
16163
16164
81ecdfbb 16165 if false; then
d7040cdb
SE
16166 GENINSRC_NEVER_TRUE=
16167 GENINSRC_NEVER_FALSE='#'
16168else
16169 GENINSRC_NEVER_TRUE='#'
16170 GENINSRC_NEVER_FALSE=
252b5132
RH
16171fi
16172
81ecdfbb
RW
16173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16174$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16175if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16176 $as_echo_n "(cached) " >&6
eccbf555
AM
16177else
16178 echo abfoo >t1
16179 echo cdfoo >t2
16180 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16181 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16182 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16183 :
16184 else
16185 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16186 fi
16187 fi
16188 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16189 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16190 :
16191 else
16192 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16193 fi
16194 fi
16195 rm t1 t2
16196
16197fi
81ecdfbb
RW
16198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16199$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
eccbf555
AM
16200do_compare="$gcc_cv_prog_cmp_skip"
16201
16202
d7040cdb
SE
16203
16204. ${srcdir}/configure.host
16205
16206
16207
16208
252b5132
RH
16209
16210
6738cadc 16211
b27caf75 16212
58797674 16213for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
81ecdfbb
RW
16214do :
16215 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16216ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16217eval as_val=\$$as_ac_Header
16218 if test "x$as_val" = x""yes; then :
42ecbf5e 16219 cat >>confdefs.h <<_ACEOF
81ecdfbb 16220#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42ecbf5e
DJ
16221_ACEOF
16222
16223fi
16224
252b5132
RH
16225done
16226
5d3236ee
DK
16227for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16228do :
16229 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16230ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16231eval as_val=\$$as_ac_Header
16232 if test "x$as_val" = x""yes; then :
16233 cat >>confdefs.h <<_ACEOF
16234#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16235_ACEOF
16236
16237fi
16238
16239done
16240
208a4923
NC
16241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16242$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
16243if test "${gcc_cv_header_string+set}" = set; then :
16244 $as_echo_n "(cached) " >&6
16245else
16246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16247/* end confdefs.h. */
16248#include <string.h>
16249#include <strings.h>
16250int
16251main ()
16252{
16253
16254 ;
16255 return 0;
16256}
16257_ACEOF
16258if ac_fn_c_try_compile "$LINENO"; then :
16259 gcc_cv_header_string=yes
16260else
16261 gcc_cv_header_string=no
16262fi
16263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16264fi
16265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16266$as_echo "$gcc_cv_header_string" >&6; }
16267if test $gcc_cv_header_string = yes; then
16268
16269$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16270
16271fi
16272
44350750 16273for ac_func in glob mkstemp realpath sbrk setlocale waitpid
81ecdfbb
RW
16274do :
16275 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16276ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16277eval as_val=\$$as_ac_var
16278 if test "x$as_val" = x""yes; then :
42ecbf5e 16279 cat >>confdefs.h <<_ACEOF
81ecdfbb 16280#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42ecbf5e 16281_ACEOF
252b5132 16282
252b5132
RH
16283fi
16284done
16285
5d3236ee
DK
16286for ac_func in open lseek close
16287do :
16288 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16289ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16290eval as_val=\$$as_ac_var
16291 if test "x$as_val" = x""yes; then :
16292 cat >>confdefs.h <<_ACEOF
16293#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16294_ACEOF
16295
16296fi
16297done
16298
252b5132 16299ac_header_dirent=no
42ecbf5e 16300for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
81ecdfbb
RW
16301 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16303$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16305 $as_echo_n "(cached) " >&6
16306else
16307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16308/* end confdefs.h. */
252b5132
RH
16309#include <sys/types.h>
16310#include <$ac_hdr>
42ecbf5e
DJ
16311
16312int
16313main ()
16314{
16315if ((DIR *) 0)
16316return 0;
16317 ;
16318 return 0;
16319}
16320_ACEOF
81ecdfbb 16321if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
16322 eval "$as_ac_Header=yes"
16323else
81ecdfbb 16324 eval "$as_ac_Header=no"
42ecbf5e 16325fi
81ecdfbb 16326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 16327fi
81ecdfbb
RW
16328eval ac_res=\$$as_ac_Header
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16330$as_echo "$ac_res" >&6; }
16331eval as_val=\$$as_ac_Header
16332 if test "x$as_val" = x""yes; then :
42ecbf5e 16333 cat >>confdefs.h <<_ACEOF
81ecdfbb 16334#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
42ecbf5e
DJ
16335_ACEOF
16336
16337ac_header_dirent=$ac_hdr; break
d15b04bd 16338fi
42ecbf5e 16339
d15b04bd
L
16340done
16341# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16342if test $ac_header_dirent = dirent.h; then
81ecdfbb
RW
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16344$as_echo_n "checking for library containing opendir... " >&6; }
16345if test "${ac_cv_search_opendir+set}" = set; then :
16346 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
16347else
16348 ac_func_search_save_LIBS=$LIBS
81ecdfbb 16349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
16350/* end confdefs.h. */
16351
81ecdfbb
RW
16352/* Override any GCC internal prototype to avoid an error.
16353 Use char because int might match the return type of a GCC
16354 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
16355#ifdef __cplusplus
16356extern "C"
16357#endif
42ecbf5e
DJ
16358char opendir ();
16359int
16360main ()
16361{
81ecdfbb 16362return opendir ();
42ecbf5e
DJ
16363 ;
16364 return 0;
16365}
16366_ACEOF
81ecdfbb
RW
16367for ac_lib in '' dir; do
16368 if test -z "$ac_lib"; then
16369 ac_res="none required"
16370 else
16371 ac_res=-l$ac_lib
42ecbf5e 16372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
16373 fi
16374 if ac_fn_c_try_link "$LINENO"; then :
16375 ac_cv_search_opendir=$ac_res
16376fi
16377rm -f core conftest.err conftest.$ac_objext \
16378 conftest$ac_exeext
16379 if test "${ac_cv_search_opendir+set}" = set; then :
16380 break
16381fi
16382done
16383if test "${ac_cv_search_opendir+set}" = set; then :
e5a52504 16384
42ecbf5e 16385else
81ecdfbb 16386 ac_cv_search_opendir=no
252b5132 16387fi
81ecdfbb 16388rm conftest.$ac_ext
42ecbf5e
DJ
16389LIBS=$ac_func_search_save_LIBS
16390fi
81ecdfbb
RW
16391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16392$as_echo "$ac_cv_search_opendir" >&6; }
16393ac_res=$ac_cv_search_opendir
16394if test "$ac_res" != no; then :
16395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 16396
d15b04bd 16397fi
252b5132
RH
16398
16399else
81ecdfbb
RW
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16401$as_echo_n "checking for library containing opendir... " >&6; }
16402if test "${ac_cv_search_opendir+set}" = set; then :
16403 $as_echo_n "(cached) " >&6
252b5132 16404else
42ecbf5e 16405 ac_func_search_save_LIBS=$LIBS
81ecdfbb 16406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
16407/* end confdefs.h. */
16408
81ecdfbb
RW
16409/* Override any GCC internal prototype to avoid an error.
16410 Use char because int might match the return type of a GCC
16411 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
16412#ifdef __cplusplus
16413extern "C"
16414#endif
42ecbf5e
DJ
16415char opendir ();
16416int
16417main ()
16418{
81ecdfbb 16419return opendir ();
42ecbf5e
DJ
16420 ;
16421 return 0;
16422}
16423_ACEOF
81ecdfbb
RW
16424for ac_lib in '' x; do
16425 if test -z "$ac_lib"; then
16426 ac_res="none required"
16427 else
16428 ac_res=-l$ac_lib
42ecbf5e 16429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
16430 fi
16431 if ac_fn_c_try_link "$LINENO"; then :
16432 ac_cv_search_opendir=$ac_res
16433fi
16434rm -f core conftest.err conftest.$ac_objext \
16435 conftest$ac_exeext
16436 if test "${ac_cv_search_opendir+set}" = set; then :
16437 break
16438fi
16439done
16440if test "${ac_cv_search_opendir+set}" = set; then :
252b5132 16441
42ecbf5e 16442else
81ecdfbb 16443 ac_cv_search_opendir=no
252b5132 16444fi
81ecdfbb 16445rm conftest.$ac_ext
42ecbf5e 16446LIBS=$ac_func_search_save_LIBS
252b5132 16447fi
81ecdfbb
RW
16448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16449$as_echo "$ac_cv_search_opendir" >&6; }
16450ac_res=$ac_cv_search_opendir
16451if test "$ac_res" != no; then :
16452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 16453
d15b04bd 16454fi
252b5132
RH
16455
16456fi
16457
16458
5d3236ee
DK
16459# Check for dlopen support and enable plugins if possible.
16460enable_plugins=yes
16461ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
16462"
16463if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
16464
16465else
16466 enable_plugins=no
16467fi
16468
16469
16470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16471$as_echo_n "checking for library containing dlopen... " >&6; }
16472if test "${ac_cv_search_dlopen+set}" = set; then :
16473 $as_echo_n "(cached) " >&6
16474else
16475 ac_func_search_save_LIBS=$LIBS
16476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16477/* end confdefs.h. */
16478
16479/* Override any GCC internal prototype to avoid an error.
16480 Use char because int might match the return type of a GCC
16481 builtin and then its argument prototype would still apply. */
16482#ifdef __cplusplus
16483extern "C"
16484#endif
16485char dlopen ();
16486int
16487main ()
16488{
16489return dlopen ();
16490 ;
16491 return 0;
16492}
16493_ACEOF
16494for ac_lib in '' dl; do
16495 if test -z "$ac_lib"; then
16496 ac_res="none required"
16497 else
16498 ac_res=-l$ac_lib
16499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16500 fi
16501 if ac_fn_c_try_link "$LINENO"; then :
16502 ac_cv_search_dlopen=$ac_res
16503fi
16504rm -f core conftest.err conftest.$ac_objext \
16505 conftest$ac_exeext
16506 if test "${ac_cv_search_dlopen+set}" = set; then :
16507 break
16508fi
16509done
16510if test "${ac_cv_search_dlopen+set}" = set; then :
16511
16512else
16513 ac_cv_search_dlopen=no
16514fi
16515rm conftest.$ac_ext
16516LIBS=$ac_func_search_save_LIBS
16517fi
16518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16519$as_echo "$ac_cv_search_dlopen" >&6; }
16520ac_res=$ac_cv_search_dlopen
16521if test "$ac_res" != no; then :
16522 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16523
16524else
16525 enable_plugins=no
16526fi
16527
16528for ac_func in dlopen dlsym dlclose
16529do :
16530 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16531ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16532eval as_val=\$$as_ac_var
16533 if test "x$as_val" = x""yes; then :
16534 cat >>confdefs.h <<_ACEOF
16535#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16536_ACEOF
16537
16538else
16539 enable_plugins=no
16540fi
16541done
16542
3917d5d5
DK
16543# We also support plugins on Windows (MinGW).
16544if test x$enable_plugins = xno ; then
f31d24a0 16545 for ac_header in windows.h
3917d5d5 16546do :
f31d24a0 16547 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
3917d5d5 16548"
f31d24a0 16549if test "x$ac_cv_header_windows_h" = x""yes; then :
3917d5d5
DK
16550 cat >>confdefs.h <<_ACEOF
16551#define HAVE_WINDOWS_H 1
16552_ACEOF
16553 enable_plugins=yes
16554fi
16555
16556done
16557
16558fi
5d3236ee
DK
16559 if test x$enable_plugins = xyes; then
16560 ENABLE_PLUGINS_TRUE=
16561 ENABLE_PLUGINS_FALSE='#'
16562else
16563 ENABLE_PLUGINS_TRUE='#'
16564 ENABLE_PLUGINS_FALSE=
16565fi
16566
16567
02ecc8e9
L
16568# Check whether --enable-initfini-array was given.
16569if test "${enable_initfini_array+set}" = set; then :
16570 enableval=$enable_initfini_array;
16571else
16572
16573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
16574$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
16575if test "${gcc_cv_initfini_array+set}" = set; then :
16576 $as_echo_n "(cached) " >&6
16577else
16578 if test "x${build}" = "x${target}" ; then
16579 if test "$cross_compiling" = yes; then :
16580 gcc_cv_initfini_array=no
16581else
16582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16583/* end confdefs.h. */
16584
16585static int x = -1;
16586int main (void) { return x; }
16587int foo (void) { x = 0; }
16588int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
16589_ACEOF
16590if ac_fn_c_try_run "$LINENO"; then :
16591 gcc_cv_initfini_array=yes
16592else
16593 gcc_cv_initfini_array=no
16594fi
16595rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16596 conftest.$ac_objext conftest.beam conftest.$ac_ext
16597fi
16598
16599 else
16600 gcc_cv_initfini_array=no
16601 fi
16602fi
16603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
16604$as_echo "$gcc_cv_initfini_array" >&6; }
16605 enable_initfini_array=$gcc_cv_initfini_array
16606
16607fi
16608
16609
16610if test $enable_initfini_array = yes; then
16611
16612$as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16613
16614fi
16615
81ecdfbb
RW
16616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16617$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16618if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16619 $as_echo_n "(cached) " >&6
34875e64 16620else
81ecdfbb 16621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16622/* end confdefs.h. */
34875e64 16623#include <unistd.h>
42ecbf5e
DJ
16624int
16625main ()
16626{
34875e64 16627extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
16628 ;
16629 return 0;
16630}
16631_ACEOF
81ecdfbb 16632if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
16633 ld_cv_decl_getopt_unistd_h=yes
16634else
81ecdfbb 16635 ld_cv_decl_getopt_unistd_h=no
34875e64 16636fi
81ecdfbb 16637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
16638fi
16639
81ecdfbb
RW
16640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
16641$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
34875e64 16642if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 16643
81ecdfbb 16644$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
16645
16646fi
42ecbf5e 16647
252b5132
RH
16648
16649case "${host}" in
a8100d5b 16650*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 16651
81ecdfbb 16652$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
16653 ;;
16654esac
16655
81ecdfbb
RW
16656ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
16657if test "x$ac_cv_have_decl_strstr" = x""yes; then :
16658 ac_have_decl=1
252b5132 16659else
81ecdfbb
RW
16660 ac_have_decl=0
16661fi
502bdb00 16662
81ecdfbb
RW
16663cat >>confdefs.h <<_ACEOF
16664#define HAVE_DECL_STRSTR $ac_have_decl
42ecbf5e 16665_ACEOF
81ecdfbb
RW
16666ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
16667if test "x$ac_cv_have_decl_free" = x""yes; then :
16668 ac_have_decl=1
252b5132 16669else
81ecdfbb 16670 ac_have_decl=0
252b5132
RH
16671fi
16672
502bdb00 16673cat >>confdefs.h <<_ACEOF
81ecdfbb 16674#define HAVE_DECL_FREE $ac_have_decl
502bdb00 16675_ACEOF
81ecdfbb
RW
16676ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16677if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
16678 ac_have_decl=1
16679else
16680 ac_have_decl=0
16681fi
42ecbf5e 16682
81ecdfbb
RW
16683cat >>confdefs.h <<_ACEOF
16684#define HAVE_DECL_SBRK $ac_have_decl
16685_ACEOF
16686ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16687if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16688 ac_have_decl=1
16689else
16690 ac_have_decl=0
16691fi
502bdb00 16692
81ecdfbb
RW
16693cat >>confdefs.h <<_ACEOF
16694#define HAVE_DECL_GETENV $ac_have_decl
16695_ACEOF
16696ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16697if test "x$ac_cv_have_decl_environ" = x""yes; then :
16698 ac_have_decl=1
502bdb00 16699else
81ecdfbb
RW
16700 ac_have_decl=0
16701fi
16702
16703cat >>confdefs.h <<_ACEOF
16704#define HAVE_DECL_ENVIRON $ac_have_decl
42ecbf5e 16705_ACEOF
252b5132 16706
252b5132 16707
81ecdfbb
RW
16708# Link in zlib if we can. This is needed only for the bootstrap tests
16709# right now, since those tests use libbfd, which depends on zlib.
52546677
RM
16710
16711 # See if the user specified whether he wants zlib support or not.
16712
16713# Check whether --with-zlib was given.
16714if test "${with_zlib+set}" = set; then :
16715 withval=$with_zlib;
16716else
16717 with_zlib=auto
16718fi
16719
16720
16721 if test "$with_zlib" != "no"; then
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
81ecdfbb
RW
16723$as_echo_n "checking for library containing zlibVersion... " >&6; }
16724if test "${ac_cv_search_zlibVersion+set}" = set; then :
16725 $as_echo_n "(cached) " >&6
252b5132 16726else
81ecdfbb
RW
16727 ac_func_search_save_LIBS=$LIBS
16728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16729/* end confdefs.h. */
502bdb00 16730
81ecdfbb
RW
16731/* Override any GCC internal prototype to avoid an error.
16732 Use char because int might match the return type of a GCC
4474d12b 16733 builtin and then its argument prototype would still apply. */
4474d12b
CS
16734#ifdef __cplusplus
16735extern "C"
16736#endif
4474d12b
CS
16737char zlibVersion ();
16738int
16739main ()
16740{
81ecdfbb 16741return zlibVersion ();
4474d12b
CS
16742 ;
16743 return 0;
16744}
16745_ACEOF
81ecdfbb
RW
16746for ac_lib in '' z; do
16747 if test -z "$ac_lib"; then
16748 ac_res="none required"
4474d12b 16749 else
81ecdfbb
RW
16750 ac_res=-l$ac_lib
16751 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4474d12b 16752 fi
81ecdfbb
RW
16753 if ac_fn_c_try_link "$LINENO"; then :
16754 ac_cv_search_zlibVersion=$ac_res
4474d12b 16755fi
81ecdfbb
RW
16756rm -f core conftest.err conftest.$ac_objext \
16757 conftest$ac_exeext
16758 if test "${ac_cv_search_zlibVersion+set}" = set; then :
16759 break
4474d12b 16760fi
81ecdfbb
RW
16761done
16762if test "${ac_cv_search_zlibVersion+set}" = set; then :
4474d12b 16763
4474d12b 16764else
81ecdfbb 16765 ac_cv_search_zlibVersion=no
4474d12b 16766fi
81ecdfbb
RW
16767rm conftest.$ac_ext
16768LIBS=$ac_func_search_save_LIBS
4474d12b 16769fi
81ecdfbb
RW
16770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
16771$as_echo "$ac_cv_search_zlibVersion" >&6; }
16772ac_res=$ac_cv_search_zlibVersion
16773if test "$ac_res" != no; then :
16774 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16775 for ac_header in zlib.h
16776do :
16777 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16778if test "x$ac_cv_header_zlib_h" = x""yes; then :
4474d12b 16779 cat >>confdefs.h <<_ACEOF
81ecdfbb 16780#define HAVE_ZLIB_H 1
4474d12b
CS
16781_ACEOF
16782
16783fi
16784
16785done
16786
16787fi
16788
52546677
RM
16789 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
16790 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
16791 fi
16792 fi
16793
4474d12b 16794
597e2591
ILT
16795# When converting linker scripts into strings for use in emulation
16796# files, use astring.sed if the compiler supports ANSI string
16797# concatenation, or ostring.sed otherwise. This is to support the
16798# broken Microsoft MSVC compiler, which limits the length of string
16799# constants, while still supporting pre-ANSI compilers which do not
16800# support string concatenation.
81ecdfbb
RW
16801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
16802$as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
16803if test "${ld_cv_string_concatenation+set}" = set; then :
16804 $as_echo_n "(cached) " >&6
42ecbf5e 16805else
81ecdfbb 16806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16807/* end confdefs.h. */
81ecdfbb 16808
314e9a4e
L
16809int
16810main ()
16811{
81ecdfbb 16812char *a = "a" "a";
314e9a4e
L
16813 ;
16814 return 0;
16815}
16816_ACEOF
81ecdfbb
RW
16817if ac_fn_c_try_compile "$LINENO"; then :
16818 ld_cv_string_concatenation=yes
314e9a4e 16819else
81ecdfbb 16820 ld_cv_string_concatenation=no
314e9a4e 16821fi
81ecdfbb 16822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
314e9a4e 16823fi
81ecdfbb
RW
16824
16825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
16826$as_echo "$ld_cv_string_concatenation" >&6; }
16827if test "$ld_cv_string_concatenation" = "yes"; then
16828 STRINGIFY=astring.sed
16829else
16830 STRINGIFY=ostring.sed
314e9a4e 16831fi
81ecdfbb
RW
16832
16833
16834# target-specific stuff:
16835
16836all_targets=
16837EMUL=
16838all_emuls=
16839all_emul_extras=
16840all_libpath=
16841
16842rm -f tdirs
16843
bf9ef603
RM
16844# If the host is 64-bit, then we enable 64-bit targets by default.
16845# This is consistent with what ../bfd/configure.in does.
16846if test x${want64} = xfalse; then
16847 # The cast to long int works around a bug in the HP C Compiler
16848# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16849# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16850# This bug is HP SR number 8606223364.
16851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16852$as_echo_n "checking size of void *... " >&6; }
16853if test "${ac_cv_sizeof_void_p+set}" = set; then :
16854 $as_echo_n "(cached) " >&6
16855else
16856 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16857
16858else
16859 if test "$ac_cv_type_void_p" = yes; then
16860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16862{ as_fn_set_status 77
16863as_fn_error "cannot compute sizeof (void *)
16864See \`config.log' for more details." "$LINENO" 5; }; }
16865 else
16866 ac_cv_sizeof_void_p=0
16867 fi
16868fi
16869
16870fi
16871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16872$as_echo "$ac_cv_sizeof_void_p" >&6; }
16873
16874
16875
16876cat >>confdefs.h <<_ACEOF
16877#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16878_ACEOF
16879
16880
16881 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
16882 want64=true
16883 fi
16884fi
16885
81ecdfbb
RW
16886for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
16887do
16888 if test "$targ_alias" = "all"; then
16889 all_targets=true
16890 else
16891 # Canonicalize the secondary target names.
16892 result=`$ac_config_sub $targ_alias 2>/dev/null`
16893 if test -n "$result"; then
16894 targ=$result
16895 else
16896 targ=$targ_alias
16897 fi
16898
16899 . ${srcdir}/configure.tgt
16900
16901 if test "$targ" = "$target"; then
16902 EMUL=$targ_emul
16903 fi
16904
16905 if test x${want64} = xfalse; then
16906 . ${srcdir}/../bfd/config.bfd
16907 fi
16908
16909 if test x${want64} = xtrue; then
16910 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
16911 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
16912 fi
16913
16914 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
16915 case " $all_emuls " in
16916 *" e${i}.o "*) ;;
16917 *)
16918 all_emuls="$all_emuls e${i}.o"
16919 eval result=\$tdir_$i
16920 test -z "$result" && result=$targ_alias
16921 echo tdir_$i=$result >> tdirs
16922 ;;
16923 esac
16924 done
16925
16926 for i in $targ_emul $targ_extra_libpath; do
16927 case " $all_libpath " in
16928 *" ${i} "*) ;;
16929 *)
16930 if test -z "$all_libpath"; then
16931 all_libpath=${i}
16932 else
16933 all_libpath="$all_libpath ${i}"
16934 fi
16935 ;;
16936 esac
16937 done
16938
16939 for i in $targ_extra_ofiles; do
16940 case " $all_emul_extras " in
16941 *" ${i} "*) ;;
16942 *)
16943 all_emul_extras="$all_emul_extras ${i}"
16944 ;;
16945 esac
16946 done
5063daf7 16947
81ecdfbb
RW
16948 fi
16949done
16950
16951
16952
16953TDIRS=tdirs
16954
16955
16956if test x${all_targets} = xtrue; then
42ecbf5e
DJ
16957 if test x${want64} = xtrue; then
16958 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
16959 else
16960 EMULATION_OFILES='$(ALL_EMULATIONS)'
16961 fi
16962 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
16963else
16964 EMULATION_OFILES=$all_emuls
16965 EMUL_EXTRA_OFILES=$all_emul_extras
16966fi
16967
16968
16969
16970
16971EMULATION_LIBPATH=$all_libpath
16972
16973
16974if test x${enable_static} = xno; then
16975 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
16976else
16977 TESTBFDLIB="../bfd/.libs/libbfd.a"
16978fi
16979
16980
16981target_vendor=${target_vendor=$host_vendor}
16982case "$target_vendor" in
16983 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
16984 *) EXTRA_SHLIB_EXTENSION= ;;
16985esac
16986
16987case "$target_os" in
16988 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
16989esac
16990
16991if test x${EXTRA_SHLIB_EXTENSION} != x ; then
16992
16993cat >>confdefs.h <<_ACEOF
16994#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
16995_ACEOF
16996
16997fi
16998
108a6f8e
CD
16999
17000
17001
17002
31dd3154 17003
81ecdfbb 17004ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 17005
42ecbf5e
DJ
17006cat >confcache <<\_ACEOF
17007# This file is a shell script that caches the results of configure
17008# tests run on this system so they can be shared between configure
17009# scripts and configure runs, see configure's option --config-cache.
17010# It is not useful on other systems. If it contains results you don't
17011# want to keep, you may remove or edit it.
17012#
17013# config.status only pays attention to the cache file if you give it
17014# the --recheck option to rerun configure.
17015#
17016# `ac_cv_env_foo' variables (set or unset) will be overridden when
17017# loading this file, other *unset* `ac_cv_foo' will be assigned the
17018# following values.
17019
17020_ACEOF
17021
17022# The following way of writing the cache mishandles newlines in values,
17023# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 17024# So, we kill variables containing newlines.
42ecbf5e
DJ
17025# Ultrix sh set writes to stderr and can't be redirected directly,
17026# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
17027(
17028 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17029 eval ac_val=\$$ac_var
17030 case $ac_val in #(
17031 *${as_nl}*)
17032 case $ac_var in #(
17033 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17034$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17035 esac
17036 case $ac_var in #(
17037 _ | IFS | as_nl) ;; #(
17038 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17039 *) { eval $ac_var=; unset $ac_var;} ;;
17040 esac ;;
17041 esac
17042 done
17043
42ecbf5e 17044 (set) 2>&1 |
81ecdfbb
RW
17045 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17046 *${as_nl}ac_space=\ *)
17047 # `set' does not quote correctly, so add quotes: double-quote
17048 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
17049 sed -n \
17050 "s/'/'\\\\''/g;
17051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 17052 ;; #(
42ecbf5e
DJ
17053 *)
17054 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 17055 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 17056 ;;
81ecdfbb
RW
17057 esac |
17058 sort
17059) |
42ecbf5e 17060 sed '
81ecdfbb 17061 /^ac_cv_env_/b end
42ecbf5e 17062 t clear
81ecdfbb 17063 :clear
42ecbf5e
DJ
17064 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17065 t end
81ecdfbb
RW
17066 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17067 :end' >>confcache
17068if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17069 if test -w "$cache_file"; then
17070 test "x$cache_file" != "x/dev/null" &&
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17072$as_echo "$as_me: updating cache $cache_file" >&6;}
42ecbf5e
DJ
17073 cat confcache >$cache_file
17074 else
81ecdfbb
RW
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17076$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
17077 fi
17078fi
17079rm -f confcache
17080
17081test "x$prefix" = xNONE && prefix=$ac_default_prefix
17082# Let make expand exec_prefix.
17083test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17084
42ecbf5e
DJ
17085DEFS=-DHAVE_CONFIG_H
17086
17087ac_libobjs=
17088ac_ltlibobjs=
17089for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17090 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
17091 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17092 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17093 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17094 # will be set to the directory where LIBOBJS objects are built.
17095 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17096 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
17097done
17098LIBOBJS=$ac_libobjs
17099
17100LTLIBOBJS=$ac_ltlibobjs
17101
17102
17103if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
17104 as_fn_error "conditional \"AMDEP\" was never defined.
17105Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e
DJ
17106fi
17107if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
17108 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17109Usually this means the macro was only invoked conditionally." "$LINENO" 5
17110fi
17111 if test -n "$EXEEXT"; then
17112 am__EXEEXT_TRUE=
17113 am__EXEEXT_FALSE='#'
17114else
17115 am__EXEEXT_TRUE='#'
17116 am__EXEEXT_FALSE=
42ecbf5e 17117fi
81ecdfbb 17118
64ac50ac
RW
17119if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17120 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17121Usually this means the macro was only invoked conditionally." "$LINENO" 5
17122fi
3cb62297
L
17123if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17124 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17125Usually this means the macro was only invoked conditionally." "$LINENO" 5
17126fi
42ecbf5e 17127if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
17128 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17129Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 17130fi
d5fbea21 17131if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
17132 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17133Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 17134fi
5d3236ee
DK
17135if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17136 as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17137Usually this means the macro was only invoked conditionally." "$LINENO" 5
17138fi
42ecbf5e
DJ
17139
17140: ${CONFIG_STATUS=./config.status}
81ecdfbb 17141ac_write_fail=0
42ecbf5e
DJ
17142ac_clean_files_save=$ac_clean_files
17143ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
17144{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17145$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17146as_write_fail=0
17147cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
17148#! $SHELL
17149# Generated by $as_me.
17150# Run this file to recreate the current configuration.
17151# Compiler output produced by configure, useful for debugging
17152# configure, is in config.log if it exists.
17153
17154debug=false
17155ac_cs_recheck=false
17156ac_cs_silent=false
42ecbf5e 17157
81ecdfbb
RW
17158SHELL=\${CONFIG_SHELL-$SHELL}
17159export SHELL
17160_ASEOF
17161cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17162## -------------------- ##
17163## M4sh Initialization. ##
17164## -------------------- ##
42ecbf5e 17165
81ecdfbb
RW
17166# Be more Bourne compatible
17167DUALCASE=1; export DUALCASE # for MKS sh
17168if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
17169 emulate sh
17170 NULLCMD=:
81ecdfbb 17171 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
17172 # is contrary to our usage. Disable this feature.
17173 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
17174 setopt NO_GLOB_SUBST
17175else
17176 case `(set -o) 2>/dev/null` in #(
17177 *posix*) :
17178 set -o posix ;; #(
17179 *) :
17180 ;;
17181esac
42ecbf5e 17182fi
42ecbf5e 17183
81ecdfbb
RW
17184
17185as_nl='
17186'
17187export as_nl
17188# Printing a long string crashes Solaris 7 /usr/bin/printf.
17189as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17190as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17191as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17192# Prefer a ksh shell builtin over an external printf program on Solaris,
17193# but without wasting forks for bash or zsh.
17194if test -z "$BASH_VERSION$ZSH_VERSION" \
17195 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17196 as_echo='print -r --'
17197 as_echo_n='print -rn --'
17198elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17199 as_echo='printf %s\n'
17200 as_echo_n='printf %s'
17201else
17202 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17203 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17204 as_echo_n='/usr/ucb/echo -n'
17205 else
17206 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17207 as_echo_n_body='eval
17208 arg=$1;
17209 case $arg in #(
17210 *"$as_nl"*)
17211 expr "X$arg" : "X\\(.*\\)$as_nl";
17212 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17213 esac;
17214 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17215 '
17216 export as_echo_n_body
17217 as_echo_n='sh -c $as_echo_n_body as_echo'
17218 fi
17219 export as_echo_body
17220 as_echo='sh -c $as_echo_body as_echo'
17221fi
17222
17223# The user is always right.
17224if test "${PATH_SEPARATOR+set}" != set; then
17225 PATH_SEPARATOR=:
17226 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17227 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17228 PATH_SEPARATOR=';'
17229 }
42ecbf5e
DJ
17230fi
17231
17232
81ecdfbb
RW
17233# IFS
17234# We need space, tab and new line, in precisely that order. Quoting is
17235# there to prevent editors from complaining about space-tab.
17236# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17237# splitting by setting IFS to empty value.)
17238IFS=" "" $as_nl"
17239
17240# Find who we are. Look in the path if we contain no directory separator.
17241case $0 in #((
17242 *[\\/]* ) as_myself=$0 ;;
17243 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17244for as_dir in $PATH
17245do
17246 IFS=$as_save_IFS
17247 test -z "$as_dir" && as_dir=.
17248 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17249 done
17250IFS=$as_save_IFS
17251
17252 ;;
17253esac
17254# We did not find ourselves, most probably we were run as `sh COMMAND'
17255# in which case we are not to be found in the path.
17256if test "x$as_myself" = x; then
17257 as_myself=$0
17258fi
17259if test ! -f "$as_myself"; then
17260 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17261 exit 1
17262fi
17263
17264# Unset variables that we do not need and which cause bugs (e.g. in
17265# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17266# suppresses any "Segmentation fault" message there. '((' could
17267# trigger a bug in pdksh 5.2.14.
17268for as_var in BASH_ENV ENV MAIL MAILPATH
17269do eval test x\${$as_var+set} = xset \
17270 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17271done
42ecbf5e
DJ
17272PS1='$ '
17273PS2='> '
17274PS4='+ '
17275
17276# NLS nuisances.
81ecdfbb
RW
17277LC_ALL=C
17278export LC_ALL
17279LANGUAGE=C
17280export LANGUAGE
17281
17282# CDPATH.
17283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17284
17285
17286# as_fn_error ERROR [LINENO LOG_FD]
17287# ---------------------------------
17288# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17289# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17290# script with status $?, using 1 if that was 0.
17291as_fn_error ()
17292{
17293 as_status=$?; test $as_status -eq 0 && as_status=1
17294 if test "$3"; then
17295 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17296 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
42ecbf5e 17297 fi
81ecdfbb
RW
17298 $as_echo "$as_me: error: $1" >&2
17299 as_fn_exit $as_status
17300} # as_fn_error
17301
17302
17303# as_fn_set_status STATUS
17304# -----------------------
17305# Set $? to STATUS, without forking.
17306as_fn_set_status ()
17307{
17308 return $1
17309} # as_fn_set_status
17310
17311# as_fn_exit STATUS
17312# -----------------
17313# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17314as_fn_exit ()
17315{
17316 set +e
17317 as_fn_set_status $1
17318 exit $1
17319} # as_fn_exit
17320
17321# as_fn_unset VAR
17322# ---------------
17323# Portably unset VAR.
17324as_fn_unset ()
17325{
17326 { eval $1=; unset $1;}
17327}
17328as_unset=as_fn_unset
17329# as_fn_append VAR VALUE
17330# ----------------------
17331# Append the text in VALUE to the end of the definition contained in VAR. Take
17332# advantage of any shell optimizations that allow amortized linear growth over
17333# repeated appends, instead of the typical quadratic growth present in naive
17334# implementations.
17335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17336 eval 'as_fn_append ()
17337 {
17338 eval $1+=\$2
17339 }'
17340else
17341 as_fn_append ()
17342 {
17343 eval $1=\$$1\$2
17344 }
17345fi # as_fn_append
17346
17347# as_fn_arith ARG...
17348# ------------------
17349# Perform arithmetic evaluation on the ARGs, and store the result in the
17350# global $as_val. Take advantage of shells that can avoid forks. The arguments
17351# must be portable across $(()) and expr.
17352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17353 eval 'as_fn_arith ()
17354 {
17355 as_val=$(( $* ))
17356 }'
17357else
17358 as_fn_arith ()
17359 {
17360 as_val=`expr "$@" || test $? -eq 1`
17361 }
17362fi # as_fn_arith
17363
42ecbf5e 17364
81ecdfbb
RW
17365if expr a : '\(a\)' >/dev/null 2>&1 &&
17366 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
17367 as_expr=expr
17368else
17369 as_expr=false
17370fi
17371
81ecdfbb 17372if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
17373 as_basename=basename
17374else
17375 as_basename=false
17376fi
17377
81ecdfbb
RW
17378if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17379 as_dirname=dirname
17380else
17381 as_dirname=false
17382fi
42ecbf5e 17383
81ecdfbb 17384as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
17385$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17386 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
17387 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17388$as_echo X/"$0" |
17389 sed '/^.*\/\([^/][^/]*\)\/*$/{
17390 s//\1/
17391 q
17392 }
17393 /^X\/\(\/\/\)$/{
17394 s//\1/
17395 q
17396 }
17397 /^X\/\(\/\).*/{
17398 s//\1/
17399 q
17400 }
17401 s/.*/./; q'`
42ecbf5e 17402
42ecbf5e
DJ
17403# Avoid depending upon Character Ranges.
17404as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17405as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17406as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17407as_cr_digits='0123456789'
17408as_cr_alnum=$as_cr_Letters$as_cr_digits
17409
81ecdfbb
RW
17410ECHO_C= ECHO_N= ECHO_T=
17411case `echo -n x` in #(((((
17412-n*)
17413 case `echo 'xy\c'` in
17414 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17415 xy) ECHO_C='\c';;
17416 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17417 ECHO_T=' ';;
17418 esac;;
17419*)
17420 ECHO_N='-n';;
42ecbf5e 17421esac
252b5132 17422
81ecdfbb
RW
17423rm -f conf$$ conf$$.exe conf$$.file
17424if test -d conf$$.dir; then
17425 rm -f conf$$.dir/conf$$.file
42ecbf5e 17426else
81ecdfbb
RW
17427 rm -f conf$$.dir
17428 mkdir conf$$.dir 2>/dev/null
42ecbf5e 17429fi
81ecdfbb
RW
17430if (echo >conf$$.file) 2>/dev/null; then
17431 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 17432 as_ln_s='ln -s'
81ecdfbb
RW
17433 # ... but there are two gotchas:
17434 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17435 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17436 # In both cases, we have to default to `cp -p'.
17437 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17438 as_ln_s='cp -p'
17439 elif ln conf$$.file conf$$ 2>/dev/null; then
17440 as_ln_s=ln
17441 else
17442 as_ln_s='cp -p'
252b5132 17443 fi
e5a52504 17444else
42ecbf5e 17445 as_ln_s='cp -p'
e5a52504 17446fi
81ecdfbb
RW
17447rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17448rmdir conf$$.dir 2>/dev/null
17449
17450
17451# as_fn_mkdir_p
17452# -------------
17453# Create "$as_dir" as a directory, including parents if necessary.
17454as_fn_mkdir_p ()
17455{
17456
17457 case $as_dir in #(
17458 -*) as_dir=./$as_dir;;
17459 esac
17460 test -d "$as_dir" || eval $as_mkdir_p || {
17461 as_dirs=
17462 while :; do
17463 case $as_dir in #(
17464 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17465 *) as_qdir=$as_dir;;
17466 esac
17467 as_dirs="'$as_qdir' $as_dirs"
17468 as_dir=`$as_dirname -- "$as_dir" ||
17469$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17470 X"$as_dir" : 'X\(//\)[^/]' \| \
17471 X"$as_dir" : 'X\(//\)$' \| \
17472 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17473$as_echo X"$as_dir" |
17474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17475 s//\1/
17476 q
17477 }
17478 /^X\(\/\/\)[^/].*/{
17479 s//\1/
17480 q
17481 }
17482 /^X\(\/\/\)$/{
17483 s//\1/
17484 q
17485 }
17486 /^X\(\/\).*/{
17487 s//\1/
17488 q
17489 }
17490 s/.*/./; q'`
17491 test -d "$as_dir" && break
17492 done
17493 test -z "$as_dirs" || eval "mkdir $as_dirs"
17494 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17495
252b5132 17496
81ecdfbb 17497} # as_fn_mkdir_p
42ecbf5e 17498if mkdir -p . 2>/dev/null; then
81ecdfbb 17499 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
17500else
17501 test -d ./-p && rmdir ./-p
17502 as_mkdir_p=false
17503fi
252b5132 17504
81ecdfbb
RW
17505if test -x / >/dev/null 2>&1; then
17506 as_test_x='test -x'
17507else
17508 if ls -dL / >/dev/null 2>&1; then
17509 as_ls_L_option=L
17510 else
17511 as_ls_L_option=
17512 fi
17513 as_test_x='
17514 eval sh -c '\''
17515 if test -d "$1"; then
17516 test -d "$1/.";
17517 else
17518 case $1 in #(
17519 -*)set "./$1";;
17520 esac;
17521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17522 ???[sx]*):;;*)false;;esac;fi
17523 '\'' sh
17524 '
17525fi
17526as_executable_p=$as_test_x
252b5132 17527
42ecbf5e
DJ
17528# Sed expression to map a string onto a valid CPP name.
17529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 17530
42ecbf5e
DJ
17531# Sed expression to map a string onto a valid variable name.
17532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 17533
e5a52504 17534
42ecbf5e 17535exec 6>&1
81ecdfbb
RW
17536## ----------------------------------- ##
17537## Main body of $CONFIG_STATUS script. ##
17538## ----------------------------------- ##
17539_ASEOF
17540test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
e5a52504 17541
81ecdfbb
RW
17542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17543# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 17544# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
17545# values after options handling.
17546ac_log="
42ecbf5e 17547This file was extended by $as_me, which was
81ecdfbb 17548generated by GNU Autoconf 2.64. Invocation command line was
42ecbf5e
DJ
17549
17550 CONFIG_FILES = $CONFIG_FILES
17551 CONFIG_HEADERS = $CONFIG_HEADERS
17552 CONFIG_LINKS = $CONFIG_LINKS
17553 CONFIG_COMMANDS = $CONFIG_COMMANDS
17554 $ $0 $@
e5a52504 17555
81ecdfbb
RW
17556on `(hostname || uname -n) 2>/dev/null | sed 1q`
17557"
17558
42ecbf5e
DJ
17559_ACEOF
17560
81ecdfbb
RW
17561case $ac_config_files in *"
17562"*) set x $ac_config_files; shift; ac_config_files=$*;;
17563esac
e5a52504 17564
81ecdfbb
RW
17565case $ac_config_headers in *"
17566"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17567esac
42ecbf5e 17568
42ecbf5e 17569
81ecdfbb
RW
17570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17571# Files that config.status was made for.
17572config_files="$ac_config_files"
17573config_headers="$ac_config_headers"
17574config_commands="$ac_config_commands"
42ecbf5e 17575
81ecdfbb 17576_ACEOF
42ecbf5e 17577
81ecdfbb 17578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 17579ac_cs_usage="\
81ecdfbb
RW
17580\`$as_me' instantiates files and other configuration actions
17581from templates according to the current configuration. Unless the files
17582and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 17583
81ecdfbb 17584Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
17585
17586 -h, --help print this help, then exit
81ecdfbb
RW
17587 -V, --version print version number and configuration settings, then exit
17588 -q, --quiet, --silent
17589 do not print progress messages
42ecbf5e
DJ
17590 -d, --debug don't remove temporary files
17591 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
17592 --file=FILE[:TEMPLATE]
17593 instantiate the configuration file FILE
17594 --header=FILE[:TEMPLATE]
17595 instantiate the configuration header FILE
42ecbf5e
DJ
17596
17597Configuration files:
17598$config_files
17599
17600Configuration headers:
17601$config_headers
17602
17603Configuration commands:
17604$config_commands
17605
81ecdfbb 17606Report bugs to the package provider."
42ecbf5e 17607
81ecdfbb
RW
17608_ACEOF
17609cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e
DJ
17610ac_cs_version="\\
17611config.status
81ecdfbb
RW
17612configured by $0, generated by GNU Autoconf 2.64,
17613 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42ecbf5e 17614
81ecdfbb 17615Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
17616This config.status script is free software; the Free Software Foundation
17617gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
17618
17619ac_pwd='$ac_pwd'
17620srcdir='$srcdir'
17621INSTALL='$INSTALL'
17622MKDIR_P='$MKDIR_P'
17623AWK='$AWK'
17624test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
17625_ACEOF
17626
81ecdfbb
RW
17627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17628# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
17629ac_need_defaults=:
17630while test $# != 0
17631do
17632 case $1 in
17633 --*=*)
81ecdfbb
RW
17634 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17635 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e 17636 ac_shift=:
252b5132 17637 ;;
81ecdfbb 17638 *)
42ecbf5e
DJ
17639 ac_option=$1
17640 ac_optarg=$2
17641 ac_shift=shift
252b5132 17642 ;;
42ecbf5e 17643 esac
252b5132 17644
42ecbf5e
DJ
17645 case $ac_option in
17646 # Handling of the options.
42ecbf5e
DJ
17647 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17648 ac_cs_recheck=: ;;
81ecdfbb
RW
17649 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17650 $as_echo "$ac_cs_version"; exit ;;
17651 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
17652 debug=: ;;
17653 --file | --fil | --fi | --f )
17654 $ac_shift
81ecdfbb
RW
17655 case $ac_optarg in
17656 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17657 esac
17658 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
17659 ac_need_defaults=false;;
17660 --header | --heade | --head | --hea )
17661 $ac_shift
81ecdfbb
RW
17662 case $ac_optarg in
17663 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17664 esac
17665 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 17666 ac_need_defaults=false;;
81ecdfbb
RW
17667 --he | --h)
17668 # Conflict between --help and --header
17669 as_fn_error "ambiguous option: \`$1'
17670Try \`$0 --help' for more information.";;
17671 --help | --hel | -h )
17672 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
17673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17674 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17675 ac_cs_silent=: ;;
252b5132 17676
42ecbf5e 17677 # This is an error.
81ecdfbb
RW
17678 -*) as_fn_error "unrecognized option: \`$1'
17679Try \`$0 --help' for more information." ;;
252b5132 17680
81ecdfbb
RW
17681 *) as_fn_append ac_config_targets " $1"
17682 ac_need_defaults=false ;;
252b5132 17683
42ecbf5e
DJ
17684 esac
17685 shift
17686done
d15b04bd 17687
42ecbf5e 17688ac_configure_extra_args=
e5a52504 17689
42ecbf5e
DJ
17690if $ac_cs_silent; then
17691 exec 6>/dev/null
17692 ac_configure_extra_args="$ac_configure_extra_args --silent"
17693fi
e5a52504 17694
42ecbf5e 17695_ACEOF
81ecdfbb 17696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 17697if \$ac_cs_recheck; then
81ecdfbb
RW
17698 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17699 shift
17700 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17701 CONFIG_SHELL='$SHELL'
17702 export CONFIG_SHELL
17703 exec "\$@"
42ecbf5e
DJ
17704fi
17705
17706_ACEOF
81ecdfbb
RW
17707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17708exec 5>>config.log
17709{
17710 echo
17711 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17712## Running $as_me. ##
17713_ASBOX
17714 $as_echo "$ac_log"
17715} >&5
42ecbf5e 17716
81ecdfbb
RW
17717_ACEOF
17718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 17719#
81ecdfbb 17720# INIT-COMMANDS
252b5132 17721#
42ecbf5e 17722AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
17723
17724
17725# The HP-UX ksh and POSIX shell print the target directory to stdout
17726# if CDPATH is set.
17727(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17728
17729sed_quote_subst='$sed_quote_subst'
17730double_quote_subst='$double_quote_subst'
17731delay_variable_subst='$delay_variable_subst'
3725885a
RW
17732macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17733macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17734enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17735enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17736pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17737enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17738SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17739ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17740host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17741host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17742host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17743build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17744build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17745build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17746SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17747Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17748GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17749EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17750FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17751LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17752NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17753LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17754max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17755ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17756exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17757lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17758lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17759lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17760reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17761reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17762OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17763deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17764file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17765AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17766AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17767STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17768RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17769old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17770old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17771old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17772lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17773CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17774CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17775compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17776GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17777lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17778lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17779lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17780lt_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"`'
17781objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17782MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17783lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17784lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17785lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17786lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17787lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17788need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17789DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17790NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17791LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17792OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17793OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17794libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17795shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17796extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17797archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17798enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17799export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17800whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17801compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17802old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17803old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17804archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17805archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17806module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17807module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17808with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17809allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17810no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17811hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17812hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17813hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17814hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17815hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17816hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17817hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17818hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17819inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17820link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17821fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17822always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17823export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17824exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17825include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17826prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17827file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17828variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17829need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17830need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17831version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17832runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17833shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17834shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17835libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17836library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17837soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17838install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17839postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17840postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17841finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17842finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17843hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17844sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17845sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17846hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17847enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17848enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17849enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17850old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17851striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
3cb62297
L
17852compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17853predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17854postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17855predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17856postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17857compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17858LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17859reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17860reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17861old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17862compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17863GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17864lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17865lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17866lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17867lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17868lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17869archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17870enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17871export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17872whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17873compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17874old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17875old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17876archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17877archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17878module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17879module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17880with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17881allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17882no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17883hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17884hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17885hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17886hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17887hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17888hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17889hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17890hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17891inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17892link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17893fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17894always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17895export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17896exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17897include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17898prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17899file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17900hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17901compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17902predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17903postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17904predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17905postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17906compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
17907
17908LTCC='$LTCC'
17909LTCFLAGS='$LTCFLAGS'
17910compiler='$compiler_DEFAULT'
17911
3725885a
RW
17912# A function that is used when there is no print builtin or printf.
17913func_fallback_echo ()
17914{
17915 eval 'cat <<_LTECHO_EOF
17916\$1
17917_LTECHO_EOF'
17918}
17919
d7040cdb 17920# Quote evaled strings.
3725885a
RW
17921for var in SHELL \
17922ECHO \
17923SED \
d7040cdb
SE
17924GREP \
17925EGREP \
17926FGREP \
17927LD \
17928NM \
17929LN_S \
17930lt_SP2NL \
17931lt_NL2SP \
17932reload_flag \
b214d478 17933OBJDUMP \
d7040cdb
SE
17934deplibs_check_method \
17935file_magic_cmd \
17936AR \
17937AR_FLAGS \
17938STRIP \
17939RANLIB \
17940CC \
17941CFLAGS \
17942compiler \
17943lt_cv_sys_global_symbol_pipe \
17944lt_cv_sys_global_symbol_to_cdecl \
17945lt_cv_sys_global_symbol_to_c_name_address \
b214d478 17946lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
17947lt_prog_compiler_no_builtin_flag \
17948lt_prog_compiler_wl \
17949lt_prog_compiler_pic \
17950lt_prog_compiler_static \
17951lt_cv_prog_compiler_c_o \
17952need_locks \
b214d478
SE
17953DSYMUTIL \
17954NMEDIT \
17955LIPO \
17956OTOOL \
17957OTOOL64 \
d7040cdb
SE
17958shrext_cmds \
17959export_dynamic_flag_spec \
17960whole_archive_flag_spec \
17961compiler_needs_object \
17962with_gnu_ld \
17963allow_undefined_flag \
17964no_undefined_flag \
17965hardcode_libdir_flag_spec \
17966hardcode_libdir_flag_spec_ld \
17967hardcode_libdir_separator \
17968fix_srcfile_path \
17969exclude_expsyms \
17970include_expsyms \
17971file_list_spec \
17972variables_saved_for_relink \
17973libname_spec \
17974library_names_spec \
17975soname_spec \
3725885a 17976install_override_mode \
d7040cdb
SE
17977finish_eval \
17978old_striplib \
3cb62297
L
17979striplib \
17980compiler_lib_search_dirs \
17981predep_objects \
17982postdep_objects \
17983predeps \
17984postdeps \
17985compiler_lib_search_path \
17986LD_CXX \
17987reload_flag_CXX \
17988compiler_CXX \
17989lt_prog_compiler_no_builtin_flag_CXX \
17990lt_prog_compiler_wl_CXX \
17991lt_prog_compiler_pic_CXX \
17992lt_prog_compiler_static_CXX \
17993lt_cv_prog_compiler_c_o_CXX \
17994export_dynamic_flag_spec_CXX \
17995whole_archive_flag_spec_CXX \
17996compiler_needs_object_CXX \
17997with_gnu_ld_CXX \
17998allow_undefined_flag_CXX \
17999no_undefined_flag_CXX \
18000hardcode_libdir_flag_spec_CXX \
18001hardcode_libdir_flag_spec_ld_CXX \
18002hardcode_libdir_separator_CXX \
18003fix_srcfile_path_CXX \
18004exclude_expsyms_CXX \
18005include_expsyms_CXX \
18006file_list_spec_CXX \
18007compiler_lib_search_dirs_CXX \
18008predep_objects_CXX \
18009postdep_objects_CXX \
18010predeps_CXX \
18011postdeps_CXX \
18012compiler_lib_search_path_CXX; do
3725885a 18013 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18014 *[\\\\\\\`\\"\\\$]*)
3725885a 18015 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
18016 ;;
18017 *)
18018 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18019 ;;
18020 esac
18021done
18022
18023# Double-quote double-evaled strings.
18024for var in reload_cmds \
18025old_postinstall_cmds \
18026old_postuninstall_cmds \
18027old_archive_cmds \
18028extract_expsyms_cmds \
18029old_archive_from_new_cmds \
18030old_archive_from_expsyms_cmds \
18031archive_cmds \
18032archive_expsym_cmds \
18033module_cmds \
18034module_expsym_cmds \
18035export_symbols_cmds \
18036prelink_cmds \
18037postinstall_cmds \
18038postuninstall_cmds \
18039finish_cmds \
18040sys_lib_search_path_spec \
3cb62297
L
18041sys_lib_dlsearch_path_spec \
18042reload_cmds_CXX \
18043old_archive_cmds_CXX \
18044old_archive_from_new_cmds_CXX \
18045old_archive_from_expsyms_cmds_CXX \
18046archive_cmds_CXX \
18047archive_expsym_cmds_CXX \
18048module_cmds_CXX \
18049module_expsym_cmds_CXX \
18050export_symbols_cmds_CXX \
18051prelink_cmds_CXX; do
3725885a 18052 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18053 *[\\\\\\\`\\"\\\$]*)
3725885a 18054 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
18055 ;;
18056 *)
18057 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18058 ;;
18059 esac
18060done
18061
d7040cdb
SE
18062ac_aux_dir='$ac_aux_dir'
18063xsi_shell='$xsi_shell'
18064lt_shell_append='$lt_shell_append'
18065
18066# See if we are running on zsh, and set the options which allow our
18067# commands through without removal of \ escapes INIT.
18068if test -n "\${ZSH_VERSION+set}" ; then
18069 setopt NO_GLOB_SUBST
18070fi
18071
18072
18073 PACKAGE='$PACKAGE'
18074 VERSION='$VERSION'
18075 TIMESTAMP='$TIMESTAMP'
18076 RM='$RM'
18077 ofile='$ofile'
18078
18079
18080
3cb62297
L
18081
18082
20e95c23
DJ
18083# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18084 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18085 # from automake.
18086 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18087 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18088 LINGUAS="${LINGUAS-%UNSET%}"
18089
42ecbf5e
DJ
18090
18091_ACEOF
18092
81ecdfbb 18093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 18094
81ecdfbb 18095# Handling of arguments.
42ecbf5e 18096for ac_config_target in $ac_config_targets
252b5132 18097do
81ecdfbb
RW
18098 case $ac_config_target in
18099 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18100 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18101 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18102 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18103 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18104 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18105
18106 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
18107 esac
18108done
18109
81ecdfbb 18110
42ecbf5e
DJ
18111# If the user did not use the arguments to specify the items to instantiate,
18112# then the envvar interface is used. Set only those that are not.
18113# We use the long form for the default assignment because of an extremely
18114# bizarre bug on SunOS 4.1.3.
18115if $ac_need_defaults; then
18116 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18117 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18118 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18119fi
18120
18121# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 18122# simply because there is no reason against having it here, and in addition,
42ecbf5e 18123# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
18124# Hook for its removal unless debugging.
18125# Note that there is a small window in which the directory will not be cleaned:
18126# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
18127$debug ||
18128{
81ecdfbb
RW
18129 tmp=
18130 trap 'exit_status=$?
18131 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18132' 0
18133 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 18134}
42ecbf5e 18135# Create a (secure) tmp directory for tmp files.
e5a52504 18136
42ecbf5e 18137{
81ecdfbb 18138 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42ecbf5e
DJ
18139 test -n "$tmp" && test -d "$tmp"
18140} ||
18141{
81ecdfbb
RW
18142 tmp=./conf$$-$RANDOM
18143 (umask 077 && mkdir "$tmp")
18144} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18145
18146# Set up the scripts for CONFIG_FILES section.
18147# No need to generate them if there are no CONFIG_FILES.
18148# This happens for instance with `./config.status config.h'.
18149if test -n "$CONFIG_FILES"; then
18150
18151if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18152 ac_cs_awk_getline=:
18153 ac_cs_awk_pipe_init=
18154 ac_cs_awk_read_file='
18155 while ((getline aline < (F[key])) > 0)
18156 print(aline)
18157 close(F[key])'
18158 ac_cs_awk_pipe_fini=
18159else
18160 ac_cs_awk_getline=false
18161 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18162 ac_cs_awk_read_file='
18163 print "|#_!!_#|"
18164 print "cat " F[key] " &&"
18165 '$ac_cs_awk_pipe_init
18166 # The final `:' finishes the AND list.
18167 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18168fi
18169ac_cr=`echo X | tr X '\015'`
18170# On cygwin, bash can eat \r inside `` if the user requested igncr.
18171# But we know of no other shell where ac_cr would be empty at this
18172# point, so we can use a bashism as a fallback.
18173if test "x$ac_cr" = x; then
18174 eval ac_cr=\$\'\\r\'
18175fi
18176ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18177if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18178 ac_cs_awk_cr='\r'
18179else
18180 ac_cs_awk_cr=$ac_cr
18181fi
18182
18183echo 'BEGIN {' >"$tmp/subs1.awk" &&
18184_ACEOF
18185
18186# Create commands to substitute file output variables.
42ecbf5e 18187{
81ecdfbb
RW
18188 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18189 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18190 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18191 echo "_ACAWK" &&
18192 echo "_ACEOF"
18193} >conf$$files.sh &&
18194. ./conf$$files.sh ||
18195 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18196rm -f conf$$files.sh
e5a52504 18197
81ecdfbb
RW
18198{
18199 echo "cat >conf$$subs.awk <<_ACEOF" &&
18200 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18201 echo "_ACEOF"
18202} >conf$$subs.sh ||
18203 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18204ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18205ac_delim='%!_!# '
18206for ac_last_try in false false false false false :; do
18207 . ./conf$$subs.sh ||
18208 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18209
18210 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18211 if test $ac_delim_n = $ac_delim_num; then
18212 break
18213 elif $ac_last_try; then
18214 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18215 else
18216 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18217 fi
18218done
18219rm -f conf$$subs.sh
18220
18221cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18222cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18223_ACEOF
18224sed -n '
18225h
18226s/^/S["/; s/!.*/"]=/
18227p
18228g
18229s/^[^!]*!//
18230:repl
18231t repl
18232s/'"$ac_delim"'$//
18233t delim
18234:nl
18235h
18236s/\(.\{148\}\).*/\1/
18237t more1
18238s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18239p
18240n
18241b repl
18242:more1
18243s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18244p
18245g
18246s/.\{148\}//
18247t nl
18248:delim
18249h
18250s/\(.\{148\}\).*/\1/
18251t more2
18252s/["\\]/\\&/g; s/^/"/; s/$/"/
18253p
18254b
18255:more2
18256s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18257p
18258g
18259s/.\{148\}//
18260t delim
18261' <conf$$subs.awk | sed '
18262/^[^""]/{
18263 N
18264 s/\n//
18265}
18266' >>$CONFIG_STATUS || ac_write_fail=1
18267rm -f conf$$subs.awk
18268cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18269_ACAWK
18270cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18271 for (key in S) S_is_set[key] = 1
18272 FS = "\a"
18273 \$ac_cs_awk_pipe_init
18274}
18275{
18276 line = $ 0
18277 nfields = split(line, field, "@")
18278 substed = 0
18279 len = length(field[1])
18280 for (i = 2; i < nfields; i++) {
18281 key = field[i]
18282 keylen = length(key)
18283 if (S_is_set[key]) {
18284 value = S[key]
18285 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18286 len += length(value) + length(field[++i])
18287 substed = 1
18288 } else
18289 len += 1 + keylen
18290 }
18291 if (nfields == 3 && !substed) {
18292 key = field[2]
18293 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18294 \$ac_cs_awk_read_file
18295 next
18296 }
18297 }
18298 print line
18299}
18300\$ac_cs_awk_pipe_fini
18301_ACAWK
18302_ACEOF
18303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18304if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18305 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18306else
18307 cat
18308fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18309 || as_fn_error "could not setup config files machinery" "$LINENO" 5
42ecbf5e 18310_ACEOF
d15b04bd 18311
81ecdfbb
RW
18312# VPATH may cause trouble with some makes, so we remove $(srcdir),
18313# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18314# trailing colons and then remove the whole line if VPATH becomes empty
18315# (actually we leave an empty line to preserve line numbers).
18316if test "x$srcdir" = x.; then
18317 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18318s/:*\$(srcdir):*/:/
18319s/:*\${srcdir}:*/:/
18320s/:*@srcdir@:*/:/
18321s/^\([^=]*=[ ]*\):*/\1/
18322s/:*$//
18323s/^[^=]*=[ ]*$//
18324}'
18325fi
18326
18327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18328fi # test -n "$CONFIG_FILES"
42ecbf5e 18329
81ecdfbb
RW
18330# Set up the scripts for CONFIG_HEADERS section.
18331# No need to generate them if there are no CONFIG_HEADERS.
18332# This happens for instance with `./config.status Makefile'.
18333if test -n "$CONFIG_HEADERS"; then
18334cat >"$tmp/defines.awk" <<\_ACAWK ||
18335BEGIN {
18336_ACEOF
42ecbf5e 18337
81ecdfbb
RW
18338# Transform confdefs.h into an awk script `defines.awk', embedded as
18339# here-document in config.status, that substitutes the proper values into
18340# config.h.in to produce config.h.
252b5132 18341
81ecdfbb
RW
18342# Create a delimiter string that does not exist in confdefs.h, to ease
18343# handling of long lines.
18344ac_delim='%!_!# '
18345for ac_last_try in false false :; do
18346 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18347 if test -z "$ac_t"; then
18348 break
18349 elif $ac_last_try; then
18350 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18351 else
18352 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18353 fi
18354done
18355
18356# For the awk script, D is an array of macro values keyed by name,
18357# likewise P contains macro parameters if any. Preserve backslash
18358# newline sequences.
18359
18360ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18361sed -n '
18362s/.\{148\}/&'"$ac_delim"'/g
18363t rset
18364:rset
18365s/^[ ]*#[ ]*define[ ][ ]*/ /
18366t def
18367d
18368:def
18369s/\\$//
18370t bsnl
18371s/["\\]/\\&/g
18372s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18373D["\1"]=" \3"/p
18374s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18375d
18376:bsnl
18377s/["\\]/\\&/g
18378s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18379D["\1"]=" \3\\\\\\n"\\/p
18380t cont
18381s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18382t cont
18383d
18384:cont
18385n
18386s/.\{148\}/&'"$ac_delim"'/g
18387t clear
18388:clear
18389s/\\$//
18390t bsnlc
18391s/["\\]/\\&/g; s/^/"/; s/$/"/p
18392d
18393:bsnlc
18394s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18395b cont
18396' <confdefs.h | sed '
18397s/'"$ac_delim"'/"\\\
18398"/g' >>$CONFIG_STATUS || ac_write_fail=1
18399
18400cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18401 for (key in D) D_is_set[key] = 1
18402 FS = "\a"
18403}
18404/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18405 line = \$ 0
18406 split(line, arg, " ")
18407 if (arg[1] == "#") {
18408 defundef = arg[2]
18409 mac1 = arg[3]
18410 } else {
18411 defundef = substr(arg[1], 2)
18412 mac1 = arg[2]
18413 }
18414 split(mac1, mac2, "(") #)
18415 macro = mac2[1]
18416 prefix = substr(line, 1, index(line, defundef) - 1)
18417 if (D_is_set[macro]) {
18418 # Preserve the white space surrounding the "#".
18419 print prefix "define", macro P[macro] D[macro]
18420 next
18421 } else {
18422 # Replace #undef with comments. This is necessary, for example,
18423 # in the case of _POSIX_SOURCE, which is predefined and required
18424 # on some systems where configure will not decide to define it.
18425 if (defundef == "undef") {
18426 print "/*", prefix defundef, macro, "*/"
18427 next
18428 }
18429 }
18430}
18431{ print }
18432_ACAWK
42ecbf5e 18433_ACEOF
81ecdfbb
RW
18434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18435 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18436fi # test -n "$CONFIG_HEADERS"
42ecbf5e 18437
81ecdfbb
RW
18438
18439eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18440shift
18441for ac_tag
18442do
18443 case $ac_tag in
18444 :[FHLC]) ac_mode=$ac_tag; continue;;
18445 esac
18446 case $ac_mode$ac_tag in
18447 :[FHL]*:*);;
18448 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18449 :[FH]-) ac_tag=-:-;;
18450 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18451 esac
18452 ac_save_IFS=$IFS
18453 IFS=:
18454 set x $ac_tag
18455 IFS=$ac_save_IFS
18456 shift
18457 ac_file=$1
18458 shift
18459
18460 case $ac_mode in
18461 :L) ac_source=$1;;
18462 :[FH])
18463 ac_file_inputs=
18464 for ac_f
18465 do
18466 case $ac_f in
18467 -) ac_f="$tmp/stdin";;
18468 *) # Look for the file first in the build tree, then in the source tree
18469 # (if the path is not absolute). The absolute path cannot be DOS-style,
18470 # because $ac_f cannot contain `:'.
18471 test -f "$ac_f" ||
18472 case $ac_f in
18473 [\\/$]*) false;;
18474 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18475 esac ||
18476 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18477 esac
18478 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18479 as_fn_append ac_file_inputs " '$ac_f'"
18480 done
18481
18482 # Let's still pretend it is `configure' which instantiates (i.e., don't
18483 # use $as_me), people would be surprised to read:
18484 # /* config.h. Generated by config.status. */
18485 configure_input='Generated from '`
18486 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18487 `' by configure.'
18488 if test x"$ac_file" != x-; then
18489 configure_input="$ac_file. $configure_input"
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18491$as_echo "$as_me: creating $ac_file" >&6;}
252b5132 18492 fi
81ecdfbb
RW
18493 # Neutralize special characters interpreted by sed in replacement strings.
18494 case $configure_input in #(
18495 *\&* | *\|* | *\\* )
18496 ac_sed_conf_input=`$as_echo "$configure_input" |
18497 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18498 *) ac_sed_conf_input=$configure_input;;
18499 esac
252b5132 18500
81ecdfbb
RW
18501 case $ac_tag in
18502 *:-:* | *:-) cat >"$tmp/stdin" \
18503 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18504 esac
18505 ;;
252b5132
RH
18506 esac
18507
81ecdfbb 18508 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
18509$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18510 X"$ac_file" : 'X\(//\)[^/]' \| \
18511 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
18512 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18513$as_echo X"$ac_file" |
18514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18515 s//\1/
18516 q
18517 }
18518 /^X\(\/\/\)[^/].*/{
18519 s//\1/
18520 q
18521 }
18522 /^X\(\/\/\)$/{
18523 s//\1/
18524 q
18525 }
18526 /^X\(\/\).*/{
18527 s//\1/
18528 q
18529 }
18530 s/.*/./; q'`
18531 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e
DJ
18532 ac_builddir=.
18533
81ecdfbb
RW
18534case "$ac_dir" in
18535.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18536*)
18537 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18538 # A ".." for each directory in $ac_dir_suffix.
18539 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18540 case $ac_top_builddir_sub in
18541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18543 esac ;;
18544esac
18545ac_abs_top_builddir=$ac_pwd
18546ac_abs_builddir=$ac_pwd$ac_dir_suffix
18547# for backward compatibility:
18548ac_top_builddir=$ac_top_build_prefix
252b5132 18549
42ecbf5e 18550case $srcdir in
81ecdfbb 18551 .) # We are building in place.
42ecbf5e 18552 ac_srcdir=.
81ecdfbb
RW
18553 ac_top_srcdir=$ac_top_builddir_sub
18554 ac_abs_top_srcdir=$ac_pwd ;;
18555 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 18556 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
18557 ac_top_srcdir=$srcdir
18558 ac_abs_top_srcdir=$srcdir ;;
18559 *) # Relative name.
18560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18561 ac_top_srcdir=$ac_top_build_prefix$srcdir
18562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 18563esac
81ecdfbb 18564ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42ecbf5e 18565
252b5132 18566
81ecdfbb
RW
18567 case $ac_mode in
18568 :F)
18569 #
18570 # CONFIG_FILE
18571 #
e5a52504 18572
42ecbf5e
DJ
18573 case $INSTALL in
18574 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
18575 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18576 esac
18577 ac_MKDIR_P=$MKDIR_P
18578 case $MKDIR_P in
18579 [\\/$]* | ?:[\\/]* ) ;;
18580 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 18581 esac
81ecdfbb 18582_ACEOF
e5a52504 18583
81ecdfbb
RW
18584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18585# If the template does not know about datarootdir, expand it.
18586# FIXME: This hack should be removed a few years after 2.60.
18587ac_datarootdir_hack=; ac_datarootdir_seen=
18588ac_sed_dataroot='
18589/datarootdir/ {
18590 p
18591 q
18592}
18593/@datadir@/p
18594/@docdir@/p
18595/@infodir@/p
18596/@localedir@/p
18597/@mandir@/p'
18598case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18599*datarootdir*) ac_datarootdir_seen=yes;;
18600*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18602$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18603_ACEOF
18604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18605 ac_datarootdir_hack='
18606 s&@datadir@&$datadir&g
18607 s&@docdir@&$docdir&g
18608 s&@infodir@&$infodir&g
18609 s&@localedir@&$localedir&g
18610 s&@mandir@&$mandir&g
18611 s&\\\${datarootdir}&$datarootdir&g' ;;
18612esac
42ecbf5e 18613_ACEOF
81ecdfbb
RW
18614
18615# Neutralize VPATH when `$srcdir' = `.'.
18616# Shell code in configure.ac might set extrasub.
18617# FIXME: do we really want to maintain this feature?
18618cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18619ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
18620$extrasub
18621_ACEOF
81ecdfbb 18622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
18623:t
18624/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
18625s|@configure_input@|$ac_sed_conf_input|;t t
18626s&@top_builddir@&$ac_top_builddir_sub&;t t
18627s&@top_build_prefix@&$ac_top_build_prefix&;t t
18628s&@srcdir@&$ac_srcdir&;t t
18629s&@abs_srcdir@&$ac_abs_srcdir&;t t
18630s&@top_srcdir@&$ac_top_srcdir&;t t
18631s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18632s&@builddir@&$ac_builddir&;t t
18633s&@abs_builddir@&$ac_abs_builddir&;t t
18634s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18635s&@INSTALL@&$ac_INSTALL&;t t
18636s&@MKDIR_P@&$ac_MKDIR_P&;t t
18637$ac_datarootdir_hack
18638"
18639eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18640if $ac_cs_awk_getline; then
18641 $AWK -f "$tmp/subs.awk"
18642else
18643 $AWK -f "$tmp/subs.awk" | $SHELL
18644fi >$tmp/out \
18645 || as_fn_error "could not create $ac_file" "$LINENO" 5
18646
18647test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18648 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18649 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18651which seems to be undefined. Please make sure it is defined." >&5
18652$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18653which seems to be undefined. Please make sure it is defined." >&2;}
18654
18655 rm -f "$tmp/stdin"
42ecbf5e 18656 case $ac_file in
81ecdfbb
RW
18657 -) cat "$tmp/out" && rm -f "$tmp/out";;
18658 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18659 esac \
18660 || as_fn_error "could not create $ac_file" "$LINENO" 5
18661 ;;
18662 :H)
18663 #
18664 # CONFIG_HEADER
18665 #
42ecbf5e 18666 if test x"$ac_file" != x-; then
81ecdfbb
RW
18667 {
18668 $as_echo "/* $configure_input */" \
18669 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18670 } >"$tmp/config.h" \
18671 || as_fn_error "could not create $ac_file" "$LINENO" 5
18672 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18674$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 18675 else
81ecdfbb
RW
18676 rm -f "$ac_file"
18677 mv "$tmp/config.h" "$ac_file" \
18678 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 18679 fi
42ecbf5e 18680 else
81ecdfbb
RW
18681 $as_echo "/* $configure_input */" \
18682 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18683 || as_fn_error "could not create -" "$LINENO" 5
e5a52504 18684 fi
81ecdfbb
RW
18685# Compute "$ac_file"'s index in $config_headers.
18686_am_arg="$ac_file"
42ecbf5e
DJ
18687_am_stamp_count=1
18688for _am_header in $config_headers :; do
18689 case $_am_header in
81ecdfbb 18690 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
18691 break ;;
18692 * )
18693 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18694 esac
18695done
81ecdfbb
RW
18696echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18697$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18698 X"$_am_arg" : 'X\(//\)[^/]' \| \
18699 X"$_am_arg" : 'X\(//\)$' \| \
18700 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18701$as_echo X"$_am_arg" |
18702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18703 s//\1/
18704 q
18705 }
18706 /^X\(\/\/\)[^/].*/{
18707 s//\1/
18708 q
18709 }
18710 /^X\(\/\/\)$/{
18711 s//\1/
18712 q
18713 }
18714 /^X\(\/\).*/{
18715 s//\1/
18716 q
18717 }
18718 s/.*/./; q'`/stamp-h$_am_stamp_count
18719 ;;
42ecbf5e 18720
81ecdfbb
RW
18721 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18722$as_echo "$as_me: executing $ac_file commands" >&6;}
18723 ;;
18724 esac
42ecbf5e
DJ
18725
18726
81ecdfbb
RW
18727 case $ac_file$ac_mode in
18728 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18729 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18730 # are listed without --file. Let's play safe and only enable the eval
18731 # if we detect the quoting.
18732 case $CONFIG_FILES in
18733 *\'*) eval set x "$CONFIG_FILES" ;;
18734 *) set x $CONFIG_FILES ;;
18735 esac
18736 shift
18737 for mf
18738 do
18739 # Strip MF so we end up with the name of the file.
18740 mf=`echo "$mf" | sed -e 's/:.*$//'`
18741 # Check whether this is an Automake generated Makefile or not.
18742 # We used to match only the files named `Makefile.in', but
18743 # some people rename them; so instead we look at the file content.
18744 # Grep'ing the first line is not enough: some people post-process
18745 # each Makefile.in and add a new line on top of each file to say so.
18746 # Grep'ing the whole file is not good either: AIX grep has a line
18747 # limit of 2048, but all sed's we know have understand at least 4000.
18748 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18749 dirpart=`$as_dirname -- "$mf" ||
42ecbf5e
DJ
18750$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18751 X"$mf" : 'X\(//\)[^/]' \| \
18752 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
18753 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18754$as_echo X"$mf" |
18755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18756 s//\1/
18757 q
18758 }
18759 /^X\(\/\/\)[^/].*/{
18760 s//\1/
18761 q
18762 }
18763 /^X\(\/\/\)$/{
18764 s//\1/
18765 q
18766 }
18767 /^X\(\/\).*/{
18768 s//\1/
18769 q
18770 }
18771 s/.*/./; q'`
18772 else
18773 continue
18774 fi
18775 # Extract the definition of DEPDIR, am__include, and am__quote
18776 # from the Makefile without running `make'.
18777 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18778 test -z "$DEPDIR" && continue
18779 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18780 test -z "am__include" && continue
18781 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18782 # When using ansi2knr, U may be empty or an underscore; expand it
18783 U=`sed -n 's/^U = //p' < "$mf"`
18784 # Find all dependency output files, they are included files with
18785 # $(DEPDIR) in their names. We invoke sed twice because it is the
18786 # simplest approach to changing $(DEPDIR) to its actual value in the
18787 # expansion.
18788 for file in `sed -n "
18789 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18790 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18791 # Make sure the directory exists.
18792 test -f "$dirpart/$file" && continue
18793 fdir=`$as_dirname -- "$file" ||
42ecbf5e
DJ
18794$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18795 X"$file" : 'X\(//\)[^/]' \| \
18796 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
18797 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18798$as_echo X"$file" |
18799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18800 s//\1/
18801 q
18802 }
18803 /^X\(\/\/\)[^/].*/{
18804 s//\1/
18805 q
18806 }
18807 /^X\(\/\/\)$/{
18808 s//\1/
18809 q
18810 }
18811 /^X\(\/\).*/{
18812 s//\1/
18813 q
18814 }
18815 s/.*/./; q'`
18816 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18817 # echo "creating $dirpart/$file"
18818 echo '# dummy' > "$dirpart/$file"
42ecbf5e 18819 done
42ecbf5e 18820 done
81ecdfbb 18821}
d7040cdb 18822 ;;
81ecdfbb 18823 "libtool":C)
d7040cdb
SE
18824
18825 # See if we are running on zsh, and set the options which allow our
18826 # commands through without removal of \ escapes.
18827 if test -n "${ZSH_VERSION+set}" ; then
18828 setopt NO_GLOB_SUBST
18829 fi
18830
18831 cfgfile="${ofile}T"
18832 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18833 $RM "$cfgfile"
18834
18835 cat <<_LT_EOF >> "$cfgfile"
18836#! $SHELL
18837
18838# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 18839# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
18840# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18841# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18842#
b214d478 18843# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 18844# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b214d478 18845# Written by Gordon Matzigkeit, 1996
d7040cdb 18846#
b214d478 18847# This file is part of GNU Libtool.
d7040cdb 18848#
b214d478
SE
18849# GNU Libtool is free software; you can redistribute it and/or
18850# modify it under the terms of the GNU General Public License as
18851# published by the Free Software Foundation; either version 2 of
18852# the License, or (at your option) any later version.
d7040cdb 18853#
b214d478
SE
18854# As a special exception to the GNU General Public License,
18855# if you distribute this file as part of a program or library that
18856# is built using GNU Libtool, you may include this file under the
18857# same distribution terms that you use for the rest of that program.
d7040cdb 18858#
b214d478
SE
18859# GNU Libtool is distributed in the hope that it will be useful,
18860# but WITHOUT ANY WARRANTY; without even the implied warranty of
18861# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18862# GNU General Public License for more details.
d7040cdb 18863#
b214d478
SE
18864# You should have received a copy of the GNU General Public License
18865# along with GNU Libtool; see the file COPYING. If not, a copy
18866# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18867# obtained by writing to the Free Software Foundation, Inc.,
18868# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
18869
18870
18871# The names of the tagged configurations supported by this script.
3cb62297 18872available_tags="CXX "
d7040cdb
SE
18873
18874# ### BEGIN LIBTOOL CONFIG
18875
18876# Which release of libtool.m4 was used?
18877macro_version=$macro_version
18878macro_revision=$macro_revision
18879
18880# Whether or not to build shared libraries.
18881build_libtool_libs=$enable_shared
18882
18883# Whether or not to build static libraries.
18884build_old_libs=$enable_static
18885
18886# What type of objects to build.
18887pic_mode=$pic_mode
18888
18889# Whether or not to optimize for fast installation.
18890fast_install=$enable_fast_install
18891
3725885a
RW
18892# Shell to use when invoking shell scripts.
18893SHELL=$lt_SHELL
18894
18895# An echo program that protects backslashes.
18896ECHO=$lt_ECHO
18897
d7040cdb
SE
18898# The host system.
18899host_alias=$host_alias
18900host=$host
18901host_os=$host_os
18902
18903# The build system.
18904build_alias=$build_alias
18905build=$build
18906build_os=$build_os
18907
18908# A sed program that does not truncate output.
18909SED=$lt_SED
18910
18911# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18912Xsed="\$SED -e 1s/^X//"
18913
18914# A grep program that handles long lines.
18915GREP=$lt_GREP
18916
18917# An ERE matcher.
18918EGREP=$lt_EGREP
18919
18920# A literal string matcher.
18921FGREP=$lt_FGREP
18922
18923# A BSD- or MS-compatible name lister.
18924NM=$lt_NM
18925
18926# Whether we need soft or hard links.
18927LN_S=$lt_LN_S
18928
18929# What is the maximum length of a command?
18930max_cmd_len=$max_cmd_len
18931
18932# Object file suffix (normally "o").
18933objext=$ac_objext
18934
18935# Executable file suffix (normally "").
18936exeext=$exeext
18937
18938# whether the shell understands "unset".
18939lt_unset=$lt_unset
18940
18941# turn spaces into newlines.
18942SP2NL=$lt_lt_SP2NL
18943
18944# turn newlines into spaces.
18945NL2SP=$lt_lt_NL2SP
18946
b214d478
SE
18947# An object symbol dumper.
18948OBJDUMP=$lt_OBJDUMP
18949
d7040cdb
SE
18950# Method to check whether dependent libraries are shared objects.
18951deplibs_check_method=$lt_deplibs_check_method
18952
18953# Command to use when deplibs_check_method == "file_magic".
18954file_magic_cmd=$lt_file_magic_cmd
18955
18956# The archiver.
18957AR=$lt_AR
18958AR_FLAGS=$lt_AR_FLAGS
18959
18960# A symbol stripping program.
18961STRIP=$lt_STRIP
18962
18963# Commands used to install an old-style archive.
18964RANLIB=$lt_RANLIB
18965old_postinstall_cmds=$lt_old_postinstall_cmds
18966old_postuninstall_cmds=$lt_old_postuninstall_cmds
18967
3725885a
RW
18968# Whether to use a lock for old archive extraction.
18969lock_old_archive_extraction=$lock_old_archive_extraction
18970
d7040cdb
SE
18971# A C compiler.
18972LTCC=$lt_CC
18973
18974# LTCC compiler flags.
18975LTCFLAGS=$lt_CFLAGS
18976
18977# Take the output of nm and produce a listing of raw symbols and C names.
18978global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18979
18980# Transform the output of nm in a proper C declaration.
18981global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18982
18983# Transform the output of nm in a C name address pair.
18984global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18985
b214d478
SE
18986# Transform the output of nm in a C name address pair when lib prefix is needed.
18987global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18988
d7040cdb
SE
18989# The name of the directory that contains temporary libtool files.
18990objdir=$objdir
18991
d7040cdb
SE
18992# Used to examine libraries when file_magic_cmd begins with "file".
18993MAGIC_CMD=$MAGIC_CMD
18994
18995# Must we lock files when doing compilation?
18996need_locks=$lt_need_locks
18997
b214d478
SE
18998# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18999DSYMUTIL=$lt_DSYMUTIL
19000
19001# Tool to change global to local symbols on Mac OS X.
19002NMEDIT=$lt_NMEDIT
19003
19004# Tool to manipulate fat objects and archives on Mac OS X.
19005LIPO=$lt_LIPO
19006
19007# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19008OTOOL=$lt_OTOOL
19009
19010# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19011OTOOL64=$lt_OTOOL64
19012
d7040cdb
SE
19013# Old archive suffix (normally "a").
19014libext=$libext
19015
19016# Shared library suffix (normally ".so").
19017shrext_cmds=$lt_shrext_cmds
19018
19019# The commands to extract the exported symbol list from a shared archive.
19020extract_expsyms_cmds=$lt_extract_expsyms_cmds
19021
19022# Variables whose values should be saved in libtool wrapper scripts and
19023# restored at link time.
19024variables_saved_for_relink=$lt_variables_saved_for_relink
19025
19026# Do we need the "lib" prefix for modules?
19027need_lib_prefix=$need_lib_prefix
19028
19029# Do we need a version for libraries?
19030need_version=$need_version
19031
19032# Library versioning type.
19033version_type=$version_type
19034
19035# Shared library runtime path variable.
19036runpath_var=$runpath_var
19037
19038# Shared library path variable.
19039shlibpath_var=$shlibpath_var
19040
19041# Is shlibpath searched before the hard-coded library search path?
19042shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19043
19044# Format of library name prefix.
19045libname_spec=$lt_libname_spec
19046
19047# List of archive names. First name is the real one, the rest are links.
19048# The last name is the one that the linker finds with -lNAME
19049library_names_spec=$lt_library_names_spec
19050
19051# The coded name of the library, if different from the real name.
19052soname_spec=$lt_soname_spec
19053
3725885a
RW
19054# Permission mode override for installation of shared libraries.
19055install_override_mode=$lt_install_override_mode
19056
d7040cdb
SE
19057# Command to use after installation of a shared archive.
19058postinstall_cmds=$lt_postinstall_cmds
19059
19060# Command to use after uninstallation of a shared archive.
19061postuninstall_cmds=$lt_postuninstall_cmds
19062
19063# Commands used to finish a libtool library installation in a directory.
19064finish_cmds=$lt_finish_cmds
19065
19066# As "finish_cmds", except a single script fragment to be evaled but
19067# not shown.
19068finish_eval=$lt_finish_eval
19069
19070# Whether we should hardcode library paths into libraries.
19071hardcode_into_libs=$hardcode_into_libs
19072
19073# Compile-time system search path for libraries.
19074sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19075
19076# Run-time system search path for libraries.
19077sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19078
19079# Whether dlopen is supported.
19080dlopen_support=$enable_dlopen
19081
19082# Whether dlopen of programs is supported.
19083dlopen_self=$enable_dlopen_self
19084
19085# Whether dlopen of statically linked programs is supported.
19086dlopen_self_static=$enable_dlopen_self_static
19087
19088# Commands to strip libraries.
19089old_striplib=$lt_old_striplib
19090striplib=$lt_striplib
19091
19092
19093# The linker used to build libraries.
19094LD=$lt_LD
19095
3725885a
RW
19096# How to create reloadable object files.
19097reload_flag=$lt_reload_flag
19098reload_cmds=$lt_reload_cmds
19099
d7040cdb
SE
19100# Commands used to build an old-style archive.
19101old_archive_cmds=$lt_old_archive_cmds
19102
19103# A language specific compiler.
19104CC=$lt_compiler
19105
19106# Is the compiler the GNU compiler?
19107with_gcc=$GCC
19108
19109# Compiler flag to turn off builtin functions.
19110no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19111
19112# How to pass a linker flag through the compiler.
19113wl=$lt_lt_prog_compiler_wl
19114
19115# Additional compiler flags for building library objects.
19116pic_flag=$lt_lt_prog_compiler_pic
19117
19118# Compiler flag to prevent dynamic linking.
19119link_static_flag=$lt_lt_prog_compiler_static
19120
19121# Does compiler simultaneously support -c and -o options?
19122compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19123
19124# Whether or not to add -lc for building shared libraries.
19125build_libtool_need_lc=$archive_cmds_need_lc
19126
19127# Whether or not to disallow shared libs when runtime libs are static.
19128allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19129
19130# Compiler flag to allow reflexive dlopens.
19131export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19132
19133# Compiler flag to generate shared objects directly from archives.
19134whole_archive_flag_spec=$lt_whole_archive_flag_spec
19135
19136# Whether the compiler copes with passing no objects directly.
19137compiler_needs_object=$lt_compiler_needs_object
19138
19139# Create an old-style archive from a shared archive.
19140old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19141
19142# Create a temporary old-style archive to link instead of a shared archive.
19143old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19144
19145# Commands used to build a shared archive.
19146archive_cmds=$lt_archive_cmds
19147archive_expsym_cmds=$lt_archive_expsym_cmds
19148
19149# Commands used to build a loadable module if different from building
19150# a shared archive.
19151module_cmds=$lt_module_cmds
19152module_expsym_cmds=$lt_module_expsym_cmds
19153
19154# Whether we are building with GNU ld or not.
19155with_gnu_ld=$lt_with_gnu_ld
19156
19157# Flag that allows shared libraries with undefined symbols to be built.
19158allow_undefined_flag=$lt_allow_undefined_flag
19159
19160# Flag that enforces no undefined symbols.
19161no_undefined_flag=$lt_no_undefined_flag
19162
19163# Flag to hardcode \$libdir into a binary during linking.
19164# This must work even if \$libdir does not exist
19165hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19166
19167# If ld is used when linking, flag to hardcode \$libdir into a binary
19168# during linking. This must work even if \$libdir does not exist.
19169hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19170
19171# Whether we need a single "-rpath" flag with a separated argument.
19172hardcode_libdir_separator=$lt_hardcode_libdir_separator
19173
19174# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19175# DIR into the resulting binary.
19176hardcode_direct=$hardcode_direct
19177
19178# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19179# DIR into the resulting binary and the resulting library dependency is
19180# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19181# library is relocated.
19182hardcode_direct_absolute=$hardcode_direct_absolute
19183
19184# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19185# into the resulting binary.
19186hardcode_minus_L=$hardcode_minus_L
19187
19188# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19189# into the resulting binary.
19190hardcode_shlibpath_var=$hardcode_shlibpath_var
19191
19192# Set to "yes" if building a shared library automatically hardcodes DIR
19193# into the library and all subsequent libraries and executables linked
19194# against it.
19195hardcode_automatic=$hardcode_automatic
19196
19197# Set to yes if linker adds runtime paths of dependent libraries
19198# to runtime path list.
19199inherit_rpath=$inherit_rpath
19200
19201# Whether libtool must link a program against all its dependency libraries.
19202link_all_deplibs=$link_all_deplibs
19203
19204# Fix the shell variable \$srcfile for the compiler.
19205fix_srcfile_path=$lt_fix_srcfile_path
19206
19207# Set to "yes" if exported symbols are required.
19208always_export_symbols=$always_export_symbols
19209
19210# The commands to list exported symbols.
19211export_symbols_cmds=$lt_export_symbols_cmds
19212
19213# Symbols that should not be listed in the preloaded symbols.
19214exclude_expsyms=$lt_exclude_expsyms
19215
19216# Symbols that must always be exported.
19217include_expsyms=$lt_include_expsyms
19218
19219# Commands necessary for linking programs (against libraries) with templates.
19220prelink_cmds=$lt_prelink_cmds
19221
19222# Specify filename containing input files.
19223file_list_spec=$lt_file_list_spec
19224
19225# How to hardcode a shared library path into an executable.
19226hardcode_action=$hardcode_action
19227
3cb62297
L
19228# The directories searched by this compiler when creating a shared library.
19229compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19230
19231# Dependencies to place before and after the objects being linked to
19232# create a shared library.
19233predep_objects=$lt_predep_objects
19234postdep_objects=$lt_postdep_objects
19235predeps=$lt_predeps
19236postdeps=$lt_postdeps
19237
19238# The library search path used internally by the compiler when linking
19239# a shared library.
19240compiler_lib_search_path=$lt_compiler_lib_search_path
19241
d7040cdb
SE
19242# ### END LIBTOOL CONFIG
19243
19244_LT_EOF
19245
19246 case $host_os in
19247 aix3*)
19248 cat <<\_LT_EOF >> "$cfgfile"
19249# AIX sometimes has problems with the GCC collect2 program. For some
19250# reason, if we set the COLLECT_NAMES environment variable, the problems
19251# vanish in a puff of smoke.
19252if test "X${COLLECT_NAMES+set}" != Xset; then
19253 COLLECT_NAMES=
19254 export COLLECT_NAMES
19255fi
19256_LT_EOF
19257 ;;
19258 esac
19259
19260
19261ltmain="$ac_aux_dir/ltmain.sh"
19262
19263
19264 # We use sed instead of cat because bash on DJGPP gets confused if
19265 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19266 # text mode, it properly converts lines to CR/LF. This bash problem
19267 # is reportedly fixed, but why not run on old versions too?
19268 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19269 || (rm -f "$cfgfile"; exit 1)
19270
19271 case $xsi_shell in
19272 yes)
19273 cat << \_LT_EOF >> "$cfgfile"
b214d478 19274
d7040cdb
SE
19275# func_dirname file append nondir_replacement
19276# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19277# otherwise set result to NONDIR_REPLACEMENT.
19278func_dirname ()
19279{
19280 case ${1} in
19281 */*) func_dirname_result="${1%/*}${2}" ;;
19282 * ) func_dirname_result="${3}" ;;
19283 esac
19284}
19285
19286# func_basename file
19287func_basename ()
19288{
19289 func_basename_result="${1##*/}"
19290}
19291
b214d478
SE
19292# func_dirname_and_basename file append nondir_replacement
19293# perform func_basename and func_dirname in a single function
19294# call:
19295# dirname: Compute the dirname of FILE. If nonempty,
19296# add APPEND to the result, otherwise set result
19297# to NONDIR_REPLACEMENT.
19298# value returned in "$func_dirname_result"
19299# basename: Compute filename of FILE.
19300# value retuned in "$func_basename_result"
19301# Implementation must be kept synchronized with func_dirname
19302# and func_basename. For efficiency, we do not delegate to
19303# those functions but instead duplicate the functionality here.
19304func_dirname_and_basename ()
19305{
19306 case ${1} in
19307 */*) func_dirname_result="${1%/*}${2}" ;;
19308 * ) func_dirname_result="${3}" ;;
19309 esac
19310 func_basename_result="${1##*/}"
19311}
19312
d7040cdb
SE
19313# func_stripname prefix suffix name
19314# strip PREFIX and SUFFIX off of NAME.
19315# PREFIX and SUFFIX must not contain globbing or regex special
19316# characters, hashes, percent signs, but SUFFIX may contain a leading
19317# dot (in which case that matches only a dot).
19318func_stripname ()
19319{
19320 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19321 # positional parameters, so assign one to ordinary parameter first.
19322 func_stripname_result=${3}
19323 func_stripname_result=${func_stripname_result#"${1}"}
19324 func_stripname_result=${func_stripname_result%"${2}"}
19325}
19326
19327# func_opt_split
19328func_opt_split ()
19329{
19330 func_opt_split_opt=${1%%=*}
19331 func_opt_split_arg=${1#*=}
19332}
19333
19334# func_lo2o object
19335func_lo2o ()
19336{
19337 case ${1} in
19338 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19339 *) func_lo2o_result=${1} ;;
19340 esac
19341}
b214d478
SE
19342
19343# func_xform libobj-or-source
19344func_xform ()
19345{
19346 func_xform_result=${1%.*}.lo
19347}
19348
19349# func_arith arithmetic-term...
19350func_arith ()
19351{
19352 func_arith_result=$(( $* ))
19353}
19354
19355# func_len string
19356# STRING may not start with a hyphen.
19357func_len ()
19358{
19359 func_len_result=${#1}
19360}
19361
d7040cdb
SE
19362_LT_EOF
19363 ;;
19364 *) # Bourne compatible functions.
19365 cat << \_LT_EOF >> "$cfgfile"
b214d478 19366
d7040cdb
SE
19367# func_dirname file append nondir_replacement
19368# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19369# otherwise set result to NONDIR_REPLACEMENT.
19370func_dirname ()
19371{
19372 # Extract subdirectory from the argument.
3725885a 19373 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
19374 if test "X$func_dirname_result" = "X${1}"; then
19375 func_dirname_result="${3}"
19376 else
19377 func_dirname_result="$func_dirname_result${2}"
19378 fi
19379}
19380
19381# func_basename file
19382func_basename ()
19383{
3725885a 19384 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
19385}
19386
b214d478 19387
d7040cdb
SE
19388# func_stripname prefix suffix name
19389# strip PREFIX and SUFFIX off of NAME.
19390# PREFIX and SUFFIX must not contain globbing or regex special
19391# characters, hashes, percent signs, but SUFFIX may contain a leading
19392# dot (in which case that matches only a dot).
19393# func_strip_suffix prefix name
19394func_stripname ()
19395{
19396 case ${2} in
3725885a
RW
19397 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19398 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
19399 esac
19400}
19401
19402# sed scripts:
19403my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19404my_sed_long_arg='1s/^-[^=]*=//'
19405
19406# func_opt_split
19407func_opt_split ()
19408{
3725885a
RW
19409 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19410 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
19411}
19412
19413# func_lo2o object
19414func_lo2o ()
19415{
3725885a 19416 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 19417}
b214d478
SE
19418
19419# func_xform libobj-or-source
19420func_xform ()
19421{
3725885a 19422 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
b214d478
SE
19423}
19424
19425# func_arith arithmetic-term...
19426func_arith ()
19427{
19428 func_arith_result=`expr "$@"`
19429}
19430
19431# func_len string
19432# STRING may not start with a hyphen.
19433func_len ()
19434{
19435 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19436}
19437
d7040cdb
SE
19438_LT_EOF
19439esac
19440
19441case $lt_shell_append in
19442 yes)
19443 cat << \_LT_EOF >> "$cfgfile"
19444
19445# func_append var value
19446# Append VALUE to the end of shell variable VAR.
19447func_append ()
19448{
19449 eval "$1+=\$2"
19450}
19451_LT_EOF
19452 ;;
19453 *)
19454 cat << \_LT_EOF >> "$cfgfile"
19455
19456# func_append var value
19457# Append VALUE to the end of shell variable VAR.
19458func_append ()
19459{
19460 eval "$1=\$$1\$2"
19461}
b214d478 19462
d7040cdb
SE
19463_LT_EOF
19464 ;;
19465 esac
19466
19467
19468 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19469 || (rm -f "$cfgfile"; exit 1)
19470
19471 mv -f "$cfgfile" "$ofile" ||
19472 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19473 chmod +x "$ofile"
19474
3cb62297
L
19475
19476 cat <<_LT_EOF >> "$ofile"
19477
19478# ### BEGIN LIBTOOL TAG CONFIG: CXX
19479
19480# The linker used to build libraries.
19481LD=$lt_LD_CXX
19482
19483# How to create reloadable object files.
19484reload_flag=$lt_reload_flag_CXX
19485reload_cmds=$lt_reload_cmds_CXX
19486
19487# Commands used to build an old-style archive.
19488old_archive_cmds=$lt_old_archive_cmds_CXX
19489
19490# A language specific compiler.
19491CC=$lt_compiler_CXX
19492
19493# Is the compiler the GNU compiler?
19494with_gcc=$GCC_CXX
19495
19496# Compiler flag to turn off builtin functions.
19497no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19498
19499# How to pass a linker flag through the compiler.
19500wl=$lt_lt_prog_compiler_wl_CXX
19501
19502# Additional compiler flags for building library objects.
19503pic_flag=$lt_lt_prog_compiler_pic_CXX
19504
19505# Compiler flag to prevent dynamic linking.
19506link_static_flag=$lt_lt_prog_compiler_static_CXX
19507
19508# Does compiler simultaneously support -c and -o options?
19509compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19510
19511# Whether or not to add -lc for building shared libraries.
19512build_libtool_need_lc=$archive_cmds_need_lc_CXX
19513
19514# Whether or not to disallow shared libs when runtime libs are static.
19515allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19516
19517# Compiler flag to allow reflexive dlopens.
19518export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19519
19520# Compiler flag to generate shared objects directly from archives.
19521whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19522
19523# Whether the compiler copes with passing no objects directly.
19524compiler_needs_object=$lt_compiler_needs_object_CXX
19525
19526# Create an old-style archive from a shared archive.
19527old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19528
19529# Create a temporary old-style archive to link instead of a shared archive.
19530old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19531
19532# Commands used to build a shared archive.
19533archive_cmds=$lt_archive_cmds_CXX
19534archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19535
19536# Commands used to build a loadable module if different from building
19537# a shared archive.
19538module_cmds=$lt_module_cmds_CXX
19539module_expsym_cmds=$lt_module_expsym_cmds_CXX
19540
19541# Whether we are building with GNU ld or not.
19542with_gnu_ld=$lt_with_gnu_ld_CXX
19543
19544# Flag that allows shared libraries with undefined symbols to be built.
19545allow_undefined_flag=$lt_allow_undefined_flag_CXX
19546
19547# Flag that enforces no undefined symbols.
19548no_undefined_flag=$lt_no_undefined_flag_CXX
19549
19550# Flag to hardcode \$libdir into a binary during linking.
19551# This must work even if \$libdir does not exist
19552hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19553
19554# If ld is used when linking, flag to hardcode \$libdir into a binary
19555# during linking. This must work even if \$libdir does not exist.
19556hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19557
19558# Whether we need a single "-rpath" flag with a separated argument.
19559hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19560
19561# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19562# DIR into the resulting binary.
19563hardcode_direct=$hardcode_direct_CXX
19564
19565# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19566# DIR into the resulting binary and the resulting library dependency is
19567# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19568# library is relocated.
19569hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19570
19571# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19572# into the resulting binary.
19573hardcode_minus_L=$hardcode_minus_L_CXX
19574
19575# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19576# into the resulting binary.
19577hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19578
19579# Set to "yes" if building a shared library automatically hardcodes DIR
19580# into the library and all subsequent libraries and executables linked
19581# against it.
19582hardcode_automatic=$hardcode_automatic_CXX
19583
19584# Set to yes if linker adds runtime paths of dependent libraries
19585# to runtime path list.
19586inherit_rpath=$inherit_rpath_CXX
19587
19588# Whether libtool must link a program against all its dependency libraries.
19589link_all_deplibs=$link_all_deplibs_CXX
19590
19591# Fix the shell variable \$srcfile for the compiler.
19592fix_srcfile_path=$lt_fix_srcfile_path_CXX
19593
19594# Set to "yes" if exported symbols are required.
19595always_export_symbols=$always_export_symbols_CXX
19596
19597# The commands to list exported symbols.
19598export_symbols_cmds=$lt_export_symbols_cmds_CXX
19599
19600# Symbols that should not be listed in the preloaded symbols.
19601exclude_expsyms=$lt_exclude_expsyms_CXX
19602
19603# Symbols that must always be exported.
19604include_expsyms=$lt_include_expsyms_CXX
19605
19606# Commands necessary for linking programs (against libraries) with templates.
19607prelink_cmds=$lt_prelink_cmds_CXX
19608
19609# Specify filename containing input files.
19610file_list_spec=$lt_file_list_spec_CXX
19611
19612# How to hardcode a shared library path into an executable.
19613hardcode_action=$hardcode_action_CXX
19614
19615# The directories searched by this compiler when creating a shared library.
19616compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19617
19618# Dependencies to place before and after the objects being linked to
19619# create a shared library.
19620predep_objects=$lt_predep_objects_CXX
19621postdep_objects=$lt_postdep_objects_CXX
19622predeps=$lt_predeps_CXX
19623postdeps=$lt_postdeps_CXX
19624
19625# The library search path used internally by the compiler when linking
19626# a shared library.
19627compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19628
19629# ### END LIBTOOL TAG CONFIG: CXX
19630_LT_EOF
19631
42ecbf5e 19632 ;;
81ecdfbb 19633 "default-1":C)
20e95c23
DJ
19634 for ac_file in $CONFIG_FILES; do
19635 # Support "outfile[:infile[:infile...]]"
19636 case "$ac_file" in
19637 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19638 esac
19639 # PO directories have a Makefile.in generated from Makefile.in.in.
19640 case "$ac_file" in */Makefile.in)
19641 # Adjust a relative srcdir.
19642 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 19643 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
19644 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19645 # In autoconf-2.13 it is called $ac_given_srcdir.
19646 # In autoconf-2.50 it is called $srcdir.
19647 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19648 case "$ac_given_srcdir" in
19649 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19650 /*) top_srcdir="$ac_given_srcdir" ;;
19651 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19652 esac
19653 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19654 rm -f "$ac_dir/POTFILES"
19655 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19656 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19657 POMAKEFILEDEPS="POTFILES.in"
19658 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19659 # on $ac_dir but don't depend on user-specified configuration
19660 # parameters.
19661 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19662 # The LINGUAS file contains the set of available languages.
19663 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19664 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19665 fi
19666 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19667 # Hide the ALL_LINGUAS assigment from automake.
19668 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19669 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19670 else
19671 # The set of available languages was given in configure.in.
19672 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19673 fi
19674 case "$ac_given_srcdir" in
19675 .) srcdirpre= ;;
19676 *) srcdirpre='$(srcdir)/' ;;
19677 esac
19678 POFILES=
19679 GMOFILES=
19680 UPDATEPOFILES=
19681 DUMMYPOFILES=
19682 for lang in $ALL_LINGUAS; do
19683 POFILES="$POFILES $srcdirpre$lang.po"
19684 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19685 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19686 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19687 done
19688 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19689 # environment variable.
19690 INST_LINGUAS=
19691 if test -n "$ALL_LINGUAS"; then
19692 for presentlang in $ALL_LINGUAS; do
19693 useit=no
19694 if test "%UNSET%" != "$LINGUAS"; then
19695 desiredlanguages="$LINGUAS"
19696 else
19697 desiredlanguages="$ALL_LINGUAS"
19698 fi
19699 for desiredlang in $desiredlanguages; do
19700 # Use the presentlang catalog if desiredlang is
19701 # a. equal to presentlang, or
19702 # b. a variant of presentlang (because in this case,
19703 # presentlang can be used as a fallback for messages
19704 # which are not translated in the desiredlang catalog).
19705 case "$desiredlang" in
19706 "$presentlang"*) useit=yes;;
19707 esac
19708 done
19709 if test $useit = yes; then
19710 INST_LINGUAS="$INST_LINGUAS $presentlang"
19711 fi
19712 done
19713 fi
19714 CATALOGS=
19715 if test -n "$INST_LINGUAS"; then
19716 for lang in $INST_LINGUAS; do
19717 CATALOGS="$CATALOGS $lang.gmo"
19718 done
19719 fi
19720 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19721 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
19722 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19723 if test -f "$f"; then
19724 case "$f" in
19725 *.orig | *.bak | *~) ;;
19726 *) cat "$f" >> "$ac_dir/Makefile" ;;
19727 esac
19728 fi
19729 done
19730 fi
19731 ;;
19732 esac
19733 done ;;
81ecdfbb 19734
42ecbf5e 19735 esac
81ecdfbb 19736done # for ac_tag
42ecbf5e 19737
42ecbf5e 19738
81ecdfbb 19739as_fn_exit 0
42ecbf5e 19740_ACEOF
42ecbf5e
DJ
19741ac_clean_files=$ac_clean_files_save
19742
81ecdfbb
RW
19743test $ac_write_fail = 0 ||
19744 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19745
42ecbf5e
DJ
19746
19747# configure is writing to config.log, and then calls config.status.
19748# config.status does its own redirection, appending to config.log.
19749# Unfortunately, on DOS this fails, as config.log is still kept open
19750# by configure, so config.status won't be able to write to it; its
19751# output is simply discarded. So we exec the FD to /dev/null,
19752# effectively closing config.log, so it can be properly (re)opened and
19753# appended to by config.status. When coming back to configure, we
19754# need to make the FD available again.
19755if test "$no_create" != yes; then
19756 ac_cs_success=:
19757 ac_config_status_args=
19758 test "$silent" = yes &&
19759 ac_config_status_args="$ac_config_status_args --quiet"
19760 exec 5>/dev/null
19761 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19762 exec 5>>config.log
19763 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19764 # would make configure fail if this is the last instruction.
81ecdfbb
RW
19765 $ac_cs_success || as_fn_exit $?
19766fi
19767if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19769$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 19770fi
252b5132 19771
This page took 1.685999 seconds and 4 git commands to generate.