*** empty log message ***
[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
612NATIVE_LIB_DIRS
613HOSTING_LIBS
614HOSTING_CRT0
615HDEFINES
616do_compare
617GENINSRC_NEVER_FALSE
618GENINSRC_NEVER_TRUE
81ecdfbb
RW
619LEXLIB
620LEX_OUTPUT_ROOT
621LEX
622YFLAGS
623YACC
624MSGMERGE
625MSGFMT
626MKINSTALLDIRS
627CATOBJEXT
628GENCAT
629INSTOBJEXT
630DATADIRNAME
631CATALOGS
632POSUB
633GMSGFMT
634XGETTEXT
635INCINTL
636LIBINTL_DEP
637LIBINTL
638USE_NLS
639OTOOL64
640OTOOL
641LIPO
642NMEDIT
643DSYMUTIL
81ecdfbb
RW
644RANLIB
645AR
646OBJDUMP
647LN_S
648NM
649ac_ct_DUMPBIN
650DUMPBIN
651LD
652FGREP
653SED
654LIBTOOL
397841b5
AM
655NO_WERROR
656WARN_CFLAGS
81ecdfbb
RW
657EGREP
658GREP
659CPP
81ecdfbb
RW
660TARGET_SYSTEM_ROOT_DEFINE
661TARGET_SYSTEM_ROOT
662use_sysroot
64ac50ac
RW
663MAINT
664MAINTAINER_MODE_FALSE
665MAINTAINER_MODE_TRUE
81ecdfbb
RW
666am__fastdepCC_FALSE
667am__fastdepCC_TRUE
668CCDEPMODE
669AMDEPBACKSLASH
670AMDEP_FALSE
671AMDEP_TRUE
672am__quote
673am__include
674DEPDIR
675am__untar
676am__tar
677AMTAR
678am__leading_dot
679SET_MAKE
680AWK
681mkdir_p
682MKDIR_P
683INSTALL_STRIP_PROGRAM
684STRIP
685install_sh
686MAKEINFO
687AUTOHEADER
688AUTOMAKE
689AUTOCONF
690ACLOCAL
691VERSION
692PACKAGE
693CYGPATH_W
694am__isrc
695INSTALL_DATA
696INSTALL_SCRIPT
697INSTALL_PROGRAM
698OBJEXT
699EXEEXT
700ac_ct_CC
701CPPFLAGS
702LDFLAGS
703CFLAGS
704CC
705target_os
706target_vendor
707target_cpu
708target
709host_os
710host_vendor
711host_cpu
712host
713build_os
714build_vendor
715build_cpu
716build
717target_alias
718host_alias
719build_alias
720LIBS
721ECHO_T
722ECHO_N
723ECHO_C
724DEFS
725mandir
726localedir
727libdir
728psdir
729pdfdir
730dvidir
731htmldir
732infodir
733docdir
734oldincludedir
735includedir
736localstatedir
737sharedstatedir
738sysconfdir
739datadir
740datarootdir
741libexecdir
742sbindir
743bindir
744program_transform_name
745prefix
746exec_prefix
747PACKAGE_URL
748PACKAGE_BUGREPORT
749PACKAGE_STRING
750PACKAGE_VERSION
751PACKAGE_TARNAME
752PACKAGE_NAME
753PATH_SEPARATOR
754SHELL'
42ecbf5e 755ac_subst_files='TDIRS'
81ecdfbb
RW
756ac_user_opts='
757enable_option_checking
758enable_dependency_tracking
64ac50ac 759enable_maintainer_mode
81ecdfbb
RW
760with_lib_path
761enable_targets
762enable_64_bit_bfd
763with_sysroot
764enable_got
765enable_werror
766enable_build_warnings
da2f07f1 767enable_plugins
81ecdfbb
RW
768enable_largefile
769enable_shared
770enable_static
771with_pic
772enable_fast_install
773with_gnu_ld
774enable_libtool_lock
775enable_nls
81ecdfbb
RW
776'
777 ac_precious_vars='build_alias
778host_alias
779target_alias
780CC
781CFLAGS
782LDFLAGS
783LIBS
784CPPFLAGS
785CPP
786YACC
787YFLAGS'
788
252b5132
RH
789
790# Initialize some variables set by options.
42ecbf5e
DJ
791ac_init_help=
792ac_init_version=false
81ecdfbb
RW
793ac_unrecognized_opts=
794ac_unrecognized_sep=
252b5132
RH
795# The variables have the same names as the options, with
796# dashes changed to underlines.
42ecbf5e 797cache_file=/dev/null
252b5132 798exec_prefix=NONE
252b5132 799no_create=
252b5132
RH
800no_recursion=
801prefix=NONE
802program_prefix=NONE
803program_suffix=NONE
804program_transform_name=s,x,x,
805silent=
806site=
807srcdir=
252b5132
RH
808verbose=
809x_includes=NONE
810x_libraries=NONE
42ecbf5e
DJ
811
812# Installation directory options.
813# These are left unexpanded so users can "make install exec_prefix=/foo"
814# and all the variables that are supposed to be based on exec_prefix
815# by default will actually change.
816# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 817# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
818bindir='${exec_prefix}/bin'
819sbindir='${exec_prefix}/sbin'
820libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
821datarootdir='${prefix}/share'
822datadir='${datarootdir}'
252b5132
RH
823sysconfdir='${prefix}/etc'
824sharedstatedir='${prefix}/com'
825localstatedir='${prefix}/var'
252b5132
RH
826includedir='${prefix}/include'
827oldincludedir='/usr/include'
81ecdfbb
RW
828docdir='${datarootdir}/doc/${PACKAGE}'
829infodir='${datarootdir}/info'
830htmldir='${docdir}'
831dvidir='${docdir}'
832pdfdir='${docdir}'
833psdir='${docdir}'
834libdir='${exec_prefix}/lib'
835localedir='${datarootdir}/locale'
836mandir='${datarootdir}/man'
252b5132 837
252b5132 838ac_prev=
81ecdfbb 839ac_dashdash=
252b5132
RH
840for ac_option
841do
252b5132
RH
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
81ecdfbb 844 eval $ac_prev=\$ac_option
252b5132
RH
845 ac_prev=
846 continue
847 fi
848
81ecdfbb
RW
849 case $ac_option in
850 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 *) ac_optarg=yes ;;
852 esac
252b5132
RH
853
854 # Accept the important Cygnus configure options, so we can diagnose typos.
855
81ecdfbb
RW
856 case $ac_dashdash$ac_option in
857 --)
858 ac_dashdash=yes ;;
252b5132
RH
859
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 863 bindir=$ac_optarg ;;
252b5132
RH
864
865 -build | --build | --buil | --bui | --bu)
42ecbf5e 866 ac_prev=build_alias ;;
252b5132 867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 868 build_alias=$ac_optarg ;;
252b5132
RH
869
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
875 cache_file=$ac_optarg ;;
876
877 --config-cache | -C)
878 cache_file=config.cache ;;
252b5132 879
81ecdfbb 880 -datadir | --datadir | --datadi | --datad)
252b5132 881 ac_prev=datadir ;;
81ecdfbb 882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 883 datadir=$ac_optarg ;;
252b5132 884
81ecdfbb
RW
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
891
252b5132 892 -disable-* | --disable-*)
81ecdfbb 893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 894 # Reject names that are not valid shell variable names.
81ecdfbb
RW
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
900 *"
901"enable_$ac_useropt"
902"*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=no ;;
907
908 -docdir | --docdir | --docdi | --doc | --do)
909 ac_prev=docdir ;;
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 docdir=$ac_optarg ;;
912
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 ac_prev=dvidir ;;
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 dvidir=$ac_optarg ;;
252b5132
RH
917
918 -enable-* | --enable-*)
81ecdfbb 919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 920 # Reject names that are not valid shell variable names.
81ecdfbb
RW
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927"enable_$ac_useropt"
928"*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
252b5132 931 esac
81ecdfbb 932 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
933
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
42ecbf5e 941 exec_prefix=$ac_optarg ;;
252b5132
RH
942
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
945 with_gas=yes ;;
946
42ecbf5e
DJ
947 -help | --help | --hel | --he | -h)
948 ac_init_help=long ;;
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
252b5132
RH
953
954 -host | --host | --hos | --ho)
42ecbf5e 955 ac_prev=host_alias ;;
252b5132 956 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 957 host_alias=$ac_optarg ;;
252b5132 958
81ecdfbb
RW
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 ac_prev=htmldir ;;
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 | --ht=*)
963 htmldir=$ac_optarg ;;
964
252b5132
RH
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 970 includedir=$ac_optarg ;;
252b5132
RH
971
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 ac_prev=infodir ;;
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 975 infodir=$ac_optarg ;;
252b5132
RH
976
977 -libdir | --libdir | --libdi | --libd)
978 ac_prev=libdir ;;
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 980 libdir=$ac_optarg ;;
252b5132
RH
981
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 987 libexecdir=$ac_optarg ;;
252b5132 988
81ecdfbb
RW
989 -localedir | --localedir | --localedi | --localed | --locale)
990 ac_prev=localedir ;;
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
993
252b5132 994 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 995 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 999 localstatedir=$ac_optarg ;;
252b5132
RH
1000
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 ac_prev=mandir ;;
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1004 mandir=$ac_optarg ;;
252b5132
RH
1005
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1008 with_fp=no ;;
1009
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1011 | --no-cr | --no-c | -n)
252b5132
RH
1012 no_create=yes ;;
1013
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 no_recursion=yes ;;
1017
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1025 oldincludedir=$ac_optarg ;;
252b5132
RH
1026
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 ac_prev=prefix ;;
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1030 prefix=$ac_optarg ;;
252b5132
RH
1031
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1037 program_prefix=$ac_optarg ;;
252b5132
RH
1038
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1044 program_suffix=$ac_optarg ;;
252b5132
RH
1045
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1061 program_transform_name=$ac_optarg ;;
252b5132 1062
81ecdfbb
RW
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 ac_prev=pdfdir ;;
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1067
1068 -psdir | --psdir | --psdi | --psd | --ps)
1069 ac_prev=psdir ;;
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 psdir=$ac_optarg ;;
1072
252b5132
RH
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 silent=yes ;;
1076
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 ac_prev=sbindir ;;
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 | --sbi=* | --sb=*)
42ecbf5e 1081 sbindir=$ac_optarg ;;
252b5132
RH
1082
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1086 | --sha | --sh)
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 | --sha=* | --sh=*)
42ecbf5e 1092 sharedstatedir=$ac_optarg ;;
252b5132
RH
1093
1094 -site | --site | --sit)
1095 ac_prev=site ;;
1096 -site=* | --site=* | --sit=*)
42ecbf5e 1097 site=$ac_optarg ;;
85fbca6a 1098
252b5132
RH
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 ac_prev=srcdir ;;
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1102 srcdir=$ac_optarg ;;
252b5132
RH
1103
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1109 sysconfdir=$ac_optarg ;;
252b5132
RH
1110
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1112 ac_prev=target_alias ;;
252b5132 1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1114 target_alias=$ac_optarg ;;
252b5132
RH
1115
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 verbose=yes ;;
1118
42ecbf5e
DJ
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
252b5132
RH
1121
1122 -with-* | --with-*)
81ecdfbb 1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1124 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1130 *"
1131"with_$ac_useropt"
1132"*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
252b5132 1135 esac
81ecdfbb 1136 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1137
1138 -without-* | --without-*)
81ecdfbb 1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1140 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147"with_$ac_useropt"
1148"*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=no ;;
252b5132
RH
1153
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1157
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1163 x_includes=$ac_optarg ;;
252b5132
RH
1164
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1170 x_libraries=$ac_optarg ;;
252b5132 1171
81ecdfbb
RW
1172 -*) as_fn_error "unrecognized option: \`$ac_option'
1173Try \`$0 --help' for more information."
252b5132
RH
1174 ;;
1175
42ecbf5e
DJ
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
1181 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1182 esac
1183 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1184 export $ac_envvar ;;
1185
252b5132 1186 *)
42ecbf5e 1187 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
42ecbf5e 1191 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1192 ;;
1193
1194 esac
1195done
1196
1197if test -n "$ac_prev"; then
42ecbf5e 1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1199 as_fn_error "missing argument to $ac_option"
252b5132 1200fi
252b5132 1201
81ecdfbb
RW
1202if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1204 no) ;;
1205 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1207 esac
81ecdfbb 1208fi
252b5132 1209
81ecdfbb
RW
1210# Check all directory arguments for consistency.
1211for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
252b5132 1215do
81ecdfbb
RW
1216 eval ac_val=\$$ac_var
1217 # Remove trailing slashes.
1218 case $ac_val in
1219 */ )
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1222 esac
1223 # Be sure to have absolute directory names.
42ecbf5e 1224 case $ac_val in
81ecdfbb
RW
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1227 esac
81ecdfbb 1228 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1229done
1230
42ecbf5e
DJ
1231# There might be people who depend on the old broken behavior: `$host'
1232# used to hold the argument of --host etc.
1233# FIXME: To remove some day.
1234build=$build_alias
1235host=$host_alias
1236target=$target_alias
1237
1238# FIXME: To remove some day.
1239if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
81ecdfbb 1242 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
42ecbf5e
DJ
1243 If a cross compiler is detected then cross compile mode will be used." >&2
1244 elif test "x$build_alias" != "x$host_alias"; then
1245 cross_compiling=yes
1246 fi
1247fi
e5a52504 1248
42ecbf5e
DJ
1249ac_tool_prefix=
1250test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251
1252test "$silent" = yes && exec 6>/dev/null
252b5132 1253
252b5132 1254
81ecdfbb
RW
1255ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256ac_ls_di=`ls -di .` &&
1257ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258 as_fn_error "working directory cannot be determined"
1259test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 as_fn_error "pwd does not report name of working directory"
1261
1262
252b5132
RH
1263# Find the source files, if location was not specified.
1264if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
81ecdfbb
RW
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir=`$as_dirname -- "$as_myself" ||
1268$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$as_myself" : 'X\(//\)[^/]' \| \
1270 X"$as_myself" : 'X\(//\)$' \| \
1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272$as_echo X"$as_myself" |
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)[^/].*/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)$/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\).*/{
1286 s//\1/
1287 q
1288 }
1289 s/.*/./; q'`
252b5132 1290 srcdir=$ac_confdir
81ecdfbb 1291 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1292 srcdir=..
1293 fi
1294else
1295 ac_srcdir_defaulted=no
1296fi
81ecdfbb
RW
1297if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1300fi
1301ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302ac_abs_confdir=`(
1303 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1304 pwd)`
1305# When building in place, set srcdir=.
1306if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 srcdir=.
1308fi
1309# Remove unnecessary trailing slashes from srcdir.
1310# Double slashes in file names in object file debugging info
1311# mess up M-x gdb in Emacs.
1312case $srcdir in
1313*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314esac
1315for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320done
252b5132 1321
42ecbf5e
DJ
1322#
1323# Report the --help message.
1324#
1325if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1328 cat <<_ACEOF
1329\`configure' configures this package to adapt to many kinds of systems.
252b5132 1330
42ecbf5e 1331Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1332
42ecbf5e
DJ
1333To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1335
42ecbf5e 1336Defaults for the options are specified in brackets.
ac48eca1 1337
42ecbf5e
DJ
1338Configuration:
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348
42ecbf5e
DJ
1349Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1351 [$ac_default_prefix]
42ecbf5e 1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1353 [PREFIX]
ac48eca1 1354
42ecbf5e
DJ
1355By default, \`make install' will install all the files in
1356\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358for instance \`--prefix=\$HOME'.
ac48eca1 1359
42ecbf5e 1360For better control, use the options below.
ac48eca1 1361
42ecbf5e 1362Fine tuning of the installation directories:
81ecdfbb
RW
1363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1382_ACEOF
ac48eca1 1383
42ecbf5e 1384 cat <<\_ACEOF
252b5132 1385
42ecbf5e
DJ
1386Program names:
1387 --program-prefix=PREFIX prepend PREFIX to installed program names
1388 --program-suffix=SUFFIX append SUFFIX to installed program names
1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1390
42ecbf5e
DJ
1391System types:
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 --target=TARGET configure for building compilers for TARGET [HOST]
1395_ACEOF
252b5132 1396fi
252b5132 1397
42ecbf5e 1398if test -n "$ac_init_help"; then
252b5132 1399
42ecbf5e 1400 cat <<\_ACEOF
e5a52504 1401
42ecbf5e 1402Optional Features:
81ecdfbb 1403 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --disable-dependency-tracking speeds up one-time build
1407 --enable-dependency-tracking do not reject slow dependency extractors
64ac50ac
RW
1408 --enable-maintainer-mode enable make rules and dependencies not useful
1409 (and sometimes confusing) to the casual installer
ce2cded5
L
1410 --enable-targets alternative target configurations
1411 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
7fb9f789
NC
1412 --enable-got=<type> GOT handling scheme (target, single, negative,
1413 multigot)
ce2cded5
L
1414 --enable-werror treat compile warnings as errors
1415 --enable-build-warnings enable build-time compiler warnings
da2f07f1 1416 --enable-plugins Enable support for plugins (defaults no)
d053aef8 1417 --disable-largefile omit support for large files
81ecdfbb
RW
1418 --enable-shared[=PKGS] build shared libraries [default=yes]
1419 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1420 --enable-fast-install[=PKGS]
1421 optimize for fast installation [default=yes]
42ecbf5e 1422 --disable-libtool-lock avoid locking (might break parallel builds)
42ecbf5e 1423 --disable-nls do not use Native Language Support
42ecbf5e
DJ
1424
1425Optional Packages:
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
ce2cded5
L
1428 --with-lib-path=dir1:dir2... set default LIB_PATH
1429 --with-sysroot=DIR Search for usr/lib et al within DIR.
d7040cdb
SE
1430 --with-pic try to use only PIC/non-PIC objects [default=use
1431 both]
1432 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
42ecbf5e
DJ
1433
1434Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
81ecdfbb
RW
1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
42ecbf5e 1442 CPP C preprocessor
81ecdfbb
RW
1443 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1444 the first program found out of: `bison -y', `byacc', `yacc'.
1445 YFLAGS The list of arguments that will be passed by default to $YACC.
1446 This script will default YFLAGS to the empty string to avoid a
1447 default value of `-d' given by some make applications.
42ecbf5e
DJ
1448
1449Use these variables to override the choices made by `configure' or to help
1450it to find libraries and programs with nonstandard names/locations.
1451
81ecdfbb 1452Report bugs to the package provider.
42ecbf5e 1453_ACEOF
81ecdfbb 1454ac_status=$?
42ecbf5e
DJ
1455fi
1456
1457if test "$ac_init_help" = "recursive"; then
1458 # If there are subdirs, report their specific --help.
42ecbf5e 1459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1460 test -d "$ac_dir" ||
1461 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462 continue
42ecbf5e
DJ
1463 ac_builddir=.
1464
81ecdfbb
RW
1465case "$ac_dir" in
1466.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467*)
1468 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1469 # A ".." for each directory in $ac_dir_suffix.
1470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474 esac ;;
1475esac
1476ac_abs_top_builddir=$ac_pwd
1477ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478# for backward compatibility:
1479ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
1480
1481case $srcdir in
81ecdfbb 1482 .) # We are building in place.
42ecbf5e 1483 ac_srcdir=.
81ecdfbb
RW
1484 ac_top_srcdir=$ac_top_builddir_sub
1485 ac_abs_top_srcdir=$ac_pwd ;;
1486 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1487 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1488 ac_top_srcdir=$srcdir
1489 ac_abs_top_srcdir=$srcdir ;;
1490 *) # Relative name.
1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 1494esac
81ecdfbb
RW
1495ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496
1497 cd "$ac_dir" || { ac_status=$?; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1505 else
81ecdfbb
RW
1506 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 fi || ac_status=$?
1508 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e 1509 done
a2d91340
AC
1510fi
1511
81ecdfbb 1512test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1513if $ac_init_version; then
1514 cat <<\_ACEOF
81ecdfbb
RW
1515configure
1516generated by GNU Autoconf 2.64
a2d91340 1517
81ecdfbb 1518Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
1519This configure script is free software; the Free Software Foundation
1520gives unlimited permission to copy, distribute and modify it.
1521_ACEOF
81ecdfbb 1522 exit
42ecbf5e 1523fi
a2d91340 1524
81ecdfbb
RW
1525## ------------------------ ##
1526## Autoconf initialization. ##
1527## ------------------------ ##
a2d91340 1528
81ecdfbb
RW
1529# ac_fn_c_try_compile LINENO
1530# --------------------------
1531# Try to compile conftest.$ac_ext, and return whether this succeeded.
1532ac_fn_c_try_compile ()
1533{
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext
1536 if { { ac_try="$ac_compile"
1537case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1540esac
1541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542$as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_compile") 2>conftest.err
1544 ac_status=$?
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1549 fi
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest.$ac_objext; then :
1555 ac_retval=0
1556else
1557 $as_echo "$as_me: failed program was:" >&5
1558sed 's/^/| /' conftest.$ac_ext >&5
a2d91340 1559
81ecdfbb
RW
1560 ac_retval=1
1561fi
1562 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1563 return $ac_retval
1564
1565} # ac_fn_c_try_compile
1566
1567# ac_fn_c_try_link LINENO
1568# -----------------------
1569# Try to link conftest.$ac_ext, and return whether this succeeded.
1570ac_fn_c_try_link ()
42ecbf5e 1571{
81ecdfbb
RW
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 rm -f conftest.$ac_objext conftest$ac_exeext
1574 if { { ac_try="$ac_link"
1575case "(($ac_try" in
1576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577 *) ac_try_echo=$ac_try;;
1578esac
1579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580$as_echo "$ac_try_echo"; } >&5
1581 (eval "$ac_link") 2>conftest.err
1582 ac_status=$?
1583 if test -s conftest.err; then
1584 grep -v '^ *+' conftest.err >conftest.er1
1585 cat conftest.er1 >&5
1586 mv -f conftest.er1 conftest.err
1587 fi
1588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589 test $ac_status = 0; } && {
1590 test -z "$ac_c_werror_flag" ||
1591 test ! -s conftest.err
1592 } && test -s conftest$ac_exeext && {
1593 test "$cross_compiling" = yes ||
1594 $as_test_x conftest$ac_exeext
1595 }; then :
1596 ac_retval=0
1597else
1598 $as_echo "$as_me: failed program was:" >&5
1599sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1600
81ecdfbb
RW
1601 ac_retval=1
1602fi
1603 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1604 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1605 # interfere with the next link command; also delete a directory that is
1606 # left behind by Apple's compiler. We do this before executing the actions.
1607 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1608 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1609 return $ac_retval
42ecbf5e 1610
81ecdfbb 1611} # ac_fn_c_try_link
42ecbf5e 1612
81ecdfbb
RW
1613# ac_fn_c_try_cpp LINENO
1614# ----------------------
1615# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1616ac_fn_c_try_cpp ()
1617{
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 if { { ac_try="$ac_cpp conftest.$ac_ext"
1620case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623esac
1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625$as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1632 fi
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } >/dev/null && {
1635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 }; then :
1638 ac_retval=0
1639else
1640 $as_echo "$as_me: failed program was:" >&5
1641sed 's/^/| /' conftest.$ac_ext >&5
1642
1643 ac_retval=1
1644fi
1645 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646 return $ac_retval
1647
1648} # ac_fn_c_try_cpp
1649
1650# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1651# -------------------------------------------------------
1652# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1653# the include files in INCLUDES and setting the cache variable VAR
1654# accordingly.
1655ac_fn_c_check_header_mongrel ()
1656{
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660$as_echo_n "checking for $2... " >&6; }
1661if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1662 $as_echo_n "(cached) " >&6
1663fi
1664eval ac_res=\$$3
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666$as_echo "$ac_res" >&6; }
1667else
1668 # Is the header compilable?
1669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1670$as_echo_n "checking $2 usability... " >&6; }
1671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672/* end confdefs.h. */
1673$4
1674#include <$2>
1675_ACEOF
1676if ac_fn_c_try_compile "$LINENO"; then :
1677 ac_header_compiler=yes
1678else
1679 ac_header_compiler=no
1680fi
1681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1683$as_echo "$ac_header_compiler" >&6; }
1684
1685# Is the header present?
1686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1687$as_echo_n "checking $2 presence... " >&6; }
1688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689/* end confdefs.h. */
1690#include <$2>
1691_ACEOF
1692if ac_fn_c_try_cpp "$LINENO"; then :
1693 ac_header_preproc=yes
1694else
1695 ac_header_preproc=no
1696fi
1697rm -f conftest.err conftest.$ac_ext
1698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1699$as_echo "$ac_header_preproc" >&6; }
1700
1701# So? What about this header?
1702case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1703 yes:no: )
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1705$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1707$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1708 ;;
1709 no:yes:* )
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1711$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1713$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1715$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1717$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1719$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1720 ;;
1721esac
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723$as_echo_n "checking for $2... " >&6; }
1724if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1725 $as_echo_n "(cached) " >&6
1726else
1727 eval "$3=\$ac_header_compiler"
1728fi
1729eval ac_res=\$$3
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731$as_echo "$ac_res" >&6; }
1732fi
1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1734
1735} # ac_fn_c_check_header_mongrel
1736
1737# ac_fn_c_try_run LINENO
1738# ----------------------
1739# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1740# that executables *can* be run.
1741ac_fn_c_try_run ()
1742{
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { { ac_try="$ac_link"
1745case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748esac
1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750$as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>&5
1752 ac_status=$?
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1755 { { case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758esac
1759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760$as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_try") 2>&5
1762 ac_status=$?
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; }; }; then :
1765 ac_retval=0
1766else
1767 $as_echo "$as_me: program exited with status $ac_status" >&5
1768 $as_echo "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=$ac_status
1772fi
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775 return $ac_retval
1776
1777} # ac_fn_c_try_run
1778
1779# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1780# -------------------------------------------------------
1781# Tests whether HEADER exists and can be compiled using the include files in
1782# INCLUDES, setting the cache variable VAR accordingly.
1783ac_fn_c_check_header_compile ()
1784{
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787$as_echo_n "checking for $2... " >&6; }
1788if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1789 $as_echo_n "(cached) " >&6
1790else
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792/* end confdefs.h. */
1793$4
1794#include <$2>
1795_ACEOF
1796if ac_fn_c_try_compile "$LINENO"; then :
1797 eval "$3=yes"
1798else
1799 eval "$3=no"
1800fi
1801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802fi
1803eval ac_res=\$$3
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805$as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1807
1808} # ac_fn_c_check_header_compile
1809
1810# ac_fn_c_check_func LINENO FUNC VAR
1811# ----------------------------------
1812# Tests whether FUNC exists, setting the cache variable VAR accordingly
1813ac_fn_c_check_func ()
1814{
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817$as_echo_n "checking for $2... " >&6; }
1818if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1819 $as_echo_n "(cached) " >&6
1820else
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822/* end confdefs.h. */
1823/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1825#define $2 innocuous_$2
1826
1827/* System header to define __stub macros and hopefully few prototypes,
1828 which can conflict with char $2 (); below.
1829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1830 <limits.h> exists even on freestanding compilers. */
1831
1832#ifdef __STDC__
1833# include <limits.h>
1834#else
1835# include <assert.h>
1836#endif
1837
1838#undef $2
1839
1840/* Override any GCC internal prototype to avoid an error.
1841 Use char because int might match the return type of a GCC
1842 builtin and then its argument prototype would still apply. */
1843#ifdef __cplusplus
1844extern "C"
1845#endif
1846char $2 ();
1847/* The GNU C library defines this for functions which it implements
1848 to always fail with ENOSYS. Some functions are actually named
1849 something starting with __ and the normal name is an alias. */
1850#if defined __stub_$2 || defined __stub___$2
1851choke me
1852#endif
1853
1854int
1855main ()
1856{
1857return $2 ();
1858 ;
1859 return 0;
1860}
1861_ACEOF
1862if ac_fn_c_try_link "$LINENO"; then :
1863 eval "$3=yes"
1864else
1865 eval "$3=no"
1866fi
1867rm -f core conftest.err conftest.$ac_objext \
1868 conftest$ac_exeext conftest.$ac_ext
1869fi
1870eval ac_res=\$$3
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872$as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874
1875} # ac_fn_c_check_func
1876
1877# ac_fn_c_check_decl LINENO SYMBOL VAR
1878# ------------------------------------
1879# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1880ac_fn_c_check_decl ()
1881{
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1884$as_echo_n "checking whether $2 is declared... " >&6; }
1885if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1886 $as_echo_n "(cached) " >&6
1887else
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889/* end confdefs.h. */
1890$4
1891int
1892main ()
1893{
1894#ifndef $2
1895 (void) $2;
1896#endif
1897
1898 ;
1899 return 0;
1900}
1901_ACEOF
1902if ac_fn_c_try_compile "$LINENO"; then :
1903 eval "$3=yes"
1904else
1905 eval "$3=no"
1906fi
1907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908fi
1909eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911$as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913
1914} # ac_fn_c_check_decl
1915
1916# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1917# --------------------------------------------
1918# Tries to find the compile-time value of EXPR in a program that includes
1919# INCLUDES, setting VAR accordingly. Returns whether the value could be
1920# computed
1921ac_fn_c_compute_int ()
1922{
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if test "$cross_compiling" = yes; then
1925 # Depending upon the size, compute the lo and hi bounds.
1926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h. */
1928$4
1929int
1930main ()
1931{
1932static int test_array [1 - 2 * !(($2) >= 0)];
1933test_array [0] = 0
1934
1935 ;
1936 return 0;
1937}
1938_ACEOF
1939if ac_fn_c_try_compile "$LINENO"; then :
1940 ac_lo=0 ac_mid=0
1941 while :; do
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h. */
1944$4
1945int
1946main ()
1947{
1948static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1949test_array [0] = 0
1950
1951 ;
1952 return 0;
1953}
1954_ACEOF
1955if ac_fn_c_try_compile "$LINENO"; then :
1956 ac_hi=$ac_mid; break
1957else
1958 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1959 if test $ac_lo -le $ac_mid; then
1960 ac_lo= ac_hi=
1961 break
1962 fi
1963 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1964fi
1965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 done
1967else
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969/* end confdefs.h. */
1970$4
1971int
1972main ()
1973{
1974static int test_array [1 - 2 * !(($2) < 0)];
1975test_array [0] = 0
1976
1977 ;
1978 return 0;
1979}
1980_ACEOF
1981if ac_fn_c_try_compile "$LINENO"; then :
1982 ac_hi=-1 ac_mid=-1
1983 while :; do
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985/* end confdefs.h. */
1986$4
1987int
1988main ()
1989{
1990static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1991test_array [0] = 0
1992
1993 ;
1994 return 0;
1995}
1996_ACEOF
1997if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_lo=$ac_mid; break
1999else
2000 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2001 if test $ac_mid -le $ac_hi; then
2002 ac_lo= ac_hi=
2003 break
2004 fi
2005 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2006fi
2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 done
2009else
2010 ac_lo= ac_hi=
2011fi
2012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013fi
2014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015# Binary search between lo and hi bounds.
2016while test "x$ac_lo" != "x$ac_hi"; do
2017 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019/* end confdefs.h. */
2020$4
2021int
2022main ()
2023{
2024static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2025test_array [0] = 0
2026
2027 ;
2028 return 0;
2029}
2030_ACEOF
2031if ac_fn_c_try_compile "$LINENO"; then :
2032 ac_hi=$ac_mid
2033else
2034 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2035fi
2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037done
2038case $ac_lo in #((
2039?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2040'') ac_retval=1 ;;
2041esac
2042 else
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044/* end confdefs.h. */
2045$4
2046static long int longval () { return $2; }
2047static unsigned long int ulongval () { return $2; }
2048#include <stdio.h>
2049#include <stdlib.h>
2050int
2051main ()
2052{
2053
2054 FILE *f = fopen ("conftest.val", "w");
2055 if (! f)
2056 return 1;
2057 if (($2) < 0)
2058 {
2059 long int i = longval ();
2060 if (i != ($2))
2061 return 1;
2062 fprintf (f, "%ld", i);
2063 }
2064 else
2065 {
2066 unsigned long int i = ulongval ();
2067 if (i != ($2))
2068 return 1;
2069 fprintf (f, "%lu", i);
2070 }
2071 /* Do not output a trailing newline, as this causes \r\n confusion
2072 on some platforms. */
2073 return ferror (f) || fclose (f) != 0;
2074
2075 ;
2076 return 0;
2077}
2078_ACEOF
2079if ac_fn_c_try_run "$LINENO"; then :
2080 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2081else
2082 ac_retval=1
2083fi
2084rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2085 conftest.$ac_objext conftest.beam conftest.$ac_ext
2086rm -f conftest.val
2087
2088 fi
2089 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2090 return $ac_retval
2091
2092} # ac_fn_c_compute_int
2093cat >config.log <<_ACEOF
2094This file contains any messages produced by compilers while
2095running configure, to aid debugging if configure makes a mistake.
2096
2097It was created by $as_me, which was
2098generated by GNU Autoconf 2.64. Invocation command line was
2099
2100 $ $0 $@
2101
2102_ACEOF
2103exec 5>>config.log
2104{
2105cat <<_ASUNAME
2106## --------- ##
2107## Platform. ##
2108## --------- ##
2109
2110hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2111uname -m = `(uname -m) 2>/dev/null || echo unknown`
2112uname -r = `(uname -r) 2>/dev/null || echo unknown`
2113uname -s = `(uname -s) 2>/dev/null || echo unknown`
2114uname -v = `(uname -v) 2>/dev/null || echo unknown`
2115
2116/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2117/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2118
2119/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2120/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2121/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2122/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2123/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2124/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2125/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2126
2127_ASUNAME
2128
2129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130for as_dir in $PATH
2131do
2132 IFS=$as_save_IFS
2133 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2134 $as_echo "PATH: $as_dir"
2135 done
2136IFS=$as_save_IFS
252b5132 2137
42ecbf5e 2138} >&5
5d64ca4e 2139
42ecbf5e 2140cat >&5 <<_ACEOF
5d64ca4e 2141
5d64ca4e 2142
42ecbf5e
DJ
2143## ----------- ##
2144## Core tests. ##
2145## ----------- ##
5d64ca4e 2146
42ecbf5e 2147_ACEOF
2469cfa2 2148
42ecbf5e
DJ
2149
2150# Keep a trace of the command line.
2151# Strip out --no-create and --no-recursion so they do not pile up.
2152# Strip out --silent because we don't want to record it for future runs.
2153# Also quote any args containing shell meta-characters.
2154# Make two passes to allow for proper duplicate-argument suppression.
2155ac_configure_args=
2156ac_configure_args0=
2157ac_configure_args1=
42ecbf5e
DJ
2158ac_must_keep_next=false
2159for ac_pass in 1 2
2160do
2161 for ac_arg
2162 do
2163 case $ac_arg in
2164 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2166 | -silent | --silent | --silen | --sile | --sil)
2167 continue ;;
81ecdfbb
RW
2168 *\'*)
2169 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2170 esac
2171 case $ac_pass in
81ecdfbb 2172 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2173 2)
81ecdfbb 2174 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2175 if test $ac_must_keep_next = true; then
2176 ac_must_keep_next=false # Got value, back to normal.
2177 else
2178 case $ac_arg in
2179 *=* | --config-cache | -C | -disable-* | --disable-* \
2180 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2181 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2182 | -with-* | --with-* | -without-* | --without-* | --x)
2183 case "$ac_configure_args0 " in
2184 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2185 esac
2186 ;;
2187 -* ) ac_must_keep_next=true ;;
2188 esac
2189 fi
81ecdfbb 2190 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2191 ;;
2192 esac
2193 done
2194done
81ecdfbb
RW
2195{ ac_configure_args0=; unset ac_configure_args0;}
2196{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2197
2198# When interrupted or exit'd, cleanup temporary files, and complete
2199# config.log. We remove comments because anyway the quotes in there
2200# would cause problems or look ugly.
81ecdfbb
RW
2201# WARNING: Use '\'' to represent an apostrophe within the trap.
2202# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2203trap 'exit_status=$?
2204 # Save into config.log some information that might help in debugging.
2205 {
2206 echo
2207
2208 cat <<\_ASBOX
2209## ---------------- ##
2210## Cache variables. ##
2211## ---------------- ##
2212_ASBOX
2213 echo
2214 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2215(
2216 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2217 eval ac_val=\$$ac_var
2218 case $ac_val in #(
2219 *${as_nl}*)
2220 case $ac_var in #(
2221 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2222$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2223 esac
2224 case $ac_var in #(
2225 _ | IFS | as_nl) ;; #(
2226 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2227 *) { eval $ac_var=; unset $ac_var;} ;;
2228 esac ;;
2229 esac
2230 done
42ecbf5e 2231 (set) 2>&1 |
81ecdfbb
RW
2232 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2233 *${as_nl}ac_space=\ *)
42ecbf5e 2234 sed -n \
81ecdfbb
RW
2235 "s/'\''/'\''\\\\'\'''\''/g;
2236 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2237 ;; #(
42ecbf5e 2238 *)
81ecdfbb 2239 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2240 ;;
81ecdfbb
RW
2241 esac |
2242 sort
2243)
42ecbf5e
DJ
2244 echo
2245
2246 cat <<\_ASBOX
2247## ----------------- ##
2248## Output variables. ##
2249## ----------------- ##
2250_ASBOX
2251 echo
2252 for ac_var in $ac_subst_vars
2253 do
81ecdfbb
RW
2254 eval ac_val=\$$ac_var
2255 case $ac_val in
2256 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2257 esac
2258 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2259 done | sort
2260 echo
2261
2262 if test -n "$ac_subst_files"; then
2263 cat <<\_ASBOX
81ecdfbb
RW
2264## ------------------- ##
2265## File substitutions. ##
2266## ------------------- ##
42ecbf5e
DJ
2267_ASBOX
2268 echo
2269 for ac_var in $ac_subst_files
2270 do
81ecdfbb
RW
2271 eval ac_val=\$$ac_var
2272 case $ac_val in
2273 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2274 esac
2275 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2276 done | sort
2277 echo
2278 fi
2279
2280 if test -s confdefs.h; then
2281 cat <<\_ASBOX
2282## ----------- ##
2283## confdefs.h. ##
2284## ----------- ##
2285_ASBOX
2286 echo
81ecdfbb 2287 cat confdefs.h
42ecbf5e
DJ
2288 echo
2289 fi
2290 test "$ac_signal" != 0 &&
81ecdfbb
RW
2291 $as_echo "$as_me: caught signal $ac_signal"
2292 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2293 } >&5
81ecdfbb
RW
2294 rm -f core *.core core.conftest.* &&
2295 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2296 exit $exit_status
81ecdfbb 2297' 0
42ecbf5e 2298for ac_signal in 1 2 13 15; do
81ecdfbb 2299 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2300done
2301ac_signal=0
2302
2303# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2304rm -f -r conftest* confdefs.h
2305
2306$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2307
2308# Predefined preprocessor variables.
2309
2310cat >>confdefs.h <<_ACEOF
2311#define PACKAGE_NAME "$PACKAGE_NAME"
2312_ACEOF
2313
42ecbf5e
DJ
2314cat >>confdefs.h <<_ACEOF
2315#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2316_ACEOF
2317
42ecbf5e
DJ
2318cat >>confdefs.h <<_ACEOF
2319#define PACKAGE_VERSION "$PACKAGE_VERSION"
2320_ACEOF
2321
42ecbf5e
DJ
2322cat >>confdefs.h <<_ACEOF
2323#define PACKAGE_STRING "$PACKAGE_STRING"
2324_ACEOF
2325
42ecbf5e
DJ
2326cat >>confdefs.h <<_ACEOF
2327#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2328_ACEOF
2329
81ecdfbb
RW
2330cat >>confdefs.h <<_ACEOF
2331#define PACKAGE_URL "$PACKAGE_URL"
2332_ACEOF
2333
42ecbf5e
DJ
2334
2335# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2336# Prefer an explicitly selected file to automatically selected ones.
2337ac_site_file1=NONE
2338ac_site_file2=NONE
2339if test -n "$CONFIG_SITE"; then
2340 ac_site_file1=$CONFIG_SITE
2341elif test "x$prefix" != xNONE; then
2342 ac_site_file1=$prefix/share/config.site
2343 ac_site_file2=$prefix/etc/config.site
2344else
2345 ac_site_file1=$ac_default_prefix/share/config.site
2346 ac_site_file2=$ac_default_prefix/etc/config.site
2347fi
2348for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2349do
2350 test "x$ac_site_file" = xNONE && continue
42ecbf5e 2351 if test -r "$ac_site_file"; then
81ecdfbb
RW
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2353$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e
DJ
2354 sed 's/^/| /' "$ac_site_file" >&5
2355 . "$ac_site_file"
2356 fi
2357done
2358
2359if test -r "$cache_file"; then
2360 # Some versions of bash will fail to source /dev/null (special
2361 # files actually), so we avoid doing that.
2362 if test -f "$cache_file"; then
81ecdfbb
RW
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2364$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2365 case $cache_file in
81ecdfbb
RW
2366 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2367 *) . "./$cache_file";;
42ecbf5e
DJ
2368 esac
2369 fi
2370else
81ecdfbb
RW
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2372$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2373 >$cache_file
2374fi
2375
2376# Check that the precious variables saved in the cache have kept the same
2377# value.
2378ac_cache_corrupted=false
81ecdfbb 2379for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2380 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2381 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2382 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2383 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2384 case $ac_old_set,$ac_new_set in
2385 set,)
81ecdfbb
RW
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2387$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2388 ac_cache_corrupted=: ;;
2389 ,set)
81ecdfbb
RW
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2391$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2392 ac_cache_corrupted=: ;;
2393 ,);;
2394 *)
2395 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2396 # differences in whitespace do not lead to failure.
2397 ac_old_val_w=`echo x $ac_old_val`
2398 ac_new_val_w=`echo x $ac_new_val`
2399 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2401$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2402 ac_cache_corrupted=:
2403 else
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2405$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2406 eval $ac_var=\$ac_old_val
2407 fi
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2409$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2411$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2412 fi;;
2413 esac
2414 # Pass precious variables to config.status.
2415 if test "$ac_new_set" = set; then
2416 case $ac_new_val in
81ecdfbb 2417 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2418 *) ac_arg=$ac_var=$ac_new_val ;;
2419 esac
2420 case " $ac_configure_args " in
2421 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2422 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2423 esac
2424 fi
2425done
2426if $ac_cache_corrupted; then
81ecdfbb
RW
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2430$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2431 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2432fi
81ecdfbb
RW
2433## -------------------- ##
2434## Main body of script. ##
2435## -------------------- ##
42ecbf5e
DJ
2436
2437ac_ext=c
2438ac_cpp='$CPP $CPPFLAGS'
2439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2441ac_compiler_gnu=$ac_cv_c_compiler_gnu
2442
2443
2444
42ecbf5e 2445
da594c4a 2446
42ecbf5e
DJ
2447
2448
2449ac_aux_dir=
81ecdfbb
RW
2450for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2451 for ac_t in install-sh install.sh shtool; do
2452 if test -f "$ac_dir/$ac_t"; then
2453 ac_aux_dir=$ac_dir
2454 ac_install_sh="$ac_aux_dir/$ac_t -c"
2455 break 2
2456 fi
2457 done
42ecbf5e
DJ
2458done
2459if test -z "$ac_aux_dir"; then
81ecdfbb 2460 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2461fi
81ecdfbb
RW
2462
2463# These three variables are undocumented and unsupported,
2464# and are intended to be withdrawn in a future Autoconf release.
2465# They can cause serious problems if a builder's source tree is in a directory
2466# whose full name contains unusual characters.
2467ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2468ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2469ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2470
42ecbf5e
DJ
2471
2472# Make sure we can run config.sub.
81ecdfbb
RW
2473$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2474 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2475
2476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2477$as_echo_n "checking build system type... " >&6; }
2478if test "${ac_cv_build+set}" = set; then :
2479 $as_echo_n "(cached) " >&6
2480else
2481 ac_build_alias=$build_alias
2482test "x$ac_build_alias" = x &&
2483 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2484test "x$ac_build_alias" = x &&
2485 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2486ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2487 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2488
2489fi
2490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2491$as_echo "$ac_cv_build" >&6; }
2492case $ac_cv_build in
2493*-*-*) ;;
2494*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2495esac
42ecbf5e 2496build=$ac_cv_build
81ecdfbb
RW
2497ac_save_IFS=$IFS; IFS='-'
2498set x $ac_cv_build
2499shift
2500build_cpu=$1
2501build_vendor=$2
2502shift; shift
2503# Remember, the first character of IFS is used to create $*,
2504# except with old shells:
2505build_os=$*
2506IFS=$ac_save_IFS
2507case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2508
2509
81ecdfbb
RW
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2511$as_echo_n "checking host system type... " >&6; }
2512if test "${ac_cv_host+set}" = set; then :
2513 $as_echo_n "(cached) " >&6
2514else
2515 if test "x$host_alias" = x; then
2516 ac_cv_host=$ac_cv_build
42ecbf5e 2517else
81ecdfbb
RW
2518 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2519 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2520fi
42ecbf5e
DJ
2521
2522fi
81ecdfbb
RW
2523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2524$as_echo "$ac_cv_host" >&6; }
2525case $ac_cv_host in
2526*-*-*) ;;
2527*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2528esac
42ecbf5e 2529host=$ac_cv_host
81ecdfbb
RW
2530ac_save_IFS=$IFS; IFS='-'
2531set x $ac_cv_host
2532shift
2533host_cpu=$1
2534host_vendor=$2
2535shift; shift
2536# Remember, the first character of IFS is used to create $*,
2537# except with old shells:
2538host_os=$*
2539IFS=$ac_save_IFS
2540case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2541
2542
81ecdfbb
RW
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2544$as_echo_n "checking target system type... " >&6; }
2545if test "${ac_cv_target+set}" = set; then :
2546 $as_echo_n "(cached) " >&6
42ecbf5e 2547else
81ecdfbb
RW
2548 if test "x$target_alias" = x; then
2549 ac_cv_target=$ac_cv_host
2550else
2551 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2552 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2553fi
42ecbf5e
DJ
2554
2555fi
81ecdfbb
RW
2556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2557$as_echo "$ac_cv_target" >&6; }
2558case $ac_cv_target in
2559*-*-*) ;;
2560*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2561esac
42ecbf5e 2562target=$ac_cv_target
81ecdfbb
RW
2563ac_save_IFS=$IFS; IFS='-'
2564set x $ac_cv_target
2565shift
2566target_cpu=$1
2567target_vendor=$2
2568shift; shift
2569# Remember, the first character of IFS is used to create $*,
2570# except with old shells:
2571target_os=$*
2572IFS=$ac_save_IFS
2573case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2574
2575
2576# The aliases save the names the user supplied, while $host etc.
2577# will get canonicalized.
2578test -n "$target_alias" &&
2579 test "$program_prefix$program_suffix$program_transform_name" = \
2580 NONENONEs,x,x, &&
2581 program_prefix=${target_alias}-
2582ac_ext=c
2583ac_cpp='$CPP $CPPFLAGS'
2584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2586ac_compiler_gnu=$ac_cv_c_compiler_gnu
2587if test -n "$ac_tool_prefix"; then
2588 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2589set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591$as_echo_n "checking for $ac_word... " >&6; }
2592if test "${ac_cv_prog_CC+set}" = set; then :
2593 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2594else
2595 if test -n "$CC"; then
2596 ac_cv_prog_CC="$CC" # Let the user override the test.
2597else
2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599for as_dir in $PATH
2600do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2605 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2607 break 2
2608 fi
2609done
81ecdfbb
RW
2610 done
2611IFS=$as_save_IFS
42ecbf5e
DJ
2612
2613fi
2614fi
2615CC=$ac_cv_prog_CC
2616if test -n "$CC"; then
81ecdfbb
RW
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2618$as_echo "$CC" >&6; }
42ecbf5e 2619else
81ecdfbb
RW
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621$as_echo "no" >&6; }
42ecbf5e
DJ
2622fi
2623
81ecdfbb 2624
42ecbf5e
DJ
2625fi
2626if test -z "$ac_cv_prog_CC"; then
2627 ac_ct_CC=$CC
2628 # Extract the first word of "gcc", so it can be a program name with args.
2629set dummy gcc; ac_word=$2
81ecdfbb
RW
2630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631$as_echo_n "checking for $ac_word... " >&6; }
2632if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2633 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2634else
2635 if test -n "$ac_ct_CC"; then
2636 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2637else
2638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639for as_dir in $PATH
2640do
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2645 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2647 break 2
2648 fi
2649done
81ecdfbb
RW
2650 done
2651IFS=$as_save_IFS
42ecbf5e
DJ
2652
2653fi
2654fi
2655ac_ct_CC=$ac_cv_prog_ac_ct_CC
2656if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2658$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2659else
81ecdfbb
RW
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661$as_echo "no" >&6; }
42ecbf5e
DJ
2662fi
2663
81ecdfbb
RW
2664 if test "x$ac_ct_CC" = x; then
2665 CC=""
2666 else
2667 case $cross_compiling:$ac_tool_warned in
2668yes:)
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2671ac_tool_warned=yes ;;
2672esac
2673 CC=$ac_ct_CC
2674 fi
42ecbf5e
DJ
2675else
2676 CC="$ac_cv_prog_CC"
2677fi
2678
2679if test -z "$CC"; then
81ecdfbb
RW
2680 if test -n "$ac_tool_prefix"; then
2681 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
42ecbf5e 2682set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684$as_echo_n "checking for $ac_word... " >&6; }
2685if test "${ac_cv_prog_CC+set}" = set; then :
2686 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2687else
2688 if test -n "$CC"; then
2689 ac_cv_prog_CC="$CC" # Let the user override the test.
2690else
2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2698 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2700 break 2
2701 fi
2702done
81ecdfbb
RW
2703 done
2704IFS=$as_save_IFS
42ecbf5e
DJ
2705
2706fi
2707fi
2708CC=$ac_cv_prog_CC
2709if test -n "$CC"; then
81ecdfbb
RW
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2711$as_echo "$CC" >&6; }
42ecbf5e 2712else
81ecdfbb
RW
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714$as_echo "no" >&6; }
42ecbf5e
DJ
2715fi
2716
42ecbf5e 2717
81ecdfbb 2718 fi
42ecbf5e
DJ
2719fi
2720if test -z "$CC"; then
2721 # Extract the first word of "cc", so it can be a program name with args.
2722set dummy cc; ac_word=$2
81ecdfbb
RW
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724$as_echo_n "checking for $ac_word... " >&6; }
2725if test "${ac_cv_prog_CC+set}" = set; then :
2726 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2727else
2728 if test -n "$CC"; then
2729 ac_cv_prog_CC="$CC" # Let the user override the test.
2730else
2731 ac_prog_rejected=no
2732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733for as_dir in $PATH
2734do
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e
DJ
2739 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2740 ac_prog_rejected=yes
2741 continue
2742 fi
2743 ac_cv_prog_CC="cc"
81ecdfbb 2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2745 break 2
2746 fi
2747done
81ecdfbb
RW
2748 done
2749IFS=$as_save_IFS
42ecbf5e
DJ
2750
2751if test $ac_prog_rejected = yes; then
2752 # We found a bogon in the path, so make sure we never use it.
2753 set dummy $ac_cv_prog_CC
2754 shift
2755 if test $# != 0; then
2756 # We chose a different compiler from the bogus one.
2757 # However, it has the same basename, so the bogon will be chosen
2758 # first if we set CC to just the basename; use the full file name.
2759 shift
2760 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2761 fi
2762fi
2763fi
2764fi
2765CC=$ac_cv_prog_CC
2766if test -n "$CC"; then
81ecdfbb
RW
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2768$as_echo "$CC" >&6; }
42ecbf5e 2769else
81ecdfbb
RW
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771$as_echo "no" >&6; }
42ecbf5e
DJ
2772fi
2773
81ecdfbb 2774
42ecbf5e
DJ
2775fi
2776if test -z "$CC"; then
2777 if test -n "$ac_tool_prefix"; then
81ecdfbb 2778 for ac_prog in cl.exe
42ecbf5e
DJ
2779 do
2780 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2781set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783$as_echo_n "checking for $ac_word... " >&6; }
2784if test "${ac_cv_prog_CC+set}" = set; then :
2785 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2786else
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC="$CC" # Let the user override the test.
2789else
2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2797 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2799 break 2
2800 fi
2801done
81ecdfbb
RW
2802 done
2803IFS=$as_save_IFS
42ecbf5e
DJ
2804
2805fi
2806fi
2807CC=$ac_cv_prog_CC
2808if test -n "$CC"; then
81ecdfbb
RW
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2810$as_echo "$CC" >&6; }
42ecbf5e 2811else
81ecdfbb
RW
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813$as_echo "no" >&6; }
42ecbf5e
DJ
2814fi
2815
81ecdfbb 2816
42ecbf5e
DJ
2817 test -n "$CC" && break
2818 done
2819fi
2820if test -z "$CC"; then
2821 ac_ct_CC=$CC
81ecdfbb 2822 for ac_prog in cl.exe
42ecbf5e
DJ
2823do
2824 # Extract the first word of "$ac_prog", so it can be a program name with args.
2825set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827$as_echo_n "checking for $ac_word... " >&6; }
2828if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2829 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2830else
2831 if test -n "$ac_ct_CC"; then
2832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833else
2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835for as_dir in $PATH
2836do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2841 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2843 break 2
2844 fi
2845done
81ecdfbb
RW
2846 done
2847IFS=$as_save_IFS
42ecbf5e
DJ
2848
2849fi
2850fi
2851ac_ct_CC=$ac_cv_prog_ac_ct_CC
2852if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2854$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2855else
81ecdfbb
RW
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857$as_echo "no" >&6; }
42ecbf5e
DJ
2858fi
2859
81ecdfbb 2860
42ecbf5e
DJ
2861 test -n "$ac_ct_CC" && break
2862done
2863
81ecdfbb
RW
2864 if test "x$ac_ct_CC" = x; then
2865 CC=""
2866 else
2867 case $cross_compiling:$ac_tool_warned in
2868yes:)
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2871ac_tool_warned=yes ;;
2872esac
2873 CC=$ac_ct_CC
2874 fi
42ecbf5e
DJ
2875fi
2876
2877fi
2878
2879
81ecdfbb
RW
2880test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2882as_fn_error "no acceptable C compiler found in \$PATH
2883See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
2884
2885# Provide some information about the compiler.
81ecdfbb
RW
2886$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2887set X $ac_compile
2888ac_compiler=$2
2889for ac_option in --version -v -V -qversion; do
2890 { { ac_try="$ac_compiler $ac_option >&5"
2891case "(($ac_try" in
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2894esac
2895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2896$as_echo "$ac_try_echo"; } >&5
2897 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
42ecbf5e 2898 ac_status=$?
81ecdfbb
RW
2899 if test -s conftest.err; then
2900 sed '10a\
2901... rest of stderr output deleted ...
2902 10q' conftest.err >conftest.er1
2903 cat conftest.er1 >&5
2904 rm -f conftest.er1 conftest.err
2905 fi
2906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2907 test $ac_status = 0; }
2908done
42ecbf5e 2909
81ecdfbb 2910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
2911/* end confdefs.h. */
2912
2913int
2914main ()
2915{
2916
2917 ;
2918 return 0;
2919}
2920_ACEOF
2921ac_clean_files_save=$ac_clean_files
81ecdfbb 2922ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
42ecbf5e
DJ
2923# Try to create an executable without -o first, disregard a.out.
2924# It will help us diagnose broken compilers, and finding out an intuition
2925# of exeext.
81ecdfbb
RW
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2927$as_echo_n "checking for C compiler default output file name... " >&6; }
2928ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2929
2930# The possible output files:
2931ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2932
2933ac_rmfiles=
2934for ac_file in $ac_files
2935do
2936 case $ac_file in
2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2938 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2939 esac
2940done
2941rm -f $ac_rmfiles
2942
2943if { { ac_try="$ac_link_default"
2944case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2947esac
2948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2949$as_echo "$ac_try_echo"; } >&5
2950 (eval "$ac_link_default") 2>&5
2951 ac_status=$?
2952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2953 test $ac_status = 0; }; then :
2954 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2955# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2956# in a Makefile. We should not override ac_cv_exeext if it was cached,
2957# so that the user can short-circuit this test for compilers unknown to
2958# Autoconf.
2959for ac_file in $ac_files ''
42ecbf5e
DJ
2960do
2961 test -f "$ac_file" || continue
2962 case $ac_file in
81ecdfbb 2963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
42ecbf5e
DJ
2964 ;;
2965 [ab].out )
2966 # We found the default executable, but exeext='' is most
2967 # certainly right.
2968 break;;
2969 *.* )
81ecdfbb
RW
2970 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2971 then :; else
2972 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2973 fi
2974 # We set ac_cv_exeext here because the later test for it is not
2975 # safe: cross compilers may not add the suffix if given an `-o'
2976 # argument, so we may need to know it at that point already.
2977 # Even if this section looks crufty: it has the advantage of
2978 # actually working.
42ecbf5e
DJ
2979 break;;
2980 * )
2981 break;;
2982 esac
2983done
81ecdfbb
RW
2984test "$ac_cv_exeext" = no && ac_cv_exeext=
2985
42ecbf5e 2986else
81ecdfbb
RW
2987 ac_file=''
2988fi
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2990$as_echo "$ac_file" >&6; }
2991if test -z "$ac_file"; then :
2992 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
2993sed 's/^/| /' conftest.$ac_ext >&5
2994
81ecdfbb
RW
2995{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2997{ as_fn_set_status 77
2998as_fn_error "C compiler cannot create executables
2999See \`config.log' for more details." "$LINENO" 5; }; }
42ecbf5e 3000fi
42ecbf5e 3001ac_exeext=$ac_cv_exeext
42ecbf5e 3002
81ecdfbb 3003# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3004# the compiler is broken, or we cross compile.
81ecdfbb
RW
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3006$as_echo_n "checking whether the C compiler works... " >&6; }
42ecbf5e
DJ
3007# If not cross compiling, check that we can run a simple program.
3008if test "$cross_compiling" != yes; then
3009 if { ac_try='./$ac_file'
81ecdfbb
RW
3010 { { case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013esac
3014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3015$as_echo "$ac_try_echo"; } >&5
3016 (eval "$ac_try") 2>&5
42ecbf5e 3017 ac_status=$?
81ecdfbb
RW
3018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3019 test $ac_status = 0; }; }; then
42ecbf5e
DJ
3020 cross_compiling=no
3021 else
3022 if test "$cross_compiling" = maybe; then
3023 cross_compiling=yes
3024 else
81ecdfbb
RW
3025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3027as_fn_error "cannot run C compiled programs.
42ecbf5e 3028If you meant to cross compile, use \`--host'.
81ecdfbb 3029See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3030 fi
3031 fi
3032fi
81ecdfbb
RW
3033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3034$as_echo "yes" >&6; }
42ecbf5e 3035
81ecdfbb 3036rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
42ecbf5e 3037ac_clean_files=$ac_clean_files_save
81ecdfbb 3038# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3039# the compiler is broken, or we cross compile.
81ecdfbb
RW
3040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3041$as_echo_n "checking whether we are cross compiling... " >&6; }
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3043$as_echo "$cross_compiling" >&6; }
3044
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3046$as_echo_n "checking for suffix of executables... " >&6; }
3047if { { ac_try="$ac_link"
3048case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051esac
3052eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3053$as_echo "$ac_try_echo"; } >&5
3054 (eval "$ac_link") 2>&5
42ecbf5e 3055 ac_status=$?
81ecdfbb
RW
3056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057 test $ac_status = 0; }; then :
42ecbf5e
DJ
3058 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3059# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3060# work properly (i.e., refer to `conftest.exe'), while it won't with
3061# `rm'.
3062for ac_file in conftest.exe conftest conftest.*; do
3063 test -f "$ac_file" || continue
3064 case $ac_file in
81ecdfbb 3065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
42ecbf5e 3066 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
42ecbf5e
DJ
3067 break;;
3068 * ) break;;
3069 esac
3070done
3071else
81ecdfbb
RW
3072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074as_fn_error "cannot compute suffix of executables: cannot compile and link
3075See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3076fi
42ecbf5e 3077rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3079$as_echo "$ac_cv_exeext" >&6; }
42ecbf5e
DJ
3080
3081rm -f conftest.$ac_ext
3082EXEEXT=$ac_cv_exeext
3083ac_exeext=$EXEEXT
81ecdfbb
RW
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3085$as_echo_n "checking for suffix of object files... " >&6; }
3086if test "${ac_cv_objext+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
42ecbf5e 3088else
81ecdfbb 3089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3090/* end confdefs.h. */
3091
3092int
3093main ()
3094{
3095
3096 ;
3097 return 0;
3098}
3099_ACEOF
3100rm -f conftest.o conftest.obj
81ecdfbb
RW
3101if { { ac_try="$ac_compile"
3102case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105esac
3106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107$as_echo "$ac_try_echo"; } >&5
3108 (eval "$ac_compile") 2>&5
3109 ac_status=$?
3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111 test $ac_status = 0; }; then :
3112 for ac_file in conftest.o conftest.obj conftest.*; do
3113 test -f "$ac_file" || continue;
42ecbf5e 3114 case $ac_file in
81ecdfbb 3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
42ecbf5e
DJ
3116 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3117 break;;
3118 esac
3119done
3120else
81ecdfbb 3121 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3122sed 's/^/| /' conftest.$ac_ext >&5
3123
81ecdfbb
RW
3124{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126as_fn_error "cannot compute suffix of object files: cannot compile
3127See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3128fi
42ecbf5e
DJ
3129rm -f conftest.$ac_cv_objext conftest.$ac_ext
3130fi
81ecdfbb
RW
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3132$as_echo "$ac_cv_objext" >&6; }
42ecbf5e
DJ
3133OBJEXT=$ac_cv_objext
3134ac_objext=$OBJEXT
81ecdfbb
RW
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3136$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3137if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3138 $as_echo_n "(cached) " >&6
42ecbf5e 3139else
81ecdfbb 3140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3141/* end confdefs.h. */
3142
3143int
3144main ()
3145{
3146#ifndef __GNUC__
3147 choke me
3148#endif
3149
3150 ;
3151 return 0;
3152}
3153_ACEOF
81ecdfbb 3154if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3155 ac_compiler_gnu=yes
3156else
81ecdfbb 3157 ac_compiler_gnu=no
42ecbf5e 3158fi
81ecdfbb 3159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e
DJ
3160ac_cv_c_compiler_gnu=$ac_compiler_gnu
3161
3162fi
81ecdfbb
RW
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3164$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3165if test $ac_compiler_gnu = yes; then
3166 GCC=yes
3167else
3168 GCC=
3169fi
42ecbf5e
DJ
3170ac_test_CFLAGS=${CFLAGS+set}
3171ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3173$as_echo_n "checking whether $CC accepts -g... " >&6; }
3174if test "${ac_cv_prog_cc_g+set}" = set; then :
3175 $as_echo_n "(cached) " >&6
3176else
3177 ac_save_c_werror_flag=$ac_c_werror_flag
3178 ac_c_werror_flag=yes
3179 ac_cv_prog_cc_g=no
3180 CFLAGS="-g"
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3182/* end confdefs.h. */
3183
3184int
3185main ()
3186{
3187
3188 ;
3189 return 0;
3190}
3191_ACEOF
81ecdfbb 3192if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3193 ac_cv_prog_cc_g=yes
3194else
81ecdfbb
RW
3195 CFLAGS=""
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197/* end confdefs.h. */
3198
3199int
3200main ()
3201{
3202
3203 ;
3204 return 0;
3205}
3206_ACEOF
3207if ac_fn_c_try_compile "$LINENO"; then :
3208
3209else
3210 ac_c_werror_flag=$ac_save_c_werror_flag
3211 CFLAGS="-g"
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213/* end confdefs.h. */
3214
3215int
3216main ()
3217{
42ecbf5e 3218
81ecdfbb
RW
3219 ;
3220 return 0;
3221}
3222_ACEOF
3223if ac_fn_c_try_compile "$LINENO"; then :
3224 ac_cv_prog_cc_g=yes
3225fi
3226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227fi
3228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 3229fi
81ecdfbb
RW
3230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 ac_c_werror_flag=$ac_save_c_werror_flag
42ecbf5e 3232fi
81ecdfbb
RW
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3234$as_echo "$ac_cv_prog_cc_g" >&6; }
42ecbf5e
DJ
3235if test "$ac_test_CFLAGS" = set; then
3236 CFLAGS=$ac_save_CFLAGS
3237elif test $ac_cv_prog_cc_g = yes; then
3238 if test "$GCC" = yes; then
3239 CFLAGS="-g -O2"
3240 else
3241 CFLAGS="-g"
3242 fi
3243else
3244 if test "$GCC" = yes; then
3245 CFLAGS="-O2"
3246 else
3247 CFLAGS=
3248 fi
3249fi
81ecdfbb
RW
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3251$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3252if test "${ac_cv_prog_cc_c89+set}" = set; then :
3253 $as_echo_n "(cached) " >&6
42ecbf5e 3254else
81ecdfbb 3255 ac_cv_prog_cc_c89=no
42ecbf5e 3256ac_save_CC=$CC
81ecdfbb 3257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3258/* end confdefs.h. */
3259#include <stdarg.h>
3260#include <stdio.h>
3261#include <sys/types.h>
3262#include <sys/stat.h>
3263/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3264struct buf { int x; };
3265FILE * (*rcsopen) (struct buf *, struct stat *, int);
3266static char *e (p, i)
3267 char **p;
3268 int i;
3269{
3270 return p[i];
3271}
3272static char *f (char * (*g) (char **, int), char **p, ...)
3273{
3274 char *s;
3275 va_list v;
3276 va_start (v,p);
3277 s = g (p, va_arg (v,int));
3278 va_end (v);
3279 return s;
3280}
3281
3282/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3283 function prototypes and stuff, but not '\xHH' hex character constants.
3284 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3285 as 'x'. The following induces an error, until -std is added to get
42ecbf5e
DJ
3286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3287 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3288 that's true only with -std. */
42ecbf5e
DJ
3289int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3290
81ecdfbb
RW
3291/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3292 inside strings and character constants. */
3293#define FOO(x) 'x'
3294int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3295
42ecbf5e
DJ
3296int test (int i, double x);
3297struct s1 {int (*f) (int a);};
3298struct s2 {int (*f) (double a);};
3299int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3300int argc;
3301char **argv;
3302int
3303main ()
3304{
3305return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3306 ;
3307 return 0;
3308}
3309_ACEOF
81ecdfbb
RW
3310for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3311 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
42ecbf5e
DJ
3312do
3313 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3314 if ac_fn_c_try_compile "$LINENO"; then :
3315 ac_cv_prog_cc_c89=$ac_arg
42ecbf5e 3316fi
81ecdfbb
RW
3317rm -f core conftest.err conftest.$ac_objext
3318 test "x$ac_cv_prog_cc_c89" != "xno" && break
42ecbf5e 3319done
81ecdfbb 3320rm -f conftest.$ac_ext
42ecbf5e
DJ
3321CC=$ac_save_CC
3322
3323fi
81ecdfbb
RW
3324# AC_CACHE_VAL
3325case "x$ac_cv_prog_cc_c89" in
3326 x)
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3328$as_echo "none needed" >&6; } ;;
3329 xno)
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3331$as_echo "unsupported" >&6; } ;;
42ecbf5e 3332 *)
81ecdfbb
RW
3333 CC="$CC $ac_cv_prog_cc_c89"
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3335$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
42ecbf5e 3336esac
81ecdfbb 3337if test "x$ac_cv_prog_cc_c89" != xno; then :
42ecbf5e 3338
42ecbf5e
DJ
3339fi
3340
42ecbf5e
DJ
3341ac_ext=c
3342ac_cpp='$CPP $CPPFLAGS'
3343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3345ac_compiler_gnu=$ac_cv_c_compiler_gnu
3346
3347
81ecdfbb
RW
3348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3349$as_echo_n "checking for library containing strerror... " >&6; }
3350if test "${ac_cv_search_strerror+set}" = set; then :
3351 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3352else
3353 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3355/* end confdefs.h. */
3356
81ecdfbb
RW
3357/* Override any GCC internal prototype to avoid an error.
3358 Use char because int might match the return type of a GCC
3359 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
3360#ifdef __cplusplus
3361extern "C"
3362#endif
42ecbf5e
DJ
3363char strerror ();
3364int
3365main ()
3366{
81ecdfbb 3367return strerror ();
42ecbf5e
DJ
3368 ;
3369 return 0;
3370}
3371_ACEOF
81ecdfbb
RW
3372for ac_lib in '' cposix; do
3373 if test -z "$ac_lib"; then
3374 ac_res="none required"
3375 else
3376 ac_res=-l$ac_lib
42ecbf5e 3377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3378 fi
3379 if ac_fn_c_try_link "$LINENO"; then :
3380 ac_cv_search_strerror=$ac_res
3381fi
3382rm -f core conftest.err conftest.$ac_objext \
3383 conftest$ac_exeext
3384 if test "${ac_cv_search_strerror+set}" = set; then :
3385 break
3386fi
3387done
3388if test "${ac_cv_search_strerror+set}" = set; then :
42ecbf5e 3389
42ecbf5e 3390else
81ecdfbb 3391 ac_cv_search_strerror=no
42ecbf5e 3392fi
81ecdfbb 3393rm conftest.$ac_ext
42ecbf5e
DJ
3394LIBS=$ac_func_search_save_LIBS
3395fi
81ecdfbb
RW
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3397$as_echo "$ac_cv_search_strerror" >&6; }
3398ac_res=$ac_cv_search_strerror
3399if test "$ac_res" != no; then :
3400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e
DJ
3401
3402fi
e5a52504
MM
3403
3404
3405BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
81ecdfbb
RW
3406am__api_version='1.11'
3407
e5a52504
MM
3408# Find a good install program. We prefer a C program (faster),
3409# so one script is as good as another. But avoid the broken or
3410# incompatible versions:
3411# SysV /etc/install, /usr/sbin/install
3412# SunOS /usr/etc/install
3413# IRIX /sbin/install
3414# AIX /bin/install
42ecbf5e 3415# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
3416# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3417# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3418# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 3419# OS/2's system install, which has a completely different semantic
e5a52504 3420# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3421# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3423$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5a52504 3424if test -z "$INSTALL"; then
81ecdfbb
RW
3425if test "${ac_cv_path_install+set}" = set; then :
3426 $as_echo_n "(cached) " >&6
e5a52504 3427else
42ecbf5e
DJ
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429for as_dir in $PATH
3430do
3431 IFS=$as_save_IFS
3432 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3433 # Account for people who put trailing slashes in PATH elements.
3434case $as_dir/ in #((
3435 ./ | .// | /[cC]/* | \
42ecbf5e 3436 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3437 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
42ecbf5e
DJ
3438 /usr/ucb/* ) ;;
3439 *)
3440 # OSF1 and SCO ODT 3.0 have their own names for install.
3441 # Don't use installbsd from OSF since it installs stuff as root
3442 # by default.
3443 for ac_prog in ginstall scoinst install; do
3444 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3445 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
252b5132 3446 if test $ac_prog = install &&
42ecbf5e 3447 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3448 # AIX install. It has an incompatible calling convention.
3449 :
42ecbf5e
DJ
3450 elif test $ac_prog = install &&
3451 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3452 # program-specific install script used by HP pwplus--don't use.
3453 :
252b5132 3454 else
58c85be7
RW
3455 rm -rf conftest.one conftest.two conftest.dir
3456 echo one > conftest.one
3457 echo two > conftest.two
3458 mkdir conftest.dir
3459 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3460 test -s conftest.one && test -s conftest.two &&
3461 test -s conftest.dir/conftest.one &&
3462 test -s conftest.dir/conftest.two
3463 then
3464 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3465 break 3
3466 fi
252b5132
RH
3467 fi
3468 fi
3469 done
42ecbf5e
DJ
3470 done
3471 ;;
3472esac
81ecdfbb
RW
3473
3474 done
3475IFS=$as_save_IFS
42ecbf5e 3476
58c85be7 3477rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3478
3479fi
3480 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 3481 INSTALL=$ac_cv_path_install
252b5132 3482 else
58c85be7
RW
3483 # As a last resort, use the slow shell script. Don't cache a
3484 # value for INSTALL within a source directory, because that will
252b5132 3485 # break other packages using the cache if that directory is
58c85be7 3486 # removed, or if the value is a relative name.
42ecbf5e 3487 INSTALL=$ac_install_sh
252b5132
RH
3488 fi
3489fi
81ecdfbb
RW
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3491$as_echo "$INSTALL" >&6; }
252b5132
RH
3492
3493# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3494# It thinks the first close brace ends the variable substitution.
3495test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3496
42ecbf5e 3497test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3498
3499test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3500
81ecdfbb
RW
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3502$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3503# Just in case
3504sleep 1
42ecbf5e 3505echo timestamp > conftest.file
81ecdfbb
RW
3506# Reject unsafe characters in $srcdir or the absolute working directory
3507# name. Accept space and tab only in the latter.
3508am_lf='
3509'
3510case `pwd` in
3511 *[\\\"\#\$\&\'\`$am_lf]*)
3512 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3513esac
3514case $srcdir in
3515 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3516 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3517esac
3518
252b5132
RH
3519# Do `set' in a subshell so we don't clobber the current shell's
3520# arguments. Must try -L first in case configure is actually a
3521# symlink; some systems play weird games with the mod time of symlinks
3522# (eg FreeBSD returns the mod time of the symlink's containing
3523# directory).
3524if (
81ecdfbb 3525 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3526 if test "$*" = "X"; then
3527 # -L didn't work.
81ecdfbb 3528 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3529 fi
42ecbf5e
DJ
3530 rm -f conftest.file
3531 if test "$*" != "X $srcdir/configure conftest.file" \
3532 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3533
3534 # If neither matched, then we have a broken ls. This can happen
3535 # if, for instance, CONFIG_SHELL is bash and it inherits a
3536 # broken ls alias from the environment. This has actually
3537 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3538 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3539alias in your environment" "$LINENO" 5
252b5132
RH
3540 fi
3541
42ecbf5e 3542 test "$2" = conftest.file
252b5132
RH
3543 )
3544then
3545 # Ok.
3546 :
3547else
81ecdfbb
RW
3548 as_fn_error "newly created file is older than distributed files!
3549Check your system clock" "$LINENO" 5
252b5132 3550fi
81ecdfbb
RW
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3552$as_echo "yes" >&6; }
252b5132 3553test "$program_prefix" != NONE &&
81ecdfbb 3554 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3555# Use a double $ so make ignores it.
3556test "$program_suffix" != NONE &&
81ecdfbb
RW
3557 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3558# Double any \ or $.
42ecbf5e 3559# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3560ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3561program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e
DJ
3562
3563# expand $ac_aux_dir to an absolute path
3564am_aux_dir=`cd $ac_aux_dir && pwd`
3565
81ecdfbb
RW
3566if test x"${MISSING+set}" != xset; then
3567 case $am_aux_dir in
3568 *\ * | *\ *)
3569 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3570 *)
3571 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3572 esac
3573fi
42ecbf5e
DJ
3574# Use eval to expand $SHELL
3575if eval "$MISSING --run true"; then
3576 am_missing_run="$MISSING --run "
3577else
3578 am_missing_run=
81ecdfbb
RW
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3580$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3581fi
3582
3583if test x"${install_sh}" != xset; then
3584 case $am_aux_dir in
3585 *\ * | *\ *)
3586 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3587 *)
3588 install_sh="\${SHELL} $am_aux_dir/install-sh"
3589 esac
3590fi
3591
3592# Installed binaries are usually stripped using `strip' when the user
3593# run `make install-strip'. However `strip' might not be the right
3594# tool to use in cross-compilation environments, therefore Automake
3595# will honor the `STRIP' environment variable to overrule this program.
3596if test "$cross_compiling" != no; then
3597 if test -n "$ac_tool_prefix"; then
3598 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3599set dummy ${ac_tool_prefix}strip; ac_word=$2
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601$as_echo_n "checking for $ac_word... " >&6; }
3602if test "${ac_cv_prog_STRIP+set}" = set; then :
3603 $as_echo_n "(cached) " >&6
3604else
3605 if test -n "$STRIP"; then
3606 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3607else
3608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609for as_dir in $PATH
3610do
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3615 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 break 2
3618 fi
3619done
3620 done
3621IFS=$as_save_IFS
3622
3623fi
3624fi
3625STRIP=$ac_cv_prog_STRIP
3626if test -n "$STRIP"; then
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3628$as_echo "$STRIP" >&6; }
3629else
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631$as_echo "no" >&6; }
3632fi
3633
3634
3635fi
3636if test -z "$ac_cv_prog_STRIP"; then
3637 ac_ct_STRIP=$STRIP
3638 # Extract the first word of "strip", so it can be a program name with args.
3639set dummy strip; ac_word=$2
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3641$as_echo_n "checking for $ac_word... " >&6; }
3642if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3643 $as_echo_n "(cached) " >&6
3644else
3645 if test -n "$ac_ct_STRIP"; then
3646 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3647else
3648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649for as_dir in $PATH
3650do
3651 IFS=$as_save_IFS
3652 test -z "$as_dir" && as_dir=.
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3655 ac_cv_prog_ac_ct_STRIP="strip"
3656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 break 2
3658 fi
3659done
3660 done
3661IFS=$as_save_IFS
3662
3663fi
3664fi
3665ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3666if test -n "$ac_ct_STRIP"; then
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3668$as_echo "$ac_ct_STRIP" >&6; }
3669else
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671$as_echo "no" >&6; }
3672fi
3673
3674 if test "x$ac_ct_STRIP" = x; then
3675 STRIP=":"
3676 else
3677 case $cross_compiling:$ac_tool_warned in
3678yes:)
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3681ac_tool_warned=yes ;;
3682esac
3683 STRIP=$ac_ct_STRIP
3684 fi
3685else
3686 STRIP="$ac_cv_prog_STRIP"
3687fi
3688
3689fi
3690INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3691
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3693$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3694if test -z "$MKDIR_P"; then
3695 if test "${ac_cv_path_mkdir+set}" = set; then :
3696 $as_echo_n "(cached) " >&6
3697else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3700do
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
3703 for ac_prog in mkdir gmkdir; do
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3706 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3707 'mkdir (GNU coreutils) '* | \
3708 'mkdir (coreutils) '* | \
3709 'mkdir (fileutils) '4.1*)
3710 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3711 break 3;;
3712 esac
3713 done
3714 done
42ecbf5e 3715 done
81ecdfbb
RW
3716IFS=$as_save_IFS
3717
3718fi
3719
3720 if test "${ac_cv_path_mkdir+set}" = set; then
3721 MKDIR_P="$ac_cv_path_mkdir -p"
42ecbf5e 3722 else
81ecdfbb
RW
3723 # As a last resort, use the slow shell script. Don't cache a
3724 # value for MKDIR_P within a source directory, because that will
3725 # break other packages using the cache if that directory is
3726 # removed, or if the value is a relative name.
3727 test -d ./--version && rmdir ./--version
3728 MKDIR_P="$ac_install_sh -d"
42ecbf5e
DJ
3729 fi
3730fi
81ecdfbb
RW
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3732$as_echo "$MKDIR_P" >&6; }
3733
3734mkdir_p="$MKDIR_P"
3735case $mkdir_p in
3736 [\\/$]* | ?:[\\/]*) ;;
3737 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3738esac
42ecbf5e
DJ
3739
3740for ac_prog in gawk mawk nawk awk
3741do
3742 # Extract the first word of "$ac_prog", so it can be a program name with args.
3743set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745$as_echo_n "checking for $ac_word... " >&6; }
3746if test "${ac_cv_prog_AWK+set}" = set; then :
3747 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3748else
3749 if test -n "$AWK"; then
3750 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3751else
3752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753for as_dir in $PATH
3754do
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 3759 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3761 break 2
3762 fi
3763done
81ecdfbb
RW
3764 done
3765IFS=$as_save_IFS
42ecbf5e
DJ
3766
3767fi
3768fi
3769AWK=$ac_cv_prog_AWK
3770if test -n "$AWK"; then
81ecdfbb
RW
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3772$as_echo "$AWK" >&6; }
42ecbf5e 3773else
81ecdfbb
RW
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775$as_echo "no" >&6; }
42ecbf5e 3776fi
252b5132 3777
81ecdfbb 3778
42ecbf5e
DJ
3779 test -n "$AWK" && break
3780done
252b5132 3781
81ecdfbb
RW
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3783$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3784set x ${MAKE-make}
3785ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3786if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3787 $as_echo_n "(cached) " >&6
252b5132 3788else
42ecbf5e 3789 cat >conftest.make <<\_ACEOF
81ecdfbb 3790SHELL = /bin/sh
252b5132 3791all:
81ecdfbb 3792 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 3793_ACEOF
252b5132 3794# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3795case `${MAKE-make} -f conftest.make 2>/dev/null` in
3796 *@@@%%%=?*=@@@%%%*)
3797 eval ac_cv_prog_make_${ac_make}_set=yes;;
3798 *)
3799 eval ac_cv_prog_make_${ac_make}_set=no;;
3800esac
42ecbf5e 3801rm -f conftest.make
252b5132 3802fi
81ecdfbb
RW
3803if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3805$as_echo "yes" >&6; }
252b5132
RH
3806 SET_MAKE=
3807else
81ecdfbb
RW
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809$as_echo "no" >&6; }
252b5132
RH
3810 SET_MAKE="MAKE=${MAKE-make}"
3811fi
3812
42ecbf5e
DJ
3813rm -rf .tst 2>/dev/null
3814mkdir .tst 2>/dev/null
3815if test -d .tst; then
3816 am__leading_dot=.
3817else
3818 am__leading_dot=_
3819fi
3820rmdir .tst 2>/dev/null
3821
3822DEPDIR="${am__leading_dot}deps"
3823
81ecdfbb 3824ac_config_commands="$ac_config_commands depfiles"
42ecbf5e
DJ
3825
3826
3827am_make=${MAKE-make}
3828cat > confinc << 'END'
3829am__doit:
81ecdfbb 3830 @echo this is the am__doit target
42ecbf5e
DJ
3831.PHONY: am__doit
3832END
3833# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3835$as_echo_n "checking for style of include used by $am_make... " >&6; }
42ecbf5e
DJ
3836am__include="#"
3837am__quote=
3838_am_result=none
3839# First try GNU make style include.
3840echo "include confinc" > confmf
81ecdfbb
RW
3841# Ignore all kinds of additional output from `make'.
3842case `$am_make -s -f confmf 2> /dev/null` in #(
3843*the\ am__doit\ target*)
3844 am__include=include
3845 am__quote=
3846 _am_result=GNU
3847 ;;
3848esac
42ecbf5e
DJ
3849# Now try BSD make style include.
3850if test "$am__include" = "#"; then
3851 echo '.include "confinc"' > confmf
81ecdfbb
RW
3852 case `$am_make -s -f confmf 2> /dev/null` in #(
3853 *the\ am__doit\ target*)
3854 am__include=.include
3855 am__quote="\""
3856 _am_result=BSD
3857 ;;
3858 esac
42ecbf5e
DJ
3859fi
3860
3861
81ecdfbb
RW
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3863$as_echo "$_am_result" >&6; }
42ecbf5e
DJ
3864rm -f confinc confmf
3865
81ecdfbb
RW
3866# Check whether --enable-dependency-tracking was given.
3867if test "${enable_dependency_tracking+set}" = set; then :
3868 enableval=$enable_dependency_tracking;
3869fi
42ecbf5e 3870
42ecbf5e
DJ
3871if test "x$enable_dependency_tracking" != xno; then
3872 am_depcomp="$ac_aux_dir/depcomp"
3873 AMDEPBACKSLASH='\'
3874fi
81ecdfbb 3875 if test "x$enable_dependency_tracking" != xno; then
42ecbf5e
DJ
3876 AMDEP_TRUE=
3877 AMDEP_FALSE='#'
3878else
3879 AMDEP_TRUE='#'
3880 AMDEP_FALSE=
3881fi
3882
e5a52504 3883
81ecdfbb
RW
3884if test "`cd $srcdir && pwd`" != "`pwd`"; then
3885 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3886 # is not polluted with repeated "-I."
3887 am__isrc=' -I$(srcdir)'
3888 # test to see if srcdir already configured
3889 if test -f $srcdir/config.status; then
3890 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3891 fi
42ecbf5e 3892fi
252b5132 3893
42ecbf5e
DJ
3894# test whether we have cygpath
3895if test -z "$CYGPATH_W"; then
3896 if (cygpath --version) >/dev/null 2>/dev/null; then
3897 CYGPATH_W='cygpath -w'
3898 else
3899 CYGPATH_W=echo
3900 fi
252b5132 3901fi
42ecbf5e
DJ
3902
3903
3904# Define the identity of the package.
3905 PACKAGE=ld
3906 VERSION=${BFD_VERSION}
3907
3908
3909cat >>confdefs.h <<_ACEOF
e5a52504 3910#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
3911_ACEOF
3912
252b5132 3913
42ecbf5e 3914cat >>confdefs.h <<_ACEOF
e5a52504 3915#define VERSION "$VERSION"
42ecbf5e
DJ
3916_ACEOF
3917
3918# Some tools Automake needs.
3919
3920ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3921
3922
3923AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3924
3925
3926AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3927
3928
3929AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3930
e5a52504 3931
42ecbf5e 3932MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 3933
42ecbf5e
DJ
3934# We need awk for the "check" target. The system "awk" is bad on
3935# some platforms.
3936# Always define AMTAR for backward compatibility.
3937
3938AMTAR=${AMTAR-"${am_missing_run}tar"}
3939
3940am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3941
3942
3943
3944
3945depcc="$CC" am_compiler_list=
3946
81ecdfbb
RW
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3948$as_echo_n "checking dependency style of $depcc... " >&6; }
3949if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3950 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3951else
3952 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3953 # We make a subdir and do the tests there. Otherwise we can end up
3954 # making bogus files that we don't know about and never remove. For
3955 # instance it was reported that on HP-UX the gcc test will end up
3956 # making a dummy file named `D' -- because `-MD' means `put the output
3957 # in D'.
3958 mkdir conftest.dir
3959 # Copy depcomp to subdir because otherwise we won't find it if we're
3960 # using a relative directory.
3961 cp "$am_depcomp" conftest.dir
3962 cd conftest.dir
3963 # We will build objects and dependencies in a subdirectory because
3964 # it helps to detect inapplicable dependency modes. For instance
3965 # both Tru64's cc and ICC support -MD to output dependencies as a
3966 # side effect of compilation, but ICC will put the dependencies in
3967 # the current directory while Tru64 will put them in the object
3968 # directory.
3969 mkdir sub
3970
3971 am_cv_CC_dependencies_compiler_type=none
3972 if test "$am_compiler_list" = ""; then
3973 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3974 fi
81ecdfbb
RW
3975 am__universal=false
3976 case " $depcc " in #(
3977 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3978 esac
3979
42ecbf5e
DJ
3980 for depmode in $am_compiler_list; do
3981 # Setup a source with many dependencies, because some compilers
3982 # like to wrap large dependency lists on column 80 (with \), and
3983 # we should not choose a depcomp mode which is confused by this.
3984 #
3985 # We need to recreate these files for each test, as the compiler may
3986 # overwrite some of them when testing with obscure command lines.
3987 # This happens at least with the AIX C compiler.
3988 : > sub/conftest.c
3989 for i in 1 2 3 4 5 6; do
3990 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3991 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3992 # Solaris 8's {/usr,}/bin/sh.
3993 touch sub/conftst$i.h
3994 done
3995 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3996
81ecdfbb
RW
3997 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3998 # mode. It turns out that the SunPro C++ compiler does not properly
3999 # handle `-M -o', and we need to detect this. Also, some Intel
4000 # versions had trouble with output in subdirs
4001 am__obj=sub/conftest.${OBJEXT-o}
4002 am__minus_obj="-o $am__obj"
42ecbf5e 4003 case $depmode in
81ecdfbb
RW
4004 gcc)
4005 # This depmode causes a compiler race in universal mode.
4006 test "$am__universal" = false || continue
4007 ;;
42ecbf5e
DJ
4008 nosideeffect)
4009 # after this tag, mechanisms are not by side-effect, so they'll
4010 # only be used when explicitly requested
4011 if test "x$enable_dependency_tracking" = xyes; then
4012 continue
4013 else
4014 break
4015 fi
4016 ;;
81ecdfbb
RW
4017 msvisualcpp | msvcmsys)
4018 # This compiler won't grok `-c -o', but also, the minuso test has
4019 # not run yet. These depmodes are late enough in the game, and
4020 # so weak that their functioning should not be impacted.
4021 am__obj=conftest.${OBJEXT-o}
4022 am__minus_obj=
4023 ;;
42ecbf5e
DJ
4024 none) break ;;
4025 esac
42ecbf5e 4026 if depmode=$depmode \
81ecdfbb 4027 source=sub/conftest.c object=$am__obj \
42ecbf5e 4028 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4029 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
42ecbf5e 4030 >/dev/null 2>conftest.err &&
81ecdfbb 4031 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e 4032 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4033 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e
DJ
4034 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4035 # icc doesn't choke on unknown options, it will just issue warnings
4036 # or remarks (even with -Werror). So we grep stderr for any message
4037 # that says an option was ignored or not supported.
4038 # When given -MP, icc 7.0 and 7.1 complain thusly:
4039 # icc: Command line warning: ignoring option '-M'; no argument required
4040 # The diagnosis changed in icc 8.0:
4041 # icc: Command line remark: option '-MP' not supported
4042 if (grep 'ignoring option' conftest.err ||
4043 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4044 am_cv_CC_dependencies_compiler_type=$depmode
4045 break
4046 fi
4047 fi
4048 done
2469cfa2 4049
42ecbf5e
DJ
4050 cd ..
4051 rm -rf conftest.dir
2469cfa2 4052else
42ecbf5e
DJ
4053 am_cv_CC_dependencies_compiler_type=none
4054fi
4055
2469cfa2 4056fi
81ecdfbb
RW
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4058$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
42ecbf5e
DJ
4059CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4060
81ecdfbb 4061 if
42ecbf5e
DJ
4062 test "x$enable_dependency_tracking" != xno \
4063 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4064 am__fastdepCC_TRUE=
4065 am__fastdepCC_FALSE='#'
2469cfa2 4066else
42ecbf5e
DJ
4067 am__fastdepCC_TRUE='#'
4068 am__fastdepCC_FALSE=
2469cfa2 4069fi
2469cfa2 4070
2469cfa2 4071
e5a52504 4072
42ecbf5e 4073
64ac50ac
RW
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4075$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4076 # Check whether --enable-maintainer-mode was given.
4077if test "${enable_maintainer_mode+set}" = set; then :
4078 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4079else
4080 USE_MAINTAINER_MODE=no
4081fi
4082
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4084$as_echo "$USE_MAINTAINER_MODE" >&6; }
4085 if test $USE_MAINTAINER_MODE = yes; then
4086 MAINTAINER_MODE_TRUE=
4087 MAINTAINER_MODE_FALSE='#'
4088else
4089 MAINTAINER_MODE_TRUE='#'
4090 MAINTAINER_MODE_FALSE=
4091fi
4092
4093 MAINT=$MAINTAINER_MODE_TRUE
4094
4095
4096
d7040cdb 4097
81ecdfbb
RW
4098# Check whether --with-lib-path was given.
4099if test "${with_lib_path+set}" = set; then :
4100 withval=$with_lib_path; LIB_PATH=$withval
4101fi
4102
4103# Check whether --enable-targets was given.
4104if test "${enable_targets+set}" = set; then :
4105 enableval=$enable_targets; case "${enableval}" in
4106 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
ce2cded5
L
4107 ;;
4108 no) enable_targets= ;;
4109 *) enable_targets=$enableval ;;
4110esac
81ecdfbb
RW
4111fi
4112# Check whether --enable-64-bit-bfd was given.
4113if test "${enable_64_bit_bfd+set}" = set; then :
4114 enableval=$enable_64_bit_bfd; case "${enableval}" in
ce2cded5
L
4115 yes) want64=true ;;
4116 no) want64=false ;;
81ecdfbb 4117 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
ce2cded5 4118esac
2469cfa2 4119else
ce2cded5 4120 want64=false
81ecdfbb 4121fi
d7040cdb
SE
4122
4123
81ecdfbb
RW
4124# Check whether --with-sysroot was given.
4125if test "${with_sysroot+set}" = set; then :
4126 withval=$with_sysroot;
ce2cded5
L
4127 case ${with_sysroot} in
4128 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4129 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4130 esac
d7040cdb 4131
ce2cded5
L
4132 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4133 use_sysroot=yes
d7040cdb 4134
ce2cded5
L
4135 if test "x$prefix" = xNONE; then
4136 test_prefix=/usr/local
4137 else
4138 test_prefix=$prefix
4139 fi
4140 if test "x$exec_prefix" = xNONE; then
4141 test_exec_prefix=$test_prefix
4142 else
4143 test_exec_prefix=$exec_prefix
4144 fi
4145 case ${TARGET_SYSTEM_ROOT} in
4146 "${test_prefix}"|"${test_prefix}/"*|\
4147 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
4148 '${prefix}'|'${prefix}/'*|\
4149 '${exec_prefix}'|'${exec_prefix}/'*)
4150 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4151 TARGET_SYSTEM_ROOT_DEFINE="$t"
4152 ;;
4153 esac
d7040cdb 4154
e5a52504 4155else
d7040cdb 4156
ce2cded5
L
4157 use_sysroot=no
4158 TARGET_SYSTEM_ROOT=
4159 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
d7040cdb 4160
81ecdfbb
RW
4161fi
4162
d7040cdb
SE
4163
4164
4165
4166
81ecdfbb
RW
4167# Check whether --enable-got was given.
4168if test "${enable_got+set}" = set; then :
4169 enableval=$enable_got; case "${enableval}" in
7fb9f789 4170 target | single | negative | multigot) got_handling=$enableval ;;
81ecdfbb 4171 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
7fb9f789
NC
4172esac
4173else
4174 got_handling=target
81ecdfbb
RW
4175fi
4176
7fb9f789
NC
4177
4178case "${got_handling}" in
4179 target)
4180
81ecdfbb 4181$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
7fb9f789
NC
4182 ;;
4183 single)
4184
81ecdfbb 4185$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
7fb9f789
NC
4186 ;;
4187 negative)
4188
81ecdfbb 4189$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
7fb9f789
NC
4190 ;;
4191 multigot)
4192
81ecdfbb 4193$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
7fb9f789 4194 ;;
81ecdfbb 4195 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
7fb9f789
NC
4196esac
4197
397841b5
AM
4198ac_ext=c
4199ac_cpp='$CPP $CPPFLAGS'
4200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4204$as_echo_n "checking how to run the C preprocessor... " >&6; }
4205# On Suns, sometimes $CPP names a directory.
4206if test -n "$CPP" && test -d "$CPP"; then
4207 CPP=
ce2cded5 4208fi
397841b5
AM
4209if test -z "$CPP"; then
4210 if test "${ac_cv_prog_CPP+set}" = set; then :
4211 $as_echo_n "(cached) " >&6
4212else
4213 # Double quotes because CPP needs to be expanded
4214 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4215 do
4216 ac_preproc_ok=false
4217for ac_c_preproc_warn_flag in '' yes
4218do
4219 # Use a header file that comes with gcc, so configuring glibc
4220 # with a fresh cross-compiler works.
4221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4222 # <limits.h> exists even on freestanding compilers.
4223 # On the NeXT, cc -E runs the code through the compiler's parser,
4224 # not just through cpp. "Syntax error" is here to catch this case.
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226/* end confdefs.h. */
4227#ifdef __STDC__
4228# include <limits.h>
4229#else
4230# include <assert.h>
4231#endif
4232 Syntax error
4233_ACEOF
4234if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4235
397841b5
AM
4236else
4237 # Broken: fails on valid input.
4238continue
ce2cded5 4239fi
397841b5 4240rm -f conftest.err conftest.$ac_ext
d7040cdb 4241
397841b5
AM
4242 # OK, works on sane cases. Now check whether nonexistent headers
4243 # can be detected and how.
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245/* end confdefs.h. */
4246#include <ac_nonexistent.h>
4247_ACEOF
4248if ac_fn_c_try_cpp "$LINENO"; then :
4249 # Broken: success on invalid input.
4250continue
4251else
4252 # Passes both tests.
4253ac_preproc_ok=:
4254break
ce2cded5 4255fi
397841b5 4256rm -f conftest.err conftest.$ac_ext
d7040cdb 4257
397841b5
AM
4258done
4259# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4260rm -f conftest.err conftest.$ac_ext
4261if $ac_preproc_ok; then :
4262 break
81ecdfbb
RW
4263fi
4264
397841b5
AM
4265 done
4266 ac_cv_prog_CPP=$CPP
d7040cdb 4267
ce2cded5 4268fi
397841b5
AM
4269 CPP=$ac_cv_prog_CPP
4270else
4271 ac_cv_prog_CPP=$CPP
4272fi
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4274$as_echo "$CPP" >&6; }
4275ac_preproc_ok=false
4276for ac_c_preproc_warn_flag in '' yes
4277do
4278 # Use a header file that comes with gcc, so configuring glibc
4279 # with a fresh cross-compiler works.
4280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4281 # <limits.h> exists even on freestanding compilers.
4282 # On the NeXT, cc -E runs the code through the compiler's parser,
4283 # not just through cpp. "Syntax error" is here to catch this case.
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285/* end confdefs.h. */
4286#ifdef __STDC__
4287# include <limits.h>
4288#else
4289# include <assert.h>
4290#endif
4291 Syntax error
4292_ACEOF
4293if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4294
397841b5
AM
4295else
4296 # Broken: fails on valid input.
4297continue
4298fi
4299rm -f conftest.err conftest.$ac_ext
2469cfa2 4300
397841b5
AM
4301 # OK, works on sane cases. Now check whether nonexistent headers
4302 # can be detected and how.
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304/* end confdefs.h. */
4305#include <ac_nonexistent.h>
4306_ACEOF
4307if ac_fn_c_try_cpp "$LINENO"; then :
4308 # Broken: success on invalid input.
4309continue
4310else
4311 # Passes both tests.
4312ac_preproc_ok=:
4313break
4314fi
4315rm -f conftest.err conftest.$ac_ext
d7040cdb 4316
397841b5
AM
4317done
4318# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4319rm -f conftest.err conftest.$ac_ext
4320if $ac_preproc_ok; then :
d7040cdb 4321
397841b5
AM
4322else
4323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4325as_fn_error "C preprocessor \"$CPP\" fails sanity check
4326See \`config.log' for more details." "$LINENO" 5; }
ce2cded5 4327fi
d7040cdb 4328
ce2cded5
L
4329ac_ext=c
4330ac_cpp='$CPP $CPPFLAGS'
4331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4333ac_compiler_gnu=$ac_cv_c_compiler_gnu
397841b5
AM
4334
4335
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4337$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4338if test "${ac_cv_path_GREP+set}" = set; then :
81ecdfbb 4339 $as_echo_n "(cached) " >&6
d7040cdb 4340else
397841b5
AM
4341 if test -z "$GREP"; then
4342 ac_path_GREP_found=false
4343 # Loop through the user's path and test for each of PROGNAME-LIST
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
d7040cdb
SE
4346do
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
397841b5 4349 for ac_prog in grep ggrep; do
81ecdfbb 4350 for ac_exec_ext in '' $ac_executable_extensions; do
397841b5
AM
4351 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4352 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4353# Check for GNU ac_path_GREP and select it if it is found.
4354 # Check for GNU $ac_path_GREP
4355case `"$ac_path_GREP" --version 2>&1` in
4356*GNU*)
4357 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4358*)
4359 ac_count=0
4360 $as_echo_n 0123456789 >"conftest.in"
4361 while :
4362 do
4363 cat "conftest.in" "conftest.in" >"conftest.tmp"
4364 mv "conftest.tmp" "conftest.in"
4365 cp "conftest.in" "conftest.nl"
4366 $as_echo 'GREP' >> "conftest.nl"
4367 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4368 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4369 as_fn_arith $ac_count + 1 && ac_count=$as_val
4370 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4371 # Best one so far, save it but keep looking for a better one
4372 ac_cv_path_GREP="$ac_path_GREP"
4373 ac_path_GREP_max=$ac_count
4374 fi
4375 # 10*(2^10) chars as input seems more than enough
4376 test $ac_count -gt 10 && break
81ecdfbb 4377 done
397841b5
AM
4378 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4379esac
d7040cdb 4380
397841b5
AM
4381 $ac_path_GREP_found && break 3
4382 done
4383 done
4384 done
4385IFS=$as_save_IFS
4386 if test -z "$ac_cv_path_GREP"; then
4387 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4388 fi
d7040cdb 4389else
397841b5 4390 ac_cv_path_GREP=$GREP
d7040cdb 4391fi
d7040cdb 4392
252b5132 4393fi
397841b5
AM
4394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4395$as_echo "$ac_cv_path_GREP" >&6; }
4396 GREP="$ac_cv_path_GREP"
4397
4398
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4400$as_echo_n "checking for egrep... " >&6; }
4401if test "${ac_cv_path_EGREP+set}" = set; then :
4402 $as_echo_n "(cached) " >&6
4403else
4404 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4405 then ac_cv_path_EGREP="$GREP -E"
4406 else
4407 if test -z "$EGREP"; then
4408 ac_path_EGREP_found=false
4409 # Loop through the user's path and test for each of PROGNAME-LIST
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4412do
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
4415 for ac_prog in egrep; do
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4418 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4419# Check for GNU ac_path_EGREP and select it if it is found.
4420 # Check for GNU $ac_path_EGREP
4421case `"$ac_path_EGREP" --version 2>&1` in
4422*GNU*)
4423 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4424*)
4425 ac_count=0
4426 $as_echo_n 0123456789 >"conftest.in"
4427 while :
4428 do
4429 cat "conftest.in" "conftest.in" >"conftest.tmp"
4430 mv "conftest.tmp" "conftest.in"
4431 cp "conftest.in" "conftest.nl"
4432 $as_echo 'EGREP' >> "conftest.nl"
4433 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4434 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4435 as_fn_arith $ac_count + 1 && ac_count=$as_val
4436 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4437 # Best one so far, save it but keep looking for a better one
4438 ac_cv_path_EGREP="$ac_path_EGREP"
4439 ac_path_EGREP_max=$ac_count
4440 fi
4441 # 10*(2^10) chars as input seems more than enough
4442 test $ac_count -gt 10 && break
4443 done
4444 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4445esac
4446
4447 $ac_path_EGREP_found && break 3
4448 done
4449 done
4450 done
4451IFS=$as_save_IFS
4452 if test -z "$ac_cv_path_EGREP"; then
4453 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4454 fi
4455else
4456 ac_cv_path_EGREP=$EGREP
4457fi
4458
4459 fi
4460fi
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4462$as_echo "$ac_cv_path_EGREP" >&6; }
4463 EGREP="$ac_cv_path_EGREP"
4464
4465
4466
4467GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469/* end confdefs.h. */
4470__GNUC__
4471_ACEOF
4472if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4473 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
4474
4475else
4476 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
4477fi
4478rm -f conftest*
4479
4480
4481# Check whether --enable-werror was given.
4482if test "${enable_werror+set}" = set; then :
4483 enableval=$enable_werror; case "${enableval}" in
4484 yes | y) ERROR_ON_WARNING="yes" ;;
4485 no | n) ERROR_ON_WARNING="no" ;;
4486 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4487 esac
4488fi
4489
4490
4491# Disable -Wformat by default when using gcc on mingw
4492case "${host}" in
4493 *-*-mingw32*)
4494 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4495 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
4496 fi
4497 ;;
4498 *) ;;
4499esac
4500
4501# Enable -Werror by default when using gcc
4502if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4503 ERROR_ON_WARNING=yes
4504fi
4505
4506NO_WERROR=
4507if test "${ERROR_ON_WARNING}" = yes ; then
4508 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4509 NO_WERROR="-Wno-error"
4510fi
4511
4512if test "${GCC}" = yes ; then
4513 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4514fi
4515
4516# Check whether --enable-build-warnings was given.
4517if test "${enable_build_warnings+set}" = set; then :
4518 enableval=$enable_build_warnings; case "${enableval}" in
4519 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4520 no) if test "${GCC}" = yes ; then
4521 WARN_CFLAGS="-w"
4522 fi;;
4523 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4524 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4525 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4526 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4527 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4528esac
4529fi
4530
4531
4532if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4533 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4534fi
4535
4536
4537
4538
4539
4540ac_config_headers="$ac_config_headers config.h:config.in"
4541
4542
4543if test -z "$target" ; then
4544 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
4545fi
4546if test -z "$host" ; then
4547 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
4548fi
4549
4550# host-specific stuff:
4551
4552ac_ext=c
4553ac_cpp='$CPP $CPPFLAGS'
4554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556ac_compiler_gnu=$ac_cv_c_compiler_gnu
4557if test -n "$ac_tool_prefix"; then
4558 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4559set dummy ${ac_tool_prefix}gcc; ac_word=$2
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4561$as_echo_n "checking for $ac_word... " >&6; }
4562if test "${ac_cv_prog_CC+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4564else
4565 if test -n "$CC"; then
4566 ac_cv_prog_CC="$CC" # Let the user override the test.
4567else
4568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569for as_dir in $PATH
4570do
4571 IFS=$as_save_IFS
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4575 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 break 2
4578 fi
4579done
4580 done
4581IFS=$as_save_IFS
4582
4583fi
4584fi
4585CC=$ac_cv_prog_CC
4586if test -n "$CC"; then
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4588$as_echo "$CC" >&6; }
4589else
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591$as_echo "no" >&6; }
4592fi
4593
4594
4595fi
4596if test -z "$ac_cv_prog_CC"; then
4597 ac_ct_CC=$CC
4598 # Extract the first word of "gcc", so it can be a program name with args.
4599set dummy gcc; ac_word=$2
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4601$as_echo_n "checking for $ac_word... " >&6; }
81ecdfbb
RW
4602if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4603 $as_echo_n "(cached) " >&6
252b5132 4604else
ce2cded5
L
4605 if test -n "$ac_ct_CC"; then
4606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 4607else
ce2cded5
L
4608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609for as_dir in $PATH
4610do
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4615 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4617 break 2
4618 fi
4619done
81ecdfbb
RW
4620 done
4621IFS=$as_save_IFS
4622
252b5132
RH
4623fi
4624fi
ce2cded5
L
4625ac_ct_CC=$ac_cv_prog_ac_ct_CC
4626if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4628$as_echo "$ac_ct_CC" >&6; }
252b5132 4629else
81ecdfbb
RW
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631$as_echo "no" >&6; }
252b5132 4632fi
ce2cded5 4633
81ecdfbb
RW
4634 if test "x$ac_ct_CC" = x; then
4635 CC=""
4636 else
4637 case $cross_compiling:$ac_tool_warned in
4638yes:)
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4641ac_tool_warned=yes ;;
4642esac
4643 CC=$ac_ct_CC
4644 fi
252b5132 4645else
ce2cded5 4646 CC="$ac_cv_prog_CC"
252b5132 4647fi
d7040cdb 4648
ce2cded5 4649if test -z "$CC"; then
81ecdfbb
RW
4650 if test -n "$ac_tool_prefix"; then
4651 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 4652set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654$as_echo_n "checking for $ac_word... " >&6; }
4655if test "${ac_cv_prog_CC+set}" = set; then :
4656 $as_echo_n "(cached) " >&6
252b5132 4657else
ce2cded5
L
4658 if test -n "$CC"; then
4659 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4660else
ce2cded5
L
4661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662for as_dir in $PATH
4663do
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4668 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4670 break 2
4671 fi
4672done
81ecdfbb
RW
4673 done
4674IFS=$as_save_IFS
ce2cded5 4675
252b5132
RH
4676fi
4677fi
ce2cded5
L
4678CC=$ac_cv_prog_CC
4679if test -n "$CC"; then
81ecdfbb
RW
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4681$as_echo "$CC" >&6; }
ce2cded5 4682else
81ecdfbb
RW
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684$as_echo "no" >&6; }
ce2cded5
L
4685fi
4686
ce2cded5 4687
81ecdfbb 4688 fi
ce2cded5
L
4689fi
4690if test -z "$CC"; then
4691 # Extract the first word of "cc", so it can be a program name with args.
4692set dummy cc; ac_word=$2
81ecdfbb
RW
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694$as_echo_n "checking for $ac_word... " >&6; }
4695if test "${ac_cv_prog_CC+set}" = set; then :
4696 $as_echo_n "(cached) " >&6
ce2cded5
L
4697else
4698 if test -n "$CC"; then
4699 ac_cv_prog_CC="$CC" # Let the user override the test.
4700else
4701 ac_prog_rejected=no
4702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703for as_dir in $PATH
4704do
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5
L
4709 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4710 ac_prog_rejected=yes
4711 continue
4712 fi
4713 ac_cv_prog_CC="cc"
81ecdfbb 4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4715 break 2
4716 fi
4717done
81ecdfbb
RW
4718 done
4719IFS=$as_save_IFS
ce2cded5
L
4720
4721if test $ac_prog_rejected = yes; then
4722 # We found a bogon in the path, so make sure we never use it.
4723 set dummy $ac_cv_prog_CC
4724 shift
4725 if test $# != 0; then
4726 # We chose a different compiler from the bogus one.
4727 # However, it has the same basename, so the bogon will be chosen
4728 # first if we set CC to just the basename; use the full file name.
4729 shift
4730 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4731 fi
4732fi
4733fi
4734fi
4735CC=$ac_cv_prog_CC
4736if test -n "$CC"; then
81ecdfbb
RW
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4738$as_echo "$CC" >&6; }
ce2cded5 4739else
81ecdfbb
RW
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741$as_echo "no" >&6; }
ce2cded5
L
4742fi
4743
81ecdfbb 4744
ce2cded5
L
4745fi
4746if test -z "$CC"; then
d7040cdb 4747 if test -n "$ac_tool_prefix"; then
81ecdfbb 4748 for ac_prog in cl.exe
d7040cdb
SE
4749 do
4750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4751set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753$as_echo_n "checking for $ac_word... " >&6; }
4754if test "${ac_cv_prog_CC+set}" = set; then :
4755 $as_echo_n "(cached) " >&6
d7040cdb 4756else
ce2cded5
L
4757 if test -n "$CC"; then
4758 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb
SE
4759else
4760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761for as_dir in $PATH
4762do
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4767 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
4769 break 2
4770 fi
4771done
81ecdfbb
RW
4772 done
4773IFS=$as_save_IFS
d7040cdb
SE
4774
4775fi
4776fi
ce2cded5
L
4777CC=$ac_cv_prog_CC
4778if test -n "$CC"; then
81ecdfbb
RW
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4780$as_echo "$CC" >&6; }
d7040cdb 4781else
81ecdfbb
RW
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783$as_echo "no" >&6; }
d7040cdb
SE
4784fi
4785
81ecdfbb 4786
ce2cded5 4787 test -n "$CC" && break
d7040cdb
SE
4788 done
4789fi
ce2cded5
L
4790if test -z "$CC"; then
4791 ac_ct_CC=$CC
81ecdfbb 4792 for ac_prog in cl.exe
d7040cdb
SE
4793do
4794 # Extract the first word of "$ac_prog", so it can be a program name with args.
4795set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4797$as_echo_n "checking for $ac_word... " >&6; }
4798if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4799 $as_echo_n "(cached) " >&6
d7040cdb 4800else
ce2cded5
L
4801 if test -n "$ac_ct_CC"; then
4802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
4803else
4804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805for as_dir in $PATH
4806do
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4811 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
4813 break 2
4814 fi
4815done
81ecdfbb
RW
4816 done
4817IFS=$as_save_IFS
d7040cdb
SE
4818
4819fi
4820fi
ce2cded5
L
4821ac_ct_CC=$ac_cv_prog_ac_ct_CC
4822if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4824$as_echo "$ac_ct_CC" >&6; }
d7040cdb 4825else
81ecdfbb
RW
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827$as_echo "no" >&6; }
d7040cdb
SE
4828fi
4829
81ecdfbb 4830
ce2cded5 4831 test -n "$ac_ct_CC" && break
d7040cdb 4832done
d7040cdb 4833
81ecdfbb
RW
4834 if test "x$ac_ct_CC" = x; then
4835 CC=""
4836 else
4837 case $cross_compiling:$ac_tool_warned in
4838yes:)
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4841ac_tool_warned=yes ;;
4842esac
4843 CC=$ac_ct_CC
4844 fi
d7040cdb
SE
4845fi
4846
d7040cdb 4847fi
d7040cdb
SE
4848
4849
81ecdfbb
RW
4850test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4852as_fn_error "no acceptable C compiler found in \$PATH
4853See \`config.log' for more details." "$LINENO" 5; }
d7040cdb 4854
ce2cded5 4855# Provide some information about the compiler.
81ecdfbb
RW
4856$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4857set X $ac_compile
4858ac_compiler=$2
4859for ac_option in --version -v -V -qversion; do
4860 { { ac_try="$ac_compiler $ac_option >&5"
4861case "(($ac_try" in
4862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863 *) ac_try_echo=$ac_try;;
4864esac
4865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4866$as_echo "$ac_try_echo"; } >&5
4867 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4868 ac_status=$?
81ecdfbb
RW
4869 if test -s conftest.err; then
4870 sed '10a\
4871... rest of stderr output deleted ...
4872 10q' conftest.err >conftest.er1
4873 cat conftest.er1 >&5
4874 rm -f conftest.er1 conftest.err
4875 fi
4876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4877 test $ac_status = 0; }
4878done
d7040cdb 4879
81ecdfbb
RW
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4881$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4882if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
d7040cdb 4884else
81ecdfbb 4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4886/* end confdefs.h. */
d7040cdb 4887
ce2cded5
L
4888int
4889main ()
4890{
4891#ifndef __GNUC__
4892 choke me
4893#endif
4894
4895 ;
4896 return 0;
4897}
4898_ACEOF
81ecdfbb 4899if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 4900 ac_compiler_gnu=yes
d7040cdb 4901else
81ecdfbb 4902 ac_compiler_gnu=no
d7040cdb 4903fi
81ecdfbb 4904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4905ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7040cdb 4906
ce2cded5 4907fi
81ecdfbb
RW
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4909$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4910if test $ac_compiler_gnu = yes; then
4911 GCC=yes
4912else
4913 GCC=
4914fi
ce2cded5
L
4915ac_test_CFLAGS=${CFLAGS+set}
4916ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4918$as_echo_n "checking whether $CC accepts -g... " >&6; }
4919if test "${ac_cv_prog_cc_g+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4921else
4922 ac_save_c_werror_flag=$ac_c_werror_flag
4923 ac_c_werror_flag=yes
4924 ac_cv_prog_cc_g=no
4925 CFLAGS="-g"
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4927/* end confdefs.h. */
d7040cdb 4928
ce2cded5
L
4929int
4930main ()
4931{
d7040cdb 4932
ce2cded5
L
4933 ;
4934 return 0;
4935}
4936_ACEOF
81ecdfbb 4937if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
4938 ac_cv_prog_cc_g=yes
4939else
81ecdfbb
RW
4940 CFLAGS=""
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942/* end confdefs.h. */
4943
4944int
4945main ()
4946{
4947
4948 ;
4949 return 0;
4950}
4951_ACEOF
4952if ac_fn_c_try_compile "$LINENO"; then :
4953
4954else
4955 ac_c_werror_flag=$ac_save_c_werror_flag
4956 CFLAGS="-g"
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958/* end confdefs.h. */
4959
4960int
4961main ()
4962{
d7040cdb 4963
81ecdfbb
RW
4964 ;
4965 return 0;
4966}
4967_ACEOF
4968if ac_fn_c_try_compile "$LINENO"; then :
4969 ac_cv_prog_cc_g=yes
4970fi
4971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972fi
4973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4974fi
81ecdfbb
RW
4975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4976 ac_c_werror_flag=$ac_save_c_werror_flag
ce2cded5 4977fi
81ecdfbb
RW
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4979$as_echo "$ac_cv_prog_cc_g" >&6; }
ce2cded5
L
4980if test "$ac_test_CFLAGS" = set; then
4981 CFLAGS=$ac_save_CFLAGS
4982elif test $ac_cv_prog_cc_g = yes; then
4983 if test "$GCC" = yes; then
4984 CFLAGS="-g -O2"
4985 else
4986 CFLAGS="-g"
4987 fi
d7040cdb 4988else
ce2cded5
L
4989 if test "$GCC" = yes; then
4990 CFLAGS="-O2"
4991 else
4992 CFLAGS=
4993 fi
d7040cdb 4994fi
81ecdfbb
RW
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4996$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4997if test "${ac_cv_prog_cc_c89+set}" = set; then :
4998 $as_echo_n "(cached) " >&6
d7040cdb 4999else
81ecdfbb 5000 ac_cv_prog_cc_c89=no
ce2cded5 5001ac_save_CC=$CC
81ecdfbb 5002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
5003/* end confdefs.h. */
5004#include <stdarg.h>
5005#include <stdio.h>
5006#include <sys/types.h>
5007#include <sys/stat.h>
5008/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5009struct buf { int x; };
5010FILE * (*rcsopen) (struct buf *, struct stat *, int);
5011static char *e (p, i)
5012 char **p;
5013 int i;
5014{
5015 return p[i];
5016}
5017static char *f (char * (*g) (char **, int), char **p, ...)
5018{
5019 char *s;
5020 va_list v;
5021 va_start (v,p);
5022 s = g (p, va_arg (v,int));
5023 va_end (v);
5024 return s;
5025}
d7040cdb 5026
ce2cded5
L
5027/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5028 function prototypes and stuff, but not '\xHH' hex character constants.
5029 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 5030 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
5031 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5032 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 5033 that's true only with -std. */
ce2cded5 5034int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 5035
81ecdfbb
RW
5036/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5037 inside strings and character constants. */
5038#define FOO(x) 'x'
5039int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5040
ce2cded5
L
5041int test (int i, double x);
5042struct s1 {int (*f) (int a);};
5043struct s2 {int (*f) (double a);};
5044int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5045int argc;
5046char **argv;
5047int
5048main ()
5049{
5050return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5051 ;
5052 return 0;
5053}
5054_ACEOF
81ecdfbb
RW
5055for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5056 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
5057do
5058 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
5059 if ac_fn_c_try_compile "$LINENO"; then :
5060 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 5061fi
81ecdfbb
RW
5062rm -f core conftest.err conftest.$ac_objext
5063 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 5064done
81ecdfbb 5065rm -f conftest.$ac_ext
ce2cded5 5066CC=$ac_save_CC
d7040cdb 5067
ce2cded5 5068fi
81ecdfbb
RW
5069# AC_CACHE_VAL
5070case "x$ac_cv_prog_cc_c89" in
5071 x)
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5073$as_echo "none needed" >&6; } ;;
5074 xno)
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5076$as_echo "unsupported" >&6; } ;;
ce2cded5 5077 *)
81ecdfbb
RW
5078 CC="$CC $ac_cv_prog_cc_c89"
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5080$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d7040cdb 5081esac
81ecdfbb 5082if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 5083
ce2cded5 5084fi
d7040cdb 5085
ce2cded5
L
5086ac_ext=c
5087ac_cpp='$CPP $CPPFLAGS'
5088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5091
81ecdfbb
RW
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5093$as_echo_n "checking for ANSI C header files... " >&6; }
5094if test "${ac_cv_header_stdc+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
5096else
5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098/* end confdefs.h. */
5099#include <stdlib.h>
5100#include <stdarg.h>
5101#include <string.h>
5102#include <float.h>
5103
5104int
5105main ()
5106{
5107
5108 ;
5109 return 0;
5110}
5111_ACEOF
5112if ac_fn_c_try_compile "$LINENO"; then :
5113 ac_cv_header_stdc=yes
5114else
5115 ac_cv_header_stdc=no
7357c5b6 5116fi
81ecdfbb 5117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 5118
7357c5b6
AM
5119if test $ac_cv_header_stdc = yes; then
5120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5122/* end confdefs.h. */
5123#include <string.h>
ac48eca1 5124
7357c5b6
AM
5125_ACEOF
5126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5127 $EGREP "memchr" >/dev/null 2>&1; then :
5128
7357c5b6
AM
5129else
5130 ac_cv_header_stdc=no
5131fi
5132rm -f conftest*
252b5132 5133
7357c5b6 5134fi
252b5132 5135
7357c5b6
AM
5136if test $ac_cv_header_stdc = yes; then
5137 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5139/* end confdefs.h. */
5140#include <stdlib.h>
42ecbf5e 5141
7357c5b6
AM
5142_ACEOF
5143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5144 $EGREP "free" >/dev/null 2>&1; then :
5145
7357c5b6
AM
5146else
5147 ac_cv_header_stdc=no
5148fi
5149rm -f conftest*
ac48eca1 5150
7357c5b6 5151fi
d7040cdb 5152
7357c5b6
AM
5153if test $ac_cv_header_stdc = yes; then
5154 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 5155 if test "$cross_compiling" = yes; then :
7357c5b6
AM
5156 :
5157else
81ecdfbb 5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5159/* end confdefs.h. */
5160#include <ctype.h>
81ecdfbb 5161#include <stdlib.h>
7357c5b6
AM
5162#if ((' ' & 0x0FF) == 0x020)
5163# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5164# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5165#else
5166# define ISLOWER(c) \
5167 (('a' <= (c) && (c) <= 'i') \
5168 || ('j' <= (c) && (c) <= 'r') \
5169 || ('s' <= (c) && (c) <= 'z'))
5170# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5171#endif
d7040cdb 5172
7357c5b6
AM
5173#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5174int
5175main ()
5176{
5177 int i;
5178 for (i = 0; i < 256; i++)
5179 if (XOR (islower (i), ISLOWER (i))
5180 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
5181 return 2;
5182 return 0;
7357c5b6
AM
5183}
5184_ACEOF
81ecdfbb 5185if ac_fn_c_try_run "$LINENO"; then :
7357c5b6 5186
81ecdfbb
RW
5187else
5188 ac_cv_header_stdc=no
252b5132 5189fi
81ecdfbb
RW
5190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5191 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 5192fi
81ecdfbb 5193
7357c5b6
AM
5194fi
5195fi
81ecdfbb
RW
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5197$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 5198if test $ac_cv_header_stdc = yes; then
252b5132 5199
81ecdfbb 5200$as_echo "#define STDC_HEADERS 1" >>confdefs.h
252b5132 5201
ce2cded5 5202fi
252b5132 5203
7357c5b6 5204# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
5205for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5206 inttypes.h stdint.h unistd.h
81ecdfbb
RW
5207do :
5208 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5209ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5210"
5211eval as_val=\$$as_ac_Header
5212 if test "x$as_val" = x""yes; then :
7357c5b6 5213 cat >>confdefs.h <<_ACEOF
81ecdfbb 5214#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 5215_ACEOF
42ecbf5e 5216
7357c5b6 5217fi
42ecbf5e 5218
7357c5b6 5219done
42ecbf5e
DJ
5220
5221
5222
81ecdfbb
RW
5223 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5224if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6 5225 MINIX=yes
ce2cded5 5226else
7357c5b6 5227 MINIX=
ce2cded5 5228fi
42ecbf5e 5229
e5a52504 5230
7357c5b6
AM
5231 if test "$MINIX" = yes; then
5232
81ecdfbb 5233$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb 5234
d7040cdb 5235
81ecdfbb 5236$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb 5237
d7040cdb 5238
81ecdfbb 5239$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 5240
7357c5b6 5241 fi
d7040cdb 5242
d7040cdb 5243
81ecdfbb
RW
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5245$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5246if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5247 $as_echo_n "(cached) " >&6
ce2cded5 5248else
81ecdfbb 5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5250/* end confdefs.h. */
5251
5252# define __EXTENSIONS__ 1
5253 $ac_includes_default
5254int
5255main ()
5256{
5257
5258 ;
5259 return 0;
5260}
5261_ACEOF
81ecdfbb 5262if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 5263 ac_cv_safe_to_define___extensions__=yes
ce2cded5 5264else
81ecdfbb 5265 ac_cv_safe_to_define___extensions__=no
ce2cded5 5266fi
81ecdfbb 5267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 5268fi
81ecdfbb
RW
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5270$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 5271 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 5272 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
7357c5b6 5273
81ecdfbb 5274 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
7357c5b6 5275
81ecdfbb 5276 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
7357c5b6 5277
81ecdfbb
RW
5278 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5279
5280 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
7357c5b6 5281
7357c5b6
AM
5282
5283
d053aef8 5284
da2f07f1 5285
3388710e
JM
5286# The tests for host and target for $enable_largefile require
5287# canonical names.
5288
5289
5290
da2f07f1
JK
5291# As the $enable_largefile decision depends on --enable-plugins we must set it
5292# even in directories otherwise not depending on the $plugins option.
5293
5294
5295# Check whether --enable-plugins was given.
5296if test "${enable_plugins+set}" = set; then :
5297 enableval=$enable_plugins; case "${enableval}" in
5298 yes | "") plugins=yes ;;
5299 no) plugins=no ;;
5300 *) plugins=yes ;;
5301 esac
5302else
5303 plugins=no
5304fi
5305
5306
5307
5308case "${host}" in
5309 sparc-*-solaris*|i[3-7]86-*-solaris*)
5310 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5311 # are mutually exclusive; and without procfs support, the bfd/ elf module
5312 # cannot provide certain routines such as elfcore_write_prpsinfo
5313 # or elfcore_write_prstatus. So unless the user explicitly requested
5314 # large-file support through the --enable-largefile switch, disable
5315 # large-file support in favor of procfs support.
5316 test "${target}" = "${host}" -a "x$plugins" = xno \
5317 && : ${enable_largefile="no"}
5318 ;;
5319esac
5320
81ecdfbb
RW
5321# Check whether --enable-largefile was given.
5322if test "${enable_largefile+set}" = set; then :
5323 enableval=$enable_largefile;
5324fi
5325
d053aef8
JK
5326if test "$enable_largefile" != no; then
5327
81ecdfbb
RW
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5329$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5330if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5331 $as_echo_n "(cached) " >&6
d053aef8
JK
5332else
5333 ac_cv_sys_largefile_CC=no
5334 if test "$GCC" != yes; then
5335 ac_save_CC=$CC
5336 while :; do
81ecdfbb
RW
5337 # IRIX 6.2 and later do not support large files by default,
5338 # so use the C compiler's -n32 option if that helps.
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5340/* end confdefs.h. */
5341#include <sys/types.h>
5342 /* Check that off_t can represent 2**63 - 1 correctly.
5343 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5344 since some C++ compilers masquerading as C compilers
5345 incorrectly reject 9223372036854775807. */
5346#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5347 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5348 && LARGE_OFF_T % 2147483647 == 1)
5349 ? 1 : -1];
5350int
5351main ()
5352{
5353
5354 ;
5355 return 0;
5356}
5357_ACEOF
81ecdfbb 5358 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5359 break
d053aef8 5360fi
81ecdfbb
RW
5361rm -f core conftest.err conftest.$ac_objext
5362 CC="$CC -n32"
5363 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5364 ac_cv_sys_largefile_CC=' -n32'; break
d053aef8 5365fi
81ecdfbb 5366rm -f core conftest.err conftest.$ac_objext
d053aef8
JK
5367 break
5368 done
5369 CC=$ac_save_CC
5370 rm -f conftest.$ac_ext
5371 fi
5372fi
81ecdfbb
RW
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5374$as_echo "$ac_cv_sys_largefile_CC" >&6; }
d053aef8
JK
5375 if test "$ac_cv_sys_largefile_CC" != no; then
5376 CC=$CC$ac_cv_sys_largefile_CC
5377 fi
5378
81ecdfbb
RW
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5380$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5381if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5382 $as_echo_n "(cached) " >&6
d053aef8
JK
5383else
5384 while :; do
81ecdfbb 5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5386/* end confdefs.h. */
5387#include <sys/types.h>
5388 /* Check that off_t can represent 2**63 - 1 correctly.
5389 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5390 since some C++ compilers masquerading as C compilers
5391 incorrectly reject 9223372036854775807. */
5392#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5393 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5394 && LARGE_OFF_T % 2147483647 == 1)
5395 ? 1 : -1];
5396int
5397main ()
5398{
5399
5400 ;
5401 return 0;
5402}
5403_ACEOF
81ecdfbb
RW
5404if ac_fn_c_try_compile "$LINENO"; then :
5405 ac_cv_sys_file_offset_bits=no; break
d053aef8 5406fi
81ecdfbb
RW
5407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5409/* end confdefs.h. */
5410#define _FILE_OFFSET_BITS 64
5411#include <sys/types.h>
5412 /* Check that off_t can represent 2**63 - 1 correctly.
5413 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5414 since some C++ compilers masquerading as C compilers
5415 incorrectly reject 9223372036854775807. */
5416#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5417 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5418 && LARGE_OFF_T % 2147483647 == 1)
5419 ? 1 : -1];
5420int
5421main ()
5422{
5423
5424 ;
5425 return 0;
5426}
5427_ACEOF
81ecdfbb 5428if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5429 ac_cv_sys_file_offset_bits=64; break
d053aef8 5430fi
81ecdfbb
RW
5431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432 ac_cv_sys_file_offset_bits=unknown
d053aef8
JK
5433 break
5434done
5435fi
81ecdfbb
RW
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5437$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5438case $ac_cv_sys_file_offset_bits in #(
5439 no | unknown) ;;
5440 *)
d053aef8
JK
5441cat >>confdefs.h <<_ACEOF
5442#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5443_ACEOF
81ecdfbb
RW
5444;;
5445esac
5446rm -rf conftest*
5447 if test $ac_cv_sys_file_offset_bits = unknown; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5449$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5450if test "${ac_cv_sys_large_files+set}" = set; then :
5451 $as_echo_n "(cached) " >&6
d053aef8
JK
5452else
5453 while :; do
81ecdfbb 5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5455/* end confdefs.h. */
5456#include <sys/types.h>
5457 /* Check that off_t can represent 2**63 - 1 correctly.
5458 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5459 since some C++ compilers masquerading as C compilers
5460 incorrectly reject 9223372036854775807. */
5461#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5462 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5463 && LARGE_OFF_T % 2147483647 == 1)
5464 ? 1 : -1];
5465int
5466main ()
5467{
5468
5469 ;
5470 return 0;
5471}
5472_ACEOF
81ecdfbb
RW
5473if ac_fn_c_try_compile "$LINENO"; then :
5474 ac_cv_sys_large_files=no; break
d053aef8 5475fi
81ecdfbb
RW
5476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5478/* end confdefs.h. */
5479#define _LARGE_FILES 1
5480#include <sys/types.h>
5481 /* Check that off_t can represent 2**63 - 1 correctly.
5482 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5483 since some C++ compilers masquerading as C compilers
5484 incorrectly reject 9223372036854775807. */
5485#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5486 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5487 && LARGE_OFF_T % 2147483647 == 1)
5488 ? 1 : -1];
5489int
5490main ()
5491{
5492
5493 ;
5494 return 0;
5495}
5496_ACEOF
81ecdfbb 5497if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5498 ac_cv_sys_large_files=1; break
d053aef8 5499fi
81ecdfbb
RW
5500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5501 ac_cv_sys_large_files=unknown
d053aef8
JK
5502 break
5503done
5504fi
81ecdfbb
RW
5505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5506$as_echo "$ac_cv_sys_large_files" >&6; }
5507case $ac_cv_sys_large_files in #(
5508 no | unknown) ;;
5509 *)
d053aef8
JK
5510cat >>confdefs.h <<_ACEOF
5511#define _LARGE_FILES $ac_cv_sys_large_files
5512_ACEOF
81ecdfbb
RW
5513;;
5514esac
5515rm -rf conftest*
5516 fi
d053aef8
JK
5517fi
5518
42ecbf5e 5519
42ecbf5e 5520
da2f07f1 5521
b214d478
SE
5522case `pwd` in
5523 *\ * | *\ *)
81ecdfbb
RW
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5525$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
b214d478 5526esac
252b5132 5527
42ecbf5e 5528
d7040cdb 5529
3725885a
RW
5530macro_version='2.2.7a'
5531macro_revision='1.3134'
d7040cdb 5532
d7040cdb
SE
5533
5534
d7040cdb 5535
d7040cdb 5536
42ecbf5e 5537
d7040cdb 5538
252b5132 5539
252b5132 5540
252b5132 5541
252b5132
RH
5542
5543
ce2cded5 5544
b214d478 5545ltmain="$ac_aux_dir/ltmain.sh"
ce2cded5 5546
3725885a
RW
5547# Backslashify metacharacters that are still active within
5548# double-quoted strings.
5549sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5550
5551# Same as above, but do not quote variable references.
5552double_quote_subst='s/\(["`\\]\)/\\\1/g'
5553
5554# Sed substitution to delay expansion of an escaped shell variable in a
5555# double_quote_subst'ed string.
5556delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5557
5558# Sed substitution to delay expansion of an escaped single quote.
5559delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5560
5561# Sed substitution to avoid accidental globbing in evaled expressions
5562no_glob_subst='s/\*/\\\*/g'
5563
5564ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5565ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5566ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5567
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5569$as_echo_n "checking how to print strings... " >&6; }
5570# Test print first, because it will be a builtin if present.
5571if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5572 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5573 ECHO='print -r --'
5574elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5575 ECHO='printf %s\n'
5576else
5577 # Use this function as a fallback that always works.
5578 func_fallback_echo ()
5579 {
5580 eval 'cat <<_LTECHO_EOF
5581$1
5582_LTECHO_EOF'
5583 }
5584 ECHO='func_fallback_echo'
5585fi
5586
5587# func_echo_all arg...
5588# Invoke $ECHO with all args, space-separated.
5589func_echo_all ()
5590{
5591 $ECHO ""
5592}
5593
5594case "$ECHO" in
5595 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5596$as_echo "printf" >&6; } ;;
5597 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5598$as_echo "print -r" >&6; } ;;
5599 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5600$as_echo "cat" >&6; } ;;
5601esac
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
81ecdfbb
RW
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5617$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5618if test "${ac_cv_path_SED+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
5620else
5621 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5622 for ac_i in 1 2 3 4 5 6 7; do
5623 ac_script="$ac_script$as_nl$ac_script"
5624 done
5625 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5626 { ac_script=; unset ac_script;}
5627 if test -z "$SED"; then
5628 ac_path_SED_found=false
5629 # Loop through the user's path and test for each of PROGNAME-LIST
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5631for as_dir in $PATH
5632do
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
81ecdfbb 5635 for ac_prog in sed gsed; do
7357c5b6 5636 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5637 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5638 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5639# Check for GNU ac_path_SED and select it if it is found.
5640 # Check for GNU $ac_path_SED
5641case `"$ac_path_SED" --version 2>&1` in
5642*GNU*)
5643 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5644*)
5645 ac_count=0
5646 $as_echo_n 0123456789 >"conftest.in"
5647 while :
5648 do
5649 cat "conftest.in" "conftest.in" >"conftest.tmp"
5650 mv "conftest.tmp" "conftest.in"
5651 cp "conftest.in" "conftest.nl"
5652 $as_echo '' >> "conftest.nl"
5653 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5655 as_fn_arith $ac_count + 1 && ac_count=$as_val
5656 if test $ac_count -gt ${ac_path_SED_max-0}; then
5657 # Best one so far, save it but keep looking for a better one
5658 ac_cv_path_SED="$ac_path_SED"
5659 ac_path_SED_max=$ac_count
5660 fi
5661 # 10*(2^10) chars as input seems more than enough
5662 test $ac_count -gt 10 && break
5663 done
5664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5665esac
5666
5667 $ac_path_SED_found && break 3
7357c5b6
AM
5668 done
5669 done
81ecdfbb 5670 done
7357c5b6 5671IFS=$as_save_IFS
81ecdfbb
RW
5672 if test -z "$ac_cv_path_SED"; then
5673 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
ce2cded5 5674 fi
81ecdfbb
RW
5675else
5676 ac_cv_path_SED=$SED
7357c5b6 5677fi
20e95c23 5678
81ecdfbb
RW
5679fi
5680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5681$as_echo "$ac_cv_path_SED" >&6; }
5682 SED="$ac_cv_path_SED"
5683 rm -f conftest.sed
20e95c23 5684
7357c5b6
AM
5685test -z "$SED" && SED=sed
5686Xsed="$SED -e 1s/^X//"
20e95c23
DJ
5687
5688
5689
5690
5691
5692
20e95c23 5693
20e95c23 5694
d7040cdb 5695
d7040cdb 5696
7357c5b6 5697
81ecdfbb
RW
5698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5699$as_echo_n "checking for fgrep... " >&6; }
5700if test "${ac_cv_path_FGREP+set}" = set; then :
5701 $as_echo_n "(cached) " >&6
7357c5b6 5702else
81ecdfbb
RW
5703 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5704 then ac_cv_path_FGREP="$GREP -F"
5705 else
5706 if test -z "$FGREP"; then
5707 ac_path_FGREP_found=false
5708 # Loop through the user's path and test for each of PROGNAME-LIST
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5711do
5712 IFS=$as_save_IFS
5713 test -z "$as_dir" && as_dir=.
5714 for ac_prog in fgrep; do
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5717 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5718# Check for GNU ac_path_FGREP and select it if it is found.
5719 # Check for GNU $ac_path_FGREP
5720case `"$ac_path_FGREP" --version 2>&1` in
5721*GNU*)
5722 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5723*)
5724 ac_count=0
5725 $as_echo_n 0123456789 >"conftest.in"
5726 while :
5727 do
5728 cat "conftest.in" "conftest.in" >"conftest.tmp"
5729 mv "conftest.tmp" "conftest.in"
5730 cp "conftest.in" "conftest.nl"
5731 $as_echo 'FGREP' >> "conftest.nl"
5732 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5734 as_fn_arith $ac_count + 1 && ac_count=$as_val
5735 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5736 # Best one so far, save it but keep looking for a better one
5737 ac_cv_path_FGREP="$ac_path_FGREP"
5738 ac_path_FGREP_max=$ac_count
7357c5b6 5739 fi
81ecdfbb
RW
5740 # 10*(2^10) chars as input seems more than enough
5741 test $ac_count -gt 10 && break
5742 done
5743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5744esac
5745
5746 $ac_path_FGREP_found && break 3
5747 done
5748 done
5749 done
5750IFS=$as_save_IFS
5751 if test -z "$ac_cv_path_FGREP"; then
5752 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5753 fi
5754else
5755 ac_cv_path_FGREP=$FGREP
5756fi
5757
5758 fi
20e95c23 5759fi
81ecdfbb
RW
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5761$as_echo "$ac_cv_path_FGREP" >&6; }
5762 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5763
5764
5765test -z "$GREP" && GREP=grep
5766
d7040cdb
SE
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
20e95c23 5778
ce2cded5 5779
d7040cdb 5780
7357c5b6
AM
5781
5782
5783
5784
81ecdfbb
RW
5785# Check whether --with-gnu-ld was given.
5786if test "${with_gnu_ld+set}" = set; then :
5787 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5788else
5789 with_gnu_ld=no
81ecdfbb
RW
5790fi
5791
7357c5b6
AM
5792ac_prog=ld
5793if test "$GCC" = yes; then
5794 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5796$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5797 case $host in
5798 *-*-mingw*)
5799 # gcc leaves a trailing carriage return which upsets mingw
5800 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5801 *)
5802 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5803 esac
5804 case $ac_prog in
5805 # Accept absolute paths.
5806 [\\/]* | ?:[\\/]*)
5807 re_direlt='/[^/][^/]*/\.\./'
5808 # Canonicalize the pathname of ld
5809 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5810 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5811 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5812 done
5813 test -z "$LD" && LD="$ac_prog"
5814 ;;
5815 "")
5816 # If it fails, then pretend we aren't using GCC.
5817 ac_prog=ld
5818 ;;
5819 *)
5820 # If it is relative, then search for the first ld in PATH.
5821 with_gnu_ld=unknown
5822 ;;
5823 esac
5824elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5826$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 5827else
81ecdfbb
RW
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5829$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5830fi
81ecdfbb
RW
5831if test "${lt_cv_path_LD+set}" = set; then :
5832 $as_echo_n "(cached) " >&6
ce2cded5 5833else
7357c5b6
AM
5834 if test -z "$LD"; then
5835 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5836 for ac_dir in $PATH; do
5837 IFS="$lt_save_ifs"
5838 test -z "$ac_dir" && ac_dir=.
5839 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5840 lt_cv_path_LD="$ac_dir/$ac_prog"
5841 # Check to see if the program is GNU ld. I'd rather use --version,
5842 # but apparently some variants of GNU ld only accept -v.
5843 # Break only if it was the GNU/non-GNU ld that we prefer.
5844 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5845 *GNU* | *'with BFD'*)
5846 test "$with_gnu_ld" != no && break
5847 ;;
5848 *)
5849 test "$with_gnu_ld" != yes && break
5850 ;;
5851 esac
5852 fi
5853 done
5854 IFS="$lt_save_ifs"
ce2cded5 5855else
7357c5b6 5856 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ce2cded5
L
5857fi
5858fi
7357c5b6
AM
5859
5860LD="$lt_cv_path_LD"
5861if test -n "$LD"; then
81ecdfbb
RW
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5863$as_echo "$LD" >&6; }
ce2cded5 5864else
81ecdfbb
RW
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866$as_echo "no" >&6; }
ce2cded5 5867fi
81ecdfbb
RW
5868test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5870$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5871if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5872 $as_echo_n "(cached) " >&6
ce2cded5 5873else
7357c5b6
AM
5874 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5875case `$LD -v 2>&1 </dev/null` in
5876*GNU* | *'with BFD'*)
5877 lt_cv_prog_gnu_ld=yes
5878 ;;
5879*)
5880 lt_cv_prog_gnu_ld=no
5881 ;;
5882esac
ce2cded5 5883fi
81ecdfbb
RW
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5885$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 5886with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
5887
5888
5889
5890
5891
5892
5893
5894
5895
81ecdfbb
RW
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5897$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5898if test "${lt_cv_path_NM+set}" = set; then :
5899 $as_echo_n "(cached) " >&6
ce2cded5 5900else
7357c5b6
AM
5901 if test -n "$NM"; then
5902 # Let the user override the test.
5903 lt_cv_path_NM="$NM"
ce2cded5 5904else
7357c5b6
AM
5905 lt_nm_to_check="${ac_tool_prefix}nm"
5906 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5907 lt_nm_to_check="$lt_nm_to_check nm"
20e95c23 5908 fi
7357c5b6
AM
5909 for lt_tmp_nm in $lt_nm_to_check; do
5910 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5911 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5912 IFS="$lt_save_ifs"
5913 test -z "$ac_dir" && ac_dir=.
5914 tmp_nm="$ac_dir/$lt_tmp_nm"
5915 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5916 # Check to see if the nm accepts a BSD-compat flag.
5917 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5918 # nm: unknown option "B" ignored
5919 # Tru64's nm complains that /dev/null is an invalid object file
5920 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5921 */dev/null* | *'Invalid file or object type'*)
5922 lt_cv_path_NM="$tmp_nm -B"
5923 break
5924 ;;
5925 *)
5926 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5927 */dev/null*)
5928 lt_cv_path_NM="$tmp_nm -p"
5929 break
5930 ;;
5931 *)
5932 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5933 continue # so that we can try to find one that supports BSD flags
5934 ;;
5935 esac
5936 ;;
5937 esac
5938 fi
5939 done
5940 IFS="$lt_save_ifs"
5941 done
5942 : ${lt_cv_path_NM=no}
ce2cded5
L
5943fi
5944fi
81ecdfbb
RW
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5946$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
5947if test "$lt_cv_path_NM" != "no"; then
5948 NM="$lt_cv_path_NM"
ce2cded5 5949else
7357c5b6 5950 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5951 if test -n "$DUMPBIN"; then :
5952 # Let the user override the test.
5953 else
5954 if test -n "$ac_tool_prefix"; then
5955 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
5956 do
5957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5958set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5960$as_echo_n "checking for $ac_word... " >&6; }
5961if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5962 $as_echo_n "(cached) " >&6
20e95c23 5963else
7357c5b6
AM
5964 if test -n "$DUMPBIN"; then
5965 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
5966else
5967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968for as_dir in $PATH
5969do
5970 IFS=$as_save_IFS
5971 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5972 for ac_exec_ext in '' $ac_executable_extensions; do
5973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 5974 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5976 break 2
5977 fi
5978done
81ecdfbb
RW
5979 done
5980IFS=$as_save_IFS
d7040cdb 5981
20e95c23 5982fi
ce2cded5 5983fi
7357c5b6
AM
5984DUMPBIN=$ac_cv_prog_DUMPBIN
5985if test -n "$DUMPBIN"; then
81ecdfbb
RW
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5987$as_echo "$DUMPBIN" >&6; }
42ecbf5e 5988else
81ecdfbb
RW
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990$as_echo "no" >&6; }
42ecbf5e
DJ
5991fi
5992
81ecdfbb 5993
7357c5b6
AM
5994 test -n "$DUMPBIN" && break
5995 done
ce2cded5 5996fi
7357c5b6
AM
5997if test -z "$DUMPBIN"; then
5998 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5999 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6000do
6001 # Extract the first word of "$ac_prog", so it can be a program name with args.
6002set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6004$as_echo_n "checking for $ac_word... " >&6; }
6005if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6006 $as_echo_n "(cached) " >&6
42ecbf5e 6007else
7357c5b6
AM
6008 if test -n "$ac_ct_DUMPBIN"; then
6009 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
6010else
6011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012for as_dir in $PATH
6013do
6014 IFS=$as_save_IFS
6015 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6016 for ac_exec_ext in '' $ac_executable_extensions; do
6017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6018 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 6019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6020 break 2
6021 fi
6022done
81ecdfbb
RW
6023 done
6024IFS=$as_save_IFS
d7040cdb 6025
ce2cded5
L
6026fi
6027fi
7357c5b6
AM
6028ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6029if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6031$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 6032else
81ecdfbb
RW
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6034$as_echo "no" >&6; }
ce2cded5 6035fi
d7040cdb 6036
81ecdfbb 6037
7357c5b6 6038 test -n "$ac_ct_DUMPBIN" && break
ce2cded5 6039done
d7040cdb 6040
81ecdfbb
RW
6041 if test "x$ac_ct_DUMPBIN" = x; then
6042 DUMPBIN=":"
6043 else
6044 case $cross_compiling:$ac_tool_warned in
6045yes:)
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6048ac_tool_warned=yes ;;
6049esac
6050 DUMPBIN=$ac_ct_DUMPBIN
6051 fi
ce2cded5 6052fi
7357c5b6 6053
3725885a
RW
6054 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6055 *COFF*)
6056 DUMPBIN="$DUMPBIN -symbols"
6057 ;;
6058 *)
6059 DUMPBIN=:
6060 ;;
6061 esac
6062 fi
7357c5b6
AM
6063
6064 if test "$DUMPBIN" != ":"; then
6065 NM="$DUMPBIN"
6066 fi
ce2cded5 6067fi
7357c5b6
AM
6068test -z "$NM" && NM=nm
6069
6070
6071
6072
6073
6074
81ecdfbb
RW
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6076$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6077if test "${lt_cv_nm_interface+set}" = set; then :
6078 $as_echo_n "(cached) " >&6
20e95c23 6079else
7357c5b6
AM
6080 lt_cv_nm_interface="BSD nm"
6081 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 6082 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7357c5b6
AM
6083 (eval "$ac_compile" 2>conftest.err)
6084 cat conftest.err >&5
3725885a 6085 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
6086 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6087 cat conftest.err >&5
3725885a 6088 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7357c5b6
AM
6089 cat conftest.out >&5
6090 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6091 lt_cv_nm_interface="MS dumpbin"
6092 fi
6093 rm -f conftest*
20e95c23 6094fi
81ecdfbb
RW
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6096$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 6097
81ecdfbb
RW
6098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6099$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
6100LN_S=$as_ln_s
6101if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6103$as_echo "yes" >&6; }
ce2cded5 6104else
81ecdfbb
RW
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6106$as_echo "no, using $LN_S" >&6; }
d7040cdb 6107fi
20e95c23 6108
7357c5b6 6109# find the maximum length of command line arguments
81ecdfbb
RW
6110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6111$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6112if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6113 $as_echo_n "(cached) " >&6
7357c5b6
AM
6114else
6115 i=0
6116 teststring="ABCD"
20e95c23 6117
7357c5b6
AM
6118 case $build_os in
6119 msdosdjgpp*)
6120 # On DJGPP, this test can blow up pretty badly due to problems in libc
6121 # (any single argument exceeding 2000 bytes causes a buffer overrun
6122 # during glob expansion). Even if it were fixed, the result of this
6123 # check would be larger than it should be.
6124 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6125 ;;
20e95c23 6126
7357c5b6
AM
6127 gnu*)
6128 # Under GNU Hurd, this test is not required because there is
6129 # no limit to the length of command line arguments.
6130 # Libtool will interpret -1 as no limit whatsoever
6131 lt_cv_sys_max_cmd_len=-1;
6132 ;;
20e95c23 6133
b214d478 6134 cygwin* | mingw* | cegcc*)
7357c5b6
AM
6135 # On Win9x/ME, this test blows up -- it succeeds, but takes
6136 # about 5 minutes as the teststring grows exponentially.
6137 # Worse, since 9x/ME are not pre-emptively multitasking,
6138 # you end up with a "frozen" computer, even though with patience
6139 # the test eventually succeeds (with a max line length of 256k).
6140 # Instead, let's just punt: use the minimum linelength reported by
6141 # all of the supported platforms: 8192 (on NT/2K/XP).
6142 lt_cv_sys_max_cmd_len=8192;
6143 ;;
20e95c23 6144
3725885a
RW
6145 mint*)
6146 # On MiNT this can take a long time and run out of memory.
6147 lt_cv_sys_max_cmd_len=8192;
6148 ;;
6149
7357c5b6
AM
6150 amigaos*)
6151 # On AmigaOS with pdksh, this test takes hours, literally.
6152 # So we just punt and use a minimum line length of 8192.
6153 lt_cv_sys_max_cmd_len=8192;
6154 ;;
20e95c23 6155
7357c5b6
AM
6156 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6157 # This has been around since 386BSD, at least. Likely further.
6158 if test -x /sbin/sysctl; then
6159 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6160 elif test -x /usr/sbin/sysctl; then
6161 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6162 else
6163 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6164 fi
6165 # And add a safety zone
6166 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6167 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6168 ;;
d7040cdb 6169
7357c5b6
AM
6170 interix*)
6171 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6172 lt_cv_sys_max_cmd_len=196608
6173 ;;
d7040cdb 6174
7357c5b6
AM
6175 osf*)
6176 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6177 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6178 # nice to cause kernel panics so lets avoid the loop below.
6179 # First set a reasonable default.
6180 lt_cv_sys_max_cmd_len=16384
6181 #
6182 if test -x /sbin/sysconfig; then
6183 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6184 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6185 esac
6186 fi
6187 ;;
6188 sco3.2v5*)
6189 lt_cv_sys_max_cmd_len=102400
6190 ;;
6191 sysv5* | sco5v6* | sysv4.2uw2*)
6192 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6193 if test -n "$kargmax"; then
6194 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6195 else
6196 lt_cv_sys_max_cmd_len=32768
6197 fi
ce2cded5
L
6198 ;;
6199 *)
b214d478
SE
6200 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6201 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
6202 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6203 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6204 else
6205 # Make teststring a little bigger before we do anything with it.
6206 # a 1K string should be a reasonable start.
6207 for i in 1 2 3 4 5 6 7 8 ; do
6208 teststring=$teststring$teststring
6209 done
6210 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6211 # If test is not a shell built-in, we'll probably end up computing a
6212 # maximum length that is only half of the actual maximum length, but
6213 # we can't tell.
3725885a
RW
6214 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6215 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357c5b6
AM
6216 test $i != 17 # 1/2 MB should be enough
6217 do
6218 i=`expr $i + 1`
6219 teststring=$teststring$teststring
6220 done
6221 # Only check the string length outside the loop.
6222 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6223 teststring=
6224 # Add a significant safety factor because C++ compilers can tack on
6225 # massive amounts of additional arguments before passing them to the
6226 # linker. It appears as though 1/2 is a usable value.
6227 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6228 fi
ce2cded5
L
6229 ;;
6230 esac
d7040cdb 6231
7357c5b6 6232fi
d7040cdb 6233
7357c5b6 6234if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6236$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 6237else
81ecdfbb
RW
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6239$as_echo "none" >&6; }
7357c5b6
AM
6240fi
6241max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
6242
6243
6244
6245
6246
d7040cdb 6247
7357c5b6
AM
6248: ${CP="cp -f"}
6249: ${MV="mv -f"}
6250: ${RM="rm -f"}
d7040cdb 6251
81ecdfbb
RW
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6253$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
6254# Try some XSI features
6255xsi_shell=no
6256( _lt_dummy="a/b/c"
6257 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
6258 = c,a/b,, \
6259 && eval 'test $(( 1 + 1 )) -eq 2 \
6260 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 6261 && xsi_shell=yes
81ecdfbb
RW
6262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6263$as_echo "$xsi_shell" >&6; }
d7040cdb 6264
d7040cdb 6265
81ecdfbb
RW
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6267$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
6268lt_shell_append=no
6269( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6270 >/dev/null 2>&1 \
6271 && lt_shell_append=yes
81ecdfbb
RW
6272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6273$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6274
6275
7357c5b6
AM
6276if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6277 lt_unset=unset
6278else
6279 lt_unset=false
6280fi
d7040cdb 6281
d7040cdb 6282
d7040cdb 6283
d7040cdb 6284
d7040cdb 6285
7357c5b6
AM
6286# test EBCDIC or ASCII
6287case `echo X|tr X '\101'` in
6288 A) # ASCII based system
6289 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6290 lt_SP2NL='tr \040 \012'
6291 lt_NL2SP='tr \015\012 \040\040'
6292 ;;
6293 *) # EBCDIC based system
6294 lt_SP2NL='tr \100 \n'
6295 lt_NL2SP='tr \r\n \100\100'
6296 ;;
6297esac
42ecbf5e 6298
d7040cdb
SE
6299
6300
6301
6302
6303
6304
d7040cdb 6305
d7040cdb 6306
81ecdfbb
RW
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6308$as_echo_n "checking for $LD option to reload object files... " >&6; }
6309if test "${lt_cv_ld_reload_flag+set}" = set; then :
6310 $as_echo_n "(cached) " >&6
7357c5b6
AM
6311else
6312 lt_cv_ld_reload_flag='-r'
6313fi
81ecdfbb
RW
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6315$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
6316reload_flag=$lt_cv_ld_reload_flag
6317case $reload_flag in
6318"" | " "*) ;;
6319*) reload_flag=" $reload_flag" ;;
6320esac
6321reload_cmds='$LD$reload_flag -o $output$reload_objs'
6322case $host_os in
6323 darwin*)
6324 if test "$GCC" = yes; then
6325 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6326 else
6327 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6328 fi
6329 ;;
6330esac
d7040cdb 6331
d7040cdb 6332
d7040cdb 6333
d7040cdb 6334
d7040cdb 6335
d7040cdb 6336
d7040cdb 6337
d7040cdb 6338
d7040cdb 6339
b214d478
SE
6340if test -n "$ac_tool_prefix"; then
6341 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6342set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344$as_echo_n "checking for $ac_word... " >&6; }
6345if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6346 $as_echo_n "(cached) " >&6
b214d478
SE
6347else
6348 if test -n "$OBJDUMP"; then
6349 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6350else
6351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352for as_dir in $PATH
6353do
6354 IFS=$as_save_IFS
6355 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6358 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6360 break 2
6361 fi
6362done
81ecdfbb
RW
6363 done
6364IFS=$as_save_IFS
b214d478
SE
6365
6366fi
6367fi
6368OBJDUMP=$ac_cv_prog_OBJDUMP
6369if test -n "$OBJDUMP"; then
81ecdfbb
RW
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6371$as_echo "$OBJDUMP" >&6; }
b214d478 6372else
81ecdfbb
RW
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374$as_echo "no" >&6; }
b214d478
SE
6375fi
6376
81ecdfbb 6377
b214d478
SE
6378fi
6379if test -z "$ac_cv_prog_OBJDUMP"; then
6380 ac_ct_OBJDUMP=$OBJDUMP
6381 # Extract the first word of "objdump", so it can be a program name with args.
6382set dummy objdump; ac_word=$2
81ecdfbb
RW
6383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384$as_echo_n "checking for $ac_word... " >&6; }
6385if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6386 $as_echo_n "(cached) " >&6
b214d478
SE
6387else
6388 if test -n "$ac_ct_OBJDUMP"; then
6389 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6390else
6391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392for as_dir in $PATH
6393do
6394 IFS=$as_save_IFS
6395 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6398 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6400 break 2
6401 fi
6402done
81ecdfbb
RW
6403 done
6404IFS=$as_save_IFS
b214d478 6405
b214d478
SE
6406fi
6407fi
6408ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6409if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6411$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 6412else
81ecdfbb
RW
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414$as_echo "no" >&6; }
b214d478
SE
6415fi
6416
81ecdfbb
RW
6417 if test "x$ac_ct_OBJDUMP" = x; then
6418 OBJDUMP="false"
6419 else
6420 case $cross_compiling:$ac_tool_warned in
6421yes:)
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6424ac_tool_warned=yes ;;
6425esac
6426 OBJDUMP=$ac_ct_OBJDUMP
6427 fi
b214d478
SE
6428else
6429 OBJDUMP="$ac_cv_prog_OBJDUMP"
6430fi
6431
6432test -z "$OBJDUMP" && OBJDUMP=objdump
6433
6434
6435
6436
6437
6438
6439
6440
d7040cdb 6441
81ecdfbb
RW
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6443$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6444if test "${lt_cv_deplibs_check_method+set}" = set; then :
6445 $as_echo_n "(cached) " >&6
ce2cded5 6446else
7357c5b6
AM
6447 lt_cv_file_magic_cmd='$MAGIC_CMD'
6448lt_cv_file_magic_test_file=
6449lt_cv_deplibs_check_method='unknown'
6450# Need to set the preceding variable on all platforms that support
6451# interlibrary dependencies.
6452# 'none' -- dependencies not supported.
6453# `unknown' -- same as none, but documents that we really don't know.
6454# 'pass_all' -- all dependencies passed with no checks.
6455# 'test_compile' -- check by making test program.
6456# 'file_magic [[regex]]' -- check by looking for files in library path
6457# which responds to the $file_magic_cmd with a given extended regex.
6458# If you have `file' or equivalent on your system and you're not sure
6459# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 6460
ce2cded5 6461case $host_os in
7357c5b6
AM
6462aix[4-9]*)
6463 lt_cv_deplibs_check_method=pass_all
ce2cded5 6464 ;;
7357c5b6
AM
6465
6466beos*)
6467 lt_cv_deplibs_check_method=pass_all
ce2cded5 6468 ;;
7357c5b6
AM
6469
6470bsdi[45]*)
6471 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6472 lt_cv_file_magic_cmd='/usr/bin/file -L'
6473 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 6474 ;;
7357c5b6
AM
6475
6476cygwin*)
6477 # func_win32_libid is a shell function defined in ltmain.sh
6478 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6479 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 6480 ;;
7357c5b6
AM
6481
6482mingw* | pw32*)
6483 # Base MSYS/MinGW do not provide the 'file' command needed by
6484 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6485 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6486 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6487 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7357c5b6
AM
6488 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6489 lt_cv_file_magic_cmd='func_win32_libid'
6490 else
6491 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6492 lt_cv_file_magic_cmd='$OBJDUMP -f'
6493 fi
ce2cded5 6494 ;;
7357c5b6 6495
3725885a 6496cegcc*)
b214d478
SE
6497 # use the weaker test based on 'objdump'. See mingw*.
6498 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6499 lt_cv_file_magic_cmd='$OBJDUMP -f'
6500 ;;
6501
7357c5b6
AM
6502darwin* | rhapsody*)
6503 lt_cv_deplibs_check_method=pass_all
ce2cded5 6504 ;;
7357c5b6
AM
6505
6506freebsd* | dragonfly*)
6507 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6508 case $host_cpu in
6509 i*86 )
6510 # Not sure whether the presence of OpenBSD here was a mistake.
6511 # Let's accept both of them until this is cleared up.
6512 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6513 lt_cv_file_magic_cmd=/usr/bin/file
6514 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6515 ;;
6516 esac
6517 else
6518 lt_cv_deplibs_check_method=pass_all
6519 fi
ce2cded5 6520 ;;
7357c5b6
AM
6521
6522gnu*)
6523 lt_cv_deplibs_check_method=pass_all
ce2cded5 6524 ;;
7357c5b6 6525
3725885a
RW
6526haiku*)
6527 lt_cv_deplibs_check_method=pass_all
6528 ;;
6529
7357c5b6
AM
6530hpux10.20* | hpux11*)
6531 lt_cv_file_magic_cmd=/usr/bin/file
6532 case $host_cpu in
6533 ia64*)
6534 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6535 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6536 ;;
6537 hppa*64*)
3725885a 6538 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
6539 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6540 ;;
6541 *)
3725885a 6542 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7357c5b6
AM
6543 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6544 ;;
6545 esac
ce2cded5 6546 ;;
d7040cdb 6547
7357c5b6
AM
6548interix[3-9]*)
6549 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6550 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6551 ;;
d7040cdb 6552
7357c5b6
AM
6553irix5* | irix6* | nonstopux*)
6554 case $LD in
6555 *-32|*"-32 ") libmagic=32-bit;;
6556 *-n32|*"-n32 ") libmagic=N32;;
6557 *-64|*"-64 ") libmagic=64-bit;;
6558 *) libmagic=never-match;;
6559 esac
6560 lt_cv_deplibs_check_method=pass_all
6561 ;;
d7040cdb 6562
7357c5b6 6563# This must be Linux ELF.
58e24671 6564linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
6565 lt_cv_deplibs_check_method=pass_all
6566 ;;
d7040cdb 6567
7357c5b6
AM
6568netbsd*)
6569 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6571 else
6572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6573 fi
ce2cded5 6574 ;;
d7040cdb 6575
7357c5b6
AM
6576newos6*)
6577 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6578 lt_cv_file_magic_cmd=/usr/bin/file
6579 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6580 ;;
d7040cdb 6581
7357c5b6
AM
6582*nto* | *qnx*)
6583 lt_cv_deplibs_check_method=pass_all
6584 ;;
d7040cdb 6585
7357c5b6
AM
6586openbsd*)
6587 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6588 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
ce2cded5 6589 else
7357c5b6 6590 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 6591 fi
7357c5b6 6592 ;;
d7040cdb 6593
7357c5b6
AM
6594osf3* | osf4* | osf5*)
6595 lt_cv_deplibs_check_method=pass_all
6596 ;;
d7040cdb 6597
7357c5b6
AM
6598rdos*)
6599 lt_cv_deplibs_check_method=pass_all
6600 ;;
d7040cdb 6601
7357c5b6
AM
6602solaris*)
6603 lt_cv_deplibs_check_method=pass_all
6604 ;;
d7040cdb 6605
7357c5b6
AM
6606sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6607 lt_cv_deplibs_check_method=pass_all
6608 ;;
d7040cdb 6609
7357c5b6
AM
6610sysv4 | sysv4.3*)
6611 case $host_vendor in
6612 motorola)
6613 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]'
6614 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6615 ;;
6616 ncr)
6617 lt_cv_deplibs_check_method=pass_all
6618 ;;
6619 sequent)
6620 lt_cv_file_magic_cmd='/bin/file'
6621 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6622 ;;
6623 sni)
6624 lt_cv_file_magic_cmd='/bin/file'
6625 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6626 lt_cv_file_magic_test_file=/lib/libc.so
6627 ;;
6628 siemens)
6629 lt_cv_deplibs_check_method=pass_all
6630 ;;
6631 pc)
6632 lt_cv_deplibs_check_method=pass_all
6633 ;;
6634 esac
6635 ;;
d7040cdb 6636
7357c5b6
AM
6637tpf*)
6638 lt_cv_deplibs_check_method=pass_all
6639 ;;
6640esac
d7040cdb 6641
7357c5b6 6642fi
81ecdfbb
RW
6643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6644$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
6645file_magic_cmd=$lt_cv_file_magic_cmd
6646deplibs_check_method=$lt_cv_deplibs_check_method
6647test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
6648
6649
6650
7357c5b6
AM
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660if test -n "$ac_tool_prefix"; then
6661 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6662set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664$as_echo_n "checking for $ac_word... " >&6; }
6665if test "${ac_cv_prog_AR+set}" = set; then :
6666 $as_echo_n "(cached) " >&6
7357c5b6
AM
6667else
6668 if test -n "$AR"; then
6669 ac_cv_prog_AR="$AR" # Let the user override the test.
6670else
6671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672for as_dir in $PATH
6673do
6674 IFS=$as_save_IFS
6675 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6678 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6680 break 2
ce2cded5
L
6681 fi
6682done
81ecdfbb
RW
6683 done
6684IFS=$as_save_IFS
d7040cdb 6685
42ecbf5e 6686fi
ce2cded5 6687fi
7357c5b6
AM
6688AR=$ac_cv_prog_AR
6689if test -n "$AR"; then
81ecdfbb
RW
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6691$as_echo "$AR" >&6; }
42ecbf5e 6692else
81ecdfbb
RW
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694$as_echo "no" >&6; }
42ecbf5e
DJ
6695fi
6696
81ecdfbb 6697
7357c5b6
AM
6698fi
6699if test -z "$ac_cv_prog_AR"; then
6700 ac_ct_AR=$AR
6701 # Extract the first word of "ar", so it can be a program name with args.
6702set dummy ar; ac_word=$2
81ecdfbb
RW
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704$as_echo_n "checking for $ac_word... " >&6; }
6705if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6706 $as_echo_n "(cached) " >&6
7357c5b6
AM
6707else
6708 if test -n "$ac_ct_AR"; then
6709 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6710else
6711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712for as_dir in $PATH
6713do
6714 IFS=$as_save_IFS
6715 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6716 for ac_exec_ext in '' $ac_executable_extensions; do
6717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6718 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6720 break 2
6721 fi
6722done
81ecdfbb
RW
6723 done
6724IFS=$as_save_IFS
42ecbf5e 6725
7357c5b6
AM
6726fi
6727fi
6728ac_ct_AR=$ac_cv_prog_ac_ct_AR
6729if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6731$as_echo "$ac_ct_AR" >&6; }
7357c5b6 6732else
81ecdfbb
RW
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734$as_echo "no" >&6; }
7357c5b6 6735fi
d7040cdb 6736
81ecdfbb
RW
6737 if test "x$ac_ct_AR" = x; then
6738 AR="false"
6739 else
6740 case $cross_compiling:$ac_tool_warned in
6741yes:)
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6744ac_tool_warned=yes ;;
6745esac
6746 AR=$ac_ct_AR
6747 fi
7357c5b6
AM
6748else
6749 AR="$ac_cv_prog_AR"
6750fi
d7040cdb 6751
7357c5b6
AM
6752test -z "$AR" && AR=ar
6753test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
6754
6755
6756
20e95c23 6757
d7040cdb 6758
d7040cdb
SE
6759
6760
6761
6762
6763
6764
7357c5b6
AM
6765if test -n "$ac_tool_prefix"; then
6766 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6767set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769$as_echo_n "checking for $ac_word... " >&6; }
6770if test "${ac_cv_prog_STRIP+set}" = set; then :
6771 $as_echo_n "(cached) " >&6
7357c5b6
AM
6772else
6773 if test -n "$STRIP"; then
6774 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6775else
6776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777for as_dir in $PATH
6778do
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6783 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6785 break 2
ce2cded5 6786 fi
7357c5b6 6787done
81ecdfbb
RW
6788 done
6789IFS=$as_save_IFS
d7040cdb 6790
7357c5b6
AM
6791fi
6792fi
6793STRIP=$ac_cv_prog_STRIP
6794if test -n "$STRIP"; then
81ecdfbb
RW
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6796$as_echo "$STRIP" >&6; }
7357c5b6 6797else
81ecdfbb
RW
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799$as_echo "no" >&6; }
7357c5b6
AM
6800fi
6801
81ecdfbb 6802
7357c5b6
AM
6803fi
6804if test -z "$ac_cv_prog_STRIP"; then
6805 ac_ct_STRIP=$STRIP
6806 # Extract the first word of "strip", so it can be a program name with args.
6807set dummy strip; ac_word=$2
81ecdfbb
RW
6808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809$as_echo_n "checking for $ac_word... " >&6; }
6810if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6811 $as_echo_n "(cached) " >&6
7357c5b6
AM
6812else
6813 if test -n "$ac_ct_STRIP"; then
6814 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6815else
6816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817for as_dir in $PATH
6818do
6819 IFS=$as_save_IFS
6820 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6823 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6825 break 2
ce2cded5 6826 fi
7357c5b6 6827done
81ecdfbb
RW
6828 done
6829IFS=$as_save_IFS
d7040cdb 6830
7357c5b6
AM
6831fi
6832fi
6833ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6834if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6836$as_echo "$ac_ct_STRIP" >&6; }
20e95c23 6837else
81ecdfbb
RW
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839$as_echo "no" >&6; }
7357c5b6 6840fi
d7040cdb 6841
81ecdfbb
RW
6842 if test "x$ac_ct_STRIP" = x; then
6843 STRIP=":"
6844 else
6845 case $cross_compiling:$ac_tool_warned in
6846yes:)
6847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6849ac_tool_warned=yes ;;
6850esac
6851 STRIP=$ac_ct_STRIP
6852 fi
7357c5b6
AM
6853else
6854 STRIP="$ac_cv_prog_STRIP"
6855fi
d7040cdb 6856
7357c5b6 6857test -z "$STRIP" && STRIP=:
d7040cdb 6858
d7040cdb
SE
6859
6860
6861
d7040cdb 6862
7357c5b6
AM
6863
6864if test -n "$ac_tool_prefix"; then
6865 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6866set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6868$as_echo_n "checking for $ac_word... " >&6; }
6869if test "${ac_cv_prog_RANLIB+set}" = set; then :
6870 $as_echo_n "(cached) " >&6
ce2cded5 6871else
7357c5b6
AM
6872 if test -n "$RANLIB"; then
6873 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6874else
6875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876for as_dir in $PATH
ce2cded5 6877do
7357c5b6
AM
6878 IFS=$as_save_IFS
6879 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6882 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6884 break 2
ce2cded5 6885 fi
7357c5b6 6886done
81ecdfbb
RW
6887 done
6888IFS=$as_save_IFS
7357c5b6 6889
ce2cded5 6890fi
7357c5b6
AM
6891fi
6892RANLIB=$ac_cv_prog_RANLIB
6893if test -n "$RANLIB"; then
81ecdfbb
RW
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6895$as_echo "$RANLIB" >&6; }
ce2cded5 6896else
81ecdfbb
RW
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898$as_echo "no" >&6; }
ce2cded5 6899fi
d7040cdb 6900
81ecdfbb 6901
7357c5b6
AM
6902fi
6903if test -z "$ac_cv_prog_RANLIB"; then
6904 ac_ct_RANLIB=$RANLIB
6905 # Extract the first word of "ranlib", so it can be a program name with args.
6906set dummy ranlib; ac_word=$2
81ecdfbb
RW
6907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908$as_echo_n "checking for $ac_word... " >&6; }
6909if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6910 $as_echo_n "(cached) " >&6
ce2cded5 6911else
7357c5b6
AM
6912 if test -n "$ac_ct_RANLIB"; then
6913 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6914else
6915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916for as_dir in $PATH
6917do
6918 IFS=$as_save_IFS
6919 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6922 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6924 break 2
6925 fi
6926done
81ecdfbb
RW
6927 done
6928IFS=$as_save_IFS
7357c5b6 6929
ce2cded5 6930fi
7357c5b6
AM
6931fi
6932ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6933if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6935$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 6936else
81ecdfbb
RW
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938$as_echo "no" >&6; }
ce2cded5 6939fi
d7040cdb 6940
81ecdfbb
RW
6941 if test "x$ac_ct_RANLIB" = x; then
6942 RANLIB=":"
6943 else
6944 case $cross_compiling:$ac_tool_warned in
6945yes:)
6946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6948ac_tool_warned=yes ;;
6949esac
6950 RANLIB=$ac_ct_RANLIB
6951 fi
7357c5b6
AM
6952else
6953 RANLIB="$ac_cv_prog_RANLIB"
ce2cded5 6954fi
d7040cdb 6955
7357c5b6 6956test -z "$RANLIB" && RANLIB=:
d7040cdb 6957
7357c5b6
AM
6958
6959
6960
6961
6962
6963# Determine commands to create old-style static archives.
b214d478 6964old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
6965old_postinstall_cmds='chmod 644 $oldlib'
6966old_postuninstall_cmds=
6967
6968if test -n "$RANLIB"; then
6969 case $host_os in
6970 openbsd*)
6971 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6972 ;;
6973 *)
6974 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6975 ;;
6976 esac
6977 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 6978fi
7357c5b6 6979
3725885a
RW
6980case $host_os in
6981 darwin*)
6982 lock_old_archive_extraction=yes ;;
6983 *)
6984 lock_old_archive_extraction=no ;;
6985esac
6986
6987
6988
6989
6990
6991
7357c5b6
AM
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025# If no C compiler was specified, use CC.
7026LTCC=${LTCC-"$CC"}
7027
7028# If no C compiler flags were specified, use CFLAGS.
7029LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7030
7031# Allow CC to be a program name with arguments.
7032compiler=$CC
7033
7034
7035# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
7036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7037$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7038if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7039 $as_echo_n "(cached) " >&6
ce2cded5 7040else
d7040cdb 7041
7357c5b6
AM
7042# These are sane defaults that work on at least a few old systems.
7043# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 7044
7357c5b6
AM
7045# Character class describing NM global symbol codes.
7046symcode='[BCDEGRST]'
7047
7048# Regexp to match symbols that can be accessed directly from C.
7049sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7050
7051# Define system-specific variables.
7052case $host_os in
7053aix*)
7054 symcode='[BCDT]'
7055 ;;
b214d478 7056cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
7057 symcode='[ABCDGISTW]'
7058 ;;
7059hpux*)
7060 if test "$host_cpu" = ia64; then
7061 symcode='[ABCDEGRST]'
ce2cded5 7062 fi
7357c5b6
AM
7063 ;;
7064irix* | nonstopux*)
7065 symcode='[BCDEGRST]'
7066 ;;
7067osf*)
7068 symcode='[BCDEGQRST]'
7069 ;;
7070solaris*)
7071 symcode='[BDRT]'
7072 ;;
7073sco3.2v5*)
7074 symcode='[DT]'
7075 ;;
7076sysv4.2uw2*)
7077 symcode='[DT]'
7078 ;;
7079sysv5* | sco5v6* | unixware* | OpenUNIX*)
7080 symcode='[ABDT]'
7081 ;;
7082sysv4)
7083 symcode='[DFNSTU]'
7084 ;;
7085esac
d7040cdb 7086
7357c5b6
AM
7087# If we're using GNU nm, then use its standard symbol codes.
7088case `$NM -V 2>&1` in
7089*GNU* | *'with BFD'*)
7090 symcode='[ABCDGIRSTW]' ;;
7091esac
d7040cdb 7092
7357c5b6
AM
7093# Transform an extracted symbol line into a proper C declaration.
7094# Some systems (esp. on ia64) link data and code symbols differently,
7095# so use this general approach.
7096lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7097
7098# Transform an extracted symbol line into symbol name and symbol address
7099lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 7100lt_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
7101
7102# Handle CRLF in mingw tool chain
7103opt_cr=
7104case $build_os in
7105mingw*)
7106 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7107 ;;
7108esac
d7040cdb 7109
7357c5b6
AM
7110# Try without a prefix underscore, then with it.
7111for ac_symprfx in "" "_"; do
d7040cdb 7112
7357c5b6
AM
7113 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7114 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 7115
7357c5b6
AM
7116 # Write the raw and C identifiers.
7117 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7118 # Fake it for dumpbin and say T for any non-static function
7119 # and D for any global variable.
7120 # Also find C++ and __fastcall symbols from MSVC++,
7121 # which start with @ or ?.
7122 lt_cv_sys_global_symbol_pipe="$AWK '"\
7123" {last_section=section; section=\$ 3};"\
7124" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7125" \$ 0!~/External *\|/{next};"\
7126" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7127" {if(hide[section]) next};"\
7128" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7129" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7130" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7131" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7132" ' prfx=^$ac_symprfx"
7133 else
7134 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7135 fi
d7040cdb 7136
7357c5b6
AM
7137 # Check to see that the pipe works correctly.
7138 pipe_works=no
d7040cdb 7139
7357c5b6
AM
7140 rm -f conftest*
7141 cat > conftest.$ac_ext <<_LT_EOF
7142#ifdef __cplusplus
7143extern "C" {
7144#endif
7145char nm_test_var;
7146void nm_test_func(void);
7147void nm_test_func(void){}
7148#ifdef __cplusplus
20e95c23 7149}
7357c5b6
AM
7150#endif
7151int main(){nm_test_var='a';nm_test_func();return(0);}
7152_LT_EOF
7153
81ecdfbb 7154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 7155 (eval $ac_compile) 2>&5
20e95c23 7156 ac_status=$?
81ecdfbb
RW
7157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7158 test $ac_status = 0; }; then
7357c5b6
AM
7159 # Now try to grab the symbols.
7160 nlist=conftest.nm
3725885a
RW
7161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7162 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
20e95c23 7163 ac_status=$?
81ecdfbb
RW
7164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7165 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
7166 # Try sorting and uniquifying the output.
7167 if sort "$nlist" | uniq > "$nlist"T; then
7168 mv -f "$nlist"T "$nlist"
7169 else
7170 rm -f "$nlist"T
7171 fi
d7040cdb 7172
7357c5b6
AM
7173 # Make sure that we snagged all the symbols we need.
7174 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7175 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7176 cat <<_LT_EOF > conftest.$ac_ext
7177#ifdef __cplusplus
7178extern "C" {
7179#endif
ce2cded5 7180
7357c5b6
AM
7181_LT_EOF
7182 # Now generate the symbol file.
7183 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
ce2cded5 7184
7357c5b6 7185 cat <<_LT_EOF >> conftest.$ac_ext
42ecbf5e 7186
7357c5b6
AM
7187/* The mapping between symbol names and symbols. */
7188const struct {
7189 const char *name;
7190 void *address;
7191}
7192lt__PROGRAM__LTX_preloaded_symbols[] =
7193{
7194 { "@PROGRAM@", (void *) 0 },
7195_LT_EOF
7196 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7197 cat <<\_LT_EOF >> conftest.$ac_ext
7198 {0, (void *) 0}
7199};
d7040cdb 7200
7357c5b6
AM
7201/* This works around a problem in FreeBSD linker */
7202#ifdef FREEBSD_WORKAROUND
7203static const void *lt_preloaded_setup() {
7204 return lt__PROGRAM__LTX_preloaded_symbols;
7205}
ce2cded5 7206#endif
42ecbf5e 7207
7357c5b6 7208#ifdef __cplusplus
ce2cded5 7209}
7357c5b6
AM
7210#endif
7211_LT_EOF
7212 # Now try linking the two files.
7213 mv conftest.$ac_objext conftstm.$ac_objext
7214 lt_save_LIBS="$LIBS"
7215 lt_save_CFLAGS="$CFLAGS"
7216 LIBS="conftstm.$ac_objext"
7217 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
7219 (eval $ac_link) 2>&5
7220 ac_status=$?
81ecdfbb
RW
7221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7222 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
7223 pipe_works=yes
7224 fi
7225 LIBS="$lt_save_LIBS"
7226 CFLAGS="$lt_save_CFLAGS"
7227 else
7228 echo "cannot find nm_test_func in $nlist" >&5
7229 fi
7230 else
7231 echo "cannot find nm_test_var in $nlist" >&5
7232 fi
7233 else
7234 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7235 fi
7236 else
7237 echo "$progname: failed program was:" >&5
7238 cat conftest.$ac_ext >&5
7239 fi
b214d478 7240 rm -rf conftest* conftst*
7357c5b6
AM
7241
7242 # Do not use the global_symbol_pipe unless it works.
7243 if test "$pipe_works" = yes; then
7244 break
7245 else
7246 lt_cv_sys_global_symbol_pipe=
7247 fi
7248done
42ecbf5e 7249
ce2cded5 7250fi
7357c5b6
AM
7251
7252if test -z "$lt_cv_sys_global_symbol_pipe"; then
7253 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 7254fi
7357c5b6 7255if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7257$as_echo "failed" >&6; }
7357c5b6 7258else
81ecdfbb
RW
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7260$as_echo "ok" >&6; }
ce2cded5 7261fi
e5a52504 7262
d7040cdb 7263
e5a52504 7264
d7040cdb 7265
d7040cdb 7266
d7040cdb 7267
d7040cdb 7268
d7040cdb 7269
d7040cdb 7270
d7040cdb 7271
d7040cdb 7272
d7040cdb 7273
7357c5b6
AM
7274
7275
7276
b214d478
SE
7277
7278
7279
7280
7281
7357c5b6
AM
7282
7283
81ecdfbb
RW
7284# Check whether --enable-libtool-lock was given.
7285if test "${enable_libtool_lock+set}" = set; then :
7286 enableval=$enable_libtool_lock;
7287fi
7357c5b6 7288
7357c5b6
AM
7289test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7290
7291# Some flags need to be propagated to the compiler or linker for good
7292# libtool support.
7293case $host in
7294ia64-*-hpux*)
7295 # Find out which ABI we are using.
7296 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7298 (eval $ac_compile) 2>&5
7299 ac_status=$?
81ecdfbb
RW
7300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7301 test $ac_status = 0; }; then
7357c5b6
AM
7302 case `/usr/bin/file conftest.$ac_objext` in
7303 *ELF-32*)
7304 HPUX_IA64_MODE="32"
7305 ;;
7306 *ELF-64*)
7307 HPUX_IA64_MODE="64"
7308 ;;
7309 esac
7310 fi
7311 rm -rf conftest*
7312 ;;
7313*-*-irix6*)
7314 # Find out which ABI we are using.
3725885a 7315 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7317 (eval $ac_compile) 2>&5
7318 ac_status=$?
81ecdfbb
RW
7319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7320 test $ac_status = 0; }; then
7357c5b6
AM
7321 if test "$lt_cv_prog_gnu_ld" = yes; then
7322 case `/usr/bin/file conftest.$ac_objext` in
7323 *32-bit*)
7324 LD="${LD-ld} -melf32bsmip"
7325 ;;
7326 *N32*)
7327 LD="${LD-ld} -melf32bmipn32"
7328 ;;
7329 *64-bit*)
7330 LD="${LD-ld} -melf64bmip"
7331 ;;
7332 esac
7333 else
7334 case `/usr/bin/file conftest.$ac_objext` in
7335 *32-bit*)
7336 LD="${LD-ld} -32"
7337 ;;
7338 *N32*)
7339 LD="${LD-ld} -n32"
7340 ;;
7341 *64-bit*)
7342 LD="${LD-ld} -64"
7343 ;;
7344 esac
7345 fi
7346 fi
7347 rm -rf conftest*
7348 ;;
7349
7350x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7351s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7352 # Find out which ABI we are using.
7353 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7355 (eval $ac_compile) 2>&5
7356 ac_status=$?
81ecdfbb
RW
7357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7358 test $ac_status = 0; }; then
7357c5b6
AM
7359 case `/usr/bin/file conftest.o` in
7360 *32-bit*)
7361 case $host in
7362 x86_64-*kfreebsd*-gnu)
7363 LD="${LD-ld} -m elf_i386_fbsd"
7364 ;;
7365 x86_64-*linux*)
7366 LD="${LD-ld} -m elf_i386"
7367 ;;
7368 ppc64-*linux*|powerpc64-*linux*)
7369 LD="${LD-ld} -m elf32ppclinux"
7370 ;;
7371 s390x-*linux*)
7372 LD="${LD-ld} -m elf_s390"
7373 ;;
7374 sparc64-*linux*)
7375 LD="${LD-ld} -m elf32_sparc"
7376 ;;
7377 esac
7378 ;;
7379 *64-bit*)
7380 case $host in
7381 x86_64-*kfreebsd*-gnu)
7382 LD="${LD-ld} -m elf_x86_64_fbsd"
7383 ;;
7384 x86_64-*linux*)
7385 LD="${LD-ld} -m elf_x86_64"
7386 ;;
7387 ppc*-*linux*|powerpc*-*linux*)
7388 LD="${LD-ld} -m elf64ppc"
7389 ;;
7390 s390*-*linux*|s390*-*tpf*)
7391 LD="${LD-ld} -m elf64_s390"
7392 ;;
7393 sparc*-*linux*)
7394 LD="${LD-ld} -m elf64_sparc"
7395 ;;
7396 esac
7397 ;;
7398 esac
7399 fi
7400 rm -rf conftest*
7401 ;;
7402
7403*-*-sco3.2v5*)
7404 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7405 SAVE_CFLAGS="$CFLAGS"
7406 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7408$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7409if test "${lt_cv_cc_needs_belf+set}" = set; then :
7410 $as_echo_n "(cached) " >&6
ce2cded5 7411else
7357c5b6
AM
7412 ac_ext=c
7413ac_cpp='$CPP $CPPFLAGS'
7414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7416ac_compiler_gnu=$ac_cv_c_compiler_gnu
7417
81ecdfbb 7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 7419/* end confdefs.h. */
d7040cdb 7420
7357c5b6
AM
7421int
7422main ()
7423{
7424
7425 ;
7426 return 0;
7427}
ce2cded5 7428_ACEOF
81ecdfbb 7429if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7430 lt_cv_cc_needs_belf=yes
ce2cded5 7431else
81ecdfbb 7432 lt_cv_cc_needs_belf=no
ce2cded5 7433fi
81ecdfbb
RW
7434rm -f core conftest.err conftest.$ac_objext \
7435 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7436 ac_ext=c
7437ac_cpp='$CPP $CPPFLAGS'
7438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7440ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7441
b214d478 7442fi
81ecdfbb
RW
7443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7444$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
7445 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7446 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7447 CFLAGS="$SAVE_CFLAGS"
7448 fi
7449 ;;
7450sparc*-*solaris*)
7451 # Find out which ABI we are using.
7452 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
7454 (eval $ac_compile) 2>&5
7455 ac_status=$?
81ecdfbb
RW
7456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7457 test $ac_status = 0; }; then
b214d478
SE
7458 case `/usr/bin/file conftest.o` in
7459 *64-bit*)
7460 case $lt_cv_prog_gnu_ld in
7461 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7462 *)
7463 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7464 LD="${LD-ld} -64"
7465 fi
7466 ;;
7467 esac
7468 ;;
7469 esac
7470 fi
7471 rm -rf conftest*
7472 ;;
7473esac
7474
7475need_locks="$enable_libtool_lock"
7476
7477
7478 case $host_os in
7479 rhapsody* | darwin*)
7480 if test -n "$ac_tool_prefix"; then
7481 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7482set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484$as_echo_n "checking for $ac_word... " >&6; }
7485if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7486 $as_echo_n "(cached) " >&6
b214d478
SE
7487else
7488 if test -n "$DSYMUTIL"; then
7489 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7490else
7491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492for as_dir in $PATH
7493do
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7498 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7500 break 2
7501 fi
7502done
81ecdfbb
RW
7503 done
7504IFS=$as_save_IFS
b214d478
SE
7505
7506fi
7507fi
7508DSYMUTIL=$ac_cv_prog_DSYMUTIL
7509if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7511$as_echo "$DSYMUTIL" >&6; }
b214d478 7512else
81ecdfbb
RW
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514$as_echo "no" >&6; }
b214d478
SE
7515fi
7516
81ecdfbb 7517
b214d478
SE
7518fi
7519if test -z "$ac_cv_prog_DSYMUTIL"; then
7520 ac_ct_DSYMUTIL=$DSYMUTIL
7521 # Extract the first word of "dsymutil", so it can be a program name with args.
7522set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524$as_echo_n "checking for $ac_word... " >&6; }
7525if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7526 $as_echo_n "(cached) " >&6
b214d478
SE
7527else
7528 if test -n "$ac_ct_DSYMUTIL"; then
7529 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7530else
7531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532for as_dir in $PATH
7533do
7534 IFS=$as_save_IFS
7535 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7538 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7540 break 2
7541 fi
7542done
81ecdfbb
RW
7543 done
7544IFS=$as_save_IFS
b214d478 7545
b214d478
SE
7546fi
7547fi
7548ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7549if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7551$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 7552else
81ecdfbb
RW
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554$as_echo "no" >&6; }
b214d478
SE
7555fi
7556
81ecdfbb
RW
7557 if test "x$ac_ct_DSYMUTIL" = x; then
7558 DSYMUTIL=":"
7559 else
7560 case $cross_compiling:$ac_tool_warned in
7561yes:)
7562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7564ac_tool_warned=yes ;;
7565esac
7566 DSYMUTIL=$ac_ct_DSYMUTIL
7567 fi
b214d478
SE
7568else
7569 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7570fi
7571
7572 if test -n "$ac_tool_prefix"; then
7573 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7574set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576$as_echo_n "checking for $ac_word... " >&6; }
7577if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7578 $as_echo_n "(cached) " >&6
b214d478
SE
7579else
7580 if test -n "$NMEDIT"; then
7581 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7582else
7583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584for as_dir in $PATH
7585do
7586 IFS=$as_save_IFS
7587 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7590 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7592 break 2
7593 fi
7594done
81ecdfbb
RW
7595 done
7596IFS=$as_save_IFS
b214d478
SE
7597
7598fi
7599fi
7600NMEDIT=$ac_cv_prog_NMEDIT
7601if test -n "$NMEDIT"; then
81ecdfbb
RW
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7603$as_echo "$NMEDIT" >&6; }
b214d478 7604else
81ecdfbb
RW
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606$as_echo "no" >&6; }
b214d478
SE
7607fi
7608
81ecdfbb 7609
b214d478
SE
7610fi
7611if test -z "$ac_cv_prog_NMEDIT"; then
7612 ac_ct_NMEDIT=$NMEDIT
7613 # Extract the first word of "nmedit", so it can be a program name with args.
7614set dummy nmedit; ac_word=$2
81ecdfbb
RW
7615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616$as_echo_n "checking for $ac_word... " >&6; }
7617if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7618 $as_echo_n "(cached) " >&6
b214d478
SE
7619else
7620 if test -n "$ac_ct_NMEDIT"; then
7621 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7622else
7623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624for as_dir in $PATH
7625do
7626 IFS=$as_save_IFS
7627 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7628 for ac_exec_ext in '' $ac_executable_extensions; do
7629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7630 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7632 break 2
7633 fi
7634done
81ecdfbb
RW
7635 done
7636IFS=$as_save_IFS
b214d478 7637
b214d478
SE
7638fi
7639fi
7640ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7641if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7643$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 7644else
81ecdfbb
RW
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646$as_echo "no" >&6; }
b214d478
SE
7647fi
7648
81ecdfbb
RW
7649 if test "x$ac_ct_NMEDIT" = x; then
7650 NMEDIT=":"
7651 else
7652 case $cross_compiling:$ac_tool_warned in
7653yes:)
7654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7656ac_tool_warned=yes ;;
7657esac
7658 NMEDIT=$ac_ct_NMEDIT
7659 fi
b214d478
SE
7660else
7661 NMEDIT="$ac_cv_prog_NMEDIT"
7662fi
7663
7664 if test -n "$ac_tool_prefix"; then
7665 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7666set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668$as_echo_n "checking for $ac_word... " >&6; }
7669if test "${ac_cv_prog_LIPO+set}" = set; then :
7670 $as_echo_n "(cached) " >&6
b214d478
SE
7671else
7672 if test -n "$LIPO"; then
7673 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7674else
7675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676for as_dir in $PATH
7677do
7678 IFS=$as_save_IFS
7679 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7682 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7684 break 2
7685 fi
7686done
81ecdfbb
RW
7687 done
7688IFS=$as_save_IFS
b214d478
SE
7689
7690fi
7691fi
7692LIPO=$ac_cv_prog_LIPO
7693if test -n "$LIPO"; then
81ecdfbb
RW
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7695$as_echo "$LIPO" >&6; }
b214d478 7696else
81ecdfbb
RW
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698$as_echo "no" >&6; }
b214d478
SE
7699fi
7700
81ecdfbb 7701
b214d478
SE
7702fi
7703if test -z "$ac_cv_prog_LIPO"; then
7704 ac_ct_LIPO=$LIPO
7705 # Extract the first word of "lipo", so it can be a program name with args.
7706set dummy lipo; ac_word=$2
81ecdfbb
RW
7707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708$as_echo_n "checking for $ac_word... " >&6; }
7709if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7710 $as_echo_n "(cached) " >&6
b214d478
SE
7711else
7712 if test -n "$ac_ct_LIPO"; then
7713 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7714else
7715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716for as_dir in $PATH
7717do
7718 IFS=$as_save_IFS
7719 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7722 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7724 break 2
7725 fi
7726done
81ecdfbb
RW
7727 done
7728IFS=$as_save_IFS
b214d478 7729
b214d478
SE
7730fi
7731fi
7732ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7733if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7735$as_echo "$ac_ct_LIPO" >&6; }
b214d478 7736else
81ecdfbb
RW
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738$as_echo "no" >&6; }
b214d478
SE
7739fi
7740
81ecdfbb
RW
7741 if test "x$ac_ct_LIPO" = x; then
7742 LIPO=":"
7743 else
7744 case $cross_compiling:$ac_tool_warned in
7745yes:)
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7748ac_tool_warned=yes ;;
7749esac
7750 LIPO=$ac_ct_LIPO
7751 fi
b214d478
SE
7752else
7753 LIPO="$ac_cv_prog_LIPO"
7754fi
7755
7756 if test -n "$ac_tool_prefix"; then
7757 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7758set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760$as_echo_n "checking for $ac_word... " >&6; }
7761if test "${ac_cv_prog_OTOOL+set}" = set; then :
7762 $as_echo_n "(cached) " >&6
b214d478
SE
7763else
7764 if test -n "$OTOOL"; then
7765 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7766else
7767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768for as_dir in $PATH
7769do
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7774 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7776 break 2
7777 fi
7778done
81ecdfbb
RW
7779 done
7780IFS=$as_save_IFS
b214d478
SE
7781
7782fi
7783fi
7784OTOOL=$ac_cv_prog_OTOOL
7785if test -n "$OTOOL"; then
81ecdfbb
RW
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7787$as_echo "$OTOOL" >&6; }
b214d478 7788else
81ecdfbb
RW
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790$as_echo "no" >&6; }
b214d478
SE
7791fi
7792
81ecdfbb 7793
b214d478
SE
7794fi
7795if test -z "$ac_cv_prog_OTOOL"; then
7796 ac_ct_OTOOL=$OTOOL
7797 # Extract the first word of "otool", so it can be a program name with args.
7798set dummy otool; ac_word=$2
81ecdfbb
RW
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800$as_echo_n "checking for $ac_word... " >&6; }
7801if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7802 $as_echo_n "(cached) " >&6
b214d478
SE
7803else
7804 if test -n "$ac_ct_OTOOL"; then
7805 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7806else
7807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808for as_dir in $PATH
7809do
7810 IFS=$as_save_IFS
7811 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7814 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7816 break 2
7817 fi
7818done
81ecdfbb
RW
7819 done
7820IFS=$as_save_IFS
b214d478 7821
b214d478
SE
7822fi
7823fi
7824ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7825if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7827$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 7828else
81ecdfbb
RW
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830$as_echo "no" >&6; }
b214d478
SE
7831fi
7832
81ecdfbb
RW
7833 if test "x$ac_ct_OTOOL" = x; then
7834 OTOOL=":"
7835 else
7836 case $cross_compiling:$ac_tool_warned in
7837yes:)
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7840ac_tool_warned=yes ;;
7841esac
7842 OTOOL=$ac_ct_OTOOL
7843 fi
b214d478
SE
7844else
7845 OTOOL="$ac_cv_prog_OTOOL"
7846fi
7847
7848 if test -n "$ac_tool_prefix"; then
7849 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7850set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852$as_echo_n "checking for $ac_word... " >&6; }
7853if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7854 $as_echo_n "(cached) " >&6
b214d478
SE
7855else
7856 if test -n "$OTOOL64"; then
7857 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7858else
7859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860for as_dir in $PATH
7861do
7862 IFS=$as_save_IFS
7863 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7866 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7868 break 2
7869 fi
7870done
81ecdfbb
RW
7871 done
7872IFS=$as_save_IFS
b214d478
SE
7873
7874fi
7875fi
7876OTOOL64=$ac_cv_prog_OTOOL64
7877if test -n "$OTOOL64"; then
81ecdfbb
RW
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7879$as_echo "$OTOOL64" >&6; }
b214d478 7880else
81ecdfbb
RW
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882$as_echo "no" >&6; }
b214d478
SE
7883fi
7884
81ecdfbb 7885
b214d478
SE
7886fi
7887if test -z "$ac_cv_prog_OTOOL64"; then
7888 ac_ct_OTOOL64=$OTOOL64
7889 # Extract the first word of "otool64", so it can be a program name with args.
7890set dummy otool64; ac_word=$2
81ecdfbb
RW
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892$as_echo_n "checking for $ac_word... " >&6; }
7893if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7894 $as_echo_n "(cached) " >&6
b214d478
SE
7895else
7896 if test -n "$ac_ct_OTOOL64"; then
7897 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7898else
7899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900for as_dir in $PATH
7901do
7902 IFS=$as_save_IFS
7903 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7906 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7908 break 2
7909 fi
7910done
81ecdfbb
RW
7911 done
7912IFS=$as_save_IFS
b214d478 7913
b214d478
SE
7914fi
7915fi
7916ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7917if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7919$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 7920else
81ecdfbb
RW
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922$as_echo "no" >&6; }
b214d478
SE
7923fi
7924
81ecdfbb
RW
7925 if test "x$ac_ct_OTOOL64" = x; then
7926 OTOOL64=":"
7927 else
7928 case $cross_compiling:$ac_tool_warned in
7929yes:)
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7932ac_tool_warned=yes ;;
7933esac
7934 OTOOL64=$ac_ct_OTOOL64
7935 fi
b214d478
SE
7936else
7937 OTOOL64="$ac_cv_prog_OTOOL64"
7938fi
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
81ecdfbb
RW
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7967$as_echo_n "checking for -single_module linker flag... " >&6; }
7968if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7969 $as_echo_n "(cached) " >&6
b214d478
SE
7970else
7971 lt_cv_apple_cc_single_mod=no
7972 if test -z "${LT_MULTI_MODULE}"; then
7973 # By default we will add the -single_module flag. You can override
7974 # by either setting the environment variable LT_MULTI_MODULE
7975 # non-empty at configure time, or by adding -multi_module to the
7976 # link flags.
7977 rm -rf libconftest.dylib*
7978 echo "int foo(void){return 1;}" > conftest.c
7979 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7980-dynamiclib -Wl,-single_module conftest.c" >&5
7981 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7982 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7983 _lt_result=$?
7984 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7985 lt_cv_apple_cc_single_mod=yes
7986 else
7987 cat conftest.err >&5
7988 fi
7989 rm -rf libconftest.dylib*
7990 rm -f conftest.*
7991 fi
7992fi
81ecdfbb
RW
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7994$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7996$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7997if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7998 $as_echo_n "(cached) " >&6
b214d478
SE
7999else
8000 lt_cv_ld_exported_symbols_list=no
8001 save_LDFLAGS=$LDFLAGS
8002 echo "_main" > conftest.sym
8003 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
8005/* end confdefs.h. */
8006
8007int
8008main ()
8009{
8010
8011 ;
8012 return 0;
8013}
8014_ACEOF
81ecdfbb 8015if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
8016 lt_cv_ld_exported_symbols_list=yes
8017else
81ecdfbb 8018 lt_cv_ld_exported_symbols_list=no
b214d478 8019fi
81ecdfbb
RW
8020rm -f core conftest.err conftest.$ac_objext \
8021 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
8022 LDFLAGS="$save_LDFLAGS"
8023
8024fi
81ecdfbb
RW
8025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8026$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8028$as_echo_n "checking for -force_load linker flag... " >&6; }
8029if test "${lt_cv_ld_force_load+set}" = set; then :
8030 $as_echo_n "(cached) " >&6
8031else
8032 lt_cv_ld_force_load=no
8033 cat > conftest.c << _LT_EOF
8034int forced_loaded() { return 2;}
8035_LT_EOF
8036 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8037 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8038 echo "$AR cru libconftest.a conftest.o" >&5
8039 $AR cru libconftest.a conftest.o 2>&5
8040 cat > conftest.c << _LT_EOF
8041int main() { return 0;}
8042_LT_EOF
8043 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8044 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8045 _lt_result=$?
8046 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8047 lt_cv_ld_force_load=yes
8048 else
8049 cat conftest.err >&5
8050 fi
8051 rm -f conftest.err libconftest.a conftest conftest.c
8052 rm -rf conftest.dSYM
8053
8054fi
8055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8056$as_echo "$lt_cv_ld_force_load" >&6; }
b214d478
SE
8057 case $host_os in
8058 rhapsody* | darwin1.[012])
8059 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8060 darwin1.*)
8061 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8062 darwin*) # darwin 5.x on
8063 # if running on 10.5 or later, the deployment target defaults
8064 # to the OS version, if on x86, and 10.4, the deployment
8065 # target defaults to 10.4. Don't you love it?
8066 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8067 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8068 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8069 10.[012]*)
8070 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8071 10.*)
8072 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8073 esac
8074 ;;
8075 esac
8076 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8077 _lt_dar_single_mod='$single_module'
8078 fi
8079 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8080 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8081 else
8082 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8083 fi
3725885a 8084 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
b214d478
SE
8085 _lt_dsymutil='~$DSYMUTIL $lib || :'
8086 else
8087 _lt_dsymutil=
8088 fi
8089 ;;
8090 esac
8091
b214d478 8092for ac_header in dlfcn.h
81ecdfbb
RW
8093do :
8094 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8095"
8096if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
b214d478 8097 cat >>confdefs.h <<_ACEOF
81ecdfbb 8098#define HAVE_DLFCN_H 1
b214d478
SE
8099_ACEOF
8100
8101fi
8102
8103done
8104
8105
8106
3725885a
RW
8107
8108
b214d478
SE
8109# Set options
8110
8111
8112
8113 enable_dlopen=no
8114
8115
8116 enable_win32_dll=no
8117
8118
81ecdfbb
RW
8119 # Check whether --enable-shared was given.
8120if test "${enable_shared+set}" = set; then :
8121 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
8122 case $enableval in
8123 yes) enable_shared=yes ;;
8124 no) enable_shared=no ;;
8125 *)
8126 enable_shared=no
8127 # Look at the argument we got. We use all the common list separators.
8128 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8129 for pkg in $enableval; do
8130 IFS="$lt_save_ifs"
8131 if test "X$pkg" = "X$p"; then
8132 enable_shared=yes
8133 fi
8134 done
8135 IFS="$lt_save_ifs"
8136 ;;
8137 esac
8138else
8139 enable_shared=yes
81ecdfbb 8140fi
b214d478
SE
8141
8142
8143
8144
8145
8146
8147
8148
81ecdfbb
RW
8149
8150 # Check whether --enable-static was given.
8151if test "${enable_static+set}" = set; then :
8152 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
8153 case $enableval in
8154 yes) enable_static=yes ;;
8155 no) enable_static=no ;;
8156 *)
8157 enable_static=no
8158 # Look at the argument we got. We use all the common list separators.
8159 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8160 for pkg in $enableval; do
8161 IFS="$lt_save_ifs"
8162 if test "X$pkg" = "X$p"; then
8163 enable_static=yes
8164 fi
8165 done
8166 IFS="$lt_save_ifs"
8167 ;;
8168 esac
8169else
8170 enable_static=yes
81ecdfbb 8171fi
b214d478
SE
8172
8173
8174
8175
8176
8177
8178
8179
8180
81ecdfbb
RW
8181
8182# Check whether --with-pic was given.
8183if test "${with_pic+set}" = set; then :
8184 withval=$with_pic; pic_mode="$withval"
b214d478
SE
8185else
8186 pic_mode=default
81ecdfbb
RW
8187fi
8188
b214d478
SE
8189
8190test -z "$pic_mode" && pic_mode=default
8191
8192
8193
8194
8195
8196
8197
81ecdfbb
RW
8198 # Check whether --enable-fast-install was given.
8199if test "${enable_fast_install+set}" = set; then :
8200 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
8201 case $enableval in
8202 yes) enable_fast_install=yes ;;
8203 no) enable_fast_install=no ;;
8204 *)
8205 enable_fast_install=no
8206 # Look at the argument we got. We use all the common list separators.
8207 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8208 for pkg in $enableval; do
8209 IFS="$lt_save_ifs"
8210 if test "X$pkg" = "X$p"; then
8211 enable_fast_install=yes
8212 fi
8213 done
8214 IFS="$lt_save_ifs"
7357c5b6
AM
8215 ;;
8216 esac
b214d478
SE
8217else
8218 enable_fast_install=yes
81ecdfbb
RW
8219fi
8220
ce2cded5 8221
ce2cded5
L
8222
8223
ce2cded5 8224
42ecbf5e 8225
d7040cdb 8226
d7040cdb 8227
d7040cdb 8228
d7040cdb 8229
d7040cdb 8230
ce2cded5
L
8231# This can be used to rebuild libtool when needed
8232LIBTOOL_DEPS="$ltmain"
d7040cdb 8233
ce2cded5
L
8234# Always use our own libtool.
8235LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 8236
d7040cdb 8237
d7040cdb 8238
d7040cdb 8239
d7040cdb 8240
d7040cdb 8241
d7040cdb 8242
d7040cdb 8243
d7040cdb 8244
d7040cdb 8245
d7040cdb 8246
d7040cdb 8247
d7040cdb 8248
d7040cdb 8249
d7040cdb 8250
d7040cdb 8251
d7040cdb
SE
8252
8253
8254
8255
8256
8257
8258
3725885a 8259
d7040cdb
SE
8260
8261
ce2cded5 8262test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
8263
8264
8265
8266
8267
8268
d7040cdb
SE
8269
8270
8271
8272
8273
8274
8275
8276
ce2cded5
L
8277if test -n "${ZSH_VERSION+set}" ; then
8278 setopt NO_GLOB_SUBST
8279fi
d7040cdb 8280
81ecdfbb
RW
8281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8282$as_echo_n "checking for objdir... " >&6; }
8283if test "${lt_cv_objdir+set}" = set; then :
8284 $as_echo_n "(cached) " >&6
ce2cded5
L
8285else
8286 rm -f .libs 2>/dev/null
8287mkdir .libs 2>/dev/null
8288if test -d .libs; then
8289 lt_cv_objdir=.libs
8290else
8291 # MS-DOS does not allow filenames that begin with a dot.
8292 lt_cv_objdir=_libs
8293fi
8294rmdir .libs 2>/dev/null
8295fi
81ecdfbb
RW
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8297$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 8298objdir=$lt_cv_objdir
d7040cdb
SE
8299
8300
8301
8302
8303
ce2cded5
L
8304cat >>confdefs.h <<_ACEOF
8305#define LT_OBJDIR "$lt_cv_objdir/"
8306_ACEOF
d7040cdb
SE
8307
8308
8309
8310
ce2cded5
L
8311case $host_os in
8312aix3*)
8313 # AIX sometimes has problems with the GCC collect2 program. For some
8314 # reason, if we set the COLLECT_NAMES environment variable, the problems
8315 # vanish in a puff of smoke.
8316 if test "X${COLLECT_NAMES+set}" != Xset; then
8317 COLLECT_NAMES=
8318 export COLLECT_NAMES
8319 fi
8320 ;;
8321esac
d7040cdb 8322
ce2cded5
L
8323# Global variables:
8324ofile=libtool
8325can_build_shared=yes
d7040cdb 8326
ce2cded5
L
8327# All known linkers require a `.a' archive for static linking (except MSVC,
8328# which needs '.lib').
8329libext=a
d7040cdb 8330
ce2cded5 8331with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8332
ce2cded5
L
8333old_CC="$CC"
8334old_CFLAGS="$CFLAGS"
d7040cdb 8335
ce2cded5
L
8336# Set sane defaults for various variables
8337test -z "$CC" && CC=cc
8338test -z "$LTCC" && LTCC=$CC
8339test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8340test -z "$LD" && LD=ld
8341test -z "$ac_objext" && ac_objext=o
d7040cdb 8342
ce2cded5
L
8343for cc_temp in $compiler""; do
8344 case $cc_temp in
8345 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8346 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8347 \-*) ;;
8348 *) break;;
8349 esac
8350done
3725885a 8351cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
8352
8353
ce2cded5
L
8354# Only perform the check for file, if the check method requires it
8355test -z "$MAGIC_CMD" && MAGIC_CMD=file
8356case $deplibs_check_method in
8357file_magic*)
8358 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8360$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8361if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8362 $as_echo_n "(cached) " >&6
ce2cded5
L
8363else
8364 case $MAGIC_CMD in
8365[\\/*] | ?:[\\/]*)
8366 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8367 ;;
8368*)
8369 lt_save_MAGIC_CMD="$MAGIC_CMD"
8370 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8371 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8372 for ac_dir in $ac_dummy; do
8373 IFS="$lt_save_ifs"
8374 test -z "$ac_dir" && ac_dir=.
8375 if test -f $ac_dir/${ac_tool_prefix}file; then
8376 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8377 if test -n "$file_magic_test_file"; then
8378 case $deplibs_check_method in
8379 "file_magic "*)
8380 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8382 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8383 $EGREP "$file_magic_regex" > /dev/null; then
8384 :
8385 else
8386 cat <<_LT_EOF 1>&2
d7040cdb 8387
ce2cded5
L
8388*** Warning: the command libtool uses to detect shared libraries,
8389*** $file_magic_cmd, produces output that libtool cannot recognize.
8390*** The result is that libtool may fail to recognize shared libraries
8391*** as such. This will affect the creation of libtool libraries that
8392*** depend on shared libraries, but programs linked with such libtool
8393*** libraries will work regardless of this problem. Nevertheless, you
8394*** may want to report the problem to your system manager and/or to
8395*** bug-libtool@gnu.org
d7040cdb 8396
ce2cded5
L
8397_LT_EOF
8398 fi ;;
8399 esac
8400 fi
8401 break
8402 fi
8403 done
8404 IFS="$lt_save_ifs"
8405 MAGIC_CMD="$lt_save_MAGIC_CMD"
8406 ;;
8407esac
8408fi
d7040cdb 8409
ce2cded5
L
8410MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8411if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8413$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8414else
81ecdfbb
RW
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416$as_echo "no" >&6; }
ce2cded5 8417fi
d7040cdb
SE
8418
8419
8420
8421
8422
ce2cded5
L
8423if test -z "$lt_cv_path_MAGIC_CMD"; then
8424 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8426$as_echo_n "checking for file... " >&6; }
8427if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8428 $as_echo_n "(cached) " >&6
ce2cded5
L
8429else
8430 case $MAGIC_CMD in
8431[\\/*] | ?:[\\/]*)
8432 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8433 ;;
8434*)
8435 lt_save_MAGIC_CMD="$MAGIC_CMD"
8436 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8437 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8438 for ac_dir in $ac_dummy; do
8439 IFS="$lt_save_ifs"
8440 test -z "$ac_dir" && ac_dir=.
8441 if test -f $ac_dir/file; then
8442 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8443 if test -n "$file_magic_test_file"; then
8444 case $deplibs_check_method in
8445 "file_magic "*)
8446 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8447 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8448 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8449 $EGREP "$file_magic_regex" > /dev/null; then
8450 :
8451 else
8452 cat <<_LT_EOF 1>&2
d7040cdb 8453
ce2cded5
L
8454*** Warning: the command libtool uses to detect shared libraries,
8455*** $file_magic_cmd, produces output that libtool cannot recognize.
8456*** The result is that libtool may fail to recognize shared libraries
8457*** as such. This will affect the creation of libtool libraries that
8458*** depend on shared libraries, but programs linked with such libtool
8459*** libraries will work regardless of this problem. Nevertheless, you
8460*** may want to report the problem to your system manager and/or to
8461*** bug-libtool@gnu.org
d7040cdb 8462
ce2cded5
L
8463_LT_EOF
8464 fi ;;
8465 esac
8466 fi
8467 break
8468 fi
8469 done
8470 IFS="$lt_save_ifs"
8471 MAGIC_CMD="$lt_save_MAGIC_CMD"
8472 ;;
8473esac
8474fi
d7040cdb 8475
ce2cded5
L
8476MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8477if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8479$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8480else
81ecdfbb
RW
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8482$as_echo "no" >&6; }
ce2cded5 8483fi
d7040cdb
SE
8484
8485
ce2cded5
L
8486 else
8487 MAGIC_CMD=:
8488 fi
8489fi
d7040cdb 8490
ce2cded5
L
8491 fi
8492 ;;
8493esac
d7040cdb 8494
ce2cded5 8495# Use C for the default configuration in the libtool script
d7040cdb 8496
ce2cded5
L
8497lt_save_CC="$CC"
8498ac_ext=c
8499ac_cpp='$CPP $CPPFLAGS'
8500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8502ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
8503
8504
ce2cded5
L
8505# Source file extension for C test sources.
8506ac_ext=c
d7040cdb 8507
ce2cded5
L
8508# Object file extension for compiled C test sources.
8509objext=o
8510objext=$objext
d7040cdb 8511
ce2cded5
L
8512# Code to be used in simple compile tests
8513lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 8514
ce2cded5
L
8515# Code to be used in simple link tests
8516lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
8517
8518
8519
8520
8521
8522
8523
ce2cded5
L
8524# If no C compiler was specified, use CC.
8525LTCC=${LTCC-"$CC"}
d7040cdb 8526
ce2cded5
L
8527# If no C compiler flags were specified, use CFLAGS.
8528LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 8529
ce2cded5
L
8530# Allow CC to be a program name with arguments.
8531compiler=$CC
d7040cdb 8532
ce2cded5
L
8533# Save the default compiler, since it gets overwritten when the other
8534# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8535compiler_DEFAULT=$CC
d7040cdb 8536
ce2cded5
L
8537# save warnings/boilerplate of simple test code
8538ac_outfile=conftest.$ac_objext
8539echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8540eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8541_lt_compiler_boilerplate=`cat conftest.err`
8542$RM conftest*
d7040cdb 8543
ce2cded5
L
8544ac_outfile=conftest.$ac_objext
8545echo "$lt_simple_link_test_code" >conftest.$ac_ext
8546eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8547_lt_linker_boilerplate=`cat conftest.err`
b214d478 8548$RM -r conftest*
d7040cdb
SE
8549
8550
ce2cded5
L
8551## CAVEAT EMPTOR:
8552## There is no encapsulation within the following macros, do not change
8553## the running order or otherwise move them around unless you know exactly
8554## what you are doing...
8555if test -n "$compiler"; then
d7040cdb 8556
ce2cded5 8557lt_prog_compiler_no_builtin_flag=
d7040cdb 8558
ce2cded5 8559if test "$GCC" = yes; then
3725885a
RW
8560 case $cc_basename in
8561 nvcc*)
8562 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8563 *)
8564 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8565 esac
d7040cdb 8566
81ecdfbb
RW
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8568$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8569if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8570 $as_echo_n "(cached) " >&6
ce2cded5
L
8571else
8572 lt_cv_prog_compiler_rtti_exceptions=no
8573 ac_outfile=conftest.$ac_objext
8574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8575 lt_compiler_flag="-fno-rtti -fno-exceptions"
8576 # Insert the option either (1) after the last *FLAGS variable, or
8577 # (2) before a word containing "conftest.", or (3) at the end.
8578 # Note that $ac_compile itself does not contain backslashes and begins
8579 # with a dollar sign (not a hyphen), so the echo should work correctly.
8580 # The option is referenced via a variable to avoid confusing sed.
8581 lt_compile=`echo "$ac_compile" | $SED \
8582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8584 -e 's:$: $lt_compiler_flag:'`
3725885a 8585 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8586 (eval "$lt_compile" 2>conftest.err)
8587 ac_status=$?
8588 cat conftest.err >&5
3725885a 8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8590 if (exit $ac_status) && test -s "$ac_outfile"; then
8591 # The compiler can only warn and ignore the option if not recognized
8592 # So say no if there are warnings other than the usual output.
3725885a 8593 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8594 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8595 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8596 lt_cv_prog_compiler_rtti_exceptions=yes
8597 fi
8598 fi
8599 $RM conftest*
d7040cdb 8600
ce2cded5 8601fi
81ecdfbb
RW
8602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8603$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 8604
ce2cded5
L
8605if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8606 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8607else
8608 :
8609fi
d7040cdb 8610
ce2cded5 8611fi
d7040cdb
SE
8612
8613
8614
8615
8616
8617
ce2cded5
L
8618 lt_prog_compiler_wl=
8619lt_prog_compiler_pic=
8620lt_prog_compiler_static=
d7040cdb 8621
81ecdfbb
RW
8622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8623$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 8624
ce2cded5
L
8625 if test "$GCC" = yes; then
8626 lt_prog_compiler_wl='-Wl,'
8627 lt_prog_compiler_static='-static'
d7040cdb 8628
ce2cded5
L
8629 case $host_os in
8630 aix*)
8631 # All AIX code is PIC.
8632 if test "$host_cpu" = ia64; then
8633 # AIX 5 now supports IA64 processor
8634 lt_prog_compiler_static='-Bstatic'
8635 fi
8636 ;;
d7040cdb 8637
ce2cded5 8638 amigaos*)
b214d478
SE
8639 case $host_cpu in
8640 powerpc)
8641 # see comment about AmigaOS4 .so support
8642 lt_prog_compiler_pic='-fPIC'
8643 ;;
8644 m68k)
8645 # FIXME: we need at least 68020 code to build shared libraries, but
8646 # adding the `-m68020' flag to GCC prevents building anything better,
8647 # like `-m68040'.
8648 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8649 ;;
8650 esac
ce2cded5 8651 ;;
d7040cdb 8652
ce2cded5
L
8653 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8654 # PIC is the default for these OSes.
8655 ;;
d7040cdb 8656
b214d478 8657 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8658 # This hack is so that the source file can tell whether it is being
8659 # built for inclusion in a dll (and should export symbols for example).
8660 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8661 # (--disable-auto-import) libraries
8662 lt_prog_compiler_pic='-DDLL_EXPORT'
8663 ;;
d7040cdb 8664
ce2cded5
L
8665 darwin* | rhapsody*)
8666 # PIC is the default on this platform
8667 # Common symbols not allowed in MH_DYLIB files
8668 lt_prog_compiler_pic='-fno-common'
8669 ;;
d7040cdb 8670
3725885a
RW
8671 haiku*)
8672 # PIC is the default for Haiku.
8673 # The "-static" flag exists, but is broken.
8674 lt_prog_compiler_static=
8675 ;;
8676
ce2cded5 8677 hpux*)
b214d478
SE
8678 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8679 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8680 # sets the default TLS model and affects inlining.
ce2cded5 8681 case $host_cpu in
b214d478 8682 hppa*64*)
ce2cded5
L
8683 # +Z the default
8684 ;;
8685 *)
8686 lt_prog_compiler_pic='-fPIC'
8687 ;;
8688 esac
8689 ;;
d7040cdb 8690
ce2cded5
L
8691 interix[3-9]*)
8692 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8693 # Instead, we relocate shared libraries at runtime.
8694 ;;
d7040cdb 8695
ce2cded5
L
8696 msdosdjgpp*)
8697 # Just because we use GCC doesn't mean we suddenly get shared libraries
8698 # on systems that don't support them.
8699 lt_prog_compiler_can_build_shared=no
8700 enable_shared=no
8701 ;;
d7040cdb 8702
ce2cded5
L
8703 *nto* | *qnx*)
8704 # QNX uses GNU C++, but need to define -shared option too, otherwise
8705 # it will coredump.
8706 lt_prog_compiler_pic='-fPIC -shared'
8707 ;;
d7040cdb 8708
ce2cded5
L
8709 sysv4*MP*)
8710 if test -d /usr/nec; then
8711 lt_prog_compiler_pic=-Kconform_pic
8712 fi
8713 ;;
d7040cdb 8714
ce2cded5
L
8715 *)
8716 lt_prog_compiler_pic='-fPIC'
8717 ;;
8718 esac
3725885a
RW
8719
8720 case $cc_basename in
8721 nvcc*) # Cuda Compiler Driver 2.2
8722 lt_prog_compiler_wl='-Xlinker '
8723 lt_prog_compiler_pic='-Xcompiler -fPIC'
8724 ;;
8725 esac
ce2cded5
L
8726 else
8727 # PORTME Check for flag to pass linker flags through the system compiler.
8728 case $host_os in
8729 aix*)
8730 lt_prog_compiler_wl='-Wl,'
8731 if test "$host_cpu" = ia64; then
8732 # AIX 5 now supports IA64 processor
8733 lt_prog_compiler_static='-Bstatic'
8734 else
8735 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8736 fi
8737 ;;
d7040cdb 8738
b214d478 8739 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8740 # This hack is so that the source file can tell whether it is being
8741 # built for inclusion in a dll (and should export symbols for example).
8742 lt_prog_compiler_pic='-DDLL_EXPORT'
8743 ;;
d7040cdb 8744
ce2cded5
L
8745 hpux9* | hpux10* | hpux11*)
8746 lt_prog_compiler_wl='-Wl,'
8747 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8748 # not for PA HP-UX.
8749 case $host_cpu in
8750 hppa*64*|ia64*)
8751 # +Z the default
8752 ;;
8753 *)
8754 lt_prog_compiler_pic='+Z'
8755 ;;
8756 esac
8757 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8758 lt_prog_compiler_static='${wl}-a ${wl}archive'
8759 ;;
d7040cdb 8760
ce2cded5
L
8761 irix5* | irix6* | nonstopux*)
8762 lt_prog_compiler_wl='-Wl,'
8763 # PIC (with -KPIC) is the default.
8764 lt_prog_compiler_static='-non_shared'
8765 ;;
d7040cdb 8766
58e24671 8767 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8768 case $cc_basename in
b214d478
SE
8769 # old Intel for x86_64 which still supported -KPIC.
8770 ecc*)
ce2cded5
L
8771 lt_prog_compiler_wl='-Wl,'
8772 lt_prog_compiler_pic='-KPIC'
8773 lt_prog_compiler_static='-static'
8774 ;;
b214d478
SE
8775 # icc used to be incompatible with GCC.
8776 # ICC 10 doesn't accept -KPIC any more.
8777 icc* | ifort*)
8778 lt_prog_compiler_wl='-Wl,'
8779 lt_prog_compiler_pic='-fPIC'
8780 lt_prog_compiler_static='-static'
8781 ;;
8782 # Lahey Fortran 8.1.
8783 lf95*)
8784 lt_prog_compiler_wl='-Wl,'
8785 lt_prog_compiler_pic='--shared'
8786 lt_prog_compiler_static='--static'
8787 ;;
3725885a 8788 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8789 # Portland Group compilers (*not* the Pentium gcc compiler,
8790 # which looks to be a dead project)
8791 lt_prog_compiler_wl='-Wl,'
8792 lt_prog_compiler_pic='-fpic'
8793 lt_prog_compiler_static='-Bstatic'
8794 ;;
8795 ccc*)
8796 lt_prog_compiler_wl='-Wl,'
8797 # All Alpha code is PIC.
8798 lt_prog_compiler_static='-non_shared'
8799 ;;
3725885a
RW
8800 xl* | bgxl* | bgf* | mpixl*)
8801 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
b214d478
SE
8802 lt_prog_compiler_wl='-Wl,'
8803 lt_prog_compiler_pic='-qpic'
8804 lt_prog_compiler_static='-qstaticlink'
8805 ;;
ce2cded5
L
8806 *)
8807 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8808 *Sun\ F* | *Sun*Fortran*)
8809 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8810 lt_prog_compiler_pic='-KPIC'
8811 lt_prog_compiler_static='-Bstatic'
3725885a 8812 lt_prog_compiler_wl=''
ce2cded5 8813 ;;
3725885a
RW
8814 *Sun\ C*)
8815 # Sun C 5.9
ce2cded5
L
8816 lt_prog_compiler_pic='-KPIC'
8817 lt_prog_compiler_static='-Bstatic'
3725885a 8818 lt_prog_compiler_wl='-Wl,'
ce2cded5
L
8819 ;;
8820 esac
8821 ;;
8822 esac
8823 ;;
d7040cdb 8824
ce2cded5
L
8825 newsos6)
8826 lt_prog_compiler_pic='-KPIC'
8827 lt_prog_compiler_static='-Bstatic'
8828 ;;
d7040cdb 8829
ce2cded5
L
8830 *nto* | *qnx*)
8831 # QNX uses GNU C++, but need to define -shared option too, otherwise
8832 # it will coredump.
8833 lt_prog_compiler_pic='-fPIC -shared'
8834 ;;
d7040cdb 8835
ce2cded5
L
8836 osf3* | osf4* | osf5*)
8837 lt_prog_compiler_wl='-Wl,'
8838 # All OSF/1 code is PIC.
8839 lt_prog_compiler_static='-non_shared'
8840 ;;
d7040cdb 8841
ce2cded5
L
8842 rdos*)
8843 lt_prog_compiler_static='-non_shared'
8844 ;;
d7040cdb 8845
ce2cded5
L
8846 solaris*)
8847 lt_prog_compiler_pic='-KPIC'
8848 lt_prog_compiler_static='-Bstatic'
8849 case $cc_basename in
8850 f77* | f90* | f95*)
8851 lt_prog_compiler_wl='-Qoption ld ';;
8852 *)
8853 lt_prog_compiler_wl='-Wl,';;
8854 esac
8855 ;;
d7040cdb 8856
ce2cded5
L
8857 sunos4*)
8858 lt_prog_compiler_wl='-Qoption ld '
8859 lt_prog_compiler_pic='-PIC'
8860 lt_prog_compiler_static='-Bstatic'
8861 ;;
d7040cdb 8862
ce2cded5
L
8863 sysv4 | sysv4.2uw2* | sysv4.3*)
8864 lt_prog_compiler_wl='-Wl,'
8865 lt_prog_compiler_pic='-KPIC'
8866 lt_prog_compiler_static='-Bstatic'
8867 ;;
d7040cdb 8868
ce2cded5
L
8869 sysv4*MP*)
8870 if test -d /usr/nec ;then
8871 lt_prog_compiler_pic='-Kconform_pic'
8872 lt_prog_compiler_static='-Bstatic'
8873 fi
8874 ;;
d7040cdb 8875
ce2cded5
L
8876 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8877 lt_prog_compiler_wl='-Wl,'
8878 lt_prog_compiler_pic='-KPIC'
8879 lt_prog_compiler_static='-Bstatic'
8880 ;;
d7040cdb 8881
ce2cded5
L
8882 unicos*)
8883 lt_prog_compiler_wl='-Wl,'
8884 lt_prog_compiler_can_build_shared=no
8885 ;;
d7040cdb 8886
ce2cded5
L
8887 uts4*)
8888 lt_prog_compiler_pic='-pic'
8889 lt_prog_compiler_static='-Bstatic'
8890 ;;
d7040cdb 8891
ce2cded5
L
8892 *)
8893 lt_prog_compiler_can_build_shared=no
8894 ;;
8895 esac
8896 fi
d7040cdb 8897
ce2cded5
L
8898case $host_os in
8899 # For platforms which do not support PIC, -DPIC is meaningless:
8900 *djgpp*)
8901 lt_prog_compiler_pic=
8902 ;;
8903 *)
8904 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8905 ;;
8906esac
81ecdfbb
RW
8907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8908$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8909
8910
8911
8912
8913
8914
ce2cded5
L
8915#
8916# Check to make sure the PIC flag actually works.
8917#
8918if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8920$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8921if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8922 $as_echo_n "(cached) " >&6
ce2cded5 8923else
b214d478 8924 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
8925 ac_outfile=conftest.$ac_objext
8926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8927 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8928 # Insert the option either (1) after the last *FLAGS variable, or
8929 # (2) before a word containing "conftest.", or (3) at the end.
8930 # Note that $ac_compile itself does not contain backslashes and begins
8931 # with a dollar sign (not a hyphen), so the echo should work correctly.
8932 # The option is referenced via a variable to avoid confusing sed.
8933 lt_compile=`echo "$ac_compile" | $SED \
8934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8936 -e 's:$: $lt_compiler_flag:'`
3725885a 8937 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8938 (eval "$lt_compile" 2>conftest.err)
8939 ac_status=$?
8940 cat conftest.err >&5
3725885a 8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8942 if (exit $ac_status) && test -s "$ac_outfile"; then
8943 # The compiler can only warn and ignore the option if not recognized
8944 # So say no if there are warnings other than the usual output.
3725885a 8945 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8946 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8947 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8948 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
8949 fi
8950 fi
8951 $RM conftest*
d7040cdb 8952
ce2cded5 8953fi
81ecdfbb
RW
8954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8955$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
ce2cded5 8956
b214d478 8957if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
8958 case $lt_prog_compiler_pic in
8959 "" | " "*) ;;
8960 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8961 esac
8962else
8963 lt_prog_compiler_pic=
8964 lt_prog_compiler_can_build_shared=no
8965fi
8966
8967fi
d7040cdb
SE
8968
8969
8970
8971
8972
8973
ce2cded5
L
8974#
8975# Check to make sure the static flag actually works.
8976#
8977wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8979$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8980if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8981 $as_echo_n "(cached) " >&6
ce2cded5 8982else
b214d478 8983 lt_cv_prog_compiler_static_works=no
ce2cded5
L
8984 save_LDFLAGS="$LDFLAGS"
8985 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8986 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8987 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8988 # The linker can only warn and ignore the option if not recognized
8989 # So say no if there are warnings
8990 if test -s conftest.err; then
8991 # Append any errors to the config.log.
8992 cat conftest.err 1>&5
3725885a 8993 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
8994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8995 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8996 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8997 fi
8998 else
b214d478 8999 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9000 fi
9001 fi
b214d478 9002 $RM -r conftest*
ce2cded5 9003 LDFLAGS="$save_LDFLAGS"
d7040cdb 9004
ce2cded5 9005fi
81ecdfbb
RW
9006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9007$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 9008
b214d478 9009if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
9010 :
9011else
9012 lt_prog_compiler_static=
9013fi
d7040cdb
SE
9014
9015
9016
9017
9018
9019
9020
81ecdfbb
RW
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9022$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9023if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9024 $as_echo_n "(cached) " >&6
ce2cded5
L
9025else
9026 lt_cv_prog_compiler_c_o=no
9027 $RM -r conftest 2>/dev/null
9028 mkdir conftest
9029 cd conftest
9030 mkdir out
9031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9032
ce2cded5
L
9033 lt_compiler_flag="-o out/conftest2.$ac_objext"
9034 # Insert the option either (1) after the last *FLAGS variable, or
9035 # (2) before a word containing "conftest.", or (3) at the end.
9036 # Note that $ac_compile itself does not contain backslashes and begins
9037 # with a dollar sign (not a hyphen), so the echo should work correctly.
9038 lt_compile=`echo "$ac_compile" | $SED \
9039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9041 -e 's:$: $lt_compiler_flag:'`
3725885a 9042 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9043 (eval "$lt_compile" 2>out/conftest.err)
9044 ac_status=$?
9045 cat out/conftest.err >&5
3725885a 9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9047 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9048 then
9049 # The compiler can only warn and ignore the option if not recognized
9050 # So say no if there are warnings
3725885a 9051 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9053 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9054 lt_cv_prog_compiler_c_o=yes
9055 fi
9056 fi
9057 chmod u+w . 2>&5
9058 $RM conftest*
9059 # SGI C++ compiler will create directory out/ii_files/ for
9060 # template instantiation
9061 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9062 $RM out/* && rmdir out
9063 cd ..
9064 $RM -r conftest
9065 $RM conftest*
d7040cdb 9066
ce2cded5 9067fi
81ecdfbb
RW
9068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9069$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
9070
9071
9072
9073
9074
9075
81ecdfbb
RW
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9077$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9078if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9079 $as_echo_n "(cached) " >&6
ce2cded5
L
9080else
9081 lt_cv_prog_compiler_c_o=no
9082 $RM -r conftest 2>/dev/null
9083 mkdir conftest
9084 cd conftest
9085 mkdir out
9086 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9087
ce2cded5
L
9088 lt_compiler_flag="-o out/conftest2.$ac_objext"
9089 # Insert the option either (1) after the last *FLAGS variable, or
9090 # (2) before a word containing "conftest.", or (3) at the end.
9091 # Note that $ac_compile itself does not contain backslashes and begins
9092 # with a dollar sign (not a hyphen), so the echo should work correctly.
9093 lt_compile=`echo "$ac_compile" | $SED \
9094 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9095 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9096 -e 's:$: $lt_compiler_flag:'`
3725885a 9097 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9098 (eval "$lt_compile" 2>out/conftest.err)
9099 ac_status=$?
9100 cat out/conftest.err >&5
3725885a 9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9102 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9103 then
9104 # The compiler can only warn and ignore the option if not recognized
9105 # So say no if there are warnings
3725885a 9106 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9107 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9108 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9109 lt_cv_prog_compiler_c_o=yes
9110 fi
9111 fi
9112 chmod u+w . 2>&5
9113 $RM conftest*
9114 # SGI C++ compiler will create directory out/ii_files/ for
9115 # template instantiation
9116 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9117 $RM out/* && rmdir out
9118 cd ..
9119 $RM -r conftest
9120 $RM conftest*
9121
9122fi
81ecdfbb
RW
9123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9124$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
9125
9126
9127
9128
9129hard_links="nottested"
9130if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9131 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9133$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
9134 hard_links=yes
9135 $RM conftest*
9136 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9137 touch conftest.a
9138 ln conftest.a conftest.b 2>&5 || hard_links=no
9139 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9141$as_echo "$hard_links" >&6; }
ce2cded5 9142 if test "$hard_links" = no; then
81ecdfbb
RW
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9144$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 9145 need_locks=warn
d7040cdb 9146 fi
d7040cdb 9147else
ce2cded5 9148 need_locks=no
d7040cdb 9149fi
d7040cdb 9150
d7040cdb 9151
d7040cdb 9152
d7040cdb 9153
d7040cdb 9154
d7040cdb 9155
81ecdfbb
RW
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9157$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 9158
ce2cded5
L
9159 runpath_var=
9160 allow_undefined_flag=
9161 always_export_symbols=no
9162 archive_cmds=
9163 archive_expsym_cmds=
9164 compiler_needs_object=no
9165 enable_shared_with_static_runtimes=no
9166 export_dynamic_flag_spec=
9167 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9168 hardcode_automatic=no
9169 hardcode_direct=no
9170 hardcode_direct_absolute=no
9171 hardcode_libdir_flag_spec=
9172 hardcode_libdir_flag_spec_ld=
9173 hardcode_libdir_separator=
9174 hardcode_minus_L=no
9175 hardcode_shlibpath_var=unsupported
9176 inherit_rpath=no
9177 link_all_deplibs=unknown
9178 module_cmds=
9179 module_expsym_cmds=
9180 old_archive_from_new_cmds=
9181 old_archive_from_expsyms_cmds=
9182 thread_safe_flag_spec=
9183 whole_archive_flag_spec=
9184 # include_expsyms should be a list of space-separated symbols to be *always*
9185 # included in the symbol list
9186 include_expsyms=
9187 # exclude_expsyms can be an extended regexp of symbols to exclude
9188 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9189 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9190 # as well as any symbol that contains `d'.
b214d478 9191 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
9192 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9193 # platforms (ab)use it in PIC code, but their linkers get confused if
9194 # the symbol is explicitly referenced. Since portable code cannot
9195 # rely on this symbol name, it's probably fine to never include it in
9196 # preloaded symbol tables.
b214d478 9197 # Exclude shared library initialization/finalization symbols.
ce2cded5 9198 extract_expsyms_cmds=
d7040cdb 9199
ce2cded5 9200 case $host_os in
b214d478 9201 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9202 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9203 # When not using gcc, we currently assume that we are using
9204 # Microsoft Visual C++.
9205 if test "$GCC" != yes; then
9206 with_gnu_ld=no
9207 fi
d7040cdb 9208 ;;
ce2cded5
L
9209 interix*)
9210 # we just hope/assume this is gcc and not c89 (= MSVC++)
9211 with_gnu_ld=yes
9212 ;;
9213 openbsd*)
9214 with_gnu_ld=no
d7040cdb
SE
9215 ;;
9216 esac
d7040cdb 9217
ce2cded5 9218 ld_shlibs=yes
3725885a
RW
9219
9220 # On some targets, GNU ld is compatible enough with the native linker
9221 # that we're better off using the native interface for both.
9222 lt_use_gnu_ld_interface=no
ce2cded5 9223 if test "$with_gnu_ld" = yes; then
3725885a
RW
9224 case $host_os in
9225 aix*)
9226 # The AIX port of GNU ld has always aspired to compatibility
9227 # with the native linker. However, as the warning in the GNU ld
9228 # block says, versions before 2.19.5* couldn't really create working
9229 # shared libraries, regardless of the interface used.
9230 case `$LD -v 2>&1` in
9231 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9232 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9233 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9234 *)
9235 lt_use_gnu_ld_interface=yes
9236 ;;
9237 esac
9238 ;;
9239 *)
9240 lt_use_gnu_ld_interface=yes
9241 ;;
9242 esac
9243 fi
9244
9245 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
9246 # If archive_cmds runs LD, not CC, wlarc should be empty
9247 wlarc='${wl}'
d7040cdb 9248
ce2cded5
L
9249 # Set some defaults for GNU ld with shared library support. These
9250 # are reset later if shared libraries are not supported. Putting them
9251 # here allows them to be overridden if necessary.
9252 runpath_var=LD_RUN_PATH
9253 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9254 export_dynamic_flag_spec='${wl}--export-dynamic'
9255 # ancient GNU ld didn't support --whole-archive et. al.
9256 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9257 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9258 else
9259 whole_archive_flag_spec=
9260 fi
9261 supports_anon_versioning=no
9262 case `$LD -v 2>&1` in
3725885a 9263 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
9264 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9265 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9266 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9267 *\ 2.11.*) ;; # other 2.11 versions
9268 *) supports_anon_versioning=yes ;;
9269 esac
d7040cdb 9270
ce2cded5
L
9271 # See if GNU ld supports shared libraries.
9272 case $host_os in
50e7d84b 9273 aix[3-9]*)
ce2cded5
L
9274 # On AIX/PPC, the GNU linker is very broken
9275 if test "$host_cpu" != ia64; then
9276 ld_shlibs=no
9277 cat <<_LT_EOF 1>&2
d7040cdb 9278
3725885a 9279*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
9280*** to be unable to reliably create shared libraries on AIX.
9281*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9282*** really care for shared libraries, you may want to install binutils
9283*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9284*** You will then need to restart the configuration process.
d7040cdb 9285
ce2cded5
L
9286_LT_EOF
9287 fi
d7040cdb 9288 ;;
d7040cdb 9289
ce2cded5 9290 amigaos*)
b214d478
SE
9291 case $host_cpu in
9292 powerpc)
9293 # see comment about AmigaOS4 .so support
9294 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9295 archive_expsym_cmds=''
9296 ;;
9297 m68k)
9298 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)'
9299 hardcode_libdir_flag_spec='-L$libdir'
9300 hardcode_minus_L=yes
9301 ;;
9302 esac
ce2cded5 9303 ;;
d7040cdb 9304
ce2cded5
L
9305 beos*)
9306 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9307 allow_undefined_flag=unsupported
9308 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9309 # support --undefined. This deserves some investigation. FIXME
9310 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9311 else
9312 ld_shlibs=no
9313 fi
9314 ;;
d7040cdb 9315
b214d478 9316 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9317 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9318 # as there is no search path for DLLs.
9319 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9320 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
9321 allow_undefined_flag=unsupported
9322 always_export_symbols=no
9323 enable_shared_with_static_runtimes=yes
9324 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9325
9326 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9328 # If the export-symbols file already is a .def file (1st line
9329 # is EXPORTS), use it as is; otherwise, prepend...
9330 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9331 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 9332 else
ce2cded5
L
9333 echo EXPORTS > $output_objdir/$soname.def;
9334 cat $export_symbols >> $output_objdir/$soname.def;
9335 fi~
9336 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9337 else
9338 ld_shlibs=no
9339 fi
9340 ;;
d7040cdb 9341
3725885a
RW
9342 haiku*)
9343 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9344 link_all_deplibs=yes
9345 ;;
9346
ce2cded5
L
9347 interix[3-9]*)
9348 hardcode_direct=no
9349 hardcode_shlibpath_var=no
9350 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9351 export_dynamic_flag_spec='${wl}-E'
9352 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9353 # Instead, shared libraries are loaded at an image base (0x10000000 by
9354 # default) and relocated if they conflict, which is a slow very memory
9355 # consuming and fragmenting process. To avoid this, we pick a random,
9356 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9357 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9358 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9359 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'
9360 ;;
d7040cdb 9361
58e24671 9362 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
9363 tmp_diet=no
9364 if test "$host_os" = linux-dietlibc; then
9365 case $cc_basename in
9366 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9367 esac
9368 fi
9369 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9370 && test "$tmp_diet" = no
9371 then
9372 tmp_addflag=
b214d478 9373 tmp_sharedflag='-shared'
ce2cded5
L
9374 case $cc_basename,$host_cpu in
9375 pgcc*) # Portland Group C compiler
3725885a 9376 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
9377 tmp_addflag=' $pic_flag'
9378 ;;
3725885a
RW
9379 pgf77* | pgf90* | pgf95* | pgfortran*)
9380 # Portland Group f77 and f90 compilers
9381 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
9382 tmp_addflag=' $pic_flag -Mnomain' ;;
9383 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9384 tmp_addflag=' -i_dynamic' ;;
9385 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9386 tmp_addflag=' -i_dynamic -nofor_main' ;;
9387 ifc* | ifort*) # Intel Fortran compiler
9388 tmp_addflag=' -nofor_main' ;;
b214d478
SE
9389 lf95*) # Lahey Fortran 8.1
9390 whole_archive_flag_spec=
9391 tmp_sharedflag='--shared' ;;
3725885a 9392 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
b214d478
SE
9393 tmp_sharedflag='-qmkshrobj'
9394 tmp_addflag= ;;
3725885a
RW
9395 nvcc*) # Cuda Compiler Driver 2.2
9396 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'
9397 compiler_needs_object=yes
9398 ;;
ce2cded5
L
9399 esac
9400 case `$CC -V 2>&1 | sed 5q` in
9401 *Sun\ C*) # Sun C 5.9
3725885a 9402 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
9403 compiler_needs_object=yes
9404 tmp_sharedflag='-G' ;;
9405 *Sun\ F*) # Sun Fortran 8.3
9406 tmp_sharedflag='-G' ;;
ce2cded5
L
9407 esac
9408 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 9409
ce2cded5
L
9410 if test "x$supports_anon_versioning" = xyes; then
9411 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9412 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9413 echo "local: *; };" >> $output_objdir/$libname.ver~
9414 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9415 fi
b214d478
SE
9416
9417 case $cc_basename in
3725885a 9418 xlf* | bgf* | bgxlf* | mpixlf*)
b214d478
SE
9419 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9420 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9421 hardcode_libdir_flag_spec=
9422 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9423 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9424 if test "x$supports_anon_versioning" = xyes; then
9425 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9426 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9427 echo "local: *; };" >> $output_objdir/$libname.ver~
9428 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9429 fi
9430 ;;
9431 esac
ce2cded5
L
9432 else
9433 ld_shlibs=no
9434 fi
9435 ;;
d7040cdb 9436
ce2cded5
L
9437 netbsd*)
9438 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9439 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9440 wlarc=
9441 else
9442 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9443 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9444 fi
9445 ;;
9446
9447 solaris*)
9448 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9449 ld_shlibs=no
9450 cat <<_LT_EOF 1>&2
9451
9452*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9453*** create shared libraries on Solaris systems. Therefore, libtool
9454*** is disabling shared libraries support. We urge you to upgrade GNU
9455*** binutils to release 2.9.1 or newer. Another option is to modify
9456*** your PATH or compiler configuration so that the native linker is
9457*** used, and then restart.
9458
9459_LT_EOF
9460 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9462 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9463 else
9464 ld_shlibs=no
9465 fi
9466 ;;
9467
9468 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9469 case `$LD -v 2>&1` in
9470 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9471 ld_shlibs=no
9472 cat <<_LT_EOF 1>&2
9473
9474*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9475*** reliably create shared libraries on SCO systems. Therefore, libtool
9476*** is disabling shared libraries support. We urge you to upgrade GNU
9477*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9478*** your PATH or compiler configuration so that the native linker is
9479*** used, and then restart.
9480
9481_LT_EOF
9482 ;;
9483 *)
9484 # For security reasons, it is highly recommended that you always
9485 # use absolute paths for naming shared libraries, and exclude the
9486 # DT_RUNPATH tag from executables and libraries. But doing so
9487 # requires that you compile everything twice, which is a pain.
9488 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9489 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9490 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9491 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9492 else
9493 ld_shlibs=no
9494 fi
9495 ;;
9496 esac
9497 ;;
9498
9499 sunos4*)
9500 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9501 wlarc=
9502 hardcode_direct=yes
9503 hardcode_shlibpath_var=no
9504 ;;
9505
9506 *)
9507 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9509 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9510 else
9511 ld_shlibs=no
9512 fi
9513 ;;
9514 esac
9515
9516 if test "$ld_shlibs" = no; then
9517 runpath_var=
9518 hardcode_libdir_flag_spec=
9519 export_dynamic_flag_spec=
9520 whole_archive_flag_spec=
9521 fi
9522 else
9523 # PORTME fill in a description of your system's linker (not GNU ld)
9524 case $host_os in
9525 aix3*)
9526 allow_undefined_flag=unsupported
9527 always_export_symbols=yes
9528 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'
9529 # Note: this linker hardcodes the directories in LIBPATH if there
9530 # are no directories specified by -L.
9531 hardcode_minus_L=yes
9532 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9533 # Neither direct hardcoding nor static linking is supported with a
9534 # broken collect2.
9535 hardcode_direct=unsupported
9536 fi
9537 ;;
9538
50e7d84b 9539 aix[4-9]*)
ce2cded5
L
9540 if test "$host_cpu" = ia64; then
9541 # On IA64, the linker does run time linking by default, so we don't
9542 # have to do anything special.
9543 aix_use_runtimelinking=no
9544 exp_sym_flag='-Bexport'
9545 no_entry_flag=""
9546 else
9547 # If we're using GNU nm, then we don't want the "-C" option.
9548 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9549 # Also, AIX nm treats weak defined symbols like other global
9550 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 9551 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9552 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
9553 else
9554 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'
9555 fi
9556 aix_use_runtimelinking=no
9557
9558 # Test if we are trying to use run time linking or normal
9559 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9560 # need to do runtime linking.
50e7d84b 9561 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9562 for ld_flag in $LDFLAGS; do
9563 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9564 aix_use_runtimelinking=yes
9565 break
9566 fi
9567 done
9568 ;;
9569 esac
9570
9571 exp_sym_flag='-bexport'
9572 no_entry_flag='-bnoentry'
9573 fi
9574
9575 # When large executables or shared objects are built, AIX ld can
9576 # have problems creating the table of contents. If linking a library
9577 # or program results in "error TOC overflow" add -mminimal-toc to
9578 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9579 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9580
9581 archive_cmds=''
9582 hardcode_direct=yes
9583 hardcode_direct_absolute=yes
9584 hardcode_libdir_separator=':'
9585 link_all_deplibs=yes
9586 file_list_spec='${wl}-f,'
9587
9588 if test "$GCC" = yes; then
9589 case $host_os in aix4.[012]|aix4.[012].*)
9590 # We only want to do this on AIX 4.2 and lower, the check
9591 # below for broken collect2 doesn't work under 4.3+
9592 collect2name=`${CC} -print-prog-name=collect2`
9593 if test -f "$collect2name" &&
9594 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9595 then
9596 # We have reworked collect2
9597 :
9598 else
9599 # We have old collect2
9600 hardcode_direct=unsupported
9601 # It fails to find uninstalled libraries when the uninstalled
9602 # path is not listed in the libpath. Setting hardcode_minus_L
9603 # to unsupported forces relinking
9604 hardcode_minus_L=yes
9605 hardcode_libdir_flag_spec='-L$libdir'
9606 hardcode_libdir_separator=
9607 fi
9608 ;;
9609 esac
9610 shared_flag='-shared'
9611 if test "$aix_use_runtimelinking" = yes; then
9612 shared_flag="$shared_flag "'${wl}-G'
9613 fi
9614 else
9615 # not using gcc
9616 if test "$host_cpu" = ia64; then
9617 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9618 # chokes on -Wl,-G. The following line is correct:
9619 shared_flag='-G'
9620 else
9621 if test "$aix_use_runtimelinking" = yes; then
9622 shared_flag='${wl}-G'
9623 else
9624 shared_flag='${wl}-bM:SRE'
9625 fi
9626 fi
9627 fi
9628
b214d478 9629 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9630 # It seems that -bexpall does not export symbols beginning with
9631 # underscore (_), so it is better to generate a list of symbols to export.
9632 always_export_symbols=yes
9633 if test "$aix_use_runtimelinking" = yes; then
9634 # Warning - without using the other runtime loading flags (-brtl),
9635 # -berok will link without error, but may produce a broken library.
9636 allow_undefined_flag='-berok'
9637 # Determine the default libpath from the value encoded in an
9638 # empty executable.
81ecdfbb 9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
9640/* end confdefs.h. */
9641
9642int
9643main ()
9644{
9645
9646 ;
9647 return 0;
9648}
9649_ACEOF
81ecdfbb 9650if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9651
ce2cded5
L
9652lt_aix_libpath_sed='
9653 /Import File Strings/,/^$/ {
9654 /^0/ {
9655 s/^0 *\(.*\)$/\1/
9656 p
9657 }
9658 }'
9659aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9660# Check for a 64-bit object if we didn't find anything.
9661if test -z "$aix_libpath"; then
9662 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9663fi
d7040cdb 9664fi
81ecdfbb
RW
9665rm -f core conftest.err conftest.$ac_objext \
9666 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9667if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9668
ce2cded5 9669 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9670 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
9671 else
9672 if test "$host_cpu" = ia64; then
9673 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9674 allow_undefined_flag="-z nodefs"
9675 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"
9676 else
9677 # Determine the default libpath from the value encoded in an
9678 # empty executable.
81ecdfbb 9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9680/* end confdefs.h. */
d7040cdb 9681
ce2cded5
L
9682int
9683main ()
9684{
d7040cdb 9685
ce2cded5
L
9686 ;
9687 return 0;
9688}
9689_ACEOF
81ecdfbb 9690if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9691
ce2cded5
L
9692lt_aix_libpath_sed='
9693 /Import File Strings/,/^$/ {
9694 /^0/ {
9695 s/^0 *\(.*\)$/\1/
9696 p
9697 }
9698 }'
9699aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9700# Check for a 64-bit object if we didn't find anything.
9701if test -z "$aix_libpath"; then
9702 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9703fi
ce2cded5 9704fi
81ecdfbb
RW
9705rm -f core conftest.err conftest.$ac_objext \
9706 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9707if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9708
ce2cded5
L
9709 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9710 # Warning - without using the other run time loading flags,
9711 # -berok will link without error, but may produce a broken library.
9712 no_undefined_flag=' ${wl}-bernotok'
9713 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9714 if test "$with_gnu_ld" = yes; then
9715 # We only use this code for GNU lds that support --whole-archive.
9716 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9717 else
9718 # Exported symbols can be pulled into shared objects from archives
9719 whole_archive_flag_spec='$convenience'
9720 fi
ce2cded5
L
9721 archive_cmds_need_lc=yes
9722 # This is similar to how AIX traditionally builds its shared libraries.
9723 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'
9724 fi
9725 fi
9726 ;;
d7040cdb 9727
ce2cded5 9728 amigaos*)
b214d478
SE
9729 case $host_cpu in
9730 powerpc)
9731 # see comment about AmigaOS4 .so support
9732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9733 archive_expsym_cmds=''
9734 ;;
9735 m68k)
9736 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)'
9737 hardcode_libdir_flag_spec='-L$libdir'
9738 hardcode_minus_L=yes
9739 ;;
9740 esac
ce2cded5
L
9741 ;;
9742
9743 bsdi[45]*)
9744 export_dynamic_flag_spec=-rdynamic
9745 ;;
9746
b214d478 9747 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9748 # When not using gcc, we currently assume that we are using
9749 # Microsoft Visual C++.
9750 # hardcode_libdir_flag_spec is actually meaningless, as there is
9751 # no search path for DLLs.
9752 hardcode_libdir_flag_spec=' '
9753 allow_undefined_flag=unsupported
9754 # Tell ltmain to make .lib files, not .a files.
9755 libext=lib
9756 # Tell ltmain to make .dll files, not .so files.
9757 shrext_cmds=".dll"
9758 # FIXME: Setting linknames here is a bad hack.
3725885a 9759 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
9760 # The linker will automatically build a .lib file if we build a DLL.
9761 old_archive_from_new_cmds='true'
9762 # FIXME: Should let the user specify the lib program.
9763 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9764 fix_srcfile_path='`cygpath -w "$srcfile"`'
9765 enable_shared_with_static_runtimes=yes
9766 ;;
9767
9768 darwin* | rhapsody*)
d7040cdb 9769
b214d478
SE
9770
9771 archive_cmds_need_lc=no
9772 hardcode_direct=no
9773 hardcode_automatic=yes
9774 hardcode_shlibpath_var=unsupported
3725885a
RW
9775 if test "$lt_cv_ld_force_load" = "yes"; then
9776 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\"`'
9777 else
9778 whole_archive_flag_spec=''
9779 fi
b214d478
SE
9780 link_all_deplibs=yes
9781 allow_undefined_flag="$_lt_dar_allow_undefined"
9782 case $cc_basename in
9783 ifort*) _lt_dar_can_shared=yes ;;
9784 *) _lt_dar_can_shared=$GCC ;;
9785 esac
9786 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9787 output_verbose_link_cmd=func_echo_all
b214d478
SE
9788 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9789 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9790 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}"
9791 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}"
9792
9793 else
9794 ld_shlibs=no
9795 fi
9796
ce2cded5 9797 ;;
d7040cdb 9798
ce2cded5
L
9799 dgux*)
9800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9801 hardcode_libdir_flag_spec='-L$libdir'
9802 hardcode_shlibpath_var=no
9803 ;;
d7040cdb 9804
ce2cded5
L
9805 freebsd1*)
9806 ld_shlibs=no
9807 ;;
d7040cdb 9808
ce2cded5
L
9809 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9810 # support. Future versions do this automatically, but an explicit c++rt0.o
9811 # does not break anything, and helps significantly (at the cost of a little
9812 # extra space).
9813 freebsd2.2*)
9814 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9815 hardcode_libdir_flag_spec='-R$libdir'
9816 hardcode_direct=yes
9817 hardcode_shlibpath_var=no
d7040cdb 9818 ;;
d7040cdb 9819
ce2cded5
L
9820 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9821 freebsd2*)
9822 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9823 hardcode_direct=yes
9824 hardcode_minus_L=yes
9825 hardcode_shlibpath_var=no
9826 ;;
d7040cdb 9827
ce2cded5
L
9828 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9829 freebsd* | dragonfly*)
9830 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9831 hardcode_libdir_flag_spec='-R$libdir'
9832 hardcode_direct=yes
9833 hardcode_shlibpath_var=no
9834 ;;
d7040cdb 9835
ce2cded5
L
9836 hpux9*)
9837 if test "$GCC" = yes; then
9838 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'
9839 else
9840 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'
9841 fi
9842 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9843 hardcode_libdir_separator=:
9844 hardcode_direct=yes
d7040cdb 9845
ce2cded5
L
9846 # hardcode_minus_L: Not really in the search PATH,
9847 # but as the default location of the library.
9848 hardcode_minus_L=yes
9849 export_dynamic_flag_spec='${wl}-E'
9850 ;;
d7040cdb 9851
ce2cded5 9852 hpux10*)
3725885a 9853 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9854 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9855 else
9856 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9857 fi
9858 if test "$with_gnu_ld" = no; then
9859 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9860 hardcode_libdir_flag_spec_ld='+b $libdir'
9861 hardcode_libdir_separator=:
9862 hardcode_direct=yes
9863 hardcode_direct_absolute=yes
9864 export_dynamic_flag_spec='${wl}-E'
9865 # hardcode_minus_L: Not really in the search PATH,
9866 # but as the default location of the library.
9867 hardcode_minus_L=yes
9868 fi
9869 ;;
d7040cdb 9870
ce2cded5 9871 hpux11*)
3725885a 9872 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9873 case $host_cpu in
9874 hppa*64*)
9875 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9876 ;;
9877 ia64*)
b214d478 9878 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9879 ;;
9880 *)
9881 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9882 ;;
9883 esac
9884 else
9885 case $host_cpu in
9886 hppa*64*)
9887 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9888 ;;
9889 ia64*)
9890 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9891 ;;
9892 *)
3725885a
RW
9893
9894 # Older versions of the 11.00 compiler do not understand -b yet
9895 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9897$as_echo_n "checking if $CC understands -b... " >&6; }
9898if test "${lt_cv_prog_compiler__b+set}" = set; then :
9899 $as_echo_n "(cached) " >&6
9900else
9901 lt_cv_prog_compiler__b=no
9902 save_LDFLAGS="$LDFLAGS"
9903 LDFLAGS="$LDFLAGS -b"
9904 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9905 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9906 # The linker can only warn and ignore the option if not recognized
9907 # So say no if there are warnings
9908 if test -s conftest.err; then
9909 # Append any errors to the config.log.
9910 cat conftest.err 1>&5
9911 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9913 if diff conftest.exp conftest.er2 >/dev/null; then
9914 lt_cv_prog_compiler__b=yes
9915 fi
9916 else
9917 lt_cv_prog_compiler__b=yes
9918 fi
9919 fi
9920 $RM -r conftest*
9921 LDFLAGS="$save_LDFLAGS"
9922
9923fi
9924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9925$as_echo "$lt_cv_prog_compiler__b" >&6; }
9926
9927if test x"$lt_cv_prog_compiler__b" = xyes; then
9928 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9929else
9930 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9931fi
9932
ce2cded5
L
9933 ;;
9934 esac
9935 fi
9936 if test "$with_gnu_ld" = no; then
9937 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9938 hardcode_libdir_separator=:
d7040cdb 9939
ce2cded5
L
9940 case $host_cpu in
9941 hppa*64*|ia64*)
9942 hardcode_direct=no
9943 hardcode_shlibpath_var=no
9944 ;;
9945 *)
9946 hardcode_direct=yes
9947 hardcode_direct_absolute=yes
9948 export_dynamic_flag_spec='${wl}-E'
d7040cdb 9949
ce2cded5
L
9950 # hardcode_minus_L: Not really in the search PATH,
9951 # but as the default location of the library.
9952 hardcode_minus_L=yes
9953 ;;
9954 esac
9955 fi
9956 ;;
d7040cdb 9957
ce2cded5
L
9958 irix5* | irix6* | nonstopux*)
9959 if test "$GCC" = yes; then
3725885a 9960 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
9961 # Try to use the -exported_symbol ld option, if it does not
9962 # work, assume that -exports_file does not work either and
9963 # implicitly export all symbols.
9964 save_LDFLAGS="$LDFLAGS"
9965 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9967/* end confdefs.h. */
ce2cded5
L
9968int foo(void) {}
9969_ACEOF
81ecdfbb 9970if ac_fn_c_try_link "$LINENO"; then :
3725885a 9971 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 9972
ce2cded5 9973fi
81ecdfbb
RW
9974rm -f core conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
9976 LDFLAGS="$save_LDFLAGS"
9977 else
3725885a
RW
9978 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'
9979 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
9980 fi
9981 archive_cmds_need_lc='no'
9982 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9983 hardcode_libdir_separator=:
9984 inherit_rpath=yes
9985 link_all_deplibs=yes
9986 ;;
d7040cdb 9987
ce2cded5
L
9988 netbsd*)
9989 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9990 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9991 else
9992 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9993 fi
9994 hardcode_libdir_flag_spec='-R$libdir'
9995 hardcode_direct=yes
9996 hardcode_shlibpath_var=no
9997 ;;
d7040cdb 9998
ce2cded5
L
9999 newsos6)
10000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10001 hardcode_direct=yes
10002 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10003 hardcode_libdir_separator=:
10004 hardcode_shlibpath_var=no
10005 ;;
d7040cdb 10006
ce2cded5
L
10007 *nto* | *qnx*)
10008 ;;
d7040cdb 10009
ce2cded5 10010 openbsd*)
b214d478
SE
10011 if test -f /usr/libexec/ld.so; then
10012 hardcode_direct=yes
10013 hardcode_shlibpath_var=no
10014 hardcode_direct_absolute=yes
10015 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 10016 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 10017 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 10018 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
10019 export_dynamic_flag_spec='${wl}-E'
10020 else
10021 case $host_os in
10022 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10023 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10024 hardcode_libdir_flag_spec='-R$libdir'
10025 ;;
10026 *)
10027 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10028 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10029 ;;
10030 esac
10031 fi
10032 else
10033 ld_shlibs=no
ce2cded5
L
10034 fi
10035 ;;
d7040cdb 10036
ce2cded5
L
10037 os2*)
10038 hardcode_libdir_flag_spec='-L$libdir'
10039 hardcode_minus_L=yes
10040 allow_undefined_flag=unsupported
3725885a 10041 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
10042 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10043 ;;
d7040cdb 10044
ce2cded5
L
10045 osf3*)
10046 if test "$GCC" = yes; then
10047 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10048 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
10049 else
10050 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10051 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
10052 fi
10053 archive_cmds_need_lc='no'
10054 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10055 hardcode_libdir_separator=:
10056 ;;
d7040cdb 10057
ce2cded5
L
10058 osf4* | osf5*) # as osf3* with the addition of -msym flag
10059 if test "$GCC" = yes; then
10060 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10061 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
10062 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10063 else
10064 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10065 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 10066 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 10067 $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 10068
ce2cded5
L
10069 # Both c and cxx compiler support -rpath directly
10070 hardcode_libdir_flag_spec='-rpath $libdir'
10071 fi
10072 archive_cmds_need_lc='no'
10073 hardcode_libdir_separator=:
10074 ;;
d7040cdb 10075
ce2cded5
L
10076 solaris*)
10077 no_undefined_flag=' -z defs'
10078 if test "$GCC" = yes; then
10079 wlarc='${wl}'
10080 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10081 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10082 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10083 else
10084 case `$CC -V 2>&1` in
10085 *"Compilers 5.0"*)
10086 wlarc=''
10087 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10088 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10089 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10090 ;;
10091 *)
10092 wlarc='${wl}'
10093 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10094 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10095 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10096 ;;
10097 esac
10098 fi
10099 hardcode_libdir_flag_spec='-R$libdir'
10100 hardcode_shlibpath_var=no
10101 case $host_os in
10102 solaris2.[0-5] | solaris2.[0-5].*) ;;
10103 *)
10104 # The compiler driver will combine and reorder linker options,
10105 # but understands `-z linker_flag'. GCC discards it without `$wl',
10106 # but is careful enough not to reorder.
10107 # Supported since Solaris 2.6 (maybe 2.5.1?)
10108 if test "$GCC" = yes; then
10109 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10110 else
10111 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10112 fi
10113 ;;
10114 esac
10115 link_all_deplibs=yes
10116 ;;
d7040cdb 10117
ce2cded5
L
10118 sunos4*)
10119 if test "x$host_vendor" = xsequent; then
10120 # Use $CC to link under sequent, because it throws in some extra .o
10121 # files that make .init and .fini sections work.
10122 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10123 else
10124 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10125 fi
10126 hardcode_libdir_flag_spec='-L$libdir'
10127 hardcode_direct=yes
10128 hardcode_minus_L=yes
10129 hardcode_shlibpath_var=no
10130 ;;
d7040cdb 10131
ce2cded5
L
10132 sysv4)
10133 case $host_vendor in
10134 sni)
10135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10136 hardcode_direct=yes # is this really true???
10137 ;;
10138 siemens)
10139 ## LD is ld it makes a PLAMLIB
10140 ## CC just makes a GrossModule.
10141 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10142 reload_cmds='$CC -r -o $output$reload_objs'
10143 hardcode_direct=no
10144 ;;
10145 motorola)
10146 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10147 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10148 ;;
10149 esac
10150 runpath_var='LD_RUN_PATH'
10151 hardcode_shlibpath_var=no
10152 ;;
d7040cdb 10153
ce2cded5
L
10154 sysv4.3*)
10155 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10156 hardcode_shlibpath_var=no
10157 export_dynamic_flag_spec='-Bexport'
10158 ;;
d7040cdb 10159
ce2cded5
L
10160 sysv4*MP*)
10161 if test -d /usr/nec; then
10162 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10163 hardcode_shlibpath_var=no
10164 runpath_var=LD_RUN_PATH
10165 hardcode_runpath_var=yes
10166 ld_shlibs=yes
10167 fi
10168 ;;
d7040cdb 10169
ce2cded5
L
10170 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10171 no_undefined_flag='${wl}-z,text'
10172 archive_cmds_need_lc=no
10173 hardcode_shlibpath_var=no
10174 runpath_var='LD_RUN_PATH'
d7040cdb 10175
ce2cded5
L
10176 if test "$GCC" = yes; then
10177 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179 else
10180 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10181 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10182 fi
10183 ;;
d7040cdb 10184
ce2cded5
L
10185 sysv5* | sco3.2v5* | sco5v6*)
10186 # Note: We can NOT use -z defs as we might desire, because we do not
10187 # link with -lc, and that would cause any symbols used from libc to
10188 # always be unresolved, which means just about no library would
10189 # ever link correctly. If we're not using GNU ld we use -z text
10190 # though, which does catch some bad symbols but isn't as heavy-handed
10191 # as -z defs.
10192 no_undefined_flag='${wl}-z,text'
10193 allow_undefined_flag='${wl}-z,nodefs'
10194 archive_cmds_need_lc=no
10195 hardcode_shlibpath_var=no
10196 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10197 hardcode_libdir_separator=':'
10198 link_all_deplibs=yes
10199 export_dynamic_flag_spec='${wl}-Bexport'
10200 runpath_var='LD_RUN_PATH'
d7040cdb 10201
ce2cded5
L
10202 if test "$GCC" = yes; then
10203 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10204 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10205 else
10206 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10207 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10208 fi
10209 ;;
d7040cdb 10210
ce2cded5
L
10211 uts4*)
10212 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10213 hardcode_libdir_flag_spec='-L$libdir'
10214 hardcode_shlibpath_var=no
10215 ;;
d7040cdb 10216
ce2cded5
L
10217 *)
10218 ld_shlibs=no
10219 ;;
10220 esac
d7040cdb 10221
ce2cded5
L
10222 if test x$host_vendor = xsni; then
10223 case $host in
10224 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10225 export_dynamic_flag_spec='${wl}-Blargedynsym'
10226 ;;
10227 esac
10228 fi
10229 fi
d7040cdb 10230
81ecdfbb
RW
10231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10232$as_echo "$ld_shlibs" >&6; }
ce2cded5 10233test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 10234
ce2cded5 10235with_gnu_ld=$with_gnu_ld
d7040cdb
SE
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
ce2cded5
L
10251#
10252# Do we need to explicitly link libc?
10253#
10254case "x$archive_cmds_need_lc" in
10255x|xyes)
10256 # Assume -lc should be added
10257 archive_cmds_need_lc=yes
d7040cdb 10258
ce2cded5
L
10259 if test "$enable_shared" = yes && test "$GCC" = yes; then
10260 case $archive_cmds in
10261 *'~'*)
10262 # FIXME: we may have to deal with multi-command sequences.
10263 ;;
10264 '$CC '*)
10265 # Test whether the compiler implicitly links with -lc since on some
10266 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10267 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10269$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10270if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10271 $as_echo_n "(cached) " >&6
39144654
RW
10272else
10273 $RM conftest*
10274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10275
81ecdfbb 10276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
10277 (eval $ac_compile) 2>&5
10278 ac_status=$?
81ecdfbb
RW
10279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10280 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10281 soname=conftest
10282 lib=conftest
10283 libobjs=conftest.$ac_objext
10284 deplibs=
10285 wl=$lt_prog_compiler_wl
10286 pic_flag=$lt_prog_compiler_pic
10287 compiler_flags=-v
10288 linker_flags=-v
10289 verstring=
10290 output_objdir=.
10291 libname=conftest
10292 lt_save_allow_undefined_flag=$allow_undefined_flag
10293 allow_undefined_flag=
81ecdfbb 10294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
10295 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10296 ac_status=$?
81ecdfbb
RW
10297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10298 test $ac_status = 0; }
39144654
RW
10299 then
10300 lt_cv_archive_cmds_need_lc=no
10301 else
10302 lt_cv_archive_cmds_need_lc=yes
10303 fi
10304 allow_undefined_flag=$lt_save_allow_undefined_flag
10305 else
10306 cat conftest.err 1>&5
10307 fi
10308 $RM conftest*
10309
10310fi
81ecdfbb
RW
10311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10312$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10313 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
10314 ;;
10315 esac
10316 fi
10317 ;;
10318esac
d7040cdb
SE
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
d7040cdb 10346
d7040cdb 10347
d7040cdb
SE
10348
10349
10350
10351
10352
10353
d7040cdb 10354
d7040cdb 10355
d7040cdb 10356
d7040cdb 10357
d7040cdb 10358
d7040cdb 10359
d7040cdb 10360
d7040cdb 10361
d7040cdb 10362
d7040cdb 10363
d7040cdb 10364
d7040cdb 10365
d7040cdb 10366
d7040cdb 10367
d7040cdb 10368
d7040cdb 10369
d7040cdb 10370
d7040cdb 10371
d7040cdb 10372
d7040cdb 10373
d7040cdb 10374
d7040cdb 10375
d7040cdb 10376
d7040cdb 10377
d7040cdb 10378
d7040cdb 10379
d7040cdb 10380
d7040cdb 10381
ce2cded5
L
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
81ecdfbb
RW
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10477$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
10478
10479if test "$GCC" = yes; then
ce2cded5
L
10480 case $host_os in
10481 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10482 *) lt_awk_arg="/^libraries:/" ;;
10483 esac
3725885a
RW
10484 case $host_os in
10485 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10486 *) lt_sed_strip_eq="s,=/,/,g" ;;
10487 esac
10488 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10489 case $lt_search_path_spec in
10490 *\;*)
ce2cded5
L
10491 # if the path contains ";" then we assume it to be the separator
10492 # otherwise default to the standard path separator (i.e. ":") - it is
10493 # assumed that no part of a normal pathname contains ";" but that should
10494 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10495 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10496 ;;
10497 *)
10498 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10499 ;;
10500 esac
ce2cded5
L
10501 # Ok, now we have the path, separated by spaces, we can step through it
10502 # and add multilib dir if necessary.
10503 lt_tmp_lt_search_path_spec=
10504 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10505 for lt_sys_path in $lt_search_path_spec; do
10506 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10507 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10508 else
10509 test -d "$lt_sys_path" && \
10510 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10511 fi
10512 done
3725885a 10513 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
10514BEGIN {RS=" "; FS="/|\n";} {
10515 lt_foo="";
10516 lt_count=0;
10517 for (lt_i = NF; lt_i > 0; lt_i--) {
10518 if ($lt_i != "" && $lt_i != ".") {
10519 if ($lt_i == "..") {
10520 lt_count++;
10521 } else {
10522 if (lt_count == 0) {
10523 lt_foo="/" $lt_i lt_foo;
10524 } else {
10525 lt_count--;
10526 }
10527 }
10528 }
10529 }
10530 if (lt_foo != "") { lt_freq[lt_foo]++; }
10531 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10532}'`
3725885a
RW
10533 # AWK program above erroneously prepends '/' to C:/dos/paths
10534 # for these hosts.
10535 case $host_os in
10536 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10537 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10538 esac
10539 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 10540else
ce2cded5
L
10541 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10542fi
10543library_names_spec=
10544libname_spec='lib$name'
10545soname_spec=
10546shrext_cmds=".so"
10547postinstall_cmds=
10548postuninstall_cmds=
10549finish_cmds=
10550finish_eval=
10551shlibpath_var=
10552shlibpath_overrides_runpath=unknown
10553version_type=none
10554dynamic_linker="$host_os ld.so"
10555sys_lib_dlsearch_path_spec="/lib /usr/lib"
10556need_lib_prefix=unknown
10557hardcode_into_libs=no
10558
10559# when you set need_version to no, make sure it does not cause -set_version
10560# flags to be left without arguments
10561need_version=unknown
10562
10563case $host_os in
10564aix3*)
10565 version_type=linux
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10567 shlibpath_var=LIBPATH
10568
10569 # AIX 3 has no versioning support, so we append a major version to the name.
10570 soname_spec='${libname}${release}${shared_ext}$major'
10571 ;;
10572
50e7d84b 10573aix[4-9]*)
ce2cded5
L
10574 version_type=linux
10575 need_lib_prefix=no
10576 need_version=no
10577 hardcode_into_libs=yes
10578 if test "$host_cpu" = ia64; then
10579 # AIX 5 supports IA64
10580 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10581 shlibpath_var=LD_LIBRARY_PATH
10582 else
10583 # With GCC up to 2.95.x, collect2 would create an import file
10584 # for dependence libraries. The import file would start with
10585 # the line `#! .'. This would cause the generated library to
10586 # depend on `.', always an invalid library. This was fixed in
10587 # development snapshots of GCC prior to 3.0.
10588 case $host_os in
10589 aix4 | aix4.[01] | aix4.[01].*)
10590 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10591 echo ' yes '
10592 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10593 :
10594 else
10595 can_build_shared=no
10596 fi
10597 ;;
10598 esac
10599 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10600 # soname into executable. Probably we can add versioning support to
10601 # collect2, so additional links can be useful in future.
10602 if test "$aix_use_runtimelinking" = yes; then
10603 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10604 # instead of lib<name>.a to let people know that these are not
10605 # typical AIX shared libraries.
10606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10607 else
10608 # We preserve .a as extension for shared libraries through AIX4.2
10609 # and later when we are not doing run time linking.
10610 library_names_spec='${libname}${release}.a $libname.a'
10611 soname_spec='${libname}${release}${shared_ext}$major'
10612 fi
10613 shlibpath_var=LIBPATH
10614 fi
10615 ;;
10616
10617amigaos*)
b214d478
SE
10618 case $host_cpu in
10619 powerpc)
10620 # Since July 2007 AmigaOS4 officially supports .so libraries.
10621 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10623 ;;
10624 m68k)
ce2cded5
L
10625 library_names_spec='$libname.ixlibrary $libname.a'
10626 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10627 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
10628 ;;
10629 esac
ce2cded5
L
10630 ;;
10631
10632beos*)
10633 library_names_spec='${libname}${shared_ext}'
10634 dynamic_linker="$host_os ld.so"
10635 shlibpath_var=LIBRARY_PATH
10636 ;;
10637
10638bsdi[45]*)
10639 version_type=linux
10640 need_version=no
10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10642 soname_spec='${libname}${release}${shared_ext}$major'
10643 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10644 shlibpath_var=LD_LIBRARY_PATH
10645 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10646 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10647 # the default ld.so.conf also contains /usr/contrib/lib and
10648 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10649 # libtool to hard-code these into programs
10650 ;;
10651
b214d478 10652cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10653 version_type=windows
10654 shrext_cmds=".dll"
10655 need_version=no
10656 need_lib_prefix=no
10657
b214d478
SE
10658 case $GCC,$host_os in
10659 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10660 library_names_spec='$libname.dll.a'
10661 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10662 postinstall_cmds='base_file=`basename \${file}`~
10663 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10664 dldir=$destdir/`dirname \$dlpath`~
10665 test -d \$dldir || mkdir -p \$dldir~
10666 $install_prog $dir/$dlname \$dldir/$dlname~
10667 chmod a+x \$dldir/$dlname~
10668 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10669 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10670 fi'
10671 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10672 dlpath=$dir/\$dldll~
10673 $RM \$dlpath'
10674 shlibpath_overrides_runpath=yes
10675
10676 case $host_os in
10677 cygwin*)
10678 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10679 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10680
10681 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10682 ;;
b214d478 10683 mingw* | cegcc*)
ce2cded5
L
10684 # MinGW DLLs use traditional 'lib' prefix
10685 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10686 ;;
10687 pw32*)
10688 # pw32 DLLs use 'pw' prefix rather than 'lib'
10689 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10690 ;;
10691 esac
10692 ;;
10693
10694 *)
10695 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10696 ;;
10697 esac
10698 dynamic_linker='Win32 ld.exe'
10699 # FIXME: first we should search . and the directory the executable is in
10700 shlibpath_var=PATH
10701 ;;
10702
10703darwin* | rhapsody*)
10704 dynamic_linker="$host_os dyld"
10705 version_type=darwin
10706 need_lib_prefix=no
10707 need_version=no
10708 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10709 soname_spec='${libname}${release}${major}$shared_ext'
10710 shlibpath_overrides_runpath=yes
10711 shlibpath_var=DYLD_LIBRARY_PATH
10712 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10713
10714 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10715 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10716 ;;
10717
10718dgux*)
10719 version_type=linux
10720 need_lib_prefix=no
10721 need_version=no
10722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10723 soname_spec='${libname}${release}${shared_ext}$major'
10724 shlibpath_var=LD_LIBRARY_PATH
10725 ;;
10726
10727freebsd1*)
10728 dynamic_linker=no
10729 ;;
10730
10731freebsd* | dragonfly*)
10732 # DragonFly does not have aout. When/if they implement a new
10733 # versioning mechanism, adjust this.
10734 if test -x /usr/bin/objformat; then
10735 objformat=`/usr/bin/objformat`
10736 else
10737 case $host_os in
10738 freebsd[123]*) objformat=aout ;;
10739 *) objformat=elf ;;
10740 esac
10741 fi
10742 version_type=freebsd-$objformat
10743 case $version_type in
10744 freebsd-elf*)
10745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10746 need_version=no
10747 need_lib_prefix=no
10748 ;;
10749 freebsd-*)
10750 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10751 need_version=yes
10752 ;;
10753 esac
10754 shlibpath_var=LD_LIBRARY_PATH
10755 case $host_os in
10756 freebsd2*)
10757 shlibpath_overrides_runpath=yes
10758 ;;
10759 freebsd3.[01]* | freebsdelf3.[01]*)
10760 shlibpath_overrides_runpath=yes
10761 hardcode_into_libs=yes
10762 ;;
10763 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10764 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10765 shlibpath_overrides_runpath=no
10766 hardcode_into_libs=yes
10767 ;;
10768 *) # from 4.6 on, and DragonFly
10769 shlibpath_overrides_runpath=yes
10770 hardcode_into_libs=yes
10771 ;;
10772 esac
10773 ;;
10774
10775gnu*)
10776 version_type=linux
10777 need_lib_prefix=no
10778 need_version=no
10779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10780 soname_spec='${libname}${release}${shared_ext}$major'
10781 shlibpath_var=LD_LIBRARY_PATH
10782 hardcode_into_libs=yes
10783 ;;
10784
3725885a
RW
10785haiku*)
10786 version_type=linux
10787 need_lib_prefix=no
10788 need_version=no
10789 dynamic_linker="$host_os runtime_loader"
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10791 soname_spec='${libname}${release}${shared_ext}$major'
10792 shlibpath_var=LIBRARY_PATH
10793 shlibpath_overrides_runpath=yes
10794 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10795 hardcode_into_libs=yes
10796 ;;
10797
ce2cded5
L
10798hpux9* | hpux10* | hpux11*)
10799 # Give a soname corresponding to the major version so that dld.sl refuses to
10800 # link against other versions.
10801 version_type=sunos
10802 need_lib_prefix=no
10803 need_version=no
10804 case $host_cpu in
10805 ia64*)
10806 shrext_cmds='.so'
10807 hardcode_into_libs=yes
10808 dynamic_linker="$host_os dld.so"
10809 shlibpath_var=LD_LIBRARY_PATH
10810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812 soname_spec='${libname}${release}${shared_ext}$major'
10813 if test "X$HPUX_IA64_MODE" = X32; then
10814 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10815 else
10816 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10817 fi
10818 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10819 ;;
10820 hppa*64*)
10821 shrext_cmds='.sl'
10822 hardcode_into_libs=yes
10823 dynamic_linker="$host_os dld.sl"
10824 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10825 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10827 soname_spec='${libname}${release}${shared_ext}$major'
10828 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10829 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10830 ;;
10831 *)
10832 shrext_cmds='.sl'
10833 dynamic_linker="$host_os dld.sl"
10834 shlibpath_var=SHLIB_PATH
10835 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10837 soname_spec='${libname}${release}${shared_ext}$major'
10838 ;;
10839 esac
3725885a 10840 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10841 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10842 # or fails outright, so override atomically:
10843 install_override_mode=555
ce2cded5
L
10844 ;;
10845
10846interix[3-9]*)
10847 version_type=linux
10848 need_lib_prefix=no
10849 need_version=no
10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10851 soname_spec='${libname}${release}${shared_ext}$major'
10852 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10853 shlibpath_var=LD_LIBRARY_PATH
10854 shlibpath_overrides_runpath=no
10855 hardcode_into_libs=yes
10856 ;;
10857
10858irix5* | irix6* | nonstopux*)
10859 case $host_os in
10860 nonstopux*) version_type=nonstopux ;;
10861 *)
10862 if test "$lt_cv_prog_gnu_ld" = yes; then
10863 version_type=linux
10864 else
10865 version_type=irix
10866 fi ;;
10867 esac
10868 need_lib_prefix=no
10869 need_version=no
10870 soname_spec='${libname}${release}${shared_ext}$major'
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10872 case $host_os in
10873 irix5* | nonstopux*)
10874 libsuff= shlibsuff=
10875 ;;
10876 *)
10877 case $LD in # libtool.m4 will add one of these switches to LD
10878 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10879 libsuff= shlibsuff= libmagic=32-bit;;
10880 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10881 libsuff=32 shlibsuff=N32 libmagic=N32;;
10882 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10883 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10884 *) libsuff= shlibsuff= libmagic=never-match;;
10885 esac
10886 ;;
10887 esac
10888 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10889 shlibpath_overrides_runpath=no
10890 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10891 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10892 hardcode_into_libs=yes
10893 ;;
10894
10895# No shared lib support for Linux oldld, aout, or coff.
10896linux*oldld* | linux*aout* | linux*coff*)
10897 dynamic_linker=no
10898 ;;
10899
10900# This must be Linux ELF.
58e24671 10901linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
10902 version_type=linux
10903 need_lib_prefix=no
10904 need_version=no
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10906 soname_spec='${libname}${release}${shared_ext}$major'
10907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10908 shlibpath_var=LD_LIBRARY_PATH
10909 shlibpath_overrides_runpath=no
39144654 10910
ce2cded5 10911 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10912 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10913 $as_echo_n "(cached) " >&6
39144654
RW
10914else
10915 lt_cv_shlibpath_overrides_runpath=no
10916 save_LDFLAGS=$LDFLAGS
10917 save_libdir=$libdir
10918 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10919 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10921/* end confdefs.h. */
10922
d7040cdb
SE
10923int
10924main ()
10925{
ce2cded5 10926
d7040cdb
SE
10927 ;
10928 return 0;
10929}
10930_ACEOF
81ecdfbb
RW
10931if ac_fn_c_try_link "$LINENO"; then :
10932 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10933 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10934fi
d7040cdb 10935fi
81ecdfbb
RW
10936rm -f core conftest.err conftest.$ac_objext \
10937 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10938 LDFLAGS=$save_LDFLAGS
10939 libdir=$save_libdir
10940
10941fi
10942
10943 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 10944
ce2cded5
L
10945 # This implies no fast_install, which is unacceptable.
10946 # Some rework will be needed to allow for fast_install
10947 # before this can be enabled.
10948 hardcode_into_libs=yes
d7040cdb 10949
ce2cded5
L
10950 # Append ld.so.conf contents to the search path
10951 if test -f /etc/ld.so.conf; then
3725885a 10952 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
10953 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10954 fi
d7040cdb 10955
ce2cded5
L
10956 # We used to test for /lib/ld.so.1 and disable shared libraries on
10957 # powerpc, because MkLinux only supported shared libraries with the
10958 # GNU dynamic linker. Since this was broken with cross compilers,
10959 # most powerpc-linux boxes support dynamic linking these days and
10960 # people can always --disable-shared, the test was removed, and we
10961 # assume the GNU/Linux dynamic linker is in use.
10962 dynamic_linker='GNU/Linux ld.so'
10963 ;;
d7040cdb 10964
ce2cded5
L
10965netbsd*)
10966 version_type=sunos
10967 need_lib_prefix=no
10968 need_version=no
10969 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10972 dynamic_linker='NetBSD (a.out) ld.so'
10973 else
10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10975 soname_spec='${libname}${release}${shared_ext}$major'
10976 dynamic_linker='NetBSD ld.elf_so'
10977 fi
10978 shlibpath_var=LD_LIBRARY_PATH
10979 shlibpath_overrides_runpath=yes
10980 hardcode_into_libs=yes
10981 ;;
d7040cdb 10982
ce2cded5
L
10983newsos6)
10984 version_type=linux
10985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986 shlibpath_var=LD_LIBRARY_PATH
10987 shlibpath_overrides_runpath=yes
10988 ;;
d7040cdb 10989
ce2cded5
L
10990*nto* | *qnx*)
10991 version_type=qnx
10992 need_lib_prefix=no
10993 need_version=no
10994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10995 soname_spec='${libname}${release}${shared_ext}$major'
10996 shlibpath_var=LD_LIBRARY_PATH
10997 shlibpath_overrides_runpath=no
10998 hardcode_into_libs=yes
10999 dynamic_linker='ldqnx.so'
11000 ;;
d7040cdb 11001
ce2cded5
L
11002openbsd*)
11003 version_type=sunos
11004 sys_lib_dlsearch_path_spec="/usr/lib"
11005 need_lib_prefix=no
11006 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11007 case $host_os in
11008 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11009 *) need_version=no ;;
11010 esac
11011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11013 shlibpath_var=LD_LIBRARY_PATH
11014 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11015 case $host_os in
11016 openbsd2.[89] | openbsd2.[89].*)
11017 shlibpath_overrides_runpath=no
11018 ;;
11019 *)
11020 shlibpath_overrides_runpath=yes
11021 ;;
11022 esac
11023 else
11024 shlibpath_overrides_runpath=yes
11025 fi
11026 ;;
d7040cdb 11027
ce2cded5
L
11028os2*)
11029 libname_spec='$name'
11030 shrext_cmds=".dll"
11031 need_lib_prefix=no
11032 library_names_spec='$libname${shared_ext} $libname.a'
11033 dynamic_linker='OS/2 ld.exe'
11034 shlibpath_var=LIBPATH
11035 ;;
d7040cdb 11036
ce2cded5
L
11037osf3* | osf4* | osf5*)
11038 version_type=osf
11039 need_lib_prefix=no
11040 need_version=no
11041 soname_spec='${libname}${release}${shared_ext}$major'
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043 shlibpath_var=LD_LIBRARY_PATH
11044 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11045 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11046 ;;
d7040cdb 11047
ce2cded5
L
11048rdos*)
11049 dynamic_linker=no
11050 ;;
d7040cdb 11051
ce2cded5
L
11052solaris*)
11053 version_type=linux
11054 need_lib_prefix=no
11055 need_version=no
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057 soname_spec='${libname}${release}${shared_ext}$major'
11058 shlibpath_var=LD_LIBRARY_PATH
11059 shlibpath_overrides_runpath=yes
11060 hardcode_into_libs=yes
11061 # ldd complains unless libraries are executable
11062 postinstall_cmds='chmod +x $lib'
11063 ;;
d7040cdb 11064
ce2cded5
L
11065sunos4*)
11066 version_type=sunos
11067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11068 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11069 shlibpath_var=LD_LIBRARY_PATH
11070 shlibpath_overrides_runpath=yes
11071 if test "$with_gnu_ld" = yes; then
11072 need_lib_prefix=no
11073 fi
11074 need_version=yes
11075 ;;
d7040cdb 11076
ce2cded5
L
11077sysv4 | sysv4.3*)
11078 version_type=linux
11079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11080 soname_spec='${libname}${release}${shared_ext}$major'
11081 shlibpath_var=LD_LIBRARY_PATH
11082 case $host_vendor in
11083 sni)
11084 shlibpath_overrides_runpath=no
11085 need_lib_prefix=no
11086 runpath_var=LD_RUN_PATH
11087 ;;
11088 siemens)
11089 need_lib_prefix=no
11090 ;;
11091 motorola)
11092 need_lib_prefix=no
11093 need_version=no
11094 shlibpath_overrides_runpath=no
11095 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11096 ;;
11097 esac
11098 ;;
d7040cdb 11099
ce2cded5
L
11100sysv4*MP*)
11101 if test -d /usr/nec ;then
11102 version_type=linux
11103 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11104 soname_spec='$libname${shared_ext}.$major'
11105 shlibpath_var=LD_LIBRARY_PATH
11106 fi
11107 ;;
d7040cdb 11108
ce2cded5
L
11109sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11110 version_type=freebsd-elf
11111 need_lib_prefix=no
11112 need_version=no
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11114 soname_spec='${libname}${release}${shared_ext}$major'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 shlibpath_overrides_runpath=yes
11117 hardcode_into_libs=yes
11118 if test "$with_gnu_ld" = yes; then
11119 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11120 else
11121 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11122 case $host_os in
11123 sco3.2v5*)
11124 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11125 ;;
11126 esac
11127 fi
11128 sys_lib_dlsearch_path_spec='/usr/lib'
11129 ;;
d7040cdb 11130
ce2cded5
L
11131tpf*)
11132 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11133 version_type=linux
11134 need_lib_prefix=no
11135 need_version=no
b214d478 11136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
11137 shlibpath_var=LD_LIBRARY_PATH
11138 shlibpath_overrides_runpath=no
11139 hardcode_into_libs=yes
11140 ;;
d7040cdb 11141
ce2cded5
L
11142uts4*)
11143 version_type=linux
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145 soname_spec='${libname}${release}${shared_ext}$major'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 ;;
d7040cdb 11148
ce2cded5
L
11149*)
11150 dynamic_linker=no
11151 ;;
11152esac
81ecdfbb
RW
11153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11154$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
11155test "$dynamic_linker" = no && can_build_shared=no
11156
11157variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11158if test "$GCC" = yes; then
11159 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
11160fi
11161
b214d478
SE
11162if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11163 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11164fi
11165if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11166 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11167fi
11168
d7040cdb
SE
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
d7040cdb 11180
d7040cdb 11181
d7040cdb 11182
d7040cdb 11183
d7040cdb
SE
11184
11185
11186
11187
d7040cdb 11188
d7040cdb
SE
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
d7040cdb
SE
11202
11203
11204
11205
d7040cdb
SE
11206
11207
11208
11209
d7040cdb 11210
d7040cdb 11211
d7040cdb 11212
d7040cdb 11213
d7040cdb 11214
d7040cdb 11215
d7040cdb 11216
d7040cdb
SE
11217
11218
11219
11220
11221
d7040cdb 11222
d7040cdb 11223
d7040cdb 11224
d7040cdb 11225
d7040cdb 11226
d7040cdb 11227
d7040cdb
SE
11228
11229
11230
11231
11232
d7040cdb
SE
11233
11234
d7040cdb 11235
d7040cdb 11236
d7040cdb 11237
d7040cdb 11238
ce2cded5
L
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
3725885a
RW
11249
11250
11251
11252
11253
ce2cded5
L
11254
11255
11256
11257
11258
11259
81ecdfbb
RW
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11261$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
11262hardcode_action=
11263if test -n "$hardcode_libdir_flag_spec" ||
11264 test -n "$runpath_var" ||
11265 test "X$hardcode_automatic" = "Xyes" ; then
11266
11267 # We can hardcode non-existent directories.
11268 if test "$hardcode_direct" != no &&
11269 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11270 # have to relink, otherwise we might link with an installed library
11271 # when we should be linking with a yet-to-be-installed one
11272 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11273 test "$hardcode_minus_L" != no; then
11274 # Linking always hardcodes the temporary library directory.
11275 hardcode_action=relink
11276 else
11277 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11278 hardcode_action=immediate
d7040cdb 11279 fi
d7040cdb 11280else
ce2cded5
L
11281 # We cannot hardcode anything, or else we can only hardcode existing
11282 # directories.
11283 hardcode_action=unsupported
d7040cdb 11284fi
81ecdfbb
RW
11285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11286$as_echo "$hardcode_action" >&6; }
d7040cdb 11287
ce2cded5
L
11288if test "$hardcode_action" = relink ||
11289 test "$inherit_rpath" = yes; then
11290 # Fast installation is not supported
11291 enable_fast_install=no
11292elif test "$shlibpath_overrides_runpath" = yes ||
11293 test "$enable_shared" = no; then
11294 # Fast installation is not necessary
11295 enable_fast_install=needless
d7040cdb
SE
11296fi
11297
d7040cdb 11298
d7040cdb 11299
d7040cdb 11300
d7040cdb 11301
d7040cdb 11302
ce2cded5
L
11303 if test "x$enable_dlopen" != xyes; then
11304 enable_dlopen=unknown
11305 enable_dlopen_self=unknown
11306 enable_dlopen_self_static=unknown
d7040cdb 11307else
ce2cded5
L
11308 lt_cv_dlopen=no
11309 lt_cv_dlopen_libs=
d7040cdb 11310
ce2cded5
L
11311 case $host_os in
11312 beos*)
11313 lt_cv_dlopen="load_add_on"
11314 lt_cv_dlopen_libs=
11315 lt_cv_dlopen_self=yes
11316 ;;
d7040cdb 11317
b214d478 11318 mingw* | pw32* | cegcc*)
ce2cded5
L
11319 lt_cv_dlopen="LoadLibrary"
11320 lt_cv_dlopen_libs=
11321 ;;
11322
11323 cygwin*)
11324 lt_cv_dlopen="dlopen"
11325 lt_cv_dlopen_libs=
11326 ;;
11327
11328 darwin*)
11329 # if libdl is installed we need to link against it
81ecdfbb
RW
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11331$as_echo_n "checking for dlopen in -ldl... " >&6; }
11332if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11333 $as_echo_n "(cached) " >&6
d7040cdb 11334else
ce2cded5
L
11335 ac_check_lib_save_LIBS=$LIBS
11336LIBS="-ldl $LIBS"
81ecdfbb 11337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11338/* end confdefs.h. */
11339
81ecdfbb
RW
11340/* Override any GCC internal prototype to avoid an error.
11341 Use char because int might match the return type of a GCC
11342 builtin and then its argument prototype would still apply. */
ce2cded5
L
11343#ifdef __cplusplus
11344extern "C"
11345#endif
ce2cded5
L
11346char dlopen ();
11347int
11348main ()
11349{
81ecdfbb 11350return dlopen ();
ce2cded5
L
11351 ;
11352 return 0;
11353}
11354_ACEOF
81ecdfbb 11355if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11356 ac_cv_lib_dl_dlopen=yes
11357else
81ecdfbb 11358 ac_cv_lib_dl_dlopen=no
d7040cdb 11359fi
81ecdfbb
RW
11360rm -f core conftest.err conftest.$ac_objext \
11361 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11362LIBS=$ac_check_lib_save_LIBS
d7040cdb 11363fi
81ecdfbb
RW
11364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11365$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11366if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11367 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11368else
d7040cdb 11369
ce2cded5
L
11370 lt_cv_dlopen="dyld"
11371 lt_cv_dlopen_libs=
11372 lt_cv_dlopen_self=yes
11373
d7040cdb 11374fi
ce2cded5
L
11375
11376 ;;
11377
11378 *)
81ecdfbb
RW
11379 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11380if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
11381 lt_cv_dlopen="shl_load"
11382else
81ecdfbb
RW
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11384$as_echo_n "checking for shl_load in -ldld... " >&6; }
11385if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11386 $as_echo_n "(cached) " >&6
ce2cded5
L
11387else
11388 ac_check_lib_save_LIBS=$LIBS
11389LIBS="-ldld $LIBS"
81ecdfbb 11390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11391/* end confdefs.h. */
d7040cdb 11392
81ecdfbb
RW
11393/* Override any GCC internal prototype to avoid an error.
11394 Use char because int might match the return type of a GCC
11395 builtin and then its argument prototype would still apply. */
ce2cded5
L
11396#ifdef __cplusplus
11397extern "C"
11398#endif
ce2cded5
L
11399char shl_load ();
11400int
11401main ()
11402{
81ecdfbb 11403return shl_load ();
ce2cded5
L
11404 ;
11405 return 0;
11406}
11407_ACEOF
81ecdfbb 11408if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11409 ac_cv_lib_dld_shl_load=yes
11410else
81ecdfbb 11411 ac_cv_lib_dld_shl_load=no
ce2cded5 11412fi
81ecdfbb
RW
11413rm -f core conftest.err conftest.$ac_objext \
11414 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11415LIBS=$ac_check_lib_save_LIBS
11416fi
81ecdfbb
RW
11417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11418$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11419if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
b214d478 11420 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 11421else
81ecdfbb
RW
11422 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11423if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
11424 lt_cv_dlopen="dlopen"
11425else
81ecdfbb
RW
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11427$as_echo_n "checking for dlopen in -ldl... " >&6; }
11428if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11429 $as_echo_n "(cached) " >&6
d7040cdb 11430else
ce2cded5
L
11431 ac_check_lib_save_LIBS=$LIBS
11432LIBS="-ldl $LIBS"
81ecdfbb 11433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11434/* end confdefs.h. */
11435
81ecdfbb
RW
11436/* Override any GCC internal prototype to avoid an error.
11437 Use char because int might match the return type of a GCC
11438 builtin and then its argument prototype would still apply. */
ce2cded5
L
11439#ifdef __cplusplus
11440extern "C"
11441#endif
ce2cded5 11442char dlopen ();
d7040cdb
SE
11443int
11444main ()
11445{
81ecdfbb 11446return dlopen ();
d7040cdb
SE
11447 ;
11448 return 0;
11449}
11450_ACEOF
81ecdfbb 11451if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11452 ac_cv_lib_dl_dlopen=yes
d7040cdb 11453else
81ecdfbb 11454 ac_cv_lib_dl_dlopen=no
d7040cdb 11455fi
81ecdfbb
RW
11456rm -f core conftest.err conftest.$ac_objext \
11457 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11458LIBS=$ac_check_lib_save_LIBS
d7040cdb 11459fi
81ecdfbb
RW
11460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11461$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11462if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11463 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11464else
81ecdfbb
RW
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11466$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11467if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11468 $as_echo_n "(cached) " >&6
d7040cdb 11469else
ce2cded5
L
11470 ac_check_lib_save_LIBS=$LIBS
11471LIBS="-lsvld $LIBS"
81ecdfbb 11472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11473/* end confdefs.h. */
d7040cdb 11474
81ecdfbb
RW
11475/* Override any GCC internal prototype to avoid an error.
11476 Use char because int might match the return type of a GCC
11477 builtin and then its argument prototype would still apply. */
ce2cded5
L
11478#ifdef __cplusplus
11479extern "C"
11480#endif
ce2cded5 11481char dlopen ();
d7040cdb
SE
11482int
11483main ()
11484{
81ecdfbb 11485return dlopen ();
d7040cdb
SE
11486 ;
11487 return 0;
11488}
11489_ACEOF
81ecdfbb 11490if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11491 ac_cv_lib_svld_dlopen=yes
d7040cdb 11492else
81ecdfbb 11493 ac_cv_lib_svld_dlopen=no
d7040cdb 11494fi
81ecdfbb
RW
11495rm -f core conftest.err conftest.$ac_objext \
11496 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11497LIBS=$ac_check_lib_save_LIBS
d7040cdb 11498fi
81ecdfbb
RW
11499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11500$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11501if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
11502 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11503else
81ecdfbb
RW
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11505$as_echo_n "checking for dld_link in -ldld... " >&6; }
11506if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11507 $as_echo_n "(cached) " >&6
ce2cded5
L
11508else
11509 ac_check_lib_save_LIBS=$LIBS
11510LIBS="-ldld $LIBS"
81ecdfbb 11511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11512/* end confdefs.h. */
11513
81ecdfbb
RW
11514/* Override any GCC internal prototype to avoid an error.
11515 Use char because int might match the return type of a GCC
11516 builtin and then its argument prototype would still apply. */
ce2cded5
L
11517#ifdef __cplusplus
11518extern "C"
11519#endif
ce2cded5 11520char dld_link ();
d7040cdb
SE
11521int
11522main ()
11523{
81ecdfbb 11524return dld_link ();
d7040cdb
SE
11525 ;
11526 return 0;
11527}
11528_ACEOF
81ecdfbb 11529if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11530 ac_cv_lib_dld_dld_link=yes
d7040cdb 11531else
81ecdfbb 11532 ac_cv_lib_dld_dld_link=no
d7040cdb 11533fi
81ecdfbb
RW
11534rm -f core conftest.err conftest.$ac_objext \
11535 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11536LIBS=$ac_check_lib_save_LIBS
11537fi
81ecdfbb
RW
11538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11539$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11540if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
b214d478 11541 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11542fi
11543
11544
11545fi
11546
11547
11548fi
11549
11550
11551fi
11552
11553
11554fi
11555
11556
11557fi
11558
11559 ;;
11560 esac
11561
11562 if test "x$lt_cv_dlopen" != xno; then
11563 enable_dlopen=yes
11564 else
11565 enable_dlopen=no
11566 fi
11567
11568 case $lt_cv_dlopen in
11569 dlopen)
11570 save_CPPFLAGS="$CPPFLAGS"
11571 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11572
11573 save_LDFLAGS="$LDFLAGS"
11574 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11575
11576 save_LIBS="$LIBS"
11577 LIBS="$lt_cv_dlopen_libs $LIBS"
11578
81ecdfbb
RW
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11580$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11581if test "${lt_cv_dlopen_self+set}" = set; then :
11582 $as_echo_n "(cached) " >&6
ce2cded5
L
11583else
11584 if test "$cross_compiling" = yes; then :
11585 lt_cv_dlopen_self=cross
11586else
11587 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11588 lt_status=$lt_dlunknown
11589 cat > conftest.$ac_ext <<_LT_EOF
397841b5 11590#line 11590 "configure"
ce2cded5
L
11591#include "confdefs.h"
11592
11593#if HAVE_DLFCN_H
11594#include <dlfcn.h>
11595#endif
11596
11597#include <stdio.h>
11598
11599#ifdef RTLD_GLOBAL
11600# define LT_DLGLOBAL RTLD_GLOBAL
11601#else
11602# ifdef DL_GLOBAL
11603# define LT_DLGLOBAL DL_GLOBAL
11604# else
11605# define LT_DLGLOBAL 0
11606# endif
11607#endif
11608
11609/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11610 find out it does not work in some platform. */
11611#ifndef LT_DLLAZY_OR_NOW
11612# ifdef RTLD_LAZY
11613# define LT_DLLAZY_OR_NOW RTLD_LAZY
11614# else
11615# ifdef DL_LAZY
11616# define LT_DLLAZY_OR_NOW DL_LAZY
11617# else
11618# ifdef RTLD_NOW
11619# define LT_DLLAZY_OR_NOW RTLD_NOW
11620# else
11621# ifdef DL_NOW
11622# define LT_DLLAZY_OR_NOW DL_NOW
11623# else
11624# define LT_DLLAZY_OR_NOW 0
11625# endif
11626# endif
11627# endif
11628# endif
11629#endif
11630
3725885a
RW
11631/* When -fvisbility=hidden is used, assume the code has been annotated
11632 correspondingly for the symbols needed. */
11633#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11634void fnord () __attribute__((visibility("default")));
11635#endif
11636
11637void fnord () { int i=42; }
ce2cded5 11638int main ()
d7040cdb 11639{
ce2cded5
L
11640 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11641 int status = $lt_dlunknown;
11642
11643 if (self)
11644 {
11645 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11646 else
11647 {
11648 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11649 else puts (dlerror ());
11650 }
ce2cded5
L
11651 /* dlclose (self); */
11652 }
11653 else
11654 puts (dlerror ());
11655
b214d478 11656 return status;
d7040cdb 11657}
ce2cded5 11658_LT_EOF
81ecdfbb 11659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11660 (eval $ac_link) 2>&5
d7040cdb 11661 ac_status=$?
81ecdfbb
RW
11662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11663 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11664 (./conftest; exit; ) >&5 2>/dev/null
11665 lt_status=$?
11666 case x$lt_status in
11667 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11668 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11669 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11670 esac
11671 else :
11672 # compilation failed
11673 lt_cv_dlopen_self=no
11674 fi
11675fi
11676rm -fr conftest*
11677
11678
11679fi
81ecdfbb
RW
11680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11681$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11682
11683 if test "x$lt_cv_dlopen_self" = xyes; then
11684 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11686$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11687if test "${lt_cv_dlopen_self_static+set}" = set; then :
11688 $as_echo_n "(cached) " >&6
ce2cded5
L
11689else
11690 if test "$cross_compiling" = yes; then :
11691 lt_cv_dlopen_self_static=cross
11692else
11693 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11694 lt_status=$lt_dlunknown
11695 cat > conftest.$ac_ext <<_LT_EOF
397841b5 11696#line 11696 "configure"
ce2cded5
L
11697#include "confdefs.h"
11698
11699#if HAVE_DLFCN_H
11700#include <dlfcn.h>
11701#endif
11702
11703#include <stdio.h>
11704
11705#ifdef RTLD_GLOBAL
11706# define LT_DLGLOBAL RTLD_GLOBAL
11707#else
11708# ifdef DL_GLOBAL
11709# define LT_DLGLOBAL DL_GLOBAL
11710# else
11711# define LT_DLGLOBAL 0
11712# endif
11713#endif
11714
11715/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11716 find out it does not work in some platform. */
11717#ifndef LT_DLLAZY_OR_NOW
11718# ifdef RTLD_LAZY
11719# define LT_DLLAZY_OR_NOW RTLD_LAZY
11720# else
11721# ifdef DL_LAZY
11722# define LT_DLLAZY_OR_NOW DL_LAZY
11723# else
11724# ifdef RTLD_NOW
11725# define LT_DLLAZY_OR_NOW RTLD_NOW
11726# else
11727# ifdef DL_NOW
11728# define LT_DLLAZY_OR_NOW DL_NOW
11729# else
11730# define LT_DLLAZY_OR_NOW 0
11731# endif
11732# endif
11733# endif
11734# endif
11735#endif
11736
3725885a
RW
11737/* When -fvisbility=hidden is used, assume the code has been annotated
11738 correspondingly for the symbols needed. */
11739#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11740void fnord () __attribute__((visibility("default")));
11741#endif
11742
11743void fnord () { int i=42; }
ce2cded5
L
11744int main ()
11745{
11746 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11747 int status = $lt_dlunknown;
11748
11749 if (self)
11750 {
11751 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11752 else
11753 {
11754 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11755 else puts (dlerror ());
11756 }
ce2cded5
L
11757 /* dlclose (self); */
11758 }
11759 else
11760 puts (dlerror ());
11761
b214d478 11762 return status;
ce2cded5
L
11763}
11764_LT_EOF
81ecdfbb 11765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11766 (eval $ac_link) 2>&5
d7040cdb 11767 ac_status=$?
81ecdfbb
RW
11768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11769 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11770 (./conftest; exit; ) >&5 2>/dev/null
11771 lt_status=$?
11772 case x$lt_status in
11773 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11774 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11775 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11776 esac
11777 else :
11778 # compilation failed
11779 lt_cv_dlopen_self_static=no
11780 fi
11781fi
11782rm -fr conftest*
11783
d7040cdb
SE
11784
11785fi
81ecdfbb
RW
11786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11787$as_echo "$lt_cv_dlopen_self_static" >&6; }
ce2cded5
L
11788 fi
11789
11790 CPPFLAGS="$save_CPPFLAGS"
11791 LDFLAGS="$save_LDFLAGS"
11792 LIBS="$save_LIBS"
11793 ;;
11794 esac
11795
11796 case $lt_cv_dlopen_self in
11797 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11798 *) enable_dlopen_self=unknown ;;
11799 esac
11800
11801 case $lt_cv_dlopen_self_static in
11802 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11803 *) enable_dlopen_self_static=unknown ;;
11804 esac
d7040cdb
SE
11805fi
11806
ce2cded5
L
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823striplib=
11824old_striplib=
81ecdfbb
RW
11825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11826$as_echo_n "checking whether stripping libraries is possible... " >&6; }
ce2cded5
L
11827if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11828 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11829 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11831$as_echo "yes" >&6; }
d7040cdb 11832else
ce2cded5
L
11833# FIXME - insert some real tests, host_os isn't really good enough
11834 case $host_os in
11835 darwin*)
11836 if test -n "$STRIP" ; then
11837 striplib="$STRIP -x"
11838 old_striplib="$STRIP -S"
81ecdfbb
RW
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11840$as_echo "yes" >&6; }
ce2cded5 11841 else
81ecdfbb
RW
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843$as_echo "no" >&6; }
ce2cded5
L
11844 fi
11845 ;;
11846 *)
81ecdfbb
RW
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11848$as_echo "no" >&6; }
ce2cded5
L
11849 ;;
11850 esac
11851fi
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864 # Report which library types will actually be built
81ecdfbb
RW
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11866$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11868$as_echo "$can_build_shared" >&6; }
ce2cded5 11869
81ecdfbb
RW
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11871$as_echo_n "checking whether to build shared libraries... " >&6; }
ce2cded5
L
11872 test "$can_build_shared" = "no" && enable_shared=no
11873
11874 # On AIX, shared libraries and static libraries use the same namespace, and
11875 # are all built from PIC.
11876 case $host_os in
11877 aix3*)
11878 test "$enable_shared" = yes && enable_static=no
11879 if test -n "$RANLIB"; then
11880 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11881 postinstall_cmds='$RANLIB $lib'
11882 fi
11883 ;;
11884
50e7d84b 11885 aix[4-9]*)
ce2cded5
L
11886 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11887 test "$enable_shared" = yes && enable_static=no
11888 fi
11889 ;;
11890 esac
81ecdfbb
RW
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11892$as_echo "$enable_shared" >&6; }
ce2cded5 11893
81ecdfbb
RW
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11895$as_echo_n "checking whether to build static libraries... " >&6; }
ce2cded5
L
11896 # Make sure either enable_shared or enable_static is yes.
11897 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11899$as_echo "$enable_static" >&6; }
ce2cded5
L
11900
11901
11902
d7040cdb
SE
11903
11904fi
d7040cdb
SE
11905ac_ext=c
11906ac_cpp='$CPP $CPPFLAGS'
11907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11909ac_compiler_gnu=$ac_cv_c_compiler_gnu
11910
ce2cded5 11911CC="$lt_save_CC"
67310ccd 11912
67310ccd
AM
11913
11914
d7040cdb
SE
11915
11916
d7040cdb 11917
d7040cdb 11918
d7040cdb 11919
ce2cded5
L
11920
11921
11922
11923
11924
81ecdfbb 11925 ac_config_commands="$ac_config_commands libtool"
ce2cded5
L
11926
11927
11928
11929
11930# Only expand once:
11931
d7040cdb
SE
11932
11933
ef3f88be 11934ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg"
d7040cdb
SE
11935# If we haven't got the data from the intl directory,
11936# assume NLS is disabled.
11937USE_NLS=no
11938LIBINTL=
11939LIBINTL_DEP=
11940INCINTL=
11941XGETTEXT=
11942GMSGFMT=
11943POSUB=
11944
11945if test -f ../intl/config.intl; then
11946 . ../intl/config.intl
11947fi
81ecdfbb
RW
11948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11949$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 11950if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11952$as_echo "no" >&6; }
d7040cdb 11953else
81ecdfbb
RW
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11955$as_echo "yes" >&6; }
d7040cdb 11956
81ecdfbb 11957$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
11958
11959
81ecdfbb
RW
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11961$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
11962 # Look for .po and .gmo files in the source directory.
11963 CATALOGS=
11964 XLINGUAS=
11965 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11966 # If there aren't any .gmo files the shell will give us the
11967 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11968 # weeded out.
11969 case "$cat" in *\**)
11970 continue;;
11971 esac
11972 # The quadruple backslash is collapsed to a double backslash
11973 # by the backticks, then collapsed again by the double quotes,
11974 # leaving us with one backslash in the sed expression (right
11975 # before the dot that mustn't act as a wildcard).
11976 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11977 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11978 # The user is allowed to set LINGUAS to a list of languages to
11979 # install catalogs for. If it's empty that means "all of them."
11980 if test "x$LINGUAS" = x; then
11981 CATALOGS="$CATALOGS $cat"
11982 XLINGUAS="$XLINGUAS $lang"
11983 else
11984 case "$LINGUAS" in *$lang*)
11985 CATALOGS="$CATALOGS $cat"
11986 XLINGUAS="$XLINGUAS $lang"
11987 ;;
11988 esac
11989 fi
11990 done
11991 LINGUAS="$XLINGUAS"
81ecdfbb
RW
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11993$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
11994
11995
11996 DATADIRNAME=share
11997
11998 INSTOBJEXT=.mo
11999
12000 GENCAT=gencat
12001
12002 CATOBJEXT=.gmo
12003
12004fi
12005
12006 MKINSTALLDIRS=
12007 if test -n "$ac_aux_dir"; then
12008 case "$ac_aux_dir" in
12009 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12010 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12011 esac
12012 fi
12013 if test -z "$MKINSTALLDIRS"; then
12014 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12015 fi
12016
12017
12018
81ecdfbb
RW
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12020$as_echo_n "checking whether NLS is requested... " >&6; }
12021 # Check whether --enable-nls was given.
12022if test "${enable_nls+set}" = set; then :
12023 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
12024else
12025 USE_NLS=yes
81ecdfbb
RW
12026fi
12027
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12029$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
12030
12031
12032
12033
12034
12035
12036# Prepare PATH_SEPARATOR.
12037# The user is always right.
12038if test "${PATH_SEPARATOR+set}" != set; then
12039 echo "#! /bin/sh" >conf$$.sh
12040 echo "exit 0" >>conf$$.sh
12041 chmod +x conf$$.sh
12042 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12043 PATH_SEPARATOR=';'
12044 else
12045 PATH_SEPARATOR=:
12046 fi
12047 rm -f conf$$.sh
12048fi
12049
12050# Find out how to test for executable files. Don't use a zero-byte file,
12051# as systems may use methods other than mode bits to determine executability.
12052cat >conf$$.file <<_ASEOF
12053#! /bin/sh
12054exit 0
12055_ASEOF
12056chmod +x conf$$.file
12057if test -x conf$$.file >/dev/null 2>&1; then
12058 ac_executable_p="test -x"
12059else
12060 ac_executable_p="test -f"
12061fi
12062rm -f conf$$.file
12063
12064# Extract the first word of "msgfmt", so it can be a program name with args.
12065set dummy msgfmt; ac_word=$2
81ecdfbb
RW
12066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12067$as_echo_n "checking for $ac_word... " >&6; }
12068if test "${ac_cv_path_MSGFMT+set}" = set; then :
12069 $as_echo_n "(cached) " >&6
d7040cdb
SE
12070else
12071 case "$MSGFMT" in
12072 [\\/]* | ?:[\\/]*)
12073 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12074 ;;
12075 *)
12076 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12077 for ac_dir in $PATH; do
12078 IFS="$ac_save_IFS"
12079 test -z "$ac_dir" && ac_dir=.
12080 for ac_exec_ext in '' $ac_executable_extensions; do
12081 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12082 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12083 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12084 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12085 break 2
12086 fi
12087 fi
12088 done
12089 done
12090 IFS="$ac_save_IFS"
12091 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12092 ;;
12093esac
12094fi
12095MSGFMT="$ac_cv_path_MSGFMT"
12096if test "$MSGFMT" != ":"; then
81ecdfbb
RW
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12098$as_echo "$MSGFMT" >&6; }
d7040cdb 12099else
81ecdfbb
RW
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12101$as_echo "no" >&6; }
d7040cdb
SE
12102fi
12103
12104 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12105set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
12106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12107$as_echo_n "checking for $ac_word... " >&6; }
12108if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12109 $as_echo_n "(cached) " >&6
d7040cdb
SE
12110else
12111 case $GMSGFMT in
12112 [\\/]* | ?:[\\/]*)
12113 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12114 ;;
12115 *)
12116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12117for as_dir in $PATH
12118do
12119 IFS=$as_save_IFS
12120 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12121 for ac_exec_ext in '' $ac_executable_extensions; do
12122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12123 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12125 break 2
12126 fi
12127done
81ecdfbb
RW
12128 done
12129IFS=$as_save_IFS
d7040cdb
SE
12130
12131 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12132 ;;
12133esac
12134fi
12135GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 12136if test -n "$GMSGFMT"; then
81ecdfbb
RW
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12138$as_echo "$GMSGFMT" >&6; }
d7040cdb 12139else
81ecdfbb
RW
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12141$as_echo "no" >&6; }
20e95c23 12142fi
42ecbf5e 12143
20e95c23 12144
252b5132 12145
81ecdfbb 12146
d7040cdb
SE
12147# Prepare PATH_SEPARATOR.
12148# The user is always right.
12149if test "${PATH_SEPARATOR+set}" != set; then
12150 echo "#! /bin/sh" >conf$$.sh
12151 echo "exit 0" >>conf$$.sh
12152 chmod +x conf$$.sh
12153 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12154 PATH_SEPARATOR=';'
12155 else
12156 PATH_SEPARATOR=:
12157 fi
12158 rm -f conf$$.sh
20e95c23 12159fi
252b5132 12160
d7040cdb
SE
12161# Find out how to test for executable files. Don't use a zero-byte file,
12162# as systems may use methods other than mode bits to determine executability.
12163cat >conf$$.file <<_ASEOF
12164#! /bin/sh
12165exit 0
12166_ASEOF
12167chmod +x conf$$.file
12168if test -x conf$$.file >/dev/null 2>&1; then
12169 ac_executable_p="test -x"
20e95c23 12170else
d7040cdb
SE
12171 ac_executable_p="test -f"
12172fi
12173rm -f conf$$.file
20e95c23 12174
d7040cdb
SE
12175# Extract the first word of "xgettext", so it can be a program name with args.
12176set dummy xgettext; ac_word=$2
81ecdfbb
RW
12177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12178$as_echo_n "checking for $ac_word... " >&6; }
12179if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12180 $as_echo_n "(cached) " >&6
252b5132 12181else
d7040cdb
SE
12182 case "$XGETTEXT" in
12183 [\\/]* | ?:[\\/]*)
12184 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12185 ;;
12186 *)
12187 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12188 for ac_dir in $PATH; do
12189 IFS="$ac_save_IFS"
12190 test -z "$ac_dir" && ac_dir=.
12191 for ac_exec_ext in '' $ac_executable_extensions; do
12192 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12193 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12194 (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
12195 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12196 break 2
12197 fi
12198 fi
12199 done
12200 done
12201 IFS="$ac_save_IFS"
12202 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12203 ;;
12204esac
252b5132 12205fi
d7040cdb
SE
12206XGETTEXT="$ac_cv_path_XGETTEXT"
12207if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12209$as_echo "$XGETTEXT" >&6; }
d5fbea21 12210else
81ecdfbb
RW
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212$as_echo "no" >&6; }
d5fbea21
DJ
12213fi
12214
d7040cdb 12215 rm -f messages.po
d5fbea21 12216
20e95c23 12217
d7040cdb
SE
12218# Prepare PATH_SEPARATOR.
12219# The user is always right.
12220if test "${PATH_SEPARATOR+set}" != set; then
12221 echo "#! /bin/sh" >conf$$.sh
12222 echo "exit 0" >>conf$$.sh
12223 chmod +x conf$$.sh
12224 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12225 PATH_SEPARATOR=';'
12226 else
12227 PATH_SEPARATOR=:
12228 fi
12229 rm -f conf$$.sh
12230fi
20e95c23 12231
d7040cdb
SE
12232# Find out how to test for executable files. Don't use a zero-byte file,
12233# as systems may use methods other than mode bits to determine executability.
12234cat >conf$$.file <<_ASEOF
12235#! /bin/sh
12236exit 0
12237_ASEOF
12238chmod +x conf$$.file
12239if test -x conf$$.file >/dev/null 2>&1; then
12240 ac_executable_p="test -x"
12241else
12242 ac_executable_p="test -f"
12243fi
12244rm -f conf$$.file
20e95c23 12245
d7040cdb
SE
12246# Extract the first word of "msgmerge", so it can be a program name with args.
12247set dummy msgmerge; ac_word=$2
81ecdfbb
RW
12248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12249$as_echo_n "checking for $ac_word... " >&6; }
12250if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12251 $as_echo_n "(cached) " >&6
d7040cdb
SE
12252else
12253 case "$MSGMERGE" in
12254 [\\/]* | ?:[\\/]*)
12255 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12256 ;;
12257 *)
12258 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12259 for ac_dir in $PATH; do
12260 IFS="$ac_save_IFS"
12261 test -z "$ac_dir" && ac_dir=.
12262 for ac_exec_ext in '' $ac_executable_extensions; do
12263 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12264 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12265 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12266 break 2
12267 fi
12268 fi
12269 done
12270 done
12271 IFS="$ac_save_IFS"
12272 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12273 ;;
12274esac
12275fi
12276MSGMERGE="$ac_cv_path_MSGMERGE"
12277if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12279$as_echo "$MSGMERGE" >&6; }
d7040cdb 12280else
81ecdfbb
RW
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282$as_echo "no" >&6; }
d7040cdb 12283fi
20e95c23
DJ
12284
12285
d7040cdb
SE
12286 if test "$GMSGFMT" != ":"; then
12287 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12288 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12289 : ;
12290 else
12291 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12293$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
12294 GMSGFMT=":"
12295 fi
12296 fi
20e95c23 12297
d7040cdb
SE
12298 if test "$XGETTEXT" != ":"; then
12299 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12300 (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
12301 : ;
12302 else
81ecdfbb
RW
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12304$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
12305 XGETTEXT=":"
12306 fi
12307 rm -f messages.po
20e95c23 12308 fi
42ecbf5e 12309
81ecdfbb 12310 ac_config_commands="$ac_config_commands default-1"
252b5132 12311
42ecbf5e 12312
252b5132 12313
42ecbf5e
DJ
12314
12315
d7040cdb 12316for ac_prog in 'bison -y' byacc
20e95c23 12317do
d7040cdb
SE
12318 # Extract the first word of "$ac_prog", so it can be a program name with args.
12319set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321$as_echo_n "checking for $ac_word... " >&6; }
12322if test "${ac_cv_prog_YACC+set}" = set; then :
12323 $as_echo_n "(cached) " >&6
20e95c23 12324else
d7040cdb
SE
12325 if test -n "$YACC"; then
12326 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 12327else
d7040cdb
SE
12328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329for as_dir in $PATH
12330do
12331 IFS=$as_save_IFS
12332 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12333 for ac_exec_ext in '' $ac_executable_extensions; do
12334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12335 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 12336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12337 break 2
12338 fi
12339done
81ecdfbb
RW
12340 done
12341IFS=$as_save_IFS
42ecbf5e 12342
42ecbf5e 12343fi
e5a52504 12344fi
d7040cdb
SE
12345YACC=$ac_cv_prog_YACC
12346if test -n "$YACC"; then
81ecdfbb
RW
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12348$as_echo "$YACC" >&6; }
42ecbf5e 12349else
81ecdfbb
RW
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351$as_echo "no" >&6; }
42ecbf5e 12352fi
252b5132 12353
81ecdfbb 12354
d7040cdb 12355 test -n "$YACC" && break
42ecbf5e 12356done
d7040cdb 12357test -n "$YACC" || YACC="yacc"
d15b04bd 12358
d7040cdb
SE
12359for ac_prog in flex lex
12360do
12361 # Extract the first word of "$ac_prog", so it can be a program name with args.
12362set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12364$as_echo_n "checking for $ac_word... " >&6; }
12365if test "${ac_cv_prog_LEX+set}" = set; then :
12366 $as_echo_n "(cached) " >&6
d15b04bd 12367else
d7040cdb
SE
12368 if test -n "$LEX"; then
12369 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12370else
12371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372for as_dir in $PATH
12373do
12374 IFS=$as_save_IFS
12375 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12376 for ac_exec_ext in '' $ac_executable_extensions; do
12377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12378 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 12379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12380 break 2
12381 fi
12382done
81ecdfbb
RW
12383 done
12384IFS=$as_save_IFS
d7040cdb
SE
12385
12386fi
12387fi
12388LEX=$ac_cv_prog_LEX
12389if test -n "$LEX"; then
81ecdfbb
RW
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12391$as_echo "$LEX" >&6; }
d7040cdb 12392else
81ecdfbb
RW
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394$as_echo "no" >&6; }
d15b04bd 12395fi
e5a52504 12396
81ecdfbb 12397
d7040cdb
SE
12398 test -n "$LEX" && break
12399done
12400test -n "$LEX" || LEX=":"
42ecbf5e 12401
81ecdfbb
RW
12402if test "x$LEX" != "x:"; then
12403 cat >conftest.l <<_ACEOF
12404%%
12405a { ECHO; }
12406b { REJECT; }
12407c { yymore (); }
12408d { yyless (1); }
12409e { yyless (input () != 0); }
12410f { unput (yytext[0]); }
12411. { BEGIN INITIAL; }
12412%%
12413#ifdef YYTEXT_POINTER
12414extern char *yytext;
d7040cdb 12415#endif
42ecbf5e 12416int
81ecdfbb 12417main (void)
42ecbf5e 12418{
81ecdfbb 12419 return ! yylex () + ! yywrap ();
42ecbf5e
DJ
12420}
12421_ACEOF
81ecdfbb
RW
12422{ { ac_try="$LEX conftest.l"
12423case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12426esac
12427eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12428$as_echo "$ac_try_echo"; } >&5
12429 (eval "$LEX conftest.l") 2>&5
42ecbf5e 12430 ac_status=$?
81ecdfbb
RW
12431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12432 test $ac_status = 0; }
12433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12434$as_echo_n "checking lex output file root... " >&6; }
12435if test "${ac_cv_prog_lex_root+set}" = set; then :
12436 $as_echo_n "(cached) " >&6
42ecbf5e 12437else
42ecbf5e 12438
81ecdfbb
RW
12439if test -f lex.yy.c; then
12440 ac_cv_prog_lex_root=lex.yy
12441elif test -f lexyy.c; then
12442 ac_cv_prog_lex_root=lexyy
12443else
12444 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
42ecbf5e 12445fi
42ecbf5e 12446fi
81ecdfbb
RW
12447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12448$as_echo "$ac_cv_prog_lex_root" >&6; }
12449LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 12450
81ecdfbb
RW
12451if test -z "${LEXLIB+set}"; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12453$as_echo_n "checking lex library... " >&6; }
12454if test "${ac_cv_lib_lex+set}" = set; then :
12455 $as_echo_n "(cached) " >&6
252b5132 12456else
20e95c23 12457
81ecdfbb
RW
12458 ac_save_LIBS=$LIBS
12459 ac_cv_lib_lex='none needed'
12460 for ac_lib in '' -lfl -ll; do
12461 LIBS="$ac_lib $ac_save_LIBS"
12462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12463/* end confdefs.h. */
12464`cat $LEX_OUTPUT_ROOT.c`
12465_ACEOF
12466if ac_fn_c_try_link "$LINENO"; then :
12467 ac_cv_lib_lex=$ac_lib
20e95c23 12468fi
81ecdfbb
RW
12469rm -f core conftest.err conftest.$ac_objext \
12470 conftest$ac_exeext conftest.$ac_ext
12471 test "$ac_cv_lib_lex" != 'none needed' && break
12472 done
12473 LIBS=$ac_save_LIBS
20e95c23
DJ
12474
12475fi
81ecdfbb
RW
12476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12477$as_echo "$ac_cv_lib_lex" >&6; }
12478 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb 12479fi
20e95c23 12480
20e95c23 12481
81ecdfbb
RW
12482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12483$as_echo_n "checking whether yytext is a pointer... " >&6; }
12484if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12485 $as_echo_n "(cached) " >&6
d7040cdb
SE
12486else
12487 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 12488# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
12489# not all implementations provide the %pointer and %array declarations.
12490ac_cv_prog_lex_yytext_pointer=no
d7040cdb 12491ac_save_LIBS=$LIBS
81ecdfbb
RW
12492LIBS="$LEXLIB $ac_save_LIBS"
12493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494/* end confdefs.h. */
12495#define YYTEXT_POINTER 1
d7040cdb 12496`cat $LEX_OUTPUT_ROOT.c`
20e95c23 12497_ACEOF
81ecdfbb 12498if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 12499 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 12500fi
81ecdfbb
RW
12501rm -f core conftest.err conftest.$ac_objext \
12502 conftest$ac_exeext conftest.$ac_ext
d7040cdb 12503LIBS=$ac_save_LIBS
d7040cdb
SE
12504
12505fi
81ecdfbb
RW
12506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12507$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
12508if test $ac_cv_prog_lex_yytext_pointer = yes; then
12509
81ecdfbb 12510$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
12511
12512fi
81ecdfbb 12513rm -f conftest.l $LEX_OUTPUT_ROOT.c
d7040cdb
SE
12514
12515fi
12516if test "$LEX" = :; then
12517 LEX=${am_missing_run}flex
12518fi
12519
81ecdfbb
RW
12520
12521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12522$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12523 # Check whether --enable-maintainer-mode was given.
12524if test "${enable_maintainer_mode+set}" = set; then :
12525 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 12526else
d7040cdb 12527 USE_MAINTAINER_MODE=no
81ecdfbb 12528fi
d7040cdb 12529
81ecdfbb
RW
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12531$as_echo "$USE_MAINTAINER_MODE" >&6; }
12532 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
12533 MAINTAINER_MODE_TRUE=
12534 MAINTAINER_MODE_FALSE='#'
12535else
12536 MAINTAINER_MODE_TRUE='#'
12537 MAINTAINER_MODE_FALSE=
252b5132 12538fi
252b5132 12539
d7040cdb
SE
12540 MAINT=$MAINTAINER_MODE_TRUE
12541
12542
81ecdfbb 12543 if false; then
d7040cdb
SE
12544 GENINSRC_NEVER_TRUE=
12545 GENINSRC_NEVER_FALSE='#'
12546else
12547 GENINSRC_NEVER_TRUE='#'
12548 GENINSRC_NEVER_FALSE=
252b5132
RH
12549fi
12550
81ecdfbb
RW
12551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
12552$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
12553if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
12554 $as_echo_n "(cached) " >&6
eccbf555
AM
12555else
12556 echo abfoo >t1
12557 echo cdfoo >t2
12558 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
12559 if cmp t1 t2 2 2 > /dev/null 2>&1; then
12560 if cmp t1 t2 1 1 > /dev/null 2>&1; then
12561 :
12562 else
12563 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
12564 fi
12565 fi
12566 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
12567 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
12568 :
12569 else
12570 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
12571 fi
12572 fi
12573 rm t1 t2
12574
12575fi
81ecdfbb
RW
12576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
12577$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
eccbf555
AM
12578do_compare="$gcc_cv_prog_cmp_skip"
12579
12580
d7040cdb
SE
12581
12582. ${srcdir}/configure.host
12583
12584
12585
12586
252b5132
RH
12587
12588
a3ffa599 12589for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
81ecdfbb
RW
12590do :
12591 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12592ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12593eval as_val=\$$as_ac_Header
12594 if test "x$as_val" = x""yes; then :
42ecbf5e 12595 cat >>confdefs.h <<_ACEOF
81ecdfbb 12596#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42ecbf5e
DJ
12597_ACEOF
12598
12599fi
12600
252b5132
RH
12601done
12602
dc27aea4 12603for ac_func in glob mkstemp realpath sbrk waitpid
81ecdfbb
RW
12604do :
12605 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12606ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12607eval as_val=\$$as_ac_var
12608 if test "x$as_val" = x""yes; then :
42ecbf5e 12609 cat >>confdefs.h <<_ACEOF
81ecdfbb 12610#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42ecbf5e 12611_ACEOF
252b5132 12612
252b5132
RH
12613fi
12614done
12615
12616ac_header_dirent=no
42ecbf5e 12617for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
81ecdfbb
RW
12618 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12620$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12621if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
12622 $as_echo_n "(cached) " >&6
12623else
12624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12625/* end confdefs.h. */
252b5132
RH
12626#include <sys/types.h>
12627#include <$ac_hdr>
42ecbf5e
DJ
12628
12629int
12630main ()
12631{
12632if ((DIR *) 0)
12633return 0;
12634 ;
12635 return 0;
12636}
12637_ACEOF
81ecdfbb 12638if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
12639 eval "$as_ac_Header=yes"
12640else
81ecdfbb 12641 eval "$as_ac_Header=no"
42ecbf5e 12642fi
81ecdfbb 12643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 12644fi
81ecdfbb
RW
12645eval ac_res=\$$as_ac_Header
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12647$as_echo "$ac_res" >&6; }
12648eval as_val=\$$as_ac_Header
12649 if test "x$as_val" = x""yes; then :
42ecbf5e 12650 cat >>confdefs.h <<_ACEOF
81ecdfbb 12651#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
42ecbf5e
DJ
12652_ACEOF
12653
12654ac_header_dirent=$ac_hdr; break
d15b04bd 12655fi
42ecbf5e 12656
d15b04bd
L
12657done
12658# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12659if test $ac_header_dirent = dirent.h; then
81ecdfbb
RW
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12661$as_echo_n "checking for library containing opendir... " >&6; }
12662if test "${ac_cv_search_opendir+set}" = set; then :
12663 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
12664else
12665 ac_func_search_save_LIBS=$LIBS
81ecdfbb 12666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
12667/* end confdefs.h. */
12668
81ecdfbb
RW
12669/* Override any GCC internal prototype to avoid an error.
12670 Use char because int might match the return type of a GCC
12671 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
12672#ifdef __cplusplus
12673extern "C"
12674#endif
42ecbf5e
DJ
12675char opendir ();
12676int
12677main ()
12678{
81ecdfbb 12679return opendir ();
42ecbf5e
DJ
12680 ;
12681 return 0;
12682}
12683_ACEOF
81ecdfbb
RW
12684for ac_lib in '' dir; do
12685 if test -z "$ac_lib"; then
12686 ac_res="none required"
12687 else
12688 ac_res=-l$ac_lib
42ecbf5e 12689 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
12690 fi
12691 if ac_fn_c_try_link "$LINENO"; then :
12692 ac_cv_search_opendir=$ac_res
12693fi
12694rm -f core conftest.err conftest.$ac_objext \
12695 conftest$ac_exeext
12696 if test "${ac_cv_search_opendir+set}" = set; then :
12697 break
12698fi
12699done
12700if test "${ac_cv_search_opendir+set}" = set; then :
e5a52504 12701
42ecbf5e 12702else
81ecdfbb 12703 ac_cv_search_opendir=no
252b5132 12704fi
81ecdfbb 12705rm conftest.$ac_ext
42ecbf5e
DJ
12706LIBS=$ac_func_search_save_LIBS
12707fi
81ecdfbb
RW
12708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12709$as_echo "$ac_cv_search_opendir" >&6; }
12710ac_res=$ac_cv_search_opendir
12711if test "$ac_res" != no; then :
12712 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 12713
d15b04bd 12714fi
252b5132
RH
12715
12716else
81ecdfbb
RW
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12718$as_echo_n "checking for library containing opendir... " >&6; }
12719if test "${ac_cv_search_opendir+set}" = set; then :
12720 $as_echo_n "(cached) " >&6
252b5132 12721else
42ecbf5e 12722 ac_func_search_save_LIBS=$LIBS
81ecdfbb 12723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
12724/* end confdefs.h. */
12725
81ecdfbb
RW
12726/* Override any GCC internal prototype to avoid an error.
12727 Use char because int might match the return type of a GCC
12728 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
12729#ifdef __cplusplus
12730extern "C"
12731#endif
42ecbf5e
DJ
12732char opendir ();
12733int
12734main ()
12735{
81ecdfbb 12736return opendir ();
42ecbf5e
DJ
12737 ;
12738 return 0;
12739}
12740_ACEOF
81ecdfbb
RW
12741for ac_lib in '' x; do
12742 if test -z "$ac_lib"; then
12743 ac_res="none required"
12744 else
12745 ac_res=-l$ac_lib
42ecbf5e 12746 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
12747 fi
12748 if ac_fn_c_try_link "$LINENO"; then :
12749 ac_cv_search_opendir=$ac_res
12750fi
12751rm -f core conftest.err conftest.$ac_objext \
12752 conftest$ac_exeext
12753 if test "${ac_cv_search_opendir+set}" = set; then :
12754 break
12755fi
12756done
12757if test "${ac_cv_search_opendir+set}" = set; then :
252b5132 12758
42ecbf5e 12759else
81ecdfbb 12760 ac_cv_search_opendir=no
252b5132 12761fi
81ecdfbb 12762rm conftest.$ac_ext
42ecbf5e 12763LIBS=$ac_func_search_save_LIBS
252b5132 12764fi
81ecdfbb
RW
12765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12766$as_echo "$ac_cv_search_opendir" >&6; }
12767ac_res=$ac_cv_search_opendir
12768if test "$ac_res" != no; then :
12769 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 12770
d15b04bd 12771fi
252b5132
RH
12772
12773fi
12774
12775
81ecdfbb
RW
12776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
12777$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
12778if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
12779 $as_echo_n "(cached) " >&6
34875e64 12780else
81ecdfbb 12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12782/* end confdefs.h. */
34875e64 12783#include <unistd.h>
42ecbf5e
DJ
12784int
12785main ()
12786{
34875e64 12787extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
12788 ;
12789 return 0;
12790}
12791_ACEOF
81ecdfbb 12792if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
12793 ld_cv_decl_getopt_unistd_h=yes
12794else
81ecdfbb 12795 ld_cv_decl_getopt_unistd_h=no
34875e64 12796fi
81ecdfbb 12797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
12798fi
12799
81ecdfbb
RW
12800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
12801$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
34875e64 12802if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 12803
81ecdfbb 12804$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
12805
12806fi
42ecbf5e 12807
252b5132
RH
12808
12809case "${host}" in
a8100d5b 12810*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 12811
81ecdfbb 12812$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
12813 ;;
12814esac
12815
81ecdfbb
RW
12816ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
12817if test "x$ac_cv_have_decl_strstr" = x""yes; then :
12818 ac_have_decl=1
252b5132 12819else
81ecdfbb
RW
12820 ac_have_decl=0
12821fi
502bdb00 12822
81ecdfbb
RW
12823cat >>confdefs.h <<_ACEOF
12824#define HAVE_DECL_STRSTR $ac_have_decl
42ecbf5e 12825_ACEOF
81ecdfbb
RW
12826ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
12827if test "x$ac_cv_have_decl_free" = x""yes; then :
12828 ac_have_decl=1
252b5132 12829else
81ecdfbb 12830 ac_have_decl=0
252b5132
RH
12831fi
12832
502bdb00 12833cat >>confdefs.h <<_ACEOF
81ecdfbb 12834#define HAVE_DECL_FREE $ac_have_decl
502bdb00 12835_ACEOF
81ecdfbb
RW
12836ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
12837if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
12838 ac_have_decl=1
12839else
12840 ac_have_decl=0
12841fi
42ecbf5e 12842
81ecdfbb
RW
12843cat >>confdefs.h <<_ACEOF
12844#define HAVE_DECL_SBRK $ac_have_decl
12845_ACEOF
12846ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
12847if test "x$ac_cv_have_decl_getenv" = x""yes; then :
12848 ac_have_decl=1
12849else
12850 ac_have_decl=0
12851fi
502bdb00 12852
81ecdfbb
RW
12853cat >>confdefs.h <<_ACEOF
12854#define HAVE_DECL_GETENV $ac_have_decl
12855_ACEOF
12856ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
12857if test "x$ac_cv_have_decl_environ" = x""yes; then :
12858 ac_have_decl=1
502bdb00 12859else
81ecdfbb
RW
12860 ac_have_decl=0
12861fi
12862
12863cat >>confdefs.h <<_ACEOF
12864#define HAVE_DECL_ENVIRON $ac_have_decl
42ecbf5e 12865_ACEOF
252b5132 12866
252b5132 12867
81ecdfbb
RW
12868# Link in zlib if we can. This is needed only for the bootstrap tests
12869# right now, since those tests use libbfd, which depends on zlib.
12870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
12871$as_echo_n "checking for library containing zlibVersion... " >&6; }
12872if test "${ac_cv_search_zlibVersion+set}" = set; then :
12873 $as_echo_n "(cached) " >&6
252b5132 12874else
81ecdfbb
RW
12875 ac_func_search_save_LIBS=$LIBS
12876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12877/* end confdefs.h. */
502bdb00 12878
81ecdfbb
RW
12879/* Override any GCC internal prototype to avoid an error.
12880 Use char because int might match the return type of a GCC
4474d12b 12881 builtin and then its argument prototype would still apply. */
4474d12b
CS
12882#ifdef __cplusplus
12883extern "C"
12884#endif
4474d12b
CS
12885char zlibVersion ();
12886int
12887main ()
12888{
81ecdfbb 12889return zlibVersion ();
4474d12b
CS
12890 ;
12891 return 0;
12892}
12893_ACEOF
81ecdfbb
RW
12894for ac_lib in '' z; do
12895 if test -z "$ac_lib"; then
12896 ac_res="none required"
4474d12b 12897 else
81ecdfbb
RW
12898 ac_res=-l$ac_lib
12899 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4474d12b 12900 fi
81ecdfbb
RW
12901 if ac_fn_c_try_link "$LINENO"; then :
12902 ac_cv_search_zlibVersion=$ac_res
4474d12b 12903fi
81ecdfbb
RW
12904rm -f core conftest.err conftest.$ac_objext \
12905 conftest$ac_exeext
12906 if test "${ac_cv_search_zlibVersion+set}" = set; then :
12907 break
4474d12b 12908fi
81ecdfbb
RW
12909done
12910if test "${ac_cv_search_zlibVersion+set}" = set; then :
4474d12b 12911
4474d12b 12912else
81ecdfbb 12913 ac_cv_search_zlibVersion=no
4474d12b 12914fi
81ecdfbb
RW
12915rm conftest.$ac_ext
12916LIBS=$ac_func_search_save_LIBS
4474d12b 12917fi
81ecdfbb
RW
12918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
12919$as_echo "$ac_cv_search_zlibVersion" >&6; }
12920ac_res=$ac_cv_search_zlibVersion
12921if test "$ac_res" != no; then :
12922 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12923 for ac_header in zlib.h
12924do :
12925 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12926if test "x$ac_cv_header_zlib_h" = x""yes; then :
4474d12b 12927 cat >>confdefs.h <<_ACEOF
81ecdfbb 12928#define HAVE_ZLIB_H 1
4474d12b
CS
12929_ACEOF
12930
12931fi
12932
12933done
12934
12935fi
12936
12937
597e2591
ILT
12938# When converting linker scripts into strings for use in emulation
12939# files, use astring.sed if the compiler supports ANSI string
12940# concatenation, or ostring.sed otherwise. This is to support the
12941# broken Microsoft MSVC compiler, which limits the length of string
12942# constants, while still supporting pre-ANSI compilers which do not
12943# support string concatenation.
81ecdfbb
RW
12944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
12945$as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
12946if test "${ld_cv_string_concatenation+set}" = set; then :
12947 $as_echo_n "(cached) " >&6
42ecbf5e 12948else
81ecdfbb 12949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12950/* end confdefs.h. */
81ecdfbb 12951
314e9a4e
L
12952int
12953main ()
12954{
81ecdfbb 12955char *a = "a" "a";
314e9a4e
L
12956 ;
12957 return 0;
12958}
12959_ACEOF
81ecdfbb
RW
12960if ac_fn_c_try_compile "$LINENO"; then :
12961 ld_cv_string_concatenation=yes
314e9a4e 12962else
81ecdfbb 12963 ld_cv_string_concatenation=no
314e9a4e 12964fi
81ecdfbb 12965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
314e9a4e 12966fi
81ecdfbb
RW
12967
12968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
12969$as_echo "$ld_cv_string_concatenation" >&6; }
12970if test "$ld_cv_string_concatenation" = "yes"; then
12971 STRINGIFY=astring.sed
12972else
12973 STRINGIFY=ostring.sed
314e9a4e 12974fi
81ecdfbb
RW
12975
12976
12977# target-specific stuff:
12978
12979all_targets=
12980EMUL=
12981all_emuls=
12982all_emul_extras=
12983all_libpath=
12984
12985rm -f tdirs
12986
12987for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
12988do
12989 if test "$targ_alias" = "all"; then
12990 all_targets=true
12991 else
12992 # Canonicalize the secondary target names.
12993 result=`$ac_config_sub $targ_alias 2>/dev/null`
12994 if test -n "$result"; then
12995 targ=$result
12996 else
12997 targ=$targ_alias
12998 fi
12999
13000 . ${srcdir}/configure.tgt
13001
13002 if test "$targ" = "$target"; then
13003 EMUL=$targ_emul
13004 fi
13005
13006 if test x${want64} = xfalse; then
13007 . ${srcdir}/../bfd/config.bfd
13008 fi
13009
13010 if test x${want64} = xtrue; then
13011 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
13012 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
13013 fi
13014
13015 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
13016 case " $all_emuls " in
13017 *" e${i}.o "*) ;;
13018 *)
13019 all_emuls="$all_emuls e${i}.o"
13020 eval result=\$tdir_$i
13021 test -z "$result" && result=$targ_alias
13022 echo tdir_$i=$result >> tdirs
13023 ;;
13024 esac
13025 done
13026
13027 for i in $targ_emul $targ_extra_libpath; do
13028 case " $all_libpath " in
13029 *" ${i} "*) ;;
13030 *)
13031 if test -z "$all_libpath"; then
13032 all_libpath=${i}
13033 else
13034 all_libpath="$all_libpath ${i}"
13035 fi
13036 ;;
13037 esac
13038 done
13039
13040 for i in $targ_extra_ofiles; do
13041 case " $all_emul_extras " in
13042 *" ${i} "*) ;;
13043 *)
13044 all_emul_extras="$all_emul_extras ${i}"
13045 ;;
13046 esac
13047 done
13048 fi
13049done
13050
13051
13052
13053TDIRS=tdirs
13054
13055
13056if test x${all_targets} = xtrue; then
13057 if test x${want64} = xfalse; then
13058 # The cast to long int works around a bug in the HP C Compiler
13059# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13060# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13061# This bug is HP SR number 8606223364.
13062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13063$as_echo_n "checking size of long... " >&6; }
13064if test "${ac_cv_sizeof_long+set}" = set; then :
13065 $as_echo_n "(cached) " >&6
13066else
13067 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13068
314e9a4e 13069else
81ecdfbb
RW
13070 if test "$ac_cv_type_long" = yes; then
13071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13073{ as_fn_set_status 77
13074as_fn_error "cannot compute sizeof (long)
13075See \`config.log' for more details." "$LINENO" 5; }; }
13076 else
13077 ac_cv_sizeof_long=0
13078 fi
314e9a4e 13079fi
81ecdfbb 13080
314e9a4e 13081fi
81ecdfbb
RW
13082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13083$as_echo "$ac_cv_sizeof_long" >&6; }
13084
13085
13086
314e9a4e
L
13087cat >>confdefs.h <<_ACEOF
13088#define SIZEOF_LONG $ac_cv_sizeof_long
13089_ACEOF
13090
13091
13092 if test "x${ac_cv_sizeof_long}" = "x8"; then
13093 want64=true
13094 fi
13095 fi
42ecbf5e
DJ
13096 if test x${want64} = xtrue; then
13097 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
13098 else
13099 EMULATION_OFILES='$(ALL_EMULATIONS)'
13100 fi
13101 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
13102else
13103 EMULATION_OFILES=$all_emuls
13104 EMUL_EXTRA_OFILES=$all_emul_extras
13105fi
13106
13107
13108
13109
13110EMULATION_LIBPATH=$all_libpath
13111
13112
13113if test x${enable_static} = xno; then
13114 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
13115else
13116 TESTBFDLIB="../bfd/.libs/libbfd.a"
13117fi
13118
13119
13120target_vendor=${target_vendor=$host_vendor}
13121case "$target_vendor" in
13122 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
13123 *) EXTRA_SHLIB_EXTENSION= ;;
13124esac
13125
13126case "$target_os" in
13127 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
13128esac
13129
13130if test x${EXTRA_SHLIB_EXTENSION} != x ; then
13131
13132cat >>confdefs.h <<_ACEOF
13133#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
13134_ACEOF
13135
13136fi
13137
108a6f8e
CD
13138
13139
13140
13141
31dd3154 13142
81ecdfbb 13143ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 13144
42ecbf5e
DJ
13145cat >confcache <<\_ACEOF
13146# This file is a shell script that caches the results of configure
13147# tests run on this system so they can be shared between configure
13148# scripts and configure runs, see configure's option --config-cache.
13149# It is not useful on other systems. If it contains results you don't
13150# want to keep, you may remove or edit it.
13151#
13152# config.status only pays attention to the cache file if you give it
13153# the --recheck option to rerun configure.
13154#
13155# `ac_cv_env_foo' variables (set or unset) will be overridden when
13156# loading this file, other *unset* `ac_cv_foo' will be assigned the
13157# following values.
13158
13159_ACEOF
13160
13161# The following way of writing the cache mishandles newlines in values,
13162# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 13163# So, we kill variables containing newlines.
42ecbf5e
DJ
13164# Ultrix sh set writes to stderr and can't be redirected directly,
13165# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
13166(
13167 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13168 eval ac_val=\$$ac_var
13169 case $ac_val in #(
13170 *${as_nl}*)
13171 case $ac_var in #(
13172 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13173$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13174 esac
13175 case $ac_var in #(
13176 _ | IFS | as_nl) ;; #(
13177 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13178 *) { eval $ac_var=; unset $ac_var;} ;;
13179 esac ;;
13180 esac
13181 done
13182
42ecbf5e 13183 (set) 2>&1 |
81ecdfbb
RW
13184 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13185 *${as_nl}ac_space=\ *)
13186 # `set' does not quote correctly, so add quotes: double-quote
13187 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
13188 sed -n \
13189 "s/'/'\\\\''/g;
13190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 13191 ;; #(
42ecbf5e
DJ
13192 *)
13193 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 13194 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 13195 ;;
81ecdfbb
RW
13196 esac |
13197 sort
13198) |
42ecbf5e 13199 sed '
81ecdfbb 13200 /^ac_cv_env_/b end
42ecbf5e 13201 t clear
81ecdfbb 13202 :clear
42ecbf5e
DJ
13203 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13204 t end
81ecdfbb
RW
13205 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13206 :end' >>confcache
13207if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13208 if test -w "$cache_file"; then
13209 test "x$cache_file" != "x/dev/null" &&
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13211$as_echo "$as_me: updating cache $cache_file" >&6;}
42ecbf5e
DJ
13212 cat confcache >$cache_file
13213 else
81ecdfbb
RW
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13215$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
13216 fi
13217fi
13218rm -f confcache
13219
13220test "x$prefix" = xNONE && prefix=$ac_default_prefix
13221# Let make expand exec_prefix.
13222test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13223
42ecbf5e
DJ
13224DEFS=-DHAVE_CONFIG_H
13225
13226ac_libobjs=
13227ac_ltlibobjs=
13228for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13229 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
13230 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13231 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13232 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13233 # will be set to the directory where LIBOBJS objects are built.
13234 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13235 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
13236done
13237LIBOBJS=$ac_libobjs
13238
13239LTLIBOBJS=$ac_ltlibobjs
13240
13241
13242if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
13243 as_fn_error "conditional \"AMDEP\" was never defined.
13244Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e
DJ
13245fi
13246if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
13247 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13248Usually this means the macro was only invoked conditionally." "$LINENO" 5
13249fi
13250 if test -n "$EXEEXT"; then
13251 am__EXEEXT_TRUE=
13252 am__EXEEXT_FALSE='#'
13253else
13254 am__EXEEXT_TRUE='#'
13255 am__EXEEXT_FALSE=
42ecbf5e 13256fi
81ecdfbb 13257
64ac50ac
RW
13258if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13259 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13260Usually this means the macro was only invoked conditionally." "$LINENO" 5
13261fi
42ecbf5e 13262if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
13263 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13264Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 13265fi
d5fbea21 13266if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
13267 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
13268Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 13269fi
42ecbf5e
DJ
13270
13271: ${CONFIG_STATUS=./config.status}
81ecdfbb 13272ac_write_fail=0
42ecbf5e
DJ
13273ac_clean_files_save=$ac_clean_files
13274ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
13275{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13276$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13277as_write_fail=0
13278cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
13279#! $SHELL
13280# Generated by $as_me.
13281# Run this file to recreate the current configuration.
13282# Compiler output produced by configure, useful for debugging
13283# configure, is in config.log if it exists.
13284
13285debug=false
13286ac_cs_recheck=false
13287ac_cs_silent=false
42ecbf5e 13288
81ecdfbb
RW
13289SHELL=\${CONFIG_SHELL-$SHELL}
13290export SHELL
13291_ASEOF
13292cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13293## -------------------- ##
13294## M4sh Initialization. ##
13295## -------------------- ##
42ecbf5e 13296
81ecdfbb
RW
13297# Be more Bourne compatible
13298DUALCASE=1; export DUALCASE # for MKS sh
13299if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
13300 emulate sh
13301 NULLCMD=:
81ecdfbb 13302 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
13303 # is contrary to our usage. Disable this feature.
13304 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
13305 setopt NO_GLOB_SUBST
13306else
13307 case `(set -o) 2>/dev/null` in #(
13308 *posix*) :
13309 set -o posix ;; #(
13310 *) :
13311 ;;
13312esac
42ecbf5e 13313fi
42ecbf5e 13314
81ecdfbb
RW
13315
13316as_nl='
13317'
13318export as_nl
13319# Printing a long string crashes Solaris 7 /usr/bin/printf.
13320as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13321as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13322as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13323# Prefer a ksh shell builtin over an external printf program on Solaris,
13324# but without wasting forks for bash or zsh.
13325if test -z "$BASH_VERSION$ZSH_VERSION" \
13326 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13327 as_echo='print -r --'
13328 as_echo_n='print -rn --'
13329elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13330 as_echo='printf %s\n'
13331 as_echo_n='printf %s'
13332else
13333 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13334 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13335 as_echo_n='/usr/ucb/echo -n'
13336 else
13337 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13338 as_echo_n_body='eval
13339 arg=$1;
13340 case $arg in #(
13341 *"$as_nl"*)
13342 expr "X$arg" : "X\\(.*\\)$as_nl";
13343 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13344 esac;
13345 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13346 '
13347 export as_echo_n_body
13348 as_echo_n='sh -c $as_echo_n_body as_echo'
13349 fi
13350 export as_echo_body
13351 as_echo='sh -c $as_echo_body as_echo'
13352fi
13353
13354# The user is always right.
13355if test "${PATH_SEPARATOR+set}" != set; then
13356 PATH_SEPARATOR=:
13357 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13358 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13359 PATH_SEPARATOR=';'
13360 }
42ecbf5e
DJ
13361fi
13362
13363
81ecdfbb
RW
13364# IFS
13365# We need space, tab and new line, in precisely that order. Quoting is
13366# there to prevent editors from complaining about space-tab.
13367# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13368# splitting by setting IFS to empty value.)
13369IFS=" "" $as_nl"
13370
13371# Find who we are. Look in the path if we contain no directory separator.
13372case $0 in #((
13373 *[\\/]* ) as_myself=$0 ;;
13374 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13375for as_dir in $PATH
13376do
13377 IFS=$as_save_IFS
13378 test -z "$as_dir" && as_dir=.
13379 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13380 done
13381IFS=$as_save_IFS
13382
13383 ;;
13384esac
13385# We did not find ourselves, most probably we were run as `sh COMMAND'
13386# in which case we are not to be found in the path.
13387if test "x$as_myself" = x; then
13388 as_myself=$0
13389fi
13390if test ! -f "$as_myself"; then
13391 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13392 exit 1
13393fi
13394
13395# Unset variables that we do not need and which cause bugs (e.g. in
13396# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13397# suppresses any "Segmentation fault" message there. '((' could
13398# trigger a bug in pdksh 5.2.14.
13399for as_var in BASH_ENV ENV MAIL MAILPATH
13400do eval test x\${$as_var+set} = xset \
13401 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13402done
42ecbf5e
DJ
13403PS1='$ '
13404PS2='> '
13405PS4='+ '
13406
13407# NLS nuisances.
81ecdfbb
RW
13408LC_ALL=C
13409export LC_ALL
13410LANGUAGE=C
13411export LANGUAGE
13412
13413# CDPATH.
13414(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13415
13416
13417# as_fn_error ERROR [LINENO LOG_FD]
13418# ---------------------------------
13419# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13420# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13421# script with status $?, using 1 if that was 0.
13422as_fn_error ()
13423{
13424 as_status=$?; test $as_status -eq 0 && as_status=1
13425 if test "$3"; then
13426 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13427 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
42ecbf5e 13428 fi
81ecdfbb
RW
13429 $as_echo "$as_me: error: $1" >&2
13430 as_fn_exit $as_status
13431} # as_fn_error
13432
13433
13434# as_fn_set_status STATUS
13435# -----------------------
13436# Set $? to STATUS, without forking.
13437as_fn_set_status ()
13438{
13439 return $1
13440} # as_fn_set_status
13441
13442# as_fn_exit STATUS
13443# -----------------
13444# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13445as_fn_exit ()
13446{
13447 set +e
13448 as_fn_set_status $1
13449 exit $1
13450} # as_fn_exit
13451
13452# as_fn_unset VAR
13453# ---------------
13454# Portably unset VAR.
13455as_fn_unset ()
13456{
13457 { eval $1=; unset $1;}
13458}
13459as_unset=as_fn_unset
13460# as_fn_append VAR VALUE
13461# ----------------------
13462# Append the text in VALUE to the end of the definition contained in VAR. Take
13463# advantage of any shell optimizations that allow amortized linear growth over
13464# repeated appends, instead of the typical quadratic growth present in naive
13465# implementations.
13466if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13467 eval 'as_fn_append ()
13468 {
13469 eval $1+=\$2
13470 }'
13471else
13472 as_fn_append ()
13473 {
13474 eval $1=\$$1\$2
13475 }
13476fi # as_fn_append
13477
13478# as_fn_arith ARG...
13479# ------------------
13480# Perform arithmetic evaluation on the ARGs, and store the result in the
13481# global $as_val. Take advantage of shells that can avoid forks. The arguments
13482# must be portable across $(()) and expr.
13483if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13484 eval 'as_fn_arith ()
13485 {
13486 as_val=$(( $* ))
13487 }'
13488else
13489 as_fn_arith ()
13490 {
13491 as_val=`expr "$@" || test $? -eq 1`
13492 }
13493fi # as_fn_arith
13494
42ecbf5e 13495
81ecdfbb
RW
13496if expr a : '\(a\)' >/dev/null 2>&1 &&
13497 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
13498 as_expr=expr
13499else
13500 as_expr=false
13501fi
13502
81ecdfbb 13503if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
13504 as_basename=basename
13505else
13506 as_basename=false
13507fi
13508
81ecdfbb
RW
13509if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13510 as_dirname=dirname
13511else
13512 as_dirname=false
13513fi
42ecbf5e 13514
81ecdfbb 13515as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
13516$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13517 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
13518 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13519$as_echo X/"$0" |
13520 sed '/^.*\/\([^/][^/]*\)\/*$/{
13521 s//\1/
13522 q
13523 }
13524 /^X\/\(\/\/\)$/{
13525 s//\1/
13526 q
13527 }
13528 /^X\/\(\/\).*/{
13529 s//\1/
13530 q
13531 }
13532 s/.*/./; q'`
42ecbf5e 13533
42ecbf5e
DJ
13534# Avoid depending upon Character Ranges.
13535as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13536as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13537as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13538as_cr_digits='0123456789'
13539as_cr_alnum=$as_cr_Letters$as_cr_digits
13540
81ecdfbb
RW
13541ECHO_C= ECHO_N= ECHO_T=
13542case `echo -n x` in #(((((
13543-n*)
13544 case `echo 'xy\c'` in
13545 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13546 xy) ECHO_C='\c';;
13547 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13548 ECHO_T=' ';;
13549 esac;;
13550*)
13551 ECHO_N='-n';;
42ecbf5e 13552esac
252b5132 13553
81ecdfbb
RW
13554rm -f conf$$ conf$$.exe conf$$.file
13555if test -d conf$$.dir; then
13556 rm -f conf$$.dir/conf$$.file
42ecbf5e 13557else
81ecdfbb
RW
13558 rm -f conf$$.dir
13559 mkdir conf$$.dir 2>/dev/null
42ecbf5e 13560fi
81ecdfbb
RW
13561if (echo >conf$$.file) 2>/dev/null; then
13562 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 13563 as_ln_s='ln -s'
81ecdfbb
RW
13564 # ... but there are two gotchas:
13565 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13566 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13567 # In both cases, we have to default to `cp -p'.
13568 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13569 as_ln_s='cp -p'
13570 elif ln conf$$.file conf$$ 2>/dev/null; then
13571 as_ln_s=ln
13572 else
13573 as_ln_s='cp -p'
252b5132 13574 fi
e5a52504 13575else
42ecbf5e 13576 as_ln_s='cp -p'
e5a52504 13577fi
81ecdfbb
RW
13578rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13579rmdir conf$$.dir 2>/dev/null
13580
13581
13582# as_fn_mkdir_p
13583# -------------
13584# Create "$as_dir" as a directory, including parents if necessary.
13585as_fn_mkdir_p ()
13586{
13587
13588 case $as_dir in #(
13589 -*) as_dir=./$as_dir;;
13590 esac
13591 test -d "$as_dir" || eval $as_mkdir_p || {
13592 as_dirs=
13593 while :; do
13594 case $as_dir in #(
13595 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13596 *) as_qdir=$as_dir;;
13597 esac
13598 as_dirs="'$as_qdir' $as_dirs"
13599 as_dir=`$as_dirname -- "$as_dir" ||
13600$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13601 X"$as_dir" : 'X\(//\)[^/]' \| \
13602 X"$as_dir" : 'X\(//\)$' \| \
13603 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13604$as_echo X"$as_dir" |
13605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13606 s//\1/
13607 q
13608 }
13609 /^X\(\/\/\)[^/].*/{
13610 s//\1/
13611 q
13612 }
13613 /^X\(\/\/\)$/{
13614 s//\1/
13615 q
13616 }
13617 /^X\(\/\).*/{
13618 s//\1/
13619 q
13620 }
13621 s/.*/./; q'`
13622 test -d "$as_dir" && break
13623 done
13624 test -z "$as_dirs" || eval "mkdir $as_dirs"
13625 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13626
252b5132 13627
81ecdfbb 13628} # as_fn_mkdir_p
42ecbf5e 13629if mkdir -p . 2>/dev/null; then
81ecdfbb 13630 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
13631else
13632 test -d ./-p && rmdir ./-p
13633 as_mkdir_p=false
13634fi
252b5132 13635
81ecdfbb
RW
13636if test -x / >/dev/null 2>&1; then
13637 as_test_x='test -x'
13638else
13639 if ls -dL / >/dev/null 2>&1; then
13640 as_ls_L_option=L
13641 else
13642 as_ls_L_option=
13643 fi
13644 as_test_x='
13645 eval sh -c '\''
13646 if test -d "$1"; then
13647 test -d "$1/.";
13648 else
13649 case $1 in #(
13650 -*)set "./$1";;
13651 esac;
13652 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13653 ???[sx]*):;;*)false;;esac;fi
13654 '\'' sh
13655 '
13656fi
13657as_executable_p=$as_test_x
252b5132 13658
42ecbf5e
DJ
13659# Sed expression to map a string onto a valid CPP name.
13660as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 13661
42ecbf5e
DJ
13662# Sed expression to map a string onto a valid variable name.
13663as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 13664
e5a52504 13665
42ecbf5e 13666exec 6>&1
81ecdfbb
RW
13667## ----------------------------------- ##
13668## Main body of $CONFIG_STATUS script. ##
13669## ----------------------------------- ##
13670_ASEOF
13671test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
e5a52504 13672
81ecdfbb
RW
13673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13674# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 13675# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
13676# values after options handling.
13677ac_log="
42ecbf5e 13678This file was extended by $as_me, which was
81ecdfbb 13679generated by GNU Autoconf 2.64. Invocation command line was
42ecbf5e
DJ
13680
13681 CONFIG_FILES = $CONFIG_FILES
13682 CONFIG_HEADERS = $CONFIG_HEADERS
13683 CONFIG_LINKS = $CONFIG_LINKS
13684 CONFIG_COMMANDS = $CONFIG_COMMANDS
13685 $ $0 $@
e5a52504 13686
81ecdfbb
RW
13687on `(hostname || uname -n) 2>/dev/null | sed 1q`
13688"
13689
42ecbf5e
DJ
13690_ACEOF
13691
81ecdfbb
RW
13692case $ac_config_files in *"
13693"*) set x $ac_config_files; shift; ac_config_files=$*;;
13694esac
e5a52504 13695
81ecdfbb
RW
13696case $ac_config_headers in *"
13697"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13698esac
42ecbf5e 13699
42ecbf5e 13700
81ecdfbb
RW
13701cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13702# Files that config.status was made for.
13703config_files="$ac_config_files"
13704config_headers="$ac_config_headers"
13705config_commands="$ac_config_commands"
42ecbf5e 13706
81ecdfbb 13707_ACEOF
42ecbf5e 13708
81ecdfbb 13709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 13710ac_cs_usage="\
81ecdfbb
RW
13711\`$as_me' instantiates files and other configuration actions
13712from templates according to the current configuration. Unless the files
13713and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 13714
81ecdfbb 13715Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
13716
13717 -h, --help print this help, then exit
81ecdfbb
RW
13718 -V, --version print version number and configuration settings, then exit
13719 -q, --quiet, --silent
13720 do not print progress messages
42ecbf5e
DJ
13721 -d, --debug don't remove temporary files
13722 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
13723 --file=FILE[:TEMPLATE]
13724 instantiate the configuration file FILE
13725 --header=FILE[:TEMPLATE]
13726 instantiate the configuration header FILE
42ecbf5e
DJ
13727
13728Configuration files:
13729$config_files
13730
13731Configuration headers:
13732$config_headers
13733
13734Configuration commands:
13735$config_commands
13736
81ecdfbb 13737Report bugs to the package provider."
42ecbf5e 13738
81ecdfbb
RW
13739_ACEOF
13740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e
DJ
13741ac_cs_version="\\
13742config.status
81ecdfbb
RW
13743configured by $0, generated by GNU Autoconf 2.64,
13744 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42ecbf5e 13745
81ecdfbb 13746Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
13747This config.status script is free software; the Free Software Foundation
13748gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
13749
13750ac_pwd='$ac_pwd'
13751srcdir='$srcdir'
13752INSTALL='$INSTALL'
13753MKDIR_P='$MKDIR_P'
13754AWK='$AWK'
13755test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
13756_ACEOF
13757
81ecdfbb
RW
13758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13759# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
13760ac_need_defaults=:
13761while test $# != 0
13762do
13763 case $1 in
13764 --*=*)
81ecdfbb
RW
13765 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13766 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e 13767 ac_shift=:
252b5132 13768 ;;
81ecdfbb 13769 *)
42ecbf5e
DJ
13770 ac_option=$1
13771 ac_optarg=$2
13772 ac_shift=shift
252b5132 13773 ;;
42ecbf5e 13774 esac
252b5132 13775
42ecbf5e
DJ
13776 case $ac_option in
13777 # Handling of the options.
42ecbf5e
DJ
13778 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13779 ac_cs_recheck=: ;;
81ecdfbb
RW
13780 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13781 $as_echo "$ac_cs_version"; exit ;;
13782 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
13783 debug=: ;;
13784 --file | --fil | --fi | --f )
13785 $ac_shift
81ecdfbb
RW
13786 case $ac_optarg in
13787 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13788 esac
13789 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
13790 ac_need_defaults=false;;
13791 --header | --heade | --head | --hea )
13792 $ac_shift
81ecdfbb
RW
13793 case $ac_optarg in
13794 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13795 esac
13796 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 13797 ac_need_defaults=false;;
81ecdfbb
RW
13798 --he | --h)
13799 # Conflict between --help and --header
13800 as_fn_error "ambiguous option: \`$1'
13801Try \`$0 --help' for more information.";;
13802 --help | --hel | -h )
13803 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
13804 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13805 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13806 ac_cs_silent=: ;;
252b5132 13807
42ecbf5e 13808 # This is an error.
81ecdfbb
RW
13809 -*) as_fn_error "unrecognized option: \`$1'
13810Try \`$0 --help' for more information." ;;
252b5132 13811
81ecdfbb
RW
13812 *) as_fn_append ac_config_targets " $1"
13813 ac_need_defaults=false ;;
252b5132 13814
42ecbf5e
DJ
13815 esac
13816 shift
13817done
d15b04bd 13818
42ecbf5e 13819ac_configure_extra_args=
e5a52504 13820
42ecbf5e
DJ
13821if $ac_cs_silent; then
13822 exec 6>/dev/null
13823 ac_configure_extra_args="$ac_configure_extra_args --silent"
13824fi
e5a52504 13825
42ecbf5e 13826_ACEOF
81ecdfbb 13827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 13828if \$ac_cs_recheck; then
81ecdfbb
RW
13829 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13830 shift
13831 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13832 CONFIG_SHELL='$SHELL'
13833 export CONFIG_SHELL
13834 exec "\$@"
42ecbf5e
DJ
13835fi
13836
13837_ACEOF
81ecdfbb
RW
13838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13839exec 5>>config.log
13840{
13841 echo
13842 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13843## Running $as_me. ##
13844_ASBOX
13845 $as_echo "$ac_log"
13846} >&5
42ecbf5e 13847
81ecdfbb
RW
13848_ACEOF
13849cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 13850#
81ecdfbb 13851# INIT-COMMANDS
252b5132 13852#
42ecbf5e 13853AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
13854
13855
13856# The HP-UX ksh and POSIX shell print the target directory to stdout
13857# if CDPATH is set.
13858(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13859
13860sed_quote_subst='$sed_quote_subst'
13861double_quote_subst='$double_quote_subst'
13862delay_variable_subst='$delay_variable_subst'
3725885a
RW
13863macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13864macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13865enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13866enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13867pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13868enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13869SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13870ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13871host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13872host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13873host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13874build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13875build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13876build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13877SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13878Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13879GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13880EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13881FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13882LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13883NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13884LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13885max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13886ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13887exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13888lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13889lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13890lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13891reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13892reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13893OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13894deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13895file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13896AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13897AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13898STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13899RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13900old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13901old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13902old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13903lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13904CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13905CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13906compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13907GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13908lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13909lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13910lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13911lt_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"`'
13912objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13913MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13914lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13915lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13916lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13917lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13918lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13919need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13920DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13921NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13922LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13923OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13924OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13925libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13926shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13927extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13928archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13929enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13930export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13931whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13932compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13933old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13934old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13935archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13936archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13937module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13938module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13939with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13940allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13941no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13942hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13943hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13944hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13945hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13946hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13947hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13948hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13949hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13950inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13951link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13952fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13953always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13954export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13955exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13956include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13957prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13958file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13959variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13960need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13961need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13962version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13963runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13964shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13965shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13966libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13967library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13968soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13969install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13970postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13971postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13972finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13973finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13974hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13975sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13976sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13977hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13978enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13979enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13980enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13981old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13982striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
13983
13984LTCC='$LTCC'
13985LTCFLAGS='$LTCFLAGS'
13986compiler='$compiler_DEFAULT'
13987
3725885a
RW
13988# A function that is used when there is no print builtin or printf.
13989func_fallback_echo ()
13990{
13991 eval 'cat <<_LTECHO_EOF
13992\$1
13993_LTECHO_EOF'
13994}
13995
d7040cdb 13996# Quote evaled strings.
3725885a
RW
13997for var in SHELL \
13998ECHO \
13999SED \
d7040cdb
SE
14000GREP \
14001EGREP \
14002FGREP \
14003LD \
14004NM \
14005LN_S \
14006lt_SP2NL \
14007lt_NL2SP \
14008reload_flag \
b214d478 14009OBJDUMP \
d7040cdb
SE
14010deplibs_check_method \
14011file_magic_cmd \
14012AR \
14013AR_FLAGS \
14014STRIP \
14015RANLIB \
14016CC \
14017CFLAGS \
14018compiler \
14019lt_cv_sys_global_symbol_pipe \
14020lt_cv_sys_global_symbol_to_cdecl \
14021lt_cv_sys_global_symbol_to_c_name_address \
b214d478 14022lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
14023lt_prog_compiler_no_builtin_flag \
14024lt_prog_compiler_wl \
14025lt_prog_compiler_pic \
14026lt_prog_compiler_static \
14027lt_cv_prog_compiler_c_o \
14028need_locks \
b214d478
SE
14029DSYMUTIL \
14030NMEDIT \
14031LIPO \
14032OTOOL \
14033OTOOL64 \
d7040cdb
SE
14034shrext_cmds \
14035export_dynamic_flag_spec \
14036whole_archive_flag_spec \
14037compiler_needs_object \
14038with_gnu_ld \
14039allow_undefined_flag \
14040no_undefined_flag \
14041hardcode_libdir_flag_spec \
14042hardcode_libdir_flag_spec_ld \
14043hardcode_libdir_separator \
14044fix_srcfile_path \
14045exclude_expsyms \
14046include_expsyms \
14047file_list_spec \
14048variables_saved_for_relink \
14049libname_spec \
14050library_names_spec \
14051soname_spec \
3725885a 14052install_override_mode \
d7040cdb
SE
14053finish_eval \
14054old_striplib \
14055striplib; do
3725885a 14056 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 14057 *[\\\\\\\`\\"\\\$]*)
3725885a 14058 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
14059 ;;
14060 *)
14061 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14062 ;;
14063 esac
14064done
14065
14066# Double-quote double-evaled strings.
14067for var in reload_cmds \
14068old_postinstall_cmds \
14069old_postuninstall_cmds \
14070old_archive_cmds \
14071extract_expsyms_cmds \
14072old_archive_from_new_cmds \
14073old_archive_from_expsyms_cmds \
14074archive_cmds \
14075archive_expsym_cmds \
14076module_cmds \
14077module_expsym_cmds \
14078export_symbols_cmds \
14079prelink_cmds \
14080postinstall_cmds \
14081postuninstall_cmds \
14082finish_cmds \
14083sys_lib_search_path_spec \
14084sys_lib_dlsearch_path_spec; do
3725885a 14085 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 14086 *[\\\\\\\`\\"\\\$]*)
3725885a 14087 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
14088 ;;
14089 *)
14090 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14091 ;;
14092 esac
14093done
14094
d7040cdb
SE
14095ac_aux_dir='$ac_aux_dir'
14096xsi_shell='$xsi_shell'
14097lt_shell_append='$lt_shell_append'
14098
14099# See if we are running on zsh, and set the options which allow our
14100# commands through without removal of \ escapes INIT.
14101if test -n "\${ZSH_VERSION+set}" ; then
14102 setopt NO_GLOB_SUBST
14103fi
14104
14105
14106 PACKAGE='$PACKAGE'
14107 VERSION='$VERSION'
14108 TIMESTAMP='$TIMESTAMP'
14109 RM='$RM'
14110 ofile='$ofile'
14111
14112
14113
20e95c23
DJ
14114# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14115 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14116 # from automake.
14117 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14118 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14119 LINGUAS="${LINGUAS-%UNSET%}"
14120
42ecbf5e
DJ
14121
14122_ACEOF
14123
81ecdfbb 14124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 14125
81ecdfbb 14126# Handling of arguments.
42ecbf5e 14127for ac_config_target in $ac_config_targets
252b5132 14128do
81ecdfbb
RW
14129 case $ac_config_target in
14130 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14131 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14132 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14133 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14134 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14135 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14136
14137 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
14138 esac
14139done
14140
81ecdfbb 14141
42ecbf5e
DJ
14142# If the user did not use the arguments to specify the items to instantiate,
14143# then the envvar interface is used. Set only those that are not.
14144# We use the long form for the default assignment because of an extremely
14145# bizarre bug on SunOS 4.1.3.
14146if $ac_need_defaults; then
14147 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14148 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14149 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14150fi
14151
14152# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14153# simply because there is no reason against having it here, and in addition,
42ecbf5e 14154# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14155# Hook for its removal unless debugging.
14156# Note that there is a small window in which the directory will not be cleaned:
14157# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
14158$debug ||
14159{
81ecdfbb
RW
14160 tmp=
14161 trap 'exit_status=$?
14162 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14163' 0
14164 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 14165}
42ecbf5e 14166# Create a (secure) tmp directory for tmp files.
e5a52504 14167
42ecbf5e 14168{
81ecdfbb 14169 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42ecbf5e
DJ
14170 test -n "$tmp" && test -d "$tmp"
14171} ||
14172{
81ecdfbb
RW
14173 tmp=./conf$$-$RANDOM
14174 (umask 077 && mkdir "$tmp")
14175} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14176
14177# Set up the scripts for CONFIG_FILES section.
14178# No need to generate them if there are no CONFIG_FILES.
14179# This happens for instance with `./config.status config.h'.
14180if test -n "$CONFIG_FILES"; then
14181
14182if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14183 ac_cs_awk_getline=:
14184 ac_cs_awk_pipe_init=
14185 ac_cs_awk_read_file='
14186 while ((getline aline < (F[key])) > 0)
14187 print(aline)
14188 close(F[key])'
14189 ac_cs_awk_pipe_fini=
14190else
14191 ac_cs_awk_getline=false
14192 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14193 ac_cs_awk_read_file='
14194 print "|#_!!_#|"
14195 print "cat " F[key] " &&"
14196 '$ac_cs_awk_pipe_init
14197 # The final `:' finishes the AND list.
14198 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14199fi
14200ac_cr=`echo X | tr X '\015'`
14201# On cygwin, bash can eat \r inside `` if the user requested igncr.
14202# But we know of no other shell where ac_cr would be empty at this
14203# point, so we can use a bashism as a fallback.
14204if test "x$ac_cr" = x; then
14205 eval ac_cr=\$\'\\r\'
14206fi
14207ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14208if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14209 ac_cs_awk_cr='\r'
14210else
14211 ac_cs_awk_cr=$ac_cr
14212fi
14213
14214echo 'BEGIN {' >"$tmp/subs1.awk" &&
14215_ACEOF
14216
14217# Create commands to substitute file output variables.
42ecbf5e 14218{
81ecdfbb
RW
14219 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14220 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14221 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14222 echo "_ACAWK" &&
14223 echo "_ACEOF"
14224} >conf$$files.sh &&
14225. ./conf$$files.sh ||
14226 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14227rm -f conf$$files.sh
e5a52504 14228
81ecdfbb
RW
14229{
14230 echo "cat >conf$$subs.awk <<_ACEOF" &&
14231 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14232 echo "_ACEOF"
14233} >conf$$subs.sh ||
14234 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14235ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14236ac_delim='%!_!# '
14237for ac_last_try in false false false false false :; do
14238 . ./conf$$subs.sh ||
14239 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14240
14241 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14242 if test $ac_delim_n = $ac_delim_num; then
14243 break
14244 elif $ac_last_try; then
14245 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14246 else
14247 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14248 fi
14249done
14250rm -f conf$$subs.sh
14251
14252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14253cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14254_ACEOF
14255sed -n '
14256h
14257s/^/S["/; s/!.*/"]=/
14258p
14259g
14260s/^[^!]*!//
14261:repl
14262t repl
14263s/'"$ac_delim"'$//
14264t delim
14265:nl
14266h
14267s/\(.\{148\}\).*/\1/
14268t more1
14269s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14270p
14271n
14272b repl
14273:more1
14274s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14275p
14276g
14277s/.\{148\}//
14278t nl
14279:delim
14280h
14281s/\(.\{148\}\).*/\1/
14282t more2
14283s/["\\]/\\&/g; s/^/"/; s/$/"/
14284p
14285b
14286:more2
14287s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14288p
14289g
14290s/.\{148\}//
14291t delim
14292' <conf$$subs.awk | sed '
14293/^[^""]/{
14294 N
14295 s/\n//
14296}
14297' >>$CONFIG_STATUS || ac_write_fail=1
14298rm -f conf$$subs.awk
14299cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14300_ACAWK
14301cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14302 for (key in S) S_is_set[key] = 1
14303 FS = "\a"
14304 \$ac_cs_awk_pipe_init
14305}
14306{
14307 line = $ 0
14308 nfields = split(line, field, "@")
14309 substed = 0
14310 len = length(field[1])
14311 for (i = 2; i < nfields; i++) {
14312 key = field[i]
14313 keylen = length(key)
14314 if (S_is_set[key]) {
14315 value = S[key]
14316 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14317 len += length(value) + length(field[++i])
14318 substed = 1
14319 } else
14320 len += 1 + keylen
14321 }
14322 if (nfields == 3 && !substed) {
14323 key = field[2]
14324 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14325 \$ac_cs_awk_read_file
14326 next
14327 }
14328 }
14329 print line
14330}
14331\$ac_cs_awk_pipe_fini
14332_ACAWK
14333_ACEOF
14334cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14335if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14336 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14337else
14338 cat
14339fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14340 || as_fn_error "could not setup config files machinery" "$LINENO" 5
42ecbf5e 14341_ACEOF
d15b04bd 14342
81ecdfbb
RW
14343# VPATH may cause trouble with some makes, so we remove $(srcdir),
14344# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14345# trailing colons and then remove the whole line if VPATH becomes empty
14346# (actually we leave an empty line to preserve line numbers).
14347if test "x$srcdir" = x.; then
14348 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14349s/:*\$(srcdir):*/:/
14350s/:*\${srcdir}:*/:/
14351s/:*@srcdir@:*/:/
14352s/^\([^=]*=[ ]*\):*/\1/
14353s/:*$//
14354s/^[^=]*=[ ]*$//
14355}'
14356fi
14357
14358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14359fi # test -n "$CONFIG_FILES"
42ecbf5e 14360
81ecdfbb
RW
14361# Set up the scripts for CONFIG_HEADERS section.
14362# No need to generate them if there are no CONFIG_HEADERS.
14363# This happens for instance with `./config.status Makefile'.
14364if test -n "$CONFIG_HEADERS"; then
14365cat >"$tmp/defines.awk" <<\_ACAWK ||
14366BEGIN {
14367_ACEOF
42ecbf5e 14368
81ecdfbb
RW
14369# Transform confdefs.h into an awk script `defines.awk', embedded as
14370# here-document in config.status, that substitutes the proper values into
14371# config.h.in to produce config.h.
252b5132 14372
81ecdfbb
RW
14373# Create a delimiter string that does not exist in confdefs.h, to ease
14374# handling of long lines.
14375ac_delim='%!_!# '
14376for ac_last_try in false false :; do
14377 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14378 if test -z "$ac_t"; then
14379 break
14380 elif $ac_last_try; then
14381 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14382 else
14383 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14384 fi
14385done
14386
14387# For the awk script, D is an array of macro values keyed by name,
14388# likewise P contains macro parameters if any. Preserve backslash
14389# newline sequences.
14390
14391ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14392sed -n '
14393s/.\{148\}/&'"$ac_delim"'/g
14394t rset
14395:rset
14396s/^[ ]*#[ ]*define[ ][ ]*/ /
14397t def
14398d
14399:def
14400s/\\$//
14401t bsnl
14402s/["\\]/\\&/g
14403s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14404D["\1"]=" \3"/p
14405s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14406d
14407:bsnl
14408s/["\\]/\\&/g
14409s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14410D["\1"]=" \3\\\\\\n"\\/p
14411t cont
14412s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14413t cont
14414d
14415:cont
14416n
14417s/.\{148\}/&'"$ac_delim"'/g
14418t clear
14419:clear
14420s/\\$//
14421t bsnlc
14422s/["\\]/\\&/g; s/^/"/; s/$/"/p
14423d
14424:bsnlc
14425s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14426b cont
14427' <confdefs.h | sed '
14428s/'"$ac_delim"'/"\\\
14429"/g' >>$CONFIG_STATUS || ac_write_fail=1
14430
14431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14432 for (key in D) D_is_set[key] = 1
14433 FS = "\a"
14434}
14435/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14436 line = \$ 0
14437 split(line, arg, " ")
14438 if (arg[1] == "#") {
14439 defundef = arg[2]
14440 mac1 = arg[3]
14441 } else {
14442 defundef = substr(arg[1], 2)
14443 mac1 = arg[2]
14444 }
14445 split(mac1, mac2, "(") #)
14446 macro = mac2[1]
14447 prefix = substr(line, 1, index(line, defundef) - 1)
14448 if (D_is_set[macro]) {
14449 # Preserve the white space surrounding the "#".
14450 print prefix "define", macro P[macro] D[macro]
14451 next
14452 } else {
14453 # Replace #undef with comments. This is necessary, for example,
14454 # in the case of _POSIX_SOURCE, which is predefined and required
14455 # on some systems where configure will not decide to define it.
14456 if (defundef == "undef") {
14457 print "/*", prefix defundef, macro, "*/"
14458 next
14459 }
14460 }
14461}
14462{ print }
14463_ACAWK
42ecbf5e 14464_ACEOF
81ecdfbb
RW
14465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14466 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14467fi # test -n "$CONFIG_HEADERS"
42ecbf5e 14468
81ecdfbb
RW
14469
14470eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14471shift
14472for ac_tag
14473do
14474 case $ac_tag in
14475 :[FHLC]) ac_mode=$ac_tag; continue;;
14476 esac
14477 case $ac_mode$ac_tag in
14478 :[FHL]*:*);;
14479 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14480 :[FH]-) ac_tag=-:-;;
14481 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14482 esac
14483 ac_save_IFS=$IFS
14484 IFS=:
14485 set x $ac_tag
14486 IFS=$ac_save_IFS
14487 shift
14488 ac_file=$1
14489 shift
14490
14491 case $ac_mode in
14492 :L) ac_source=$1;;
14493 :[FH])
14494 ac_file_inputs=
14495 for ac_f
14496 do
14497 case $ac_f in
14498 -) ac_f="$tmp/stdin";;
14499 *) # Look for the file first in the build tree, then in the source tree
14500 # (if the path is not absolute). The absolute path cannot be DOS-style,
14501 # because $ac_f cannot contain `:'.
14502 test -f "$ac_f" ||
14503 case $ac_f in
14504 [\\/$]*) false;;
14505 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14506 esac ||
14507 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14508 esac
14509 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14510 as_fn_append ac_file_inputs " '$ac_f'"
14511 done
14512
14513 # Let's still pretend it is `configure' which instantiates (i.e., don't
14514 # use $as_me), people would be surprised to read:
14515 # /* config.h. Generated by config.status. */
14516 configure_input='Generated from '`
14517 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14518 `' by configure.'
14519 if test x"$ac_file" != x-; then
14520 configure_input="$ac_file. $configure_input"
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14522$as_echo "$as_me: creating $ac_file" >&6;}
252b5132 14523 fi
81ecdfbb
RW
14524 # Neutralize special characters interpreted by sed in replacement strings.
14525 case $configure_input in #(
14526 *\&* | *\|* | *\\* )
14527 ac_sed_conf_input=`$as_echo "$configure_input" |
14528 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14529 *) ac_sed_conf_input=$configure_input;;
14530 esac
252b5132 14531
81ecdfbb
RW
14532 case $ac_tag in
14533 *:-:* | *:-) cat >"$tmp/stdin" \
14534 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14535 esac
14536 ;;
252b5132
RH
14537 esac
14538
81ecdfbb 14539 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
14540$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14541 X"$ac_file" : 'X\(//\)[^/]' \| \
14542 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
14543 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14544$as_echo X"$ac_file" |
14545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14546 s//\1/
14547 q
14548 }
14549 /^X\(\/\/\)[^/].*/{
14550 s//\1/
14551 q
14552 }
14553 /^X\(\/\/\)$/{
14554 s//\1/
14555 q
14556 }
14557 /^X\(\/\).*/{
14558 s//\1/
14559 q
14560 }
14561 s/.*/./; q'`
14562 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e
DJ
14563 ac_builddir=.
14564
81ecdfbb
RW
14565case "$ac_dir" in
14566.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14567*)
14568 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14569 # A ".." for each directory in $ac_dir_suffix.
14570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14571 case $ac_top_builddir_sub in
14572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14574 esac ;;
14575esac
14576ac_abs_top_builddir=$ac_pwd
14577ac_abs_builddir=$ac_pwd$ac_dir_suffix
14578# for backward compatibility:
14579ac_top_builddir=$ac_top_build_prefix
252b5132 14580
42ecbf5e 14581case $srcdir in
81ecdfbb 14582 .) # We are building in place.
42ecbf5e 14583 ac_srcdir=.
81ecdfbb
RW
14584 ac_top_srcdir=$ac_top_builddir_sub
14585 ac_abs_top_srcdir=$ac_pwd ;;
14586 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 14587 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
14588 ac_top_srcdir=$srcdir
14589 ac_abs_top_srcdir=$srcdir ;;
14590 *) # Relative name.
14591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14592 ac_top_srcdir=$ac_top_build_prefix$srcdir
14593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 14594esac
81ecdfbb 14595ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42ecbf5e 14596
252b5132 14597
81ecdfbb
RW
14598 case $ac_mode in
14599 :F)
14600 #
14601 # CONFIG_FILE
14602 #
e5a52504 14603
42ecbf5e
DJ
14604 case $INSTALL in
14605 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
14606 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14607 esac
14608 ac_MKDIR_P=$MKDIR_P
14609 case $MKDIR_P in
14610 [\\/$]* | ?:[\\/]* ) ;;
14611 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 14612 esac
81ecdfbb 14613_ACEOF
e5a52504 14614
81ecdfbb
RW
14615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14616# If the template does not know about datarootdir, expand it.
14617# FIXME: This hack should be removed a few years after 2.60.
14618ac_datarootdir_hack=; ac_datarootdir_seen=
14619ac_sed_dataroot='
14620/datarootdir/ {
14621 p
14622 q
14623}
14624/@datadir@/p
14625/@docdir@/p
14626/@infodir@/p
14627/@localedir@/p
14628/@mandir@/p'
14629case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14630*datarootdir*) ac_datarootdir_seen=yes;;
14631*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14633$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14634_ACEOF
14635cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14636 ac_datarootdir_hack='
14637 s&@datadir@&$datadir&g
14638 s&@docdir@&$docdir&g
14639 s&@infodir@&$infodir&g
14640 s&@localedir@&$localedir&g
14641 s&@mandir@&$mandir&g
14642 s&\\\${datarootdir}&$datarootdir&g' ;;
14643esac
42ecbf5e 14644_ACEOF
81ecdfbb
RW
14645
14646# Neutralize VPATH when `$srcdir' = `.'.
14647# Shell code in configure.ac might set extrasub.
14648# FIXME: do we really want to maintain this feature?
14649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14650ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
14651$extrasub
14652_ACEOF
81ecdfbb 14653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
14654:t
14655/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
14656s|@configure_input@|$ac_sed_conf_input|;t t
14657s&@top_builddir@&$ac_top_builddir_sub&;t t
14658s&@top_build_prefix@&$ac_top_build_prefix&;t t
14659s&@srcdir@&$ac_srcdir&;t t
14660s&@abs_srcdir@&$ac_abs_srcdir&;t t
14661s&@top_srcdir@&$ac_top_srcdir&;t t
14662s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14663s&@builddir@&$ac_builddir&;t t
14664s&@abs_builddir@&$ac_abs_builddir&;t t
14665s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14666s&@INSTALL@&$ac_INSTALL&;t t
14667s&@MKDIR_P@&$ac_MKDIR_P&;t t
14668$ac_datarootdir_hack
14669"
14670eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14671if $ac_cs_awk_getline; then
14672 $AWK -f "$tmp/subs.awk"
14673else
14674 $AWK -f "$tmp/subs.awk" | $SHELL
14675fi >$tmp/out \
14676 || as_fn_error "could not create $ac_file" "$LINENO" 5
14677
14678test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14679 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14680 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14682which seems to be undefined. Please make sure it is defined." >&5
14683$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14684which seems to be undefined. Please make sure it is defined." >&2;}
14685
14686 rm -f "$tmp/stdin"
42ecbf5e 14687 case $ac_file in
81ecdfbb
RW
14688 -) cat "$tmp/out" && rm -f "$tmp/out";;
14689 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14690 esac \
14691 || as_fn_error "could not create $ac_file" "$LINENO" 5
14692 ;;
14693 :H)
14694 #
14695 # CONFIG_HEADER
14696 #
42ecbf5e 14697 if test x"$ac_file" != x-; then
81ecdfbb
RW
14698 {
14699 $as_echo "/* $configure_input */" \
14700 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14701 } >"$tmp/config.h" \
14702 || as_fn_error "could not create $ac_file" "$LINENO" 5
14703 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14705$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 14706 else
81ecdfbb
RW
14707 rm -f "$ac_file"
14708 mv "$tmp/config.h" "$ac_file" \
14709 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 14710 fi
42ecbf5e 14711 else
81ecdfbb
RW
14712 $as_echo "/* $configure_input */" \
14713 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14714 || as_fn_error "could not create -" "$LINENO" 5
e5a52504 14715 fi
81ecdfbb
RW
14716# Compute "$ac_file"'s index in $config_headers.
14717_am_arg="$ac_file"
42ecbf5e
DJ
14718_am_stamp_count=1
14719for _am_header in $config_headers :; do
14720 case $_am_header in
81ecdfbb 14721 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
14722 break ;;
14723 * )
14724 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14725 esac
14726done
81ecdfbb
RW
14727echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14728$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14729 X"$_am_arg" : 'X\(//\)[^/]' \| \
14730 X"$_am_arg" : 'X\(//\)$' \| \
14731 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14732$as_echo X"$_am_arg" |
14733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14734 s//\1/
14735 q
14736 }
14737 /^X\(\/\/\)[^/].*/{
14738 s//\1/
14739 q
14740 }
14741 /^X\(\/\/\)$/{
14742 s//\1/
14743 q
14744 }
14745 /^X\(\/\).*/{
14746 s//\1/
14747 q
14748 }
14749 s/.*/./; q'`/stamp-h$_am_stamp_count
14750 ;;
42ecbf5e 14751
81ecdfbb
RW
14752 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14753$as_echo "$as_me: executing $ac_file commands" >&6;}
14754 ;;
14755 esac
42ecbf5e
DJ
14756
14757
81ecdfbb
RW
14758 case $ac_file$ac_mode in
14759 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14760 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14761 # are listed without --file. Let's play safe and only enable the eval
14762 # if we detect the quoting.
14763 case $CONFIG_FILES in
14764 *\'*) eval set x "$CONFIG_FILES" ;;
14765 *) set x $CONFIG_FILES ;;
14766 esac
14767 shift
14768 for mf
14769 do
14770 # Strip MF so we end up with the name of the file.
14771 mf=`echo "$mf" | sed -e 's/:.*$//'`
14772 # Check whether this is an Automake generated Makefile or not.
14773 # We used to match only the files named `Makefile.in', but
14774 # some people rename them; so instead we look at the file content.
14775 # Grep'ing the first line is not enough: some people post-process
14776 # each Makefile.in and add a new line on top of each file to say so.
14777 # Grep'ing the whole file is not good either: AIX grep has a line
14778 # limit of 2048, but all sed's we know have understand at least 4000.
14779 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14780 dirpart=`$as_dirname -- "$mf" ||
42ecbf5e
DJ
14781$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14782 X"$mf" : 'X\(//\)[^/]' \| \
14783 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
14784 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14785$as_echo X"$mf" |
14786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14787 s//\1/
14788 q
14789 }
14790 /^X\(\/\/\)[^/].*/{
14791 s//\1/
14792 q
14793 }
14794 /^X\(\/\/\)$/{
14795 s//\1/
14796 q
14797 }
14798 /^X\(\/\).*/{
14799 s//\1/
14800 q
14801 }
14802 s/.*/./; q'`
14803 else
14804 continue
14805 fi
14806 # Extract the definition of DEPDIR, am__include, and am__quote
14807 # from the Makefile without running `make'.
14808 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14809 test -z "$DEPDIR" && continue
14810 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14811 test -z "am__include" && continue
14812 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14813 # When using ansi2knr, U may be empty or an underscore; expand it
14814 U=`sed -n 's/^U = //p' < "$mf"`
14815 # Find all dependency output files, they are included files with
14816 # $(DEPDIR) in their names. We invoke sed twice because it is the
14817 # simplest approach to changing $(DEPDIR) to its actual value in the
14818 # expansion.
14819 for file in `sed -n "
14820 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14821 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14822 # Make sure the directory exists.
14823 test -f "$dirpart/$file" && continue
14824 fdir=`$as_dirname -- "$file" ||
42ecbf5e
DJ
14825$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14826 X"$file" : 'X\(//\)[^/]' \| \
14827 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
14828 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14829$as_echo X"$file" |
14830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14831 s//\1/
14832 q
14833 }
14834 /^X\(\/\/\)[^/].*/{
14835 s//\1/
14836 q
14837 }
14838 /^X\(\/\/\)$/{
14839 s//\1/
14840 q
14841 }
14842 /^X\(\/\).*/{
14843 s//\1/
14844 q
14845 }
14846 s/.*/./; q'`
14847 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14848 # echo "creating $dirpart/$file"
14849 echo '# dummy' > "$dirpart/$file"
42ecbf5e 14850 done
42ecbf5e 14851 done
81ecdfbb 14852}
d7040cdb 14853 ;;
81ecdfbb 14854 "libtool":C)
d7040cdb
SE
14855
14856 # See if we are running on zsh, and set the options which allow our
14857 # commands through without removal of \ escapes.
14858 if test -n "${ZSH_VERSION+set}" ; then
14859 setopt NO_GLOB_SUBST
14860 fi
14861
14862 cfgfile="${ofile}T"
14863 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14864 $RM "$cfgfile"
14865
14866 cat <<_LT_EOF >> "$cfgfile"
14867#! $SHELL
14868
14869# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 14870# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
14871# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14872# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14873#
b214d478 14874# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 14875# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b214d478 14876# Written by Gordon Matzigkeit, 1996
d7040cdb 14877#
b214d478 14878# This file is part of GNU Libtool.
d7040cdb 14879#
b214d478
SE
14880# GNU Libtool is free software; you can redistribute it and/or
14881# modify it under the terms of the GNU General Public License as
14882# published by the Free Software Foundation; either version 2 of
14883# the License, or (at your option) any later version.
d7040cdb 14884#
b214d478
SE
14885# As a special exception to the GNU General Public License,
14886# if you distribute this file as part of a program or library that
14887# is built using GNU Libtool, you may include this file under the
14888# same distribution terms that you use for the rest of that program.
d7040cdb 14889#
b214d478
SE
14890# GNU Libtool is distributed in the hope that it will be useful,
14891# but WITHOUT ANY WARRANTY; without even the implied warranty of
14892# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14893# GNU General Public License for more details.
d7040cdb 14894#
b214d478
SE
14895# You should have received a copy of the GNU General Public License
14896# along with GNU Libtool; see the file COPYING. If not, a copy
14897# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14898# obtained by writing to the Free Software Foundation, Inc.,
14899# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
14900
14901
14902# The names of the tagged configurations supported by this script.
14903available_tags=""
14904
14905# ### BEGIN LIBTOOL CONFIG
14906
14907# Which release of libtool.m4 was used?
14908macro_version=$macro_version
14909macro_revision=$macro_revision
14910
14911# Whether or not to build shared libraries.
14912build_libtool_libs=$enable_shared
14913
14914# Whether or not to build static libraries.
14915build_old_libs=$enable_static
14916
14917# What type of objects to build.
14918pic_mode=$pic_mode
14919
14920# Whether or not to optimize for fast installation.
14921fast_install=$enable_fast_install
14922
3725885a
RW
14923# Shell to use when invoking shell scripts.
14924SHELL=$lt_SHELL
14925
14926# An echo program that protects backslashes.
14927ECHO=$lt_ECHO
14928
d7040cdb
SE
14929# The host system.
14930host_alias=$host_alias
14931host=$host
14932host_os=$host_os
14933
14934# The build system.
14935build_alias=$build_alias
14936build=$build
14937build_os=$build_os
14938
14939# A sed program that does not truncate output.
14940SED=$lt_SED
14941
14942# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14943Xsed="\$SED -e 1s/^X//"
14944
14945# A grep program that handles long lines.
14946GREP=$lt_GREP
14947
14948# An ERE matcher.
14949EGREP=$lt_EGREP
14950
14951# A literal string matcher.
14952FGREP=$lt_FGREP
14953
14954# A BSD- or MS-compatible name lister.
14955NM=$lt_NM
14956
14957# Whether we need soft or hard links.
14958LN_S=$lt_LN_S
14959
14960# What is the maximum length of a command?
14961max_cmd_len=$max_cmd_len
14962
14963# Object file suffix (normally "o").
14964objext=$ac_objext
14965
14966# Executable file suffix (normally "").
14967exeext=$exeext
14968
14969# whether the shell understands "unset".
14970lt_unset=$lt_unset
14971
14972# turn spaces into newlines.
14973SP2NL=$lt_lt_SP2NL
14974
14975# turn newlines into spaces.
14976NL2SP=$lt_lt_NL2SP
14977
b214d478
SE
14978# An object symbol dumper.
14979OBJDUMP=$lt_OBJDUMP
14980
d7040cdb
SE
14981# Method to check whether dependent libraries are shared objects.
14982deplibs_check_method=$lt_deplibs_check_method
14983
14984# Command to use when deplibs_check_method == "file_magic".
14985file_magic_cmd=$lt_file_magic_cmd
14986
14987# The archiver.
14988AR=$lt_AR
14989AR_FLAGS=$lt_AR_FLAGS
14990
14991# A symbol stripping program.
14992STRIP=$lt_STRIP
14993
14994# Commands used to install an old-style archive.
14995RANLIB=$lt_RANLIB
14996old_postinstall_cmds=$lt_old_postinstall_cmds
14997old_postuninstall_cmds=$lt_old_postuninstall_cmds
14998
3725885a
RW
14999# Whether to use a lock for old archive extraction.
15000lock_old_archive_extraction=$lock_old_archive_extraction
15001
d7040cdb
SE
15002# A C compiler.
15003LTCC=$lt_CC
15004
15005# LTCC compiler flags.
15006LTCFLAGS=$lt_CFLAGS
15007
15008# Take the output of nm and produce a listing of raw symbols and C names.
15009global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15010
15011# Transform the output of nm in a proper C declaration.
15012global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15013
15014# Transform the output of nm in a C name address pair.
15015global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15016
b214d478
SE
15017# Transform the output of nm in a C name address pair when lib prefix is needed.
15018global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15019
d7040cdb
SE
15020# The name of the directory that contains temporary libtool files.
15021objdir=$objdir
15022
d7040cdb
SE
15023# Used to examine libraries when file_magic_cmd begins with "file".
15024MAGIC_CMD=$MAGIC_CMD
15025
15026# Must we lock files when doing compilation?
15027need_locks=$lt_need_locks
15028
b214d478
SE
15029# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15030DSYMUTIL=$lt_DSYMUTIL
15031
15032# Tool to change global to local symbols on Mac OS X.
15033NMEDIT=$lt_NMEDIT
15034
15035# Tool to manipulate fat objects and archives on Mac OS X.
15036LIPO=$lt_LIPO
15037
15038# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15039OTOOL=$lt_OTOOL
15040
15041# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15042OTOOL64=$lt_OTOOL64
15043
d7040cdb
SE
15044# Old archive suffix (normally "a").
15045libext=$libext
15046
15047# Shared library suffix (normally ".so").
15048shrext_cmds=$lt_shrext_cmds
15049
15050# The commands to extract the exported symbol list from a shared archive.
15051extract_expsyms_cmds=$lt_extract_expsyms_cmds
15052
15053# Variables whose values should be saved in libtool wrapper scripts and
15054# restored at link time.
15055variables_saved_for_relink=$lt_variables_saved_for_relink
15056
15057# Do we need the "lib" prefix for modules?
15058need_lib_prefix=$need_lib_prefix
15059
15060# Do we need a version for libraries?
15061need_version=$need_version
15062
15063# Library versioning type.
15064version_type=$version_type
15065
15066# Shared library runtime path variable.
15067runpath_var=$runpath_var
15068
15069# Shared library path variable.
15070shlibpath_var=$shlibpath_var
15071
15072# Is shlibpath searched before the hard-coded library search path?
15073shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15074
15075# Format of library name prefix.
15076libname_spec=$lt_libname_spec
15077
15078# List of archive names. First name is the real one, the rest are links.
15079# The last name is the one that the linker finds with -lNAME
15080library_names_spec=$lt_library_names_spec
15081
15082# The coded name of the library, if different from the real name.
15083soname_spec=$lt_soname_spec
15084
3725885a
RW
15085# Permission mode override for installation of shared libraries.
15086install_override_mode=$lt_install_override_mode
15087
d7040cdb
SE
15088# Command to use after installation of a shared archive.
15089postinstall_cmds=$lt_postinstall_cmds
15090
15091# Command to use after uninstallation of a shared archive.
15092postuninstall_cmds=$lt_postuninstall_cmds
15093
15094# Commands used to finish a libtool library installation in a directory.
15095finish_cmds=$lt_finish_cmds
15096
15097# As "finish_cmds", except a single script fragment to be evaled but
15098# not shown.
15099finish_eval=$lt_finish_eval
15100
15101# Whether we should hardcode library paths into libraries.
15102hardcode_into_libs=$hardcode_into_libs
15103
15104# Compile-time system search path for libraries.
15105sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15106
15107# Run-time system search path for libraries.
15108sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15109
15110# Whether dlopen is supported.
15111dlopen_support=$enable_dlopen
15112
15113# Whether dlopen of programs is supported.
15114dlopen_self=$enable_dlopen_self
15115
15116# Whether dlopen of statically linked programs is supported.
15117dlopen_self_static=$enable_dlopen_self_static
15118
15119# Commands to strip libraries.
15120old_striplib=$lt_old_striplib
15121striplib=$lt_striplib
15122
15123
15124# The linker used to build libraries.
15125LD=$lt_LD
15126
3725885a
RW
15127# How to create reloadable object files.
15128reload_flag=$lt_reload_flag
15129reload_cmds=$lt_reload_cmds
15130
d7040cdb
SE
15131# Commands used to build an old-style archive.
15132old_archive_cmds=$lt_old_archive_cmds
15133
15134# A language specific compiler.
15135CC=$lt_compiler
15136
15137# Is the compiler the GNU compiler?
15138with_gcc=$GCC
15139
15140# Compiler flag to turn off builtin functions.
15141no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15142
15143# How to pass a linker flag through the compiler.
15144wl=$lt_lt_prog_compiler_wl
15145
15146# Additional compiler flags for building library objects.
15147pic_flag=$lt_lt_prog_compiler_pic
15148
15149# Compiler flag to prevent dynamic linking.
15150link_static_flag=$lt_lt_prog_compiler_static
15151
15152# Does compiler simultaneously support -c and -o options?
15153compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15154
15155# Whether or not to add -lc for building shared libraries.
15156build_libtool_need_lc=$archive_cmds_need_lc
15157
15158# Whether or not to disallow shared libs when runtime libs are static.
15159allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15160
15161# Compiler flag to allow reflexive dlopens.
15162export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15163
15164# Compiler flag to generate shared objects directly from archives.
15165whole_archive_flag_spec=$lt_whole_archive_flag_spec
15166
15167# Whether the compiler copes with passing no objects directly.
15168compiler_needs_object=$lt_compiler_needs_object
15169
15170# Create an old-style archive from a shared archive.
15171old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15172
15173# Create a temporary old-style archive to link instead of a shared archive.
15174old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15175
15176# Commands used to build a shared archive.
15177archive_cmds=$lt_archive_cmds
15178archive_expsym_cmds=$lt_archive_expsym_cmds
15179
15180# Commands used to build a loadable module if different from building
15181# a shared archive.
15182module_cmds=$lt_module_cmds
15183module_expsym_cmds=$lt_module_expsym_cmds
15184
15185# Whether we are building with GNU ld or not.
15186with_gnu_ld=$lt_with_gnu_ld
15187
15188# Flag that allows shared libraries with undefined symbols to be built.
15189allow_undefined_flag=$lt_allow_undefined_flag
15190
15191# Flag that enforces no undefined symbols.
15192no_undefined_flag=$lt_no_undefined_flag
15193
15194# Flag to hardcode \$libdir into a binary during linking.
15195# This must work even if \$libdir does not exist
15196hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15197
15198# If ld is used when linking, flag to hardcode \$libdir into a binary
15199# during linking. This must work even if \$libdir does not exist.
15200hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15201
15202# Whether we need a single "-rpath" flag with a separated argument.
15203hardcode_libdir_separator=$lt_hardcode_libdir_separator
15204
15205# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15206# DIR into the resulting binary.
15207hardcode_direct=$hardcode_direct
15208
15209# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15210# DIR into the resulting binary and the resulting library dependency is
15211# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15212# library is relocated.
15213hardcode_direct_absolute=$hardcode_direct_absolute
15214
15215# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15216# into the resulting binary.
15217hardcode_minus_L=$hardcode_minus_L
15218
15219# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15220# into the resulting binary.
15221hardcode_shlibpath_var=$hardcode_shlibpath_var
15222
15223# Set to "yes" if building a shared library automatically hardcodes DIR
15224# into the library and all subsequent libraries and executables linked
15225# against it.
15226hardcode_automatic=$hardcode_automatic
15227
15228# Set to yes if linker adds runtime paths of dependent libraries
15229# to runtime path list.
15230inherit_rpath=$inherit_rpath
15231
15232# Whether libtool must link a program against all its dependency libraries.
15233link_all_deplibs=$link_all_deplibs
15234
15235# Fix the shell variable \$srcfile for the compiler.
15236fix_srcfile_path=$lt_fix_srcfile_path
15237
15238# Set to "yes" if exported symbols are required.
15239always_export_symbols=$always_export_symbols
15240
15241# The commands to list exported symbols.
15242export_symbols_cmds=$lt_export_symbols_cmds
15243
15244# Symbols that should not be listed in the preloaded symbols.
15245exclude_expsyms=$lt_exclude_expsyms
15246
15247# Symbols that must always be exported.
15248include_expsyms=$lt_include_expsyms
15249
15250# Commands necessary for linking programs (against libraries) with templates.
15251prelink_cmds=$lt_prelink_cmds
15252
15253# Specify filename containing input files.
15254file_list_spec=$lt_file_list_spec
15255
15256# How to hardcode a shared library path into an executable.
15257hardcode_action=$hardcode_action
15258
15259# ### END LIBTOOL CONFIG
15260
15261_LT_EOF
15262
15263 case $host_os in
15264 aix3*)
15265 cat <<\_LT_EOF >> "$cfgfile"
15266# AIX sometimes has problems with the GCC collect2 program. For some
15267# reason, if we set the COLLECT_NAMES environment variable, the problems
15268# vanish in a puff of smoke.
15269if test "X${COLLECT_NAMES+set}" != Xset; then
15270 COLLECT_NAMES=
15271 export COLLECT_NAMES
15272fi
15273_LT_EOF
15274 ;;
15275 esac
15276
15277
15278ltmain="$ac_aux_dir/ltmain.sh"
15279
15280
15281 # We use sed instead of cat because bash on DJGPP gets confused if
15282 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15283 # text mode, it properly converts lines to CR/LF. This bash problem
15284 # is reportedly fixed, but why not run on old versions too?
15285 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15286 || (rm -f "$cfgfile"; exit 1)
15287
15288 case $xsi_shell in
15289 yes)
15290 cat << \_LT_EOF >> "$cfgfile"
b214d478 15291
d7040cdb
SE
15292# func_dirname file append nondir_replacement
15293# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15294# otherwise set result to NONDIR_REPLACEMENT.
15295func_dirname ()
15296{
15297 case ${1} in
15298 */*) func_dirname_result="${1%/*}${2}" ;;
15299 * ) func_dirname_result="${3}" ;;
15300 esac
15301}
15302
15303# func_basename file
15304func_basename ()
15305{
15306 func_basename_result="${1##*/}"
15307}
15308
b214d478
SE
15309# func_dirname_and_basename file append nondir_replacement
15310# perform func_basename and func_dirname in a single function
15311# call:
15312# dirname: Compute the dirname of FILE. If nonempty,
15313# add APPEND to the result, otherwise set result
15314# to NONDIR_REPLACEMENT.
15315# value returned in "$func_dirname_result"
15316# basename: Compute filename of FILE.
15317# value retuned in "$func_basename_result"
15318# Implementation must be kept synchronized with func_dirname
15319# and func_basename. For efficiency, we do not delegate to
15320# those functions but instead duplicate the functionality here.
15321func_dirname_and_basename ()
15322{
15323 case ${1} in
15324 */*) func_dirname_result="${1%/*}${2}" ;;
15325 * ) func_dirname_result="${3}" ;;
15326 esac
15327 func_basename_result="${1##*/}"
15328}
15329
d7040cdb
SE
15330# func_stripname prefix suffix name
15331# strip PREFIX and SUFFIX off of NAME.
15332# PREFIX and SUFFIX must not contain globbing or regex special
15333# characters, hashes, percent signs, but SUFFIX may contain a leading
15334# dot (in which case that matches only a dot).
15335func_stripname ()
15336{
15337 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15338 # positional parameters, so assign one to ordinary parameter first.
15339 func_stripname_result=${3}
15340 func_stripname_result=${func_stripname_result#"${1}"}
15341 func_stripname_result=${func_stripname_result%"${2}"}
15342}
15343
15344# func_opt_split
15345func_opt_split ()
15346{
15347 func_opt_split_opt=${1%%=*}
15348 func_opt_split_arg=${1#*=}
15349}
15350
15351# func_lo2o object
15352func_lo2o ()
15353{
15354 case ${1} in
15355 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15356 *) func_lo2o_result=${1} ;;
15357 esac
15358}
b214d478
SE
15359
15360# func_xform libobj-or-source
15361func_xform ()
15362{
15363 func_xform_result=${1%.*}.lo
15364}
15365
15366# func_arith arithmetic-term...
15367func_arith ()
15368{
15369 func_arith_result=$(( $* ))
15370}
15371
15372# func_len string
15373# STRING may not start with a hyphen.
15374func_len ()
15375{
15376 func_len_result=${#1}
15377}
15378
d7040cdb
SE
15379_LT_EOF
15380 ;;
15381 *) # Bourne compatible functions.
15382 cat << \_LT_EOF >> "$cfgfile"
b214d478 15383
d7040cdb
SE
15384# func_dirname file append nondir_replacement
15385# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15386# otherwise set result to NONDIR_REPLACEMENT.
15387func_dirname ()
15388{
15389 # Extract subdirectory from the argument.
3725885a 15390 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
15391 if test "X$func_dirname_result" = "X${1}"; then
15392 func_dirname_result="${3}"
15393 else
15394 func_dirname_result="$func_dirname_result${2}"
15395 fi
15396}
15397
15398# func_basename file
15399func_basename ()
15400{
3725885a 15401 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
15402}
15403
b214d478 15404
d7040cdb
SE
15405# func_stripname prefix suffix name
15406# strip PREFIX and SUFFIX off of NAME.
15407# PREFIX and SUFFIX must not contain globbing or regex special
15408# characters, hashes, percent signs, but SUFFIX may contain a leading
15409# dot (in which case that matches only a dot).
15410# func_strip_suffix prefix name
15411func_stripname ()
15412{
15413 case ${2} in
3725885a
RW
15414 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15415 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
15416 esac
15417}
15418
15419# sed scripts:
15420my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15421my_sed_long_arg='1s/^-[^=]*=//'
15422
15423# func_opt_split
15424func_opt_split ()
15425{
3725885a
RW
15426 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15427 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
15428}
15429
15430# func_lo2o object
15431func_lo2o ()
15432{
3725885a 15433 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 15434}
b214d478
SE
15435
15436# func_xform libobj-or-source
15437func_xform ()
15438{
3725885a 15439 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
b214d478
SE
15440}
15441
15442# func_arith arithmetic-term...
15443func_arith ()
15444{
15445 func_arith_result=`expr "$@"`
15446}
15447
15448# func_len string
15449# STRING may not start with a hyphen.
15450func_len ()
15451{
15452 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15453}
15454
d7040cdb
SE
15455_LT_EOF
15456esac
15457
15458case $lt_shell_append in
15459 yes)
15460 cat << \_LT_EOF >> "$cfgfile"
15461
15462# func_append var value
15463# Append VALUE to the end of shell variable VAR.
15464func_append ()
15465{
15466 eval "$1+=\$2"
15467}
15468_LT_EOF
15469 ;;
15470 *)
15471 cat << \_LT_EOF >> "$cfgfile"
15472
15473# func_append var value
15474# Append VALUE to the end of shell variable VAR.
15475func_append ()
15476{
15477 eval "$1=\$$1\$2"
15478}
b214d478 15479
d7040cdb
SE
15480_LT_EOF
15481 ;;
15482 esac
15483
15484
15485 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15486 || (rm -f "$cfgfile"; exit 1)
15487
15488 mv -f "$cfgfile" "$ofile" ||
15489 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15490 chmod +x "$ofile"
15491
42ecbf5e 15492 ;;
81ecdfbb 15493 "default-1":C)
20e95c23
DJ
15494 for ac_file in $CONFIG_FILES; do
15495 # Support "outfile[:infile[:infile...]]"
15496 case "$ac_file" in
15497 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15498 esac
15499 # PO directories have a Makefile.in generated from Makefile.in.in.
15500 case "$ac_file" in */Makefile.in)
15501 # Adjust a relative srcdir.
15502 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15503 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15504 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15505 # In autoconf-2.13 it is called $ac_given_srcdir.
15506 # In autoconf-2.50 it is called $srcdir.
15507 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15508 case "$ac_given_srcdir" in
15509 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15510 /*) top_srcdir="$ac_given_srcdir" ;;
15511 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15512 esac
15513 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15514 rm -f "$ac_dir/POTFILES"
15515 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15516 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15517 POMAKEFILEDEPS="POTFILES.in"
15518 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15519 # on $ac_dir but don't depend on user-specified configuration
15520 # parameters.
15521 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15522 # The LINGUAS file contains the set of available languages.
15523 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15524 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15525 fi
15526 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15527 # Hide the ALL_LINGUAS assigment from automake.
15528 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15529 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15530 else
15531 # The set of available languages was given in configure.in.
15532 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15533 fi
15534 case "$ac_given_srcdir" in
15535 .) srcdirpre= ;;
15536 *) srcdirpre='$(srcdir)/' ;;
15537 esac
15538 POFILES=
15539 GMOFILES=
15540 UPDATEPOFILES=
15541 DUMMYPOFILES=
15542 for lang in $ALL_LINGUAS; do
15543 POFILES="$POFILES $srcdirpre$lang.po"
15544 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15545 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15546 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15547 done
15548 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15549 # environment variable.
15550 INST_LINGUAS=
15551 if test -n "$ALL_LINGUAS"; then
15552 for presentlang in $ALL_LINGUAS; do
15553 useit=no
15554 if test "%UNSET%" != "$LINGUAS"; then
15555 desiredlanguages="$LINGUAS"
15556 else
15557 desiredlanguages="$ALL_LINGUAS"
15558 fi
15559 for desiredlang in $desiredlanguages; do
15560 # Use the presentlang catalog if desiredlang is
15561 # a. equal to presentlang, or
15562 # b. a variant of presentlang (because in this case,
15563 # presentlang can be used as a fallback for messages
15564 # which are not translated in the desiredlang catalog).
15565 case "$desiredlang" in
15566 "$presentlang"*) useit=yes;;
15567 esac
15568 done
15569 if test $useit = yes; then
15570 INST_LINGUAS="$INST_LINGUAS $presentlang"
15571 fi
15572 done
15573 fi
15574 CATALOGS=
15575 if test -n "$INST_LINGUAS"; then
15576 for lang in $INST_LINGUAS; do
15577 CATALOGS="$CATALOGS $lang.gmo"
15578 done
15579 fi
15580 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15581 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"
15582 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15583 if test -f "$f"; then
15584 case "$f" in
15585 *.orig | *.bak | *~) ;;
15586 *) cat "$f" >> "$ac_dir/Makefile" ;;
15587 esac
15588 fi
15589 done
15590 fi
15591 ;;
15592 esac
15593 done ;;
81ecdfbb 15594
42ecbf5e 15595 esac
81ecdfbb 15596done # for ac_tag
42ecbf5e 15597
42ecbf5e 15598
81ecdfbb 15599as_fn_exit 0
42ecbf5e 15600_ACEOF
42ecbf5e
DJ
15601ac_clean_files=$ac_clean_files_save
15602
81ecdfbb
RW
15603test $ac_write_fail = 0 ||
15604 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15605
42ecbf5e
DJ
15606
15607# configure is writing to config.log, and then calls config.status.
15608# config.status does its own redirection, appending to config.log.
15609# Unfortunately, on DOS this fails, as config.log is still kept open
15610# by configure, so config.status won't be able to write to it; its
15611# output is simply discarded. So we exec the FD to /dev/null,
15612# effectively closing config.log, so it can be properly (re)opened and
15613# appended to by config.status. When coming back to configure, we
15614# need to make the FD available again.
15615if test "$no_create" != yes; then
15616 ac_cs_success=:
15617 ac_config_status_args=
15618 test "$silent" = yes &&
15619 ac_config_status_args="$ac_config_status_args --quiet"
15620 exec 5>/dev/null
15621 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15622 exec 5>>config.log
15623 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15624 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15625 $ac_cs_success || as_fn_exit $?
15626fi
15627if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15629$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 15630fi
252b5132 15631
This page took 1.326448 seconds and 4 git commands to generate.