Add -Wshadow to the gcc command line options used when compiling the binutils.
[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
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42ecbf5e 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
42ecbf5e 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
42ecbf5e 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
42ecbf5e 356
81ecdfbb
RW
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
42ecbf5e 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
42ecbf5e 410
42ecbf5e
DJ
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
42ecbf5e 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
42ecbf5e 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
42ecbf5e 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42ecbf5e 436 t loop
81ecdfbb 437 s/-\n.*//
42ecbf5e 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
42ecbf5e
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
42ecbf5e
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
42ecbf5e
DJ
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
42ecbf5e 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
42ecbf5e 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
42ecbf5e 483 fi
42ecbf5e
DJ
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
42ecbf5e
DJ
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
42ecbf5e
DJ
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
d7040cdb
SE
527
528# Check that we are running under the correct shell.
529SHELL=${CONFIG_SHELL-/bin/sh}
530
531case X$lt_ECHO in
532X*--fallback-echo)
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535 ;;
536esac
537
538ECHO=${lt_ECHO-echo}
539if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
541 shift
542elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
544 :
545elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
547 :
548else
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
551fi
552
553if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
555 shift
556 cat <<_LT_EOF
557$*
558_LT_EOF
559 exit 0
560fi
561
562# The HP-UX ksh and POSIX shell print the target directory to stdout
563# if CDPATH is set.
564(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
566if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573 then
574 break
575 fi
576 done
577 fi
578
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
582 :
583 else
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
587 #
588 # So, first we look for a working echo in the user's PATH.
589
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
592 IFS="$lt_save_ifs"
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 ECHO="$dir/echo"
598 break
599 fi
600 done
601 IFS="$lt_save_ifs"
602
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
609 ECHO='print -r'
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
616 export CONFIG_SHELL
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618 else
619 # Try using printf.
620 ECHO='printf %s\n'
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 # Cool, printf works
625 :
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631 export CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
633 export SHELL
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 else
641 # maybe with a smaller string...
642 prev=:
643
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646 then
647 break
648 fi
649 prev="$cmd"
650 done
651
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656 else
657 # Oops. We lost completely, so just stick with echo.
658 ECHO=echo
659 fi
660 fi
661 fi
662 fi
663 fi
664fi
665
666# Copy echo and quote the copy suitably for passing to libtool from
667# the Makefile, instead of quoting the original, which is used later.
668lt_ECHO=$ECHO
669if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671fi
672
673
674
675
81ecdfbb
RW
676exec 7<&0 </dev/null 6>&1
677
42ecbf5e
DJ
678# Name of the host.
679# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680# so uname gets run too.
681ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 682
42ecbf5e
DJ
683#
684# Initializations.
685#
252b5132 686ac_default_prefix=/usr/local
81ecdfbb 687ac_clean_files=
42ecbf5e 688ac_config_libobj_dir=.
81ecdfbb 689LIBOBJS=
42ecbf5e
DJ
690cross_compiling=no
691subdirs=
692MFLAGS=
693MAKEFLAGS=
42ecbf5e
DJ
694
695# Identity of this package.
696PACKAGE_NAME=
697PACKAGE_TARNAME=
698PACKAGE_VERSION=
699PACKAGE_STRING=
700PACKAGE_BUGREPORT=
81ecdfbb 701PACKAGE_URL=
42ecbf5e
DJ
702
703ac_unique_file="ar.c"
704# Factoring default headers for most tests.
705ac_includes_default="\
706#include <stdio.h>
81ecdfbb 707#ifdef HAVE_SYS_TYPES_H
42ecbf5e
DJ
708# include <sys/types.h>
709#endif
81ecdfbb 710#ifdef HAVE_SYS_STAT_H
42ecbf5e
DJ
711# include <sys/stat.h>
712#endif
81ecdfbb 713#ifdef STDC_HEADERS
42ecbf5e
DJ
714# include <stdlib.h>
715# include <stddef.h>
716#else
81ecdfbb 717# ifdef HAVE_STDLIB_H
42ecbf5e
DJ
718# include <stdlib.h>
719# endif
720#endif
81ecdfbb
RW
721#ifdef HAVE_STRING_H
722# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
42ecbf5e
DJ
723# include <memory.h>
724# endif
725# include <string.h>
726#endif
81ecdfbb 727#ifdef HAVE_STRINGS_H
42ecbf5e
DJ
728# include <strings.h>
729#endif
81ecdfbb 730#ifdef HAVE_INTTYPES_H
42ecbf5e 731# include <inttypes.h>
42ecbf5e 732#endif
81ecdfbb
RW
733#ifdef HAVE_STDINT_H
734# include <stdint.h>
735#endif
736#ifdef HAVE_UNISTD_H
42ecbf5e
DJ
737# include <unistd.h>
738#endif"
739
81ecdfbb
RW
740ac_subst_vars='am__EXEEXT_FALSE
741am__EXEEXT_TRUE
742LTLIBOBJS
743LIBOBJS
744EMULATION_VECTOR
745EMULATION
746OBJDUMP_DEFS
747BUILD_INSTALL_MISC
748BUILD_MISC
749BUILD_DLLWRAP
750BUILD_WINDMC
751BUILD_WINDRES
752DLLTOOL_DEFS
753BUILD_DLLTOOL
754BUILD_SRCONV
755BUILD_NLMCONV
756NLMCONV_DEFS
757LTLIBICONV
758LIBICONV
759ALLOCA
760DEMANGLER_NAME
761EXEEXT_FOR_BUILD
762CC_FOR_BUILD
763HDEFINES
764GENINSRC_NEVER_FALSE
765GENINSRC_NEVER_TRUE
766MAINT
767MAINTAINER_MODE_FALSE
768MAINTAINER_MODE_TRUE
769MSGMERGE
770MSGFMT
771MKINSTALLDIRS
772CATOBJEXT
773GENCAT
774INSTOBJEXT
775DATADIRNAME
776CATALOGS
777POSUB
778GMSGFMT
779XGETTEXT
780INCINTL
781LIBINTL_DEP
782LIBINTL
783USE_NLS
784LEXLIB
785LEX_OUTPUT_ROOT
786LEX
787YFLAGS
788YACC
789NO_WERROR
790WARN_CFLAGS
791OTOOL64
792OTOOL
793LIPO
794NMEDIT
795DSYMUTIL
796lt_ECHO
797RANLIB
798AR
799OBJDUMP
800LN_S
801NM
802ac_ct_DUMPBIN
803DUMPBIN
804LD
805FGREP
806SED
807LIBTOOL
808EGREP
809GREP
810CPP
811am__fastdepCC_FALSE
812am__fastdepCC_TRUE
813CCDEPMODE
814AMDEPBACKSLASH
815AMDEP_FALSE
816AMDEP_TRUE
817am__quote
818am__include
819DEPDIR
820am__untar
821am__tar
822AMTAR
823am__leading_dot
824SET_MAKE
825AWK
826mkdir_p
827MKDIR_P
828INSTALL_STRIP_PROGRAM
829STRIP
830install_sh
831MAKEINFO
832AUTOHEADER
833AUTOMAKE
834AUTOCONF
835ACLOCAL
836VERSION
837PACKAGE
838CYGPATH_W
839am__isrc
840INSTALL_DATA
841INSTALL_SCRIPT
842INSTALL_PROGRAM
843OBJEXT
844EXEEXT
845ac_ct_CC
846CPPFLAGS
847LDFLAGS
848CFLAGS
849CC
850target_os
851target_vendor
852target_cpu
853target
854host_os
855host_vendor
856host_cpu
857host
858build_os
859build_vendor
860build_cpu
861build
862target_alias
863host_alias
864build_alias
865LIBS
866ECHO_T
867ECHO_N
868ECHO_C
869DEFS
870mandir
871localedir
872libdir
873psdir
874pdfdir
875dvidir
876htmldir
877infodir
878docdir
879oldincludedir
880includedir
881localstatedir
882sharedstatedir
883sysconfdir
884datadir
885datarootdir
886libexecdir
887sbindir
888bindir
889program_transform_name
890prefix
891exec_prefix
892PACKAGE_URL
893PACKAGE_BUGREPORT
894PACKAGE_STRING
895PACKAGE_VERSION
896PACKAGE_TARNAME
897PACKAGE_NAME
898PATH_SEPARATOR
899SHELL'
42ecbf5e 900ac_subst_files=''
81ecdfbb
RW
901ac_user_opts='
902enable_option_checking
903enable_dependency_tracking
904enable_plugins
905enable_largefile
906enable_shared
907enable_static
908with_pic
909enable_fast_install
910with_gnu_ld
911enable_libtool_lock
912enable_targets
913enable_werror
914enable_build_warnings
915enable_nls
916enable_maintainer_mode
917enable_rpath
918with_libiconv_prefix
919'
920 ac_precious_vars='build_alias
921host_alias
922target_alias
923CC
924CFLAGS
925LDFLAGS
926LIBS
927CPPFLAGS
928CPP
929YACC
930YFLAGS'
931
252b5132
RH
932
933# Initialize some variables set by options.
42ecbf5e
DJ
934ac_init_help=
935ac_init_version=false
81ecdfbb
RW
936ac_unrecognized_opts=
937ac_unrecognized_sep=
252b5132
RH
938# The variables have the same names as the options, with
939# dashes changed to underlines.
42ecbf5e 940cache_file=/dev/null
252b5132 941exec_prefix=NONE
252b5132 942no_create=
252b5132
RH
943no_recursion=
944prefix=NONE
945program_prefix=NONE
946program_suffix=NONE
947program_transform_name=s,x,x,
948silent=
949site=
950srcdir=
252b5132
RH
951verbose=
952x_includes=NONE
953x_libraries=NONE
42ecbf5e
DJ
954
955# Installation directory options.
956# These are left unexpanded so users can "make install exec_prefix=/foo"
957# and all the variables that are supposed to be based on exec_prefix
958# by default will actually change.
959# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 960# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
961bindir='${exec_prefix}/bin'
962sbindir='${exec_prefix}/sbin'
963libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
964datarootdir='${prefix}/share'
965datadir='${datarootdir}'
252b5132
RH
966sysconfdir='${prefix}/etc'
967sharedstatedir='${prefix}/com'
968localstatedir='${prefix}/var'
252b5132
RH
969includedir='${prefix}/include'
970oldincludedir='/usr/include'
81ecdfbb
RW
971docdir='${datarootdir}/doc/${PACKAGE}'
972infodir='${datarootdir}/info'
973htmldir='${docdir}'
974dvidir='${docdir}'
975pdfdir='${docdir}'
976psdir='${docdir}'
977libdir='${exec_prefix}/lib'
978localedir='${datarootdir}/locale'
979mandir='${datarootdir}/man'
252b5132 980
252b5132 981ac_prev=
81ecdfbb 982ac_dashdash=
252b5132
RH
983for ac_option
984do
252b5132
RH
985 # If the previous option needs an argument, assign it.
986 if test -n "$ac_prev"; then
81ecdfbb 987 eval $ac_prev=\$ac_option
252b5132
RH
988 ac_prev=
989 continue
990 fi
991
81ecdfbb
RW
992 case $ac_option in
993 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
994 *) ac_optarg=yes ;;
995 esac
252b5132
RH
996
997 # Accept the important Cygnus configure options, so we can diagnose typos.
998
81ecdfbb
RW
999 case $ac_dashdash$ac_option in
1000 --)
1001 ac_dashdash=yes ;;
252b5132
RH
1002
1003 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1004 ac_prev=bindir ;;
1005 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 1006 bindir=$ac_optarg ;;
252b5132
RH
1007
1008 -build | --build | --buil | --bui | --bu)
42ecbf5e 1009 ac_prev=build_alias ;;
252b5132 1010 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 1011 build_alias=$ac_optarg ;;
252b5132
RH
1012
1013 -cache-file | --cache-file | --cache-fil | --cache-fi \
1014 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1015 ac_prev=cache_file ;;
1016 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1017 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
1018 cache_file=$ac_optarg ;;
1019
1020 --config-cache | -C)
1021 cache_file=config.cache ;;
252b5132 1022
81ecdfbb 1023 -datadir | --datadir | --datadi | --datad)
252b5132 1024 ac_prev=datadir ;;
81ecdfbb 1025 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 1026 datadir=$ac_optarg ;;
252b5132 1027
81ecdfbb
RW
1028 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1029 | --dataroo | --dataro | --datar)
1030 ac_prev=datarootdir ;;
1031 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1032 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1033 datarootdir=$ac_optarg ;;
1034
252b5132 1035 -disable-* | --disable-*)
81ecdfbb 1036 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 1037 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 as_fn_error "invalid feature name: $ac_useropt"
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1043 *"
1044"enable_$ac_useropt"
1045"*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval enable_$ac_useropt=no ;;
1050
1051 -docdir | --docdir | --docdi | --doc | --do)
1052 ac_prev=docdir ;;
1053 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1054 docdir=$ac_optarg ;;
1055
1056 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1057 ac_prev=dvidir ;;
1058 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1059 dvidir=$ac_optarg ;;
252b5132
RH
1060
1061 -enable-* | --enable-*)
81ecdfbb 1062 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 1063 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 as_fn_error "invalid feature name: $ac_useropt"
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1069 *"
1070"enable_$ac_useropt"
1071"*) ;;
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
252b5132 1074 esac
81ecdfbb 1075 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1076
1077 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1078 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1079 | --exec | --exe | --ex)
1080 ac_prev=exec_prefix ;;
1081 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1082 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1083 | --exec=* | --exe=* | --ex=*)
42ecbf5e 1084 exec_prefix=$ac_optarg ;;
252b5132
RH
1085
1086 -gas | --gas | --ga | --g)
1087 # Obsolete; use --with-gas.
1088 with_gas=yes ;;
1089
42ecbf5e
DJ
1090 -help | --help | --hel | --he | -h)
1091 ac_init_help=long ;;
1092 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1093 ac_init_help=recursive ;;
1094 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1095 ac_init_help=short ;;
252b5132
RH
1096
1097 -host | --host | --hos | --ho)
42ecbf5e 1098 ac_prev=host_alias ;;
252b5132 1099 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 1100 host_alias=$ac_optarg ;;
252b5132 1101
81ecdfbb
RW
1102 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1103 ac_prev=htmldir ;;
1104 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1105 | --ht=*)
1106 htmldir=$ac_optarg ;;
1107
252b5132
RH
1108 -includedir | --includedir | --includedi | --included | --include \
1109 | --includ | --inclu | --incl | --inc)
1110 ac_prev=includedir ;;
1111 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1112 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 1113 includedir=$ac_optarg ;;
252b5132
RH
1114
1115 -infodir | --infodir | --infodi | --infod | --info | --inf)
1116 ac_prev=infodir ;;
1117 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 1118 infodir=$ac_optarg ;;
252b5132
RH
1119
1120 -libdir | --libdir | --libdi | --libd)
1121 ac_prev=libdir ;;
1122 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 1123 libdir=$ac_optarg ;;
252b5132
RH
1124
1125 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1126 | --libexe | --libex | --libe)
1127 ac_prev=libexecdir ;;
1128 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1129 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 1130 libexecdir=$ac_optarg ;;
252b5132 1131
81ecdfbb
RW
1132 -localedir | --localedir | --localedi | --localed | --locale)
1133 ac_prev=localedir ;;
1134 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1135 localedir=$ac_optarg ;;
1136
252b5132 1137 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1138 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1139 ac_prev=localstatedir ;;
1140 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1141 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1142 localstatedir=$ac_optarg ;;
252b5132
RH
1143
1144 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1145 ac_prev=mandir ;;
1146 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1147 mandir=$ac_optarg ;;
252b5132
RH
1148
1149 -nfp | --nfp | --nf)
1150 # Obsolete; use --without-fp.
1151 with_fp=no ;;
1152
1153 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1154 | --no-cr | --no-c | -n)
252b5132
RH
1155 no_create=yes ;;
1156
1157 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1158 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1159 no_recursion=yes ;;
1160
1161 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1162 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1163 | --oldin | --oldi | --old | --ol | --o)
1164 ac_prev=oldincludedir ;;
1165 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1166 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1167 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1168 oldincludedir=$ac_optarg ;;
252b5132
RH
1169
1170 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1171 ac_prev=prefix ;;
1172 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1173 prefix=$ac_optarg ;;
252b5132
RH
1174
1175 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1176 | --program-pre | --program-pr | --program-p)
1177 ac_prev=program_prefix ;;
1178 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1179 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1180 program_prefix=$ac_optarg ;;
252b5132
RH
1181
1182 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1183 | --program-suf | --program-su | --program-s)
1184 ac_prev=program_suffix ;;
1185 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1186 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1187 program_suffix=$ac_optarg ;;
252b5132
RH
1188
1189 -program-transform-name | --program-transform-name \
1190 | --program-transform-nam | --program-transform-na \
1191 | --program-transform-n | --program-transform- \
1192 | --program-transform | --program-transfor \
1193 | --program-transfo | --program-transf \
1194 | --program-trans | --program-tran \
1195 | --progr-tra | --program-tr | --program-t)
1196 ac_prev=program_transform_name ;;
1197 -program-transform-name=* | --program-transform-name=* \
1198 | --program-transform-nam=* | --program-transform-na=* \
1199 | --program-transform-n=* | --program-transform-=* \
1200 | --program-transform=* | --program-transfor=* \
1201 | --program-transfo=* | --program-transf=* \
1202 | --program-trans=* | --program-tran=* \
1203 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1204 program_transform_name=$ac_optarg ;;
252b5132 1205
81ecdfbb
RW
1206 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1207 ac_prev=pdfdir ;;
1208 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1209 pdfdir=$ac_optarg ;;
1210
1211 -psdir | --psdir | --psdi | --psd | --ps)
1212 ac_prev=psdir ;;
1213 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1214 psdir=$ac_optarg ;;
1215
252b5132
RH
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 silent=yes ;;
1219
1220 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1221 ac_prev=sbindir ;;
1222 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1223 | --sbi=* | --sb=*)
42ecbf5e 1224 sbindir=$ac_optarg ;;
252b5132
RH
1225
1226 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1227 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1228 | --sharedst | --shareds | --shared | --share | --shar \
1229 | --sha | --sh)
1230 ac_prev=sharedstatedir ;;
1231 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1232 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1233 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1234 | --sha=* | --sh=*)
42ecbf5e 1235 sharedstatedir=$ac_optarg ;;
252b5132
RH
1236
1237 -site | --site | --sit)
1238 ac_prev=site ;;
1239 -site=* | --site=* | --sit=*)
42ecbf5e 1240 site=$ac_optarg ;;
252b5132
RH
1241
1242 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1243 ac_prev=srcdir ;;
1244 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1245 srcdir=$ac_optarg ;;
252b5132
RH
1246
1247 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1248 | --syscon | --sysco | --sysc | --sys | --sy)
1249 ac_prev=sysconfdir ;;
1250 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1251 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1252 sysconfdir=$ac_optarg ;;
252b5132
RH
1253
1254 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1255 ac_prev=target_alias ;;
252b5132 1256 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1257 target_alias=$ac_optarg ;;
252b5132
RH
1258
1259 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1260 verbose=yes ;;
1261
42ecbf5e
DJ
1262 -version | --version | --versio | --versi | --vers | -V)
1263 ac_init_version=: ;;
252b5132
RH
1264
1265 -with-* | --with-*)
81ecdfbb 1266 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1267 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269 as_fn_error "invalid package name: $ac_useropt"
1270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1273 *"
1274"with_$ac_useropt"
1275"*) ;;
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
252b5132 1278 esac
81ecdfbb 1279 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1280
1281 -without-* | --without-*)
81ecdfbb 1282 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1283 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285 as_fn_error "invalid package name: $ac_useropt"
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1289 *"
1290"with_$ac_useropt"
1291"*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval with_$ac_useropt=no ;;
252b5132
RH
1296
1297 --x)
1298 # Obsolete; use --with-x.
1299 with_x=yes ;;
1300
1301 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302 | --x-incl | --x-inc | --x-in | --x-i)
1303 ac_prev=x_includes ;;
1304 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1306 x_includes=$ac_optarg ;;
252b5132
RH
1307
1308 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310 ac_prev=x_libraries ;;
1311 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1313 x_libraries=$ac_optarg ;;
252b5132 1314
81ecdfbb
RW
1315 -*) as_fn_error "unrecognized option: \`$ac_option'
1316Try \`$0 --help' for more information."
252b5132
RH
1317 ;;
1318
42ecbf5e
DJ
1319 *=*)
1320 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1321 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1322 case $ac_envvar in #(
1323 '' | [0-9]* | *[!_$as_cr_alnum]* )
1324 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1325 esac
1326 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1327 export $ac_envvar ;;
1328
252b5132 1329 *)
42ecbf5e 1330 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1331 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1333 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
42ecbf5e 1334 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1335 ;;
1336
1337 esac
1338done
1339
1340if test -n "$ac_prev"; then
42ecbf5e 1341 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1342 as_fn_error "missing argument to $ac_option"
252b5132
RH
1343fi
1344
81ecdfbb
RW
1345if test -n "$ac_unrecognized_opts"; then
1346 case $enable_option_checking in
1347 no) ;;
1348 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1349 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1350 esac
81ecdfbb 1351fi
252b5132 1352
81ecdfbb
RW
1353# Check all directory arguments for consistency.
1354for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1355 datadir sysconfdir sharedstatedir localstatedir includedir \
1356 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1357 libdir localedir mandir
252b5132 1358do
81ecdfbb
RW
1359 eval ac_val=\$$ac_var
1360 # Remove trailing slashes.
42ecbf5e 1361 case $ac_val in
81ecdfbb
RW
1362 */ )
1363 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1364 eval $ac_var=\$ac_val;;
252b5132 1365 esac
81ecdfbb
RW
1366 # Be sure to have absolute directory names.
1367 case $ac_val in
1368 [\\/$]* | ?:[\\/]* ) continue;;
1369 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1370 esac
1371 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1372done
1373
42ecbf5e
DJ
1374# There might be people who depend on the old broken behavior: `$host'
1375# used to hold the argument of --host etc.
1376# FIXME: To remove some day.
1377build=$build_alias
1378host=$host_alias
1379target=$target_alias
1380
1381# FIXME: To remove some day.
1382if test "x$host_alias" != x; then
1383 if test "x$build_alias" = x; then
1384 cross_compiling=maybe
81ecdfbb 1385 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
42ecbf5e
DJ
1386 If a cross compiler is detected then cross compile mode will be used." >&2
1387 elif test "x$build_alias" != "x$host_alias"; then
1388 cross_compiling=yes
1389 fi
1390fi
e5a52504 1391
42ecbf5e
DJ
1392ac_tool_prefix=
1393test -n "$host_alias" && ac_tool_prefix=$host_alias-
1394
1395test "$silent" = yes && exec 6>/dev/null
252b5132 1396
252b5132 1397
81ecdfbb
RW
1398ac_pwd=`pwd` && test -n "$ac_pwd" &&
1399ac_ls_di=`ls -di .` &&
1400ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1401 as_fn_error "working directory cannot be determined"
1402test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1403 as_fn_error "pwd does not report name of working directory"
1404
1405
252b5132
RH
1406# Find the source files, if location was not specified.
1407if test -z "$srcdir"; then
1408 ac_srcdir_defaulted=yes
81ecdfbb
RW
1409 # Try the directory containing this script, then the parent directory.
1410 ac_confdir=`$as_dirname -- "$as_myself" ||
1411$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1412 X"$as_myself" : 'X\(//\)[^/]' \| \
1413 X"$as_myself" : 'X\(//\)$' \| \
1414 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1415$as_echo X"$as_myself" |
1416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1417 s//\1/
1418 q
1419 }
1420 /^X\(\/\/\)[^/].*/{
1421 s//\1/
1422 q
1423 }
1424 /^X\(\/\/\)$/{
1425 s//\1/
1426 q
1427 }
1428 /^X\(\/\).*/{
1429 s//\1/
1430 q
1431 }
1432 s/.*/./; q'`
252b5132 1433 srcdir=$ac_confdir
81ecdfbb 1434 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1435 srcdir=..
1436 fi
1437else
1438 ac_srcdir_defaulted=no
1439fi
81ecdfbb
RW
1440if test ! -r "$srcdir/$ac_unique_file"; then
1441 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1442 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1443fi
1444ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1445ac_abs_confdir=`(
1446 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1447 pwd)`
1448# When building in place, set srcdir=.
1449if test "$ac_abs_confdir" = "$ac_pwd"; then
1450 srcdir=.
1451fi
1452# Remove unnecessary trailing slashes from srcdir.
1453# Double slashes in file names in object file debugging info
1454# mess up M-x gdb in Emacs.
1455case $srcdir in
1456*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457esac
1458for ac_var in $ac_precious_vars; do
1459 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1460 eval ac_env_${ac_var}_value=\$${ac_var}
1461 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1462 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1463done
252b5132 1464
42ecbf5e
DJ
1465#
1466# Report the --help message.
1467#
1468if test "$ac_init_help" = "long"; then
1469 # Omit some internal or obsolete options to make the list less imposing.
1470 # This message is too long to be a string in the A/UX 3.1 sh.
1471 cat <<_ACEOF
1472\`configure' configures this package to adapt to many kinds of systems.
252b5132 1473
42ecbf5e 1474Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1475
42ecbf5e
DJ
1476To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1478
42ecbf5e 1479Defaults for the options are specified in brackets.
ac48eca1 1480
42ecbf5e
DJ
1481Configuration:
1482 -h, --help display this help and exit
1483 --help=short display options specific to this package
1484 --help=recursive display the short help of all the included packages
1485 -V, --version display version information and exit
1486 -q, --quiet, --silent do not print \`checking...' messages
1487 --cache-file=FILE cache test results in FILE [disabled]
1488 -C, --config-cache alias for \`--cache-file=config.cache'
1489 -n, --no-create do not create output files
1490 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1491
42ecbf5e
DJ
1492Installation directories:
1493 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1494 [$ac_default_prefix]
42ecbf5e 1495 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1496 [PREFIX]
ac48eca1 1497
42ecbf5e
DJ
1498By default, \`make install' will install all the files in
1499\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1500an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501for instance \`--prefix=\$HOME'.
ac48eca1 1502
42ecbf5e 1503For better control, use the options below.
ac48eca1 1504
42ecbf5e 1505Fine tuning of the installation directories:
81ecdfbb
RW
1506 --bindir=DIR user executables [EPREFIX/bin]
1507 --sbindir=DIR system admin executables [EPREFIX/sbin]
1508 --libexecdir=DIR program executables [EPREFIX/libexec]
1509 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1510 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1511 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1512 --libdir=DIR object code libraries [EPREFIX/lib]
1513 --includedir=DIR C header files [PREFIX/include]
1514 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1515 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1516 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1517 --infodir=DIR info documentation [DATAROOTDIR/info]
1518 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1519 --mandir=DIR man documentation [DATAROOTDIR/man]
1520 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1521 --htmldir=DIR html documentation [DOCDIR]
1522 --dvidir=DIR dvi documentation [DOCDIR]
1523 --pdfdir=DIR pdf documentation [DOCDIR]
1524 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1525_ACEOF
ac48eca1 1526
42ecbf5e 1527 cat <<\_ACEOF
252b5132 1528
42ecbf5e
DJ
1529Program names:
1530 --program-prefix=PREFIX prepend PREFIX to installed program names
1531 --program-suffix=SUFFIX append SUFFIX to installed program names
1532 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1533
42ecbf5e
DJ
1534System types:
1535 --build=BUILD configure for building on BUILD [guessed]
1536 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1537 --target=TARGET configure for building compilers for TARGET [HOST]
1538_ACEOF
252b5132 1539fi
252b5132 1540
42ecbf5e 1541if test -n "$ac_init_help"; then
252b5132 1542
42ecbf5e 1543 cat <<\_ACEOF
252b5132 1544
42ecbf5e 1545Optional Features:
81ecdfbb 1546 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1549 --disable-dependency-tracking speeds up one-time build
1550 --enable-dependency-tracking do not reject slow dependency extractors
5691d22d 1551 --enable-plugins Enable support for plugins (defaults no)
d053aef8 1552 --disable-largefile omit support for large files
81ecdfbb
RW
1553 --enable-shared[=PKGS] build shared libraries [default=yes]
1554 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1555 --enable-fast-install[=PKGS]
1556 optimize for fast installation [default=yes]
42ecbf5e
DJ
1557 --disable-libtool-lock avoid locking (might break parallel builds)
1558 --enable-targets alternative target configurations
241a6c40
AM
1559 --enable-werror treat compile warnings as errors
1560 --enable-build-warnings enable build-time compiler warnings
42ecbf5e
DJ
1561 --disable-nls do not use Native Language Support
1562 --enable-maintainer-mode enable make rules and dependencies not useful
1563 (and sometimes confusing) to the casual installer
5ba684e2 1564 --disable-rpath do not hardcode runtime library paths
42ecbf5e
DJ
1565
1566Optional Packages:
1567 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1568 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1569 --with-pic try to use only PIC/non-PIC objects [default=use
1570 both]
1571 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5ba684e2
NC
1572 --with-gnu-ld assume the C compiler uses GNU ld default=no
1573 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1574 --without-libiconv-prefix don't search for libiconv in includedir and libdir
252b5132 1575
42ecbf5e
DJ
1576Some influential environment variables:
1577 CC C compiler command
1578 CFLAGS C compiler flags
1579 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1580 nonstandard directory <lib dir>
81ecdfbb
RW
1581 LIBS libraries to pass to the linker, e.g. -l<library>
1582 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1583 you have headers in a nonstandard directory <include dir>
42ecbf5e 1584 CPP C preprocessor
81ecdfbb
RW
1585 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1586 the first program found out of: `bison -y', `byacc', `yacc'.
1587 YFLAGS The list of arguments that will be passed by default to $YACC.
1588 This script will default YFLAGS to the empty string to avoid a
1589 default value of `-d' given by some make applications.
e5a52504 1590
42ecbf5e
DJ
1591Use these variables to override the choices made by `configure' or to help
1592it to find libraries and programs with nonstandard names/locations.
1593
81ecdfbb 1594Report bugs to the package provider.
42ecbf5e 1595_ACEOF
81ecdfbb 1596ac_status=$?
252b5132
RH
1597fi
1598
42ecbf5e
DJ
1599if test "$ac_init_help" = "recursive"; then
1600 # If there are subdirs, report their specific --help.
42ecbf5e 1601 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1602 test -d "$ac_dir" ||
1603 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1604 continue
42ecbf5e
DJ
1605 ac_builddir=.
1606
81ecdfbb
RW
1607case "$ac_dir" in
1608.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609*)
1610 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611 # A ".." for each directory in $ac_dir_suffix.
1612 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613 case $ac_top_builddir_sub in
1614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616 esac ;;
1617esac
1618ac_abs_top_builddir=$ac_pwd
1619ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620# for backward compatibility:
1621ac_top_builddir=$ac_top_build_prefix
252b5132 1622
42ecbf5e 1623case $srcdir in
81ecdfbb 1624 .) # We are building in place.
42ecbf5e 1625 ac_srcdir=.
81ecdfbb
RW
1626 ac_top_srcdir=$ac_top_builddir_sub
1627 ac_abs_top_srcdir=$ac_pwd ;;
1628 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1629 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1630 ac_top_srcdir=$srcdir
1631 ac_abs_top_srcdir=$srcdir ;;
1632 *) # Relative name.
1633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634 ac_top_srcdir=$ac_top_build_prefix$srcdir
1635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
252b5132 1636esac
81ecdfbb
RW
1637ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1638
1639 cd "$ac_dir" || { ac_status=$?; continue; }
1640 # Check for guested configure.
1641 if test -f "$ac_srcdir/configure.gnu"; then
1642 echo &&
1643 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644 elif test -f "$ac_srcdir/configure"; then
1645 echo &&
1646 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1647 else
81ecdfbb
RW
1648 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649 fi || ac_status=$?
1650 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e
DJ
1651 done
1652fi
5d64ca4e 1653
81ecdfbb 1654test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1655if $ac_init_version; then
1656 cat <<\_ACEOF
81ecdfbb
RW
1657configure
1658generated by GNU Autoconf 2.64
5d64ca4e 1659
81ecdfbb 1660Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
1661This configure script is free software; the Free Software Foundation
1662gives unlimited permission to copy, distribute and modify it.
1663_ACEOF
81ecdfbb 1664 exit
42ecbf5e 1665fi
252b5132 1666
81ecdfbb
RW
1667## ------------------------ ##
1668## Autoconf initialization. ##
1669## ------------------------ ##
e5a52504 1670
81ecdfbb
RW
1671# ac_fn_c_try_compile LINENO
1672# --------------------------
1673# Try to compile conftest.$ac_ext, and return whether this succeeded.
1674ac_fn_c_try_compile ()
42ecbf5e 1675{
81ecdfbb
RW
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext
1678 if { { ac_try="$ac_compile"
1679case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682esac
1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684$as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_compile") 2>conftest.err
1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1691 fi
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest.$ac_objext; then :
1697 ac_retval=0
1698else
1699 $as_echo "$as_me: failed program was:" >&5
1700sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1701
81ecdfbb
RW
1702 ac_retval=1
1703fi
1704 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1705 return $ac_retval
42ecbf5e 1706
81ecdfbb
RW
1707} # ac_fn_c_try_compile
1708
1709# ac_fn_c_try_link LINENO
1710# -----------------------
1711# Try to link conftest.$ac_ext, and return whether this succeeded.
1712ac_fn_c_try_link ()
1713{
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 rm -f conftest.$ac_objext conftest$ac_exeext
1716 if { { ac_try="$ac_link"
1717case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_link") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1729 fi
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && {
1732 test -z "$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 } && test -s conftest$ac_exeext && {
1735 test "$cross_compiling" = yes ||
1736 $as_test_x conftest$ac_exeext
1737 }; then :
1738 ac_retval=0
1739else
1740 $as_echo "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=1
1744fi
1745 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1746 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1747 # interfere with the next link command; also delete a directory that is
1748 # left behind by Apple's compiler. We do this before executing the actions.
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751 return $ac_retval
1752
1753} # ac_fn_c_try_link
1754
1755# ac_fn_c_try_cpp LINENO
1756# ----------------------
1757# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1758ac_fn_c_try_cpp ()
1759{
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_cpp conftest.$ac_ext"
1762case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1774 fi
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } >/dev/null && {
1777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1778 test ! -s conftest.err
1779 }; then :
1780 ac_retval=0
1781else
1782 $as_echo "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
1784
1785 ac_retval=1
1786fi
1787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788 return $ac_retval
1789
1790} # ac_fn_c_try_cpp
1791
1792# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1793# -------------------------------------------------------
1794# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1795# the include files in INCLUDES and setting the cache variable VAR
1796# accordingly.
1797ac_fn_c_check_header_mongrel ()
1798{
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802$as_echo_n "checking for $2... " >&6; }
1803if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1804 $as_echo_n "(cached) " >&6
1805fi
1806eval ac_res=\$$3
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808$as_echo "$ac_res" >&6; }
1809else
1810 # Is the header compilable?
1811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1812$as_echo_n "checking $2 usability... " >&6; }
1813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814/* end confdefs.h. */
1815$4
1816#include <$2>
1817_ACEOF
1818if ac_fn_c_try_compile "$LINENO"; then :
1819 ac_header_compiler=yes
1820else
1821 ac_header_compiler=no
1822fi
1823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1825$as_echo "$ac_header_compiler" >&6; }
1826
1827# Is the header present?
1828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1829$as_echo_n "checking $2 presence... " >&6; }
1830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831/* end confdefs.h. */
1832#include <$2>
1833_ACEOF
1834if ac_fn_c_try_cpp "$LINENO"; then :
1835 ac_header_preproc=yes
1836else
1837 ac_header_preproc=no
1838fi
1839rm -f conftest.err conftest.$ac_ext
1840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1841$as_echo "$ac_header_preproc" >&6; }
1842
1843# So? What about this header?
1844case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1845 yes:no: )
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1847$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1849$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1850 ;;
1851 no:yes:* )
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1853$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1855$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1857$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1859$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862 ;;
1863esac
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865$as_echo_n "checking for $2... " >&6; }
1866if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1867 $as_echo_n "(cached) " >&6
1868else
1869 eval "$3=\$ac_header_compiler"
1870fi
1871eval ac_res=\$$3
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873$as_echo "$ac_res" >&6; }
1874fi
1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876
1877} # ac_fn_c_check_header_mongrel
1878
1879# ac_fn_c_try_run LINENO
1880# ----------------------
1881# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1882# that executables *can* be run.
1883ac_fn_c_try_run ()
1884{
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 if { { ac_try="$ac_link"
1887case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890esac
1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892$as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>&5
1894 ac_status=$?
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1897 { { case "(($ac_try" in
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1900esac
1901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902$as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_try") 2>&5
1904 ac_status=$?
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; }; }; then :
1907 ac_retval=0
1908else
1909 $as_echo "$as_me: program exited with status $ac_status" >&5
1910 $as_echo "$as_me: failed program was:" >&5
1911sed 's/^/| /' conftest.$ac_ext >&5
1912
1913 ac_retval=$ac_status
1914fi
1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917 return $ac_retval
1918
1919} # ac_fn_c_try_run
1920
1921# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1922# -------------------------------------------------------
1923# Tests whether HEADER exists and can be compiled using the include files in
1924# INCLUDES, setting the cache variable VAR accordingly.
1925ac_fn_c_check_header_compile ()
1926{
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929$as_echo_n "checking for $2... " >&6; }
1930if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1932else
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934/* end confdefs.h. */
1935$4
1936#include <$2>
1937_ACEOF
1938if ac_fn_c_try_compile "$LINENO"; then :
1939 eval "$3=yes"
1940else
1941 eval "$3=no"
1942fi
1943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944fi
1945eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947$as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1949
1950} # ac_fn_c_check_header_compile
1951
1952# ac_fn_c_check_func LINENO FUNC VAR
1953# ----------------------------------
1954# Tests whether FUNC exists, setting the cache variable VAR accordingly
1955ac_fn_c_check_func ()
1956{
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959$as_echo_n "checking for $2... " >&6; }
1960if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 $as_echo_n "(cached) " >&6
1962else
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964/* end confdefs.h. */
1965/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1967#define $2 innocuous_$2
1968
1969/* System header to define __stub macros and hopefully few prototypes,
1970 which can conflict with char $2 (); below.
1971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1972 <limits.h> exists even on freestanding compilers. */
1973
1974#ifdef __STDC__
1975# include <limits.h>
1976#else
1977# include <assert.h>
1978#endif
1979
1980#undef $2
1981
1982/* Override any GCC internal prototype to avoid an error.
1983 Use char because int might match the return type of a GCC
1984 builtin and then its argument prototype would still apply. */
1985#ifdef __cplusplus
1986extern "C"
1987#endif
1988char $2 ();
1989/* The GNU C library defines this for functions which it implements
1990 to always fail with ENOSYS. Some functions are actually named
1991 something starting with __ and the normal name is an alias. */
1992#if defined __stub_$2 || defined __stub___$2
1993choke me
1994#endif
1995
1996int
1997main ()
1998{
1999return $2 ();
2000 ;
2001 return 0;
2002}
2003_ACEOF
2004if ac_fn_c_try_link "$LINENO"; then :
2005 eval "$3=yes"
2006else
2007 eval "$3=no"
2008fi
2009rm -f core conftest.err conftest.$ac_objext \
2010 conftest$ac_exeext conftest.$ac_ext
2011fi
2012eval ac_res=\$$3
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014$as_echo "$ac_res" >&6; }
2015 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2016
2017} # ac_fn_c_check_func
2018
2019# ac_fn_c_check_decl LINENO SYMBOL VAR
2020# ------------------------------------
2021# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2022ac_fn_c_check_decl ()
2023{
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2026$as_echo_n "checking whether $2 is declared... " >&6; }
2027if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028 $as_echo_n "(cached) " >&6
2029else
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031/* end confdefs.h. */
2032$4
2033int
2034main ()
2035{
2036#ifndef $2
2037 (void) $2;
2038#endif
2039
2040 ;
2041 return 0;
2042}
2043_ACEOF
2044if ac_fn_c_try_compile "$LINENO"; then :
2045 eval "$3=yes"
2046else
2047 eval "$3=no"
2048fi
2049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050fi
2051eval ac_res=\$$3
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053$as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2055
2056} # ac_fn_c_check_decl
2057cat >config.log <<_ACEOF
2058This file contains any messages produced by compilers while
2059running configure, to aid debugging if configure makes a mistake.
2060
2061It was created by $as_me, which was
2062generated by GNU Autoconf 2.64. Invocation command line was
2063
2064 $ $0 $@
2065
2066_ACEOF
2067exec 5>>config.log
2068{
2069cat <<_ASUNAME
2070## --------- ##
2071## Platform. ##
2072## --------- ##
2073
2074hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2075uname -m = `(uname -m) 2>/dev/null || echo unknown`
2076uname -r = `(uname -r) 2>/dev/null || echo unknown`
2077uname -s = `(uname -s) 2>/dev/null || echo unknown`
2078uname -v = `(uname -v) 2>/dev/null || echo unknown`
2079
2080/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2081/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2082
2083/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2084/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2085/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2086/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2087/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2088/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2089/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2090
2091_ASUNAME
2092
2093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094for as_dir in $PATH
2095do
2096 IFS=$as_save_IFS
2097 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2098 $as_echo "PATH: $as_dir"
2099 done
2100IFS=$as_save_IFS
e5a52504 2101
42ecbf5e 2102} >&5
ceae3e33 2103
42ecbf5e 2104cat >&5 <<_ACEOF
e5a52504 2105
42ecbf5e
DJ
2106
2107## ----------- ##
2108## Core tests. ##
2109## ----------- ##
2110
2111_ACEOF
2112
2113
2114# Keep a trace of the command line.
2115# Strip out --no-create and --no-recursion so they do not pile up.
2116# Strip out --silent because we don't want to record it for future runs.
2117# Also quote any args containing shell meta-characters.
2118# Make two passes to allow for proper duplicate-argument suppression.
2119ac_configure_args=
2120ac_configure_args0=
2121ac_configure_args1=
42ecbf5e
DJ
2122ac_must_keep_next=false
2123for ac_pass in 1 2
2124do
2125 for ac_arg
2126 do
2127 case $ac_arg in
2128 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2130 | -silent | --silent | --silen | --sile | --sil)
2131 continue ;;
81ecdfbb
RW
2132 *\'*)
2133 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2134 esac
2135 case $ac_pass in
81ecdfbb 2136 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2137 2)
81ecdfbb 2138 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2139 if test $ac_must_keep_next = true; then
2140 ac_must_keep_next=false # Got value, back to normal.
2141 else
2142 case $ac_arg in
2143 *=* | --config-cache | -C | -disable-* | --disable-* \
2144 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2145 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2146 | -with-* | --with-* | -without-* | --without-* | --x)
2147 case "$ac_configure_args0 " in
2148 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2149 esac
2150 ;;
2151 -* ) ac_must_keep_next=true ;;
2152 esac
2153 fi
81ecdfbb 2154 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2155 ;;
2156 esac
2157 done
2158done
81ecdfbb
RW
2159{ ac_configure_args0=; unset ac_configure_args0;}
2160{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2161
2162# When interrupted or exit'd, cleanup temporary files, and complete
2163# config.log. We remove comments because anyway the quotes in there
2164# would cause problems or look ugly.
81ecdfbb
RW
2165# WARNING: Use '\'' to represent an apostrophe within the trap.
2166# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2167trap 'exit_status=$?
2168 # Save into config.log some information that might help in debugging.
2169 {
2170 echo
2171
2172 cat <<\_ASBOX
2173## ---------------- ##
2174## Cache variables. ##
2175## ---------------- ##
2176_ASBOX
2177 echo
2178 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2179(
2180 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2181 eval ac_val=\$$ac_var
2182 case $ac_val in #(
2183 *${as_nl}*)
2184 case $ac_var in #(
2185 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2186$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2187 esac
2188 case $ac_var in #(
2189 _ | IFS | as_nl) ;; #(
2190 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2191 *) { eval $ac_var=; unset $ac_var;} ;;
2192 esac ;;
2193 esac
2194 done
42ecbf5e 2195 (set) 2>&1 |
81ecdfbb
RW
2196 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2197 *${as_nl}ac_space=\ *)
42ecbf5e 2198 sed -n \
81ecdfbb
RW
2199 "s/'\''/'\''\\\\'\'''\''/g;
2200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2201 ;; #(
42ecbf5e 2202 *)
81ecdfbb 2203 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2204 ;;
81ecdfbb
RW
2205 esac |
2206 sort
2207)
42ecbf5e
DJ
2208 echo
2209
2210 cat <<\_ASBOX
2211## ----------------- ##
2212## Output variables. ##
2213## ----------------- ##
2214_ASBOX
2215 echo
2216 for ac_var in $ac_subst_vars
2217 do
81ecdfbb
RW
2218 eval ac_val=\$$ac_var
2219 case $ac_val in
2220 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2221 esac
2222 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2223 done | sort
2224 echo
2225
2226 if test -n "$ac_subst_files"; then
2227 cat <<\_ASBOX
81ecdfbb
RW
2228## ------------------- ##
2229## File substitutions. ##
2230## ------------------- ##
42ecbf5e
DJ
2231_ASBOX
2232 echo
2233 for ac_var in $ac_subst_files
2234 do
81ecdfbb
RW
2235 eval ac_val=\$$ac_var
2236 case $ac_val in
2237 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2238 esac
2239 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2240 done | sort
2241 echo
2242 fi
2243
2244 if test -s confdefs.h; then
2245 cat <<\_ASBOX
2246## ----------- ##
2247## confdefs.h. ##
2248## ----------- ##
2249_ASBOX
2250 echo
81ecdfbb 2251 cat confdefs.h
42ecbf5e
DJ
2252 echo
2253 fi
2254 test "$ac_signal" != 0 &&
81ecdfbb
RW
2255 $as_echo "$as_me: caught signal $ac_signal"
2256 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2257 } >&5
81ecdfbb
RW
2258 rm -f core *.core core.conftest.* &&
2259 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2260 exit $exit_status
81ecdfbb 2261' 0
42ecbf5e 2262for ac_signal in 1 2 13 15; do
81ecdfbb 2263 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2264done
2265ac_signal=0
2266
2267# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2268rm -f -r conftest* confdefs.h
2269
2270$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2271
2272# Predefined preprocessor variables.
2273
2274cat >>confdefs.h <<_ACEOF
2275#define PACKAGE_NAME "$PACKAGE_NAME"
2276_ACEOF
2277
42ecbf5e
DJ
2278cat >>confdefs.h <<_ACEOF
2279#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2280_ACEOF
2281
42ecbf5e
DJ
2282cat >>confdefs.h <<_ACEOF
2283#define PACKAGE_VERSION "$PACKAGE_VERSION"
2284_ACEOF
2285
42ecbf5e
DJ
2286cat >>confdefs.h <<_ACEOF
2287#define PACKAGE_STRING "$PACKAGE_STRING"
2288_ACEOF
2289
42ecbf5e
DJ
2290cat >>confdefs.h <<_ACEOF
2291#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2292_ACEOF
2293
81ecdfbb
RW
2294cat >>confdefs.h <<_ACEOF
2295#define PACKAGE_URL "$PACKAGE_URL"
2296_ACEOF
2297
42ecbf5e
DJ
2298
2299# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2300# Prefer an explicitly selected file to automatically selected ones.
2301ac_site_file1=NONE
2302ac_site_file2=NONE
2303if test -n "$CONFIG_SITE"; then
2304 ac_site_file1=$CONFIG_SITE
2305elif test "x$prefix" != xNONE; then
2306 ac_site_file1=$prefix/share/config.site
2307 ac_site_file2=$prefix/etc/config.site
2308else
2309 ac_site_file1=$ac_default_prefix/share/config.site
2310 ac_site_file2=$ac_default_prefix/etc/config.site
2311fi
2312for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2313do
2314 test "x$ac_site_file" = xNONE && continue
42ecbf5e 2315 if test -r "$ac_site_file"; then
81ecdfbb
RW
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2317$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e
DJ
2318 sed 's/^/| /' "$ac_site_file" >&5
2319 . "$ac_site_file"
2320 fi
2321done
2322
2323if test -r "$cache_file"; then
2324 # Some versions of bash will fail to source /dev/null (special
2325 # files actually), so we avoid doing that.
2326 if test -f "$cache_file"; then
81ecdfbb
RW
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2328$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2329 case $cache_file in
81ecdfbb
RW
2330 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2331 *) . "./$cache_file";;
42ecbf5e
DJ
2332 esac
2333 fi
2334else
81ecdfbb
RW
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2336$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2337 >$cache_file
2338fi
2339
2340# Check that the precious variables saved in the cache have kept the same
2341# value.
2342ac_cache_corrupted=false
81ecdfbb 2343for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2344 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2345 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2346 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2347 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2348 case $ac_old_set,$ac_new_set in
2349 set,)
81ecdfbb
RW
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2351$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2352 ac_cache_corrupted=: ;;
2353 ,set)
81ecdfbb
RW
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2355$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2356 ac_cache_corrupted=: ;;
2357 ,);;
2358 *)
2359 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2360 # differences in whitespace do not lead to failure.
2361 ac_old_val_w=`echo x $ac_old_val`
2362 ac_new_val_w=`echo x $ac_new_val`
2363 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2365$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2366 ac_cache_corrupted=:
2367 else
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2369$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2370 eval $ac_var=\$ac_old_val
2371 fi
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2373$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2375$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2376 fi;;
2377 esac
2378 # Pass precious variables to config.status.
2379 if test "$ac_new_set" = set; then
2380 case $ac_new_val in
81ecdfbb 2381 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2382 *) ac_arg=$ac_var=$ac_new_val ;;
2383 esac
2384 case " $ac_configure_args " in
2385 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2386 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2387 esac
2388 fi
2389done
2390if $ac_cache_corrupted; then
81ecdfbb
RW
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2394$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2395 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2396fi
81ecdfbb
RW
2397## -------------------- ##
2398## Main body of script. ##
2399## -------------------- ##
42ecbf5e
DJ
2400
2401ac_ext=c
2402ac_cpp='$CPP $CPPFLAGS'
2403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2405ac_compiler_gnu=$ac_cv_c_compiler_gnu
2406
2407
2408
42ecbf5e 2409
da594c4a 2410
42ecbf5e
DJ
2411
2412
2413ac_aux_dir=
81ecdfbb
RW
2414for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2415 for ac_t in install-sh install.sh shtool; do
2416 if test -f "$ac_dir/$ac_t"; then
2417 ac_aux_dir=$ac_dir
2418 ac_install_sh="$ac_aux_dir/$ac_t -c"
2419 break 2
2420 fi
2421 done
42ecbf5e
DJ
2422done
2423if test -z "$ac_aux_dir"; then
81ecdfbb 2424 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2425fi
81ecdfbb
RW
2426
2427# These three variables are undocumented and unsupported,
2428# and are intended to be withdrawn in a future Autoconf release.
2429# They can cause serious problems if a builder's source tree is in a directory
2430# whose full name contains unusual characters.
2431ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2432ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2433ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2434
42ecbf5e
DJ
2435
2436# Make sure we can run config.sub.
81ecdfbb
RW
2437$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2438 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2439
2440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2441$as_echo_n "checking build system type... " >&6; }
2442if test "${ac_cv_build+set}" = set; then :
2443 $as_echo_n "(cached) " >&6
2444else
2445 ac_build_alias=$build_alias
2446test "x$ac_build_alias" = x &&
2447 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2448test "x$ac_build_alias" = x &&
2449 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2450ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2451 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2452
2453fi
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2455$as_echo "$ac_cv_build" >&6; }
2456case $ac_cv_build in
2457*-*-*) ;;
2458*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2459esac
42ecbf5e 2460build=$ac_cv_build
81ecdfbb
RW
2461ac_save_IFS=$IFS; IFS='-'
2462set x $ac_cv_build
2463shift
2464build_cpu=$1
2465build_vendor=$2
2466shift; shift
2467# Remember, the first character of IFS is used to create $*,
2468# except with old shells:
2469build_os=$*
2470IFS=$ac_save_IFS
2471case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2472
2473
81ecdfbb
RW
2474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2475$as_echo_n "checking host system type... " >&6; }
2476if test "${ac_cv_host+set}" = set; then :
2477 $as_echo_n "(cached) " >&6
42ecbf5e 2478else
81ecdfbb
RW
2479 if test "x$host_alias" = x; then
2480 ac_cv_host=$ac_cv_build
2481else
2482 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2483 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2484fi
42ecbf5e
DJ
2485
2486fi
81ecdfbb
RW
2487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2488$as_echo "$ac_cv_host" >&6; }
2489case $ac_cv_host in
2490*-*-*) ;;
2491*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2492esac
42ecbf5e 2493host=$ac_cv_host
81ecdfbb
RW
2494ac_save_IFS=$IFS; IFS='-'
2495set x $ac_cv_host
2496shift
2497host_cpu=$1
2498host_vendor=$2
2499shift; shift
2500# Remember, the first character of IFS is used to create $*,
2501# except with old shells:
2502host_os=$*
2503IFS=$ac_save_IFS
2504case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2505
2506
81ecdfbb
RW
2507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2508$as_echo_n "checking target system type... " >&6; }
2509if test "${ac_cv_target+set}" = set; then :
2510 $as_echo_n "(cached) " >&6
2511else
2512 if test "x$target_alias" = x; then
2513 ac_cv_target=$ac_cv_host
42ecbf5e 2514else
81ecdfbb
RW
2515 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2516 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2517fi
42ecbf5e
DJ
2518
2519fi
81ecdfbb
RW
2520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2521$as_echo "$ac_cv_target" >&6; }
2522case $ac_cv_target in
2523*-*-*) ;;
2524*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2525esac
42ecbf5e 2526target=$ac_cv_target
81ecdfbb
RW
2527ac_save_IFS=$IFS; IFS='-'
2528set x $ac_cv_target
2529shift
2530target_cpu=$1
2531target_vendor=$2
2532shift; shift
2533# Remember, the first character of IFS is used to create $*,
2534# except with old shells:
2535target_os=$*
2536IFS=$ac_save_IFS
2537case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2538
2539
2540# The aliases save the names the user supplied, while $host etc.
2541# will get canonicalized.
2542test -n "$target_alias" &&
2543 test "$program_prefix$program_suffix$program_transform_name" = \
2544 NONENONEs,x,x, &&
2545 program_prefix=${target_alias}-
2546ac_ext=c
2547ac_cpp='$CPP $CPPFLAGS'
2548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2550ac_compiler_gnu=$ac_cv_c_compiler_gnu
2551if test -n "$ac_tool_prefix"; then
2552 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2553set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555$as_echo_n "checking for $ac_word... " >&6; }
2556if test "${ac_cv_prog_CC+set}" = set; then :
2557 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2558else
2559 if test -n "$CC"; then
2560 ac_cv_prog_CC="$CC" # Let the user override the test.
2561else
2562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563for as_dir in $PATH
2564do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2569 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2571 break 2
2572 fi
2573done
81ecdfbb
RW
2574 done
2575IFS=$as_save_IFS
42ecbf5e
DJ
2576
2577fi
2578fi
2579CC=$ac_cv_prog_CC
2580if test -n "$CC"; then
81ecdfbb
RW
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2582$as_echo "$CC" >&6; }
42ecbf5e 2583else
81ecdfbb
RW
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585$as_echo "no" >&6; }
42ecbf5e
DJ
2586fi
2587
81ecdfbb 2588
42ecbf5e
DJ
2589fi
2590if test -z "$ac_cv_prog_CC"; then
2591 ac_ct_CC=$CC
2592 # Extract the first word of "gcc", so it can be a program name with args.
2593set dummy gcc; ac_word=$2
81ecdfbb
RW
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595$as_echo_n "checking for $ac_word... " >&6; }
2596if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2597 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2598else
2599 if test -n "$ac_ct_CC"; then
2600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2601else
2602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603for as_dir in $PATH
2604do
2605 IFS=$as_save_IFS
2606 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2609 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2611 break 2
2612 fi
2613done
81ecdfbb
RW
2614 done
2615IFS=$as_save_IFS
42ecbf5e
DJ
2616
2617fi
2618fi
2619ac_ct_CC=$ac_cv_prog_ac_ct_CC
2620if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2622$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2623else
81ecdfbb
RW
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625$as_echo "no" >&6; }
42ecbf5e
DJ
2626fi
2627
81ecdfbb
RW
2628 if test "x$ac_ct_CC" = x; then
2629 CC=""
2630 else
2631 case $cross_compiling:$ac_tool_warned in
2632yes:)
2633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2635ac_tool_warned=yes ;;
2636esac
2637 CC=$ac_ct_CC
2638 fi
42ecbf5e
DJ
2639else
2640 CC="$ac_cv_prog_CC"
2641fi
2642
2643if test -z "$CC"; then
81ecdfbb
RW
2644 if test -n "$ac_tool_prefix"; then
2645 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
42ecbf5e 2646set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648$as_echo_n "checking for $ac_word... " >&6; }
2649if test "${ac_cv_prog_CC+set}" = set; then :
2650 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2651else
2652 if test -n "$CC"; then
2653 ac_cv_prog_CC="$CC" # Let the user override the test.
2654else
2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656for as_dir in $PATH
2657do
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2662 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2664 break 2
2665 fi
2666done
81ecdfbb
RW
2667 done
2668IFS=$as_save_IFS
42ecbf5e
DJ
2669
2670fi
2671fi
2672CC=$ac_cv_prog_CC
2673if test -n "$CC"; then
81ecdfbb
RW
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2675$as_echo "$CC" >&6; }
42ecbf5e 2676else
81ecdfbb
RW
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678$as_echo "no" >&6; }
42ecbf5e
DJ
2679fi
2680
81ecdfbb
RW
2681
2682 fi
42ecbf5e 2683fi
81ecdfbb 2684if test -z "$CC"; then
42ecbf5e
DJ
2685 # Extract the first word of "cc", so it can be a program name with args.
2686set dummy cc; ac_word=$2
81ecdfbb
RW
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688$as_echo_n "checking for $ac_word... " >&6; }
2689if test "${ac_cv_prog_CC+set}" = set; then :
2690 $as_echo_n "(cached) " >&6
42ecbf5e 2691else
81ecdfbb
RW
2692 if test -n "$CC"; then
2693 ac_cv_prog_CC="$CC" # Let the user override the test.
42ecbf5e 2694else
81ecdfbb 2695 ac_prog_rejected=no
42ecbf5e
DJ
2696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697for as_dir in $PATH
2698do
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2703 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2704 ac_prog_rejected=yes
2705 continue
2706 fi
2707 ac_cv_prog_CC="cc"
2708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2709 break 2
2710 fi
2711done
81ecdfbb
RW
2712 done
2713IFS=$as_save_IFS
42ecbf5e
DJ
2714
2715if test $ac_prog_rejected = yes; then
2716 # We found a bogon in the path, so make sure we never use it.
2717 set dummy $ac_cv_prog_CC
2718 shift
2719 if test $# != 0; then
2720 # We chose a different compiler from the bogus one.
2721 # However, it has the same basename, so the bogon will be chosen
2722 # first if we set CC to just the basename; use the full file name.
2723 shift
2724 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2725 fi
2726fi
2727fi
2728fi
2729CC=$ac_cv_prog_CC
2730if test -n "$CC"; then
81ecdfbb
RW
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2732$as_echo "$CC" >&6; }
42ecbf5e 2733else
81ecdfbb
RW
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735$as_echo "no" >&6; }
42ecbf5e
DJ
2736fi
2737
81ecdfbb 2738
42ecbf5e
DJ
2739fi
2740if test -z "$CC"; then
2741 if test -n "$ac_tool_prefix"; then
81ecdfbb 2742 for ac_prog in cl.exe
42ecbf5e
DJ
2743 do
2744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2745set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747$as_echo_n "checking for $ac_word... " >&6; }
2748if test "${ac_cv_prog_CC+set}" = set; then :
2749 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2750else
2751 if test -n "$CC"; then
2752 ac_cv_prog_CC="$CC" # Let the user override the test.
2753else
2754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755for as_dir in $PATH
2756do
2757 IFS=$as_save_IFS
2758 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2761 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2763 break 2
2764 fi
2765done
81ecdfbb
RW
2766 done
2767IFS=$as_save_IFS
42ecbf5e
DJ
2768
2769fi
2770fi
2771CC=$ac_cv_prog_CC
2772if test -n "$CC"; then
81ecdfbb
RW
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2774$as_echo "$CC" >&6; }
42ecbf5e 2775else
81ecdfbb
RW
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777$as_echo "no" >&6; }
42ecbf5e
DJ
2778fi
2779
81ecdfbb 2780
42ecbf5e
DJ
2781 test -n "$CC" && break
2782 done
2783fi
2784if test -z "$CC"; then
2785 ac_ct_CC=$CC
81ecdfbb 2786 for ac_prog in cl.exe
42ecbf5e
DJ
2787do
2788 # Extract the first word of "$ac_prog", so it can be a program name with args.
2789set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791$as_echo_n "checking for $ac_word... " >&6; }
2792if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2793 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2794else
2795 if test -n "$ac_ct_CC"; then
2796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2797else
2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799for as_dir in $PATH
2800do
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2805 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2807 break 2
2808 fi
2809done
81ecdfbb
RW
2810 done
2811IFS=$as_save_IFS
42ecbf5e
DJ
2812
2813fi
2814fi
2815ac_ct_CC=$ac_cv_prog_ac_ct_CC
2816if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2818$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2819else
81ecdfbb
RW
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821$as_echo "no" >&6; }
42ecbf5e
DJ
2822fi
2823
81ecdfbb 2824
42ecbf5e
DJ
2825 test -n "$ac_ct_CC" && break
2826done
2827
81ecdfbb
RW
2828 if test "x$ac_ct_CC" = x; then
2829 CC=""
2830 else
2831 case $cross_compiling:$ac_tool_warned in
2832yes:)
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2834$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2835ac_tool_warned=yes ;;
2836esac
2837 CC=$ac_ct_CC
2838 fi
42ecbf5e
DJ
2839fi
2840
2841fi
2842
2843
81ecdfbb
RW
2844test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2845$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2846as_fn_error "no acceptable C compiler found in \$PATH
2847See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
2848
2849# Provide some information about the compiler.
81ecdfbb
RW
2850$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2851set X $ac_compile
2852ac_compiler=$2
2853for ac_option in --version -v -V -qversion; do
2854 { { ac_try="$ac_compiler $ac_option >&5"
2855case "(($ac_try" in
2856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2857 *) ac_try_echo=$ac_try;;
2858esac
2859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2860$as_echo "$ac_try_echo"; } >&5
2861 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
42ecbf5e 2862 ac_status=$?
81ecdfbb
RW
2863 if test -s conftest.err; then
2864 sed '10a\
2865... rest of stderr output deleted ...
2866 10q' conftest.err >conftest.er1
2867 cat conftest.er1 >&5
2868 rm -f conftest.er1 conftest.err
2869 fi
2870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2871 test $ac_status = 0; }
2872done
42ecbf5e 2873
81ecdfbb 2874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
2875/* end confdefs.h. */
2876
2877int
2878main ()
2879{
2880
2881 ;
2882 return 0;
2883}
2884_ACEOF
2885ac_clean_files_save=$ac_clean_files
81ecdfbb 2886ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
42ecbf5e
DJ
2887# Try to create an executable without -o first, disregard a.out.
2888# It will help us diagnose broken compilers, and finding out an intuition
2889# of exeext.
81ecdfbb
RW
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2891$as_echo_n "checking for C compiler default output file name... " >&6; }
2892ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2893
2894# The possible output files:
2895ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2896
2897ac_rmfiles=
2898for ac_file in $ac_files
2899do
2900 case $ac_file in
2901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2902 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2903 esac
2904done
2905rm -f $ac_rmfiles
2906
2907if { { ac_try="$ac_link_default"
2908case "(($ac_try" in
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2911esac
2912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2913$as_echo "$ac_try_echo"; } >&5
2914 (eval "$ac_link_default") 2>&5
2915 ac_status=$?
2916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2917 test $ac_status = 0; }; then :
2918 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2919# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2920# in a Makefile. We should not override ac_cv_exeext if it was cached,
2921# so that the user can short-circuit this test for compilers unknown to
2922# Autoconf.
2923for ac_file in $ac_files ''
42ecbf5e
DJ
2924do
2925 test -f "$ac_file" || continue
2926 case $ac_file in
81ecdfbb 2927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
42ecbf5e
DJ
2928 ;;
2929 [ab].out )
2930 # We found the default executable, but exeext='' is most
2931 # certainly right.
2932 break;;
2933 *.* )
81ecdfbb
RW
2934 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2935 then :; else
2936 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2937 fi
2938 # We set ac_cv_exeext here because the later test for it is not
2939 # safe: cross compilers may not add the suffix if given an `-o'
2940 # argument, so we may need to know it at that point already.
2941 # Even if this section looks crufty: it has the advantage of
2942 # actually working.
42ecbf5e
DJ
2943 break;;
2944 * )
2945 break;;
2946 esac
2947done
81ecdfbb
RW
2948test "$ac_cv_exeext" = no && ac_cv_exeext=
2949
42ecbf5e 2950else
81ecdfbb
RW
2951 ac_file=''
2952fi
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2954$as_echo "$ac_file" >&6; }
2955if test -z "$ac_file"; then :
2956 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
2957sed 's/^/| /' conftest.$ac_ext >&5
2958
81ecdfbb
RW
2959{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2960$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2961{ as_fn_set_status 77
2962as_fn_error "C compiler cannot create executables
2963See \`config.log' for more details." "$LINENO" 5; }; }
42ecbf5e 2964fi
42ecbf5e 2965ac_exeext=$ac_cv_exeext
42ecbf5e 2966
81ecdfbb 2967# Check that the compiler produces executables we can run. If not, either
42ecbf5e 2968# the compiler is broken, or we cross compile.
81ecdfbb
RW
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2970$as_echo_n "checking whether the C compiler works... " >&6; }
42ecbf5e
DJ
2971# If not cross compiling, check that we can run a simple program.
2972if test "$cross_compiling" != yes; then
2973 if { ac_try='./$ac_file'
81ecdfbb
RW
2974 { { case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2977esac
2978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2979$as_echo "$ac_try_echo"; } >&5
2980 (eval "$ac_try") 2>&5
42ecbf5e 2981 ac_status=$?
81ecdfbb
RW
2982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2983 test $ac_status = 0; }; }; then
42ecbf5e
DJ
2984 cross_compiling=no
2985 else
2986 if test "$cross_compiling" = maybe; then
2987 cross_compiling=yes
2988 else
81ecdfbb
RW
2989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991as_fn_error "cannot run C compiled programs.
42ecbf5e 2992If you meant to cross compile, use \`--host'.
81ecdfbb 2993See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
2994 fi
2995 fi
2996fi
81ecdfbb
RW
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2998$as_echo "yes" >&6; }
42ecbf5e 2999
81ecdfbb 3000rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
42ecbf5e 3001ac_clean_files=$ac_clean_files_save
81ecdfbb 3002# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3003# the compiler is broken, or we cross compile.
81ecdfbb
RW
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3005$as_echo_n "checking whether we are cross compiling... " >&6; }
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3007$as_echo "$cross_compiling" >&6; }
3008
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3010$as_echo_n "checking for suffix of executables... " >&6; }
3011if { { ac_try="$ac_link"
3012case "(($ac_try" in
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3015esac
3016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3017$as_echo "$ac_try_echo"; } >&5
3018 (eval "$ac_link") 2>&5
42ecbf5e 3019 ac_status=$?
81ecdfbb
RW
3020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3021 test $ac_status = 0; }; then :
42ecbf5e
DJ
3022 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3023# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3024# work properly (i.e., refer to `conftest.exe'), while it won't with
3025# `rm'.
3026for ac_file in conftest.exe conftest conftest.*; do
3027 test -f "$ac_file" || continue
3028 case $ac_file in
81ecdfbb 3029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
42ecbf5e 3030 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
42ecbf5e
DJ
3031 break;;
3032 * ) break;;
3033 esac
3034done
3035else
81ecdfbb
RW
3036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3038as_fn_error "cannot compute suffix of executables: cannot compile and link
3039See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3040fi
42ecbf5e 3041rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3043$as_echo "$ac_cv_exeext" >&6; }
42ecbf5e
DJ
3044
3045rm -f conftest.$ac_ext
3046EXEEXT=$ac_cv_exeext
3047ac_exeext=$EXEEXT
81ecdfbb
RW
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3049$as_echo_n "checking for suffix of object files... " >&6; }
3050if test "${ac_cv_objext+set}" = set; then :
3051 $as_echo_n "(cached) " >&6
42ecbf5e 3052else
81ecdfbb 3053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3054/* end confdefs.h. */
3055
3056int
3057main ()
3058{
3059
3060 ;
3061 return 0;
3062}
3063_ACEOF
3064rm -f conftest.o conftest.obj
81ecdfbb
RW
3065if { { ac_try="$ac_compile"
3066case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069esac
3070eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3071$as_echo "$ac_try_echo"; } >&5
3072 (eval "$ac_compile") 2>&5
3073 ac_status=$?
3074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3075 test $ac_status = 0; }; then :
3076 for ac_file in conftest.o conftest.obj conftest.*; do
3077 test -f "$ac_file" || continue;
42ecbf5e 3078 case $ac_file in
81ecdfbb 3079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
42ecbf5e
DJ
3080 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3081 break;;
3082 esac
3083done
3084else
81ecdfbb 3085 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3086sed 's/^/| /' conftest.$ac_ext >&5
3087
81ecdfbb
RW
3088{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3090as_fn_error "cannot compute suffix of object files: cannot compile
3091See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3092fi
42ecbf5e
DJ
3093rm -f conftest.$ac_cv_objext conftest.$ac_ext
3094fi
81ecdfbb
RW
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3096$as_echo "$ac_cv_objext" >&6; }
42ecbf5e
DJ
3097OBJEXT=$ac_cv_objext
3098ac_objext=$OBJEXT
81ecdfbb
RW
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3100$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3101if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3102 $as_echo_n "(cached) " >&6
42ecbf5e 3103else
81ecdfbb 3104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3105/* end confdefs.h. */
3106
3107int
3108main ()
3109{
3110#ifndef __GNUC__
3111 choke me
3112#endif
3113
3114 ;
3115 return 0;
3116}
3117_ACEOF
81ecdfbb 3118if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3119 ac_compiler_gnu=yes
3120else
81ecdfbb 3121 ac_compiler_gnu=no
42ecbf5e 3122fi
81ecdfbb 3123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e
DJ
3124ac_cv_c_compiler_gnu=$ac_compiler_gnu
3125
3126fi
81ecdfbb
RW
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3128$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3129if test $ac_compiler_gnu = yes; then
3130 GCC=yes
3131else
3132 GCC=
3133fi
42ecbf5e
DJ
3134ac_test_CFLAGS=${CFLAGS+set}
3135ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3137$as_echo_n "checking whether $CC accepts -g... " >&6; }
3138if test "${ac_cv_prog_cc_g+set}" = set; then :
3139 $as_echo_n "(cached) " >&6
3140else
3141 ac_save_c_werror_flag=$ac_c_werror_flag
3142 ac_c_werror_flag=yes
3143 ac_cv_prog_cc_g=no
3144 CFLAGS="-g"
3145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3146/* end confdefs.h. */
3147
3148int
3149main ()
3150{
3151
3152 ;
3153 return 0;
3154}
3155_ACEOF
81ecdfbb 3156if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3157 ac_cv_prog_cc_g=yes
3158else
81ecdfbb
RW
3159 CFLAGS=""
3160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3161/* end confdefs.h. */
3162
3163int
3164main ()
3165{
3166
3167 ;
3168 return 0;
3169}
3170_ACEOF
3171if ac_fn_c_try_compile "$LINENO"; then :
3172
3173else
3174 ac_c_werror_flag=$ac_save_c_werror_flag
3175 CFLAGS="-g"
3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177/* end confdefs.h. */
3178
3179int
3180main ()
3181{
42ecbf5e 3182
81ecdfbb
RW
3183 ;
3184 return 0;
3185}
3186_ACEOF
3187if ac_fn_c_try_compile "$LINENO"; then :
3188 ac_cv_prog_cc_g=yes
3189fi
3190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 3191fi
81ecdfbb 3192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 3193fi
81ecdfbb
RW
3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 ac_c_werror_flag=$ac_save_c_werror_flag
3196fi
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3198$as_echo "$ac_cv_prog_cc_g" >&6; }
42ecbf5e
DJ
3199if test "$ac_test_CFLAGS" = set; then
3200 CFLAGS=$ac_save_CFLAGS
3201elif test $ac_cv_prog_cc_g = yes; then
3202 if test "$GCC" = yes; then
3203 CFLAGS="-g -O2"
3204 else
3205 CFLAGS="-g"
3206 fi
3207else
3208 if test "$GCC" = yes; then
3209 CFLAGS="-O2"
3210 else
3211 CFLAGS=
3212 fi
3213fi
81ecdfbb
RW
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3215$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3216if test "${ac_cv_prog_cc_c89+set}" = set; then :
3217 $as_echo_n "(cached) " >&6
42ecbf5e 3218else
81ecdfbb 3219 ac_cv_prog_cc_c89=no
42ecbf5e 3220ac_save_CC=$CC
81ecdfbb 3221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3222/* end confdefs.h. */
3223#include <stdarg.h>
3224#include <stdio.h>
3225#include <sys/types.h>
3226#include <sys/stat.h>
3227/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3228struct buf { int x; };
3229FILE * (*rcsopen) (struct buf *, struct stat *, int);
3230static char *e (p, i)
3231 char **p;
3232 int i;
3233{
3234 return p[i];
3235}
3236static char *f (char * (*g) (char **, int), char **p, ...)
3237{
3238 char *s;
3239 va_list v;
3240 va_start (v,p);
3241 s = g (p, va_arg (v,int));
3242 va_end (v);
3243 return s;
3244}
3245
3246/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3247 function prototypes and stuff, but not '\xHH' hex character constants.
3248 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3249 as 'x'. The following induces an error, until -std is added to get
42ecbf5e
DJ
3250 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3251 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3252 that's true only with -std. */
42ecbf5e
DJ
3253int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3254
81ecdfbb
RW
3255/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3256 inside strings and character constants. */
3257#define FOO(x) 'x'
3258int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3259
42ecbf5e
DJ
3260int test (int i, double x);
3261struct s1 {int (*f) (int a);};
3262struct s2 {int (*f) (double a);};
3263int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3264int argc;
3265char **argv;
3266int
3267main ()
3268{
3269return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3270 ;
3271 return 0;
3272}
3273_ACEOF
81ecdfbb
RW
3274for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3275 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
42ecbf5e
DJ
3276do
3277 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3278 if ac_fn_c_try_compile "$LINENO"; then :
3279 ac_cv_prog_cc_c89=$ac_arg
42ecbf5e 3280fi
81ecdfbb
RW
3281rm -f core conftest.err conftest.$ac_objext
3282 test "x$ac_cv_prog_cc_c89" != "xno" && break
42ecbf5e 3283done
81ecdfbb 3284rm -f conftest.$ac_ext
42ecbf5e
DJ
3285CC=$ac_save_CC
3286
3287fi
81ecdfbb
RW
3288# AC_CACHE_VAL
3289case "x$ac_cv_prog_cc_c89" in
3290 x)
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3292$as_echo "none needed" >&6; } ;;
3293 xno)
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3295$as_echo "unsupported" >&6; } ;;
42ecbf5e 3296 *)
81ecdfbb
RW
3297 CC="$CC $ac_cv_prog_cc_c89"
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3299$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
42ecbf5e 3300esac
81ecdfbb 3301if test "x$ac_cv_prog_cc_c89" != xno; then :
42ecbf5e 3302
42ecbf5e
DJ
3303fi
3304
42ecbf5e
DJ
3305ac_ext=c
3306ac_cpp='$CPP $CPPFLAGS'
3307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309ac_compiler_gnu=$ac_cv_c_compiler_gnu
3310
3311
81ecdfbb
RW
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3313$as_echo_n "checking for library containing strerror... " >&6; }
3314if test "${ac_cv_search_strerror+set}" = set; then :
3315 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3316else
3317 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3319/* end confdefs.h. */
3320
81ecdfbb
RW
3321/* Override any GCC internal prototype to avoid an error.
3322 Use char because int might match the return type of a GCC
3323 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
3324#ifdef __cplusplus
3325extern "C"
3326#endif
42ecbf5e
DJ
3327char strerror ();
3328int
3329main ()
3330{
81ecdfbb 3331return strerror ();
42ecbf5e
DJ
3332 ;
3333 return 0;
3334}
3335_ACEOF
81ecdfbb
RW
3336for ac_lib in '' cposix; do
3337 if test -z "$ac_lib"; then
3338 ac_res="none required"
3339 else
3340 ac_res=-l$ac_lib
42ecbf5e 3341 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3342 fi
3343 if ac_fn_c_try_link "$LINENO"; then :
3344 ac_cv_search_strerror=$ac_res
3345fi
3346rm -f core conftest.err conftest.$ac_objext \
3347 conftest$ac_exeext
3348 if test "${ac_cv_search_strerror+set}" = set; then :
3349 break
3350fi
3351done
3352if test "${ac_cv_search_strerror+set}" = set; then :
42ecbf5e 3353
42ecbf5e 3354else
81ecdfbb 3355 ac_cv_search_strerror=no
42ecbf5e 3356fi
81ecdfbb 3357rm conftest.$ac_ext
42ecbf5e
DJ
3358LIBS=$ac_func_search_save_LIBS
3359fi
81ecdfbb
RW
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3361$as_echo "$ac_cv_search_strerror" >&6; }
3362ac_res=$ac_cv_search_strerror
3363if test "$ac_res" != no; then :
3364 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e
DJ
3365
3366fi
3367
3368
3369BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
81ecdfbb
RW
3370am__api_version='1.11'
3371
42ecbf5e
DJ
3372# Find a good install program. We prefer a C program (faster),
3373# so one script is as good as another. But avoid the broken or
3374# incompatible versions:
3375# SysV /etc/install, /usr/sbin/install
3376# SunOS /usr/etc/install
3377# IRIX /sbin/install
3378# AIX /bin/install
3379# AmigaOS /C/install, which installs bootblocks on floppy discs
3380# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3381# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3382# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3383# OS/2's system install, which has a completely different semantic
3384# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3385# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3387$as_echo_n "checking for a BSD-compatible install... " >&6; }
42ecbf5e 3388if test -z "$INSTALL"; then
81ecdfbb
RW
3389if test "${ac_cv_path_install+set}" = set; then :
3390 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3391else
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393for as_dir in $PATH
3394do
3395 IFS=$as_save_IFS
3396 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3397 # Account for people who put trailing slashes in PATH elements.
3398case $as_dir/ in #((
3399 ./ | .// | /[cC]/* | \
42ecbf5e 3400 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3401 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
42ecbf5e
DJ
3402 /usr/ucb/* ) ;;
3403 *)
3404 # OSF1 and SCO ODT 3.0 have their own names for install.
3405 # Don't use installbsd from OSF since it installs stuff as root
3406 # by default.
3407 for ac_prog in ginstall scoinst install; do
3408 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3409 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
42ecbf5e
DJ
3410 if test $ac_prog = install &&
3411 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3412 # AIX install. It has an incompatible calling convention.
3413 :
42ecbf5e
DJ
3414 elif test $ac_prog = install &&
3415 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3416 # program-specific install script used by HP pwplus--don't use.
3417 :
252b5132 3418 else
58c85be7
RW
3419 rm -rf conftest.one conftest.two conftest.dir
3420 echo one > conftest.one
3421 echo two > conftest.two
3422 mkdir conftest.dir
3423 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3424 test -s conftest.one && test -s conftest.two &&
3425 test -s conftest.dir/conftest.one &&
3426 test -s conftest.dir/conftest.two
3427 then
3428 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3429 break 3
3430 fi
252b5132
RH
3431 fi
3432 fi
d15b04bd 3433 done
42ecbf5e
DJ
3434 done
3435 ;;
3436esac
81ecdfbb
RW
3437
3438 done
3439IFS=$as_save_IFS
42ecbf5e 3440
58c85be7 3441rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3442
3443fi
3444 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 3445 INSTALL=$ac_cv_path_install
252b5132 3446 else
58c85be7
RW
3447 # As a last resort, use the slow shell script. Don't cache a
3448 # value for INSTALL within a source directory, because that will
252b5132 3449 # break other packages using the cache if that directory is
58c85be7 3450 # removed, or if the value is a relative name.
42ecbf5e 3451 INSTALL=$ac_install_sh
252b5132
RH
3452 fi
3453fi
81ecdfbb
RW
3454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3455$as_echo "$INSTALL" >&6; }
252b5132
RH
3456
3457# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3458# It thinks the first close brace ends the variable substitution.
3459test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3460
42ecbf5e 3461test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3462
3463test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3464
81ecdfbb
RW
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3466$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3467# Just in case
3468sleep 1
42ecbf5e 3469echo timestamp > conftest.file
81ecdfbb
RW
3470# Reject unsafe characters in $srcdir or the absolute working directory
3471# name. Accept space and tab only in the latter.
3472am_lf='
3473'
3474case `pwd` in
3475 *[\\\"\#\$\&\'\`$am_lf]*)
3476 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3477esac
3478case $srcdir in
3479 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3480 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3481esac
3482
252b5132
RH
3483# Do `set' in a subshell so we don't clobber the current shell's
3484# arguments. Must try -L first in case configure is actually a
3485# symlink; some systems play weird games with the mod time of symlinks
3486# (eg FreeBSD returns the mod time of the symlink's containing
3487# directory).
3488if (
81ecdfbb 3489 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3490 if test "$*" = "X"; then
3491 # -L didn't work.
81ecdfbb 3492 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3493 fi
42ecbf5e
DJ
3494 rm -f conftest.file
3495 if test "$*" != "X $srcdir/configure conftest.file" \
3496 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3497
3498 # If neither matched, then we have a broken ls. This can happen
3499 # if, for instance, CONFIG_SHELL is bash and it inherits a
3500 # broken ls alias from the environment. This has actually
3501 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3502 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3503alias in your environment" "$LINENO" 5
252b5132
RH
3504 fi
3505
42ecbf5e 3506 test "$2" = conftest.file
252b5132
RH
3507 )
3508then
3509 # Ok.
3510 :
3511else
81ecdfbb
RW
3512 as_fn_error "newly created file is older than distributed files!
3513Check your system clock" "$LINENO" 5
42ecbf5e 3514fi
81ecdfbb
RW
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3516$as_echo "yes" >&6; }
42ecbf5e 3517test "$program_prefix" != NONE &&
81ecdfbb 3518 program_transform_name="s&^&$program_prefix&;$program_transform_name"
42ecbf5e
DJ
3519# Use a double $ so make ignores it.
3520test "$program_suffix" != NONE &&
81ecdfbb
RW
3521 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3522# Double any \ or $.
42ecbf5e 3523# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3524ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3525program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e
DJ
3526
3527# expand $ac_aux_dir to an absolute path
3528am_aux_dir=`cd $ac_aux_dir && pwd`
3529
81ecdfbb
RW
3530if test x"${MISSING+set}" != xset; then
3531 case $am_aux_dir in
3532 *\ * | *\ *)
3533 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3534 *)
3535 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3536 esac
3537fi
42ecbf5e
DJ
3538# Use eval to expand $SHELL
3539if eval "$MISSING --run true"; then
3540 am_missing_run="$MISSING --run "
3541else
3542 am_missing_run=
81ecdfbb
RW
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3544$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
42ecbf5e
DJ
3545fi
3546
81ecdfbb
RW
3547if test x"${install_sh}" != xset; then
3548 case $am_aux_dir in
3549 *\ * | *\ *)
3550 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3551 *)
3552 install_sh="\${SHELL} $am_aux_dir/install-sh"
3553 esac
3554fi
3555
3556# Installed binaries are usually stripped using `strip' when the user
3557# run `make install-strip'. However `strip' might not be the right
3558# tool to use in cross-compilation environments, therefore Automake
3559# will honor the `STRIP' environment variable to overrule this program.
3560if test "$cross_compiling" != no; then
3561 if test -n "$ac_tool_prefix"; then
3562 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3563set dummy ${ac_tool_prefix}strip; ac_word=$2
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565$as_echo_n "checking for $ac_word... " >&6; }
3566if test "${ac_cv_prog_STRIP+set}" = set; then :
3567 $as_echo_n "(cached) " >&6
42ecbf5e 3568else
81ecdfbb
RW
3569 if test -n "$STRIP"; then
3570 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
42ecbf5e
DJ
3571else
3572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573for as_dir in $PATH
3574do
3575 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3577 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3579 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 break 2
3582 fi
3583done
3584 done
3585IFS=$as_save_IFS
3586
3587fi
3588fi
3589STRIP=$ac_cv_prog_STRIP
3590if test -n "$STRIP"; then
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3592$as_echo "$STRIP" >&6; }
3593else
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595$as_echo "no" >&6; }
3596fi
3597
3598
3599fi
3600if test -z "$ac_cv_prog_STRIP"; then
3601 ac_ct_STRIP=$STRIP
3602 # Extract the first word of "strip", so it can be a program name with args.
3603set dummy strip; ac_word=$2
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605$as_echo_n "checking for $ac_word... " >&6; }
3606if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3607 $as_echo_n "(cached) " >&6
3608else
3609 if test -n "$ac_ct_STRIP"; then
3610 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3611else
3612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613for as_dir in $PATH
3614do
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3619 ac_cv_prog_ac_ct_STRIP="strip"
3620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3621 break 2
3622 fi
3623done
81ecdfbb
RW
3624 done
3625IFS=$as_save_IFS
3626
3627fi
3628fi
3629ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3630if test -n "$ac_ct_STRIP"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3632$as_echo "$ac_ct_STRIP" >&6; }
3633else
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635$as_echo "no" >&6; }
3636fi
3637
3638 if test "x$ac_ct_STRIP" = x; then
3639 STRIP=":"
3640 else
3641 case $cross_compiling:$ac_tool_warned in
3642yes:)
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3645ac_tool_warned=yes ;;
3646esac
3647 STRIP=$ac_ct_STRIP
3648 fi
3649else
3650 STRIP="$ac_cv_prog_STRIP"
3651fi
3652
3653fi
3654INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3655
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3657$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3658if test -z "$MKDIR_P"; then
3659 if test "${ac_cv_path_mkdir+set}" = set; then :
3660 $as_echo_n "(cached) " >&6
3661else
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3664do
3665 IFS=$as_save_IFS
3666 test -z "$as_dir" && as_dir=.
3667 for ac_prog in mkdir gmkdir; do
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3670 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3671 'mkdir (GNU coreutils) '* | \
3672 'mkdir (coreutils) '* | \
3673 'mkdir (fileutils) '4.1*)
3674 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3675 break 3;;
3676 esac
3677 done
3678 done
3679 done
3680IFS=$as_save_IFS
3681
3682fi
3683
3684 if test "${ac_cv_path_mkdir+set}" = set; then
3685 MKDIR_P="$ac_cv_path_mkdir -p"
3686 else
3687 # As a last resort, use the slow shell script. Don't cache a
3688 # value for MKDIR_P within a source directory, because that will
3689 # break other packages using the cache if that directory is
3690 # removed, or if the value is a relative name.
3691 test -d ./--version && rmdir ./--version
3692 MKDIR_P="$ac_install_sh -d"
3693 fi
3694fi
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3696$as_echo "$MKDIR_P" >&6; }
3697
3698mkdir_p="$MKDIR_P"
3699case $mkdir_p in
3700 [\\/$]* | ?:[\\/]*) ;;
3701 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3702esac
3703
3704for ac_prog in gawk mawk nawk awk
3705do
3706 # Extract the first word of "$ac_prog", so it can be a program name with args.
3707set dummy $ac_prog; ac_word=$2
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3709$as_echo_n "checking for $ac_word... " >&6; }
3710if test "${ac_cv_prog_AWK+set}" = set; then :
3711 $as_echo_n "(cached) " >&6
3712else
3713 if test -n "$AWK"; then
3714 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3715else
3716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717for as_dir in $PATH
3718do
3719 IFS=$as_save_IFS
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3723 ac_cv_prog_AWK="$ac_prog"
3724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 break 2
3726 fi
42ecbf5e 3727done
81ecdfbb
RW
3728 done
3729IFS=$as_save_IFS
42ecbf5e
DJ
3730
3731fi
3732fi
3733AWK=$ac_cv_prog_AWK
3734if test -n "$AWK"; then
81ecdfbb
RW
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3736$as_echo "$AWK" >&6; }
42ecbf5e 3737else
81ecdfbb
RW
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739$as_echo "no" >&6; }
42ecbf5e
DJ
3740fi
3741
81ecdfbb 3742
42ecbf5e
DJ
3743 test -n "$AWK" && break
3744done
3745
81ecdfbb
RW
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3747$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3748set x ${MAKE-make}
3749ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3750if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3751 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3752else
3753 cat >conftest.make <<\_ACEOF
81ecdfbb 3754SHELL = /bin/sh
42ecbf5e 3755all:
81ecdfbb 3756 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e
DJ
3757_ACEOF
3758# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3759case `${MAKE-make} -f conftest.make 2>/dev/null` in
3760 *@@@%%%=?*=@@@%%%*)
3761 eval ac_cv_prog_make_${ac_make}_set=yes;;
3762 *)
3763 eval ac_cv_prog_make_${ac_make}_set=no;;
3764esac
42ecbf5e
DJ
3765rm -f conftest.make
3766fi
81ecdfbb
RW
3767if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3769$as_echo "yes" >&6; }
42ecbf5e
DJ
3770 SET_MAKE=
3771else
81ecdfbb
RW
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773$as_echo "no" >&6; }
42ecbf5e
DJ
3774 SET_MAKE="MAKE=${MAKE-make}"
3775fi
3776
3777rm -rf .tst 2>/dev/null
3778mkdir .tst 2>/dev/null
3779if test -d .tst; then
3780 am__leading_dot=.
3781else
3782 am__leading_dot=_
3783fi
3784rmdir .tst 2>/dev/null
3785
3786DEPDIR="${am__leading_dot}deps"
3787
81ecdfbb 3788ac_config_commands="$ac_config_commands depfiles"
42ecbf5e
DJ
3789
3790
3791am_make=${MAKE-make}
3792cat > confinc << 'END'
3793am__doit:
81ecdfbb 3794 @echo this is the am__doit target
42ecbf5e
DJ
3795.PHONY: am__doit
3796END
3797# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3799$as_echo_n "checking for style of include used by $am_make... " >&6; }
42ecbf5e
DJ
3800am__include="#"
3801am__quote=
3802_am_result=none
3803# First try GNU make style include.
3804echo "include confinc" > confmf
81ecdfbb
RW
3805# Ignore all kinds of additional output from `make'.
3806case `$am_make -s -f confmf 2> /dev/null` in #(
3807*the\ am__doit\ target*)
3808 am__include=include
3809 am__quote=
3810 _am_result=GNU
3811 ;;
3812esac
42ecbf5e
DJ
3813# Now try BSD make style include.
3814if test "$am__include" = "#"; then
3815 echo '.include "confinc"' > confmf
81ecdfbb
RW
3816 case `$am_make -s -f confmf 2> /dev/null` in #(
3817 *the\ am__doit\ target*)
3818 am__include=.include
3819 am__quote="\""
3820 _am_result=BSD
3821 ;;
3822 esac
42ecbf5e
DJ
3823fi
3824
3825
81ecdfbb
RW
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3827$as_echo "$_am_result" >&6; }
42ecbf5e
DJ
3828rm -f confinc confmf
3829
81ecdfbb
RW
3830# Check whether --enable-dependency-tracking was given.
3831if test "${enable_dependency_tracking+set}" = set; then :
3832 enableval=$enable_dependency_tracking;
3833fi
42ecbf5e 3834
42ecbf5e
DJ
3835if test "x$enable_dependency_tracking" != xno; then
3836 am_depcomp="$ac_aux_dir/depcomp"
3837 AMDEPBACKSLASH='\'
3838fi
81ecdfbb 3839 if test "x$enable_dependency_tracking" != xno; then
42ecbf5e
DJ
3840 AMDEP_TRUE=
3841 AMDEP_FALSE='#'
3842else
3843 AMDEP_TRUE='#'
3844 AMDEP_FALSE=
3845fi
3846
3847
81ecdfbb
RW
3848if test "`cd $srcdir && pwd`" != "`pwd`"; then
3849 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3850 # is not polluted with repeated "-I."
3851 am__isrc=' -I$(srcdir)'
3852 # test to see if srcdir already configured
3853 if test -f $srcdir/config.status; then
3854 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3855 fi
42ecbf5e
DJ
3856fi
3857
3858# test whether we have cygpath
3859if test -z "$CYGPATH_W"; then
3860 if (cygpath --version) >/dev/null 2>/dev/null; then
3861 CYGPATH_W='cygpath -w'
3862 else
3863 CYGPATH_W=echo
3864 fi
3865fi
3866
3867
3868# Define the identity of the package.
3869 PACKAGE=binutils
3870 VERSION=${BFD_VERSION}
3871
3872
3873cat >>confdefs.h <<_ACEOF
3874#define PACKAGE "$PACKAGE"
3875_ACEOF
3876
3877
3878cat >>confdefs.h <<_ACEOF
3879#define VERSION "$VERSION"
3880_ACEOF
3881
3882# Some tools Automake needs.
3883
3884ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3885
3886
3887AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3888
3889
3890AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3891
3892
3893AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3894
3895
3896MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3897
42ecbf5e
DJ
3898# We need awk for the "check" target. The system "awk" is bad on
3899# some platforms.
3900# Always define AMTAR for backward compatibility.
252b5132 3901
42ecbf5e 3902AMTAR=${AMTAR-"${am_missing_run}tar"}
252b5132 3903
42ecbf5e 3904am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
252b5132
RH
3905
3906
3907
252b5132 3908
42ecbf5e
DJ
3909depcc="$CC" am_compiler_list=
3910
81ecdfbb
RW
3911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3912$as_echo_n "checking dependency style of $depcc... " >&6; }
3913if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3914 $as_echo_n "(cached) " >&6
252b5132 3915else
42ecbf5e
DJ
3916 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3917 # We make a subdir and do the tests there. Otherwise we can end up
3918 # making bogus files that we don't know about and never remove. For
3919 # instance it was reported that on HP-UX the gcc test will end up
3920 # making a dummy file named `D' -- because `-MD' means `put the output
3921 # in D'.
3922 mkdir conftest.dir
3923 # Copy depcomp to subdir because otherwise we won't find it if we're
3924 # using a relative directory.
3925 cp "$am_depcomp" conftest.dir
3926 cd conftest.dir
3927 # We will build objects and dependencies in a subdirectory because
3928 # it helps to detect inapplicable dependency modes. For instance
3929 # both Tru64's cc and ICC support -MD to output dependencies as a
3930 # side effect of compilation, but ICC will put the dependencies in
3931 # the current directory while Tru64 will put them in the object
3932 # directory.
3933 mkdir sub
252b5132 3934
42ecbf5e
DJ
3935 am_cv_CC_dependencies_compiler_type=none
3936 if test "$am_compiler_list" = ""; then
3937 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3938 fi
81ecdfbb
RW
3939 am__universal=false
3940 case " $depcc " in #(
3941 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3942 esac
3943
42ecbf5e
DJ
3944 for depmode in $am_compiler_list; do
3945 # Setup a source with many dependencies, because some compilers
3946 # like to wrap large dependency lists on column 80 (with \), and
3947 # we should not choose a depcomp mode which is confused by this.
3948 #
3949 # We need to recreate these files for each test, as the compiler may
3950 # overwrite some of them when testing with obscure command lines.
3951 # This happens at least with the AIX C compiler.
3952 : > sub/conftest.c
3953 for i in 1 2 3 4 5 6; do
3954 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3955 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3956 # Solaris 8's {/usr,}/bin/sh.
3957 touch sub/conftst$i.h
3958 done
3959 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3960
81ecdfbb
RW
3961 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3962 # mode. It turns out that the SunPro C++ compiler does not properly
3963 # handle `-M -o', and we need to detect this. Also, some Intel
3964 # versions had trouble with output in subdirs
3965 am__obj=sub/conftest.${OBJEXT-o}
3966 am__minus_obj="-o $am__obj"
42ecbf5e 3967 case $depmode in
81ecdfbb
RW
3968 gcc)
3969 # This depmode causes a compiler race in universal mode.
3970 test "$am__universal" = false || continue
3971 ;;
42ecbf5e
DJ
3972 nosideeffect)
3973 # after this tag, mechanisms are not by side-effect, so they'll
3974 # only be used when explicitly requested
3975 if test "x$enable_dependency_tracking" = xyes; then
3976 continue
3977 else
3978 break
3979 fi
3980 ;;
81ecdfbb
RW
3981 msvisualcpp | msvcmsys)
3982 # This compiler won't grok `-c -o', but also, the minuso test has
3983 # not run yet. These depmodes are late enough in the game, and
3984 # so weak that their functioning should not be impacted.
3985 am__obj=conftest.${OBJEXT-o}
3986 am__minus_obj=
3987 ;;
42ecbf5e
DJ
3988 none) break ;;
3989 esac
42ecbf5e 3990 if depmode=$depmode \
81ecdfbb 3991 source=sub/conftest.c object=$am__obj \
42ecbf5e 3992 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 3993 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
42ecbf5e 3994 >/dev/null 2>conftest.err &&
81ecdfbb 3995 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e 3996 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 3997 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e
DJ
3998 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3999 # icc doesn't choke on unknown options, it will just issue warnings
4000 # or remarks (even with -Werror). So we grep stderr for any message
4001 # that says an option was ignored or not supported.
4002 # When given -MP, icc 7.0 and 7.1 complain thusly:
4003 # icc: Command line warning: ignoring option '-M'; no argument required
4004 # The diagnosis changed in icc 8.0:
4005 # icc: Command line remark: option '-MP' not supported
4006 if (grep 'ignoring option' conftest.err ||
4007 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4008 am_cv_CC_dependencies_compiler_type=$depmode
4009 break
4010 fi
4011 fi
4012 done
4013
4014 cd ..
4015 rm -rf conftest.dir
252b5132 4016else
42ecbf5e 4017 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
4018fi
4019
252b5132 4020fi
81ecdfbb
RW
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4022$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
42ecbf5e
DJ
4023CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4024
81ecdfbb 4025 if
42ecbf5e
DJ
4026 test "x$enable_dependency_tracking" != xno \
4027 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4028 am__fastdepCC_TRUE=
4029 am__fastdepCC_FALSE='#'
252b5132 4030else
42ecbf5e
DJ
4031 am__fastdepCC_TRUE='#'
4032 am__fastdepCC_FALSE=
252b5132
RH
4033fi
4034
4035
4036
42ecbf5e 4037
d45dc31f
SE
4038ac_ext=c
4039ac_cpp='$CPP $CPPFLAGS'
4040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043if test -n "$ac_tool_prefix"; then
4044 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4045set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047$as_echo_n "checking for $ac_word... " >&6; }
4048if test "${ac_cv_prog_CC+set}" = set; then :
4049 $as_echo_n "(cached) " >&6
252b5132 4050else
d45dc31f
SE
4051 if test -n "$CC"; then
4052 ac_cv_prog_CC="$CC" # Let the user override the test.
1a09a22c 4053else
d45dc31f
SE
4054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055for as_dir in $PATH
4056do
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d45dc31f 4061 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
4063 break 2
4064 fi
4065done
81ecdfbb
RW
4066 done
4067IFS=$as_save_IFS
ceae3e33 4068
d45dc31f
SE
4069fi
4070fi
4071CC=$ac_cv_prog_CC
4072if test -n "$CC"; then
81ecdfbb
RW
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4074$as_echo "$CC" >&6; }
252b5132 4075else
81ecdfbb
RW
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077$as_echo "no" >&6; }
252b5132 4078fi
d45dc31f 4079
81ecdfbb 4080
d45dc31f
SE
4081fi
4082if test -z "$ac_cv_prog_CC"; then
4083 ac_ct_CC=$CC
4084 # Extract the first word of "gcc", so it can be a program name with args.
4085set dummy gcc; ac_word=$2
81ecdfbb
RW
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087$as_echo_n "checking for $ac_word... " >&6; }
4088if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
252b5132 4090else
d45dc31f
SE
4091 if test -n "$ac_ct_CC"; then
4092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 4093else
d45dc31f
SE
4094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095for as_dir in $PATH
4096do
4097 IFS=$as_save_IFS
4098 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d45dc31f 4101 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
4103 break 2
4104 fi
4105done
81ecdfbb
RW
4106 done
4107IFS=$as_save_IFS
d45dc31f 4108
252b5132
RH
4109fi
4110fi
d45dc31f
SE
4111ac_ct_CC=$ac_cv_prog_ac_ct_CC
4112if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4114$as_echo "$ac_ct_CC" >&6; }
252b5132 4115else
81ecdfbb
RW
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117$as_echo "no" >&6; }
252b5132 4118fi
d45dc31f 4119
81ecdfbb
RW
4120 if test "x$ac_ct_CC" = x; then
4121 CC=""
4122 else
4123 case $cross_compiling:$ac_tool_warned in
4124yes:)
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4127ac_tool_warned=yes ;;
4128esac
4129 CC=$ac_ct_CC
4130 fi
d45dc31f
SE
4131else
4132 CC="$ac_cv_prog_CC"
4133fi
4134
4135if test -z "$CC"; then
81ecdfbb
RW
4136 if test -n "$ac_tool_prefix"; then
4137 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d45dc31f 4138set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140$as_echo_n "checking for $ac_word... " >&6; }
4141if test "${ac_cv_prog_CC+set}" = set; then :
4142 $as_echo_n "(cached) " >&6
252b5132 4143else
d45dc31f
SE
4144 if test -n "$CC"; then
4145 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4146else
d45dc31f
SE
4147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148for as_dir in $PATH
4149do
4150 IFS=$as_save_IFS
4151 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d45dc31f 4154 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
4156 break 2
4157 fi
4158done
81ecdfbb
RW
4159 done
4160IFS=$as_save_IFS
d45dc31f 4161
252b5132
RH
4162fi
4163fi
d45dc31f
SE
4164CC=$ac_cv_prog_CC
4165if test -n "$CC"; then
81ecdfbb
RW
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4167$as_echo "$CC" >&6; }
d45dc31f 4168else
81ecdfbb
RW
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170$as_echo "no" >&6; }
252b5132
RH
4171fi
4172
252b5132 4173
81ecdfbb 4174 fi
d45dc31f
SE
4175fi
4176if test -z "$CC"; then
4177 # Extract the first word of "cc", so it can be a program name with args.
4178set dummy cc; ac_word=$2
81ecdfbb
RW
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180$as_echo_n "checking for $ac_word... " >&6; }
4181if test "${ac_cv_prog_CC+set}" = set; then :
4182 $as_echo_n "(cached) " >&6
252b5132 4183else
d45dc31f
SE
4184 if test -n "$CC"; then
4185 ac_cv_prog_CC="$CC" # Let the user override the test.
4186else
4187 ac_prog_rejected=no
4188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189for as_dir in $PATH
4190do
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d45dc31f
SE
4195 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4196 ac_prog_rejected=yes
4197 continue
4198 fi
4199 ac_cv_prog_CC="cc"
81ecdfbb 4200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
4201 break 2
4202 fi
4203done
81ecdfbb
RW
4204 done
4205IFS=$as_save_IFS
d45dc31f
SE
4206
4207if test $ac_prog_rejected = yes; then
4208 # We found a bogon in the path, so make sure we never use it.
4209 set dummy $ac_cv_prog_CC
4210 shift
4211 if test $# != 0; then
4212 # We chose a different compiler from the bogus one.
4213 # However, it has the same basename, so the bogon will be chosen
4214 # first if we set CC to just the basename; use the full file name.
4215 shift
4216 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4217 fi
4218fi
4219fi
4220fi
4221CC=$ac_cv_prog_CC
4222if test -n "$CC"; then
81ecdfbb
RW
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4224$as_echo "$CC" >&6; }
d45dc31f 4225else
81ecdfbb
RW
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227$as_echo "no" >&6; }
252b5132
RH
4228fi
4229
81ecdfbb 4230
d45dc31f
SE
4231fi
4232if test -z "$CC"; then
4233 if test -n "$ac_tool_prefix"; then
81ecdfbb 4234 for ac_prog in cl.exe
d45dc31f
SE
4235 do
4236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4237set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4239$as_echo_n "checking for $ac_word... " >&6; }
4240if test "${ac_cv_prog_CC+set}" = set; then :
4241 $as_echo_n "(cached) " >&6
ac48eca1 4242else
d45dc31f
SE
4243 if test -n "$CC"; then
4244 ac_cv_prog_CC="$CC" # Let the user override the test.
4245else
4246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247for as_dir in $PATH
4248do
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d45dc31f 4253 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
4255 break 2
4256 fi
4257done
81ecdfbb
RW
4258 done
4259IFS=$as_save_IFS
ac48eca1 4260
d45dc31f
SE
4261fi
4262fi
4263CC=$ac_cv_prog_CC
4264if test -n "$CC"; then
81ecdfbb
RW
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4266$as_echo "$CC" >&6; }
d45dc31f 4267else
81ecdfbb
RW
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4269$as_echo "no" >&6; }
d45dc31f 4270fi
ac48eca1 4271
81ecdfbb 4272
d45dc31f
SE
4273 test -n "$CC" && break
4274 done
4275fi
4276if test -z "$CC"; then
4277 ac_ct_CC=$CC
81ecdfbb 4278 for ac_prog in cl.exe
d45dc31f
SE
4279do
4280 # Extract the first word of "$ac_prog", so it can be a program name with args.
4281set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4283$as_echo_n "checking for $ac_word... " >&6; }
4284if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4285 $as_echo_n "(cached) " >&6
d45dc31f
SE
4286else
4287 if test -n "$ac_ct_CC"; then
4288 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4289else
4290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291for as_dir in $PATH
4292do
4293 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d45dc31f 4297 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
4299 break 2
4300 fi
4301done
81ecdfbb
RW
4302 done
4303IFS=$as_save_IFS
ac48eca1 4304
d45dc31f
SE
4305fi
4306fi
4307ac_ct_CC=$ac_cv_prog_ac_ct_CC
4308if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4310$as_echo "$ac_ct_CC" >&6; }
d45dc31f 4311else
81ecdfbb
RW
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4313$as_echo "no" >&6; }
d45dc31f 4314fi
ac48eca1 4315
81ecdfbb 4316
d45dc31f
SE
4317 test -n "$ac_ct_CC" && break
4318done
ac48eca1 4319
81ecdfbb
RW
4320 if test "x$ac_ct_CC" = x; then
4321 CC=""
4322 else
4323 case $cross_compiling:$ac_tool_warned in
4324yes:)
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4327ac_tool_warned=yes ;;
4328esac
4329 CC=$ac_ct_CC
4330 fi
d45dc31f 4331fi
ac48eca1
AO
4332
4333fi
ac48eca1 4334
ac48eca1 4335
81ecdfbb
RW
4336test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4338as_fn_error "no acceptable C compiler found in \$PATH
4339See \`config.log' for more details." "$LINENO" 5; }
ac48eca1 4340
d45dc31f 4341# Provide some information about the compiler.
81ecdfbb
RW
4342$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4343set X $ac_compile
4344ac_compiler=$2
4345for ac_option in --version -v -V -qversion; do
4346 { { ac_try="$ac_compiler $ac_option >&5"
4347case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4350esac
4351eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4352$as_echo "$ac_try_echo"; } >&5
4353 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
d45dc31f 4354 ac_status=$?
81ecdfbb
RW
4355 if test -s conftest.err; then
4356 sed '10a\
4357... rest of stderr output deleted ...
4358 10q' conftest.err >conftest.er1
4359 cat conftest.er1 >&5
4360 rm -f conftest.er1 conftest.err
4361 fi
4362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4363 test $ac_status = 0; }
4364done
ac48eca1 4365
81ecdfbb
RW
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4367$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4368if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4369 $as_echo_n "(cached) " >&6
bdcfeba5 4370else
81ecdfbb 4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d45dc31f 4372/* end confdefs.h. */
bdcfeba5 4373
d45dc31f
SE
4374int
4375main ()
4376{
4377#ifndef __GNUC__
4378 choke me
4379#endif
bdcfeba5 4380
d45dc31f
SE
4381 ;
4382 return 0;
4383}
4384_ACEOF
81ecdfbb 4385if ac_fn_c_try_compile "$LINENO"; then :
d45dc31f
SE
4386 ac_compiler_gnu=yes
4387else
81ecdfbb 4388 ac_compiler_gnu=no
bdcfeba5 4389fi
81ecdfbb 4390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d45dc31f 4391ac_cv_c_compiler_gnu=$ac_compiler_gnu
bdcfeba5 4392
bdcfeba5 4393fi
81ecdfbb
RW
4394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4395$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4396if test $ac_compiler_gnu = yes; then
4397 GCC=yes
4398else
4399 GCC=
4400fi
d45dc31f
SE
4401ac_test_CFLAGS=${CFLAGS+set}
4402ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4404$as_echo_n "checking whether $CC accepts -g... " >&6; }
4405if test "${ac_cv_prog_cc_g+set}" = set; then :
4406 $as_echo_n "(cached) " >&6
4407else
4408 ac_save_c_werror_flag=$ac_c_werror_flag
4409 ac_c_werror_flag=yes
4410 ac_cv_prog_cc_g=no
4411 CFLAGS="-g"
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d45dc31f 4413/* end confdefs.h. */
ac48eca1 4414
d45dc31f
SE
4415int
4416main ()
4417{
ac48eca1 4418
d45dc31f
SE
4419 ;
4420 return 0;
4421}
4422_ACEOF
81ecdfbb 4423if ac_fn_c_try_compile "$LINENO"; then :
d45dc31f 4424 ac_cv_prog_cc_g=yes
ac48eca1 4425else
81ecdfbb
RW
4426 CFLAGS=""
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428/* end confdefs.h. */
4429
4430int
4431main ()
4432{
4433
4434 ;
4435 return 0;
4436}
4437_ACEOF
4438if ac_fn_c_try_compile "$LINENO"; then :
4439
4440else
4441 ac_c_werror_flag=$ac_save_c_werror_flag
4442 CFLAGS="-g"
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444/* end confdefs.h. */
4445
4446int
4447main ()
4448{
ac48eca1 4449
81ecdfbb
RW
4450 ;
4451 return 0;
4452}
4453_ACEOF
4454if ac_fn_c_try_compile "$LINENO"; then :
4455 ac_cv_prog_cc_g=yes
4456fi
4457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 4458fi
81ecdfbb 4459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 4460fi
81ecdfbb
RW
4461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4462 ac_c_werror_flag=$ac_save_c_werror_flag
4463fi
4464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4465$as_echo "$ac_cv_prog_cc_g" >&6; }
d45dc31f
SE
4466if test "$ac_test_CFLAGS" = set; then
4467 CFLAGS=$ac_save_CFLAGS
4468elif test $ac_cv_prog_cc_g = yes; then
4469 if test "$GCC" = yes; then
4470 CFLAGS="-g -O2"
ac48eca1 4471 else
d45dc31f 4472 CFLAGS="-g"
42ecbf5e 4473 fi
ac48eca1 4474else
d45dc31f
SE
4475 if test "$GCC" = yes; then
4476 CFLAGS="-O2"
4477 else
4478 CFLAGS=
42ecbf5e 4479 fi
ac48eca1 4480fi
81ecdfbb
RW
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4482$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4483if test "${ac_cv_prog_cc_c89+set}" = set; then :
4484 $as_echo_n "(cached) " >&6
d45dc31f 4485else
81ecdfbb 4486 ac_cv_prog_cc_c89=no
d45dc31f 4487ac_save_CC=$CC
81ecdfbb 4488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 4489/* end confdefs.h. */
d45dc31f
SE
4490#include <stdarg.h>
4491#include <stdio.h>
4492#include <sys/types.h>
4493#include <sys/stat.h>
4494/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4495struct buf { int x; };
4496FILE * (*rcsopen) (struct buf *, struct stat *, int);
4497static char *e (p, i)
4498 char **p;
4499 int i;
4500{
4501 return p[i];
4502}
4503static char *f (char * (*g) (char **, int), char **p, ...)
4504{
4505 char *s;
4506 va_list v;
4507 va_start (v,p);
4508 s = g (p, va_arg (v,int));
4509 va_end (v);
4510 return s;
4511}
4512
4513/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4514 function prototypes and stuff, but not '\xHH' hex character constants.
4515 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4516 as 'x'. The following induces an error, until -std is added to get
d45dc31f
SE
4517 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4518 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4519 that's true only with -std. */
d45dc31f 4520int osf4_cc_array ['\x00' == 0 ? 1 : -1];
252b5132 4521
81ecdfbb
RW
4522/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4523 inside strings and character constants. */
4524#define FOO(x) 'x'
4525int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4526
d45dc31f
SE
4527int test (int i, double x);
4528struct s1 {int (*f) (int a);};
4529struct s2 {int (*f) (double a);};
4530int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4531int argc;
4532char **argv;
42ecbf5e
DJ
4533int
4534main ()
4535{
d45dc31f 4536return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
42ecbf5e
DJ
4537 ;
4538 return 0;
4539}
4540_ACEOF
81ecdfbb
RW
4541for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4542 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d45dc31f
SE
4543do
4544 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4545 if ac_fn_c_try_compile "$LINENO"; then :
4546 ac_cv_prog_cc_c89=$ac_arg
252b5132 4547fi
81ecdfbb
RW
4548rm -f core conftest.err conftest.$ac_objext
4549 test "x$ac_cv_prog_cc_c89" != "xno" && break
d45dc31f 4550done
81ecdfbb 4551rm -f conftest.$ac_ext
d45dc31f 4552CC=$ac_save_CC
ac48eca1 4553
252b5132 4554fi
81ecdfbb
RW
4555# AC_CACHE_VAL
4556case "x$ac_cv_prog_cc_c89" in
4557 x)
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4559$as_echo "none needed" >&6; } ;;
4560 xno)
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4562$as_echo "unsupported" >&6; } ;;
d45dc31f 4563 *)
81ecdfbb
RW
4564 CC="$CC $ac_cv_prog_cc_c89"
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4566$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
252b5132 4567esac
81ecdfbb 4568if test "x$ac_cv_prog_cc_c89" != xno; then :
252b5132 4569
d45dc31f 4570fi
ac48eca1 4571
d45dc31f
SE
4572ac_ext=c
4573ac_cpp='$CPP $CPPFLAGS'
4574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4576ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 4577
7357c5b6
AM
4578ac_ext=c
4579ac_cpp='$CPP $CPPFLAGS'
4580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4582ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4584$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4585# On Suns, sometimes $CPP names a directory.
4586if test -n "$CPP" && test -d "$CPP"; then
4587 CPP=
4588fi
4589if test -z "$CPP"; then
81ecdfbb
RW
4590 if test "${ac_cv_prog_CPP+set}" = set; then :
4591 $as_echo_n "(cached) " >&6
7357c5b6
AM
4592else
4593 # Double quotes because CPP needs to be expanded
4594 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4595 do
4596 ac_preproc_ok=false
4597for ac_c_preproc_warn_flag in '' yes
4598do
4599 # Use a header file that comes with gcc, so configuring glibc
4600 # with a fresh cross-compiler works.
4601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4602 # <limits.h> exists even on freestanding compilers.
4603 # On the NeXT, cc -E runs the code through the compiler's parser,
4604 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4606/* end confdefs.h. */
4607#ifdef __STDC__
4608# include <limits.h>
4609#else
4610# include <assert.h>
4611#endif
4612 Syntax error
4613_ACEOF
81ecdfbb 4614if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4615
81ecdfbb 4616else
7357c5b6
AM
4617 # Broken: fails on valid input.
4618continue
4619fi
4620rm -f conftest.err conftest.$ac_ext
d7040cdb 4621
81ecdfbb 4622 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4623 # can be detected and how.
81ecdfbb 4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4625/* end confdefs.h. */
4626#include <ac_nonexistent.h>
4627_ACEOF
81ecdfbb 4628if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4629 # Broken: success on invalid input.
4630continue
4631else
7357c5b6
AM
4632 # Passes both tests.
4633ac_preproc_ok=:
4634break
4635fi
4636rm -f conftest.err conftest.$ac_ext
d7040cdb 4637
7357c5b6
AM
4638done
4639# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4640rm -f conftest.err conftest.$ac_ext
81ecdfbb 4641if $ac_preproc_ok; then :
7357c5b6
AM
4642 break
4643fi
d7040cdb 4644
7357c5b6
AM
4645 done
4646 ac_cv_prog_CPP=$CPP
d7040cdb 4647
7357c5b6
AM
4648fi
4649 CPP=$ac_cv_prog_CPP
4650else
4651 ac_cv_prog_CPP=$CPP
4652fi
81ecdfbb
RW
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4654$as_echo "$CPP" >&6; }
7357c5b6
AM
4655ac_preproc_ok=false
4656for ac_c_preproc_warn_flag in '' yes
4657do
4658 # Use a header file that comes with gcc, so configuring glibc
4659 # with a fresh cross-compiler works.
4660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4661 # <limits.h> exists even on freestanding compilers.
4662 # On the NeXT, cc -E runs the code through the compiler's parser,
4663 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4665/* end confdefs.h. */
4666#ifdef __STDC__
4667# include <limits.h>
4668#else
4669# include <assert.h>
4670#endif
4671 Syntax error
4672_ACEOF
81ecdfbb 4673if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4674
81ecdfbb 4675else
7357c5b6
AM
4676 # Broken: fails on valid input.
4677continue
4678fi
4679rm -f conftest.err conftest.$ac_ext
d7040cdb 4680
81ecdfbb 4681 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4682 # can be detected and how.
81ecdfbb 4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4684/* end confdefs.h. */
4685#include <ac_nonexistent.h>
4686_ACEOF
81ecdfbb 4687if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4688 # Broken: success on invalid input.
4689continue
4690else
7357c5b6
AM
4691 # Passes both tests.
4692ac_preproc_ok=:
4693break
4694fi
4695rm -f conftest.err conftest.$ac_ext
d7040cdb 4696
7357c5b6
AM
4697done
4698# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4699rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
4700if $ac_preproc_ok; then :
4701
7357c5b6 4702else
81ecdfbb
RW
4703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4704$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4705as_fn_error "C preprocessor \"$CPP\" fails sanity check
4706See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 4707fi
d7040cdb 4708
7357c5b6
AM
4709ac_ext=c
4710ac_cpp='$CPP $CPPFLAGS'
4711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4713ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
4714
4715
81ecdfbb
RW
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4717$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4718if test "${ac_cv_path_GREP+set}" = set; then :
4719 $as_echo_n "(cached) " >&6
7357c5b6 4720else
81ecdfbb
RW
4721 if test -z "$GREP"; then
4722 ac_path_GREP_found=false
4723 # Loop through the user's path and test for each of PROGNAME-LIST
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4726do
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_prog in grep ggrep; do
4730 for ac_exec_ext in '' $ac_executable_extensions; do
4731 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4732 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4733# Check for GNU ac_path_GREP and select it if it is found.
4734 # Check for GNU $ac_path_GREP
4735case `"$ac_path_GREP" --version 2>&1` in
4736*GNU*)
4737 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4738*)
4739 ac_count=0
4740 $as_echo_n 0123456789 >"conftest.in"
4741 while :
4742 do
4743 cat "conftest.in" "conftest.in" >"conftest.tmp"
4744 mv "conftest.tmp" "conftest.in"
4745 cp "conftest.in" "conftest.nl"
4746 $as_echo 'GREP' >> "conftest.nl"
4747 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4748 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4749 as_fn_arith $ac_count + 1 && ac_count=$as_val
4750 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4751 # Best one so far, save it but keep looking for a better one
4752 ac_cv_path_GREP="$ac_path_GREP"
4753 ac_path_GREP_max=$ac_count
7357c5b6 4754 fi
81ecdfbb
RW
4755 # 10*(2^10) chars as input seems more than enough
4756 test $ac_count -gt 10 && break
4757 done
4758 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4759esac
4760
4761 $ac_path_GREP_found && break 3
4762 done
4763 done
4764 done
4765IFS=$as_save_IFS
4766 if test -z "$ac_cv_path_GREP"; then
4767 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4768 fi
4769else
4770 ac_cv_path_GREP=$GREP
4771fi
4772
7357c5b6 4773fi
81ecdfbb
RW
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4775$as_echo "$ac_cv_path_GREP" >&6; }
4776 GREP="$ac_cv_path_GREP"
d7040cdb 4777
d7040cdb 4778
81ecdfbb
RW
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4780$as_echo_n "checking for egrep... " >&6; }
4781if test "${ac_cv_path_EGREP+set}" = set; then :
4782 $as_echo_n "(cached) " >&6
7357c5b6 4783else
81ecdfbb
RW
4784 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4785 then ac_cv_path_EGREP="$GREP -E"
4786 else
4787 if test -z "$EGREP"; then
4788 ac_path_EGREP_found=false
4789 # Loop through the user's path and test for each of PROGNAME-LIST
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4792do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_prog in egrep; do
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4798 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4799# Check for GNU ac_path_EGREP and select it if it is found.
4800 # Check for GNU $ac_path_EGREP
4801case `"$ac_path_EGREP" --version 2>&1` in
4802*GNU*)
4803 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4804*)
4805 ac_count=0
4806 $as_echo_n 0123456789 >"conftest.in"
4807 while :
4808 do
4809 cat "conftest.in" "conftest.in" >"conftest.tmp"
4810 mv "conftest.tmp" "conftest.in"
4811 cp "conftest.in" "conftest.nl"
4812 $as_echo 'EGREP' >> "conftest.nl"
4813 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4814 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4815 as_fn_arith $ac_count + 1 && ac_count=$as_val
4816 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4817 # Best one so far, save it but keep looking for a better one
4818 ac_cv_path_EGREP="$ac_path_EGREP"
4819 ac_path_EGREP_max=$ac_count
4820 fi
4821 # 10*(2^10) chars as input seems more than enough
4822 test $ac_count -gt 10 && break
4823 done
4824 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4825esac
4826
4827 $ac_path_EGREP_found && break 3
4828 done
4829 done
4830 done
4831IFS=$as_save_IFS
4832 if test -z "$ac_cv_path_EGREP"; then
4833 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4834 fi
4835else
4836 ac_cv_path_EGREP=$EGREP
4837fi
4838
4839 fi
4840fi
4841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4842$as_echo "$ac_cv_path_EGREP" >&6; }
4843 EGREP="$ac_cv_path_EGREP"
4844
4845
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4847$as_echo_n "checking for ANSI C header files... " >&6; }
4848if test "${ac_cv_header_stdc+set}" = set; then :
4849 $as_echo_n "(cached) " >&6
4850else
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4852/* end confdefs.h. */
4853#include <stdlib.h>
4854#include <stdarg.h>
4855#include <string.h>
4856#include <float.h>
d7040cdb 4857
7357c5b6
AM
4858int
4859main ()
4860{
d7040cdb 4861
7357c5b6
AM
4862 ;
4863 return 0;
4864}
4865_ACEOF
81ecdfbb 4866if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4867 ac_cv_header_stdc=yes
4868else
81ecdfbb 4869 ac_cv_header_stdc=no
7357c5b6 4870fi
81ecdfbb 4871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4872
7357c5b6
AM
4873if test $ac_cv_header_stdc = yes; then
4874 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4876/* end confdefs.h. */
4877#include <string.h>
d7040cdb 4878
7357c5b6
AM
4879_ACEOF
4880if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4881 $EGREP "memchr" >/dev/null 2>&1; then :
4882
d45dc31f 4883else
7357c5b6
AM
4884 ac_cv_header_stdc=no
4885fi
4886rm -f conftest*
d7040cdb 4887
7357c5b6 4888fi
d7040cdb 4889
7357c5b6
AM
4890if test $ac_cv_header_stdc = yes; then
4891 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4893/* end confdefs.h. */
4894#include <stdlib.h>
d7040cdb 4895
7357c5b6
AM
4896_ACEOF
4897if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4898 $EGREP "free" >/dev/null 2>&1; then :
4899
7357c5b6
AM
4900else
4901 ac_cv_header_stdc=no
4902fi
4903rm -f conftest*
d7040cdb 4904
7357c5b6 4905fi
d7040cdb 4906
7357c5b6
AM
4907if test $ac_cv_header_stdc = yes; then
4908 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4909 if test "$cross_compiling" = yes; then :
7357c5b6
AM
4910 :
4911else
81ecdfbb 4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4913/* end confdefs.h. */
4914#include <ctype.h>
81ecdfbb 4915#include <stdlib.h>
7357c5b6
AM
4916#if ((' ' & 0x0FF) == 0x020)
4917# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4918# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4919#else
4920# define ISLOWER(c) \
4921 (('a' <= (c) && (c) <= 'i') \
4922 || ('j' <= (c) && (c) <= 'r') \
4923 || ('s' <= (c) && (c) <= 'z'))
4924# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4925#endif
d7040cdb 4926
7357c5b6
AM
4927#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4928int
4929main ()
4930{
4931 int i;
4932 for (i = 0; i < 256; i++)
4933 if (XOR (islower (i), ISLOWER (i))
4934 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4935 return 2;
4936 return 0;
7357c5b6
AM
4937}
4938_ACEOF
81ecdfbb 4939if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 4940
81ecdfbb
RW
4941else
4942 ac_cv_header_stdc=no
7357c5b6 4943fi
81ecdfbb
RW
4944rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4945 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4946fi
81ecdfbb 4947
7357c5b6
AM
4948fi
4949fi
81ecdfbb
RW
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4951$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4952if test $ac_cv_header_stdc = yes; then
d7040cdb 4953
81ecdfbb 4954$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4955
7357c5b6 4956fi
d7040cdb 4957
7357c5b6 4958# On IRIX 5.3, sys/types and inttypes.h are conflicting.
81ecdfbb
RW
4959for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4960 inttypes.h stdint.h unistd.h
4961do :
4962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4963ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4964"
4965eval as_val=\$$as_ac_Header
4966 if test "x$as_val" = x""yes; then :
4967 cat >>confdefs.h <<_ACEOF
4968#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4969_ACEOF
d7040cdb 4970
81ecdfbb 4971fi
d7040cdb 4972
81ecdfbb 4973done
d7040cdb
SE
4974
4975
4976
81ecdfbb
RW
4977 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4978if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4979 MINIX=yes
4980else
4981 MINIX=
4982fi
d7040cdb
SE
4983
4984
81ecdfbb 4985 if test "$MINIX" = yes; then
d7040cdb 4986
81ecdfbb 4987$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb 4988
d7040cdb 4989
81ecdfbb 4990$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
4991
4992
81ecdfbb 4993$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4994
81ecdfbb 4995 fi
d7040cdb
SE
4996
4997
81ecdfbb
RW
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4999$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5000if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5001 $as_echo_n "(cached) " >&6
7357c5b6 5002else
81ecdfbb 5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 5004/* end confdefs.h. */
d7040cdb 5005
7357c5b6
AM
5006# define __EXTENSIONS__ 1
5007 $ac_includes_default
5008int
5009main ()
5010{
d7040cdb 5011
7357c5b6
AM
5012 ;
5013 return 0;
5014}
5015_ACEOF
81ecdfbb 5016if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 5017 ac_cv_safe_to_define___extensions__=yes
d7040cdb 5018else
81ecdfbb 5019 ac_cv_safe_to_define___extensions__=no
d7040cdb 5020fi
81ecdfbb 5021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 5022fi
81ecdfbb
RW
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5024$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 5025 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 5026 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d7040cdb 5027
81ecdfbb 5028 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d7040cdb 5029
81ecdfbb 5030 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
d7040cdb 5031
81ecdfbb 5032 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
d7040cdb 5033
81ecdfbb 5034 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d7040cdb
SE
5035
5036
e3525117 5037
5691d22d 5038
81ecdfbb
RW
5039
5040
3388710e
JM
5041# The tests for host and target for $enable_largefile require
5042# canonical names.
5043
5044
5045
da2f07f1
JK
5046# As the $enable_largefile decision depends on --enable-plugins we must set it
5047# even in directories otherwise not depending on the $plugins option.
5048
5049
81ecdfbb
RW
5050# Check whether --enable-plugins was given.
5051if test "${enable_plugins+set}" = set; then :
5052 enableval=$enable_plugins; case "${enableval}" in
ce3c775b
NC
5053 yes | "") plugins=yes ;;
5054 no) plugins=no ;;
5055 *) plugins=yes ;;
5056 esac
5057else
5058 plugins=no
81ecdfbb
RW
5059fi
5060
ce3c775b 5061
5691d22d 5062
da2f07f1 5063case "${host}" in
e3525117 5064 sparc-*-solaris*|i[3-7]86-*-solaris*)
da2f07f1
JK
5065 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5066 # are mutually exclusive; and without procfs support, the bfd/ elf module
5067 # cannot provide certain routines such as elfcore_write_prpsinfo
5068 # or elfcore_write_prstatus. So unless the user explicitly requested
5069 # large-file support through the --enable-largefile switch, disable
5070 # large-file support in favor of procfs support.
5071 test "${target}" = "${host}" -a "x$plugins" = xno \
5072 && : ${enable_largefile="no"}
e3525117
NC
5073 ;;
5074esac
5075
81ecdfbb
RW
5076# Check whether --enable-largefile was given.
5077if test "${enable_largefile+set}" = set; then :
5078 enableval=$enable_largefile;
5079fi
d053aef8 5080
d053aef8
JK
5081if test "$enable_largefile" != no; then
5082
81ecdfbb
RW
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5084$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5085if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5086 $as_echo_n "(cached) " >&6
d053aef8
JK
5087else
5088 ac_cv_sys_largefile_CC=no
5089 if test "$GCC" != yes; then
5090 ac_save_CC=$CC
5091 while :; do
81ecdfbb
RW
5092 # IRIX 6.2 and later do not support large files by default,
5093 # so use the C compiler's -n32 option if that helps.
5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5095/* end confdefs.h. */
5096#include <sys/types.h>
5097 /* Check that off_t can represent 2**63 - 1 correctly.
5098 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5099 since some C++ compilers masquerading as C compilers
5100 incorrectly reject 9223372036854775807. */
5101#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5102 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5103 && LARGE_OFF_T % 2147483647 == 1)
5104 ? 1 : -1];
5105int
5106main ()
5107{
5108
5109 ;
5110 return 0;
5111}
5112_ACEOF
81ecdfbb 5113 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5114 break
d053aef8 5115fi
81ecdfbb
RW
5116rm -f core conftest.err conftest.$ac_objext
5117 CC="$CC -n32"
5118 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5119 ac_cv_sys_largefile_CC=' -n32'; break
d053aef8 5120fi
81ecdfbb 5121rm -f core conftest.err conftest.$ac_objext
d053aef8
JK
5122 break
5123 done
5124 CC=$ac_save_CC
5125 rm -f conftest.$ac_ext
5126 fi
5127fi
81ecdfbb
RW
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5129$as_echo "$ac_cv_sys_largefile_CC" >&6; }
d053aef8
JK
5130 if test "$ac_cv_sys_largefile_CC" != no; then
5131 CC=$CC$ac_cv_sys_largefile_CC
5132 fi
5133
81ecdfbb
RW
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5135$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5136if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5137 $as_echo_n "(cached) " >&6
d053aef8
JK
5138else
5139 while :; do
81ecdfbb 5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5141/* end confdefs.h. */
5142#include <sys/types.h>
5143 /* Check that off_t can represent 2**63 - 1 correctly.
5144 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5145 since some C++ compilers masquerading as C compilers
5146 incorrectly reject 9223372036854775807. */
5147#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5148 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5149 && LARGE_OFF_T % 2147483647 == 1)
5150 ? 1 : -1];
5151int
5152main ()
5153{
5154
5155 ;
5156 return 0;
5157}
5158_ACEOF
81ecdfbb
RW
5159if ac_fn_c_try_compile "$LINENO"; then :
5160 ac_cv_sys_file_offset_bits=no; break
d053aef8 5161fi
81ecdfbb
RW
5162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5164/* end confdefs.h. */
5165#define _FILE_OFFSET_BITS 64
5166#include <sys/types.h>
5167 /* Check that off_t can represent 2**63 - 1 correctly.
5168 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5169 since some C++ compilers masquerading as C compilers
5170 incorrectly reject 9223372036854775807. */
5171#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5172 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5173 && LARGE_OFF_T % 2147483647 == 1)
5174 ? 1 : -1];
5175int
5176main ()
5177{
5178
5179 ;
5180 return 0;
5181}
5182_ACEOF
81ecdfbb 5183if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5184 ac_cv_sys_file_offset_bits=64; break
d053aef8 5185fi
81ecdfbb
RW
5186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5187 ac_cv_sys_file_offset_bits=unknown
d053aef8
JK
5188 break
5189done
5190fi
81ecdfbb
RW
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5192$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5193case $ac_cv_sys_file_offset_bits in #(
5194 no | unknown) ;;
5195 *)
d053aef8
JK
5196cat >>confdefs.h <<_ACEOF
5197#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5198_ACEOF
81ecdfbb
RW
5199;;
5200esac
5201rm -rf conftest*
5202 if test $ac_cv_sys_file_offset_bits = unknown; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5204$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5205if test "${ac_cv_sys_large_files+set}" = set; then :
5206 $as_echo_n "(cached) " >&6
d053aef8
JK
5207else
5208 while :; do
81ecdfbb 5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5210/* end confdefs.h. */
5211#include <sys/types.h>
5212 /* Check that off_t can represent 2**63 - 1 correctly.
5213 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5214 since some C++ compilers masquerading as C compilers
5215 incorrectly reject 9223372036854775807. */
5216#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5217 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5218 && LARGE_OFF_T % 2147483647 == 1)
5219 ? 1 : -1];
5220int
5221main ()
5222{
5223
5224 ;
5225 return 0;
5226}
5227_ACEOF
81ecdfbb
RW
5228if ac_fn_c_try_compile "$LINENO"; then :
5229 ac_cv_sys_large_files=no; break
d053aef8 5230fi
81ecdfbb
RW
5231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5233/* end confdefs.h. */
5234#define _LARGE_FILES 1
5235#include <sys/types.h>
5236 /* Check that off_t can represent 2**63 - 1 correctly.
5237 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5238 since some C++ compilers masquerading as C compilers
5239 incorrectly reject 9223372036854775807. */
5240#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5241 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5242 && LARGE_OFF_T % 2147483647 == 1)
5243 ? 1 : -1];
5244int
5245main ()
5246{
5247
5248 ;
5249 return 0;
5250}
5251_ACEOF
81ecdfbb 5252if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5253 ac_cv_sys_large_files=1; break
d053aef8 5254fi
81ecdfbb
RW
5255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5256 ac_cv_sys_large_files=unknown
d053aef8
JK
5257 break
5258done
5259fi
81ecdfbb
RW
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5261$as_echo "$ac_cv_sys_large_files" >&6; }
5262case $ac_cv_sys_large_files in #(
5263 no | unknown) ;;
5264 *)
d053aef8
JK
5265cat >>confdefs.h <<_ACEOF
5266#define _LARGE_FILES $ac_cv_sys_large_files
5267_ACEOF
81ecdfbb
RW
5268;;
5269esac
5270rm -rf conftest*
5271 fi
d053aef8
JK
5272fi
5273
da2f07f1 5274
718a6fd8
SE
5275case `pwd` in
5276 *\ * | *\ *)
81ecdfbb
RW
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5278$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
718a6fd8 5279esac
d7040cdb
SE
5280
5281
7357c5b6 5282
718a6fd8
SE
5283macro_version='2.2.6'
5284macro_revision='1.3012'
7357c5b6
AM
5285
5286
5287
5288
5289
5290
7357c5b6
AM
5291
5292
5293
5294
5295
5296
5297
718a6fd8 5298ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 5299
81ecdfbb
RW
5300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5301$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5302if test "${ac_cv_path_SED+set}" = set; then :
5303 $as_echo_n "(cached) " >&6
7357c5b6 5304else
81ecdfbb
RW
5305 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5306 for ac_i in 1 2 3 4 5 6 7; do
5307 ac_script="$ac_script$as_nl$ac_script"
5308 done
5309 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5310 { ac_script=; unset ac_script;}
5311 if test -z "$SED"; then
5312 ac_path_SED_found=false
5313 # Loop through the user's path and test for each of PROGNAME-LIST
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5315for as_dir in $PATH
5316do
5317 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=.
81ecdfbb 5319 for ac_prog in sed gsed; do
7357c5b6 5320 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5321 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5322 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5323# Check for GNU ac_path_SED and select it if it is found.
5324 # Check for GNU $ac_path_SED
5325case `"$ac_path_SED" --version 2>&1` in
5326*GNU*)
5327 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5328*)
5329 ac_count=0
5330 $as_echo_n 0123456789 >"conftest.in"
5331 while :
5332 do
5333 cat "conftest.in" "conftest.in" >"conftest.tmp"
5334 mv "conftest.tmp" "conftest.in"
5335 cp "conftest.in" "conftest.nl"
5336 $as_echo '' >> "conftest.nl"
5337 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5338 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5339 as_fn_arith $ac_count + 1 && ac_count=$as_val
5340 if test $ac_count -gt ${ac_path_SED_max-0}; then
5341 # Best one so far, save it but keep looking for a better one
5342 ac_cv_path_SED="$ac_path_SED"
5343 ac_path_SED_max=$ac_count
5344 fi
5345 # 10*(2^10) chars as input seems more than enough
5346 test $ac_count -gt 10 && break
5347 done
5348 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5349esac
5350
5351 $ac_path_SED_found && break 3
7357c5b6
AM
5352 done
5353 done
81ecdfbb 5354 done
7357c5b6 5355IFS=$as_save_IFS
81ecdfbb
RW
5356 if test -z "$ac_cv_path_SED"; then
5357 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5358 fi
81ecdfbb
RW
5359else
5360 ac_cv_path_SED=$SED
7357c5b6
AM
5361fi
5362
81ecdfbb
RW
5363fi
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5365$as_echo "$ac_cv_path_SED" >&6; }
5366 SED="$ac_cv_path_SED"
5367 rm -f conftest.sed
7357c5b6
AM
5368
5369test -z "$SED" && SED=sed
5370Xsed="$SED -e 1s/^X//"
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
81ecdfbb
RW
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5383$as_echo_n "checking for fgrep... " >&6; }
5384if test "${ac_cv_path_FGREP+set}" = set; then :
5385 $as_echo_n "(cached) " >&6
7357c5b6 5386else
81ecdfbb
RW
5387 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5388 then ac_cv_path_FGREP="$GREP -F"
5389 else
5390 if test -z "$FGREP"; then
5391 ac_path_FGREP_found=false
5392 # Loop through the user's path and test for each of PROGNAME-LIST
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5395do
5396 IFS=$as_save_IFS
5397 test -z "$as_dir" && as_dir=.
5398 for ac_prog in fgrep; do
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5401 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5402# Check for GNU ac_path_FGREP and select it if it is found.
5403 # Check for GNU $ac_path_FGREP
5404case `"$ac_path_FGREP" --version 2>&1` in
5405*GNU*)
5406 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5407*)
5408 ac_count=0
5409 $as_echo_n 0123456789 >"conftest.in"
5410 while :
5411 do
5412 cat "conftest.in" "conftest.in" >"conftest.tmp"
5413 mv "conftest.tmp" "conftest.in"
5414 cp "conftest.in" "conftest.nl"
5415 $as_echo 'FGREP' >> "conftest.nl"
5416 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5418 as_fn_arith $ac_count + 1 && ac_count=$as_val
5419 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5420 # Best one so far, save it but keep looking for a better one
5421 ac_cv_path_FGREP="$ac_path_FGREP"
5422 ac_path_FGREP_max=$ac_count
7357c5b6 5423 fi
81ecdfbb
RW
5424 # 10*(2^10) chars as input seems more than enough
5425 test $ac_count -gt 10 && break
5426 done
5427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5428esac
5429
5430 $ac_path_FGREP_found && break 3
5431 done
5432 done
5433 done
5434IFS=$as_save_IFS
5435 if test -z "$ac_cv_path_FGREP"; then
5436 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5437 fi
5438else
5439 ac_cv_path_FGREP=$FGREP
5440fi
5441
5442 fi
7357c5b6 5443fi
81ecdfbb
RW
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5445$as_echo "$ac_cv_path_FGREP" >&6; }
5446 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5447
5448
5449test -z "$GREP" && GREP=grep
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
81ecdfbb
RW
5469# Check whether --with-gnu-ld was given.
5470if test "${with_gnu_ld+set}" = set; then :
5471 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5472else
5473 with_gnu_ld=no
81ecdfbb
RW
5474fi
5475
7357c5b6
AM
5476ac_prog=ld
5477if test "$GCC" = yes; then
5478 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5480$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5481 case $host in
5482 *-*-mingw*)
d45dc31f
SE
5483 # gcc leaves a trailing carriage return which upsets mingw
5484 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5485 *)
5486 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5487 esac
5488 case $ac_prog in
5489 # Accept absolute paths.
d7040cdb 5490 [\\/]* | ?:[\\/]*)
d45dc31f 5491 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
5492 # Canonicalize the pathname of ld
5493 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5494 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5495 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d45dc31f
SE
5496 done
5497 test -z "$LD" && LD="$ac_prog"
5498 ;;
5499 "")
5500 # If it fails, then pretend we aren't using GCC.
5501 ac_prog=ld
5502 ;;
5503 *)
5504 # If it is relative, then search for the first ld in PATH.
5505 with_gnu_ld=unknown
5506 ;;
5507 esac
5508elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5510$as_echo_n "checking for GNU ld... " >&6; }
d45dc31f 5511else
81ecdfbb
RW
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5513$as_echo_n "checking for non-GNU ld... " >&6; }
d45dc31f 5514fi
81ecdfbb
RW
5515if test "${lt_cv_path_LD+set}" = set; then :
5516 $as_echo_n "(cached) " >&6
d45dc31f
SE
5517else
5518 if test -z "$LD"; then
d7040cdb 5519 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d45dc31f 5520 for ac_dir in $PATH; do
d7040cdb 5521 IFS="$lt_save_ifs"
d45dc31f
SE
5522 test -z "$ac_dir" && ac_dir=.
5523 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5524 lt_cv_path_LD="$ac_dir/$ac_prog"
5525 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5526 # but apparently some variants of GNU ld only accept -v.
d45dc31f 5527 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5528 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5529 *GNU* | *'with BFD'*)
d45dc31f 5530 test "$with_gnu_ld" != no && break
d7040cdb
SE
5531 ;;
5532 *)
d45dc31f 5533 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5534 ;;
5535 esac
d45dc31f
SE
5536 fi
5537 done
d7040cdb 5538 IFS="$lt_save_ifs"
d45dc31f
SE
5539else
5540 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5541fi
5542fi
1ad12f97 5543
d45dc31f
SE
5544LD="$lt_cv_path_LD"
5545if test -n "$LD"; then
81ecdfbb
RW
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5547$as_echo "$LD" >&6; }
d45dc31f 5548else
81ecdfbb
RW
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550$as_echo "no" >&6; }
d45dc31f 5551fi
81ecdfbb
RW
5552test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5554$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5555if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5556 $as_echo_n "(cached) " >&6
d45dc31f 5557else
d7040cdb
SE
5558 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5559case `$LD -v 2>&1 </dev/null` in
5560*GNU* | *'with BFD'*)
d45dc31f 5561 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5562 ;;
5563*)
d45dc31f 5564 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5565 ;;
5566esac
d45dc31f 5567fi
81ecdfbb
RW
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5569$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d45dc31f 5570with_gnu_ld=$lt_cv_prog_gnu_ld
569acd2c 5571
d45dc31f 5572
42ecbf5e 5573
d7040cdb
SE
5574
5575
5576
5577
5578
5579
81ecdfbb
RW
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5581$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5582if test "${lt_cv_path_NM+set}" = set; then :
5583 $as_echo_n "(cached) " >&6
d45dc31f
SE
5584else
5585 if test -n "$NM"; then
5586 # Let the user override the test.
5587 lt_cv_path_NM="$NM"
5588else
d7040cdb
SE
5589 lt_nm_to_check="${ac_tool_prefix}nm"
5590 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5591 lt_nm_to_check="$lt_nm_to_check nm"
5592 fi
5593 for lt_tmp_nm in $lt_nm_to_check; do
5594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5595 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5596 IFS="$lt_save_ifs"
5597 test -z "$ac_dir" && ac_dir=.
5598 tmp_nm="$ac_dir/$lt_tmp_nm"
5599 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5600 # Check to see if the nm accepts a BSD-compat flag.
5601 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5602 # nm: unknown option "B" ignored
5603 # Tru64's nm complains that /dev/null is an invalid object file
5604 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5605 */dev/null* | *'Invalid file or object type'*)
5606 lt_cv_path_NM="$tmp_nm -B"
5607 break
5608 ;;
5609 *)
5610 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5611 */dev/null*)
5612 lt_cv_path_NM="$tmp_nm -p"
5613 break
5614 ;;
5615 *)
5616 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5617 continue # so that we can try to find one that supports BSD flags
5618 ;;
5619 esac
5620 ;;
5621 esac
d45dc31f 5622 fi
d7040cdb
SE
5623 done
5624 IFS="$lt_save_ifs"
d45dc31f 5625 done
d7040cdb 5626 : ${lt_cv_path_NM=no}
d45dc31f 5627fi
a541e3ce 5628fi
81ecdfbb
RW
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5630$as_echo "$lt_cv_path_NM" >&6; }
d7040cdb
SE
5631if test "$lt_cv_path_NM" != "no"; then
5632 NM="$lt_cv_path_NM"
d45dc31f 5633else
d7040cdb
SE
5634 # Didn't find any BSD compatible name lister, look for dumpbin.
5635 if test -n "$ac_tool_prefix"; then
5636 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5637 do
5638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5639set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641$as_echo_n "checking for $ac_word... " >&6; }
5642if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5643 $as_echo_n "(cached) " >&6
d45dc31f 5644else
d7040cdb
SE
5645 if test -n "$DUMPBIN"; then
5646 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5647else
5648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649for as_dir in $PATH
5650do
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 5655 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
5657 break 2
5658 fi
5659done
81ecdfbb
RW
5660 done
5661IFS=$as_save_IFS
398ee8f1 5662
d7040cdb
SE
5663fi
5664fi
5665DUMPBIN=$ac_cv_prog_DUMPBIN
5666if test -n "$DUMPBIN"; then
81ecdfbb
RW
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5668$as_echo "$DUMPBIN" >&6; }
d7040cdb 5669else
81ecdfbb
RW
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671$as_echo "no" >&6; }
d7040cdb 5672fi
d15b04bd 5673
81ecdfbb 5674
d7040cdb
SE
5675 test -n "$DUMPBIN" && break
5676 done
5677fi
5678if test -z "$DUMPBIN"; then
5679 ac_ct_DUMPBIN=$DUMPBIN
5680 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5681do
5682 # Extract the first word of "$ac_prog", so it can be a program name with args.
5683set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5685$as_echo_n "checking for $ac_word... " >&6; }
5686if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5687 $as_echo_n "(cached) " >&6
d7040cdb
SE
5688else
5689 if test -n "$ac_ct_DUMPBIN"; then
5690 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5691else
5692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693for as_dir in $PATH
5694do
5695 IFS=$as_save_IFS
5696 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5697 for ac_exec_ext in '' $ac_executable_extensions; do
5698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 5699 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5701 break 2
d45dc31f 5702 fi
d7040cdb 5703done
81ecdfbb
RW
5704 done
5705IFS=$as_save_IFS
d15b04bd 5706
d7040cdb
SE
5707fi
5708fi
5709ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5710if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5712$as_echo "$ac_ct_DUMPBIN" >&6; }
d7040cdb 5713else
81ecdfbb
RW
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715$as_echo "no" >&6; }
d7040cdb 5716fi
42ecbf5e 5717
81ecdfbb 5718
d7040cdb
SE
5719 test -n "$ac_ct_DUMPBIN" && break
5720done
d45dc31f 5721
81ecdfbb
RW
5722 if test "x$ac_ct_DUMPBIN" = x; then
5723 DUMPBIN=":"
5724 else
5725 case $cross_compiling:$ac_tool_warned in
5726yes:)
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5729ac_tool_warned=yes ;;
5730esac
5731 DUMPBIN=$ac_ct_DUMPBIN
5732 fi
d7040cdb 5733fi
d45dc31f 5734
d45dc31f 5735
d7040cdb
SE
5736 if test "$DUMPBIN" != ":"; then
5737 NM="$DUMPBIN"
42ecbf5e 5738 fi
d7040cdb
SE
5739fi
5740test -z "$NM" && NM=nm
d45dc31f 5741
42ecbf5e 5742
d15b04bd 5743
42ecbf5e 5744
d45dc31f 5745
42ecbf5e 5746
81ecdfbb
RW
5747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5748$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5749if test "${lt_cv_nm_interface+set}" = set; then :
5750 $as_echo_n "(cached) " >&6
d7040cdb
SE
5751else
5752 lt_cv_nm_interface="BSD nm"
5753 echo "int some_variable = 0;" > conftest.$ac_ext
3388710e 5754 (eval echo "\"\$as_me:5754: $ac_compile\"" >&5)
d7040cdb
SE
5755 (eval "$ac_compile" 2>conftest.err)
5756 cat conftest.err >&5
3388710e 5757 (eval echo "\"\$as_me:5757: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5758 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5759 cat conftest.err >&5
3388710e 5760 (eval echo "\"\$as_me:5760: output\"" >&5)
d7040cdb
SE
5761 cat conftest.out >&5
5762 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5763 lt_cv_nm_interface="MS dumpbin"
5764 fi
5765 rm -f conftest*
42ecbf5e 5766fi
81ecdfbb
RW
5767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5768$as_echo "$lt_cv_nm_interface" >&6; }
42ecbf5e 5769
81ecdfbb
RW
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5771$as_echo_n "checking whether ln -s works... " >&6; }
d7040cdb
SE
5772LN_S=$as_ln_s
5773if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5775$as_echo "yes" >&6; }
d7040cdb 5776else
81ecdfbb
RW
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5778$as_echo "no, using $LN_S" >&6; }
d7040cdb 5779fi
d45dc31f
SE
5780
5781# find the maximum length of command line arguments
81ecdfbb
RW
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5783$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5784if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5785 $as_echo_n "(cached) " >&6
42ecbf5e 5786else
d45dc31f
SE
5787 i=0
5788 teststring="ABCD"
5789
5790 case $build_os in
5791 msdosdjgpp*)
5792 # On DJGPP, this test can blow up pretty badly due to problems in libc
5793 # (any single argument exceeding 2000 bytes causes a buffer overrun
5794 # during glob expansion). Even if it were fixed, the result of this
5795 # check would be larger than it should be.
5796 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5797 ;;
5798
d7040cdb
SE
5799 gnu*)
5800 # Under GNU Hurd, this test is not required because there is
5801 # no limit to the length of command line arguments.
5802 # Libtool will interpret -1 as no limit whatsoever
5803 lt_cv_sys_max_cmd_len=-1;
5804 ;;
5805
718a6fd8 5806 cygwin* | mingw* | cegcc*)
d45dc31f
SE
5807 # On Win9x/ME, this test blows up -- it succeeds, but takes
5808 # about 5 minutes as the teststring grows exponentially.
5809 # Worse, since 9x/ME are not pre-emptively multitasking,
5810 # you end up with a "frozen" computer, even though with patience
5811 # the test eventually succeeds (with a max line length of 256k).
5812 # Instead, let's just punt: use the minimum linelength reported by
5813 # all of the supported platforms: 8192 (on NT/2K/XP).
5814 lt_cv_sys_max_cmd_len=8192;
5815 ;;
5816
5817 amigaos*)
5818 # On AmigaOS with pdksh, this test takes hours, literally.
5819 # So we just punt and use a minimum line length of 8192.
5820 lt_cv_sys_max_cmd_len=8192;
5821 ;;
5822
5823 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5824 # This has been around since 386BSD, at least. Likely further.
5825 if test -x /sbin/sysctl; then
5826 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5827 elif test -x /usr/sbin/sysctl; then
5828 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5829 else
d7040cdb 5830 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
d45dc31f
SE
5831 fi
5832 # And add a safety zone
5833 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5834 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5835 ;;
d7040cdb
SE
5836
5837 interix*)
5838 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5839 lt_cv_sys_max_cmd_len=196608
5840 ;;
5841
5842 osf*)
5843 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5844 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5845 # nice to cause kernel panics so lets avoid the loop below.
5846 # First set a reasonable default.
5847 lt_cv_sys_max_cmd_len=16384
5848 #
5849 if test -x /sbin/sysconfig; then
5850 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5851 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5852 esac
5853 fi
5854 ;;
5855 sco3.2v5*)
5856 lt_cv_sys_max_cmd_len=102400
5857 ;;
5858 sysv5* | sco5v6* | sysv4.2uw2*)
5859 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5860 if test -n "$kargmax"; then
5861 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5862 else
5863 lt_cv_sys_max_cmd_len=32768
5864 fi
5865 ;;
5866 *)
718a6fd8
SE
5867 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5868 if test -n "$lt_cv_sys_max_cmd_len"; then
5ba684e2
NC
5869 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5871 else
5872 # Make teststring a little bigger before we do anything with it.
5873 # a 1K string should be a reasonable start.
5874 for i in 1 2 3 4 5 6 7 8 ; do
5875 teststring=$teststring$teststring
5876 done
5877 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5878 # If test is not a shell built-in, we'll probably end up computing a
5879 # maximum length that is only half of the actual maximum length, but
5880 # we can't tell.
5881 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5882 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5883 test $i != 17 # 1/2 MB should be enough
5884 do
5885 i=`expr $i + 1`
5886 teststring=$teststring$teststring
5887 done
5888 # Only check the string length outside the loop.
5889 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5890 teststring=
5891 # Add a significant safety factor because C++ compilers can tack on
5892 # massive amounts of additional arguments before passing them to the
5893 # linker. It appears as though 1/2 is a usable value.
5894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5895 fi
d7040cdb 5896 ;;
d45dc31f 5897 esac
42ecbf5e 5898
42ecbf5e
DJ
5899fi
5900
d7040cdb 5901if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5903$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
252b5132 5904else
81ecdfbb
RW
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5906$as_echo "none" >&6; }
252b5132 5907fi
d7040cdb 5908max_cmd_len=$lt_cv_sys_max_cmd_len
e5a52504 5909
d45dc31f 5910
42ecbf5e 5911
d45dc31f 5912
d45dc31f 5913
d7040cdb 5914
d7040cdb
SE
5915: ${CP="cp -f"}
5916: ${MV="mv -f"}
5917: ${RM="rm -f"}
5918
81ecdfbb
RW
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5920$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
d7040cdb
SE
5921# Try some XSI features
5922xsi_shell=no
5923( _lt_dummy="a/b/c"
5924 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
718a6fd8
SE
5925 = c,a/b,, \
5926 && eval 'test $(( 1 + 1 )) -eq 2 \
5927 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
d7040cdb 5928 && xsi_shell=yes
81ecdfbb
RW
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5930$as_echo "$xsi_shell" >&6; }
d7040cdb
SE
5931
5932
81ecdfbb
RW
5933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5934$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
d7040cdb
SE
5935lt_shell_append=no
5936( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5937 >/dev/null 2>&1 \
5938 && lt_shell_append=yes
81ecdfbb
RW
5939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5940$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
5941
5942
5943if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5944 lt_unset=unset
252b5132 5945else
d7040cdb 5946 lt_unset=false
252b5132
RH
5947fi
5948
d7040cdb
SE
5949
5950
5951
5952
5953# test EBCDIC or ASCII
5954case `echo X|tr X '\101'` in
5955 A) # ASCII based system
5956 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5957 lt_SP2NL='tr \040 \012'
5958 lt_NL2SP='tr \015\012 \040\040'
5959 ;;
5960 *) # EBCDIC based system
5961 lt_SP2NL='tr \100 \n'
5962 lt_NL2SP='tr \r\n \100\100'
5963 ;;
5964esac
5965
5966
5967
5968
5969
5970
5971
5972
5973
81ecdfbb
RW
5974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5975$as_echo_n "checking for $LD option to reload object files... " >&6; }
5976if test "${lt_cv_ld_reload_flag+set}" = set; then :
5977 $as_echo_n "(cached) " >&6
252b5132 5978else
d7040cdb
SE
5979 lt_cv_ld_reload_flag='-r'
5980fi
81ecdfbb
RW
5981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5982$as_echo "$lt_cv_ld_reload_flag" >&6; }
d7040cdb
SE
5983reload_flag=$lt_cv_ld_reload_flag
5984case $reload_flag in
5985"" | " "*) ;;
5986*) reload_flag=" $reload_flag" ;;
5987esac
5988reload_cmds='$LD$reload_flag -o $output$reload_objs'
5989case $host_os in
5990 darwin*)
5991 if test "$GCC" = yes; then
5992 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5993 else
5994 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5995 fi
5996 ;;
5997esac
5998
5999
6000
6001
6002
6003
6004
6005
6006
718a6fd8
SE
6007if test -n "$ac_tool_prefix"; then
6008 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6009set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011$as_echo_n "checking for $ac_word... " >&6; }
6012if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6013 $as_echo_n "(cached) " >&6
718a6fd8
SE
6014else
6015 if test -n "$OBJDUMP"; then
6016 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6017else
6018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019for as_dir in $PATH
6020do
6021 IFS=$as_save_IFS
6022 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6025 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6027 break 2
6028 fi
6029done
81ecdfbb
RW
6030 done
6031IFS=$as_save_IFS
718a6fd8
SE
6032
6033fi
6034fi
6035OBJDUMP=$ac_cv_prog_OBJDUMP
6036if test -n "$OBJDUMP"; then
81ecdfbb
RW
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6038$as_echo "$OBJDUMP" >&6; }
718a6fd8 6039else
81ecdfbb
RW
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041$as_echo "no" >&6; }
718a6fd8
SE
6042fi
6043
81ecdfbb 6044
718a6fd8
SE
6045fi
6046if test -z "$ac_cv_prog_OBJDUMP"; then
6047 ac_ct_OBJDUMP=$OBJDUMP
6048 # Extract the first word of "objdump", so it can be a program name with args.
6049set dummy objdump; ac_word=$2
81ecdfbb
RW
6050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051$as_echo_n "checking for $ac_word... " >&6; }
6052if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6053 $as_echo_n "(cached) " >&6
718a6fd8
SE
6054else
6055 if test -n "$ac_ct_OBJDUMP"; then
6056 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6057else
6058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059for as_dir in $PATH
6060do
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6065 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6067 break 2
6068 fi
6069done
81ecdfbb
RW
6070 done
6071IFS=$as_save_IFS
718a6fd8 6072
718a6fd8
SE
6073fi
6074fi
6075ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6076if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6078$as_echo "$ac_ct_OBJDUMP" >&6; }
718a6fd8 6079else
81ecdfbb
RW
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081$as_echo "no" >&6; }
718a6fd8
SE
6082fi
6083
81ecdfbb
RW
6084 if test "x$ac_ct_OBJDUMP" = x; then
6085 OBJDUMP="false"
6086 else
6087 case $cross_compiling:$ac_tool_warned in
6088yes:)
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6091ac_tool_warned=yes ;;
6092esac
6093 OBJDUMP=$ac_ct_OBJDUMP
6094 fi
718a6fd8
SE
6095else
6096 OBJDUMP="$ac_cv_prog_OBJDUMP"
6097fi
6098
6099test -z "$OBJDUMP" && OBJDUMP=objdump
6100
6101
6102
6103
6104
6105
6106
6107
d7040cdb 6108
81ecdfbb
RW
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6110$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6111if test "${lt_cv_deplibs_check_method+set}" = set; then :
6112 $as_echo_n "(cached) " >&6
d7040cdb
SE
6113else
6114 lt_cv_file_magic_cmd='$MAGIC_CMD'
6115lt_cv_file_magic_test_file=
6116lt_cv_deplibs_check_method='unknown'
6117# Need to set the preceding variable on all platforms that support
6118# interlibrary dependencies.
6119# 'none' -- dependencies not supported.
6120# `unknown' -- same as none, but documents that we really don't know.
6121# 'pass_all' -- all dependencies passed with no checks.
6122# 'test_compile' -- check by making test program.
6123# 'file_magic [[regex]]' -- check by looking for files in library path
6124# which responds to the $file_magic_cmd with a given extended regex.
6125# If you have `file' or equivalent on your system and you're not sure
6126# whether `pass_all' will *always* work, you probably want this one.
6127
6128case $host_os in
50e7d84b 6129aix[4-9]*)
d7040cdb
SE
6130 lt_cv_deplibs_check_method=pass_all
6131 ;;
6132
6133beos*)
6134 lt_cv_deplibs_check_method=pass_all
6135 ;;
6136
6137bsdi[45]*)
6138 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6139 lt_cv_file_magic_cmd='/usr/bin/file -L'
6140 lt_cv_file_magic_test_file=/shlib/libc.so
6141 ;;
6142
6143cygwin*)
6144 # func_win32_libid is a shell function defined in ltmain.sh
6145 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6146 lt_cv_file_magic_cmd='func_win32_libid'
6147 ;;
6148
6149mingw* | pw32*)
6150 # Base MSYS/MinGW do not provide the 'file' command needed by
6151 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6152 # unless we find 'file', for example because we are cross-compiling.
6153 if ( file / ) >/dev/null 2>&1; then
6154 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6155 lt_cv_file_magic_cmd='func_win32_libid'
6156 else
6157 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6158 lt_cv_file_magic_cmd='$OBJDUMP -f'
6159 fi
6160 ;;
6161
718a6fd8
SE
6162cegcc)
6163 # use the weaker test based on 'objdump'. See mingw*.
6164 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6165 lt_cv_file_magic_cmd='$OBJDUMP -f'
6166 ;;
6167
d7040cdb
SE
6168darwin* | rhapsody*)
6169 lt_cv_deplibs_check_method=pass_all
d45dc31f 6170 ;;
d7040cdb
SE
6171
6172freebsd* | dragonfly*)
6173 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6174 case $host_cpu in
6175 i*86 )
6176 # Not sure whether the presence of OpenBSD here was a mistake.
6177 # Let's accept both of them until this is cleared up.
6178 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6179 lt_cv_file_magic_cmd=/usr/bin/file
6180 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6181 ;;
6182 esac
6183 else
6184 lt_cv_deplibs_check_method=pass_all
6185 fi
6186 ;;
6187
6188gnu*)
6189 lt_cv_deplibs_check_method=pass_all
d45dc31f 6190 ;;
d7040cdb
SE
6191
6192hpux10.20* | hpux11*)
6193 lt_cv_file_magic_cmd=/usr/bin/file
6194 case $host_cpu in
6195 ia64*)
6196 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6197 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6198 ;;
6199 hppa*64*)
6200 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6201 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6202 ;;
d45dc31f 6203 *)
d7040cdb
SE
6204 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6205 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6206 ;;
6207 esac
6208 ;;
42ecbf5e 6209
d7040cdb
SE
6210interix[3-9]*)
6211 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6213 ;;
42ecbf5e 6214
d7040cdb
SE
6215irix5* | irix6* | nonstopux*)
6216 case $LD in
6217 *-32|*"-32 ") libmagic=32-bit;;
6218 *-n32|*"-n32 ") libmagic=N32;;
6219 *-64|*"-64 ") libmagic=64-bit;;
6220 *) libmagic=never-match;;
6221 esac
6222 lt_cv_deplibs_check_method=pass_all
d45dc31f 6223 ;;
42ecbf5e 6224
d7040cdb 6225# This must be Linux ELF.
58e24671 6226linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
6227 lt_cv_deplibs_check_method=pass_all
6228 ;;
252b5132 6229
d7040cdb
SE
6230netbsd*)
6231 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6232 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f 6233 else
d7040cdb 6234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
d45dc31f 6235 fi
d7040cdb
SE
6236 ;;
6237
6238newos6*)
6239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6240 lt_cv_file_magic_cmd=/usr/bin/file
6241 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6242 ;;
6243
6244*nto* | *qnx*)
6245 lt_cv_deplibs_check_method=pass_all
6246 ;;
42ecbf5e 6247
d7040cdb
SE
6248openbsd*)
6249 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6251 else
6252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f
SE
6253 fi
6254 ;;
d7040cdb
SE
6255
6256osf3* | osf4* | osf5*)
6257 lt_cv_deplibs_check_method=pass_all
6258 ;;
6259
6260rdos*)
6261 lt_cv_deplibs_check_method=pass_all
6262 ;;
6263
6264solaris*)
6265 lt_cv_deplibs_check_method=pass_all
6266 ;;
6267
6268sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6269 lt_cv_deplibs_check_method=pass_all
6270 ;;
6271
6272sysv4 | sysv4.3*)
6273 case $host_vendor in
6274 motorola)
6275 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]'
6276 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6277 ;;
6278 ncr)
6279 lt_cv_deplibs_check_method=pass_all
6280 ;;
6281 sequent)
6282 lt_cv_file_magic_cmd='/bin/file'
6283 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6284 ;;
6285 sni)
6286 lt_cv_file_magic_cmd='/bin/file'
6287 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6288 lt_cv_file_magic_test_file=/lib/libc.so
6289 ;;
6290 siemens)
6291 lt_cv_deplibs_check_method=pass_all
6292 ;;
6293 pc)
6294 lt_cv_deplibs_check_method=pass_all
6295 ;;
6296 esac
6297 ;;
6298
6299tpf*)
6300 lt_cv_deplibs_check_method=pass_all
6301 ;;
d45dc31f 6302esac
42ecbf5e 6303
d7040cdb 6304fi
81ecdfbb
RW
6305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6306$as_echo "$lt_cv_deplibs_check_method" >&6; }
d7040cdb
SE
6307file_magic_cmd=$lt_cv_file_magic_cmd
6308deplibs_check_method=$lt_cv_deplibs_check_method
6309test -z "$deplibs_check_method" && deplibs_check_method=unknown
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
d45dc31f 6322if test -n "$ac_tool_prefix"; then
d7040cdb
SE
6323 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6324set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326$as_echo_n "checking for $ac_word... " >&6; }
6327if test "${ac_cv_prog_AR+set}" = set; then :
6328 $as_echo_n "(cached) " >&6
42ecbf5e 6329else
d7040cdb
SE
6330 if test -n "$AR"; then
6331 ac_cv_prog_AR="$AR" # Let the user override the test.
d45dc31f
SE
6332else
6333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334for as_dir in $PATH
6335do
6336 IFS=$as_save_IFS
6337 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6340 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6342 break 2
6343 fi
6344done
81ecdfbb
RW
6345 done
6346IFS=$as_save_IFS
42ecbf5e 6347
42ecbf5e 6348fi
d45dc31f 6349fi
d7040cdb
SE
6350AR=$ac_cv_prog_AR
6351if test -n "$AR"; then
81ecdfbb
RW
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6353$as_echo "$AR" >&6; }
d45dc31f 6354else
81ecdfbb
RW
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356$as_echo "no" >&6; }
d45dc31f 6357fi
42ecbf5e 6358
81ecdfbb 6359
42ecbf5e 6360fi
d7040cdb
SE
6361if test -z "$ac_cv_prog_AR"; then
6362 ac_ct_AR=$AR
6363 # Extract the first word of "ar", so it can be a program name with args.
6364set dummy ar; ac_word=$2
81ecdfbb
RW
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6366$as_echo_n "checking for $ac_word... " >&6; }
6367if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6368 $as_echo_n "(cached) " >&6
42ecbf5e 6369else
d7040cdb
SE
6370 if test -n "$ac_ct_AR"; then
6371 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
42ecbf5e 6372else
d45dc31f
SE
6373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374for as_dir in $PATH
6375do
6376 IFS=$as_save_IFS
6377 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6380 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6382 break 2
6383 fi
6384done
81ecdfbb
RW
6385 done
6386IFS=$as_save_IFS
42ecbf5e 6387
42ecbf5e 6388fi
42ecbf5e 6389fi
d7040cdb
SE
6390ac_ct_AR=$ac_cv_prog_ac_ct_AR
6391if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6393$as_echo "$ac_ct_AR" >&6; }
252b5132 6394else
81ecdfbb
RW
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6396$as_echo "no" >&6; }
252b5132 6397fi
252b5132 6398
81ecdfbb
RW
6399 if test "x$ac_ct_AR" = x; then
6400 AR="false"
6401 else
6402 case $cross_compiling:$ac_tool_warned in
6403yes:)
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6406ac_tool_warned=yes ;;
6407esac
6408 AR=$ac_ct_AR
6409 fi
d45dc31f 6410else
d7040cdb 6411 AR="$ac_cv_prog_AR"
d45dc31f 6412fi
42ecbf5e 6413
d7040cdb
SE
6414test -z "$AR" && AR=ar
6415test -z "$AR_FLAGS" && AR_FLAGS=cru
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
d45dc31f
SE
6427if test -n "$ac_tool_prefix"; then
6428 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6429set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431$as_echo_n "checking for $ac_word... " >&6; }
6432if test "${ac_cv_prog_STRIP+set}" = set; then :
6433 $as_echo_n "(cached) " >&6
d45dc31f
SE
6434else
6435 if test -n "$STRIP"; then
6436 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6437else
6438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439for as_dir in $PATH
42ecbf5e 6440do
d45dc31f
SE
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d45dc31f 6445 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6447 break 2
6448 fi
6449done
81ecdfbb
RW
6450 done
6451IFS=$as_save_IFS
d45dc31f
SE
6452
6453fi
6454fi
6455STRIP=$ac_cv_prog_STRIP
6456if test -n "$STRIP"; then
81ecdfbb
RW
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6458$as_echo "$STRIP" >&6; }
252b5132 6459else
81ecdfbb
RW
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461$as_echo "no" >&6; }
d45dc31f 6462fi
42ecbf5e 6463
81ecdfbb 6464
252b5132 6465fi
d45dc31f
SE
6466if test -z "$ac_cv_prog_STRIP"; then
6467 ac_ct_STRIP=$STRIP
6468 # Extract the first word of "strip", so it can be a program name with args.
6469set dummy strip; ac_word=$2
81ecdfbb
RW
6470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471$as_echo_n "checking for $ac_word... " >&6; }
6472if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6473 $as_echo_n "(cached) " >&6
d45dc31f
SE
6474else
6475 if test -n "$ac_ct_STRIP"; then
6476 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6477else
6478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479for as_dir in $PATH
6480do
6481 IFS=$as_save_IFS
6482 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d45dc31f 6485 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6487 break 2
6488 fi
6489done
81ecdfbb
RW
6490 done
6491IFS=$as_save_IFS
42ecbf5e 6492
d45dc31f
SE
6493fi
6494fi
6495ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6496if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6498$as_echo "$ac_ct_STRIP" >&6; }
d45dc31f 6499else
81ecdfbb
RW
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501$as_echo "no" >&6; }
252b5132 6502fi
e5a52504 6503
81ecdfbb
RW
6504 if test "x$ac_ct_STRIP" = x; then
6505 STRIP=":"
6506 else
6507 case $cross_compiling:$ac_tool_warned in
6508yes:)
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6511ac_tool_warned=yes ;;
6512esac
6513 STRIP=$ac_ct_STRIP
6514 fi
d45dc31f
SE
6515else
6516 STRIP="$ac_cv_prog_STRIP"
6517fi
e5a52504 6518
d7040cdb 6519test -z "$STRIP" && STRIP=:
d45dc31f 6520
d45dc31f
SE
6521
6522
d45dc31f 6523
d45dc31f
SE
6524
6525
d7040cdb
SE
6526if test -n "$ac_tool_prefix"; then
6527 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6528set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6530$as_echo_n "checking for $ac_word... " >&6; }
6531if test "${ac_cv_prog_RANLIB+set}" = set; then :
6532 $as_echo_n "(cached) " >&6
d45dc31f 6533else
d7040cdb
SE
6534 if test -n "$RANLIB"; then
6535 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6536else
6537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538for as_dir in $PATH
6539do
6540 IFS=$as_save_IFS
6541 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6542 for ac_exec_ext in '' $ac_executable_extensions; do
6543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6544 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6546 break 2
d45dc31f 6547 fi
d7040cdb 6548done
81ecdfbb
RW
6549 done
6550IFS=$as_save_IFS
d45dc31f 6551
d7040cdb
SE
6552fi
6553fi
6554RANLIB=$ac_cv_prog_RANLIB
6555if test -n "$RANLIB"; then
81ecdfbb
RW
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6557$as_echo "$RANLIB" >&6; }
d7040cdb 6558else
81ecdfbb
RW
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6560$as_echo "no" >&6; }
d7040cdb 6561fi
d45dc31f 6562
81ecdfbb 6563
d7040cdb
SE
6564fi
6565if test -z "$ac_cv_prog_RANLIB"; then
6566 ac_ct_RANLIB=$RANLIB
6567 # Extract the first word of "ranlib", so it can be a program name with args.
6568set dummy ranlib; ac_word=$2
81ecdfbb
RW
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570$as_echo_n "checking for $ac_word... " >&6; }
6571if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6572 $as_echo_n "(cached) " >&6
d7040cdb
SE
6573else
6574 if test -n "$ac_ct_RANLIB"; then
6575 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6576else
6577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578for as_dir in $PATH
6579do
6580 IFS=$as_save_IFS
6581 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6582 for ac_exec_ext in '' $ac_executable_extensions; do
6583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6584 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6586 break 2
d45dc31f 6587 fi
d7040cdb 6588done
81ecdfbb
RW
6589 done
6590IFS=$as_save_IFS
d45dc31f 6591
d7040cdb
SE
6592fi
6593fi
6594ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6595if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6597$as_echo "$ac_ct_RANLIB" >&6; }
d15b04bd 6598else
81ecdfbb
RW
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600$as_echo "no" >&6; }
d7040cdb 6601fi
252b5132 6602
81ecdfbb
RW
6603 if test "x$ac_ct_RANLIB" = x; then
6604 RANLIB=":"
6605 else
6606 case $cross_compiling:$ac_tool_warned in
6607yes:)
6608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6609$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6610ac_tool_warned=yes ;;
6611esac
6612 RANLIB=$ac_ct_RANLIB
6613 fi
d7040cdb
SE
6614else
6615 RANLIB="$ac_cv_prog_RANLIB"
6616fi
d45dc31f 6617
d7040cdb 6618test -z "$RANLIB" && RANLIB=:
d45dc31f 6619
d45dc31f 6620
d45dc31f 6621
42ecbf5e 6622
e5a52504 6623
d7040cdb
SE
6624
6625# Determine commands to create old-style static archives.
718a6fd8 6626old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d7040cdb
SE
6627old_postinstall_cmds='chmod 644 $oldlib'
6628old_postuninstall_cmds=
6629
6630if test -n "$RANLIB"; then
6631 case $host_os in
6632 openbsd*)
6633 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6634 ;;
6635 *)
6636 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6637 ;;
6638 esac
6639 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d45dc31f 6640fi
d45dc31f
SE
6641
6642
d45dc31f
SE
6643
6644
d15b04bd 6645
3e321448 6646
d45dc31f 6647
d45dc31f 6648
d45dc31f
SE
6649
6650
d45dc31f 6651
d45dc31f 6652
d45dc31f
SE
6653
6654
6655
6656
6657
6658
6659
d45dc31f 6660
d45dc31f 6661
d45dc31f 6662
d45dc31f 6663
d45dc31f 6664
d45dc31f 6665
d45dc31f 6666
d45dc31f 6667
3e321448
L
6668
6669
d45dc31f
SE
6670
6671
d45dc31f
SE
6672
6673
d45dc31f 6674
d7040cdb
SE
6675# If no C compiler was specified, use CC.
6676LTCC=${LTCC-"$CC"}
42ecbf5e 6677
d7040cdb
SE
6678# If no C compiler flags were specified, use CFLAGS.
6679LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
e5a52504 6680
d7040cdb
SE
6681# Allow CC to be a program name with arguments.
6682compiler=$CC
d15b04bd 6683
d7040cdb
SE
6684
6685# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6687$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6688if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6689 $as_echo_n "(cached) " >&6
d15b04bd 6690else
d7040cdb
SE
6691
6692# These are sane defaults that work on at least a few old systems.
6693# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6694
6695# Character class describing NM global symbol codes.
6696symcode='[BCDEGRST]'
6697
6698# Regexp to match symbols that can be accessed directly from C.
6699sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6700
6701# Define system-specific variables.
6702case $host_os in
6703aix*)
6704 symcode='[BCDT]'
6705 ;;
718a6fd8 6706cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
6707 symcode='[ABCDGISTW]'
6708 ;;
6709hpux*)
6710 if test "$host_cpu" = ia64; then
6711 symcode='[ABCDEGRST]'
42ecbf5e 6712 fi
d7040cdb
SE
6713 ;;
6714irix* | nonstopux*)
6715 symcode='[BCDEGRST]'
6716 ;;
6717osf*)
6718 symcode='[BCDEGQRST]'
6719 ;;
6720solaris*)
6721 symcode='[BDRT]'
6722 ;;
6723sco3.2v5*)
6724 symcode='[DT]'
6725 ;;
6726sysv4.2uw2*)
6727 symcode='[DT]'
6728 ;;
6729sysv5* | sco5v6* | unixware* | OpenUNIX*)
6730 symcode='[ABDT]'
6731 ;;
6732sysv4)
6733 symcode='[DFNSTU]'
6734 ;;
6735esac
d15b04bd 6736
d7040cdb
SE
6737# If we're using GNU nm, then use its standard symbol codes.
6738case `$NM -V 2>&1` in
6739*GNU* | *'with BFD'*)
6740 symcode='[ABCDGIRSTW]' ;;
6741esac
e5a52504 6742
d7040cdb
SE
6743# Transform an extracted symbol line into a proper C declaration.
6744# Some systems (esp. on ia64) link data and code symbols differently,
7357c5b6
AM
6745# so use this general approach.
6746lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 6747
7357c5b6
AM
6748# Transform an extracted symbol line into symbol name and symbol address
6749lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
718a6fd8 6750lt_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 6751
7357c5b6
AM
6752# Handle CRLF in mingw tool chain
6753opt_cr=
6754case $build_os in
6755mingw*)
6756 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6757 ;;
6758esac
d7040cdb 6759
7357c5b6
AM
6760# Try without a prefix underscore, then with it.
6761for ac_symprfx in "" "_"; do
d7040cdb 6762
7357c5b6
AM
6763 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6764 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6765
7357c5b6
AM
6766 # Write the raw and C identifiers.
6767 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6768 # Fake it for dumpbin and say T for any non-static function
6769 # and D for any global variable.
6770 # Also find C++ and __fastcall symbols from MSVC++,
6771 # which start with @ or ?.
6772 lt_cv_sys_global_symbol_pipe="$AWK '"\
6773" {last_section=section; section=\$ 3};"\
6774" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6775" \$ 0!~/External *\|/{next};"\
6776" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6777" {if(hide[section]) next};"\
6778" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6779" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6780" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6781" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6782" ' prfx=^$ac_symprfx"
6783 else
6784 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6785 fi
6786
6787 # Check to see that the pipe works correctly.
6788 pipe_works=no
6789
6790 rm -f conftest*
6791 cat > conftest.$ac_ext <<_LT_EOF
6792#ifdef __cplusplus
6793extern "C" {
6794#endif
6795char nm_test_var;
6796void nm_test_func(void);
6797void nm_test_func(void){}
6798#ifdef __cplusplus
d7040cdb 6799}
7357c5b6
AM
6800#endif
6801int main(){nm_test_var='a';nm_test_func();return(0);}
6802_LT_EOF
6803
81ecdfbb 6804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6805 (eval $ac_compile) 2>&5
42ecbf5e 6806 ac_status=$?
81ecdfbb
RW
6807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6808 test $ac_status = 0; }; then
7357c5b6
AM
6809 # Now try to grab the symbols.
6810 nlist=conftest.nm
81ecdfbb 6811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7357c5b6 6812 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
42ecbf5e 6813 ac_status=$?
81ecdfbb
RW
6814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6815 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6816 # Try sorting and uniquifying the output.
6817 if sort "$nlist" | uniq > "$nlist"T; then
6818 mv -f "$nlist"T "$nlist"
6819 else
6820 rm -f "$nlist"T
6821 fi
d7040cdb 6822
7357c5b6
AM
6823 # Make sure that we snagged all the symbols we need.
6824 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6825 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6826 cat <<_LT_EOF > conftest.$ac_ext
6827#ifdef __cplusplus
6828extern "C" {
6829#endif
e5a52504 6830
7357c5b6
AM
6831_LT_EOF
6832 # Now generate the symbol file.
6833 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7148cc28 6834
7357c5b6 6835 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 6836
7357c5b6
AM
6837/* The mapping between symbol names and symbols. */
6838const struct {
6839 const char *name;
6840 void *address;
6841}
6842lt__PROGRAM__LTX_preloaded_symbols[] =
6843{
6844 { "@PROGRAM@", (void *) 0 },
6845_LT_EOF
6846 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6847 cat <<\_LT_EOF >> conftest.$ac_ext
6848 {0, (void *) 0}
6849};
d7040cdb 6850
7357c5b6
AM
6851/* This works around a problem in FreeBSD linker */
6852#ifdef FREEBSD_WORKAROUND
6853static const void *lt_preloaded_setup() {
6854 return lt__PROGRAM__LTX_preloaded_symbols;
6855}
d7040cdb
SE
6856#endif
6857
7357c5b6 6858#ifdef __cplusplus
d7040cdb 6859}
7357c5b6
AM
6860#endif
6861_LT_EOF
6862 # Now try linking the two files.
6863 mv conftest.$ac_objext conftstm.$ac_objext
6864 lt_save_LIBS="$LIBS"
6865 lt_save_CFLAGS="$CFLAGS"
6866 LIBS="conftstm.$ac_objext"
6867 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
6869 (eval $ac_link) 2>&5
6870 ac_status=$?
81ecdfbb
RW
6871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6872 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6873 pipe_works=yes
6874 fi
6875 LIBS="$lt_save_LIBS"
6876 CFLAGS="$lt_save_CFLAGS"
6877 else
6878 echo "cannot find nm_test_func in $nlist" >&5
6879 fi
6880 else
6881 echo "cannot find nm_test_var in $nlist" >&5
6882 fi
6883 else
6884 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6885 fi
6886 else
6887 echo "$progname: failed program was:" >&5
6888 cat conftest.$ac_ext >&5
6889 fi
718a6fd8 6890 rm -rf conftest* conftst*
7357c5b6
AM
6891
6892 # Do not use the global_symbol_pipe unless it works.
6893 if test "$pipe_works" = yes; then
6894 break
6895 else
6896 lt_cv_sys_global_symbol_pipe=
6897 fi
6898done
d7040cdb 6899
d7040cdb 6900fi
7357c5b6
AM
6901
6902if test -z "$lt_cv_sys_global_symbol_pipe"; then
6903 lt_cv_sys_global_symbol_to_cdecl=
d7040cdb 6904fi
7357c5b6 6905if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6907$as_echo "failed" >&6; }
7357c5b6 6908else
81ecdfbb
RW
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6910$as_echo "ok" >&6; }
d7040cdb 6911fi
20e95c23 6912
20e95c23
DJ
6913
6914
20e95c23
DJ
6915
6916
20e95c23 6917
20e95c23 6918
20e95c23 6919
20e95c23 6920
20e95c23 6921
20e95c23
DJ
6922
6923
7357c5b6
AM
6924
6925
6926
718a6fd8
SE
6927
6928
6929
6930
6931
7357c5b6
AM
6932
6933
81ecdfbb
RW
6934# Check whether --enable-libtool-lock was given.
6935if test "${enable_libtool_lock+set}" = set; then :
6936 enableval=$enable_libtool_lock;
6937fi
7357c5b6 6938
7357c5b6
AM
6939test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6940
6941# Some flags need to be propagated to the compiler or linker for good
6942# libtool support.
6943case $host in
6944ia64-*-hpux*)
6945 # Find out which ABI we are using.
6946 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6948 (eval $ac_compile) 2>&5
6949 ac_status=$?
81ecdfbb
RW
6950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6951 test $ac_status = 0; }; then
7357c5b6
AM
6952 case `/usr/bin/file conftest.$ac_objext` in
6953 *ELF-32*)
6954 HPUX_IA64_MODE="32"
6955 ;;
6956 *ELF-64*)
6957 HPUX_IA64_MODE="64"
6958 ;;
6959 esac
6960 fi
6961 rm -rf conftest*
6962 ;;
6963*-*-irix6*)
6964 # Find out which ABI we are using.
3388710e 6965 echo '#line 6965 "configure"' > conftest.$ac_ext
81ecdfbb 6966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6967 (eval $ac_compile) 2>&5
6968 ac_status=$?
81ecdfbb
RW
6969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6970 test $ac_status = 0; }; then
7357c5b6
AM
6971 if test "$lt_cv_prog_gnu_ld" = yes; then
6972 case `/usr/bin/file conftest.$ac_objext` in
6973 *32-bit*)
6974 LD="${LD-ld} -melf32bsmip"
6975 ;;
6976 *N32*)
6977 LD="${LD-ld} -melf32bmipn32"
6978 ;;
6979 *64-bit*)
6980 LD="${LD-ld} -melf64bmip"
6981 ;;
6982 esac
6983 else
6984 case `/usr/bin/file conftest.$ac_objext` in
6985 *32-bit*)
6986 LD="${LD-ld} -32"
6987 ;;
6988 *N32*)
6989 LD="${LD-ld} -n32"
6990 ;;
6991 *64-bit*)
6992 LD="${LD-ld} -64"
6993 ;;
6994 esac
6995 fi
6996 fi
6997 rm -rf conftest*
6998 ;;
6999
7000x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7001s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7002 # Find out which ABI we are using.
7003 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7005 (eval $ac_compile) 2>&5
7006 ac_status=$?
81ecdfbb
RW
7007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7008 test $ac_status = 0; }; then
7357c5b6
AM
7009 case `/usr/bin/file conftest.o` in
7010 *32-bit*)
7011 case $host in
7012 x86_64-*kfreebsd*-gnu)
7013 LD="${LD-ld} -m elf_i386_fbsd"
7014 ;;
7015 x86_64-*linux*)
7016 LD="${LD-ld} -m elf_i386"
7017 ;;
7018 ppc64-*linux*|powerpc64-*linux*)
7019 LD="${LD-ld} -m elf32ppclinux"
7020 ;;
7021 s390x-*linux*)
7022 LD="${LD-ld} -m elf_s390"
7023 ;;
7024 sparc64-*linux*)
7025 LD="${LD-ld} -m elf32_sparc"
7026 ;;
7027 esac
7028 ;;
7029 *64-bit*)
7030 case $host in
7031 x86_64-*kfreebsd*-gnu)
7032 LD="${LD-ld} -m elf_x86_64_fbsd"
7033 ;;
7034 x86_64-*linux*)
7035 LD="${LD-ld} -m elf_x86_64"
7036 ;;
7037 ppc*-*linux*|powerpc*-*linux*)
7038 LD="${LD-ld} -m elf64ppc"
7039 ;;
7040 s390*-*linux*|s390*-*tpf*)
7041 LD="${LD-ld} -m elf64_s390"
7042 ;;
7043 sparc*-*linux*)
7044 LD="${LD-ld} -m elf64_sparc"
7045 ;;
7046 esac
7047 ;;
7048 esac
7049 fi
7050 rm -rf conftest*
7051 ;;
7052
7053*-*-sco3.2v5*)
7054 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7055 SAVE_CFLAGS="$CFLAGS"
7056 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7058$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7059if test "${lt_cv_cc_needs_belf+set}" = set; then :
7060 $as_echo_n "(cached) " >&6
d7040cdb 7061else
7357c5b6
AM
7062 ac_ext=c
7063ac_cpp='$CPP $CPPFLAGS'
7064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7066ac_compiler_gnu=$ac_cv_c_compiler_gnu
7067
81ecdfbb 7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 7069/* end confdefs.h. */
20e95c23 7070
7357c5b6
AM
7071int
7072main ()
7073{
7074
7075 ;
7076 return 0;
7077}
d7040cdb 7078_ACEOF
81ecdfbb 7079if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7080 lt_cv_cc_needs_belf=yes
d15b04bd 7081else
81ecdfbb 7082 lt_cv_cc_needs_belf=no
d7040cdb 7083fi
81ecdfbb
RW
7084rm -f core conftest.err conftest.$ac_objext \
7085 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7086 ac_ext=c
7087ac_cpp='$CPP $CPPFLAGS'
7088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7090ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 7091
718a6fd8 7092fi
81ecdfbb
RW
7093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7094$as_echo "$lt_cv_cc_needs_belf" >&6; }
718a6fd8
SE
7095 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7096 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7097 CFLAGS="$SAVE_CFLAGS"
7098 fi
7099 ;;
7100sparc*-*solaris*)
7101 # Find out which ABI we are using.
7102 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
718a6fd8
SE
7104 (eval $ac_compile) 2>&5
7105 ac_status=$?
81ecdfbb
RW
7106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7107 test $ac_status = 0; }; then
718a6fd8
SE
7108 case `/usr/bin/file conftest.o` in
7109 *64-bit*)
7110 case $lt_cv_prog_gnu_ld in
7111 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7112 *)
7113 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7114 LD="${LD-ld} -64"
7115 fi
7116 ;;
7117 esac
7118 ;;
7119 esac
7120 fi
7121 rm -rf conftest*
7122 ;;
7123esac
7124
7125need_locks="$enable_libtool_lock"
7126
7127
7128 case $host_os in
7129 rhapsody* | darwin*)
7130 if test -n "$ac_tool_prefix"; then
7131 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7132set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134$as_echo_n "checking for $ac_word... " >&6; }
7135if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7136 $as_echo_n "(cached) " >&6
718a6fd8
SE
7137else
7138 if test -n "$DSYMUTIL"; then
7139 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7140else
7141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142for as_dir in $PATH
7143do
7144 IFS=$as_save_IFS
7145 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7148 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7150 break 2
7151 fi
7152done
81ecdfbb
RW
7153 done
7154IFS=$as_save_IFS
718a6fd8
SE
7155
7156fi
7157fi
7158DSYMUTIL=$ac_cv_prog_DSYMUTIL
7159if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7161$as_echo "$DSYMUTIL" >&6; }
718a6fd8 7162else
81ecdfbb
RW
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164$as_echo "no" >&6; }
718a6fd8
SE
7165fi
7166
81ecdfbb 7167
718a6fd8
SE
7168fi
7169if test -z "$ac_cv_prog_DSYMUTIL"; then
7170 ac_ct_DSYMUTIL=$DSYMUTIL
7171 # Extract the first word of "dsymutil", so it can be a program name with args.
7172set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174$as_echo_n "checking for $ac_word... " >&6; }
7175if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7176 $as_echo_n "(cached) " >&6
718a6fd8
SE
7177else
7178 if test -n "$ac_ct_DSYMUTIL"; then
7179 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7180else
7181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182for as_dir in $PATH
7183do
7184 IFS=$as_save_IFS
7185 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7188 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7190 break 2
7191 fi
7192done
81ecdfbb
RW
7193 done
7194IFS=$as_save_IFS
718a6fd8 7195
718a6fd8
SE
7196fi
7197fi
7198ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7199if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7201$as_echo "$ac_ct_DSYMUTIL" >&6; }
718a6fd8 7202else
81ecdfbb
RW
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204$as_echo "no" >&6; }
718a6fd8
SE
7205fi
7206
81ecdfbb
RW
7207 if test "x$ac_ct_DSYMUTIL" = x; then
7208 DSYMUTIL=":"
7209 else
7210 case $cross_compiling:$ac_tool_warned in
7211yes:)
7212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7214ac_tool_warned=yes ;;
7215esac
7216 DSYMUTIL=$ac_ct_DSYMUTIL
7217 fi
718a6fd8
SE
7218else
7219 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7220fi
7221
7222 if test -n "$ac_tool_prefix"; then
7223 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7224set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226$as_echo_n "checking for $ac_word... " >&6; }
7227if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7228 $as_echo_n "(cached) " >&6
718a6fd8
SE
7229else
7230 if test -n "$NMEDIT"; then
7231 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7232else
7233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234for as_dir in $PATH
7235do
7236 IFS=$as_save_IFS
7237 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7240 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7242 break 2
7243 fi
7244done
81ecdfbb
RW
7245 done
7246IFS=$as_save_IFS
718a6fd8
SE
7247
7248fi
7249fi
7250NMEDIT=$ac_cv_prog_NMEDIT
7251if test -n "$NMEDIT"; then
81ecdfbb
RW
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7253$as_echo "$NMEDIT" >&6; }
718a6fd8 7254else
81ecdfbb
RW
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256$as_echo "no" >&6; }
718a6fd8
SE
7257fi
7258
81ecdfbb 7259
718a6fd8
SE
7260fi
7261if test -z "$ac_cv_prog_NMEDIT"; then
7262 ac_ct_NMEDIT=$NMEDIT
7263 # Extract the first word of "nmedit", so it can be a program name with args.
7264set dummy nmedit; ac_word=$2
81ecdfbb
RW
7265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266$as_echo_n "checking for $ac_word... " >&6; }
7267if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7268 $as_echo_n "(cached) " >&6
718a6fd8
SE
7269else
7270 if test -n "$ac_ct_NMEDIT"; then
7271 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7272else
7273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274for as_dir in $PATH
7275do
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7280 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7282 break 2
7283 fi
7284done
81ecdfbb
RW
7285 done
7286IFS=$as_save_IFS
718a6fd8 7287
718a6fd8
SE
7288fi
7289fi
7290ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7291if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7293$as_echo "$ac_ct_NMEDIT" >&6; }
718a6fd8 7294else
81ecdfbb
RW
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296$as_echo "no" >&6; }
718a6fd8
SE
7297fi
7298
81ecdfbb
RW
7299 if test "x$ac_ct_NMEDIT" = x; then
7300 NMEDIT=":"
7301 else
7302 case $cross_compiling:$ac_tool_warned in
7303yes:)
7304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7306ac_tool_warned=yes ;;
7307esac
7308 NMEDIT=$ac_ct_NMEDIT
7309 fi
718a6fd8
SE
7310else
7311 NMEDIT="$ac_cv_prog_NMEDIT"
7312fi
7313
7314 if test -n "$ac_tool_prefix"; then
7315 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7316set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318$as_echo_n "checking for $ac_word... " >&6; }
7319if test "${ac_cv_prog_LIPO+set}" = set; then :
7320 $as_echo_n "(cached) " >&6
718a6fd8
SE
7321else
7322 if test -n "$LIPO"; then
7323 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7324else
7325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326for as_dir in $PATH
7327do
7328 IFS=$as_save_IFS
7329 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7332 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7334 break 2
7335 fi
7336done
81ecdfbb
RW
7337 done
7338IFS=$as_save_IFS
718a6fd8
SE
7339
7340fi
7341fi
7342LIPO=$ac_cv_prog_LIPO
7343if test -n "$LIPO"; then
81ecdfbb
RW
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7345$as_echo "$LIPO" >&6; }
718a6fd8 7346else
81ecdfbb
RW
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348$as_echo "no" >&6; }
718a6fd8
SE
7349fi
7350
81ecdfbb 7351
718a6fd8
SE
7352fi
7353if test -z "$ac_cv_prog_LIPO"; then
7354 ac_ct_LIPO=$LIPO
7355 # Extract the first word of "lipo", so it can be a program name with args.
7356set dummy lipo; ac_word=$2
81ecdfbb
RW
7357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358$as_echo_n "checking for $ac_word... " >&6; }
7359if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7360 $as_echo_n "(cached) " >&6
718a6fd8
SE
7361else
7362 if test -n "$ac_ct_LIPO"; then
7363 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7364else
7365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366for as_dir in $PATH
7367do
7368 IFS=$as_save_IFS
7369 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7372 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7374 break 2
7375 fi
7376done
81ecdfbb
RW
7377 done
7378IFS=$as_save_IFS
718a6fd8 7379
718a6fd8
SE
7380fi
7381fi
7382ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7383if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7385$as_echo "$ac_ct_LIPO" >&6; }
718a6fd8 7386else
81ecdfbb
RW
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388$as_echo "no" >&6; }
718a6fd8
SE
7389fi
7390
81ecdfbb
RW
7391 if test "x$ac_ct_LIPO" = x; then
7392 LIPO=":"
7393 else
7394 case $cross_compiling:$ac_tool_warned in
7395yes:)
7396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7398ac_tool_warned=yes ;;
7399esac
7400 LIPO=$ac_ct_LIPO
7401 fi
718a6fd8
SE
7402else
7403 LIPO="$ac_cv_prog_LIPO"
7404fi
7405
7406 if test -n "$ac_tool_prefix"; then
7407 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7408set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410$as_echo_n "checking for $ac_word... " >&6; }
7411if test "${ac_cv_prog_OTOOL+set}" = set; then :
7412 $as_echo_n "(cached) " >&6
718a6fd8
SE
7413else
7414 if test -n "$OTOOL"; then
7415 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7416else
7417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418for as_dir in $PATH
7419do
7420 IFS=$as_save_IFS
7421 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7424 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7426 break 2
7427 fi
7428done
81ecdfbb
RW
7429 done
7430IFS=$as_save_IFS
718a6fd8
SE
7431
7432fi
7433fi
7434OTOOL=$ac_cv_prog_OTOOL
7435if test -n "$OTOOL"; then
81ecdfbb
RW
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7437$as_echo "$OTOOL" >&6; }
718a6fd8 7438else
81ecdfbb
RW
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440$as_echo "no" >&6; }
718a6fd8
SE
7441fi
7442
81ecdfbb 7443
718a6fd8
SE
7444fi
7445if test -z "$ac_cv_prog_OTOOL"; then
7446 ac_ct_OTOOL=$OTOOL
7447 # Extract the first word of "otool", so it can be a program name with args.
7448set dummy otool; ac_word=$2
81ecdfbb
RW
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450$as_echo_n "checking for $ac_word... " >&6; }
7451if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7452 $as_echo_n "(cached) " >&6
718a6fd8
SE
7453else
7454 if test -n "$ac_ct_OTOOL"; then
7455 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7456else
7457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458for as_dir in $PATH
7459do
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7464 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7466 break 2
7467 fi
7468done
81ecdfbb
RW
7469 done
7470IFS=$as_save_IFS
718a6fd8 7471
718a6fd8
SE
7472fi
7473fi
7474ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7475if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7477$as_echo "$ac_ct_OTOOL" >&6; }
718a6fd8 7478else
81ecdfbb
RW
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480$as_echo "no" >&6; }
718a6fd8
SE
7481fi
7482
81ecdfbb
RW
7483 if test "x$ac_ct_OTOOL" = x; then
7484 OTOOL=":"
7485 else
7486 case $cross_compiling:$ac_tool_warned in
7487yes:)
7488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7490ac_tool_warned=yes ;;
7491esac
7492 OTOOL=$ac_ct_OTOOL
7493 fi
718a6fd8
SE
7494else
7495 OTOOL="$ac_cv_prog_OTOOL"
7496fi
7497
7498 if test -n "$ac_tool_prefix"; then
7499 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7500set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502$as_echo_n "checking for $ac_word... " >&6; }
7503if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7504 $as_echo_n "(cached) " >&6
718a6fd8
SE
7505else
7506 if test -n "$OTOOL64"; then
7507 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7508else
7509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510for as_dir in $PATH
7511do
7512 IFS=$as_save_IFS
7513 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7516 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7518 break 2
7519 fi
7520done
81ecdfbb
RW
7521 done
7522IFS=$as_save_IFS
718a6fd8
SE
7523
7524fi
7525fi
7526OTOOL64=$ac_cv_prog_OTOOL64
7527if test -n "$OTOOL64"; then
81ecdfbb
RW
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7529$as_echo "$OTOOL64" >&6; }
718a6fd8 7530else
81ecdfbb
RW
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532$as_echo "no" >&6; }
718a6fd8
SE
7533fi
7534
81ecdfbb 7535
718a6fd8
SE
7536fi
7537if test -z "$ac_cv_prog_OTOOL64"; then
7538 ac_ct_OTOOL64=$OTOOL64
7539 # Extract the first word of "otool64", so it can be a program name with args.
7540set dummy otool64; ac_word=$2
81ecdfbb
RW
7541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542$as_echo_n "checking for $ac_word... " >&6; }
7543if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7544 $as_echo_n "(cached) " >&6
718a6fd8
SE
7545else
7546 if test -n "$ac_ct_OTOOL64"; then
7547 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7548else
7549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550for as_dir in $PATH
7551do
7552 IFS=$as_save_IFS
7553 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7556 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7558 break 2
7559 fi
7560done
81ecdfbb
RW
7561 done
7562IFS=$as_save_IFS
718a6fd8 7563
718a6fd8
SE
7564fi
7565fi
7566ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7567if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7569$as_echo "$ac_ct_OTOOL64" >&6; }
718a6fd8 7570else
81ecdfbb
RW
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572$as_echo "no" >&6; }
718a6fd8
SE
7573fi
7574
81ecdfbb
RW
7575 if test "x$ac_ct_OTOOL64" = x; then
7576 OTOOL64=":"
7577 else
7578 case $cross_compiling:$ac_tool_warned in
7579yes:)
7580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7582ac_tool_warned=yes ;;
7583esac
7584 OTOOL64=$ac_ct_OTOOL64
7585 fi
718a6fd8
SE
7586else
7587 OTOOL64="$ac_cv_prog_OTOOL64"
7588fi
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
81ecdfbb
RW
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7617$as_echo_n "checking for -single_module linker flag... " >&6; }
7618if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7619 $as_echo_n "(cached) " >&6
718a6fd8
SE
7620else
7621 lt_cv_apple_cc_single_mod=no
7622 if test -z "${LT_MULTI_MODULE}"; then
7623 # By default we will add the -single_module flag. You can override
7624 # by either setting the environment variable LT_MULTI_MODULE
7625 # non-empty at configure time, or by adding -multi_module to the
7626 # link flags.
7627 rm -rf libconftest.dylib*
7628 echo "int foo(void){return 1;}" > conftest.c
7629 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7630-dynamiclib -Wl,-single_module conftest.c" >&5
7631 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7632 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7633 _lt_result=$?
7634 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7635 lt_cv_apple_cc_single_mod=yes
7636 else
7637 cat conftest.err >&5
7638 fi
7639 rm -rf libconftest.dylib*
7640 rm -f conftest.*
7641 fi
7642fi
81ecdfbb
RW
7643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7644$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7646$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7647if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7648 $as_echo_n "(cached) " >&6
718a6fd8
SE
7649else
7650 lt_cv_ld_exported_symbols_list=no
7651 save_LDFLAGS=$LDFLAGS
7652 echo "_main" > conftest.sym
7653 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718a6fd8
SE
7655/* end confdefs.h. */
7656
7657int
7658main ()
7659{
7660
7661 ;
7662 return 0;
7663}
7664_ACEOF
81ecdfbb 7665if ac_fn_c_try_link "$LINENO"; then :
718a6fd8
SE
7666 lt_cv_ld_exported_symbols_list=yes
7667else
81ecdfbb 7668 lt_cv_ld_exported_symbols_list=no
718a6fd8 7669fi
81ecdfbb
RW
7670rm -f core conftest.err conftest.$ac_objext \
7671 conftest$ac_exeext conftest.$ac_ext
718a6fd8
SE
7672 LDFLAGS="$save_LDFLAGS"
7673
7674fi
81ecdfbb
RW
7675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7676$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
718a6fd8
SE
7677 case $host_os in
7678 rhapsody* | darwin1.[012])
7679 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7680 darwin1.*)
7681 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7682 darwin*) # darwin 5.x on
7683 # if running on 10.5 or later, the deployment target defaults
7684 # to the OS version, if on x86, and 10.4, the deployment
7685 # target defaults to 10.4. Don't you love it?
7686 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7687 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7688 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7689 10.[012]*)
7690 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7691 10.*)
7692 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7693 esac
7694 ;;
7695 esac
7696 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7697 _lt_dar_single_mod='$single_module'
7698 fi
7699 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7700 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7701 else
7702 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7703 fi
7704 if test "$DSYMUTIL" != ":"; then
7705 _lt_dsymutil='~$DSYMUTIL $lib || :'
7706 else
7707 _lt_dsymutil=
7708 fi
7709 ;;
7710 esac
7711
718a6fd8 7712for ac_header in dlfcn.h
81ecdfbb
RW
7713do :
7714 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7715"
7716if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
718a6fd8 7717 cat >>confdefs.h <<_ACEOF
81ecdfbb 7718#define HAVE_DLFCN_H 1
718a6fd8
SE
7719_ACEOF
7720
7721fi
7722
7723done
7724
7725
7726
7727# Set options
7728
7729
7730
7731 enable_dlopen=no
7732
7733
7734 enable_win32_dll=no
7735
7736
81ecdfbb
RW
7737 # Check whether --enable-shared was given.
7738if test "${enable_shared+set}" = set; then :
7739 enableval=$enable_shared; p=${PACKAGE-default}
718a6fd8
SE
7740 case $enableval in
7741 yes) enable_shared=yes ;;
7742 no) enable_shared=no ;;
7743 *)
7744 enable_shared=no
7745 # Look at the argument we got. We use all the common list separators.
7746 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7747 for pkg in $enableval; do
7748 IFS="$lt_save_ifs"
7749 if test "X$pkg" = "X$p"; then
7750 enable_shared=yes
7751 fi
7752 done
7753 IFS="$lt_save_ifs"
7754 ;;
7755 esac
7756else
7757 enable_shared=yes
81ecdfbb 7758fi
718a6fd8
SE
7759
7760
7761
7762
7763
7764
7765
7766
81ecdfbb
RW
7767
7768 # Check whether --enable-static was given.
7769if test "${enable_static+set}" = set; then :
7770 enableval=$enable_static; p=${PACKAGE-default}
718a6fd8
SE
7771 case $enableval in
7772 yes) enable_static=yes ;;
7773 no) enable_static=no ;;
7774 *)
7775 enable_static=no
7776 # Look at the argument we got. We use all the common list separators.
7777 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7778 for pkg in $enableval; do
7779 IFS="$lt_save_ifs"
7780 if test "X$pkg" = "X$p"; then
7781 enable_static=yes
7782 fi
7783 done
7784 IFS="$lt_save_ifs"
7785 ;;
7786 esac
7787else
7788 enable_static=yes
81ecdfbb 7789fi
718a6fd8
SE
7790
7791
7792
7793
7794
7795
7796
7797
7798
81ecdfbb
RW
7799
7800# Check whether --with-pic was given.
7801if test "${with_pic+set}" = set; then :
7802 withval=$with_pic; pic_mode="$withval"
718a6fd8
SE
7803else
7804 pic_mode=default
81ecdfbb
RW
7805fi
7806
718a6fd8
SE
7807
7808test -z "$pic_mode" && pic_mode=default
7809
7810
7811
7812
7813
7814
7815
81ecdfbb
RW
7816 # Check whether --enable-fast-install was given.
7817if test "${enable_fast_install+set}" = set; then :
7818 enableval=$enable_fast_install; p=${PACKAGE-default}
718a6fd8
SE
7819 case $enableval in
7820 yes) enable_fast_install=yes ;;
7821 no) enable_fast_install=no ;;
7822 *)
7823 enable_fast_install=no
7824 # Look at the argument we got. We use all the common list separators.
7825 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7826 for pkg in $enableval; do
7827 IFS="$lt_save_ifs"
7828 if test "X$pkg" = "X$p"; then
7829 enable_fast_install=yes
7830 fi
7831 done
7832 IFS="$lt_save_ifs"
7357c5b6
AM
7833 ;;
7834 esac
718a6fd8
SE
7835else
7836 enable_fast_install=yes
81ecdfbb
RW
7837fi
7838
20e95c23 7839
20e95c23
DJ
7840
7841
42ecbf5e 7842
d7040cdb 7843
20e95c23 7844
d7040cdb 7845
d7040cdb
SE
7846
7847
7848
7849# This can be used to rebuild libtool when needed
7850LIBTOOL_DEPS="$ltmain"
7851
7852# Always use our own libtool.
7853LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879test -z "$LN_S" && LN_S="ln -s"
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894if test -n "${ZSH_VERSION+set}" ; then
7895 setopt NO_GLOB_SUBST
7896fi
7897
81ecdfbb
RW
7898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7899$as_echo_n "checking for objdir... " >&6; }
7900if test "${lt_cv_objdir+set}" = set; then :
7901 $as_echo_n "(cached) " >&6
20e95c23 7902else
d7040cdb
SE
7903 rm -f .libs 2>/dev/null
7904mkdir .libs 2>/dev/null
7905if test -d .libs; then
7906 lt_cv_objdir=.libs
42ecbf5e 7907else
d7040cdb
SE
7908 # MS-DOS does not allow filenames that begin with a dot.
7909 lt_cv_objdir=_libs
7910fi
7911rmdir .libs 2>/dev/null
42ecbf5e 7912fi
81ecdfbb
RW
7913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7914$as_echo "$lt_cv_objdir" >&6; }
d7040cdb 7915objdir=$lt_cv_objdir
42ecbf5e 7916
d7040cdb
SE
7917
7918
7919
7920
7921cat >>confdefs.h <<_ACEOF
7922#define LT_OBJDIR "$lt_cv_objdir/"
7923_ACEOF
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941case $host_os in
7942aix3*)
7943 # AIX sometimes has problems with the GCC collect2 program. For some
7944 # reason, if we set the COLLECT_NAMES environment variable, the problems
7945 # vanish in a puff of smoke.
7946 if test "X${COLLECT_NAMES+set}" != Xset; then
7947 COLLECT_NAMES=
7948 export COLLECT_NAMES
7949 fi
7950 ;;
7951esac
7952
7953# Sed substitution that helps us do robust quoting. It backslashifies
7954# metacharacters that are still active within double-quoted strings.
7955sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7956
7957# Same as above, but do not quote variable references.
7958double_quote_subst='s/\(["`\\]\)/\\\1/g'
7959
7960# Sed substitution to delay expansion of an escaped shell variable in a
7961# double_quote_subst'ed string.
7962delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7963
7964# Sed substitution to delay expansion of an escaped single quote.
7965delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7966
7967# Sed substitution to avoid accidental globbing in evaled expressions
7968no_glob_subst='s/\*/\\\*/g'
7969
7970# Global variables:
7971ofile=libtool
7972can_build_shared=yes
7973
7974# All known linkers require a `.a' archive for static linking (except MSVC,
7975# which needs '.lib').
7976libext=a
7977
7978with_gnu_ld="$lt_cv_prog_gnu_ld"
7979
7980old_CC="$CC"
7981old_CFLAGS="$CFLAGS"
7982
7983# Set sane defaults for various variables
7984test -z "$CC" && CC=cc
7985test -z "$LTCC" && LTCC=$CC
7986test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7987test -z "$LD" && LD=ld
7988test -z "$ac_objext" && ac_objext=o
7989
7990for cc_temp in $compiler""; do
7991 case $cc_temp in
7992 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7993 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7994 \-*) ;;
7995 *) break;;
7996 esac
7997done
7998cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7999
8000
8001# Only perform the check for file, if the check method requires it
8002test -z "$MAGIC_CMD" && MAGIC_CMD=file
8003case $deplibs_check_method in
8004file_magic*)
8005 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8007$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8008if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8009 $as_echo_n "(cached) " >&6
42ecbf5e 8010else
d7040cdb
SE
8011 case $MAGIC_CMD in
8012[\\/*] | ?:[\\/]*)
8013 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
20e95c23 8014 ;;
d7040cdb
SE
8015*)
8016 lt_save_MAGIC_CMD="$MAGIC_CMD"
8017 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8018 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8019 for ac_dir in $ac_dummy; do
8020 IFS="$lt_save_ifs"
8021 test -z "$ac_dir" && ac_dir=.
8022 if test -f $ac_dir/${ac_tool_prefix}file; then
8023 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8024 if test -n "$file_magic_test_file"; then
8025 case $deplibs_check_method in
8026 "file_magic "*)
8027 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8028 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8029 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8030 $EGREP "$file_magic_regex" > /dev/null; then
8031 :
8032 else
8033 cat <<_LT_EOF 1>&2
42ecbf5e 8034
d7040cdb
SE
8035*** Warning: the command libtool uses to detect shared libraries,
8036*** $file_magic_cmd, produces output that libtool cannot recognize.
8037*** The result is that libtool may fail to recognize shared libraries
8038*** as such. This will affect the creation of libtool libraries that
8039*** depend on shared libraries, but programs linked with such libtool
8040*** libraries will work regardless of this problem. Nevertheless, you
8041*** may want to report the problem to your system manager and/or to
8042*** bug-libtool@gnu.org
8043
8044_LT_EOF
8045 fi ;;
8046 esac
8047 fi
8048 break
8049 fi
8050 done
8051 IFS="$lt_save_ifs"
8052 MAGIC_CMD="$lt_save_MAGIC_CMD"
20e95c23
DJ
8053 ;;
8054esac
42ecbf5e 8055fi
20e95c23 8056
d7040cdb
SE
8057MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8058if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8060$as_echo "$MAGIC_CMD" >&6; }
42ecbf5e 8061else
81ecdfbb
RW
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063$as_echo "no" >&6; }
42ecbf5e
DJ
8064fi
8065
20e95c23
DJ
8066
8067
42ecbf5e 8068
20e95c23 8069
d7040cdb
SE
8070if test -z "$lt_cv_path_MAGIC_CMD"; then
8071 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8073$as_echo_n "checking for file... " >&6; }
8074if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8075 $as_echo_n "(cached) " >&6
42ecbf5e 8076else
d7040cdb
SE
8077 case $MAGIC_CMD in
8078[\\/*] | ?:[\\/]*)
8079 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8080 ;;
8081*)
8082 lt_save_MAGIC_CMD="$MAGIC_CMD"
8083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8084 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8085 for ac_dir in $ac_dummy; do
8086 IFS="$lt_save_ifs"
8087 test -z "$ac_dir" && ac_dir=.
8088 if test -f $ac_dir/file; then
8089 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8090 if test -n "$file_magic_test_file"; then
8091 case $deplibs_check_method in
8092 "file_magic "*)
8093 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8094 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8095 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8096 $EGREP "$file_magic_regex" > /dev/null; then
8097 :
8098 else
8099 cat <<_LT_EOF 1>&2
8100
8101*** Warning: the command libtool uses to detect shared libraries,
8102*** $file_magic_cmd, produces output that libtool cannot recognize.
8103*** The result is that libtool may fail to recognize shared libraries
8104*** as such. This will affect the creation of libtool libraries that
8105*** depend on shared libraries, but programs linked with such libtool
8106*** libraries will work regardless of this problem. Nevertheless, you
8107*** may want to report the problem to your system manager and/or to
8108*** bug-libtool@gnu.org
8109
8110_LT_EOF
8111 fi ;;
8112 esac
8113 fi
8114 break
8115 fi
8116 done
8117 IFS="$lt_save_ifs"
8118 MAGIC_CMD="$lt_save_MAGIC_CMD"
8119 ;;
20e95c23
DJ
8120esac
8121fi
d7040cdb
SE
8122
8123MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8124if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8126$as_echo "$MAGIC_CMD" >&6; }
20e95c23 8127else
81ecdfbb
RW
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129$as_echo "no" >&6; }
20e95c23
DJ
8130fi
8131
20e95c23 8132
42ecbf5e 8133 else
d7040cdb 8134 MAGIC_CMD=:
42ecbf5e 8135 fi
42ecbf5e 8136fi
42ecbf5e 8137
20e95c23 8138 fi
d7040cdb
SE
8139 ;;
8140esac
42ecbf5e 8141
d7040cdb 8142# Use C for the default configuration in the libtool script
42ecbf5e 8143
d7040cdb
SE
8144lt_save_CC="$CC"
8145ac_ext=c
8146ac_cpp='$CPP $CPPFLAGS'
8147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8149ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 8150
42ecbf5e 8151
d7040cdb
SE
8152# Source file extension for C test sources.
8153ac_ext=c
42ecbf5e 8154
d7040cdb
SE
8155# Object file extension for compiled C test sources.
8156objext=o
8157objext=$objext
42ecbf5e 8158
d7040cdb
SE
8159# Code to be used in simple compile tests
8160lt_simple_compile_test_code="int some_variable = 0;"
42ecbf5e 8161
d7040cdb
SE
8162# Code to be used in simple link tests
8163lt_simple_link_test_code='int main(){return(0);}'
42ecbf5e 8164
ac48eca1 8165
42ecbf5e 8166
42ecbf5e 8167
d5fbea21 8168
d5fbea21
DJ
8169
8170
d7040cdb
SE
8171# If no C compiler was specified, use CC.
8172LTCC=${LTCC-"$CC"}
20e95c23 8173
d7040cdb
SE
8174# If no C compiler flags were specified, use CFLAGS.
8175LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
42ecbf5e 8176
d7040cdb
SE
8177# Allow CC to be a program name with arguments.
8178compiler=$CC
252b5132 8179
d7040cdb
SE
8180# Save the default compiler, since it gets overwritten when the other
8181# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8182compiler_DEFAULT=$CC
42ecbf5e 8183
d7040cdb
SE
8184# save warnings/boilerplate of simple test code
8185ac_outfile=conftest.$ac_objext
8186echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8187eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8188_lt_compiler_boilerplate=`cat conftest.err`
8189$RM conftest*
252b5132 8190
d7040cdb
SE
8191ac_outfile=conftest.$ac_objext
8192echo "$lt_simple_link_test_code" >conftest.$ac_ext
8193eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8194_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 8195$RM -r conftest*
252b5132 8196
42ecbf5e 8197
d7040cdb
SE
8198## CAVEAT EMPTOR:
8199## There is no encapsulation within the following macros, do not change
8200## the running order or otherwise move them around unless you know exactly
8201## what you are doing...
8202if test -n "$compiler"; then
252b5132 8203
d7040cdb 8204lt_prog_compiler_no_builtin_flag=
252b5132 8205
d7040cdb
SE
8206if test "$GCC" = yes; then
8207 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d15b04bd 8208
81ecdfbb
RW
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8210$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8211if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
252b5132 8213else
d7040cdb
SE
8214 lt_cv_prog_compiler_rtti_exceptions=no
8215 ac_outfile=conftest.$ac_objext
8216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8217 lt_compiler_flag="-fno-rtti -fno-exceptions"
8218 # Insert the option either (1) after the last *FLAGS variable, or
8219 # (2) before a word containing "conftest.", or (3) at the end.
8220 # Note that $ac_compile itself does not contain backslashes and begins
8221 # with a dollar sign (not a hyphen), so the echo should work correctly.
8222 # The option is referenced via a variable to avoid confusing sed.
8223 lt_compile=`echo "$ac_compile" | $SED \
8224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8226 -e 's:$: $lt_compiler_flag:'`
3388710e 8227 (eval echo "\"\$as_me:8227: $lt_compile\"" >&5)
d7040cdb
SE
8228 (eval "$lt_compile" 2>conftest.err)
8229 ac_status=$?
8230 cat conftest.err >&5
3388710e 8231 echo "$as_me:8231: \$? = $ac_status" >&5
d7040cdb
SE
8232 if (exit $ac_status) && test -s "$ac_outfile"; then
8233 # The compiler can only warn and ignore the option if not recognized
8234 # So say no if there are warnings other than the usual output.
8235 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8236 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8237 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8238 lt_cv_prog_compiler_rtti_exceptions=yes
8239 fi
8240 fi
8241 $RM conftest*
42ecbf5e 8242
252b5132 8243fi
81ecdfbb
RW
8244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8245$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb
SE
8246
8247if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8248 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
20e95c23 8249else
d7040cdb 8250 :
252b5132 8251fi
252b5132
RH
8252
8253fi
d7040cdb
SE
8254
8255
8256
8257
8258
8259
8260 lt_prog_compiler_wl=
8261lt_prog_compiler_pic=
8262lt_prog_compiler_static=
8263
81ecdfbb
RW
8264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8265$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb
SE
8266
8267 if test "$GCC" = yes; then
8268 lt_prog_compiler_wl='-Wl,'
8269 lt_prog_compiler_static='-static'
8270
8271 case $host_os in
8272 aix*)
8273 # All AIX code is PIC.
8274 if test "$host_cpu" = ia64; then
8275 # AIX 5 now supports IA64 processor
8276 lt_prog_compiler_static='-Bstatic'
8277 fi
8278 ;;
8279
8280 amigaos*)
718a6fd8
SE
8281 case $host_cpu in
8282 powerpc)
8283 # see comment about AmigaOS4 .so support
8284 lt_prog_compiler_pic='-fPIC'
8285 ;;
8286 m68k)
8287 # FIXME: we need at least 68020 code to build shared libraries, but
8288 # adding the `-m68020' flag to GCC prevents building anything better,
8289 # like `-m68040'.
8290 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8291 ;;
8292 esac
d7040cdb
SE
8293 ;;
8294
8295 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8296 # PIC is the default for these OSes.
8297 ;;
8298
718a6fd8 8299 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8300 # This hack is so that the source file can tell whether it is being
8301 # built for inclusion in a dll (and should export symbols for example).
8302 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8303 # (--disable-auto-import) libraries
8304 lt_prog_compiler_pic='-DDLL_EXPORT'
8305 ;;
8306
8307 darwin* | rhapsody*)
8308 # PIC is the default on this platform
8309 # Common symbols not allowed in MH_DYLIB files
8310 lt_prog_compiler_pic='-fno-common'
8311 ;;
8312
8313 hpux*)
718a6fd8
SE
8314 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8315 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8316 # sets the default TLS model and affects inlining.
d7040cdb 8317 case $host_cpu in
718a6fd8 8318 hppa*64*)
d7040cdb
SE
8319 # +Z the default
8320 ;;
8321 *)
8322 lt_prog_compiler_pic='-fPIC'
8323 ;;
8324 esac
8325 ;;
8326
8327 interix[3-9]*)
8328 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8329 # Instead, we relocate shared libraries at runtime.
8330 ;;
8331
8332 msdosdjgpp*)
8333 # Just because we use GCC doesn't mean we suddenly get shared libraries
8334 # on systems that don't support them.
8335 lt_prog_compiler_can_build_shared=no
8336 enable_shared=no
8337 ;;
8338
8339 *nto* | *qnx*)
8340 # QNX uses GNU C++, but need to define -shared option too, otherwise
8341 # it will coredump.
8342 lt_prog_compiler_pic='-fPIC -shared'
8343 ;;
8344
8345 sysv4*MP*)
8346 if test -d /usr/nec; then
8347 lt_prog_compiler_pic=-Kconform_pic
8348 fi
8349 ;;
8350
8351 *)
8352 lt_prog_compiler_pic='-fPIC'
8353 ;;
8354 esac
8355 else
8356 # PORTME Check for flag to pass linker flags through the system compiler.
8357 case $host_os in
8358 aix*)
8359 lt_prog_compiler_wl='-Wl,'
8360 if test "$host_cpu" = ia64; then
8361 # AIX 5 now supports IA64 processor
8362 lt_prog_compiler_static='-Bstatic'
8363 else
8364 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8365 fi
8366 ;;
d7040cdb 8367
718a6fd8 8368 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8369 # This hack is so that the source file can tell whether it is being
8370 # built for inclusion in a dll (and should export symbols for example).
8371 lt_prog_compiler_pic='-DDLL_EXPORT'
8372 ;;
8373
8374 hpux9* | hpux10* | hpux11*)
8375 lt_prog_compiler_wl='-Wl,'
8376 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8377 # not for PA HP-UX.
8378 case $host_cpu in
8379 hppa*64*|ia64*)
8380 # +Z the default
8381 ;;
8382 *)
8383 lt_prog_compiler_pic='+Z'
8384 ;;
8385 esac
8386 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8387 lt_prog_compiler_static='${wl}-a ${wl}archive'
8388 ;;
8389
8390 irix5* | irix6* | nonstopux*)
8391 lt_prog_compiler_wl='-Wl,'
8392 # PIC (with -KPIC) is the default.
8393 lt_prog_compiler_static='-non_shared'
8394 ;;
8395
58e24671 8396 linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb 8397 case $cc_basename in
718a6fd8
SE
8398 # old Intel for x86_64 which still supported -KPIC.
8399 ecc*)
d7040cdb
SE
8400 lt_prog_compiler_wl='-Wl,'
8401 lt_prog_compiler_pic='-KPIC'
8402 lt_prog_compiler_static='-static'
8403 ;;
718a6fd8
SE
8404 # icc used to be incompatible with GCC.
8405 # ICC 10 doesn't accept -KPIC any more.
8406 icc* | ifort*)
8407 lt_prog_compiler_wl='-Wl,'
8408 lt_prog_compiler_pic='-fPIC'
8409 lt_prog_compiler_static='-static'
8410 ;;
8411 # Lahey Fortran 8.1.
8412 lf95*)
8413 lt_prog_compiler_wl='-Wl,'
8414 lt_prog_compiler_pic='--shared'
8415 lt_prog_compiler_static='--static'
8416 ;;
d7040cdb
SE
8417 pgcc* | pgf77* | pgf90* | pgf95*)
8418 # Portland Group compilers (*not* the Pentium gcc compiler,
8419 # which looks to be a dead project)
8420 lt_prog_compiler_wl='-Wl,'
8421 lt_prog_compiler_pic='-fpic'
8422 lt_prog_compiler_static='-Bstatic'
8423 ;;
8424 ccc*)
8425 lt_prog_compiler_wl='-Wl,'
8426 # All Alpha code is PIC.
8427 lt_prog_compiler_static='-non_shared'
8428 ;;
718a6fd8
SE
8429 xl*)
8430 # IBM XL C 8.0/Fortran 10.1 on PPC
8431 lt_prog_compiler_wl='-Wl,'
8432 lt_prog_compiler_pic='-qpic'
8433 lt_prog_compiler_static='-qstaticlink'
8434 ;;
d7040cdb
SE
8435 *)
8436 case `$CC -V 2>&1 | sed 5q` in
8437 *Sun\ C*)
8438 # Sun C 5.9
8439 lt_prog_compiler_pic='-KPIC'
8440 lt_prog_compiler_static='-Bstatic'
8441 lt_prog_compiler_wl='-Wl,'
8442 ;;
8443 *Sun\ F*)
8444 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8445 lt_prog_compiler_pic='-KPIC'
8446 lt_prog_compiler_static='-Bstatic'
8447 lt_prog_compiler_wl=''
8448 ;;
8449 esac
8450 ;;
8451 esac
8452 ;;
8453
8454 newsos6)
8455 lt_prog_compiler_pic='-KPIC'
8456 lt_prog_compiler_static='-Bstatic'
8457 ;;
8458
8459 *nto* | *qnx*)
8460 # QNX uses GNU C++, but need to define -shared option too, otherwise
8461 # it will coredump.
8462 lt_prog_compiler_pic='-fPIC -shared'
8463 ;;
8464
8465 osf3* | osf4* | osf5*)
8466 lt_prog_compiler_wl='-Wl,'
8467 # All OSF/1 code is PIC.
8468 lt_prog_compiler_static='-non_shared'
8469 ;;
8470
8471 rdos*)
8472 lt_prog_compiler_static='-non_shared'
8473 ;;
8474
8475 solaris*)
8476 lt_prog_compiler_pic='-KPIC'
8477 lt_prog_compiler_static='-Bstatic'
8478 case $cc_basename in
8479 f77* | f90* | f95*)
8480 lt_prog_compiler_wl='-Qoption ld ';;
8481 *)
8482 lt_prog_compiler_wl='-Wl,';;
8483 esac
8484 ;;
8485
8486 sunos4*)
8487 lt_prog_compiler_wl='-Qoption ld '
8488 lt_prog_compiler_pic='-PIC'
8489 lt_prog_compiler_static='-Bstatic'
8490 ;;
8491
8492 sysv4 | sysv4.2uw2* | sysv4.3*)
8493 lt_prog_compiler_wl='-Wl,'
8494 lt_prog_compiler_pic='-KPIC'
8495 lt_prog_compiler_static='-Bstatic'
8496 ;;
8497
8498 sysv4*MP*)
8499 if test -d /usr/nec ;then
8500 lt_prog_compiler_pic='-Kconform_pic'
8501 lt_prog_compiler_static='-Bstatic'
8502 fi
8503 ;;
8504
8505 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8506 lt_prog_compiler_wl='-Wl,'
8507 lt_prog_compiler_pic='-KPIC'
8508 lt_prog_compiler_static='-Bstatic'
8509 ;;
8510
8511 unicos*)
8512 lt_prog_compiler_wl='-Wl,'
8513 lt_prog_compiler_can_build_shared=no
8514 ;;
8515
8516 uts4*)
8517 lt_prog_compiler_pic='-pic'
8518 lt_prog_compiler_static='-Bstatic'
8519 ;;
8520
8521 *)
8522 lt_prog_compiler_can_build_shared=no
8523 ;;
8524 esac
8525 fi
8526
8527case $host_os in
8528 # For platforms which do not support PIC, -DPIC is meaningless:
8529 *djgpp*)
8530 lt_prog_compiler_pic=
8531 ;;
8532 *)
8533 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8534 ;;
8535esac
81ecdfbb
RW
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8537$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8538
8539
8540
8541
8542
8543
8544#
8545# Check to make sure the PIC flag actually works.
8546#
8547if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8549$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8550if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8551 $as_echo_n "(cached) " >&6
42ecbf5e 8552else
718a6fd8 8553 lt_cv_prog_compiler_pic_works=no
d7040cdb
SE
8554 ac_outfile=conftest.$ac_objext
8555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8556 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8557 # Insert the option either (1) after the last *FLAGS variable, or
8558 # (2) before a word containing "conftest.", or (3) at the end.
8559 # Note that $ac_compile itself does not contain backslashes and begins
8560 # with a dollar sign (not a hyphen), so the echo should work correctly.
8561 # The option is referenced via a variable to avoid confusing sed.
8562 lt_compile=`echo "$ac_compile" | $SED \
8563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8565 -e 's:$: $lt_compiler_flag:'`
3388710e 8566 (eval echo "\"\$as_me:8566: $lt_compile\"" >&5)
d7040cdb
SE
8567 (eval "$lt_compile" 2>conftest.err)
8568 ac_status=$?
8569 cat conftest.err >&5
3388710e 8570 echo "$as_me:8570: \$? = $ac_status" >&5
d7040cdb
SE
8571 if (exit $ac_status) && test -s "$ac_outfile"; then
8572 # The compiler can only warn and ignore the option if not recognized
8573 # So say no if there are warnings other than the usual output.
8574 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8576 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8577 lt_cv_prog_compiler_pic_works=yes
d7040cdb
SE
8578 fi
8579 fi
8580 $RM conftest*
42ecbf5e 8581
252b5132 8582fi
81ecdfbb
RW
8583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8584$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8585
718a6fd8 8586if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
d7040cdb
SE
8587 case $lt_prog_compiler_pic in
8588 "" | " "*) ;;
8589 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8590 esac
252b5132 8591else
d7040cdb
SE
8592 lt_prog_compiler_pic=
8593 lt_prog_compiler_can_build_shared=no
252b5132 8594fi
252b5132
RH
8595
8596fi
42ecbf5e 8597
d7040cdb
SE
8598
8599
8600
8601
8602
8603#
8604# Check to make sure the static flag actually works.
8605#
8606wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8608$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8609if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8610 $as_echo_n "(cached) " >&6
42ecbf5e 8611else
718a6fd8 8612 lt_cv_prog_compiler_static_works=no
d7040cdb
SE
8613 save_LDFLAGS="$LDFLAGS"
8614 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8615 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8616 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8617 # The linker can only warn and ignore the option if not recognized
8618 # So say no if there are warnings
8619 if test -s conftest.err; then
8620 # Append any errors to the config.log.
8621 cat conftest.err 1>&5
8622 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8623 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8624 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8625 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8626 fi
8627 else
718a6fd8 8628 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8629 fi
8630 fi
718a6fd8 8631 $RM -r conftest*
d7040cdb 8632 LDFLAGS="$save_LDFLAGS"
42ecbf5e 8633
42ecbf5e 8634fi
81ecdfbb
RW
8635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8636$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8637
718a6fd8 8638if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d7040cdb
SE
8639 :
8640else
8641 lt_prog_compiler_static=
42ecbf5e 8642fi
42ecbf5e 8643
252b5132 8644
252b5132 8645
42ecbf5e 8646
252b5132 8647
20e95c23 8648
d7040cdb 8649
81ecdfbb
RW
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8651$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8652if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
252b5132 8654else
d7040cdb
SE
8655 lt_cv_prog_compiler_c_o=no
8656 $RM -r conftest 2>/dev/null
8657 mkdir conftest
8658 cd conftest
8659 mkdir out
8660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8661
8662 lt_compiler_flag="-o out/conftest2.$ac_objext"
8663 # Insert the option either (1) after the last *FLAGS variable, or
8664 # (2) before a word containing "conftest.", or (3) at the end.
8665 # Note that $ac_compile itself does not contain backslashes and begins
8666 # with a dollar sign (not a hyphen), so the echo should work correctly.
8667 lt_compile=`echo "$ac_compile" | $SED \
8668 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8669 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8670 -e 's:$: $lt_compiler_flag:'`
3388710e 8671 (eval echo "\"\$as_me:8671: $lt_compile\"" >&5)
d7040cdb
SE
8672 (eval "$lt_compile" 2>out/conftest.err)
8673 ac_status=$?
8674 cat out/conftest.err >&5
3388710e 8675 echo "$as_me:8675: \$? = $ac_status" >&5
d7040cdb
SE
8676 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8677 then
8678 # The compiler can only warn and ignore the option if not recognized
8679 # So say no if there are warnings
8680 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8681 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8682 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8683 lt_cv_prog_compiler_c_o=yes
8684 fi
8685 fi
8686 chmod u+w . 2>&5
8687 $RM conftest*
8688 # SGI C++ compiler will create directory out/ii_files/ for
8689 # template instantiation
8690 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8691 $RM out/* && rmdir out
8692 cd ..
8693 $RM -r conftest
8694 $RM conftest*
8695
252b5132 8696fi
81ecdfbb
RW
8697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8698$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
42ecbf5e 8699
20e95c23 8700
20e95c23
DJ
8701
8702
d7040cdb
SE
8703
8704
81ecdfbb
RW
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8706$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8707if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8708 $as_echo_n "(cached) " >&6
42ecbf5e 8709else
d7040cdb
SE
8710 lt_cv_prog_compiler_c_o=no
8711 $RM -r conftest 2>/dev/null
8712 mkdir conftest
8713 cd conftest
8714 mkdir out
8715 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8716
8717 lt_compiler_flag="-o out/conftest2.$ac_objext"
8718 # Insert the option either (1) after the last *FLAGS variable, or
8719 # (2) before a word containing "conftest.", or (3) at the end.
8720 # Note that $ac_compile itself does not contain backslashes and begins
8721 # with a dollar sign (not a hyphen), so the echo should work correctly.
8722 lt_compile=`echo "$ac_compile" | $SED \
8723 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8725 -e 's:$: $lt_compiler_flag:'`
3388710e 8726 (eval echo "\"\$as_me:8726: $lt_compile\"" >&5)
d7040cdb
SE
8727 (eval "$lt_compile" 2>out/conftest.err)
8728 ac_status=$?
8729 cat out/conftest.err >&5
3388710e 8730 echo "$as_me:8730: \$? = $ac_status" >&5
d7040cdb
SE
8731 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8732 then
8733 # The compiler can only warn and ignore the option if not recognized
8734 # So say no if there are warnings
8735 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8736 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8737 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8738 lt_cv_prog_compiler_c_o=yes
8739 fi
8740 fi
8741 chmod u+w . 2>&5
8742 $RM conftest*
8743 # SGI C++ compiler will create directory out/ii_files/ for
8744 # template instantiation
8745 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8746 $RM out/* && rmdir out
8747 cd ..
8748 $RM -r conftest
8749 $RM conftest*
8750
8751fi
81ecdfbb
RW
8752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8753$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8754
8755
8756
8757
8758hard_links="nottested"
8759if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8760 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8762$as_echo_n "checking if we can lock with hard links... " >&6; }
d7040cdb
SE
8763 hard_links=yes
8764 $RM conftest*
8765 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8766 touch conftest.a
8767 ln conftest.a conftest.b 2>&5 || hard_links=no
8768 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8770$as_echo "$hard_links" >&6; }
d7040cdb 8771 if test "$hard_links" = no; then
81ecdfbb
RW
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8773$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
d7040cdb
SE
8774 need_locks=warn
8775 fi
8776else
8777 need_locks=no
8778fi
8779
8780
8781
8782
8783
8784
81ecdfbb
RW
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8786$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb
SE
8787
8788 runpath_var=
8789 allow_undefined_flag=
8790 always_export_symbols=no
8791 archive_cmds=
8792 archive_expsym_cmds=
8793 compiler_needs_object=no
8794 enable_shared_with_static_runtimes=no
8795 export_dynamic_flag_spec=
8796 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8797 hardcode_automatic=no
8798 hardcode_direct=no
8799 hardcode_direct_absolute=no
8800 hardcode_libdir_flag_spec=
8801 hardcode_libdir_flag_spec_ld=
8802 hardcode_libdir_separator=
8803 hardcode_minus_L=no
8804 hardcode_shlibpath_var=unsupported
8805 inherit_rpath=no
8806 link_all_deplibs=unknown
8807 module_cmds=
8808 module_expsym_cmds=
8809 old_archive_from_new_cmds=
8810 old_archive_from_expsyms_cmds=
8811 thread_safe_flag_spec=
8812 whole_archive_flag_spec=
8813 # include_expsyms should be a list of space-separated symbols to be *always*
8814 # included in the symbol list
8815 include_expsyms=
8816 # exclude_expsyms can be an extended regexp of symbols to exclude
8817 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8818 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8819 # as well as any symbol that contains `d'.
718a6fd8 8820 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d7040cdb
SE
8821 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8822 # platforms (ab)use it in PIC code, but their linkers get confused if
8823 # the symbol is explicitly referenced. Since portable code cannot
8824 # rely on this symbol name, it's probably fine to never include it in
8825 # preloaded symbol tables.
718a6fd8 8826 # Exclude shared library initialization/finalization symbols.
d7040cdb
SE
8827 extract_expsyms_cmds=
8828
8829 case $host_os in
718a6fd8 8830 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8831 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8832 # When not using gcc, we currently assume that we are using
8833 # Microsoft Visual C++.
8834 if test "$GCC" != yes; then
8835 with_gnu_ld=no
8836 fi
8837 ;;
8838 interix*)
8839 # we just hope/assume this is gcc and not c89 (= MSVC++)
8840 with_gnu_ld=yes
8841 ;;
8842 openbsd*)
8843 with_gnu_ld=no
8844 ;;
8845 esac
8846
8847 ld_shlibs=yes
8848 if test "$with_gnu_ld" = yes; then
8849 # If archive_cmds runs LD, not CC, wlarc should be empty
8850 wlarc='${wl}'
8851
8852 # Set some defaults for GNU ld with shared library support. These
8853 # are reset later if shared libraries are not supported. Putting them
8854 # here allows them to be overridden if necessary.
8855 runpath_var=LD_RUN_PATH
8856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8857 export_dynamic_flag_spec='${wl}--export-dynamic'
8858 # ancient GNU ld didn't support --whole-archive et. al.
8859 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8860 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8861 else
8862 whole_archive_flag_spec=
8863 fi
8864 supports_anon_versioning=no
8865 case `$LD -v 2>&1` in
8866 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8867 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8868 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8869 *\ 2.11.*) ;; # other 2.11 versions
8870 *) supports_anon_versioning=yes ;;
8871 esac
8872
8873 # See if GNU ld supports shared libraries.
8874 case $host_os in
50e7d84b 8875 aix[3-9]*)
d7040cdb
SE
8876 # On AIX/PPC, the GNU linker is very broken
8877 if test "$host_cpu" != ia64; then
8878 ld_shlibs=no
8879 cat <<_LT_EOF 1>&2
8880
8881*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8882*** to be unable to reliably create shared libraries on AIX.
8883*** Therefore, libtool is disabling shared libraries support. If you
8884*** really care for shared libraries, you may want to modify your PATH
8885*** so that a non-GNU linker is found, and then restart.
8886
8887_LT_EOF
8888 fi
8889 ;;
8890
8891 amigaos*)
718a6fd8
SE
8892 case $host_cpu in
8893 powerpc)
8894 # see comment about AmigaOS4 .so support
8895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8896 archive_expsym_cmds=''
8897 ;;
8898 m68k)
8899 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)'
8900 hardcode_libdir_flag_spec='-L$libdir'
8901 hardcode_minus_L=yes
8902 ;;
8903 esac
d7040cdb
SE
8904 ;;
8905
8906 beos*)
8907 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8908 allow_undefined_flag=unsupported
8909 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8910 # support --undefined. This deserves some investigation. FIXME
8911 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8912 else
8913 ld_shlibs=no
8914 fi
8915 ;;
8916
718a6fd8 8917 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8918 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8919 # as there is no search path for DLLs.
8920 hardcode_libdir_flag_spec='-L$libdir'
8921 allow_undefined_flag=unsupported
8922 always_export_symbols=no
8923 enable_shared_with_static_runtimes=yes
8924 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8925
8926 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8927 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8928 # If the export-symbols file already is a .def file (1st line
8929 # is EXPORTS), use it as is; otherwise, prepend...
8930 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8931 cp $export_symbols $output_objdir/$soname.def;
8932 else
8933 echo EXPORTS > $output_objdir/$soname.def;
8934 cat $export_symbols >> $output_objdir/$soname.def;
8935 fi~
8936 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8937 else
8938 ld_shlibs=no
8939 fi
8940 ;;
8941
8942 interix[3-9]*)
8943 hardcode_direct=no
8944 hardcode_shlibpath_var=no
8945 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8946 export_dynamic_flag_spec='${wl}-E'
8947 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8948 # Instead, shared libraries are loaded at an image base (0x10000000 by
8949 # default) and relocated if they conflict, which is a slow very memory
8950 # consuming and fragmenting process. To avoid this, we pick a random,
8951 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8952 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8953 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8954 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'
8955 ;;
8956
58e24671 8957 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
8958 tmp_diet=no
8959 if test "$host_os" = linux-dietlibc; then
8960 case $cc_basename in
8961 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8962 esac
8963 fi
8964 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8965 && test "$tmp_diet" = no
8966 then
8967 tmp_addflag=
718a6fd8 8968 tmp_sharedflag='-shared'
d7040cdb
SE
8969 case $cc_basename,$host_cpu in
8970 pgcc*) # Portland Group C compiler
8971 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8972 tmp_addflag=' $pic_flag'
8973 ;;
8974 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8975 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8976 tmp_addflag=' $pic_flag -Mnomain' ;;
8977 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8978 tmp_addflag=' -i_dynamic' ;;
8979 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8980 tmp_addflag=' -i_dynamic -nofor_main' ;;
8981 ifc* | ifort*) # Intel Fortran compiler
8982 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
8983 lf95*) # Lahey Fortran 8.1
8984 whole_archive_flag_spec=
8985 tmp_sharedflag='--shared' ;;
8986 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8987 tmp_sharedflag='-qmkshrobj'
8988 tmp_addflag= ;;
d7040cdb
SE
8989 esac
8990 case `$CC -V 2>&1 | sed 5q` in
8991 *Sun\ C*) # Sun C 5.9
8992 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8993 compiler_needs_object=yes
8994 tmp_sharedflag='-G' ;;
8995 *Sun\ F*) # Sun Fortran 8.3
8996 tmp_sharedflag='-G' ;;
d7040cdb
SE
8997 esac
8998 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8999
9000 if test "x$supports_anon_versioning" = xyes; then
9001 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9002 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9003 echo "local: *; };" >> $output_objdir/$libname.ver~
9004 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9005 fi
718a6fd8
SE
9006
9007 case $cc_basename in
9008 xlf*)
9009 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9010 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9011 hardcode_libdir_flag_spec=
9012 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9013 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9014 if test "x$supports_anon_versioning" = xyes; then
9015 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9016 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9017 echo "local: *; };" >> $output_objdir/$libname.ver~
9018 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9019 fi
9020 ;;
9021 esac
d7040cdb
SE
9022 else
9023 ld_shlibs=no
9024 fi
9025 ;;
9026
9027 netbsd*)
9028 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9029 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9030 wlarc=
9031 else
9032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9033 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9034 fi
9035 ;;
9036
9037 solaris*)
9038 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9039 ld_shlibs=no
9040 cat <<_LT_EOF 1>&2
9041
9042*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9043*** create shared libraries on Solaris systems. Therefore, libtool
9044*** is disabling shared libraries support. We urge you to upgrade GNU
9045*** binutils to release 2.9.1 or newer. Another option is to modify
9046*** your PATH or compiler configuration so that the native linker is
9047*** used, and then restart.
9048
9049_LT_EOF
9050 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9052 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9053 else
9054 ld_shlibs=no
9055 fi
9056 ;;
9057
9058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9059 case `$LD -v 2>&1` in
9060 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9061 ld_shlibs=no
9062 cat <<_LT_EOF 1>&2
9063
9064*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9065*** reliably create shared libraries on SCO systems. Therefore, libtool
9066*** is disabling shared libraries support. We urge you to upgrade GNU
9067*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9068*** your PATH or compiler configuration so that the native linker is
9069*** used, and then restart.
9070
9071_LT_EOF
9072 ;;
9073 *)
9074 # For security reasons, it is highly recommended that you always
9075 # use absolute paths for naming shared libraries, and exclude the
9076 # DT_RUNPATH tag from executables and libraries. But doing so
9077 # requires that you compile everything twice, which is a pain.
9078 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9079 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9080 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9081 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9082 else
9083 ld_shlibs=no
9084 fi
9085 ;;
9086 esac
9087 ;;
9088
9089 sunos4*)
9090 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9091 wlarc=
9092 hardcode_direct=yes
9093 hardcode_shlibpath_var=no
9094 ;;
9095
9096 *)
9097 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9099 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9100 else
9101 ld_shlibs=no
9102 fi
9103 ;;
9104 esac
9105
9106 if test "$ld_shlibs" = no; then
9107 runpath_var=
9108 hardcode_libdir_flag_spec=
9109 export_dynamic_flag_spec=
9110 whole_archive_flag_spec=
9111 fi
9112 else
9113 # PORTME fill in a description of your system's linker (not GNU ld)
9114 case $host_os in
9115 aix3*)
9116 allow_undefined_flag=unsupported
9117 always_export_symbols=yes
9118 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'
9119 # Note: this linker hardcodes the directories in LIBPATH if there
9120 # are no directories specified by -L.
9121 hardcode_minus_L=yes
9122 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9123 # Neither direct hardcoding nor static linking is supported with a
9124 # broken collect2.
9125 hardcode_direct=unsupported
9126 fi
9127 ;;
9128
50e7d84b 9129 aix[4-9]*)
d7040cdb
SE
9130 if test "$host_cpu" = ia64; then
9131 # On IA64, the linker does run time linking by default, so we don't
9132 # have to do anything special.
9133 aix_use_runtimelinking=no
9134 exp_sym_flag='-Bexport'
9135 no_entry_flag=""
9136 else
9137 # If we're using GNU nm, then we don't want the "-C" option.
9138 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9139 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9140 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9141 else
9142 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'
9143 fi
9144 aix_use_runtimelinking=no
9145
9146 # Test if we are trying to use run time linking or normal
9147 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9148 # need to do runtime linking.
50e7d84b 9149 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
9150 for ld_flag in $LDFLAGS; do
9151 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9152 aix_use_runtimelinking=yes
9153 break
9154 fi
9155 done
9156 ;;
9157 esac
9158
9159 exp_sym_flag='-bexport'
9160 no_entry_flag='-bnoentry'
9161 fi
9162
9163 # When large executables or shared objects are built, AIX ld can
9164 # have problems creating the table of contents. If linking a library
9165 # or program results in "error TOC overflow" add -mminimal-toc to
9166 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9167 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9168
9169 archive_cmds=''
9170 hardcode_direct=yes
9171 hardcode_direct_absolute=yes
9172 hardcode_libdir_separator=':'
9173 link_all_deplibs=yes
9174 file_list_spec='${wl}-f,'
9175
9176 if test "$GCC" = yes; then
9177 case $host_os in aix4.[012]|aix4.[012].*)
9178 # We only want to do this on AIX 4.2 and lower, the check
9179 # below for broken collect2 doesn't work under 4.3+
9180 collect2name=`${CC} -print-prog-name=collect2`
9181 if test -f "$collect2name" &&
9182 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9183 then
9184 # We have reworked collect2
9185 :
9186 else
9187 # We have old collect2
9188 hardcode_direct=unsupported
9189 # It fails to find uninstalled libraries when the uninstalled
9190 # path is not listed in the libpath. Setting hardcode_minus_L
9191 # to unsupported forces relinking
9192 hardcode_minus_L=yes
9193 hardcode_libdir_flag_spec='-L$libdir'
9194 hardcode_libdir_separator=
9195 fi
9196 ;;
9197 esac
9198 shared_flag='-shared'
9199 if test "$aix_use_runtimelinking" = yes; then
9200 shared_flag="$shared_flag "'${wl}-G'
9201 fi
9202 else
9203 # not using gcc
9204 if test "$host_cpu" = ia64; then
9205 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9206 # chokes on -Wl,-G. The following line is correct:
9207 shared_flag='-G'
9208 else
9209 if test "$aix_use_runtimelinking" = yes; then
9210 shared_flag='${wl}-G'
9211 else
9212 shared_flag='${wl}-bM:SRE'
9213 fi
9214 fi
9215 fi
9216
718a6fd8 9217 export_dynamic_flag_spec='${wl}-bexpall'
d7040cdb
SE
9218 # It seems that -bexpall does not export symbols beginning with
9219 # underscore (_), so it is better to generate a list of symbols to export.
9220 always_export_symbols=yes
9221 if test "$aix_use_runtimelinking" = yes; then
9222 # Warning - without using the other runtime loading flags (-brtl),
9223 # -berok will link without error, but may produce a broken library.
9224 allow_undefined_flag='-berok'
9225 # Determine the default libpath from the value encoded in an
9226 # empty executable.
81ecdfbb 9227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 9228/* end confdefs.h. */
d7040cdb
SE
9229
9230int
9231main ()
9232{
9233
9234 ;
9235 return 0;
9236}
42ecbf5e 9237_ACEOF
81ecdfbb 9238if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
9239
9240lt_aix_libpath_sed='
9241 /Import File Strings/,/^$/ {
9242 /^0/ {
9243 s/^0 *\(.*\)$/\1/
9244 p
9245 }
9246 }'
9247aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9248# Check for a 64-bit object if we didn't find anything.
9249if test -z "$aix_libpath"; then
9250 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
252b5132 9251fi
252b5132 9252fi
81ecdfbb
RW
9253rm -f core conftest.err conftest.$ac_objext \
9254 conftest$ac_exeext conftest.$ac_ext
d7040cdb 9255if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
252b5132 9256
d7040cdb
SE
9257 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9258 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9259 else
9260 if test "$host_cpu" = ia64; then
9261 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9262 allow_undefined_flag="-z nodefs"
9263 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"
9264 else
9265 # Determine the default libpath from the value encoded in an
9266 # empty executable.
81ecdfbb 9267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 9268/* end confdefs.h. */
d7040cdb
SE
9269
9270int
9271main ()
9272{
9273
9274 ;
9275 return 0;
9276}
42ecbf5e 9277_ACEOF
81ecdfbb 9278if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
9279
9280lt_aix_libpath_sed='
9281 /Import File Strings/,/^$/ {
9282 /^0/ {
9283 s/^0 *\(.*\)$/\1/
9284 p
9285 }
9286 }'
9287aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9288# Check for a 64-bit object if we didn't find anything.
9289if test -z "$aix_libpath"; then
9290 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20e95c23 9291fi
252b5132 9292fi
81ecdfbb
RW
9293rm -f core conftest.err conftest.$ac_objext \
9294 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
9295if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9296
9297 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9298 # Warning - without using the other run time loading flags,
9299 # -berok will link without error, but may produce a broken library.
9300 no_undefined_flag=' ${wl}-bernotok'
9301 allow_undefined_flag=' ${wl}-berok'
9302 # Exported symbols can be pulled into shared objects from archives
9303 whole_archive_flag_spec='$convenience'
9304 archive_cmds_need_lc=yes
9305 # This is similar to how AIX traditionally builds its shared libraries.
9306 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'
9307 fi
9308 fi
9309 ;;
42ecbf5e 9310
d7040cdb 9311 amigaos*)
718a6fd8
SE
9312 case $host_cpu in
9313 powerpc)
9314 # see comment about AmigaOS4 .so support
9315 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9316 archive_expsym_cmds=''
9317 ;;
9318 m68k)
9319 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)'
9320 hardcode_libdir_flag_spec='-L$libdir'
9321 hardcode_minus_L=yes
9322 ;;
9323 esac
d7040cdb 9324 ;;
252b5132 9325
d7040cdb
SE
9326 bsdi[45]*)
9327 export_dynamic_flag_spec=-rdynamic
9328 ;;
252b5132 9329
718a6fd8 9330 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9331 # When not using gcc, we currently assume that we are using
9332 # Microsoft Visual C++.
9333 # hardcode_libdir_flag_spec is actually meaningless, as there is
9334 # no search path for DLLs.
9335 hardcode_libdir_flag_spec=' '
9336 allow_undefined_flag=unsupported
9337 # Tell ltmain to make .lib files, not .a files.
9338 libext=lib
9339 # Tell ltmain to make .dll files, not .so files.
9340 shrext_cmds=".dll"
9341 # FIXME: Setting linknames here is a bad hack.
9342 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9343 # The linker will automatically build a .lib file if we build a DLL.
9344 old_archive_from_new_cmds='true'
9345 # FIXME: Should let the user specify the lib program.
9346 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9347 fix_srcfile_path='`cygpath -w "$srcfile"`'
9348 enable_shared_with_static_runtimes=yes
9349 ;;
252b5132 9350
d7040cdb 9351 darwin* | rhapsody*)
c46f8c51 9352
718a6fd8
SE
9353
9354 archive_cmds_need_lc=no
9355 hardcode_direct=no
9356 hardcode_automatic=yes
9357 hardcode_shlibpath_var=unsupported
9358 whole_archive_flag_spec=''
9359 link_all_deplibs=yes
9360 allow_undefined_flag="$_lt_dar_allow_undefined"
9361 case $cc_basename in
9362 ifort*) _lt_dar_can_shared=yes ;;
9363 *) _lt_dar_can_shared=$GCC ;;
9364 esac
9365 if test "$_lt_dar_can_shared" = "yes"; then
9366 output_verbose_link_cmd=echo
9367 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9368 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9369 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}"
9370 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}"
9371
9372 else
9373 ld_shlibs=no
9374 fi
9375
d7040cdb 9376 ;;
42ecbf5e 9377
d7040cdb
SE
9378 dgux*)
9379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9380 hardcode_libdir_flag_spec='-L$libdir'
9381 hardcode_shlibpath_var=no
9382 ;;
252b5132 9383
d7040cdb
SE
9384 freebsd1*)
9385 ld_shlibs=no
9386 ;;
252b5132 9387
d7040cdb
SE
9388 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9389 # support. Future versions do this automatically, but an explicit c++rt0.o
9390 # does not break anything, and helps significantly (at the cost of a little
9391 # extra space).
9392 freebsd2.2*)
9393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9394 hardcode_libdir_flag_spec='-R$libdir'
9395 hardcode_direct=yes
9396 hardcode_shlibpath_var=no
9397 ;;
252b5132 9398
d7040cdb
SE
9399 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9400 freebsd2*)
9401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9402 hardcode_direct=yes
9403 hardcode_minus_L=yes
9404 hardcode_shlibpath_var=no
9405 ;;
42ecbf5e 9406
d7040cdb
SE
9407 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9408 freebsd* | dragonfly*)
9409 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9410 hardcode_libdir_flag_spec='-R$libdir'
9411 hardcode_direct=yes
9412 hardcode_shlibpath_var=no
9413 ;;
252b5132 9414
d7040cdb
SE
9415 hpux9*)
9416 if test "$GCC" = yes; then
9417 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'
9418 else
9419 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'
9420 fi
9421 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9422 hardcode_libdir_separator=:
9423 hardcode_direct=yes
9424
9425 # hardcode_minus_L: Not really in the search PATH,
9426 # but as the default location of the library.
9427 hardcode_minus_L=yes
9428 export_dynamic_flag_spec='${wl}-E'
9429 ;;
20e95c23 9430
d7040cdb
SE
9431 hpux10*)
9432 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9433 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9434 else
9435 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9436 fi
9437 if test "$with_gnu_ld" = no; then
9438 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9439 hardcode_libdir_flag_spec_ld='+b $libdir'
9440 hardcode_libdir_separator=:
9441 hardcode_direct=yes
9442 hardcode_direct_absolute=yes
9443 export_dynamic_flag_spec='${wl}-E'
9444 # hardcode_minus_L: Not really in the search PATH,
9445 # but as the default location of the library.
9446 hardcode_minus_L=yes
9447 fi
9448 ;;
20e95c23 9449
d7040cdb
SE
9450 hpux11*)
9451 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9452 case $host_cpu in
9453 hppa*64*)
9454 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9455 ;;
9456 ia64*)
718a6fd8 9457 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9458 ;;
9459 *)
9460 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9461 ;;
9462 esac
9463 else
9464 case $host_cpu in
9465 hppa*64*)
9466 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9467 ;;
9468 ia64*)
9469 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9470 ;;
9471 *)
9472 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9473 ;;
9474 esac
9475 fi
9476 if test "$with_gnu_ld" = no; then
9477 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9478 hardcode_libdir_separator=:
9479
9480 case $host_cpu in
9481 hppa*64*|ia64*)
9482 hardcode_direct=no
9483 hardcode_shlibpath_var=no
9484 ;;
9485 *)
9486 hardcode_direct=yes
9487 hardcode_direct_absolute=yes
9488 export_dynamic_flag_spec='${wl}-E'
9489
9490 # hardcode_minus_L: Not really in the search PATH,
9491 # but as the default location of the library.
9492 hardcode_minus_L=yes
9493 ;;
9494 esac
9495 fi
9496 ;;
9497
9498 irix5* | irix6* | nonstopux*)
9499 if test "$GCC" = yes; then
9500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9501 # Try to use the -exported_symbol ld option, if it does not
9502 # work, assume that -exports_file does not work either and
9503 # implicitly export all symbols.
9504 save_LDFLAGS="$LDFLAGS"
9505 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9507/* end confdefs.h. */
d7040cdb 9508int foo(void) {}
42ecbf5e 9509_ACEOF
81ecdfbb 9510if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
9511 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9512
42ecbf5e 9513fi
81ecdfbb
RW
9514rm -f core conftest.err conftest.$ac_objext \
9515 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
9516 LDFLAGS="$save_LDFLAGS"
9517 else
9518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9519 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9520 fi
9521 archive_cmds_need_lc='no'
9522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9523 hardcode_libdir_separator=:
9524 inherit_rpath=yes
9525 link_all_deplibs=yes
9526 ;;
42ecbf5e 9527
d7040cdb
SE
9528 netbsd*)
9529 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9530 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9531 else
9532 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9533 fi
9534 hardcode_libdir_flag_spec='-R$libdir'
9535 hardcode_direct=yes
9536 hardcode_shlibpath_var=no
9537 ;;
42ecbf5e 9538
d7040cdb
SE
9539 newsos6)
9540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9541 hardcode_direct=yes
9542 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9543 hardcode_libdir_separator=:
9544 hardcode_shlibpath_var=no
9545 ;;
42ecbf5e 9546
d7040cdb
SE
9547 *nto* | *qnx*)
9548 ;;
252b5132 9549
d7040cdb 9550 openbsd*)
718a6fd8
SE
9551 if test -f /usr/libexec/ld.so; then
9552 hardcode_direct=yes
9553 hardcode_shlibpath_var=no
9554 hardcode_direct_absolute=yes
9555 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d7040cdb 9556 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9557 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d7040cdb 9558 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9559 export_dynamic_flag_spec='${wl}-E'
9560 else
9561 case $host_os in
9562 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9564 hardcode_libdir_flag_spec='-R$libdir'
9565 ;;
9566 *)
9567 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9568 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9569 ;;
9570 esac
9571 fi
9572 else
9573 ld_shlibs=no
d7040cdb
SE
9574 fi
9575 ;;
252b5132 9576
d7040cdb
SE
9577 os2*)
9578 hardcode_libdir_flag_spec='-L$libdir'
9579 hardcode_minus_L=yes
9580 allow_undefined_flag=unsupported
9581 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'
9582 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9583 ;;
2481e6a2 9584
d7040cdb
SE
9585 osf3*)
9586 if test "$GCC" = yes; then
9587 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9588 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9589 else
9590 allow_undefined_flag=' -expect_unresolved \*'
9591 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9592 fi
9593 archive_cmds_need_lc='no'
9594 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9595 hardcode_libdir_separator=:
9596 ;;
42ecbf5e 9597
d7040cdb
SE
9598 osf4* | osf5*) # as osf3* with the addition of -msym flag
9599 if test "$GCC" = yes; then
9600 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9601 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9603 else
9604 allow_undefined_flag=' -expect_unresolved \*'
9605 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9606 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~
9607 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
42ecbf5e 9608
d7040cdb
SE
9609 # Both c and cxx compiler support -rpath directly
9610 hardcode_libdir_flag_spec='-rpath $libdir'
9611 fi
9612 archive_cmds_need_lc='no'
9613 hardcode_libdir_separator=:
9614 ;;
9615
9616 solaris*)
9617 no_undefined_flag=' -z defs'
9618 if test "$GCC" = yes; then
9619 wlarc='${wl}'
9620 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9621 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9622 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9623 else
9624 case `$CC -V 2>&1` in
9625 *"Compilers 5.0"*)
9626 wlarc=''
9627 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9628 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9629 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9630 ;;
9631 *)
9632 wlarc='${wl}'
9633 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9634 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9635 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9636 ;;
9637 esac
9638 fi
9639 hardcode_libdir_flag_spec='-R$libdir'
9640 hardcode_shlibpath_var=no
9641 case $host_os in
9642 solaris2.[0-5] | solaris2.[0-5].*) ;;
9643 *)
9644 # The compiler driver will combine and reorder linker options,
9645 # but understands `-z linker_flag'. GCC discards it without `$wl',
9646 # but is careful enough not to reorder.
9647 # Supported since Solaris 2.6 (maybe 2.5.1?)
9648 if test "$GCC" = yes; then
9649 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9650 else
9651 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9652 fi
9653 ;;
9654 esac
9655 link_all_deplibs=yes
9656 ;;
9657
9658 sunos4*)
9659 if test "x$host_vendor" = xsequent; then
9660 # Use $CC to link under sequent, because it throws in some extra .o
9661 # files that make .init and .fini sections work.
9662 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9663 else
9664 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9665 fi
9666 hardcode_libdir_flag_spec='-L$libdir'
9667 hardcode_direct=yes
9668 hardcode_minus_L=yes
9669 hardcode_shlibpath_var=no
9670 ;;
9671
9672 sysv4)
9673 case $host_vendor in
9674 sni)
9675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9676 hardcode_direct=yes # is this really true???
9677 ;;
9678 siemens)
9679 ## LD is ld it makes a PLAMLIB
9680 ## CC just makes a GrossModule.
9681 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9682 reload_cmds='$CC -r -o $output$reload_objs'
9683 hardcode_direct=no
9684 ;;
9685 motorola)
9686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9687 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9688 ;;
9689 esac
9690 runpath_var='LD_RUN_PATH'
9691 hardcode_shlibpath_var=no
9692 ;;
9693
9694 sysv4.3*)
9695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696 hardcode_shlibpath_var=no
9697 export_dynamic_flag_spec='-Bexport'
9698 ;;
9699
9700 sysv4*MP*)
9701 if test -d /usr/nec; then
9702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703 hardcode_shlibpath_var=no
9704 runpath_var=LD_RUN_PATH
9705 hardcode_runpath_var=yes
9706 ld_shlibs=yes
9707 fi
9708 ;;
9709
9710 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9711 no_undefined_flag='${wl}-z,text'
9712 archive_cmds_need_lc=no
9713 hardcode_shlibpath_var=no
9714 runpath_var='LD_RUN_PATH'
9715
9716 if test "$GCC" = yes; then
9717 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9718 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9719 else
9720 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9721 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 fi
9723 ;;
9724
9725 sysv5* | sco3.2v5* | sco5v6*)
9726 # Note: We can NOT use -z defs as we might desire, because we do not
9727 # link with -lc, and that would cause any symbols used from libc to
9728 # always be unresolved, which means just about no library would
9729 # ever link correctly. If we're not using GNU ld we use -z text
9730 # though, which does catch some bad symbols but isn't as heavy-handed
9731 # as -z defs.
9732 no_undefined_flag='${wl}-z,text'
9733 allow_undefined_flag='${wl}-z,nodefs'
9734 archive_cmds_need_lc=no
9735 hardcode_shlibpath_var=no
9736 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9737 hardcode_libdir_separator=':'
9738 link_all_deplibs=yes
9739 export_dynamic_flag_spec='${wl}-Bexport'
9740 runpath_var='LD_RUN_PATH'
9741
9742 if test "$GCC" = yes; then
9743 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9744 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9745 else
9746 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9747 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9748 fi
9749 ;;
9750
9751 uts4*)
9752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9753 hardcode_libdir_flag_spec='-L$libdir'
9754 hardcode_shlibpath_var=no
9755 ;;
9756
9757 *)
9758 ld_shlibs=no
9759 ;;
9760 esac
9761
9762 if test x$host_vendor = xsni; then
9763 case $host in
9764 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9765 export_dynamic_flag_spec='${wl}-Blargedynsym'
9766 ;;
9767 esac
9768 fi
9769 fi
9770
81ecdfbb
RW
9771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9772$as_echo "$ld_shlibs" >&6; }
d7040cdb
SE
9773test "$ld_shlibs" = no && can_build_shared=no
9774
9775with_gnu_ld=$with_gnu_ld
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791#
9792# Do we need to explicitly link libc?
9793#
9794case "x$archive_cmds_need_lc" in
9795x|xyes)
9796 # Assume -lc should be added
9797 archive_cmds_need_lc=yes
9798
9799 if test "$enable_shared" = yes && test "$GCC" = yes; then
9800 case $archive_cmds in
9801 *'~'*)
9802 # FIXME: we may have to deal with multi-command sequences.
9803 ;;
9804 '$CC '*)
9805 # Test whether the compiler implicitly links with -lc since on some
9806 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9807 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9809$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9810if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9811 $as_echo_n "(cached) " >&6
39144654
RW
9812else
9813 $RM conftest*
9814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9815
81ecdfbb 9816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb 9817 (eval $ac_compile) 2>&5
20e95c23 9818 ac_status=$?
81ecdfbb
RW
9819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9820 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9821 soname=conftest
9822 lib=conftest
9823 libobjs=conftest.$ac_objext
9824 deplibs=
9825 wl=$lt_prog_compiler_wl
9826 pic_flag=$lt_prog_compiler_pic
9827 compiler_flags=-v
9828 linker_flags=-v
9829 verstring=
9830 output_objdir=.
9831 libname=conftest
9832 lt_save_allow_undefined_flag=$allow_undefined_flag
9833 allow_undefined_flag=
81ecdfbb 9834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
d7040cdb 9835 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20e95c23 9836 ac_status=$?
81ecdfbb
RW
9837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9838 test $ac_status = 0; }
39144654
RW
9839 then
9840 lt_cv_archive_cmds_need_lc=no
9841 else
9842 lt_cv_archive_cmds_need_lc=yes
9843 fi
9844 allow_undefined_flag=$lt_save_allow_undefined_flag
9845 else
9846 cat conftest.err 1>&5
9847 fi
9848 $RM conftest*
9849
9850fi
81ecdfbb
RW
9851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9852$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9853 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
d7040cdb
SE
9854 ;;
9855 esac
9856 fi
9857 ;;
9858esac
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
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
81ecdfbb
RW
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10017$as_echo_n "checking dynamic linker characteristics... " >&6; }
718a6fd8
SE
10018
10019if test "$GCC" = yes; then
d7040cdb
SE
10020 case $host_os in
10021 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10022 *) lt_awk_arg="/^libraries:/" ;;
10023 esac
10024 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10025 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10026 # if the path contains ";" then we assume it to be the separator
10027 # otherwise default to the standard path separator (i.e. ":") - it is
10028 # assumed that no part of a normal pathname contains ";" but that should
10029 # okay in the real world where ";" in dirpaths is itself problematic.
10030 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10031 else
10032 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10033 fi
10034 # Ok, now we have the path, separated by spaces, we can step through it
10035 # and add multilib dir if necessary.
10036 lt_tmp_lt_search_path_spec=
10037 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10038 for lt_sys_path in $lt_search_path_spec; do
10039 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10040 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10041 else
10042 test -d "$lt_sys_path" && \
10043 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10044 fi
10045 done
10046 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10047BEGIN {RS=" "; FS="/|\n";} {
10048 lt_foo="";
10049 lt_count=0;
10050 for (lt_i = NF; lt_i > 0; lt_i--) {
10051 if ($lt_i != "" && $lt_i != ".") {
10052 if ($lt_i == "..") {
10053 lt_count++;
10054 } else {
10055 if (lt_count == 0) {
10056 lt_foo="/" $lt_i lt_foo;
10057 } else {
10058 lt_count--;
10059 }
10060 }
10061 }
10062 }
10063 if (lt_foo != "") { lt_freq[lt_foo]++; }
10064 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10065}'`
10066 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10067else
10068 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10069fi
10070library_names_spec=
10071libname_spec='lib$name'
10072soname_spec=
10073shrext_cmds=".so"
10074postinstall_cmds=
10075postuninstall_cmds=
10076finish_cmds=
10077finish_eval=
10078shlibpath_var=
10079shlibpath_overrides_runpath=unknown
10080version_type=none
10081dynamic_linker="$host_os ld.so"
10082sys_lib_dlsearch_path_spec="/lib /usr/lib"
10083need_lib_prefix=unknown
10084hardcode_into_libs=no
10085
10086# when you set need_version to no, make sure it does not cause -set_version
10087# flags to be left without arguments
10088need_version=unknown
10089
10090case $host_os in
10091aix3*)
10092 version_type=linux
10093 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10094 shlibpath_var=LIBPATH
10095
10096 # AIX 3 has no versioning support, so we append a major version to the name.
10097 soname_spec='${libname}${release}${shared_ext}$major'
10098 ;;
10099
50e7d84b 10100aix[4-9]*)
d7040cdb
SE
10101 version_type=linux
10102 need_lib_prefix=no
10103 need_version=no
10104 hardcode_into_libs=yes
10105 if test "$host_cpu" = ia64; then
10106 # AIX 5 supports IA64
10107 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10108 shlibpath_var=LD_LIBRARY_PATH
10109 else
10110 # With GCC up to 2.95.x, collect2 would create an import file
10111 # for dependence libraries. The import file would start with
10112 # the line `#! .'. This would cause the generated library to
10113 # depend on `.', always an invalid library. This was fixed in
10114 # development snapshots of GCC prior to 3.0.
10115 case $host_os in
10116 aix4 | aix4.[01] | aix4.[01].*)
10117 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10118 echo ' yes '
10119 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10120 :
10121 else
10122 can_build_shared=no
10123 fi
10124 ;;
10125 esac
10126 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10127 # soname into executable. Probably we can add versioning support to
10128 # collect2, so additional links can be useful in future.
10129 if test "$aix_use_runtimelinking" = yes; then
10130 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10131 # instead of lib<name>.a to let people know that these are not
10132 # typical AIX shared libraries.
10133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10134 else
10135 # We preserve .a as extension for shared libraries through AIX4.2
10136 # and later when we are not doing run time linking.
10137 library_names_spec='${libname}${release}.a $libname.a'
10138 soname_spec='${libname}${release}${shared_ext}$major'
10139 fi
10140 shlibpath_var=LIBPATH
10141 fi
10142 ;;
10143
10144amigaos*)
718a6fd8
SE
10145 case $host_cpu in
10146 powerpc)
10147 # Since July 2007 AmigaOS4 officially supports .so libraries.
10148 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10150 ;;
10151 m68k)
d7040cdb
SE
10152 library_names_spec='$libname.ixlibrary $libname.a'
10153 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10154 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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
10155 ;;
10156 esac
d7040cdb
SE
10157 ;;
10158
10159beos*)
10160 library_names_spec='${libname}${shared_ext}'
10161 dynamic_linker="$host_os ld.so"
10162 shlibpath_var=LIBRARY_PATH
10163 ;;
10164
10165bsdi[45]*)
10166 version_type=linux
10167 need_version=no
10168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169 soname_spec='${libname}${release}${shared_ext}$major'
10170 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10171 shlibpath_var=LD_LIBRARY_PATH
10172 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10173 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10174 # the default ld.so.conf also contains /usr/contrib/lib and
10175 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10176 # libtool to hard-code these into programs
10177 ;;
10178
718a6fd8 10179cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
10180 version_type=windows
10181 shrext_cmds=".dll"
10182 need_version=no
10183 need_lib_prefix=no
10184
718a6fd8
SE
10185 case $GCC,$host_os in
10186 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d7040cdb
SE
10187 library_names_spec='$libname.dll.a'
10188 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10189 postinstall_cmds='base_file=`basename \${file}`~
10190 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10191 dldir=$destdir/`dirname \$dlpath`~
10192 test -d \$dldir || mkdir -p \$dldir~
10193 $install_prog $dir/$dlname \$dldir/$dlname~
10194 chmod a+x \$dldir/$dlname~
10195 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10196 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10197 fi'
10198 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10199 dlpath=$dir/\$dldll~
10200 $RM \$dlpath'
10201 shlibpath_overrides_runpath=yes
10202
10203 case $host_os in
10204 cygwin*)
10205 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10206 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10207 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10208 ;;
718a6fd8 10209 mingw* | cegcc*)
d7040cdb
SE
10210 # MinGW DLLs use traditional 'lib' prefix
10211 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10212 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10213 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10214 # It is most probably a Windows format PATH printed by
10215 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10216 # path with ; separators, and with drive letters. We can handle the
10217 # drive letters (cygwin fileutils understands them), so leave them,
10218 # especially as we might pass files found there to a mingw objdump,
10219 # which wouldn't understand a cygwinified path. Ahh.
10220 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10221 else
10222 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10223 fi
10224 ;;
10225 pw32*)
10226 # pw32 DLLs use 'pw' prefix rather than 'lib'
10227 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10228 ;;
10229 esac
10230 ;;
10231
10232 *)
10233 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10234 ;;
10235 esac
10236 dynamic_linker='Win32 ld.exe'
10237 # FIXME: first we should search . and the directory the executable is in
10238 shlibpath_var=PATH
10239 ;;
10240
10241darwin* | rhapsody*)
10242 dynamic_linker="$host_os dyld"
10243 version_type=darwin
10244 need_lib_prefix=no
10245 need_version=no
10246 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10247 soname_spec='${libname}${release}${major}$shared_ext'
10248 shlibpath_overrides_runpath=yes
10249 shlibpath_var=DYLD_LIBRARY_PATH
10250 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10251
10252 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10253 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10254 ;;
10255
10256dgux*)
10257 version_type=linux
10258 need_lib_prefix=no
10259 need_version=no
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10261 soname_spec='${libname}${release}${shared_ext}$major'
10262 shlibpath_var=LD_LIBRARY_PATH
10263 ;;
10264
10265freebsd1*)
10266 dynamic_linker=no
10267 ;;
10268
10269freebsd* | dragonfly*)
10270 # DragonFly does not have aout. When/if they implement a new
10271 # versioning mechanism, adjust this.
10272 if test -x /usr/bin/objformat; then
10273 objformat=`/usr/bin/objformat`
10274 else
10275 case $host_os in
10276 freebsd[123]*) objformat=aout ;;
10277 *) objformat=elf ;;
10278 esac
10279 fi
10280 version_type=freebsd-$objformat
10281 case $version_type in
10282 freebsd-elf*)
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10284 need_version=no
10285 need_lib_prefix=no
10286 ;;
10287 freebsd-*)
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10289 need_version=yes
10290 ;;
10291 esac
10292 shlibpath_var=LD_LIBRARY_PATH
10293 case $host_os in
10294 freebsd2*)
10295 shlibpath_overrides_runpath=yes
10296 ;;
10297 freebsd3.[01]* | freebsdelf3.[01]*)
10298 shlibpath_overrides_runpath=yes
10299 hardcode_into_libs=yes
10300 ;;
10301 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10302 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10303 shlibpath_overrides_runpath=no
10304 hardcode_into_libs=yes
10305 ;;
10306 *) # from 4.6 on, and DragonFly
10307 shlibpath_overrides_runpath=yes
10308 hardcode_into_libs=yes
10309 ;;
10310 esac
10311 ;;
10312
10313gnu*)
10314 version_type=linux
10315 need_lib_prefix=no
10316 need_version=no
10317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10318 soname_spec='${libname}${release}${shared_ext}$major'
10319 shlibpath_var=LD_LIBRARY_PATH
10320 hardcode_into_libs=yes
10321 ;;
10322
10323hpux9* | hpux10* | hpux11*)
10324 # Give a soname corresponding to the major version so that dld.sl refuses to
10325 # link against other versions.
10326 version_type=sunos
10327 need_lib_prefix=no
10328 need_version=no
10329 case $host_cpu in
10330 ia64*)
10331 shrext_cmds='.so'
10332 hardcode_into_libs=yes
10333 dynamic_linker="$host_os dld.so"
10334 shlibpath_var=LD_LIBRARY_PATH
10335 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337 soname_spec='${libname}${release}${shared_ext}$major'
10338 if test "X$HPUX_IA64_MODE" = X32; then
10339 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10340 else
10341 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10342 fi
10343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10344 ;;
10345 hppa*64*)
10346 shrext_cmds='.sl'
10347 hardcode_into_libs=yes
10348 dynamic_linker="$host_os dld.sl"
10349 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10352 soname_spec='${libname}${release}${shared_ext}$major'
10353 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10355 ;;
10356 *)
10357 shrext_cmds='.sl'
10358 dynamic_linker="$host_os dld.sl"
10359 shlibpath_var=SHLIB_PATH
10360 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10362 soname_spec='${libname}${release}${shared_ext}$major'
10363 ;;
10364 esac
10365 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10366 postinstall_cmds='chmod 555 $lib'
10367 ;;
10368
10369interix[3-9]*)
10370 version_type=linux
10371 need_lib_prefix=no
10372 need_version=no
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10374 soname_spec='${libname}${release}${shared_ext}$major'
10375 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10376 shlibpath_var=LD_LIBRARY_PATH
10377 shlibpath_overrides_runpath=no
10378 hardcode_into_libs=yes
10379 ;;
10380
10381irix5* | irix6* | nonstopux*)
10382 case $host_os in
10383 nonstopux*) version_type=nonstopux ;;
10384 *)
10385 if test "$lt_cv_prog_gnu_ld" = yes; then
10386 version_type=linux
10387 else
10388 version_type=irix
10389 fi ;;
10390 esac
10391 need_lib_prefix=no
10392 need_version=no
10393 soname_spec='${libname}${release}${shared_ext}$major'
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10395 case $host_os in
10396 irix5* | nonstopux*)
10397 libsuff= shlibsuff=
10398 ;;
10399 *)
10400 case $LD in # libtool.m4 will add one of these switches to LD
10401 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10402 libsuff= shlibsuff= libmagic=32-bit;;
10403 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10404 libsuff=32 shlibsuff=N32 libmagic=N32;;
10405 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10406 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10407 *) libsuff= shlibsuff= libmagic=never-match;;
10408 esac
10409 ;;
10410 esac
10411 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10412 shlibpath_overrides_runpath=no
10413 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10414 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10415 hardcode_into_libs=yes
10416 ;;
10417
10418# No shared lib support for Linux oldld, aout, or coff.
10419linux*oldld* | linux*aout* | linux*coff*)
10420 dynamic_linker=no
10421 ;;
10422
10423# This must be Linux ELF.
58e24671 10424linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
10425 version_type=linux
10426 need_lib_prefix=no
10427 need_version=no
10428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10429 soname_spec='${libname}${release}${shared_ext}$major'
10430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10431 shlibpath_var=LD_LIBRARY_PATH
10432 shlibpath_overrides_runpath=no
39144654 10433
d7040cdb 10434 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10435 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10436 $as_echo_n "(cached) " >&6
39144654
RW
10437else
10438 lt_cv_shlibpath_overrides_runpath=no
10439 save_LDFLAGS=$LDFLAGS
10440 save_libdir=$libdir
10441 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10442 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10444/* end confdefs.h. */
10445
10446int
10447main ()
10448{
10449
10450 ;
10451 return 0;
10452}
10453_ACEOF
81ecdfbb
RW
10454if ac_fn_c_try_link "$LINENO"; then :
10455 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10456 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10457fi
d7040cdb 10458fi
81ecdfbb
RW
10459rm -f core conftest.err conftest.$ac_objext \
10460 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10461 LDFLAGS=$save_LDFLAGS
10462 libdir=$save_libdir
10463
10464fi
10465
10466 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb
SE
10467
10468 # This implies no fast_install, which is unacceptable.
10469 # Some rework will be needed to allow for fast_install
10470 # before this can be enabled.
10471 hardcode_into_libs=yes
10472
10473 # Append ld.so.conf contents to the search path
10474 if test -f /etc/ld.so.conf; then
718a6fd8 10475 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;/^$/d' | tr '\n' ' '`
d7040cdb
SE
10476 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10477 fi
10478
10479 # We used to test for /lib/ld.so.1 and disable shared libraries on
10480 # powerpc, because MkLinux only supported shared libraries with the
10481 # GNU dynamic linker. Since this was broken with cross compilers,
10482 # most powerpc-linux boxes support dynamic linking these days and
10483 # people can always --disable-shared, the test was removed, and we
10484 # assume the GNU/Linux dynamic linker is in use.
10485 dynamic_linker='GNU/Linux ld.so'
10486 ;;
10487
10488netbsd*)
10489 version_type=sunos
10490 need_lib_prefix=no
10491 need_version=no
10492 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10495 dynamic_linker='NetBSD (a.out) ld.so'
10496 else
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10498 soname_spec='${libname}${release}${shared_ext}$major'
10499 dynamic_linker='NetBSD ld.elf_so'
10500 fi
10501 shlibpath_var=LD_LIBRARY_PATH
10502 shlibpath_overrides_runpath=yes
10503 hardcode_into_libs=yes
10504 ;;
10505
10506newsos6)
10507 version_type=linux
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10509 shlibpath_var=LD_LIBRARY_PATH
10510 shlibpath_overrides_runpath=yes
10511 ;;
10512
10513*nto* | *qnx*)
10514 version_type=qnx
10515 need_lib_prefix=no
10516 need_version=no
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10518 soname_spec='${libname}${release}${shared_ext}$major'
10519 shlibpath_var=LD_LIBRARY_PATH
10520 shlibpath_overrides_runpath=no
10521 hardcode_into_libs=yes
10522 dynamic_linker='ldqnx.so'
10523 ;;
10524
10525openbsd*)
10526 version_type=sunos
10527 sys_lib_dlsearch_path_spec="/usr/lib"
10528 need_lib_prefix=no
10529 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10530 case $host_os in
10531 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10532 *) need_version=no ;;
10533 esac
10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10535 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10536 shlibpath_var=LD_LIBRARY_PATH
10537 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10538 case $host_os in
10539 openbsd2.[89] | openbsd2.[89].*)
10540 shlibpath_overrides_runpath=no
10541 ;;
10542 *)
10543 shlibpath_overrides_runpath=yes
10544 ;;
10545 esac
10546 else
10547 shlibpath_overrides_runpath=yes
10548 fi
10549 ;;
10550
10551os2*)
10552 libname_spec='$name'
10553 shrext_cmds=".dll"
10554 need_lib_prefix=no
10555 library_names_spec='$libname${shared_ext} $libname.a'
10556 dynamic_linker='OS/2 ld.exe'
10557 shlibpath_var=LIBPATH
10558 ;;
10559
10560osf3* | osf4* | osf5*)
10561 version_type=osf
10562 need_lib_prefix=no
10563 need_version=no
10564 soname_spec='${libname}${release}${shared_ext}$major'
10565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10566 shlibpath_var=LD_LIBRARY_PATH
10567 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10568 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10569 ;;
10570
10571rdos*)
10572 dynamic_linker=no
10573 ;;
10574
10575solaris*)
10576 version_type=linux
10577 need_lib_prefix=no
10578 need_version=no
10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10580 soname_spec='${libname}${release}${shared_ext}$major'
10581 shlibpath_var=LD_LIBRARY_PATH
10582 shlibpath_overrides_runpath=yes
10583 hardcode_into_libs=yes
10584 # ldd complains unless libraries are executable
10585 postinstall_cmds='chmod +x $lib'
10586 ;;
10587
10588sunos4*)
10589 version_type=sunos
10590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10591 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10592 shlibpath_var=LD_LIBRARY_PATH
10593 shlibpath_overrides_runpath=yes
10594 if test "$with_gnu_ld" = yes; then
10595 need_lib_prefix=no
10596 fi
10597 need_version=yes
10598 ;;
10599
10600sysv4 | sysv4.3*)
10601 version_type=linux
10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10603 soname_spec='${libname}${release}${shared_ext}$major'
10604 shlibpath_var=LD_LIBRARY_PATH
10605 case $host_vendor in
10606 sni)
10607 shlibpath_overrides_runpath=no
10608 need_lib_prefix=no
10609 runpath_var=LD_RUN_PATH
10610 ;;
10611 siemens)
10612 need_lib_prefix=no
10613 ;;
10614 motorola)
10615 need_lib_prefix=no
10616 need_version=no
10617 shlibpath_overrides_runpath=no
10618 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10619 ;;
10620 esac
10621 ;;
10622
10623sysv4*MP*)
10624 if test -d /usr/nec ;then
10625 version_type=linux
10626 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10627 soname_spec='$libname${shared_ext}.$major'
10628 shlibpath_var=LD_LIBRARY_PATH
10629 fi
10630 ;;
10631
10632sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10633 version_type=freebsd-elf
10634 need_lib_prefix=no
10635 need_version=no
10636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10637 soname_spec='${libname}${release}${shared_ext}$major'
10638 shlibpath_var=LD_LIBRARY_PATH
10639 shlibpath_overrides_runpath=yes
10640 hardcode_into_libs=yes
10641 if test "$with_gnu_ld" = yes; then
10642 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10643 else
10644 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10645 case $host_os in
10646 sco3.2v5*)
10647 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10648 ;;
10649 esac
10650 fi
10651 sys_lib_dlsearch_path_spec='/usr/lib'
10652 ;;
10653
10654tpf*)
10655 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10656 version_type=linux
10657 need_lib_prefix=no
10658 need_version=no
718a6fd8 10659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d7040cdb
SE
10660 shlibpath_var=LD_LIBRARY_PATH
10661 shlibpath_overrides_runpath=no
10662 hardcode_into_libs=yes
10663 ;;
10664
10665uts4*)
10666 version_type=linux
10667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10668 soname_spec='${libname}${release}${shared_ext}$major'
10669 shlibpath_var=LD_LIBRARY_PATH
10670 ;;
10671
10672*)
10673 dynamic_linker=no
10674 ;;
10675esac
81ecdfbb
RW
10676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10677$as_echo "$dynamic_linker" >&6; }
d7040cdb
SE
10678test "$dynamic_linker" = no && can_build_shared=no
10679
10680variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10681if test "$GCC" = yes; then
10682 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10683fi
10684
718a6fd8
SE
10685if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10686 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10687fi
10688if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10689 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10690fi
10691
d7040cdb
SE
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
81ecdfbb
RW
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10779$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
d7040cdb
SE
10780hardcode_action=
10781if test -n "$hardcode_libdir_flag_spec" ||
10782 test -n "$runpath_var" ||
10783 test "X$hardcode_automatic" = "Xyes" ; then
10784
10785 # We can hardcode non-existent directories.
10786 if test "$hardcode_direct" != no &&
10787 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10788 # have to relink, otherwise we might link with an installed library
10789 # when we should be linking with a yet-to-be-installed one
10790 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10791 test "$hardcode_minus_L" != no; then
10792 # Linking always hardcodes the temporary library directory.
10793 hardcode_action=relink
10794 else
10795 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10796 hardcode_action=immediate
10797 fi
10798else
10799 # We cannot hardcode anything, or else we can only hardcode existing
10800 # directories.
10801 hardcode_action=unsupported
10802fi
81ecdfbb
RW
10803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10804$as_echo "$hardcode_action" >&6; }
d7040cdb
SE
10805
10806if test "$hardcode_action" = relink ||
10807 test "$inherit_rpath" = yes; then
10808 # Fast installation is not supported
10809 enable_fast_install=no
10810elif test "$shlibpath_overrides_runpath" = yes ||
10811 test "$enable_shared" = no; then
10812 # Fast installation is not necessary
10813 enable_fast_install=needless
10814fi
10815
10816
10817
10818
10819
10820
10821 if test "x$enable_dlopen" != xyes; then
10822 enable_dlopen=unknown
10823 enable_dlopen_self=unknown
10824 enable_dlopen_self_static=unknown
10825else
10826 lt_cv_dlopen=no
10827 lt_cv_dlopen_libs=
10828
10829 case $host_os in
10830 beos*)
10831 lt_cv_dlopen="load_add_on"
10832 lt_cv_dlopen_libs=
10833 lt_cv_dlopen_self=yes
10834 ;;
10835
718a6fd8 10836 mingw* | pw32* | cegcc*)
d7040cdb
SE
10837 lt_cv_dlopen="LoadLibrary"
10838 lt_cv_dlopen_libs=
10839 ;;
10840
10841 cygwin*)
10842 lt_cv_dlopen="dlopen"
10843 lt_cv_dlopen_libs=
10844 ;;
10845
10846 darwin*)
10847 # if libdl is installed we need to link against it
81ecdfbb
RW
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10849$as_echo_n "checking for dlopen in -ldl... " >&6; }
10850if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10851 $as_echo_n "(cached) " >&6
d7040cdb
SE
10852else
10853 ac_check_lib_save_LIBS=$LIBS
10854LIBS="-ldl $LIBS"
81ecdfbb 10855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10856/* end confdefs.h. */
10857
81ecdfbb
RW
10858/* Override any GCC internal prototype to avoid an error.
10859 Use char because int might match the return type of a GCC
10860 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10861#ifdef __cplusplus
10862extern "C"
10863#endif
d7040cdb
SE
10864char dlopen ();
10865int
10866main ()
10867{
81ecdfbb 10868return dlopen ();
d7040cdb
SE
10869 ;
10870 return 0;
10871}
10872_ACEOF
81ecdfbb 10873if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
10874 ac_cv_lib_dl_dlopen=yes
10875else
81ecdfbb 10876 ac_cv_lib_dl_dlopen=no
d7040cdb 10877fi
81ecdfbb
RW
10878rm -f core conftest.err conftest.$ac_objext \
10879 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10880LIBS=$ac_check_lib_save_LIBS
10881fi
81ecdfbb
RW
10882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10883$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10884if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
d7040cdb
SE
10885 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10886else
10887
10888 lt_cv_dlopen="dyld"
10889 lt_cv_dlopen_libs=
10890 lt_cv_dlopen_self=yes
10891
10892fi
10893
10894 ;;
10895
10896 *)
81ecdfbb
RW
10897 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10898if test "x$ac_cv_func_shl_load" = x""yes; then :
d7040cdb
SE
10899 lt_cv_dlopen="shl_load"
10900else
81ecdfbb
RW
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10902$as_echo_n "checking for shl_load in -ldld... " >&6; }
10903if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10904 $as_echo_n "(cached) " >&6
d7040cdb
SE
10905else
10906 ac_check_lib_save_LIBS=$LIBS
10907LIBS="-ldld $LIBS"
81ecdfbb 10908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10909/* end confdefs.h. */
10910
81ecdfbb
RW
10911/* Override any GCC internal prototype to avoid an error.
10912 Use char because int might match the return type of a GCC
10913 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10914#ifdef __cplusplus
10915extern "C"
10916#endif
d7040cdb
SE
10917char shl_load ();
10918int
10919main ()
10920{
81ecdfbb 10921return shl_load ();
d7040cdb
SE
10922 ;
10923 return 0;
10924}
10925_ACEOF
81ecdfbb 10926if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
10927 ac_cv_lib_dld_shl_load=yes
10928else
81ecdfbb 10929 ac_cv_lib_dld_shl_load=no
d7040cdb 10930fi
81ecdfbb
RW
10931rm -f core conftest.err conftest.$ac_objext \
10932 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10933LIBS=$ac_check_lib_save_LIBS
10934fi
81ecdfbb
RW
10935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10936$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10937if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
718a6fd8 10938 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
d7040cdb 10939else
81ecdfbb
RW
10940 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10941if test "x$ac_cv_func_dlopen" = x""yes; then :
10942 lt_cv_dlopen="dlopen"
d7040cdb 10943else
81ecdfbb
RW
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10945$as_echo_n "checking for dlopen in -ldl... " >&6; }
10946if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10947 $as_echo_n "(cached) " >&6
10948else
10949 ac_check_lib_save_LIBS=$LIBS
10950LIBS="-ldl $LIBS"
10951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10952/* end confdefs.h. */
d7040cdb 10953
81ecdfbb
RW
10954/* Override any GCC internal prototype to avoid an error.
10955 Use char because int might match the return type of a GCC
10956 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10957#ifdef __cplusplus
10958extern "C"
d7040cdb 10959#endif
d7040cdb 10960char dlopen ();
d7040cdb
SE
10961int
10962main ()
10963{
81ecdfbb 10964return dlopen ();
d7040cdb
SE
10965 ;
10966 return 0;
10967}
10968_ACEOF
81ecdfbb
RW
10969if ac_fn_c_try_link "$LINENO"; then :
10970 ac_cv_lib_dl_dlopen=yes
d7040cdb 10971else
81ecdfbb 10972 ac_cv_lib_dl_dlopen=no
d7040cdb 10973fi
81ecdfbb
RW
10974rm -f core conftest.err conftest.$ac_objext \
10975 conftest$ac_exeext conftest.$ac_ext
10976LIBS=$ac_check_lib_save_LIBS
d7040cdb 10977fi
81ecdfbb
RW
10978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10979$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10980if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10981 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10982else
81ecdfbb
RW
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10984$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10985if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
d7040cdb
SE
10987else
10988 ac_check_lib_save_LIBS=$LIBS
81ecdfbb
RW
10989LIBS="-lsvld $LIBS"
10990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10991/* end confdefs.h. */
10992
81ecdfbb
RW
10993/* Override any GCC internal prototype to avoid an error.
10994 Use char because int might match the return type of a GCC
10995 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10996#ifdef __cplusplus
10997extern "C"
10998#endif
d7040cdb
SE
10999char dlopen ();
11000int
11001main ()
11002{
81ecdfbb 11003return dlopen ();
d7040cdb
SE
11004 ;
11005 return 0;
11006}
11007_ACEOF
81ecdfbb
RW
11008if ac_fn_c_try_link "$LINENO"; then :
11009 ac_cv_lib_svld_dlopen=yes
d7040cdb 11010else
81ecdfbb 11011 ac_cv_lib_svld_dlopen=no
d7040cdb 11012fi
81ecdfbb
RW
11013rm -f core conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11015LIBS=$ac_check_lib_save_LIBS
11016fi
81ecdfbb
RW
11017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11018$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11019if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11020 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
d7040cdb 11021else
81ecdfbb
RW
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11023$as_echo_n "checking for dld_link in -ldld... " >&6; }
11024if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11025 $as_echo_n "(cached) " >&6
d7040cdb
SE
11026else
11027 ac_check_lib_save_LIBS=$LIBS
81ecdfbb
RW
11028LIBS="-ldld $LIBS"
11029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11030/* end confdefs.h. */
11031
81ecdfbb
RW
11032/* Override any GCC internal prototype to avoid an error.
11033 Use char because int might match the return type of a GCC
11034 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11035#ifdef __cplusplus
11036extern "C"
11037#endif
81ecdfbb 11038char dld_link ();
d7040cdb
SE
11039int
11040main ()
11041{
81ecdfbb 11042return dld_link ();
d7040cdb
SE
11043 ;
11044 return 0;
11045}
11046_ACEOF
81ecdfbb 11047if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11048 ac_cv_lib_dld_dld_link=yes
11049else
81ecdfbb 11050 ac_cv_lib_dld_dld_link=no
d7040cdb 11051fi
81ecdfbb
RW
11052rm -f core conftest.err conftest.$ac_objext \
11053 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11054LIBS=$ac_check_lib_save_LIBS
11055fi
81ecdfbb
RW
11056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11057$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11058if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
718a6fd8 11059 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11060fi
11061
11062
11063fi
11064
11065
11066fi
11067
11068
11069fi
11070
11071
11072fi
11073
11074
11075fi
11076
11077 ;;
11078 esac
11079
11080 if test "x$lt_cv_dlopen" != xno; then
11081 enable_dlopen=yes
11082 else
11083 enable_dlopen=no
11084 fi
11085
11086 case $lt_cv_dlopen in
11087 dlopen)
11088 save_CPPFLAGS="$CPPFLAGS"
11089 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11090
11091 save_LDFLAGS="$LDFLAGS"
11092 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11093
11094 save_LIBS="$LIBS"
11095 LIBS="$lt_cv_dlopen_libs $LIBS"
11096
81ecdfbb
RW
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11098$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11099if test "${lt_cv_dlopen_self+set}" = set; then :
11100 $as_echo_n "(cached) " >&6
d7040cdb
SE
11101else
11102 if test "$cross_compiling" = yes; then :
11103 lt_cv_dlopen_self=cross
11104else
11105 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11106 lt_status=$lt_dlunknown
11107 cat > conftest.$ac_ext <<_LT_EOF
3388710e 11108#line 11108 "configure"
d7040cdb
SE
11109#include "confdefs.h"
11110
11111#if HAVE_DLFCN_H
11112#include <dlfcn.h>
11113#endif
11114
11115#include <stdio.h>
11116
11117#ifdef RTLD_GLOBAL
11118# define LT_DLGLOBAL RTLD_GLOBAL
11119#else
11120# ifdef DL_GLOBAL
11121# define LT_DLGLOBAL DL_GLOBAL
11122# else
11123# define LT_DLGLOBAL 0
11124# endif
11125#endif
11126
11127/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11128 find out it does not work in some platform. */
11129#ifndef LT_DLLAZY_OR_NOW
11130# ifdef RTLD_LAZY
11131# define LT_DLLAZY_OR_NOW RTLD_LAZY
11132# else
11133# ifdef DL_LAZY
11134# define LT_DLLAZY_OR_NOW DL_LAZY
11135# else
11136# ifdef RTLD_NOW
11137# define LT_DLLAZY_OR_NOW RTLD_NOW
11138# else
11139# ifdef DL_NOW
11140# define LT_DLLAZY_OR_NOW DL_NOW
11141# else
11142# define LT_DLLAZY_OR_NOW 0
11143# endif
11144# endif
11145# endif
11146# endif
11147#endif
11148
d7040cdb
SE
11149void fnord() { int i=42;}
11150int main ()
11151{
11152 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11153 int status = $lt_dlunknown;
11154
11155 if (self)
11156 {
11157 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11158 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11159 /* dlclose (self); */
11160 }
11161 else
11162 puts (dlerror ());
11163
718a6fd8 11164 return status;
d7040cdb
SE
11165}
11166_LT_EOF
81ecdfbb 11167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11168 (eval $ac_link) 2>&5
11169 ac_status=$?
81ecdfbb
RW
11170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11171 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11172 (./conftest; exit; ) >&5 2>/dev/null
11173 lt_status=$?
11174 case x$lt_status in
11175 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11176 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11177 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11178 esac
11179 else :
11180 # compilation failed
11181 lt_cv_dlopen_self=no
11182 fi
11183fi
11184rm -fr conftest*
11185
11186
11187fi
81ecdfbb
RW
11188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11189$as_echo "$lt_cv_dlopen_self" >&6; }
d7040cdb
SE
11190
11191 if test "x$lt_cv_dlopen_self" = xyes; then
11192 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11194$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11195if test "${lt_cv_dlopen_self_static+set}" = set; then :
11196 $as_echo_n "(cached) " >&6
d7040cdb
SE
11197else
11198 if test "$cross_compiling" = yes; then :
11199 lt_cv_dlopen_self_static=cross
11200else
11201 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11202 lt_status=$lt_dlunknown
11203 cat > conftest.$ac_ext <<_LT_EOF
3388710e 11204#line 11204 "configure"
d7040cdb
SE
11205#include "confdefs.h"
11206
11207#if HAVE_DLFCN_H
11208#include <dlfcn.h>
11209#endif
11210
11211#include <stdio.h>
11212
11213#ifdef RTLD_GLOBAL
11214# define LT_DLGLOBAL RTLD_GLOBAL
11215#else
11216# ifdef DL_GLOBAL
11217# define LT_DLGLOBAL DL_GLOBAL
11218# else
11219# define LT_DLGLOBAL 0
11220# endif
11221#endif
11222
11223/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11224 find out it does not work in some platform. */
11225#ifndef LT_DLLAZY_OR_NOW
11226# ifdef RTLD_LAZY
11227# define LT_DLLAZY_OR_NOW RTLD_LAZY
11228# else
11229# ifdef DL_LAZY
11230# define LT_DLLAZY_OR_NOW DL_LAZY
11231# else
11232# ifdef RTLD_NOW
11233# define LT_DLLAZY_OR_NOW RTLD_NOW
11234# else
11235# ifdef DL_NOW
11236# define LT_DLLAZY_OR_NOW DL_NOW
11237# else
11238# define LT_DLLAZY_OR_NOW 0
11239# endif
11240# endif
11241# endif
11242# endif
11243#endif
11244
d7040cdb
SE
11245void fnord() { int i=42;}
11246int main ()
11247{
11248 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11249 int status = $lt_dlunknown;
11250
11251 if (self)
11252 {
11253 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11254 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11255 /* dlclose (self); */
11256 }
11257 else
11258 puts (dlerror ());
11259
718a6fd8 11260 return status;
d7040cdb
SE
11261}
11262_LT_EOF
81ecdfbb 11263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11264 (eval $ac_link) 2>&5
11265 ac_status=$?
81ecdfbb
RW
11266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11267 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11268 (./conftest; exit; ) >&5 2>/dev/null
11269 lt_status=$?
11270 case x$lt_status in
11271 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11272 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11273 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11274 esac
11275 else :
11276 # compilation failed
11277 lt_cv_dlopen_self_static=no
11278 fi
11279fi
11280rm -fr conftest*
11281
11282
11283fi
81ecdfbb
RW
11284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11285$as_echo "$lt_cv_dlopen_self_static" >&6; }
d7040cdb
SE
11286 fi
11287
11288 CPPFLAGS="$save_CPPFLAGS"
11289 LDFLAGS="$save_LDFLAGS"
11290 LIBS="$save_LIBS"
11291 ;;
11292 esac
11293
11294 case $lt_cv_dlopen_self in
11295 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11296 *) enable_dlopen_self=unknown ;;
11297 esac
11298
11299 case $lt_cv_dlopen_self_static in
11300 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11301 *) enable_dlopen_self_static=unknown ;;
11302 esac
11303fi
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321striplib=
11322old_striplib=
81ecdfbb
RW
11323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11324$as_echo_n "checking whether stripping libraries is possible... " >&6; }
d7040cdb
SE
11325if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11326 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11327 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11329$as_echo "yes" >&6; }
d7040cdb
SE
11330else
11331# FIXME - insert some real tests, host_os isn't really good enough
11332 case $host_os in
11333 darwin*)
11334 if test -n "$STRIP" ; then
11335 striplib="$STRIP -x"
11336 old_striplib="$STRIP -S"
81ecdfbb
RW
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11338$as_echo "yes" >&6; }
d7040cdb 11339 else
81ecdfbb
RW
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341$as_echo "no" >&6; }
d7040cdb
SE
11342 fi
11343 ;;
11344 *)
81ecdfbb
RW
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346$as_echo "no" >&6; }
d7040cdb
SE
11347 ;;
11348 esac
11349fi
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362 # Report which library types will actually be built
81ecdfbb
RW
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11364$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11366$as_echo "$can_build_shared" >&6; }
d7040cdb 11367
81ecdfbb
RW
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11369$as_echo_n "checking whether to build shared libraries... " >&6; }
d7040cdb
SE
11370 test "$can_build_shared" = "no" && enable_shared=no
11371
11372 # On AIX, shared libraries and static libraries use the same namespace, and
11373 # are all built from PIC.
11374 case $host_os in
11375 aix3*)
11376 test "$enable_shared" = yes && enable_static=no
11377 if test -n "$RANLIB"; then
11378 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11379 postinstall_cmds='$RANLIB $lib'
11380 fi
11381 ;;
11382
50e7d84b 11383 aix[4-9]*)
d7040cdb
SE
11384 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11385 test "$enable_shared" = yes && enable_static=no
11386 fi
11387 ;;
11388 esac
81ecdfbb
RW
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11390$as_echo "$enable_shared" >&6; }
d7040cdb 11391
81ecdfbb
RW
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11393$as_echo_n "checking whether to build static libraries... " >&6; }
d7040cdb
SE
11394 # Make sure either enable_shared or enable_static is yes.
11395 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11397$as_echo "$enable_static" >&6; }
d7040cdb
SE
11398
11399
11400
11401
11402fi
11403ac_ext=c
11404ac_cpp='$CPP $CPPFLAGS'
11405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11407ac_compiler_gnu=$ac_cv_c_compiler_gnu
11408
11409CC="$lt_save_CC"
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
81ecdfbb 11423 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
11424
11425
11426
11427
11428# Only expand once:
11429
11430
11431
81ecdfbb
RW
11432# Check whether --enable-targets was given.
11433if test "${enable_targets+set}" = set; then :
11434 enableval=$enable_targets; case "${enableval}" in
11435 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
d7040cdb
SE
11436 ;;
11437 no) enable_targets= ;;
11438 *) enable_targets=$enableval ;;
11439esac
81ecdfbb
RW
11440fi
11441
d7040cdb 11442
91d6fa6a 11443GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow"
d7040cdb 11444
81ecdfbb
RW
11445# Check whether --enable-werror was given.
11446if test "${enable_werror+set}" = set; then :
11447 enableval=$enable_werror; case "${enableval}" in
d7040cdb
SE
11448 yes | y) ERROR_ON_WARNING="yes" ;;
11449 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 11450 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
d7040cdb 11451 esac
81ecdfbb
RW
11452fi
11453
d7040cdb 11454
bb8541b9
L
11455# Enable -Wno-format by default when using gcc on mingw
11456case "${host}" in
11457 *-*-mingw32*)
11458 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11459 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11460 fi
11461 ;;
11462 *) ;;
11463esac
11464
d7040cdb
SE
11465# Enable -Werror by default when using gcc
11466if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11467 ERROR_ON_WARNING=yes
11468fi
11469
11470NO_WERROR=
11471if test "${ERROR_ON_WARNING}" = yes ; then
11472 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11473 NO_WERROR="-Wno-error"
11474fi
11475
11476if test "${GCC}" = yes ; then
11477 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11478fi
11479
81ecdfbb
RW
11480# Check whether --enable-build-warnings was given.
11481if test "${enable_build_warnings+set}" = set; then :
11482 enableval=$enable_build_warnings; case "${enableval}" in
d7040cdb
SE
11483 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11484 no) if test "${GCC}" = yes ; then
11485 WARN_CFLAGS="-w"
11486 fi;;
11487 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11488 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11489 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11490 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11491 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11492esac
81ecdfbb
RW
11493fi
11494
d7040cdb
SE
11495
11496if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11497 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11498fi
11499
11500
11501
11502
11503
81ecdfbb 11504ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb
SE
11505
11506
11507if test -z "$target" ; then
81ecdfbb 11508 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
d7040cdb
SE
11509fi
11510if test -z "$host" ; then
81ecdfbb 11511 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
d7040cdb
SE
11512fi
11513
11514for ac_prog in 'bison -y' byacc
11515do
11516 # Extract the first word of "$ac_prog", so it can be a program name with args.
11517set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
11518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11519$as_echo_n "checking for $ac_word... " >&6; }
11520if test "${ac_cv_prog_YACC+set}" = set; then :
11521 $as_echo_n "(cached) " >&6
d7040cdb
SE
11522else
11523 if test -n "$YACC"; then
11524 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11525else
11526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11527for as_dir in $PATH
11528do
11529 IFS=$as_save_IFS
11530 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11531 for ac_exec_ext in '' $ac_executable_extensions; do
11532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 11533 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 11534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
11535 break 2
11536 fi
11537done
81ecdfbb
RW
11538 done
11539IFS=$as_save_IFS
d7040cdb
SE
11540
11541fi
11542fi
11543YACC=$ac_cv_prog_YACC
11544if test -n "$YACC"; then
81ecdfbb
RW
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11546$as_echo "$YACC" >&6; }
d7040cdb 11547else
81ecdfbb
RW
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11549$as_echo "no" >&6; }
d7040cdb
SE
11550fi
11551
81ecdfbb 11552
d7040cdb
SE
11553 test -n "$YACC" && break
11554done
11555test -n "$YACC" || YACC="yacc"
11556
11557for ac_prog in flex lex
11558do
11559 # Extract the first word of "$ac_prog", so it can be a program name with args.
11560set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
11561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11562$as_echo_n "checking for $ac_word... " >&6; }
11563if test "${ac_cv_prog_LEX+set}" = set; then :
11564 $as_echo_n "(cached) " >&6
d7040cdb
SE
11565else
11566 if test -n "$LEX"; then
11567 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11568else
11569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11570for as_dir in $PATH
11571do
11572 IFS=$as_save_IFS
11573 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11574 for ac_exec_ext in '' $ac_executable_extensions; do
11575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 11576 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 11577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
11578 break 2
11579 fi
11580done
81ecdfbb
RW
11581 done
11582IFS=$as_save_IFS
d7040cdb
SE
11583
11584fi
11585fi
11586LEX=$ac_cv_prog_LEX
11587if test -n "$LEX"; then
81ecdfbb
RW
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
11589$as_echo "$LEX" >&6; }
d7040cdb 11590else
81ecdfbb
RW
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592$as_echo "no" >&6; }
d7040cdb
SE
11593fi
11594
81ecdfbb 11595
d7040cdb
SE
11596 test -n "$LEX" && break
11597done
11598test -n "$LEX" || LEX=":"
11599
81ecdfbb
RW
11600if test "x$LEX" != "x:"; then
11601 cat >conftest.l <<_ACEOF
11602%%
11603a { ECHO; }
11604b { REJECT; }
11605c { yymore (); }
11606d { yyless (1); }
11607e { yyless (input () != 0); }
11608f { unput (yytext[0]); }
11609. { BEGIN INITIAL; }
11610%%
11611#ifdef YYTEXT_POINTER
11612extern char *yytext;
d7040cdb 11613#endif
d7040cdb 11614int
81ecdfbb 11615main (void)
d7040cdb 11616{
81ecdfbb 11617 return ! yylex () + ! yywrap ();
d7040cdb
SE
11618}
11619_ACEOF
81ecdfbb
RW
11620{ { ac_try="$LEX conftest.l"
11621case "(($ac_try" in
11622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11623 *) ac_try_echo=$ac_try;;
11624esac
11625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11626$as_echo "$ac_try_echo"; } >&5
11627 (eval "$LEX conftest.l") 2>&5
d7040cdb 11628 ac_status=$?
81ecdfbb
RW
11629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11630 test $ac_status = 0; }
11631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
11632$as_echo_n "checking lex output file root... " >&6; }
11633if test "${ac_cv_prog_lex_root+set}" = set; then :
11634 $as_echo_n "(cached) " >&6
d7040cdb 11635else
d7040cdb 11636
81ecdfbb
RW
11637if test -f lex.yy.c; then
11638 ac_cv_prog_lex_root=lex.yy
11639elif test -f lexyy.c; then
11640 ac_cv_prog_lex_root=lexyy
11641else
11642 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
d7040cdb 11643fi
d7040cdb 11644fi
81ecdfbb
RW
11645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
11646$as_echo "$ac_cv_prog_lex_root" >&6; }
11647LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
d7040cdb 11648
81ecdfbb
RW
11649if test -z "${LEXLIB+set}"; then
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
11651$as_echo_n "checking lex library... " >&6; }
11652if test "${ac_cv_lib_lex+set}" = set; then :
11653 $as_echo_n "(cached) " >&6
d7040cdb 11654else
d7040cdb 11655
81ecdfbb
RW
11656 ac_save_LIBS=$LIBS
11657 ac_cv_lib_lex='none needed'
11658 for ac_lib in '' -lfl -ll; do
11659 LIBS="$ac_lib $ac_save_LIBS"
11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661/* end confdefs.h. */
11662`cat $LEX_OUTPUT_ROOT.c`
11663_ACEOF
11664if ac_fn_c_try_link "$LINENO"; then :
11665 ac_cv_lib_lex=$ac_lib
d7040cdb 11666fi
81ecdfbb
RW
11667rm -f core conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext
11669 test "$ac_cv_lib_lex" != 'none needed' && break
11670 done
11671 LIBS=$ac_save_LIBS
d7040cdb
SE
11672
11673fi
81ecdfbb
RW
11674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
11675$as_echo "$ac_cv_lib_lex" >&6; }
11676 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb
SE
11677fi
11678
d7040cdb 11679
81ecdfbb
RW
11680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
11681$as_echo_n "checking whether yytext is a pointer... " >&6; }
11682if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
11683 $as_echo_n "(cached) " >&6
d7040cdb
SE
11684else
11685 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 11686# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
11687# not all implementations provide the %pointer and %array declarations.
11688ac_cv_prog_lex_yytext_pointer=no
d7040cdb 11689ac_save_LIBS=$LIBS
81ecdfbb
RW
11690LIBS="$LEXLIB $ac_save_LIBS"
11691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11692/* end confdefs.h. */
11693#define YYTEXT_POINTER 1
d7040cdb
SE
11694`cat $LEX_OUTPUT_ROOT.c`
11695_ACEOF
81ecdfbb 11696if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 11697 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 11698fi
81ecdfbb
RW
11699rm -f core conftest.err conftest.$ac_objext \
11700 conftest$ac_exeext conftest.$ac_ext
d7040cdb 11701LIBS=$ac_save_LIBS
d7040cdb
SE
11702
11703fi
81ecdfbb
RW
11704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
11705$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
11706if test $ac_cv_prog_lex_yytext_pointer = yes; then
11707
81ecdfbb 11708$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
11709
11710fi
81ecdfbb 11711rm -f conftest.l $LEX_OUTPUT_ROOT.c
d7040cdb
SE
11712
11713fi
11714if test "$LEX" = :; then
11715 LEX=${am_missing_run}flex
11716fi
11717
ac5d747e 11718ALL_LINGUAS="da es fi fr id ja ro ru rw sk sv tr uk vi zh_CN zh_TW"
d7040cdb
SE
11719# If we haven't got the data from the intl directory,
11720# assume NLS is disabled.
11721USE_NLS=no
11722LIBINTL=
11723LIBINTL_DEP=
11724INCINTL=
11725XGETTEXT=
11726GMSGFMT=
11727POSUB=
11728
11729if test -f ../intl/config.intl; then
11730 . ../intl/config.intl
11731fi
81ecdfbb
RW
11732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11733$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 11734if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736$as_echo "no" >&6; }
d7040cdb 11737else
81ecdfbb
RW
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11739$as_echo "yes" >&6; }
d7040cdb 11740
81ecdfbb 11741$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
11742
11743
81ecdfbb
RW
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11745$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
11746 # Look for .po and .gmo files in the source directory.
11747 CATALOGS=
11748 XLINGUAS=
11749 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11750 # If there aren't any .gmo files the shell will give us the
11751 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11752 # weeded out.
11753 case "$cat" in *\**)
11754 continue;;
11755 esac
11756 # The quadruple backslash is collapsed to a double backslash
11757 # by the backticks, then collapsed again by the double quotes,
11758 # leaving us with one backslash in the sed expression (right
11759 # before the dot that mustn't act as a wildcard).
11760 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11761 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11762 # The user is allowed to set LINGUAS to a list of languages to
11763 # install catalogs for. If it's empty that means "all of them."
11764 if test "x$LINGUAS" = x; then
11765 CATALOGS="$CATALOGS $cat"
11766 XLINGUAS="$XLINGUAS $lang"
11767 else
11768 case "$LINGUAS" in *$lang*)
11769 CATALOGS="$CATALOGS $cat"
11770 XLINGUAS="$XLINGUAS $lang"
11771 ;;
11772 esac
11773 fi
11774 done
11775 LINGUAS="$XLINGUAS"
81ecdfbb
RW
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11777$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
11778
11779
11780 DATADIRNAME=share
11781
11782 INSTOBJEXT=.mo
11783
11784 GENCAT=gencat
11785
11786 CATOBJEXT=.gmo
11787
11788fi
11789
11790 MKINSTALLDIRS=
11791 if test -n "$ac_aux_dir"; then
11792 case "$ac_aux_dir" in
11793 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11794 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11795 esac
11796 fi
11797 if test -z "$MKINSTALLDIRS"; then
11798 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11799 fi
11800
11801
11802
81ecdfbb
RW
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11804$as_echo_n "checking whether NLS is requested... " >&6; }
11805 # Check whether --enable-nls was given.
11806if test "${enable_nls+set}" = set; then :
11807 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
11808else
11809 USE_NLS=yes
81ecdfbb
RW
11810fi
11811
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11813$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
11814
11815
11816
11817
11818
11819
11820# Prepare PATH_SEPARATOR.
11821# The user is always right.
11822if test "${PATH_SEPARATOR+set}" != set; then
11823 echo "#! /bin/sh" >conf$$.sh
11824 echo "exit 0" >>conf$$.sh
11825 chmod +x conf$$.sh
11826 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11827 PATH_SEPARATOR=';'
11828 else
11829 PATH_SEPARATOR=:
11830 fi
11831 rm -f conf$$.sh
11832fi
11833
11834# Find out how to test for executable files. Don't use a zero-byte file,
11835# as systems may use methods other than mode bits to determine executability.
11836cat >conf$$.file <<_ASEOF
11837#! /bin/sh
11838exit 0
11839_ASEOF
11840chmod +x conf$$.file
11841if test -x conf$$.file >/dev/null 2>&1; then
11842 ac_executable_p="test -x"
11843else
11844 ac_executable_p="test -f"
11845fi
11846rm -f conf$$.file
11847
11848# Extract the first word of "msgfmt", so it can be a program name with args.
11849set dummy msgfmt; ac_word=$2
81ecdfbb
RW
11850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851$as_echo_n "checking for $ac_word... " >&6; }
11852if test "${ac_cv_path_MSGFMT+set}" = set; then :
11853 $as_echo_n "(cached) " >&6
d7040cdb
SE
11854else
11855 case "$MSGFMT" in
11856 [\\/]* | ?:[\\/]*)
11857 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11858 ;;
11859 *)
11860 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11861 for ac_dir in $PATH; do
11862 IFS="$ac_save_IFS"
11863 test -z "$ac_dir" && ac_dir=.
11864 for ac_exec_ext in '' $ac_executable_extensions; do
11865 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11866 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11867 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11868 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11869 break 2
11870 fi
11871 fi
11872 done
11873 done
11874 IFS="$ac_save_IFS"
11875 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11876 ;;
11877esac
11878fi
11879MSGFMT="$ac_cv_path_MSGFMT"
11880if test "$MSGFMT" != ":"; then
81ecdfbb
RW
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11882$as_echo "$MSGFMT" >&6; }
d7040cdb 11883else
81ecdfbb
RW
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885$as_echo "no" >&6; }
d7040cdb
SE
11886fi
11887
11888 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11889set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
11890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11891$as_echo_n "checking for $ac_word... " >&6; }
11892if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11893 $as_echo_n "(cached) " >&6
d7040cdb
SE
11894else
11895 case $GMSGFMT in
11896 [\\/]* | ?:[\\/]*)
11897 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11898 ;;
11899 *)
11900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11901for as_dir in $PATH
11902do
11903 IFS=$as_save_IFS
11904 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11905 for ac_exec_ext in '' $ac_executable_extensions; do
11906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 11907 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
11909 break 2
11910 fi
11911done
81ecdfbb
RW
11912 done
11913IFS=$as_save_IFS
d7040cdb
SE
11914
11915 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11916 ;;
11917esac
11918fi
11919GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 11920if test -n "$GMSGFMT"; then
81ecdfbb
RW
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11922$as_echo "$GMSGFMT" >&6; }
d7040cdb 11923else
81ecdfbb
RW
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925$as_echo "no" >&6; }
d7040cdb
SE
11926fi
11927
11928
11929
81ecdfbb 11930
d7040cdb
SE
11931# Prepare PATH_SEPARATOR.
11932# The user is always right.
11933if test "${PATH_SEPARATOR+set}" != set; then
11934 echo "#! /bin/sh" >conf$$.sh
11935 echo "exit 0" >>conf$$.sh
11936 chmod +x conf$$.sh
11937 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11938 PATH_SEPARATOR=';'
11939 else
11940 PATH_SEPARATOR=:
11941 fi
11942 rm -f conf$$.sh
11943fi
11944
11945# Find out how to test for executable files. Don't use a zero-byte file,
11946# as systems may use methods other than mode bits to determine executability.
11947cat >conf$$.file <<_ASEOF
11948#! /bin/sh
11949exit 0
11950_ASEOF
11951chmod +x conf$$.file
11952if test -x conf$$.file >/dev/null 2>&1; then
11953 ac_executable_p="test -x"
11954else
11955 ac_executable_p="test -f"
11956fi
11957rm -f conf$$.file
11958
11959# Extract the first word of "xgettext", so it can be a program name with args.
11960set dummy xgettext; ac_word=$2
81ecdfbb
RW
11961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11962$as_echo_n "checking for $ac_word... " >&6; }
11963if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11964 $as_echo_n "(cached) " >&6
d7040cdb
SE
11965else
11966 case "$XGETTEXT" in
11967 [\\/]* | ?:[\\/]*)
11968 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11969 ;;
11970 *)
11971 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11972 for ac_dir in $PATH; do
11973 IFS="$ac_save_IFS"
11974 test -z "$ac_dir" && ac_dir=.
11975 for ac_exec_ext in '' $ac_executable_extensions; do
11976 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11977 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11978 (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
11979 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11980 break 2
11981 fi
11982 fi
11983 done
11984 done
11985 IFS="$ac_save_IFS"
11986 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11987 ;;
11988esac
11989fi
11990XGETTEXT="$ac_cv_path_XGETTEXT"
11991if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11993$as_echo "$XGETTEXT" >&6; }
d7040cdb 11994else
81ecdfbb
RW
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11996$as_echo "no" >&6; }
d7040cdb
SE
11997fi
11998
11999 rm -f messages.po
12000
12001
12002# Prepare PATH_SEPARATOR.
12003# The user is always right.
12004if test "${PATH_SEPARATOR+set}" != set; then
12005 echo "#! /bin/sh" >conf$$.sh
12006 echo "exit 0" >>conf$$.sh
12007 chmod +x conf$$.sh
12008 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12009 PATH_SEPARATOR=';'
12010 else
12011 PATH_SEPARATOR=:
12012 fi
12013 rm -f conf$$.sh
12014fi
12015
12016# Find out how to test for executable files. Don't use a zero-byte file,
12017# as systems may use methods other than mode bits to determine executability.
12018cat >conf$$.file <<_ASEOF
12019#! /bin/sh
12020exit 0
12021_ASEOF
12022chmod +x conf$$.file
12023if test -x conf$$.file >/dev/null 2>&1; then
12024 ac_executable_p="test -x"
12025else
12026 ac_executable_p="test -f"
12027fi
12028rm -f conf$$.file
12029
12030# Extract the first word of "msgmerge", so it can be a program name with args.
12031set dummy msgmerge; ac_word=$2
81ecdfbb
RW
12032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12033$as_echo_n "checking for $ac_word... " >&6; }
12034if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12035 $as_echo_n "(cached) " >&6
d7040cdb
SE
12036else
12037 case "$MSGMERGE" in
12038 [\\/]* | ?:[\\/]*)
12039 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12040 ;;
12041 *)
12042 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12043 for ac_dir in $PATH; do
12044 IFS="$ac_save_IFS"
12045 test -z "$ac_dir" && ac_dir=.
12046 for ac_exec_ext in '' $ac_executable_extensions; do
12047 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12048 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12049 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12050 break 2
12051 fi
12052 fi
12053 done
12054 done
12055 IFS="$ac_save_IFS"
12056 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12057 ;;
12058esac
12059fi
12060MSGMERGE="$ac_cv_path_MSGMERGE"
12061if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12063$as_echo "$MSGMERGE" >&6; }
d7040cdb 12064else
81ecdfbb
RW
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066$as_echo "no" >&6; }
d7040cdb
SE
12067fi
12068
12069
12070 if test "$GMSGFMT" != ":"; then
12071 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12072 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12073 : ;
12074 else
12075 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12077$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
12078 GMSGFMT=":"
12079 fi
12080 fi
12081
12082 if test "$XGETTEXT" != ":"; then
12083 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12084 (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
12085 : ;
12086 else
81ecdfbb
RW
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12088$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
12089 XGETTEXT=":"
12090 fi
12091 rm -f messages.po
12092 fi
12093
81ecdfbb 12094 ac_config_commands="$ac_config_commands default-1"
d7040cdb
SE
12095
12096
12097
81ecdfbb
RW
12098
12099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12100$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12101 # Check whether --enable-maintainer-mode was given.
12102if test "${enable_maintainer_mode+set}" = set; then :
12103 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
42ecbf5e 12104else
d7040cdb 12105 USE_MAINTAINER_MODE=no
81ecdfbb 12106fi
d7040cdb 12107
81ecdfbb
RW
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12109$as_echo "$USE_MAINTAINER_MODE" >&6; }
12110 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
12111 MAINTAINER_MODE_TRUE=
12112 MAINTAINER_MODE_FALSE='#'
12113else
12114 MAINTAINER_MODE_TRUE='#'
12115 MAINTAINER_MODE_FALSE=
42ecbf5e 12116fi
d7040cdb
SE
12117
12118 MAINT=$MAINTAINER_MODE_TRUE
12119
12120
81ecdfbb 12121 if false; then
d7040cdb
SE
12122 GENINSRC_NEVER_TRUE=
12123 GENINSRC_NEVER_FALSE='#'
12124else
12125 GENINSRC_NEVER_TRUE='#'
12126 GENINSRC_NEVER_FALSE=
42ecbf5e 12127fi
d7040cdb
SE
12128
12129
12130if test -n "$EXEEXT"; then
20e95c23 12131
81ecdfbb 12132$as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
42ecbf5e 12133
252b5132
RH
12134fi
12135
d7040cdb
SE
12136cat >>confdefs.h <<_ACEOF
12137#define EXECUTABLE_SUFFIX "${EXEEXT}"
12138_ACEOF
42ecbf5e 12139
252b5132 12140
d7040cdb 12141# host-specific stuff:
252b5132 12142
d7040cdb 12143HDEFINES=
252b5132 12144
d7040cdb 12145. ${srcdir}/../bfd/configure.host
252b5132 12146
252b5132 12147
d7040cdb 12148AR=${AR-ar}
252b5132 12149
d7040cdb
SE
12150if test -n "$ac_tool_prefix"; then
12151 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12152set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
12153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12154$as_echo_n "checking for $ac_word... " >&6; }
12155if test "${ac_cv_prog_RANLIB+set}" = set; then :
12156 $as_echo_n "(cached) " >&6
d7040cdb
SE
12157else
12158 if test -n "$RANLIB"; then
12159 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12160else
12161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12162for as_dir in $PATH
12163do
12164 IFS=$as_save_IFS
12165 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12166 for ac_exec_ext in '' $ac_executable_extensions; do
12167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12168 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 12169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12170 break 2
12171 fi
12172done
81ecdfbb
RW
12173 done
12174IFS=$as_save_IFS
252b5132 12175
d7040cdb
SE
12176fi
12177fi
12178RANLIB=$ac_cv_prog_RANLIB
12179if test -n "$RANLIB"; then
81ecdfbb
RW
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12181$as_echo "$RANLIB" >&6; }
d7040cdb 12182else
81ecdfbb
RW
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184$as_echo "no" >&6; }
d7040cdb 12185fi
20e95c23 12186
81ecdfbb 12187
d7040cdb
SE
12188fi
12189if test -z "$ac_cv_prog_RANLIB"; then
12190 ac_ct_RANLIB=$RANLIB
12191 # Extract the first word of "ranlib", so it can be a program name with args.
12192set dummy ranlib; ac_word=$2
81ecdfbb
RW
12193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12194$as_echo_n "checking for $ac_word... " >&6; }
12195if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12196 $as_echo_n "(cached) " >&6
252b5132 12197else
d7040cdb
SE
12198 if test -n "$ac_ct_RANLIB"; then
12199 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12200else
12201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202for as_dir in $PATH
12203do
12204 IFS=$as_save_IFS
12205 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12206 for ac_exec_ext in '' $ac_executable_extensions; do
12207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12208 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 12209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12210 break 2
12211 fi
12212done
81ecdfbb
RW
12213 done
12214IFS=$as_save_IFS
20e95c23 12215
d7040cdb
SE
12216fi
12217fi
12218ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12219if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12221$as_echo "$ac_ct_RANLIB" >&6; }
d7040cdb 12222else
81ecdfbb
RW
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224$as_echo "no" >&6; }
d7040cdb
SE
12225fi
12226
81ecdfbb
RW
12227 if test "x$ac_ct_RANLIB" = x; then
12228 RANLIB=":"
d7040cdb 12229 else
81ecdfbb
RW
12230 case $cross_compiling:$ac_tool_warned in
12231yes:)
12232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12234ac_tool_warned=yes ;;
12235esac
12236 RANLIB=$ac_ct_RANLIB
d7040cdb 12237 fi
81ecdfbb
RW
12238else
12239 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 12240fi
d7040cdb 12241
d7040cdb
SE
12242
12243
12244# Put a plausible default for CC_FOR_BUILD in Makefile.
12245if test -z "$CC_FOR_BUILD"; then
12246 if test "x$cross_compiling" = "xno"; then
12247 CC_FOR_BUILD='$(CC)'
12248 else
12249 CC_FOR_BUILD=gcc
12250 fi
12251fi
20e95c23 12252
d7040cdb
SE
12253# Also set EXEEXT_FOR_BUILD.
12254if test "x$cross_compiling" = "xno"; then
12255 EXEEXT_FOR_BUILD='$(EXEEXT)'
12256else
81ecdfbb
RW
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12258$as_echo_n "checking for build system executable suffix... " >&6; }
12259if test "${bfd_cv_build_exeext+set}" = set; then :
12260 $as_echo_n "(cached) " >&6
d7040cdb
SE
12261else
12262 rm -f conftest*
12263 echo 'int main () { return 0; }' > conftest.c
12264 bfd_cv_build_exeext=
12265 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12266 for file in conftest.*; do
12267 case $file in
12268 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12269 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12270 esac
12271 done
12272 rm -f conftest*
12273 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 12274fi
81ecdfbb
RW
12275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12276$as_echo "$bfd_cv_build_exeext" >&6; }
d7040cdb
SE
12277 EXEEXT_FOR_BUILD=""
12278 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
252b5132
RH
12279fi
12280
12281
d7040cdb
SE
12282DEMANGLER_NAME=c++filt
12283case "${host}" in
12284 *-*-go32* | *-*-msdos*)
12285 DEMANGLER_NAME=cxxfilt
12286esac
8a965946
ILT
12287
12288
81ecdfbb
RW
12289for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
12290do :
12291 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12292ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12293eval as_val=\$$as_ac_Header
12294 if test "x$as_val" = x""yes; then :
12295 cat >>confdefs.h <<_ACEOF
12296#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12297_ACEOF
42ecbf5e 12298
81ecdfbb 12299fi
42ecbf5e 12300
81ecdfbb 12301done
42ecbf5e 12302
81ecdfbb
RW
12303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12304$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12305if test "${ac_cv_header_sys_wait_h+set}" = set; then :
12306 $as_echo_n "(cached) " >&6
42ecbf5e 12307else
81ecdfbb 12308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12309/* end confdefs.h. */
252b5132
RH
12310#include <sys/types.h>
12311#include <sys/wait.h>
12312#ifndef WEXITSTATUS
81ecdfbb 12313# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
252b5132
RH
12314#endif
12315#ifndef WIFEXITED
42ecbf5e 12316# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
252b5132 12317#endif
42ecbf5e
DJ
12318
12319int
12320main ()
12321{
12322 int s;
12323 wait (&s);
12324 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12325 ;
12326 return 0;
12327}
12328_ACEOF
81ecdfbb 12329if ac_fn_c_try_compile "$LINENO"; then :
252b5132
RH
12330 ac_cv_header_sys_wait_h=yes
12331else
81ecdfbb 12332 ac_cv_header_sys_wait_h=no
252b5132 12333fi
81ecdfbb 12334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12335fi
81ecdfbb
RW
12336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12337$as_echo "$ac_cv_header_sys_wait_h" >&6; }
d15b04bd 12338if test $ac_cv_header_sys_wait_h = yes; then
42ecbf5e 12339
81ecdfbb 12340$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
252b5132
RH
12341
12342fi
12343
12344# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12345# for constant arguments. Useless!
81ecdfbb
RW
12346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12347$as_echo_n "checking for working alloca.h... " >&6; }
12348if test "${ac_cv_working_alloca_h+set}" = set; then :
12349 $as_echo_n "(cached) " >&6
42ecbf5e 12350else
81ecdfbb 12351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12352/* end confdefs.h. */
252b5132 12353#include <alloca.h>
42ecbf5e
DJ
12354int
12355main ()
12356{
12357char *p = (char *) alloca (2 * sizeof (int));
81ecdfbb 12358 if (p) return 0;
42ecbf5e
DJ
12359 ;
12360 return 0;
12361}
12362_ACEOF
81ecdfbb 12363if ac_fn_c_try_link "$LINENO"; then :
42ecbf5e
DJ
12364 ac_cv_working_alloca_h=yes
12365else
81ecdfbb 12366 ac_cv_working_alloca_h=no
42ecbf5e 12367fi
81ecdfbb
RW
12368rm -f core conftest.err conftest.$ac_objext \
12369 conftest$ac_exeext conftest.$ac_ext
42ecbf5e 12370fi
81ecdfbb
RW
12371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12372$as_echo "$ac_cv_working_alloca_h" >&6; }
42ecbf5e
DJ
12373if test $ac_cv_working_alloca_h = yes; then
12374
81ecdfbb 12375$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
252b5132
RH
12376
12377fi
12378
81ecdfbb
RW
12379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12380$as_echo_n "checking for alloca... " >&6; }
12381if test "${ac_cv_func_alloca_works+set}" = set; then :
12382 $as_echo_n "(cached) " >&6
252b5132 12383else
81ecdfbb 12384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12385/* end confdefs.h. */
252b5132
RH
12386#ifdef __GNUC__
12387# define alloca __builtin_alloca
12388#else
12389# ifdef _MSC_VER
12390# include <malloc.h>
12391# define alloca _alloca
12392# else
81ecdfbb 12393# ifdef HAVE_ALLOCA_H
252b5132
RH
12394# include <alloca.h>
12395# else
12396# ifdef _AIX
12397 #pragma alloca
12398# else
12399# ifndef alloca /* predefined by HP cc +Olibcalls */
12400char *alloca ();
12401# endif
12402# endif
12403# endif
12404# endif
12405#endif
12406
42ecbf5e
DJ
12407int
12408main ()
12409{
12410char *p = (char *) alloca (1);
81ecdfbb 12411 if (p) return 0;
42ecbf5e
DJ
12412 ;
12413 return 0;
12414}
12415_ACEOF
81ecdfbb 12416if ac_fn_c_try_link "$LINENO"; then :
252b5132
RH
12417 ac_cv_func_alloca_works=yes
12418else
81ecdfbb 12419 ac_cv_func_alloca_works=no
252b5132 12420fi
81ecdfbb
RW
12421rm -f core conftest.err conftest.$ac_objext \
12422 conftest$ac_exeext conftest.$ac_ext
252b5132 12423fi
81ecdfbb
RW
12424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12425$as_echo "$ac_cv_func_alloca_works" >&6; }
252b5132 12426
252b5132 12427if test $ac_cv_func_alloca_works = yes; then
e5a52504 12428
81ecdfbb 12429$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
e5a52504 12430
42ecbf5e 12431else
d15b04bd 12432 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
42ecbf5e
DJ
12433# that cause trouble. Some versions do not even contain alloca or
12434# contain a buggy version. If you still want to use their alloca,
12435# use ar to extract alloca.o from them instead of compiling alloca.c.
12436
81ecdfbb 12437ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
42ecbf5e 12438
81ecdfbb 12439$as_echo "#define C_ALLOCA 1" >>confdefs.h
252b5132
RH
12440
12441
81ecdfbb
RW
12442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12443$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12444if test "${ac_cv_os_cray+set}" = set; then :
12445 $as_echo_n "(cached) " >&6
252b5132 12446else
81ecdfbb 12447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12448/* end confdefs.h. */
81ecdfbb 12449#if defined CRAY && ! defined CRAY2
252b5132
RH
12450webecray
12451#else
12452wenotbecray
12453#endif
12454
42ecbf5e 12455_ACEOF
252b5132 12456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb 12457 $EGREP "webecray" >/dev/null 2>&1; then :
252b5132
RH
12458 ac_cv_os_cray=yes
12459else
252b5132
RH
12460 ac_cv_os_cray=no
12461fi
12462rm -f conftest*
12463
12464fi
81ecdfbb
RW
12465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12466$as_echo "$ac_cv_os_cray" >&6; }
d15b04bd 12467if test $ac_cv_os_cray = yes; then
42ecbf5e 12468 for ac_func in _getb67 GETB67 getb67; do
81ecdfbb
RW
12469 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12470ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12471eval as_val=\$$as_ac_var
12472 if test "x$as_val" = x""yes; then :
42ecbf5e
DJ
12473
12474cat >>confdefs.h <<_ACEOF
252b5132 12475#define CRAY_STACKSEG_END $ac_func
42ecbf5e 12476_ACEOF
252b5132 12477
42ecbf5e 12478 break
252b5132
RH
12479fi
12480
42ecbf5e 12481 done
252b5132
RH
12482fi
12483
81ecdfbb
RW
12484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12485$as_echo_n "checking stack direction for C alloca... " >&6; }
12486if test "${ac_cv_c_stack_direction+set}" = set; then :
12487 $as_echo_n "(cached) " >&6
252b5132 12488else
81ecdfbb 12489 if test "$cross_compiling" = yes; then :
252b5132
RH
12490 ac_cv_c_stack_direction=0
12491else
81ecdfbb 12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12493/* end confdefs.h. */
81ecdfbb 12494$ac_includes_default
42ecbf5e 12495int
252b5132
RH
12496find_stack_direction ()
12497{
12498 static char *addr = 0;
12499 auto char dummy;
12500 if (addr == 0)
12501 {
12502 addr = &dummy;
12503 return find_stack_direction ();
12504 }
12505 else
12506 return (&dummy > addr) ? 1 : -1;
12507}
42ecbf5e
DJ
12508
12509int
252b5132
RH
12510main ()
12511{
81ecdfbb 12512 return find_stack_direction () < 0;
252b5132 12513}
42ecbf5e 12514_ACEOF
81ecdfbb 12515if ac_fn_c_try_run "$LINENO"; then :
252b5132
RH
12516 ac_cv_c_stack_direction=1
12517else
81ecdfbb 12518 ac_cv_c_stack_direction=-1
252b5132 12519fi
81ecdfbb
RW
12520rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12521 conftest.$ac_objext conftest.beam conftest.$ac_ext
252b5132
RH
12522fi
12523
81ecdfbb
RW
12524fi
12525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12526$as_echo "$ac_cv_c_stack_direction" >&6; }
42ecbf5e 12527cat >>confdefs.h <<_ACEOF
252b5132 12528#define STACK_DIRECTION $ac_cv_c_stack_direction
42ecbf5e
DJ
12529_ACEOF
12530
252b5132
RH
12531
12532fi
12533
81ecdfbb
RW
12534for ac_func in sbrk utimes setmode getc_unlocked strcoll
12535do :
12536 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12537ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12538eval as_val=\$$as_ac_var
12539 if test "x$as_val" = x""yes; then :
12540 cat >>confdefs.h <<_ACEOF
12541#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12542_ACEOF
42ecbf5e 12543
81ecdfbb
RW
12544fi
12545done
42ecbf5e 12546
81ecdfbb
RW
12547ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
12548if test "x$ac_cv_func_mkstemp" = x""yes; then :
42ecbf5e 12549
81ecdfbb 12550$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
42ecbf5e 12551
81ecdfbb 12552fi
42ecbf5e 12553
81ecdfbb
RW
12554ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
12555if test "x$ac_cv_func_mkdtemp" = x""yes; then :
42ecbf5e 12556
81ecdfbb 12557$as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
42ecbf5e 12558
81ecdfbb 12559fi
d15b04bd 12560
d15b04bd 12561
81ecdfbb
RW
12562# Some systems have frexp only in -lm, not in -lc.
12563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
12564$as_echo_n "checking for library containing frexp... " >&6; }
12565if test "${ac_cv_search_frexp+set}" = set; then :
12566 $as_echo_n "(cached) " >&6
f9c026a8 12567else
81ecdfbb
RW
12568 ac_func_search_save_LIBS=$LIBS
12569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f9c026a8 12570/* end confdefs.h. */
f9c026a8 12571
81ecdfbb
RW
12572/* Override any GCC internal prototype to avoid an error.
12573 Use char because int might match the return type of a GCC
f9c026a8 12574 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
12575#ifdef __cplusplus
12576extern "C"
12577#endif
42ecbf5e
DJ
12578char frexp ();
12579int
12580main ()
12581{
81ecdfbb 12582return frexp ();
42ecbf5e
DJ
12583 ;
12584 return 0;
12585}
12586_ACEOF
81ecdfbb
RW
12587for ac_lib in '' m; do
12588 if test -z "$ac_lib"; then
12589 ac_res="none required"
12590 else
12591 ac_res=-l$ac_lib
42ecbf5e 12592 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
12593 fi
12594 if ac_fn_c_try_link "$LINENO"; then :
12595 ac_cv_search_frexp=$ac_res
12596fi
12597rm -f core conftest.err conftest.$ac_objext \
12598 conftest$ac_exeext
12599 if test "${ac_cv_search_frexp+set}" = set; then :
12600 break
12601fi
12602done
12603if test "${ac_cv_search_frexp+set}" = set; then :
42ecbf5e 12604
f353eb8a 12605else
81ecdfbb 12606 ac_cv_search_frexp=no
e5a52504 12607fi
81ecdfbb 12608rm conftest.$ac_ext
42ecbf5e
DJ
12609LIBS=$ac_func_search_save_LIBS
12610fi
81ecdfbb
RW
12611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
12612$as_echo "$ac_cv_search_frexp" >&6; }
12613ac_res=$ac_cv_search_frexp
12614if test "$ac_res" != no; then :
12615 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 12616
f353eb8a
ILT
12617fi
12618
42ecbf5e 12619
81ecdfbb
RW
12620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in time.h" >&5
12621$as_echo_n "checking for time_t in time.h... " >&6; }
12622if test "${bu_cv_decl_time_t_time_h+set}" = set; then :
12623 $as_echo_n "(cached) " >&6
252b5132 12624else
81ecdfbb 12625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12626/* end confdefs.h. */
252b5132 12627#include <time.h>
42ecbf5e
DJ
12628int
12629main ()
12630{
252b5132 12631time_t i;
42ecbf5e
DJ
12632 ;
12633 return 0;
12634}
12635_ACEOF
81ecdfbb 12636if ac_fn_c_try_compile "$LINENO"; then :
252b5132
RH
12637 bu_cv_decl_time_t_time_h=yes
12638else
81ecdfbb 12639 bu_cv_decl_time_t_time_h=no
252b5132 12640fi
81ecdfbb 12641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12642fi
12643
81ecdfbb
RW
12644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_time_h" >&5
12645$as_echo "$bu_cv_decl_time_t_time_h" >&6; }
252b5132 12646if test $bu_cv_decl_time_t_time_h = yes; then
42ecbf5e 12647
81ecdfbb 12648$as_echo "#define HAVE_TIME_T_IN_TIME_H 1" >>confdefs.h
252b5132
RH
12649
12650fi
12651
81ecdfbb
RW
12652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in sys/types.h" >&5
12653$as_echo_n "checking for time_t in sys/types.h... " >&6; }
12654if test "${bu_cv_decl_time_t_types_h+set}" = set; then :
12655 $as_echo_n "(cached) " >&6
252b5132 12656else
81ecdfbb 12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12658/* end confdefs.h. */
252b5132 12659#include <sys/types.h>
42ecbf5e
DJ
12660int
12661main ()
12662{
252b5132 12663time_t i;
42ecbf5e
DJ
12664 ;
12665 return 0;
12666}
12667_ACEOF
81ecdfbb 12668if ac_fn_c_try_compile "$LINENO"; then :
252b5132
RH
12669 bu_cv_decl_time_t_types_h=yes
12670else
81ecdfbb 12671 bu_cv_decl_time_t_types_h=no
252b5132 12672fi
81ecdfbb 12673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12674fi
12675
81ecdfbb
RW
12676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_types_h" >&5
12677$as_echo "$bu_cv_decl_time_t_types_h" >&6; }
252b5132 12678if test $bu_cv_decl_time_t_types_h = yes; then
42ecbf5e 12679
81ecdfbb 12680$as_echo "#define HAVE_TIME_T_IN_TYPES_H 1" >>confdefs.h
252b5132
RH
12681
12682fi
12683
81ecdfbb
RW
12684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
12685$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
12686if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then :
12687 $as_echo_n "(cached) " >&6
e46eba98 12688else
81ecdfbb 12689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12690/* end confdefs.h. */
e46eba98 12691#include <unistd.h>
42ecbf5e
DJ
12692int
12693main ()
12694{
e46eba98 12695extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
12696 ;
12697 return 0;
12698}
12699_ACEOF
81ecdfbb 12700if ac_fn_c_try_compile "$LINENO"; then :
e46eba98
NC
12701 bu_cv_decl_getopt_unistd_h=yes
12702else
81ecdfbb 12703 bu_cv_decl_getopt_unistd_h=no
e46eba98 12704fi
81ecdfbb 12705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e46eba98
NC
12706fi
12707
81ecdfbb
RW
12708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
12709$as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
e46eba98 12710if test $bu_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 12711
81ecdfbb 12712$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
e46eba98
NC
12713
12714fi
12715
252b5132
RH
12716# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
12717# by default.
81ecdfbb
RW
12718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
12719$as_echo_n "checking for utime.h... " >&6; }
12720if test "${bu_cv_header_utime_h+set}" = set; then :
12721 $as_echo_n "(cached) " >&6
42ecbf5e 12722else
81ecdfbb 12723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12724/* end confdefs.h. */
252b5132
RH
12725#include <sys/types.h>
12726#ifdef HAVE_TIME_H
12727#include <time.h>
12728#endif
12729#include <utime.h>
42ecbf5e
DJ
12730int
12731main ()
12732{
252b5132 12733struct utimbuf s;
42ecbf5e
DJ
12734 ;
12735 return 0;
12736}
12737_ACEOF
81ecdfbb 12738if ac_fn_c_try_compile "$LINENO"; then :
252b5132
RH
12739 bu_cv_header_utime_h=yes
12740else
81ecdfbb 12741 bu_cv_header_utime_h=no
252b5132 12742fi
81ecdfbb 12743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12744fi
12745
81ecdfbb
RW
12746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
12747$as_echo "$bu_cv_header_utime_h" >&6; }
252b5132 12748if test $bu_cv_header_utime_h = yes; then
42ecbf5e 12749
81ecdfbb 12750$as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
252b5132
RH
12751
12752fi
12753
81ecdfbb
RW
12754ac_fn_c_check_decl "$LINENO" "fprintf" "ac_cv_have_decl_fprintf" "$ac_includes_default"
12755if test "x$ac_cv_have_decl_fprintf" = x""yes; then :
12756 ac_have_decl=1
252b5132 12757else
81ecdfbb
RW
12758 ac_have_decl=0
12759fi
398ee8f1 12760
81ecdfbb
RW
12761cat >>confdefs.h <<_ACEOF
12762#define HAVE_DECL_FPRINTF $ac_have_decl
42ecbf5e 12763_ACEOF
81ecdfbb
RW
12764ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
12765if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
12766 ac_have_decl=1
252b5132 12767else
81ecdfbb 12768 ac_have_decl=0
252b5132 12769fi
252b5132 12770
398ee8f1 12771cat >>confdefs.h <<_ACEOF
81ecdfbb 12772#define HAVE_DECL_STPCPY $ac_have_decl
398ee8f1 12773_ACEOF
81ecdfbb
RW
12774ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
12775if test "x$ac_cv_have_decl_strstr" = x""yes; then :
12776 ac_have_decl=1
398ee8f1 12777else
81ecdfbb
RW
12778 ac_have_decl=0
12779fi
3e321448
L
12780
12781cat >>confdefs.h <<_ACEOF
81ecdfbb 12782#define HAVE_DECL_STRSTR $ac_have_decl
42ecbf5e 12783_ACEOF
81ecdfbb
RW
12784ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
12785if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
12786 ac_have_decl=1
252b5132 12787else
81ecdfbb 12788 ac_have_decl=0
252b5132 12789fi
252b5132 12790
398ee8f1 12791cat >>confdefs.h <<_ACEOF
81ecdfbb 12792#define HAVE_DECL_SBRK $ac_have_decl
398ee8f1 12793_ACEOF
81ecdfbb
RW
12794ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
12795if test "x$ac_cv_have_decl_getenv" = x""yes; then :
12796 ac_have_decl=1
398ee8f1 12797else
81ecdfbb 12798 ac_have_decl=0
398ee8f1 12799fi
252b5132 12800
398ee8f1 12801cat >>confdefs.h <<_ACEOF
81ecdfbb 12802#define HAVE_DECL_GETENV $ac_have_decl
398ee8f1 12803_ACEOF
81ecdfbb
RW
12804ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
12805if test "x$ac_cv_have_decl_environ" = x""yes; then :
12806 ac_have_decl=1
398ee8f1 12807else
81ecdfbb 12808 ac_have_decl=0
398ee8f1 12809fi
252b5132 12810
398ee8f1 12811cat >>confdefs.h <<_ACEOF
81ecdfbb 12812#define HAVE_DECL_ENVIRON $ac_have_decl
b7d4af3a 12813_ACEOF
81ecdfbb
RW
12814ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
12815if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
12816 ac_have_decl=1
b7d4af3a 12817else
81ecdfbb 12818 ac_have_decl=0
b7d4af3a 12819fi
b7d4af3a
JW
12820
12821cat >>confdefs.h <<_ACEOF
81ecdfbb 12822#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
b7d4af3a 12823_ACEOF
81ecdfbb
RW
12824ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12825if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
12826 ac_have_decl=1
b7d4af3a 12827else
81ecdfbb 12828 ac_have_decl=0
db50c840 12829fi
db50c840
EB
12830
12831cat >>confdefs.h <<_ACEOF
81ecdfbb 12832#define HAVE_DECL_SNPRINTF $ac_have_decl
db50c840 12833_ACEOF
81ecdfbb
RW
12834ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12835if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
12836 ac_have_decl=1
db50c840 12837else
81ecdfbb 12838 ac_have_decl=0
db50c840 12839fi
db50c840
EB
12840
12841cat >>confdefs.h <<_ACEOF
81ecdfbb 12842#define HAVE_DECL_VSNPRINTF $ac_have_decl
db50c840
EB
12843_ACEOF
12844
12845
1b315056
CS
12846# Link in zlib if we can. This allows us to read compressed debug
12847# sections. This is used only by readelf.c (objdump uses bfd for
12848# reading compressed sections).
81ecdfbb
RW
12849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
12850$as_echo_n "checking for library containing zlibVersion... " >&6; }
12851if test "${ac_cv_search_zlibVersion+set}" = set; then :
12852 $as_echo_n "(cached) " >&6
1b315056
CS
12853else
12854 ac_func_search_save_LIBS=$LIBS
81ecdfbb 12855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1b315056
CS
12856/* end confdefs.h. */
12857
81ecdfbb
RW
12858/* Override any GCC internal prototype to avoid an error.
12859 Use char because int might match the return type of a GCC
1b315056 12860 builtin and then its argument prototype would still apply. */
1b315056
CS
12861#ifdef __cplusplus
12862extern "C"
12863#endif
1b315056
CS
12864char zlibVersion ();
12865int
12866main ()
12867{
81ecdfbb 12868return zlibVersion ();
1b315056
CS
12869 ;
12870 return 0;
12871}
81ecdfbb
RW
12872_ACEOF
12873for ac_lib in '' z; do
12874 if test -z "$ac_lib"; then
12875 ac_res="none required"
1b315056 12876 else
81ecdfbb
RW
12877 ac_res=-l$ac_lib
12878 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1b315056 12879 fi
81ecdfbb
RW
12880 if ac_fn_c_try_link "$LINENO"; then :
12881 ac_cv_search_zlibVersion=$ac_res
1b315056 12882fi
81ecdfbb
RW
12883rm -f core conftest.err conftest.$ac_objext \
12884 conftest$ac_exeext
12885 if test "${ac_cv_search_zlibVersion+set}" = set; then :
12886 break
1b315056 12887fi
81ecdfbb
RW
12888done
12889if test "${ac_cv_search_zlibVersion+set}" = set; then :
1b315056 12890
1b315056 12891else
81ecdfbb 12892 ac_cv_search_zlibVersion=no
1b315056 12893fi
81ecdfbb
RW
12894rm conftest.$ac_ext
12895LIBS=$ac_func_search_save_LIBS
1b315056 12896fi
81ecdfbb
RW
12897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
12898$as_echo "$ac_cv_search_zlibVersion" >&6; }
12899ac_res=$ac_cv_search_zlibVersion
12900if test "$ac_res" != no; then :
12901 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12902 for ac_header in zlib.h
12903do :
12904 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12905if test "x$ac_cv_header_zlib_h" = x""yes; then :
1b315056 12906 cat >>confdefs.h <<_ACEOF
81ecdfbb 12907#define HAVE_ZLIB_H 1
1b315056
CS
12908_ACEOF
12909
12910fi
12911
12912done
12913
12914fi
12915
12916
252b5132
RH
12917
12918case "${host}" in
8a965946 12919*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 12920
81ecdfbb 12921$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
12922 ;;
12923esac
12924
12925# target-specific stuff:
12926
12927# Canonicalize the secondary target names.
12928if test -n "$enable_targets"; then
12929 for targ in `echo $enable_targets | sed 's/,/ /g'`
12930 do
6d83c84b 12931 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
12932 if test -n "$result"; then
12933 canon_targets="$canon_targets $result"
12934 else
12935 # Allow targets that config.sub doesn't recognize, like "all".
12936 canon_targets="$canon_targets $targ"
12937 fi
12938 done
12939fi
12940
81ecdfbb
RW
12941ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
12942if test "x$ac_cv_header_iconv_h" = x""yes; then :
5ba684e2
NC
12943
12944fi
12945
12946
12947
12948 if test "X$prefix" = "XNONE"; then
12949 acl_final_prefix="$ac_default_prefix"
12950 else
12951 acl_final_prefix="$prefix"
12952 fi
12953 if test "X$exec_prefix" = "XNONE"; then
12954 acl_final_exec_prefix='${prefix}'
12955 else
12956 acl_final_exec_prefix="$exec_prefix"
12957 fi
12958 acl_save_prefix="$prefix"
12959 prefix="$acl_final_prefix"
12960 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12961 prefix="$acl_save_prefix"
12962
12963
81ecdfbb
RW
12964# Check whether --with-gnu-ld was given.
12965if test "${with_gnu_ld+set}" = set; then :
12966 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5ba684e2
NC
12967else
12968 with_gnu_ld=no
81ecdfbb
RW
12969fi
12970
5ba684e2
NC
12971# Prepare PATH_SEPARATOR.
12972# The user is always right.
12973if test "${PATH_SEPARATOR+set}" != set; then
12974 echo "#! /bin/sh" >conf$$.sh
12975 echo "exit 0" >>conf$$.sh
12976 chmod +x conf$$.sh
12977 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12978 PATH_SEPARATOR=';'
12979 else
12980 PATH_SEPARATOR=:
12981 fi
12982 rm -f conf$$.sh
12983fi
12984ac_prog=ld
12985if test "$GCC" = yes; then
12986 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12988$as_echo_n "checking for ld used by GCC... " >&6; }
5ba684e2
NC
12989 case $host in
12990 *-*-mingw*)
12991 # gcc leaves a trailing carriage return which upsets mingw
12992 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12993 *)
12994 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12995 esac
12996 case $ac_prog in
12997 # Accept absolute paths.
12998 [\\/]* | [A-Za-z]:[\\/]*)
12999 re_direlt='/[^/][^/]*/\.\./'
13000 # Canonicalize the path of ld
13001 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13002 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13003 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13004 done
13005 test -z "$LD" && LD="$ac_prog"
13006 ;;
13007 "")
13008 # If it fails, then pretend we aren't using GCC.
13009 ac_prog=ld
13010 ;;
13011 *)
13012 # If it is relative, then search for the first ld in PATH.
13013 with_gnu_ld=unknown
13014 ;;
13015 esac
13016elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13018$as_echo_n "checking for GNU ld... " >&6; }
5ba684e2 13019else
81ecdfbb
RW
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13021$as_echo_n "checking for non-GNU ld... " >&6; }
5ba684e2 13022fi
81ecdfbb
RW
13023if test "${acl_cv_path_LD+set}" = set; then :
13024 $as_echo_n "(cached) " >&6
5ba684e2
NC
13025else
13026 if test -z "$LD"; then
13027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13028 for ac_dir in $PATH; do
13029 test -z "$ac_dir" && ac_dir=.
13030 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13031 acl_cv_path_LD="$ac_dir/$ac_prog"
13032 # Check to see if the program is GNU ld. I'd rather use --version,
13033 # but apparently some GNU ld's only accept -v.
13034 # Break only if it was the GNU/non-GNU ld that we prefer.
13035 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13036 test "$with_gnu_ld" != no && break
13037 else
13038 test "$with_gnu_ld" != yes && break
13039 fi
13040 fi
13041 done
13042 IFS="$ac_save_ifs"
13043else
13044 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13045fi
13046fi
13047
13048LD="$acl_cv_path_LD"
13049if test -n "$LD"; then
81ecdfbb
RW
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13051$as_echo "$LD" >&6; }
5ba684e2 13052else
81ecdfbb
RW
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13054$as_echo "no" >&6; }
5ba684e2 13055fi
81ecdfbb
RW
13056test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13058$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13059if test "${acl_cv_prog_gnu_ld+set}" = set; then :
13060 $as_echo_n "(cached) " >&6
5ba684e2
NC
13061else
13062 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13063if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13064 acl_cv_prog_gnu_ld=yes
13065else
13066 acl_cv_prog_gnu_ld=no
13067fi
13068fi
81ecdfbb
RW
13069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13070$as_echo "$acl_cv_prog_gnu_ld" >&6; }
5ba684e2
NC
13071with_gnu_ld=$acl_cv_prog_gnu_ld
13072
13073
13074
81ecdfbb
RW
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13076$as_echo_n "checking for shared library run path origin... " >&6; }
13077if test "${acl_cv_rpath+set}" = set; then :
13078 $as_echo_n "(cached) " >&6
5ba684e2
NC
13079else
13080
13081 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13082 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13083 . ./conftest.sh
13084 rm -f ./conftest.sh
13085 acl_cv_rpath=done
13086
13087fi
81ecdfbb
RW
13088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13089$as_echo "$acl_cv_rpath" >&6; }
5ba684e2
NC
13090 wl="$acl_cv_wl"
13091 libext="$acl_cv_libext"
13092 shlibext="$acl_cv_shlibext"
13093 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13094 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13095 hardcode_direct="$acl_cv_hardcode_direct"
13096 hardcode_minus_L="$acl_cv_hardcode_minus_L"
81ecdfbb
RW
13097 # Check whether --enable-rpath was given.
13098if test "${enable_rpath+set}" = set; then :
13099 enableval=$enable_rpath; :
5ba684e2
NC
13100else
13101 enable_rpath=yes
81ecdfbb
RW
13102fi
13103
5ba684e2
NC
13104
13105
13106
13107
13108
13109
13110
13111 use_additional=yes
13112
13113 acl_save_prefix="$prefix"
13114 prefix="$acl_final_prefix"
13115 acl_save_exec_prefix="$exec_prefix"
13116 exec_prefix="$acl_final_exec_prefix"
13117
13118 eval additional_includedir=\"$includedir\"
13119 eval additional_libdir=\"$libdir\"
13120
13121 exec_prefix="$acl_save_exec_prefix"
13122 prefix="$acl_save_prefix"
13123
13124
81ecdfbb
RW
13125# Check whether --with-libiconv-prefix was given.
13126if test "${with_libiconv_prefix+set}" = set; then :
13127 withval=$with_libiconv_prefix;
5ba684e2
NC
13128 if test "X$withval" = "Xno"; then
13129 use_additional=no
13130 else
13131 if test "X$withval" = "X"; then
13132
13133 acl_save_prefix="$prefix"
13134 prefix="$acl_final_prefix"
13135 acl_save_exec_prefix="$exec_prefix"
13136 exec_prefix="$acl_final_exec_prefix"
13137
13138 eval additional_includedir=\"$includedir\"
13139 eval additional_libdir=\"$libdir\"
13140
13141 exec_prefix="$acl_save_exec_prefix"
13142 prefix="$acl_save_prefix"
13143
13144 else
13145 additional_includedir="$withval/include"
13146 additional_libdir="$withval/lib"
13147 fi
13148 fi
13149
81ecdfbb
RW
13150fi
13151
5ba684e2
NC
13152 LIBICONV=
13153 LTLIBICONV=
13154 INCICONV=
13155 rpathdirs=
13156 ltrpathdirs=
13157 names_already_handled=
13158 names_next_round='iconv '
13159 while test -n "$names_next_round"; do
13160 names_this_round="$names_next_round"
13161 names_next_round=
13162 for name in $names_this_round; do
13163 already_handled=
13164 for n in $names_already_handled; do
13165 if test "$n" = "$name"; then
13166 already_handled=yes
13167 break
13168 fi
13169 done
13170 if test -z "$already_handled"; then
13171 names_already_handled="$names_already_handled $name"
13172 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13173 eval value=\"\$HAVE_LIB$uppername\"
13174 if test -n "$value"; then
13175 if test "$value" = yes; then
13176 eval value=\"\$LIB$uppername\"
13177 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13178 eval value=\"\$LTLIB$uppername\"
13179 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13180 else
13181 :
13182 fi
13183 else
13184 found_dir=
13185 found_la=
13186 found_so=
13187 found_a=
13188 if test $use_additional = yes; then
13189 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13190 found_dir="$additional_libdir"
13191 found_so="$additional_libdir/lib$name.$shlibext"
13192 if test -f "$additional_libdir/lib$name.la"; then
13193 found_la="$additional_libdir/lib$name.la"
13194 fi
13195 else
13196 if test -f "$additional_libdir/lib$name.$libext"; then
13197 found_dir="$additional_libdir"
13198 found_a="$additional_libdir/lib$name.$libext"
13199 if test -f "$additional_libdir/lib$name.la"; then
13200 found_la="$additional_libdir/lib$name.la"
13201 fi
13202 fi
13203 fi
13204 fi
13205 if test "X$found_dir" = "X"; then
13206 for x in $LDFLAGS $LTLIBICONV; do
13207
13208 acl_save_prefix="$prefix"
13209 prefix="$acl_final_prefix"
13210 acl_save_exec_prefix="$exec_prefix"
13211 exec_prefix="$acl_final_exec_prefix"
13212 eval x=\"$x\"
13213 exec_prefix="$acl_save_exec_prefix"
13214 prefix="$acl_save_prefix"
13215
13216 case "$x" in
13217 -L*)
13218 dir=`echo "X$x" | sed -e 's/^X-L//'`
13219 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13220 found_dir="$dir"
13221 found_so="$dir/lib$name.$shlibext"
13222 if test -f "$dir/lib$name.la"; then
13223 found_la="$dir/lib$name.la"
13224 fi
13225 else
13226 if test -f "$dir/lib$name.$libext"; then
13227 found_dir="$dir"
13228 found_a="$dir/lib$name.$libext"
13229 if test -f "$dir/lib$name.la"; then
13230 found_la="$dir/lib$name.la"
13231 fi
13232 fi
13233 fi
13234 ;;
13235 esac
13236 if test "X$found_dir" != "X"; then
13237 break
13238 fi
13239 done
13240 fi
13241 if test "X$found_dir" != "X"; then
13242 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13243 if test "X$found_so" != "X"; then
13244 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13245 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13246 else
13247 haveit=
13248 for x in $ltrpathdirs; do
13249 if test "X$x" = "X$found_dir"; then
13250 haveit=yes
13251 break
13252 fi
13253 done
13254 if test -z "$haveit"; then
13255 ltrpathdirs="$ltrpathdirs $found_dir"
13256 fi
13257 if test "$hardcode_direct" = yes; then
13258 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13259 else
13260 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13261 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13262 haveit=
13263 for x in $rpathdirs; do
13264 if test "X$x" = "X$found_dir"; then
13265 haveit=yes
13266 break
13267 fi
13268 done
13269 if test -z "$haveit"; then
13270 rpathdirs="$rpathdirs $found_dir"
13271 fi
13272 else
13273 haveit=
13274 for x in $LDFLAGS $LIBICONV; do
13275
13276 acl_save_prefix="$prefix"
13277 prefix="$acl_final_prefix"
13278 acl_save_exec_prefix="$exec_prefix"
13279 exec_prefix="$acl_final_exec_prefix"
13280 eval x=\"$x\"
13281 exec_prefix="$acl_save_exec_prefix"
13282 prefix="$acl_save_prefix"
13283
13284 if test "X$x" = "X-L$found_dir"; then
13285 haveit=yes
13286 break
13287 fi
13288 done
13289 if test -z "$haveit"; then
13290 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13291 fi
13292 if test "$hardcode_minus_L" != no; then
13293 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13294 else
13295 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13296 fi
13297 fi
13298 fi
13299 fi
13300 else
13301 if test "X$found_a" != "X"; then
13302 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13303 else
13304 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13305 fi
13306 fi
13307 additional_includedir=
13308 case "$found_dir" in
13309 */lib | */lib/)
13310 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13311 additional_includedir="$basedir/include"
13312 ;;
13313 esac
13314 if test "X$additional_includedir" != "X"; then
13315 if test "X$additional_includedir" != "X/usr/include"; then
13316 haveit=
13317 if test "X$additional_includedir" = "X/usr/local/include"; then
13318 if test -n "$GCC"; then
13319 case $host_os in
13320 linux*) haveit=yes;;
13321 esac
13322 fi
13323 fi
13324 if test -z "$haveit"; then
13325 for x in $CPPFLAGS $INCICONV; do
13326
13327 acl_save_prefix="$prefix"
13328 prefix="$acl_final_prefix"
13329 acl_save_exec_prefix="$exec_prefix"
13330 exec_prefix="$acl_final_exec_prefix"
13331 eval x=\"$x\"
13332 exec_prefix="$acl_save_exec_prefix"
13333 prefix="$acl_save_prefix"
13334
13335 if test "X$x" = "X-I$additional_includedir"; then
13336 haveit=yes
13337 break
13338 fi
13339 done
13340 if test -z "$haveit"; then
13341 if test -d "$additional_includedir"; then
13342 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13343 fi
13344 fi
13345 fi
13346 fi
13347 fi
13348 if test -n "$found_la"; then
13349 save_libdir="$libdir"
13350 case "$found_la" in
13351 */* | *\\*) . "$found_la" ;;
13352 *) . "./$found_la" ;;
13353 esac
13354 libdir="$save_libdir"
13355 for dep in $dependency_libs; do
13356 case "$dep" in
13357 -L*)
13358 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13359 if test "X$additional_libdir" != "X/usr/lib"; then
13360 haveit=
13361 if test "X$additional_libdir" = "X/usr/local/lib"; then
13362 if test -n "$GCC"; then
13363 case $host_os in
13364 linux*) haveit=yes;;
13365 esac
13366 fi
13367 fi
13368 if test -z "$haveit"; then
13369 haveit=
13370 for x in $LDFLAGS $LIBICONV; do
13371
13372 acl_save_prefix="$prefix"
13373 prefix="$acl_final_prefix"
13374 acl_save_exec_prefix="$exec_prefix"
13375 exec_prefix="$acl_final_exec_prefix"
13376 eval x=\"$x\"
13377 exec_prefix="$acl_save_exec_prefix"
13378 prefix="$acl_save_prefix"
13379
13380 if test "X$x" = "X-L$additional_libdir"; then
13381 haveit=yes
13382 break
13383 fi
13384 done
13385 if test -z "$haveit"; then
13386 if test -d "$additional_libdir"; then
13387 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13388 fi
13389 fi
13390 haveit=
13391 for x in $LDFLAGS $LTLIBICONV; do
13392
13393 acl_save_prefix="$prefix"
13394 prefix="$acl_final_prefix"
13395 acl_save_exec_prefix="$exec_prefix"
13396 exec_prefix="$acl_final_exec_prefix"
13397 eval x=\"$x\"
13398 exec_prefix="$acl_save_exec_prefix"
13399 prefix="$acl_save_prefix"
13400
13401 if test "X$x" = "X-L$additional_libdir"; then
13402 haveit=yes
13403 break
13404 fi
13405 done
13406 if test -z "$haveit"; then
13407 if test -d "$additional_libdir"; then
13408 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13409 fi
13410 fi
13411 fi
13412 fi
13413 ;;
13414 -R*)
13415 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13416 if test "$enable_rpath" != no; then
13417 haveit=
13418 for x in $rpathdirs; do
13419 if test "X$x" = "X$dir"; then
13420 haveit=yes
13421 break
13422 fi
13423 done
13424 if test -z "$haveit"; then
13425 rpathdirs="$rpathdirs $dir"
13426 fi
13427 haveit=
13428 for x in $ltrpathdirs; do
13429 if test "X$x" = "X$dir"; then
13430 haveit=yes
13431 break
13432 fi
13433 done
13434 if test -z "$haveit"; then
13435 ltrpathdirs="$ltrpathdirs $dir"
13436 fi
13437 fi
13438 ;;
13439 -l*)
13440 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13441 ;;
13442 *.la)
13443 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13444 ;;
13445 *)
13446 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13447 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13448 ;;
13449 esac
13450 done
13451 fi
13452 else
13453 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13454 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13455 fi
13456 fi
13457 fi
13458 done
13459 done
13460 if test "X$rpathdirs" != "X"; then
13461 if test -n "$hardcode_libdir_separator"; then
13462 alldirs=
13463 for found_dir in $rpathdirs; do
13464 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13465 done
13466 acl_save_libdir="$libdir"
13467 libdir="$alldirs"
13468 eval flag=\"$hardcode_libdir_flag_spec\"
13469 libdir="$acl_save_libdir"
13470 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13471 else
13472 for found_dir in $rpathdirs; do
13473 acl_save_libdir="$libdir"
13474 libdir="$found_dir"
13475 eval flag=\"$hardcode_libdir_flag_spec\"
13476 libdir="$acl_save_libdir"
13477 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13478 done
13479 fi
13480 fi
13481 if test "X$ltrpathdirs" != "X"; then
13482 for found_dir in $ltrpathdirs; do
13483 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13484 done
13485 fi
13486
13487
13488
13489
13490
13491
13492
13493 am_save_CPPFLAGS="$CPPFLAGS"
13494
13495 for element in $INCICONV; do
13496 haveit=
13497 for x in $CPPFLAGS; do
13498
13499 acl_save_prefix="$prefix"
13500 prefix="$acl_final_prefix"
13501 acl_save_exec_prefix="$exec_prefix"
13502 exec_prefix="$acl_final_exec_prefix"
13503 eval x=\"$x\"
13504 exec_prefix="$acl_save_exec_prefix"
13505 prefix="$acl_save_prefix"
13506
13507 if test "X$x" = "X$element"; then
13508 haveit=yes
13509 break
13510 fi
13511 done
13512 if test -z "$haveit"; then
13513 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13514 fi
13515 done
13516
13517
81ecdfbb
RW
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13519$as_echo_n "checking for iconv... " >&6; }
13520if test "${am_cv_func_iconv+set}" = set; then :
13521 $as_echo_n "(cached) " >&6
5ba684e2
NC
13522else
13523
13524 am_cv_func_iconv="no, consider installing GNU libiconv"
13525 am_cv_lib_iconv=no
81ecdfbb 13526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5ba684e2
NC
13527/* end confdefs.h. */
13528#include <stdlib.h>
13529#include <iconv.h>
13530int
13531main ()
13532{
13533iconv_t cd = iconv_open("","");
13534 iconv(cd,NULL,NULL,NULL,NULL);
13535 iconv_close(cd);
13536 ;
13537 return 0;
13538}
13539_ACEOF
81ecdfbb 13540if ac_fn_c_try_link "$LINENO"; then :
5ba684e2 13541 am_cv_func_iconv=yes
5ba684e2 13542fi
81ecdfbb
RW
13543rm -f core conftest.err conftest.$ac_objext \
13544 conftest$ac_exeext conftest.$ac_ext
5ba684e2
NC
13545 if test "$am_cv_func_iconv" != yes; then
13546 am_save_LIBS="$LIBS"
13547 LIBS="$LIBS $LIBICONV"
81ecdfbb 13548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5ba684e2
NC
13549/* end confdefs.h. */
13550#include <stdlib.h>
13551#include <iconv.h>
13552int
13553main ()
13554{
13555iconv_t cd = iconv_open("","");
13556 iconv(cd,NULL,NULL,NULL,NULL);
13557 iconv_close(cd);
13558 ;
13559 return 0;
13560}
13561_ACEOF
81ecdfbb 13562if ac_fn_c_try_link "$LINENO"; then :
5ba684e2
NC
13563 am_cv_lib_iconv=yes
13564 am_cv_func_iconv=yes
5ba684e2 13565fi
81ecdfbb
RW
13566rm -f core conftest.err conftest.$ac_objext \
13567 conftest$ac_exeext conftest.$ac_ext
5ba684e2
NC
13568 LIBS="$am_save_LIBS"
13569 fi
13570
13571fi
81ecdfbb
RW
13572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13573$as_echo "$am_cv_func_iconv" >&6; }
5ba684e2
NC
13574 if test "$am_cv_func_iconv" = yes; then
13575
81ecdfbb 13576$as_echo "#define HAVE_ICONV 1" >>confdefs.h
5ba684e2
NC
13577
13578 fi
13579 if test "$am_cv_lib_iconv" = yes; then
81ecdfbb
RW
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13581$as_echo_n "checking how to link with libiconv... " >&6; }
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13583$as_echo "$LIBICONV" >&6; }
5ba684e2
NC
13584 else
13585 CPPFLAGS="$am_save_CPPFLAGS"
13586 LIBICONV=
13587 LTLIBICONV=
13588 fi
13589
13590
13591
13592 if test "$am_cv_func_iconv" = yes; then
81ecdfbb
RW
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13594$as_echo_n "checking for iconv declaration... " >&6; }
13595 if test "${am_cv_proto_iconv+set}" = set; then :
13596 $as_echo_n "(cached) " >&6
5ba684e2
NC
13597else
13598
81ecdfbb 13599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5ba684e2
NC
13600/* end confdefs.h. */
13601
13602#include <stdlib.h>
13603#include <iconv.h>
13604extern
13605#ifdef __cplusplus
13606"C"
13607#endif
13608#if defined(__STDC__) || defined(__cplusplus)
13609size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13610#else
13611size_t iconv();
13612#endif
13613
13614int
13615main ()
13616{
13617
13618 ;
13619 return 0;
13620}
13621_ACEOF
81ecdfbb 13622if ac_fn_c_try_compile "$LINENO"; then :
5ba684e2
NC
13623 am_cv_proto_iconv_arg1=""
13624else
81ecdfbb 13625 am_cv_proto_iconv_arg1="const"
5ba684e2 13626fi
81ecdfbb 13627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5ba684e2
NC
13628 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);"
13629fi
13630
13631 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
81ecdfbb 13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
5ba684e2 13633 }$am_cv_proto_iconv" >&5
81ecdfbb
RW
13634$as_echo "${ac_t:-
13635 }$am_cv_proto_iconv" >&6; }
5ba684e2
NC
13636
13637cat >>confdefs.h <<_ACEOF
13638#define ICONV_CONST $am_cv_proto_iconv_arg1
13639_ACEOF
13640
13641 fi
13642
13643
252b5132
RH
13644all_targets=false
13645BUILD_NLMCONV=
13646NLMCONV_DEFS=
13647BUILD_SRCONV=
13648BUILD_DLLTOOL=
13649DLLTOOL_DEFS=
7aad4c3d 13650DLLTOOL_DEFAULT=
252b5132 13651BUILD_WINDRES=
692ed3e7 13652BUILD_WINDMC=
252b5132
RH
13653BUILD_DLLWRAP=
13654BUILD_MISC=
1d97d67f 13655BUILD_INSTALL_MISC=
8b1e6df3 13656OBJDUMP_DEFS=
252b5132
RH
13657
13658for targ in $target $canon_targets
13659do
13660 if test "x$targ" = "xall"; then
13661 all_targets=true
13662 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13663 BUILD_SRCONV='$(SRCONV_PROG)'
13664 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
1d97d67f 13665 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
003bc0ba
NC
13666 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13667 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13668 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13669 if test -z "$DLLTOOL_DEFAULT"; then
13670 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
13671 fi
13672 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
13673 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
252b5132
RH
13674 else
13675 case $targ in
42ecbf5e 13676 i[3-7]86*-*-netware*)
252b5132
RH
13677 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13678 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
13679 ;;
13680 alpha*-*-netware*)
13681 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13682 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
13683 ;;
13684 powerpc*-*-netware*)
13685 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13686 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
13687 ;;
13688 sparc*-*-netware*)
13689 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13690 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
13691 ;;
13692 esac
13693 case $targ in
13694 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
13695 esac
13696 case $targ in
a8c548cb
NC
13697 arm-epoc-pe*)
13698 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
13699 if test -z "$DLLTOOL_DEFAULT"; then
13700 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
13701 fi
a8c548cb
NC
13702 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
13703 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 13704 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
a8c548cb 13705 ;;
361dff73 13706 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
7148cc28 13707 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
13708 if test -z "$DLLTOOL_DEFAULT"; then
13709 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
13710 fi
7148cc28
NC
13711 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
13712 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 13713 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7148cc28
NC
13714 ;;
13715 arm-*-pe*)
252b5132 13716 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
13717 if test -z "$DLLTOOL_DEFAULT"; then
13718 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
13719 fi
252b5132
RH
13720 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
13721 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 13722 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 13723 ;;
27a710e5 13724 thumb-*-pe*)
252b5132 13725 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
13726 if test -z "$DLLTOOL_DEFAULT"; then
13727 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
13728 fi
252b5132
RH
13729 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
13730 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 13731 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 13732 ;;
42037fe5 13733 x86_64-*-mingw*)
99ad8390 13734 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
13735 if test -z "$DLLTOOL_DEFAULT"; then
13736 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
13737 fi
99ad8390
NC
13738 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
13739 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 13740 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
99ad8390
NC
13741 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
13742 ;;
80c7c40a 13743 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132 13744 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
13745 if test -z "$DLLTOOL_DEFAULT"; then
13746 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
13747 fi
252b5132
RH
13748 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
13749 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 13750 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
252b5132 13751 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 13752 ;;
80c7c40a 13753 i[3-7]86-*-interix)
7a7b06ef 13754 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
7aad4c3d
L
13755 if test -z "$DLLTOOL_DEFAULT"; then
13756 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
13757 fi
7a7b06ef
ILT
13758 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
13759 ;;
f0660b73
NC
13760 powerpc*-aix5.[01])
13761 ;;
e5231592 13762 powerpc*-aix[5-9].*)
f0660b73
NC
13763 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
13764 ;;
e1d5b1e7 13765 powerpc*-*-pe* | powerpc*-*-cygwin*)
252b5132 13766 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
13767 if test -z "$DLLTOOL_DEFAULT"; then
13768 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
13769 fi
252b5132
RH
13770 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
13771 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 13772 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 13773 ;;
59678365 13774 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
1d97d67f 13775 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
669a9a2a 13776 ;;
e1d5b1e7 13777 sh*-*-pe)
8a0e0f38 13778 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
13779 if test -z "$DLLTOOL_DEFAULT"; then
13780 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
13781 fi
8a0e0f38
NC
13782 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
13783 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 13784 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 13785 ;;
cd14b966 13786 spu-*-*)
1d97d67f 13787 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
cd14b966 13788 ;;
e1d5b1e7 13789 mips*-*-pe)
8a0e0f38 13790 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
13791 if test -z "$DLLTOOL_DEFAULT"; then
13792 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
13793 fi
8a0e0f38
NC
13794 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
13795 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 13796 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 13797 ;;
27a710e5 13798 mcore-*-pe)
661016bb 13799 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
13800 if test -z "$DLLTOOL_DEFAULT"; then
13801 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
13802 fi
661016bb
NC
13803 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
13804 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 13805 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 13806 ;;
27a710e5 13807 mcore-*-elf)
661016bb 13808 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
13809 if test -z "$DLLTOOL_DEFAULT"; then
13810 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
13811 fi
661016bb 13812 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 13813 ;;
15ab5209
DB
13814 mep-*)
13815 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
13816 ;;
252b5132
RH
13817 esac
13818 fi
13819done
13820
7aad4c3d
L
13821DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
13822
42ecbf5e
DJ
13823if test "${with_windres+set}" = set; then
13824 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13825fi
13826
692ed3e7
NC
13827if test "${with_windmc+set}" = set; then
13828 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13829fi
13830
13831
42ecbf5e
DJ
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
1d97d67f 13843
42ecbf5e
DJ
13844cat >>confdefs.h <<_ACEOF
13845#define TARGET "${target}"
13846_ACEOF
13847
13848
13849targ=$target
13850. $srcdir/../bfd/config.bfd
13851if test "x$targ_underscore" = "xyes"; then
13852 UNDERSCORE=1
13853else
13854 UNDERSCORE=0
13855fi
13856
13857cat >>confdefs.h <<_ACEOF
13858#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
13859_ACEOF
13860
13861
13862# Emulation
52fbfb5d
AM
13863targ=$target
13864. ${srcdir}/configure.tgt
13865EMULATION=$targ_emul
13866EMULATION_VECTOR=$targ_emul_vector
42ecbf5e
DJ
13867
13868
13869
13870
108a6f8e
CD
13871# Required for html and install-html
13872
13873
13874
13875
31dd3154 13876
81ecdfbb 13877ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
da594c4a 13878
42ecbf5e
DJ
13879cat >confcache <<\_ACEOF
13880# This file is a shell script that caches the results of configure
13881# tests run on this system so they can be shared between configure
13882# scripts and configure runs, see configure's option --config-cache.
13883# It is not useful on other systems. If it contains results you don't
13884# want to keep, you may remove or edit it.
13885#
13886# config.status only pays attention to the cache file if you give it
13887# the --recheck option to rerun configure.
13888#
13889# `ac_cv_env_foo' variables (set or unset) will be overridden when
13890# loading this file, other *unset* `ac_cv_foo' will be assigned the
13891# following values.
13892
13893_ACEOF
13894
13895# The following way of writing the cache mishandles newlines in values,
13896# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 13897# So, we kill variables containing newlines.
42ecbf5e
DJ
13898# Ultrix sh set writes to stderr and can't be redirected directly,
13899# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
13900(
13901 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13902 eval ac_val=\$$ac_var
13903 case $ac_val in #(
13904 *${as_nl}*)
13905 case $ac_var in #(
13906 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13907$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13908 esac
13909 case $ac_var in #(
13910 _ | IFS | as_nl) ;; #(
13911 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13912 *) { eval $ac_var=; unset $ac_var;} ;;
13913 esac ;;
13914 esac
13915 done
13916
42ecbf5e 13917 (set) 2>&1 |
81ecdfbb
RW
13918 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13919 *${as_nl}ac_space=\ *)
13920 # `set' does not quote correctly, so add quotes: double-quote
13921 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
13922 sed -n \
13923 "s/'/'\\\\''/g;
13924 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 13925 ;; #(
42ecbf5e
DJ
13926 *)
13927 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 13928 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 13929 ;;
81ecdfbb
RW
13930 esac |
13931 sort
13932) |
42ecbf5e 13933 sed '
81ecdfbb 13934 /^ac_cv_env_/b end
42ecbf5e 13935 t clear
81ecdfbb 13936 :clear
42ecbf5e
DJ
13937 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13938 t end
81ecdfbb
RW
13939 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13940 :end' >>confcache
13941if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13942 if test -w "$cache_file"; then
13943 test "x$cache_file" != "x/dev/null" &&
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13945$as_echo "$as_me: updating cache $cache_file" >&6;}
42ecbf5e
DJ
13946 cat confcache >$cache_file
13947 else
81ecdfbb
RW
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13949$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
13950 fi
13951fi
13952rm -f confcache
13953
13954test "x$prefix" = xNONE && prefix=$ac_default_prefix
13955# Let make expand exec_prefix.
13956test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13957
42ecbf5e
DJ
13958DEFS=-DHAVE_CONFIG_H
13959
13960ac_libobjs=
13961ac_ltlibobjs=
13962for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13963 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
13964 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13965 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13966 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13967 # will be set to the directory where LIBOBJS objects are built.
13968 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13969 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
13970done
13971LIBOBJS=$ac_libobjs
13972
13973LTLIBOBJS=$ac_ltlibobjs
13974
13975
13976if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
13977 as_fn_error "conditional \"AMDEP\" was never defined.
13978Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e
DJ
13979fi
13980if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
13981 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13982Usually this means the macro was only invoked conditionally." "$LINENO" 5
13983fi
13984 if test -n "$EXEEXT"; then
13985 am__EXEEXT_TRUE=
13986 am__EXEEXT_FALSE='#'
13987else
13988 am__EXEEXT_TRUE='#'
13989 am__EXEEXT_FALSE=
42ecbf5e 13990fi
81ecdfbb 13991
42ecbf5e 13992if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
13993 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13994Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 13995fi
d5fbea21 13996if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
13997 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
13998Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 13999fi
42ecbf5e
DJ
14000
14001: ${CONFIG_STATUS=./config.status}
81ecdfbb 14002ac_write_fail=0
42ecbf5e
DJ
14003ac_clean_files_save=$ac_clean_files
14004ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14005{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14006$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14007as_write_fail=0
14008cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
14009#! $SHELL
14010# Generated by $as_me.
14011# Run this file to recreate the current configuration.
14012# Compiler output produced by configure, useful for debugging
14013# configure, is in config.log if it exists.
14014
14015debug=false
14016ac_cs_recheck=false
14017ac_cs_silent=false
252b5132 14018
81ecdfbb
RW
14019SHELL=\${CONFIG_SHELL-$SHELL}
14020export SHELL
14021_ASEOF
14022cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14023## -------------------- ##
14024## M4sh Initialization. ##
14025## -------------------- ##
252b5132 14026
81ecdfbb
RW
14027# Be more Bourne compatible
14028DUALCASE=1; export DUALCASE # for MKS sh
14029if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
14030 emulate sh
14031 NULLCMD=:
81ecdfbb 14032 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
14033 # is contrary to our usage. Disable this feature.
14034 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14035 setopt NO_GLOB_SUBST
14036else
14037 case `(set -o) 2>/dev/null` in #(
14038 *posix*) :
14039 set -o posix ;; #(
14040 *) :
14041 ;;
14042esac
42ecbf5e 14043fi
252b5132 14044
81ecdfbb
RW
14045
14046as_nl='
14047'
14048export as_nl
14049# Printing a long string crashes Solaris 7 /usr/bin/printf.
14050as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14051as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14052as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14053# Prefer a ksh shell builtin over an external printf program on Solaris,
14054# but without wasting forks for bash or zsh.
14055if test -z "$BASH_VERSION$ZSH_VERSION" \
14056 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14057 as_echo='print -r --'
14058 as_echo_n='print -rn --'
14059elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14060 as_echo='printf %s\n'
14061 as_echo_n='printf %s'
14062else
14063 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14064 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14065 as_echo_n='/usr/ucb/echo -n'
14066 else
14067 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14068 as_echo_n_body='eval
14069 arg=$1;
14070 case $arg in #(
14071 *"$as_nl"*)
14072 expr "X$arg" : "X\\(.*\\)$as_nl";
14073 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14074 esac;
14075 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14076 '
14077 export as_echo_n_body
14078 as_echo_n='sh -c $as_echo_n_body as_echo'
14079 fi
14080 export as_echo_body
14081 as_echo='sh -c $as_echo_body as_echo'
14082fi
14083
14084# The user is always right.
14085if test "${PATH_SEPARATOR+set}" != set; then
14086 PATH_SEPARATOR=:
14087 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14088 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14089 PATH_SEPARATOR=';'
14090 }
42ecbf5e 14091fi
252b5132
RH
14092
14093
81ecdfbb
RW
14094# IFS
14095# We need space, tab and new line, in precisely that order. Quoting is
14096# there to prevent editors from complaining about space-tab.
14097# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14098# splitting by setting IFS to empty value.)
14099IFS=" "" $as_nl"
14100
14101# Find who we are. Look in the path if we contain no directory separator.
14102case $0 in #((
14103 *[\\/]* ) as_myself=$0 ;;
14104 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14105for as_dir in $PATH
14106do
14107 IFS=$as_save_IFS
14108 test -z "$as_dir" && as_dir=.
14109 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14110 done
14111IFS=$as_save_IFS
14112
14113 ;;
14114esac
14115# We did not find ourselves, most probably we were run as `sh COMMAND'
14116# in which case we are not to be found in the path.
14117if test "x$as_myself" = x; then
14118 as_myself=$0
14119fi
14120if test ! -f "$as_myself"; then
14121 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14122 exit 1
14123fi
14124
14125# Unset variables that we do not need and which cause bugs (e.g. in
14126# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14127# suppresses any "Segmentation fault" message there. '((' could
14128# trigger a bug in pdksh 5.2.14.
14129for as_var in BASH_ENV ENV MAIL MAILPATH
14130do eval test x\${$as_var+set} = xset \
14131 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14132done
42ecbf5e
DJ
14133PS1='$ '
14134PS2='> '
14135PS4='+ '
252b5132 14136
42ecbf5e 14137# NLS nuisances.
81ecdfbb
RW
14138LC_ALL=C
14139export LC_ALL
14140LANGUAGE=C
14141export LANGUAGE
14142
14143# CDPATH.
14144(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14145
14146
14147# as_fn_error ERROR [LINENO LOG_FD]
14148# ---------------------------------
14149# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14150# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14151# script with status $?, using 1 if that was 0.
14152as_fn_error ()
14153{
14154 as_status=$?; test $as_status -eq 0 && as_status=1
14155 if test "$3"; then
14156 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14157 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
42ecbf5e 14158 fi
81ecdfbb
RW
14159 $as_echo "$as_me: error: $1" >&2
14160 as_fn_exit $as_status
14161} # as_fn_error
14162
14163
14164# as_fn_set_status STATUS
14165# -----------------------
14166# Set $? to STATUS, without forking.
14167as_fn_set_status ()
14168{
14169 return $1
14170} # as_fn_set_status
14171
14172# as_fn_exit STATUS
14173# -----------------
14174# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14175as_fn_exit ()
14176{
14177 set +e
14178 as_fn_set_status $1
14179 exit $1
14180} # as_fn_exit
14181
14182# as_fn_unset VAR
14183# ---------------
14184# Portably unset VAR.
14185as_fn_unset ()
14186{
14187 { eval $1=; unset $1;}
14188}
14189as_unset=as_fn_unset
14190# as_fn_append VAR VALUE
14191# ----------------------
14192# Append the text in VALUE to the end of the definition contained in VAR. Take
14193# advantage of any shell optimizations that allow amortized linear growth over
14194# repeated appends, instead of the typical quadratic growth present in naive
14195# implementations.
14196if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14197 eval 'as_fn_append ()
14198 {
14199 eval $1+=\$2
14200 }'
14201else
14202 as_fn_append ()
14203 {
14204 eval $1=\$$1\$2
14205 }
14206fi # as_fn_append
14207
14208# as_fn_arith ARG...
14209# ------------------
14210# Perform arithmetic evaluation on the ARGs, and store the result in the
14211# global $as_val. Take advantage of shells that can avoid forks. The arguments
14212# must be portable across $(()) and expr.
14213if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14214 eval 'as_fn_arith ()
14215 {
14216 as_val=$(( $* ))
14217 }'
14218else
14219 as_fn_arith ()
14220 {
14221 as_val=`expr "$@" || test $? -eq 1`
14222 }
14223fi # as_fn_arith
14224
252b5132 14225
81ecdfbb
RW
14226if expr a : '\(a\)' >/dev/null 2>&1 &&
14227 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
14228 as_expr=expr
14229else
14230 as_expr=false
14231fi
252b5132 14232
81ecdfbb 14233if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
14234 as_basename=basename
14235else
14236 as_basename=false
14237fi
252b5132 14238
81ecdfbb
RW
14239if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14240 as_dirname=dirname
14241else
14242 as_dirname=false
14243fi
8b1e6df3 14244
81ecdfbb 14245as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
14246$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14247 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14248 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14249$as_echo X/"$0" |
14250 sed '/^.*\/\([^/][^/]*\)\/*$/{
14251 s//\1/
14252 q
14253 }
14254 /^X\/\(\/\/\)$/{
14255 s//\1/
14256 q
14257 }
14258 /^X\/\(\/\).*/{
14259 s//\1/
14260 q
14261 }
14262 s/.*/./; q'`
0218d1e4 14263
42ecbf5e
DJ
14264# Avoid depending upon Character Ranges.
14265as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14266as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14267as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14268as_cr_digits='0123456789'
14269as_cr_alnum=$as_cr_Letters$as_cr_digits
252b5132 14270
81ecdfbb
RW
14271ECHO_C= ECHO_N= ECHO_T=
14272case `echo -n x` in #(((((
14273-n*)
14274 case `echo 'xy\c'` in
14275 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14276 xy) ECHO_C='\c';;
14277 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14278 ECHO_T=' ';;
14279 esac;;
14280*)
14281 ECHO_N='-n';;
42ecbf5e 14282esac
eb1e0e80 14283
81ecdfbb
RW
14284rm -f conf$$ conf$$.exe conf$$.file
14285if test -d conf$$.dir; then
14286 rm -f conf$$.dir/conf$$.file
d15b04bd 14287else
81ecdfbb
RW
14288 rm -f conf$$.dir
14289 mkdir conf$$.dir 2>/dev/null
42ecbf5e 14290fi
81ecdfbb
RW
14291if (echo >conf$$.file) 2>/dev/null; then
14292 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 14293 as_ln_s='ln -s'
81ecdfbb
RW
14294 # ... but there are two gotchas:
14295 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14296 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14297 # In both cases, we have to default to `cp -p'.
14298 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14299 as_ln_s='cp -p'
14300 elif ln conf$$.file conf$$ 2>/dev/null; then
14301 as_ln_s=ln
14302 else
14303 as_ln_s='cp -p'
252b5132 14304 fi
42ecbf5e
DJ
14305else
14306 as_ln_s='cp -p'
252b5132 14307fi
81ecdfbb
RW
14308rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14309rmdir conf$$.dir 2>/dev/null
14310
14311
14312# as_fn_mkdir_p
14313# -------------
14314# Create "$as_dir" as a directory, including parents if necessary.
14315as_fn_mkdir_p ()
14316{
14317
14318 case $as_dir in #(
14319 -*) as_dir=./$as_dir;;
14320 esac
14321 test -d "$as_dir" || eval $as_mkdir_p || {
14322 as_dirs=
14323 while :; do
14324 case $as_dir in #(
14325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14326 *) as_qdir=$as_dir;;
14327 esac
14328 as_dirs="'$as_qdir' $as_dirs"
14329 as_dir=`$as_dirname -- "$as_dir" ||
14330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14331 X"$as_dir" : 'X\(//\)[^/]' \| \
14332 X"$as_dir" : 'X\(//\)$' \| \
14333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14334$as_echo X"$as_dir" |
14335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14336 s//\1/
14337 q
14338 }
14339 /^X\(\/\/\)[^/].*/{
14340 s//\1/
14341 q
14342 }
14343 /^X\(\/\/\)$/{
14344 s//\1/
14345 q
14346 }
14347 /^X\(\/\).*/{
14348 s//\1/
14349 q
14350 }
14351 s/.*/./; q'`
14352 test -d "$as_dir" && break
14353 done
14354 test -z "$as_dirs" || eval "mkdir $as_dirs"
14355 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14356
252b5132 14357
81ecdfbb 14358} # as_fn_mkdir_p
42ecbf5e 14359if mkdir -p . 2>/dev/null; then
81ecdfbb 14360 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
14361else
14362 test -d ./-p && rmdir ./-p
14363 as_mkdir_p=false
14364fi
81ecdfbb
RW
14365
14366if test -x / >/dev/null 2>&1; then
14367 as_test_x='test -x'
14368else
14369 if ls -dL / >/dev/null 2>&1; then
14370 as_ls_L_option=L
14371 else
14372 as_ls_L_option=
14373 fi
14374 as_test_x='
14375 eval sh -c '\''
14376 if test -d "$1"; then
14377 test -d "$1/.";
14378 else
14379 case $1 in #(
14380 -*)set "./$1";;
14381 esac;
14382 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14383 ???[sx]*):;;*)false;;esac;fi
14384 '\'' sh
14385 '
14386fi
14387as_executable_p=$as_test_x
252b5132 14388
42ecbf5e
DJ
14389# Sed expression to map a string onto a valid CPP name.
14390as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14391
14392# Sed expression to map a string onto a valid variable name.
14393as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14394
14395
42ecbf5e 14396exec 6>&1
81ecdfbb
RW
14397## ----------------------------------- ##
14398## Main body of $CONFIG_STATUS script. ##
14399## ----------------------------------- ##
14400_ASEOF
14401test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
42ecbf5e 14402
81ecdfbb
RW
14403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14404# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 14405# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14406# values after options handling.
14407ac_log="
42ecbf5e 14408This file was extended by $as_me, which was
81ecdfbb 14409generated by GNU Autoconf 2.64. Invocation command line was
42ecbf5e
DJ
14410
14411 CONFIG_FILES = $CONFIG_FILES
14412 CONFIG_HEADERS = $CONFIG_HEADERS
14413 CONFIG_LINKS = $CONFIG_LINKS
14414 CONFIG_COMMANDS = $CONFIG_COMMANDS
14415 $ $0 $@
14416
81ecdfbb
RW
14417on `(hostname || uname -n) 2>/dev/null | sed 1q`
14418"
14419
42ecbf5e
DJ
14420_ACEOF
14421
81ecdfbb
RW
14422case $ac_config_files in *"
14423"*) set x $ac_config_files; shift; ac_config_files=$*;;
14424esac
252b5132 14425
81ecdfbb
RW
14426case $ac_config_headers in *"
14427"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14428esac
e5a52504
MM
14429
14430
81ecdfbb
RW
14431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14432# Files that config.status was made for.
14433config_files="$ac_config_files"
14434config_headers="$ac_config_headers"
14435config_commands="$ac_config_commands"
d15b04bd 14436
81ecdfbb 14437_ACEOF
42ecbf5e 14438
81ecdfbb 14439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 14440ac_cs_usage="\
81ecdfbb
RW
14441\`$as_me' instantiates files and other configuration actions
14442from templates according to the current configuration. Unless the files
14443and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 14444
81ecdfbb 14445Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
14446
14447 -h, --help print this help, then exit
81ecdfbb
RW
14448 -V, --version print version number and configuration settings, then exit
14449 -q, --quiet, --silent
14450 do not print progress messages
42ecbf5e
DJ
14451 -d, --debug don't remove temporary files
14452 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14453 --file=FILE[:TEMPLATE]
14454 instantiate the configuration file FILE
14455 --header=FILE[:TEMPLATE]
14456 instantiate the configuration header FILE
42ecbf5e
DJ
14457
14458Configuration files:
14459$config_files
14460
14461Configuration headers:
14462$config_headers
14463
14464Configuration commands:
14465$config_commands
14466
81ecdfbb 14467Report bugs to the package provider."
42ecbf5e 14468
81ecdfbb
RW
14469_ACEOF
14470cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e
DJ
14471ac_cs_version="\\
14472config.status
81ecdfbb
RW
14473configured by $0, generated by GNU Autoconf 2.64,
14474 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42ecbf5e 14475
81ecdfbb 14476Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
14477This config.status script is free software; the Free Software Foundation
14478gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14479
14480ac_pwd='$ac_pwd'
14481srcdir='$srcdir'
14482INSTALL='$INSTALL'
14483MKDIR_P='$MKDIR_P'
14484AWK='$AWK'
14485test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
14486_ACEOF
14487
81ecdfbb
RW
14488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14489# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
14490ac_need_defaults=:
14491while test $# != 0
14492do
14493 case $1 in
14494 --*=*)
81ecdfbb
RW
14495 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14496 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e
DJ
14497 ac_shift=:
14498 ;;
81ecdfbb 14499 *)
42ecbf5e
DJ
14500 ac_option=$1
14501 ac_optarg=$2
14502 ac_shift=shift
14503 ;;
42ecbf5e
DJ
14504 esac
14505
14506 case $ac_option in
14507 # Handling of the options.
42ecbf5e
DJ
14508 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14509 ac_cs_recheck=: ;;
81ecdfbb
RW
14510 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14511 $as_echo "$ac_cs_version"; exit ;;
14512 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
14513 debug=: ;;
14514 --file | --fil | --fi | --f )
14515 $ac_shift
81ecdfbb
RW
14516 case $ac_optarg in
14517 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14518 esac
14519 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
14520 ac_need_defaults=false;;
14521 --header | --heade | --head | --hea )
14522 $ac_shift
81ecdfbb
RW
14523 case $ac_optarg in
14524 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14525 esac
14526 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 14527 ac_need_defaults=false;;
81ecdfbb
RW
14528 --he | --h)
14529 # Conflict between --help and --header
14530 as_fn_error "ambiguous option: \`$1'
14531Try \`$0 --help' for more information.";;
14532 --help | --hel | -h )
14533 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
14534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14535 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14536 ac_cs_silent=: ;;
14537
14538 # This is an error.
81ecdfbb
RW
14539 -*) as_fn_error "unrecognized option: \`$1'
14540Try \`$0 --help' for more information." ;;
42ecbf5e 14541
81ecdfbb
RW
14542 *) as_fn_append ac_config_targets " $1"
14543 ac_need_defaults=false ;;
42ecbf5e
DJ
14544
14545 esac
14546 shift
14547done
14548
14549ac_configure_extra_args=
14550
14551if $ac_cs_silent; then
14552 exec 6>/dev/null
14553 ac_configure_extra_args="$ac_configure_extra_args --silent"
14554fi
14555
14556_ACEOF
81ecdfbb 14557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 14558if \$ac_cs_recheck; then
81ecdfbb
RW
14559 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14560 shift
14561 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14562 CONFIG_SHELL='$SHELL'
14563 export CONFIG_SHELL
14564 exec "\$@"
42ecbf5e
DJ
14565fi
14566
14567_ACEOF
81ecdfbb
RW
14568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14569exec 5>>config.log
14570{
14571 echo
14572 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14573## Running $as_me. ##
14574_ASBOX
14575 $as_echo "$ac_log"
14576} >&5
42ecbf5e 14577
81ecdfbb
RW
14578_ACEOF
14579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d15b04bd 14580#
81ecdfbb 14581# INIT-COMMANDS
d15b04bd 14582#
42ecbf5e 14583AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
14584
14585
14586# The HP-UX ksh and POSIX shell print the target directory to stdout
14587# if CDPATH is set.
14588(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14589
14590sed_quote_subst='$sed_quote_subst'
14591double_quote_subst='$double_quote_subst'
14592delay_variable_subst='$delay_variable_subst'
14593macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14594macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14595enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14596enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14597pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14598enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14599host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14600host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14601host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14602build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14603build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14604build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14605SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14606Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14607GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14608EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14609FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14610LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14611NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14612LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14613max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14614ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14615exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14616lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14617lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14618lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14619reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14620reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8 14621OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
14622deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14623file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14624AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14625AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14626STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14627RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14628old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14629old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14630old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14631CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14632CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14633compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14634GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14635lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14636lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14637lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8 14638lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
14639objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14640SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14641ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14642MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14643lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14644lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14645lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14646lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14647lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14648need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8
SE
14649DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14650NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14651LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14652OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14653OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
14654libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14655shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14656extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14657archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14658enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14659export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14660whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14661compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14662old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14663old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14664archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14665archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14666module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14667module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14668with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14669allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14670no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14671hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14672hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14673hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14674hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14675hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14676hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14677hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14678hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14679inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14680link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14681fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14682always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14683export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14684exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14685include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14686prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14687file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14688variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14689need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14690need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14691version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14692runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14693shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14694shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14695libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14696library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14697soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14698postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14699postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14700finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14701finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14702hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14703sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14704sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14705hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14706enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14707enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14708enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14709old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14710striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14711
14712LTCC='$LTCC'
14713LTCFLAGS='$LTCFLAGS'
14714compiler='$compiler_DEFAULT'
14715
14716# Quote evaled strings.
14717for var in SED \
14718GREP \
14719EGREP \
14720FGREP \
14721LD \
14722NM \
14723LN_S \
14724lt_SP2NL \
14725lt_NL2SP \
14726reload_flag \
718a6fd8 14727OBJDUMP \
d7040cdb
SE
14728deplibs_check_method \
14729file_magic_cmd \
14730AR \
14731AR_FLAGS \
14732STRIP \
14733RANLIB \
14734CC \
14735CFLAGS \
14736compiler \
14737lt_cv_sys_global_symbol_pipe \
14738lt_cv_sys_global_symbol_to_cdecl \
14739lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 14740lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
14741SHELL \
14742ECHO \
14743lt_prog_compiler_no_builtin_flag \
14744lt_prog_compiler_wl \
14745lt_prog_compiler_pic \
14746lt_prog_compiler_static \
14747lt_cv_prog_compiler_c_o \
14748need_locks \
718a6fd8
SE
14749DSYMUTIL \
14750NMEDIT \
14751LIPO \
14752OTOOL \
14753OTOOL64 \
d7040cdb
SE
14754shrext_cmds \
14755export_dynamic_flag_spec \
14756whole_archive_flag_spec \
14757compiler_needs_object \
14758with_gnu_ld \
14759allow_undefined_flag \
14760no_undefined_flag \
14761hardcode_libdir_flag_spec \
14762hardcode_libdir_flag_spec_ld \
14763hardcode_libdir_separator \
14764fix_srcfile_path \
14765exclude_expsyms \
14766include_expsyms \
14767file_list_spec \
14768variables_saved_for_relink \
14769libname_spec \
14770library_names_spec \
14771soname_spec \
14772finish_eval \
14773old_striplib \
14774striplib; do
14775 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14776 *[\\\\\\\`\\"\\\$]*)
14777 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14778 ;;
14779 *)
14780 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14781 ;;
14782 esac
14783done
14784
14785# Double-quote double-evaled strings.
14786for var in reload_cmds \
14787old_postinstall_cmds \
14788old_postuninstall_cmds \
14789old_archive_cmds \
14790extract_expsyms_cmds \
14791old_archive_from_new_cmds \
14792old_archive_from_expsyms_cmds \
14793archive_cmds \
14794archive_expsym_cmds \
14795module_cmds \
14796module_expsym_cmds \
14797export_symbols_cmds \
14798prelink_cmds \
14799postinstall_cmds \
14800postuninstall_cmds \
14801finish_cmds \
14802sys_lib_search_path_spec \
14803sys_lib_dlsearch_path_spec; do
14804 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14805 *[\\\\\\\`\\"\\\$]*)
14806 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14807 ;;
14808 *)
14809 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14810 ;;
14811 esac
14812done
14813
14814# Fix-up fallback echo if it was mangled by the above quoting rules.
14815case \$lt_ECHO in
14816*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14817 ;;
14818esac
14819
14820ac_aux_dir='$ac_aux_dir'
14821xsi_shell='$xsi_shell'
14822lt_shell_append='$lt_shell_append'
14823
14824# See if we are running on zsh, and set the options which allow our
14825# commands through without removal of \ escapes INIT.
14826if test -n "\${ZSH_VERSION+set}" ; then
14827 setopt NO_GLOB_SUBST
14828fi
14829
14830
14831 PACKAGE='$PACKAGE'
14832 VERSION='$VERSION'
14833 TIMESTAMP='$TIMESTAMP'
14834 RM='$RM'
14835 ofile='$ofile'
14836
14837
14838
20e95c23
DJ
14839# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14840 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14841 # from automake.
14842 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14843 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14844 LINGUAS="${LINGUAS-%UNSET%}"
14845
42ecbf5e
DJ
14846
14847_ACEOF
14848
81ecdfbb 14849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 14850
81ecdfbb 14851# Handling of arguments.
42ecbf5e 14852for ac_config_target in $ac_config_targets
252b5132 14853do
81ecdfbb
RW
14854 case $ac_config_target in
14855 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14856 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14857 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14858 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14859 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14860 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14861 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14862
14863 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
d15b04bd 14864 esac
252b5132
RH
14865done
14866
81ecdfbb 14867
42ecbf5e
DJ
14868# If the user did not use the arguments to specify the items to instantiate,
14869# then the envvar interface is used. Set only those that are not.
14870# We use the long form for the default assignment because of an extremely
14871# bizarre bug on SunOS 4.1.3.
14872if $ac_need_defaults; then
14873 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14874 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14875 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14876fi
14877
14878# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14879# simply because there is no reason against having it here, and in addition,
42ecbf5e 14880# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14881# Hook for its removal unless debugging.
14882# Note that there is a small window in which the directory will not be cleaned:
14883# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
14884$debug ||
14885{
81ecdfbb
RW
14886 tmp=
14887 trap 'exit_status=$?
14888 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14889' 0
14890 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 14891}
42ecbf5e 14892# Create a (secure) tmp directory for tmp files.
e5a52504 14893
42ecbf5e 14894{
81ecdfbb 14895 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42ecbf5e
DJ
14896 test -n "$tmp" && test -d "$tmp"
14897} ||
14898{
81ecdfbb
RW
14899 tmp=./conf$$-$RANDOM
14900 (umask 077 && mkdir "$tmp")
14901} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14902
14903# Set up the scripts for CONFIG_FILES section.
14904# No need to generate them if there are no CONFIG_FILES.
14905# This happens for instance with `./config.status config.h'.
14906if test -n "$CONFIG_FILES"; then
14907
14908
14909ac_cr=`echo X | tr X '\015'`
14910# On cygwin, bash can eat \r inside `` if the user requested igncr.
14911# But we know of no other shell where ac_cr would be empty at this
14912# point, so we can use a bashism as a fallback.
14913if test "x$ac_cr" = x; then
14914 eval ac_cr=\$\'\\r\'
14915fi
14916ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14917if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14918 ac_cs_awk_cr='\r'
14919else
14920 ac_cs_awk_cr=$ac_cr
14921fi
14922
14923echo 'BEGIN {' >"$tmp/subs1.awk" &&
14924_ACEOF
14925
14926
14927{
14928 echo "cat >conf$$subs.awk <<_ACEOF" &&
14929 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14930 echo "_ACEOF"
14931} >conf$$subs.sh ||
14932 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14933ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14934ac_delim='%!_!# '
14935for ac_last_try in false false false false false :; do
14936 . ./conf$$subs.sh ||
14937 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14938
14939 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14940 if test $ac_delim_n = $ac_delim_num; then
14941 break
14942 elif $ac_last_try; then
14943 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14944 else
14945 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14946 fi
14947done
14948rm -f conf$$subs.sh
14949
14950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14951cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14952_ACEOF
14953sed -n '
14954h
14955s/^/S["/; s/!.*/"]=/
14956p
14957g
14958s/^[^!]*!//
14959:repl
14960t repl
14961s/'"$ac_delim"'$//
14962t delim
14963:nl
14964h
14965s/\(.\{148\}\).*/\1/
14966t more1
14967s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14968p
14969n
14970b repl
14971:more1
14972s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14973p
14974g
14975s/.\{148\}//
14976t nl
14977:delim
14978h
14979s/\(.\{148\}\).*/\1/
14980t more2
14981s/["\\]/\\&/g; s/^/"/; s/$/"/
14982p
14983b
14984:more2
14985s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14986p
14987g
14988s/.\{148\}//
14989t delim
14990' <conf$$subs.awk | sed '
14991/^[^""]/{
14992 N
14993 s/\n//
14994}
14995' >>$CONFIG_STATUS || ac_write_fail=1
14996rm -f conf$$subs.awk
14997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14998_ACAWK
14999cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15000 for (key in S) S_is_set[key] = 1
15001 FS = "\a"
15002
15003}
42ecbf5e 15004{
81ecdfbb
RW
15005 line = $ 0
15006 nfields = split(line, field, "@")
15007 substed = 0
15008 len = length(field[1])
15009 for (i = 2; i < nfields; i++) {
15010 key = field[i]
15011 keylen = length(key)
15012 if (S_is_set[key]) {
15013 value = S[key]
15014 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15015 len += length(value) + length(field[++i])
15016 substed = 1
15017 } else
15018 len += 1 + keylen
15019 }
15020
15021 print line
42ecbf5e
DJ
15022}
15023
81ecdfbb
RW
15024_ACAWK
15025_ACEOF
15026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15027if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15028 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15029else
15030 cat
15031fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15032 || as_fn_error "could not setup config files machinery" "$LINENO" 5
42ecbf5e
DJ
15033_ACEOF
15034
81ecdfbb
RW
15035# VPATH may cause trouble with some makes, so we remove $(srcdir),
15036# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15037# trailing colons and then remove the whole line if VPATH becomes empty
15038# (actually we leave an empty line to preserve line numbers).
15039if test "x$srcdir" = x.; then
15040 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15041s/:*\$(srcdir):*/:/
15042s/:*\${srcdir}:*/:/
15043s/:*@srcdir@:*/:/
15044s/^\([^=]*=[ ]*\):*/\1/
15045s/:*$//
15046s/^[^=]*=[ ]*$//
15047}'
15048fi
e5a52504 15049
81ecdfbb
RW
15050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15051fi # test -n "$CONFIG_FILES"
252b5132 15052
81ecdfbb
RW
15053# Set up the scripts for CONFIG_HEADERS section.
15054# No need to generate them if there are no CONFIG_HEADERS.
15055# This happens for instance with `./config.status Makefile'.
15056if test -n "$CONFIG_HEADERS"; then
15057cat >"$tmp/defines.awk" <<\_ACAWK ||
15058BEGIN {
42ecbf5e
DJ
15059_ACEOF
15060
81ecdfbb
RW
15061# Transform confdefs.h into an awk script `defines.awk', embedded as
15062# here-document in config.status, that substitutes the proper values into
15063# config.h.in to produce config.h.
15064
15065# Create a delimiter string that does not exist in confdefs.h, to ease
15066# handling of long lines.
15067ac_delim='%!_!# '
15068for ac_last_try in false false :; do
15069 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15070 if test -z "$ac_t"; then
15071 break
15072 elif $ac_last_try; then
15073 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15074 else
15075 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
252b5132 15076 fi
81ecdfbb 15077done
252b5132 15078
81ecdfbb
RW
15079# For the awk script, D is an array of macro values keyed by name,
15080# likewise P contains macro parameters if any. Preserve backslash
15081# newline sequences.
15082
15083ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15084sed -n '
15085s/.\{148\}/&'"$ac_delim"'/g
15086t rset
15087:rset
15088s/^[ ]*#[ ]*define[ ][ ]*/ /
15089t def
15090d
15091:def
15092s/\\$//
15093t bsnl
15094s/["\\]/\\&/g
15095s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15096D["\1"]=" \3"/p
15097s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15098d
15099:bsnl
15100s/["\\]/\\&/g
15101s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15102D["\1"]=" \3\\\\\\n"\\/p
15103t cont
15104s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15105t cont
15106d
15107:cont
15108n
15109s/.\{148\}/&'"$ac_delim"'/g
15110t clear
15111:clear
15112s/\\$//
15113t bsnlc
15114s/["\\]/\\&/g; s/^/"/; s/$/"/p
15115d
15116:bsnlc
15117s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15118b cont
15119' <confdefs.h | sed '
15120s/'"$ac_delim"'/"\\\
15121"/g' >>$CONFIG_STATUS || ac_write_fail=1
15122
15123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15124 for (key in D) D_is_set[key] = 1
15125 FS = "\a"
15126}
15127/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15128 line = \$ 0
15129 split(line, arg, " ")
15130 if (arg[1] == "#") {
15131 defundef = arg[2]
15132 mac1 = arg[3]
15133 } else {
15134 defundef = substr(arg[1], 2)
15135 mac1 = arg[2]
15136 }
15137 split(mac1, mac2, "(") #)
15138 macro = mac2[1]
15139 prefix = substr(line, 1, index(line, defundef) - 1)
15140 if (D_is_set[macro]) {
15141 # Preserve the white space surrounding the "#".
15142 print prefix "define", macro P[macro] D[macro]
15143 next
15144 } else {
15145 # Replace #undef with comments. This is necessary, for example,
15146 # in the case of _POSIX_SOURCE, which is predefined and required
15147 # on some systems where configure will not decide to define it.
15148 if (defundef == "undef") {
15149 print "/*", prefix defundef, macro, "*/"
15150 next
15151 }
15152 }
15153}
15154{ print }
15155_ACAWK
42ecbf5e 15156_ACEOF
81ecdfbb
RW
15157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15158 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15159fi # test -n "$CONFIG_HEADERS"
15160
15161
15162eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15163shift
15164for ac_tag
15165do
15166 case $ac_tag in
15167 :[FHLC]) ac_mode=$ac_tag; continue;;
15168 esac
15169 case $ac_mode$ac_tag in
15170 :[FHL]*:*);;
15171 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15172 :[FH]-) ac_tag=-:-;;
15173 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15174 esac
15175 ac_save_IFS=$IFS
15176 IFS=:
15177 set x $ac_tag
15178 IFS=$ac_save_IFS
15179 shift
15180 ac_file=$1
15181 shift
15182
15183 case $ac_mode in
15184 :L) ac_source=$1;;
15185 :[FH])
15186 ac_file_inputs=
15187 for ac_f
15188 do
15189 case $ac_f in
15190 -) ac_f="$tmp/stdin";;
15191 *) # Look for the file first in the build tree, then in the source tree
15192 # (if the path is not absolute). The absolute path cannot be DOS-style,
15193 # because $ac_f cannot contain `:'.
15194 test -f "$ac_f" ||
15195 case $ac_f in
15196 [\\/$]*) false;;
15197 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15198 esac ||
15199 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15200 esac
15201 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15202 as_fn_append ac_file_inputs " '$ac_f'"
15203 done
15204
15205 # Let's still pretend it is `configure' which instantiates (i.e., don't
15206 # use $as_me), people would be surprised to read:
15207 # /* config.h. Generated by config.status. */
15208 configure_input='Generated from '`
15209 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15210 `' by configure.'
15211 if test x"$ac_file" != x-; then
15212 configure_input="$ac_file. $configure_input"
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15214$as_echo "$as_me: creating $ac_file" >&6;}
15215 fi
15216 # Neutralize special characters interpreted by sed in replacement strings.
15217 case $configure_input in #(
15218 *\&* | *\|* | *\\* )
15219 ac_sed_conf_input=`$as_echo "$configure_input" |
15220 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15221 *) ac_sed_conf_input=$configure_input;;
15222 esac
15223
15224 case $ac_tag in
15225 *:-:* | *:-) cat >"$tmp/stdin" \
15226 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15227 esac
15228 ;;
252b5132
RH
15229 esac
15230
81ecdfbb 15231 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
15232$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15233 X"$ac_file" : 'X\(//\)[^/]' \| \
15234 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15235 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15236$as_echo X"$ac_file" |
15237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15238 s//\1/
15239 q
15240 }
15241 /^X\(\/\/\)[^/].*/{
15242 s//\1/
15243 q
15244 }
15245 /^X\(\/\/\)$/{
15246 s//\1/
15247 q
15248 }
15249 /^X\(\/\).*/{
15250 s//\1/
15251 q
15252 }
15253 s/.*/./; q'`
15254 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e 15255 ac_builddir=.
e5a52504 15256
81ecdfbb
RW
15257case "$ac_dir" in
15258.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15259*)
15260 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15261 # A ".." for each directory in $ac_dir_suffix.
15262 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15263 case $ac_top_builddir_sub in
15264 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15265 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15266 esac ;;
15267esac
15268ac_abs_top_builddir=$ac_pwd
15269ac_abs_builddir=$ac_pwd$ac_dir_suffix
15270# for backward compatibility:
15271ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
15272
15273case $srcdir in
81ecdfbb 15274 .) # We are building in place.
42ecbf5e 15275 ac_srcdir=.
81ecdfbb
RW
15276 ac_top_srcdir=$ac_top_builddir_sub
15277 ac_abs_top_srcdir=$ac_pwd ;;
15278 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 15279 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15280 ac_top_srcdir=$srcdir
15281 ac_abs_top_srcdir=$srcdir ;;
15282 *) # Relative name.
15283 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15284 ac_top_srcdir=$ac_top_build_prefix$srcdir
15285 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 15286esac
81ecdfbb 15287ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15288
e5a52504 15289
81ecdfbb
RW
15290 case $ac_mode in
15291 :F)
15292 #
15293 # CONFIG_FILE
15294 #
42ecbf5e
DJ
15295
15296 case $INSTALL in
15297 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
15298 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15299 esac
15300 ac_MKDIR_P=$MKDIR_P
15301 case $MKDIR_P in
15302 [\\/$]* | ?:[\\/]* ) ;;
15303 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 15304 esac
81ecdfbb 15305_ACEOF
e5a52504 15306
81ecdfbb
RW
15307cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15308# If the template does not know about datarootdir, expand it.
15309# FIXME: This hack should be removed a few years after 2.60.
15310ac_datarootdir_hack=; ac_datarootdir_seen=
15311ac_sed_dataroot='
15312/datarootdir/ {
15313 p
15314 q
15315}
15316/@datadir@/p
15317/@docdir@/p
15318/@infodir@/p
15319/@localedir@/p
15320/@mandir@/p'
15321case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15322*datarootdir*) ac_datarootdir_seen=yes;;
15323*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15325$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15326_ACEOF
15327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15328 ac_datarootdir_hack='
15329 s&@datadir@&$datadir&g
15330 s&@docdir@&$docdir&g
15331 s&@infodir@&$infodir&g
15332 s&@localedir@&$localedir&g
15333 s&@mandir@&$mandir&g
15334 s&\\\${datarootdir}&$datarootdir&g' ;;
15335esac
42ecbf5e 15336_ACEOF
81ecdfbb
RW
15337
15338# Neutralize VPATH when `$srcdir' = `.'.
15339# Shell code in configure.ac might set extrasub.
15340# FIXME: do we really want to maintain this feature?
15341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15342ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
15343$extrasub
15344_ACEOF
81ecdfbb 15345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
15346:t
15347/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15348s|@configure_input@|$ac_sed_conf_input|;t t
15349s&@top_builddir@&$ac_top_builddir_sub&;t t
15350s&@top_build_prefix@&$ac_top_build_prefix&;t t
15351s&@srcdir@&$ac_srcdir&;t t
15352s&@abs_srcdir@&$ac_abs_srcdir&;t t
15353s&@top_srcdir@&$ac_top_srcdir&;t t
15354s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15355s&@builddir@&$ac_builddir&;t t
15356s&@abs_builddir@&$ac_abs_builddir&;t t
15357s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15358s&@INSTALL@&$ac_INSTALL&;t t
15359s&@MKDIR_P@&$ac_MKDIR_P&;t t
15360$ac_datarootdir_hack
15361"
15362eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15363 || as_fn_error "could not create $ac_file" "$LINENO" 5
15364
15365test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15366 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15367 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15369which seems to be undefined. Please make sure it is defined." >&5
15370$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15371which seems to be undefined. Please make sure it is defined." >&2;}
15372
15373 rm -f "$tmp/stdin"
42ecbf5e 15374 case $ac_file in
81ecdfbb
RW
15375 -) cat "$tmp/out" && rm -f "$tmp/out";;
15376 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15377 esac \
15378 || as_fn_error "could not create $ac_file" "$LINENO" 5
15379 ;;
15380 :H)
15381 #
15382 # CONFIG_HEADER
15383 #
42ecbf5e 15384 if test x"$ac_file" != x-; then
81ecdfbb
RW
15385 {
15386 $as_echo "/* $configure_input */" \
15387 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15388 } >"$tmp/config.h" \
15389 || as_fn_error "could not create $ac_file" "$LINENO" 5
15390 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15392$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 15393 else
81ecdfbb
RW
15394 rm -f "$ac_file"
15395 mv "$tmp/config.h" "$ac_file" \
15396 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 15397 fi
42ecbf5e 15398 else
81ecdfbb
RW
15399 $as_echo "/* $configure_input */" \
15400 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15401 || as_fn_error "could not create -" "$LINENO" 5
252b5132 15402 fi
81ecdfbb
RW
15403# Compute "$ac_file"'s index in $config_headers.
15404_am_arg="$ac_file"
42ecbf5e
DJ
15405_am_stamp_count=1
15406for _am_header in $config_headers :; do
15407 case $_am_header in
81ecdfbb 15408 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
15409 break ;;
15410 * )
15411 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15412 esac
15413done
81ecdfbb
RW
15414echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15415$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15416 X"$_am_arg" : 'X\(//\)[^/]' \| \
15417 X"$_am_arg" : 'X\(//\)$' \| \
15418 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15419$as_echo X"$_am_arg" |
15420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15421 s//\1/
15422 q
15423 }
15424 /^X\(\/\/\)[^/].*/{
15425 s//\1/
15426 q
15427 }
15428 /^X\(\/\/\)$/{
15429 s//\1/
15430 q
15431 }
15432 /^X\(\/\).*/{
15433 s//\1/
15434 q
15435 }
15436 s/.*/./; q'`/stamp-h$_am_stamp_count
15437 ;;
42ecbf5e 15438
81ecdfbb
RW
15439 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15440$as_echo "$as_me: executing $ac_file commands" >&6;}
15441 ;;
15442 esac
e5a52504 15443
42ecbf5e 15444
81ecdfbb
RW
15445 case $ac_file$ac_mode in
15446 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15447 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15448 # are listed without --file. Let's play safe and only enable the eval
15449 # if we detect the quoting.
15450 case $CONFIG_FILES in
15451 *\'*) eval set x "$CONFIG_FILES" ;;
15452 *) set x $CONFIG_FILES ;;
15453 esac
15454 shift
15455 for mf
15456 do
15457 # Strip MF so we end up with the name of the file.
15458 mf=`echo "$mf" | sed -e 's/:.*$//'`
15459 # Check whether this is an Automake generated Makefile or not.
15460 # We used to match only the files named `Makefile.in', but
15461 # some people rename them; so instead we look at the file content.
15462 # Grep'ing the first line is not enough: some people post-process
15463 # each Makefile.in and add a new line on top of each file to say so.
15464 # Grep'ing the whole file is not good either: AIX grep has a line
15465 # limit of 2048, but all sed's we know have understand at least 4000.
15466 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15467 dirpart=`$as_dirname -- "$mf" ||
42ecbf5e
DJ
15468$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15469 X"$mf" : 'X\(//\)[^/]' \| \
15470 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
15471 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15472$as_echo X"$mf" |
15473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15474 s//\1/
15475 q
15476 }
15477 /^X\(\/\/\)[^/].*/{
15478 s//\1/
15479 q
15480 }
15481 /^X\(\/\/\)$/{
15482 s//\1/
15483 q
15484 }
15485 /^X\(\/\).*/{
15486 s//\1/
15487 q
15488 }
15489 s/.*/./; q'`
15490 else
15491 continue
15492 fi
15493 # Extract the definition of DEPDIR, am__include, and am__quote
15494 # from the Makefile without running `make'.
15495 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15496 test -z "$DEPDIR" && continue
15497 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15498 test -z "am__include" && continue
15499 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15500 # When using ansi2knr, U may be empty or an underscore; expand it
15501 U=`sed -n 's/^U = //p' < "$mf"`
15502 # Find all dependency output files, they are included files with
15503 # $(DEPDIR) in their names. We invoke sed twice because it is the
15504 # simplest approach to changing $(DEPDIR) to its actual value in the
15505 # expansion.
15506 for file in `sed -n "
15507 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15508 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15509 # Make sure the directory exists.
15510 test -f "$dirpart/$file" && continue
15511 fdir=`$as_dirname -- "$file" ||
42ecbf5e
DJ
15512$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15513 X"$file" : 'X\(//\)[^/]' \| \
15514 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
15515 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15516$as_echo X"$file" |
15517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15518 s//\1/
15519 q
15520 }
15521 /^X\(\/\/\)[^/].*/{
15522 s//\1/
15523 q
15524 }
15525 /^X\(\/\/\)$/{
15526 s//\1/
15527 q
15528 }
15529 /^X\(\/\).*/{
15530 s//\1/
15531 q
15532 }
15533 s/.*/./; q'`
15534 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15535 # echo "creating $dirpart/$file"
15536 echo '# dummy' > "$dirpart/$file"
42ecbf5e 15537 done
42ecbf5e 15538 done
81ecdfbb 15539}
d7040cdb 15540 ;;
81ecdfbb 15541 "libtool":C)
d7040cdb
SE
15542
15543 # See if we are running on zsh, and set the options which allow our
15544 # commands through without removal of \ escapes.
15545 if test -n "${ZSH_VERSION+set}" ; then
15546 setopt NO_GLOB_SUBST
15547 fi
15548
15549 cfgfile="${ofile}T"
15550 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15551 $RM "$cfgfile"
15552
15553 cat <<_LT_EOF >> "$cfgfile"
15554#! $SHELL
15555
15556# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 15557# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
15558# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15559# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15560#
718a6fd8
SE
15561# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15562# 2006, 2007, 2008 Free Software Foundation, Inc.
15563# Written by Gordon Matzigkeit, 1996
d7040cdb 15564#
718a6fd8 15565# This file is part of GNU Libtool.
d7040cdb 15566#
718a6fd8
SE
15567# GNU Libtool is free software; you can redistribute it and/or
15568# modify it under the terms of the GNU General Public License as
15569# published by the Free Software Foundation; either version 2 of
15570# the License, or (at your option) any later version.
d7040cdb 15571#
718a6fd8
SE
15572# As a special exception to the GNU General Public License,
15573# if you distribute this file as part of a program or library that
15574# is built using GNU Libtool, you may include this file under the
15575# same distribution terms that you use for the rest of that program.
d7040cdb 15576#
718a6fd8
SE
15577# GNU Libtool is distributed in the hope that it will be useful,
15578# but WITHOUT ANY WARRANTY; without even the implied warranty of
15579# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15580# GNU General Public License for more details.
d7040cdb 15581#
718a6fd8
SE
15582# You should have received a copy of the GNU General Public License
15583# along with GNU Libtool; see the file COPYING. If not, a copy
15584# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15585# obtained by writing to the Free Software Foundation, Inc.,
15586# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
15587
15588
15589# The names of the tagged configurations supported by this script.
15590available_tags=""
15591
15592# ### BEGIN LIBTOOL CONFIG
15593
15594# Which release of libtool.m4 was used?
15595macro_version=$macro_version
15596macro_revision=$macro_revision
15597
15598# Whether or not to build shared libraries.
15599build_libtool_libs=$enable_shared
15600
15601# Whether or not to build static libraries.
15602build_old_libs=$enable_static
15603
15604# What type of objects to build.
15605pic_mode=$pic_mode
15606
15607# Whether or not to optimize for fast installation.
15608fast_install=$enable_fast_install
15609
15610# The host system.
15611host_alias=$host_alias
15612host=$host
15613host_os=$host_os
15614
15615# The build system.
15616build_alias=$build_alias
15617build=$build
15618build_os=$build_os
15619
15620# A sed program that does not truncate output.
15621SED=$lt_SED
15622
15623# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15624Xsed="\$SED -e 1s/^X//"
15625
15626# A grep program that handles long lines.
15627GREP=$lt_GREP
15628
15629# An ERE matcher.
15630EGREP=$lt_EGREP
15631
15632# A literal string matcher.
15633FGREP=$lt_FGREP
15634
15635# A BSD- or MS-compatible name lister.
15636NM=$lt_NM
15637
15638# Whether we need soft or hard links.
15639LN_S=$lt_LN_S
15640
15641# What is the maximum length of a command?
15642max_cmd_len=$max_cmd_len
15643
15644# Object file suffix (normally "o").
15645objext=$ac_objext
15646
15647# Executable file suffix (normally "").
15648exeext=$exeext
15649
15650# whether the shell understands "unset".
15651lt_unset=$lt_unset
15652
15653# turn spaces into newlines.
15654SP2NL=$lt_lt_SP2NL
15655
15656# turn newlines into spaces.
15657NL2SP=$lt_lt_NL2SP
15658
15659# How to create reloadable object files.
15660reload_flag=$lt_reload_flag
15661reload_cmds=$lt_reload_cmds
15662
718a6fd8
SE
15663# An object symbol dumper.
15664OBJDUMP=$lt_OBJDUMP
15665
d7040cdb
SE
15666# Method to check whether dependent libraries are shared objects.
15667deplibs_check_method=$lt_deplibs_check_method
15668
15669# Command to use when deplibs_check_method == "file_magic".
15670file_magic_cmd=$lt_file_magic_cmd
15671
15672# The archiver.
15673AR=$lt_AR
15674AR_FLAGS=$lt_AR_FLAGS
15675
15676# A symbol stripping program.
15677STRIP=$lt_STRIP
15678
15679# Commands used to install an old-style archive.
15680RANLIB=$lt_RANLIB
15681old_postinstall_cmds=$lt_old_postinstall_cmds
15682old_postuninstall_cmds=$lt_old_postuninstall_cmds
15683
15684# A C compiler.
15685LTCC=$lt_CC
15686
15687# LTCC compiler flags.
15688LTCFLAGS=$lt_CFLAGS
15689
15690# Take the output of nm and produce a listing of raw symbols and C names.
15691global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15692
15693# Transform the output of nm in a proper C declaration.
15694global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15695
15696# Transform the output of nm in a C name address pair.
15697global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15698
718a6fd8
SE
15699# Transform the output of nm in a C name address pair when lib prefix is needed.
15700global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15701
d7040cdb
SE
15702# The name of the directory that contains temporary libtool files.
15703objdir=$objdir
15704
15705# Shell to use when invoking shell scripts.
15706SHELL=$lt_SHELL
15707
15708# An echo program that does not interpret backslashes.
15709ECHO=$lt_ECHO
15710
15711# Used to examine libraries when file_magic_cmd begins with "file".
15712MAGIC_CMD=$MAGIC_CMD
15713
15714# Must we lock files when doing compilation?
15715need_locks=$lt_need_locks
15716
718a6fd8
SE
15717# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15718DSYMUTIL=$lt_DSYMUTIL
15719
15720# Tool to change global to local symbols on Mac OS X.
15721NMEDIT=$lt_NMEDIT
15722
15723# Tool to manipulate fat objects and archives on Mac OS X.
15724LIPO=$lt_LIPO
15725
15726# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15727OTOOL=$lt_OTOOL
15728
15729# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15730OTOOL64=$lt_OTOOL64
15731
d7040cdb
SE
15732# Old archive suffix (normally "a").
15733libext=$libext
15734
15735# Shared library suffix (normally ".so").
15736shrext_cmds=$lt_shrext_cmds
15737
15738# The commands to extract the exported symbol list from a shared archive.
15739extract_expsyms_cmds=$lt_extract_expsyms_cmds
15740
15741# Variables whose values should be saved in libtool wrapper scripts and
15742# restored at link time.
15743variables_saved_for_relink=$lt_variables_saved_for_relink
15744
15745# Do we need the "lib" prefix for modules?
15746need_lib_prefix=$need_lib_prefix
15747
15748# Do we need a version for libraries?
15749need_version=$need_version
15750
15751# Library versioning type.
15752version_type=$version_type
15753
15754# Shared library runtime path variable.
15755runpath_var=$runpath_var
15756
15757# Shared library path variable.
15758shlibpath_var=$shlibpath_var
15759
15760# Is shlibpath searched before the hard-coded library search path?
15761shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15762
15763# Format of library name prefix.
15764libname_spec=$lt_libname_spec
15765
15766# List of archive names. First name is the real one, the rest are links.
15767# The last name is the one that the linker finds with -lNAME
15768library_names_spec=$lt_library_names_spec
15769
15770# The coded name of the library, if different from the real name.
15771soname_spec=$lt_soname_spec
15772
15773# Command to use after installation of a shared archive.
15774postinstall_cmds=$lt_postinstall_cmds
15775
15776# Command to use after uninstallation of a shared archive.
15777postuninstall_cmds=$lt_postuninstall_cmds
15778
15779# Commands used to finish a libtool library installation in a directory.
15780finish_cmds=$lt_finish_cmds
15781
15782# As "finish_cmds", except a single script fragment to be evaled but
15783# not shown.
15784finish_eval=$lt_finish_eval
15785
15786# Whether we should hardcode library paths into libraries.
15787hardcode_into_libs=$hardcode_into_libs
15788
15789# Compile-time system search path for libraries.
15790sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15791
15792# Run-time system search path for libraries.
15793sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15794
15795# Whether dlopen is supported.
15796dlopen_support=$enable_dlopen
15797
15798# Whether dlopen of programs is supported.
15799dlopen_self=$enable_dlopen_self
15800
15801# Whether dlopen of statically linked programs is supported.
15802dlopen_self_static=$enable_dlopen_self_static
15803
15804# Commands to strip libraries.
15805old_striplib=$lt_old_striplib
15806striplib=$lt_striplib
15807
15808
15809# The linker used to build libraries.
15810LD=$lt_LD
15811
15812# Commands used to build an old-style archive.
15813old_archive_cmds=$lt_old_archive_cmds
15814
15815# A language specific compiler.
15816CC=$lt_compiler
15817
15818# Is the compiler the GNU compiler?
15819with_gcc=$GCC
15820
15821# Compiler flag to turn off builtin functions.
15822no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15823
15824# How to pass a linker flag through the compiler.
15825wl=$lt_lt_prog_compiler_wl
15826
15827# Additional compiler flags for building library objects.
15828pic_flag=$lt_lt_prog_compiler_pic
15829
15830# Compiler flag to prevent dynamic linking.
15831link_static_flag=$lt_lt_prog_compiler_static
15832
15833# Does compiler simultaneously support -c and -o options?
15834compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15835
15836# Whether or not to add -lc for building shared libraries.
15837build_libtool_need_lc=$archive_cmds_need_lc
15838
15839# Whether or not to disallow shared libs when runtime libs are static.
15840allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15841
15842# Compiler flag to allow reflexive dlopens.
15843export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15844
15845# Compiler flag to generate shared objects directly from archives.
15846whole_archive_flag_spec=$lt_whole_archive_flag_spec
15847
15848# Whether the compiler copes with passing no objects directly.
15849compiler_needs_object=$lt_compiler_needs_object
15850
15851# Create an old-style archive from a shared archive.
15852old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15853
15854# Create a temporary old-style archive to link instead of a shared archive.
15855old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15856
15857# Commands used to build a shared archive.
15858archive_cmds=$lt_archive_cmds
15859archive_expsym_cmds=$lt_archive_expsym_cmds
15860
15861# Commands used to build a loadable module if different from building
15862# a shared archive.
15863module_cmds=$lt_module_cmds
15864module_expsym_cmds=$lt_module_expsym_cmds
15865
15866# Whether we are building with GNU ld or not.
15867with_gnu_ld=$lt_with_gnu_ld
15868
15869# Flag that allows shared libraries with undefined symbols to be built.
15870allow_undefined_flag=$lt_allow_undefined_flag
15871
15872# Flag that enforces no undefined symbols.
15873no_undefined_flag=$lt_no_undefined_flag
15874
15875# Flag to hardcode \$libdir into a binary during linking.
15876# This must work even if \$libdir does not exist
15877hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15878
15879# If ld is used when linking, flag to hardcode \$libdir into a binary
15880# during linking. This must work even if \$libdir does not exist.
15881hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15882
15883# Whether we need a single "-rpath" flag with a separated argument.
15884hardcode_libdir_separator=$lt_hardcode_libdir_separator
15885
15886# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15887# DIR into the resulting binary.
15888hardcode_direct=$hardcode_direct
15889
15890# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15891# DIR into the resulting binary and the resulting library dependency is
15892# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15893# library is relocated.
15894hardcode_direct_absolute=$hardcode_direct_absolute
15895
15896# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15897# into the resulting binary.
15898hardcode_minus_L=$hardcode_minus_L
15899
15900# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15901# into the resulting binary.
15902hardcode_shlibpath_var=$hardcode_shlibpath_var
15903
15904# Set to "yes" if building a shared library automatically hardcodes DIR
15905# into the library and all subsequent libraries and executables linked
15906# against it.
15907hardcode_automatic=$hardcode_automatic
15908
15909# Set to yes if linker adds runtime paths of dependent libraries
15910# to runtime path list.
15911inherit_rpath=$inherit_rpath
15912
15913# Whether libtool must link a program against all its dependency libraries.
15914link_all_deplibs=$link_all_deplibs
15915
15916# Fix the shell variable \$srcfile for the compiler.
15917fix_srcfile_path=$lt_fix_srcfile_path
15918
15919# Set to "yes" if exported symbols are required.
15920always_export_symbols=$always_export_symbols
15921
15922# The commands to list exported symbols.
15923export_symbols_cmds=$lt_export_symbols_cmds
15924
15925# Symbols that should not be listed in the preloaded symbols.
15926exclude_expsyms=$lt_exclude_expsyms
15927
15928# Symbols that must always be exported.
15929include_expsyms=$lt_include_expsyms
15930
15931# Commands necessary for linking programs (against libraries) with templates.
15932prelink_cmds=$lt_prelink_cmds
15933
15934# Specify filename containing input files.
15935file_list_spec=$lt_file_list_spec
15936
15937# How to hardcode a shared library path into an executable.
15938hardcode_action=$hardcode_action
15939
15940# ### END LIBTOOL CONFIG
15941
15942_LT_EOF
15943
15944 case $host_os in
15945 aix3*)
15946 cat <<\_LT_EOF >> "$cfgfile"
15947# AIX sometimes has problems with the GCC collect2 program. For some
15948# reason, if we set the COLLECT_NAMES environment variable, the problems
15949# vanish in a puff of smoke.
15950if test "X${COLLECT_NAMES+set}" != Xset; then
15951 COLLECT_NAMES=
15952 export COLLECT_NAMES
15953fi
15954_LT_EOF
15955 ;;
15956 esac
15957
15958
15959ltmain="$ac_aux_dir/ltmain.sh"
15960
15961
15962 # We use sed instead of cat because bash on DJGPP gets confused if
15963 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15964 # text mode, it properly converts lines to CR/LF. This bash problem
15965 # is reportedly fixed, but why not run on old versions too?
15966 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15967 || (rm -f "$cfgfile"; exit 1)
15968
15969 case $xsi_shell in
15970 yes)
15971 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 15972
d7040cdb
SE
15973# func_dirname file append nondir_replacement
15974# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15975# otherwise set result to NONDIR_REPLACEMENT.
15976func_dirname ()
15977{
15978 case ${1} in
15979 */*) func_dirname_result="${1%/*}${2}" ;;
15980 * ) func_dirname_result="${3}" ;;
15981 esac
15982}
15983
15984# func_basename file
15985func_basename ()
15986{
15987 func_basename_result="${1##*/}"
15988}
15989
718a6fd8
SE
15990# func_dirname_and_basename file append nondir_replacement
15991# perform func_basename and func_dirname in a single function
15992# call:
15993# dirname: Compute the dirname of FILE. If nonempty,
15994# add APPEND to the result, otherwise set result
15995# to NONDIR_REPLACEMENT.
15996# value returned in "$func_dirname_result"
15997# basename: Compute filename of FILE.
15998# value retuned in "$func_basename_result"
15999# Implementation must be kept synchronized with func_dirname
16000# and func_basename. For efficiency, we do not delegate to
16001# those functions but instead duplicate the functionality here.
16002func_dirname_and_basename ()
16003{
16004 case ${1} in
16005 */*) func_dirname_result="${1%/*}${2}" ;;
16006 * ) func_dirname_result="${3}" ;;
16007 esac
16008 func_basename_result="${1##*/}"
16009}
16010
d7040cdb
SE
16011# func_stripname prefix suffix name
16012# strip PREFIX and SUFFIX off of NAME.
16013# PREFIX and SUFFIX must not contain globbing or regex special
16014# characters, hashes, percent signs, but SUFFIX may contain a leading
16015# dot (in which case that matches only a dot).
16016func_stripname ()
16017{
16018 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16019 # positional parameters, so assign one to ordinary parameter first.
16020 func_stripname_result=${3}
16021 func_stripname_result=${func_stripname_result#"${1}"}
16022 func_stripname_result=${func_stripname_result%"${2}"}
16023}
16024
16025# func_opt_split
16026func_opt_split ()
16027{
16028 func_opt_split_opt=${1%%=*}
16029 func_opt_split_arg=${1#*=}
16030}
16031
16032# func_lo2o object
16033func_lo2o ()
16034{
16035 case ${1} in
16036 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16037 *) func_lo2o_result=${1} ;;
16038 esac
16039}
718a6fd8
SE
16040
16041# func_xform libobj-or-source
16042func_xform ()
16043{
16044 func_xform_result=${1%.*}.lo
16045}
16046
16047# func_arith arithmetic-term...
16048func_arith ()
16049{
16050 func_arith_result=$(( $* ))
16051}
16052
16053# func_len string
16054# STRING may not start with a hyphen.
16055func_len ()
16056{
16057 func_len_result=${#1}
16058}
16059
d7040cdb
SE
16060_LT_EOF
16061 ;;
16062 *) # Bourne compatible functions.
16063 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 16064
d7040cdb
SE
16065# func_dirname file append nondir_replacement
16066# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16067# otherwise set result to NONDIR_REPLACEMENT.
16068func_dirname ()
16069{
16070 # Extract subdirectory from the argument.
16071 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16072 if test "X$func_dirname_result" = "X${1}"; then
16073 func_dirname_result="${3}"
16074 else
16075 func_dirname_result="$func_dirname_result${2}"
16076 fi
16077}
16078
16079# func_basename file
16080func_basename ()
16081{
16082 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16083}
16084
718a6fd8 16085
d7040cdb
SE
16086# func_stripname prefix suffix name
16087# strip PREFIX and SUFFIX off of NAME.
16088# PREFIX and SUFFIX must not contain globbing or regex special
16089# characters, hashes, percent signs, but SUFFIX may contain a leading
16090# dot (in which case that matches only a dot).
16091# func_strip_suffix prefix name
16092func_stripname ()
16093{
16094 case ${2} in
16095 .*) func_stripname_result=`$ECHO "X${3}" \
16096 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16097 *) func_stripname_result=`$ECHO "X${3}" \
16098 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16099 esac
16100}
16101
16102# sed scripts:
16103my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16104my_sed_long_arg='1s/^-[^=]*=//'
16105
16106# func_opt_split
16107func_opt_split ()
16108{
16109 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16110 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16111}
16112
16113# func_lo2o object
16114func_lo2o ()
16115{
16116 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16117}
718a6fd8
SE
16118
16119# func_xform libobj-or-source
16120func_xform ()
16121{
16122 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16123}
16124
16125# func_arith arithmetic-term...
16126func_arith ()
16127{
16128 func_arith_result=`expr "$@"`
16129}
16130
16131# func_len string
16132# STRING may not start with a hyphen.
16133func_len ()
16134{
16135 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16136}
16137
d7040cdb
SE
16138_LT_EOF
16139esac
16140
16141case $lt_shell_append in
16142 yes)
16143 cat << \_LT_EOF >> "$cfgfile"
16144
16145# func_append var value
16146# Append VALUE to the end of shell variable VAR.
16147func_append ()
16148{
16149 eval "$1+=\$2"
16150}
16151_LT_EOF
16152 ;;
16153 *)
16154 cat << \_LT_EOF >> "$cfgfile"
16155
16156# func_append var value
16157# Append VALUE to the end of shell variable VAR.
16158func_append ()
16159{
16160 eval "$1=\$$1\$2"
16161}
718a6fd8 16162
d7040cdb
SE
16163_LT_EOF
16164 ;;
16165 esac
16166
16167
16168 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16169 || (rm -f "$cfgfile"; exit 1)
16170
16171 mv -f "$cfgfile" "$ofile" ||
16172 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16173 chmod +x "$ofile"
16174
42ecbf5e 16175 ;;
81ecdfbb 16176 "default-1":C)
20e95c23
DJ
16177 for ac_file in $CONFIG_FILES; do
16178 # Support "outfile[:infile[:infile...]]"
16179 case "$ac_file" in
16180 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16181 esac
16182 # PO directories have a Makefile.in generated from Makefile.in.in.
16183 case "$ac_file" in */Makefile.in)
16184 # Adjust a relative srcdir.
16185 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16186 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16187 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16188 # In autoconf-2.13 it is called $ac_given_srcdir.
16189 # In autoconf-2.50 it is called $srcdir.
16190 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16191 case "$ac_given_srcdir" in
16192 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16193 /*) top_srcdir="$ac_given_srcdir" ;;
16194 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16195 esac
16196 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16197 rm -f "$ac_dir/POTFILES"
16198 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16199 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16200 POMAKEFILEDEPS="POTFILES.in"
16201 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16202 # on $ac_dir but don't depend on user-specified configuration
16203 # parameters.
16204 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16205 # The LINGUAS file contains the set of available languages.
16206 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16207 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16208 fi
16209 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16210 # Hide the ALL_LINGUAS assigment from automake.
16211 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16212 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16213 else
16214 # The set of available languages was given in configure.in.
16215 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16216 fi
16217 case "$ac_given_srcdir" in
16218 .) srcdirpre= ;;
16219 *) srcdirpre='$(srcdir)/' ;;
16220 esac
16221 POFILES=
16222 GMOFILES=
16223 UPDATEPOFILES=
16224 DUMMYPOFILES=
16225 for lang in $ALL_LINGUAS; do
16226 POFILES="$POFILES $srcdirpre$lang.po"
16227 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16228 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16229 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16230 done
16231 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16232 # environment variable.
16233 INST_LINGUAS=
16234 if test -n "$ALL_LINGUAS"; then
16235 for presentlang in $ALL_LINGUAS; do
16236 useit=no
16237 if test "%UNSET%" != "$LINGUAS"; then
16238 desiredlanguages="$LINGUAS"
16239 else
16240 desiredlanguages="$ALL_LINGUAS"
16241 fi
16242 for desiredlang in $desiredlanguages; do
16243 # Use the presentlang catalog if desiredlang is
16244 # a. equal to presentlang, or
16245 # b. a variant of presentlang (because in this case,
16246 # presentlang can be used as a fallback for messages
16247 # which are not translated in the desiredlang catalog).
16248 case "$desiredlang" in
16249 "$presentlang"*) useit=yes;;
16250 esac
16251 done
16252 if test $useit = yes; then
16253 INST_LINGUAS="$INST_LINGUAS $presentlang"
16254 fi
16255 done
16256 fi
16257 CATALOGS=
16258 if test -n "$INST_LINGUAS"; then
16259 for lang in $INST_LINGUAS; do
16260 CATALOGS="$CATALOGS $lang.gmo"
16261 done
16262 fi
16263 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16264 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"
16265 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16266 if test -f "$f"; then
16267 case "$f" in
16268 *.orig | *.bak | *~) ;;
16269 *) cat "$f" >> "$ac_dir/Makefile" ;;
16270 esac
16271 fi
16272 done
16273 fi
16274 ;;
16275 esac
16276 done ;;
81ecdfbb 16277
42ecbf5e 16278 esac
81ecdfbb 16279done # for ac_tag
e5a52504 16280
42ecbf5e 16281
81ecdfbb 16282as_fn_exit 0
42ecbf5e 16283_ACEOF
42ecbf5e
DJ
16284ac_clean_files=$ac_clean_files_save
16285
81ecdfbb
RW
16286test $ac_write_fail = 0 ||
16287 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16288
42ecbf5e
DJ
16289
16290# configure is writing to config.log, and then calls config.status.
16291# config.status does its own redirection, appending to config.log.
16292# Unfortunately, on DOS this fails, as config.log is still kept open
16293# by configure, so config.status won't be able to write to it; its
16294# output is simply discarded. So we exec the FD to /dev/null,
16295# effectively closing config.log, so it can be properly (re)opened and
16296# appended to by config.status. When coming back to configure, we
16297# need to make the FD available again.
16298if test "$no_create" != yes; then
16299 ac_cs_success=:
16300 ac_config_status_args=
16301 test "$silent" = yes &&
16302 ac_config_status_args="$ac_config_status_args --quiet"
16303 exec 5>/dev/null
16304 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16305 exec 5>>config.log
16306 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16307 # would make configure fail if this is the last instruction.
81ecdfbb
RW
16308 $ac_cs_success || as_fn_exit $?
16309fi
16310if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16312$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 16313fi
252b5132 16314
This page took 1.9936 seconds and 4 git commands to generate.