Sync Libtool from GCC.
[deliverable/binutils-gdb.git] / binutils / 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
42ecbf5e 364
81ecdfbb
RW
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
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="ar.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
605EMULATION_VECTOR
606EMULATION
607OBJDUMP_DEFS
608BUILD_INSTALL_MISC
609BUILD_MISC
610BUILD_DLLWRAP
611BUILD_WINDMC
612BUILD_WINDRES
613DLLTOOL_DEFS
614BUILD_DLLTOOL
615BUILD_SRCONV
616BUILD_NLMCONV
617NLMCONV_DEFS
618LTLIBICONV
619LIBICONV
620ALLOCA
621DEMANGLER_NAME
622EXEEXT_FOR_BUILD
623CC_FOR_BUILD
624HDEFINES
625GENINSRC_NEVER_FALSE
626GENINSRC_NEVER_TRUE
627MAINT
628MAINTAINER_MODE_FALSE
629MAINTAINER_MODE_TRUE
630MSGMERGE
631MSGFMT
632MKINSTALLDIRS
633CATOBJEXT
634GENCAT
635INSTOBJEXT
636DATADIRNAME
637CATALOGS
638POSUB
639GMSGFMT
640XGETTEXT
641INCINTL
642LIBINTL_DEP
643LIBINTL
644USE_NLS
645LEXLIB
646LEX_OUTPUT_ROOT
647LEX
648YFLAGS
649YACC
650NO_WERROR
651WARN_CFLAGS
652OTOOL64
653OTOOL
654LIPO
655NMEDIT
656DSYMUTIL
81ecdfbb
RW
657RANLIB
658AR
659OBJDUMP
660LN_S
661NM
662ac_ct_DUMPBIN
663DUMPBIN
664LD
665FGREP
666SED
667LIBTOOL
668EGREP
669GREP
670CPP
671am__fastdepCC_FALSE
672am__fastdepCC_TRUE
673CCDEPMODE
674AMDEPBACKSLASH
675AMDEP_FALSE
676AMDEP_TRUE
677am__quote
678am__include
679DEPDIR
680am__untar
681am__tar
682AMTAR
683am__leading_dot
684SET_MAKE
685AWK
686mkdir_p
687MKDIR_P
688INSTALL_STRIP_PROGRAM
689STRIP
690install_sh
691MAKEINFO
692AUTOHEADER
693AUTOMAKE
694AUTOCONF
695ACLOCAL
696VERSION
697PACKAGE
698CYGPATH_W
699am__isrc
700INSTALL_DATA
701INSTALL_SCRIPT
702INSTALL_PROGRAM
703OBJEXT
704EXEEXT
705ac_ct_CC
706CPPFLAGS
707LDFLAGS
708CFLAGS
709CC
710target_os
711target_vendor
712target_cpu
713target
714host_os
715host_vendor
716host_cpu
717host
718build_os
719build_vendor
720build_cpu
721build
722target_alias
723host_alias
724build_alias
725LIBS
726ECHO_T
727ECHO_N
728ECHO_C
729DEFS
730mandir
731localedir
732libdir
733psdir
734pdfdir
735dvidir
736htmldir
737infodir
738docdir
739oldincludedir
740includedir
741localstatedir
742sharedstatedir
743sysconfdir
744datadir
745datarootdir
746libexecdir
747sbindir
748bindir
749program_transform_name
750prefix
751exec_prefix
752PACKAGE_URL
753PACKAGE_BUGREPORT
754PACKAGE_STRING
755PACKAGE_VERSION
756PACKAGE_TARNAME
757PACKAGE_NAME
758PATH_SEPARATOR
759SHELL'
42ecbf5e 760ac_subst_files=''
81ecdfbb
RW
761ac_user_opts='
762enable_option_checking
763enable_dependency_tracking
764enable_plugins
765enable_largefile
766enable_shared
767enable_static
768with_pic
769enable_fast_install
770with_gnu_ld
771enable_libtool_lock
772enable_targets
773enable_werror
774enable_build_warnings
775enable_nls
776enable_maintainer_mode
777enable_rpath
778with_libiconv_prefix
779'
780 ac_precious_vars='build_alias
781host_alias
782target_alias
783CC
784CFLAGS
785LDFLAGS
786LIBS
787CPPFLAGS
788CPP
789YACC
790YFLAGS'
791
252b5132
RH
792
793# Initialize some variables set by options.
42ecbf5e
DJ
794ac_init_help=
795ac_init_version=false
81ecdfbb
RW
796ac_unrecognized_opts=
797ac_unrecognized_sep=
252b5132
RH
798# The variables have the same names as the options, with
799# dashes changed to underlines.
42ecbf5e 800cache_file=/dev/null
252b5132 801exec_prefix=NONE
252b5132 802no_create=
252b5132
RH
803no_recursion=
804prefix=NONE
805program_prefix=NONE
806program_suffix=NONE
807program_transform_name=s,x,x,
808silent=
809site=
810srcdir=
252b5132
RH
811verbose=
812x_includes=NONE
813x_libraries=NONE
42ecbf5e
DJ
814
815# Installation directory options.
816# These are left unexpanded so users can "make install exec_prefix=/foo"
817# and all the variables that are supposed to be based on exec_prefix
818# by default will actually change.
819# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 820# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
821bindir='${exec_prefix}/bin'
822sbindir='${exec_prefix}/sbin'
823libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
824datarootdir='${prefix}/share'
825datadir='${datarootdir}'
252b5132
RH
826sysconfdir='${prefix}/etc'
827sharedstatedir='${prefix}/com'
828localstatedir='${prefix}/var'
252b5132
RH
829includedir='${prefix}/include'
830oldincludedir='/usr/include'
81ecdfbb
RW
831docdir='${datarootdir}/doc/${PACKAGE}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
252b5132 840
252b5132 841ac_prev=
81ecdfbb 842ac_dashdash=
252b5132
RH
843for ac_option
844do
252b5132
RH
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
81ecdfbb 847 eval $ac_prev=\$ac_option
252b5132
RH
848 ac_prev=
849 continue
850 fi
851
81ecdfbb
RW
852 case $ac_option in
853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *) ac_optarg=yes ;;
855 esac
252b5132
RH
856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
81ecdfbb
RW
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
252b5132
RH
862
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 866 bindir=$ac_optarg ;;
252b5132
RH
867
868 -build | --build | --buil | --bui | --bu)
42ecbf5e 869 ac_prev=build_alias ;;
252b5132 870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 871 build_alias=$ac_optarg ;;
252b5132
RH
872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
252b5132 882
81ecdfbb 883 -datadir | --datadir | --datadi | --datad)
252b5132 884 ac_prev=datadir ;;
81ecdfbb 885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 886 datadir=$ac_optarg ;;
252b5132 887
81ecdfbb
RW
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
252b5132 895 -disable-* | --disable-*)
81ecdfbb 896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 897 # Reject names that are not valid shell variable names.
81ecdfbb
RW
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904"enable_$ac_useropt"
905"*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
910
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
915
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
252b5132
RH
920
921 -enable-* | --enable-*)
81ecdfbb 922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 923 # Reject names that are not valid shell variable names.
81ecdfbb
RW
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930"enable_$ac_useropt"
931"*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
252b5132 934 esac
81ecdfbb 935 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
936
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
42ecbf5e 944 exec_prefix=$ac_optarg ;;
252b5132
RH
945
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
949
42ecbf5e
DJ
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
252b5132
RH
956
957 -host | --host | --hos | --ho)
42ecbf5e 958 ac_prev=host_alias ;;
252b5132 959 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 960 host_alias=$ac_optarg ;;
252b5132 961
81ecdfbb
RW
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
967
252b5132
RH
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 973 includedir=$ac_optarg ;;
252b5132
RH
974
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 978 infodir=$ac_optarg ;;
252b5132
RH
979
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 983 libdir=$ac_optarg ;;
252b5132
RH
984
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 990 libexecdir=$ac_optarg ;;
252b5132 991
81ecdfbb
RW
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
996
252b5132 997 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 998 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1002 localstatedir=$ac_optarg ;;
252b5132
RH
1003
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1007 mandir=$ac_optarg ;;
252b5132
RH
1008
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1012
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1014 | --no-cr | --no-c | -n)
252b5132
RH
1015 no_create=yes ;;
1016
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1020
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1028 oldincludedir=$ac_optarg ;;
252b5132
RH
1029
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1033 prefix=$ac_optarg ;;
252b5132
RH
1034
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1040 program_prefix=$ac_optarg ;;
252b5132
RH
1041
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1047 program_suffix=$ac_optarg ;;
252b5132
RH
1048
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1064 program_transform_name=$ac_optarg ;;
252b5132 1065
81ecdfbb
RW
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1070
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1075
252b5132
RH
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1079
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
42ecbf5e 1084 sbindir=$ac_optarg ;;
252b5132
RH
1085
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
42ecbf5e 1095 sharedstatedir=$ac_optarg ;;
252b5132
RH
1096
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
42ecbf5e 1100 site=$ac_optarg ;;
252b5132
RH
1101
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1105 srcdir=$ac_optarg ;;
252b5132
RH
1106
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1112 sysconfdir=$ac_optarg ;;
252b5132
RH
1113
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1115 ac_prev=target_alias ;;
252b5132 1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1117 target_alias=$ac_optarg ;;
252b5132
RH
1118
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1121
42ecbf5e
DJ
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
252b5132
RH
1124
1125 -with-* | --with-*)
81ecdfbb 1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1127 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134"with_$ac_useropt"
1135"*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
252b5132 1138 esac
81ecdfbb 1139 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1140
1141 -without-* | --without-*)
81ecdfbb 1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1143 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150"with_$ac_useropt"
1151"*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
252b5132
RH
1156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1166 x_includes=$ac_optarg ;;
252b5132
RH
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1173 x_libraries=$ac_optarg ;;
252b5132 1174
81ecdfbb
RW
1175 -*) as_fn_error "unrecognized option: \`$ac_option'
1176Try \`$0 --help' for more information."
252b5132
RH
1177 ;;
1178
42ecbf5e
DJ
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1185 esac
1186 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1187 export $ac_envvar ;;
1188
252b5132 1189 *)
42ecbf5e 1190 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
42ecbf5e 1194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1195 ;;
1196
1197 esac
1198done
1199
1200if test -n "$ac_prev"; then
42ecbf5e 1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1202 as_fn_error "missing argument to $ac_option"
252b5132
RH
1203fi
1204
81ecdfbb
RW
1205if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
1208 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1210 esac
81ecdfbb 1211fi
252b5132 1212
81ecdfbb
RW
1213# Check all directory arguments for consistency.
1214for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
252b5132 1218do
81ecdfbb
RW
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
42ecbf5e 1221 case $ac_val in
81ecdfbb
RW
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
252b5132 1225 esac
81ecdfbb
RW
1226 # Be sure to have absolute directory names.
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
1231 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1232done
1233
42ecbf5e
DJ
1234# There might be people who depend on the old broken behavior: `$host'
1235# used to hold the argument of --host etc.
1236# FIXME: To remove some day.
1237build=$build_alias
1238host=$host_alias
1239target=$target_alias
1240
1241# FIXME: To remove some day.
1242if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
81ecdfbb 1245 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
42ecbf5e
DJ
1246 If a cross compiler is detected then cross compile mode will be used." >&2
1247 elif test "x$build_alias" != "x$host_alias"; then
1248 cross_compiling=yes
1249 fi
1250fi
e5a52504 1251
42ecbf5e
DJ
1252ac_tool_prefix=
1253test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254
1255test "$silent" = yes && exec 6>/dev/null
252b5132 1256
252b5132 1257
81ecdfbb
RW
1258ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259ac_ls_di=`ls -di .` &&
1260ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 as_fn_error "working directory cannot be determined"
1262test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 as_fn_error "pwd does not report name of working directory"
1264
1265
252b5132
RH
1266# Find the source files, if location was not specified.
1267if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
81ecdfbb
RW
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$as_myself" ||
1271$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275$as_echo X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)[^/].*/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\/\)$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\).*/{
1289 s//\1/
1290 q
1291 }
1292 s/.*/./; q'`
252b5132 1293 srcdir=$ac_confdir
81ecdfbb 1294 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1295 srcdir=..
1296 fi
1297else
1298 ac_srcdir_defaulted=no
1299fi
81ecdfbb
RW
1300if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1303fi
1304ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305ac_abs_confdir=`(
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1307 pwd)`
1308# When building in place, set srcdir=.
1309if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1311fi
1312# Remove unnecessary trailing slashes from srcdir.
1313# Double slashes in file names in object file debugging info
1314# mess up M-x gdb in Emacs.
1315case $srcdir in
1316*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317esac
1318for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323done
252b5132 1324
42ecbf5e
DJ
1325#
1326# Report the --help message.
1327#
1328if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
1332\`configure' configures this package to adapt to many kinds of systems.
252b5132 1333
42ecbf5e 1334Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1335
42ecbf5e
DJ
1336To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1338
42ecbf5e 1339Defaults for the options are specified in brackets.
ac48eca1 1340
42ecbf5e
DJ
1341Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351
42ecbf5e
DJ
1352Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1354 [$ac_default_prefix]
42ecbf5e 1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1356 [PREFIX]
ac48eca1 1357
42ecbf5e
DJ
1358By default, \`make install' will install all the files in
1359\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361for instance \`--prefix=\$HOME'.
ac48eca1 1362
42ecbf5e 1363For better control, use the options below.
ac48eca1 1364
42ecbf5e 1365Fine tuning of the installation directories:
81ecdfbb
RW
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1385_ACEOF
ac48eca1 1386
42ecbf5e 1387 cat <<\_ACEOF
252b5132 1388
42ecbf5e
DJ
1389Program names:
1390 --program-prefix=PREFIX prepend PREFIX to installed program names
1391 --program-suffix=SUFFIX append SUFFIX to installed program names
1392 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1393
42ecbf5e
DJ
1394System types:
1395 --build=BUILD configure for building on BUILD [guessed]
1396 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1397 --target=TARGET configure for building compilers for TARGET [HOST]
1398_ACEOF
252b5132 1399fi
252b5132 1400
42ecbf5e 1401if test -n "$ac_init_help"; then
252b5132 1402
42ecbf5e 1403 cat <<\_ACEOF
252b5132 1404
42ecbf5e 1405Optional Features:
81ecdfbb 1406 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --disable-dependency-tracking speeds up one-time build
1410 --enable-dependency-tracking do not reject slow dependency extractors
5691d22d 1411 --enable-plugins Enable support for plugins (defaults no)
d053aef8 1412 --disable-largefile omit support for large files
81ecdfbb
RW
1413 --enable-shared[=PKGS] build shared libraries [default=yes]
1414 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1415 --enable-fast-install[=PKGS]
1416 optimize for fast installation [default=yes]
42ecbf5e
DJ
1417 --disable-libtool-lock avoid locking (might break parallel builds)
1418 --enable-targets alternative target configurations
241a6c40
AM
1419 --enable-werror treat compile warnings as errors
1420 --enable-build-warnings enable build-time compiler warnings
42ecbf5e
DJ
1421 --disable-nls do not use Native Language Support
1422 --enable-maintainer-mode enable make rules and dependencies not useful
1423 (and sometimes confusing) to the casual installer
5ba684e2 1424 --disable-rpath do not hardcode runtime library paths
42ecbf5e
DJ
1425
1426Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1429 --with-pic try to use only PIC/non-PIC objects [default=use
1430 both]
1431 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5ba684e2
NC
1432 --with-gnu-ld assume the C compiler uses GNU ld default=no
1433 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1434 --without-libiconv-prefix don't search for libiconv in includedir and libdir
252b5132 1435
42ecbf5e
DJ
1436Some influential environment variables:
1437 CC C compiler command
1438 CFLAGS C compiler flags
1439 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1440 nonstandard directory <lib dir>
81ecdfbb
RW
1441 LIBS libraries to pass to the linker, e.g. -l<library>
1442 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1443 you have headers in a nonstandard directory <include dir>
42ecbf5e 1444 CPP C preprocessor
81ecdfbb
RW
1445 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1446 the first program found out of: `bison -y', `byacc', `yacc'.
1447 YFLAGS The list of arguments that will be passed by default to $YACC.
1448 This script will default YFLAGS to the empty string to avoid a
1449 default value of `-d' given by some make applications.
e5a52504 1450
42ecbf5e
DJ
1451Use these variables to override the choices made by `configure' or to help
1452it to find libraries and programs with nonstandard names/locations.
1453
81ecdfbb 1454Report bugs to the package provider.
42ecbf5e 1455_ACEOF
81ecdfbb 1456ac_status=$?
252b5132
RH
1457fi
1458
42ecbf5e
DJ
1459if test "$ac_init_help" = "recursive"; then
1460 # If there are subdirs, report their specific --help.
42ecbf5e 1461 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1462 test -d "$ac_dir" ||
1463 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464 continue
42ecbf5e
DJ
1465 ac_builddir=.
1466
81ecdfbb
RW
1467case "$ac_dir" in
1468.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469*)
1470 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471 # A ".." for each directory in $ac_dir_suffix.
1472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473 case $ac_top_builddir_sub in
1474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476 esac ;;
1477esac
1478ac_abs_top_builddir=$ac_pwd
1479ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480# for backward compatibility:
1481ac_top_builddir=$ac_top_build_prefix
252b5132 1482
42ecbf5e 1483case $srcdir in
81ecdfbb 1484 .) # We are building in place.
42ecbf5e 1485 ac_srcdir=.
81ecdfbb
RW
1486 ac_top_srcdir=$ac_top_builddir_sub
1487 ac_abs_top_srcdir=$ac_pwd ;;
1488 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1489 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1490 ac_top_srcdir=$srcdir
1491 ac_abs_top_srcdir=$srcdir ;;
1492 *) # Relative name.
1493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494 ac_top_srcdir=$ac_top_build_prefix$srcdir
1495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
252b5132 1496esac
81ecdfbb
RW
1497ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498
1499 cd "$ac_dir" || { ac_status=$?; continue; }
1500 # Check for guested configure.
1501 if test -f "$ac_srcdir/configure.gnu"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504 elif test -f "$ac_srcdir/configure"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1507 else
81ecdfbb
RW
1508 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 fi || ac_status=$?
1510 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e
DJ
1511 done
1512fi
5d64ca4e 1513
81ecdfbb 1514test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1515if $ac_init_version; then
1516 cat <<\_ACEOF
81ecdfbb
RW
1517configure
1518generated by GNU Autoconf 2.64
5d64ca4e 1519
81ecdfbb 1520Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
1521This configure script is free software; the Free Software Foundation
1522gives unlimited permission to copy, distribute and modify it.
1523_ACEOF
81ecdfbb 1524 exit
42ecbf5e 1525fi
252b5132 1526
81ecdfbb
RW
1527## ------------------------ ##
1528## Autoconf initialization. ##
1529## ------------------------ ##
e5a52504 1530
81ecdfbb
RW
1531# ac_fn_c_try_compile LINENO
1532# --------------------------
1533# Try to compile conftest.$ac_ext, and return whether this succeeded.
1534ac_fn_c_try_compile ()
42ecbf5e 1535{
81ecdfbb
RW
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext
1538 if { { ac_try="$ac_compile"
1539case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542esac
1543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544$as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_compile") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1551 fi
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest.$ac_objext; then :
1557 ac_retval=0
1558else
1559 $as_echo "$as_me: failed program was:" >&5
1560sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1561
81ecdfbb
RW
1562 ac_retval=1
1563fi
1564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1565 return $ac_retval
42ecbf5e 1566
81ecdfbb
RW
1567} # ac_fn_c_try_compile
1568
1569# ac_fn_c_try_link LINENO
1570# -----------------------
1571# Try to link conftest.$ac_ext, and return whether this succeeded.
1572ac_fn_c_try_link ()
1573{
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext conftest$ac_exeext
1576 if { { ac_try="$ac_link"
1577case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580esac
1581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582$as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_link") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1589 fi
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest$ac_exeext && {
1595 test "$cross_compiling" = yes ||
1596 $as_test_x conftest$ac_exeext
1597 }; then :
1598 ac_retval=0
1599else
1600 $as_echo "$as_me: failed program was:" >&5
1601sed 's/^/| /' conftest.$ac_ext >&5
1602
1603 ac_retval=1
1604fi
1605 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1606 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1607 # interfere with the next link command; also delete a directory that is
1608 # left behind by Apple's compiler. We do this before executing the actions.
1609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1611 return $ac_retval
1612
1613} # ac_fn_c_try_link
1614
1615# ac_fn_c_try_cpp LINENO
1616# ----------------------
1617# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1618ac_fn_c_try_cpp ()
1619{
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 if { { ac_try="$ac_cpp conftest.$ac_ext"
1622case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1625esac
1626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627$as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1629 ac_status=$?
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1634 fi
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } >/dev/null && {
1637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1639 }; then :
1640 ac_retval=0
1641else
1642 $as_echo "$as_me: failed program was:" >&5
1643sed 's/^/| /' conftest.$ac_ext >&5
1644
1645 ac_retval=1
1646fi
1647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1648 return $ac_retval
1649
1650} # ac_fn_c_try_cpp
1651
1652# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1653# -------------------------------------------------------
1654# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1655# the include files in INCLUDES and setting the cache variable VAR
1656# accordingly.
1657ac_fn_c_check_header_mongrel ()
1658{
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662$as_echo_n "checking for $2... " >&6; }
1663if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1664 $as_echo_n "(cached) " >&6
1665fi
1666eval ac_res=\$$3
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668$as_echo "$ac_res" >&6; }
1669else
1670 # Is the header compilable?
1671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1672$as_echo_n "checking $2 usability... " >&6; }
1673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674/* end confdefs.h. */
1675$4
1676#include <$2>
1677_ACEOF
1678if ac_fn_c_try_compile "$LINENO"; then :
1679 ac_header_compiler=yes
1680else
1681 ac_header_compiler=no
1682fi
1683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1685$as_echo "$ac_header_compiler" >&6; }
1686
1687# Is the header present?
1688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1689$as_echo_n "checking $2 presence... " >&6; }
1690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691/* end confdefs.h. */
1692#include <$2>
1693_ACEOF
1694if ac_fn_c_try_cpp "$LINENO"; then :
1695 ac_header_preproc=yes
1696else
1697 ac_header_preproc=no
1698fi
1699rm -f conftest.err conftest.$ac_ext
1700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1701$as_echo "$ac_header_preproc" >&6; }
1702
1703# So? What about this header?
1704case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1705 yes:no: )
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1707$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1709$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1710 ;;
1711 no:yes:* )
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1713$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1715$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1717$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1719$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1721$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1722 ;;
1723esac
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725$as_echo_n "checking for $2... " >&6; }
1726if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1727 $as_echo_n "(cached) " >&6
1728else
1729 eval "$3=\$ac_header_compiler"
1730fi
1731eval ac_res=\$$3
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733$as_echo "$ac_res" >&6; }
1734fi
1735 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1736
1737} # ac_fn_c_check_header_mongrel
1738
1739# ac_fn_c_try_run LINENO
1740# ----------------------
1741# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1742# that executables *can* be run.
1743ac_fn_c_try_run ()
1744{
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if { { ac_try="$ac_link"
1747case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750esac
1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752$as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_link") 2>&5
1754 ac_status=$?
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1757 { { case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760esac
1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762$as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_try") 2>&5
1764 ac_status=$?
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; }; }; then :
1767 ac_retval=0
1768else
1769 $as_echo "$as_me: program exited with status $ac_status" >&5
1770 $as_echo "$as_me: failed program was:" >&5
1771sed 's/^/| /' conftest.$ac_ext >&5
1772
1773 ac_retval=$ac_status
1774fi
1775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1777 return $ac_retval
1778
1779} # ac_fn_c_try_run
1780
1781# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1782# -------------------------------------------------------
1783# Tests whether HEADER exists and can be compiled using the include files in
1784# INCLUDES, setting the cache variable VAR accordingly.
1785ac_fn_c_check_header_compile ()
1786{
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789$as_echo_n "checking for $2... " >&6; }
1790if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1791 $as_echo_n "(cached) " >&6
1792else
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794/* end confdefs.h. */
1795$4
1796#include <$2>
1797_ACEOF
1798if ac_fn_c_try_compile "$LINENO"; then :
1799 eval "$3=yes"
1800else
1801 eval "$3=no"
1802fi
1803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804fi
1805eval ac_res=\$$3
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807$as_echo "$ac_res" >&6; }
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809
1810} # ac_fn_c_check_header_compile
1811
1812# ac_fn_c_check_func LINENO FUNC VAR
1813# ----------------------------------
1814# Tests whether FUNC exists, setting the cache variable VAR accordingly
1815ac_fn_c_check_func ()
1816{
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819$as_echo_n "checking for $2... " >&6; }
1820if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1821 $as_echo_n "(cached) " >&6
1822else
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824/* end confdefs.h. */
1825/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1827#define $2 innocuous_$2
1828
1829/* System header to define __stub macros and hopefully few prototypes,
1830 which can conflict with char $2 (); below.
1831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1832 <limits.h> exists even on freestanding compilers. */
1833
1834#ifdef __STDC__
1835# include <limits.h>
1836#else
1837# include <assert.h>
1838#endif
1839
1840#undef $2
1841
1842/* Override any GCC internal prototype to avoid an error.
1843 Use char because int might match the return type of a GCC
1844 builtin and then its argument prototype would still apply. */
1845#ifdef __cplusplus
1846extern "C"
1847#endif
1848char $2 ();
1849/* The GNU C library defines this for functions which it implements
1850 to always fail with ENOSYS. Some functions are actually named
1851 something starting with __ and the normal name is an alias. */
1852#if defined __stub_$2 || defined __stub___$2
1853choke me
1854#endif
1855
1856int
1857main ()
1858{
1859return $2 ();
1860 ;
1861 return 0;
1862}
1863_ACEOF
1864if ac_fn_c_try_link "$LINENO"; then :
1865 eval "$3=yes"
1866else
1867 eval "$3=no"
1868fi
1869rm -f core conftest.err conftest.$ac_objext \
1870 conftest$ac_exeext conftest.$ac_ext
1871fi
1872eval ac_res=\$$3
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874$as_echo "$ac_res" >&6; }
1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876
1877} # ac_fn_c_check_func
1878
1879# ac_fn_c_check_decl LINENO SYMBOL VAR
1880# ------------------------------------
1881# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1882ac_fn_c_check_decl ()
1883{
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1886$as_echo_n "checking whether $2 is declared... " >&6; }
1887if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1888 $as_echo_n "(cached) " >&6
1889else
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891/* end confdefs.h. */
1892$4
1893int
1894main ()
1895{
1896#ifndef $2
1897 (void) $2;
1898#endif
1899
1900 ;
1901 return 0;
1902}
1903_ACEOF
1904if ac_fn_c_try_compile "$LINENO"; then :
1905 eval "$3=yes"
1906else
1907 eval "$3=no"
1908fi
1909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910fi
1911eval ac_res=\$$3
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913$as_echo "$ac_res" >&6; }
1914 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1915
1916} # ac_fn_c_check_decl
1917cat >config.log <<_ACEOF
1918This file contains any messages produced by compilers while
1919running configure, to aid debugging if configure makes a mistake.
1920
1921It was created by $as_me, which was
1922generated by GNU Autoconf 2.64. Invocation command line was
1923
1924 $ $0 $@
1925
1926_ACEOF
1927exec 5>>config.log
1928{
1929cat <<_ASUNAME
1930## --------- ##
1931## Platform. ##
1932## --------- ##
1933
1934hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1935uname -m = `(uname -m) 2>/dev/null || echo unknown`
1936uname -r = `(uname -r) 2>/dev/null || echo unknown`
1937uname -s = `(uname -s) 2>/dev/null || echo unknown`
1938uname -v = `(uname -v) 2>/dev/null || echo unknown`
1939
1940/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1941/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1942
1943/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1944/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1945/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1946/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1947/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1948/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1949/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
42ecbf5e
DJ
1950
1951_ASUNAME
1952
1953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954for as_dir in $PATH
1955do
1956 IFS=$as_save_IFS
1957 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1958 $as_echo "PATH: $as_dir"
1959 done
1960IFS=$as_save_IFS
e5a52504 1961
42ecbf5e 1962} >&5
ceae3e33 1963
42ecbf5e 1964cat >&5 <<_ACEOF
e5a52504 1965
42ecbf5e
DJ
1966
1967## ----------- ##
1968## Core tests. ##
1969## ----------- ##
1970
1971_ACEOF
1972
1973
1974# Keep a trace of the command line.
1975# Strip out --no-create and --no-recursion so they do not pile up.
1976# Strip out --silent because we don't want to record it for future runs.
1977# Also quote any args containing shell meta-characters.
1978# Make two passes to allow for proper duplicate-argument suppression.
1979ac_configure_args=
1980ac_configure_args0=
1981ac_configure_args1=
42ecbf5e
DJ
1982ac_must_keep_next=false
1983for ac_pass in 1 2
1984do
1985 for ac_arg
1986 do
1987 case $ac_arg in
1988 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1990 | -silent | --silent | --silen | --sile | --sil)
1991 continue ;;
81ecdfbb
RW
1992 *\'*)
1993 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
1994 esac
1995 case $ac_pass in
81ecdfbb 1996 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 1997 2)
81ecdfbb 1998 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
1999 if test $ac_must_keep_next = true; then
2000 ac_must_keep_next=false # Got value, back to normal.
2001 else
2002 case $ac_arg in
2003 *=* | --config-cache | -C | -disable-* | --disable-* \
2004 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2005 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2006 | -with-* | --with-* | -without-* | --without-* | --x)
2007 case "$ac_configure_args0 " in
2008 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2009 esac
2010 ;;
2011 -* ) ac_must_keep_next=true ;;
2012 esac
2013 fi
81ecdfbb 2014 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2015 ;;
2016 esac
2017 done
2018done
81ecdfbb
RW
2019{ ac_configure_args0=; unset ac_configure_args0;}
2020{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2021
2022# When interrupted or exit'd, cleanup temporary files, and complete
2023# config.log. We remove comments because anyway the quotes in there
2024# would cause problems or look ugly.
81ecdfbb
RW
2025# WARNING: Use '\'' to represent an apostrophe within the trap.
2026# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2027trap 'exit_status=$?
2028 # Save into config.log some information that might help in debugging.
2029 {
2030 echo
2031
2032 cat <<\_ASBOX
2033## ---------------- ##
2034## Cache variables. ##
2035## ---------------- ##
2036_ASBOX
2037 echo
2038 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2039(
2040 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2041 eval ac_val=\$$ac_var
2042 case $ac_val in #(
2043 *${as_nl}*)
2044 case $ac_var in #(
2045 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2046$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2047 esac
2048 case $ac_var in #(
2049 _ | IFS | as_nl) ;; #(
2050 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2051 *) { eval $ac_var=; unset $ac_var;} ;;
2052 esac ;;
2053 esac
2054 done
42ecbf5e 2055 (set) 2>&1 |
81ecdfbb
RW
2056 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2057 *${as_nl}ac_space=\ *)
42ecbf5e 2058 sed -n \
81ecdfbb
RW
2059 "s/'\''/'\''\\\\'\'''\''/g;
2060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2061 ;; #(
42ecbf5e 2062 *)
81ecdfbb 2063 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2064 ;;
81ecdfbb
RW
2065 esac |
2066 sort
2067)
42ecbf5e
DJ
2068 echo
2069
2070 cat <<\_ASBOX
2071## ----------------- ##
2072## Output variables. ##
2073## ----------------- ##
2074_ASBOX
2075 echo
2076 for ac_var in $ac_subst_vars
2077 do
81ecdfbb
RW
2078 eval ac_val=\$$ac_var
2079 case $ac_val in
2080 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2081 esac
2082 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2083 done | sort
2084 echo
2085
2086 if test -n "$ac_subst_files"; then
2087 cat <<\_ASBOX
81ecdfbb
RW
2088## ------------------- ##
2089## File substitutions. ##
2090## ------------------- ##
42ecbf5e
DJ
2091_ASBOX
2092 echo
2093 for ac_var in $ac_subst_files
2094 do
81ecdfbb
RW
2095 eval ac_val=\$$ac_var
2096 case $ac_val in
2097 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098 esac
2099 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2100 done | sort
2101 echo
2102 fi
2103
2104 if test -s confdefs.h; then
2105 cat <<\_ASBOX
2106## ----------- ##
2107## confdefs.h. ##
2108## ----------- ##
2109_ASBOX
2110 echo
81ecdfbb 2111 cat confdefs.h
42ecbf5e
DJ
2112 echo
2113 fi
2114 test "$ac_signal" != 0 &&
81ecdfbb
RW
2115 $as_echo "$as_me: caught signal $ac_signal"
2116 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2117 } >&5
81ecdfbb
RW
2118 rm -f core *.core core.conftest.* &&
2119 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2120 exit $exit_status
81ecdfbb 2121' 0
42ecbf5e 2122for ac_signal in 1 2 13 15; do
81ecdfbb 2123 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2124done
2125ac_signal=0
2126
2127# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2128rm -f -r conftest* confdefs.h
2129
2130$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2131
2132# Predefined preprocessor variables.
2133
2134cat >>confdefs.h <<_ACEOF
2135#define PACKAGE_NAME "$PACKAGE_NAME"
2136_ACEOF
2137
42ecbf5e
DJ
2138cat >>confdefs.h <<_ACEOF
2139#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2140_ACEOF
2141
42ecbf5e
DJ
2142cat >>confdefs.h <<_ACEOF
2143#define PACKAGE_VERSION "$PACKAGE_VERSION"
2144_ACEOF
2145
42ecbf5e
DJ
2146cat >>confdefs.h <<_ACEOF
2147#define PACKAGE_STRING "$PACKAGE_STRING"
2148_ACEOF
2149
42ecbf5e
DJ
2150cat >>confdefs.h <<_ACEOF
2151#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2152_ACEOF
2153
81ecdfbb
RW
2154cat >>confdefs.h <<_ACEOF
2155#define PACKAGE_URL "$PACKAGE_URL"
2156_ACEOF
2157
42ecbf5e
DJ
2158
2159# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2160# Prefer an explicitly selected file to automatically selected ones.
2161ac_site_file1=NONE
2162ac_site_file2=NONE
2163if test -n "$CONFIG_SITE"; then
2164 ac_site_file1=$CONFIG_SITE
2165elif test "x$prefix" != xNONE; then
2166 ac_site_file1=$prefix/share/config.site
2167 ac_site_file2=$prefix/etc/config.site
2168else
2169 ac_site_file1=$ac_default_prefix/share/config.site
2170 ac_site_file2=$ac_default_prefix/etc/config.site
2171fi
2172for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2173do
2174 test "x$ac_site_file" = xNONE && continue
42ecbf5e 2175 if test -r "$ac_site_file"; then
81ecdfbb
RW
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2177$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e
DJ
2178 sed 's/^/| /' "$ac_site_file" >&5
2179 . "$ac_site_file"
2180 fi
2181done
2182
2183if test -r "$cache_file"; then
2184 # Some versions of bash will fail to source /dev/null (special
2185 # files actually), so we avoid doing that.
2186 if test -f "$cache_file"; then
81ecdfbb
RW
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2188$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2189 case $cache_file in
81ecdfbb
RW
2190 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2191 *) . "./$cache_file";;
42ecbf5e
DJ
2192 esac
2193 fi
2194else
81ecdfbb
RW
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2196$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2197 >$cache_file
2198fi
2199
2200# Check that the precious variables saved in the cache have kept the same
2201# value.
2202ac_cache_corrupted=false
81ecdfbb 2203for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2204 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2205 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2206 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2207 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2208 case $ac_old_set,$ac_new_set in
2209 set,)
81ecdfbb
RW
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2211$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2212 ac_cache_corrupted=: ;;
2213 ,set)
81ecdfbb
RW
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2215$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2216 ac_cache_corrupted=: ;;
2217 ,);;
2218 *)
2219 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2220 # differences in whitespace do not lead to failure.
2221 ac_old_val_w=`echo x $ac_old_val`
2222 ac_new_val_w=`echo x $ac_new_val`
2223 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2225$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2226 ac_cache_corrupted=:
2227 else
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2229$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2230 eval $ac_var=\$ac_old_val
2231 fi
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2233$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2235$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2236 fi;;
2237 esac
2238 # Pass precious variables to config.status.
2239 if test "$ac_new_set" = set; then
2240 case $ac_new_val in
81ecdfbb 2241 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2242 *) ac_arg=$ac_var=$ac_new_val ;;
2243 esac
2244 case " $ac_configure_args " in
2245 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2246 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2247 esac
2248 fi
2249done
2250if $ac_cache_corrupted; then
81ecdfbb
RW
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2254$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2255 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2256fi
81ecdfbb
RW
2257## -------------------- ##
2258## Main body of script. ##
2259## -------------------- ##
42ecbf5e
DJ
2260
2261ac_ext=c
2262ac_cpp='$CPP $CPPFLAGS'
2263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2265ac_compiler_gnu=$ac_cv_c_compiler_gnu
2266
2267
2268
42ecbf5e 2269
da594c4a 2270
42ecbf5e
DJ
2271
2272
2273ac_aux_dir=
81ecdfbb
RW
2274for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2275 for ac_t in install-sh install.sh shtool; do
2276 if test -f "$ac_dir/$ac_t"; then
2277 ac_aux_dir=$ac_dir
2278 ac_install_sh="$ac_aux_dir/$ac_t -c"
2279 break 2
2280 fi
2281 done
42ecbf5e
DJ
2282done
2283if test -z "$ac_aux_dir"; then
81ecdfbb 2284 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2285fi
81ecdfbb
RW
2286
2287# These three variables are undocumented and unsupported,
2288# and are intended to be withdrawn in a future Autoconf release.
2289# They can cause serious problems if a builder's source tree is in a directory
2290# whose full name contains unusual characters.
2291ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2292ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2293ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2294
42ecbf5e
DJ
2295
2296# Make sure we can run config.sub.
81ecdfbb
RW
2297$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2298 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2299
2300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2301$as_echo_n "checking build system type... " >&6; }
2302if test "${ac_cv_build+set}" = set; then :
2303 $as_echo_n "(cached) " >&6
2304else
2305 ac_build_alias=$build_alias
2306test "x$ac_build_alias" = x &&
2307 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2308test "x$ac_build_alias" = x &&
2309 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2310ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2311 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2312
2313fi
2314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2315$as_echo "$ac_cv_build" >&6; }
2316case $ac_cv_build in
2317*-*-*) ;;
2318*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2319esac
42ecbf5e 2320build=$ac_cv_build
81ecdfbb
RW
2321ac_save_IFS=$IFS; IFS='-'
2322set x $ac_cv_build
2323shift
2324build_cpu=$1
2325build_vendor=$2
2326shift; shift
2327# Remember, the first character of IFS is used to create $*,
2328# except with old shells:
2329build_os=$*
2330IFS=$ac_save_IFS
2331case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2332
2333
81ecdfbb
RW
2334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2335$as_echo_n "checking host system type... " >&6; }
2336if test "${ac_cv_host+set}" = set; then :
2337 $as_echo_n "(cached) " >&6
42ecbf5e 2338else
81ecdfbb
RW
2339 if test "x$host_alias" = x; then
2340 ac_cv_host=$ac_cv_build
2341else
2342 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2343 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2344fi
42ecbf5e
DJ
2345
2346fi
81ecdfbb
RW
2347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2348$as_echo "$ac_cv_host" >&6; }
2349case $ac_cv_host in
2350*-*-*) ;;
2351*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2352esac
42ecbf5e 2353host=$ac_cv_host
81ecdfbb
RW
2354ac_save_IFS=$IFS; IFS='-'
2355set x $ac_cv_host
2356shift
2357host_cpu=$1
2358host_vendor=$2
2359shift; shift
2360# Remember, the first character of IFS is used to create $*,
2361# except with old shells:
2362host_os=$*
2363IFS=$ac_save_IFS
2364case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2365
2366
81ecdfbb
RW
2367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2368$as_echo_n "checking target system type... " >&6; }
2369if test "${ac_cv_target+set}" = set; then :
2370 $as_echo_n "(cached) " >&6
2371else
2372 if test "x$target_alias" = x; then
2373 ac_cv_target=$ac_cv_host
42ecbf5e 2374else
81ecdfbb
RW
2375 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2376 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2377fi
42ecbf5e
DJ
2378
2379fi
81ecdfbb
RW
2380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2381$as_echo "$ac_cv_target" >&6; }
2382case $ac_cv_target in
2383*-*-*) ;;
2384*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2385esac
42ecbf5e 2386target=$ac_cv_target
81ecdfbb
RW
2387ac_save_IFS=$IFS; IFS='-'
2388set x $ac_cv_target
2389shift
2390target_cpu=$1
2391target_vendor=$2
2392shift; shift
2393# Remember, the first character of IFS is used to create $*,
2394# except with old shells:
2395target_os=$*
2396IFS=$ac_save_IFS
2397case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2398
2399
2400# The aliases save the names the user supplied, while $host etc.
2401# will get canonicalized.
2402test -n "$target_alias" &&
2403 test "$program_prefix$program_suffix$program_transform_name" = \
2404 NONENONEs,x,x, &&
2405 program_prefix=${target_alias}-
2406ac_ext=c
2407ac_cpp='$CPP $CPPFLAGS'
2408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2410ac_compiler_gnu=$ac_cv_c_compiler_gnu
2411if test -n "$ac_tool_prefix"; then
2412 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2413set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2415$as_echo_n "checking for $ac_word... " >&6; }
2416if test "${ac_cv_prog_CC+set}" = set; then :
2417 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2418else
2419 if test -n "$CC"; then
2420 ac_cv_prog_CC="$CC" # Let the user override the test.
2421else
2422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423for as_dir in $PATH
2424do
2425 IFS=$as_save_IFS
2426 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2427 for ac_exec_ext in '' $ac_executable_extensions; do
2428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2429 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2431 break 2
2432 fi
2433done
81ecdfbb
RW
2434 done
2435IFS=$as_save_IFS
42ecbf5e
DJ
2436
2437fi
2438fi
2439CC=$ac_cv_prog_CC
2440if test -n "$CC"; then
81ecdfbb
RW
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2442$as_echo "$CC" >&6; }
42ecbf5e 2443else
81ecdfbb
RW
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2445$as_echo "no" >&6; }
42ecbf5e
DJ
2446fi
2447
81ecdfbb 2448
42ecbf5e
DJ
2449fi
2450if test -z "$ac_cv_prog_CC"; then
2451 ac_ct_CC=$CC
2452 # Extract the first word of "gcc", so it can be a program name with args.
2453set dummy gcc; ac_word=$2
81ecdfbb
RW
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2455$as_echo_n "checking for $ac_word... " >&6; }
2456if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2457 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2458else
2459 if test -n "$ac_ct_CC"; then
2460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2461else
2462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463for as_dir in $PATH
2464do
2465 IFS=$as_save_IFS
2466 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2469 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2471 break 2
2472 fi
2473done
81ecdfbb
RW
2474 done
2475IFS=$as_save_IFS
42ecbf5e
DJ
2476
2477fi
2478fi
2479ac_ct_CC=$ac_cv_prog_ac_ct_CC
2480if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2482$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2483else
81ecdfbb
RW
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485$as_echo "no" >&6; }
42ecbf5e
DJ
2486fi
2487
81ecdfbb
RW
2488 if test "x$ac_ct_CC" = x; then
2489 CC=""
2490 else
2491 case $cross_compiling:$ac_tool_warned in
2492yes:)
2493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2495ac_tool_warned=yes ;;
2496esac
2497 CC=$ac_ct_CC
2498 fi
42ecbf5e
DJ
2499else
2500 CC="$ac_cv_prog_CC"
2501fi
2502
2503if test -z "$CC"; then
81ecdfbb
RW
2504 if test -n "$ac_tool_prefix"; then
2505 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
42ecbf5e 2506set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2508$as_echo_n "checking for $ac_word... " >&6; }
2509if test "${ac_cv_prog_CC+set}" = set; then :
2510 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2511else
2512 if test -n "$CC"; then
2513 ac_cv_prog_CC="$CC" # Let the user override the test.
2514else
2515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516for as_dir in $PATH
2517do
2518 IFS=$as_save_IFS
2519 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2522 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2524 break 2
2525 fi
2526done
81ecdfbb
RW
2527 done
2528IFS=$as_save_IFS
42ecbf5e
DJ
2529
2530fi
2531fi
2532CC=$ac_cv_prog_CC
2533if test -n "$CC"; then
81ecdfbb
RW
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2535$as_echo "$CC" >&6; }
42ecbf5e 2536else
81ecdfbb
RW
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2538$as_echo "no" >&6; }
42ecbf5e
DJ
2539fi
2540
81ecdfbb
RW
2541
2542 fi
42ecbf5e 2543fi
81ecdfbb 2544if test -z "$CC"; then
42ecbf5e
DJ
2545 # Extract the first word of "cc", so it can be a program name with args.
2546set dummy cc; ac_word=$2
81ecdfbb
RW
2547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548$as_echo_n "checking for $ac_word... " >&6; }
2549if test "${ac_cv_prog_CC+set}" = set; then :
2550 $as_echo_n "(cached) " >&6
42ecbf5e 2551else
81ecdfbb
RW
2552 if test -n "$CC"; then
2553 ac_cv_prog_CC="$CC" # Let the user override the test.
42ecbf5e 2554else
81ecdfbb 2555 ac_prog_rejected=no
42ecbf5e
DJ
2556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557for as_dir in $PATH
2558do
2559 IFS=$as_save_IFS
2560 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2563 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2564 ac_prog_rejected=yes
2565 continue
2566 fi
2567 ac_cv_prog_CC="cc"
2568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2569 break 2
2570 fi
2571done
81ecdfbb
RW
2572 done
2573IFS=$as_save_IFS
42ecbf5e
DJ
2574
2575if test $ac_prog_rejected = yes; then
2576 # We found a bogon in the path, so make sure we never use it.
2577 set dummy $ac_cv_prog_CC
2578 shift
2579 if test $# != 0; then
2580 # We chose a different compiler from the bogus one.
2581 # However, it has the same basename, so the bogon will be chosen
2582 # first if we set CC to just the basename; use the full file name.
2583 shift
2584 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2585 fi
2586fi
2587fi
2588fi
2589CC=$ac_cv_prog_CC
2590if test -n "$CC"; then
81ecdfbb
RW
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2592$as_echo "$CC" >&6; }
42ecbf5e 2593else
81ecdfbb
RW
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2595$as_echo "no" >&6; }
42ecbf5e
DJ
2596fi
2597
81ecdfbb 2598
42ecbf5e
DJ
2599fi
2600if test -z "$CC"; then
2601 if test -n "$ac_tool_prefix"; then
81ecdfbb 2602 for ac_prog in cl.exe
42ecbf5e
DJ
2603 do
2604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2605set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607$as_echo_n "checking for $ac_word... " >&6; }
2608if test "${ac_cv_prog_CC+set}" = set; then :
2609 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2610else
2611 if test -n "$CC"; then
2612 ac_cv_prog_CC="$CC" # Let the user override the test.
2613else
2614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615for as_dir in $PATH
2616do
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2621 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2623 break 2
2624 fi
2625done
81ecdfbb
RW
2626 done
2627IFS=$as_save_IFS
42ecbf5e
DJ
2628
2629fi
2630fi
2631CC=$ac_cv_prog_CC
2632if test -n "$CC"; then
81ecdfbb
RW
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2634$as_echo "$CC" >&6; }
42ecbf5e 2635else
81ecdfbb
RW
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637$as_echo "no" >&6; }
42ecbf5e
DJ
2638fi
2639
81ecdfbb 2640
42ecbf5e
DJ
2641 test -n "$CC" && break
2642 done
2643fi
2644if test -z "$CC"; then
2645 ac_ct_CC=$CC
81ecdfbb 2646 for ac_prog in cl.exe
42ecbf5e
DJ
2647do
2648 # Extract the first word of "$ac_prog", so it can be a program name with args.
2649set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651$as_echo_n "checking for $ac_word... " >&6; }
2652if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2653 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2654else
2655 if test -n "$ac_ct_CC"; then
2656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2657else
2658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659for as_dir in $PATH
2660do
2661 IFS=$as_save_IFS
2662 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2665 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2667 break 2
2668 fi
2669done
81ecdfbb
RW
2670 done
2671IFS=$as_save_IFS
42ecbf5e
DJ
2672
2673fi
2674fi
2675ac_ct_CC=$ac_cv_prog_ac_ct_CC
2676if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2678$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2679else
81ecdfbb
RW
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681$as_echo "no" >&6; }
42ecbf5e
DJ
2682fi
2683
81ecdfbb 2684
42ecbf5e
DJ
2685 test -n "$ac_ct_CC" && break
2686done
2687
81ecdfbb
RW
2688 if test "x$ac_ct_CC" = x; then
2689 CC=""
2690 else
2691 case $cross_compiling:$ac_tool_warned in
2692yes:)
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2695ac_tool_warned=yes ;;
2696esac
2697 CC=$ac_ct_CC
2698 fi
42ecbf5e
DJ
2699fi
2700
2701fi
2702
2703
81ecdfbb
RW
2704test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2706as_fn_error "no acceptable C compiler found in \$PATH
2707See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
2708
2709# Provide some information about the compiler.
81ecdfbb
RW
2710$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2711set X $ac_compile
2712ac_compiler=$2
2713for ac_option in --version -v -V -qversion; do
2714 { { ac_try="$ac_compiler $ac_option >&5"
2715case "(($ac_try" in
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2718esac
2719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2720$as_echo "$ac_try_echo"; } >&5
2721 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
42ecbf5e 2722 ac_status=$?
81ecdfbb
RW
2723 if test -s conftest.err; then
2724 sed '10a\
2725... rest of stderr output deleted ...
2726 10q' conftest.err >conftest.er1
2727 cat conftest.er1 >&5
2728 rm -f conftest.er1 conftest.err
2729 fi
2730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2731 test $ac_status = 0; }
2732done
42ecbf5e 2733
81ecdfbb 2734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
2735/* end confdefs.h. */
2736
2737int
2738main ()
2739{
2740
2741 ;
2742 return 0;
2743}
2744_ACEOF
2745ac_clean_files_save=$ac_clean_files
81ecdfbb 2746ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
42ecbf5e
DJ
2747# Try to create an executable without -o first, disregard a.out.
2748# It will help us diagnose broken compilers, and finding out an intuition
2749# of exeext.
81ecdfbb
RW
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2751$as_echo_n "checking for C compiler default output file name... " >&6; }
2752ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2753
2754# The possible output files:
2755ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2756
2757ac_rmfiles=
2758for ac_file in $ac_files
2759do
2760 case $ac_file in
2761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2762 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2763 esac
2764done
2765rm -f $ac_rmfiles
2766
2767if { { ac_try="$ac_link_default"
2768case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2771esac
2772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2773$as_echo "$ac_try_echo"; } >&5
2774 (eval "$ac_link_default") 2>&5
2775 ac_status=$?
2776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2777 test $ac_status = 0; }; then :
2778 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2779# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2780# in a Makefile. We should not override ac_cv_exeext if it was cached,
2781# so that the user can short-circuit this test for compilers unknown to
2782# Autoconf.
2783for ac_file in $ac_files ''
42ecbf5e
DJ
2784do
2785 test -f "$ac_file" || continue
2786 case $ac_file in
81ecdfbb 2787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
42ecbf5e
DJ
2788 ;;
2789 [ab].out )
2790 # We found the default executable, but exeext='' is most
2791 # certainly right.
2792 break;;
2793 *.* )
81ecdfbb
RW
2794 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2795 then :; else
2796 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2797 fi
2798 # We set ac_cv_exeext here because the later test for it is not
2799 # safe: cross compilers may not add the suffix if given an `-o'
2800 # argument, so we may need to know it at that point already.
2801 # Even if this section looks crufty: it has the advantage of
2802 # actually working.
42ecbf5e
DJ
2803 break;;
2804 * )
2805 break;;
2806 esac
2807done
81ecdfbb
RW
2808test "$ac_cv_exeext" = no && ac_cv_exeext=
2809
42ecbf5e 2810else
81ecdfbb
RW
2811 ac_file=''
2812fi
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2814$as_echo "$ac_file" >&6; }
2815if test -z "$ac_file"; then :
2816 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
2817sed 's/^/| /' conftest.$ac_ext >&5
2818
81ecdfbb
RW
2819{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2821{ as_fn_set_status 77
2822as_fn_error "C compiler cannot create executables
2823See \`config.log' for more details." "$LINENO" 5; }; }
42ecbf5e 2824fi
42ecbf5e 2825ac_exeext=$ac_cv_exeext
42ecbf5e 2826
81ecdfbb 2827# Check that the compiler produces executables we can run. If not, either
42ecbf5e 2828# the compiler is broken, or we cross compile.
81ecdfbb
RW
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2830$as_echo_n "checking whether the C compiler works... " >&6; }
42ecbf5e
DJ
2831# If not cross compiling, check that we can run a simple program.
2832if test "$cross_compiling" != yes; then
2833 if { ac_try='./$ac_file'
81ecdfbb
RW
2834 { { case "(($ac_try" in
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2837esac
2838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2839$as_echo "$ac_try_echo"; } >&5
2840 (eval "$ac_try") 2>&5
42ecbf5e 2841 ac_status=$?
81ecdfbb
RW
2842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2843 test $ac_status = 0; }; }; then
42ecbf5e
DJ
2844 cross_compiling=no
2845 else
2846 if test "$cross_compiling" = maybe; then
2847 cross_compiling=yes
2848 else
81ecdfbb
RW
2849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2851as_fn_error "cannot run C compiled programs.
42ecbf5e 2852If you meant to cross compile, use \`--host'.
81ecdfbb 2853See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
2854 fi
2855 fi
2856fi
81ecdfbb
RW
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2858$as_echo "yes" >&6; }
42ecbf5e 2859
81ecdfbb 2860rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
42ecbf5e 2861ac_clean_files=$ac_clean_files_save
81ecdfbb 2862# Check that the compiler produces executables we can run. If not, either
42ecbf5e 2863# the compiler is broken, or we cross compile.
81ecdfbb
RW
2864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2865$as_echo_n "checking whether we are cross compiling... " >&6; }
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2867$as_echo "$cross_compiling" >&6; }
2868
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2870$as_echo_n "checking for suffix of executables... " >&6; }
2871if { { ac_try="$ac_link"
2872case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2875esac
2876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2877$as_echo "$ac_try_echo"; } >&5
2878 (eval "$ac_link") 2>&5
42ecbf5e 2879 ac_status=$?
81ecdfbb
RW
2880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2881 test $ac_status = 0; }; then :
42ecbf5e
DJ
2882 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2883# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2884# work properly (i.e., refer to `conftest.exe'), while it won't with
2885# `rm'.
2886for ac_file in conftest.exe conftest conftest.*; do
2887 test -f "$ac_file" || continue
2888 case $ac_file in
81ecdfbb 2889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
42ecbf5e 2890 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
42ecbf5e
DJ
2891 break;;
2892 * ) break;;
2893 esac
2894done
2895else
81ecdfbb
RW
2896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2897$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2898as_fn_error "cannot compute suffix of executables: cannot compile and link
2899See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 2900fi
42ecbf5e 2901rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2903$as_echo "$ac_cv_exeext" >&6; }
42ecbf5e
DJ
2904
2905rm -f conftest.$ac_ext
2906EXEEXT=$ac_cv_exeext
2907ac_exeext=$EXEEXT
81ecdfbb
RW
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2909$as_echo_n "checking for suffix of object files... " >&6; }
2910if test "${ac_cv_objext+set}" = set; then :
2911 $as_echo_n "(cached) " >&6
42ecbf5e 2912else
81ecdfbb 2913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
2914/* end confdefs.h. */
2915
2916int
2917main ()
2918{
2919
2920 ;
2921 return 0;
2922}
2923_ACEOF
2924rm -f conftest.o conftest.obj
81ecdfbb
RW
2925if { { ac_try="$ac_compile"
2926case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929esac
2930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2931$as_echo "$ac_try_echo"; } >&5
2932 (eval "$ac_compile") 2>&5
2933 ac_status=$?
2934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2935 test $ac_status = 0; }; then :
2936 for ac_file in conftest.o conftest.obj conftest.*; do
2937 test -f "$ac_file" || continue;
42ecbf5e 2938 case $ac_file in
81ecdfbb 2939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
42ecbf5e
DJ
2940 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2941 break;;
2942 esac
2943done
2944else
81ecdfbb 2945 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
2946sed 's/^/| /' conftest.$ac_ext >&5
2947
81ecdfbb
RW
2948{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2949$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2950as_fn_error "cannot compute suffix of object files: cannot compile
2951See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 2952fi
42ecbf5e
DJ
2953rm -f conftest.$ac_cv_objext conftest.$ac_ext
2954fi
81ecdfbb
RW
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2956$as_echo "$ac_cv_objext" >&6; }
42ecbf5e
DJ
2957OBJEXT=$ac_cv_objext
2958ac_objext=$OBJEXT
81ecdfbb
RW
2959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2960$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2961if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2962 $as_echo_n "(cached) " >&6
42ecbf5e 2963else
81ecdfbb 2964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
2965/* end confdefs.h. */
2966
2967int
2968main ()
2969{
2970#ifndef __GNUC__
2971 choke me
2972#endif
2973
2974 ;
2975 return 0;
2976}
2977_ACEOF
81ecdfbb 2978if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
2979 ac_compiler_gnu=yes
2980else
81ecdfbb 2981 ac_compiler_gnu=no
42ecbf5e 2982fi
81ecdfbb 2983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e
DJ
2984ac_cv_c_compiler_gnu=$ac_compiler_gnu
2985
2986fi
81ecdfbb
RW
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2988$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2989if test $ac_compiler_gnu = yes; then
2990 GCC=yes
2991else
2992 GCC=
2993fi
42ecbf5e
DJ
2994ac_test_CFLAGS=${CFLAGS+set}
2995ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2997$as_echo_n "checking whether $CC accepts -g... " >&6; }
2998if test "${ac_cv_prog_cc_g+set}" = set; then :
2999 $as_echo_n "(cached) " >&6
3000else
3001 ac_save_c_werror_flag=$ac_c_werror_flag
3002 ac_c_werror_flag=yes
3003 ac_cv_prog_cc_g=no
3004 CFLAGS="-g"
3005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3006/* end confdefs.h. */
3007
3008int
3009main ()
3010{
3011
3012 ;
3013 return 0;
3014}
3015_ACEOF
81ecdfbb 3016if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3017 ac_cv_prog_cc_g=yes
3018else
81ecdfbb
RW
3019 CFLAGS=""
3020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3021/* end confdefs.h. */
3022
3023int
3024main ()
3025{
3026
3027 ;
3028 return 0;
3029}
3030_ACEOF
3031if ac_fn_c_try_compile "$LINENO"; then :
3032
3033else
3034 ac_c_werror_flag=$ac_save_c_werror_flag
3035 CFLAGS="-g"
3036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037/* end confdefs.h. */
3038
3039int
3040main ()
3041{
42ecbf5e 3042
81ecdfbb
RW
3043 ;
3044 return 0;
3045}
3046_ACEOF
3047if ac_fn_c_try_compile "$LINENO"; then :
3048 ac_cv_prog_cc_g=yes
3049fi
3050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 3051fi
81ecdfbb 3052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 3053fi
81ecdfbb
RW
3054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055 ac_c_werror_flag=$ac_save_c_werror_flag
3056fi
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3058$as_echo "$ac_cv_prog_cc_g" >&6; }
42ecbf5e
DJ
3059if test "$ac_test_CFLAGS" = set; then
3060 CFLAGS=$ac_save_CFLAGS
3061elif test $ac_cv_prog_cc_g = yes; then
3062 if test "$GCC" = yes; then
3063 CFLAGS="-g -O2"
3064 else
3065 CFLAGS="-g"
3066 fi
3067else
3068 if test "$GCC" = yes; then
3069 CFLAGS="-O2"
3070 else
3071 CFLAGS=
3072 fi
3073fi
81ecdfbb
RW
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3075$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3076if test "${ac_cv_prog_cc_c89+set}" = set; then :
3077 $as_echo_n "(cached) " >&6
42ecbf5e 3078else
81ecdfbb 3079 ac_cv_prog_cc_c89=no
42ecbf5e 3080ac_save_CC=$CC
81ecdfbb 3081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3082/* end confdefs.h. */
3083#include <stdarg.h>
3084#include <stdio.h>
3085#include <sys/types.h>
3086#include <sys/stat.h>
3087/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3088struct buf { int x; };
3089FILE * (*rcsopen) (struct buf *, struct stat *, int);
3090static char *e (p, i)
3091 char **p;
3092 int i;
3093{
3094 return p[i];
3095}
3096static char *f (char * (*g) (char **, int), char **p, ...)
3097{
3098 char *s;
3099 va_list v;
3100 va_start (v,p);
3101 s = g (p, va_arg (v,int));
3102 va_end (v);
3103 return s;
3104}
3105
3106/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3107 function prototypes and stuff, but not '\xHH' hex character constants.
3108 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3109 as 'x'. The following induces an error, until -std is added to get
42ecbf5e
DJ
3110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3111 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3112 that's true only with -std. */
42ecbf5e
DJ
3113int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3114
81ecdfbb
RW
3115/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3116 inside strings and character constants. */
3117#define FOO(x) 'x'
3118int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3119
42ecbf5e
DJ
3120int test (int i, double x);
3121struct s1 {int (*f) (int a);};
3122struct s2 {int (*f) (double a);};
3123int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3124int argc;
3125char **argv;
3126int
3127main ()
3128{
3129return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3130 ;
3131 return 0;
3132}
3133_ACEOF
81ecdfbb
RW
3134for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3135 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
42ecbf5e
DJ
3136do
3137 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3138 if ac_fn_c_try_compile "$LINENO"; then :
3139 ac_cv_prog_cc_c89=$ac_arg
42ecbf5e 3140fi
81ecdfbb
RW
3141rm -f core conftest.err conftest.$ac_objext
3142 test "x$ac_cv_prog_cc_c89" != "xno" && break
42ecbf5e 3143done
81ecdfbb 3144rm -f conftest.$ac_ext
42ecbf5e
DJ
3145CC=$ac_save_CC
3146
3147fi
81ecdfbb
RW
3148# AC_CACHE_VAL
3149case "x$ac_cv_prog_cc_c89" in
3150 x)
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3152$as_echo "none needed" >&6; } ;;
3153 xno)
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3155$as_echo "unsupported" >&6; } ;;
42ecbf5e 3156 *)
81ecdfbb
RW
3157 CC="$CC $ac_cv_prog_cc_c89"
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3159$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
42ecbf5e 3160esac
81ecdfbb 3161if test "x$ac_cv_prog_cc_c89" != xno; then :
42ecbf5e 3162
42ecbf5e
DJ
3163fi
3164
42ecbf5e
DJ
3165ac_ext=c
3166ac_cpp='$CPP $CPPFLAGS'
3167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3169ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170
3171
81ecdfbb
RW
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3173$as_echo_n "checking for library containing strerror... " >&6; }
3174if test "${ac_cv_search_strerror+set}" = set; then :
3175 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3176else
3177 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3179/* end confdefs.h. */
3180
81ecdfbb
RW
3181/* Override any GCC internal prototype to avoid an error.
3182 Use char because int might match the return type of a GCC
3183 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
3184#ifdef __cplusplus
3185extern "C"
3186#endif
42ecbf5e
DJ
3187char strerror ();
3188int
3189main ()
3190{
81ecdfbb 3191return strerror ();
42ecbf5e
DJ
3192 ;
3193 return 0;
3194}
3195_ACEOF
81ecdfbb
RW
3196for ac_lib in '' cposix; do
3197 if test -z "$ac_lib"; then
3198 ac_res="none required"
3199 else
3200 ac_res=-l$ac_lib
42ecbf5e 3201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3202 fi
3203 if ac_fn_c_try_link "$LINENO"; then :
3204 ac_cv_search_strerror=$ac_res
3205fi
3206rm -f core conftest.err conftest.$ac_objext \
3207 conftest$ac_exeext
3208 if test "${ac_cv_search_strerror+set}" = set; then :
3209 break
3210fi
3211done
3212if test "${ac_cv_search_strerror+set}" = set; then :
42ecbf5e 3213
42ecbf5e 3214else
81ecdfbb 3215 ac_cv_search_strerror=no
42ecbf5e 3216fi
81ecdfbb 3217rm conftest.$ac_ext
42ecbf5e
DJ
3218LIBS=$ac_func_search_save_LIBS
3219fi
81ecdfbb
RW
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3221$as_echo "$ac_cv_search_strerror" >&6; }
3222ac_res=$ac_cv_search_strerror
3223if test "$ac_res" != no; then :
3224 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e
DJ
3225
3226fi
3227
3228
3229BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
81ecdfbb
RW
3230am__api_version='1.11'
3231
42ecbf5e
DJ
3232# Find a good install program. We prefer a C program (faster),
3233# so one script is as good as another. But avoid the broken or
3234# incompatible versions:
3235# SysV /etc/install, /usr/sbin/install
3236# SunOS /usr/etc/install
3237# IRIX /sbin/install
3238# AIX /bin/install
3239# AmigaOS /C/install, which installs bootblocks on floppy discs
3240# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3241# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3242# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3243# OS/2's system install, which has a completely different semantic
3244# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3245# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3247$as_echo_n "checking for a BSD-compatible install... " >&6; }
42ecbf5e 3248if test -z "$INSTALL"; then
81ecdfbb
RW
3249if test "${ac_cv_path_install+set}" = set; then :
3250 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3251else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253for as_dir in $PATH
3254do
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3257 # Account for people who put trailing slashes in PATH elements.
3258case $as_dir/ in #((
3259 ./ | .// | /[cC]/* | \
42ecbf5e 3260 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3261 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
42ecbf5e
DJ
3262 /usr/ucb/* ) ;;
3263 *)
3264 # OSF1 and SCO ODT 3.0 have their own names for install.
3265 # Don't use installbsd from OSF since it installs stuff as root
3266 # by default.
3267 for ac_prog in ginstall scoinst install; do
3268 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3269 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
42ecbf5e
DJ
3270 if test $ac_prog = install &&
3271 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3272 # AIX install. It has an incompatible calling convention.
3273 :
42ecbf5e
DJ
3274 elif test $ac_prog = install &&
3275 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3276 # program-specific install script used by HP pwplus--don't use.
3277 :
252b5132 3278 else
58c85be7
RW
3279 rm -rf conftest.one conftest.two conftest.dir
3280 echo one > conftest.one
3281 echo two > conftest.two
3282 mkdir conftest.dir
3283 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3284 test -s conftest.one && test -s conftest.two &&
3285 test -s conftest.dir/conftest.one &&
3286 test -s conftest.dir/conftest.two
3287 then
3288 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3289 break 3
3290 fi
252b5132
RH
3291 fi
3292 fi
d15b04bd 3293 done
42ecbf5e
DJ
3294 done
3295 ;;
3296esac
81ecdfbb
RW
3297
3298 done
3299IFS=$as_save_IFS
42ecbf5e 3300
58c85be7 3301rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3302
3303fi
3304 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 3305 INSTALL=$ac_cv_path_install
252b5132 3306 else
58c85be7
RW
3307 # As a last resort, use the slow shell script. Don't cache a
3308 # value for INSTALL within a source directory, because that will
252b5132 3309 # break other packages using the cache if that directory is
58c85be7 3310 # removed, or if the value is a relative name.
42ecbf5e 3311 INSTALL=$ac_install_sh
252b5132
RH
3312 fi
3313fi
81ecdfbb
RW
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3315$as_echo "$INSTALL" >&6; }
252b5132
RH
3316
3317# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3318# It thinks the first close brace ends the variable substitution.
3319test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3320
42ecbf5e 3321test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3322
3323test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3324
81ecdfbb
RW
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3326$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3327# Just in case
3328sleep 1
42ecbf5e 3329echo timestamp > conftest.file
81ecdfbb
RW
3330# Reject unsafe characters in $srcdir or the absolute working directory
3331# name. Accept space and tab only in the latter.
3332am_lf='
3333'
3334case `pwd` in
3335 *[\\\"\#\$\&\'\`$am_lf]*)
3336 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3337esac
3338case $srcdir in
3339 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3340 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3341esac
3342
252b5132
RH
3343# Do `set' in a subshell so we don't clobber the current shell's
3344# arguments. Must try -L first in case configure is actually a
3345# symlink; some systems play weird games with the mod time of symlinks
3346# (eg FreeBSD returns the mod time of the symlink's containing
3347# directory).
3348if (
81ecdfbb 3349 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3350 if test "$*" = "X"; then
3351 # -L didn't work.
81ecdfbb 3352 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3353 fi
42ecbf5e
DJ
3354 rm -f conftest.file
3355 if test "$*" != "X $srcdir/configure conftest.file" \
3356 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3357
3358 # If neither matched, then we have a broken ls. This can happen
3359 # if, for instance, CONFIG_SHELL is bash and it inherits a
3360 # broken ls alias from the environment. This has actually
3361 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3362 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3363alias in your environment" "$LINENO" 5
252b5132
RH
3364 fi
3365
42ecbf5e 3366 test "$2" = conftest.file
252b5132
RH
3367 )
3368then
3369 # Ok.
3370 :
3371else
81ecdfbb
RW
3372 as_fn_error "newly created file is older than distributed files!
3373Check your system clock" "$LINENO" 5
42ecbf5e 3374fi
81ecdfbb
RW
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3376$as_echo "yes" >&6; }
42ecbf5e 3377test "$program_prefix" != NONE &&
81ecdfbb 3378 program_transform_name="s&^&$program_prefix&;$program_transform_name"
42ecbf5e
DJ
3379# Use a double $ so make ignores it.
3380test "$program_suffix" != NONE &&
81ecdfbb
RW
3381 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3382# Double any \ or $.
42ecbf5e 3383# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3384ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3385program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e
DJ
3386
3387# expand $ac_aux_dir to an absolute path
3388am_aux_dir=`cd $ac_aux_dir && pwd`
3389
81ecdfbb
RW
3390if test x"${MISSING+set}" != xset; then
3391 case $am_aux_dir in
3392 *\ * | *\ *)
3393 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3394 *)
3395 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3396 esac
3397fi
42ecbf5e
DJ
3398# Use eval to expand $SHELL
3399if eval "$MISSING --run true"; then
3400 am_missing_run="$MISSING --run "
3401else
3402 am_missing_run=
81ecdfbb
RW
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3404$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
42ecbf5e
DJ
3405fi
3406
81ecdfbb
RW
3407if test x"${install_sh}" != xset; then
3408 case $am_aux_dir in
3409 *\ * | *\ *)
3410 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3411 *)
3412 install_sh="\${SHELL} $am_aux_dir/install-sh"
3413 esac
3414fi
3415
3416# Installed binaries are usually stripped using `strip' when the user
3417# run `make install-strip'. However `strip' might not be the right
3418# tool to use in cross-compilation environments, therefore Automake
3419# will honor the `STRIP' environment variable to overrule this program.
3420if test "$cross_compiling" != no; then
3421 if test -n "$ac_tool_prefix"; then
3422 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3423set dummy ${ac_tool_prefix}strip; ac_word=$2
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425$as_echo_n "checking for $ac_word... " >&6; }
3426if test "${ac_cv_prog_STRIP+set}" = set; then :
3427 $as_echo_n "(cached) " >&6
42ecbf5e 3428else
81ecdfbb
RW
3429 if test -n "$STRIP"; then
3430 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
42ecbf5e
DJ
3431else
3432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433for as_dir in $PATH
3434do
3435 IFS=$as_save_IFS
3436 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3439 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 break 2
3442 fi
3443done
3444 done
3445IFS=$as_save_IFS
3446
3447fi
3448fi
3449STRIP=$ac_cv_prog_STRIP
3450if test -n "$STRIP"; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3452$as_echo "$STRIP" >&6; }
3453else
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455$as_echo "no" >&6; }
3456fi
3457
3458
3459fi
3460if test -z "$ac_cv_prog_STRIP"; then
3461 ac_ct_STRIP=$STRIP
3462 # Extract the first word of "strip", so it can be a program name with args.
3463set dummy strip; ac_word=$2
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465$as_echo_n "checking for $ac_word... " >&6; }
3466if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3467 $as_echo_n "(cached) " >&6
3468else
3469 if test -n "$ac_ct_STRIP"; then
3470 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3471else
3472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473for as_dir in $PATH
3474do
3475 IFS=$as_save_IFS
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479 ac_cv_prog_ac_ct_STRIP="strip"
3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3481 break 2
3482 fi
3483done
81ecdfbb
RW
3484 done
3485IFS=$as_save_IFS
3486
3487fi
3488fi
3489ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3490if test -n "$ac_ct_STRIP"; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3492$as_echo "$ac_ct_STRIP" >&6; }
3493else
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495$as_echo "no" >&6; }
3496fi
3497
3498 if test "x$ac_ct_STRIP" = x; then
3499 STRIP=":"
3500 else
3501 case $cross_compiling:$ac_tool_warned in
3502yes:)
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3505ac_tool_warned=yes ;;
3506esac
3507 STRIP=$ac_ct_STRIP
3508 fi
3509else
3510 STRIP="$ac_cv_prog_STRIP"
3511fi
3512
3513fi
3514INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3515
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3517$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3518if test -z "$MKDIR_P"; then
3519 if test "${ac_cv_path_mkdir+set}" = set; then :
3520 $as_echo_n "(cached) " >&6
3521else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3524do
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_prog in mkdir gmkdir; do
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3530 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3531 'mkdir (GNU coreutils) '* | \
3532 'mkdir (coreutils) '* | \
3533 'mkdir (fileutils) '4.1*)
3534 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3535 break 3;;
3536 esac
3537 done
3538 done
3539 done
3540IFS=$as_save_IFS
3541
3542fi
3543
3544 if test "${ac_cv_path_mkdir+set}" = set; then
3545 MKDIR_P="$ac_cv_path_mkdir -p"
3546 else
3547 # As a last resort, use the slow shell script. Don't cache a
3548 # value for MKDIR_P within a source directory, because that will
3549 # break other packages using the cache if that directory is
3550 # removed, or if the value is a relative name.
3551 test -d ./--version && rmdir ./--version
3552 MKDIR_P="$ac_install_sh -d"
3553 fi
3554fi
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3556$as_echo "$MKDIR_P" >&6; }
3557
3558mkdir_p="$MKDIR_P"
3559case $mkdir_p in
3560 [\\/$]* | ?:[\\/]*) ;;
3561 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3562esac
3563
3564for ac_prog in gawk mawk nawk awk
3565do
3566 # Extract the first word of "$ac_prog", so it can be a program name with args.
3567set dummy $ac_prog; ac_word=$2
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569$as_echo_n "checking for $ac_word... " >&6; }
3570if test "${ac_cv_prog_AWK+set}" = set; then :
3571 $as_echo_n "(cached) " >&6
3572else
3573 if test -n "$AWK"; then
3574 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3575else
3576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577for as_dir in $PATH
3578do
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3583 ac_cv_prog_AWK="$ac_prog"
3584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 break 2
3586 fi
42ecbf5e 3587done
81ecdfbb
RW
3588 done
3589IFS=$as_save_IFS
42ecbf5e
DJ
3590
3591fi
3592fi
3593AWK=$ac_cv_prog_AWK
3594if test -n "$AWK"; then
81ecdfbb
RW
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3596$as_echo "$AWK" >&6; }
42ecbf5e 3597else
81ecdfbb
RW
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599$as_echo "no" >&6; }
42ecbf5e
DJ
3600fi
3601
81ecdfbb 3602
42ecbf5e
DJ
3603 test -n "$AWK" && break
3604done
3605
81ecdfbb
RW
3606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3607$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3608set x ${MAKE-make}
3609ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3610if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3611 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3612else
3613 cat >conftest.make <<\_ACEOF
81ecdfbb 3614SHELL = /bin/sh
42ecbf5e 3615all:
81ecdfbb 3616 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e
DJ
3617_ACEOF
3618# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3619case `${MAKE-make} -f conftest.make 2>/dev/null` in
3620 *@@@%%%=?*=@@@%%%*)
3621 eval ac_cv_prog_make_${ac_make}_set=yes;;
3622 *)
3623 eval ac_cv_prog_make_${ac_make}_set=no;;
3624esac
42ecbf5e
DJ
3625rm -f conftest.make
3626fi
81ecdfbb
RW
3627if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3629$as_echo "yes" >&6; }
42ecbf5e
DJ
3630 SET_MAKE=
3631else
81ecdfbb
RW
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633$as_echo "no" >&6; }
42ecbf5e
DJ
3634 SET_MAKE="MAKE=${MAKE-make}"
3635fi
3636
3637rm -rf .tst 2>/dev/null
3638mkdir .tst 2>/dev/null
3639if test -d .tst; then
3640 am__leading_dot=.
3641else
3642 am__leading_dot=_
3643fi
3644rmdir .tst 2>/dev/null
3645
3646DEPDIR="${am__leading_dot}deps"
3647
81ecdfbb 3648ac_config_commands="$ac_config_commands depfiles"
42ecbf5e
DJ
3649
3650
3651am_make=${MAKE-make}
3652cat > confinc << 'END'
3653am__doit:
81ecdfbb 3654 @echo this is the am__doit target
42ecbf5e
DJ
3655.PHONY: am__doit
3656END
3657# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3659$as_echo_n "checking for style of include used by $am_make... " >&6; }
42ecbf5e
DJ
3660am__include="#"
3661am__quote=
3662_am_result=none
3663# First try GNU make style include.
3664echo "include confinc" > confmf
81ecdfbb
RW
3665# Ignore all kinds of additional output from `make'.
3666case `$am_make -s -f confmf 2> /dev/null` in #(
3667*the\ am__doit\ target*)
3668 am__include=include
3669 am__quote=
3670 _am_result=GNU
3671 ;;
3672esac
42ecbf5e
DJ
3673# Now try BSD make style include.
3674if test "$am__include" = "#"; then
3675 echo '.include "confinc"' > confmf
81ecdfbb
RW
3676 case `$am_make -s -f confmf 2> /dev/null` in #(
3677 *the\ am__doit\ target*)
3678 am__include=.include
3679 am__quote="\""
3680 _am_result=BSD
3681 ;;
3682 esac
42ecbf5e
DJ
3683fi
3684
3685
81ecdfbb
RW
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3687$as_echo "$_am_result" >&6; }
42ecbf5e
DJ
3688rm -f confinc confmf
3689
81ecdfbb
RW
3690# Check whether --enable-dependency-tracking was given.
3691if test "${enable_dependency_tracking+set}" = set; then :
3692 enableval=$enable_dependency_tracking;
3693fi
42ecbf5e 3694
42ecbf5e
DJ
3695if test "x$enable_dependency_tracking" != xno; then
3696 am_depcomp="$ac_aux_dir/depcomp"
3697 AMDEPBACKSLASH='\'
3698fi
81ecdfbb 3699 if test "x$enable_dependency_tracking" != xno; then
42ecbf5e
DJ
3700 AMDEP_TRUE=
3701 AMDEP_FALSE='#'
3702else
3703 AMDEP_TRUE='#'
3704 AMDEP_FALSE=
3705fi
3706
3707
81ecdfbb
RW
3708if test "`cd $srcdir && pwd`" != "`pwd`"; then
3709 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3710 # is not polluted with repeated "-I."
3711 am__isrc=' -I$(srcdir)'
3712 # test to see if srcdir already configured
3713 if test -f $srcdir/config.status; then
3714 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3715 fi
42ecbf5e
DJ
3716fi
3717
3718# test whether we have cygpath
3719if test -z "$CYGPATH_W"; then
3720 if (cygpath --version) >/dev/null 2>/dev/null; then
3721 CYGPATH_W='cygpath -w'
3722 else
3723 CYGPATH_W=echo
3724 fi
3725fi
3726
3727
3728# Define the identity of the package.
3729 PACKAGE=binutils
3730 VERSION=${BFD_VERSION}
3731
3732
3733cat >>confdefs.h <<_ACEOF
3734#define PACKAGE "$PACKAGE"
3735_ACEOF
3736
3737
3738cat >>confdefs.h <<_ACEOF
3739#define VERSION "$VERSION"
3740_ACEOF
3741
3742# Some tools Automake needs.
3743
3744ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3745
3746
3747AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3748
3749
3750AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3751
3752
3753AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3754
3755
3756MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3757
42ecbf5e
DJ
3758# We need awk for the "check" target. The system "awk" is bad on
3759# some platforms.
3760# Always define AMTAR for backward compatibility.
252b5132 3761
42ecbf5e 3762AMTAR=${AMTAR-"${am_missing_run}tar"}
252b5132 3763
42ecbf5e 3764am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
252b5132
RH
3765
3766
3767
252b5132 3768
42ecbf5e
DJ
3769depcc="$CC" am_compiler_list=
3770
81ecdfbb
RW
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3772$as_echo_n "checking dependency style of $depcc... " >&6; }
3773if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3774 $as_echo_n "(cached) " >&6
252b5132 3775else
42ecbf5e
DJ
3776 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3777 # We make a subdir and do the tests there. Otherwise we can end up
3778 # making bogus files that we don't know about and never remove. For
3779 # instance it was reported that on HP-UX the gcc test will end up
3780 # making a dummy file named `D' -- because `-MD' means `put the output
3781 # in D'.
3782 mkdir conftest.dir
3783 # Copy depcomp to subdir because otherwise we won't find it if we're
3784 # using a relative directory.
3785 cp "$am_depcomp" conftest.dir
3786 cd conftest.dir
3787 # We will build objects and dependencies in a subdirectory because
3788 # it helps to detect inapplicable dependency modes. For instance
3789 # both Tru64's cc and ICC support -MD to output dependencies as a
3790 # side effect of compilation, but ICC will put the dependencies in
3791 # the current directory while Tru64 will put them in the object
3792 # directory.
3793 mkdir sub
252b5132 3794
42ecbf5e
DJ
3795 am_cv_CC_dependencies_compiler_type=none
3796 if test "$am_compiler_list" = ""; then
3797 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3798 fi
81ecdfbb
RW
3799 am__universal=false
3800 case " $depcc " in #(
3801 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3802 esac
3803
42ecbf5e
DJ
3804 for depmode in $am_compiler_list; do
3805 # Setup a source with many dependencies, because some compilers
3806 # like to wrap large dependency lists on column 80 (with \), and
3807 # we should not choose a depcomp mode which is confused by this.
3808 #
3809 # We need to recreate these files for each test, as the compiler may
3810 # overwrite some of them when testing with obscure command lines.
3811 # This happens at least with the AIX C compiler.
3812 : > sub/conftest.c
3813 for i in 1 2 3 4 5 6; do
3814 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3815 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3816 # Solaris 8's {/usr,}/bin/sh.
3817 touch sub/conftst$i.h
3818 done
3819 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3820
81ecdfbb
RW
3821 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3822 # mode. It turns out that the SunPro C++ compiler does not properly
3823 # handle `-M -o', and we need to detect this. Also, some Intel
3824 # versions had trouble with output in subdirs
3825 am__obj=sub/conftest.${OBJEXT-o}
3826 am__minus_obj="-o $am__obj"
42ecbf5e 3827 case $depmode in
81ecdfbb
RW
3828 gcc)
3829 # This depmode causes a compiler race in universal mode.
3830 test "$am__universal" = false || continue
3831 ;;
42ecbf5e
DJ
3832 nosideeffect)
3833 # after this tag, mechanisms are not by side-effect, so they'll
3834 # only be used when explicitly requested
3835 if test "x$enable_dependency_tracking" = xyes; then
3836 continue
3837 else
3838 break
3839 fi
3840 ;;
81ecdfbb
RW
3841 msvisualcpp | msvcmsys)
3842 # This compiler won't grok `-c -o', but also, the minuso test has
3843 # not run yet. These depmodes are late enough in the game, and
3844 # so weak that their functioning should not be impacted.
3845 am__obj=conftest.${OBJEXT-o}
3846 am__minus_obj=
3847 ;;
42ecbf5e
DJ
3848 none) break ;;
3849 esac
42ecbf5e 3850 if depmode=$depmode \
81ecdfbb 3851 source=sub/conftest.c object=$am__obj \
42ecbf5e 3852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 3853 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
42ecbf5e 3854 >/dev/null 2>conftest.err &&
81ecdfbb 3855 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e 3856 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 3857 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e
DJ
3858 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3859 # icc doesn't choke on unknown options, it will just issue warnings
3860 # or remarks (even with -Werror). So we grep stderr for any message
3861 # that says an option was ignored or not supported.
3862 # When given -MP, icc 7.0 and 7.1 complain thusly:
3863 # icc: Command line warning: ignoring option '-M'; no argument required
3864 # The diagnosis changed in icc 8.0:
3865 # icc: Command line remark: option '-MP' not supported
3866 if (grep 'ignoring option' conftest.err ||
3867 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3868 am_cv_CC_dependencies_compiler_type=$depmode
3869 break
3870 fi
3871 fi
3872 done
3873
3874 cd ..
3875 rm -rf conftest.dir
252b5132 3876else
42ecbf5e 3877 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3878fi
3879
252b5132 3880fi
81ecdfbb
RW
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3882$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
42ecbf5e
DJ
3883CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3884
81ecdfbb 3885 if
42ecbf5e
DJ
3886 test "x$enable_dependency_tracking" != xno \
3887 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3888 am__fastdepCC_TRUE=
3889 am__fastdepCC_FALSE='#'
252b5132 3890else
42ecbf5e
DJ
3891 am__fastdepCC_TRUE='#'
3892 am__fastdepCC_FALSE=
252b5132
RH
3893fi
3894
3895
3896
42ecbf5e 3897
d45dc31f
SE
3898ac_ext=c
3899ac_cpp='$CPP $CPPFLAGS'
3900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903if test -n "$ac_tool_prefix"; then
3904 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3905set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907$as_echo_n "checking for $ac_word... " >&6; }
3908if test "${ac_cv_prog_CC+set}" = set; then :
3909 $as_echo_n "(cached) " >&6
252b5132 3910else
d45dc31f
SE
3911 if test -n "$CC"; then
3912 ac_cv_prog_CC="$CC" # Let the user override the test.
1a09a22c 3913else
d45dc31f
SE
3914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915for as_dir in $PATH
3916do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d45dc31f 3921 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3923 break 2
3924 fi
3925done
81ecdfbb
RW
3926 done
3927IFS=$as_save_IFS
ceae3e33 3928
d45dc31f
SE
3929fi
3930fi
3931CC=$ac_cv_prog_CC
3932if test -n "$CC"; then
81ecdfbb
RW
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3934$as_echo "$CC" >&6; }
252b5132 3935else
81ecdfbb
RW
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937$as_echo "no" >&6; }
252b5132 3938fi
d45dc31f 3939
81ecdfbb 3940
d45dc31f
SE
3941fi
3942if test -z "$ac_cv_prog_CC"; then
3943 ac_ct_CC=$CC
3944 # Extract the first word of "gcc", so it can be a program name with args.
3945set dummy gcc; ac_word=$2
81ecdfbb
RW
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3947$as_echo_n "checking for $ac_word... " >&6; }
3948if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3949 $as_echo_n "(cached) " >&6
252b5132 3950else
d45dc31f
SE
3951 if test -n "$ac_ct_CC"; then
3952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3953else
d45dc31f
SE
3954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955for as_dir in $PATH
3956do
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d45dc31f 3961 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3963 break 2
3964 fi
3965done
81ecdfbb
RW
3966 done
3967IFS=$as_save_IFS
d45dc31f 3968
252b5132
RH
3969fi
3970fi
d45dc31f
SE
3971ac_ct_CC=$ac_cv_prog_ac_ct_CC
3972if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3974$as_echo "$ac_ct_CC" >&6; }
252b5132 3975else
81ecdfbb
RW
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977$as_echo "no" >&6; }
252b5132 3978fi
d45dc31f 3979
81ecdfbb
RW
3980 if test "x$ac_ct_CC" = x; then
3981 CC=""
3982 else
3983 case $cross_compiling:$ac_tool_warned in
3984yes:)
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3987ac_tool_warned=yes ;;
3988esac
3989 CC=$ac_ct_CC
3990 fi
d45dc31f
SE
3991else
3992 CC="$ac_cv_prog_CC"
3993fi
3994
3995if test -z "$CC"; then
81ecdfbb
RW
3996 if test -n "$ac_tool_prefix"; then
3997 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d45dc31f 3998set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000$as_echo_n "checking for $ac_word... " >&6; }
4001if test "${ac_cv_prog_CC+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
252b5132 4003else
d45dc31f
SE
4004 if test -n "$CC"; then
4005 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4006else
d45dc31f
SE
4007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008for as_dir in $PATH
4009do
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d45dc31f 4014 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
4016 break 2
4017 fi
4018done
81ecdfbb
RW
4019 done
4020IFS=$as_save_IFS
d45dc31f 4021
252b5132
RH
4022fi
4023fi
d45dc31f
SE
4024CC=$ac_cv_prog_CC
4025if test -n "$CC"; then
81ecdfbb
RW
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4027$as_echo "$CC" >&6; }
d45dc31f 4028else
81ecdfbb
RW
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030$as_echo "no" >&6; }
252b5132
RH
4031fi
4032
252b5132 4033
81ecdfbb 4034 fi
d45dc31f
SE
4035fi
4036if test -z "$CC"; then
4037 # Extract the first word of "cc", so it can be a program name with args.
4038set dummy cc; ac_word=$2
81ecdfbb
RW
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040$as_echo_n "checking for $ac_word... " >&6; }
4041if test "${ac_cv_prog_CC+set}" = set; then :
4042 $as_echo_n "(cached) " >&6
252b5132 4043else
d45dc31f
SE
4044 if test -n "$CC"; then
4045 ac_cv_prog_CC="$CC" # Let the user override the test.
4046else
4047 ac_prog_rejected=no
4048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049for as_dir in $PATH
4050do
4051 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d45dc31f
SE
4055 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4056 ac_prog_rejected=yes
4057 continue
4058 fi
4059 ac_cv_prog_CC="cc"
81ecdfbb 4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
4061 break 2
4062 fi
4063done
81ecdfbb
RW
4064 done
4065IFS=$as_save_IFS
d45dc31f
SE
4066
4067if test $ac_prog_rejected = yes; then
4068 # We found a bogon in the path, so make sure we never use it.
4069 set dummy $ac_cv_prog_CC
4070 shift
4071 if test $# != 0; then
4072 # We chose a different compiler from the bogus one.
4073 # However, it has the same basename, so the bogon will be chosen
4074 # first if we set CC to just the basename; use the full file name.
4075 shift
4076 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4077 fi
4078fi
4079fi
4080fi
4081CC=$ac_cv_prog_CC
4082if test -n "$CC"; then
81ecdfbb
RW
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4084$as_echo "$CC" >&6; }
d45dc31f 4085else
81ecdfbb
RW
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4087$as_echo "no" >&6; }
252b5132
RH
4088fi
4089
81ecdfbb 4090
d45dc31f
SE
4091fi
4092if test -z "$CC"; then
4093 if test -n "$ac_tool_prefix"; then
81ecdfbb 4094 for ac_prog in cl.exe
d45dc31f
SE
4095 do
4096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4097set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4099$as_echo_n "checking for $ac_word... " >&6; }
4100if test "${ac_cv_prog_CC+set}" = set; then :
4101 $as_echo_n "(cached) " >&6
ac48eca1 4102else
d45dc31f
SE
4103 if test -n "$CC"; then
4104 ac_cv_prog_CC="$CC" # Let the user override the test.
4105else
4106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107for as_dir in $PATH
4108do
4109 IFS=$as_save_IFS
4110 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d45dc31f 4113 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
4115 break 2
4116 fi
4117done
81ecdfbb
RW
4118 done
4119IFS=$as_save_IFS
ac48eca1 4120
d45dc31f
SE
4121fi
4122fi
4123CC=$ac_cv_prog_CC
4124if test -n "$CC"; then
81ecdfbb
RW
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4126$as_echo "$CC" >&6; }
d45dc31f 4127else
81ecdfbb
RW
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129$as_echo "no" >&6; }
d45dc31f 4130fi
ac48eca1 4131
81ecdfbb 4132
d45dc31f
SE
4133 test -n "$CC" && break
4134 done
4135fi
4136if test -z "$CC"; then
4137 ac_ct_CC=$CC
81ecdfbb 4138 for ac_prog in cl.exe
d45dc31f
SE
4139do
4140 # Extract the first word of "$ac_prog", so it can be a program name with args.
4141set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143$as_echo_n "checking for $ac_word... " >&6; }
4144if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4145 $as_echo_n "(cached) " >&6
d45dc31f
SE
4146else
4147 if test -n "$ac_ct_CC"; then
4148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4149else
4150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151for as_dir in $PATH
4152do
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d45dc31f 4157 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
4159 break 2
4160 fi
4161done
81ecdfbb
RW
4162 done
4163IFS=$as_save_IFS
ac48eca1 4164
d45dc31f
SE
4165fi
4166fi
4167ac_ct_CC=$ac_cv_prog_ac_ct_CC
4168if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4170$as_echo "$ac_ct_CC" >&6; }
d45dc31f 4171else
81ecdfbb
RW
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173$as_echo "no" >&6; }
d45dc31f 4174fi
ac48eca1 4175
81ecdfbb 4176
d45dc31f
SE
4177 test -n "$ac_ct_CC" && break
4178done
ac48eca1 4179
81ecdfbb
RW
4180 if test "x$ac_ct_CC" = x; then
4181 CC=""
4182 else
4183 case $cross_compiling:$ac_tool_warned in
4184yes:)
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4186$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4187ac_tool_warned=yes ;;
4188esac
4189 CC=$ac_ct_CC
4190 fi
d45dc31f 4191fi
ac48eca1
AO
4192
4193fi
ac48eca1 4194
ac48eca1 4195
81ecdfbb
RW
4196test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4198as_fn_error "no acceptable C compiler found in \$PATH
4199See \`config.log' for more details." "$LINENO" 5; }
ac48eca1 4200
d45dc31f 4201# Provide some information about the compiler.
81ecdfbb
RW
4202$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4203set X $ac_compile
4204ac_compiler=$2
4205for ac_option in --version -v -V -qversion; do
4206 { { ac_try="$ac_compiler $ac_option >&5"
4207case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210esac
4211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4212$as_echo "$ac_try_echo"; } >&5
4213 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
d45dc31f 4214 ac_status=$?
81ecdfbb
RW
4215 if test -s conftest.err; then
4216 sed '10a\
4217... rest of stderr output deleted ...
4218 10q' conftest.err >conftest.er1
4219 cat conftest.er1 >&5
4220 rm -f conftest.er1 conftest.err
4221 fi
4222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223 test $ac_status = 0; }
4224done
ac48eca1 4225
81ecdfbb
RW
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4227$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4228if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4229 $as_echo_n "(cached) " >&6
bdcfeba5 4230else
81ecdfbb 4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d45dc31f 4232/* end confdefs.h. */
bdcfeba5 4233
d45dc31f
SE
4234int
4235main ()
4236{
4237#ifndef __GNUC__
4238 choke me
4239#endif
bdcfeba5 4240
d45dc31f
SE
4241 ;
4242 return 0;
4243}
4244_ACEOF
81ecdfbb 4245if ac_fn_c_try_compile "$LINENO"; then :
d45dc31f
SE
4246 ac_compiler_gnu=yes
4247else
81ecdfbb 4248 ac_compiler_gnu=no
bdcfeba5 4249fi
81ecdfbb 4250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d45dc31f 4251ac_cv_c_compiler_gnu=$ac_compiler_gnu
bdcfeba5 4252
bdcfeba5 4253fi
81ecdfbb
RW
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4255$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4256if test $ac_compiler_gnu = yes; then
4257 GCC=yes
4258else
4259 GCC=
4260fi
d45dc31f
SE
4261ac_test_CFLAGS=${CFLAGS+set}
4262ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4264$as_echo_n "checking whether $CC accepts -g... " >&6; }
4265if test "${ac_cv_prog_cc_g+set}" = set; then :
4266 $as_echo_n "(cached) " >&6
4267else
4268 ac_save_c_werror_flag=$ac_c_werror_flag
4269 ac_c_werror_flag=yes
4270 ac_cv_prog_cc_g=no
4271 CFLAGS="-g"
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d45dc31f 4273/* end confdefs.h. */
ac48eca1 4274
d45dc31f
SE
4275int
4276main ()
4277{
ac48eca1 4278
d45dc31f
SE
4279 ;
4280 return 0;
4281}
4282_ACEOF
81ecdfbb 4283if ac_fn_c_try_compile "$LINENO"; then :
d45dc31f 4284 ac_cv_prog_cc_g=yes
ac48eca1 4285else
81ecdfbb
RW
4286 CFLAGS=""
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288/* end confdefs.h. */
4289
4290int
4291main ()
4292{
4293
4294 ;
4295 return 0;
4296}
4297_ACEOF
4298if ac_fn_c_try_compile "$LINENO"; then :
4299
4300else
4301 ac_c_werror_flag=$ac_save_c_werror_flag
4302 CFLAGS="-g"
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304/* end confdefs.h. */
4305
4306int
4307main ()
4308{
ac48eca1 4309
81ecdfbb
RW
4310 ;
4311 return 0;
4312}
4313_ACEOF
4314if ac_fn_c_try_compile "$LINENO"; then :
4315 ac_cv_prog_cc_g=yes
4316fi
4317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 4318fi
81ecdfbb 4319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 4320fi
81ecdfbb
RW
4321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4322 ac_c_werror_flag=$ac_save_c_werror_flag
4323fi
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4325$as_echo "$ac_cv_prog_cc_g" >&6; }
d45dc31f
SE
4326if test "$ac_test_CFLAGS" = set; then
4327 CFLAGS=$ac_save_CFLAGS
4328elif test $ac_cv_prog_cc_g = yes; then
4329 if test "$GCC" = yes; then
4330 CFLAGS="-g -O2"
ac48eca1 4331 else
d45dc31f 4332 CFLAGS="-g"
42ecbf5e 4333 fi
ac48eca1 4334else
d45dc31f
SE
4335 if test "$GCC" = yes; then
4336 CFLAGS="-O2"
4337 else
4338 CFLAGS=
42ecbf5e 4339 fi
ac48eca1 4340fi
81ecdfbb
RW
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4342$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4343if test "${ac_cv_prog_cc_c89+set}" = set; then :
4344 $as_echo_n "(cached) " >&6
d45dc31f 4345else
81ecdfbb 4346 ac_cv_prog_cc_c89=no
d45dc31f 4347ac_save_CC=$CC
81ecdfbb 4348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 4349/* end confdefs.h. */
d45dc31f
SE
4350#include <stdarg.h>
4351#include <stdio.h>
4352#include <sys/types.h>
4353#include <sys/stat.h>
4354/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4355struct buf { int x; };
4356FILE * (*rcsopen) (struct buf *, struct stat *, int);
4357static char *e (p, i)
4358 char **p;
4359 int i;
4360{
4361 return p[i];
4362}
4363static char *f (char * (*g) (char **, int), char **p, ...)
4364{
4365 char *s;
4366 va_list v;
4367 va_start (v,p);
4368 s = g (p, va_arg (v,int));
4369 va_end (v);
4370 return s;
4371}
4372
4373/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4374 function prototypes and stuff, but not '\xHH' hex character constants.
4375 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4376 as 'x'. The following induces an error, until -std is added to get
d45dc31f
SE
4377 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4378 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4379 that's true only with -std. */
d45dc31f 4380int osf4_cc_array ['\x00' == 0 ? 1 : -1];
252b5132 4381
81ecdfbb
RW
4382/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4383 inside strings and character constants. */
4384#define FOO(x) 'x'
4385int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4386
d45dc31f
SE
4387int test (int i, double x);
4388struct s1 {int (*f) (int a);};
4389struct s2 {int (*f) (double a);};
4390int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4391int argc;
4392char **argv;
42ecbf5e
DJ
4393int
4394main ()
4395{
d45dc31f 4396return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
42ecbf5e
DJ
4397 ;
4398 return 0;
4399}
4400_ACEOF
81ecdfbb
RW
4401for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4402 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d45dc31f
SE
4403do
4404 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4405 if ac_fn_c_try_compile "$LINENO"; then :
4406 ac_cv_prog_cc_c89=$ac_arg
252b5132 4407fi
81ecdfbb
RW
4408rm -f core conftest.err conftest.$ac_objext
4409 test "x$ac_cv_prog_cc_c89" != "xno" && break
d45dc31f 4410done
81ecdfbb 4411rm -f conftest.$ac_ext
d45dc31f 4412CC=$ac_save_CC
ac48eca1 4413
252b5132 4414fi
81ecdfbb
RW
4415# AC_CACHE_VAL
4416case "x$ac_cv_prog_cc_c89" in
4417 x)
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4419$as_echo "none needed" >&6; } ;;
4420 xno)
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4422$as_echo "unsupported" >&6; } ;;
d45dc31f 4423 *)
81ecdfbb
RW
4424 CC="$CC $ac_cv_prog_cc_c89"
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4426$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
252b5132 4427esac
81ecdfbb 4428if test "x$ac_cv_prog_cc_c89" != xno; then :
252b5132 4429
d45dc31f 4430fi
ac48eca1 4431
d45dc31f
SE
4432ac_ext=c
4433ac_cpp='$CPP $CPPFLAGS'
4434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4436ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 4437
7357c5b6
AM
4438ac_ext=c
4439ac_cpp='$CPP $CPPFLAGS'
4440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4444$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4445# On Suns, sometimes $CPP names a directory.
4446if test -n "$CPP" && test -d "$CPP"; then
4447 CPP=
4448fi
4449if test -z "$CPP"; then
81ecdfbb
RW
4450 if test "${ac_cv_prog_CPP+set}" = set; then :
4451 $as_echo_n "(cached) " >&6
7357c5b6
AM
4452else
4453 # Double quotes because CPP needs to be expanded
4454 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4455 do
4456 ac_preproc_ok=false
4457for ac_c_preproc_warn_flag in '' yes
4458do
4459 # Use a header file that comes with gcc, so configuring glibc
4460 # with a fresh cross-compiler works.
4461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4462 # <limits.h> exists even on freestanding compilers.
4463 # On the NeXT, cc -E runs the code through the compiler's parser,
4464 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4466/* end confdefs.h. */
4467#ifdef __STDC__
4468# include <limits.h>
4469#else
4470# include <assert.h>
4471#endif
4472 Syntax error
4473_ACEOF
81ecdfbb 4474if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4475
81ecdfbb 4476else
7357c5b6
AM
4477 # Broken: fails on valid input.
4478continue
4479fi
4480rm -f conftest.err conftest.$ac_ext
d7040cdb 4481
81ecdfbb 4482 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4483 # can be detected and how.
81ecdfbb 4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4485/* end confdefs.h. */
4486#include <ac_nonexistent.h>
4487_ACEOF
81ecdfbb 4488if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4489 # Broken: success on invalid input.
4490continue
4491else
7357c5b6
AM
4492 # Passes both tests.
4493ac_preproc_ok=:
4494break
4495fi
4496rm -f conftest.err conftest.$ac_ext
d7040cdb 4497
7357c5b6
AM
4498done
4499# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4500rm -f conftest.err conftest.$ac_ext
81ecdfbb 4501if $ac_preproc_ok; then :
7357c5b6
AM
4502 break
4503fi
d7040cdb 4504
7357c5b6
AM
4505 done
4506 ac_cv_prog_CPP=$CPP
d7040cdb 4507
7357c5b6
AM
4508fi
4509 CPP=$ac_cv_prog_CPP
4510else
4511 ac_cv_prog_CPP=$CPP
4512fi
81ecdfbb
RW
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4514$as_echo "$CPP" >&6; }
7357c5b6
AM
4515ac_preproc_ok=false
4516for ac_c_preproc_warn_flag in '' yes
4517do
4518 # Use a header file that comes with gcc, so configuring glibc
4519 # with a fresh cross-compiler works.
4520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4521 # <limits.h> exists even on freestanding compilers.
4522 # On the NeXT, cc -E runs the code through the compiler's parser,
4523 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4525/* end confdefs.h. */
4526#ifdef __STDC__
4527# include <limits.h>
4528#else
4529# include <assert.h>
4530#endif
4531 Syntax error
4532_ACEOF
81ecdfbb 4533if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4534
81ecdfbb 4535else
7357c5b6
AM
4536 # Broken: fails on valid input.
4537continue
4538fi
4539rm -f conftest.err conftest.$ac_ext
d7040cdb 4540
81ecdfbb 4541 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4542 # can be detected and how.
81ecdfbb 4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4544/* end confdefs.h. */
4545#include <ac_nonexistent.h>
4546_ACEOF
81ecdfbb 4547if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4548 # Broken: success on invalid input.
4549continue
4550else
7357c5b6
AM
4551 # Passes both tests.
4552ac_preproc_ok=:
4553break
4554fi
4555rm -f conftest.err conftest.$ac_ext
d7040cdb 4556
7357c5b6
AM
4557done
4558# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4559rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
4560if $ac_preproc_ok; then :
4561
7357c5b6 4562else
81ecdfbb
RW
4563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4565as_fn_error "C preprocessor \"$CPP\" fails sanity check
4566See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 4567fi
d7040cdb 4568
7357c5b6
AM
4569ac_ext=c
4570ac_cpp='$CPP $CPPFLAGS'
4571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
4574
4575
81ecdfbb
RW
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4577$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4578if test "${ac_cv_path_GREP+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
7357c5b6 4580else
81ecdfbb
RW
4581 if test -z "$GREP"; then
4582 ac_path_GREP_found=false
4583 # Loop through the user's path and test for each of PROGNAME-LIST
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4586do
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_prog in grep ggrep; do
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4592 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4593# Check for GNU ac_path_GREP and select it if it is found.
4594 # Check for GNU $ac_path_GREP
4595case `"$ac_path_GREP" --version 2>&1` in
4596*GNU*)
4597 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4598*)
4599 ac_count=0
4600 $as_echo_n 0123456789 >"conftest.in"
4601 while :
4602 do
4603 cat "conftest.in" "conftest.in" >"conftest.tmp"
4604 mv "conftest.tmp" "conftest.in"
4605 cp "conftest.in" "conftest.nl"
4606 $as_echo 'GREP' >> "conftest.nl"
4607 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4609 as_fn_arith $ac_count + 1 && ac_count=$as_val
4610 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4611 # Best one so far, save it but keep looking for a better one
4612 ac_cv_path_GREP="$ac_path_GREP"
4613 ac_path_GREP_max=$ac_count
7357c5b6 4614 fi
81ecdfbb
RW
4615 # 10*(2^10) chars as input seems more than enough
4616 test $ac_count -gt 10 && break
4617 done
4618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4619esac
4620
4621 $ac_path_GREP_found && break 3
4622 done
4623 done
4624 done
4625IFS=$as_save_IFS
4626 if test -z "$ac_cv_path_GREP"; then
4627 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4628 fi
4629else
4630 ac_cv_path_GREP=$GREP
4631fi
4632
7357c5b6 4633fi
81ecdfbb
RW
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4635$as_echo "$ac_cv_path_GREP" >&6; }
4636 GREP="$ac_cv_path_GREP"
d7040cdb 4637
d7040cdb 4638
81ecdfbb
RW
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4640$as_echo_n "checking for egrep... " >&6; }
4641if test "${ac_cv_path_EGREP+set}" = set; then :
4642 $as_echo_n "(cached) " >&6
7357c5b6 4643else
81ecdfbb
RW
4644 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4645 then ac_cv_path_EGREP="$GREP -E"
4646 else
4647 if test -z "$EGREP"; then
4648 ac_path_EGREP_found=false
4649 # Loop through the user's path and test for each of PROGNAME-LIST
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4652do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_prog in egrep; do
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4658 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4659# Check for GNU ac_path_EGREP and select it if it is found.
4660 # Check for GNU $ac_path_EGREP
4661case `"$ac_path_EGREP" --version 2>&1` in
4662*GNU*)
4663 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4664*)
4665 ac_count=0
4666 $as_echo_n 0123456789 >"conftest.in"
4667 while :
4668 do
4669 cat "conftest.in" "conftest.in" >"conftest.tmp"
4670 mv "conftest.tmp" "conftest.in"
4671 cp "conftest.in" "conftest.nl"
4672 $as_echo 'EGREP' >> "conftest.nl"
4673 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4674 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4675 as_fn_arith $ac_count + 1 && ac_count=$as_val
4676 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4677 # Best one so far, save it but keep looking for a better one
4678 ac_cv_path_EGREP="$ac_path_EGREP"
4679 ac_path_EGREP_max=$ac_count
4680 fi
4681 # 10*(2^10) chars as input seems more than enough
4682 test $ac_count -gt 10 && break
4683 done
4684 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4685esac
4686
4687 $ac_path_EGREP_found && break 3
4688 done
4689 done
4690 done
4691IFS=$as_save_IFS
4692 if test -z "$ac_cv_path_EGREP"; then
4693 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4694 fi
4695else
4696 ac_cv_path_EGREP=$EGREP
4697fi
4698
4699 fi
4700fi
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4702$as_echo "$ac_cv_path_EGREP" >&6; }
4703 EGREP="$ac_cv_path_EGREP"
4704
4705
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4707$as_echo_n "checking for ANSI C header files... " >&6; }
4708if test "${ac_cv_header_stdc+set}" = set; then :
4709 $as_echo_n "(cached) " >&6
4710else
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4712/* end confdefs.h. */
4713#include <stdlib.h>
4714#include <stdarg.h>
4715#include <string.h>
4716#include <float.h>
d7040cdb 4717
7357c5b6
AM
4718int
4719main ()
4720{
d7040cdb 4721
7357c5b6
AM
4722 ;
4723 return 0;
4724}
4725_ACEOF
81ecdfbb 4726if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4727 ac_cv_header_stdc=yes
4728else
81ecdfbb 4729 ac_cv_header_stdc=no
7357c5b6 4730fi
81ecdfbb 4731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4732
7357c5b6
AM
4733if test $ac_cv_header_stdc = yes; then
4734 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4736/* end confdefs.h. */
4737#include <string.h>
d7040cdb 4738
7357c5b6
AM
4739_ACEOF
4740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4741 $EGREP "memchr" >/dev/null 2>&1; then :
4742
d45dc31f 4743else
7357c5b6
AM
4744 ac_cv_header_stdc=no
4745fi
4746rm -f conftest*
d7040cdb 4747
7357c5b6 4748fi
d7040cdb 4749
7357c5b6
AM
4750if test $ac_cv_header_stdc = yes; then
4751 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4753/* end confdefs.h. */
4754#include <stdlib.h>
d7040cdb 4755
7357c5b6
AM
4756_ACEOF
4757if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4758 $EGREP "free" >/dev/null 2>&1; then :
4759
7357c5b6
AM
4760else
4761 ac_cv_header_stdc=no
4762fi
4763rm -f conftest*
d7040cdb 4764
7357c5b6 4765fi
d7040cdb 4766
7357c5b6
AM
4767if test $ac_cv_header_stdc = yes; then
4768 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4769 if test "$cross_compiling" = yes; then :
7357c5b6
AM
4770 :
4771else
81ecdfbb 4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4773/* end confdefs.h. */
4774#include <ctype.h>
81ecdfbb 4775#include <stdlib.h>
7357c5b6
AM
4776#if ((' ' & 0x0FF) == 0x020)
4777# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4778# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4779#else
4780# define ISLOWER(c) \
4781 (('a' <= (c) && (c) <= 'i') \
4782 || ('j' <= (c) && (c) <= 'r') \
4783 || ('s' <= (c) && (c) <= 'z'))
4784# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4785#endif
d7040cdb 4786
7357c5b6
AM
4787#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4788int
4789main ()
4790{
4791 int i;
4792 for (i = 0; i < 256; i++)
4793 if (XOR (islower (i), ISLOWER (i))
4794 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4795 return 2;
4796 return 0;
7357c5b6
AM
4797}
4798_ACEOF
81ecdfbb 4799if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 4800
81ecdfbb
RW
4801else
4802 ac_cv_header_stdc=no
7357c5b6 4803fi
81ecdfbb
RW
4804rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4805 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4806fi
81ecdfbb 4807
7357c5b6
AM
4808fi
4809fi
81ecdfbb
RW
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4811$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4812if test $ac_cv_header_stdc = yes; then
d7040cdb 4813
81ecdfbb 4814$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4815
7357c5b6 4816fi
d7040cdb 4817
7357c5b6 4818# On IRIX 5.3, sys/types and inttypes.h are conflicting.
81ecdfbb
RW
4819for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4820 inttypes.h stdint.h unistd.h
4821do :
4822 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4823ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4824"
4825eval as_val=\$$as_ac_Header
4826 if test "x$as_val" = x""yes; then :
4827 cat >>confdefs.h <<_ACEOF
4828#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4829_ACEOF
d7040cdb 4830
81ecdfbb 4831fi
d7040cdb 4832
81ecdfbb 4833done
d7040cdb
SE
4834
4835
4836
81ecdfbb
RW
4837 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4838if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4839 MINIX=yes
4840else
4841 MINIX=
4842fi
d7040cdb
SE
4843
4844
81ecdfbb 4845 if test "$MINIX" = yes; then
d7040cdb 4846
81ecdfbb 4847$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb 4848
d7040cdb 4849
81ecdfbb 4850$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
4851
4852
81ecdfbb 4853$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4854
81ecdfbb 4855 fi
d7040cdb
SE
4856
4857
81ecdfbb
RW
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4859$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4860if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
7357c5b6 4862else
81ecdfbb 4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4864/* end confdefs.h. */
d7040cdb 4865
7357c5b6
AM
4866# define __EXTENSIONS__ 1
4867 $ac_includes_default
4868int
4869main ()
4870{
d7040cdb 4871
7357c5b6
AM
4872 ;
4873 return 0;
4874}
4875_ACEOF
81ecdfbb 4876if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 4877 ac_cv_safe_to_define___extensions__=yes
d7040cdb 4878else
81ecdfbb 4879 ac_cv_safe_to_define___extensions__=no
d7040cdb 4880fi
81ecdfbb 4881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 4882fi
81ecdfbb
RW
4883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4884$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4885 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4886 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d7040cdb 4887
81ecdfbb 4888 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d7040cdb 4889
81ecdfbb 4890 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
d7040cdb 4891
81ecdfbb 4892 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
d7040cdb 4893
81ecdfbb 4894 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d7040cdb
SE
4895
4896
e3525117 4897
5691d22d 4898
81ecdfbb
RW
4899
4900
3388710e
JM
4901# The tests for host and target for $enable_largefile require
4902# canonical names.
4903
4904
4905
da2f07f1
JK
4906# As the $enable_largefile decision depends on --enable-plugins we must set it
4907# even in directories otherwise not depending on the $plugins option.
4908
4909
81ecdfbb
RW
4910# Check whether --enable-plugins was given.
4911if test "${enable_plugins+set}" = set; then :
4912 enableval=$enable_plugins; case "${enableval}" in
ce3c775b
NC
4913 yes | "") plugins=yes ;;
4914 no) plugins=no ;;
4915 *) plugins=yes ;;
4916 esac
4917else
4918 plugins=no
81ecdfbb
RW
4919fi
4920
ce3c775b 4921
5691d22d 4922
da2f07f1 4923case "${host}" in
e3525117 4924 sparc-*-solaris*|i[3-7]86-*-solaris*)
da2f07f1
JK
4925 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4926 # are mutually exclusive; and without procfs support, the bfd/ elf module
4927 # cannot provide certain routines such as elfcore_write_prpsinfo
4928 # or elfcore_write_prstatus. So unless the user explicitly requested
4929 # large-file support through the --enable-largefile switch, disable
4930 # large-file support in favor of procfs support.
4931 test "${target}" = "${host}" -a "x$plugins" = xno \
4932 && : ${enable_largefile="no"}
e3525117
NC
4933 ;;
4934esac
4935
81ecdfbb
RW
4936# Check whether --enable-largefile was given.
4937if test "${enable_largefile+set}" = set; then :
4938 enableval=$enable_largefile;
4939fi
d053aef8 4940
d053aef8
JK
4941if test "$enable_largefile" != no; then
4942
81ecdfbb
RW
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4944$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4945if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4946 $as_echo_n "(cached) " >&6
d053aef8
JK
4947else
4948 ac_cv_sys_largefile_CC=no
4949 if test "$GCC" != yes; then
4950 ac_save_CC=$CC
4951 while :; do
81ecdfbb
RW
4952 # IRIX 6.2 and later do not support large files by default,
4953 # so use the C compiler's -n32 option if that helps.
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
4955/* end confdefs.h. */
4956#include <sys/types.h>
4957 /* Check that off_t can represent 2**63 - 1 correctly.
4958 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4959 since some C++ compilers masquerading as C compilers
4960 incorrectly reject 9223372036854775807. */
4961#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4962 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4963 && LARGE_OFF_T % 2147483647 == 1)
4964 ? 1 : -1];
4965int
4966main ()
4967{
4968
4969 ;
4970 return 0;
4971}
4972_ACEOF
81ecdfbb 4973 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 4974 break
d053aef8 4975fi
81ecdfbb
RW
4976rm -f core conftest.err conftest.$ac_objext
4977 CC="$CC -n32"
4978 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 4979 ac_cv_sys_largefile_CC=' -n32'; break
d053aef8 4980fi
81ecdfbb 4981rm -f core conftest.err conftest.$ac_objext
d053aef8
JK
4982 break
4983 done
4984 CC=$ac_save_CC
4985 rm -f conftest.$ac_ext
4986 fi
4987fi
81ecdfbb
RW
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4989$as_echo "$ac_cv_sys_largefile_CC" >&6; }
d053aef8
JK
4990 if test "$ac_cv_sys_largefile_CC" != no; then
4991 CC=$CC$ac_cv_sys_largefile_CC
4992 fi
4993
81ecdfbb
RW
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4995$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4996if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
d053aef8
JK
4998else
4999 while :; do
81ecdfbb 5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5001/* end confdefs.h. */
5002#include <sys/types.h>
5003 /* Check that off_t can represent 2**63 - 1 correctly.
5004 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5005 since some C++ compilers masquerading as C compilers
5006 incorrectly reject 9223372036854775807. */
5007#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5008 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5009 && LARGE_OFF_T % 2147483647 == 1)
5010 ? 1 : -1];
5011int
5012main ()
5013{
5014
5015 ;
5016 return 0;
5017}
5018_ACEOF
81ecdfbb
RW
5019if ac_fn_c_try_compile "$LINENO"; then :
5020 ac_cv_sys_file_offset_bits=no; break
d053aef8 5021fi
81ecdfbb
RW
5022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5024/* end confdefs.h. */
5025#define _FILE_OFFSET_BITS 64
5026#include <sys/types.h>
5027 /* Check that off_t can represent 2**63 - 1 correctly.
5028 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5029 since some C++ compilers masquerading as C compilers
5030 incorrectly reject 9223372036854775807. */
5031#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5032 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5033 && LARGE_OFF_T % 2147483647 == 1)
5034 ? 1 : -1];
5035int
5036main ()
5037{
5038
5039 ;
5040 return 0;
5041}
5042_ACEOF
81ecdfbb 5043if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5044 ac_cv_sys_file_offset_bits=64; break
d053aef8 5045fi
81ecdfbb
RW
5046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047 ac_cv_sys_file_offset_bits=unknown
d053aef8
JK
5048 break
5049done
5050fi
81ecdfbb
RW
5051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5052$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5053case $ac_cv_sys_file_offset_bits in #(
5054 no | unknown) ;;
5055 *)
d053aef8
JK
5056cat >>confdefs.h <<_ACEOF
5057#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5058_ACEOF
81ecdfbb
RW
5059;;
5060esac
5061rm -rf conftest*
5062 if test $ac_cv_sys_file_offset_bits = unknown; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5064$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5065if test "${ac_cv_sys_large_files+set}" = set; then :
5066 $as_echo_n "(cached) " >&6
d053aef8
JK
5067else
5068 while :; do
81ecdfbb 5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5070/* end confdefs.h. */
5071#include <sys/types.h>
5072 /* Check that off_t can represent 2**63 - 1 correctly.
5073 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5074 since some C++ compilers masquerading as C compilers
5075 incorrectly reject 9223372036854775807. */
5076#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5077 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5078 && LARGE_OFF_T % 2147483647 == 1)
5079 ? 1 : -1];
5080int
5081main ()
5082{
5083
5084 ;
5085 return 0;
5086}
5087_ACEOF
81ecdfbb
RW
5088if ac_fn_c_try_compile "$LINENO"; then :
5089 ac_cv_sys_large_files=no; break
d053aef8 5090fi
81ecdfbb
RW
5091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5093/* end confdefs.h. */
5094#define _LARGE_FILES 1
5095#include <sys/types.h>
5096 /* Check that off_t can represent 2**63 - 1 correctly.
5097 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5098 since some C++ compilers masquerading as C compilers
5099 incorrectly reject 9223372036854775807. */
5100#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5101 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5102 && LARGE_OFF_T % 2147483647 == 1)
5103 ? 1 : -1];
5104int
5105main ()
5106{
5107
5108 ;
5109 return 0;
5110}
5111_ACEOF
81ecdfbb 5112if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5113 ac_cv_sys_large_files=1; break
d053aef8 5114fi
81ecdfbb
RW
5115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116 ac_cv_sys_large_files=unknown
d053aef8
JK
5117 break
5118done
5119fi
81ecdfbb
RW
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5121$as_echo "$ac_cv_sys_large_files" >&6; }
5122case $ac_cv_sys_large_files in #(
5123 no | unknown) ;;
5124 *)
d053aef8
JK
5125cat >>confdefs.h <<_ACEOF
5126#define _LARGE_FILES $ac_cv_sys_large_files
5127_ACEOF
81ecdfbb
RW
5128;;
5129esac
5130rm -rf conftest*
5131 fi
d053aef8
JK
5132fi
5133
da2f07f1 5134
718a6fd8
SE
5135case `pwd` in
5136 *\ * | *\ *)
81ecdfbb
RW
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5138$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
718a6fd8 5139esac
d7040cdb
SE
5140
5141
7357c5b6 5142
3725885a
RW
5143macro_version='2.2.7a'
5144macro_revision='1.3134'
7357c5b6
AM
5145
5146
5147
5148
5149
5150
7357c5b6
AM
5151
5152
5153
5154
5155
5156
5157
718a6fd8 5158ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 5159
3725885a
RW
5160# Backslashify metacharacters that are still active within
5161# double-quoted strings.
5162sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5163
5164# Same as above, but do not quote variable references.
5165double_quote_subst='s/\(["`\\]\)/\\\1/g'
5166
5167# Sed substitution to delay expansion of an escaped shell variable in a
5168# double_quote_subst'ed string.
5169delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5170
5171# Sed substitution to delay expansion of an escaped single quote.
5172delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5173
5174# Sed substitution to avoid accidental globbing in evaled expressions
5175no_glob_subst='s/\*/\\\*/g'
5176
5177ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5178ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5179ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5180
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5182$as_echo_n "checking how to print strings... " >&6; }
5183# Test print first, because it will be a builtin if present.
5184if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5185 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5186 ECHO='print -r --'
5187elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5188 ECHO='printf %s\n'
5189else
5190 # Use this function as a fallback that always works.
5191 func_fallback_echo ()
5192 {
5193 eval 'cat <<_LTECHO_EOF
5194$1
5195_LTECHO_EOF'
5196 }
5197 ECHO='func_fallback_echo'
5198fi
5199
5200# func_echo_all arg...
5201# Invoke $ECHO with all args, space-separated.
5202func_echo_all ()
5203{
5204 $ECHO ""
5205}
5206
5207case "$ECHO" in
5208 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5209$as_echo "printf" >&6; } ;;
5210 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5211$as_echo "print -r" >&6; } ;;
5212 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5213$as_echo "cat" >&6; } ;;
5214esac
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
81ecdfbb
RW
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5230$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5231if test "${ac_cv_path_SED+set}" = set; then :
5232 $as_echo_n "(cached) " >&6
7357c5b6 5233else
81ecdfbb
RW
5234 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5235 for ac_i in 1 2 3 4 5 6 7; do
5236 ac_script="$ac_script$as_nl$ac_script"
5237 done
5238 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5239 { ac_script=; unset ac_script;}
5240 if test -z "$SED"; then
5241 ac_path_SED_found=false
5242 # Loop through the user's path and test for each of PROGNAME-LIST
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5244for as_dir in $PATH
5245do
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
81ecdfbb 5248 for ac_prog in sed gsed; do
7357c5b6 5249 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5250 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5251 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5252# Check for GNU ac_path_SED and select it if it is found.
5253 # Check for GNU $ac_path_SED
5254case `"$ac_path_SED" --version 2>&1` in
5255*GNU*)
5256 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5257*)
5258 ac_count=0
5259 $as_echo_n 0123456789 >"conftest.in"
5260 while :
5261 do
5262 cat "conftest.in" "conftest.in" >"conftest.tmp"
5263 mv "conftest.tmp" "conftest.in"
5264 cp "conftest.in" "conftest.nl"
5265 $as_echo '' >> "conftest.nl"
5266 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5267 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5268 as_fn_arith $ac_count + 1 && ac_count=$as_val
5269 if test $ac_count -gt ${ac_path_SED_max-0}; then
5270 # Best one so far, save it but keep looking for a better one
5271 ac_cv_path_SED="$ac_path_SED"
5272 ac_path_SED_max=$ac_count
5273 fi
5274 # 10*(2^10) chars as input seems more than enough
5275 test $ac_count -gt 10 && break
5276 done
5277 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5278esac
5279
5280 $ac_path_SED_found && break 3
7357c5b6
AM
5281 done
5282 done
81ecdfbb 5283 done
7357c5b6 5284IFS=$as_save_IFS
81ecdfbb
RW
5285 if test -z "$ac_cv_path_SED"; then
5286 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5287 fi
81ecdfbb
RW
5288else
5289 ac_cv_path_SED=$SED
7357c5b6
AM
5290fi
5291
81ecdfbb
RW
5292fi
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5294$as_echo "$ac_cv_path_SED" >&6; }
5295 SED="$ac_cv_path_SED"
5296 rm -f conftest.sed
7357c5b6
AM
5297
5298test -z "$SED" && SED=sed
5299Xsed="$SED -e 1s/^X//"
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
81ecdfbb
RW
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5312$as_echo_n "checking for fgrep... " >&6; }
5313if test "${ac_cv_path_FGREP+set}" = set; then :
5314 $as_echo_n "(cached) " >&6
7357c5b6 5315else
81ecdfbb
RW
5316 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5317 then ac_cv_path_FGREP="$GREP -F"
5318 else
5319 if test -z "$FGREP"; then
5320 ac_path_FGREP_found=false
5321 # Loop through the user's path and test for each of PROGNAME-LIST
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5324do
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
5327 for ac_prog in fgrep; do
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5330 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5331# Check for GNU ac_path_FGREP and select it if it is found.
5332 # Check for GNU $ac_path_FGREP
5333case `"$ac_path_FGREP" --version 2>&1` in
5334*GNU*)
5335 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5336*)
5337 ac_count=0
5338 $as_echo_n 0123456789 >"conftest.in"
5339 while :
5340 do
5341 cat "conftest.in" "conftest.in" >"conftest.tmp"
5342 mv "conftest.tmp" "conftest.in"
5343 cp "conftest.in" "conftest.nl"
5344 $as_echo 'FGREP' >> "conftest.nl"
5345 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5347 as_fn_arith $ac_count + 1 && ac_count=$as_val
5348 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5349 # Best one so far, save it but keep looking for a better one
5350 ac_cv_path_FGREP="$ac_path_FGREP"
5351 ac_path_FGREP_max=$ac_count
7357c5b6 5352 fi
81ecdfbb
RW
5353 # 10*(2^10) chars as input seems more than enough
5354 test $ac_count -gt 10 && break
5355 done
5356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5357esac
5358
5359 $ac_path_FGREP_found && break 3
5360 done
5361 done
5362 done
5363IFS=$as_save_IFS
5364 if test -z "$ac_cv_path_FGREP"; then
5365 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5366 fi
5367else
5368 ac_cv_path_FGREP=$FGREP
5369fi
5370
5371 fi
7357c5b6 5372fi
81ecdfbb
RW
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5374$as_echo "$ac_cv_path_FGREP" >&6; }
5375 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5376
5377
5378test -z "$GREP" && GREP=grep
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
81ecdfbb
RW
5398# Check whether --with-gnu-ld was given.
5399if test "${with_gnu_ld+set}" = set; then :
5400 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5401else
5402 with_gnu_ld=no
81ecdfbb
RW
5403fi
5404
7357c5b6
AM
5405ac_prog=ld
5406if test "$GCC" = yes; then
5407 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5409$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5410 case $host in
5411 *-*-mingw*)
d45dc31f
SE
5412 # gcc leaves a trailing carriage return which upsets mingw
5413 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5414 *)
5415 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5416 esac
5417 case $ac_prog in
5418 # Accept absolute paths.
d7040cdb 5419 [\\/]* | ?:[\\/]*)
d45dc31f 5420 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
5421 # Canonicalize the pathname of ld
5422 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5423 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5424 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d45dc31f
SE
5425 done
5426 test -z "$LD" && LD="$ac_prog"
5427 ;;
5428 "")
5429 # If it fails, then pretend we aren't using GCC.
5430 ac_prog=ld
5431 ;;
5432 *)
5433 # If it is relative, then search for the first ld in PATH.
5434 with_gnu_ld=unknown
5435 ;;
5436 esac
5437elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5439$as_echo_n "checking for GNU ld... " >&6; }
d45dc31f 5440else
81ecdfbb
RW
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5442$as_echo_n "checking for non-GNU ld... " >&6; }
d45dc31f 5443fi
81ecdfbb
RW
5444if test "${lt_cv_path_LD+set}" = set; then :
5445 $as_echo_n "(cached) " >&6
d45dc31f
SE
5446else
5447 if test -z "$LD"; then
d7040cdb 5448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d45dc31f 5449 for ac_dir in $PATH; do
d7040cdb 5450 IFS="$lt_save_ifs"
d45dc31f
SE
5451 test -z "$ac_dir" && ac_dir=.
5452 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5453 lt_cv_path_LD="$ac_dir/$ac_prog"
5454 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5455 # but apparently some variants of GNU ld only accept -v.
d45dc31f 5456 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5457 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5458 *GNU* | *'with BFD'*)
d45dc31f 5459 test "$with_gnu_ld" != no && break
d7040cdb
SE
5460 ;;
5461 *)
d45dc31f 5462 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5463 ;;
5464 esac
d45dc31f
SE
5465 fi
5466 done
d7040cdb 5467 IFS="$lt_save_ifs"
d45dc31f
SE
5468else
5469 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5470fi
5471fi
1ad12f97 5472
d45dc31f
SE
5473LD="$lt_cv_path_LD"
5474if test -n "$LD"; then
81ecdfbb
RW
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5476$as_echo "$LD" >&6; }
d45dc31f 5477else
81ecdfbb
RW
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479$as_echo "no" >&6; }
d45dc31f 5480fi
81ecdfbb
RW
5481test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5483$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5484if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5485 $as_echo_n "(cached) " >&6
d45dc31f 5486else
d7040cdb
SE
5487 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5488case `$LD -v 2>&1 </dev/null` in
5489*GNU* | *'with BFD'*)
d45dc31f 5490 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5491 ;;
5492*)
d45dc31f 5493 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5494 ;;
5495esac
d45dc31f 5496fi
81ecdfbb
RW
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5498$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d45dc31f 5499with_gnu_ld=$lt_cv_prog_gnu_ld
569acd2c 5500
d45dc31f 5501
42ecbf5e 5502
d7040cdb
SE
5503
5504
5505
5506
5507
5508
81ecdfbb
RW
5509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5510$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5511if test "${lt_cv_path_NM+set}" = set; then :
5512 $as_echo_n "(cached) " >&6
d45dc31f
SE
5513else
5514 if test -n "$NM"; then
5515 # Let the user override the test.
5516 lt_cv_path_NM="$NM"
5517else
d7040cdb
SE
5518 lt_nm_to_check="${ac_tool_prefix}nm"
5519 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5520 lt_nm_to_check="$lt_nm_to_check nm"
5521 fi
5522 for lt_tmp_nm in $lt_nm_to_check; do
5523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5524 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5525 IFS="$lt_save_ifs"
5526 test -z "$ac_dir" && ac_dir=.
5527 tmp_nm="$ac_dir/$lt_tmp_nm"
5528 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5529 # Check to see if the nm accepts a BSD-compat flag.
5530 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5531 # nm: unknown option "B" ignored
5532 # Tru64's nm complains that /dev/null is an invalid object file
5533 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5534 */dev/null* | *'Invalid file or object type'*)
5535 lt_cv_path_NM="$tmp_nm -B"
5536 break
5537 ;;
5538 *)
5539 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5540 */dev/null*)
5541 lt_cv_path_NM="$tmp_nm -p"
5542 break
5543 ;;
5544 *)
5545 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5546 continue # so that we can try to find one that supports BSD flags
5547 ;;
5548 esac
5549 ;;
5550 esac
d45dc31f 5551 fi
d7040cdb
SE
5552 done
5553 IFS="$lt_save_ifs"
d45dc31f 5554 done
d7040cdb 5555 : ${lt_cv_path_NM=no}
d45dc31f 5556fi
a541e3ce 5557fi
81ecdfbb
RW
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5559$as_echo "$lt_cv_path_NM" >&6; }
d7040cdb
SE
5560if test "$lt_cv_path_NM" != "no"; then
5561 NM="$lt_cv_path_NM"
d45dc31f 5562else
d7040cdb 5563 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5564 if test -n "$DUMPBIN"; then :
5565 # Let the user override the test.
5566 else
5567 if test -n "$ac_tool_prefix"; then
5568 for ac_prog in dumpbin "link -dump"
d7040cdb
SE
5569 do
5570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5571set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573$as_echo_n "checking for $ac_word... " >&6; }
5574if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5575 $as_echo_n "(cached) " >&6
d45dc31f 5576else
d7040cdb
SE
5577 if test -n "$DUMPBIN"; then
5578 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5579else
5580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581for as_dir in $PATH
5582do
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 5587 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
5589 break 2
5590 fi
5591done
81ecdfbb
RW
5592 done
5593IFS=$as_save_IFS
398ee8f1 5594
d7040cdb
SE
5595fi
5596fi
5597DUMPBIN=$ac_cv_prog_DUMPBIN
5598if test -n "$DUMPBIN"; then
81ecdfbb
RW
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5600$as_echo "$DUMPBIN" >&6; }
d7040cdb 5601else
81ecdfbb
RW
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603$as_echo "no" >&6; }
d7040cdb 5604fi
d15b04bd 5605
81ecdfbb 5606
d7040cdb
SE
5607 test -n "$DUMPBIN" && break
5608 done
5609fi
5610if test -z "$DUMPBIN"; then
5611 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5612 for ac_prog in dumpbin "link -dump"
d7040cdb
SE
5613do
5614 # Extract the first word of "$ac_prog", so it can be a program name with args.
5615set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617$as_echo_n "checking for $ac_word... " >&6; }
5618if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
d7040cdb
SE
5620else
5621 if test -n "$ac_ct_DUMPBIN"; then
5622 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5623else
5624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625for as_dir in $PATH
5626do
5627 IFS=$as_save_IFS
5628 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 5631 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5633 break 2
d45dc31f 5634 fi
d7040cdb 5635done
81ecdfbb
RW
5636 done
5637IFS=$as_save_IFS
d15b04bd 5638
d7040cdb
SE
5639fi
5640fi
5641ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5642if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5644$as_echo "$ac_ct_DUMPBIN" >&6; }
d7040cdb 5645else
81ecdfbb
RW
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647$as_echo "no" >&6; }
d7040cdb 5648fi
42ecbf5e 5649
81ecdfbb 5650
d7040cdb
SE
5651 test -n "$ac_ct_DUMPBIN" && break
5652done
d45dc31f 5653
81ecdfbb
RW
5654 if test "x$ac_ct_DUMPBIN" = x; then
5655 DUMPBIN=":"
5656 else
5657 case $cross_compiling:$ac_tool_warned in
5658yes:)
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5661ac_tool_warned=yes ;;
5662esac
5663 DUMPBIN=$ac_ct_DUMPBIN
5664 fi
d7040cdb 5665fi
d45dc31f 5666
3725885a
RW
5667 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5668 *COFF*)
5669 DUMPBIN="$DUMPBIN -symbols"
5670 ;;
5671 *)
5672 DUMPBIN=:
5673 ;;
5674 esac
5675 fi
d45dc31f 5676
d7040cdb
SE
5677 if test "$DUMPBIN" != ":"; then
5678 NM="$DUMPBIN"
42ecbf5e 5679 fi
d7040cdb
SE
5680fi
5681test -z "$NM" && NM=nm
d45dc31f 5682
42ecbf5e 5683
d15b04bd 5684
42ecbf5e 5685
d45dc31f 5686
42ecbf5e 5687
81ecdfbb
RW
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5689$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5690if test "${lt_cv_nm_interface+set}" = set; then :
5691 $as_echo_n "(cached) " >&6
d7040cdb
SE
5692else
5693 lt_cv_nm_interface="BSD nm"
5694 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5695 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
d7040cdb
SE
5696 (eval "$ac_compile" 2>conftest.err)
5697 cat conftest.err >&5
3725885a 5698 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5699 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5700 cat conftest.err >&5
3725885a 5701 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
d7040cdb
SE
5702 cat conftest.out >&5
5703 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5704 lt_cv_nm_interface="MS dumpbin"
5705 fi
5706 rm -f conftest*
42ecbf5e 5707fi
81ecdfbb
RW
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5709$as_echo "$lt_cv_nm_interface" >&6; }
42ecbf5e 5710
81ecdfbb
RW
5711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5712$as_echo_n "checking whether ln -s works... " >&6; }
d7040cdb
SE
5713LN_S=$as_ln_s
5714if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5716$as_echo "yes" >&6; }
d7040cdb 5717else
81ecdfbb
RW
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5719$as_echo "no, using $LN_S" >&6; }
d7040cdb 5720fi
d45dc31f
SE
5721
5722# find the maximum length of command line arguments
81ecdfbb
RW
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5724$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5725if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5726 $as_echo_n "(cached) " >&6
42ecbf5e 5727else
d45dc31f
SE
5728 i=0
5729 teststring="ABCD"
5730
5731 case $build_os in
5732 msdosdjgpp*)
5733 # On DJGPP, this test can blow up pretty badly due to problems in libc
5734 # (any single argument exceeding 2000 bytes causes a buffer overrun
5735 # during glob expansion). Even if it were fixed, the result of this
5736 # check would be larger than it should be.
5737 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5738 ;;
5739
d7040cdb
SE
5740 gnu*)
5741 # Under GNU Hurd, this test is not required because there is
5742 # no limit to the length of command line arguments.
5743 # Libtool will interpret -1 as no limit whatsoever
5744 lt_cv_sys_max_cmd_len=-1;
5745 ;;
5746
718a6fd8 5747 cygwin* | mingw* | cegcc*)
d45dc31f
SE
5748 # On Win9x/ME, this test blows up -- it succeeds, but takes
5749 # about 5 minutes as the teststring grows exponentially.
5750 # Worse, since 9x/ME are not pre-emptively multitasking,
5751 # you end up with a "frozen" computer, even though with patience
5752 # the test eventually succeeds (with a max line length of 256k).
5753 # Instead, let's just punt: use the minimum linelength reported by
5754 # all of the supported platforms: 8192 (on NT/2K/XP).
5755 lt_cv_sys_max_cmd_len=8192;
5756 ;;
5757
3725885a
RW
5758 mint*)
5759 # On MiNT this can take a long time and run out of memory.
5760 lt_cv_sys_max_cmd_len=8192;
5761 ;;
5762
d45dc31f
SE
5763 amigaos*)
5764 # On AmigaOS with pdksh, this test takes hours, literally.
5765 # So we just punt and use a minimum line length of 8192.
5766 lt_cv_sys_max_cmd_len=8192;
5767 ;;
5768
5769 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5770 # This has been around since 386BSD, at least. Likely further.
5771 if test -x /sbin/sysctl; then
5772 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5773 elif test -x /usr/sbin/sysctl; then
5774 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5775 else
d7040cdb 5776 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
d45dc31f
SE
5777 fi
5778 # And add a safety zone
5779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5781 ;;
d7040cdb
SE
5782
5783 interix*)
5784 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5785 lt_cv_sys_max_cmd_len=196608
5786 ;;
5787
5788 osf*)
5789 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5790 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5791 # nice to cause kernel panics so lets avoid the loop below.
5792 # First set a reasonable default.
5793 lt_cv_sys_max_cmd_len=16384
5794 #
5795 if test -x /sbin/sysconfig; then
5796 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5797 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5798 esac
5799 fi
5800 ;;
5801 sco3.2v5*)
5802 lt_cv_sys_max_cmd_len=102400
5803 ;;
5804 sysv5* | sco5v6* | sysv4.2uw2*)
5805 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5806 if test -n "$kargmax"; then
5807 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5808 else
5809 lt_cv_sys_max_cmd_len=32768
5810 fi
5811 ;;
5812 *)
718a6fd8
SE
5813 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5814 if test -n "$lt_cv_sys_max_cmd_len"; then
5ba684e2
NC
5815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5817 else
5818 # Make teststring a little bigger before we do anything with it.
5819 # a 1K string should be a reasonable start.
5820 for i in 1 2 3 4 5 6 7 8 ; do
5821 teststring=$teststring$teststring
5822 done
5823 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5824 # If test is not a shell built-in, we'll probably end up computing a
5825 # maximum length that is only half of the actual maximum length, but
5826 # we can't tell.
3725885a
RW
5827 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5828 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5ba684e2
NC
5829 test $i != 17 # 1/2 MB should be enough
5830 do
5831 i=`expr $i + 1`
5832 teststring=$teststring$teststring
5833 done
5834 # Only check the string length outside the loop.
5835 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5836 teststring=
5837 # Add a significant safety factor because C++ compilers can tack on
5838 # massive amounts of additional arguments before passing them to the
5839 # linker. It appears as though 1/2 is a usable value.
5840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5841 fi
d7040cdb 5842 ;;
d45dc31f 5843 esac
42ecbf5e 5844
42ecbf5e
DJ
5845fi
5846
d7040cdb 5847if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5849$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
252b5132 5850else
81ecdfbb
RW
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5852$as_echo "none" >&6; }
252b5132 5853fi
d7040cdb 5854max_cmd_len=$lt_cv_sys_max_cmd_len
e5a52504 5855
d45dc31f 5856
42ecbf5e 5857
d45dc31f 5858
d45dc31f 5859
d7040cdb 5860
d7040cdb
SE
5861: ${CP="cp -f"}
5862: ${MV="mv -f"}
5863: ${RM="rm -f"}
5864
81ecdfbb
RW
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5866$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
d7040cdb
SE
5867# Try some XSI features
5868xsi_shell=no
5869( _lt_dummy="a/b/c"
5870 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
718a6fd8
SE
5871 = c,a/b,, \
5872 && eval 'test $(( 1 + 1 )) -eq 2 \
5873 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
d7040cdb 5874 && xsi_shell=yes
81ecdfbb
RW
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5876$as_echo "$xsi_shell" >&6; }
d7040cdb
SE
5877
5878
81ecdfbb
RW
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5880$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
d7040cdb
SE
5881lt_shell_append=no
5882( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5883 >/dev/null 2>&1 \
5884 && lt_shell_append=yes
81ecdfbb
RW
5885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5886$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
5887
5888
5889if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5890 lt_unset=unset
252b5132 5891else
d7040cdb 5892 lt_unset=false
252b5132
RH
5893fi
5894
d7040cdb
SE
5895
5896
5897
5898
5899# test EBCDIC or ASCII
5900case `echo X|tr X '\101'` in
5901 A) # ASCII based system
5902 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5903 lt_SP2NL='tr \040 \012'
5904 lt_NL2SP='tr \015\012 \040\040'
5905 ;;
5906 *) # EBCDIC based system
5907 lt_SP2NL='tr \100 \n'
5908 lt_NL2SP='tr \r\n \100\100'
5909 ;;
5910esac
5911
5912
5913
5914
5915
5916
5917
5918
5919
81ecdfbb
RW
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5921$as_echo_n "checking for $LD option to reload object files... " >&6; }
5922if test "${lt_cv_ld_reload_flag+set}" = set; then :
5923 $as_echo_n "(cached) " >&6
252b5132 5924else
d7040cdb
SE
5925 lt_cv_ld_reload_flag='-r'
5926fi
81ecdfbb
RW
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5928$as_echo "$lt_cv_ld_reload_flag" >&6; }
d7040cdb
SE
5929reload_flag=$lt_cv_ld_reload_flag
5930case $reload_flag in
5931"" | " "*) ;;
5932*) reload_flag=" $reload_flag" ;;
5933esac
5934reload_cmds='$LD$reload_flag -o $output$reload_objs'
5935case $host_os in
5936 darwin*)
5937 if test "$GCC" = yes; then
5938 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5939 else
5940 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5941 fi
5942 ;;
5943esac
5944
5945
5946
5947
5948
5949
5950
5951
5952
718a6fd8
SE
5953if test -n "$ac_tool_prefix"; then
5954 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5955set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957$as_echo_n "checking for $ac_word... " >&6; }
5958if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5959 $as_echo_n "(cached) " >&6
718a6fd8
SE
5960else
5961 if test -n "$OBJDUMP"; then
5962 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5963else
5964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965for as_dir in $PATH
5966do
5967 IFS=$as_save_IFS
5968 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 5971 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
5973 break 2
5974 fi
5975done
81ecdfbb
RW
5976 done
5977IFS=$as_save_IFS
718a6fd8
SE
5978
5979fi
5980fi
5981OBJDUMP=$ac_cv_prog_OBJDUMP
5982if test -n "$OBJDUMP"; then
81ecdfbb
RW
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5984$as_echo "$OBJDUMP" >&6; }
718a6fd8 5985else
81ecdfbb
RW
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987$as_echo "no" >&6; }
718a6fd8
SE
5988fi
5989
81ecdfbb 5990
718a6fd8
SE
5991fi
5992if test -z "$ac_cv_prog_OBJDUMP"; then
5993 ac_ct_OBJDUMP=$OBJDUMP
5994 # Extract the first word of "objdump", so it can be a program name with args.
5995set dummy objdump; ac_word=$2
81ecdfbb
RW
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997$as_echo_n "checking for $ac_word... " >&6; }
5998if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5999 $as_echo_n "(cached) " >&6
718a6fd8
SE
6000else
6001 if test -n "$ac_ct_OBJDUMP"; then
6002 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6003else
6004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005for as_dir in $PATH
6006do
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6011 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6013 break 2
6014 fi
6015done
81ecdfbb
RW
6016 done
6017IFS=$as_save_IFS
718a6fd8 6018
718a6fd8
SE
6019fi
6020fi
6021ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6022if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6024$as_echo "$ac_ct_OBJDUMP" >&6; }
718a6fd8 6025else
81ecdfbb
RW
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027$as_echo "no" >&6; }
718a6fd8
SE
6028fi
6029
81ecdfbb
RW
6030 if test "x$ac_ct_OBJDUMP" = x; then
6031 OBJDUMP="false"
6032 else
6033 case $cross_compiling:$ac_tool_warned in
6034yes:)
6035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6037ac_tool_warned=yes ;;
6038esac
6039 OBJDUMP=$ac_ct_OBJDUMP
6040 fi
718a6fd8
SE
6041else
6042 OBJDUMP="$ac_cv_prog_OBJDUMP"
6043fi
6044
6045test -z "$OBJDUMP" && OBJDUMP=objdump
6046
6047
6048
6049
6050
6051
6052
6053
d7040cdb 6054
81ecdfbb
RW
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6056$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6057if test "${lt_cv_deplibs_check_method+set}" = set; then :
6058 $as_echo_n "(cached) " >&6
d7040cdb
SE
6059else
6060 lt_cv_file_magic_cmd='$MAGIC_CMD'
6061lt_cv_file_magic_test_file=
6062lt_cv_deplibs_check_method='unknown'
6063# Need to set the preceding variable on all platforms that support
6064# interlibrary dependencies.
6065# 'none' -- dependencies not supported.
6066# `unknown' -- same as none, but documents that we really don't know.
6067# 'pass_all' -- all dependencies passed with no checks.
6068# 'test_compile' -- check by making test program.
6069# 'file_magic [[regex]]' -- check by looking for files in library path
6070# which responds to the $file_magic_cmd with a given extended regex.
6071# If you have `file' or equivalent on your system and you're not sure
6072# whether `pass_all' will *always* work, you probably want this one.
6073
6074case $host_os in
50e7d84b 6075aix[4-9]*)
d7040cdb
SE
6076 lt_cv_deplibs_check_method=pass_all
6077 ;;
6078
6079beos*)
6080 lt_cv_deplibs_check_method=pass_all
6081 ;;
6082
6083bsdi[45]*)
6084 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6085 lt_cv_file_magic_cmd='/usr/bin/file -L'
6086 lt_cv_file_magic_test_file=/shlib/libc.so
6087 ;;
6088
6089cygwin*)
6090 # func_win32_libid is a shell function defined in ltmain.sh
6091 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6092 lt_cv_file_magic_cmd='func_win32_libid'
6093 ;;
6094
6095mingw* | pw32*)
6096 # Base MSYS/MinGW do not provide the 'file' command needed by
6097 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6098 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6099 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6100 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
d7040cdb
SE
6101 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6102 lt_cv_file_magic_cmd='func_win32_libid'
6103 else
6104 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6105 lt_cv_file_magic_cmd='$OBJDUMP -f'
6106 fi
6107 ;;
6108
3725885a 6109cegcc*)
718a6fd8
SE
6110 # use the weaker test based on 'objdump'. See mingw*.
6111 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6112 lt_cv_file_magic_cmd='$OBJDUMP -f'
6113 ;;
6114
d7040cdb
SE
6115darwin* | rhapsody*)
6116 lt_cv_deplibs_check_method=pass_all
d45dc31f 6117 ;;
d7040cdb
SE
6118
6119freebsd* | dragonfly*)
6120 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6121 case $host_cpu in
6122 i*86 )
6123 # Not sure whether the presence of OpenBSD here was a mistake.
6124 # Let's accept both of them until this is cleared up.
6125 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6126 lt_cv_file_magic_cmd=/usr/bin/file
6127 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6128 ;;
6129 esac
6130 else
6131 lt_cv_deplibs_check_method=pass_all
6132 fi
6133 ;;
6134
6135gnu*)
6136 lt_cv_deplibs_check_method=pass_all
d45dc31f 6137 ;;
d7040cdb 6138
3725885a
RW
6139haiku*)
6140 lt_cv_deplibs_check_method=pass_all
6141 ;;
6142
d7040cdb
SE
6143hpux10.20* | hpux11*)
6144 lt_cv_file_magic_cmd=/usr/bin/file
6145 case $host_cpu in
6146 ia64*)
6147 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6148 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6149 ;;
6150 hppa*64*)
3725885a 6151 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]'
d7040cdb
SE
6152 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6153 ;;
d45dc31f 6154 *)
3725885a 6155 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
d7040cdb
SE
6156 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6157 ;;
6158 esac
6159 ;;
42ecbf5e 6160
d7040cdb
SE
6161interix[3-9]*)
6162 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6163 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6164 ;;
42ecbf5e 6165
d7040cdb
SE
6166irix5* | irix6* | nonstopux*)
6167 case $LD in
6168 *-32|*"-32 ") libmagic=32-bit;;
6169 *-n32|*"-n32 ") libmagic=N32;;
6170 *-64|*"-64 ") libmagic=64-bit;;
6171 *) libmagic=never-match;;
6172 esac
6173 lt_cv_deplibs_check_method=pass_all
d45dc31f 6174 ;;
42ecbf5e 6175
d7040cdb 6176# This must be Linux ELF.
58e24671 6177linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
6178 lt_cv_deplibs_check_method=pass_all
6179 ;;
252b5132 6180
d7040cdb
SE
6181netbsd*)
6182 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6183 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f 6184 else
d7040cdb 6185 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
d45dc31f 6186 fi
d7040cdb
SE
6187 ;;
6188
6189newos6*)
6190 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6191 lt_cv_file_magic_cmd=/usr/bin/file
6192 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6193 ;;
6194
6195*nto* | *qnx*)
6196 lt_cv_deplibs_check_method=pass_all
6197 ;;
42ecbf5e 6198
d7040cdb
SE
6199openbsd*)
6200 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6201 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6202 else
6203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f
SE
6204 fi
6205 ;;
d7040cdb
SE
6206
6207osf3* | osf4* | osf5*)
6208 lt_cv_deplibs_check_method=pass_all
6209 ;;
6210
6211rdos*)
6212 lt_cv_deplibs_check_method=pass_all
6213 ;;
6214
6215solaris*)
6216 lt_cv_deplibs_check_method=pass_all
6217 ;;
6218
6219sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6220 lt_cv_deplibs_check_method=pass_all
6221 ;;
6222
6223sysv4 | sysv4.3*)
6224 case $host_vendor in
6225 motorola)
6226 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]'
6227 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6228 ;;
6229 ncr)
6230 lt_cv_deplibs_check_method=pass_all
6231 ;;
6232 sequent)
6233 lt_cv_file_magic_cmd='/bin/file'
6234 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6235 ;;
6236 sni)
6237 lt_cv_file_magic_cmd='/bin/file'
6238 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6239 lt_cv_file_magic_test_file=/lib/libc.so
6240 ;;
6241 siemens)
6242 lt_cv_deplibs_check_method=pass_all
6243 ;;
6244 pc)
6245 lt_cv_deplibs_check_method=pass_all
6246 ;;
6247 esac
6248 ;;
6249
6250tpf*)
6251 lt_cv_deplibs_check_method=pass_all
6252 ;;
d45dc31f 6253esac
42ecbf5e 6254
d7040cdb 6255fi
81ecdfbb
RW
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6257$as_echo "$lt_cv_deplibs_check_method" >&6; }
d7040cdb
SE
6258file_magic_cmd=$lt_cv_file_magic_cmd
6259deplibs_check_method=$lt_cv_deplibs_check_method
6260test -z "$deplibs_check_method" && deplibs_check_method=unknown
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
d45dc31f 6273if test -n "$ac_tool_prefix"; then
d7040cdb
SE
6274 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6275set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277$as_echo_n "checking for $ac_word... " >&6; }
6278if test "${ac_cv_prog_AR+set}" = set; then :
6279 $as_echo_n "(cached) " >&6
42ecbf5e 6280else
d7040cdb
SE
6281 if test -n "$AR"; then
6282 ac_cv_prog_AR="$AR" # Let the user override the test.
d45dc31f
SE
6283else
6284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285for as_dir in $PATH
6286do
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6291 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6293 break 2
6294 fi
6295done
81ecdfbb
RW
6296 done
6297IFS=$as_save_IFS
42ecbf5e 6298
42ecbf5e 6299fi
d45dc31f 6300fi
d7040cdb
SE
6301AR=$ac_cv_prog_AR
6302if test -n "$AR"; then
81ecdfbb
RW
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6304$as_echo "$AR" >&6; }
d45dc31f 6305else
81ecdfbb
RW
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307$as_echo "no" >&6; }
d45dc31f 6308fi
42ecbf5e 6309
81ecdfbb 6310
42ecbf5e 6311fi
d7040cdb
SE
6312if test -z "$ac_cv_prog_AR"; then
6313 ac_ct_AR=$AR
6314 # Extract the first word of "ar", so it can be a program name with args.
6315set dummy ar; ac_word=$2
81ecdfbb
RW
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317$as_echo_n "checking for $ac_word... " >&6; }
6318if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6319 $as_echo_n "(cached) " >&6
42ecbf5e 6320else
d7040cdb
SE
6321 if test -n "$ac_ct_AR"; then
6322 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
42ecbf5e 6323else
d45dc31f
SE
6324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325for as_dir in $PATH
6326do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6331 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6333 break 2
6334 fi
6335done
81ecdfbb
RW
6336 done
6337IFS=$as_save_IFS
42ecbf5e 6338
42ecbf5e 6339fi
42ecbf5e 6340fi
d7040cdb
SE
6341ac_ct_AR=$ac_cv_prog_ac_ct_AR
6342if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6344$as_echo "$ac_ct_AR" >&6; }
252b5132 6345else
81ecdfbb
RW
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347$as_echo "no" >&6; }
252b5132 6348fi
252b5132 6349
81ecdfbb
RW
6350 if test "x$ac_ct_AR" = x; then
6351 AR="false"
6352 else
6353 case $cross_compiling:$ac_tool_warned in
6354yes:)
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6357ac_tool_warned=yes ;;
6358esac
6359 AR=$ac_ct_AR
6360 fi
d45dc31f 6361else
d7040cdb 6362 AR="$ac_cv_prog_AR"
d45dc31f 6363fi
42ecbf5e 6364
d7040cdb
SE
6365test -z "$AR" && AR=ar
6366test -z "$AR_FLAGS" && AR_FLAGS=cru
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
d45dc31f
SE
6378if test -n "$ac_tool_prefix"; then
6379 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6380set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382$as_echo_n "checking for $ac_word... " >&6; }
6383if test "${ac_cv_prog_STRIP+set}" = set; then :
6384 $as_echo_n "(cached) " >&6
d45dc31f
SE
6385else
6386 if test -n "$STRIP"; then
6387 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6388else
6389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390for as_dir in $PATH
42ecbf5e 6391do
d45dc31f
SE
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d45dc31f 6396 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6398 break 2
6399 fi
6400done
81ecdfbb
RW
6401 done
6402IFS=$as_save_IFS
d45dc31f
SE
6403
6404fi
6405fi
6406STRIP=$ac_cv_prog_STRIP
6407if test -n "$STRIP"; then
81ecdfbb
RW
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6409$as_echo "$STRIP" >&6; }
252b5132 6410else
81ecdfbb
RW
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412$as_echo "no" >&6; }
d45dc31f 6413fi
42ecbf5e 6414
81ecdfbb 6415
252b5132 6416fi
d45dc31f
SE
6417if test -z "$ac_cv_prog_STRIP"; then
6418 ac_ct_STRIP=$STRIP
6419 # Extract the first word of "strip", so it can be a program name with args.
6420set dummy strip; ac_word=$2
81ecdfbb
RW
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422$as_echo_n "checking for $ac_word... " >&6; }
6423if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6424 $as_echo_n "(cached) " >&6
d45dc31f
SE
6425else
6426 if test -n "$ac_ct_STRIP"; then
6427 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6428else
6429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430for as_dir in $PATH
6431do
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d45dc31f 6436 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6438 break 2
6439 fi
6440done
81ecdfbb
RW
6441 done
6442IFS=$as_save_IFS
42ecbf5e 6443
d45dc31f
SE
6444fi
6445fi
6446ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6447if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6449$as_echo "$ac_ct_STRIP" >&6; }
d45dc31f 6450else
81ecdfbb
RW
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452$as_echo "no" >&6; }
252b5132 6453fi
e5a52504 6454
81ecdfbb
RW
6455 if test "x$ac_ct_STRIP" = x; then
6456 STRIP=":"
6457 else
6458 case $cross_compiling:$ac_tool_warned in
6459yes:)
6460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462ac_tool_warned=yes ;;
6463esac
6464 STRIP=$ac_ct_STRIP
6465 fi
d45dc31f
SE
6466else
6467 STRIP="$ac_cv_prog_STRIP"
6468fi
e5a52504 6469
d7040cdb 6470test -z "$STRIP" && STRIP=:
d45dc31f 6471
d45dc31f
SE
6472
6473
d45dc31f 6474
d45dc31f
SE
6475
6476
d7040cdb
SE
6477if test -n "$ac_tool_prefix"; then
6478 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6479set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481$as_echo_n "checking for $ac_word... " >&6; }
6482if test "${ac_cv_prog_RANLIB+set}" = set; then :
6483 $as_echo_n "(cached) " >&6
d45dc31f 6484else
d7040cdb
SE
6485 if test -n "$RANLIB"; then
6486 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6487else
6488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489for as_dir in $PATH
6490do
6491 IFS=$as_save_IFS
6492 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6495 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6497 break 2
d45dc31f 6498 fi
d7040cdb 6499done
81ecdfbb
RW
6500 done
6501IFS=$as_save_IFS
d45dc31f 6502
d7040cdb
SE
6503fi
6504fi
6505RANLIB=$ac_cv_prog_RANLIB
6506if test -n "$RANLIB"; then
81ecdfbb
RW
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6508$as_echo "$RANLIB" >&6; }
d7040cdb 6509else
81ecdfbb
RW
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511$as_echo "no" >&6; }
d7040cdb 6512fi
d45dc31f 6513
81ecdfbb 6514
d7040cdb
SE
6515fi
6516if test -z "$ac_cv_prog_RANLIB"; then
6517 ac_ct_RANLIB=$RANLIB
6518 # Extract the first word of "ranlib", so it can be a program name with args.
6519set dummy ranlib; ac_word=$2
81ecdfbb
RW
6520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521$as_echo_n "checking for $ac_word... " >&6; }
6522if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6523 $as_echo_n "(cached) " >&6
d7040cdb
SE
6524else
6525 if test -n "$ac_ct_RANLIB"; then
6526 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6527else
6528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529for as_dir in $PATH
6530do
6531 IFS=$as_save_IFS
6532 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6533 for ac_exec_ext in '' $ac_executable_extensions; do
6534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6535 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6537 break 2
d45dc31f 6538 fi
d7040cdb 6539done
81ecdfbb
RW
6540 done
6541IFS=$as_save_IFS
d45dc31f 6542
d7040cdb
SE
6543fi
6544fi
6545ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6546if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6548$as_echo "$ac_ct_RANLIB" >&6; }
d15b04bd 6549else
81ecdfbb
RW
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551$as_echo "no" >&6; }
d7040cdb 6552fi
252b5132 6553
81ecdfbb
RW
6554 if test "x$ac_ct_RANLIB" = x; then
6555 RANLIB=":"
6556 else
6557 case $cross_compiling:$ac_tool_warned in
6558yes:)
6559{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6560$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6561ac_tool_warned=yes ;;
6562esac
6563 RANLIB=$ac_ct_RANLIB
6564 fi
d7040cdb
SE
6565else
6566 RANLIB="$ac_cv_prog_RANLIB"
6567fi
d45dc31f 6568
d7040cdb 6569test -z "$RANLIB" && RANLIB=:
d45dc31f 6570
d45dc31f 6571
d45dc31f 6572
42ecbf5e 6573
e5a52504 6574
d7040cdb
SE
6575
6576# Determine commands to create old-style static archives.
718a6fd8 6577old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d7040cdb
SE
6578old_postinstall_cmds='chmod 644 $oldlib'
6579old_postuninstall_cmds=
6580
6581if test -n "$RANLIB"; then
6582 case $host_os in
6583 openbsd*)
6584 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6585 ;;
6586 *)
6587 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6588 ;;
6589 esac
6590 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d45dc31f 6591fi
d45dc31f 6592
3725885a
RW
6593case $host_os in
6594 darwin*)
6595 lock_old_archive_extraction=yes ;;
6596 *)
6597 lock_old_archive_extraction=no ;;
6598esac
6599
6600
6601
6602
6603
6604
d45dc31f 6605
d45dc31f
SE
6606
6607
d15b04bd 6608
3e321448 6609
d45dc31f 6610
d45dc31f 6611
d45dc31f
SE
6612
6613
d45dc31f 6614
d45dc31f 6615
d45dc31f
SE
6616
6617
6618
6619
6620
6621
6622
d45dc31f 6623
d45dc31f 6624
d45dc31f 6625
d45dc31f 6626
d45dc31f 6627
d45dc31f 6628
d45dc31f 6629
d45dc31f 6630
3e321448
L
6631
6632
d45dc31f
SE
6633
6634
d45dc31f
SE
6635
6636
d45dc31f 6637
d7040cdb
SE
6638# If no C compiler was specified, use CC.
6639LTCC=${LTCC-"$CC"}
42ecbf5e 6640
d7040cdb
SE
6641# If no C compiler flags were specified, use CFLAGS.
6642LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
e5a52504 6643
d7040cdb
SE
6644# Allow CC to be a program name with arguments.
6645compiler=$CC
d15b04bd 6646
d7040cdb
SE
6647
6648# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6650$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6651if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6652 $as_echo_n "(cached) " >&6
d15b04bd 6653else
d7040cdb
SE
6654
6655# These are sane defaults that work on at least a few old systems.
6656# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6657
6658# Character class describing NM global symbol codes.
6659symcode='[BCDEGRST]'
6660
6661# Regexp to match symbols that can be accessed directly from C.
6662sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6663
6664# Define system-specific variables.
6665case $host_os in
6666aix*)
6667 symcode='[BCDT]'
6668 ;;
718a6fd8 6669cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
6670 symcode='[ABCDGISTW]'
6671 ;;
6672hpux*)
6673 if test "$host_cpu" = ia64; then
6674 symcode='[ABCDEGRST]'
42ecbf5e 6675 fi
d7040cdb
SE
6676 ;;
6677irix* | nonstopux*)
6678 symcode='[BCDEGRST]'
6679 ;;
6680osf*)
6681 symcode='[BCDEGQRST]'
6682 ;;
6683solaris*)
6684 symcode='[BDRT]'
6685 ;;
6686sco3.2v5*)
6687 symcode='[DT]'
6688 ;;
6689sysv4.2uw2*)
6690 symcode='[DT]'
6691 ;;
6692sysv5* | sco5v6* | unixware* | OpenUNIX*)
6693 symcode='[ABDT]'
6694 ;;
6695sysv4)
6696 symcode='[DFNSTU]'
6697 ;;
6698esac
d15b04bd 6699
d7040cdb
SE
6700# If we're using GNU nm, then use its standard symbol codes.
6701case `$NM -V 2>&1` in
6702*GNU* | *'with BFD'*)
6703 symcode='[ABCDGIRSTW]' ;;
6704esac
e5a52504 6705
d7040cdb
SE
6706# Transform an extracted symbol line into a proper C declaration.
6707# Some systems (esp. on ia64) link data and code symbols differently,
7357c5b6
AM
6708# so use this general approach.
6709lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 6710
7357c5b6
AM
6711# Transform an extracted symbol line into symbol name and symbol address
6712lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
718a6fd8 6713lt_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'"
d7040cdb 6714
7357c5b6
AM
6715# Handle CRLF in mingw tool chain
6716opt_cr=
6717case $build_os in
6718mingw*)
6719 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6720 ;;
6721esac
d7040cdb 6722
7357c5b6
AM
6723# Try without a prefix underscore, then with it.
6724for ac_symprfx in "" "_"; do
d7040cdb 6725
7357c5b6
AM
6726 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6727 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6728
7357c5b6
AM
6729 # Write the raw and C identifiers.
6730 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6731 # Fake it for dumpbin and say T for any non-static function
6732 # and D for any global variable.
6733 # Also find C++ and __fastcall symbols from MSVC++,
6734 # which start with @ or ?.
6735 lt_cv_sys_global_symbol_pipe="$AWK '"\
6736" {last_section=section; section=\$ 3};"\
6737" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6738" \$ 0!~/External *\|/{next};"\
6739" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6740" {if(hide[section]) next};"\
6741" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6742" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6743" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6744" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6745" ' prfx=^$ac_symprfx"
6746 else
6747 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6748 fi
6749
6750 # Check to see that the pipe works correctly.
6751 pipe_works=no
6752
6753 rm -f conftest*
6754 cat > conftest.$ac_ext <<_LT_EOF
6755#ifdef __cplusplus
6756extern "C" {
6757#endif
6758char nm_test_var;
6759void nm_test_func(void);
6760void nm_test_func(void){}
6761#ifdef __cplusplus
d7040cdb 6762}
7357c5b6
AM
6763#endif
6764int main(){nm_test_var='a';nm_test_func();return(0);}
6765_LT_EOF
6766
81ecdfbb 6767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6768 (eval $ac_compile) 2>&5
42ecbf5e 6769 ac_status=$?
81ecdfbb
RW
6770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6771 test $ac_status = 0; }; then
7357c5b6
AM
6772 # Now try to grab the symbols.
6773 nlist=conftest.nm
3725885a
RW
6774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6775 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
42ecbf5e 6776 ac_status=$?
81ecdfbb
RW
6777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6778 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6779 # Try sorting and uniquifying the output.
6780 if sort "$nlist" | uniq > "$nlist"T; then
6781 mv -f "$nlist"T "$nlist"
6782 else
6783 rm -f "$nlist"T
6784 fi
d7040cdb 6785
7357c5b6
AM
6786 # Make sure that we snagged all the symbols we need.
6787 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6788 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6789 cat <<_LT_EOF > conftest.$ac_ext
6790#ifdef __cplusplus
6791extern "C" {
6792#endif
e5a52504 6793
7357c5b6
AM
6794_LT_EOF
6795 # Now generate the symbol file.
6796 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7148cc28 6797
7357c5b6 6798 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 6799
7357c5b6
AM
6800/* The mapping between symbol names and symbols. */
6801const struct {
6802 const char *name;
6803 void *address;
6804}
6805lt__PROGRAM__LTX_preloaded_symbols[] =
6806{
6807 { "@PROGRAM@", (void *) 0 },
6808_LT_EOF
6809 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6810 cat <<\_LT_EOF >> conftest.$ac_ext
6811 {0, (void *) 0}
6812};
d7040cdb 6813
7357c5b6
AM
6814/* This works around a problem in FreeBSD linker */
6815#ifdef FREEBSD_WORKAROUND
6816static const void *lt_preloaded_setup() {
6817 return lt__PROGRAM__LTX_preloaded_symbols;
6818}
d7040cdb
SE
6819#endif
6820
7357c5b6 6821#ifdef __cplusplus
d7040cdb 6822}
7357c5b6
AM
6823#endif
6824_LT_EOF
6825 # Now try linking the two files.
6826 mv conftest.$ac_objext conftstm.$ac_objext
6827 lt_save_LIBS="$LIBS"
6828 lt_save_CFLAGS="$CFLAGS"
6829 LIBS="conftstm.$ac_objext"
6830 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
6832 (eval $ac_link) 2>&5
6833 ac_status=$?
81ecdfbb
RW
6834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6836 pipe_works=yes
6837 fi
6838 LIBS="$lt_save_LIBS"
6839 CFLAGS="$lt_save_CFLAGS"
6840 else
6841 echo "cannot find nm_test_func in $nlist" >&5
6842 fi
6843 else
6844 echo "cannot find nm_test_var in $nlist" >&5
6845 fi
6846 else
6847 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6848 fi
6849 else
6850 echo "$progname: failed program was:" >&5
6851 cat conftest.$ac_ext >&5
6852 fi
718a6fd8 6853 rm -rf conftest* conftst*
7357c5b6
AM
6854
6855 # Do not use the global_symbol_pipe unless it works.
6856 if test "$pipe_works" = yes; then
6857 break
6858 else
6859 lt_cv_sys_global_symbol_pipe=
6860 fi
6861done
d7040cdb 6862
d7040cdb 6863fi
7357c5b6
AM
6864
6865if test -z "$lt_cv_sys_global_symbol_pipe"; then
6866 lt_cv_sys_global_symbol_to_cdecl=
d7040cdb 6867fi
7357c5b6 6868if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6870$as_echo "failed" >&6; }
7357c5b6 6871else
81ecdfbb
RW
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6873$as_echo "ok" >&6; }
d7040cdb 6874fi
20e95c23 6875
20e95c23
DJ
6876
6877
20e95c23
DJ
6878
6879
20e95c23 6880
20e95c23 6881
20e95c23 6882
20e95c23 6883
20e95c23 6884
20e95c23
DJ
6885
6886
7357c5b6
AM
6887
6888
6889
718a6fd8
SE
6890
6891
6892
6893
6894
7357c5b6
AM
6895
6896
81ecdfbb
RW
6897# Check whether --enable-libtool-lock was given.
6898if test "${enable_libtool_lock+set}" = set; then :
6899 enableval=$enable_libtool_lock;
6900fi
7357c5b6 6901
7357c5b6
AM
6902test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6903
6904# Some flags need to be propagated to the compiler or linker for good
6905# libtool support.
6906case $host in
6907ia64-*-hpux*)
6908 # Find out which ABI we are using.
6909 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6911 (eval $ac_compile) 2>&5
6912 ac_status=$?
81ecdfbb
RW
6913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6914 test $ac_status = 0; }; then
7357c5b6
AM
6915 case `/usr/bin/file conftest.$ac_objext` in
6916 *ELF-32*)
6917 HPUX_IA64_MODE="32"
6918 ;;
6919 *ELF-64*)
6920 HPUX_IA64_MODE="64"
6921 ;;
6922 esac
6923 fi
6924 rm -rf conftest*
6925 ;;
6926*-*-irix6*)
6927 # Find out which ABI we are using.
3725885a 6928 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 6929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6930 (eval $ac_compile) 2>&5
6931 ac_status=$?
81ecdfbb
RW
6932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6933 test $ac_status = 0; }; then
7357c5b6
AM
6934 if test "$lt_cv_prog_gnu_ld" = yes; then
6935 case `/usr/bin/file conftest.$ac_objext` in
6936 *32-bit*)
6937 LD="${LD-ld} -melf32bsmip"
6938 ;;
6939 *N32*)
6940 LD="${LD-ld} -melf32bmipn32"
6941 ;;
6942 *64-bit*)
6943 LD="${LD-ld} -melf64bmip"
6944 ;;
6945 esac
6946 else
6947 case `/usr/bin/file conftest.$ac_objext` in
6948 *32-bit*)
6949 LD="${LD-ld} -32"
6950 ;;
6951 *N32*)
6952 LD="${LD-ld} -n32"
6953 ;;
6954 *64-bit*)
6955 LD="${LD-ld} -64"
6956 ;;
6957 esac
6958 fi
6959 fi
6960 rm -rf conftest*
6961 ;;
6962
6963x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6964s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6965 # Find out which ABI we are using.
6966 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6968 (eval $ac_compile) 2>&5
6969 ac_status=$?
81ecdfbb
RW
6970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6971 test $ac_status = 0; }; then
7357c5b6
AM
6972 case `/usr/bin/file conftest.o` in
6973 *32-bit*)
6974 case $host in
6975 x86_64-*kfreebsd*-gnu)
6976 LD="${LD-ld} -m elf_i386_fbsd"
6977 ;;
6978 x86_64-*linux*)
6979 LD="${LD-ld} -m elf_i386"
6980 ;;
6981 ppc64-*linux*|powerpc64-*linux*)
6982 LD="${LD-ld} -m elf32ppclinux"
6983 ;;
6984 s390x-*linux*)
6985 LD="${LD-ld} -m elf_s390"
6986 ;;
6987 sparc64-*linux*)
6988 LD="${LD-ld} -m elf32_sparc"
6989 ;;
6990 esac
6991 ;;
6992 *64-bit*)
6993 case $host in
6994 x86_64-*kfreebsd*-gnu)
6995 LD="${LD-ld} -m elf_x86_64_fbsd"
6996 ;;
6997 x86_64-*linux*)
6998 LD="${LD-ld} -m elf_x86_64"
6999 ;;
7000 ppc*-*linux*|powerpc*-*linux*)
7001 LD="${LD-ld} -m elf64ppc"
7002 ;;
7003 s390*-*linux*|s390*-*tpf*)
7004 LD="${LD-ld} -m elf64_s390"
7005 ;;
7006 sparc*-*linux*)
7007 LD="${LD-ld} -m elf64_sparc"
7008 ;;
7009 esac
7010 ;;
7011 esac
7012 fi
7013 rm -rf conftest*
7014 ;;
7015
7016*-*-sco3.2v5*)
7017 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7018 SAVE_CFLAGS="$CFLAGS"
7019 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7021$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7022if test "${lt_cv_cc_needs_belf+set}" = set; then :
7023 $as_echo_n "(cached) " >&6
d7040cdb 7024else
7357c5b6
AM
7025 ac_ext=c
7026ac_cpp='$CPP $CPPFLAGS'
7027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7029ac_compiler_gnu=$ac_cv_c_compiler_gnu
7030
81ecdfbb 7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 7032/* end confdefs.h. */
20e95c23 7033
7357c5b6
AM
7034int
7035main ()
7036{
7037
7038 ;
7039 return 0;
7040}
d7040cdb 7041_ACEOF
81ecdfbb 7042if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7043 lt_cv_cc_needs_belf=yes
d15b04bd 7044else
81ecdfbb 7045 lt_cv_cc_needs_belf=no
d7040cdb 7046fi
81ecdfbb
RW
7047rm -f core conftest.err conftest.$ac_objext \
7048 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7049 ac_ext=c
7050ac_cpp='$CPP $CPPFLAGS'
7051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7053ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 7054
718a6fd8 7055fi
81ecdfbb
RW
7056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7057$as_echo "$lt_cv_cc_needs_belf" >&6; }
718a6fd8
SE
7058 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7059 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7060 CFLAGS="$SAVE_CFLAGS"
7061 fi
7062 ;;
7063sparc*-*solaris*)
7064 # Find out which ABI we are using.
7065 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
718a6fd8
SE
7067 (eval $ac_compile) 2>&5
7068 ac_status=$?
81ecdfbb
RW
7069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7070 test $ac_status = 0; }; then
718a6fd8
SE
7071 case `/usr/bin/file conftest.o` in
7072 *64-bit*)
7073 case $lt_cv_prog_gnu_ld in
7074 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7075 *)
7076 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7077 LD="${LD-ld} -64"
7078 fi
7079 ;;
7080 esac
7081 ;;
7082 esac
7083 fi
7084 rm -rf conftest*
7085 ;;
7086esac
7087
7088need_locks="$enable_libtool_lock"
7089
7090
7091 case $host_os in
7092 rhapsody* | darwin*)
7093 if test -n "$ac_tool_prefix"; then
7094 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7095set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097$as_echo_n "checking for $ac_word... " >&6; }
7098if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7099 $as_echo_n "(cached) " >&6
718a6fd8
SE
7100else
7101 if test -n "$DSYMUTIL"; then
7102 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7103else
7104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105for as_dir in $PATH
7106do
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7111 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7113 break 2
7114 fi
7115done
81ecdfbb
RW
7116 done
7117IFS=$as_save_IFS
718a6fd8
SE
7118
7119fi
7120fi
7121DSYMUTIL=$ac_cv_prog_DSYMUTIL
7122if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7124$as_echo "$DSYMUTIL" >&6; }
718a6fd8 7125else
81ecdfbb
RW
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127$as_echo "no" >&6; }
718a6fd8
SE
7128fi
7129
81ecdfbb 7130
718a6fd8
SE
7131fi
7132if test -z "$ac_cv_prog_DSYMUTIL"; then
7133 ac_ct_DSYMUTIL=$DSYMUTIL
7134 # Extract the first word of "dsymutil", so it can be a program name with args.
7135set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137$as_echo_n "checking for $ac_word... " >&6; }
7138if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7139 $as_echo_n "(cached) " >&6
718a6fd8
SE
7140else
7141 if test -n "$ac_ct_DSYMUTIL"; then
7142 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7143else
7144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145for as_dir in $PATH
7146do
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7151 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7153 break 2
7154 fi
7155done
81ecdfbb
RW
7156 done
7157IFS=$as_save_IFS
718a6fd8 7158
718a6fd8
SE
7159fi
7160fi
7161ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7162if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7164$as_echo "$ac_ct_DSYMUTIL" >&6; }
718a6fd8 7165else
81ecdfbb
RW
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167$as_echo "no" >&6; }
718a6fd8
SE
7168fi
7169
81ecdfbb
RW
7170 if test "x$ac_ct_DSYMUTIL" = x; then
7171 DSYMUTIL=":"
7172 else
7173 case $cross_compiling:$ac_tool_warned in
7174yes:)
7175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7177ac_tool_warned=yes ;;
7178esac
7179 DSYMUTIL=$ac_ct_DSYMUTIL
7180 fi
718a6fd8
SE
7181else
7182 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7183fi
7184
7185 if test -n "$ac_tool_prefix"; then
7186 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7187set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189$as_echo_n "checking for $ac_word... " >&6; }
7190if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7191 $as_echo_n "(cached) " >&6
718a6fd8
SE
7192else
7193 if test -n "$NMEDIT"; then
7194 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7195else
7196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197for as_dir in $PATH
7198do
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7203 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7205 break 2
7206 fi
7207done
81ecdfbb
RW
7208 done
7209IFS=$as_save_IFS
718a6fd8
SE
7210
7211fi
7212fi
7213NMEDIT=$ac_cv_prog_NMEDIT
7214if test -n "$NMEDIT"; then
81ecdfbb
RW
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7216$as_echo "$NMEDIT" >&6; }
718a6fd8 7217else
81ecdfbb
RW
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219$as_echo "no" >&6; }
718a6fd8
SE
7220fi
7221
81ecdfbb 7222
718a6fd8
SE
7223fi
7224if test -z "$ac_cv_prog_NMEDIT"; then
7225 ac_ct_NMEDIT=$NMEDIT
7226 # Extract the first word of "nmedit", so it can be a program name with args.
7227set dummy nmedit; ac_word=$2
81ecdfbb
RW
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229$as_echo_n "checking for $ac_word... " >&6; }
7230if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7231 $as_echo_n "(cached) " >&6
718a6fd8
SE
7232else
7233 if test -n "$ac_ct_NMEDIT"; then
7234 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7235else
7236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237for as_dir in $PATH
7238do
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7243 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7245 break 2
7246 fi
7247done
81ecdfbb
RW
7248 done
7249IFS=$as_save_IFS
718a6fd8 7250
718a6fd8
SE
7251fi
7252fi
7253ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7254if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7256$as_echo "$ac_ct_NMEDIT" >&6; }
718a6fd8 7257else
81ecdfbb
RW
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259$as_echo "no" >&6; }
718a6fd8
SE
7260fi
7261
81ecdfbb
RW
7262 if test "x$ac_ct_NMEDIT" = x; then
7263 NMEDIT=":"
7264 else
7265 case $cross_compiling:$ac_tool_warned in
7266yes:)
7267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7269ac_tool_warned=yes ;;
7270esac
7271 NMEDIT=$ac_ct_NMEDIT
7272 fi
718a6fd8
SE
7273else
7274 NMEDIT="$ac_cv_prog_NMEDIT"
7275fi
7276
7277 if test -n "$ac_tool_prefix"; then
7278 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7279set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281$as_echo_n "checking for $ac_word... " >&6; }
7282if test "${ac_cv_prog_LIPO+set}" = set; then :
7283 $as_echo_n "(cached) " >&6
718a6fd8
SE
7284else
7285 if test -n "$LIPO"; then
7286 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7287else
7288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289for as_dir in $PATH
7290do
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7295 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7297 break 2
7298 fi
7299done
81ecdfbb
RW
7300 done
7301IFS=$as_save_IFS
718a6fd8
SE
7302
7303fi
7304fi
7305LIPO=$ac_cv_prog_LIPO
7306if test -n "$LIPO"; then
81ecdfbb
RW
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7308$as_echo "$LIPO" >&6; }
718a6fd8 7309else
81ecdfbb
RW
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311$as_echo "no" >&6; }
718a6fd8
SE
7312fi
7313
81ecdfbb 7314
718a6fd8
SE
7315fi
7316if test -z "$ac_cv_prog_LIPO"; then
7317 ac_ct_LIPO=$LIPO
7318 # Extract the first word of "lipo", so it can be a program name with args.
7319set dummy lipo; ac_word=$2
81ecdfbb
RW
7320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321$as_echo_n "checking for $ac_word... " >&6; }
7322if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7323 $as_echo_n "(cached) " >&6
718a6fd8
SE
7324else
7325 if test -n "$ac_ct_LIPO"; then
7326 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7327else
7328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329for as_dir in $PATH
7330do
7331 IFS=$as_save_IFS
7332 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7335 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7337 break 2
7338 fi
7339done
81ecdfbb
RW
7340 done
7341IFS=$as_save_IFS
718a6fd8 7342
718a6fd8
SE
7343fi
7344fi
7345ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7346if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7348$as_echo "$ac_ct_LIPO" >&6; }
718a6fd8 7349else
81ecdfbb
RW
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351$as_echo "no" >&6; }
718a6fd8
SE
7352fi
7353
81ecdfbb
RW
7354 if test "x$ac_ct_LIPO" = x; then
7355 LIPO=":"
7356 else
7357 case $cross_compiling:$ac_tool_warned in
7358yes:)
7359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7361ac_tool_warned=yes ;;
7362esac
7363 LIPO=$ac_ct_LIPO
7364 fi
718a6fd8
SE
7365else
7366 LIPO="$ac_cv_prog_LIPO"
7367fi
7368
7369 if test -n "$ac_tool_prefix"; then
7370 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7371set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373$as_echo_n "checking for $ac_word... " >&6; }
7374if test "${ac_cv_prog_OTOOL+set}" = set; then :
7375 $as_echo_n "(cached) " >&6
718a6fd8
SE
7376else
7377 if test -n "$OTOOL"; then
7378 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7379else
7380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381for as_dir in $PATH
7382do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7387 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7389 break 2
7390 fi
7391done
81ecdfbb
RW
7392 done
7393IFS=$as_save_IFS
718a6fd8
SE
7394
7395fi
7396fi
7397OTOOL=$ac_cv_prog_OTOOL
7398if test -n "$OTOOL"; then
81ecdfbb
RW
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7400$as_echo "$OTOOL" >&6; }
718a6fd8 7401else
81ecdfbb
RW
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403$as_echo "no" >&6; }
718a6fd8
SE
7404fi
7405
81ecdfbb 7406
718a6fd8
SE
7407fi
7408if test -z "$ac_cv_prog_OTOOL"; then
7409 ac_ct_OTOOL=$OTOOL
7410 # Extract the first word of "otool", so it can be a program name with args.
7411set dummy otool; ac_word=$2
81ecdfbb
RW
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413$as_echo_n "checking for $ac_word... " >&6; }
7414if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7415 $as_echo_n "(cached) " >&6
718a6fd8
SE
7416else
7417 if test -n "$ac_ct_OTOOL"; then
7418 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7419else
7420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421for as_dir in $PATH
7422do
7423 IFS=$as_save_IFS
7424 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7427 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7429 break 2
7430 fi
7431done
81ecdfbb
RW
7432 done
7433IFS=$as_save_IFS
718a6fd8 7434
718a6fd8
SE
7435fi
7436fi
7437ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7438if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7440$as_echo "$ac_ct_OTOOL" >&6; }
718a6fd8 7441else
81ecdfbb
RW
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443$as_echo "no" >&6; }
718a6fd8
SE
7444fi
7445
81ecdfbb
RW
7446 if test "x$ac_ct_OTOOL" = x; then
7447 OTOOL=":"
7448 else
7449 case $cross_compiling:$ac_tool_warned in
7450yes:)
7451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7453ac_tool_warned=yes ;;
7454esac
7455 OTOOL=$ac_ct_OTOOL
7456 fi
718a6fd8
SE
7457else
7458 OTOOL="$ac_cv_prog_OTOOL"
7459fi
7460
7461 if test -n "$ac_tool_prefix"; then
7462 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7463set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465$as_echo_n "checking for $ac_word... " >&6; }
7466if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7467 $as_echo_n "(cached) " >&6
718a6fd8
SE
7468else
7469 if test -n "$OTOOL64"; then
7470 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7471else
7472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473for as_dir in $PATH
7474do
7475 IFS=$as_save_IFS
7476 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7479 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7481 break 2
7482 fi
7483done
81ecdfbb
RW
7484 done
7485IFS=$as_save_IFS
718a6fd8
SE
7486
7487fi
7488fi
7489OTOOL64=$ac_cv_prog_OTOOL64
7490if test -n "$OTOOL64"; then
81ecdfbb
RW
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7492$as_echo "$OTOOL64" >&6; }
718a6fd8 7493else
81ecdfbb
RW
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495$as_echo "no" >&6; }
718a6fd8
SE
7496fi
7497
81ecdfbb 7498
718a6fd8
SE
7499fi
7500if test -z "$ac_cv_prog_OTOOL64"; then
7501 ac_ct_OTOOL64=$OTOOL64
7502 # Extract the first word of "otool64", so it can be a program name with args.
7503set dummy otool64; ac_word=$2
81ecdfbb
RW
7504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505$as_echo_n "checking for $ac_word... " >&6; }
7506if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7507 $as_echo_n "(cached) " >&6
718a6fd8
SE
7508else
7509 if test -n "$ac_ct_OTOOL64"; then
7510 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7511else
7512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513for as_dir in $PATH
7514do
7515 IFS=$as_save_IFS
7516 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7519 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7521 break 2
7522 fi
7523done
81ecdfbb
RW
7524 done
7525IFS=$as_save_IFS
718a6fd8 7526
718a6fd8
SE
7527fi
7528fi
7529ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7530if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7532$as_echo "$ac_ct_OTOOL64" >&6; }
718a6fd8 7533else
81ecdfbb
RW
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535$as_echo "no" >&6; }
718a6fd8
SE
7536fi
7537
81ecdfbb
RW
7538 if test "x$ac_ct_OTOOL64" = x; then
7539 OTOOL64=":"
7540 else
7541 case $cross_compiling:$ac_tool_warned in
7542yes:)
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7545ac_tool_warned=yes ;;
7546esac
7547 OTOOL64=$ac_ct_OTOOL64
7548 fi
718a6fd8
SE
7549else
7550 OTOOL64="$ac_cv_prog_OTOOL64"
7551fi
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
81ecdfbb
RW
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7580$as_echo_n "checking for -single_module linker flag... " >&6; }
7581if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
718a6fd8
SE
7583else
7584 lt_cv_apple_cc_single_mod=no
7585 if test -z "${LT_MULTI_MODULE}"; then
7586 # By default we will add the -single_module flag. You can override
7587 # by either setting the environment variable LT_MULTI_MODULE
7588 # non-empty at configure time, or by adding -multi_module to the
7589 # link flags.
7590 rm -rf libconftest.dylib*
7591 echo "int foo(void){return 1;}" > conftest.c
7592 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7593-dynamiclib -Wl,-single_module conftest.c" >&5
7594 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7595 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7596 _lt_result=$?
7597 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7598 lt_cv_apple_cc_single_mod=yes
7599 else
7600 cat conftest.err >&5
7601 fi
7602 rm -rf libconftest.dylib*
7603 rm -f conftest.*
7604 fi
7605fi
81ecdfbb
RW
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7607$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7609$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7610if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7611 $as_echo_n "(cached) " >&6
718a6fd8
SE
7612else
7613 lt_cv_ld_exported_symbols_list=no
7614 save_LDFLAGS=$LDFLAGS
7615 echo "_main" > conftest.sym
7616 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718a6fd8
SE
7618/* end confdefs.h. */
7619
7620int
7621main ()
7622{
7623
7624 ;
7625 return 0;
7626}
7627_ACEOF
81ecdfbb 7628if ac_fn_c_try_link "$LINENO"; then :
718a6fd8
SE
7629 lt_cv_ld_exported_symbols_list=yes
7630else
81ecdfbb 7631 lt_cv_ld_exported_symbols_list=no
718a6fd8 7632fi
81ecdfbb
RW
7633rm -f core conftest.err conftest.$ac_objext \
7634 conftest$ac_exeext conftest.$ac_ext
718a6fd8
SE
7635 LDFLAGS="$save_LDFLAGS"
7636
7637fi
81ecdfbb
RW
7638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7639$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7641$as_echo_n "checking for -force_load linker flag... " >&6; }
7642if test "${lt_cv_ld_force_load+set}" = set; then :
7643 $as_echo_n "(cached) " >&6
7644else
7645 lt_cv_ld_force_load=no
7646 cat > conftest.c << _LT_EOF
7647int forced_loaded() { return 2;}
7648_LT_EOF
7649 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7650 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7651 echo "$AR cru libconftest.a conftest.o" >&5
7652 $AR cru libconftest.a conftest.o 2>&5
7653 cat > conftest.c << _LT_EOF
7654int main() { return 0;}
7655_LT_EOF
7656 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7657 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7658 _lt_result=$?
7659 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7660 lt_cv_ld_force_load=yes
7661 else
7662 cat conftest.err >&5
7663 fi
7664 rm -f conftest.err libconftest.a conftest conftest.c
7665 rm -rf conftest.dSYM
7666
7667fi
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7669$as_echo "$lt_cv_ld_force_load" >&6; }
718a6fd8
SE
7670 case $host_os in
7671 rhapsody* | darwin1.[012])
7672 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7673 darwin1.*)
7674 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7675 darwin*) # darwin 5.x on
7676 # if running on 10.5 or later, the deployment target defaults
7677 # to the OS version, if on x86, and 10.4, the deployment
7678 # target defaults to 10.4. Don't you love it?
7679 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7680 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7681 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7682 10.[012]*)
7683 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7684 10.*)
7685 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7686 esac
7687 ;;
7688 esac
7689 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7690 _lt_dar_single_mod='$single_module'
7691 fi
7692 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7693 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7694 else
7695 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7696 fi
3725885a 7697 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
718a6fd8
SE
7698 _lt_dsymutil='~$DSYMUTIL $lib || :'
7699 else
7700 _lt_dsymutil=
7701 fi
7702 ;;
7703 esac
7704
718a6fd8 7705for ac_header in dlfcn.h
81ecdfbb
RW
7706do :
7707 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7708"
7709if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
718a6fd8 7710 cat >>confdefs.h <<_ACEOF
81ecdfbb 7711#define HAVE_DLFCN_H 1
718a6fd8
SE
7712_ACEOF
7713
7714fi
7715
7716done
7717
7718
7719
3725885a
RW
7720
7721
718a6fd8
SE
7722# Set options
7723
7724
7725
7726 enable_dlopen=no
7727
7728
7729 enable_win32_dll=no
7730
7731
81ecdfbb
RW
7732 # Check whether --enable-shared was given.
7733if test "${enable_shared+set}" = set; then :
7734 enableval=$enable_shared; p=${PACKAGE-default}
718a6fd8
SE
7735 case $enableval in
7736 yes) enable_shared=yes ;;
7737 no) enable_shared=no ;;
7738 *)
7739 enable_shared=no
7740 # Look at the argument we got. We use all the common list separators.
7741 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7742 for pkg in $enableval; do
7743 IFS="$lt_save_ifs"
7744 if test "X$pkg" = "X$p"; then
7745 enable_shared=yes
7746 fi
7747 done
7748 IFS="$lt_save_ifs"
7749 ;;
7750 esac
7751else
7752 enable_shared=yes
81ecdfbb 7753fi
718a6fd8
SE
7754
7755
7756
7757
7758
7759
7760
7761
81ecdfbb
RW
7762
7763 # Check whether --enable-static was given.
7764if test "${enable_static+set}" = set; then :
7765 enableval=$enable_static; p=${PACKAGE-default}
718a6fd8
SE
7766 case $enableval in
7767 yes) enable_static=yes ;;
7768 no) enable_static=no ;;
7769 *)
7770 enable_static=no
7771 # Look at the argument we got. We use all the common list separators.
7772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7773 for pkg in $enableval; do
7774 IFS="$lt_save_ifs"
7775 if test "X$pkg" = "X$p"; then
7776 enable_static=yes
7777 fi
7778 done
7779 IFS="$lt_save_ifs"
7780 ;;
7781 esac
7782else
7783 enable_static=yes
81ecdfbb 7784fi
718a6fd8
SE
7785
7786
7787
7788
7789
7790
7791
7792
7793
81ecdfbb
RW
7794
7795# Check whether --with-pic was given.
7796if test "${with_pic+set}" = set; then :
7797 withval=$with_pic; pic_mode="$withval"
718a6fd8
SE
7798else
7799 pic_mode=default
81ecdfbb
RW
7800fi
7801
718a6fd8
SE
7802
7803test -z "$pic_mode" && pic_mode=default
7804
7805
7806
7807
7808
7809
7810
81ecdfbb
RW
7811 # Check whether --enable-fast-install was given.
7812if test "${enable_fast_install+set}" = set; then :
7813 enableval=$enable_fast_install; p=${PACKAGE-default}
718a6fd8
SE
7814 case $enableval in
7815 yes) enable_fast_install=yes ;;
7816 no) enable_fast_install=no ;;
7817 *)
7818 enable_fast_install=no
7819 # Look at the argument we got. We use all the common list separators.
7820 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7821 for pkg in $enableval; do
7822 IFS="$lt_save_ifs"
7823 if test "X$pkg" = "X$p"; then
7824 enable_fast_install=yes
7825 fi
7826 done
7827 IFS="$lt_save_ifs"
7357c5b6
AM
7828 ;;
7829 esac
718a6fd8
SE
7830else
7831 enable_fast_install=yes
81ecdfbb
RW
7832fi
7833
20e95c23 7834
20e95c23
DJ
7835
7836
42ecbf5e 7837
d7040cdb 7838
20e95c23 7839
d7040cdb 7840
d7040cdb
SE
7841
7842
7843
7844# This can be used to rebuild libtool when needed
7845LIBTOOL_DEPS="$ltmain"
7846
7847# Always use our own libtool.
7848LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
3725885a 7872
d7040cdb
SE
7873
7874
7875test -z "$LN_S" && LN_S="ln -s"
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890if test -n "${ZSH_VERSION+set}" ; then
7891 setopt NO_GLOB_SUBST
7892fi
7893
81ecdfbb
RW
7894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7895$as_echo_n "checking for objdir... " >&6; }
7896if test "${lt_cv_objdir+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
20e95c23 7898else
d7040cdb
SE
7899 rm -f .libs 2>/dev/null
7900mkdir .libs 2>/dev/null
7901if test -d .libs; then
7902 lt_cv_objdir=.libs
42ecbf5e 7903else
d7040cdb
SE
7904 # MS-DOS does not allow filenames that begin with a dot.
7905 lt_cv_objdir=_libs
7906fi
7907rmdir .libs 2>/dev/null
42ecbf5e 7908fi
81ecdfbb
RW
7909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7910$as_echo "$lt_cv_objdir" >&6; }
d7040cdb 7911objdir=$lt_cv_objdir
42ecbf5e 7912
d7040cdb
SE
7913
7914
7915
7916
7917cat >>confdefs.h <<_ACEOF
7918#define LT_OBJDIR "$lt_cv_objdir/"
7919_ACEOF
7920
7921
7922
7923
d7040cdb
SE
7924case $host_os in
7925aix3*)
7926 # AIX sometimes has problems with the GCC collect2 program. For some
7927 # reason, if we set the COLLECT_NAMES environment variable, the problems
7928 # vanish in a puff of smoke.
7929 if test "X${COLLECT_NAMES+set}" != Xset; then
7930 COLLECT_NAMES=
7931 export COLLECT_NAMES
7932 fi
7933 ;;
7934esac
7935
d7040cdb
SE
7936# Global variables:
7937ofile=libtool
7938can_build_shared=yes
7939
7940# All known linkers require a `.a' archive for static linking (except MSVC,
7941# which needs '.lib').
7942libext=a
7943
7944with_gnu_ld="$lt_cv_prog_gnu_ld"
7945
7946old_CC="$CC"
7947old_CFLAGS="$CFLAGS"
7948
7949# Set sane defaults for various variables
7950test -z "$CC" && CC=cc
7951test -z "$LTCC" && LTCC=$CC
7952test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7953test -z "$LD" && LD=ld
7954test -z "$ac_objext" && ac_objext=o
7955
7956for cc_temp in $compiler""; do
7957 case $cc_temp in
7958 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7959 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7960 \-*) ;;
7961 *) break;;
7962 esac
7963done
3725885a 7964cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
7965
7966
7967# Only perform the check for file, if the check method requires it
7968test -z "$MAGIC_CMD" && MAGIC_CMD=file
7969case $deplibs_check_method in
7970file_magic*)
7971 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7973$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7974if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7975 $as_echo_n "(cached) " >&6
42ecbf5e 7976else
d7040cdb
SE
7977 case $MAGIC_CMD in
7978[\\/*] | ?:[\\/]*)
7979 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
20e95c23 7980 ;;
d7040cdb
SE
7981*)
7982 lt_save_MAGIC_CMD="$MAGIC_CMD"
7983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7984 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7985 for ac_dir in $ac_dummy; do
7986 IFS="$lt_save_ifs"
7987 test -z "$ac_dir" && ac_dir=.
7988 if test -f $ac_dir/${ac_tool_prefix}file; then
7989 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7990 if test -n "$file_magic_test_file"; then
7991 case $deplibs_check_method in
7992 "file_magic "*)
7993 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7995 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7996 $EGREP "$file_magic_regex" > /dev/null; then
7997 :
7998 else
7999 cat <<_LT_EOF 1>&2
42ecbf5e 8000
d7040cdb
SE
8001*** Warning: the command libtool uses to detect shared libraries,
8002*** $file_magic_cmd, produces output that libtool cannot recognize.
8003*** The result is that libtool may fail to recognize shared libraries
8004*** as such. This will affect the creation of libtool libraries that
8005*** depend on shared libraries, but programs linked with such libtool
8006*** libraries will work regardless of this problem. Nevertheless, you
8007*** may want to report the problem to your system manager and/or to
8008*** bug-libtool@gnu.org
8009
8010_LT_EOF
8011 fi ;;
8012 esac
8013 fi
8014 break
8015 fi
8016 done
8017 IFS="$lt_save_ifs"
8018 MAGIC_CMD="$lt_save_MAGIC_CMD"
20e95c23
DJ
8019 ;;
8020esac
42ecbf5e 8021fi
20e95c23 8022
d7040cdb
SE
8023MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8024if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8026$as_echo "$MAGIC_CMD" >&6; }
42ecbf5e 8027else
81ecdfbb
RW
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029$as_echo "no" >&6; }
42ecbf5e
DJ
8030fi
8031
20e95c23
DJ
8032
8033
42ecbf5e 8034
20e95c23 8035
d7040cdb
SE
8036if test -z "$lt_cv_path_MAGIC_CMD"; then
8037 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8039$as_echo_n "checking for file... " >&6; }
8040if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8041 $as_echo_n "(cached) " >&6
42ecbf5e 8042else
d7040cdb
SE
8043 case $MAGIC_CMD in
8044[\\/*] | ?:[\\/]*)
8045 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8046 ;;
8047*)
8048 lt_save_MAGIC_CMD="$MAGIC_CMD"
8049 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8050 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8051 for ac_dir in $ac_dummy; do
8052 IFS="$lt_save_ifs"
8053 test -z "$ac_dir" && ac_dir=.
8054 if test -f $ac_dir/file; then
8055 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8056 if test -n "$file_magic_test_file"; then
8057 case $deplibs_check_method in
8058 "file_magic "*)
8059 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8060 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8061 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8062 $EGREP "$file_magic_regex" > /dev/null; then
8063 :
8064 else
8065 cat <<_LT_EOF 1>&2
8066
8067*** Warning: the command libtool uses to detect shared libraries,
8068*** $file_magic_cmd, produces output that libtool cannot recognize.
8069*** The result is that libtool may fail to recognize shared libraries
8070*** as such. This will affect the creation of libtool libraries that
8071*** depend on shared libraries, but programs linked with such libtool
8072*** libraries will work regardless of this problem. Nevertheless, you
8073*** may want to report the problem to your system manager and/or to
8074*** bug-libtool@gnu.org
8075
8076_LT_EOF
8077 fi ;;
8078 esac
8079 fi
8080 break
8081 fi
8082 done
8083 IFS="$lt_save_ifs"
8084 MAGIC_CMD="$lt_save_MAGIC_CMD"
8085 ;;
20e95c23
DJ
8086esac
8087fi
d7040cdb
SE
8088
8089MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8090if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8092$as_echo "$MAGIC_CMD" >&6; }
20e95c23 8093else
81ecdfbb
RW
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8095$as_echo "no" >&6; }
20e95c23
DJ
8096fi
8097
20e95c23 8098
42ecbf5e 8099 else
d7040cdb 8100 MAGIC_CMD=:
42ecbf5e 8101 fi
42ecbf5e 8102fi
42ecbf5e 8103
20e95c23 8104 fi
d7040cdb
SE
8105 ;;
8106esac
42ecbf5e 8107
d7040cdb 8108# Use C for the default configuration in the libtool script
42ecbf5e 8109
d7040cdb
SE
8110lt_save_CC="$CC"
8111ac_ext=c
8112ac_cpp='$CPP $CPPFLAGS'
8113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8115ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 8116
42ecbf5e 8117
d7040cdb
SE
8118# Source file extension for C test sources.
8119ac_ext=c
42ecbf5e 8120
d7040cdb
SE
8121# Object file extension for compiled C test sources.
8122objext=o
8123objext=$objext
42ecbf5e 8124
d7040cdb
SE
8125# Code to be used in simple compile tests
8126lt_simple_compile_test_code="int some_variable = 0;"
42ecbf5e 8127
d7040cdb
SE
8128# Code to be used in simple link tests
8129lt_simple_link_test_code='int main(){return(0);}'
42ecbf5e 8130
ac48eca1 8131
42ecbf5e 8132
42ecbf5e 8133
d5fbea21 8134
d5fbea21
DJ
8135
8136
d7040cdb
SE
8137# If no C compiler was specified, use CC.
8138LTCC=${LTCC-"$CC"}
20e95c23 8139
d7040cdb
SE
8140# If no C compiler flags were specified, use CFLAGS.
8141LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
42ecbf5e 8142
d7040cdb
SE
8143# Allow CC to be a program name with arguments.
8144compiler=$CC
252b5132 8145
d7040cdb
SE
8146# Save the default compiler, since it gets overwritten when the other
8147# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8148compiler_DEFAULT=$CC
42ecbf5e 8149
d7040cdb
SE
8150# save warnings/boilerplate of simple test code
8151ac_outfile=conftest.$ac_objext
8152echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8153eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8154_lt_compiler_boilerplate=`cat conftest.err`
8155$RM conftest*
252b5132 8156
d7040cdb
SE
8157ac_outfile=conftest.$ac_objext
8158echo "$lt_simple_link_test_code" >conftest.$ac_ext
8159eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8160_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 8161$RM -r conftest*
252b5132 8162
42ecbf5e 8163
d7040cdb
SE
8164## CAVEAT EMPTOR:
8165## There is no encapsulation within the following macros, do not change
8166## the running order or otherwise move them around unless you know exactly
8167## what you are doing...
8168if test -n "$compiler"; then
252b5132 8169
d7040cdb 8170lt_prog_compiler_no_builtin_flag=
252b5132 8171
d7040cdb 8172if test "$GCC" = yes; then
3725885a
RW
8173 case $cc_basename in
8174 nvcc*)
8175 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8176 *)
8177 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8178 esac
d15b04bd 8179
81ecdfbb
RW
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8181$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8182if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8183 $as_echo_n "(cached) " >&6
252b5132 8184else
d7040cdb
SE
8185 lt_cv_prog_compiler_rtti_exceptions=no
8186 ac_outfile=conftest.$ac_objext
8187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8188 lt_compiler_flag="-fno-rtti -fno-exceptions"
8189 # Insert the option either (1) after the last *FLAGS variable, or
8190 # (2) before a word containing "conftest.", or (3) at the end.
8191 # Note that $ac_compile itself does not contain backslashes and begins
8192 # with a dollar sign (not a hyphen), so the echo should work correctly.
8193 # The option is referenced via a variable to avoid confusing sed.
8194 lt_compile=`echo "$ac_compile" | $SED \
8195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8197 -e 's:$: $lt_compiler_flag:'`
3725885a 8198 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8199 (eval "$lt_compile" 2>conftest.err)
8200 ac_status=$?
8201 cat conftest.err >&5
3725885a 8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8203 if (exit $ac_status) && test -s "$ac_outfile"; then
8204 # The compiler can only warn and ignore the option if not recognized
8205 # So say no if there are warnings other than the usual output.
3725885a 8206 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7040cdb
SE
8207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8208 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8209 lt_cv_prog_compiler_rtti_exceptions=yes
8210 fi
8211 fi
8212 $RM conftest*
42ecbf5e 8213
252b5132 8214fi
81ecdfbb
RW
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8216$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb
SE
8217
8218if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8219 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
20e95c23 8220else
d7040cdb 8221 :
252b5132 8222fi
252b5132
RH
8223
8224fi
d7040cdb
SE
8225
8226
8227
8228
8229
8230
8231 lt_prog_compiler_wl=
8232lt_prog_compiler_pic=
8233lt_prog_compiler_static=
8234
81ecdfbb
RW
8235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8236$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb
SE
8237
8238 if test "$GCC" = yes; then
8239 lt_prog_compiler_wl='-Wl,'
8240 lt_prog_compiler_static='-static'
8241
8242 case $host_os in
8243 aix*)
8244 # All AIX code is PIC.
8245 if test "$host_cpu" = ia64; then
8246 # AIX 5 now supports IA64 processor
8247 lt_prog_compiler_static='-Bstatic'
8248 fi
8249 ;;
8250
8251 amigaos*)
718a6fd8
SE
8252 case $host_cpu in
8253 powerpc)
8254 # see comment about AmigaOS4 .so support
8255 lt_prog_compiler_pic='-fPIC'
8256 ;;
8257 m68k)
8258 # FIXME: we need at least 68020 code to build shared libraries, but
8259 # adding the `-m68020' flag to GCC prevents building anything better,
8260 # like `-m68040'.
8261 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8262 ;;
8263 esac
d7040cdb
SE
8264 ;;
8265
8266 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8267 # PIC is the default for these OSes.
8268 ;;
8269
718a6fd8 8270 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8271 # This hack is so that the source file can tell whether it is being
8272 # built for inclusion in a dll (and should export symbols for example).
8273 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8274 # (--disable-auto-import) libraries
8275 lt_prog_compiler_pic='-DDLL_EXPORT'
8276 ;;
8277
8278 darwin* | rhapsody*)
8279 # PIC is the default on this platform
8280 # Common symbols not allowed in MH_DYLIB files
8281 lt_prog_compiler_pic='-fno-common'
8282 ;;
8283
3725885a
RW
8284 haiku*)
8285 # PIC is the default for Haiku.
8286 # The "-static" flag exists, but is broken.
8287 lt_prog_compiler_static=
8288 ;;
8289
d7040cdb 8290 hpux*)
718a6fd8
SE
8291 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8292 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8293 # sets the default TLS model and affects inlining.
d7040cdb 8294 case $host_cpu in
718a6fd8 8295 hppa*64*)
d7040cdb
SE
8296 # +Z the default
8297 ;;
8298 *)
8299 lt_prog_compiler_pic='-fPIC'
8300 ;;
8301 esac
8302 ;;
8303
8304 interix[3-9]*)
8305 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8306 # Instead, we relocate shared libraries at runtime.
8307 ;;
8308
8309 msdosdjgpp*)
8310 # Just because we use GCC doesn't mean we suddenly get shared libraries
8311 # on systems that don't support them.
8312 lt_prog_compiler_can_build_shared=no
8313 enable_shared=no
8314 ;;
8315
8316 *nto* | *qnx*)
8317 # QNX uses GNU C++, but need to define -shared option too, otherwise
8318 # it will coredump.
8319 lt_prog_compiler_pic='-fPIC -shared'
8320 ;;
8321
8322 sysv4*MP*)
8323 if test -d /usr/nec; then
8324 lt_prog_compiler_pic=-Kconform_pic
8325 fi
8326 ;;
8327
8328 *)
8329 lt_prog_compiler_pic='-fPIC'
8330 ;;
8331 esac
3725885a
RW
8332
8333 case $cc_basename in
8334 nvcc*) # Cuda Compiler Driver 2.2
8335 lt_prog_compiler_wl='-Xlinker '
8336 lt_prog_compiler_pic='-Xcompiler -fPIC'
8337 ;;
8338 esac
d7040cdb
SE
8339 else
8340 # PORTME Check for flag to pass linker flags through the system compiler.
8341 case $host_os in
8342 aix*)
8343 lt_prog_compiler_wl='-Wl,'
8344 if test "$host_cpu" = ia64; then
8345 # AIX 5 now supports IA64 processor
8346 lt_prog_compiler_static='-Bstatic'
8347 else
8348 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8349 fi
8350 ;;
d7040cdb 8351
718a6fd8 8352 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8353 # This hack is so that the source file can tell whether it is being
8354 # built for inclusion in a dll (and should export symbols for example).
8355 lt_prog_compiler_pic='-DDLL_EXPORT'
8356 ;;
8357
8358 hpux9* | hpux10* | hpux11*)
8359 lt_prog_compiler_wl='-Wl,'
8360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8361 # not for PA HP-UX.
8362 case $host_cpu in
8363 hppa*64*|ia64*)
8364 # +Z the default
8365 ;;
8366 *)
8367 lt_prog_compiler_pic='+Z'
8368 ;;
8369 esac
8370 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8371 lt_prog_compiler_static='${wl}-a ${wl}archive'
8372 ;;
8373
8374 irix5* | irix6* | nonstopux*)
8375 lt_prog_compiler_wl='-Wl,'
8376 # PIC (with -KPIC) is the default.
8377 lt_prog_compiler_static='-non_shared'
8378 ;;
8379
58e24671 8380 linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb 8381 case $cc_basename in
718a6fd8
SE
8382 # old Intel for x86_64 which still supported -KPIC.
8383 ecc*)
d7040cdb
SE
8384 lt_prog_compiler_wl='-Wl,'
8385 lt_prog_compiler_pic='-KPIC'
8386 lt_prog_compiler_static='-static'
8387 ;;
718a6fd8
SE
8388 # icc used to be incompatible with GCC.
8389 # ICC 10 doesn't accept -KPIC any more.
8390 icc* | ifort*)
8391 lt_prog_compiler_wl='-Wl,'
8392 lt_prog_compiler_pic='-fPIC'
8393 lt_prog_compiler_static='-static'
8394 ;;
8395 # Lahey Fortran 8.1.
8396 lf95*)
8397 lt_prog_compiler_wl='-Wl,'
8398 lt_prog_compiler_pic='--shared'
8399 lt_prog_compiler_static='--static'
8400 ;;
3725885a 8401 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
d7040cdb
SE
8402 # Portland Group compilers (*not* the Pentium gcc compiler,
8403 # which looks to be a dead project)
8404 lt_prog_compiler_wl='-Wl,'
8405 lt_prog_compiler_pic='-fpic'
8406 lt_prog_compiler_static='-Bstatic'
8407 ;;
8408 ccc*)
8409 lt_prog_compiler_wl='-Wl,'
8410 # All Alpha code is PIC.
8411 lt_prog_compiler_static='-non_shared'
8412 ;;
3725885a
RW
8413 xl* | bgxl* | bgf* | mpixl*)
8414 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
718a6fd8
SE
8415 lt_prog_compiler_wl='-Wl,'
8416 lt_prog_compiler_pic='-qpic'
8417 lt_prog_compiler_static='-qstaticlink'
8418 ;;
d7040cdb
SE
8419 *)
8420 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8421 *Sun\ F* | *Sun*Fortran*)
8422 # Sun Fortran 8.3 passes all unrecognized flags to the linker
d7040cdb
SE
8423 lt_prog_compiler_pic='-KPIC'
8424 lt_prog_compiler_static='-Bstatic'
3725885a 8425 lt_prog_compiler_wl=''
d7040cdb 8426 ;;
3725885a
RW
8427 *Sun\ C*)
8428 # Sun C 5.9
d7040cdb
SE
8429 lt_prog_compiler_pic='-KPIC'
8430 lt_prog_compiler_static='-Bstatic'
3725885a 8431 lt_prog_compiler_wl='-Wl,'
d7040cdb
SE
8432 ;;
8433 esac
8434 ;;
8435 esac
8436 ;;
8437
8438 newsos6)
8439 lt_prog_compiler_pic='-KPIC'
8440 lt_prog_compiler_static='-Bstatic'
8441 ;;
8442
8443 *nto* | *qnx*)
8444 # QNX uses GNU C++, but need to define -shared option too, otherwise
8445 # it will coredump.
8446 lt_prog_compiler_pic='-fPIC -shared'
8447 ;;
8448
8449 osf3* | osf4* | osf5*)
8450 lt_prog_compiler_wl='-Wl,'
8451 # All OSF/1 code is PIC.
8452 lt_prog_compiler_static='-non_shared'
8453 ;;
8454
8455 rdos*)
8456 lt_prog_compiler_static='-non_shared'
8457 ;;
8458
8459 solaris*)
8460 lt_prog_compiler_pic='-KPIC'
8461 lt_prog_compiler_static='-Bstatic'
8462 case $cc_basename in
8463 f77* | f90* | f95*)
8464 lt_prog_compiler_wl='-Qoption ld ';;
8465 *)
8466 lt_prog_compiler_wl='-Wl,';;
8467 esac
8468 ;;
8469
8470 sunos4*)
8471 lt_prog_compiler_wl='-Qoption ld '
8472 lt_prog_compiler_pic='-PIC'
8473 lt_prog_compiler_static='-Bstatic'
8474 ;;
8475
8476 sysv4 | sysv4.2uw2* | sysv4.3*)
8477 lt_prog_compiler_wl='-Wl,'
8478 lt_prog_compiler_pic='-KPIC'
8479 lt_prog_compiler_static='-Bstatic'
8480 ;;
8481
8482 sysv4*MP*)
8483 if test -d /usr/nec ;then
8484 lt_prog_compiler_pic='-Kconform_pic'
8485 lt_prog_compiler_static='-Bstatic'
8486 fi
8487 ;;
8488
8489 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8490 lt_prog_compiler_wl='-Wl,'
8491 lt_prog_compiler_pic='-KPIC'
8492 lt_prog_compiler_static='-Bstatic'
8493 ;;
8494
8495 unicos*)
8496 lt_prog_compiler_wl='-Wl,'
8497 lt_prog_compiler_can_build_shared=no
8498 ;;
8499
8500 uts4*)
8501 lt_prog_compiler_pic='-pic'
8502 lt_prog_compiler_static='-Bstatic'
8503 ;;
8504
8505 *)
8506 lt_prog_compiler_can_build_shared=no
8507 ;;
8508 esac
8509 fi
8510
8511case $host_os in
8512 # For platforms which do not support PIC, -DPIC is meaningless:
8513 *djgpp*)
8514 lt_prog_compiler_pic=
8515 ;;
8516 *)
8517 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8518 ;;
8519esac
81ecdfbb
RW
8520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8521$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8522
8523
8524
8525
8526
8527
8528#
8529# Check to make sure the PIC flag actually works.
8530#
8531if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8533$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8534if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8535 $as_echo_n "(cached) " >&6
42ecbf5e 8536else
718a6fd8 8537 lt_cv_prog_compiler_pic_works=no
d7040cdb
SE
8538 ac_outfile=conftest.$ac_objext
8539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8540 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8541 # Insert the option either (1) after the last *FLAGS variable, or
8542 # (2) before a word containing "conftest.", or (3) at the end.
8543 # Note that $ac_compile itself does not contain backslashes and begins
8544 # with a dollar sign (not a hyphen), so the echo should work correctly.
8545 # The option is referenced via a variable to avoid confusing sed.
8546 lt_compile=`echo "$ac_compile" | $SED \
8547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8549 -e 's:$: $lt_compiler_flag:'`
3725885a 8550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8551 (eval "$lt_compile" 2>conftest.err)
8552 ac_status=$?
8553 cat conftest.err >&5
3725885a 8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8555 if (exit $ac_status) && test -s "$ac_outfile"; then
8556 # The compiler can only warn and ignore the option if not recognized
8557 # So say no if there are warnings other than the usual output.
3725885a 8558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7040cdb
SE
8559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8560 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8561 lt_cv_prog_compiler_pic_works=yes
d7040cdb
SE
8562 fi
8563 fi
8564 $RM conftest*
42ecbf5e 8565
252b5132 8566fi
81ecdfbb
RW
8567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8568$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8569
718a6fd8 8570if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
d7040cdb
SE
8571 case $lt_prog_compiler_pic in
8572 "" | " "*) ;;
8573 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8574 esac
252b5132 8575else
d7040cdb
SE
8576 lt_prog_compiler_pic=
8577 lt_prog_compiler_can_build_shared=no
252b5132 8578fi
252b5132
RH
8579
8580fi
42ecbf5e 8581
d7040cdb
SE
8582
8583
8584
8585
8586
8587#
8588# Check to make sure the static flag actually works.
8589#
8590wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8592$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8593if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8594 $as_echo_n "(cached) " >&6
42ecbf5e 8595else
718a6fd8 8596 lt_cv_prog_compiler_static_works=no
d7040cdb
SE
8597 save_LDFLAGS="$LDFLAGS"
8598 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8599 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8600 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8601 # The linker can only warn and ignore the option if not recognized
8602 # So say no if there are warnings
8603 if test -s conftest.err; then
8604 # Append any errors to the config.log.
8605 cat conftest.err 1>&5
3725885a 8606 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
d7040cdb
SE
8607 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8608 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8609 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8610 fi
8611 else
718a6fd8 8612 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8613 fi
8614 fi
718a6fd8 8615 $RM -r conftest*
d7040cdb 8616 LDFLAGS="$save_LDFLAGS"
42ecbf5e 8617
42ecbf5e 8618fi
81ecdfbb
RW
8619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8620$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8621
718a6fd8 8622if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d7040cdb
SE
8623 :
8624else
8625 lt_prog_compiler_static=
42ecbf5e 8626fi
42ecbf5e 8627
252b5132 8628
252b5132 8629
42ecbf5e 8630
252b5132 8631
20e95c23 8632
d7040cdb 8633
81ecdfbb
RW
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8635$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8636if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8637 $as_echo_n "(cached) " >&6
252b5132 8638else
d7040cdb
SE
8639 lt_cv_prog_compiler_c_o=no
8640 $RM -r conftest 2>/dev/null
8641 mkdir conftest
8642 cd conftest
8643 mkdir out
8644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8645
8646 lt_compiler_flag="-o out/conftest2.$ac_objext"
8647 # Insert the option either (1) after the last *FLAGS variable, or
8648 # (2) before a word containing "conftest.", or (3) at the end.
8649 # Note that $ac_compile itself does not contain backslashes and begins
8650 # with a dollar sign (not a hyphen), so the echo should work correctly.
8651 lt_compile=`echo "$ac_compile" | $SED \
8652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8654 -e 's:$: $lt_compiler_flag:'`
3725885a 8655 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8656 (eval "$lt_compile" 2>out/conftest.err)
8657 ac_status=$?
8658 cat out/conftest.err >&5
3725885a 8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8660 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8661 then
8662 # The compiler can only warn and ignore the option if not recognized
8663 # So say no if there are warnings
3725885a 8664 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7040cdb
SE
8665 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8666 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8667 lt_cv_prog_compiler_c_o=yes
8668 fi
8669 fi
8670 chmod u+w . 2>&5
8671 $RM conftest*
8672 # SGI C++ compiler will create directory out/ii_files/ for
8673 # template instantiation
8674 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8675 $RM out/* && rmdir out
8676 cd ..
8677 $RM -r conftest
8678 $RM conftest*
8679
252b5132 8680fi
81ecdfbb
RW
8681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8682$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
42ecbf5e 8683
20e95c23 8684
20e95c23
DJ
8685
8686
d7040cdb
SE
8687
8688
81ecdfbb
RW
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8690$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8691if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8692 $as_echo_n "(cached) " >&6
42ecbf5e 8693else
d7040cdb
SE
8694 lt_cv_prog_compiler_c_o=no
8695 $RM -r conftest 2>/dev/null
8696 mkdir conftest
8697 cd conftest
8698 mkdir out
8699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8700
8701 lt_compiler_flag="-o out/conftest2.$ac_objext"
8702 # Insert the option either (1) after the last *FLAGS variable, or
8703 # (2) before a word containing "conftest.", or (3) at the end.
8704 # Note that $ac_compile itself does not contain backslashes and begins
8705 # with a dollar sign (not a hyphen), so the echo should work correctly.
8706 lt_compile=`echo "$ac_compile" | $SED \
8707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8709 -e 's:$: $lt_compiler_flag:'`
3725885a 8710 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8711 (eval "$lt_compile" 2>out/conftest.err)
8712 ac_status=$?
8713 cat out/conftest.err >&5
3725885a 8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8715 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8716 then
8717 # The compiler can only warn and ignore the option if not recognized
8718 # So say no if there are warnings
3725885a 8719 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7040cdb
SE
8720 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8721 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8722 lt_cv_prog_compiler_c_o=yes
8723 fi
8724 fi
8725 chmod u+w . 2>&5
8726 $RM conftest*
8727 # SGI C++ compiler will create directory out/ii_files/ for
8728 # template instantiation
8729 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8730 $RM out/* && rmdir out
8731 cd ..
8732 $RM -r conftest
8733 $RM conftest*
8734
8735fi
81ecdfbb
RW
8736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8737$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8738
8739
8740
8741
8742hard_links="nottested"
8743if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8744 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8746$as_echo_n "checking if we can lock with hard links... " >&6; }
d7040cdb
SE
8747 hard_links=yes
8748 $RM conftest*
8749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8750 touch conftest.a
8751 ln conftest.a conftest.b 2>&5 || hard_links=no
8752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8754$as_echo "$hard_links" >&6; }
d7040cdb 8755 if test "$hard_links" = no; then
81ecdfbb
RW
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8757$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
d7040cdb
SE
8758 need_locks=warn
8759 fi
8760else
8761 need_locks=no
8762fi
8763
8764
8765
8766
8767
8768
81ecdfbb
RW
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8770$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb
SE
8771
8772 runpath_var=
8773 allow_undefined_flag=
8774 always_export_symbols=no
8775 archive_cmds=
8776 archive_expsym_cmds=
8777 compiler_needs_object=no
8778 enable_shared_with_static_runtimes=no
8779 export_dynamic_flag_spec=
8780 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8781 hardcode_automatic=no
8782 hardcode_direct=no
8783 hardcode_direct_absolute=no
8784 hardcode_libdir_flag_spec=
8785 hardcode_libdir_flag_spec_ld=
8786 hardcode_libdir_separator=
8787 hardcode_minus_L=no
8788 hardcode_shlibpath_var=unsupported
8789 inherit_rpath=no
8790 link_all_deplibs=unknown
8791 module_cmds=
8792 module_expsym_cmds=
8793 old_archive_from_new_cmds=
8794 old_archive_from_expsyms_cmds=
8795 thread_safe_flag_spec=
8796 whole_archive_flag_spec=
8797 # include_expsyms should be a list of space-separated symbols to be *always*
8798 # included in the symbol list
8799 include_expsyms=
8800 # exclude_expsyms can be an extended regexp of symbols to exclude
8801 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8802 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8803 # as well as any symbol that contains `d'.
718a6fd8 8804 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d7040cdb
SE
8805 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8806 # platforms (ab)use it in PIC code, but their linkers get confused if
8807 # the symbol is explicitly referenced. Since portable code cannot
8808 # rely on this symbol name, it's probably fine to never include it in
8809 # preloaded symbol tables.
718a6fd8 8810 # Exclude shared library initialization/finalization symbols.
d7040cdb
SE
8811 extract_expsyms_cmds=
8812
8813 case $host_os in
718a6fd8 8814 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8815 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8816 # When not using gcc, we currently assume that we are using
8817 # Microsoft Visual C++.
8818 if test "$GCC" != yes; then
8819 with_gnu_ld=no
8820 fi
8821 ;;
8822 interix*)
8823 # we just hope/assume this is gcc and not c89 (= MSVC++)
8824 with_gnu_ld=yes
8825 ;;
8826 openbsd*)
8827 with_gnu_ld=no
8828 ;;
8829 esac
8830
8831 ld_shlibs=yes
3725885a
RW
8832
8833 # On some targets, GNU ld is compatible enough with the native linker
8834 # that we're better off using the native interface for both.
8835 lt_use_gnu_ld_interface=no
d7040cdb 8836 if test "$with_gnu_ld" = yes; then
3725885a
RW
8837 case $host_os in
8838 aix*)
8839 # The AIX port of GNU ld has always aspired to compatibility
8840 # with the native linker. However, as the warning in the GNU ld
8841 # block says, versions before 2.19.5* couldn't really create working
8842 # shared libraries, regardless of the interface used.
8843 case `$LD -v 2>&1` in
8844 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8845 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8846 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8847 *)
8848 lt_use_gnu_ld_interface=yes
8849 ;;
8850 esac
8851 ;;
8852 *)
8853 lt_use_gnu_ld_interface=yes
8854 ;;
8855 esac
8856 fi
8857
8858 if test "$lt_use_gnu_ld_interface" = yes; then
d7040cdb
SE
8859 # If archive_cmds runs LD, not CC, wlarc should be empty
8860 wlarc='${wl}'
8861
8862 # Set some defaults for GNU ld with shared library support. These
8863 # are reset later if shared libraries are not supported. Putting them
8864 # here allows them to be overridden if necessary.
8865 runpath_var=LD_RUN_PATH
8866 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8867 export_dynamic_flag_spec='${wl}--export-dynamic'
8868 # ancient GNU ld didn't support --whole-archive et. al.
8869 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8870 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8871 else
8872 whole_archive_flag_spec=
8873 fi
8874 supports_anon_versioning=no
8875 case `$LD -v 2>&1` in
3725885a 8876 *GNU\ gold*) supports_anon_versioning=yes ;;
d7040cdb
SE
8877 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8878 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8879 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8880 *\ 2.11.*) ;; # other 2.11 versions
8881 *) supports_anon_versioning=yes ;;
8882 esac
8883
8884 # See if GNU ld supports shared libraries.
8885 case $host_os in
50e7d84b 8886 aix[3-9]*)
d7040cdb
SE
8887 # On AIX/PPC, the GNU linker is very broken
8888 if test "$host_cpu" != ia64; then
8889 ld_shlibs=no
8890 cat <<_LT_EOF 1>&2
8891
3725885a 8892*** Warning: the GNU linker, at least up to release 2.19, is reported
d7040cdb
SE
8893*** to be unable to reliably create shared libraries on AIX.
8894*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
8895*** really care for shared libraries, you may want to install binutils
8896*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8897*** You will then need to restart the configuration process.
d7040cdb
SE
8898
8899_LT_EOF
8900 fi
8901 ;;
8902
8903 amigaos*)
718a6fd8
SE
8904 case $host_cpu in
8905 powerpc)
8906 # see comment about AmigaOS4 .so support
8907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8908 archive_expsym_cmds=''
8909 ;;
8910 m68k)
8911 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)'
8912 hardcode_libdir_flag_spec='-L$libdir'
8913 hardcode_minus_L=yes
8914 ;;
8915 esac
d7040cdb
SE
8916 ;;
8917
8918 beos*)
8919 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8920 allow_undefined_flag=unsupported
8921 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8922 # support --undefined. This deserves some investigation. FIXME
8923 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8924 else
8925 ld_shlibs=no
8926 fi
8927 ;;
8928
718a6fd8 8929 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8930 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8931 # as there is no search path for DLLs.
8932 hardcode_libdir_flag_spec='-L$libdir'
3725885a 8933 export_dynamic_flag_spec='${wl}--export-all-symbols'
d7040cdb
SE
8934 allow_undefined_flag=unsupported
8935 always_export_symbols=no
8936 enable_shared_with_static_runtimes=yes
8937 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8938
8939 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8941 # If the export-symbols file already is a .def file (1st line
8942 # is EXPORTS), use it as is; otherwise, prepend...
8943 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8944 cp $export_symbols $output_objdir/$soname.def;
8945 else
8946 echo EXPORTS > $output_objdir/$soname.def;
8947 cat $export_symbols >> $output_objdir/$soname.def;
8948 fi~
8949 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8950 else
8951 ld_shlibs=no
8952 fi
8953 ;;
8954
3725885a
RW
8955 haiku*)
8956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8957 link_all_deplibs=yes
8958 ;;
8959
d7040cdb
SE
8960 interix[3-9]*)
8961 hardcode_direct=no
8962 hardcode_shlibpath_var=no
8963 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8964 export_dynamic_flag_spec='${wl}-E'
8965 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8966 # Instead, shared libraries are loaded at an image base (0x10000000 by
8967 # default) and relocated if they conflict, which is a slow very memory
8968 # consuming and fragmenting process. To avoid this, we pick a random,
8969 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8970 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8971 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8972 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'
8973 ;;
8974
58e24671 8975 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
8976 tmp_diet=no
8977 if test "$host_os" = linux-dietlibc; then
8978 case $cc_basename in
8979 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8980 esac
8981 fi
8982 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8983 && test "$tmp_diet" = no
8984 then
8985 tmp_addflag=
718a6fd8 8986 tmp_sharedflag='-shared'
d7040cdb
SE
8987 case $cc_basename,$host_cpu in
8988 pgcc*) # Portland Group C compiler
3725885a 8989 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'
d7040cdb
SE
8990 tmp_addflag=' $pic_flag'
8991 ;;
3725885a
RW
8992 pgf77* | pgf90* | pgf95* | pgfortran*)
8993 # Portland Group f77 and f90 compilers
8994 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'
d7040cdb
SE
8995 tmp_addflag=' $pic_flag -Mnomain' ;;
8996 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8997 tmp_addflag=' -i_dynamic' ;;
8998 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8999 tmp_addflag=' -i_dynamic -nofor_main' ;;
9000 ifc* | ifort*) # Intel Fortran compiler
9001 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
9002 lf95*) # Lahey Fortran 8.1
9003 whole_archive_flag_spec=
9004 tmp_sharedflag='--shared' ;;
3725885a 9005 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
718a6fd8
SE
9006 tmp_sharedflag='-qmkshrobj'
9007 tmp_addflag= ;;
3725885a
RW
9008 nvcc*) # Cuda Compiler Driver 2.2
9009 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'
9010 compiler_needs_object=yes
9011 ;;
d7040cdb
SE
9012 esac
9013 case `$CC -V 2>&1 | sed 5q` in
9014 *Sun\ C*) # Sun C 5.9
3725885a 9015 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'
d7040cdb
SE
9016 compiler_needs_object=yes
9017 tmp_sharedflag='-G' ;;
9018 *Sun\ F*) # Sun Fortran 8.3
9019 tmp_sharedflag='-G' ;;
d7040cdb
SE
9020 esac
9021 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9022
9023 if test "x$supports_anon_versioning" = xyes; then
9024 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9025 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9026 echo "local: *; };" >> $output_objdir/$libname.ver~
9027 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9028 fi
718a6fd8
SE
9029
9030 case $cc_basename in
3725885a 9031 xlf* | bgf* | bgxlf* | mpixlf*)
718a6fd8
SE
9032 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9033 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9034 hardcode_libdir_flag_spec=
9035 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9036 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9037 if test "x$supports_anon_versioning" = xyes; then
9038 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9039 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9040 echo "local: *; };" >> $output_objdir/$libname.ver~
9041 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9042 fi
9043 ;;
9044 esac
d7040cdb
SE
9045 else
9046 ld_shlibs=no
9047 fi
9048 ;;
9049
9050 netbsd*)
9051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9052 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9053 wlarc=
9054 else
9055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9056 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9057 fi
9058 ;;
9059
9060 solaris*)
9061 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9062 ld_shlibs=no
9063 cat <<_LT_EOF 1>&2
9064
9065*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9066*** create shared libraries on Solaris systems. Therefore, libtool
9067*** is disabling shared libraries support. We urge you to upgrade GNU
9068*** binutils to release 2.9.1 or newer. Another option is to modify
9069*** your PATH or compiler configuration so that the native linker is
9070*** used, and then restart.
9071
9072_LT_EOF
9073 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9075 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9076 else
9077 ld_shlibs=no
9078 fi
9079 ;;
9080
9081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9082 case `$LD -v 2>&1` in
9083 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9084 ld_shlibs=no
9085 cat <<_LT_EOF 1>&2
9086
9087*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9088*** reliably create shared libraries on SCO systems. Therefore, libtool
9089*** is disabling shared libraries support. We urge you to upgrade GNU
9090*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9091*** your PATH or compiler configuration so that the native linker is
9092*** used, and then restart.
9093
9094_LT_EOF
9095 ;;
9096 *)
9097 # For security reasons, it is highly recommended that you always
9098 # use absolute paths for naming shared libraries, and exclude the
9099 # DT_RUNPATH tag from executables and libraries. But doing so
9100 # requires that you compile everything twice, which is a pain.
9101 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9104 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9105 else
9106 ld_shlibs=no
9107 fi
9108 ;;
9109 esac
9110 ;;
9111
9112 sunos4*)
9113 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9114 wlarc=
9115 hardcode_direct=yes
9116 hardcode_shlibpath_var=no
9117 ;;
9118
9119 *)
9120 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9122 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9123 else
9124 ld_shlibs=no
9125 fi
9126 ;;
9127 esac
9128
9129 if test "$ld_shlibs" = no; then
9130 runpath_var=
9131 hardcode_libdir_flag_spec=
9132 export_dynamic_flag_spec=
9133 whole_archive_flag_spec=
9134 fi
9135 else
9136 # PORTME fill in a description of your system's linker (not GNU ld)
9137 case $host_os in
9138 aix3*)
9139 allow_undefined_flag=unsupported
9140 always_export_symbols=yes
9141 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'
9142 # Note: this linker hardcodes the directories in LIBPATH if there
9143 # are no directories specified by -L.
9144 hardcode_minus_L=yes
9145 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9146 # Neither direct hardcoding nor static linking is supported with a
9147 # broken collect2.
9148 hardcode_direct=unsupported
9149 fi
9150 ;;
9151
50e7d84b 9152 aix[4-9]*)
d7040cdb
SE
9153 if test "$host_cpu" = ia64; then
9154 # On IA64, the linker does run time linking by default, so we don't
9155 # have to do anything special.
9156 aix_use_runtimelinking=no
9157 exp_sym_flag='-Bexport'
9158 no_entry_flag=""
9159 else
9160 # If we're using GNU nm, then we don't want the "-C" option.
9161 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9162 # Also, AIX nm treats weak defined symbols like other global
9163 # defined symbols, whereas GNU nm marks them as "W".
d7040cdb 9164 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9165 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'
d7040cdb
SE
9166 else
9167 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'
9168 fi
9169 aix_use_runtimelinking=no
9170
9171 # Test if we are trying to use run time linking or normal
9172 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9173 # need to do runtime linking.
50e7d84b 9174 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
9175 for ld_flag in $LDFLAGS; do
9176 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9177 aix_use_runtimelinking=yes
9178 break
9179 fi
9180 done
9181 ;;
9182 esac
9183
9184 exp_sym_flag='-bexport'
9185 no_entry_flag='-bnoentry'
9186 fi
9187
9188 # When large executables or shared objects are built, AIX ld can
9189 # have problems creating the table of contents. If linking a library
9190 # or program results in "error TOC overflow" add -mminimal-toc to
9191 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9192 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9193
9194 archive_cmds=''
9195 hardcode_direct=yes
9196 hardcode_direct_absolute=yes
9197 hardcode_libdir_separator=':'
9198 link_all_deplibs=yes
9199 file_list_spec='${wl}-f,'
9200
9201 if test "$GCC" = yes; then
9202 case $host_os in aix4.[012]|aix4.[012].*)
9203 # We only want to do this on AIX 4.2 and lower, the check
9204 # below for broken collect2 doesn't work under 4.3+
9205 collect2name=`${CC} -print-prog-name=collect2`
9206 if test -f "$collect2name" &&
9207 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9208 then
9209 # We have reworked collect2
9210 :
9211 else
9212 # We have old collect2
9213 hardcode_direct=unsupported
9214 # It fails to find uninstalled libraries when the uninstalled
9215 # path is not listed in the libpath. Setting hardcode_minus_L
9216 # to unsupported forces relinking
9217 hardcode_minus_L=yes
9218 hardcode_libdir_flag_spec='-L$libdir'
9219 hardcode_libdir_separator=
9220 fi
9221 ;;
9222 esac
9223 shared_flag='-shared'
9224 if test "$aix_use_runtimelinking" = yes; then
9225 shared_flag="$shared_flag "'${wl}-G'
9226 fi
9227 else
9228 # not using gcc
9229 if test "$host_cpu" = ia64; then
9230 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9231 # chokes on -Wl,-G. The following line is correct:
9232 shared_flag='-G'
9233 else
9234 if test "$aix_use_runtimelinking" = yes; then
9235 shared_flag='${wl}-G'
9236 else
9237 shared_flag='${wl}-bM:SRE'
9238 fi
9239 fi
9240 fi
9241
718a6fd8 9242 export_dynamic_flag_spec='${wl}-bexpall'
d7040cdb
SE
9243 # It seems that -bexpall does not export symbols beginning with
9244 # underscore (_), so it is better to generate a list of symbols to export.
9245 always_export_symbols=yes
9246 if test "$aix_use_runtimelinking" = yes; then
9247 # Warning - without using the other runtime loading flags (-brtl),
9248 # -berok will link without error, but may produce a broken library.
9249 allow_undefined_flag='-berok'
9250 # Determine the default libpath from the value encoded in an
9251 # empty executable.
81ecdfbb 9252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 9253/* end confdefs.h. */
d7040cdb
SE
9254
9255int
9256main ()
9257{
9258
9259 ;
9260 return 0;
9261}
42ecbf5e 9262_ACEOF
81ecdfbb 9263if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
9264
9265lt_aix_libpath_sed='
9266 /Import File Strings/,/^$/ {
9267 /^0/ {
9268 s/^0 *\(.*\)$/\1/
9269 p
9270 }
9271 }'
9272aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9273# Check for a 64-bit object if we didn't find anything.
9274if test -z "$aix_libpath"; then
9275 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
252b5132 9276fi
252b5132 9277fi
81ecdfbb
RW
9278rm -f core conftest.err conftest.$ac_objext \
9279 conftest$ac_exeext conftest.$ac_ext
d7040cdb 9280if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
252b5132 9281
d7040cdb 9282 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9283 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"
d7040cdb
SE
9284 else
9285 if test "$host_cpu" = ia64; then
9286 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9287 allow_undefined_flag="-z nodefs"
9288 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"
9289 else
9290 # Determine the default libpath from the value encoded in an
9291 # empty executable.
81ecdfbb 9292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 9293/* end confdefs.h. */
d7040cdb
SE
9294
9295int
9296main ()
9297{
9298
9299 ;
9300 return 0;
9301}
42ecbf5e 9302_ACEOF
81ecdfbb 9303if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
9304
9305lt_aix_libpath_sed='
9306 /Import File Strings/,/^$/ {
9307 /^0/ {
9308 s/^0 *\(.*\)$/\1/
9309 p
9310 }
9311 }'
9312aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9313# Check for a 64-bit object if we didn't find anything.
9314if test -z "$aix_libpath"; then
9315 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20e95c23 9316fi
252b5132 9317fi
81ecdfbb
RW
9318rm -f core conftest.err conftest.$ac_objext \
9319 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
9320if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9321
9322 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9323 # Warning - without using the other run time loading flags,
9324 # -berok will link without error, but may produce a broken library.
9325 no_undefined_flag=' ${wl}-bernotok'
9326 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9327 if test "$with_gnu_ld" = yes; then
9328 # We only use this code for GNU lds that support --whole-archive.
9329 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9330 else
9331 # Exported symbols can be pulled into shared objects from archives
9332 whole_archive_flag_spec='$convenience'
9333 fi
d7040cdb
SE
9334 archive_cmds_need_lc=yes
9335 # This is similar to how AIX traditionally builds its shared libraries.
9336 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'
9337 fi
9338 fi
9339 ;;
42ecbf5e 9340
d7040cdb 9341 amigaos*)
718a6fd8
SE
9342 case $host_cpu in
9343 powerpc)
9344 # see comment about AmigaOS4 .so support
9345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9346 archive_expsym_cmds=''
9347 ;;
9348 m68k)
9349 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)'
9350 hardcode_libdir_flag_spec='-L$libdir'
9351 hardcode_minus_L=yes
9352 ;;
9353 esac
d7040cdb 9354 ;;
252b5132 9355
d7040cdb
SE
9356 bsdi[45]*)
9357 export_dynamic_flag_spec=-rdynamic
9358 ;;
252b5132 9359
718a6fd8 9360 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9361 # When not using gcc, we currently assume that we are using
9362 # Microsoft Visual C++.
9363 # hardcode_libdir_flag_spec is actually meaningless, as there is
9364 # no search path for DLLs.
9365 hardcode_libdir_flag_spec=' '
9366 allow_undefined_flag=unsupported
9367 # Tell ltmain to make .lib files, not .a files.
9368 libext=lib
9369 # Tell ltmain to make .dll files, not .so files.
9370 shrext_cmds=".dll"
9371 # FIXME: Setting linknames here is a bad hack.
3725885a 9372 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
d7040cdb
SE
9373 # The linker will automatically build a .lib file if we build a DLL.
9374 old_archive_from_new_cmds='true'
9375 # FIXME: Should let the user specify the lib program.
9376 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9377 fix_srcfile_path='`cygpath -w "$srcfile"`'
9378 enable_shared_with_static_runtimes=yes
9379 ;;
252b5132 9380
d7040cdb 9381 darwin* | rhapsody*)
c46f8c51 9382
718a6fd8
SE
9383
9384 archive_cmds_need_lc=no
9385 hardcode_direct=no
9386 hardcode_automatic=yes
9387 hardcode_shlibpath_var=unsupported
3725885a
RW
9388 if test "$lt_cv_ld_force_load" = "yes"; then
9389 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\"`'
9390 else
9391 whole_archive_flag_spec=''
9392 fi
718a6fd8
SE
9393 link_all_deplibs=yes
9394 allow_undefined_flag="$_lt_dar_allow_undefined"
9395 case $cc_basename in
9396 ifort*) _lt_dar_can_shared=yes ;;
9397 *) _lt_dar_can_shared=$GCC ;;
9398 esac
9399 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9400 output_verbose_link_cmd=func_echo_all
718a6fd8
SE
9401 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9402 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9403 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}"
9404 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}"
9405
9406 else
9407 ld_shlibs=no
9408 fi
9409
d7040cdb 9410 ;;
42ecbf5e 9411
d7040cdb
SE
9412 dgux*)
9413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9414 hardcode_libdir_flag_spec='-L$libdir'
9415 hardcode_shlibpath_var=no
9416 ;;
252b5132 9417
d7040cdb
SE
9418 freebsd1*)
9419 ld_shlibs=no
9420 ;;
252b5132 9421
d7040cdb
SE
9422 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9423 # support. Future versions do this automatically, but an explicit c++rt0.o
9424 # does not break anything, and helps significantly (at the cost of a little
9425 # extra space).
9426 freebsd2.2*)
9427 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9428 hardcode_libdir_flag_spec='-R$libdir'
9429 hardcode_direct=yes
9430 hardcode_shlibpath_var=no
9431 ;;
252b5132 9432
d7040cdb
SE
9433 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9434 freebsd2*)
9435 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9436 hardcode_direct=yes
9437 hardcode_minus_L=yes
9438 hardcode_shlibpath_var=no
9439 ;;
42ecbf5e 9440
d7040cdb
SE
9441 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9442 freebsd* | dragonfly*)
9443 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9444 hardcode_libdir_flag_spec='-R$libdir'
9445 hardcode_direct=yes
9446 hardcode_shlibpath_var=no
9447 ;;
252b5132 9448
d7040cdb
SE
9449 hpux9*)
9450 if test "$GCC" = yes; then
9451 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'
9452 else
9453 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'
9454 fi
9455 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9456 hardcode_libdir_separator=:
9457 hardcode_direct=yes
9458
9459 # hardcode_minus_L: Not really in the search PATH,
9460 # but as the default location of the library.
9461 hardcode_minus_L=yes
9462 export_dynamic_flag_spec='${wl}-E'
9463 ;;
20e95c23 9464
d7040cdb 9465 hpux10*)
3725885a 9466 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7040cdb
SE
9467 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9468 else
9469 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9470 fi
9471 if test "$with_gnu_ld" = no; then
9472 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9473 hardcode_libdir_flag_spec_ld='+b $libdir'
9474 hardcode_libdir_separator=:
9475 hardcode_direct=yes
9476 hardcode_direct_absolute=yes
9477 export_dynamic_flag_spec='${wl}-E'
9478 # hardcode_minus_L: Not really in the search PATH,
9479 # but as the default location of the library.
9480 hardcode_minus_L=yes
9481 fi
9482 ;;
20e95c23 9483
d7040cdb 9484 hpux11*)
3725885a 9485 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7040cdb
SE
9486 case $host_cpu in
9487 hppa*64*)
9488 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9489 ;;
9490 ia64*)
718a6fd8 9491 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9492 ;;
9493 *)
9494 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9495 ;;
9496 esac
9497 else
9498 case $host_cpu in
9499 hppa*64*)
9500 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9501 ;;
9502 ia64*)
9503 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9504 ;;
9505 *)
3725885a
RW
9506
9507 # Older versions of the 11.00 compiler do not understand -b yet
9508 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9510$as_echo_n "checking if $CC understands -b... " >&6; }
9511if test "${lt_cv_prog_compiler__b+set}" = set; then :
9512 $as_echo_n "(cached) " >&6
9513else
9514 lt_cv_prog_compiler__b=no
9515 save_LDFLAGS="$LDFLAGS"
9516 LDFLAGS="$LDFLAGS -b"
9517 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9518 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9519 # The linker can only warn and ignore the option if not recognized
9520 # So say no if there are warnings
9521 if test -s conftest.err; then
9522 # Append any errors to the config.log.
9523 cat conftest.err 1>&5
9524 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9526 if diff conftest.exp conftest.er2 >/dev/null; then
9527 lt_cv_prog_compiler__b=yes
9528 fi
9529 else
9530 lt_cv_prog_compiler__b=yes
9531 fi
9532 fi
9533 $RM -r conftest*
9534 LDFLAGS="$save_LDFLAGS"
9535
9536fi
9537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9538$as_echo "$lt_cv_prog_compiler__b" >&6; }
9539
9540if test x"$lt_cv_prog_compiler__b" = xyes; then
9541 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9542else
9543 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9544fi
9545
d7040cdb
SE
9546 ;;
9547 esac
9548 fi
9549 if test "$with_gnu_ld" = no; then
9550 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9551 hardcode_libdir_separator=:
9552
9553 case $host_cpu in
9554 hppa*64*|ia64*)
9555 hardcode_direct=no
9556 hardcode_shlibpath_var=no
9557 ;;
9558 *)
9559 hardcode_direct=yes
9560 hardcode_direct_absolute=yes
9561 export_dynamic_flag_spec='${wl}-E'
9562
9563 # hardcode_minus_L: Not really in the search PATH,
9564 # but as the default location of the library.
9565 hardcode_minus_L=yes
9566 ;;
9567 esac
9568 fi
9569 ;;
9570
9571 irix5* | irix6* | nonstopux*)
9572 if test "$GCC" = yes; then
3725885a 9573 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'
d7040cdb
SE
9574 # Try to use the -exported_symbol ld option, if it does not
9575 # work, assume that -exports_file does not work either and
9576 # implicitly export all symbols.
9577 save_LDFLAGS="$LDFLAGS"
9578 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580/* end confdefs.h. */
d7040cdb 9581int foo(void) {}
42ecbf5e 9582_ACEOF
81ecdfbb 9583if ac_fn_c_try_link "$LINENO"; then :
3725885a 9584 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 9585
42ecbf5e 9586fi
81ecdfbb
RW
9587rm -f core conftest.err conftest.$ac_objext \
9588 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
9589 LDFLAGS="$save_LDFLAGS"
9590 else
3725885a
RW
9591 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'
9592 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'
d7040cdb
SE
9593 fi
9594 archive_cmds_need_lc='no'
9595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9596 hardcode_libdir_separator=:
9597 inherit_rpath=yes
9598 link_all_deplibs=yes
9599 ;;
42ecbf5e 9600
d7040cdb
SE
9601 netbsd*)
9602 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9603 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9604 else
9605 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9606 fi
9607 hardcode_libdir_flag_spec='-R$libdir'
9608 hardcode_direct=yes
9609 hardcode_shlibpath_var=no
9610 ;;
42ecbf5e 9611
d7040cdb
SE
9612 newsos6)
9613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9614 hardcode_direct=yes
9615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9616 hardcode_libdir_separator=:
9617 hardcode_shlibpath_var=no
9618 ;;
42ecbf5e 9619
d7040cdb
SE
9620 *nto* | *qnx*)
9621 ;;
252b5132 9622
d7040cdb 9623 openbsd*)
718a6fd8
SE
9624 if test -f /usr/libexec/ld.so; then
9625 hardcode_direct=yes
9626 hardcode_shlibpath_var=no
9627 hardcode_direct_absolute=yes
9628 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d7040cdb 9629 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9630 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d7040cdb 9631 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9632 export_dynamic_flag_spec='${wl}-E'
9633 else
9634 case $host_os in
9635 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9637 hardcode_libdir_flag_spec='-R$libdir'
9638 ;;
9639 *)
9640 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9641 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9642 ;;
9643 esac
9644 fi
9645 else
9646 ld_shlibs=no
d7040cdb
SE
9647 fi
9648 ;;
252b5132 9649
d7040cdb
SE
9650 os2*)
9651 hardcode_libdir_flag_spec='-L$libdir'
9652 hardcode_minus_L=yes
9653 allow_undefined_flag=unsupported
3725885a 9654 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'
d7040cdb
SE
9655 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9656 ;;
2481e6a2 9657
d7040cdb
SE
9658 osf3*)
9659 if test "$GCC" = yes; then
9660 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9661 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'
d7040cdb
SE
9662 else
9663 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9664 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'
d7040cdb
SE
9665 fi
9666 archive_cmds_need_lc='no'
9667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9668 hardcode_libdir_separator=:
9669 ;;
42ecbf5e 9670
d7040cdb
SE
9671 osf4* | osf5*) # as osf3* with the addition of -msym flag
9672 if test "$GCC" = yes; then
9673 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9674 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'
d7040cdb
SE
9675 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9676 else
9677 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9678 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'
d7040cdb 9679 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 9680 $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'
42ecbf5e 9681
d7040cdb
SE
9682 # Both c and cxx compiler support -rpath directly
9683 hardcode_libdir_flag_spec='-rpath $libdir'
9684 fi
9685 archive_cmds_need_lc='no'
9686 hardcode_libdir_separator=:
9687 ;;
9688
9689 solaris*)
9690 no_undefined_flag=' -z defs'
9691 if test "$GCC" = yes; then
9692 wlarc='${wl}'
9693 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9694 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9695 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9696 else
9697 case `$CC -V 2>&1` in
9698 *"Compilers 5.0"*)
9699 wlarc=''
9700 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9701 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9702 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9703 ;;
9704 *)
9705 wlarc='${wl}'
9706 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9707 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9708 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9709 ;;
9710 esac
9711 fi
9712 hardcode_libdir_flag_spec='-R$libdir'
9713 hardcode_shlibpath_var=no
9714 case $host_os in
9715 solaris2.[0-5] | solaris2.[0-5].*) ;;
9716 *)
9717 # The compiler driver will combine and reorder linker options,
9718 # but understands `-z linker_flag'. GCC discards it without `$wl',
9719 # but is careful enough not to reorder.
9720 # Supported since Solaris 2.6 (maybe 2.5.1?)
9721 if test "$GCC" = yes; then
9722 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9723 else
9724 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9725 fi
9726 ;;
9727 esac
9728 link_all_deplibs=yes
9729 ;;
9730
9731 sunos4*)
9732 if test "x$host_vendor" = xsequent; then
9733 # Use $CC to link under sequent, because it throws in some extra .o
9734 # files that make .init and .fini sections work.
9735 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9736 else
9737 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9738 fi
9739 hardcode_libdir_flag_spec='-L$libdir'
9740 hardcode_direct=yes
9741 hardcode_minus_L=yes
9742 hardcode_shlibpath_var=no
9743 ;;
9744
9745 sysv4)
9746 case $host_vendor in
9747 sni)
9748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9749 hardcode_direct=yes # is this really true???
9750 ;;
9751 siemens)
9752 ## LD is ld it makes a PLAMLIB
9753 ## CC just makes a GrossModule.
9754 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9755 reload_cmds='$CC -r -o $output$reload_objs'
9756 hardcode_direct=no
9757 ;;
9758 motorola)
9759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9760 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9761 ;;
9762 esac
9763 runpath_var='LD_RUN_PATH'
9764 hardcode_shlibpath_var=no
9765 ;;
9766
9767 sysv4.3*)
9768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9769 hardcode_shlibpath_var=no
9770 export_dynamic_flag_spec='-Bexport'
9771 ;;
9772
9773 sysv4*MP*)
9774 if test -d /usr/nec; then
9775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9776 hardcode_shlibpath_var=no
9777 runpath_var=LD_RUN_PATH
9778 hardcode_runpath_var=yes
9779 ld_shlibs=yes
9780 fi
9781 ;;
9782
9783 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9784 no_undefined_flag='${wl}-z,text'
9785 archive_cmds_need_lc=no
9786 hardcode_shlibpath_var=no
9787 runpath_var='LD_RUN_PATH'
9788
9789 if test "$GCC" = yes; then
9790 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9791 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9792 else
9793 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9794 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9795 fi
9796 ;;
9797
9798 sysv5* | sco3.2v5* | sco5v6*)
9799 # Note: We can NOT use -z defs as we might desire, because we do not
9800 # link with -lc, and that would cause any symbols used from libc to
9801 # always be unresolved, which means just about no library would
9802 # ever link correctly. If we're not using GNU ld we use -z text
9803 # though, which does catch some bad symbols but isn't as heavy-handed
9804 # as -z defs.
9805 no_undefined_flag='${wl}-z,text'
9806 allow_undefined_flag='${wl}-z,nodefs'
9807 archive_cmds_need_lc=no
9808 hardcode_shlibpath_var=no
9809 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9810 hardcode_libdir_separator=':'
9811 link_all_deplibs=yes
9812 export_dynamic_flag_spec='${wl}-Bexport'
9813 runpath_var='LD_RUN_PATH'
9814
9815 if test "$GCC" = yes; then
9816 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9817 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9818 else
9819 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9820 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9821 fi
9822 ;;
9823
9824 uts4*)
9825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9826 hardcode_libdir_flag_spec='-L$libdir'
9827 hardcode_shlibpath_var=no
9828 ;;
9829
9830 *)
9831 ld_shlibs=no
9832 ;;
9833 esac
9834
9835 if test x$host_vendor = xsni; then
9836 case $host in
9837 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9838 export_dynamic_flag_spec='${wl}-Blargedynsym'
9839 ;;
9840 esac
9841 fi
9842 fi
9843
81ecdfbb
RW
9844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9845$as_echo "$ld_shlibs" >&6; }
d7040cdb
SE
9846test "$ld_shlibs" = no && can_build_shared=no
9847
9848with_gnu_ld=$with_gnu_ld
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864#
9865# Do we need to explicitly link libc?
9866#
9867case "x$archive_cmds_need_lc" in
9868x|xyes)
9869 # Assume -lc should be added
9870 archive_cmds_need_lc=yes
9871
9872 if test "$enable_shared" = yes && test "$GCC" = yes; then
9873 case $archive_cmds in
9874 *'~'*)
9875 # FIXME: we may have to deal with multi-command sequences.
9876 ;;
9877 '$CC '*)
9878 # Test whether the compiler implicitly links with -lc since on some
9879 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9880 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9882$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9883if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9884 $as_echo_n "(cached) " >&6
39144654
RW
9885else
9886 $RM conftest*
9887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9888
81ecdfbb 9889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb 9890 (eval $ac_compile) 2>&5
20e95c23 9891 ac_status=$?
81ecdfbb
RW
9892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9893 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9894 soname=conftest
9895 lib=conftest
9896 libobjs=conftest.$ac_objext
9897 deplibs=
9898 wl=$lt_prog_compiler_wl
9899 pic_flag=$lt_prog_compiler_pic
9900 compiler_flags=-v
9901 linker_flags=-v
9902 verstring=
9903 output_objdir=.
9904 libname=conftest
9905 lt_save_allow_undefined_flag=$allow_undefined_flag
9906 allow_undefined_flag=
81ecdfbb 9907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
d7040cdb 9908 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20e95c23 9909 ac_status=$?
81ecdfbb
RW
9910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9911 test $ac_status = 0; }
39144654
RW
9912 then
9913 lt_cv_archive_cmds_need_lc=no
9914 else
9915 lt_cv_archive_cmds_need_lc=yes
9916 fi
9917 allow_undefined_flag=$lt_save_allow_undefined_flag
9918 else
9919 cat conftest.err 1>&5
9920 fi
9921 $RM conftest*
9922
9923fi
81ecdfbb
RW
9924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9925$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9926 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
d7040cdb
SE
9927 ;;
9928 esac
9929 fi
9930 ;;
9931esac
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
81ecdfbb
RW
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10090$as_echo_n "checking dynamic linker characteristics... " >&6; }
718a6fd8
SE
10091
10092if test "$GCC" = yes; then
d7040cdb
SE
10093 case $host_os in
10094 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10095 *) lt_awk_arg="/^libraries:/" ;;
10096 esac
3725885a
RW
10097 case $host_os in
10098 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10099 *) lt_sed_strip_eq="s,=/,/,g" ;;
10100 esac
10101 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10102 case $lt_search_path_spec in
10103 *\;*)
d7040cdb
SE
10104 # if the path contains ";" then we assume it to be the separator
10105 # otherwise default to the standard path separator (i.e. ":") - it is
10106 # assumed that no part of a normal pathname contains ";" but that should
10107 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10108 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10109 ;;
10110 *)
10111 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10112 ;;
10113 esac
d7040cdb
SE
10114 # Ok, now we have the path, separated by spaces, we can step through it
10115 # and add multilib dir if necessary.
10116 lt_tmp_lt_search_path_spec=
10117 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10118 for lt_sys_path in $lt_search_path_spec; do
10119 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10120 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10121 else
10122 test -d "$lt_sys_path" && \
10123 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10124 fi
10125 done
3725885a 10126 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
d7040cdb
SE
10127BEGIN {RS=" "; FS="/|\n";} {
10128 lt_foo="";
10129 lt_count=0;
10130 for (lt_i = NF; lt_i > 0; lt_i--) {
10131 if ($lt_i != "" && $lt_i != ".") {
10132 if ($lt_i == "..") {
10133 lt_count++;
10134 } else {
10135 if (lt_count == 0) {
10136 lt_foo="/" $lt_i lt_foo;
10137 } else {
10138 lt_count--;
10139 }
10140 }
10141 }
10142 }
10143 if (lt_foo != "") { lt_freq[lt_foo]++; }
10144 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10145}'`
3725885a
RW
10146 # AWK program above erroneously prepends '/' to C:/dos/paths
10147 # for these hosts.
10148 case $host_os in
10149 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10150 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10151 esac
10152 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb
SE
10153else
10154 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10155fi
10156library_names_spec=
10157libname_spec='lib$name'
10158soname_spec=
10159shrext_cmds=".so"
10160postinstall_cmds=
10161postuninstall_cmds=
10162finish_cmds=
10163finish_eval=
10164shlibpath_var=
10165shlibpath_overrides_runpath=unknown
10166version_type=none
10167dynamic_linker="$host_os ld.so"
10168sys_lib_dlsearch_path_spec="/lib /usr/lib"
10169need_lib_prefix=unknown
10170hardcode_into_libs=no
10171
10172# when you set need_version to no, make sure it does not cause -set_version
10173# flags to be left without arguments
10174need_version=unknown
10175
10176case $host_os in
10177aix3*)
10178 version_type=linux
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10180 shlibpath_var=LIBPATH
10181
10182 # AIX 3 has no versioning support, so we append a major version to the name.
10183 soname_spec='${libname}${release}${shared_ext}$major'
10184 ;;
10185
50e7d84b 10186aix[4-9]*)
d7040cdb
SE
10187 version_type=linux
10188 need_lib_prefix=no
10189 need_version=no
10190 hardcode_into_libs=yes
10191 if test "$host_cpu" = ia64; then
10192 # AIX 5 supports IA64
10193 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10194 shlibpath_var=LD_LIBRARY_PATH
10195 else
10196 # With GCC up to 2.95.x, collect2 would create an import file
10197 # for dependence libraries. The import file would start with
10198 # the line `#! .'. This would cause the generated library to
10199 # depend on `.', always an invalid library. This was fixed in
10200 # development snapshots of GCC prior to 3.0.
10201 case $host_os in
10202 aix4 | aix4.[01] | aix4.[01].*)
10203 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10204 echo ' yes '
10205 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10206 :
10207 else
10208 can_build_shared=no
10209 fi
10210 ;;
10211 esac
10212 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10213 # soname into executable. Probably we can add versioning support to
10214 # collect2, so additional links can be useful in future.
10215 if test "$aix_use_runtimelinking" = yes; then
10216 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10217 # instead of lib<name>.a to let people know that these are not
10218 # typical AIX shared libraries.
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220 else
10221 # We preserve .a as extension for shared libraries through AIX4.2
10222 # and later when we are not doing run time linking.
10223 library_names_spec='${libname}${release}.a $libname.a'
10224 soname_spec='${libname}${release}${shared_ext}$major'
10225 fi
10226 shlibpath_var=LIBPATH
10227 fi
10228 ;;
10229
10230amigaos*)
718a6fd8
SE
10231 case $host_cpu in
10232 powerpc)
10233 # Since July 2007 AmigaOS4 officially supports .so libraries.
10234 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236 ;;
10237 m68k)
d7040cdb
SE
10238 library_names_spec='$libname.ixlibrary $libname.a'
10239 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10240 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'
718a6fd8
SE
10241 ;;
10242 esac
d7040cdb
SE
10243 ;;
10244
10245beos*)
10246 library_names_spec='${libname}${shared_ext}'
10247 dynamic_linker="$host_os ld.so"
10248 shlibpath_var=LIBRARY_PATH
10249 ;;
10250
10251bsdi[45]*)
10252 version_type=linux
10253 need_version=no
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10255 soname_spec='${libname}${release}${shared_ext}$major'
10256 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10257 shlibpath_var=LD_LIBRARY_PATH
10258 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10259 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10260 # the default ld.so.conf also contains /usr/contrib/lib and
10261 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10262 # libtool to hard-code these into programs
10263 ;;
10264
718a6fd8 10265cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
10266 version_type=windows
10267 shrext_cmds=".dll"
10268 need_version=no
10269 need_lib_prefix=no
10270
718a6fd8
SE
10271 case $GCC,$host_os in
10272 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d7040cdb
SE
10273 library_names_spec='$libname.dll.a'
10274 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10275 postinstall_cmds='base_file=`basename \${file}`~
10276 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10277 dldir=$destdir/`dirname \$dlpath`~
10278 test -d \$dldir || mkdir -p \$dldir~
10279 $install_prog $dir/$dlname \$dldir/$dlname~
10280 chmod a+x \$dldir/$dlname~
10281 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10282 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10283 fi'
10284 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10285 dlpath=$dir/\$dldll~
10286 $RM \$dlpath'
10287 shlibpath_overrides_runpath=yes
10288
10289 case $host_os in
10290 cygwin*)
10291 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10292 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10293
10294 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d7040cdb 10295 ;;
718a6fd8 10296 mingw* | cegcc*)
d7040cdb
SE
10297 # MinGW DLLs use traditional 'lib' prefix
10298 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d7040cdb
SE
10299 ;;
10300 pw32*)
10301 # pw32 DLLs use 'pw' prefix rather than 'lib'
10302 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10303 ;;
10304 esac
10305 ;;
10306
10307 *)
10308 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10309 ;;
10310 esac
10311 dynamic_linker='Win32 ld.exe'
10312 # FIXME: first we should search . and the directory the executable is in
10313 shlibpath_var=PATH
10314 ;;
10315
10316darwin* | rhapsody*)
10317 dynamic_linker="$host_os dyld"
10318 version_type=darwin
10319 need_lib_prefix=no
10320 need_version=no
10321 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10322 soname_spec='${libname}${release}${major}$shared_ext'
10323 shlibpath_overrides_runpath=yes
10324 shlibpath_var=DYLD_LIBRARY_PATH
10325 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10326
10327 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10328 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10329 ;;
10330
10331dgux*)
10332 version_type=linux
10333 need_lib_prefix=no
10334 need_version=no
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10336 soname_spec='${libname}${release}${shared_ext}$major'
10337 shlibpath_var=LD_LIBRARY_PATH
10338 ;;
10339
10340freebsd1*)
10341 dynamic_linker=no
10342 ;;
10343
10344freebsd* | dragonfly*)
10345 # DragonFly does not have aout. When/if they implement a new
10346 # versioning mechanism, adjust this.
10347 if test -x /usr/bin/objformat; then
10348 objformat=`/usr/bin/objformat`
10349 else
10350 case $host_os in
10351 freebsd[123]*) objformat=aout ;;
10352 *) objformat=elf ;;
10353 esac
10354 fi
10355 version_type=freebsd-$objformat
10356 case $version_type in
10357 freebsd-elf*)
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10359 need_version=no
10360 need_lib_prefix=no
10361 ;;
10362 freebsd-*)
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10364 need_version=yes
10365 ;;
10366 esac
10367 shlibpath_var=LD_LIBRARY_PATH
10368 case $host_os in
10369 freebsd2*)
10370 shlibpath_overrides_runpath=yes
10371 ;;
10372 freebsd3.[01]* | freebsdelf3.[01]*)
10373 shlibpath_overrides_runpath=yes
10374 hardcode_into_libs=yes
10375 ;;
10376 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10377 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10378 shlibpath_overrides_runpath=no
10379 hardcode_into_libs=yes
10380 ;;
10381 *) # from 4.6 on, and DragonFly
10382 shlibpath_overrides_runpath=yes
10383 hardcode_into_libs=yes
10384 ;;
10385 esac
10386 ;;
10387
10388gnu*)
10389 version_type=linux
10390 need_lib_prefix=no
10391 need_version=no
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10393 soname_spec='${libname}${release}${shared_ext}$major'
10394 shlibpath_var=LD_LIBRARY_PATH
10395 hardcode_into_libs=yes
10396 ;;
10397
3725885a
RW
10398haiku*)
10399 version_type=linux
10400 need_lib_prefix=no
10401 need_version=no
10402 dynamic_linker="$host_os runtime_loader"
10403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10404 soname_spec='${libname}${release}${shared_ext}$major'
10405 shlibpath_var=LIBRARY_PATH
10406 shlibpath_overrides_runpath=yes
10407 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10408 hardcode_into_libs=yes
10409 ;;
10410
d7040cdb
SE
10411hpux9* | hpux10* | hpux11*)
10412 # Give a soname corresponding to the major version so that dld.sl refuses to
10413 # link against other versions.
10414 version_type=sunos
10415 need_lib_prefix=no
10416 need_version=no
10417 case $host_cpu in
10418 ia64*)
10419 shrext_cmds='.so'
10420 hardcode_into_libs=yes
10421 dynamic_linker="$host_os dld.so"
10422 shlibpath_var=LD_LIBRARY_PATH
10423 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 if test "X$HPUX_IA64_MODE" = X32; then
10427 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10428 else
10429 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10430 fi
10431 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10432 ;;
10433 hppa*64*)
10434 shrext_cmds='.sl'
10435 hardcode_into_libs=yes
10436 dynamic_linker="$host_os dld.sl"
10437 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10438 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10443 ;;
10444 *)
10445 shrext_cmds='.sl'
10446 dynamic_linker="$host_os dld.sl"
10447 shlibpath_var=SHLIB_PATH
10448 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450 soname_spec='${libname}${release}${shared_ext}$major'
10451 ;;
10452 esac
3725885a 10453 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d7040cdb 10454 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10455 # or fails outright, so override atomically:
10456 install_override_mode=555
d7040cdb
SE
10457 ;;
10458
10459interix[3-9]*)
10460 version_type=linux
10461 need_lib_prefix=no
10462 need_version=no
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10466 shlibpath_var=LD_LIBRARY_PATH
10467 shlibpath_overrides_runpath=no
10468 hardcode_into_libs=yes
10469 ;;
10470
10471irix5* | irix6* | nonstopux*)
10472 case $host_os in
10473 nonstopux*) version_type=nonstopux ;;
10474 *)
10475 if test "$lt_cv_prog_gnu_ld" = yes; then
10476 version_type=linux
10477 else
10478 version_type=irix
10479 fi ;;
10480 esac
10481 need_lib_prefix=no
10482 need_version=no
10483 soname_spec='${libname}${release}${shared_ext}$major'
10484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10485 case $host_os in
10486 irix5* | nonstopux*)
10487 libsuff= shlibsuff=
10488 ;;
10489 *)
10490 case $LD in # libtool.m4 will add one of these switches to LD
10491 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10492 libsuff= shlibsuff= libmagic=32-bit;;
10493 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10494 libsuff=32 shlibsuff=N32 libmagic=N32;;
10495 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10496 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10497 *) libsuff= shlibsuff= libmagic=never-match;;
10498 esac
10499 ;;
10500 esac
10501 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10502 shlibpath_overrides_runpath=no
10503 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10504 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10505 hardcode_into_libs=yes
10506 ;;
10507
10508# No shared lib support for Linux oldld, aout, or coff.
10509linux*oldld* | linux*aout* | linux*coff*)
10510 dynamic_linker=no
10511 ;;
10512
10513# This must be Linux ELF.
58e24671 10514linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
10515 version_type=linux
10516 need_lib_prefix=no
10517 need_version=no
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519 soname_spec='${libname}${release}${shared_ext}$major'
10520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10521 shlibpath_var=LD_LIBRARY_PATH
10522 shlibpath_overrides_runpath=no
39144654 10523
d7040cdb 10524 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10525 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10526 $as_echo_n "(cached) " >&6
39144654
RW
10527else
10528 lt_cv_shlibpath_overrides_runpath=no
10529 save_LDFLAGS=$LDFLAGS
10530 save_libdir=$libdir
10531 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10532 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10534/* end confdefs.h. */
10535
10536int
10537main ()
10538{
10539
10540 ;
10541 return 0;
10542}
10543_ACEOF
81ecdfbb
RW
10544if ac_fn_c_try_link "$LINENO"; then :
10545 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10546 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10547fi
d7040cdb 10548fi
81ecdfbb
RW
10549rm -f core conftest.err conftest.$ac_objext \
10550 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10551 LDFLAGS=$save_LDFLAGS
10552 libdir=$save_libdir
10553
10554fi
10555
10556 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb
SE
10557
10558 # This implies no fast_install, which is unacceptable.
10559 # Some rework will be needed to allow for fast_install
10560 # before this can be enabled.
10561 hardcode_into_libs=yes
10562
10563 # Append ld.so.conf contents to the search path
10564 if test -f /etc/ld.so.conf; then
3725885a 10565 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' ' '`
d7040cdb
SE
10566 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10567 fi
10568
10569 # We used to test for /lib/ld.so.1 and disable shared libraries on
10570 # powerpc, because MkLinux only supported shared libraries with the
10571 # GNU dynamic linker. Since this was broken with cross compilers,
10572 # most powerpc-linux boxes support dynamic linking these days and
10573 # people can always --disable-shared, the test was removed, and we
10574 # assume the GNU/Linux dynamic linker is in use.
10575 dynamic_linker='GNU/Linux ld.so'
10576 ;;
10577
10578netbsd*)
10579 version_type=sunos
10580 need_lib_prefix=no
10581 need_version=no
10582 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10585 dynamic_linker='NetBSD (a.out) ld.so'
10586 else
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10588 soname_spec='${libname}${release}${shared_ext}$major'
10589 dynamic_linker='NetBSD ld.elf_so'
10590 fi
10591 shlibpath_var=LD_LIBRARY_PATH
10592 shlibpath_overrides_runpath=yes
10593 hardcode_into_libs=yes
10594 ;;
10595
10596newsos6)
10597 version_type=linux
10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599 shlibpath_var=LD_LIBRARY_PATH
10600 shlibpath_overrides_runpath=yes
10601 ;;
10602
10603*nto* | *qnx*)
10604 version_type=qnx
10605 need_lib_prefix=no
10606 need_version=no
10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608 soname_spec='${libname}${release}${shared_ext}$major'
10609 shlibpath_var=LD_LIBRARY_PATH
10610 shlibpath_overrides_runpath=no
10611 hardcode_into_libs=yes
10612 dynamic_linker='ldqnx.so'
10613 ;;
10614
10615openbsd*)
10616 version_type=sunos
10617 sys_lib_dlsearch_path_spec="/usr/lib"
10618 need_lib_prefix=no
10619 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10620 case $host_os in
10621 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10622 *) need_version=no ;;
10623 esac
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10626 shlibpath_var=LD_LIBRARY_PATH
10627 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10628 case $host_os in
10629 openbsd2.[89] | openbsd2.[89].*)
10630 shlibpath_overrides_runpath=no
10631 ;;
10632 *)
10633 shlibpath_overrides_runpath=yes
10634 ;;
10635 esac
10636 else
10637 shlibpath_overrides_runpath=yes
10638 fi
10639 ;;
10640
10641os2*)
10642 libname_spec='$name'
10643 shrext_cmds=".dll"
10644 need_lib_prefix=no
10645 library_names_spec='$libname${shared_ext} $libname.a'
10646 dynamic_linker='OS/2 ld.exe'
10647 shlibpath_var=LIBPATH
10648 ;;
10649
10650osf3* | osf4* | osf5*)
10651 version_type=osf
10652 need_lib_prefix=no
10653 need_version=no
10654 soname_spec='${libname}${release}${shared_ext}$major'
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10656 shlibpath_var=LD_LIBRARY_PATH
10657 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10658 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10659 ;;
10660
10661rdos*)
10662 dynamic_linker=no
10663 ;;
10664
10665solaris*)
10666 version_type=linux
10667 need_lib_prefix=no
10668 need_version=no
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10670 soname_spec='${libname}${release}${shared_ext}$major'
10671 shlibpath_var=LD_LIBRARY_PATH
10672 shlibpath_overrides_runpath=yes
10673 hardcode_into_libs=yes
10674 # ldd complains unless libraries are executable
10675 postinstall_cmds='chmod +x $lib'
10676 ;;
10677
10678sunos4*)
10679 version_type=sunos
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10681 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10682 shlibpath_var=LD_LIBRARY_PATH
10683 shlibpath_overrides_runpath=yes
10684 if test "$with_gnu_ld" = yes; then
10685 need_lib_prefix=no
10686 fi
10687 need_version=yes
10688 ;;
10689
10690sysv4 | sysv4.3*)
10691 version_type=linux
10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10693 soname_spec='${libname}${release}${shared_ext}$major'
10694 shlibpath_var=LD_LIBRARY_PATH
10695 case $host_vendor in
10696 sni)
10697 shlibpath_overrides_runpath=no
10698 need_lib_prefix=no
10699 runpath_var=LD_RUN_PATH
10700 ;;
10701 siemens)
10702 need_lib_prefix=no
10703 ;;
10704 motorola)
10705 need_lib_prefix=no
10706 need_version=no
10707 shlibpath_overrides_runpath=no
10708 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10709 ;;
10710 esac
10711 ;;
10712
10713sysv4*MP*)
10714 if test -d /usr/nec ;then
10715 version_type=linux
10716 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10717 soname_spec='$libname${shared_ext}.$major'
10718 shlibpath_var=LD_LIBRARY_PATH
10719 fi
10720 ;;
10721
10722sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10723 version_type=freebsd-elf
10724 need_lib_prefix=no
10725 need_version=no
10726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10727 soname_spec='${libname}${release}${shared_ext}$major'
10728 shlibpath_var=LD_LIBRARY_PATH
10729 shlibpath_overrides_runpath=yes
10730 hardcode_into_libs=yes
10731 if test "$with_gnu_ld" = yes; then
10732 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10733 else
10734 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10735 case $host_os in
10736 sco3.2v5*)
10737 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10738 ;;
10739 esac
10740 fi
10741 sys_lib_dlsearch_path_spec='/usr/lib'
10742 ;;
10743
10744tpf*)
10745 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10746 version_type=linux
10747 need_lib_prefix=no
10748 need_version=no
718a6fd8 10749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d7040cdb
SE
10750 shlibpath_var=LD_LIBRARY_PATH
10751 shlibpath_overrides_runpath=no
10752 hardcode_into_libs=yes
10753 ;;
10754
10755uts4*)
10756 version_type=linux
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10758 soname_spec='${libname}${release}${shared_ext}$major'
10759 shlibpath_var=LD_LIBRARY_PATH
10760 ;;
10761
10762*)
10763 dynamic_linker=no
10764 ;;
10765esac
81ecdfbb
RW
10766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10767$as_echo "$dynamic_linker" >&6; }
d7040cdb
SE
10768test "$dynamic_linker" = no && can_build_shared=no
10769
10770variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10771if test "$GCC" = yes; then
10772 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10773fi
10774
718a6fd8
SE
10775if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10776 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10777fi
10778if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10779 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10780fi
10781
d7040cdb
SE
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
3725885a
RW
10862
10863
10864
10865
10866
d7040cdb
SE
10867
10868
10869
10870
10871
10872
81ecdfbb
RW
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10874$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
d7040cdb
SE
10875hardcode_action=
10876if test -n "$hardcode_libdir_flag_spec" ||
10877 test -n "$runpath_var" ||
10878 test "X$hardcode_automatic" = "Xyes" ; then
10879
10880 # We can hardcode non-existent directories.
10881 if test "$hardcode_direct" != no &&
10882 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10883 # have to relink, otherwise we might link with an installed library
10884 # when we should be linking with a yet-to-be-installed one
10885 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10886 test "$hardcode_minus_L" != no; then
10887 # Linking always hardcodes the temporary library directory.
10888 hardcode_action=relink
10889 else
10890 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10891 hardcode_action=immediate
10892 fi
10893else
10894 # We cannot hardcode anything, or else we can only hardcode existing
10895 # directories.
10896 hardcode_action=unsupported
10897fi
81ecdfbb
RW
10898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10899$as_echo "$hardcode_action" >&6; }
d7040cdb
SE
10900
10901if test "$hardcode_action" = relink ||
10902 test "$inherit_rpath" = yes; then
10903 # Fast installation is not supported
10904 enable_fast_install=no
10905elif test "$shlibpath_overrides_runpath" = yes ||
10906 test "$enable_shared" = no; then
10907 # Fast installation is not necessary
10908 enable_fast_install=needless
10909fi
10910
10911
10912
10913
10914
10915
10916 if test "x$enable_dlopen" != xyes; then
10917 enable_dlopen=unknown
10918 enable_dlopen_self=unknown
10919 enable_dlopen_self_static=unknown
10920else
10921 lt_cv_dlopen=no
10922 lt_cv_dlopen_libs=
10923
10924 case $host_os in
10925 beos*)
10926 lt_cv_dlopen="load_add_on"
10927 lt_cv_dlopen_libs=
10928 lt_cv_dlopen_self=yes
10929 ;;
10930
718a6fd8 10931 mingw* | pw32* | cegcc*)
d7040cdb
SE
10932 lt_cv_dlopen="LoadLibrary"
10933 lt_cv_dlopen_libs=
10934 ;;
10935
10936 cygwin*)
10937 lt_cv_dlopen="dlopen"
10938 lt_cv_dlopen_libs=
10939 ;;
10940
10941 darwin*)
10942 # if libdl is installed we need to link against it
81ecdfbb
RW
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10944$as_echo_n "checking for dlopen in -ldl... " >&6; }
10945if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10946 $as_echo_n "(cached) " >&6
d7040cdb
SE
10947else
10948 ac_check_lib_save_LIBS=$LIBS
10949LIBS="-ldl $LIBS"
81ecdfbb 10950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10951/* end confdefs.h. */
10952
81ecdfbb
RW
10953/* Override any GCC internal prototype to avoid an error.
10954 Use char because int might match the return type of a GCC
10955 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10956#ifdef __cplusplus
10957extern "C"
10958#endif
d7040cdb
SE
10959char dlopen ();
10960int
10961main ()
10962{
81ecdfbb 10963return dlopen ();
d7040cdb
SE
10964 ;
10965 return 0;
10966}
10967_ACEOF
81ecdfbb 10968if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
10969 ac_cv_lib_dl_dlopen=yes
10970else
81ecdfbb 10971 ac_cv_lib_dl_dlopen=no
d7040cdb 10972fi
81ecdfbb
RW
10973rm -f core conftest.err conftest.$ac_objext \
10974 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10975LIBS=$ac_check_lib_save_LIBS
10976fi
81ecdfbb
RW
10977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10978$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10979if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
d7040cdb
SE
10980 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10981else
10982
10983 lt_cv_dlopen="dyld"
10984 lt_cv_dlopen_libs=
10985 lt_cv_dlopen_self=yes
10986
10987fi
10988
10989 ;;
10990
10991 *)
81ecdfbb
RW
10992 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10993if test "x$ac_cv_func_shl_load" = x""yes; then :
d7040cdb
SE
10994 lt_cv_dlopen="shl_load"
10995else
81ecdfbb
RW
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10997$as_echo_n "checking for shl_load in -ldld... " >&6; }
10998if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10999 $as_echo_n "(cached) " >&6
d7040cdb
SE
11000else
11001 ac_check_lib_save_LIBS=$LIBS
11002LIBS="-ldld $LIBS"
81ecdfbb 11003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11004/* end confdefs.h. */
11005
81ecdfbb
RW
11006/* Override any GCC internal prototype to avoid an error.
11007 Use char because int might match the return type of a GCC
11008 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11009#ifdef __cplusplus
11010extern "C"
11011#endif
d7040cdb
SE
11012char shl_load ();
11013int
11014main ()
11015{
81ecdfbb 11016return shl_load ();
d7040cdb
SE
11017 ;
11018 return 0;
11019}
11020_ACEOF
81ecdfbb 11021if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11022 ac_cv_lib_dld_shl_load=yes
11023else
81ecdfbb 11024 ac_cv_lib_dld_shl_load=no
d7040cdb 11025fi
81ecdfbb
RW
11026rm -f core conftest.err conftest.$ac_objext \
11027 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11028LIBS=$ac_check_lib_save_LIBS
11029fi
81ecdfbb
RW
11030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11031$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11032if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
718a6fd8 11033 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
d7040cdb 11034else
81ecdfbb
RW
11035 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11036if test "x$ac_cv_func_dlopen" = x""yes; then :
11037 lt_cv_dlopen="dlopen"
d7040cdb 11038else
81ecdfbb
RW
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11040$as_echo_n "checking for dlopen in -ldl... " >&6; }
11041if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11042 $as_echo_n "(cached) " >&6
11043else
11044 ac_check_lib_save_LIBS=$LIBS
11045LIBS="-ldl $LIBS"
11046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11047/* end confdefs.h. */
d7040cdb 11048
81ecdfbb
RW
11049/* Override any GCC internal prototype to avoid an error.
11050 Use char because int might match the return type of a GCC
11051 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11052#ifdef __cplusplus
11053extern "C"
d7040cdb 11054#endif
d7040cdb 11055char dlopen ();
d7040cdb
SE
11056int
11057main ()
11058{
81ecdfbb 11059return dlopen ();
d7040cdb
SE
11060 ;
11061 return 0;
11062}
11063_ACEOF
81ecdfbb
RW
11064if ac_fn_c_try_link "$LINENO"; then :
11065 ac_cv_lib_dl_dlopen=yes
d7040cdb 11066else
81ecdfbb 11067 ac_cv_lib_dl_dlopen=no
d7040cdb 11068fi
81ecdfbb
RW
11069rm -f core conftest.err conftest.$ac_objext \
11070 conftest$ac_exeext conftest.$ac_ext
11071LIBS=$ac_check_lib_save_LIBS
d7040cdb 11072fi
81ecdfbb
RW
11073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11074$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11075if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11076 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11077else
81ecdfbb
RW
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11079$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11080if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11081 $as_echo_n "(cached) " >&6
d7040cdb
SE
11082else
11083 ac_check_lib_save_LIBS=$LIBS
81ecdfbb
RW
11084LIBS="-lsvld $LIBS"
11085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11086/* end confdefs.h. */
11087
81ecdfbb
RW
11088/* Override any GCC internal prototype to avoid an error.
11089 Use char because int might match the return type of a GCC
11090 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11091#ifdef __cplusplus
11092extern "C"
11093#endif
d7040cdb
SE
11094char dlopen ();
11095int
11096main ()
11097{
81ecdfbb 11098return dlopen ();
d7040cdb
SE
11099 ;
11100 return 0;
11101}
11102_ACEOF
81ecdfbb
RW
11103if ac_fn_c_try_link "$LINENO"; then :
11104 ac_cv_lib_svld_dlopen=yes
d7040cdb 11105else
81ecdfbb 11106 ac_cv_lib_svld_dlopen=no
d7040cdb 11107fi
81ecdfbb
RW
11108rm -f core conftest.err conftest.$ac_objext \
11109 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11110LIBS=$ac_check_lib_save_LIBS
11111fi
81ecdfbb
RW
11112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11113$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11114if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11115 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
d7040cdb 11116else
81ecdfbb
RW
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11118$as_echo_n "checking for dld_link in -ldld... " >&6; }
11119if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11120 $as_echo_n "(cached) " >&6
d7040cdb
SE
11121else
11122 ac_check_lib_save_LIBS=$LIBS
81ecdfbb
RW
11123LIBS="-ldld $LIBS"
11124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11125/* end confdefs.h. */
11126
81ecdfbb
RW
11127/* Override any GCC internal prototype to avoid an error.
11128 Use char because int might match the return type of a GCC
11129 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11130#ifdef __cplusplus
11131extern "C"
11132#endif
81ecdfbb 11133char dld_link ();
d7040cdb
SE
11134int
11135main ()
11136{
81ecdfbb 11137return dld_link ();
d7040cdb
SE
11138 ;
11139 return 0;
11140}
11141_ACEOF
81ecdfbb 11142if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11143 ac_cv_lib_dld_dld_link=yes
11144else
81ecdfbb 11145 ac_cv_lib_dld_dld_link=no
d7040cdb 11146fi
81ecdfbb
RW
11147rm -f core conftest.err conftest.$ac_objext \
11148 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11149LIBS=$ac_check_lib_save_LIBS
11150fi
81ecdfbb
RW
11151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11152$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11153if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
718a6fd8 11154 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11155fi
11156
11157
11158fi
11159
11160
11161fi
11162
11163
11164fi
11165
11166
11167fi
11168
11169
11170fi
11171
11172 ;;
11173 esac
11174
11175 if test "x$lt_cv_dlopen" != xno; then
11176 enable_dlopen=yes
11177 else
11178 enable_dlopen=no
11179 fi
11180
11181 case $lt_cv_dlopen in
11182 dlopen)
11183 save_CPPFLAGS="$CPPFLAGS"
11184 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11185
11186 save_LDFLAGS="$LDFLAGS"
11187 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11188
11189 save_LIBS="$LIBS"
11190 LIBS="$lt_cv_dlopen_libs $LIBS"
11191
81ecdfbb
RW
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11193$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11194if test "${lt_cv_dlopen_self+set}" = set; then :
11195 $as_echo_n "(cached) " >&6
d7040cdb
SE
11196else
11197 if test "$cross_compiling" = yes; then :
11198 lt_cv_dlopen_self=cross
11199else
11200 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11201 lt_status=$lt_dlunknown
11202 cat > conftest.$ac_ext <<_LT_EOF
3725885a 11203#line 11203 "configure"
d7040cdb
SE
11204#include "confdefs.h"
11205
11206#if HAVE_DLFCN_H
11207#include <dlfcn.h>
11208#endif
11209
11210#include <stdio.h>
11211
11212#ifdef RTLD_GLOBAL
11213# define LT_DLGLOBAL RTLD_GLOBAL
11214#else
11215# ifdef DL_GLOBAL
11216# define LT_DLGLOBAL DL_GLOBAL
11217# else
11218# define LT_DLGLOBAL 0
11219# endif
11220#endif
11221
11222/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11223 find out it does not work in some platform. */
11224#ifndef LT_DLLAZY_OR_NOW
11225# ifdef RTLD_LAZY
11226# define LT_DLLAZY_OR_NOW RTLD_LAZY
11227# else
11228# ifdef DL_LAZY
11229# define LT_DLLAZY_OR_NOW DL_LAZY
11230# else
11231# ifdef RTLD_NOW
11232# define LT_DLLAZY_OR_NOW RTLD_NOW
11233# else
11234# ifdef DL_NOW
11235# define LT_DLLAZY_OR_NOW DL_NOW
11236# else
11237# define LT_DLLAZY_OR_NOW 0
11238# endif
11239# endif
11240# endif
11241# endif
11242#endif
11243
3725885a
RW
11244/* When -fvisbility=hidden is used, assume the code has been annotated
11245 correspondingly for the symbols needed. */
11246#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11247void fnord () __attribute__((visibility("default")));
11248#endif
11249
11250void fnord () { int i=42; }
d7040cdb
SE
11251int main ()
11252{
11253 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11254 int status = $lt_dlunknown;
11255
11256 if (self)
11257 {
11258 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11259 else
11260 {
11261 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11262 else puts (dlerror ());
11263 }
d7040cdb
SE
11264 /* dlclose (self); */
11265 }
11266 else
11267 puts (dlerror ());
11268
718a6fd8 11269 return status;
d7040cdb
SE
11270}
11271_LT_EOF
81ecdfbb 11272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11273 (eval $ac_link) 2>&5
11274 ac_status=$?
81ecdfbb
RW
11275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11276 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11277 (./conftest; exit; ) >&5 2>/dev/null
11278 lt_status=$?
11279 case x$lt_status in
11280 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11281 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11282 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11283 esac
11284 else :
11285 # compilation failed
11286 lt_cv_dlopen_self=no
11287 fi
11288fi
11289rm -fr conftest*
11290
11291
11292fi
81ecdfbb
RW
11293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11294$as_echo "$lt_cv_dlopen_self" >&6; }
d7040cdb
SE
11295
11296 if test "x$lt_cv_dlopen_self" = xyes; then
11297 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11299$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11300if test "${lt_cv_dlopen_self_static+set}" = set; then :
11301 $as_echo_n "(cached) " >&6
d7040cdb
SE
11302else
11303 if test "$cross_compiling" = yes; then :
11304 lt_cv_dlopen_self_static=cross
11305else
11306 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11307 lt_status=$lt_dlunknown
11308 cat > conftest.$ac_ext <<_LT_EOF
3725885a 11309#line 11309 "configure"
d7040cdb
SE
11310#include "confdefs.h"
11311
11312#if HAVE_DLFCN_H
11313#include <dlfcn.h>
11314#endif
11315
11316#include <stdio.h>
11317
11318#ifdef RTLD_GLOBAL
11319# define LT_DLGLOBAL RTLD_GLOBAL
11320#else
11321# ifdef DL_GLOBAL
11322# define LT_DLGLOBAL DL_GLOBAL
11323# else
11324# define LT_DLGLOBAL 0
11325# endif
11326#endif
11327
11328/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11329 find out it does not work in some platform. */
11330#ifndef LT_DLLAZY_OR_NOW
11331# ifdef RTLD_LAZY
11332# define LT_DLLAZY_OR_NOW RTLD_LAZY
11333# else
11334# ifdef DL_LAZY
11335# define LT_DLLAZY_OR_NOW DL_LAZY
11336# else
11337# ifdef RTLD_NOW
11338# define LT_DLLAZY_OR_NOW RTLD_NOW
11339# else
11340# ifdef DL_NOW
11341# define LT_DLLAZY_OR_NOW DL_NOW
11342# else
11343# define LT_DLLAZY_OR_NOW 0
11344# endif
11345# endif
11346# endif
11347# endif
11348#endif
11349
3725885a
RW
11350/* When -fvisbility=hidden is used, assume the code has been annotated
11351 correspondingly for the symbols needed. */
11352#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11353void fnord () __attribute__((visibility("default")));
11354#endif
11355
11356void fnord () { int i=42; }
d7040cdb
SE
11357int main ()
11358{
11359 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11360 int status = $lt_dlunknown;
11361
11362 if (self)
11363 {
11364 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11365 else
11366 {
11367 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11368 else puts (dlerror ());
11369 }
d7040cdb
SE
11370 /* dlclose (self); */
11371 }
11372 else
11373 puts (dlerror ());
11374
718a6fd8 11375 return status;
d7040cdb
SE
11376}
11377_LT_EOF
81ecdfbb 11378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11379 (eval $ac_link) 2>&5
11380 ac_status=$?
81ecdfbb
RW
11381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11382 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11383 (./conftest; exit; ) >&5 2>/dev/null
11384 lt_status=$?
11385 case x$lt_status in
11386 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11387 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11388 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11389 esac
11390 else :
11391 # compilation failed
11392 lt_cv_dlopen_self_static=no
11393 fi
11394fi
11395rm -fr conftest*
11396
11397
11398fi
81ecdfbb
RW
11399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11400$as_echo "$lt_cv_dlopen_self_static" >&6; }
d7040cdb
SE
11401 fi
11402
11403 CPPFLAGS="$save_CPPFLAGS"
11404 LDFLAGS="$save_LDFLAGS"
11405 LIBS="$save_LIBS"
11406 ;;
11407 esac
11408
11409 case $lt_cv_dlopen_self in
11410 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11411 *) enable_dlopen_self=unknown ;;
11412 esac
11413
11414 case $lt_cv_dlopen_self_static in
11415 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11416 *) enable_dlopen_self_static=unknown ;;
11417 esac
11418fi
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436striplib=
11437old_striplib=
81ecdfbb
RW
11438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11439$as_echo_n "checking whether stripping libraries is possible... " >&6; }
d7040cdb
SE
11440if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11441 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11442 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11444$as_echo "yes" >&6; }
d7040cdb
SE
11445else
11446# FIXME - insert some real tests, host_os isn't really good enough
11447 case $host_os in
11448 darwin*)
11449 if test -n "$STRIP" ; then
11450 striplib="$STRIP -x"
11451 old_striplib="$STRIP -S"
81ecdfbb
RW
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11453$as_echo "yes" >&6; }
d7040cdb 11454 else
81ecdfbb
RW
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456$as_echo "no" >&6; }
d7040cdb
SE
11457 fi
11458 ;;
11459 *)
81ecdfbb
RW
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461$as_echo "no" >&6; }
d7040cdb
SE
11462 ;;
11463 esac
11464fi
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477 # Report which library types will actually be built
81ecdfbb
RW
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11479$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11481$as_echo "$can_build_shared" >&6; }
d7040cdb 11482
81ecdfbb
RW
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11484$as_echo_n "checking whether to build shared libraries... " >&6; }
d7040cdb
SE
11485 test "$can_build_shared" = "no" && enable_shared=no
11486
11487 # On AIX, shared libraries and static libraries use the same namespace, and
11488 # are all built from PIC.
11489 case $host_os in
11490 aix3*)
11491 test "$enable_shared" = yes && enable_static=no
11492 if test -n "$RANLIB"; then
11493 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11494 postinstall_cmds='$RANLIB $lib'
11495 fi
11496 ;;
11497
50e7d84b 11498 aix[4-9]*)
d7040cdb
SE
11499 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11500 test "$enable_shared" = yes && enable_static=no
11501 fi
11502 ;;
11503 esac
81ecdfbb
RW
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11505$as_echo "$enable_shared" >&6; }
d7040cdb 11506
81ecdfbb
RW
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11508$as_echo_n "checking whether to build static libraries... " >&6; }
d7040cdb
SE
11509 # Make sure either enable_shared or enable_static is yes.
11510 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11512$as_echo "$enable_static" >&6; }
d7040cdb
SE
11513
11514
11515
11516
11517fi
11518ac_ext=c
11519ac_cpp='$CPP $CPPFLAGS'
11520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11522ac_compiler_gnu=$ac_cv_c_compiler_gnu
11523
11524CC="$lt_save_CC"
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
81ecdfbb 11538 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
11539
11540
11541
11542
11543# Only expand once:
11544
11545
11546
81ecdfbb
RW
11547# Check whether --enable-targets was given.
11548if test "${enable_targets+set}" = set; then :
11549 enableval=$enable_targets; case "${enableval}" in
11550 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
d7040cdb
SE
11551 ;;
11552 no) enable_targets= ;;
11553 *) enable_targets=$enableval ;;
11554esac
81ecdfbb
RW
11555fi
11556
d7040cdb 11557
91d6fa6a 11558GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow"
d7040cdb 11559
81ecdfbb
RW
11560# Check whether --enable-werror was given.
11561if test "${enable_werror+set}" = set; then :
11562 enableval=$enable_werror; case "${enableval}" in
d7040cdb
SE
11563 yes | y) ERROR_ON_WARNING="yes" ;;
11564 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 11565 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
d7040cdb 11566 esac
81ecdfbb
RW
11567fi
11568
d7040cdb 11569
bb8541b9
L
11570# Enable -Wno-format by default when using gcc on mingw
11571case "${host}" in
11572 *-*-mingw32*)
11573 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11574 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11575 fi
11576 ;;
11577 *) ;;
11578esac
11579
d7040cdb
SE
11580# Enable -Werror by default when using gcc
11581if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11582 ERROR_ON_WARNING=yes
11583fi
11584
11585NO_WERROR=
11586if test "${ERROR_ON_WARNING}" = yes ; then
11587 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11588 NO_WERROR="-Wno-error"
11589fi
11590
11591if test "${GCC}" = yes ; then
11592 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11593fi
11594
81ecdfbb
RW
11595# Check whether --enable-build-warnings was given.
11596if test "${enable_build_warnings+set}" = set; then :
11597 enableval=$enable_build_warnings; case "${enableval}" in
d7040cdb
SE
11598 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11599 no) if test "${GCC}" = yes ; then
11600 WARN_CFLAGS="-w"
11601 fi;;
11602 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11603 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11604 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11605 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11606 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11607esac
81ecdfbb
RW
11608fi
11609
d7040cdb
SE
11610
11611if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11612 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11613fi
11614
11615
11616
11617
11618
81ecdfbb 11619ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb
SE
11620
11621
11622if test -z "$target" ; then
81ecdfbb 11623 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
d7040cdb
SE
11624fi
11625if test -z "$host" ; then
81ecdfbb 11626 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
d7040cdb
SE
11627fi
11628
11629for ac_prog in 'bison -y' byacc
11630do
11631 # Extract the first word of "$ac_prog", so it can be a program name with args.
11632set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
11633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11634$as_echo_n "checking for $ac_word... " >&6; }
11635if test "${ac_cv_prog_YACC+set}" = set; then :
11636 $as_echo_n "(cached) " >&6
d7040cdb
SE
11637else
11638 if test -n "$YACC"; then
11639 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11640else
11641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11642for as_dir in $PATH
11643do
11644 IFS=$as_save_IFS
11645 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11646 for ac_exec_ext in '' $ac_executable_extensions; do
11647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 11648 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 11649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
11650 break 2
11651 fi
11652done
81ecdfbb
RW
11653 done
11654IFS=$as_save_IFS
d7040cdb
SE
11655
11656fi
11657fi
11658YACC=$ac_cv_prog_YACC
11659if test -n "$YACC"; then
81ecdfbb
RW
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11661$as_echo "$YACC" >&6; }
d7040cdb 11662else
81ecdfbb
RW
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11664$as_echo "no" >&6; }
d7040cdb
SE
11665fi
11666
81ecdfbb 11667
d7040cdb
SE
11668 test -n "$YACC" && break
11669done
11670test -n "$YACC" || YACC="yacc"
11671
11672for ac_prog in flex lex
11673do
11674 # Extract the first word of "$ac_prog", so it can be a program name with args.
11675set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
11676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11677$as_echo_n "checking for $ac_word... " >&6; }
11678if test "${ac_cv_prog_LEX+set}" = set; then :
11679 $as_echo_n "(cached) " >&6
d7040cdb
SE
11680else
11681 if test -n "$LEX"; then
11682 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11683else
11684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11685for as_dir in $PATH
11686do
11687 IFS=$as_save_IFS
11688 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11689 for ac_exec_ext in '' $ac_executable_extensions; do
11690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 11691 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 11692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
11693 break 2
11694 fi
11695done
81ecdfbb
RW
11696 done
11697IFS=$as_save_IFS
d7040cdb
SE
11698
11699fi
11700fi
11701LEX=$ac_cv_prog_LEX
11702if test -n "$LEX"; then
81ecdfbb
RW
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
11704$as_echo "$LEX" >&6; }
d7040cdb 11705else
81ecdfbb
RW
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707$as_echo "no" >&6; }
d7040cdb
SE
11708fi
11709
81ecdfbb 11710
d7040cdb
SE
11711 test -n "$LEX" && break
11712done
11713test -n "$LEX" || LEX=":"
11714
81ecdfbb
RW
11715if test "x$LEX" != "x:"; then
11716 cat >conftest.l <<_ACEOF
11717%%
11718a { ECHO; }
11719b { REJECT; }
11720c { yymore (); }
11721d { yyless (1); }
11722e { yyless (input () != 0); }
11723f { unput (yytext[0]); }
11724. { BEGIN INITIAL; }
11725%%
11726#ifdef YYTEXT_POINTER
11727extern char *yytext;
d7040cdb 11728#endif
d7040cdb 11729int
81ecdfbb 11730main (void)
d7040cdb 11731{
81ecdfbb 11732 return ! yylex () + ! yywrap ();
d7040cdb
SE
11733}
11734_ACEOF
81ecdfbb
RW
11735{ { ac_try="$LEX conftest.l"
11736case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11739esac
11740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11741$as_echo "$ac_try_echo"; } >&5
11742 (eval "$LEX conftest.l") 2>&5
d7040cdb 11743 ac_status=$?
81ecdfbb
RW
11744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11745 test $ac_status = 0; }
11746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
11747$as_echo_n "checking lex output file root... " >&6; }
11748if test "${ac_cv_prog_lex_root+set}" = set; then :
11749 $as_echo_n "(cached) " >&6
d7040cdb 11750else
d7040cdb 11751
81ecdfbb
RW
11752if test -f lex.yy.c; then
11753 ac_cv_prog_lex_root=lex.yy
11754elif test -f lexyy.c; then
11755 ac_cv_prog_lex_root=lexyy
11756else
11757 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
d7040cdb 11758fi
d7040cdb 11759fi
81ecdfbb
RW
11760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
11761$as_echo "$ac_cv_prog_lex_root" >&6; }
11762LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
d7040cdb 11763
81ecdfbb
RW
11764if test -z "${LEXLIB+set}"; then
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
11766$as_echo_n "checking lex library... " >&6; }
11767if test "${ac_cv_lib_lex+set}" = set; then :
11768 $as_echo_n "(cached) " >&6
d7040cdb 11769else
d7040cdb 11770
81ecdfbb
RW
11771 ac_save_LIBS=$LIBS
11772 ac_cv_lib_lex='none needed'
11773 for ac_lib in '' -lfl -ll; do
11774 LIBS="$ac_lib $ac_save_LIBS"
11775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11776/* end confdefs.h. */
11777`cat $LEX_OUTPUT_ROOT.c`
11778_ACEOF
11779if ac_fn_c_try_link "$LINENO"; then :
11780 ac_cv_lib_lex=$ac_lib
d7040cdb 11781fi
81ecdfbb
RW
11782rm -f core conftest.err conftest.$ac_objext \
11783 conftest$ac_exeext conftest.$ac_ext
11784 test "$ac_cv_lib_lex" != 'none needed' && break
11785 done
11786 LIBS=$ac_save_LIBS
d7040cdb
SE
11787
11788fi
81ecdfbb
RW
11789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
11790$as_echo "$ac_cv_lib_lex" >&6; }
11791 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb
SE
11792fi
11793
d7040cdb 11794
81ecdfbb
RW
11795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
11796$as_echo_n "checking whether yytext is a pointer... " >&6; }
11797if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
11798 $as_echo_n "(cached) " >&6
d7040cdb
SE
11799else
11800 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 11801# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
11802# not all implementations provide the %pointer and %array declarations.
11803ac_cv_prog_lex_yytext_pointer=no
d7040cdb 11804ac_save_LIBS=$LIBS
81ecdfbb
RW
11805LIBS="$LEXLIB $ac_save_LIBS"
11806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11807/* end confdefs.h. */
11808#define YYTEXT_POINTER 1
d7040cdb
SE
11809`cat $LEX_OUTPUT_ROOT.c`
11810_ACEOF
81ecdfbb 11811if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 11812 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 11813fi
81ecdfbb
RW
11814rm -f core conftest.err conftest.$ac_objext \
11815 conftest$ac_exeext conftest.$ac_ext
d7040cdb 11816LIBS=$ac_save_LIBS
d7040cdb
SE
11817
11818fi
81ecdfbb
RW
11819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
11820$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
11821if test $ac_cv_prog_lex_yytext_pointer = yes; then
11822
81ecdfbb 11823$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
11824
11825fi
81ecdfbb 11826rm -f conftest.l $LEX_OUTPUT_ROOT.c
d7040cdb
SE
11827
11828fi
11829if test "$LEX" = :; then
11830 LEX=${am_missing_run}flex
11831fi
11832
ac5d747e 11833ALL_LINGUAS="da es fi fr id ja ro ru rw sk sv tr uk vi zh_CN zh_TW"
d7040cdb
SE
11834# If we haven't got the data from the intl directory,
11835# assume NLS is disabled.
11836USE_NLS=no
11837LIBINTL=
11838LIBINTL_DEP=
11839INCINTL=
11840XGETTEXT=
11841GMSGFMT=
11842POSUB=
11843
11844if test -f ../intl/config.intl; then
11845 . ../intl/config.intl
11846fi
81ecdfbb
RW
11847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11848$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 11849if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851$as_echo "no" >&6; }
d7040cdb 11852else
81ecdfbb
RW
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11854$as_echo "yes" >&6; }
d7040cdb 11855
81ecdfbb 11856$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
11857
11858
81ecdfbb
RW
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11860$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
11861 # Look for .po and .gmo files in the source directory.
11862 CATALOGS=
11863 XLINGUAS=
11864 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11865 # If there aren't any .gmo files the shell will give us the
11866 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11867 # weeded out.
11868 case "$cat" in *\**)
11869 continue;;
11870 esac
11871 # The quadruple backslash is collapsed to a double backslash
11872 # by the backticks, then collapsed again by the double quotes,
11873 # leaving us with one backslash in the sed expression (right
11874 # before the dot that mustn't act as a wildcard).
11875 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11876 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11877 # The user is allowed to set LINGUAS to a list of languages to
11878 # install catalogs for. If it's empty that means "all of them."
11879 if test "x$LINGUAS" = x; then
11880 CATALOGS="$CATALOGS $cat"
11881 XLINGUAS="$XLINGUAS $lang"
11882 else
11883 case "$LINGUAS" in *$lang*)
11884 CATALOGS="$CATALOGS $cat"
11885 XLINGUAS="$XLINGUAS $lang"
11886 ;;
11887 esac
11888 fi
11889 done
11890 LINGUAS="$XLINGUAS"
81ecdfbb
RW
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11892$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
11893
11894
11895 DATADIRNAME=share
11896
11897 INSTOBJEXT=.mo
11898
11899 GENCAT=gencat
11900
11901 CATOBJEXT=.gmo
11902
11903fi
11904
11905 MKINSTALLDIRS=
11906 if test -n "$ac_aux_dir"; then
11907 case "$ac_aux_dir" in
11908 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11909 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11910 esac
11911 fi
11912 if test -z "$MKINSTALLDIRS"; then
11913 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11914 fi
11915
11916
11917
81ecdfbb
RW
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11919$as_echo_n "checking whether NLS is requested... " >&6; }
11920 # Check whether --enable-nls was given.
11921if test "${enable_nls+set}" = set; then :
11922 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
11923else
11924 USE_NLS=yes
81ecdfbb
RW
11925fi
11926
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11928$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
11929
11930
11931
11932
11933
11934
11935# Prepare PATH_SEPARATOR.
11936# The user is always right.
11937if test "${PATH_SEPARATOR+set}" != set; then
11938 echo "#! /bin/sh" >conf$$.sh
11939 echo "exit 0" >>conf$$.sh
11940 chmod +x conf$$.sh
11941 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11942 PATH_SEPARATOR=';'
11943 else
11944 PATH_SEPARATOR=:
11945 fi
11946 rm -f conf$$.sh
11947fi
11948
11949# Find out how to test for executable files. Don't use a zero-byte file,
11950# as systems may use methods other than mode bits to determine executability.
11951cat >conf$$.file <<_ASEOF
11952#! /bin/sh
11953exit 0
11954_ASEOF
11955chmod +x conf$$.file
11956if test -x conf$$.file >/dev/null 2>&1; then
11957 ac_executable_p="test -x"
11958else
11959 ac_executable_p="test -f"
11960fi
11961rm -f conf$$.file
11962
11963# Extract the first word of "msgfmt", so it can be a program name with args.
11964set dummy msgfmt; ac_word=$2
81ecdfbb
RW
11965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11966$as_echo_n "checking for $ac_word... " >&6; }
11967if test "${ac_cv_path_MSGFMT+set}" = set; then :
11968 $as_echo_n "(cached) " >&6
d7040cdb
SE
11969else
11970 case "$MSGFMT" in
11971 [\\/]* | ?:[\\/]*)
11972 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11973 ;;
11974 *)
11975 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11976 for ac_dir in $PATH; do
11977 IFS="$ac_save_IFS"
11978 test -z "$ac_dir" && ac_dir=.
11979 for ac_exec_ext in '' $ac_executable_extensions; do
11980 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11981 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11982 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11983 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11984 break 2
11985 fi
11986 fi
11987 done
11988 done
11989 IFS="$ac_save_IFS"
11990 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11991 ;;
11992esac
11993fi
11994MSGFMT="$ac_cv_path_MSGFMT"
11995if test "$MSGFMT" != ":"; then
81ecdfbb
RW
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11997$as_echo "$MSGFMT" >&6; }
d7040cdb 11998else
81ecdfbb
RW
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000$as_echo "no" >&6; }
d7040cdb
SE
12001fi
12002
12003 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12004set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
12005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12006$as_echo_n "checking for $ac_word... " >&6; }
12007if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12008 $as_echo_n "(cached) " >&6
d7040cdb
SE
12009else
12010 case $GMSGFMT in
12011 [\\/]* | ?:[\\/]*)
12012 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12013 ;;
12014 *)
12015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016for as_dir in $PATH
12017do
12018 IFS=$as_save_IFS
12019 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12020 for ac_exec_ext in '' $ac_executable_extensions; do
12021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12022 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12024 break 2
12025 fi
12026done
81ecdfbb
RW
12027 done
12028IFS=$as_save_IFS
d7040cdb
SE
12029
12030 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12031 ;;
12032esac
12033fi
12034GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 12035if test -n "$GMSGFMT"; then
81ecdfbb
RW
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12037$as_echo "$GMSGFMT" >&6; }
d7040cdb 12038else
81ecdfbb
RW
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040$as_echo "no" >&6; }
d7040cdb
SE
12041fi
12042
12043
12044
81ecdfbb 12045
d7040cdb
SE
12046# Prepare PATH_SEPARATOR.
12047# The user is always right.
12048if test "${PATH_SEPARATOR+set}" != set; then
12049 echo "#! /bin/sh" >conf$$.sh
12050 echo "exit 0" >>conf$$.sh
12051 chmod +x conf$$.sh
12052 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12053 PATH_SEPARATOR=';'
12054 else
12055 PATH_SEPARATOR=:
12056 fi
12057 rm -f conf$$.sh
12058fi
12059
12060# Find out how to test for executable files. Don't use a zero-byte file,
12061# as systems may use methods other than mode bits to determine executability.
12062cat >conf$$.file <<_ASEOF
12063#! /bin/sh
12064exit 0
12065_ASEOF
12066chmod +x conf$$.file
12067if test -x conf$$.file >/dev/null 2>&1; then
12068 ac_executable_p="test -x"
12069else
12070 ac_executable_p="test -f"
12071fi
12072rm -f conf$$.file
12073
12074# Extract the first word of "xgettext", so it can be a program name with args.
12075set dummy xgettext; ac_word=$2
81ecdfbb
RW
12076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12077$as_echo_n "checking for $ac_word... " >&6; }
12078if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12079 $as_echo_n "(cached) " >&6
d7040cdb
SE
12080else
12081 case "$XGETTEXT" in
12082 [\\/]* | ?:[\\/]*)
12083 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12084 ;;
12085 *)
12086 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12087 for ac_dir in $PATH; do
12088 IFS="$ac_save_IFS"
12089 test -z "$ac_dir" && ac_dir=.
12090 for ac_exec_ext in '' $ac_executable_extensions; do
12091 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12092 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12093 (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
12094 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12095 break 2
12096 fi
12097 fi
12098 done
12099 done
12100 IFS="$ac_save_IFS"
12101 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12102 ;;
12103esac
12104fi
12105XGETTEXT="$ac_cv_path_XGETTEXT"
12106if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12108$as_echo "$XGETTEXT" >&6; }
d7040cdb 12109else
81ecdfbb
RW
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12111$as_echo "no" >&6; }
d7040cdb
SE
12112fi
12113
12114 rm -f messages.po
12115
12116
12117# Prepare PATH_SEPARATOR.
12118# The user is always right.
12119if test "${PATH_SEPARATOR+set}" != set; then
12120 echo "#! /bin/sh" >conf$$.sh
12121 echo "exit 0" >>conf$$.sh
12122 chmod +x conf$$.sh
12123 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12124 PATH_SEPARATOR=';'
12125 else
12126 PATH_SEPARATOR=:
12127 fi
12128 rm -f conf$$.sh
12129fi
12130
12131# Find out how to test for executable files. Don't use a zero-byte file,
12132# as systems may use methods other than mode bits to determine executability.
12133cat >conf$$.file <<_ASEOF
12134#! /bin/sh
12135exit 0
12136_ASEOF
12137chmod +x conf$$.file
12138if test -x conf$$.file >/dev/null 2>&1; then
12139 ac_executable_p="test -x"
12140else
12141 ac_executable_p="test -f"
12142fi
12143rm -f conf$$.file
12144
12145# Extract the first word of "msgmerge", so it can be a program name with args.
12146set dummy msgmerge; ac_word=$2
81ecdfbb
RW
12147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12148$as_echo_n "checking for $ac_word... " >&6; }
12149if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12150 $as_echo_n "(cached) " >&6
d7040cdb
SE
12151else
12152 case "$MSGMERGE" in
12153 [\\/]* | ?:[\\/]*)
12154 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12155 ;;
12156 *)
12157 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12158 for ac_dir in $PATH; do
12159 IFS="$ac_save_IFS"
12160 test -z "$ac_dir" && ac_dir=.
12161 for ac_exec_ext in '' $ac_executable_extensions; do
12162 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12163 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12164 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12165 break 2
12166 fi
12167 fi
12168 done
12169 done
12170 IFS="$ac_save_IFS"
12171 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12172 ;;
12173esac
12174fi
12175MSGMERGE="$ac_cv_path_MSGMERGE"
12176if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12178$as_echo "$MSGMERGE" >&6; }
d7040cdb 12179else
81ecdfbb
RW
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12181$as_echo "no" >&6; }
d7040cdb
SE
12182fi
12183
12184
12185 if test "$GMSGFMT" != ":"; then
12186 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12187 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12188 : ;
12189 else
12190 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12192$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
12193 GMSGFMT=":"
12194 fi
12195 fi
12196
12197 if test "$XGETTEXT" != ":"; then
12198 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12199 (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
12200 : ;
12201 else
81ecdfbb
RW
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12203$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
12204 XGETTEXT=":"
12205 fi
12206 rm -f messages.po
12207 fi
12208
81ecdfbb 12209 ac_config_commands="$ac_config_commands default-1"
d7040cdb
SE
12210
12211
12212
81ecdfbb
RW
12213
12214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12215$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12216 # Check whether --enable-maintainer-mode was given.
12217if test "${enable_maintainer_mode+set}" = set; then :
12218 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
42ecbf5e 12219else
d7040cdb 12220 USE_MAINTAINER_MODE=no
81ecdfbb 12221fi
d7040cdb 12222
81ecdfbb
RW
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12224$as_echo "$USE_MAINTAINER_MODE" >&6; }
12225 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
12226 MAINTAINER_MODE_TRUE=
12227 MAINTAINER_MODE_FALSE='#'
12228else
12229 MAINTAINER_MODE_TRUE='#'
12230 MAINTAINER_MODE_FALSE=
42ecbf5e 12231fi
d7040cdb
SE
12232
12233 MAINT=$MAINTAINER_MODE_TRUE
12234
12235
81ecdfbb 12236 if false; then
d7040cdb
SE
12237 GENINSRC_NEVER_TRUE=
12238 GENINSRC_NEVER_FALSE='#'
12239else
12240 GENINSRC_NEVER_TRUE='#'
12241 GENINSRC_NEVER_FALSE=
42ecbf5e 12242fi
d7040cdb
SE
12243
12244
12245if test -n "$EXEEXT"; then
20e95c23 12246
81ecdfbb 12247$as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
42ecbf5e 12248
252b5132
RH
12249fi
12250
d7040cdb
SE
12251cat >>confdefs.h <<_ACEOF
12252#define EXECUTABLE_SUFFIX "${EXEEXT}"
12253_ACEOF
42ecbf5e 12254
252b5132 12255
d7040cdb 12256# host-specific stuff:
252b5132 12257
d7040cdb 12258HDEFINES=
252b5132 12259
d7040cdb 12260. ${srcdir}/../bfd/configure.host
252b5132 12261
252b5132 12262
d7040cdb 12263AR=${AR-ar}
252b5132 12264
d7040cdb
SE
12265if test -n "$ac_tool_prefix"; then
12266 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12267set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
12268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12269$as_echo_n "checking for $ac_word... " >&6; }
12270if test "${ac_cv_prog_RANLIB+set}" = set; then :
12271 $as_echo_n "(cached) " >&6
d7040cdb
SE
12272else
12273 if test -n "$RANLIB"; then
12274 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12275else
12276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12277for as_dir in $PATH
12278do
12279 IFS=$as_save_IFS
12280 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12281 for ac_exec_ext in '' $ac_executable_extensions; do
12282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12283 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 12284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12285 break 2
12286 fi
12287done
81ecdfbb
RW
12288 done
12289IFS=$as_save_IFS
252b5132 12290
d7040cdb
SE
12291fi
12292fi
12293RANLIB=$ac_cv_prog_RANLIB
12294if test -n "$RANLIB"; then
81ecdfbb
RW
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12296$as_echo "$RANLIB" >&6; }
d7040cdb 12297else
81ecdfbb
RW
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299$as_echo "no" >&6; }
d7040cdb 12300fi
20e95c23 12301
81ecdfbb 12302
d7040cdb
SE
12303fi
12304if test -z "$ac_cv_prog_RANLIB"; then
12305 ac_ct_RANLIB=$RANLIB
12306 # Extract the first word of "ranlib", so it can be a program name with args.
12307set dummy ranlib; ac_word=$2
81ecdfbb
RW
12308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12309$as_echo_n "checking for $ac_word... " >&6; }
12310if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12311 $as_echo_n "(cached) " >&6
252b5132 12312else
d7040cdb
SE
12313 if test -n "$ac_ct_RANLIB"; then
12314 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12315else
12316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317for as_dir in $PATH
12318do
12319 IFS=$as_save_IFS
12320 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12321 for ac_exec_ext in '' $ac_executable_extensions; do
12322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12323 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 12324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12325 break 2
12326 fi
12327done
81ecdfbb
RW
12328 done
12329IFS=$as_save_IFS
20e95c23 12330
d7040cdb
SE
12331fi
12332fi
12333ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12334if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12336$as_echo "$ac_ct_RANLIB" >&6; }
d7040cdb 12337else
81ecdfbb
RW
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339$as_echo "no" >&6; }
d7040cdb
SE
12340fi
12341
81ecdfbb
RW
12342 if test "x$ac_ct_RANLIB" = x; then
12343 RANLIB=":"
d7040cdb 12344 else
81ecdfbb
RW
12345 case $cross_compiling:$ac_tool_warned in
12346yes:)
12347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12349ac_tool_warned=yes ;;
12350esac
12351 RANLIB=$ac_ct_RANLIB
d7040cdb 12352 fi
81ecdfbb
RW
12353else
12354 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 12355fi
d7040cdb 12356
d7040cdb
SE
12357
12358
12359# Put a plausible default for CC_FOR_BUILD in Makefile.
12360if test -z "$CC_FOR_BUILD"; then
12361 if test "x$cross_compiling" = "xno"; then
12362 CC_FOR_BUILD='$(CC)'
12363 else
12364 CC_FOR_BUILD=gcc
12365 fi
12366fi
20e95c23 12367
d7040cdb
SE
12368# Also set EXEEXT_FOR_BUILD.
12369if test "x$cross_compiling" = "xno"; then
12370 EXEEXT_FOR_BUILD='$(EXEEXT)'
12371else
81ecdfbb
RW
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12373$as_echo_n "checking for build system executable suffix... " >&6; }
12374if test "${bfd_cv_build_exeext+set}" = set; then :
12375 $as_echo_n "(cached) " >&6
d7040cdb
SE
12376else
12377 rm -f conftest*
12378 echo 'int main () { return 0; }' > conftest.c
12379 bfd_cv_build_exeext=
12380 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12381 for file in conftest.*; do
12382 case $file in
12383 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12384 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12385 esac
12386 done
12387 rm -f conftest*
12388 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 12389fi
81ecdfbb
RW
12390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12391$as_echo "$bfd_cv_build_exeext" >&6; }
d7040cdb
SE
12392 EXEEXT_FOR_BUILD=""
12393 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
252b5132
RH
12394fi
12395
12396
d7040cdb
SE
12397DEMANGLER_NAME=c++filt
12398case "${host}" in
12399 *-*-go32* | *-*-msdos*)
12400 DEMANGLER_NAME=cxxfilt
12401esac
8a965946
ILT
12402
12403
81ecdfbb
RW
12404for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
12405do :
12406 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12407ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12408eval as_val=\$$as_ac_Header
12409 if test "x$as_val" = x""yes; then :
12410 cat >>confdefs.h <<_ACEOF
12411#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12412_ACEOF
42ecbf5e 12413
81ecdfbb 12414fi
42ecbf5e 12415
81ecdfbb 12416done
42ecbf5e 12417
81ecdfbb
RW
12418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12419$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12420if test "${ac_cv_header_sys_wait_h+set}" = set; then :
12421 $as_echo_n "(cached) " >&6
42ecbf5e 12422else
81ecdfbb 12423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12424/* end confdefs.h. */
252b5132
RH
12425#include <sys/types.h>
12426#include <sys/wait.h>
12427#ifndef WEXITSTATUS
81ecdfbb 12428# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
252b5132
RH
12429#endif
12430#ifndef WIFEXITED
42ecbf5e 12431# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
252b5132 12432#endif
42ecbf5e
DJ
12433
12434int
12435main ()
12436{
12437 int s;
12438 wait (&s);
12439 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12440 ;
12441 return 0;
12442}
12443_ACEOF
81ecdfbb 12444if ac_fn_c_try_compile "$LINENO"; then :
252b5132
RH
12445 ac_cv_header_sys_wait_h=yes
12446else
81ecdfbb 12447 ac_cv_header_sys_wait_h=no
252b5132 12448fi
81ecdfbb 12449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12450fi
81ecdfbb
RW
12451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12452$as_echo "$ac_cv_header_sys_wait_h" >&6; }
d15b04bd 12453if test $ac_cv_header_sys_wait_h = yes; then
42ecbf5e 12454
81ecdfbb 12455$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
252b5132
RH
12456
12457fi
12458
12459# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12460# for constant arguments. Useless!
81ecdfbb
RW
12461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12462$as_echo_n "checking for working alloca.h... " >&6; }
12463if test "${ac_cv_working_alloca_h+set}" = set; then :
12464 $as_echo_n "(cached) " >&6
42ecbf5e 12465else
81ecdfbb 12466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12467/* end confdefs.h. */
252b5132 12468#include <alloca.h>
42ecbf5e
DJ
12469int
12470main ()
12471{
12472char *p = (char *) alloca (2 * sizeof (int));
81ecdfbb 12473 if (p) return 0;
42ecbf5e
DJ
12474 ;
12475 return 0;
12476}
12477_ACEOF
81ecdfbb 12478if ac_fn_c_try_link "$LINENO"; then :
42ecbf5e
DJ
12479 ac_cv_working_alloca_h=yes
12480else
81ecdfbb 12481 ac_cv_working_alloca_h=no
42ecbf5e 12482fi
81ecdfbb
RW
12483rm -f core conftest.err conftest.$ac_objext \
12484 conftest$ac_exeext conftest.$ac_ext
42ecbf5e 12485fi
81ecdfbb
RW
12486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12487$as_echo "$ac_cv_working_alloca_h" >&6; }
42ecbf5e
DJ
12488if test $ac_cv_working_alloca_h = yes; then
12489
81ecdfbb 12490$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
252b5132
RH
12491
12492fi
12493
81ecdfbb
RW
12494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12495$as_echo_n "checking for alloca... " >&6; }
12496if test "${ac_cv_func_alloca_works+set}" = set; then :
12497 $as_echo_n "(cached) " >&6
252b5132 12498else
81ecdfbb 12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12500/* end confdefs.h. */
252b5132
RH
12501#ifdef __GNUC__
12502# define alloca __builtin_alloca
12503#else
12504# ifdef _MSC_VER
12505# include <malloc.h>
12506# define alloca _alloca
12507# else
81ecdfbb 12508# ifdef HAVE_ALLOCA_H
252b5132
RH
12509# include <alloca.h>
12510# else
12511# ifdef _AIX
12512 #pragma alloca
12513# else
12514# ifndef alloca /* predefined by HP cc +Olibcalls */
12515char *alloca ();
12516# endif
12517# endif
12518# endif
12519# endif
12520#endif
12521
42ecbf5e
DJ
12522int
12523main ()
12524{
12525char *p = (char *) alloca (1);
81ecdfbb 12526 if (p) return 0;
42ecbf5e
DJ
12527 ;
12528 return 0;
12529}
12530_ACEOF
81ecdfbb 12531if ac_fn_c_try_link "$LINENO"; then :
252b5132
RH
12532 ac_cv_func_alloca_works=yes
12533else
81ecdfbb 12534 ac_cv_func_alloca_works=no
252b5132 12535fi
81ecdfbb
RW
12536rm -f core conftest.err conftest.$ac_objext \
12537 conftest$ac_exeext conftest.$ac_ext
252b5132 12538fi
81ecdfbb
RW
12539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12540$as_echo "$ac_cv_func_alloca_works" >&6; }
252b5132 12541
252b5132 12542if test $ac_cv_func_alloca_works = yes; then
e5a52504 12543
81ecdfbb 12544$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
e5a52504 12545
42ecbf5e 12546else
d15b04bd 12547 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
42ecbf5e
DJ
12548# that cause trouble. Some versions do not even contain alloca or
12549# contain a buggy version. If you still want to use their alloca,
12550# use ar to extract alloca.o from them instead of compiling alloca.c.
12551
81ecdfbb 12552ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
42ecbf5e 12553
81ecdfbb 12554$as_echo "#define C_ALLOCA 1" >>confdefs.h
252b5132
RH
12555
12556
81ecdfbb
RW
12557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12558$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12559if test "${ac_cv_os_cray+set}" = set; then :
12560 $as_echo_n "(cached) " >&6
252b5132 12561else
81ecdfbb 12562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12563/* end confdefs.h. */
81ecdfbb 12564#if defined CRAY && ! defined CRAY2
252b5132
RH
12565webecray
12566#else
12567wenotbecray
12568#endif
12569
42ecbf5e 12570_ACEOF
252b5132 12571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb 12572 $EGREP "webecray" >/dev/null 2>&1; then :
252b5132
RH
12573 ac_cv_os_cray=yes
12574else
252b5132
RH
12575 ac_cv_os_cray=no
12576fi
12577rm -f conftest*
12578
12579fi
81ecdfbb
RW
12580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12581$as_echo "$ac_cv_os_cray" >&6; }
d15b04bd 12582if test $ac_cv_os_cray = yes; then
42ecbf5e 12583 for ac_func in _getb67 GETB67 getb67; do
81ecdfbb
RW
12584 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12585ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12586eval as_val=\$$as_ac_var
12587 if test "x$as_val" = x""yes; then :
42ecbf5e
DJ
12588
12589cat >>confdefs.h <<_ACEOF
252b5132 12590#define CRAY_STACKSEG_END $ac_func
42ecbf5e 12591_ACEOF
252b5132 12592
42ecbf5e 12593 break
252b5132
RH
12594fi
12595
42ecbf5e 12596 done
252b5132
RH
12597fi
12598
81ecdfbb
RW
12599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12600$as_echo_n "checking stack direction for C alloca... " >&6; }
12601if test "${ac_cv_c_stack_direction+set}" = set; then :
12602 $as_echo_n "(cached) " >&6
252b5132 12603else
81ecdfbb 12604 if test "$cross_compiling" = yes; then :
252b5132
RH
12605 ac_cv_c_stack_direction=0
12606else
81ecdfbb 12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12608/* end confdefs.h. */
81ecdfbb 12609$ac_includes_default
42ecbf5e 12610int
252b5132
RH
12611find_stack_direction ()
12612{
12613 static char *addr = 0;
12614 auto char dummy;
12615 if (addr == 0)
12616 {
12617 addr = &dummy;
12618 return find_stack_direction ();
12619 }
12620 else
12621 return (&dummy > addr) ? 1 : -1;
12622}
42ecbf5e
DJ
12623
12624int
252b5132
RH
12625main ()
12626{
81ecdfbb 12627 return find_stack_direction () < 0;
252b5132 12628}
42ecbf5e 12629_ACEOF
81ecdfbb 12630if ac_fn_c_try_run "$LINENO"; then :
252b5132
RH
12631 ac_cv_c_stack_direction=1
12632else
81ecdfbb 12633 ac_cv_c_stack_direction=-1
252b5132 12634fi
81ecdfbb
RW
12635rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12636 conftest.$ac_objext conftest.beam conftest.$ac_ext
252b5132
RH
12637fi
12638
81ecdfbb
RW
12639fi
12640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12641$as_echo "$ac_cv_c_stack_direction" >&6; }
42ecbf5e 12642cat >>confdefs.h <<_ACEOF
252b5132 12643#define STACK_DIRECTION $ac_cv_c_stack_direction
42ecbf5e
DJ
12644_ACEOF
12645
252b5132
RH
12646
12647fi
12648
81ecdfbb
RW
12649for ac_func in sbrk utimes setmode getc_unlocked strcoll
12650do :
12651 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12652ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12653eval as_val=\$$as_ac_var
12654 if test "x$as_val" = x""yes; then :
12655 cat >>confdefs.h <<_ACEOF
12656#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12657_ACEOF
42ecbf5e 12658
81ecdfbb
RW
12659fi
12660done
42ecbf5e 12661
81ecdfbb
RW
12662ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
12663if test "x$ac_cv_func_mkstemp" = x""yes; then :
42ecbf5e 12664
81ecdfbb 12665$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
42ecbf5e 12666
81ecdfbb 12667fi
42ecbf5e 12668
81ecdfbb
RW
12669ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
12670if test "x$ac_cv_func_mkdtemp" = x""yes; then :
42ecbf5e 12671
81ecdfbb 12672$as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
42ecbf5e 12673
81ecdfbb 12674fi
d15b04bd 12675
d15b04bd 12676
81ecdfbb
RW
12677# Some systems have frexp only in -lm, not in -lc.
12678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
12679$as_echo_n "checking for library containing frexp... " >&6; }
12680if test "${ac_cv_search_frexp+set}" = set; then :
12681 $as_echo_n "(cached) " >&6
f9c026a8 12682else
81ecdfbb
RW
12683 ac_func_search_save_LIBS=$LIBS
12684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f9c026a8 12685/* end confdefs.h. */
f9c026a8 12686
81ecdfbb
RW
12687/* Override any GCC internal prototype to avoid an error.
12688 Use char because int might match the return type of a GCC
f9c026a8 12689 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
12690#ifdef __cplusplus
12691extern "C"
12692#endif
42ecbf5e
DJ
12693char frexp ();
12694int
12695main ()
12696{
81ecdfbb 12697return frexp ();
42ecbf5e
DJ
12698 ;
12699 return 0;
12700}
12701_ACEOF
81ecdfbb
RW
12702for ac_lib in '' m; do
12703 if test -z "$ac_lib"; then
12704 ac_res="none required"
12705 else
12706 ac_res=-l$ac_lib
42ecbf5e 12707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
12708 fi
12709 if ac_fn_c_try_link "$LINENO"; then :
12710 ac_cv_search_frexp=$ac_res
12711fi
12712rm -f core conftest.err conftest.$ac_objext \
12713 conftest$ac_exeext
12714 if test "${ac_cv_search_frexp+set}" = set; then :
12715 break
12716fi
12717done
12718if test "${ac_cv_search_frexp+set}" = set; then :
42ecbf5e 12719
f353eb8a 12720else
81ecdfbb 12721 ac_cv_search_frexp=no
e5a52504 12722fi
81ecdfbb 12723rm conftest.$ac_ext
42ecbf5e
DJ
12724LIBS=$ac_func_search_save_LIBS
12725fi
81ecdfbb
RW
12726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
12727$as_echo "$ac_cv_search_frexp" >&6; }
12728ac_res=$ac_cv_search_frexp
12729if test "$ac_res" != no; then :
12730 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 12731
f353eb8a
ILT
12732fi
12733
42ecbf5e 12734
81ecdfbb
RW
12735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in time.h" >&5
12736$as_echo_n "checking for time_t in time.h... " >&6; }
12737if test "${bu_cv_decl_time_t_time_h+set}" = set; then :
12738 $as_echo_n "(cached) " >&6
252b5132 12739else
81ecdfbb 12740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12741/* end confdefs.h. */
252b5132 12742#include <time.h>
42ecbf5e
DJ
12743int
12744main ()
12745{
252b5132 12746time_t i;
42ecbf5e
DJ
12747 ;
12748 return 0;
12749}
12750_ACEOF
81ecdfbb 12751if ac_fn_c_try_compile "$LINENO"; then :
252b5132
RH
12752 bu_cv_decl_time_t_time_h=yes
12753else
81ecdfbb 12754 bu_cv_decl_time_t_time_h=no
252b5132 12755fi
81ecdfbb 12756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12757fi
12758
81ecdfbb
RW
12759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_time_h" >&5
12760$as_echo "$bu_cv_decl_time_t_time_h" >&6; }
252b5132 12761if test $bu_cv_decl_time_t_time_h = yes; then
42ecbf5e 12762
81ecdfbb 12763$as_echo "#define HAVE_TIME_T_IN_TIME_H 1" >>confdefs.h
252b5132
RH
12764
12765fi
12766
81ecdfbb
RW
12767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in sys/types.h" >&5
12768$as_echo_n "checking for time_t in sys/types.h... " >&6; }
12769if test "${bu_cv_decl_time_t_types_h+set}" = set; then :
12770 $as_echo_n "(cached) " >&6
252b5132 12771else
81ecdfbb 12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12773/* end confdefs.h. */
252b5132 12774#include <sys/types.h>
42ecbf5e
DJ
12775int
12776main ()
12777{
252b5132 12778time_t i;
42ecbf5e
DJ
12779 ;
12780 return 0;
12781}
12782_ACEOF
81ecdfbb 12783if ac_fn_c_try_compile "$LINENO"; then :
252b5132
RH
12784 bu_cv_decl_time_t_types_h=yes
12785else
81ecdfbb 12786 bu_cv_decl_time_t_types_h=no
252b5132 12787fi
81ecdfbb 12788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12789fi
12790
81ecdfbb
RW
12791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_types_h" >&5
12792$as_echo "$bu_cv_decl_time_t_types_h" >&6; }
252b5132 12793if test $bu_cv_decl_time_t_types_h = yes; then
42ecbf5e 12794
81ecdfbb 12795$as_echo "#define HAVE_TIME_T_IN_TYPES_H 1" >>confdefs.h
252b5132
RH
12796
12797fi
12798
81ecdfbb
RW
12799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
12800$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
12801if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then :
12802 $as_echo_n "(cached) " >&6
e46eba98 12803else
81ecdfbb 12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12805/* end confdefs.h. */
e46eba98 12806#include <unistd.h>
42ecbf5e
DJ
12807int
12808main ()
12809{
e46eba98 12810extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
12811 ;
12812 return 0;
12813}
12814_ACEOF
81ecdfbb 12815if ac_fn_c_try_compile "$LINENO"; then :
e46eba98
NC
12816 bu_cv_decl_getopt_unistd_h=yes
12817else
81ecdfbb 12818 bu_cv_decl_getopt_unistd_h=no
e46eba98 12819fi
81ecdfbb 12820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e46eba98
NC
12821fi
12822
81ecdfbb
RW
12823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
12824$as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
e46eba98 12825if test $bu_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 12826
81ecdfbb 12827$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
e46eba98
NC
12828
12829fi
12830
252b5132
RH
12831# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
12832# by default.
81ecdfbb
RW
12833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
12834$as_echo_n "checking for utime.h... " >&6; }
12835if test "${bu_cv_header_utime_h+set}" = set; then :
12836 $as_echo_n "(cached) " >&6
42ecbf5e 12837else
81ecdfbb 12838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12839/* end confdefs.h. */
252b5132
RH
12840#include <sys/types.h>
12841#ifdef HAVE_TIME_H
12842#include <time.h>
12843#endif
12844#include <utime.h>
42ecbf5e
DJ
12845int
12846main ()
12847{
252b5132 12848struct utimbuf s;
42ecbf5e
DJ
12849 ;
12850 return 0;
12851}
12852_ACEOF
81ecdfbb 12853if ac_fn_c_try_compile "$LINENO"; then :
252b5132
RH
12854 bu_cv_header_utime_h=yes
12855else
81ecdfbb 12856 bu_cv_header_utime_h=no
252b5132 12857fi
81ecdfbb 12858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12859fi
12860
81ecdfbb
RW
12861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
12862$as_echo "$bu_cv_header_utime_h" >&6; }
252b5132 12863if test $bu_cv_header_utime_h = yes; then
42ecbf5e 12864
81ecdfbb 12865$as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
252b5132
RH
12866
12867fi
12868
81ecdfbb
RW
12869ac_fn_c_check_decl "$LINENO" "fprintf" "ac_cv_have_decl_fprintf" "$ac_includes_default"
12870if test "x$ac_cv_have_decl_fprintf" = x""yes; then :
12871 ac_have_decl=1
252b5132 12872else
81ecdfbb
RW
12873 ac_have_decl=0
12874fi
398ee8f1 12875
81ecdfbb
RW
12876cat >>confdefs.h <<_ACEOF
12877#define HAVE_DECL_FPRINTF $ac_have_decl
42ecbf5e 12878_ACEOF
81ecdfbb
RW
12879ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
12880if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
12881 ac_have_decl=1
252b5132 12882else
81ecdfbb 12883 ac_have_decl=0
252b5132 12884fi
252b5132 12885
398ee8f1 12886cat >>confdefs.h <<_ACEOF
81ecdfbb 12887#define HAVE_DECL_STPCPY $ac_have_decl
398ee8f1 12888_ACEOF
81ecdfbb
RW
12889ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
12890if test "x$ac_cv_have_decl_strstr" = x""yes; then :
12891 ac_have_decl=1
398ee8f1 12892else
81ecdfbb
RW
12893 ac_have_decl=0
12894fi
3e321448
L
12895
12896cat >>confdefs.h <<_ACEOF
81ecdfbb 12897#define HAVE_DECL_STRSTR $ac_have_decl
42ecbf5e 12898_ACEOF
81ecdfbb
RW
12899ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
12900if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
12901 ac_have_decl=1
252b5132 12902else
81ecdfbb 12903 ac_have_decl=0
252b5132 12904fi
252b5132 12905
398ee8f1 12906cat >>confdefs.h <<_ACEOF
81ecdfbb 12907#define HAVE_DECL_SBRK $ac_have_decl
398ee8f1 12908_ACEOF
81ecdfbb
RW
12909ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
12910if test "x$ac_cv_have_decl_getenv" = x""yes; then :
12911 ac_have_decl=1
398ee8f1 12912else
81ecdfbb 12913 ac_have_decl=0
398ee8f1 12914fi
252b5132 12915
398ee8f1 12916cat >>confdefs.h <<_ACEOF
81ecdfbb 12917#define HAVE_DECL_GETENV $ac_have_decl
398ee8f1 12918_ACEOF
81ecdfbb
RW
12919ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
12920if test "x$ac_cv_have_decl_environ" = x""yes; then :
12921 ac_have_decl=1
398ee8f1 12922else
81ecdfbb 12923 ac_have_decl=0
398ee8f1 12924fi
252b5132 12925
398ee8f1 12926cat >>confdefs.h <<_ACEOF
81ecdfbb 12927#define HAVE_DECL_ENVIRON $ac_have_decl
b7d4af3a 12928_ACEOF
81ecdfbb
RW
12929ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
12930if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
12931 ac_have_decl=1
b7d4af3a 12932else
81ecdfbb 12933 ac_have_decl=0
b7d4af3a 12934fi
b7d4af3a
JW
12935
12936cat >>confdefs.h <<_ACEOF
81ecdfbb 12937#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
b7d4af3a 12938_ACEOF
81ecdfbb
RW
12939ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12940if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
12941 ac_have_decl=1
b7d4af3a 12942else
81ecdfbb 12943 ac_have_decl=0
db50c840 12944fi
db50c840
EB
12945
12946cat >>confdefs.h <<_ACEOF
81ecdfbb 12947#define HAVE_DECL_SNPRINTF $ac_have_decl
db50c840 12948_ACEOF
81ecdfbb
RW
12949ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12950if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
12951 ac_have_decl=1
db50c840 12952else
81ecdfbb 12953 ac_have_decl=0
db50c840 12954fi
db50c840
EB
12955
12956cat >>confdefs.h <<_ACEOF
81ecdfbb 12957#define HAVE_DECL_VSNPRINTF $ac_have_decl
db50c840
EB
12958_ACEOF
12959
12960
1b315056
CS
12961# Link in zlib if we can. This allows us to read compressed debug
12962# sections. This is used only by readelf.c (objdump uses bfd for
12963# reading compressed sections).
81ecdfbb
RW
12964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
12965$as_echo_n "checking for library containing zlibVersion... " >&6; }
12966if test "${ac_cv_search_zlibVersion+set}" = set; then :
12967 $as_echo_n "(cached) " >&6
1b315056
CS
12968else
12969 ac_func_search_save_LIBS=$LIBS
81ecdfbb 12970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1b315056
CS
12971/* end confdefs.h. */
12972
81ecdfbb
RW
12973/* Override any GCC internal prototype to avoid an error.
12974 Use char because int might match the return type of a GCC
1b315056 12975 builtin and then its argument prototype would still apply. */
1b315056
CS
12976#ifdef __cplusplus
12977extern "C"
12978#endif
1b315056
CS
12979char zlibVersion ();
12980int
12981main ()
12982{
81ecdfbb 12983return zlibVersion ();
1b315056
CS
12984 ;
12985 return 0;
12986}
81ecdfbb
RW
12987_ACEOF
12988for ac_lib in '' z; do
12989 if test -z "$ac_lib"; then
12990 ac_res="none required"
1b315056 12991 else
81ecdfbb
RW
12992 ac_res=-l$ac_lib
12993 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1b315056 12994 fi
81ecdfbb
RW
12995 if ac_fn_c_try_link "$LINENO"; then :
12996 ac_cv_search_zlibVersion=$ac_res
1b315056 12997fi
81ecdfbb
RW
12998rm -f core conftest.err conftest.$ac_objext \
12999 conftest$ac_exeext
13000 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13001 break
1b315056 13002fi
81ecdfbb
RW
13003done
13004if test "${ac_cv_search_zlibVersion+set}" = set; then :
1b315056 13005
1b315056 13006else
81ecdfbb 13007 ac_cv_search_zlibVersion=no
1b315056 13008fi
81ecdfbb
RW
13009rm conftest.$ac_ext
13010LIBS=$ac_func_search_save_LIBS
1b315056 13011fi
81ecdfbb
RW
13012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
13013$as_echo "$ac_cv_search_zlibVersion" >&6; }
13014ac_res=$ac_cv_search_zlibVersion
13015if test "$ac_res" != no; then :
13016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13017 for ac_header in zlib.h
13018do :
13019 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13020if test "x$ac_cv_header_zlib_h" = x""yes; then :
1b315056 13021 cat >>confdefs.h <<_ACEOF
81ecdfbb 13022#define HAVE_ZLIB_H 1
1b315056
CS
13023_ACEOF
13024
13025fi
13026
13027done
13028
13029fi
13030
13031
252b5132
RH
13032
13033case "${host}" in
8a965946 13034*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 13035
81ecdfbb 13036$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
13037 ;;
13038esac
13039
13040# target-specific stuff:
13041
13042# Canonicalize the secondary target names.
13043if test -n "$enable_targets"; then
13044 for targ in `echo $enable_targets | sed 's/,/ /g'`
13045 do
6d83c84b 13046 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
13047 if test -n "$result"; then
13048 canon_targets="$canon_targets $result"
13049 else
13050 # Allow targets that config.sub doesn't recognize, like "all".
13051 canon_targets="$canon_targets $targ"
13052 fi
13053 done
13054fi
13055
81ecdfbb
RW
13056ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
13057if test "x$ac_cv_header_iconv_h" = x""yes; then :
5ba684e2
NC
13058
13059fi
13060
13061
13062
13063 if test "X$prefix" = "XNONE"; then
13064 acl_final_prefix="$ac_default_prefix"
13065 else
13066 acl_final_prefix="$prefix"
13067 fi
13068 if test "X$exec_prefix" = "XNONE"; then
13069 acl_final_exec_prefix='${prefix}'
13070 else
13071 acl_final_exec_prefix="$exec_prefix"
13072 fi
13073 acl_save_prefix="$prefix"
13074 prefix="$acl_final_prefix"
13075 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13076 prefix="$acl_save_prefix"
13077
13078
81ecdfbb
RW
13079# Check whether --with-gnu-ld was given.
13080if test "${with_gnu_ld+set}" = set; then :
13081 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5ba684e2
NC
13082else
13083 with_gnu_ld=no
81ecdfbb
RW
13084fi
13085
5ba684e2
NC
13086# Prepare PATH_SEPARATOR.
13087# The user is always right.
13088if test "${PATH_SEPARATOR+set}" != set; then
13089 echo "#! /bin/sh" >conf$$.sh
13090 echo "exit 0" >>conf$$.sh
13091 chmod +x conf$$.sh
13092 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13093 PATH_SEPARATOR=';'
13094 else
13095 PATH_SEPARATOR=:
13096 fi
13097 rm -f conf$$.sh
13098fi
13099ac_prog=ld
13100if test "$GCC" = yes; then
13101 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13103$as_echo_n "checking for ld used by GCC... " >&6; }
5ba684e2
NC
13104 case $host in
13105 *-*-mingw*)
13106 # gcc leaves a trailing carriage return which upsets mingw
13107 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13108 *)
13109 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13110 esac
13111 case $ac_prog in
13112 # Accept absolute paths.
13113 [\\/]* | [A-Za-z]:[\\/]*)
13114 re_direlt='/[^/][^/]*/\.\./'
13115 # Canonicalize the path of ld
13116 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13117 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13118 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13119 done
13120 test -z "$LD" && LD="$ac_prog"
13121 ;;
13122 "")
13123 # If it fails, then pretend we aren't using GCC.
13124 ac_prog=ld
13125 ;;
13126 *)
13127 # If it is relative, then search for the first ld in PATH.
13128 with_gnu_ld=unknown
13129 ;;
13130 esac
13131elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13133$as_echo_n "checking for GNU ld... " >&6; }
5ba684e2 13134else
81ecdfbb
RW
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13136$as_echo_n "checking for non-GNU ld... " >&6; }
5ba684e2 13137fi
81ecdfbb
RW
13138if test "${acl_cv_path_LD+set}" = set; then :
13139 $as_echo_n "(cached) " >&6
5ba684e2
NC
13140else
13141 if test -z "$LD"; then
13142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13143 for ac_dir in $PATH; do
13144 test -z "$ac_dir" && ac_dir=.
13145 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13146 acl_cv_path_LD="$ac_dir/$ac_prog"
13147 # Check to see if the program is GNU ld. I'd rather use --version,
13148 # but apparently some GNU ld's only accept -v.
13149 # Break only if it was the GNU/non-GNU ld that we prefer.
13150 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13151 test "$with_gnu_ld" != no && break
13152 else
13153 test "$with_gnu_ld" != yes && break
13154 fi
13155 fi
13156 done
13157 IFS="$ac_save_ifs"
13158else
13159 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13160fi
13161fi
13162
13163LD="$acl_cv_path_LD"
13164if test -n "$LD"; then
81ecdfbb
RW
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13166$as_echo "$LD" >&6; }
5ba684e2 13167else
81ecdfbb
RW
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13169$as_echo "no" >&6; }
5ba684e2 13170fi
81ecdfbb
RW
13171test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13173$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13174if test "${acl_cv_prog_gnu_ld+set}" = set; then :
13175 $as_echo_n "(cached) " >&6
5ba684e2
NC
13176else
13177 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13178if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13179 acl_cv_prog_gnu_ld=yes
13180else
13181 acl_cv_prog_gnu_ld=no
13182fi
13183fi
81ecdfbb
RW
13184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13185$as_echo "$acl_cv_prog_gnu_ld" >&6; }
5ba684e2
NC
13186with_gnu_ld=$acl_cv_prog_gnu_ld
13187
13188
13189
81ecdfbb
RW
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13191$as_echo_n "checking for shared library run path origin... " >&6; }
13192if test "${acl_cv_rpath+set}" = set; then :
13193 $as_echo_n "(cached) " >&6
5ba684e2
NC
13194else
13195
13196 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13197 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13198 . ./conftest.sh
13199 rm -f ./conftest.sh
13200 acl_cv_rpath=done
13201
13202fi
81ecdfbb
RW
13203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13204$as_echo "$acl_cv_rpath" >&6; }
5ba684e2
NC
13205 wl="$acl_cv_wl"
13206 libext="$acl_cv_libext"
13207 shlibext="$acl_cv_shlibext"
13208 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13209 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13210 hardcode_direct="$acl_cv_hardcode_direct"
13211 hardcode_minus_L="$acl_cv_hardcode_minus_L"
81ecdfbb
RW
13212 # Check whether --enable-rpath was given.
13213if test "${enable_rpath+set}" = set; then :
13214 enableval=$enable_rpath; :
5ba684e2
NC
13215else
13216 enable_rpath=yes
81ecdfbb
RW
13217fi
13218
5ba684e2
NC
13219
13220
13221
13222
13223
13224
13225
13226 use_additional=yes
13227
13228 acl_save_prefix="$prefix"
13229 prefix="$acl_final_prefix"
13230 acl_save_exec_prefix="$exec_prefix"
13231 exec_prefix="$acl_final_exec_prefix"
13232
13233 eval additional_includedir=\"$includedir\"
13234 eval additional_libdir=\"$libdir\"
13235
13236 exec_prefix="$acl_save_exec_prefix"
13237 prefix="$acl_save_prefix"
13238
13239
81ecdfbb
RW
13240# Check whether --with-libiconv-prefix was given.
13241if test "${with_libiconv_prefix+set}" = set; then :
13242 withval=$with_libiconv_prefix;
5ba684e2
NC
13243 if test "X$withval" = "Xno"; then
13244 use_additional=no
13245 else
13246 if test "X$withval" = "X"; then
13247
13248 acl_save_prefix="$prefix"
13249 prefix="$acl_final_prefix"
13250 acl_save_exec_prefix="$exec_prefix"
13251 exec_prefix="$acl_final_exec_prefix"
13252
13253 eval additional_includedir=\"$includedir\"
13254 eval additional_libdir=\"$libdir\"
13255
13256 exec_prefix="$acl_save_exec_prefix"
13257 prefix="$acl_save_prefix"
13258
13259 else
13260 additional_includedir="$withval/include"
13261 additional_libdir="$withval/lib"
13262 fi
13263 fi
13264
81ecdfbb
RW
13265fi
13266
5ba684e2
NC
13267 LIBICONV=
13268 LTLIBICONV=
13269 INCICONV=
13270 rpathdirs=
13271 ltrpathdirs=
13272 names_already_handled=
13273 names_next_round='iconv '
13274 while test -n "$names_next_round"; do
13275 names_this_round="$names_next_round"
13276 names_next_round=
13277 for name in $names_this_round; do
13278 already_handled=
13279 for n in $names_already_handled; do
13280 if test "$n" = "$name"; then
13281 already_handled=yes
13282 break
13283 fi
13284 done
13285 if test -z "$already_handled"; then
13286 names_already_handled="$names_already_handled $name"
13287 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13288 eval value=\"\$HAVE_LIB$uppername\"
13289 if test -n "$value"; then
13290 if test "$value" = yes; then
13291 eval value=\"\$LIB$uppername\"
13292 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13293 eval value=\"\$LTLIB$uppername\"
13294 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13295 else
13296 :
13297 fi
13298 else
13299 found_dir=
13300 found_la=
13301 found_so=
13302 found_a=
13303 if test $use_additional = yes; then
13304 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13305 found_dir="$additional_libdir"
13306 found_so="$additional_libdir/lib$name.$shlibext"
13307 if test -f "$additional_libdir/lib$name.la"; then
13308 found_la="$additional_libdir/lib$name.la"
13309 fi
13310 else
13311 if test -f "$additional_libdir/lib$name.$libext"; then
13312 found_dir="$additional_libdir"
13313 found_a="$additional_libdir/lib$name.$libext"
13314 if test -f "$additional_libdir/lib$name.la"; then
13315 found_la="$additional_libdir/lib$name.la"
13316 fi
13317 fi
13318 fi
13319 fi
13320 if test "X$found_dir" = "X"; then
13321 for x in $LDFLAGS $LTLIBICONV; do
13322
13323 acl_save_prefix="$prefix"
13324 prefix="$acl_final_prefix"
13325 acl_save_exec_prefix="$exec_prefix"
13326 exec_prefix="$acl_final_exec_prefix"
13327 eval x=\"$x\"
13328 exec_prefix="$acl_save_exec_prefix"
13329 prefix="$acl_save_prefix"
13330
13331 case "$x" in
13332 -L*)
13333 dir=`echo "X$x" | sed -e 's/^X-L//'`
13334 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13335 found_dir="$dir"
13336 found_so="$dir/lib$name.$shlibext"
13337 if test -f "$dir/lib$name.la"; then
13338 found_la="$dir/lib$name.la"
13339 fi
13340 else
13341 if test -f "$dir/lib$name.$libext"; then
13342 found_dir="$dir"
13343 found_a="$dir/lib$name.$libext"
13344 if test -f "$dir/lib$name.la"; then
13345 found_la="$dir/lib$name.la"
13346 fi
13347 fi
13348 fi
13349 ;;
13350 esac
13351 if test "X$found_dir" != "X"; then
13352 break
13353 fi
13354 done
13355 fi
13356 if test "X$found_dir" != "X"; then
13357 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13358 if test "X$found_so" != "X"; then
13359 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13360 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13361 else
13362 haveit=
13363 for x in $ltrpathdirs; do
13364 if test "X$x" = "X$found_dir"; then
13365 haveit=yes
13366 break
13367 fi
13368 done
13369 if test -z "$haveit"; then
13370 ltrpathdirs="$ltrpathdirs $found_dir"
13371 fi
13372 if test "$hardcode_direct" = yes; then
13373 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13374 else
13375 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13376 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13377 haveit=
13378 for x in $rpathdirs; do
13379 if test "X$x" = "X$found_dir"; then
13380 haveit=yes
13381 break
13382 fi
13383 done
13384 if test -z "$haveit"; then
13385 rpathdirs="$rpathdirs $found_dir"
13386 fi
13387 else
13388 haveit=
13389 for x in $LDFLAGS $LIBICONV; do
13390
13391 acl_save_prefix="$prefix"
13392 prefix="$acl_final_prefix"
13393 acl_save_exec_prefix="$exec_prefix"
13394 exec_prefix="$acl_final_exec_prefix"
13395 eval x=\"$x\"
13396 exec_prefix="$acl_save_exec_prefix"
13397 prefix="$acl_save_prefix"
13398
13399 if test "X$x" = "X-L$found_dir"; then
13400 haveit=yes
13401 break
13402 fi
13403 done
13404 if test -z "$haveit"; then
13405 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13406 fi
13407 if test "$hardcode_minus_L" != no; then
13408 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13409 else
13410 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13411 fi
13412 fi
13413 fi
13414 fi
13415 else
13416 if test "X$found_a" != "X"; then
13417 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13418 else
13419 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13420 fi
13421 fi
13422 additional_includedir=
13423 case "$found_dir" in
13424 */lib | */lib/)
13425 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13426 additional_includedir="$basedir/include"
13427 ;;
13428 esac
13429 if test "X$additional_includedir" != "X"; then
13430 if test "X$additional_includedir" != "X/usr/include"; then
13431 haveit=
13432 if test "X$additional_includedir" = "X/usr/local/include"; then
13433 if test -n "$GCC"; then
13434 case $host_os in
13435 linux*) haveit=yes;;
13436 esac
13437 fi
13438 fi
13439 if test -z "$haveit"; then
13440 for x in $CPPFLAGS $INCICONV; do
13441
13442 acl_save_prefix="$prefix"
13443 prefix="$acl_final_prefix"
13444 acl_save_exec_prefix="$exec_prefix"
13445 exec_prefix="$acl_final_exec_prefix"
13446 eval x=\"$x\"
13447 exec_prefix="$acl_save_exec_prefix"
13448 prefix="$acl_save_prefix"
13449
13450 if test "X$x" = "X-I$additional_includedir"; then
13451 haveit=yes
13452 break
13453 fi
13454 done
13455 if test -z "$haveit"; then
13456 if test -d "$additional_includedir"; then
13457 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13458 fi
13459 fi
13460 fi
13461 fi
13462 fi
13463 if test -n "$found_la"; then
13464 save_libdir="$libdir"
13465 case "$found_la" in
13466 */* | *\\*) . "$found_la" ;;
13467 *) . "./$found_la" ;;
13468 esac
13469 libdir="$save_libdir"
13470 for dep in $dependency_libs; do
13471 case "$dep" in
13472 -L*)
13473 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13474 if test "X$additional_libdir" != "X/usr/lib"; then
13475 haveit=
13476 if test "X$additional_libdir" = "X/usr/local/lib"; then
13477 if test -n "$GCC"; then
13478 case $host_os in
13479 linux*) haveit=yes;;
13480 esac
13481 fi
13482 fi
13483 if test -z "$haveit"; then
13484 haveit=
13485 for x in $LDFLAGS $LIBICONV; do
13486
13487 acl_save_prefix="$prefix"
13488 prefix="$acl_final_prefix"
13489 acl_save_exec_prefix="$exec_prefix"
13490 exec_prefix="$acl_final_exec_prefix"
13491 eval x=\"$x\"
13492 exec_prefix="$acl_save_exec_prefix"
13493 prefix="$acl_save_prefix"
13494
13495 if test "X$x" = "X-L$additional_libdir"; then
13496 haveit=yes
13497 break
13498 fi
13499 done
13500 if test -z "$haveit"; then
13501 if test -d "$additional_libdir"; then
13502 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13503 fi
13504 fi
13505 haveit=
13506 for x in $LDFLAGS $LTLIBICONV; do
13507
13508 acl_save_prefix="$prefix"
13509 prefix="$acl_final_prefix"
13510 acl_save_exec_prefix="$exec_prefix"
13511 exec_prefix="$acl_final_exec_prefix"
13512 eval x=\"$x\"
13513 exec_prefix="$acl_save_exec_prefix"
13514 prefix="$acl_save_prefix"
13515
13516 if test "X$x" = "X-L$additional_libdir"; then
13517 haveit=yes
13518 break
13519 fi
13520 done
13521 if test -z "$haveit"; then
13522 if test -d "$additional_libdir"; then
13523 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13524 fi
13525 fi
13526 fi
13527 fi
13528 ;;
13529 -R*)
13530 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13531 if test "$enable_rpath" != no; then
13532 haveit=
13533 for x in $rpathdirs; do
13534 if test "X$x" = "X$dir"; then
13535 haveit=yes
13536 break
13537 fi
13538 done
13539 if test -z "$haveit"; then
13540 rpathdirs="$rpathdirs $dir"
13541 fi
13542 haveit=
13543 for x in $ltrpathdirs; do
13544 if test "X$x" = "X$dir"; then
13545 haveit=yes
13546 break
13547 fi
13548 done
13549 if test -z "$haveit"; then
13550 ltrpathdirs="$ltrpathdirs $dir"
13551 fi
13552 fi
13553 ;;
13554 -l*)
13555 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13556 ;;
13557 *.la)
13558 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13559 ;;
13560 *)
13561 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13562 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13563 ;;
13564 esac
13565 done
13566 fi
13567 else
13568 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13569 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13570 fi
13571 fi
13572 fi
13573 done
13574 done
13575 if test "X$rpathdirs" != "X"; then
13576 if test -n "$hardcode_libdir_separator"; then
13577 alldirs=
13578 for found_dir in $rpathdirs; do
13579 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13580 done
13581 acl_save_libdir="$libdir"
13582 libdir="$alldirs"
13583 eval flag=\"$hardcode_libdir_flag_spec\"
13584 libdir="$acl_save_libdir"
13585 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13586 else
13587 for found_dir in $rpathdirs; do
13588 acl_save_libdir="$libdir"
13589 libdir="$found_dir"
13590 eval flag=\"$hardcode_libdir_flag_spec\"
13591 libdir="$acl_save_libdir"
13592 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13593 done
13594 fi
13595 fi
13596 if test "X$ltrpathdirs" != "X"; then
13597 for found_dir in $ltrpathdirs; do
13598 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13599 done
13600 fi
13601
13602
13603
13604
13605
13606
13607
13608 am_save_CPPFLAGS="$CPPFLAGS"
13609
13610 for element in $INCICONV; do
13611 haveit=
13612 for x in $CPPFLAGS; do
13613
13614 acl_save_prefix="$prefix"
13615 prefix="$acl_final_prefix"
13616 acl_save_exec_prefix="$exec_prefix"
13617 exec_prefix="$acl_final_exec_prefix"
13618 eval x=\"$x\"
13619 exec_prefix="$acl_save_exec_prefix"
13620 prefix="$acl_save_prefix"
13621
13622 if test "X$x" = "X$element"; then
13623 haveit=yes
13624 break
13625 fi
13626 done
13627 if test -z "$haveit"; then
13628 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13629 fi
13630 done
13631
13632
81ecdfbb
RW
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13634$as_echo_n "checking for iconv... " >&6; }
13635if test "${am_cv_func_iconv+set}" = set; then :
13636 $as_echo_n "(cached) " >&6
5ba684e2
NC
13637else
13638
13639 am_cv_func_iconv="no, consider installing GNU libiconv"
13640 am_cv_lib_iconv=no
81ecdfbb 13641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5ba684e2
NC
13642/* end confdefs.h. */
13643#include <stdlib.h>
13644#include <iconv.h>
13645int
13646main ()
13647{
13648iconv_t cd = iconv_open("","");
13649 iconv(cd,NULL,NULL,NULL,NULL);
13650 iconv_close(cd);
13651 ;
13652 return 0;
13653}
13654_ACEOF
81ecdfbb 13655if ac_fn_c_try_link "$LINENO"; then :
5ba684e2 13656 am_cv_func_iconv=yes
5ba684e2 13657fi
81ecdfbb
RW
13658rm -f core conftest.err conftest.$ac_objext \
13659 conftest$ac_exeext conftest.$ac_ext
5ba684e2
NC
13660 if test "$am_cv_func_iconv" != yes; then
13661 am_save_LIBS="$LIBS"
13662 LIBS="$LIBS $LIBICONV"
81ecdfbb 13663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5ba684e2
NC
13664/* end confdefs.h. */
13665#include <stdlib.h>
13666#include <iconv.h>
13667int
13668main ()
13669{
13670iconv_t cd = iconv_open("","");
13671 iconv(cd,NULL,NULL,NULL,NULL);
13672 iconv_close(cd);
13673 ;
13674 return 0;
13675}
13676_ACEOF
81ecdfbb 13677if ac_fn_c_try_link "$LINENO"; then :
5ba684e2
NC
13678 am_cv_lib_iconv=yes
13679 am_cv_func_iconv=yes
5ba684e2 13680fi
81ecdfbb
RW
13681rm -f core conftest.err conftest.$ac_objext \
13682 conftest$ac_exeext conftest.$ac_ext
5ba684e2
NC
13683 LIBS="$am_save_LIBS"
13684 fi
13685
13686fi
81ecdfbb
RW
13687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13688$as_echo "$am_cv_func_iconv" >&6; }
5ba684e2
NC
13689 if test "$am_cv_func_iconv" = yes; then
13690
81ecdfbb 13691$as_echo "#define HAVE_ICONV 1" >>confdefs.h
5ba684e2
NC
13692
13693 fi
13694 if test "$am_cv_lib_iconv" = yes; then
81ecdfbb
RW
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13696$as_echo_n "checking how to link with libiconv... " >&6; }
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13698$as_echo "$LIBICONV" >&6; }
5ba684e2
NC
13699 else
13700 CPPFLAGS="$am_save_CPPFLAGS"
13701 LIBICONV=
13702 LTLIBICONV=
13703 fi
13704
13705
13706
13707 if test "$am_cv_func_iconv" = yes; then
81ecdfbb
RW
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13709$as_echo_n "checking for iconv declaration... " >&6; }
13710 if test "${am_cv_proto_iconv+set}" = set; then :
13711 $as_echo_n "(cached) " >&6
5ba684e2
NC
13712else
13713
81ecdfbb 13714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5ba684e2
NC
13715/* end confdefs.h. */
13716
13717#include <stdlib.h>
13718#include <iconv.h>
13719extern
13720#ifdef __cplusplus
13721"C"
13722#endif
13723#if defined(__STDC__) || defined(__cplusplus)
13724size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13725#else
13726size_t iconv();
13727#endif
13728
13729int
13730main ()
13731{
13732
13733 ;
13734 return 0;
13735}
13736_ACEOF
81ecdfbb 13737if ac_fn_c_try_compile "$LINENO"; then :
5ba684e2
NC
13738 am_cv_proto_iconv_arg1=""
13739else
81ecdfbb 13740 am_cv_proto_iconv_arg1="const"
5ba684e2 13741fi
81ecdfbb 13742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5ba684e2
NC
13743 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
13744fi
13745
13746 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
81ecdfbb 13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
5ba684e2 13748 }$am_cv_proto_iconv" >&5
81ecdfbb
RW
13749$as_echo "${ac_t:-
13750 }$am_cv_proto_iconv" >&6; }
5ba684e2
NC
13751
13752cat >>confdefs.h <<_ACEOF
13753#define ICONV_CONST $am_cv_proto_iconv_arg1
13754_ACEOF
13755
13756 fi
13757
13758
252b5132
RH
13759all_targets=false
13760BUILD_NLMCONV=
13761NLMCONV_DEFS=
13762BUILD_SRCONV=
13763BUILD_DLLTOOL=
13764DLLTOOL_DEFS=
7aad4c3d 13765DLLTOOL_DEFAULT=
252b5132 13766BUILD_WINDRES=
692ed3e7 13767BUILD_WINDMC=
252b5132
RH
13768BUILD_DLLWRAP=
13769BUILD_MISC=
1d97d67f 13770BUILD_INSTALL_MISC=
8b1e6df3 13771OBJDUMP_DEFS=
252b5132
RH
13772
13773for targ in $target $canon_targets
13774do
13775 if test "x$targ" = "xall"; then
13776 all_targets=true
13777 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13778 BUILD_SRCONV='$(SRCONV_PROG)'
13779 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
1d97d67f 13780 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
003bc0ba
NC
13781 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13782 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13783 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13784 if test -z "$DLLTOOL_DEFAULT"; then
13785 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
13786 fi
13787 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
13788 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
252b5132
RH
13789 else
13790 case $targ in
42ecbf5e 13791 i[3-7]86*-*-netware*)
252b5132
RH
13792 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13793 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
13794 ;;
13795 alpha*-*-netware*)
13796 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13797 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
13798 ;;
13799 powerpc*-*-netware*)
13800 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13801 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
13802 ;;
13803 sparc*-*-netware*)
13804 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13805 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
13806 ;;
13807 esac
13808 case $targ in
13809 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
13810 esac
13811 case $targ in
a8c548cb
NC
13812 arm-epoc-pe*)
13813 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
13814 if test -z "$DLLTOOL_DEFAULT"; then
13815 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
13816 fi
a8c548cb
NC
13817 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
13818 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 13819 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
a8c548cb 13820 ;;
361dff73 13821 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
7148cc28 13822 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
13823 if test -z "$DLLTOOL_DEFAULT"; then
13824 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
13825 fi
7148cc28
NC
13826 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
13827 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 13828 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7148cc28
NC
13829 ;;
13830 arm-*-pe*)
252b5132 13831 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
13832 if test -z "$DLLTOOL_DEFAULT"; then
13833 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
13834 fi
252b5132
RH
13835 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
13836 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 13837 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 13838 ;;
27a710e5 13839 thumb-*-pe*)
252b5132 13840 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
13841 if test -z "$DLLTOOL_DEFAULT"; then
13842 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
13843 fi
252b5132
RH
13844 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
13845 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 13846 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 13847 ;;
42037fe5 13848 x86_64-*-mingw*)
99ad8390 13849 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
13850 if test -z "$DLLTOOL_DEFAULT"; then
13851 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
13852 fi
99ad8390
NC
13853 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
13854 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 13855 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
99ad8390
NC
13856 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
13857 ;;
80c7c40a 13858 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132 13859 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
13860 if test -z "$DLLTOOL_DEFAULT"; then
13861 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
13862 fi
252b5132
RH
13863 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
13864 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 13865 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
252b5132 13866 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 13867 ;;
80c7c40a 13868 i[3-7]86-*-interix)
7a7b06ef 13869 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
7aad4c3d
L
13870 if test -z "$DLLTOOL_DEFAULT"; then
13871 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
13872 fi
7a7b06ef
ILT
13873 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
13874 ;;
f0660b73
NC
13875 powerpc*-aix5.[01])
13876 ;;
e5231592 13877 powerpc*-aix[5-9].*)
f0660b73
NC
13878 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
13879 ;;
e1d5b1e7 13880 powerpc*-*-pe* | powerpc*-*-cygwin*)
252b5132 13881 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
13882 if test -z "$DLLTOOL_DEFAULT"; then
13883 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
13884 fi
252b5132
RH
13885 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
13886 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 13887 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 13888 ;;
59678365 13889 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
1d97d67f 13890 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
669a9a2a 13891 ;;
e1d5b1e7 13892 sh*-*-pe)
8a0e0f38 13893 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
13894 if test -z "$DLLTOOL_DEFAULT"; then
13895 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
13896 fi
8a0e0f38
NC
13897 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
13898 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 13899 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 13900 ;;
cd14b966 13901 spu-*-*)
1d97d67f 13902 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
cd14b966 13903 ;;
e1d5b1e7 13904 mips*-*-pe)
8a0e0f38 13905 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
13906 if test -z "$DLLTOOL_DEFAULT"; then
13907 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
13908 fi
8a0e0f38
NC
13909 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
13910 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 13911 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 13912 ;;
27a710e5 13913 mcore-*-pe)
661016bb 13914 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
13915 if test -z "$DLLTOOL_DEFAULT"; then
13916 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
13917 fi
661016bb
NC
13918 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
13919 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 13920 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 13921 ;;
27a710e5 13922 mcore-*-elf)
661016bb 13923 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
13924 if test -z "$DLLTOOL_DEFAULT"; then
13925 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
13926 fi
661016bb 13927 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 13928 ;;
15ab5209
DB
13929 mep-*)
13930 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
13931 ;;
252b5132
RH
13932 esac
13933 fi
13934done
13935
7aad4c3d
L
13936DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
13937
42ecbf5e
DJ
13938if test "${with_windres+set}" = set; then
13939 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13940fi
13941
692ed3e7
NC
13942if test "${with_windmc+set}" = set; then
13943 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13944fi
13945
13946
42ecbf5e
DJ
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
1d97d67f 13958
42ecbf5e
DJ
13959cat >>confdefs.h <<_ACEOF
13960#define TARGET "${target}"
13961_ACEOF
13962
13963
13964targ=$target
13965. $srcdir/../bfd/config.bfd
13966if test "x$targ_underscore" = "xyes"; then
13967 UNDERSCORE=1
13968else
13969 UNDERSCORE=0
13970fi
13971
13972cat >>confdefs.h <<_ACEOF
13973#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
13974_ACEOF
13975
13976
13977# Emulation
52fbfb5d
AM
13978targ=$target
13979. ${srcdir}/configure.tgt
13980EMULATION=$targ_emul
13981EMULATION_VECTOR=$targ_emul_vector
42ecbf5e
DJ
13982
13983
13984
13985
108a6f8e
CD
13986# Required for html and install-html
13987
13988
13989
13990
31dd3154 13991
81ecdfbb 13992ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
da594c4a 13993
42ecbf5e
DJ
13994cat >confcache <<\_ACEOF
13995# This file is a shell script that caches the results of configure
13996# tests run on this system so they can be shared between configure
13997# scripts and configure runs, see configure's option --config-cache.
13998# It is not useful on other systems. If it contains results you don't
13999# want to keep, you may remove or edit it.
14000#
14001# config.status only pays attention to the cache file if you give it
14002# the --recheck option to rerun configure.
14003#
14004# `ac_cv_env_foo' variables (set or unset) will be overridden when
14005# loading this file, other *unset* `ac_cv_foo' will be assigned the
14006# following values.
14007
14008_ACEOF
14009
14010# The following way of writing the cache mishandles newlines in values,
14011# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14012# So, we kill variables containing newlines.
42ecbf5e
DJ
14013# Ultrix sh set writes to stderr and can't be redirected directly,
14014# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14015(
14016 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14017 eval ac_val=\$$ac_var
14018 case $ac_val in #(
14019 *${as_nl}*)
14020 case $ac_var in #(
14021 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14022$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14023 esac
14024 case $ac_var in #(
14025 _ | IFS | as_nl) ;; #(
14026 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14027 *) { eval $ac_var=; unset $ac_var;} ;;
14028 esac ;;
14029 esac
14030 done
14031
42ecbf5e 14032 (set) 2>&1 |
81ecdfbb
RW
14033 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14034 *${as_nl}ac_space=\ *)
14035 # `set' does not quote correctly, so add quotes: double-quote
14036 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
14037 sed -n \
14038 "s/'/'\\\\''/g;
14039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14040 ;; #(
42ecbf5e
DJ
14041 *)
14042 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14043 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 14044 ;;
81ecdfbb
RW
14045 esac |
14046 sort
14047) |
42ecbf5e 14048 sed '
81ecdfbb 14049 /^ac_cv_env_/b end
42ecbf5e 14050 t clear
81ecdfbb 14051 :clear
42ecbf5e
DJ
14052 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14053 t end
81ecdfbb
RW
14054 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14055 :end' >>confcache
14056if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14057 if test -w "$cache_file"; then
14058 test "x$cache_file" != "x/dev/null" &&
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14060$as_echo "$as_me: updating cache $cache_file" >&6;}
42ecbf5e
DJ
14061 cat confcache >$cache_file
14062 else
81ecdfbb
RW
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14064$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
14065 fi
14066fi
14067rm -f confcache
14068
14069test "x$prefix" = xNONE && prefix=$ac_default_prefix
14070# Let make expand exec_prefix.
14071test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14072
42ecbf5e
DJ
14073DEFS=-DHAVE_CONFIG_H
14074
14075ac_libobjs=
14076ac_ltlibobjs=
14077for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14078 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14079 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14080 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14081 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14082 # will be set to the directory where LIBOBJS objects are built.
14083 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14084 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
14085done
14086LIBOBJS=$ac_libobjs
14087
14088LTLIBOBJS=$ac_ltlibobjs
14089
14090
14091if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
14092 as_fn_error "conditional \"AMDEP\" was never defined.
14093Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e
DJ
14094fi
14095if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
14096 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14097Usually this means the macro was only invoked conditionally." "$LINENO" 5
14098fi
14099 if test -n "$EXEEXT"; then
14100 am__EXEEXT_TRUE=
14101 am__EXEEXT_FALSE='#'
14102else
14103 am__EXEEXT_TRUE='#'
14104 am__EXEEXT_FALSE=
42ecbf5e 14105fi
81ecdfbb 14106
42ecbf5e 14107if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
14108 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14109Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 14110fi
d5fbea21 14111if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
14112 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14113Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 14114fi
42ecbf5e
DJ
14115
14116: ${CONFIG_STATUS=./config.status}
81ecdfbb 14117ac_write_fail=0
42ecbf5e
DJ
14118ac_clean_files_save=$ac_clean_files
14119ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14120{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14121$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14122as_write_fail=0
14123cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
14124#! $SHELL
14125# Generated by $as_me.
14126# Run this file to recreate the current configuration.
14127# Compiler output produced by configure, useful for debugging
14128# configure, is in config.log if it exists.
14129
14130debug=false
14131ac_cs_recheck=false
14132ac_cs_silent=false
252b5132 14133
81ecdfbb
RW
14134SHELL=\${CONFIG_SHELL-$SHELL}
14135export SHELL
14136_ASEOF
14137cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14138## -------------------- ##
14139## M4sh Initialization. ##
14140## -------------------- ##
252b5132 14141
81ecdfbb
RW
14142# Be more Bourne compatible
14143DUALCASE=1; export DUALCASE # for MKS sh
14144if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
14145 emulate sh
14146 NULLCMD=:
81ecdfbb 14147 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
14148 # is contrary to our usage. Disable this feature.
14149 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14150 setopt NO_GLOB_SUBST
14151else
14152 case `(set -o) 2>/dev/null` in #(
14153 *posix*) :
14154 set -o posix ;; #(
14155 *) :
14156 ;;
14157esac
42ecbf5e 14158fi
252b5132 14159
81ecdfbb
RW
14160
14161as_nl='
14162'
14163export as_nl
14164# Printing a long string crashes Solaris 7 /usr/bin/printf.
14165as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14166as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14167as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14168# Prefer a ksh shell builtin over an external printf program on Solaris,
14169# but without wasting forks for bash or zsh.
14170if test -z "$BASH_VERSION$ZSH_VERSION" \
14171 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14172 as_echo='print -r --'
14173 as_echo_n='print -rn --'
14174elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14175 as_echo='printf %s\n'
14176 as_echo_n='printf %s'
14177else
14178 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14179 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14180 as_echo_n='/usr/ucb/echo -n'
14181 else
14182 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14183 as_echo_n_body='eval
14184 arg=$1;
14185 case $arg in #(
14186 *"$as_nl"*)
14187 expr "X$arg" : "X\\(.*\\)$as_nl";
14188 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14189 esac;
14190 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14191 '
14192 export as_echo_n_body
14193 as_echo_n='sh -c $as_echo_n_body as_echo'
14194 fi
14195 export as_echo_body
14196 as_echo='sh -c $as_echo_body as_echo'
14197fi
14198
14199# The user is always right.
14200if test "${PATH_SEPARATOR+set}" != set; then
14201 PATH_SEPARATOR=:
14202 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14203 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14204 PATH_SEPARATOR=';'
14205 }
42ecbf5e 14206fi
252b5132
RH
14207
14208
81ecdfbb
RW
14209# IFS
14210# We need space, tab and new line, in precisely that order. Quoting is
14211# there to prevent editors from complaining about space-tab.
14212# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14213# splitting by setting IFS to empty value.)
14214IFS=" "" $as_nl"
14215
14216# Find who we are. Look in the path if we contain no directory separator.
14217case $0 in #((
14218 *[\\/]* ) as_myself=$0 ;;
14219 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14220for as_dir in $PATH
14221do
14222 IFS=$as_save_IFS
14223 test -z "$as_dir" && as_dir=.
14224 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14225 done
14226IFS=$as_save_IFS
14227
14228 ;;
14229esac
14230# We did not find ourselves, most probably we were run as `sh COMMAND'
14231# in which case we are not to be found in the path.
14232if test "x$as_myself" = x; then
14233 as_myself=$0
14234fi
14235if test ! -f "$as_myself"; then
14236 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14237 exit 1
14238fi
14239
14240# Unset variables that we do not need and which cause bugs (e.g. in
14241# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14242# suppresses any "Segmentation fault" message there. '((' could
14243# trigger a bug in pdksh 5.2.14.
14244for as_var in BASH_ENV ENV MAIL MAILPATH
14245do eval test x\${$as_var+set} = xset \
14246 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14247done
42ecbf5e
DJ
14248PS1='$ '
14249PS2='> '
14250PS4='+ '
252b5132 14251
42ecbf5e 14252# NLS nuisances.
81ecdfbb
RW
14253LC_ALL=C
14254export LC_ALL
14255LANGUAGE=C
14256export LANGUAGE
14257
14258# CDPATH.
14259(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14260
14261
14262# as_fn_error ERROR [LINENO LOG_FD]
14263# ---------------------------------
14264# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14265# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14266# script with status $?, using 1 if that was 0.
14267as_fn_error ()
14268{
14269 as_status=$?; test $as_status -eq 0 && as_status=1
14270 if test "$3"; then
14271 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14272 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
42ecbf5e 14273 fi
81ecdfbb
RW
14274 $as_echo "$as_me: error: $1" >&2
14275 as_fn_exit $as_status
14276} # as_fn_error
14277
14278
14279# as_fn_set_status STATUS
14280# -----------------------
14281# Set $? to STATUS, without forking.
14282as_fn_set_status ()
14283{
14284 return $1
14285} # as_fn_set_status
14286
14287# as_fn_exit STATUS
14288# -----------------
14289# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14290as_fn_exit ()
14291{
14292 set +e
14293 as_fn_set_status $1
14294 exit $1
14295} # as_fn_exit
14296
14297# as_fn_unset VAR
14298# ---------------
14299# Portably unset VAR.
14300as_fn_unset ()
14301{
14302 { eval $1=; unset $1;}
14303}
14304as_unset=as_fn_unset
14305# as_fn_append VAR VALUE
14306# ----------------------
14307# Append the text in VALUE to the end of the definition contained in VAR. Take
14308# advantage of any shell optimizations that allow amortized linear growth over
14309# repeated appends, instead of the typical quadratic growth present in naive
14310# implementations.
14311if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14312 eval 'as_fn_append ()
14313 {
14314 eval $1+=\$2
14315 }'
14316else
14317 as_fn_append ()
14318 {
14319 eval $1=\$$1\$2
14320 }
14321fi # as_fn_append
14322
14323# as_fn_arith ARG...
14324# ------------------
14325# Perform arithmetic evaluation on the ARGs, and store the result in the
14326# global $as_val. Take advantage of shells that can avoid forks. The arguments
14327# must be portable across $(()) and expr.
14328if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14329 eval 'as_fn_arith ()
14330 {
14331 as_val=$(( $* ))
14332 }'
14333else
14334 as_fn_arith ()
14335 {
14336 as_val=`expr "$@" || test $? -eq 1`
14337 }
14338fi # as_fn_arith
14339
252b5132 14340
81ecdfbb
RW
14341if expr a : '\(a\)' >/dev/null 2>&1 &&
14342 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
14343 as_expr=expr
14344else
14345 as_expr=false
14346fi
252b5132 14347
81ecdfbb 14348if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
14349 as_basename=basename
14350else
14351 as_basename=false
14352fi
252b5132 14353
81ecdfbb
RW
14354if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14355 as_dirname=dirname
14356else
14357 as_dirname=false
14358fi
8b1e6df3 14359
81ecdfbb 14360as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
14361$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14362 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14363 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14364$as_echo X/"$0" |
14365 sed '/^.*\/\([^/][^/]*\)\/*$/{
14366 s//\1/
14367 q
14368 }
14369 /^X\/\(\/\/\)$/{
14370 s//\1/
14371 q
14372 }
14373 /^X\/\(\/\).*/{
14374 s//\1/
14375 q
14376 }
14377 s/.*/./; q'`
0218d1e4 14378
42ecbf5e
DJ
14379# Avoid depending upon Character Ranges.
14380as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14381as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14382as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14383as_cr_digits='0123456789'
14384as_cr_alnum=$as_cr_Letters$as_cr_digits
252b5132 14385
81ecdfbb
RW
14386ECHO_C= ECHO_N= ECHO_T=
14387case `echo -n x` in #(((((
14388-n*)
14389 case `echo 'xy\c'` in
14390 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14391 xy) ECHO_C='\c';;
14392 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14393 ECHO_T=' ';;
14394 esac;;
14395*)
14396 ECHO_N='-n';;
42ecbf5e 14397esac
eb1e0e80 14398
81ecdfbb
RW
14399rm -f conf$$ conf$$.exe conf$$.file
14400if test -d conf$$.dir; then
14401 rm -f conf$$.dir/conf$$.file
d15b04bd 14402else
81ecdfbb
RW
14403 rm -f conf$$.dir
14404 mkdir conf$$.dir 2>/dev/null
42ecbf5e 14405fi
81ecdfbb
RW
14406if (echo >conf$$.file) 2>/dev/null; then
14407 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 14408 as_ln_s='ln -s'
81ecdfbb
RW
14409 # ... but there are two gotchas:
14410 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14411 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14412 # In both cases, we have to default to `cp -p'.
14413 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14414 as_ln_s='cp -p'
14415 elif ln conf$$.file conf$$ 2>/dev/null; then
14416 as_ln_s=ln
14417 else
14418 as_ln_s='cp -p'
252b5132 14419 fi
42ecbf5e
DJ
14420else
14421 as_ln_s='cp -p'
252b5132 14422fi
81ecdfbb
RW
14423rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14424rmdir conf$$.dir 2>/dev/null
14425
14426
14427# as_fn_mkdir_p
14428# -------------
14429# Create "$as_dir" as a directory, including parents if necessary.
14430as_fn_mkdir_p ()
14431{
14432
14433 case $as_dir in #(
14434 -*) as_dir=./$as_dir;;
14435 esac
14436 test -d "$as_dir" || eval $as_mkdir_p || {
14437 as_dirs=
14438 while :; do
14439 case $as_dir in #(
14440 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14441 *) as_qdir=$as_dir;;
14442 esac
14443 as_dirs="'$as_qdir' $as_dirs"
14444 as_dir=`$as_dirname -- "$as_dir" ||
14445$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14446 X"$as_dir" : 'X\(//\)[^/]' \| \
14447 X"$as_dir" : 'X\(//\)$' \| \
14448 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14449$as_echo X"$as_dir" |
14450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14451 s//\1/
14452 q
14453 }
14454 /^X\(\/\/\)[^/].*/{
14455 s//\1/
14456 q
14457 }
14458 /^X\(\/\/\)$/{
14459 s//\1/
14460 q
14461 }
14462 /^X\(\/\).*/{
14463 s//\1/
14464 q
14465 }
14466 s/.*/./; q'`
14467 test -d "$as_dir" && break
14468 done
14469 test -z "$as_dirs" || eval "mkdir $as_dirs"
14470 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14471
252b5132 14472
81ecdfbb 14473} # as_fn_mkdir_p
42ecbf5e 14474if mkdir -p . 2>/dev/null; then
81ecdfbb 14475 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
14476else
14477 test -d ./-p && rmdir ./-p
14478 as_mkdir_p=false
14479fi
81ecdfbb
RW
14480
14481if test -x / >/dev/null 2>&1; then
14482 as_test_x='test -x'
14483else
14484 if ls -dL / >/dev/null 2>&1; then
14485 as_ls_L_option=L
14486 else
14487 as_ls_L_option=
14488 fi
14489 as_test_x='
14490 eval sh -c '\''
14491 if test -d "$1"; then
14492 test -d "$1/.";
14493 else
14494 case $1 in #(
14495 -*)set "./$1";;
14496 esac;
14497 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14498 ???[sx]*):;;*)false;;esac;fi
14499 '\'' sh
14500 '
14501fi
14502as_executable_p=$as_test_x
252b5132 14503
42ecbf5e
DJ
14504# Sed expression to map a string onto a valid CPP name.
14505as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14506
14507# Sed expression to map a string onto a valid variable name.
14508as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14509
14510
42ecbf5e 14511exec 6>&1
81ecdfbb
RW
14512## ----------------------------------- ##
14513## Main body of $CONFIG_STATUS script. ##
14514## ----------------------------------- ##
14515_ASEOF
14516test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
42ecbf5e 14517
81ecdfbb
RW
14518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14519# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 14520# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14521# values after options handling.
14522ac_log="
42ecbf5e 14523This file was extended by $as_me, which was
81ecdfbb 14524generated by GNU Autoconf 2.64. Invocation command line was
42ecbf5e
DJ
14525
14526 CONFIG_FILES = $CONFIG_FILES
14527 CONFIG_HEADERS = $CONFIG_HEADERS
14528 CONFIG_LINKS = $CONFIG_LINKS
14529 CONFIG_COMMANDS = $CONFIG_COMMANDS
14530 $ $0 $@
14531
81ecdfbb
RW
14532on `(hostname || uname -n) 2>/dev/null | sed 1q`
14533"
14534
42ecbf5e
DJ
14535_ACEOF
14536
81ecdfbb
RW
14537case $ac_config_files in *"
14538"*) set x $ac_config_files; shift; ac_config_files=$*;;
14539esac
252b5132 14540
81ecdfbb
RW
14541case $ac_config_headers in *"
14542"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14543esac
e5a52504
MM
14544
14545
81ecdfbb
RW
14546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14547# Files that config.status was made for.
14548config_files="$ac_config_files"
14549config_headers="$ac_config_headers"
14550config_commands="$ac_config_commands"
d15b04bd 14551
81ecdfbb 14552_ACEOF
42ecbf5e 14553
81ecdfbb 14554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 14555ac_cs_usage="\
81ecdfbb
RW
14556\`$as_me' instantiates files and other configuration actions
14557from templates according to the current configuration. Unless the files
14558and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 14559
81ecdfbb 14560Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
14561
14562 -h, --help print this help, then exit
81ecdfbb
RW
14563 -V, --version print version number and configuration settings, then exit
14564 -q, --quiet, --silent
14565 do not print progress messages
42ecbf5e
DJ
14566 -d, --debug don't remove temporary files
14567 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14568 --file=FILE[:TEMPLATE]
14569 instantiate the configuration file FILE
14570 --header=FILE[:TEMPLATE]
14571 instantiate the configuration header FILE
42ecbf5e
DJ
14572
14573Configuration files:
14574$config_files
14575
14576Configuration headers:
14577$config_headers
14578
14579Configuration commands:
14580$config_commands
14581
81ecdfbb 14582Report bugs to the package provider."
42ecbf5e 14583
81ecdfbb
RW
14584_ACEOF
14585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e
DJ
14586ac_cs_version="\\
14587config.status
81ecdfbb
RW
14588configured by $0, generated by GNU Autoconf 2.64,
14589 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42ecbf5e 14590
81ecdfbb 14591Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
14592This config.status script is free software; the Free Software Foundation
14593gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14594
14595ac_pwd='$ac_pwd'
14596srcdir='$srcdir'
14597INSTALL='$INSTALL'
14598MKDIR_P='$MKDIR_P'
14599AWK='$AWK'
14600test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
14601_ACEOF
14602
81ecdfbb
RW
14603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14604# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
14605ac_need_defaults=:
14606while test $# != 0
14607do
14608 case $1 in
14609 --*=*)
81ecdfbb
RW
14610 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14611 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e
DJ
14612 ac_shift=:
14613 ;;
81ecdfbb 14614 *)
42ecbf5e
DJ
14615 ac_option=$1
14616 ac_optarg=$2
14617 ac_shift=shift
14618 ;;
42ecbf5e
DJ
14619 esac
14620
14621 case $ac_option in
14622 # Handling of the options.
42ecbf5e
DJ
14623 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14624 ac_cs_recheck=: ;;
81ecdfbb
RW
14625 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14626 $as_echo "$ac_cs_version"; exit ;;
14627 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
14628 debug=: ;;
14629 --file | --fil | --fi | --f )
14630 $ac_shift
81ecdfbb
RW
14631 case $ac_optarg in
14632 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14633 esac
14634 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
14635 ac_need_defaults=false;;
14636 --header | --heade | --head | --hea )
14637 $ac_shift
81ecdfbb
RW
14638 case $ac_optarg in
14639 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14640 esac
14641 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 14642 ac_need_defaults=false;;
81ecdfbb
RW
14643 --he | --h)
14644 # Conflict between --help and --header
14645 as_fn_error "ambiguous option: \`$1'
14646Try \`$0 --help' for more information.";;
14647 --help | --hel | -h )
14648 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
14649 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14650 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14651 ac_cs_silent=: ;;
14652
14653 # This is an error.
81ecdfbb
RW
14654 -*) as_fn_error "unrecognized option: \`$1'
14655Try \`$0 --help' for more information." ;;
42ecbf5e 14656
81ecdfbb
RW
14657 *) as_fn_append ac_config_targets " $1"
14658 ac_need_defaults=false ;;
42ecbf5e
DJ
14659
14660 esac
14661 shift
14662done
14663
14664ac_configure_extra_args=
14665
14666if $ac_cs_silent; then
14667 exec 6>/dev/null
14668 ac_configure_extra_args="$ac_configure_extra_args --silent"
14669fi
14670
14671_ACEOF
81ecdfbb 14672cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 14673if \$ac_cs_recheck; then
81ecdfbb
RW
14674 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14675 shift
14676 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14677 CONFIG_SHELL='$SHELL'
14678 export CONFIG_SHELL
14679 exec "\$@"
42ecbf5e
DJ
14680fi
14681
14682_ACEOF
81ecdfbb
RW
14683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14684exec 5>>config.log
14685{
14686 echo
14687 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14688## Running $as_me. ##
14689_ASBOX
14690 $as_echo "$ac_log"
14691} >&5
42ecbf5e 14692
81ecdfbb
RW
14693_ACEOF
14694cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d15b04bd 14695#
81ecdfbb 14696# INIT-COMMANDS
d15b04bd 14697#
42ecbf5e 14698AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
14699
14700
14701# The HP-UX ksh and POSIX shell print the target directory to stdout
14702# if CDPATH is set.
14703(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14704
14705sed_quote_subst='$sed_quote_subst'
14706double_quote_subst='$double_quote_subst'
14707delay_variable_subst='$delay_variable_subst'
3725885a
RW
14708macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14709macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14710enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14711enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14712pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14713enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14714SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14715ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14716host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14717host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14718host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14719build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14720build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14721build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14722SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14723Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14724GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14725EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14726FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14727LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14728NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14729LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14730max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14731ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14732exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14733lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14734lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14735lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14736reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14737reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14738OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14739deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14740file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14741AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14742AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14743STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14744RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14745old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14746old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14747old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14748lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14749CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14750CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14751compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14752GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14753lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14754lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14755lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14756lt_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"`'
14757objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14758MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14759lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14760lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14761lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14762lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14763lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14764need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14765DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14766NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14767LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14768OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14769OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14770libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14771shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14772extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14773archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14774enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14775export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14776whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14777compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14778old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14779old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14780archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14781archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14782module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14783module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14784with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14785allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14786no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14787hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14788hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14789hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14790hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14791hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14792hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14793hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14794hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14795inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14796link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14797fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14798always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14799export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14800exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14801include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14802prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14803file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14804variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14805need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14806need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14807version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14808runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14809shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14810shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14811libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14812library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14813soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14814install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14815postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14816postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14817finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14818finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14819hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14820sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14821sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14822hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14823enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14824enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14825enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14826old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14827striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
14828
14829LTCC='$LTCC'
14830LTCFLAGS='$LTCFLAGS'
14831compiler='$compiler_DEFAULT'
14832
3725885a
RW
14833# A function that is used when there is no print builtin or printf.
14834func_fallback_echo ()
14835{
14836 eval 'cat <<_LTECHO_EOF
14837\$1
14838_LTECHO_EOF'
14839}
14840
d7040cdb 14841# Quote evaled strings.
3725885a
RW
14842for var in SHELL \
14843ECHO \
14844SED \
d7040cdb
SE
14845GREP \
14846EGREP \
14847FGREP \
14848LD \
14849NM \
14850LN_S \
14851lt_SP2NL \
14852lt_NL2SP \
14853reload_flag \
718a6fd8 14854OBJDUMP \
d7040cdb
SE
14855deplibs_check_method \
14856file_magic_cmd \
14857AR \
14858AR_FLAGS \
14859STRIP \
14860RANLIB \
14861CC \
14862CFLAGS \
14863compiler \
14864lt_cv_sys_global_symbol_pipe \
14865lt_cv_sys_global_symbol_to_cdecl \
14866lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 14867lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
14868lt_prog_compiler_no_builtin_flag \
14869lt_prog_compiler_wl \
14870lt_prog_compiler_pic \
14871lt_prog_compiler_static \
14872lt_cv_prog_compiler_c_o \
14873need_locks \
718a6fd8
SE
14874DSYMUTIL \
14875NMEDIT \
14876LIPO \
14877OTOOL \
14878OTOOL64 \
d7040cdb
SE
14879shrext_cmds \
14880export_dynamic_flag_spec \
14881whole_archive_flag_spec \
14882compiler_needs_object \
14883with_gnu_ld \
14884allow_undefined_flag \
14885no_undefined_flag \
14886hardcode_libdir_flag_spec \
14887hardcode_libdir_flag_spec_ld \
14888hardcode_libdir_separator \
14889fix_srcfile_path \
14890exclude_expsyms \
14891include_expsyms \
14892file_list_spec \
14893variables_saved_for_relink \
14894libname_spec \
14895library_names_spec \
14896soname_spec \
3725885a 14897install_override_mode \
d7040cdb
SE
14898finish_eval \
14899old_striplib \
14900striplib; do
3725885a 14901 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 14902 *[\\\\\\\`\\"\\\$]*)
3725885a 14903 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
14904 ;;
14905 *)
14906 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14907 ;;
14908 esac
14909done
14910
14911# Double-quote double-evaled strings.
14912for var in reload_cmds \
14913old_postinstall_cmds \
14914old_postuninstall_cmds \
14915old_archive_cmds \
14916extract_expsyms_cmds \
14917old_archive_from_new_cmds \
14918old_archive_from_expsyms_cmds \
14919archive_cmds \
14920archive_expsym_cmds \
14921module_cmds \
14922module_expsym_cmds \
14923export_symbols_cmds \
14924prelink_cmds \
14925postinstall_cmds \
14926postuninstall_cmds \
14927finish_cmds \
14928sys_lib_search_path_spec \
14929sys_lib_dlsearch_path_spec; do
3725885a 14930 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 14931 *[\\\\\\\`\\"\\\$]*)
3725885a 14932 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
14933 ;;
14934 *)
14935 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14936 ;;
14937 esac
14938done
14939
d7040cdb
SE
14940ac_aux_dir='$ac_aux_dir'
14941xsi_shell='$xsi_shell'
14942lt_shell_append='$lt_shell_append'
14943
14944# See if we are running on zsh, and set the options which allow our
14945# commands through without removal of \ escapes INIT.
14946if test -n "\${ZSH_VERSION+set}" ; then
14947 setopt NO_GLOB_SUBST
14948fi
14949
14950
14951 PACKAGE='$PACKAGE'
14952 VERSION='$VERSION'
14953 TIMESTAMP='$TIMESTAMP'
14954 RM='$RM'
14955 ofile='$ofile'
14956
14957
14958
20e95c23
DJ
14959# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14960 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14961 # from automake.
14962 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14963 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14964 LINGUAS="${LINGUAS-%UNSET%}"
14965
42ecbf5e
DJ
14966
14967_ACEOF
14968
81ecdfbb 14969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 14970
81ecdfbb 14971# Handling of arguments.
42ecbf5e 14972for ac_config_target in $ac_config_targets
252b5132 14973do
81ecdfbb
RW
14974 case $ac_config_target in
14975 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14976 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14977 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14978 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14979 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14980 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14981 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14982
14983 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
d15b04bd 14984 esac
252b5132
RH
14985done
14986
81ecdfbb 14987
42ecbf5e
DJ
14988# If the user did not use the arguments to specify the items to instantiate,
14989# then the envvar interface is used. Set only those that are not.
14990# We use the long form for the default assignment because of an extremely
14991# bizarre bug on SunOS 4.1.3.
14992if $ac_need_defaults; then
14993 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14994 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14995 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14996fi
14997
14998# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14999# simply because there is no reason against having it here, and in addition,
42ecbf5e 15000# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15001# Hook for its removal unless debugging.
15002# Note that there is a small window in which the directory will not be cleaned:
15003# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
15004$debug ||
15005{
81ecdfbb
RW
15006 tmp=
15007 trap 'exit_status=$?
15008 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15009' 0
15010 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 15011}
42ecbf5e 15012# Create a (secure) tmp directory for tmp files.
e5a52504 15013
42ecbf5e 15014{
81ecdfbb 15015 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42ecbf5e
DJ
15016 test -n "$tmp" && test -d "$tmp"
15017} ||
15018{
81ecdfbb
RW
15019 tmp=./conf$$-$RANDOM
15020 (umask 077 && mkdir "$tmp")
15021} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15022
15023# Set up the scripts for CONFIG_FILES section.
15024# No need to generate them if there are no CONFIG_FILES.
15025# This happens for instance with `./config.status config.h'.
15026if test -n "$CONFIG_FILES"; then
15027
15028
15029ac_cr=`echo X | tr X '\015'`
15030# On cygwin, bash can eat \r inside `` if the user requested igncr.
15031# But we know of no other shell where ac_cr would be empty at this
15032# point, so we can use a bashism as a fallback.
15033if test "x$ac_cr" = x; then
15034 eval ac_cr=\$\'\\r\'
15035fi
15036ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15037if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15038 ac_cs_awk_cr='\r'
15039else
15040 ac_cs_awk_cr=$ac_cr
15041fi
15042
15043echo 'BEGIN {' >"$tmp/subs1.awk" &&
15044_ACEOF
15045
15046
15047{
15048 echo "cat >conf$$subs.awk <<_ACEOF" &&
15049 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15050 echo "_ACEOF"
15051} >conf$$subs.sh ||
15052 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15053ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15054ac_delim='%!_!# '
15055for ac_last_try in false false false false false :; do
15056 . ./conf$$subs.sh ||
15057 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15058
15059 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15060 if test $ac_delim_n = $ac_delim_num; then
15061 break
15062 elif $ac_last_try; then
15063 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15064 else
15065 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15066 fi
15067done
15068rm -f conf$$subs.sh
15069
15070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15071cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15072_ACEOF
15073sed -n '
15074h
15075s/^/S["/; s/!.*/"]=/
15076p
15077g
15078s/^[^!]*!//
15079:repl
15080t repl
15081s/'"$ac_delim"'$//
15082t delim
15083:nl
15084h
15085s/\(.\{148\}\).*/\1/
15086t more1
15087s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15088p
15089n
15090b repl
15091:more1
15092s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15093p
15094g
15095s/.\{148\}//
15096t nl
15097:delim
15098h
15099s/\(.\{148\}\).*/\1/
15100t more2
15101s/["\\]/\\&/g; s/^/"/; s/$/"/
15102p
15103b
15104:more2
15105s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15106p
15107g
15108s/.\{148\}//
15109t delim
15110' <conf$$subs.awk | sed '
15111/^[^""]/{
15112 N
15113 s/\n//
15114}
15115' >>$CONFIG_STATUS || ac_write_fail=1
15116rm -f conf$$subs.awk
15117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15118_ACAWK
15119cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15120 for (key in S) S_is_set[key] = 1
15121 FS = "\a"
15122
15123}
42ecbf5e 15124{
81ecdfbb
RW
15125 line = $ 0
15126 nfields = split(line, field, "@")
15127 substed = 0
15128 len = length(field[1])
15129 for (i = 2; i < nfields; i++) {
15130 key = field[i]
15131 keylen = length(key)
15132 if (S_is_set[key]) {
15133 value = S[key]
15134 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15135 len += length(value) + length(field[++i])
15136 substed = 1
15137 } else
15138 len += 1 + keylen
15139 }
15140
15141 print line
42ecbf5e
DJ
15142}
15143
81ecdfbb
RW
15144_ACAWK
15145_ACEOF
15146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15147if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15148 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15149else
15150 cat
15151fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15152 || as_fn_error "could not setup config files machinery" "$LINENO" 5
42ecbf5e
DJ
15153_ACEOF
15154
81ecdfbb
RW
15155# VPATH may cause trouble with some makes, so we remove $(srcdir),
15156# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15157# trailing colons and then remove the whole line if VPATH becomes empty
15158# (actually we leave an empty line to preserve line numbers).
15159if test "x$srcdir" = x.; then
15160 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15161s/:*\$(srcdir):*/:/
15162s/:*\${srcdir}:*/:/
15163s/:*@srcdir@:*/:/
15164s/^\([^=]*=[ ]*\):*/\1/
15165s/:*$//
15166s/^[^=]*=[ ]*$//
15167}'
15168fi
e5a52504 15169
81ecdfbb
RW
15170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15171fi # test -n "$CONFIG_FILES"
252b5132 15172
81ecdfbb
RW
15173# Set up the scripts for CONFIG_HEADERS section.
15174# No need to generate them if there are no CONFIG_HEADERS.
15175# This happens for instance with `./config.status Makefile'.
15176if test -n "$CONFIG_HEADERS"; then
15177cat >"$tmp/defines.awk" <<\_ACAWK ||
15178BEGIN {
42ecbf5e
DJ
15179_ACEOF
15180
81ecdfbb
RW
15181# Transform confdefs.h into an awk script `defines.awk', embedded as
15182# here-document in config.status, that substitutes the proper values into
15183# config.h.in to produce config.h.
15184
15185# Create a delimiter string that does not exist in confdefs.h, to ease
15186# handling of long lines.
15187ac_delim='%!_!# '
15188for ac_last_try in false false :; do
15189 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15190 if test -z "$ac_t"; then
15191 break
15192 elif $ac_last_try; then
15193 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15194 else
15195 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
252b5132 15196 fi
81ecdfbb 15197done
252b5132 15198
81ecdfbb
RW
15199# For the awk script, D is an array of macro values keyed by name,
15200# likewise P contains macro parameters if any. Preserve backslash
15201# newline sequences.
15202
15203ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15204sed -n '
15205s/.\{148\}/&'"$ac_delim"'/g
15206t rset
15207:rset
15208s/^[ ]*#[ ]*define[ ][ ]*/ /
15209t def
15210d
15211:def
15212s/\\$//
15213t bsnl
15214s/["\\]/\\&/g
15215s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15216D["\1"]=" \3"/p
15217s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15218d
15219:bsnl
15220s/["\\]/\\&/g
15221s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15222D["\1"]=" \3\\\\\\n"\\/p
15223t cont
15224s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15225t cont
15226d
15227:cont
15228n
15229s/.\{148\}/&'"$ac_delim"'/g
15230t clear
15231:clear
15232s/\\$//
15233t bsnlc
15234s/["\\]/\\&/g; s/^/"/; s/$/"/p
15235d
15236:bsnlc
15237s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15238b cont
15239' <confdefs.h | sed '
15240s/'"$ac_delim"'/"\\\
15241"/g' >>$CONFIG_STATUS || ac_write_fail=1
15242
15243cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15244 for (key in D) D_is_set[key] = 1
15245 FS = "\a"
15246}
15247/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15248 line = \$ 0
15249 split(line, arg, " ")
15250 if (arg[1] == "#") {
15251 defundef = arg[2]
15252 mac1 = arg[3]
15253 } else {
15254 defundef = substr(arg[1], 2)
15255 mac1 = arg[2]
15256 }
15257 split(mac1, mac2, "(") #)
15258 macro = mac2[1]
15259 prefix = substr(line, 1, index(line, defundef) - 1)
15260 if (D_is_set[macro]) {
15261 # Preserve the white space surrounding the "#".
15262 print prefix "define", macro P[macro] D[macro]
15263 next
15264 } else {
15265 # Replace #undef with comments. This is necessary, for example,
15266 # in the case of _POSIX_SOURCE, which is predefined and required
15267 # on some systems where configure will not decide to define it.
15268 if (defundef == "undef") {
15269 print "/*", prefix defundef, macro, "*/"
15270 next
15271 }
15272 }
15273}
15274{ print }
15275_ACAWK
42ecbf5e 15276_ACEOF
81ecdfbb
RW
15277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15278 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15279fi # test -n "$CONFIG_HEADERS"
15280
15281
15282eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15283shift
15284for ac_tag
15285do
15286 case $ac_tag in
15287 :[FHLC]) ac_mode=$ac_tag; continue;;
15288 esac
15289 case $ac_mode$ac_tag in
15290 :[FHL]*:*);;
15291 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15292 :[FH]-) ac_tag=-:-;;
15293 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15294 esac
15295 ac_save_IFS=$IFS
15296 IFS=:
15297 set x $ac_tag
15298 IFS=$ac_save_IFS
15299 shift
15300 ac_file=$1
15301 shift
15302
15303 case $ac_mode in
15304 :L) ac_source=$1;;
15305 :[FH])
15306 ac_file_inputs=
15307 for ac_f
15308 do
15309 case $ac_f in
15310 -) ac_f="$tmp/stdin";;
15311 *) # Look for the file first in the build tree, then in the source tree
15312 # (if the path is not absolute). The absolute path cannot be DOS-style,
15313 # because $ac_f cannot contain `:'.
15314 test -f "$ac_f" ||
15315 case $ac_f in
15316 [\\/$]*) false;;
15317 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15318 esac ||
15319 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15320 esac
15321 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15322 as_fn_append ac_file_inputs " '$ac_f'"
15323 done
15324
15325 # Let's still pretend it is `configure' which instantiates (i.e., don't
15326 # use $as_me), people would be surprised to read:
15327 # /* config.h. Generated by config.status. */
15328 configure_input='Generated from '`
15329 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15330 `' by configure.'
15331 if test x"$ac_file" != x-; then
15332 configure_input="$ac_file. $configure_input"
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15334$as_echo "$as_me: creating $ac_file" >&6;}
15335 fi
15336 # Neutralize special characters interpreted by sed in replacement strings.
15337 case $configure_input in #(
15338 *\&* | *\|* | *\\* )
15339 ac_sed_conf_input=`$as_echo "$configure_input" |
15340 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15341 *) ac_sed_conf_input=$configure_input;;
15342 esac
15343
15344 case $ac_tag in
15345 *:-:* | *:-) cat >"$tmp/stdin" \
15346 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15347 esac
15348 ;;
252b5132
RH
15349 esac
15350
81ecdfbb 15351 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
15352$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15353 X"$ac_file" : 'X\(//\)[^/]' \| \
15354 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15355 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15356$as_echo X"$ac_file" |
15357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15358 s//\1/
15359 q
15360 }
15361 /^X\(\/\/\)[^/].*/{
15362 s//\1/
15363 q
15364 }
15365 /^X\(\/\/\)$/{
15366 s//\1/
15367 q
15368 }
15369 /^X\(\/\).*/{
15370 s//\1/
15371 q
15372 }
15373 s/.*/./; q'`
15374 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e 15375 ac_builddir=.
e5a52504 15376
81ecdfbb
RW
15377case "$ac_dir" in
15378.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15379*)
15380 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15381 # A ".." for each directory in $ac_dir_suffix.
15382 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15383 case $ac_top_builddir_sub in
15384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15386 esac ;;
15387esac
15388ac_abs_top_builddir=$ac_pwd
15389ac_abs_builddir=$ac_pwd$ac_dir_suffix
15390# for backward compatibility:
15391ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
15392
15393case $srcdir in
81ecdfbb 15394 .) # We are building in place.
42ecbf5e 15395 ac_srcdir=.
81ecdfbb
RW
15396 ac_top_srcdir=$ac_top_builddir_sub
15397 ac_abs_top_srcdir=$ac_pwd ;;
15398 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 15399 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15400 ac_top_srcdir=$srcdir
15401 ac_abs_top_srcdir=$srcdir ;;
15402 *) # Relative name.
15403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15404 ac_top_srcdir=$ac_top_build_prefix$srcdir
15405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 15406esac
81ecdfbb 15407ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15408
e5a52504 15409
81ecdfbb
RW
15410 case $ac_mode in
15411 :F)
15412 #
15413 # CONFIG_FILE
15414 #
42ecbf5e
DJ
15415
15416 case $INSTALL in
15417 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
15418 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15419 esac
15420 ac_MKDIR_P=$MKDIR_P
15421 case $MKDIR_P in
15422 [\\/$]* | ?:[\\/]* ) ;;
15423 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 15424 esac
81ecdfbb 15425_ACEOF
e5a52504 15426
81ecdfbb
RW
15427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15428# If the template does not know about datarootdir, expand it.
15429# FIXME: This hack should be removed a few years after 2.60.
15430ac_datarootdir_hack=; ac_datarootdir_seen=
15431ac_sed_dataroot='
15432/datarootdir/ {
15433 p
15434 q
15435}
15436/@datadir@/p
15437/@docdir@/p
15438/@infodir@/p
15439/@localedir@/p
15440/@mandir@/p'
15441case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15442*datarootdir*) ac_datarootdir_seen=yes;;
15443*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15445$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15446_ACEOF
15447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15448 ac_datarootdir_hack='
15449 s&@datadir@&$datadir&g
15450 s&@docdir@&$docdir&g
15451 s&@infodir@&$infodir&g
15452 s&@localedir@&$localedir&g
15453 s&@mandir@&$mandir&g
15454 s&\\\${datarootdir}&$datarootdir&g' ;;
15455esac
42ecbf5e 15456_ACEOF
81ecdfbb
RW
15457
15458# Neutralize VPATH when `$srcdir' = `.'.
15459# Shell code in configure.ac might set extrasub.
15460# FIXME: do we really want to maintain this feature?
15461cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15462ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
15463$extrasub
15464_ACEOF
81ecdfbb 15465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
15466:t
15467/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15468s|@configure_input@|$ac_sed_conf_input|;t t
15469s&@top_builddir@&$ac_top_builddir_sub&;t t
15470s&@top_build_prefix@&$ac_top_build_prefix&;t t
15471s&@srcdir@&$ac_srcdir&;t t
15472s&@abs_srcdir@&$ac_abs_srcdir&;t t
15473s&@top_srcdir@&$ac_top_srcdir&;t t
15474s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15475s&@builddir@&$ac_builddir&;t t
15476s&@abs_builddir@&$ac_abs_builddir&;t t
15477s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15478s&@INSTALL@&$ac_INSTALL&;t t
15479s&@MKDIR_P@&$ac_MKDIR_P&;t t
15480$ac_datarootdir_hack
15481"
15482eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15483 || as_fn_error "could not create $ac_file" "$LINENO" 5
15484
15485test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15486 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15487 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15489which seems to be undefined. Please make sure it is defined." >&5
15490$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15491which seems to be undefined. Please make sure it is defined." >&2;}
15492
15493 rm -f "$tmp/stdin"
42ecbf5e 15494 case $ac_file in
81ecdfbb
RW
15495 -) cat "$tmp/out" && rm -f "$tmp/out";;
15496 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15497 esac \
15498 || as_fn_error "could not create $ac_file" "$LINENO" 5
15499 ;;
15500 :H)
15501 #
15502 # CONFIG_HEADER
15503 #
42ecbf5e 15504 if test x"$ac_file" != x-; then
81ecdfbb
RW
15505 {
15506 $as_echo "/* $configure_input */" \
15507 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15508 } >"$tmp/config.h" \
15509 || as_fn_error "could not create $ac_file" "$LINENO" 5
15510 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15512$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 15513 else
81ecdfbb
RW
15514 rm -f "$ac_file"
15515 mv "$tmp/config.h" "$ac_file" \
15516 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 15517 fi
42ecbf5e 15518 else
81ecdfbb
RW
15519 $as_echo "/* $configure_input */" \
15520 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15521 || as_fn_error "could not create -" "$LINENO" 5
252b5132 15522 fi
81ecdfbb
RW
15523# Compute "$ac_file"'s index in $config_headers.
15524_am_arg="$ac_file"
42ecbf5e
DJ
15525_am_stamp_count=1
15526for _am_header in $config_headers :; do
15527 case $_am_header in
81ecdfbb 15528 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
15529 break ;;
15530 * )
15531 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15532 esac
15533done
81ecdfbb
RW
15534echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15535$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15536 X"$_am_arg" : 'X\(//\)[^/]' \| \
15537 X"$_am_arg" : 'X\(//\)$' \| \
15538 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15539$as_echo X"$_am_arg" |
15540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15541 s//\1/
15542 q
15543 }
15544 /^X\(\/\/\)[^/].*/{
15545 s//\1/
15546 q
15547 }
15548 /^X\(\/\/\)$/{
15549 s//\1/
15550 q
15551 }
15552 /^X\(\/\).*/{
15553 s//\1/
15554 q
15555 }
15556 s/.*/./; q'`/stamp-h$_am_stamp_count
15557 ;;
42ecbf5e 15558
81ecdfbb
RW
15559 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15560$as_echo "$as_me: executing $ac_file commands" >&6;}
15561 ;;
15562 esac
e5a52504 15563
42ecbf5e 15564
81ecdfbb
RW
15565 case $ac_file$ac_mode in
15566 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15567 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15568 # are listed without --file. Let's play safe and only enable the eval
15569 # if we detect the quoting.
15570 case $CONFIG_FILES in
15571 *\'*) eval set x "$CONFIG_FILES" ;;
15572 *) set x $CONFIG_FILES ;;
15573 esac
15574 shift
15575 for mf
15576 do
15577 # Strip MF so we end up with the name of the file.
15578 mf=`echo "$mf" | sed -e 's/:.*$//'`
15579 # Check whether this is an Automake generated Makefile or not.
15580 # We used to match only the files named `Makefile.in', but
15581 # some people rename them; so instead we look at the file content.
15582 # Grep'ing the first line is not enough: some people post-process
15583 # each Makefile.in and add a new line on top of each file to say so.
15584 # Grep'ing the whole file is not good either: AIX grep has a line
15585 # limit of 2048, but all sed's we know have understand at least 4000.
15586 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15587 dirpart=`$as_dirname -- "$mf" ||
42ecbf5e
DJ
15588$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15589 X"$mf" : 'X\(//\)[^/]' \| \
15590 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
15591 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15592$as_echo X"$mf" |
15593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15594 s//\1/
15595 q
15596 }
15597 /^X\(\/\/\)[^/].*/{
15598 s//\1/
15599 q
15600 }
15601 /^X\(\/\/\)$/{
15602 s//\1/
15603 q
15604 }
15605 /^X\(\/\).*/{
15606 s//\1/
15607 q
15608 }
15609 s/.*/./; q'`
15610 else
15611 continue
15612 fi
15613 # Extract the definition of DEPDIR, am__include, and am__quote
15614 # from the Makefile without running `make'.
15615 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15616 test -z "$DEPDIR" && continue
15617 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15618 test -z "am__include" && continue
15619 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15620 # When using ansi2knr, U may be empty or an underscore; expand it
15621 U=`sed -n 's/^U = //p' < "$mf"`
15622 # Find all dependency output files, they are included files with
15623 # $(DEPDIR) in their names. We invoke sed twice because it is the
15624 # simplest approach to changing $(DEPDIR) to its actual value in the
15625 # expansion.
15626 for file in `sed -n "
15627 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15628 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15629 # Make sure the directory exists.
15630 test -f "$dirpart/$file" && continue
15631 fdir=`$as_dirname -- "$file" ||
42ecbf5e
DJ
15632$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15633 X"$file" : 'X\(//\)[^/]' \| \
15634 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
15635 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15636$as_echo X"$file" |
15637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15638 s//\1/
15639 q
15640 }
15641 /^X\(\/\/\)[^/].*/{
15642 s//\1/
15643 q
15644 }
15645 /^X\(\/\/\)$/{
15646 s//\1/
15647 q
15648 }
15649 /^X\(\/\).*/{
15650 s//\1/
15651 q
15652 }
15653 s/.*/./; q'`
15654 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15655 # echo "creating $dirpart/$file"
15656 echo '# dummy' > "$dirpart/$file"
42ecbf5e 15657 done
42ecbf5e 15658 done
81ecdfbb 15659}
d7040cdb 15660 ;;
81ecdfbb 15661 "libtool":C)
d7040cdb
SE
15662
15663 # See if we are running on zsh, and set the options which allow our
15664 # commands through without removal of \ escapes.
15665 if test -n "${ZSH_VERSION+set}" ; then
15666 setopt NO_GLOB_SUBST
15667 fi
15668
15669 cfgfile="${ofile}T"
15670 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15671 $RM "$cfgfile"
15672
15673 cat <<_LT_EOF >> "$cfgfile"
15674#! $SHELL
15675
15676# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 15677# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
15678# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15679# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15680#
718a6fd8 15681# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 15682# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
718a6fd8 15683# Written by Gordon Matzigkeit, 1996
d7040cdb 15684#
718a6fd8 15685# This file is part of GNU Libtool.
d7040cdb 15686#
718a6fd8
SE
15687# GNU Libtool is free software; you can redistribute it and/or
15688# modify it under the terms of the GNU General Public License as
15689# published by the Free Software Foundation; either version 2 of
15690# the License, or (at your option) any later version.
d7040cdb 15691#
718a6fd8
SE
15692# As a special exception to the GNU General Public License,
15693# if you distribute this file as part of a program or library that
15694# is built using GNU Libtool, you may include this file under the
15695# same distribution terms that you use for the rest of that program.
d7040cdb 15696#
718a6fd8
SE
15697# GNU Libtool is distributed in the hope that it will be useful,
15698# but WITHOUT ANY WARRANTY; without even the implied warranty of
15699# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15700# GNU General Public License for more details.
d7040cdb 15701#
718a6fd8
SE
15702# You should have received a copy of the GNU General Public License
15703# along with GNU Libtool; see the file COPYING. If not, a copy
15704# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15705# obtained by writing to the Free Software Foundation, Inc.,
15706# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
15707
15708
15709# The names of the tagged configurations supported by this script.
15710available_tags=""
15711
15712# ### BEGIN LIBTOOL CONFIG
15713
15714# Which release of libtool.m4 was used?
15715macro_version=$macro_version
15716macro_revision=$macro_revision
15717
15718# Whether or not to build shared libraries.
15719build_libtool_libs=$enable_shared
15720
15721# Whether or not to build static libraries.
15722build_old_libs=$enable_static
15723
15724# What type of objects to build.
15725pic_mode=$pic_mode
15726
15727# Whether or not to optimize for fast installation.
15728fast_install=$enable_fast_install
15729
3725885a
RW
15730# Shell to use when invoking shell scripts.
15731SHELL=$lt_SHELL
15732
15733# An echo program that protects backslashes.
15734ECHO=$lt_ECHO
15735
d7040cdb
SE
15736# The host system.
15737host_alias=$host_alias
15738host=$host
15739host_os=$host_os
15740
15741# The build system.
15742build_alias=$build_alias
15743build=$build
15744build_os=$build_os
15745
15746# A sed program that does not truncate output.
15747SED=$lt_SED
15748
15749# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15750Xsed="\$SED -e 1s/^X//"
15751
15752# A grep program that handles long lines.
15753GREP=$lt_GREP
15754
15755# An ERE matcher.
15756EGREP=$lt_EGREP
15757
15758# A literal string matcher.
15759FGREP=$lt_FGREP
15760
15761# A BSD- or MS-compatible name lister.
15762NM=$lt_NM
15763
15764# Whether we need soft or hard links.
15765LN_S=$lt_LN_S
15766
15767# What is the maximum length of a command?
15768max_cmd_len=$max_cmd_len
15769
15770# Object file suffix (normally "o").
15771objext=$ac_objext
15772
15773# Executable file suffix (normally "").
15774exeext=$exeext
15775
15776# whether the shell understands "unset".
15777lt_unset=$lt_unset
15778
15779# turn spaces into newlines.
15780SP2NL=$lt_lt_SP2NL
15781
15782# turn newlines into spaces.
15783NL2SP=$lt_lt_NL2SP
15784
718a6fd8
SE
15785# An object symbol dumper.
15786OBJDUMP=$lt_OBJDUMP
15787
d7040cdb
SE
15788# Method to check whether dependent libraries are shared objects.
15789deplibs_check_method=$lt_deplibs_check_method
15790
15791# Command to use when deplibs_check_method == "file_magic".
15792file_magic_cmd=$lt_file_magic_cmd
15793
15794# The archiver.
15795AR=$lt_AR
15796AR_FLAGS=$lt_AR_FLAGS
15797
15798# A symbol stripping program.
15799STRIP=$lt_STRIP
15800
15801# Commands used to install an old-style archive.
15802RANLIB=$lt_RANLIB
15803old_postinstall_cmds=$lt_old_postinstall_cmds
15804old_postuninstall_cmds=$lt_old_postuninstall_cmds
15805
3725885a
RW
15806# Whether to use a lock for old archive extraction.
15807lock_old_archive_extraction=$lock_old_archive_extraction
15808
d7040cdb
SE
15809# A C compiler.
15810LTCC=$lt_CC
15811
15812# LTCC compiler flags.
15813LTCFLAGS=$lt_CFLAGS
15814
15815# Take the output of nm and produce a listing of raw symbols and C names.
15816global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15817
15818# Transform the output of nm in a proper C declaration.
15819global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15820
15821# Transform the output of nm in a C name address pair.
15822global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15823
718a6fd8
SE
15824# Transform the output of nm in a C name address pair when lib prefix is needed.
15825global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15826
d7040cdb
SE
15827# The name of the directory that contains temporary libtool files.
15828objdir=$objdir
15829
d7040cdb
SE
15830# Used to examine libraries when file_magic_cmd begins with "file".
15831MAGIC_CMD=$MAGIC_CMD
15832
15833# Must we lock files when doing compilation?
15834need_locks=$lt_need_locks
15835
718a6fd8
SE
15836# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15837DSYMUTIL=$lt_DSYMUTIL
15838
15839# Tool to change global to local symbols on Mac OS X.
15840NMEDIT=$lt_NMEDIT
15841
15842# Tool to manipulate fat objects and archives on Mac OS X.
15843LIPO=$lt_LIPO
15844
15845# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15846OTOOL=$lt_OTOOL
15847
15848# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15849OTOOL64=$lt_OTOOL64
15850
d7040cdb
SE
15851# Old archive suffix (normally "a").
15852libext=$libext
15853
15854# Shared library suffix (normally ".so").
15855shrext_cmds=$lt_shrext_cmds
15856
15857# The commands to extract the exported symbol list from a shared archive.
15858extract_expsyms_cmds=$lt_extract_expsyms_cmds
15859
15860# Variables whose values should be saved in libtool wrapper scripts and
15861# restored at link time.
15862variables_saved_for_relink=$lt_variables_saved_for_relink
15863
15864# Do we need the "lib" prefix for modules?
15865need_lib_prefix=$need_lib_prefix
15866
15867# Do we need a version for libraries?
15868need_version=$need_version
15869
15870# Library versioning type.
15871version_type=$version_type
15872
15873# Shared library runtime path variable.
15874runpath_var=$runpath_var
15875
15876# Shared library path variable.
15877shlibpath_var=$shlibpath_var
15878
15879# Is shlibpath searched before the hard-coded library search path?
15880shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15881
15882# Format of library name prefix.
15883libname_spec=$lt_libname_spec
15884
15885# List of archive names. First name is the real one, the rest are links.
15886# The last name is the one that the linker finds with -lNAME
15887library_names_spec=$lt_library_names_spec
15888
15889# The coded name of the library, if different from the real name.
15890soname_spec=$lt_soname_spec
15891
3725885a
RW
15892# Permission mode override for installation of shared libraries.
15893install_override_mode=$lt_install_override_mode
15894
d7040cdb
SE
15895# Command to use after installation of a shared archive.
15896postinstall_cmds=$lt_postinstall_cmds
15897
15898# Command to use after uninstallation of a shared archive.
15899postuninstall_cmds=$lt_postuninstall_cmds
15900
15901# Commands used to finish a libtool library installation in a directory.
15902finish_cmds=$lt_finish_cmds
15903
15904# As "finish_cmds", except a single script fragment to be evaled but
15905# not shown.
15906finish_eval=$lt_finish_eval
15907
15908# Whether we should hardcode library paths into libraries.
15909hardcode_into_libs=$hardcode_into_libs
15910
15911# Compile-time system search path for libraries.
15912sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15913
15914# Run-time system search path for libraries.
15915sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15916
15917# Whether dlopen is supported.
15918dlopen_support=$enable_dlopen
15919
15920# Whether dlopen of programs is supported.
15921dlopen_self=$enable_dlopen_self
15922
15923# Whether dlopen of statically linked programs is supported.
15924dlopen_self_static=$enable_dlopen_self_static
15925
15926# Commands to strip libraries.
15927old_striplib=$lt_old_striplib
15928striplib=$lt_striplib
15929
15930
15931# The linker used to build libraries.
15932LD=$lt_LD
15933
3725885a
RW
15934# How to create reloadable object files.
15935reload_flag=$lt_reload_flag
15936reload_cmds=$lt_reload_cmds
15937
d7040cdb
SE
15938# Commands used to build an old-style archive.
15939old_archive_cmds=$lt_old_archive_cmds
15940
15941# A language specific compiler.
15942CC=$lt_compiler
15943
15944# Is the compiler the GNU compiler?
15945with_gcc=$GCC
15946
15947# Compiler flag to turn off builtin functions.
15948no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15949
15950# How to pass a linker flag through the compiler.
15951wl=$lt_lt_prog_compiler_wl
15952
15953# Additional compiler flags for building library objects.
15954pic_flag=$lt_lt_prog_compiler_pic
15955
15956# Compiler flag to prevent dynamic linking.
15957link_static_flag=$lt_lt_prog_compiler_static
15958
15959# Does compiler simultaneously support -c and -o options?
15960compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15961
15962# Whether or not to add -lc for building shared libraries.
15963build_libtool_need_lc=$archive_cmds_need_lc
15964
15965# Whether or not to disallow shared libs when runtime libs are static.
15966allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15967
15968# Compiler flag to allow reflexive dlopens.
15969export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15970
15971# Compiler flag to generate shared objects directly from archives.
15972whole_archive_flag_spec=$lt_whole_archive_flag_spec
15973
15974# Whether the compiler copes with passing no objects directly.
15975compiler_needs_object=$lt_compiler_needs_object
15976
15977# Create an old-style archive from a shared archive.
15978old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15979
15980# Create a temporary old-style archive to link instead of a shared archive.
15981old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15982
15983# Commands used to build a shared archive.
15984archive_cmds=$lt_archive_cmds
15985archive_expsym_cmds=$lt_archive_expsym_cmds
15986
15987# Commands used to build a loadable module if different from building
15988# a shared archive.
15989module_cmds=$lt_module_cmds
15990module_expsym_cmds=$lt_module_expsym_cmds
15991
15992# Whether we are building with GNU ld or not.
15993with_gnu_ld=$lt_with_gnu_ld
15994
15995# Flag that allows shared libraries with undefined symbols to be built.
15996allow_undefined_flag=$lt_allow_undefined_flag
15997
15998# Flag that enforces no undefined symbols.
15999no_undefined_flag=$lt_no_undefined_flag
16000
16001# Flag to hardcode \$libdir into a binary during linking.
16002# This must work even if \$libdir does not exist
16003hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16004
16005# If ld is used when linking, flag to hardcode \$libdir into a binary
16006# during linking. This must work even if \$libdir does not exist.
16007hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16008
16009# Whether we need a single "-rpath" flag with a separated argument.
16010hardcode_libdir_separator=$lt_hardcode_libdir_separator
16011
16012# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16013# DIR into the resulting binary.
16014hardcode_direct=$hardcode_direct
16015
16016# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16017# DIR into the resulting binary and the resulting library dependency is
16018# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16019# library is relocated.
16020hardcode_direct_absolute=$hardcode_direct_absolute
16021
16022# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16023# into the resulting binary.
16024hardcode_minus_L=$hardcode_minus_L
16025
16026# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16027# into the resulting binary.
16028hardcode_shlibpath_var=$hardcode_shlibpath_var
16029
16030# Set to "yes" if building a shared library automatically hardcodes DIR
16031# into the library and all subsequent libraries and executables linked
16032# against it.
16033hardcode_automatic=$hardcode_automatic
16034
16035# Set to yes if linker adds runtime paths of dependent libraries
16036# to runtime path list.
16037inherit_rpath=$inherit_rpath
16038
16039# Whether libtool must link a program against all its dependency libraries.
16040link_all_deplibs=$link_all_deplibs
16041
16042# Fix the shell variable \$srcfile for the compiler.
16043fix_srcfile_path=$lt_fix_srcfile_path
16044
16045# Set to "yes" if exported symbols are required.
16046always_export_symbols=$always_export_symbols
16047
16048# The commands to list exported symbols.
16049export_symbols_cmds=$lt_export_symbols_cmds
16050
16051# Symbols that should not be listed in the preloaded symbols.
16052exclude_expsyms=$lt_exclude_expsyms
16053
16054# Symbols that must always be exported.
16055include_expsyms=$lt_include_expsyms
16056
16057# Commands necessary for linking programs (against libraries) with templates.
16058prelink_cmds=$lt_prelink_cmds
16059
16060# Specify filename containing input files.
16061file_list_spec=$lt_file_list_spec
16062
16063# How to hardcode a shared library path into an executable.
16064hardcode_action=$hardcode_action
16065
16066# ### END LIBTOOL CONFIG
16067
16068_LT_EOF
16069
16070 case $host_os in
16071 aix3*)
16072 cat <<\_LT_EOF >> "$cfgfile"
16073# AIX sometimes has problems with the GCC collect2 program. For some
16074# reason, if we set the COLLECT_NAMES environment variable, the problems
16075# vanish in a puff of smoke.
16076if test "X${COLLECT_NAMES+set}" != Xset; then
16077 COLLECT_NAMES=
16078 export COLLECT_NAMES
16079fi
16080_LT_EOF
16081 ;;
16082 esac
16083
16084
16085ltmain="$ac_aux_dir/ltmain.sh"
16086
16087
16088 # We use sed instead of cat because bash on DJGPP gets confused if
16089 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16090 # text mode, it properly converts lines to CR/LF. This bash problem
16091 # is reportedly fixed, but why not run on old versions too?
16092 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16093 || (rm -f "$cfgfile"; exit 1)
16094
16095 case $xsi_shell in
16096 yes)
16097 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 16098
d7040cdb
SE
16099# func_dirname file append nondir_replacement
16100# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16101# otherwise set result to NONDIR_REPLACEMENT.
16102func_dirname ()
16103{
16104 case ${1} in
16105 */*) func_dirname_result="${1%/*}${2}" ;;
16106 * ) func_dirname_result="${3}" ;;
16107 esac
16108}
16109
16110# func_basename file
16111func_basename ()
16112{
16113 func_basename_result="${1##*/}"
16114}
16115
718a6fd8
SE
16116# func_dirname_and_basename file append nondir_replacement
16117# perform func_basename and func_dirname in a single function
16118# call:
16119# dirname: Compute the dirname of FILE. If nonempty,
16120# add APPEND to the result, otherwise set result
16121# to NONDIR_REPLACEMENT.
16122# value returned in "$func_dirname_result"
16123# basename: Compute filename of FILE.
16124# value retuned in "$func_basename_result"
16125# Implementation must be kept synchronized with func_dirname
16126# and func_basename. For efficiency, we do not delegate to
16127# those functions but instead duplicate the functionality here.
16128func_dirname_and_basename ()
16129{
16130 case ${1} in
16131 */*) func_dirname_result="${1%/*}${2}" ;;
16132 * ) func_dirname_result="${3}" ;;
16133 esac
16134 func_basename_result="${1##*/}"
16135}
16136
d7040cdb
SE
16137# func_stripname prefix suffix name
16138# strip PREFIX and SUFFIX off of NAME.
16139# PREFIX and SUFFIX must not contain globbing or regex special
16140# characters, hashes, percent signs, but SUFFIX may contain a leading
16141# dot (in which case that matches only a dot).
16142func_stripname ()
16143{
16144 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16145 # positional parameters, so assign one to ordinary parameter first.
16146 func_stripname_result=${3}
16147 func_stripname_result=${func_stripname_result#"${1}"}
16148 func_stripname_result=${func_stripname_result%"${2}"}
16149}
16150
16151# func_opt_split
16152func_opt_split ()
16153{
16154 func_opt_split_opt=${1%%=*}
16155 func_opt_split_arg=${1#*=}
16156}
16157
16158# func_lo2o object
16159func_lo2o ()
16160{
16161 case ${1} in
16162 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16163 *) func_lo2o_result=${1} ;;
16164 esac
16165}
718a6fd8
SE
16166
16167# func_xform libobj-or-source
16168func_xform ()
16169{
16170 func_xform_result=${1%.*}.lo
16171}
16172
16173# func_arith arithmetic-term...
16174func_arith ()
16175{
16176 func_arith_result=$(( $* ))
16177}
16178
16179# func_len string
16180# STRING may not start with a hyphen.
16181func_len ()
16182{
16183 func_len_result=${#1}
16184}
16185
d7040cdb
SE
16186_LT_EOF
16187 ;;
16188 *) # Bourne compatible functions.
16189 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 16190
d7040cdb
SE
16191# func_dirname file append nondir_replacement
16192# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16193# otherwise set result to NONDIR_REPLACEMENT.
16194func_dirname ()
16195{
16196 # Extract subdirectory from the argument.
3725885a 16197 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
16198 if test "X$func_dirname_result" = "X${1}"; then
16199 func_dirname_result="${3}"
16200 else
16201 func_dirname_result="$func_dirname_result${2}"
16202 fi
16203}
16204
16205# func_basename file
16206func_basename ()
16207{
3725885a 16208 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
16209}
16210
718a6fd8 16211
d7040cdb
SE
16212# func_stripname prefix suffix name
16213# strip PREFIX and SUFFIX off of NAME.
16214# PREFIX and SUFFIX must not contain globbing or regex special
16215# characters, hashes, percent signs, but SUFFIX may contain a leading
16216# dot (in which case that matches only a dot).
16217# func_strip_suffix prefix name
16218func_stripname ()
16219{
16220 case ${2} in
3725885a
RW
16221 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16222 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
16223 esac
16224}
16225
16226# sed scripts:
16227my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16228my_sed_long_arg='1s/^-[^=]*=//'
16229
16230# func_opt_split
16231func_opt_split ()
16232{
3725885a
RW
16233 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16234 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
16235}
16236
16237# func_lo2o object
16238func_lo2o ()
16239{
3725885a 16240 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 16241}
718a6fd8
SE
16242
16243# func_xform libobj-or-source
16244func_xform ()
16245{
3725885a 16246 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
718a6fd8
SE
16247}
16248
16249# func_arith arithmetic-term...
16250func_arith ()
16251{
16252 func_arith_result=`expr "$@"`
16253}
16254
16255# func_len string
16256# STRING may not start with a hyphen.
16257func_len ()
16258{
16259 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16260}
16261
d7040cdb
SE
16262_LT_EOF
16263esac
16264
16265case $lt_shell_append in
16266 yes)
16267 cat << \_LT_EOF >> "$cfgfile"
16268
16269# func_append var value
16270# Append VALUE to the end of shell variable VAR.
16271func_append ()
16272{
16273 eval "$1+=\$2"
16274}
16275_LT_EOF
16276 ;;
16277 *)
16278 cat << \_LT_EOF >> "$cfgfile"
16279
16280# func_append var value
16281# Append VALUE to the end of shell variable VAR.
16282func_append ()
16283{
16284 eval "$1=\$$1\$2"
16285}
718a6fd8 16286
d7040cdb
SE
16287_LT_EOF
16288 ;;
16289 esac
16290
16291
16292 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16293 || (rm -f "$cfgfile"; exit 1)
16294
16295 mv -f "$cfgfile" "$ofile" ||
16296 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16297 chmod +x "$ofile"
16298
42ecbf5e 16299 ;;
81ecdfbb 16300 "default-1":C)
20e95c23
DJ
16301 for ac_file in $CONFIG_FILES; do
16302 # Support "outfile[:infile[:infile...]]"
16303 case "$ac_file" in
16304 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16305 esac
16306 # PO directories have a Makefile.in generated from Makefile.in.in.
16307 case "$ac_file" in */Makefile.in)
16308 # Adjust a relative srcdir.
16309 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16310 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16311 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16312 # In autoconf-2.13 it is called $ac_given_srcdir.
16313 # In autoconf-2.50 it is called $srcdir.
16314 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16315 case "$ac_given_srcdir" in
16316 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16317 /*) top_srcdir="$ac_given_srcdir" ;;
16318 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16319 esac
16320 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16321 rm -f "$ac_dir/POTFILES"
16322 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16323 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16324 POMAKEFILEDEPS="POTFILES.in"
16325 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16326 # on $ac_dir but don't depend on user-specified configuration
16327 # parameters.
16328 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16329 # The LINGUAS file contains the set of available languages.
16330 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16331 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16332 fi
16333 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16334 # Hide the ALL_LINGUAS assigment from automake.
16335 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16336 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16337 else
16338 # The set of available languages was given in configure.in.
16339 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16340 fi
16341 case "$ac_given_srcdir" in
16342 .) srcdirpre= ;;
16343 *) srcdirpre='$(srcdir)/' ;;
16344 esac
16345 POFILES=
16346 GMOFILES=
16347 UPDATEPOFILES=
16348 DUMMYPOFILES=
16349 for lang in $ALL_LINGUAS; do
16350 POFILES="$POFILES $srcdirpre$lang.po"
16351 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16352 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16353 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16354 done
16355 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16356 # environment variable.
16357 INST_LINGUAS=
16358 if test -n "$ALL_LINGUAS"; then
16359 for presentlang in $ALL_LINGUAS; do
16360 useit=no
16361 if test "%UNSET%" != "$LINGUAS"; then
16362 desiredlanguages="$LINGUAS"
16363 else
16364 desiredlanguages="$ALL_LINGUAS"
16365 fi
16366 for desiredlang in $desiredlanguages; do
16367 # Use the presentlang catalog if desiredlang is
16368 # a. equal to presentlang, or
16369 # b. a variant of presentlang (because in this case,
16370 # presentlang can be used as a fallback for messages
16371 # which are not translated in the desiredlang catalog).
16372 case "$desiredlang" in
16373 "$presentlang"*) useit=yes;;
16374 esac
16375 done
16376 if test $useit = yes; then
16377 INST_LINGUAS="$INST_LINGUAS $presentlang"
16378 fi
16379 done
16380 fi
16381 CATALOGS=
16382 if test -n "$INST_LINGUAS"; then
16383 for lang in $INST_LINGUAS; do
16384 CATALOGS="$CATALOGS $lang.gmo"
16385 done
16386 fi
16387 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16388 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"
16389 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16390 if test -f "$f"; then
16391 case "$f" in
16392 *.orig | *.bak | *~) ;;
16393 *) cat "$f" >> "$ac_dir/Makefile" ;;
16394 esac
16395 fi
16396 done
16397 fi
16398 ;;
16399 esac
16400 done ;;
81ecdfbb 16401
42ecbf5e 16402 esac
81ecdfbb 16403done # for ac_tag
e5a52504 16404
42ecbf5e 16405
81ecdfbb 16406as_fn_exit 0
42ecbf5e 16407_ACEOF
42ecbf5e
DJ
16408ac_clean_files=$ac_clean_files_save
16409
81ecdfbb
RW
16410test $ac_write_fail = 0 ||
16411 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16412
42ecbf5e
DJ
16413
16414# configure is writing to config.log, and then calls config.status.
16415# config.status does its own redirection, appending to config.log.
16416# Unfortunately, on DOS this fails, as config.log is still kept open
16417# by configure, so config.status won't be able to write to it; its
16418# output is simply discarded. So we exec the FD to /dev/null,
16419# effectively closing config.log, so it can be properly (re)opened and
16420# appended to by config.status. When coming back to configure, we
16421# need to make the FD available again.
16422if test "$no_create" != yes; then
16423 ac_cs_success=:
16424 ac_config_status_args=
16425 test "$silent" = yes &&
16426 ac_config_status_args="$ac_config_status_args --quiet"
16427 exec 5>/dev/null
16428 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16429 exec 5>>config.log
16430 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16431 # would make configure fail if this is the last instruction.
81ecdfbb
RW
16432 $ac_cs_success || as_fn_exit $?
16433fi
16434if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16436$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 16437fi
252b5132 16438
This page took 1.410459 seconds and 4 git commands to generate.