opcodes/
[deliverable/binutils-gdb.git] / opcodes / 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## -------------------- ##
979273e3 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 :
979273e3
NN
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
979273e3
NN
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
979273e3 31fi
979273e3 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 }
979273e3
NN
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
979273e3
NN
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
979273e3 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."
979273e3 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."
979273e3 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
356
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
979273e3 372
81ecdfbb
RW
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
979273e3
NN
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
979273e3
NN
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
979273e3 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
979273e3
NN
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'`
979273e3 410
979273e3
NN
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
979273e3 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 |
979273e3 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
979273e3 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
979273e3 436 t loop
81ecdfbb 437 s/-\n.*//
979273e3 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; }
979273e3
NN
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"
979273e3
NN
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';;
979273e3
NN
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
979273e3 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
979273e3 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
979273e3 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'
979273e3 483 fi
979273e3
NN
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
979273e3
NN
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
979273e3
NN
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
979273e3
NN
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
979273e3
NN
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
979273e3
NN
683#
684# Initializations.
685#
252b5132 686ac_default_prefix=/usr/local
81ecdfbb 687ac_clean_files=
979273e3 688ac_config_libobj_dir=.
81ecdfbb 689LIBOBJS=
979273e3
NN
690cross_compiling=no
691subdirs=
692MFLAGS=
693MAKEFLAGS=
979273e3
NN
694
695# Identity of this package.
696PACKAGE_NAME=
697PACKAGE_TARNAME=
698PACKAGE_VERSION=
699PACKAGE_STRING=
700PACKAGE_BUGREPORT=
81ecdfbb 701PACKAGE_URL=
979273e3
NN
702
703ac_unique_file="z8k-dis.c"
704# Factoring default headers for most tests.
705ac_includes_default="\
706#include <stdio.h>
81ecdfbb 707#ifdef HAVE_SYS_TYPES_H
979273e3
NN
708# include <sys/types.h>
709#endif
81ecdfbb 710#ifdef HAVE_SYS_STAT_H
979273e3
NN
711# include <sys/stat.h>
712#endif
81ecdfbb 713#ifdef STDC_HEADERS
979273e3
NN
714# include <stdlib.h>
715# include <stddef.h>
716#else
81ecdfbb 717# ifdef HAVE_STDLIB_H
979273e3
NN
718# include <stdlib.h>
719# endif
720#endif
81ecdfbb
RW
721#ifdef HAVE_STRING_H
722# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
979273e3
NN
723# include <memory.h>
724# endif
725# include <string.h>
726#endif
81ecdfbb 727#ifdef HAVE_STRINGS_H
979273e3
NN
728# include <strings.h>
729#endif
81ecdfbb 730#ifdef HAVE_INTTYPES_H
979273e3 731# include <inttypes.h>
979273e3 732#endif
81ecdfbb
RW
733#ifdef HAVE_STDINT_H
734# include <stdint.h>
735#endif
736#ifdef HAVE_UNISTD_H
979273e3
NN
737# include <unistd.h>
738#endif"
739
81ecdfbb
RW
740ac_subst_vars='am__EXEEXT_FALSE
741am__EXEEXT_TRUE
742LTLIBOBJS
743LIBOBJS
744BFD_MACHINES
745archdefs
746SHARED_DEPENDENCIES
747SHARED_LIBADD
748SHARED_LDFLAGS
2eee5593
AM
749BUILD_LIB_DEPS
750BUILD_LIBS
81ecdfbb
RW
751LIBM
752cgendir
753CGEN_MAINT_FALSE
754CGEN_MAINT_TRUE
755HDEFINES
756EXEEXT_FOR_BUILD
757CC_FOR_BUILD
758MSGMERGE
759MSGFMT
760MKINSTALLDIRS
761CATOBJEXT
762GENCAT
763INSTOBJEXT
764DATADIRNAME
765CATALOGS
766POSUB
767GMSGFMT
768XGETTEXT
769INCINTL
770LIBINTL_DEP
771LIBINTL
772USE_NLS
773bfdincludedir
774bfdlibdir
775target_noncanonical
776host_noncanonical
777INSTALL_LIBBFD_FALSE
778INSTALL_LIBBFD_TRUE
779MAINT
780MAINTAINER_MODE_FALSE
781MAINTAINER_MODE_TRUE
782NO_WERROR
783WARN_CFLAGS
784OTOOL64
785OTOOL
786LIPO
787NMEDIT
788DSYMUTIL
789lt_ECHO
790OBJDUMP
791LN_S
792NM
793ac_ct_DUMPBIN
794DUMPBIN
795LD
796FGREP
797SED
798LIBTOOL
799RANLIB
800AR
801EGREP
802GREP
803CPP
804am__fastdepCC_FALSE
805am__fastdepCC_TRUE
806CCDEPMODE
807AMDEPBACKSLASH
808AMDEP_FALSE
809AMDEP_TRUE
810am__quote
811am__include
812DEPDIR
813am__untar
814am__tar
815AMTAR
816am__leading_dot
817SET_MAKE
818AWK
819mkdir_p
820MKDIR_P
821INSTALL_STRIP_PROGRAM
822STRIP
823install_sh
824MAKEINFO
825AUTOHEADER
826AUTOMAKE
827AUTOCONF
828ACLOCAL
829VERSION
830PACKAGE
831CYGPATH_W
832am__isrc
833INSTALL_DATA
834INSTALL_SCRIPT
835INSTALL_PROGRAM
836OBJEXT
837EXEEXT
838ac_ct_CC
839CPPFLAGS
840LDFLAGS
841CFLAGS
842CC
843target_os
844target_vendor
845target_cpu
846target
847host_os
848host_vendor
849host_cpu
850host
851build_os
852build_vendor
853build_cpu
854build
855target_alias
856host_alias
857build_alias
858LIBS
859ECHO_T
860ECHO_N
861ECHO_C
862DEFS
863mandir
864localedir
865libdir
866psdir
867pdfdir
868dvidir
869htmldir
870infodir
871docdir
872oldincludedir
873includedir
874localstatedir
875sharedstatedir
876sysconfdir
877datadir
878datarootdir
879libexecdir
880sbindir
881bindir
882program_transform_name
883prefix
884exec_prefix
885PACKAGE_URL
886PACKAGE_BUGREPORT
887PACKAGE_STRING
888PACKAGE_VERSION
889PACKAGE_TARNAME
890PACKAGE_NAME
891PATH_SEPARATOR
892SHELL'
979273e3 893ac_subst_files=''
81ecdfbb
RW
894ac_user_opts='
895enable_option_checking
896enable_dependency_tracking
897enable_shared
898enable_static
899with_pic
900enable_fast_install
901with_gnu_ld
902enable_libtool_lock
903enable_targets
904enable_werror
905enable_build_warnings
906enable_maintainer_mode
907enable_install_libbfd
908enable_nls
909enable_cgen_maint
910'
911 ac_precious_vars='build_alias
912host_alias
913target_alias
914CC
915CFLAGS
916LDFLAGS
917LIBS
918CPPFLAGS
919CPP'
920
252b5132
RH
921
922# Initialize some variables set by options.
979273e3
NN
923ac_init_help=
924ac_init_version=false
81ecdfbb
RW
925ac_unrecognized_opts=
926ac_unrecognized_sep=
252b5132
RH
927# The variables have the same names as the options, with
928# dashes changed to underlines.
979273e3 929cache_file=/dev/null
252b5132 930exec_prefix=NONE
252b5132 931no_create=
252b5132
RH
932no_recursion=
933prefix=NONE
934program_prefix=NONE
935program_suffix=NONE
936program_transform_name=s,x,x,
937silent=
938site=
939srcdir=
252b5132
RH
940verbose=
941x_includes=NONE
942x_libraries=NONE
979273e3
NN
943
944# Installation directory options.
945# These are left unexpanded so users can "make install exec_prefix=/foo"
946# and all the variables that are supposed to be based on exec_prefix
947# by default will actually change.
948# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 949# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
950bindir='${exec_prefix}/bin'
951sbindir='${exec_prefix}/sbin'
952libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
953datarootdir='${prefix}/share'
954datadir='${datarootdir}'
252b5132
RH
955sysconfdir='${prefix}/etc'
956sharedstatedir='${prefix}/com'
957localstatedir='${prefix}/var'
252b5132
RH
958includedir='${prefix}/include'
959oldincludedir='/usr/include'
81ecdfbb
RW
960docdir='${datarootdir}/doc/${PACKAGE}'
961infodir='${datarootdir}/info'
962htmldir='${docdir}'
963dvidir='${docdir}'
964pdfdir='${docdir}'
965psdir='${docdir}'
966libdir='${exec_prefix}/lib'
967localedir='${datarootdir}/locale'
968mandir='${datarootdir}/man'
252b5132 969
252b5132 970ac_prev=
81ecdfbb 971ac_dashdash=
252b5132
RH
972for ac_option
973do
252b5132
RH
974 # If the previous option needs an argument, assign it.
975 if test -n "$ac_prev"; then
81ecdfbb 976 eval $ac_prev=\$ac_option
252b5132
RH
977 ac_prev=
978 continue
979 fi
980
81ecdfbb
RW
981 case $ac_option in
982 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983 *) ac_optarg=yes ;;
984 esac
252b5132
RH
985
986 # Accept the important Cygnus configure options, so we can diagnose typos.
987
81ecdfbb
RW
988 case $ac_dashdash$ac_option in
989 --)
990 ac_dashdash=yes ;;
252b5132
RH
991
992 -bindir | --bindir | --bindi | --bind | --bin | --bi)
993 ac_prev=bindir ;;
994 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979273e3 995 bindir=$ac_optarg ;;
252b5132
RH
996
997 -build | --build | --buil | --bui | --bu)
979273e3 998 ac_prev=build_alias ;;
252b5132 999 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979273e3 1000 build_alias=$ac_optarg ;;
252b5132
RH
1001
1002 -cache-file | --cache-file | --cache-fil | --cache-fi \
1003 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004 ac_prev=cache_file ;;
1005 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
979273e3
NN
1007 cache_file=$ac_optarg ;;
1008
1009 --config-cache | -C)
1010 cache_file=config.cache ;;
252b5132 1011
81ecdfbb 1012 -datadir | --datadir | --datadi | --datad)
252b5132 1013 ac_prev=datadir ;;
81ecdfbb 1014 -datadir=* | --datadir=* | --datadi=* | --datad=*)
979273e3 1015 datadir=$ac_optarg ;;
252b5132 1016
81ecdfbb
RW
1017 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018 | --dataroo | --dataro | --datar)
1019 ac_prev=datarootdir ;;
1020 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022 datarootdir=$ac_optarg ;;
1023
252b5132 1024 -disable-* | --disable-*)
81ecdfbb 1025 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 1026 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028 as_fn_error "invalid feature name: $ac_useropt"
1029 ac_useropt_orig=$ac_useropt
1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1032 *"
1033"enable_$ac_useropt"
1034"*) ;;
1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1036 ac_unrecognized_sep=', ';;
1037 esac
1038 eval enable_$ac_useropt=no ;;
1039
1040 -docdir | --docdir | --docdi | --doc | --do)
1041 ac_prev=docdir ;;
1042 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1043 docdir=$ac_optarg ;;
1044
1045 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046 ac_prev=dvidir ;;
1047 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1048 dvidir=$ac_optarg ;;
252b5132
RH
1049
1050 -enable-* | --enable-*)
81ecdfbb 1051 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 1052 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error "invalid feature name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1058 *"
1059"enable_$ac_useropt"
1060"*) ;;
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
252b5132 1063 esac
81ecdfbb 1064 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1065
1066 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1067 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1068 | --exec | --exe | --ex)
1069 ac_prev=exec_prefix ;;
1070 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1071 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1072 | --exec=* | --exe=* | --ex=*)
979273e3 1073 exec_prefix=$ac_optarg ;;
252b5132
RH
1074
1075 -gas | --gas | --ga | --g)
1076 # Obsolete; use --with-gas.
1077 with_gas=yes ;;
1078
979273e3
NN
1079 -help | --help | --hel | --he | -h)
1080 ac_init_help=long ;;
1081 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1082 ac_init_help=recursive ;;
1083 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1084 ac_init_help=short ;;
252b5132
RH
1085
1086 -host | --host | --hos | --ho)
979273e3 1087 ac_prev=host_alias ;;
252b5132 1088 -host=* | --host=* | --hos=* | --ho=*)
979273e3 1089 host_alias=$ac_optarg ;;
252b5132 1090
81ecdfbb
RW
1091 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1092 ac_prev=htmldir ;;
1093 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1094 | --ht=*)
1095 htmldir=$ac_optarg ;;
1096
252b5132
RH
1097 -includedir | --includedir | --includedi | --included | --include \
1098 | --includ | --inclu | --incl | --inc)
1099 ac_prev=includedir ;;
1100 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1101 | --includ=* | --inclu=* | --incl=* | --inc=*)
979273e3 1102 includedir=$ac_optarg ;;
252b5132
RH
1103
1104 -infodir | --infodir | --infodi | --infod | --info | --inf)
1105 ac_prev=infodir ;;
1106 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979273e3 1107 infodir=$ac_optarg ;;
252b5132
RH
1108
1109 -libdir | --libdir | --libdi | --libd)
1110 ac_prev=libdir ;;
1111 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979273e3 1112 libdir=$ac_optarg ;;
252b5132
RH
1113
1114 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1115 | --libexe | --libex | --libe)
1116 ac_prev=libexecdir ;;
1117 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1118 | --libexe=* | --libex=* | --libe=*)
979273e3 1119 libexecdir=$ac_optarg ;;
252b5132 1120
81ecdfbb
RW
1121 -localedir | --localedir | --localedi | --localed | --locale)
1122 ac_prev=localedir ;;
1123 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1124 localedir=$ac_optarg ;;
1125
252b5132 1126 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1127 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1128 ac_prev=localstatedir ;;
1129 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1130 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979273e3 1131 localstatedir=$ac_optarg ;;
252b5132
RH
1132
1133 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134 ac_prev=mandir ;;
1135 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979273e3 1136 mandir=$ac_optarg ;;
252b5132
RH
1137
1138 -nfp | --nfp | --nf)
1139 # Obsolete; use --without-fp.
1140 with_fp=no ;;
1141
1142 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979273e3 1143 | --no-cr | --no-c | -n)
252b5132
RH
1144 no_create=yes ;;
1145
1146 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1147 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1148 no_recursion=yes ;;
1149
1150 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1151 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1152 | --oldin | --oldi | --old | --ol | --o)
1153 ac_prev=oldincludedir ;;
1154 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1155 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1156 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
979273e3 1157 oldincludedir=$ac_optarg ;;
252b5132
RH
1158
1159 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160 ac_prev=prefix ;;
1161 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
979273e3 1162 prefix=$ac_optarg ;;
252b5132
RH
1163
1164 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1165 | --program-pre | --program-pr | --program-p)
1166 ac_prev=program_prefix ;;
1167 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1168 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
979273e3 1169 program_prefix=$ac_optarg ;;
252b5132
RH
1170
1171 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1172 | --program-suf | --program-su | --program-s)
1173 ac_prev=program_suffix ;;
1174 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1175 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
979273e3 1176 program_suffix=$ac_optarg ;;
252b5132
RH
1177
1178 -program-transform-name | --program-transform-name \
1179 | --program-transform-nam | --program-transform-na \
1180 | --program-transform-n | --program-transform- \
1181 | --program-transform | --program-transfor \
1182 | --program-transfo | --program-transf \
1183 | --program-trans | --program-tran \
1184 | --progr-tra | --program-tr | --program-t)
1185 ac_prev=program_transform_name ;;
1186 -program-transform-name=* | --program-transform-name=* \
1187 | --program-transform-nam=* | --program-transform-na=* \
1188 | --program-transform-n=* | --program-transform-=* \
1189 | --program-transform=* | --program-transfor=* \
1190 | --program-transfo=* | --program-transf=* \
1191 | --program-trans=* | --program-tran=* \
1192 | --progr-tra=* | --program-tr=* | --program-t=*)
979273e3 1193 program_transform_name=$ac_optarg ;;
252b5132 1194
81ecdfbb
RW
1195 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196 ac_prev=pdfdir ;;
1197 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1198 pdfdir=$ac_optarg ;;
1199
1200 -psdir | --psdir | --psdi | --psd | --ps)
1201 ac_prev=psdir ;;
1202 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1203 psdir=$ac_optarg ;;
1204
252b5132
RH
1205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1206 | -silent | --silent | --silen | --sile | --sil)
1207 silent=yes ;;
1208
1209 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1210 ac_prev=sbindir ;;
1211 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1212 | --sbi=* | --sb=*)
979273e3 1213 sbindir=$ac_optarg ;;
252b5132
RH
1214
1215 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1216 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1217 | --sharedst | --shareds | --shared | --share | --shar \
1218 | --sha | --sh)
1219 ac_prev=sharedstatedir ;;
1220 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1221 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1222 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1223 | --sha=* | --sh=*)
979273e3 1224 sharedstatedir=$ac_optarg ;;
252b5132
RH
1225
1226 -site | --site | --sit)
1227 ac_prev=site ;;
1228 -site=* | --site=* | --sit=*)
979273e3 1229 site=$ac_optarg ;;
1fe1f39c 1230
252b5132
RH
1231 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232 ac_prev=srcdir ;;
1233 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
979273e3 1234 srcdir=$ac_optarg ;;
252b5132
RH
1235
1236 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1237 | --syscon | --sysco | --sysc | --sys | --sy)
1238 ac_prev=sysconfdir ;;
1239 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1240 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
979273e3 1241 sysconfdir=$ac_optarg ;;
252b5132
RH
1242
1243 -target | --target | --targe | --targ | --tar | --ta | --t)
979273e3 1244 ac_prev=target_alias ;;
252b5132 1245 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
979273e3 1246 target_alias=$ac_optarg ;;
252b5132
RH
1247
1248 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1249 verbose=yes ;;
1250
979273e3
NN
1251 -version | --version | --versio | --versi | --vers | -V)
1252 ac_init_version=: ;;
252b5132
RH
1253
1254 -with-* | --with-*)
81ecdfbb 1255 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1256 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258 as_fn_error "invalid package name: $ac_useropt"
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1262 *"
1263"with_$ac_useropt"
1264"*) ;;
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
252b5132 1267 esac
81ecdfbb 1268 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1269
1270 -without-* | --without-*)
81ecdfbb 1271 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1272 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274 as_fn_error "invalid package name: $ac_useropt"
1275 ac_useropt_orig=$ac_useropt
1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277 case $ac_user_opts in
1278 *"
1279"with_$ac_useropt"
1280"*) ;;
1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282 ac_unrecognized_sep=', ';;
1283 esac
1284 eval with_$ac_useropt=no ;;
252b5132
RH
1285
1286 --x)
1287 # Obsolete; use --with-x.
1288 with_x=yes ;;
1289
1290 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291 | --x-incl | --x-inc | --x-in | --x-i)
1292 ac_prev=x_includes ;;
1293 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
979273e3 1295 x_includes=$ac_optarg ;;
252b5132
RH
1296
1297 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299 ac_prev=x_libraries ;;
1300 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
979273e3 1302 x_libraries=$ac_optarg ;;
252b5132 1303
81ecdfbb
RW
1304 -*) as_fn_error "unrecognized option: \`$ac_option'
1305Try \`$0 --help' for more information."
252b5132
RH
1306 ;;
1307
979273e3
NN
1308 *=*)
1309 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1311 case $ac_envvar in #(
1312 '' | [0-9]* | *[!_$as_cr_alnum]* )
1313 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1314 esac
1315 eval $ac_envvar=\$ac_optarg
979273e3
NN
1316 export $ac_envvar ;;
1317
252b5132 1318 *)
979273e3 1319 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1320 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
979273e3 1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1322 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
979273e3 1323 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1324 ;;
1325
1326 esac
1327done
1328
1329if test -n "$ac_prev"; then
979273e3 1330 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1331 as_fn_error "missing argument to $ac_option"
252b5132 1332fi
252b5132 1333
81ecdfbb
RW
1334if test -n "$ac_unrecognized_opts"; then
1335 case $enable_option_checking in
1336 no) ;;
1337 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1338 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
979273e3 1339 esac
81ecdfbb 1340fi
252b5132 1341
81ecdfbb
RW
1342# Check all directory arguments for consistency.
1343for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344 datadir sysconfdir sharedstatedir localstatedir includedir \
1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346 libdir localedir mandir
252b5132 1347do
81ecdfbb
RW
1348 eval ac_val=\$$ac_var
1349 # Remove trailing slashes.
1350 case $ac_val in
1351 */ )
1352 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353 eval $ac_var=\$ac_val;;
1354 esac
1355 # Be sure to have absolute directory names.
979273e3 1356 case $ac_val in
81ecdfbb
RW
1357 [\\/$]* | ?:[\\/]* ) continue;;
1358 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1359 esac
81ecdfbb 1360 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1361done
1362
979273e3
NN
1363# There might be people who depend on the old broken behavior: `$host'
1364# used to hold the argument of --host etc.
1365# FIXME: To remove some day.
1366build=$build_alias
1367host=$host_alias
1368target=$target_alias
1369
1370# FIXME: To remove some day.
1371if test "x$host_alias" != x; then
1372 if test "x$build_alias" = x; then
1373 cross_compiling=maybe
81ecdfbb 1374 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
979273e3
NN
1375 If a cross compiler is detected then cross compile mode will be used." >&2
1376 elif test "x$build_alias" != "x$host_alias"; then
1377 cross_compiling=yes
1378 fi
1379fi
252b5132 1380
979273e3
NN
1381ac_tool_prefix=
1382test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383
1384test "$silent" = yes && exec 6>/dev/null
252b5132 1385
252b5132 1386
81ecdfbb
RW
1387ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388ac_ls_di=`ls -di .` &&
1389ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390 as_fn_error "working directory cannot be determined"
1391test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1392 as_fn_error "pwd does not report name of working directory"
1393
1394
252b5132
RH
1395# Find the source files, if location was not specified.
1396if test -z "$srcdir"; then
1397 ac_srcdir_defaulted=yes
81ecdfbb
RW
1398 # Try the directory containing this script, then the parent directory.
1399 ac_confdir=`$as_dirname -- "$as_myself" ||
1400$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401 X"$as_myself" : 'X\(//\)[^/]' \| \
1402 X"$as_myself" : 'X\(//\)$' \| \
1403 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1404$as_echo X"$as_myself" |
1405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406 s//\1/
1407 q
1408 }
1409 /^X\(\/\/\)[^/].*/{
1410 s//\1/
1411 q
1412 }
1413 /^X\(\/\/\)$/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\).*/{
1418 s//\1/
1419 q
1420 }
1421 s/.*/./; q'`
252b5132 1422 srcdir=$ac_confdir
81ecdfbb 1423 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1424 srcdir=..
1425 fi
1426else
1427 ac_srcdir_defaulted=no
1428fi
81ecdfbb
RW
1429if test ! -r "$srcdir/$ac_unique_file"; then
1430 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1432fi
1433ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434ac_abs_confdir=`(
1435 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1436 pwd)`
1437# When building in place, set srcdir=.
1438if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 srcdir=.
1440fi
1441# Remove unnecessary trailing slashes from srcdir.
1442# Double slashes in file names in object file debugging info
1443# mess up M-x gdb in Emacs.
1444case $srcdir in
1445*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446esac
1447for ac_var in $ac_precious_vars; do
1448 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_${ac_var}_value=\$${ac_var}
1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452done
252b5132 1453
979273e3
NN
1454#
1455# Report the --help message.
1456#
1457if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1460 cat <<_ACEOF
1461\`configure' configures this package to adapt to many kinds of systems.
252b5132 1462
979273e3 1463Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1464
979273e3
NN
1465To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1467
979273e3 1468Defaults for the options are specified in brackets.
ac48eca1 1469
979273e3
NN
1470Configuration:
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480
979273e3
NN
1481Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1483 [$ac_default_prefix]
979273e3 1484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1485 [PREFIX]
ac48eca1 1486
979273e3
NN
1487By default, \`make install' will install all the files in
1488\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490for instance \`--prefix=\$HOME'.
ac48eca1 1491
979273e3 1492For better control, use the options below.
ac48eca1 1493
979273e3 1494Fine tuning of the installation directories:
81ecdfbb
RW
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
979273e3 1514_ACEOF
ac48eca1 1515
979273e3 1516 cat <<\_ACEOF
252b5132 1517
979273e3
NN
1518Program names:
1519 --program-prefix=PREFIX prepend PREFIX to installed program names
1520 --program-suffix=SUFFIX append SUFFIX to installed program names
1521 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1522
979273e3
NN
1523System types:
1524 --build=BUILD configure for building on BUILD [guessed]
1525 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1526 --target=TARGET configure for building compilers for TARGET [HOST]
1527_ACEOF
252b5132 1528fi
252b5132 1529
979273e3 1530if test -n "$ac_init_help"; then
252b5132 1531
979273e3 1532 cat <<\_ACEOF
252b5132 1533
979273e3 1534Optional Features:
81ecdfbb 1535 --disable-option-checking ignore unrecognized --enable/--with options
979273e3
NN
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8ae85421
AM
1538 --disable-dependency-tracking speeds up one-time build
1539 --enable-dependency-tracking do not reject slow dependency extractors
81ecdfbb
RW
1540 --enable-shared[=PKGS] build shared libraries [default=no]
1541 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1542 --enable-fast-install[=PKGS]
1543 optimize for fast installation [default=yes]
979273e3
NN
1544 --disable-libtool-lock avoid locking (might break parallel builds)
1545 --enable-targets alternative target configurations
241a6c40
AM
1546 --enable-werror treat compile warnings as errors
1547 --enable-build-warnings enable build-time compiler warnings
8ae85421
AM
1548 --enable-maintainer-mode enable make rules and dependencies not useful
1549 (and sometimes confusing) to the casual installer
979273e3
NN
1550 --enable-install-libbfd controls installation of libbfd and related headers
1551 --disable-nls do not use Native Language Support
1552 --enable-cgen-maint=dir build cgen generated files
1553
1554Optional Packages:
1555 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1556 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1557 --with-pic try to use only PIC/non-PIC objects [default=use
1558 both]
1559 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
252b5132 1560
979273e3
NN
1561Some influential environment variables:
1562 CC C compiler command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
81ecdfbb
RW
1566 LIBS libraries to pass to the linker, e.g. -l<library>
1567 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1568 you have headers in a nonstandard directory <include dir>
979273e3 1569 CPP C preprocessor
a2d91340 1570
979273e3
NN
1571Use these variables to override the choices made by `configure' or to help
1572it to find libraries and programs with nonstandard names/locations.
1573
81ecdfbb 1574Report bugs to the package provider.
979273e3 1575_ACEOF
81ecdfbb 1576ac_status=$?
a2d91340
AC
1577fi
1578
979273e3
NN
1579if test "$ac_init_help" = "recursive"; then
1580 # If there are subdirs, report their specific --help.
979273e3 1581 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1582 test -d "$ac_dir" ||
1583 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1584 continue
979273e3
NN
1585 ac_builddir=.
1586
81ecdfbb
RW
1587case "$ac_dir" in
1588.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589*)
1590 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1591 # A ".." for each directory in $ac_dir_suffix.
1592 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1593 case $ac_top_builddir_sub in
1594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1596 esac ;;
1597esac
1598ac_abs_top_builddir=$ac_pwd
1599ac_abs_builddir=$ac_pwd$ac_dir_suffix
1600# for backward compatibility:
1601ac_top_builddir=$ac_top_build_prefix
a2d91340 1602
979273e3 1603case $srcdir in
81ecdfbb 1604 .) # We are building in place.
979273e3 1605 ac_srcdir=.
81ecdfbb
RW
1606 ac_top_srcdir=$ac_top_builddir_sub
1607 ac_abs_top_srcdir=$ac_pwd ;;
1608 [\\/]* | ?:[\\/]* ) # Absolute name.
979273e3 1609 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1610 ac_top_srcdir=$srcdir
1611 ac_abs_top_srcdir=$srcdir ;;
1612 *) # Relative name.
1613 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1614 ac_top_srcdir=$ac_top_build_prefix$srcdir
1615 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a2d91340 1616esac
81ecdfbb
RW
1617ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1618
1619 cd "$ac_dir" || { ac_status=$?; continue; }
1620 # Check for guested configure.
1621 if test -f "$ac_srcdir/configure.gnu"; then
1622 echo &&
1623 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1624 elif test -f "$ac_srcdir/configure"; then
1625 echo &&
1626 $SHELL "$ac_srcdir/configure" --help=recursive
979273e3 1627 else
81ecdfbb
RW
1628 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629 fi || ac_status=$?
1630 cd "$ac_pwd" || { ac_status=$?; break; }
979273e3
NN
1631 done
1632fi
a2d91340 1633
81ecdfbb 1634test -n "$ac_init_help" && exit $ac_status
979273e3
NN
1635if $ac_init_version; then
1636 cat <<\_ACEOF
81ecdfbb
RW
1637configure
1638generated by GNU Autoconf 2.64
252b5132 1639
81ecdfbb 1640Copyright (C) 2009 Free Software Foundation, Inc.
979273e3
NN
1641This configure script is free software; the Free Software Foundation
1642gives unlimited permission to copy, distribute and modify it.
1643_ACEOF
81ecdfbb 1644 exit
979273e3 1645fi
2c73f9d8 1646
81ecdfbb
RW
1647## ------------------------ ##
1648## Autoconf initialization. ##
1649## ------------------------ ##
252b5132 1650
81ecdfbb
RW
1651# ac_fn_c_try_compile LINENO
1652# --------------------------
1653# Try to compile conftest.$ac_ext, and return whether this succeeded.
1654ac_fn_c_try_compile ()
1655{
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 rm -f conftest.$ac_objext
1658 if { { ac_try="$ac_compile"
1659case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662esac
1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664$as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_compile") 2>conftest.err
1666 ac_status=$?
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1671 fi
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } && {
1674 test -z "$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1676 } && test -s conftest.$ac_objext; then :
1677 ac_retval=0
1678else
1679 $as_echo "$as_me: failed program was:" >&5
1680sed 's/^/| /' conftest.$ac_ext >&5
252b5132 1681
81ecdfbb
RW
1682 ac_retval=1
1683fi
1684 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1685 return $ac_retval
1686
1687} # ac_fn_c_try_compile
1688
1689# ac_fn_c_try_link LINENO
1690# -----------------------
1691# Try to link conftest.$ac_ext, and return whether this succeeded.
1692ac_fn_c_try_link ()
979273e3 1693{
81ecdfbb
RW
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 rm -f conftest.$ac_objext conftest$ac_exeext
1696 if { { ac_try="$ac_link"
1697case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1709 fi
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && {
1712 test -z "$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 } && test -s conftest$ac_exeext && {
1715 test "$cross_compiling" = yes ||
1716 $as_test_x conftest$ac_exeext
1717 }; then :
1718 ac_retval=0
1719else
1720 $as_echo "$as_me: failed program was:" >&5
1721sed 's/^/| /' conftest.$ac_ext >&5
979273e3 1722
81ecdfbb
RW
1723 ac_retval=1
1724fi
1725 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1726 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1727 # interfere with the next link command; also delete a directory that is
1728 # left behind by Apple's compiler. We do this before executing the actions.
1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 return $ac_retval
979273e3 1732
81ecdfbb
RW
1733} # ac_fn_c_try_link
1734
1735# ac_fn_c_try_cpp LINENO
1736# ----------------------
1737# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1738ac_fn_c_try_cpp ()
1739{
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 if { { ac_try="$ac_cpp conftest.$ac_ext"
1742case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745esac
1746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747$as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1749 ac_status=$?
1750 if test -s conftest.err; then
1751 grep -v '^ *+' conftest.err >conftest.er1
1752 cat conftest.er1 >&5
1753 mv -f conftest.er1 conftest.err
1754 fi
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } >/dev/null && {
1757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1758 test ! -s conftest.err
1759 }; then :
1760 ac_retval=0
1761else
1762 $as_echo "$as_me: failed program was:" >&5
1763sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=1
1766fi
1767 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1768 return $ac_retval
1769
1770} # ac_fn_c_try_cpp
1771
1772# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1773# -------------------------------------------------------
1774# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1775# the include files in INCLUDES and setting the cache variable VAR
1776# accordingly.
1777ac_fn_c_check_header_mongrel ()
1778{
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782$as_echo_n "checking for $2... " >&6; }
1783if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1784 $as_echo_n "(cached) " >&6
1785fi
1786eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788$as_echo "$ac_res" >&6; }
1789else
1790 # Is the header compilable?
1791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1792$as_echo_n "checking $2 usability... " >&6; }
1793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794/* end confdefs.h. */
1795$4
1796#include <$2>
1797_ACEOF
1798if ac_fn_c_try_compile "$LINENO"; then :
1799 ac_header_compiler=yes
1800else
1801 ac_header_compiler=no
1802fi
1803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1805$as_echo "$ac_header_compiler" >&6; }
1806
1807# Is the header present?
1808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1809$as_echo_n "checking $2 presence... " >&6; }
1810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811/* end confdefs.h. */
1812#include <$2>
1813_ACEOF
1814if ac_fn_c_try_cpp "$LINENO"; then :
1815 ac_header_preproc=yes
1816else
1817 ac_header_preproc=no
1818fi
1819rm -f conftest.err conftest.$ac_ext
1820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1821$as_echo "$ac_header_preproc" >&6; }
1822
1823# So? What about this header?
1824case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1825 yes:no: )
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1827$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1829$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1830 ;;
1831 no:yes:* )
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1833$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1835$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1837$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1839$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1841$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1842 ;;
1843esac
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845$as_echo_n "checking for $2... " >&6; }
1846if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1847 $as_echo_n "(cached) " >&6
1848else
1849 eval "$3=\$ac_header_compiler"
1850fi
1851eval ac_res=\$$3
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853$as_echo "$ac_res" >&6; }
1854fi
1855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856
1857} # ac_fn_c_check_header_mongrel
1858
1859# ac_fn_c_try_run LINENO
1860# ----------------------
1861# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1862# that executables *can* be run.
1863ac_fn_c_try_run ()
1864{
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 if { { ac_try="$ac_link"
1867case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870esac
1871eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872$as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_link") 2>&5
1874 ac_status=$?
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1877 { { case "(($ac_try" in
1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879 *) ac_try_echo=$ac_try;;
1880esac
1881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882$as_echo "$ac_try_echo"; } >&5
1883 (eval "$ac_try") 2>&5
1884 ac_status=$?
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; }; }; then :
1887 ac_retval=0
1888else
1889 $as_echo "$as_me: program exited with status $ac_status" >&5
1890 $as_echo "$as_me: failed program was:" >&5
1891sed 's/^/| /' conftest.$ac_ext >&5
1892
1893 ac_retval=$ac_status
1894fi
1895 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1896 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897 return $ac_retval
1898
1899} # ac_fn_c_try_run
1900
1901# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1902# -------------------------------------------------------
1903# Tests whether HEADER exists and can be compiled using the include files in
1904# INCLUDES, setting the cache variable VAR accordingly.
1905ac_fn_c_check_header_compile ()
1906{
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909$as_echo_n "checking for $2... " >&6; }
1910if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1911 $as_echo_n "(cached) " >&6
1912else
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914/* end confdefs.h. */
1915$4
1916#include <$2>
1917_ACEOF
1918if ac_fn_c_try_compile "$LINENO"; then :
1919 eval "$3=yes"
1920else
1921 eval "$3=no"
1922fi
1923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924fi
1925eval ac_res=\$$3
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927$as_echo "$ac_res" >&6; }
1928 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1929
1930} # ac_fn_c_check_header_compile
1931
1932# ac_fn_c_check_func LINENO FUNC VAR
1933# ----------------------------------
1934# Tests whether FUNC exists, setting the cache variable VAR accordingly
1935ac_fn_c_check_func ()
1936{
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939$as_echo_n "checking for $2... " >&6; }
1940if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1941 $as_echo_n "(cached) " >&6
1942else
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944/* end confdefs.h. */
1945/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1947#define $2 innocuous_$2
1948
1949/* System header to define __stub macros and hopefully few prototypes,
1950 which can conflict with char $2 (); below.
1951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1952 <limits.h> exists even on freestanding compilers. */
1953
1954#ifdef __STDC__
1955# include <limits.h>
1956#else
1957# include <assert.h>
1958#endif
1959
1960#undef $2
1961
1962/* Override any GCC internal prototype to avoid an error.
1963 Use char because int might match the return type of a GCC
1964 builtin and then its argument prototype would still apply. */
1965#ifdef __cplusplus
1966extern "C"
1967#endif
1968char $2 ();
1969/* The GNU C library defines this for functions which it implements
1970 to always fail with ENOSYS. Some functions are actually named
1971 something starting with __ and the normal name is an alias. */
1972#if defined __stub_$2 || defined __stub___$2
1973choke me
1974#endif
1975
1976int
1977main ()
1978{
1979return $2 ();
1980 ;
1981 return 0;
1982}
1983_ACEOF
1984if ac_fn_c_try_link "$LINENO"; then :
1985 eval "$3=yes"
1986else
1987 eval "$3=no"
1988fi
1989rm -f core conftest.err conftest.$ac_objext \
1990 conftest$ac_exeext conftest.$ac_ext
1991fi
1992eval ac_res=\$$3
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994$as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996
1997} # ac_fn_c_check_func
1998
1999# ac_fn_c_check_decl LINENO SYMBOL VAR
2000# ------------------------------------
2001# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2002ac_fn_c_check_decl ()
2003{
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2006$as_echo_n "checking whether $2 is declared... " >&6; }
2007if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2008 $as_echo_n "(cached) " >&6
2009else
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011/* end confdefs.h. */
2012$4
2013int
2014main ()
2015{
2016#ifndef $2
2017 (void) $2;
2018#endif
2019
2020 ;
2021 return 0;
2022}
2023_ACEOF
2024if ac_fn_c_try_compile "$LINENO"; then :
2025 eval "$3=yes"
2026else
2027 eval "$3=no"
2028fi
2029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030fi
2031eval ac_res=\$$3
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033$as_echo "$ac_res" >&6; }
2034 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2035
2036} # ac_fn_c_check_decl
2037cat >config.log <<_ACEOF
2038This file contains any messages produced by compilers while
2039running configure, to aid debugging if configure makes a mistake.
2040
2041It was created by $as_me, which was
2042generated by GNU Autoconf 2.64. Invocation command line was
2043
2044 $ $0 $@
2045
2046_ACEOF
2047exec 5>>config.log
2048{
2049cat <<_ASUNAME
2050## --------- ##
2051## Platform. ##
2052## --------- ##
2053
2054hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2055uname -m = `(uname -m) 2>/dev/null || echo unknown`
2056uname -r = `(uname -r) 2>/dev/null || echo unknown`
2057uname -s = `(uname -s) 2>/dev/null || echo unknown`
2058uname -v = `(uname -v) 2>/dev/null || echo unknown`
2059
2060/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2061/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
979273e3
NN
2062
2063/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2064/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2065/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 2066/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
979273e3
NN
2067/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2068/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2069/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2070
2071_ASUNAME
2072
2073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074for as_dir in $PATH
2075do
2076 IFS=$as_save_IFS
2077 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2078 $as_echo "PATH: $as_dir"
2079 done
2080IFS=$as_save_IFS
252b5132 2081
979273e3 2082} >&5
75798298 2083
979273e3 2084cat >&5 <<_ACEOF
252b5132 2085
252b5132 2086
979273e3
NN
2087## ----------- ##
2088## Core tests. ##
2089## ----------- ##
2090
2091_ACEOF
2092
2093
2094# Keep a trace of the command line.
2095# Strip out --no-create and --no-recursion so they do not pile up.
2096# Strip out --silent because we don't want to record it for future runs.
2097# Also quote any args containing shell meta-characters.
2098# Make two passes to allow for proper duplicate-argument suppression.
2099ac_configure_args=
2100ac_configure_args0=
2101ac_configure_args1=
979273e3
NN
2102ac_must_keep_next=false
2103for ac_pass in 1 2
2104do
2105 for ac_arg
2106 do
2107 case $ac_arg in
2108 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2110 | -silent | --silent | --silen | --sile | --sil)
2111 continue ;;
81ecdfbb
RW
2112 *\'*)
2113 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
979273e3
NN
2114 esac
2115 case $ac_pass in
81ecdfbb 2116 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
979273e3 2117 2)
81ecdfbb 2118 as_fn_append ac_configure_args1 " '$ac_arg'"
979273e3
NN
2119 if test $ac_must_keep_next = true; then
2120 ac_must_keep_next=false # Got value, back to normal.
2121 else
2122 case $ac_arg in
2123 *=* | --config-cache | -C | -disable-* | --disable-* \
2124 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2125 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2126 | -with-* | --with-* | -without-* | --without-* | --x)
2127 case "$ac_configure_args0 " in
2128 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2129 esac
2130 ;;
2131 -* ) ac_must_keep_next=true ;;
2132 esac
2133 fi
81ecdfbb 2134 as_fn_append ac_configure_args " '$ac_arg'"
979273e3
NN
2135 ;;
2136 esac
2137 done
2138done
81ecdfbb
RW
2139{ ac_configure_args0=; unset ac_configure_args0;}
2140{ ac_configure_args1=; unset ac_configure_args1;}
979273e3
NN
2141
2142# When interrupted or exit'd, cleanup temporary files, and complete
2143# config.log. We remove comments because anyway the quotes in there
2144# would cause problems or look ugly.
81ecdfbb
RW
2145# WARNING: Use '\'' to represent an apostrophe within the trap.
2146# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
979273e3
NN
2147trap 'exit_status=$?
2148 # Save into config.log some information that might help in debugging.
2149 {
2150 echo
2151
2152 cat <<\_ASBOX
2153## ---------------- ##
2154## Cache variables. ##
2155## ---------------- ##
2156_ASBOX
2157 echo
2158 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2159(
2160 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2161 eval ac_val=\$$ac_var
2162 case $ac_val in #(
2163 *${as_nl}*)
2164 case $ac_var in #(
2165 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2166$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2167 esac
2168 case $ac_var in #(
2169 _ | IFS | as_nl) ;; #(
2170 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2171 *) { eval $ac_var=; unset $ac_var;} ;;
2172 esac ;;
2173 esac
2174 done
979273e3 2175 (set) 2>&1 |
81ecdfbb
RW
2176 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2177 *${as_nl}ac_space=\ *)
979273e3 2178 sed -n \
81ecdfbb
RW
2179 "s/'\''/'\''\\\\'\'''\''/g;
2180 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2181 ;; #(
979273e3 2182 *)
81ecdfbb 2183 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
979273e3 2184 ;;
81ecdfbb
RW
2185 esac |
2186 sort
2187)
979273e3
NN
2188 echo
2189
2190 cat <<\_ASBOX
2191## ----------------- ##
2192## Output variables. ##
2193## ----------------- ##
2194_ASBOX
2195 echo
2196 for ac_var in $ac_subst_vars
2197 do
81ecdfbb
RW
2198 eval ac_val=\$$ac_var
2199 case $ac_val in
2200 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2201 esac
2202 $as_echo "$ac_var='\''$ac_val'\''"
979273e3
NN
2203 done | sort
2204 echo
2205
2206 if test -n "$ac_subst_files"; then
2207 cat <<\_ASBOX
81ecdfbb
RW
2208## ------------------- ##
2209## File substitutions. ##
2210## ------------------- ##
979273e3
NN
2211_ASBOX
2212 echo
2213 for ac_var in $ac_subst_files
2214 do
81ecdfbb
RW
2215 eval ac_val=\$$ac_var
2216 case $ac_val in
2217 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2218 esac
2219 $as_echo "$ac_var='\''$ac_val'\''"
979273e3
NN
2220 done | sort
2221 echo
2222 fi
2223
2224 if test -s confdefs.h; then
2225 cat <<\_ASBOX
2226## ----------- ##
2227## confdefs.h. ##
2228## ----------- ##
2229_ASBOX
2230 echo
81ecdfbb 2231 cat confdefs.h
979273e3
NN
2232 echo
2233 fi
2234 test "$ac_signal" != 0 &&
81ecdfbb
RW
2235 $as_echo "$as_me: caught signal $ac_signal"
2236 $as_echo "$as_me: exit $exit_status"
979273e3 2237 } >&5
81ecdfbb
RW
2238 rm -f core *.core core.conftest.* &&
2239 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
979273e3 2240 exit $exit_status
81ecdfbb 2241' 0
979273e3 2242for ac_signal in 1 2 13 15; do
81ecdfbb 2243 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
979273e3
NN
2244done
2245ac_signal=0
2246
2247# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2248rm -f -r conftest* confdefs.h
2249
2250$as_echo "/* confdefs.h */" > confdefs.h
979273e3
NN
2251
2252# Predefined preprocessor variables.
2253
2254cat >>confdefs.h <<_ACEOF
2255#define PACKAGE_NAME "$PACKAGE_NAME"
2256_ACEOF
2257
979273e3
NN
2258cat >>confdefs.h <<_ACEOF
2259#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2260_ACEOF
2261
979273e3
NN
2262cat >>confdefs.h <<_ACEOF
2263#define PACKAGE_VERSION "$PACKAGE_VERSION"
2264_ACEOF
2265
979273e3
NN
2266cat >>confdefs.h <<_ACEOF
2267#define PACKAGE_STRING "$PACKAGE_STRING"
2268_ACEOF
2269
979273e3
NN
2270cat >>confdefs.h <<_ACEOF
2271#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2272_ACEOF
2273
81ecdfbb
RW
2274cat >>confdefs.h <<_ACEOF
2275#define PACKAGE_URL "$PACKAGE_URL"
2276_ACEOF
2277
979273e3
NN
2278
2279# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2280# Prefer an explicitly selected file to automatically selected ones.
2281ac_site_file1=NONE
2282ac_site_file2=NONE
2283if test -n "$CONFIG_SITE"; then
2284 ac_site_file1=$CONFIG_SITE
2285elif test "x$prefix" != xNONE; then
2286 ac_site_file1=$prefix/share/config.site
2287 ac_site_file2=$prefix/etc/config.site
2288else
2289 ac_site_file1=$ac_default_prefix/share/config.site
2290 ac_site_file2=$ac_default_prefix/etc/config.site
2291fi
2292for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2293do
2294 test "x$ac_site_file" = xNONE && continue
979273e3 2295 if test -r "$ac_site_file"; then
81ecdfbb
RW
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2297$as_echo "$as_me: loading site script $ac_site_file" >&6;}
979273e3
NN
2298 sed 's/^/| /' "$ac_site_file" >&5
2299 . "$ac_site_file"
2300 fi
2301done
2302
2303if test -r "$cache_file"; then
2304 # Some versions of bash will fail to source /dev/null (special
2305 # files actually), so we avoid doing that.
2306 if test -f "$cache_file"; then
81ecdfbb
RW
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2308$as_echo "$as_me: loading cache $cache_file" >&6;}
979273e3 2309 case $cache_file in
81ecdfbb
RW
2310 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2311 *) . "./$cache_file";;
979273e3
NN
2312 esac
2313 fi
2314else
81ecdfbb
RW
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2316$as_echo "$as_me: creating cache $cache_file" >&6;}
979273e3
NN
2317 >$cache_file
2318fi
2319
2320# Check that the precious variables saved in the cache have kept the same
2321# value.
2322ac_cache_corrupted=false
81ecdfbb 2323for ac_var in $ac_precious_vars; do
979273e3
NN
2324 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2325 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2326 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2327 eval ac_new_val=\$ac_env_${ac_var}_value
979273e3
NN
2328 case $ac_old_set,$ac_new_set in
2329 set,)
81ecdfbb
RW
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2331$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
979273e3
NN
2332 ac_cache_corrupted=: ;;
2333 ,set)
81ecdfbb
RW
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2335$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
979273e3
NN
2336 ac_cache_corrupted=: ;;
2337 ,);;
2338 *)
2339 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2340 # differences in whitespace do not lead to failure.
2341 ac_old_val_w=`echo x $ac_old_val`
2342 ac_new_val_w=`echo x $ac_new_val`
2343 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2345$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2346 ac_cache_corrupted=:
2347 else
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2349$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2350 eval $ac_var=\$ac_old_val
2351 fi
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2353$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2355$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
979273e3
NN
2356 fi;;
2357 esac
2358 # Pass precious variables to config.status.
2359 if test "$ac_new_set" = set; then
2360 case $ac_new_val in
81ecdfbb 2361 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
979273e3
NN
2362 *) ac_arg=$ac_var=$ac_new_val ;;
2363 esac
2364 case " $ac_configure_args " in
2365 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2366 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
979273e3
NN
2367 esac
2368 fi
2369done
2370if $ac_cache_corrupted; then
81ecdfbb
RW
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2374$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2375 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
979273e3 2376fi
81ecdfbb
RW
2377## -------------------- ##
2378## Main body of script. ##
2379## -------------------- ##
979273e3
NN
2380
2381ac_ext=c
2382ac_cpp='$CPP $CPPFLAGS'
2383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2385ac_compiler_gnu=$ac_cv_c_compiler_gnu
2386
2387
2388
979273e3
NN
2389
2390
2391
2392
2393ac_aux_dir=
81ecdfbb
RW
2394for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2395 for ac_t in install-sh install.sh shtool; do
2396 if test -f "$ac_dir/$ac_t"; then
2397 ac_aux_dir=$ac_dir
2398 ac_install_sh="$ac_aux_dir/$ac_t -c"
2399 break 2
2400 fi
2401 done
979273e3
NN
2402done
2403if test -z "$ac_aux_dir"; then
81ecdfbb 2404 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
979273e3 2405fi
81ecdfbb
RW
2406
2407# These three variables are undocumented and unsupported,
2408# and are intended to be withdrawn in a future Autoconf release.
2409# They can cause serious problems if a builder's source tree is in a directory
2410# whose full name contains unusual characters.
2411ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2412ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2413ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2414
979273e3
NN
2415
2416# Make sure we can run config.sub.
81ecdfbb
RW
2417$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2418 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2419
2420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2421$as_echo_n "checking build system type... " >&6; }
2422if test "${ac_cv_build+set}" = set; then :
2423 $as_echo_n "(cached) " >&6
2424else
2425 ac_build_alias=$build_alias
2426test "x$ac_build_alias" = x &&
2427 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2428test "x$ac_build_alias" = x &&
2429 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2430ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2431 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2432
2433fi
2434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2435$as_echo "$ac_cv_build" >&6; }
2436case $ac_cv_build in
2437*-*-*) ;;
2438*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2439esac
979273e3 2440build=$ac_cv_build
81ecdfbb
RW
2441ac_save_IFS=$IFS; IFS='-'
2442set x $ac_cv_build
2443shift
2444build_cpu=$1
2445build_vendor=$2
2446shift; shift
2447# Remember, the first character of IFS is used to create $*,
2448# except with old shells:
2449build_os=$*
2450IFS=$ac_save_IFS
2451case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
979273e3
NN
2452
2453
81ecdfbb
RW
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2455$as_echo_n "checking host system type... " >&6; }
2456if test "${ac_cv_host+set}" = set; then :
2457 $as_echo_n "(cached) " >&6
979273e3 2458else
81ecdfbb
RW
2459 if test "x$host_alias" = x; then
2460 ac_cv_host=$ac_cv_build
2461else
2462 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2463 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2464fi
979273e3
NN
2465
2466fi
81ecdfbb
RW
2467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2468$as_echo "$ac_cv_host" >&6; }
2469case $ac_cv_host in
2470*-*-*) ;;
2471*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2472esac
979273e3 2473host=$ac_cv_host
81ecdfbb
RW
2474ac_save_IFS=$IFS; IFS='-'
2475set x $ac_cv_host
2476shift
2477host_cpu=$1
2478host_vendor=$2
2479shift; shift
2480# Remember, the first character of IFS is used to create $*,
2481# except with old shells:
2482host_os=$*
2483IFS=$ac_save_IFS
2484case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
979273e3
NN
2485
2486
81ecdfbb
RW
2487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2488$as_echo_n "checking target system type... " >&6; }
2489if test "${ac_cv_target+set}" = set; then :
2490 $as_echo_n "(cached) " >&6
2491else
2492 if test "x$target_alias" = x; then
2493 ac_cv_target=$ac_cv_host
979273e3 2494else
81ecdfbb
RW
2495 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2496 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2497fi
979273e3
NN
2498
2499fi
81ecdfbb
RW
2500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2501$as_echo "$ac_cv_target" >&6; }
2502case $ac_cv_target in
2503*-*-*) ;;
2504*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2505esac
979273e3 2506target=$ac_cv_target
81ecdfbb
RW
2507ac_save_IFS=$IFS; IFS='-'
2508set x $ac_cv_target
2509shift
2510target_cpu=$1
2511target_vendor=$2
2512shift; shift
2513# Remember, the first character of IFS is used to create $*,
2514# except with old shells:
2515target_os=$*
2516IFS=$ac_save_IFS
2517case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
979273e3
NN
2518
2519
2520# The aliases save the names the user supplied, while $host etc.
2521# will get canonicalized.
2522test -n "$target_alias" &&
2523 test "$program_prefix$program_suffix$program_transform_name" = \
2524 NONENONEs,x,x, &&
2525 program_prefix=${target_alias}-
2526ac_ext=c
2527ac_cpp='$CPP $CPPFLAGS'
2528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531if test -n "$ac_tool_prefix"; then
2532 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2533set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2535$as_echo_n "checking for $ac_word... " >&6; }
2536if test "${ac_cv_prog_CC+set}" = set; then :
2537 $as_echo_n "(cached) " >&6
979273e3
NN
2538else
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC="$CC" # Let the user override the test.
2541else
2542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543for as_dir in $PATH
2544do
2545 IFS=$as_save_IFS
2546 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
979273e3 2549 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
2551 break 2
2552 fi
2553done
81ecdfbb
RW
2554 done
2555IFS=$as_save_IFS
979273e3
NN
2556
2557fi
2558fi
2559CC=$ac_cv_prog_CC
2560if test -n "$CC"; then
81ecdfbb
RW
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2562$as_echo "$CC" >&6; }
979273e3 2563else
81ecdfbb
RW
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2565$as_echo "no" >&6; }
979273e3
NN
2566fi
2567
81ecdfbb 2568
979273e3
NN
2569fi
2570if test -z "$ac_cv_prog_CC"; then
2571 ac_ct_CC=$CC
2572 # Extract the first word of "gcc", so it can be a program name with args.
2573set dummy gcc; ac_word=$2
81ecdfbb
RW
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575$as_echo_n "checking for $ac_word... " >&6; }
2576if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2577 $as_echo_n "(cached) " >&6
979273e3
NN
2578else
2579 if test -n "$ac_ct_CC"; then
2580 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2581else
2582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583for as_dir in $PATH
2584do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
979273e3 2589 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
2591 break 2
2592 fi
2593done
81ecdfbb
RW
2594 done
2595IFS=$as_save_IFS
979273e3
NN
2596
2597fi
2598fi
2599ac_ct_CC=$ac_cv_prog_ac_ct_CC
2600if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2602$as_echo "$ac_ct_CC" >&6; }
979273e3 2603else
81ecdfbb
RW
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605$as_echo "no" >&6; }
979273e3
NN
2606fi
2607
81ecdfbb
RW
2608 if test "x$ac_ct_CC" = x; then
2609 CC=""
2610 else
2611 case $cross_compiling:$ac_tool_warned in
2612yes:)
2613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2615ac_tool_warned=yes ;;
2616esac
2617 CC=$ac_ct_CC
2618 fi
979273e3
NN
2619else
2620 CC="$ac_cv_prog_CC"
2621fi
2622
2623if test -z "$CC"; then
81ecdfbb
RW
2624 if test -n "$ac_tool_prefix"; then
2625 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
979273e3 2626set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628$as_echo_n "checking for $ac_word... " >&6; }
2629if test "${ac_cv_prog_CC+set}" = set; then :
2630 $as_echo_n "(cached) " >&6
979273e3
NN
2631else
2632 if test -n "$CC"; then
2633 ac_cv_prog_CC="$CC" # Let the user override the test.
2634else
2635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636for as_dir in $PATH
2637do
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
979273e3 2642 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
2644 break 2
2645 fi
2646done
81ecdfbb
RW
2647 done
2648IFS=$as_save_IFS
979273e3
NN
2649
2650fi
2651fi
2652CC=$ac_cv_prog_CC
2653if test -n "$CC"; then
81ecdfbb
RW
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2655$as_echo "$CC" >&6; }
979273e3 2656else
81ecdfbb
RW
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658$as_echo "no" >&6; }
979273e3
NN
2659fi
2660
979273e3 2661
81ecdfbb 2662 fi
979273e3
NN
2663fi
2664if test -z "$CC"; then
2665 # Extract the first word of "cc", so it can be a program name with args.
2666set dummy cc; ac_word=$2
81ecdfbb
RW
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668$as_echo_n "checking for $ac_word... " >&6; }
2669if test "${ac_cv_prog_CC+set}" = set; then :
2670 $as_echo_n "(cached) " >&6
979273e3
NN
2671else
2672 if test -n "$CC"; then
2673 ac_cv_prog_CC="$CC" # Let the user override the test.
2674else
2675 ac_prog_rejected=no
2676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677for as_dir in $PATH
2678do
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
979273e3
NN
2683 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2684 ac_prog_rejected=yes
2685 continue
2686 fi
2687 ac_cv_prog_CC="cc"
81ecdfbb 2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
2689 break 2
2690 fi
2691done
81ecdfbb
RW
2692 done
2693IFS=$as_save_IFS
979273e3
NN
2694
2695if test $ac_prog_rejected = yes; then
2696 # We found a bogon in the path, so make sure we never use it.
2697 set dummy $ac_cv_prog_CC
2698 shift
2699 if test $# != 0; then
2700 # We chose a different compiler from the bogus one.
2701 # However, it has the same basename, so the bogon will be chosen
2702 # first if we set CC to just the basename; use the full file name.
2703 shift
2704 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2705 fi
2706fi
2707fi
2708fi
2709CC=$ac_cv_prog_CC
2710if test -n "$CC"; then
81ecdfbb
RW
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2712$as_echo "$CC" >&6; }
979273e3 2713else
81ecdfbb
RW
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715$as_echo "no" >&6; }
979273e3
NN
2716fi
2717
81ecdfbb 2718
979273e3
NN
2719fi
2720if test -z "$CC"; then
2721 if test -n "$ac_tool_prefix"; then
81ecdfbb 2722 for ac_prog in cl.exe
979273e3
NN
2723 do
2724 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2725set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727$as_echo_n "checking for $ac_word... " >&6; }
2728if test "${ac_cv_prog_CC+set}" = set; then :
2729 $as_echo_n "(cached) " >&6
979273e3
NN
2730else
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC="$CC" # Let the user override the test.
2733else
2734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735for as_dir in $PATH
2736do
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
979273e3 2741 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
2743 break 2
2744 fi
2745done
81ecdfbb
RW
2746 done
2747IFS=$as_save_IFS
979273e3
NN
2748
2749fi
2750fi
2751CC=$ac_cv_prog_CC
2752if test -n "$CC"; then
81ecdfbb
RW
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2754$as_echo "$CC" >&6; }
979273e3 2755else
81ecdfbb
RW
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757$as_echo "no" >&6; }
979273e3
NN
2758fi
2759
81ecdfbb 2760
979273e3
NN
2761 test -n "$CC" && break
2762 done
2763fi
2764if test -z "$CC"; then
2765 ac_ct_CC=$CC
81ecdfbb 2766 for ac_prog in cl.exe
979273e3
NN
2767do
2768 # Extract the first word of "$ac_prog", so it can be a program name with args.
2769set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771$as_echo_n "checking for $ac_word... " >&6; }
2772if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2773 $as_echo_n "(cached) " >&6
979273e3
NN
2774else
2775 if test -n "$ac_ct_CC"; then
2776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2777else
2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779for as_dir in $PATH
2780do
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
979273e3 2785 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
2787 break 2
2788 fi
2789done
81ecdfbb
RW
2790 done
2791IFS=$as_save_IFS
2792
979273e3
NN
2793fi
2794fi
2795ac_ct_CC=$ac_cv_prog_ac_ct_CC
2796if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2798$as_echo "$ac_ct_CC" >&6; }
979273e3 2799else
81ecdfbb
RW
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801$as_echo "no" >&6; }
979273e3
NN
2802fi
2803
81ecdfbb 2804
979273e3
NN
2805 test -n "$ac_ct_CC" && break
2806done
2807
81ecdfbb
RW
2808 if test "x$ac_ct_CC" = x; then
2809 CC=""
2810 else
2811 case $cross_compiling:$ac_tool_warned in
2812yes:)
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2815ac_tool_warned=yes ;;
2816esac
2817 CC=$ac_ct_CC
2818 fi
979273e3
NN
2819fi
2820
2821fi
2822
2823
81ecdfbb
RW
2824test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2825$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2826as_fn_error "no acceptable C compiler found in \$PATH
2827See \`config.log' for more details." "$LINENO" 5; }
979273e3
NN
2828
2829# Provide some information about the compiler.
81ecdfbb
RW
2830$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2831set X $ac_compile
2832ac_compiler=$2
2833for ac_option in --version -v -V -qversion; do
2834 { { ac_try="$ac_compiler $ac_option >&5"
2835case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838esac
2839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2840$as_echo "$ac_try_echo"; } >&5
2841 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
979273e3 2842 ac_status=$?
81ecdfbb
RW
2843 if test -s conftest.err; then
2844 sed '10a\
2845... rest of stderr output deleted ...
2846 10q' conftest.err >conftest.er1
2847 cat conftest.er1 >&5
2848 rm -f conftest.er1 conftest.err
2849 fi
2850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2851 test $ac_status = 0; }
2852done
979273e3 2853
81ecdfbb 2854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
979273e3
NN
2855/* end confdefs.h. */
2856
2857int
2858main ()
2859{
2860
2861 ;
2862 return 0;
2863}
2864_ACEOF
2865ac_clean_files_save=$ac_clean_files
81ecdfbb 2866ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
979273e3
NN
2867# Try to create an executable without -o first, disregard a.out.
2868# It will help us diagnose broken compilers, and finding out an intuition
2869# of exeext.
81ecdfbb
RW
2870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2871$as_echo_n "checking for C compiler default output file name... " >&6; }
2872ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2873
2874# The possible output files:
2875ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2876
2877ac_rmfiles=
2878for ac_file in $ac_files
2879do
2880 case $ac_file in
2881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2882 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2883 esac
2884done
2885rm -f $ac_rmfiles
2886
2887if { { ac_try="$ac_link_default"
2888case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891esac
2892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2893$as_echo "$ac_try_echo"; } >&5
2894 (eval "$ac_link_default") 2>&5
2895 ac_status=$?
2896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2897 test $ac_status = 0; }; then :
2898 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2899# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2900# in a Makefile. We should not override ac_cv_exeext if it was cached,
2901# so that the user can short-circuit this test for compilers unknown to
2902# Autoconf.
2903for ac_file in $ac_files ''
979273e3
NN
2904do
2905 test -f "$ac_file" || continue
2906 case $ac_file in
81ecdfbb 2907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
979273e3
NN
2908 ;;
2909 [ab].out )
2910 # We found the default executable, but exeext='' is most
2911 # certainly right.
2912 break;;
2913 *.* )
81ecdfbb
RW
2914 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2915 then :; else
2916 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2917 fi
2918 # We set ac_cv_exeext here because the later test for it is not
2919 # safe: cross compilers may not add the suffix if given an `-o'
2920 # argument, so we may need to know it at that point already.
2921 # Even if this section looks crufty: it has the advantage of
2922 # actually working.
979273e3
NN
2923 break;;
2924 * )
2925 break;;
2926 esac
2927done
81ecdfbb
RW
2928test "$ac_cv_exeext" = no && ac_cv_exeext=
2929
979273e3 2930else
81ecdfbb
RW
2931 ac_file=''
2932fi
2933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2934$as_echo "$ac_file" >&6; }
2935if test -z "$ac_file"; then :
2936 $as_echo "$as_me: failed program was:" >&5
979273e3
NN
2937sed 's/^/| /' conftest.$ac_ext >&5
2938
81ecdfbb
RW
2939{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2940$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2941{ as_fn_set_status 77
2942as_fn_error "C compiler cannot create executables
2943See \`config.log' for more details." "$LINENO" 5; }; }
979273e3 2944fi
979273e3 2945ac_exeext=$ac_cv_exeext
979273e3 2946
81ecdfbb 2947# Check that the compiler produces executables we can run. If not, either
979273e3 2948# the compiler is broken, or we cross compile.
81ecdfbb
RW
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2950$as_echo_n "checking whether the C compiler works... " >&6; }
979273e3
NN
2951# If not cross compiling, check that we can run a simple program.
2952if test "$cross_compiling" != yes; then
2953 if { ac_try='./$ac_file'
81ecdfbb
RW
2954 { { case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957esac
2958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959$as_echo "$ac_try_echo"; } >&5
2960 (eval "$ac_try") 2>&5
979273e3 2961 ac_status=$?
81ecdfbb
RW
2962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2963 test $ac_status = 0; }; }; then
979273e3
NN
2964 cross_compiling=no
2965 else
2966 if test "$cross_compiling" = maybe; then
2967 cross_compiling=yes
2968 else
81ecdfbb
RW
2969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2971as_fn_error "cannot run C compiled programs.
979273e3 2972If you meant to cross compile, use \`--host'.
81ecdfbb 2973See \`config.log' for more details." "$LINENO" 5; }
979273e3
NN
2974 fi
2975 fi
2976fi
81ecdfbb
RW
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2978$as_echo "yes" >&6; }
979273e3 2979
81ecdfbb 2980rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
979273e3 2981ac_clean_files=$ac_clean_files_save
81ecdfbb 2982# Check that the compiler produces executables we can run. If not, either
979273e3 2983# the compiler is broken, or we cross compile.
81ecdfbb
RW
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2985$as_echo_n "checking whether we are cross compiling... " >&6; }
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2987$as_echo "$cross_compiling" >&6; }
2988
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2990$as_echo_n "checking for suffix of executables... " >&6; }
2991if { { ac_try="$ac_link"
2992case "(($ac_try" in
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2995esac
2996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2997$as_echo "$ac_try_echo"; } >&5
2998 (eval "$ac_link") 2>&5
979273e3 2999 ac_status=$?
81ecdfbb
RW
3000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3001 test $ac_status = 0; }; then :
979273e3
NN
3002 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3003# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3004# work properly (i.e., refer to `conftest.exe'), while it won't with
3005# `rm'.
3006for ac_file in conftest.exe conftest conftest.*; do
3007 test -f "$ac_file" || continue
3008 case $ac_file in
81ecdfbb 3009 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
979273e3 3010 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
979273e3
NN
3011 break;;
3012 * ) break;;
3013 esac
3014done
3015else
81ecdfbb
RW
3016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3018as_fn_error "cannot compute suffix of executables: cannot compile and link
3019See \`config.log' for more details." "$LINENO" 5; }
979273e3 3020fi
979273e3 3021rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3023$as_echo "$ac_cv_exeext" >&6; }
979273e3
NN
3024
3025rm -f conftest.$ac_ext
3026EXEEXT=$ac_cv_exeext
3027ac_exeext=$EXEEXT
81ecdfbb
RW
3028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3029$as_echo_n "checking for suffix of object files... " >&6; }
3030if test "${ac_cv_objext+set}" = set; then :
3031 $as_echo_n "(cached) " >&6
979273e3 3032else
81ecdfbb 3033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
979273e3
NN
3034/* end confdefs.h. */
3035
3036int
3037main ()
3038{
3039
3040 ;
3041 return 0;
3042}
3043_ACEOF
3044rm -f conftest.o conftest.obj
81ecdfbb
RW
3045if { { ac_try="$ac_compile"
3046case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3049esac
3050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3051$as_echo "$ac_try_echo"; } >&5
3052 (eval "$ac_compile") 2>&5
3053 ac_status=$?
3054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3055 test $ac_status = 0; }; then :
3056 for ac_file in conftest.o conftest.obj conftest.*; do
3057 test -f "$ac_file" || continue;
979273e3 3058 case $ac_file in
81ecdfbb 3059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
979273e3
NN
3060 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3061 break;;
3062 esac
3063done
3064else
81ecdfbb 3065 $as_echo "$as_me: failed program was:" >&5
979273e3
NN
3066sed 's/^/| /' conftest.$ac_ext >&5
3067
81ecdfbb
RW
3068{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3070as_fn_error "cannot compute suffix of object files: cannot compile
3071See \`config.log' for more details." "$LINENO" 5; }
979273e3 3072fi
979273e3
NN
3073rm -f conftest.$ac_cv_objext conftest.$ac_ext
3074fi
81ecdfbb
RW
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3076$as_echo "$ac_cv_objext" >&6; }
979273e3
NN
3077OBJEXT=$ac_cv_objext
3078ac_objext=$OBJEXT
81ecdfbb
RW
3079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3080$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3081if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3082 $as_echo_n "(cached) " >&6
979273e3 3083else
81ecdfbb 3084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
979273e3
NN
3085/* end confdefs.h. */
3086
3087int
3088main ()
3089{
3090#ifndef __GNUC__
3091 choke me
3092#endif
3093
3094 ;
3095 return 0;
3096}
3097_ACEOF
81ecdfbb 3098if ac_fn_c_try_compile "$LINENO"; then :
979273e3
NN
3099 ac_compiler_gnu=yes
3100else
81ecdfbb 3101 ac_compiler_gnu=no
979273e3 3102fi
81ecdfbb 3103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
979273e3
NN
3104ac_cv_c_compiler_gnu=$ac_compiler_gnu
3105
3106fi
81ecdfbb
RW
3107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3108$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3109if test $ac_compiler_gnu = yes; then
3110 GCC=yes
3111else
3112 GCC=
3113fi
979273e3
NN
3114ac_test_CFLAGS=${CFLAGS+set}
3115ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3117$as_echo_n "checking whether $CC accepts -g... " >&6; }
3118if test "${ac_cv_prog_cc_g+set}" = set; then :
3119 $as_echo_n "(cached) " >&6
3120else
3121 ac_save_c_werror_flag=$ac_c_werror_flag
3122 ac_c_werror_flag=yes
3123 ac_cv_prog_cc_g=no
3124 CFLAGS="-g"
3125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
979273e3
NN
3126/* end confdefs.h. */
3127
3128int
3129main ()
3130{
3131
3132 ;
3133 return 0;
3134}
3135_ACEOF
81ecdfbb 3136if ac_fn_c_try_compile "$LINENO"; then :
979273e3
NN
3137 ac_cv_prog_cc_g=yes
3138else
81ecdfbb
RW
3139 CFLAGS=""
3140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3141/* end confdefs.h. */
3142
3143int
3144main ()
3145{
3146
3147 ;
3148 return 0;
3149}
3150_ACEOF
3151if ac_fn_c_try_compile "$LINENO"; then :
3152
3153else
3154 ac_c_werror_flag=$ac_save_c_werror_flag
3155 CFLAGS="-g"
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157/* end confdefs.h. */
979273e3 3158
81ecdfbb
RW
3159int
3160main ()
3161{
3162
3163 ;
3164 return 0;
3165}
3166_ACEOF
3167if ac_fn_c_try_compile "$LINENO"; then :
3168 ac_cv_prog_cc_g=yes
979273e3 3169fi
81ecdfbb 3170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
979273e3 3171fi
81ecdfbb
RW
3172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173fi
3174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175 ac_c_werror_flag=$ac_save_c_werror_flag
3176fi
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3178$as_echo "$ac_cv_prog_cc_g" >&6; }
979273e3
NN
3179if test "$ac_test_CFLAGS" = set; then
3180 CFLAGS=$ac_save_CFLAGS
3181elif test $ac_cv_prog_cc_g = yes; then
3182 if test "$GCC" = yes; then
3183 CFLAGS="-g -O2"
3184 else
3185 CFLAGS="-g"
3186 fi
3187else
3188 if test "$GCC" = yes; then
3189 CFLAGS="-O2"
3190 else
3191 CFLAGS=
3192 fi
3193fi
81ecdfbb
RW
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3195$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3196if test "${ac_cv_prog_cc_c89+set}" = set; then :
3197 $as_echo_n "(cached) " >&6
979273e3 3198else
81ecdfbb 3199 ac_cv_prog_cc_c89=no
979273e3 3200ac_save_CC=$CC
81ecdfbb 3201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
979273e3
NN
3202/* end confdefs.h. */
3203#include <stdarg.h>
3204#include <stdio.h>
3205#include <sys/types.h>
3206#include <sys/stat.h>
3207/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3208struct buf { int x; };
3209FILE * (*rcsopen) (struct buf *, struct stat *, int);
3210static char *e (p, i)
3211 char **p;
3212 int i;
3213{
3214 return p[i];
3215}
3216static char *f (char * (*g) (char **, int), char **p, ...)
3217{
3218 char *s;
3219 va_list v;
3220 va_start (v,p);
3221 s = g (p, va_arg (v,int));
3222 va_end (v);
3223 return s;
3224}
3225
3226/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3227 function prototypes and stuff, but not '\xHH' hex character constants.
3228 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3229 as 'x'. The following induces an error, until -std is added to get
979273e3
NN
3230 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3231 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3232 that's true only with -std. */
979273e3
NN
3233int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3234
81ecdfbb
RW
3235/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3236 inside strings and character constants. */
3237#define FOO(x) 'x'
3238int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3239
979273e3
NN
3240int test (int i, double x);
3241struct s1 {int (*f) (int a);};
3242struct s2 {int (*f) (double a);};
3243int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3244int argc;
3245char **argv;
3246int
3247main ()
3248{
3249return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3250 ;
3251 return 0;
3252}
3253_ACEOF
81ecdfbb
RW
3254for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3255 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
979273e3
NN
3256do
3257 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3258 if ac_fn_c_try_compile "$LINENO"; then :
3259 ac_cv_prog_cc_c89=$ac_arg
979273e3 3260fi
81ecdfbb
RW
3261rm -f core conftest.err conftest.$ac_objext
3262 test "x$ac_cv_prog_cc_c89" != "xno" && break
979273e3 3263done
81ecdfbb 3264rm -f conftest.$ac_ext
979273e3
NN
3265CC=$ac_save_CC
3266
3267fi
81ecdfbb
RW
3268# AC_CACHE_VAL
3269case "x$ac_cv_prog_cc_c89" in
3270 x)
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3272$as_echo "none needed" >&6; } ;;
3273 xno)
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3275$as_echo "unsupported" >&6; } ;;
979273e3 3276 *)
81ecdfbb
RW
3277 CC="$CC $ac_cv_prog_cc_c89"
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3279$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
979273e3 3280esac
81ecdfbb 3281if test "x$ac_cv_prog_cc_c89" != xno; then :
979273e3 3282
979273e3
NN
3283fi
3284
979273e3
NN
3285ac_ext=c
3286ac_cpp='$CPP $CPPFLAGS'
3287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3289ac_compiler_gnu=$ac_cv_c_compiler_gnu
3290
3291
81ecdfbb
RW
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3293$as_echo_n "checking for library containing strerror... " >&6; }
3294if test "${ac_cv_search_strerror+set}" = set; then :
3295 $as_echo_n "(cached) " >&6
979273e3 3296else
8ae85421 3297 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
979273e3
NN
3299/* end confdefs.h. */
3300
81ecdfbb
RW
3301/* Override any GCC internal prototype to avoid an error.
3302 Use char because int might match the return type of a GCC
3303 builtin and then its argument prototype would still apply. */
979273e3
NN
3304#ifdef __cplusplus
3305extern "C"
3306#endif
979273e3
NN
3307char strerror ();
3308int
3309main ()
3310{
81ecdfbb 3311return strerror ();
979273e3
NN
3312 ;
3313 return 0;
3314}
3315_ACEOF
81ecdfbb
RW
3316for ac_lib in '' cposix; do
3317 if test -z "$ac_lib"; then
3318 ac_res="none required"
3319 else
3320 ac_res=-l$ac_lib
8ae85421 3321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3322 fi
3323 if ac_fn_c_try_link "$LINENO"; then :
3324 ac_cv_search_strerror=$ac_res
3325fi
3326rm -f core conftest.err conftest.$ac_objext \
3327 conftest$ac_exeext
3328 if test "${ac_cv_search_strerror+set}" = set; then :
3329 break
3330fi
3331done
3332if test "${ac_cv_search_strerror+set}" = set; then :
8ae85421 3333
8ae85421 3334else
81ecdfbb 3335 ac_cv_search_strerror=no
979273e3 3336fi
81ecdfbb 3337rm conftest.$ac_ext
8ae85421
AM
3338LIBS=$ac_func_search_save_LIBS
3339fi
81ecdfbb
RW
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3341$as_echo "$ac_cv_search_strerror" >&6; }
3342ac_res=$ac_cv_search_strerror
3343if test "$ac_res" != no; then :
3344 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
979273e3 3345
8ae85421 3346fi
979273e3
NN
3347
3348
3349# We currently only use the version number for the name of any shared
3350# library. For user convenience, we always use the same version
3351# number that BFD is using.
3352BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
3353
81ecdfbb
RW
3354am__api_version='1.11'
3355
979273e3
NN
3356# Find a good install program. We prefer a C program (faster),
3357# so one script is as good as another. But avoid the broken or
3358# incompatible versions:
3359# SysV /etc/install, /usr/sbin/install
3360# SunOS /usr/etc/install
3361# IRIX /sbin/install
3362# AIX /bin/install
3363# AmigaOS /C/install, which installs bootblocks on floppy discs
3364# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3365# AFS /usr/afsws/bin/install, which mishandles nonexistent args
252b5132 3366# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
979273e3 3367# OS/2's system install, which has a completely different semantic
252b5132 3368# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3369# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3371$as_echo_n "checking for a BSD-compatible install... " >&6; }
252b5132 3372if test -z "$INSTALL"; then
81ecdfbb
RW
3373if test "${ac_cv_path_install+set}" = set; then :
3374 $as_echo_n "(cached) " >&6
252b5132 3375else
979273e3
NN
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377for as_dir in $PATH
3378do
3379 IFS=$as_save_IFS
3380 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3381 # Account for people who put trailing slashes in PATH elements.
3382case $as_dir/ in #((
3383 ./ | .// | /[cC]/* | \
979273e3 3384 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3385 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
979273e3
NN
3386 /usr/ucb/* ) ;;
3387 *)
3388 # OSF1 and SCO ODT 3.0 have their own names for install.
3389 # Don't use installbsd from OSF since it installs stuff as root
3390 # by default.
3391 for ac_prog in ginstall scoinst install; do
3392 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3393 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
252b5132 3394 if test $ac_prog = install &&
979273e3 3395 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3396 # AIX install. It has an incompatible calling convention.
3397 :
979273e3
NN
3398 elif test $ac_prog = install &&
3399 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3400 # program-specific install script used by HP pwplus--don't use.
3401 :
252b5132 3402 else
58c85be7
RW
3403 rm -rf conftest.one conftest.two conftest.dir
3404 echo one > conftest.one
3405 echo two > conftest.two
3406 mkdir conftest.dir
3407 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3408 test -s conftest.one && test -s conftest.two &&
3409 test -s conftest.dir/conftest.one &&
3410 test -s conftest.dir/conftest.two
3411 then
3412 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3413 break 3
3414 fi
252b5132
RH
3415 fi
3416 fi
3417 done
979273e3
NN
3418 done
3419 ;;
3420esac
81ecdfbb
RW
3421
3422 done
3423IFS=$as_save_IFS
979273e3 3424
58c85be7 3425rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3426
3427fi
3428 if test "${ac_cv_path_install+set}" = set; then
979273e3 3429 INSTALL=$ac_cv_path_install
252b5132 3430 else
58c85be7
RW
3431 # As a last resort, use the slow shell script. Don't cache a
3432 # value for INSTALL within a source directory, because that will
252b5132 3433 # break other packages using the cache if that directory is
58c85be7 3434 # removed, or if the value is a relative name.
979273e3 3435 INSTALL=$ac_install_sh
252b5132
RH
3436 fi
3437fi
81ecdfbb
RW
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3439$as_echo "$INSTALL" >&6; }
252b5132
RH
3440
3441# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3442# It thinks the first close brace ends the variable substitution.
3443test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3444
979273e3 3445test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3446
3447test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3448
81ecdfbb
RW
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3450$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3451# Just in case
3452sleep 1
8ae85421 3453echo timestamp > conftest.file
81ecdfbb
RW
3454# Reject unsafe characters in $srcdir or the absolute working directory
3455# name. Accept space and tab only in the latter.
3456am_lf='
3457'
3458case `pwd` in
3459 *[\\\"\#\$\&\'\`$am_lf]*)
3460 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3461esac
3462case $srcdir in
3463 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3464 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3465esac
3466
252b5132
RH
3467# Do `set' in a subshell so we don't clobber the current shell's
3468# arguments. Must try -L first in case configure is actually a
3469# symlink; some systems play weird games with the mod time of symlinks
3470# (eg FreeBSD returns the mod time of the symlink's containing
3471# directory).
3472if (
81ecdfbb 3473 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3474 if test "$*" = "X"; then
3475 # -L didn't work.
81ecdfbb 3476 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3477 fi
8ae85421
AM
3478 rm -f conftest.file
3479 if test "$*" != "X $srcdir/configure conftest.file" \
3480 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3481
3482 # If neither matched, then we have a broken ls. This can happen
3483 # if, for instance, CONFIG_SHELL is bash and it inherits a
3484 # broken ls alias from the environment. This has actually
3485 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3486 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3487alias in your environment" "$LINENO" 5
252b5132
RH
3488 fi
3489
8ae85421 3490 test "$2" = conftest.file
252b5132
RH
3491 )
3492then
3493 # Ok.
3494 :
3495else
81ecdfbb
RW
3496 as_fn_error "newly created file is older than distributed files!
3497Check your system clock" "$LINENO" 5
252b5132 3498fi
81ecdfbb
RW
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3500$as_echo "yes" >&6; }
252b5132 3501test "$program_prefix" != NONE &&
81ecdfbb 3502 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3503# Use a double $ so make ignores it.
3504test "$program_suffix" != NONE &&
81ecdfbb
RW
3505 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3506# Double any \ or $.
979273e3 3507# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3508ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3509program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
979273e3 3510
8ae85421
AM
3511# expand $ac_aux_dir to an absolute path
3512am_aux_dir=`cd $ac_aux_dir && pwd`
3513
81ecdfbb
RW
3514if test x"${MISSING+set}" != xset; then
3515 case $am_aux_dir in
3516 *\ * | *\ *)
3517 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3518 *)
3519 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3520 esac
3521fi
8ae85421
AM
3522# Use eval to expand $SHELL
3523if eval "$MISSING --run true"; then
3524 am_missing_run="$MISSING --run "
3525else
3526 am_missing_run=
81ecdfbb
RW
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3528$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3529fi
3530
3531if test x"${install_sh}" != xset; then
3532 case $am_aux_dir in
3533 *\ * | *\ *)
3534 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3535 *)
3536 install_sh="\${SHELL} $am_aux_dir/install-sh"
3537 esac
3538fi
3539
3540# Installed binaries are usually stripped using `strip' when the user
3541# run `make install-strip'. However `strip' might not be the right
3542# tool to use in cross-compilation environments, therefore Automake
3543# will honor the `STRIP' environment variable to overrule this program.
3544if test "$cross_compiling" != no; then
3545 if test -n "$ac_tool_prefix"; then
3546 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3547set dummy ${ac_tool_prefix}strip; ac_word=$2
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549$as_echo_n "checking for $ac_word... " >&6; }
3550if test "${ac_cv_prog_STRIP+set}" = set; then :
3551 $as_echo_n "(cached) " >&6
3552else
3553 if test -n "$STRIP"; then
3554 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3555else
3556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557for as_dir in $PATH
3558do
3559 IFS=$as_save_IFS
3560 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3563 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 break 2
3566 fi
3567done
3568 done
3569IFS=$as_save_IFS
3570
3571fi
3572fi
3573STRIP=$ac_cv_prog_STRIP
3574if test -n "$STRIP"; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3576$as_echo "$STRIP" >&6; }
3577else
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579$as_echo "no" >&6; }
3580fi
3581
3582
3583fi
3584if test -z "$ac_cv_prog_STRIP"; then
3585 ac_ct_STRIP=$STRIP
3586 # Extract the first word of "strip", so it can be a program name with args.
3587set dummy strip; ac_word=$2
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589$as_echo_n "checking for $ac_word... " >&6; }
3590if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3591 $as_echo_n "(cached) " >&6
3592else
3593 if test -n "$ac_ct_STRIP"; then
3594 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3595else
3596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597for as_dir in $PATH
3598do
3599 IFS=$as_save_IFS
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603 ac_cv_prog_ac_ct_STRIP="strip"
3604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 break 2
3606 fi
3607done
8ae85421 3608 done
81ecdfbb
RW
3609IFS=$as_save_IFS
3610
3611fi
3612fi
3613ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3614if test -n "$ac_ct_STRIP"; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3616$as_echo "$ac_ct_STRIP" >&6; }
3617else
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619$as_echo "no" >&6; }
3620fi
3621
3622 if test "x$ac_ct_STRIP" = x; then
3623 STRIP=":"
3624 else
3625 case $cross_compiling:$ac_tool_warned in
3626yes:)
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3629ac_tool_warned=yes ;;
3630esac
3631 STRIP=$ac_ct_STRIP
3632 fi
3633else
3634 STRIP="$ac_cv_prog_STRIP"
3635fi
3636
3637fi
3638INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3639
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3641$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3642if test -z "$MKDIR_P"; then
3643 if test "${ac_cv_path_mkdir+set}" = set; then :
3644 $as_echo_n "(cached) " >&6
3645else
3646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3648do
3649 IFS=$as_save_IFS
3650 test -z "$as_dir" && as_dir=.
3651 for ac_prog in mkdir gmkdir; do
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3654 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3655 'mkdir (GNU coreutils) '* | \
3656 'mkdir (coreutils) '* | \
3657 'mkdir (fileutils) '4.1*)
3658 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3659 break 3;;
3660 esac
3661 done
3662 done
3663 done
3664IFS=$as_save_IFS
3665
3666fi
3667
3668 if test "${ac_cv_path_mkdir+set}" = set; then
3669 MKDIR_P="$ac_cv_path_mkdir -p"
8ae85421 3670 else
81ecdfbb
RW
3671 # As a last resort, use the slow shell script. Don't cache a
3672 # value for MKDIR_P within a source directory, because that will
3673 # break other packages using the cache if that directory is
3674 # removed, or if the value is a relative name.
3675 test -d ./--version && rmdir ./--version
3676 MKDIR_P="$ac_install_sh -d"
8ae85421
AM
3677 fi
3678fi
81ecdfbb
RW
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3680$as_echo "$MKDIR_P" >&6; }
3681
3682mkdir_p="$MKDIR_P"
3683case $mkdir_p in
3684 [\\/$]* | ?:[\\/]*) ;;
3685 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3686esac
8ae85421
AM
3687
3688for ac_prog in gawk mawk nawk awk
3689do
3690 # Extract the first word of "$ac_prog", so it can be a program name with args.
3691set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693$as_echo_n "checking for $ac_word... " >&6; }
3694if test "${ac_cv_prog_AWK+set}" = set; then :
3695 $as_echo_n "(cached) " >&6
8ae85421
AM
3696else
3697 if test -n "$AWK"; then
3698 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3699else
3700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701for as_dir in $PATH
3702do
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8ae85421 3707 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8ae85421
AM
3709 break 2
3710 fi
3711done
81ecdfbb
RW
3712 done
3713IFS=$as_save_IFS
8ae85421
AM
3714
3715fi
3716fi
3717AWK=$ac_cv_prog_AWK
3718if test -n "$AWK"; then
81ecdfbb
RW
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3720$as_echo "$AWK" >&6; }
8ae85421 3721else
81ecdfbb
RW
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723$as_echo "no" >&6; }
8ae85421
AM
3724fi
3725
81ecdfbb 3726
8ae85421
AM
3727 test -n "$AWK" && break
3728done
3729
81ecdfbb
RW
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3731$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3732set x ${MAKE-make}
3733ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3734if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3735 $as_echo_n "(cached) " >&6
979273e3
NN
3736else
3737 cat >conftest.make <<\_ACEOF
81ecdfbb 3738SHELL = /bin/sh
252b5132 3739all:
81ecdfbb 3740 @echo '@@@%%%=$(MAKE)=@@@%%%'
979273e3 3741_ACEOF
252b5132 3742# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3743case `${MAKE-make} -f conftest.make 2>/dev/null` in
3744 *@@@%%%=?*=@@@%%%*)
3745 eval ac_cv_prog_make_${ac_make}_set=yes;;
3746 *)
3747 eval ac_cv_prog_make_${ac_make}_set=no;;
3748esac
979273e3 3749rm -f conftest.make
252b5132 3750fi
81ecdfbb
RW
3751if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3753$as_echo "yes" >&6; }
252b5132
RH
3754 SET_MAKE=
3755else
81ecdfbb
RW
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757$as_echo "no" >&6; }
252b5132
RH
3758 SET_MAKE="MAKE=${MAKE-make}"
3759fi
3760
8ae85421
AM
3761rm -rf .tst 2>/dev/null
3762mkdir .tst 2>/dev/null
3763if test -d .tst; then
3764 am__leading_dot=.
3765else
3766 am__leading_dot=_
3767fi
3768rmdir .tst 2>/dev/null
3769
3770DEPDIR="${am__leading_dot}deps"
3771
81ecdfbb 3772ac_config_commands="$ac_config_commands depfiles"
8ae85421
AM
3773
3774
3775am_make=${MAKE-make}
3776cat > confinc << 'END'
3777am__doit:
81ecdfbb 3778 @echo this is the am__doit target
8ae85421
AM
3779.PHONY: am__doit
3780END
3781# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3783$as_echo_n "checking for style of include used by $am_make... " >&6; }
8ae85421
AM
3784am__include="#"
3785am__quote=
3786_am_result=none
3787# First try GNU make style include.
3788echo "include confinc" > confmf
81ecdfbb
RW
3789# Ignore all kinds of additional output from `make'.
3790case `$am_make -s -f confmf 2> /dev/null` in #(
3791*the\ am__doit\ target*)
3792 am__include=include
3793 am__quote=
3794 _am_result=GNU
3795 ;;
3796esac
8ae85421
AM
3797# Now try BSD make style include.
3798if test "$am__include" = "#"; then
3799 echo '.include "confinc"' > confmf
81ecdfbb
RW
3800 case `$am_make -s -f confmf 2> /dev/null` in #(
3801 *the\ am__doit\ target*)
3802 am__include=.include
3803 am__quote="\""
3804 _am_result=BSD
3805 ;;
3806 esac
8ae85421
AM
3807fi
3808
3809
81ecdfbb
RW
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3811$as_echo "$_am_result" >&6; }
8ae85421
AM
3812rm -f confinc confmf
3813
81ecdfbb
RW
3814# Check whether --enable-dependency-tracking was given.
3815if test "${enable_dependency_tracking+set}" = set; then :
3816 enableval=$enable_dependency_tracking;
3817fi
8ae85421 3818
8ae85421
AM
3819if test "x$enable_dependency_tracking" != xno; then
3820 am_depcomp="$ac_aux_dir/depcomp"
3821 AMDEPBACKSLASH='\'
3822fi
81ecdfbb 3823 if test "x$enable_dependency_tracking" != xno; then
8ae85421
AM
3824 AMDEP_TRUE=
3825 AMDEP_FALSE='#'
3826else
3827 AMDEP_TRUE='#'
3828 AMDEP_FALSE=
3829fi
252b5132 3830
252b5132 3831
81ecdfbb
RW
3832if test "`cd $srcdir && pwd`" != "`pwd`"; then
3833 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3834 # is not polluted with repeated "-I."
3835 am__isrc=' -I$(srcdir)'
3836 # test to see if srcdir already configured
3837 if test -f $srcdir/config.status; then
3838 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3839 fi
252b5132 3840fi
979273e3 3841
8ae85421
AM
3842# test whether we have cygpath
3843if test -z "$CYGPATH_W"; then
3844 if (cygpath --version) >/dev/null 2>/dev/null; then
3845 CYGPATH_W='cygpath -w'
3846 else
3847 CYGPATH_W=echo
3848 fi
3849fi
3850
3851
3852# Define the identity of the package.
3853 PACKAGE=opcodes
3854 VERSION=${BFD_VERSION}
3855
3856
979273e3 3857cat >>confdefs.h <<_ACEOF
252b5132 3858#define PACKAGE "$PACKAGE"
979273e3 3859_ACEOF
252b5132 3860
979273e3
NN
3861
3862cat >>confdefs.h <<_ACEOF
252b5132 3863#define VERSION "$VERSION"
979273e3 3864_ACEOF
252b5132 3865
8ae85421 3866# Some tools Automake needs.
252b5132 3867
8ae85421 3868ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
252b5132 3869
8ae85421
AM
3870
3871AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3872
3873
3874AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3875
3876
3877AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3878
3879
3880MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3881
8ae85421
AM
3882# We need awk for the "check" target. The system "awk" is bad on
3883# some platforms.
3884# Always define AMTAR for backward compatibility.
3885
3886AMTAR=${AMTAR-"${am_missing_run}tar"}
3887
3888am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3889
3890
3891
3892
3893depcc="$CC" am_compiler_list=
3894
81ecdfbb
RW
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3896$as_echo_n "checking dependency style of $depcc... " >&6; }
3897if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3898 $as_echo_n "(cached) " >&6
252b5132 3899else
8ae85421
AM
3900 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3901 # We make a subdir and do the tests there. Otherwise we can end up
3902 # making bogus files that we don't know about and never remove. For
3903 # instance it was reported that on HP-UX the gcc test will end up
3904 # making a dummy file named `D' -- because `-MD' means `put the output
3905 # in D'.
3906 mkdir conftest.dir
3907 # Copy depcomp to subdir because otherwise we won't find it if we're
3908 # using a relative directory.
3909 cp "$am_depcomp" conftest.dir
3910 cd conftest.dir
3911 # We will build objects and dependencies in a subdirectory because
3912 # it helps to detect inapplicable dependency modes. For instance
3913 # both Tru64's cc and ICC support -MD to output dependencies as a
3914 # side effect of compilation, but ICC will put the dependencies in
3915 # the current directory while Tru64 will put them in the object
3916 # directory.
3917 mkdir sub
3918
3919 am_cv_CC_dependencies_compiler_type=none
3920 if test "$am_compiler_list" = ""; then
3921 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3922 fi
81ecdfbb
RW
3923 am__universal=false
3924 case " $depcc " in #(
3925 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3926 esac
3927
8ae85421
AM
3928 for depmode in $am_compiler_list; do
3929 # Setup a source with many dependencies, because some compilers
3930 # like to wrap large dependency lists on column 80 (with \), and
3931 # we should not choose a depcomp mode which is confused by this.
3932 #
3933 # We need to recreate these files for each test, as the compiler may
3934 # overwrite some of them when testing with obscure command lines.
3935 # This happens at least with the AIX C compiler.
3936 : > sub/conftest.c
3937 for i in 1 2 3 4 5 6; do
3938 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3939 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3940 # Solaris 8's {/usr,}/bin/sh.
3941 touch sub/conftst$i.h
3942 done
3943 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3944
81ecdfbb
RW
3945 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3946 # mode. It turns out that the SunPro C++ compiler does not properly
3947 # handle `-M -o', and we need to detect this. Also, some Intel
3948 # versions had trouble with output in subdirs
3949 am__obj=sub/conftest.${OBJEXT-o}
3950 am__minus_obj="-o $am__obj"
8ae85421 3951 case $depmode in
81ecdfbb
RW
3952 gcc)
3953 # This depmode causes a compiler race in universal mode.
3954 test "$am__universal" = false || continue
3955 ;;
8ae85421
AM
3956 nosideeffect)
3957 # after this tag, mechanisms are not by side-effect, so they'll
3958 # only be used when explicitly requested
3959 if test "x$enable_dependency_tracking" = xyes; then
3960 continue
3961 else
3962 break
3963 fi
3964 ;;
81ecdfbb
RW
3965 msvisualcpp | msvcmsys)
3966 # This compiler won't grok `-c -o', but also, the minuso test has
3967 # not run yet. These depmodes are late enough in the game, and
3968 # so weak that their functioning should not be impacted.
3969 am__obj=conftest.${OBJEXT-o}
3970 am__minus_obj=
3971 ;;
8ae85421
AM
3972 none) break ;;
3973 esac
8ae85421 3974 if depmode=$depmode \
81ecdfbb 3975 source=sub/conftest.c object=$am__obj \
8ae85421 3976 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 3977 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8ae85421 3978 >/dev/null 2>conftest.err &&
81ecdfbb 3979 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8ae85421 3980 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 3981 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8ae85421
AM
3982 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3983 # icc doesn't choke on unknown options, it will just issue warnings
3984 # or remarks (even with -Werror). So we grep stderr for any message
3985 # that says an option was ignored or not supported.
3986 # When given -MP, icc 7.0 and 7.1 complain thusly:
3987 # icc: Command line warning: ignoring option '-M'; no argument required
3988 # The diagnosis changed in icc 8.0:
3989 # icc: Command line remark: option '-MP' not supported
3990 if (grep 'ignoring option' conftest.err ||
3991 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3992 am_cv_CC_dependencies_compiler_type=$depmode
3993 break
3994 fi
3995 fi
3996 done
3997
3998 cd ..
3999 rm -rf conftest.dir
4000else
4001 am_cv_CC_dependencies_compiler_type=none
4002fi
4003
252b5132 4004fi
81ecdfbb
RW
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4006$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
8ae85421
AM
4007CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4008
81ecdfbb 4009 if
8ae85421
AM
4010 test "x$enable_dependency_tracking" != xno \
4011 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4012 am__fastdepCC_TRUE=
4013 am__fastdepCC_FALSE='#'
252b5132 4014else
8ae85421
AM
4015 am__fastdepCC_TRUE='#'
4016 am__fastdepCC_FALSE=
252b5132
RH
4017fi
4018
4019
4020
8ae85421 4021
dabbade6
L
4022ac_ext=c
4023ac_cpp='$CPP $CPPFLAGS'
4024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4026ac_compiler_gnu=$ac_cv_c_compiler_gnu
979273e3 4027if test -n "$ac_tool_prefix"; then
dabbade6
L
4028 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4029set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4031$as_echo_n "checking for $ac_word... " >&6; }
4032if test "${ac_cv_prog_CC+set}" = set; then :
4033 $as_echo_n "(cached) " >&6
252b5132 4034else
dabbade6
L
4035 if test -n "$CC"; then
4036 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4037else
979273e3
NN
4038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039for as_dir in $PATH
4040do
4041 IFS=$as_save_IFS
4042 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4043 for ac_exec_ext in '' $ac_executable_extensions; do
4044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 4045 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
4047 break 2
4048 fi
4049done
81ecdfbb
RW
4050 done
4051IFS=$as_save_IFS
979273e3 4052
252b5132
RH
4053fi
4054fi
dabbade6
L
4055CC=$ac_cv_prog_CC
4056if test -n "$CC"; then
81ecdfbb
RW
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4058$as_echo "$CC" >&6; }
252b5132 4059else
81ecdfbb
RW
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061$as_echo "no" >&6; }
979273e3
NN
4062fi
4063
81ecdfbb 4064
252b5132 4065fi
dabbade6
L
4066if test -z "$ac_cv_prog_CC"; then
4067 ac_ct_CC=$CC
4068 # Extract the first word of "gcc", so it can be a program name with args.
4069set dummy gcc; ac_word=$2
81ecdfbb
RW
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4071$as_echo_n "checking for $ac_word... " >&6; }
4072if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4073 $as_echo_n "(cached) " >&6
979273e3 4074else
dabbade6
L
4075 if test -n "$ac_ct_CC"; then
4076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
979273e3
NN
4077else
4078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079for as_dir in $PATH
4080do
4081 IFS=$as_save_IFS
4082 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 4085 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
4087 break 2
4088 fi
4089done
81ecdfbb
RW
4090 done
4091IFS=$as_save_IFS
252b5132 4092
979273e3
NN
4093fi
4094fi
dabbade6
L
4095ac_ct_CC=$ac_cv_prog_ac_ct_CC
4096if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4098$as_echo "$ac_ct_CC" >&6; }
979273e3 4099else
81ecdfbb
RW
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101$as_echo "no" >&6; }
979273e3 4102fi
252b5132 4103
81ecdfbb
RW
4104 if test "x$ac_ct_CC" = x; then
4105 CC=""
4106 else
4107 case $cross_compiling:$ac_tool_warned in
4108yes:)
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4111ac_tool_warned=yes ;;
4112esac
4113 CC=$ac_ct_CC
4114 fi
979273e3 4115else
dabbade6 4116 CC="$ac_cv_prog_CC"
979273e3 4117fi
252b5132 4118
dabbade6 4119if test -z "$CC"; then
81ecdfbb
RW
4120 if test -n "$ac_tool_prefix"; then
4121 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
dabbade6 4122set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124$as_echo_n "checking for $ac_word... " >&6; }
4125if test "${ac_cv_prog_CC+set}" = set; then :
4126 $as_echo_n "(cached) " >&6
252b5132 4127else
dabbade6
L
4128 if test -n "$CC"; then
4129 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4130else
979273e3
NN
4131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132for as_dir in $PATH
4133do
4134 IFS=$as_save_IFS
4135 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 4138 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
4140 break 2
4141 fi
4142done
81ecdfbb
RW
4143 done
4144IFS=$as_save_IFS
979273e3 4145
252b5132
RH
4146fi
4147fi
dabbade6
L
4148CC=$ac_cv_prog_CC
4149if test -n "$CC"; then
81ecdfbb
RW
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4151$as_echo "$CC" >&6; }
252b5132 4152else
81ecdfbb
RW
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154$as_echo "no" >&6; }
252b5132
RH
4155fi
4156
252b5132 4157
81ecdfbb 4158 fi
dabbade6
L
4159fi
4160if test -z "$CC"; then
4161 # Extract the first word of "cc", so it can be a program name with args.
4162set dummy cc; ac_word=$2
81ecdfbb
RW
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164$as_echo_n "checking for $ac_word... " >&6; }
4165if test "${ac_cv_prog_CC+set}" = set; then :
4166 $as_echo_n "(cached) " >&6
dabbade6
L
4167else
4168 if test -n "$CC"; then
4169 ac_cv_prog_CC="$CC" # Let the user override the test.
4170else
4171 ac_prog_rejected=no
4172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173for as_dir in $PATH
4174do
4175 IFS=$as_save_IFS
4176 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6
L
4179 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4180 ac_prog_rejected=yes
4181 continue
4182 fi
4183 ac_cv_prog_CC="cc"
81ecdfbb 4184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
4185 break 2
4186 fi
4187done
81ecdfbb
RW
4188 done
4189IFS=$as_save_IFS
252b5132 4190
dabbade6
L
4191if test $ac_prog_rejected = yes; then
4192 # We found a bogon in the path, so make sure we never use it.
4193 set dummy $ac_cv_prog_CC
4194 shift
4195 if test $# != 0; then
4196 # We chose a different compiler from the bogus one.
4197 # However, it has the same basename, so the bogon will be chosen
4198 # first if we set CC to just the basename; use the full file name.
4199 shift
4200 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4201 fi
4202fi
4203fi
4204fi
4205CC=$ac_cv_prog_CC
4206if test -n "$CC"; then
81ecdfbb
RW
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4208$as_echo "$CC" >&6; }
252b5132 4209else
81ecdfbb
RW
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211$as_echo "no" >&6; }
dabbade6 4212fi
252b5132 4213
81ecdfbb 4214
dabbade6
L
4215fi
4216if test -z "$CC"; then
4217 if test -n "$ac_tool_prefix"; then
81ecdfbb 4218 for ac_prog in cl.exe
dabbade6
L
4219 do
4220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4221set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223$as_echo_n "checking for $ac_word... " >&6; }
4224if test "${ac_cv_prog_CC+set}" = set; then :
4225 $as_echo_n "(cached) " >&6
dabbade6
L
4226else
4227 if test -n "$CC"; then
4228 ac_cv_prog_CC="$CC" # Let the user override the test.
4229else
4230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231for as_dir in $PATH
4232do
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 4237 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
4239 break 2
4240 fi
4241done
81ecdfbb
RW
4242 done
4243IFS=$as_save_IFS
d7040cdb 4244
dabbade6
L
4245fi
4246fi
4247CC=$ac_cv_prog_CC
4248if test -n "$CC"; then
81ecdfbb
RW
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4250$as_echo "$CC" >&6; }
dabbade6 4251else
81ecdfbb
RW
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253$as_echo "no" >&6; }
dabbade6 4254fi
d7040cdb 4255
81ecdfbb 4256
dabbade6
L
4257 test -n "$CC" && break
4258 done
4259fi
4260if test -z "$CC"; then
4261 ac_ct_CC=$CC
81ecdfbb 4262 for ac_prog in cl.exe
dabbade6
L
4263do
4264 # Extract the first word of "$ac_prog", so it can be a program name with args.
4265set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267$as_echo_n "checking for $ac_word... " >&6; }
4268if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
dabbade6
L
4270else
4271 if test -n "$ac_ct_CC"; then
4272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4273else
4274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH
4276do
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 4281 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
4283 break 2
4284 fi
4285done
81ecdfbb
RW
4286 done
4287IFS=$as_save_IFS
d7040cdb 4288
dabbade6
L
4289fi
4290fi
4291ac_ct_CC=$ac_cv_prog_ac_ct_CC
4292if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4294$as_echo "$ac_ct_CC" >&6; }
dabbade6 4295else
81ecdfbb
RW
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297$as_echo "no" >&6; }
dabbade6 4298fi
d7040cdb 4299
81ecdfbb 4300
dabbade6
L
4301 test -n "$ac_ct_CC" && break
4302done
d7040cdb 4303
81ecdfbb
RW
4304 if test "x$ac_ct_CC" = x; then
4305 CC=""
4306 else
4307 case $cross_compiling:$ac_tool_warned in
4308yes:)
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4311ac_tool_warned=yes ;;
4312esac
4313 CC=$ac_ct_CC
4314 fi
dabbade6 4315fi
d7040cdb 4316
dabbade6 4317fi
d7040cdb
SE
4318
4319
81ecdfbb
RW
4320test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4322as_fn_error "no acceptable C compiler found in \$PATH
4323See \`config.log' for more details." "$LINENO" 5; }
d7040cdb 4324
dabbade6 4325# Provide some information about the compiler.
81ecdfbb
RW
4326$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4327set X $ac_compile
4328ac_compiler=$2
4329for ac_option in --version -v -V -qversion; do
4330 { { ac_try="$ac_compiler $ac_option >&5"
4331case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4334esac
4335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4336$as_echo "$ac_try_echo"; } >&5
4337 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
dabbade6 4338 ac_status=$?
81ecdfbb
RW
4339 if test -s conftest.err; then
4340 sed '10a\
4341... rest of stderr output deleted ...
4342 10q' conftest.err >conftest.er1
4343 cat conftest.er1 >&5
4344 rm -f conftest.er1 conftest.err
4345 fi
4346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347 test $ac_status = 0; }
4348done
d7040cdb 4349
81ecdfbb
RW
4350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4351$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4352if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4353 $as_echo_n "(cached) " >&6
252b5132 4354else
81ecdfbb 4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 4356/* end confdefs.h. */
d7040cdb 4357
dabbade6
L
4358int
4359main ()
4360{
4361#ifndef __GNUC__
4362 choke me
4363#endif
d7040cdb 4364
dabbade6
L
4365 ;
4366 return 0;
4367}
4368_ACEOF
81ecdfbb 4369if ac_fn_c_try_compile "$LINENO"; then :
dabbade6 4370 ac_compiler_gnu=yes
d7040cdb 4371else
81ecdfbb 4372 ac_compiler_gnu=no
dabbade6 4373fi
81ecdfbb 4374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dabbade6 4375ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7040cdb 4376
dabbade6 4377fi
81ecdfbb
RW
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4379$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4380if test $ac_compiler_gnu = yes; then
4381 GCC=yes
4382else
4383 GCC=
4384fi
dabbade6
L
4385ac_test_CFLAGS=${CFLAGS+set}
4386ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4388$as_echo_n "checking whether $CC accepts -g... " >&6; }
4389if test "${ac_cv_prog_cc_g+set}" = set; then :
4390 $as_echo_n "(cached) " >&6
4391else
4392 ac_save_c_werror_flag=$ac_c_werror_flag
4393 ac_c_werror_flag=yes
4394 ac_cv_prog_cc_g=no
4395 CFLAGS="-g"
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 4397/* end confdefs.h. */
d7040cdb 4398
dabbade6
L
4399int
4400main ()
4401{
d7040cdb 4402
dabbade6
L
4403 ;
4404 return 0;
4405}
4406_ACEOF
81ecdfbb 4407if ac_fn_c_try_compile "$LINENO"; then :
dabbade6
L
4408 ac_cv_prog_cc_g=yes
4409else
81ecdfbb
RW
4410 CFLAGS=""
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412/* end confdefs.h. */
d7040cdb 4413
81ecdfbb
RW
4414int
4415main ()
4416{
4417
4418 ;
4419 return 0;
4420}
4421_ACEOF
4422if ac_fn_c_try_compile "$LINENO"; then :
4423
4424else
4425 ac_c_werror_flag=$ac_save_c_werror_flag
4426 CFLAGS="-g"
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 ac_cv_prog_cc_g=yes
4440fi
4441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dabbade6 4442fi
81ecdfbb 4443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dabbade6 4444fi
81ecdfbb
RW
4445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446 ac_c_werror_flag=$ac_save_c_werror_flag
4447fi
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4449$as_echo "$ac_cv_prog_cc_g" >&6; }
dabbade6
L
4450if test "$ac_test_CFLAGS" = set; then
4451 CFLAGS=$ac_save_CFLAGS
4452elif test $ac_cv_prog_cc_g = yes; then
4453 if test "$GCC" = yes; then
4454 CFLAGS="-g -O2"
4455 else
4456 CFLAGS="-g"
4457 fi
4458else
4459 if test "$GCC" = yes; then
4460 CFLAGS="-O2"
4461 else
4462 CFLAGS=
4463 fi
4464fi
81ecdfbb
RW
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4466$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4467if test "${ac_cv_prog_cc_c89+set}" = set; then :
4468 $as_echo_n "(cached) " >&6
d7040cdb 4469else
81ecdfbb 4470 ac_cv_prog_cc_c89=no
dabbade6 4471ac_save_CC=$CC
81ecdfbb 4472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6
L
4473/* end confdefs.h. */
4474#include <stdarg.h>
4475#include <stdio.h>
4476#include <sys/types.h>
4477#include <sys/stat.h>
4478/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4479struct buf { int x; };
4480FILE * (*rcsopen) (struct buf *, struct stat *, int);
4481static char *e (p, i)
4482 char **p;
4483 int i;
4484{
4485 return p[i];
4486}
4487static char *f (char * (*g) (char **, int), char **p, ...)
4488{
4489 char *s;
4490 va_list v;
4491 va_start (v,p);
4492 s = g (p, va_arg (v,int));
4493 va_end (v);
4494 return s;
4495}
d7040cdb 4496
dabbade6
L
4497/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4498 function prototypes and stuff, but not '\xHH' hex character constants.
4499 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4500 as 'x'. The following induces an error, until -std is added to get
dabbade6
L
4501 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4502 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4503 that's true only with -std. */
dabbade6 4504int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 4505
81ecdfbb
RW
4506/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4507 inside strings and character constants. */
4508#define FOO(x) 'x'
4509int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4510
dabbade6
L
4511int test (int i, double x);
4512struct s1 {int (*f) (int a);};
4513struct s2 {int (*f) (double a);};
4514int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4515int argc;
4516char **argv;
4517int
4518main ()
4519{
4520return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4521 ;
4522 return 0;
4523}
4524_ACEOF
81ecdfbb
RW
4525for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4526 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
dabbade6
L
4527do
4528 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4529 if ac_fn_c_try_compile "$LINENO"; then :
4530 ac_cv_prog_cc_c89=$ac_arg
d7040cdb 4531fi
81ecdfbb
RW
4532rm -f core conftest.err conftest.$ac_objext
4533 test "x$ac_cv_prog_cc_c89" != "xno" && break
dabbade6 4534done
81ecdfbb 4535rm -f conftest.$ac_ext
dabbade6 4536CC=$ac_save_CC
d7040cdb 4537
dabbade6 4538fi
81ecdfbb
RW
4539# AC_CACHE_VAL
4540case "x$ac_cv_prog_cc_c89" in
4541 x)
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4543$as_echo "none needed" >&6; } ;;
4544 xno)
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4546$as_echo "unsupported" >&6; } ;;
252b5132 4547 *)
81ecdfbb
RW
4548 CC="$CC $ac_cv_prog_cc_c89"
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4550$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
dabbade6 4551esac
81ecdfbb 4552if test "x$ac_cv_prog_cc_c89" != xno; then :
ac48eca1 4553
dabbade6 4554fi
252b5132 4555
dabbade6
L
4556ac_ext=c
4557ac_cpp='$CPP $CPPFLAGS'
4558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4560ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4561
7357c5b6
AM
4562ac_ext=c
4563ac_cpp='$CPP $CPPFLAGS'
4564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4568$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4569# On Suns, sometimes $CPP names a directory.
4570if test -n "$CPP" && test -d "$CPP"; then
4571 CPP=
4572fi
4573if test -z "$CPP"; then
81ecdfbb
RW
4574 if test "${ac_cv_prog_CPP+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
dabbade6 4576else
7357c5b6
AM
4577 # Double quotes because CPP needs to be expanded
4578 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4579 do
4580 ac_preproc_ok=false
4581for ac_c_preproc_warn_flag in '' yes
dabbade6 4582do
7357c5b6
AM
4583 # Use a header file that comes with gcc, so configuring glibc
4584 # with a fresh cross-compiler works.
4585 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4586 # <limits.h> exists even on freestanding compilers.
4587 # On the NeXT, cc -E runs the code through the compiler's parser,
4588 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4590/* end confdefs.h. */
4591#ifdef __STDC__
4592# include <limits.h>
4593#else
4594# include <assert.h>
4595#endif
4596 Syntax error
4597_ACEOF
81ecdfbb 4598if ac_fn_c_try_cpp "$LINENO"; then :
dabbade6 4599
81ecdfbb 4600else
7357c5b6
AM
4601 # Broken: fails on valid input.
4602continue
252b5132 4603fi
7357c5b6
AM
4604rm -f conftest.err conftest.$ac_ext
4605
81ecdfbb 4606 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4607 # can be detected and how.
81ecdfbb 4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4609/* end confdefs.h. */
4610#include <ac_nonexistent.h>
4611_ACEOF
81ecdfbb 4612if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4613 # Broken: success on invalid input.
4614continue
dabbade6 4615else
7357c5b6
AM
4616 # Passes both tests.
4617ac_preproc_ok=:
4618break
dabbade6 4619fi
7357c5b6 4620rm -f conftest.err conftest.$ac_ext
dabbade6 4621
d7040cdb 4622done
7357c5b6
AM
4623# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4624rm -f conftest.err conftest.$ac_ext
81ecdfbb 4625if $ac_preproc_ok; then :
7357c5b6
AM
4626 break
4627fi
4628
4629 done
4630 ac_cv_prog_CPP=$CPP
d7040cdb
SE
4631
4632fi
7357c5b6
AM
4633 CPP=$ac_cv_prog_CPP
4634else
4635 ac_cv_prog_CPP=$CPP
d7040cdb 4636fi
81ecdfbb
RW
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4638$as_echo "$CPP" >&6; }
7357c5b6
AM
4639ac_preproc_ok=false
4640for ac_c_preproc_warn_flag in '' yes
4641do
4642 # Use a header file that comes with gcc, so configuring glibc
4643 # with a fresh cross-compiler works.
4644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4645 # <limits.h> exists even on freestanding compilers.
4646 # On the NeXT, cc -E runs the code through the compiler's parser,
4647 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4649/* end confdefs.h. */
4650#ifdef __STDC__
4651# include <limits.h>
4652#else
4653# include <assert.h>
4654#endif
4655 Syntax error
4656_ACEOF
81ecdfbb 4657if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4658
81ecdfbb 4659else
7357c5b6
AM
4660 # Broken: fails on valid input.
4661continue
d7040cdb 4662fi
7357c5b6 4663rm -f conftest.err conftest.$ac_ext
d7040cdb 4664
81ecdfbb 4665 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4666 # can be detected and how.
81ecdfbb 4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4668/* end confdefs.h. */
4669#include <ac_nonexistent.h>
4670_ACEOF
81ecdfbb 4671if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4672 # Broken: success on invalid input.
4673continue
dabbade6 4674else
7357c5b6
AM
4675 # Passes both tests.
4676ac_preproc_ok=:
4677break
4678fi
4679rm -f conftest.err conftest.$ac_ext
d7040cdb 4680
7357c5b6
AM
4681done
4682# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4683rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
4684if $ac_preproc_ok; then :
4685
4686else
4687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4689as_fn_error "C preprocessor \"$CPP\" fails sanity check
4690See \`config.log' for more details." "$LINENO" 5; }
4691fi
4692
4693ac_ext=c
4694ac_cpp='$CPP $CPPFLAGS'
4695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4697ac_compiler_gnu=$ac_cv_c_compiler_gnu
4698
4699
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4701$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4702if test "${ac_cv_path_GREP+set}" = set; then :
4703 $as_echo_n "(cached) " >&6
4704else
4705 if test -z "$GREP"; then
4706 ac_path_GREP_found=false
4707 # Loop through the user's path and test for each of PROGNAME-LIST
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4710do
4711 IFS=$as_save_IFS
4712 test -z "$as_dir" && as_dir=.
4713 for ac_prog in grep ggrep; do
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4716 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4717# Check for GNU ac_path_GREP and select it if it is found.
4718 # Check for GNU $ac_path_GREP
4719case `"$ac_path_GREP" --version 2>&1` in
4720*GNU*)
4721 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4722*)
4723 ac_count=0
4724 $as_echo_n 0123456789 >"conftest.in"
4725 while :
4726 do
4727 cat "conftest.in" "conftest.in" >"conftest.tmp"
4728 mv "conftest.tmp" "conftest.in"
4729 cp "conftest.in" "conftest.nl"
4730 $as_echo 'GREP' >> "conftest.nl"
4731 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4732 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4733 as_fn_arith $ac_count + 1 && ac_count=$as_val
4734 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4735 # Best one so far, save it but keep looking for a better one
4736 ac_cv_path_GREP="$ac_path_GREP"
4737 ac_path_GREP_max=$ac_count
4738 fi
4739 # 10*(2^10) chars as input seems more than enough
4740 test $ac_count -gt 10 && break
4741 done
4742 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4743esac
4744
4745 $ac_path_GREP_found && break 3
4746 done
4747 done
4748 done
4749IFS=$as_save_IFS
4750 if test -z "$ac_cv_path_GREP"; then
4751 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4752 fi
dabbade6 4753else
81ecdfbb 4754 ac_cv_path_GREP=$GREP
7357c5b6 4755fi
d7040cdb 4756
81ecdfbb
RW
4757fi
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4759$as_echo "$ac_cv_path_GREP" >&6; }
4760 GREP="$ac_cv_path_GREP"
d7040cdb
SE
4761
4762
81ecdfbb
RW
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4764$as_echo_n "checking for egrep... " >&6; }
4765if test "${ac_cv_path_EGREP+set}" = set; then :
4766 $as_echo_n "(cached) " >&6
7357c5b6 4767else
81ecdfbb
RW
4768 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4769 then ac_cv_path_EGREP="$GREP -E"
4770 else
4771 if test -z "$EGREP"; then
4772 ac_path_EGREP_found=false
4773 # Loop through the user's path and test for each of PROGNAME-LIST
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4776do
4777 IFS=$as_save_IFS
4778 test -z "$as_dir" && as_dir=.
4779 for ac_prog in egrep; do
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4782 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4783# Check for GNU ac_path_EGREP and select it if it is found.
4784 # Check for GNU $ac_path_EGREP
4785case `"$ac_path_EGREP" --version 2>&1` in
4786*GNU*)
4787 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4788*)
4789 ac_count=0
4790 $as_echo_n 0123456789 >"conftest.in"
4791 while :
4792 do
4793 cat "conftest.in" "conftest.in" >"conftest.tmp"
4794 mv "conftest.tmp" "conftest.in"
4795 cp "conftest.in" "conftest.nl"
4796 $as_echo 'EGREP' >> "conftest.nl"
4797 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4798 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4799 as_fn_arith $ac_count + 1 && ac_count=$as_val
4800 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4801 # Best one so far, save it but keep looking for a better one
4802 ac_cv_path_EGREP="$ac_path_EGREP"
4803 ac_path_EGREP_max=$ac_count
7357c5b6 4804 fi
81ecdfbb
RW
4805 # 10*(2^10) chars as input seems more than enough
4806 test $ac_count -gt 10 && break
4807 done
4808 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4809esac
4810
4811 $ac_path_EGREP_found && break 3
4812 done
4813 done
4814 done
4815IFS=$as_save_IFS
4816 if test -z "$ac_cv_path_EGREP"; then
4817 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4818 fi
4819else
4820 ac_cv_path_EGREP=$EGREP
4821fi
4822
4823 fi
7357c5b6 4824fi
81ecdfbb
RW
4825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4826$as_echo "$ac_cv_path_EGREP" >&6; }
4827 EGREP="$ac_cv_path_EGREP"
d7040cdb
SE
4828
4829
81ecdfbb
RW
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4831$as_echo_n "checking for ANSI C header files... " >&6; }
4832if test "${ac_cv_header_stdc+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
7357c5b6 4834else
81ecdfbb 4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4836/* end confdefs.h. */
4837#include <stdlib.h>
4838#include <stdarg.h>
4839#include <string.h>
4840#include <float.h>
d7040cdb 4841
7357c5b6
AM
4842int
4843main ()
4844{
d7040cdb 4845
7357c5b6
AM
4846 ;
4847 return 0;
4848}
4849_ACEOF
81ecdfbb 4850if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4851 ac_cv_header_stdc=yes
4852else
81ecdfbb 4853 ac_cv_header_stdc=no
7357c5b6 4854fi
81ecdfbb 4855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4856
7357c5b6
AM
4857if test $ac_cv_header_stdc = yes; then
4858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4860/* end confdefs.h. */
4861#include <string.h>
d7040cdb 4862
7357c5b6
AM
4863_ACEOF
4864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4865 $EGREP "memchr" >/dev/null 2>&1; then :
4866
7357c5b6
AM
4867else
4868 ac_cv_header_stdc=no
4869fi
4870rm -f conftest*
d7040cdb 4871
7357c5b6 4872fi
d7040cdb 4873
7357c5b6
AM
4874if test $ac_cv_header_stdc = yes; then
4875 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4877/* end confdefs.h. */
4878#include <stdlib.h>
d7040cdb 4879
7357c5b6
AM
4880_ACEOF
4881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4882 $EGREP "free" >/dev/null 2>&1; then :
4883
7357c5b6
AM
4884else
4885 ac_cv_header_stdc=no
4886fi
4887rm -f conftest*
d7040cdb 4888
7357c5b6 4889fi
d7040cdb 4890
7357c5b6
AM
4891if test $ac_cv_header_stdc = yes; then
4892 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4893 if test "$cross_compiling" = yes; then :
7357c5b6
AM
4894 :
4895else
81ecdfbb 4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4897/* end confdefs.h. */
4898#include <ctype.h>
81ecdfbb 4899#include <stdlib.h>
7357c5b6
AM
4900#if ((' ' & 0x0FF) == 0x020)
4901# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4902# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4903#else
4904# define ISLOWER(c) \
4905 (('a' <= (c) && (c) <= 'i') \
4906 || ('j' <= (c) && (c) <= 'r') \
4907 || ('s' <= (c) && (c) <= 'z'))
4908# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4909#endif
d7040cdb 4910
7357c5b6
AM
4911#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4912int
4913main ()
4914{
4915 int i;
4916 for (i = 0; i < 256; i++)
4917 if (XOR (islower (i), ISLOWER (i))
4918 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4919 return 2;
4920 return 0;
7357c5b6
AM
4921}
4922_ACEOF
81ecdfbb 4923if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 4924
81ecdfbb
RW
4925else
4926 ac_cv_header_stdc=no
7357c5b6 4927fi
81ecdfbb
RW
4928rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4929 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4930fi
81ecdfbb 4931
7357c5b6
AM
4932fi
4933fi
81ecdfbb
RW
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4935$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4936if test $ac_cv_header_stdc = yes; then
d7040cdb 4937
81ecdfbb 4938$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4939
7357c5b6 4940fi
d7040cdb 4941
7357c5b6 4942# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
4943for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4944 inttypes.h stdint.h unistd.h
81ecdfbb
RW
4945do :
4946 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4947ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4948"
4949eval as_val=\$$as_ac_Header
4950 if test "x$as_val" = x""yes; then :
7357c5b6 4951 cat >>confdefs.h <<_ACEOF
81ecdfbb 4952#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 4953_ACEOF
d7040cdb 4954
7357c5b6 4955fi
d7040cdb 4956
7357c5b6 4957done
d7040cdb
SE
4958
4959
4960
81ecdfbb
RW
4961 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4962if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6
AM
4963 MINIX=yes
4964else
4965 MINIX=
4966fi
d7040cdb
SE
4967
4968
7357c5b6 4969 if test "$MINIX" = yes; then
d7040cdb 4970
81ecdfbb 4971$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
dabbade6 4972
252b5132 4973
81ecdfbb 4974$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
4975
4976
81ecdfbb 4977$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4978
7357c5b6 4979 fi
d7040cdb
SE
4980
4981
81ecdfbb
RW
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4983$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4984if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4985 $as_echo_n "(cached) " >&6
ac48eca1 4986else
81ecdfbb 4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4988/* end confdefs.h. */
ac48eca1 4989
7357c5b6
AM
4990# define __EXTENSIONS__ 1
4991 $ac_includes_default
4992int
4993main ()
4994{
87e6d782 4995
7357c5b6
AM
4996 ;
4997 return 0;
4998}
4999_ACEOF
81ecdfbb 5000if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
5001 ac_cv_safe_to_define___extensions__=yes
5002else
81ecdfbb 5003 ac_cv_safe_to_define___extensions__=no
7357c5b6 5004fi
81ecdfbb 5005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 5006fi
81ecdfbb
RW
5007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5008$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 5009 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 5010 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
ac48eca1 5011
81ecdfbb 5012 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d7040cdb 5013
81ecdfbb
RW
5014 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5015
5016 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5017
5018 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d7040cdb 5019
ac48eca1 5020
ac48eca1 5021
ac48eca1 5022
87e6d782 5023
7357c5b6
AM
5024if test -n "$ac_tool_prefix"; then
5025 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5026set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5028$as_echo_n "checking for $ac_word... " >&6; }
5029if test "${ac_cv_prog_AR+set}" = set; then :
5030 $as_echo_n "(cached) " >&6
dabbade6 5031else
7357c5b6
AM
5032 if test -n "$AR"; then
5033 ac_cv_prog_AR="$AR" # Let the user override the test.
5034else
5035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036for as_dir in $PATH
5037do
5038 IFS=$as_save_IFS
5039 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 5042 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
5044 break 2
5045 fi
5046done
81ecdfbb
RW
5047 done
5048IFS=$as_save_IFS
ac48eca1 5049
7357c5b6
AM
5050fi
5051fi
5052AR=$ac_cv_prog_AR
5053if test -n "$AR"; then
81ecdfbb
RW
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5055$as_echo "$AR" >&6; }
dabbade6 5056else
81ecdfbb
RW
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058$as_echo "no" >&6; }
dabbade6 5059fi
6be7c12c 5060
81ecdfbb 5061
7357c5b6
AM
5062fi
5063if test -z "$ac_cv_prog_AR"; then
5064 ac_ct_AR=$AR
5065 # Extract the first word of "ar", so it can be a program name with args.
5066set dummy ar; ac_word=$2
81ecdfbb
RW
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068$as_echo_n "checking for $ac_word... " >&6; }
5069if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5070 $as_echo_n "(cached) " >&6
7357c5b6
AM
5071else
5072 if test -n "$ac_ct_AR"; then
5073 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5074else
5075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076for as_dir in $PATH
5077do
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 5082 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
5084 break 2
5085 fi
5086done
81ecdfbb
RW
5087 done
5088IFS=$as_save_IFS
7357c5b6
AM
5089
5090fi
5091fi
5092ac_ct_AR=$ac_cv_prog_ac_ct_AR
5093if test -n "$ac_ct_AR"; then
81ecdfbb
RW
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5095$as_echo "$ac_ct_AR" >&6; }
7357c5b6 5096else
81ecdfbb
RW
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098$as_echo "no" >&6; }
7357c5b6
AM
5099fi
5100
81ecdfbb
RW
5101 if test "x$ac_ct_AR" = x; then
5102 AR=""
5103 else
5104 case $cross_compiling:$ac_tool_warned in
5105yes:)
5106{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5108ac_tool_warned=yes ;;
5109esac
5110 AR=$ac_ct_AR
5111 fi
7357c5b6
AM
5112else
5113 AR="$ac_cv_prog_AR"
5114fi
5115
5116if test -n "$ac_tool_prefix"; then
5117 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5118set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120$as_echo_n "checking for $ac_word... " >&6; }
5121if test "${ac_cv_prog_RANLIB+set}" = set; then :
5122 $as_echo_n "(cached) " >&6
7357c5b6
AM
5123else
5124 if test -n "$RANLIB"; then
5125 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5126else
5127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128for as_dir in $PATH
5129do
5130 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 5134 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 5135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
5136 break 2
5137 fi
5138done
81ecdfbb
RW
5139 done
5140IFS=$as_save_IFS
7357c5b6
AM
5141
5142fi
5143fi
5144RANLIB=$ac_cv_prog_RANLIB
5145if test -n "$RANLIB"; then
81ecdfbb
RW
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5147$as_echo "$RANLIB" >&6; }
7357c5b6 5148else
81ecdfbb
RW
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150$as_echo "no" >&6; }
7357c5b6
AM
5151fi
5152
81ecdfbb 5153
7357c5b6
AM
5154fi
5155if test -z "$ac_cv_prog_RANLIB"; then
5156 ac_ct_RANLIB=$RANLIB
5157 # Extract the first word of "ranlib", so it can be a program name with args.
5158set dummy ranlib; ac_word=$2
81ecdfbb
RW
5159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160$as_echo_n "checking for $ac_word... " >&6; }
5161if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5162 $as_echo_n "(cached) " >&6
7357c5b6
AM
5163else
5164 if test -n "$ac_ct_RANLIB"; then
5165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5166else
5167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168for as_dir in $PATH
5169do
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 5174 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
5176 break 2
5177 fi
5178done
81ecdfbb
RW
5179 done
5180IFS=$as_save_IFS
7357c5b6 5181
7357c5b6
AM
5182fi
5183fi
5184ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5185if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5187$as_echo "$ac_ct_RANLIB" >&6; }
7357c5b6 5188else
81ecdfbb
RW
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190$as_echo "no" >&6; }
7357c5b6
AM
5191fi
5192
81ecdfbb
RW
5193 if test "x$ac_ct_RANLIB" = x; then
5194 RANLIB=":"
5195 else
5196 case $cross_compiling:$ac_tool_warned in
5197yes:)
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5200ac_tool_warned=yes ;;
5201esac
5202 RANLIB=$ac_ct_RANLIB
5203 fi
7357c5b6
AM
5204else
5205 RANLIB="$ac_cv_prog_RANLIB"
5206fi
5207
5208
81ecdfbb
RW
5209# Check whether --enable-shared was given.
5210if test "${enable_shared+set}" = set; then :
5211 enableval=$enable_shared; p=${PACKAGE-default}
7357c5b6
AM
5212 case $enableval in
5213 yes) enable_shared=yes ;;
5214 no) enable_shared=no ;;
5215 *)
5216 enable_shared=no
5217 # Look at the argument we got. We use all the common list separators.
5218 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5219 for pkg in $enableval; do
5220 IFS="$lt_save_ifs"
5221 if test "X$pkg" = "X$p"; then
5222 enable_shared=yes
5223 fi
5224 done
5225 IFS="$lt_save_ifs"
5226 ;;
5227 esac
5228else
5229 enable_shared=no
81ecdfbb
RW
5230fi
5231
7357c5b6
AM
5232
5233
5234
5235
5236
5237
5238
5239
5240
1927a18f
L
5241case `pwd` in
5242 *\ * | *\ *)
81ecdfbb
RW
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5244$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1927a18f 5245esac
7357c5b6
AM
5246
5247
7357c5b6 5248
1927a18f
L
5249macro_version='2.2.6'
5250macro_revision='1.3012'
7357c5b6
AM
5251
5252
5253
5254
5255
5256
7357c5b6
AM
5257
5258
5259
5260
5261
5262
5263
1927a18f 5264ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 5265
81ecdfbb
RW
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5267$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5268if test "${ac_cv_path_SED+set}" = set; then :
5269 $as_echo_n "(cached) " >&6
7357c5b6 5270else
81ecdfbb
RW
5271 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5272 for ac_i in 1 2 3 4 5 6 7; do
5273 ac_script="$ac_script$as_nl$ac_script"
5274 done
5275 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5276 { ac_script=; unset ac_script;}
5277 if test -z "$SED"; then
5278 ac_path_SED_found=false
5279 # Loop through the user's path and test for each of PROGNAME-LIST
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5281for as_dir in $PATH
5282do
5283 IFS=$as_save_IFS
5284 test -z "$as_dir" && as_dir=.
81ecdfbb 5285 for ac_prog in sed gsed; do
7357c5b6 5286 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5287 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5288 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5289# Check for GNU ac_path_SED and select it if it is found.
5290 # Check for GNU $ac_path_SED
5291case `"$ac_path_SED" --version 2>&1` in
5292*GNU*)
5293 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5294*)
5295 ac_count=0
5296 $as_echo_n 0123456789 >"conftest.in"
5297 while :
5298 do
5299 cat "conftest.in" "conftest.in" >"conftest.tmp"
5300 mv "conftest.tmp" "conftest.in"
5301 cp "conftest.in" "conftest.nl"
5302 $as_echo '' >> "conftest.nl"
5303 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5305 as_fn_arith $ac_count + 1 && ac_count=$as_val
5306 if test $ac_count -gt ${ac_path_SED_max-0}; then
5307 # Best one so far, save it but keep looking for a better one
5308 ac_cv_path_SED="$ac_path_SED"
5309 ac_path_SED_max=$ac_count
5310 fi
5311 # 10*(2^10) chars as input seems more than enough
5312 test $ac_count -gt 10 && break
5313 done
5314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5315esac
5316
5317 $ac_path_SED_found && break 3
7357c5b6
AM
5318 done
5319 done
81ecdfbb 5320 done
7357c5b6 5321IFS=$as_save_IFS
81ecdfbb
RW
5322 if test -z "$ac_cv_path_SED"; then
5323 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5324 fi
81ecdfbb
RW
5325else
5326 ac_cv_path_SED=$SED
7357c5b6
AM
5327fi
5328
81ecdfbb
RW
5329fi
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5331$as_echo "$ac_cv_path_SED" >&6; }
5332 SED="$ac_cv_path_SED"
5333 rm -f conftest.sed
7357c5b6
AM
5334
5335test -z "$SED" && SED=sed
5336Xsed="$SED -e 1s/^X//"
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
81ecdfbb
RW
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5349$as_echo_n "checking for fgrep... " >&6; }
5350if test "${ac_cv_path_FGREP+set}" = set; then :
5351 $as_echo_n "(cached) " >&6
7357c5b6 5352else
81ecdfbb
RW
5353 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5354 then ac_cv_path_FGREP="$GREP -F"
5355 else
5356 if test -z "$FGREP"; then
5357 ac_path_FGREP_found=false
5358 # Loop through the user's path and test for each of PROGNAME-LIST
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5361do
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_prog in fgrep; do
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5367 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5368# Check for GNU ac_path_FGREP and select it if it is found.
5369 # Check for GNU $ac_path_FGREP
5370case `"$ac_path_FGREP" --version 2>&1` in
5371*GNU*)
5372 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5373*)
5374 ac_count=0
5375 $as_echo_n 0123456789 >"conftest.in"
5376 while :
5377 do
5378 cat "conftest.in" "conftest.in" >"conftest.tmp"
5379 mv "conftest.tmp" "conftest.in"
5380 cp "conftest.in" "conftest.nl"
5381 $as_echo 'FGREP' >> "conftest.nl"
5382 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5383 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5384 as_fn_arith $ac_count + 1 && ac_count=$as_val
5385 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5386 # Best one so far, save it but keep looking for a better one
5387 ac_cv_path_FGREP="$ac_path_FGREP"
5388 ac_path_FGREP_max=$ac_count
7357c5b6 5389 fi
81ecdfbb
RW
5390 # 10*(2^10) chars as input seems more than enough
5391 test $ac_count -gt 10 && break
5392 done
5393 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5394esac
5395
5396 $ac_path_FGREP_found && break 3
5397 done
5398 done
5399 done
5400IFS=$as_save_IFS
5401 if test -z "$ac_cv_path_FGREP"; then
5402 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5403 fi
5404else
5405 ac_cv_path_FGREP=$FGREP
5406fi
5407
5408 fi
7357c5b6 5409fi
81ecdfbb
RW
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5411$as_echo "$ac_cv_path_FGREP" >&6; }
5412 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5413
5414
5415test -z "$GREP" && GREP=grep
d7040cdb 5416
d7040cdb 5417
d7040cdb 5418
ac48eca1
AO
5419
5420
5421
ac48eca1 5422
ac48eca1 5423
ac48eca1 5424
ac48eca1 5425
ac48eca1 5426
ac48eca1 5427
ac48eca1 5428
ac48eca1 5429
ac48eca1 5430
ac48eca1 5431
dabbade6
L
5432
5433
5434
81ecdfbb
RW
5435# Check whether --with-gnu-ld was given.
5436if test "${with_gnu_ld+set}" = set; then :
5437 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
dabbade6
L
5438else
5439 with_gnu_ld=no
81ecdfbb
RW
5440fi
5441
dabbade6
L
5442ac_prog=ld
5443if test "$GCC" = yes; then
5444 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5446$as_echo_n "checking for ld used by $CC... " >&6; }
dabbade6
L
5447 case $host in
5448 *-*-mingw*)
5449 # gcc leaves a trailing carriage return which upsets mingw
5450 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5451 *)
5452 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5453 esac
5454 case $ac_prog in
5455 # Accept absolute paths.
5456 [\\/]* | ?:[\\/]*)
5457 re_direlt='/[^/][^/]*/\.\./'
5458 # Canonicalize the pathname of ld
5459 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5460 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5461 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5462 done
5463 test -z "$LD" && LD="$ac_prog"
5464 ;;
5465 "")
5466 # If it fails, then pretend we aren't using GCC.
5467 ac_prog=ld
5468 ;;
5469 *)
5470 # If it is relative, then search for the first ld in PATH.
5471 with_gnu_ld=unknown
5472 ;;
5473 esac
5474elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5476$as_echo_n "checking for GNU ld... " >&6; }
dabbade6 5477else
81ecdfbb
RW
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5479$as_echo_n "checking for non-GNU ld... " >&6; }
dabbade6 5480fi
81ecdfbb
RW
5481if test "${lt_cv_path_LD+set}" = set; then :
5482 $as_echo_n "(cached) " >&6
ac48eca1 5483else
dabbade6
L
5484 if test -z "$LD"; then
5485 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5486 for ac_dir in $PATH; do
5487 IFS="$lt_save_ifs"
5488 test -z "$ac_dir" && ac_dir=.
5489 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5490 lt_cv_path_LD="$ac_dir/$ac_prog"
5491 # Check to see if the program is GNU ld. I'd rather use --version,
5492 # but apparently some variants of GNU ld only accept -v.
5493 # Break only if it was the GNU/non-GNU ld that we prefer.
5494 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5495 *GNU* | *'with BFD'*)
5496 test "$with_gnu_ld" != no && break
5497 ;;
5498 *)
5499 test "$with_gnu_ld" != yes && break
5500 ;;
5501 esac
5502 fi
5503 done
5504 IFS="$lt_save_ifs"
ac48eca1 5505else
dabbade6 5506 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ac48eca1
AO
5507fi
5508fi
dabbade6
L
5509
5510LD="$lt_cv_path_LD"
5511if test -n "$LD"; then
81ecdfbb
RW
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5513$as_echo "$LD" >&6; }
ac48eca1 5514else
81ecdfbb
RW
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516$as_echo "no" >&6; }
ac48eca1 5517fi
81ecdfbb
RW
5518test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5520$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5521if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5522 $as_echo_n "(cached) " >&6
ac48eca1 5523else
dabbade6
L
5524 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5525case `$LD -v 2>&1 </dev/null` in
5526*GNU* | *'with BFD'*)
5527 lt_cv_prog_gnu_ld=yes
5528 ;;
5529*)
5530 lt_cv_prog_gnu_ld=no
5531 ;;
5532esac
ac48eca1 5533fi
81ecdfbb
RW
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5535$as_echo "$lt_cv_prog_gnu_ld" >&6; }
dabbade6 5536with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
5537
5538
5539
5540
5541
5542
5543
5544
5545
81ecdfbb
RW
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5547$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5548if test "${lt_cv_path_NM+set}" = set; then :
5549 $as_echo_n "(cached) " >&6
ac48eca1 5550else
dabbade6
L
5551 if test -n "$NM"; then
5552 # Let the user override the test.
5553 lt_cv_path_NM="$NM"
ac48eca1 5554else
dabbade6
L
5555 lt_nm_to_check="${ac_tool_prefix}nm"
5556 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5557 lt_nm_to_check="$lt_nm_to_check nm"
979273e3 5558 fi
dabbade6
L
5559 for lt_tmp_nm in $lt_nm_to_check; do
5560 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5561 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5562 IFS="$lt_save_ifs"
5563 test -z "$ac_dir" && ac_dir=.
5564 tmp_nm="$ac_dir/$lt_tmp_nm"
5565 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5566 # Check to see if the nm accepts a BSD-compat flag.
5567 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5568 # nm: unknown option "B" ignored
5569 # Tru64's nm complains that /dev/null is an invalid object file
5570 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5571 */dev/null* | *'Invalid file or object type'*)
5572 lt_cv_path_NM="$tmp_nm -B"
5573 break
5574 ;;
5575 *)
5576 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5577 */dev/null*)
5578 lt_cv_path_NM="$tmp_nm -p"
5579 break
5580 ;;
5581 *)
5582 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5583 continue # so that we can try to find one that supports BSD flags
5584 ;;
5585 esac
5586 ;;
5587 esac
5588 fi
5589 done
5590 IFS="$lt_save_ifs"
5591 done
5592 : ${lt_cv_path_NM=no}
ac48eca1
AO
5593fi
5594fi
81ecdfbb
RW
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5596$as_echo "$lt_cv_path_NM" >&6; }
dabbade6
L
5597if test "$lt_cv_path_NM" != "no"; then
5598 NM="$lt_cv_path_NM"
ac48eca1 5599else
dabbade6
L
5600 # Didn't find any BSD compatible name lister, look for dumpbin.
5601 if test -n "$ac_tool_prefix"; then
5602 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5603 do
5604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5605set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607$as_echo_n "checking for $ac_word... " >&6; }
5608if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5609 $as_echo_n "(cached) " >&6
ac48eca1 5610else
dabbade6
L
5611 if test -n "$DUMPBIN"; then
5612 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ac48eca1 5613else
979273e3
NN
5614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615for as_dir in $PATH
5616do
5617 IFS=$as_save_IFS
5618 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 5621 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
5623 break 2
5624 fi
5625done
81ecdfbb
RW
5626 done
5627IFS=$as_save_IFS
979273e3 5628
ac48eca1
AO
5629fi
5630fi
dabbade6
L
5631DUMPBIN=$ac_cv_prog_DUMPBIN
5632if test -n "$DUMPBIN"; then
81ecdfbb
RW
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5634$as_echo "$DUMPBIN" >&6; }
ac48eca1 5635else
81ecdfbb
RW
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637$as_echo "no" >&6; }
ac48eca1
AO
5638fi
5639
81ecdfbb 5640
dabbade6
L
5641 test -n "$DUMPBIN" && break
5642 done
ac48eca1 5643fi
dabbade6
L
5644if test -z "$DUMPBIN"; then
5645 ac_ct_DUMPBIN=$DUMPBIN
5646 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5647do
5648 # Extract the first word of "$ac_prog", so it can be a program name with args.
5649set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5651$as_echo_n "checking for $ac_word... " >&6; }
5652if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5653 $as_echo_n "(cached) " >&6
ac48eca1 5654else
dabbade6
L
5655 if test -n "$ac_ct_DUMPBIN"; then
5656 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
d7040cdb
SE
5657else
5658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659for as_dir in $PATH
5660do
5661 IFS=$as_save_IFS
5662 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 5665 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5667 break 2
252b5132 5668 fi
d7040cdb 5669done
81ecdfbb
RW
5670 done
5671IFS=$as_save_IFS
252b5132 5672
d7040cdb
SE
5673fi
5674fi
dabbade6
L
5675ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5676if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5678$as_echo "$ac_ct_DUMPBIN" >&6; }
d7040cdb 5679else
81ecdfbb
RW
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681$as_echo "no" >&6; }
d7040cdb 5682fi
4867be41 5683
81ecdfbb 5684
dabbade6 5685 test -n "$ac_ct_DUMPBIN" && break
d7040cdb 5686done
32fba81d 5687
81ecdfbb
RW
5688 if test "x$ac_ct_DUMPBIN" = x; then
5689 DUMPBIN=":"
5690 else
5691 case $cross_compiling:$ac_tool_warned in
5692yes:)
5693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5695ac_tool_warned=yes ;;
5696esac
5697 DUMPBIN=$ac_ct_DUMPBIN
5698 fi
d7040cdb 5699fi
979273e3
NN
5700
5701
dabbade6
L
5702 if test "$DUMPBIN" != ":"; then
5703 NM="$DUMPBIN"
5704 fi
5705fi
5706test -z "$NM" && NM=nm
ac48eca1 5707
252b5132 5708
252b5132 5709
979273e3 5710
ac48eca1 5711
d7040cdb 5712
81ecdfbb
RW
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5714$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5715if test "${lt_cv_nm_interface+set}" = set; then :
5716 $as_echo_n "(cached) " >&6
dabbade6
L
5717else
5718 lt_cv_nm_interface="BSD nm"
5719 echo "int some_variable = 0;" > conftest.$ac_ext
2eee5593 5720 (eval echo "\"\$as_me:5720: $ac_compile\"" >&5)
dabbade6
L
5721 (eval "$ac_compile" 2>conftest.err)
5722 cat conftest.err >&5
2eee5593 5723 (eval echo "\"\$as_me:5723: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
dabbade6
L
5724 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5725 cat conftest.err >&5
2eee5593 5726 (eval echo "\"\$as_me:5726: output\"" >&5)
dabbade6
L
5727 cat conftest.out >&5
5728 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5729 lt_cv_nm_interface="MS dumpbin"
5730 fi
5731 rm -f conftest*
5732fi
81ecdfbb
RW
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5734$as_echo "$lt_cv_nm_interface" >&6; }
d7040cdb 5735
81ecdfbb
RW
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5737$as_echo_n "checking whether ln -s works... " >&6; }
dabbade6
L
5738LN_S=$as_ln_s
5739if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5741$as_echo "yes" >&6; }
dabbade6 5742else
81ecdfbb
RW
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5744$as_echo "no, using $LN_S" >&6; }
dabbade6
L
5745fi
5746
5747# find the maximum length of command line arguments
81ecdfbb
RW
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5749$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5750if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5751 $as_echo_n "(cached) " >&6
dabbade6
L
5752else
5753 i=0
5754 teststring="ABCD"
5755
5756 case $build_os in
5757 msdosdjgpp*)
5758 # On DJGPP, this test can blow up pretty badly due to problems in libc
5759 # (any single argument exceeding 2000 bytes causes a buffer overrun
5760 # during glob expansion). Even if it were fixed, the result of this
5761 # check would be larger than it should be.
5762 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5763 ;;
5764
5765 gnu*)
5766 # Under GNU Hurd, this test is not required because there is
5767 # no limit to the length of command line arguments.
5768 # Libtool will interpret -1 as no limit whatsoever
5769 lt_cv_sys_max_cmd_len=-1;
5770 ;;
5771
1927a18f 5772 cygwin* | mingw* | cegcc*)
dabbade6
L
5773 # On Win9x/ME, this test blows up -- it succeeds, but takes
5774 # about 5 minutes as the teststring grows exponentially.
5775 # Worse, since 9x/ME are not pre-emptively multitasking,
5776 # you end up with a "frozen" computer, even though with patience
5777 # the test eventually succeeds (with a max line length of 256k).
5778 # Instead, let's just punt: use the minimum linelength reported by
5779 # all of the supported platforms: 8192 (on NT/2K/XP).
5780 lt_cv_sys_max_cmd_len=8192;
5781 ;;
5782
5783 amigaos*)
5784 # On AmigaOS with pdksh, this test takes hours, literally.
5785 # So we just punt and use a minimum line length of 8192.
5786 lt_cv_sys_max_cmd_len=8192;
5787 ;;
5788
5789 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5790 # This has been around since 386BSD, at least. Likely further.
5791 if test -x /sbin/sysctl; then
5792 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5793 elif test -x /usr/sbin/sysctl; then
5794 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5795 else
5796 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5797 fi
5798 # And add a safety zone
5799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5801 ;;
5802
5803 interix*)
5804 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5805 lt_cv_sys_max_cmd_len=196608
5806 ;;
5807
5808 osf*)
5809 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5810 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5811 # nice to cause kernel panics so lets avoid the loop below.
5812 # First set a reasonable default.
5813 lt_cv_sys_max_cmd_len=16384
5814 #
5815 if test -x /sbin/sysconfig; then
5816 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5817 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5818 esac
5819 fi
5820 ;;
5821 sco3.2v5*)
5822 lt_cv_sys_max_cmd_len=102400
5823 ;;
5824 sysv5* | sco5v6* | sysv4.2uw2*)
5825 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5826 if test -n "$kargmax"; then
5827 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5828 else
5829 lt_cv_sys_max_cmd_len=32768
5830 fi
d7040cdb
SE
5831 ;;
5832 *)
1927a18f
L
5833 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5834 if test -n "$lt_cv_sys_max_cmd_len"; then
dabbade6
L
5835 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5836 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5837 else
5838 # Make teststring a little bigger before we do anything with it.
5839 # a 1K string should be a reasonable start.
5840 for i in 1 2 3 4 5 6 7 8 ; do
5841 teststring=$teststring$teststring
5842 done
5843 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5844 # If test is not a shell built-in, we'll probably end up computing a
5845 # maximum length that is only half of the actual maximum length, but
5846 # we can't tell.
5847 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5848 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5849 test $i != 17 # 1/2 MB should be enough
5850 do
5851 i=`expr $i + 1`
5852 teststring=$teststring$teststring
5853 done
5854 # Only check the string length outside the loop.
5855 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5856 teststring=
5857 # Add a significant safety factor because C++ compilers can tack on
5858 # massive amounts of additional arguments before passing them to the
5859 # linker. It appears as though 1/2 is a usable value.
5860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5861 fi
d7040cdb
SE
5862 ;;
5863 esac
252b5132 5864
dabbade6 5865fi
252b5132 5866
dabbade6 5867if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5869$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
dabbade6 5870else
81ecdfbb
RW
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5872$as_echo "none" >&6; }
dabbade6
L
5873fi
5874max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5875
252b5132 5876
979273e3 5877
979273e3 5878
252b5132 5879
252b5132 5880
dabbade6
L
5881: ${CP="cp -f"}
5882: ${MV="mv -f"}
5883: ${RM="rm -f"}
252b5132 5884
81ecdfbb
RW
5885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5886$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
dabbade6
L
5887# Try some XSI features
5888xsi_shell=no
5889( _lt_dummy="a/b/c"
5890 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
1927a18f
L
5891 = c,a/b,, \
5892 && eval 'test $(( 1 + 1 )) -eq 2 \
5893 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
dabbade6 5894 && xsi_shell=yes
81ecdfbb
RW
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5896$as_echo "$xsi_shell" >&6; }
252b5132 5897
252b5132 5898
81ecdfbb
RW
5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5900$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
dabbade6
L
5901lt_shell_append=no
5902( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5903 >/dev/null 2>&1 \
5904 && lt_shell_append=yes
81ecdfbb
RW
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5906$as_echo "$lt_shell_append" >&6; }
252b5132 5907
ac48eca1 5908
dabbade6
L
5909if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5910 lt_unset=unset
5911else
5912 lt_unset=false
5913fi
979273e3
NN
5914
5915
5916
5917
ac48eca1 5918
dabbade6
L
5919# test EBCDIC or ASCII
5920case `echo X|tr X '\101'` in
5921 A) # ASCII based system
5922 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5923 lt_SP2NL='tr \040 \012'
5924 lt_NL2SP='tr \015\012 \040\040'
5925 ;;
5926 *) # EBCDIC based system
5927 lt_SP2NL='tr \100 \n'
5928 lt_NL2SP='tr \r\n \100\100'
5929 ;;
5930esac
9e9b66a9 5931
1ad12f97 5932
1ad12f97 5933
9e9b66a9 5934
1ad12f97 5935
a541e3ce 5936
9e9b66a9 5937
a2d91340
AC
5938
5939
81ecdfbb
RW
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5941$as_echo_n "checking for $LD option to reload object files... " >&6; }
5942if test "${lt_cv_ld_reload_flag+set}" = set; then :
5943 $as_echo_n "(cached) " >&6
dabbade6
L
5944else
5945 lt_cv_ld_reload_flag='-r'
5946fi
81ecdfbb
RW
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5948$as_echo "$lt_cv_ld_reload_flag" >&6; }
dabbade6
L
5949reload_flag=$lt_cv_ld_reload_flag
5950case $reload_flag in
5951"" | " "*) ;;
5952*) reload_flag=" $reload_flag" ;;
5953esac
5954reload_cmds='$LD$reload_flag -o $output$reload_objs'
5955case $host_os in
5956 darwin*)
5957 if test "$GCC" = yes; then
5958 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5959 else
5960 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5961 fi
5962 ;;
5963esac
9e9b66a9
AM
5964
5965
5966
252b5132 5967
252b5132 5968
252b5132 5969
252b5132 5970
252b5132 5971
d7040cdb 5972
1927a18f
L
5973if test -n "$ac_tool_prefix"; then
5974 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5975set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5977$as_echo_n "checking for $ac_word... " >&6; }
5978if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5979 $as_echo_n "(cached) " >&6
1927a18f
L
5980else
5981 if test -n "$OBJDUMP"; then
5982 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5983else
5984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985for as_dir in $PATH
5986do
5987 IFS=$as_save_IFS
5988 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5989 for ac_exec_ext in '' $ac_executable_extensions; do
5990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 5991 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
5993 break 2
5994 fi
5995done
81ecdfbb
RW
5996 done
5997IFS=$as_save_IFS
1927a18f
L
5998
5999fi
6000fi
6001OBJDUMP=$ac_cv_prog_OBJDUMP
6002if test -n "$OBJDUMP"; then
81ecdfbb
RW
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6004$as_echo "$OBJDUMP" >&6; }
1927a18f 6005else
81ecdfbb
RW
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007$as_echo "no" >&6; }
1927a18f
L
6008fi
6009
81ecdfbb 6010
1927a18f
L
6011fi
6012if test -z "$ac_cv_prog_OBJDUMP"; then
6013 ac_ct_OBJDUMP=$OBJDUMP
6014 # Extract the first word of "objdump", so it can be a program name with args.
6015set dummy objdump; ac_word=$2
81ecdfbb
RW
6016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017$as_echo_n "checking for $ac_word... " >&6; }
6018if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6019 $as_echo_n "(cached) " >&6
1927a18f
L
6020else
6021 if test -n "$ac_ct_OBJDUMP"; then
6022 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6023else
6024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025for as_dir in $PATH
6026do
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 6031 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
6033 break 2
6034 fi
6035done
81ecdfbb
RW
6036 done
6037IFS=$as_save_IFS
1927a18f 6038
1927a18f
L
6039fi
6040fi
6041ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6042if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6044$as_echo "$ac_ct_OBJDUMP" >&6; }
1927a18f 6045else
81ecdfbb
RW
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047$as_echo "no" >&6; }
1927a18f
L
6048fi
6049
81ecdfbb
RW
6050 if test "x$ac_ct_OBJDUMP" = x; then
6051 OBJDUMP="false"
6052 else
6053 case $cross_compiling:$ac_tool_warned in
6054yes:)
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6057ac_tool_warned=yes ;;
6058esac
6059 OBJDUMP=$ac_ct_OBJDUMP
6060 fi
1927a18f
L
6061else
6062 OBJDUMP="$ac_cv_prog_OBJDUMP"
6063fi
6064
6065test -z "$OBJDUMP" && OBJDUMP=objdump
6066
6067
6068
6069
6070
6071
6072
6073
d7040cdb 6074
81ecdfbb
RW
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6076$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6077if test "${lt_cv_deplibs_check_method+set}" = set; then :
6078 $as_echo_n "(cached) " >&6
252b5132 6079else
dabbade6
L
6080 lt_cv_file_magic_cmd='$MAGIC_CMD'
6081lt_cv_file_magic_test_file=
6082lt_cv_deplibs_check_method='unknown'
6083# Need to set the preceding variable on all platforms that support
6084# interlibrary dependencies.
6085# 'none' -- dependencies not supported.
6086# `unknown' -- same as none, but documents that we really don't know.
6087# 'pass_all' -- all dependencies passed with no checks.
6088# 'test_compile' -- check by making test program.
6089# 'file_magic [[regex]]' -- check by looking for files in library path
6090# which responds to the $file_magic_cmd with a given extended regex.
6091# If you have `file' or equivalent on your system and you're not sure
6092# whether `pass_all' will *always* work, you probably want this one.
8ae85421 6093
dabbade6 6094case $host_os in
50e7d84b 6095aix[4-9]*)
dabbade6
L
6096 lt_cv_deplibs_check_method=pass_all
6097 ;;
979273e3 6098
dabbade6
L
6099beos*)
6100 lt_cv_deplibs_check_method=pass_all
6101 ;;
24443139 6102
dabbade6
L
6103bsdi[45]*)
6104 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6105 lt_cv_file_magic_cmd='/usr/bin/file -L'
6106 lt_cv_file_magic_test_file=/shlib/libc.so
d7040cdb 6107 ;;
dabbade6
L
6108
6109cygwin*)
6110 # func_win32_libid is a shell function defined in ltmain.sh
6111 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6112 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 6113 ;;
dabbade6
L
6114
6115mingw* | pw32*)
6116 # Base MSYS/MinGW do not provide the 'file' command needed by
6117 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6118 # unless we find 'file', for example because we are cross-compiling.
6119 if ( file / ) >/dev/null 2>&1; then
6120 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6121 lt_cv_file_magic_cmd='func_win32_libid'
6122 else
6123 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6124 lt_cv_file_magic_cmd='$OBJDUMP -f'
d7040cdb
SE
6125 fi
6126 ;;
dabbade6 6127
1927a18f
L
6128cegcc)
6129 # use the weaker test based on 'objdump'. See mingw*.
6130 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6131 lt_cv_file_magic_cmd='$OBJDUMP -f'
6132 ;;
6133
dabbade6
L
6134darwin* | rhapsody*)
6135 lt_cv_deplibs_check_method=pass_all
d7040cdb 6136 ;;
dabbade6
L
6137
6138freebsd* | dragonfly*)
6139 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6140 case $host_cpu in
6141 i*86 )
6142 # Not sure whether the presence of OpenBSD here was a mistake.
6143 # Let's accept both of them until this is cleared up.
6144 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6145 lt_cv_file_magic_cmd=/usr/bin/file
6146 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6147 ;;
6148 esac
6149 else
6150 lt_cv_deplibs_check_method=pass_all
6151 fi
d7040cdb 6152 ;;
dabbade6
L
6153
6154gnu*)
6155 lt_cv_deplibs_check_method=pass_all
d7040cdb 6156 ;;
dabbade6
L
6157
6158hpux10.20* | hpux11*)
6159 lt_cv_file_magic_cmd=/usr/bin/file
6160 case $host_cpu in
6161 ia64*)
6162 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6163 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6164 ;;
6165 hppa*64*)
6166 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]'
6167 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6168 ;;
6169 *)
6170 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6171 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6172 ;;
6173 esac
d7040cdb 6174 ;;
24443139 6175
dabbade6
L
6176interix[3-9]*)
6177 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6178 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6179 ;;
24443139 6180
dabbade6
L
6181irix5* | irix6* | nonstopux*)
6182 case $LD in
6183 *-32|*"-32 ") libmagic=32-bit;;
6184 *-n32|*"-n32 ") libmagic=N32;;
6185 *-64|*"-64 ") libmagic=64-bit;;
6186 *) libmagic=never-match;;
6187 esac
6188 lt_cv_deplibs_check_method=pass_all
6189 ;;
8ae85421 6190
dabbade6 6191# This must be Linux ELF.
58e24671 6192linux* | k*bsd*-gnu | kopensolaris*-gnu)
dabbade6
L
6193 lt_cv_deplibs_check_method=pass_all
6194 ;;
24443139 6195
dabbade6
L
6196netbsd*)
6197 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6199 else
6200 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6201 fi
d7040cdb 6202 ;;
24443139 6203
dabbade6
L
6204newos6*)
6205 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6206 lt_cv_file_magic_cmd=/usr/bin/file
6207 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6208 ;;
d7040cdb 6209
dabbade6
L
6210*nto* | *qnx*)
6211 lt_cv_deplibs_check_method=pass_all
6212 ;;
d7040cdb 6213
dabbade6
L
6214openbsd*)
6215 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6216 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
d7040cdb 6217 else
dabbade6 6218 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d7040cdb 6219 fi
dabbade6 6220 ;;
24443139 6221
dabbade6
L
6222osf3* | osf4* | osf5*)
6223 lt_cv_deplibs_check_method=pass_all
6224 ;;
24443139 6225
dabbade6
L
6226rdos*)
6227 lt_cv_deplibs_check_method=pass_all
6228 ;;
81172ff2 6229
dabbade6
L
6230solaris*)
6231 lt_cv_deplibs_check_method=pass_all
6232 ;;
81172ff2 6233
dabbade6
L
6234sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6235 lt_cv_deplibs_check_method=pass_all
6236 ;;
252b5132 6237
dabbade6
L
6238sysv4 | sysv4.3*)
6239 case $host_vendor in
6240 motorola)
6241 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]'
6242 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6243 ;;
6244 ncr)
6245 lt_cv_deplibs_check_method=pass_all
6246 ;;
6247 sequent)
6248 lt_cv_file_magic_cmd='/bin/file'
6249 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6250 ;;
6251 sni)
6252 lt_cv_file_magic_cmd='/bin/file'
6253 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6254 lt_cv_file_magic_test_file=/lib/libc.so
6255 ;;
6256 siemens)
6257 lt_cv_deplibs_check_method=pass_all
6258 ;;
6259 pc)
6260 lt_cv_deplibs_check_method=pass_all
6261 ;;
6262 esac
6263 ;;
252b5132 6264
dabbade6
L
6265tpf*)
6266 lt_cv_deplibs_check_method=pass_all
6267 ;;
6268esac
979273e3 6269
dabbade6 6270fi
81ecdfbb
RW
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6272$as_echo "$lt_cv_deplibs_check_method" >&6; }
dabbade6
L
6273file_magic_cmd=$lt_cv_file_magic_cmd
6274deplibs_check_method=$lt_cv_deplibs_check_method
6275test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 6276
979273e3 6277
979273e3 6278
dabbade6
L
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288if test -n "$ac_tool_prefix"; then
6289 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6290set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292$as_echo_n "checking for $ac_word... " >&6; }
6293if test "${ac_cv_prog_AR+set}" = set; then :
6294 $as_echo_n "(cached) " >&6
dabbade6
L
6295else
6296 if test -n "$AR"; then
6297 ac_cv_prog_AR="$AR" # Let the user override the test.
6298else
6299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300for as_dir in $PATH
6301do
6302 IFS=$as_save_IFS
6303 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 6306 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6 6308 break 2
252b5132 6309 fi
979273e3 6310done
81ecdfbb
RW
6311 done
6312IFS=$as_save_IFS
979273e3 6313
dabbade6
L
6314fi
6315fi
6316AR=$ac_cv_prog_AR
6317if test -n "$AR"; then
81ecdfbb
RW
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6319$as_echo "$AR" >&6; }
dabbade6 6320else
81ecdfbb
RW
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322$as_echo "no" >&6; }
979273e3 6323fi
d7040cdb 6324
81ecdfbb 6325
252b5132 6326fi
dabbade6
L
6327if test -z "$ac_cv_prog_AR"; then
6328 ac_ct_AR=$AR
6329 # Extract the first word of "ar", so it can be a program name with args.
6330set dummy ar; ac_word=$2
81ecdfbb
RW
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332$as_echo_n "checking for $ac_word... " >&6; }
6333if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6334 $as_echo_n "(cached) " >&6
979273e3 6335else
dabbade6
L
6336 if test -n "$ac_ct_AR"; then
6337 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6338else
6339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340for as_dir in $PATH
6341do
6342 IFS=$as_save_IFS
6343 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 6346 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
6348 break 2
6349 fi
6350done
81ecdfbb
RW
6351 done
6352IFS=$as_save_IFS
dabbade6 6353
dabbade6
L
6354fi
6355fi
6356ac_ct_AR=$ac_cv_prog_ac_ct_AR
6357if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6359$as_echo "$ac_ct_AR" >&6; }
dabbade6 6360else
81ecdfbb
RW
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362$as_echo "no" >&6; }
252b5132
RH
6363fi
6364
81ecdfbb
RW
6365 if test "x$ac_ct_AR" = x; then
6366 AR="false"
6367 else
6368 case $cross_compiling:$ac_tool_warned in
6369yes:)
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6372ac_tool_warned=yes ;;
6373esac
6374 AR=$ac_ct_AR
6375 fi
dabbade6
L
6376else
6377 AR="$ac_cv_prog_AR"
6378fi
252b5132 6379
dabbade6
L
6380test -z "$AR" && AR=ar
6381test -z "$AR_FLAGS" && AR_FLAGS=cru
252b5132 6382
979273e3 6383
979273e3 6384
979273e3 6385
252b5132 6386
979273e3 6387
979273e3 6388
252b5132 6389
979273e3 6390
979273e3 6391
979273e3 6392
dabbade6
L
6393if test -n "$ac_tool_prefix"; then
6394 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6395set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6397$as_echo_n "checking for $ac_word... " >&6; }
6398if test "${ac_cv_prog_STRIP+set}" = set; then :
6399 $as_echo_n "(cached) " >&6
dabbade6
L
6400else
6401 if test -n "$STRIP"; then
6402 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6403else
6404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405for as_dir in $PATH
6406do
6407 IFS=$as_save_IFS
6408 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6409 for ac_exec_ext in '' $ac_executable_extensions; do
6410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 6411 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
6413 break 2
6414 fi
6415done
81ecdfbb
RW
6416 done
6417IFS=$as_save_IFS
979273e3 6418
dabbade6
L
6419fi
6420fi
6421STRIP=$ac_cv_prog_STRIP
6422if test -n "$STRIP"; then
81ecdfbb
RW
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6424$as_echo "$STRIP" >&6; }
dabbade6 6425else
81ecdfbb
RW
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427$as_echo "no" >&6; }
dabbade6 6428fi
979273e3 6429
81ecdfbb 6430
dabbade6
L
6431fi
6432if test -z "$ac_cv_prog_STRIP"; then
6433 ac_ct_STRIP=$STRIP
6434 # Extract the first word of "strip", so it can be a program name with args.
6435set dummy strip; ac_word=$2
81ecdfbb
RW
6436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6437$as_echo_n "checking for $ac_word... " >&6; }
6438if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6439 $as_echo_n "(cached) " >&6
dabbade6
L
6440else
6441 if test -n "$ac_ct_STRIP"; then
6442 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6443else
6444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445for as_dir in $PATH
6446do
6447 IFS=$as_save_IFS
6448 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 6451 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
6453 break 2
6454 fi
6455done
81ecdfbb
RW
6456 done
6457IFS=$as_save_IFS
979273e3 6458
dabbade6
L
6459fi
6460fi
6461ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6462if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6464$as_echo "$ac_ct_STRIP" >&6; }
dabbade6 6465else
81ecdfbb
RW
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467$as_echo "no" >&6; }
dabbade6 6468fi
979273e3 6469
81ecdfbb
RW
6470 if test "x$ac_ct_STRIP" = x; then
6471 STRIP=":"
6472 else
6473 case $cross_compiling:$ac_tool_warned in
6474yes:)
6475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6477ac_tool_warned=yes ;;
6478esac
6479 STRIP=$ac_ct_STRIP
6480 fi
dabbade6
L
6481else
6482 STRIP="$ac_cv_prog_STRIP"
6483fi
979273e3 6484
dabbade6 6485test -z "$STRIP" && STRIP=:
979273e3 6486
d7040cdb 6487
979273e3 6488
d7040cdb 6489
979273e3 6490
979273e3 6491
dabbade6
L
6492if test -n "$ac_tool_prefix"; then
6493 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6494set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6496$as_echo_n "checking for $ac_word... " >&6; }
6497if test "${ac_cv_prog_RANLIB+set}" = set; then :
6498 $as_echo_n "(cached) " >&6
979273e3 6499else
dabbade6
L
6500 if test -n "$RANLIB"; then
6501 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6502else
6503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504for as_dir in $PATH
6505do
6506 IFS=$as_save_IFS
6507 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6508 for ac_exec_ext in '' $ac_executable_extensions; do
6509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 6510 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
6512 break 2
6513 fi
6514done
81ecdfbb
RW
6515 done
6516IFS=$as_save_IFS
979273e3 6517
979273e3 6518fi
979273e3 6519fi
dabbade6
L
6520RANLIB=$ac_cv_prog_RANLIB
6521if test -n "$RANLIB"; then
81ecdfbb
RW
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6523$as_echo "$RANLIB" >&6; }
dabbade6 6524else
81ecdfbb
RW
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526$as_echo "no" >&6; }
dabbade6 6527fi
d7040cdb 6528
81ecdfbb 6529
d7040cdb 6530fi
dabbade6
L
6531if test -z "$ac_cv_prog_RANLIB"; then
6532 ac_ct_RANLIB=$RANLIB
6533 # Extract the first word of "ranlib", so it can be a program name with args.
6534set dummy ranlib; ac_word=$2
81ecdfbb
RW
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6536$as_echo_n "checking for $ac_word... " >&6; }
6537if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6538 $as_echo_n "(cached) " >&6
979273e3 6539else
dabbade6
L
6540 if test -n "$ac_ct_RANLIB"; then
6541 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6542else
6543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544for as_dir in $PATH
d7040cdb 6545do
dabbade6
L
6546 IFS=$as_save_IFS
6547 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 6550 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6 6552 break 2
979273e3 6553 fi
dabbade6 6554done
81ecdfbb
RW
6555 done
6556IFS=$as_save_IFS
dabbade6 6557
979273e3 6558fi
dabbade6
L
6559fi
6560ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6561if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6563$as_echo "$ac_ct_RANLIB" >&6; }
979273e3 6564else
81ecdfbb
RW
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566$as_echo "no" >&6; }
d7040cdb 6567fi
d7040cdb 6568
81ecdfbb
RW
6569 if test "x$ac_ct_RANLIB" = x; then
6570 RANLIB=":"
6571 else
6572 case $cross_compiling:$ac_tool_warned in
6573yes:)
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6576ac_tool_warned=yes ;;
6577esac
6578 RANLIB=$ac_ct_RANLIB
6579 fi
d7040cdb 6580else
dabbade6 6581 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 6582fi
979273e3 6583
dabbade6 6584test -z "$RANLIB" && RANLIB=:
979273e3 6585
252b5132 6586
252b5132 6587
d7040cdb 6588
d7040cdb 6589
d7040cdb 6590
dabbade6 6591# Determine commands to create old-style static archives.
1927a18f 6592old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
dabbade6
L
6593old_postinstall_cmds='chmod 644 $oldlib'
6594old_postuninstall_cmds=
d7040cdb 6595
dabbade6
L
6596if test -n "$RANLIB"; then
6597 case $host_os in
6598 openbsd*)
6599 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6600 ;;
6601 *)
6602 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6603 ;;
6604 esac
6605 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb
SE
6606fi
6607
d7040cdb
SE
6608
6609
d7040cdb 6610
d7040cdb 6611
252b5132 6612
d7040cdb 6613
d7040cdb 6614
d7040cdb
SE
6615
6616
6617
d7040cdb 6618
d7040cdb 6619
d7040cdb 6620
252b5132 6621
d7040cdb
SE
6622
6623
6624
d7040cdb 6625
d7040cdb
SE
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
dabbade6
L
6641# If no C compiler was specified, use CC.
6642LTCC=${LTCC-"$CC"}
d7040cdb 6643
dabbade6
L
6644# If no C compiler flags were specified, use CFLAGS.
6645LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 6646
dabbade6
L
6647# Allow CC to be a program name with arguments.
6648compiler=$CC
d7040cdb
SE
6649
6650
dabbade6 6651# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6653$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6654if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6655 $as_echo_n "(cached) " >&6
dabbade6 6656else
d7040cdb 6657
dabbade6
L
6658# These are sane defaults that work on at least a few old systems.
6659# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 6660
dabbade6
L
6661# Character class describing NM global symbol codes.
6662symcode='[BCDEGRST]'
d7040cdb 6663
dabbade6
L
6664# Regexp to match symbols that can be accessed directly from C.
6665sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
d7040cdb 6666
dabbade6
L
6667# Define system-specific variables.
6668case $host_os in
6669aix*)
6670 symcode='[BCDT]'
6671 ;;
1927a18f 6672cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
6673 symcode='[ABCDGISTW]'
6674 ;;
6675hpux*)
6676 if test "$host_cpu" = ia64; then
6677 symcode='[ABCDEGRST]'
6678 fi
6679 ;;
6680irix* | nonstopux*)
6681 symcode='[BCDEGRST]'
6682 ;;
6683osf*)
6684 symcode='[BCDEGQRST]'
6685 ;;
6686solaris*)
6687 symcode='[BDRT]'
6688 ;;
6689sco3.2v5*)
6690 symcode='[DT]'
6691 ;;
6692sysv4.2uw2*)
6693 symcode='[DT]'
6694 ;;
6695sysv5* | sco5v6* | unixware* | OpenUNIX*)
6696 symcode='[ABDT]'
6697 ;;
6698sysv4)
6699 symcode='[DFNSTU]'
6700 ;;
6701esac
6702
6703# If we're using GNU nm, then use its standard symbol codes.
6704case `$NM -V 2>&1` in
6705*GNU* | *'with BFD'*)
6706 symcode='[ABCDGIRSTW]' ;;
6707esac
d7040cdb 6708
dabbade6
L
6709# Transform an extracted symbol line into a proper C declaration.
6710# Some systems (esp. on ia64) link data and code symbols differently,
6711# so use this general approach.
6712lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 6713
dabbade6 6714# Transform an extracted symbol line into symbol name and symbol address
7357c5b6 6715lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
1927a18f 6716lt_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 6717
7357c5b6
AM
6718# Handle CRLF in mingw tool chain
6719opt_cr=
6720case $build_os in
6721mingw*)
6722 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6723 ;;
6724esac
d7040cdb 6725
7357c5b6
AM
6726# Try without a prefix underscore, then with it.
6727for ac_symprfx in "" "_"; do
d7040cdb 6728
7357c5b6
AM
6729 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6730 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6731
7357c5b6
AM
6732 # Write the raw and C identifiers.
6733 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6734 # Fake it for dumpbin and say T for any non-static function
6735 # and D for any global variable.
6736 # Also find C++ and __fastcall symbols from MSVC++,
6737 # which start with @ or ?.
6738 lt_cv_sys_global_symbol_pipe="$AWK '"\
6739" {last_section=section; section=\$ 3};"\
6740" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6741" \$ 0!~/External *\|/{next};"\
6742" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6743" {if(hide[section]) next};"\
6744" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6745" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6746" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6747" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6748" ' prfx=^$ac_symprfx"
6749 else
6750 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6751 fi
d7040cdb 6752
7357c5b6
AM
6753 # Check to see that the pipe works correctly.
6754 pipe_works=no
d7040cdb 6755
7357c5b6
AM
6756 rm -f conftest*
6757 cat > conftest.$ac_ext <<_LT_EOF
6758#ifdef __cplusplus
6759extern "C" {
6760#endif
6761char nm_test_var;
6762void nm_test_func(void);
6763void nm_test_func(void){}
6764#ifdef __cplusplus
dabbade6 6765}
7357c5b6
AM
6766#endif
6767int main(){nm_test_var='a';nm_test_func();return(0);}
6768_LT_EOF
6769
81ecdfbb 6770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6771 (eval $ac_compile) 2>&5
dabbade6 6772 ac_status=$?
81ecdfbb
RW
6773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6774 test $ac_status = 0; }; then
7357c5b6
AM
6775 # Now try to grab the symbols.
6776 nlist=conftest.nm
81ecdfbb 6777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7357c5b6 6778 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
dabbade6 6779 ac_status=$?
81ecdfbb
RW
6780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6781 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6782 # Try sorting and uniquifying the output.
6783 if sort "$nlist" | uniq > "$nlist"T; then
6784 mv -f "$nlist"T "$nlist"
6785 else
6786 rm -f "$nlist"T
6787 fi
d7040cdb 6788
7357c5b6
AM
6789 # Make sure that we snagged all the symbols we need.
6790 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6791 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6792 cat <<_LT_EOF > conftest.$ac_ext
6793#ifdef __cplusplus
6794extern "C" {
6795#endif
d7040cdb 6796
7357c5b6
AM
6797_LT_EOF
6798 # Now generate the symbol file.
6799 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d7040cdb 6800
7357c5b6 6801 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 6802
7357c5b6
AM
6803/* The mapping between symbol names and symbols. */
6804const struct {
6805 const char *name;
6806 void *address;
6807}
6808lt__PROGRAM__LTX_preloaded_symbols[] =
6809{
6810 { "@PROGRAM@", (void *) 0 },
6811_LT_EOF
6812 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6813 cat <<\_LT_EOF >> conftest.$ac_ext
6814 {0, (void *) 0}
6815};
d7040cdb 6816
7357c5b6
AM
6817/* This works around a problem in FreeBSD linker */
6818#ifdef FREEBSD_WORKAROUND
6819static const void *lt_preloaded_setup() {
6820 return lt__PROGRAM__LTX_preloaded_symbols;
6821}
dabbade6 6822#endif
d7040cdb 6823
7357c5b6 6824#ifdef __cplusplus
dabbade6 6825}
7357c5b6
AM
6826#endif
6827_LT_EOF
6828 # Now try linking the two files.
6829 mv conftest.$ac_objext conftstm.$ac_objext
6830 lt_save_LIBS="$LIBS"
6831 lt_save_CFLAGS="$CFLAGS"
6832 LIBS="conftstm.$ac_objext"
6833 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
dabbade6
L
6835 (eval $ac_link) 2>&5
6836 ac_status=$?
81ecdfbb
RW
6837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6838 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6839 pipe_works=yes
6840 fi
6841 LIBS="$lt_save_LIBS"
6842 CFLAGS="$lt_save_CFLAGS"
6843 else
6844 echo "cannot find nm_test_func in $nlist" >&5
6845 fi
6846 else
6847 echo "cannot find nm_test_var in $nlist" >&5
6848 fi
6849 else
6850 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6851 fi
6852 else
6853 echo "$progname: failed program was:" >&5
6854 cat conftest.$ac_ext >&5
6855 fi
1927a18f 6856 rm -rf conftest* conftst*
7357c5b6
AM
6857
6858 # Do not use the global_symbol_pipe unless it works.
6859 if test "$pipe_works" = yes; then
6860 break
6861 else
6862 lt_cv_sys_global_symbol_pipe=
6863 fi
6864done
d7040cdb 6865
dabbade6 6866fi
7357c5b6
AM
6867
6868if test -z "$lt_cv_sys_global_symbol_pipe"; then
6869 lt_cv_sys_global_symbol_to_cdecl=
dabbade6 6870fi
7357c5b6 6871if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6873$as_echo "failed" >&6; }
7357c5b6 6874else
81ecdfbb
RW
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6876$as_echo "ok" >&6; }
dabbade6 6877fi
d7040cdb 6878
d7040cdb 6879
d7040cdb 6880
d7040cdb 6881
d7040cdb 6882
d7040cdb 6883
d7040cdb 6884
d7040cdb 6885
d7040cdb 6886
d7040cdb 6887
d7040cdb 6888
d7040cdb 6889
7357c5b6
AM
6890
6891
6892
1927a18f
L
6893
6894
6895
6896
6897
7357c5b6
AM
6898
6899
81ecdfbb
RW
6900# Check whether --enable-libtool-lock was given.
6901if test "${enable_libtool_lock+set}" = set; then :
6902 enableval=$enable_libtool_lock;
6903fi
7357c5b6 6904
7357c5b6
AM
6905test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6906
6907# Some flags need to be propagated to the compiler or linker for good
6908# libtool support.
6909case $host in
6910ia64-*-hpux*)
6911 # Find out which ABI we are using.
6912 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6913 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6914 (eval $ac_compile) 2>&5
6915 ac_status=$?
81ecdfbb
RW
6916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6917 test $ac_status = 0; }; then
7357c5b6
AM
6918 case `/usr/bin/file conftest.$ac_objext` in
6919 *ELF-32*)
6920 HPUX_IA64_MODE="32"
6921 ;;
6922 *ELF-64*)
6923 HPUX_IA64_MODE="64"
6924 ;;
6925 esac
6926 fi
6927 rm -rf conftest*
6928 ;;
6929*-*-irix6*)
6930 # Find out which ABI we are using.
2eee5593 6931 echo '#line 6931 "configure"' > conftest.$ac_ext
81ecdfbb 6932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6933 (eval $ac_compile) 2>&5
6934 ac_status=$?
81ecdfbb
RW
6935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6936 test $ac_status = 0; }; then
7357c5b6
AM
6937 if test "$lt_cv_prog_gnu_ld" = yes; then
6938 case `/usr/bin/file conftest.$ac_objext` in
6939 *32-bit*)
6940 LD="${LD-ld} -melf32bsmip"
6941 ;;
6942 *N32*)
6943 LD="${LD-ld} -melf32bmipn32"
6944 ;;
6945 *64-bit*)
6946 LD="${LD-ld} -melf64bmip"
6947 ;;
6948 esac
6949 else
6950 case `/usr/bin/file conftest.$ac_objext` in
6951 *32-bit*)
6952 LD="${LD-ld} -32"
6953 ;;
6954 *N32*)
6955 LD="${LD-ld} -n32"
6956 ;;
6957 *64-bit*)
6958 LD="${LD-ld} -64"
6959 ;;
6960 esac
6961 fi
6962 fi
6963 rm -rf conftest*
6964 ;;
6965
6966x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6967s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6968 # Find out which ABI we are using.
6969 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6971 (eval $ac_compile) 2>&5
6972 ac_status=$?
81ecdfbb
RW
6973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6974 test $ac_status = 0; }; then
7357c5b6
AM
6975 case `/usr/bin/file conftest.o` in
6976 *32-bit*)
6977 case $host in
6978 x86_64-*kfreebsd*-gnu)
6979 LD="${LD-ld} -m elf_i386_fbsd"
6980 ;;
6981 x86_64-*linux*)
6982 LD="${LD-ld} -m elf_i386"
6983 ;;
6984 ppc64-*linux*|powerpc64-*linux*)
6985 LD="${LD-ld} -m elf32ppclinux"
6986 ;;
6987 s390x-*linux*)
6988 LD="${LD-ld} -m elf_s390"
6989 ;;
6990 sparc64-*linux*)
6991 LD="${LD-ld} -m elf32_sparc"
6992 ;;
6993 esac
6994 ;;
6995 *64-bit*)
6996 case $host in
6997 x86_64-*kfreebsd*-gnu)
6998 LD="${LD-ld} -m elf_x86_64_fbsd"
6999 ;;
7000 x86_64-*linux*)
7001 LD="${LD-ld} -m elf_x86_64"
7002 ;;
7003 ppc*-*linux*|powerpc*-*linux*)
7004 LD="${LD-ld} -m elf64ppc"
7005 ;;
7006 s390*-*linux*|s390*-*tpf*)
7007 LD="${LD-ld} -m elf64_s390"
7008 ;;
7009 sparc*-*linux*)
7010 LD="${LD-ld} -m elf64_sparc"
7011 ;;
7012 esac
7013 ;;
7014 esac
7015 fi
7016 rm -rf conftest*
7017 ;;
7018
7019*-*-sco3.2v5*)
7020 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7021 SAVE_CFLAGS="$CFLAGS"
7022 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7024$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7025if test "${lt_cv_cc_needs_belf+set}" = set; then :
7026 $as_echo_n "(cached) " >&6
dabbade6 7027else
7357c5b6
AM
7028 ac_ext=c
7029ac_cpp='$CPP $CPPFLAGS'
7030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7032ac_compiler_gnu=$ac_cv_c_compiler_gnu
7033
81ecdfbb 7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 7035/* end confdefs.h. */
d7040cdb 7036
7357c5b6
AM
7037int
7038main ()
7039{
7040
7041 ;
7042 return 0;
7043}
dabbade6 7044_ACEOF
81ecdfbb 7045if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7046 lt_cv_cc_needs_belf=yes
dabbade6 7047else
81ecdfbb 7048 lt_cv_cc_needs_belf=no
dabbade6 7049fi
81ecdfbb
RW
7050rm -f core conftest.err conftest.$ac_objext \
7051 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7052 ac_ext=c
7053ac_cpp='$CPP $CPPFLAGS'
7054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7056ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7057
dabbade6 7058fi
81ecdfbb
RW
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7060$as_echo "$lt_cv_cc_needs_belf" >&6; }
7357c5b6
AM
7061 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7062 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7063 CFLAGS="$SAVE_CFLAGS"
7064 fi
7065 ;;
7066sparc*-*solaris*)
7067 # Find out which ABI we are using.
7068 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7070 (eval $ac_compile) 2>&5
7071 ac_status=$?
81ecdfbb
RW
7072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7073 test $ac_status = 0; }; then
7357c5b6
AM
7074 case `/usr/bin/file conftest.o` in
7075 *64-bit*)
7076 case $lt_cv_prog_gnu_ld in
7077 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1927a18f
L
7078 *)
7079 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7080 LD="${LD-ld} -64"
7081 fi
7082 ;;
7357c5b6
AM
7083 esac
7084 ;;
7085 esac
7086 fi
7087 rm -rf conftest*
7088 ;;
7089esac
d7040cdb 7090
7357c5b6 7091need_locks="$enable_libtool_lock"
d7040cdb 7092
d7040cdb 7093
1927a18f
L
7094 case $host_os in
7095 rhapsody* | darwin*)
7096 if test -n "$ac_tool_prefix"; then
7097 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7098set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100$as_echo_n "checking for $ac_word... " >&6; }
7101if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7102 $as_echo_n "(cached) " >&6
1927a18f
L
7103else
7104 if test -n "$DSYMUTIL"; then
7105 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7106else
7107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108for as_dir in $PATH
7109do
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7114 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7116 break 2
7117 fi
7118done
81ecdfbb
RW
7119 done
7120IFS=$as_save_IFS
1927a18f
L
7121
7122fi
7123fi
7124DSYMUTIL=$ac_cv_prog_DSYMUTIL
7125if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7127$as_echo "$DSYMUTIL" >&6; }
1927a18f 7128else
81ecdfbb
RW
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130$as_echo "no" >&6; }
1927a18f
L
7131fi
7132
81ecdfbb 7133
1927a18f
L
7134fi
7135if test -z "$ac_cv_prog_DSYMUTIL"; then
7136 ac_ct_DSYMUTIL=$DSYMUTIL
7137 # Extract the first word of "dsymutil", so it can be a program name with args.
7138set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140$as_echo_n "checking for $ac_word... " >&6; }
7141if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7142 $as_echo_n "(cached) " >&6
1927a18f
L
7143else
7144 if test -n "$ac_ct_DSYMUTIL"; then
7145 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7146else
7147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148for as_dir in $PATH
7149do
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7154 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7156 break 2
7157 fi
7158done
81ecdfbb
RW
7159 done
7160IFS=$as_save_IFS
1927a18f 7161
1927a18f
L
7162fi
7163fi
7164ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7165if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7167$as_echo "$ac_ct_DSYMUTIL" >&6; }
1927a18f 7168else
81ecdfbb
RW
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170$as_echo "no" >&6; }
1927a18f
L
7171fi
7172
81ecdfbb
RW
7173 if test "x$ac_ct_DSYMUTIL" = x; then
7174 DSYMUTIL=":"
7175 else
7176 case $cross_compiling:$ac_tool_warned in
7177yes:)
7178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180ac_tool_warned=yes ;;
7181esac
7182 DSYMUTIL=$ac_ct_DSYMUTIL
7183 fi
1927a18f
L
7184else
7185 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7186fi
7187
7188 if test -n "$ac_tool_prefix"; then
7189 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7190set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192$as_echo_n "checking for $ac_word... " >&6; }
7193if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7194 $as_echo_n "(cached) " >&6
1927a18f
L
7195else
7196 if test -n "$NMEDIT"; then
7197 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7198else
7199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200for as_dir in $PATH
7201do
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7206 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7208 break 2
7209 fi
7210done
81ecdfbb
RW
7211 done
7212IFS=$as_save_IFS
1927a18f
L
7213
7214fi
7215fi
7216NMEDIT=$ac_cv_prog_NMEDIT
7217if test -n "$NMEDIT"; then
81ecdfbb
RW
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7219$as_echo "$NMEDIT" >&6; }
1927a18f 7220else
81ecdfbb
RW
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222$as_echo "no" >&6; }
1927a18f
L
7223fi
7224
81ecdfbb 7225
1927a18f
L
7226fi
7227if test -z "$ac_cv_prog_NMEDIT"; then
7228 ac_ct_NMEDIT=$NMEDIT
7229 # Extract the first word of "nmedit", so it can be a program name with args.
7230set dummy nmedit; ac_word=$2
81ecdfbb
RW
7231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232$as_echo_n "checking for $ac_word... " >&6; }
7233if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7234 $as_echo_n "(cached) " >&6
1927a18f
L
7235else
7236 if test -n "$ac_ct_NMEDIT"; then
7237 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7238else
7239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240for as_dir in $PATH
7241do
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7246 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7248 break 2
7249 fi
7250done
81ecdfbb
RW
7251 done
7252IFS=$as_save_IFS
1927a18f 7253
1927a18f
L
7254fi
7255fi
7256ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7257if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7259$as_echo "$ac_ct_NMEDIT" >&6; }
1927a18f 7260else
81ecdfbb
RW
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262$as_echo "no" >&6; }
1927a18f
L
7263fi
7264
81ecdfbb
RW
7265 if test "x$ac_ct_NMEDIT" = x; then
7266 NMEDIT=":"
7267 else
7268 case $cross_compiling:$ac_tool_warned in
7269yes:)
7270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7272ac_tool_warned=yes ;;
7273esac
7274 NMEDIT=$ac_ct_NMEDIT
7275 fi
1927a18f
L
7276else
7277 NMEDIT="$ac_cv_prog_NMEDIT"
7278fi
7279
7280 if test -n "$ac_tool_prefix"; then
7281 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7282set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284$as_echo_n "checking for $ac_word... " >&6; }
7285if test "${ac_cv_prog_LIPO+set}" = set; then :
7286 $as_echo_n "(cached) " >&6
1927a18f
L
7287else
7288 if test -n "$LIPO"; then
7289 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7290else
7291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292for as_dir in $PATH
7293do
7294 IFS=$as_save_IFS
7295 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7298 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7300 break 2
7301 fi
7302done
81ecdfbb
RW
7303 done
7304IFS=$as_save_IFS
1927a18f
L
7305
7306fi
7307fi
7308LIPO=$ac_cv_prog_LIPO
7309if test -n "$LIPO"; then
81ecdfbb
RW
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7311$as_echo "$LIPO" >&6; }
1927a18f 7312else
81ecdfbb
RW
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314$as_echo "no" >&6; }
1927a18f
L
7315fi
7316
81ecdfbb 7317
1927a18f
L
7318fi
7319if test -z "$ac_cv_prog_LIPO"; then
7320 ac_ct_LIPO=$LIPO
7321 # Extract the first word of "lipo", so it can be a program name with args.
7322set dummy lipo; ac_word=$2
81ecdfbb
RW
7323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324$as_echo_n "checking for $ac_word... " >&6; }
7325if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7326 $as_echo_n "(cached) " >&6
1927a18f
L
7327else
7328 if test -n "$ac_ct_LIPO"; then
7329 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7330else
7331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332for as_dir in $PATH
7333do
7334 IFS=$as_save_IFS
7335 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7338 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7340 break 2
7341 fi
7342done
81ecdfbb
RW
7343 done
7344IFS=$as_save_IFS
1927a18f 7345
1927a18f
L
7346fi
7347fi
7348ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7349if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7351$as_echo "$ac_ct_LIPO" >&6; }
1927a18f 7352else
81ecdfbb
RW
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354$as_echo "no" >&6; }
1927a18f
L
7355fi
7356
81ecdfbb
RW
7357 if test "x$ac_ct_LIPO" = x; then
7358 LIPO=":"
7359 else
7360 case $cross_compiling:$ac_tool_warned in
7361yes:)
7362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7364ac_tool_warned=yes ;;
7365esac
7366 LIPO=$ac_ct_LIPO
7367 fi
1927a18f
L
7368else
7369 LIPO="$ac_cv_prog_LIPO"
7370fi
7371
7372 if test -n "$ac_tool_prefix"; then
7373 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7374set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376$as_echo_n "checking for $ac_word... " >&6; }
7377if test "${ac_cv_prog_OTOOL+set}" = set; then :
7378 $as_echo_n "(cached) " >&6
1927a18f
L
7379else
7380 if test -n "$OTOOL"; then
7381 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7382else
7383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384for as_dir in $PATH
7385do
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7390 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7392 break 2
7393 fi
7394done
81ecdfbb
RW
7395 done
7396IFS=$as_save_IFS
1927a18f
L
7397
7398fi
7399fi
7400OTOOL=$ac_cv_prog_OTOOL
7401if test -n "$OTOOL"; then
81ecdfbb
RW
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7403$as_echo "$OTOOL" >&6; }
1927a18f 7404else
81ecdfbb
RW
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406$as_echo "no" >&6; }
1927a18f
L
7407fi
7408
81ecdfbb 7409
1927a18f
L
7410fi
7411if test -z "$ac_cv_prog_OTOOL"; then
7412 ac_ct_OTOOL=$OTOOL
7413 # Extract the first word of "otool", so it can be a program name with args.
7414set dummy otool; ac_word=$2
81ecdfbb
RW
7415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416$as_echo_n "checking for $ac_word... " >&6; }
7417if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7418 $as_echo_n "(cached) " >&6
1927a18f
L
7419else
7420 if test -n "$ac_ct_OTOOL"; then
7421 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7422else
7423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424for as_dir in $PATH
7425do
7426 IFS=$as_save_IFS
7427 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7430 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7432 break 2
7433 fi
7434done
81ecdfbb
RW
7435 done
7436IFS=$as_save_IFS
1927a18f 7437
1927a18f
L
7438fi
7439fi
7440ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7441if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7443$as_echo "$ac_ct_OTOOL" >&6; }
1927a18f 7444else
81ecdfbb
RW
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446$as_echo "no" >&6; }
1927a18f
L
7447fi
7448
81ecdfbb
RW
7449 if test "x$ac_ct_OTOOL" = x; then
7450 OTOOL=":"
7451 else
7452 case $cross_compiling:$ac_tool_warned in
7453yes:)
7454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7456ac_tool_warned=yes ;;
7457esac
7458 OTOOL=$ac_ct_OTOOL
7459 fi
1927a18f
L
7460else
7461 OTOOL="$ac_cv_prog_OTOOL"
7462fi
7463
7464 if test -n "$ac_tool_prefix"; then
7465 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7466set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468$as_echo_n "checking for $ac_word... " >&6; }
7469if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7470 $as_echo_n "(cached) " >&6
1927a18f
L
7471else
7472 if test -n "$OTOOL64"; then
7473 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7474else
7475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476for as_dir in $PATH
7477do
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7482 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7484 break 2
7485 fi
7486done
81ecdfbb
RW
7487 done
7488IFS=$as_save_IFS
1927a18f
L
7489
7490fi
7491fi
7492OTOOL64=$ac_cv_prog_OTOOL64
7493if test -n "$OTOOL64"; then
81ecdfbb
RW
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7495$as_echo "$OTOOL64" >&6; }
1927a18f 7496else
81ecdfbb
RW
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498$as_echo "no" >&6; }
1927a18f
L
7499fi
7500
81ecdfbb 7501
1927a18f
L
7502fi
7503if test -z "$ac_cv_prog_OTOOL64"; then
7504 ac_ct_OTOOL64=$OTOOL64
7505 # Extract the first word of "otool64", so it can be a program name with args.
7506set dummy otool64; ac_word=$2
81ecdfbb
RW
7507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7508$as_echo_n "checking for $ac_word... " >&6; }
7509if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7510 $as_echo_n "(cached) " >&6
1927a18f
L
7511else
7512 if test -n "$ac_ct_OTOOL64"; then
7513 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7514else
7515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516for as_dir in $PATH
7517do
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7522 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7524 break 2
7525 fi
7526done
81ecdfbb
RW
7527 done
7528IFS=$as_save_IFS
1927a18f 7529
1927a18f
L
7530fi
7531fi
7532ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7533if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7535$as_echo "$ac_ct_OTOOL64" >&6; }
1927a18f 7536else
81ecdfbb
RW
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538$as_echo "no" >&6; }
1927a18f
L
7539fi
7540
81ecdfbb
RW
7541 if test "x$ac_ct_OTOOL64" = x; then
7542 OTOOL64=":"
7543 else
7544 case $cross_compiling:$ac_tool_warned in
7545yes:)
7546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7548ac_tool_warned=yes ;;
7549esac
7550 OTOOL64=$ac_ct_OTOOL64
7551 fi
1927a18f
L
7552else
7553 OTOOL64="$ac_cv_prog_OTOOL64"
7554fi
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
81ecdfbb
RW
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7583$as_echo_n "checking for -single_module linker flag... " >&6; }
7584if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7585 $as_echo_n "(cached) " >&6
1927a18f
L
7586else
7587 lt_cv_apple_cc_single_mod=no
7588 if test -z "${LT_MULTI_MODULE}"; then
7589 # By default we will add the -single_module flag. You can override
7590 # by either setting the environment variable LT_MULTI_MODULE
7591 # non-empty at configure time, or by adding -multi_module to the
7592 # link flags.
7593 rm -rf libconftest.dylib*
7594 echo "int foo(void){return 1;}" > conftest.c
7595 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7596-dynamiclib -Wl,-single_module conftest.c" >&5
7597 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7598 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7599 _lt_result=$?
7600 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7601 lt_cv_apple_cc_single_mod=yes
7602 else
7603 cat conftest.err >&5
7604 fi
7605 rm -rf libconftest.dylib*
7606 rm -f conftest.*
7607 fi
7608fi
81ecdfbb
RW
7609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7610$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7612$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7613if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7614 $as_echo_n "(cached) " >&6
1927a18f
L
7615else
7616 lt_cv_ld_exported_symbols_list=no
7617 save_LDFLAGS=$LDFLAGS
7618 echo "_main" > conftest.sym
7619 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927a18f
L
7621/* end confdefs.h. */
7622
7623int
7624main ()
7625{
7626
7627 ;
7628 return 0;
7629}
7630_ACEOF
81ecdfbb 7631if ac_fn_c_try_link "$LINENO"; then :
1927a18f
L
7632 lt_cv_ld_exported_symbols_list=yes
7633else
81ecdfbb 7634 lt_cv_ld_exported_symbols_list=no
1927a18f 7635fi
81ecdfbb
RW
7636rm -f core conftest.err conftest.$ac_objext \
7637 conftest$ac_exeext conftest.$ac_ext
1927a18f
L
7638 LDFLAGS="$save_LDFLAGS"
7639
7640fi
81ecdfbb
RW
7641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7642$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1927a18f
L
7643 case $host_os in
7644 rhapsody* | darwin1.[012])
7645 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7646 darwin1.*)
7647 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7648 darwin*) # darwin 5.x on
7649 # if running on 10.5 or later, the deployment target defaults
7650 # to the OS version, if on x86, and 10.4, the deployment
7651 # target defaults to 10.4. Don't you love it?
7652 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7653 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7654 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7655 10.[012]*)
7656 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7657 10.*)
7658 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7659 esac
7660 ;;
7661 esac
7662 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7663 _lt_dar_single_mod='$single_module'
7664 fi
7665 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7666 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7667 else
7668 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7669 fi
7670 if test "$DSYMUTIL" != ":"; then
7671 _lt_dsymutil='~$DSYMUTIL $lib || :'
7672 else
7673 _lt_dsymutil=
7674 fi
7675 ;;
7676 esac
7677
dabbade6 7678for ac_header in dlfcn.h
81ecdfbb
RW
7679do :
7680 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7681"
7682if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
dabbade6 7683 cat >>confdefs.h <<_ACEOF
81ecdfbb 7684#define HAVE_DLFCN_H 1
dabbade6 7685_ACEOF
d7040cdb 7686
dabbade6 7687fi
d7040cdb 7688
dabbade6 7689done
d7040cdb 7690
d7040cdb 7691
d7040cdb 7692
1927a18f
L
7693# Set options
7694
7695
7696
7697 enable_dlopen=no
7698
7699
7700 enable_win32_dll=no
7701
7702
7703
81ecdfbb
RW
7704 # Check whether --enable-static was given.
7705if test "${enable_static+set}" = set; then :
7706 enableval=$enable_static; p=${PACKAGE-default}
1927a18f
L
7707 case $enableval in
7708 yes) enable_static=yes ;;
7709 no) enable_static=no ;;
7710 *)
7711 enable_static=no
7712 # Look at the argument we got. We use all the common list separators.
7713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7714 for pkg in $enableval; do
7715 IFS="$lt_save_ifs"
7716 if test "X$pkg" = "X$p"; then
7717 enable_static=yes
7718 fi
7719 done
7720 IFS="$lt_save_ifs"
7721 ;;
7722 esac
7723else
7724 enable_static=yes
81ecdfbb 7725fi
1927a18f
L
7726
7727
7728
7729
7730
7731
7732
7733
7734
81ecdfbb
RW
7735
7736# Check whether --with-pic was given.
7737if test "${with_pic+set}" = set; then :
7738 withval=$with_pic; pic_mode="$withval"
1927a18f
L
7739else
7740 pic_mode=default
81ecdfbb
RW
7741fi
7742
1927a18f
L
7743
7744test -z "$pic_mode" && pic_mode=default
7745
7746
7747
7748
7749
7750
7751
81ecdfbb
RW
7752 # Check whether --enable-fast-install was given.
7753if test "${enable_fast_install+set}" = set; then :
7754 enableval=$enable_fast_install; p=${PACKAGE-default}
1927a18f
L
7755 case $enableval in
7756 yes) enable_fast_install=yes ;;
7757 no) enable_fast_install=no ;;
7758 *)
7759 enable_fast_install=no
7760 # Look at the argument we got. We use all the common list separators.
7761 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7762 for pkg in $enableval; do
7763 IFS="$lt_save_ifs"
7764 if test "X$pkg" = "X$p"; then
7765 enable_fast_install=yes
7766 fi
7767 done
7768 IFS="$lt_save_ifs"
7769 ;;
7770 esac
7771else
7772 enable_fast_install=yes
81ecdfbb
RW
7773fi
7774
1927a18f
L
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
dabbade6
L
7785# This can be used to rebuild libtool when needed
7786LIBTOOL_DEPS="$ltmain"
d7040cdb 7787
dabbade6
L
7788# Always use our own libtool.
7789LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 7790
d7040cdb 7791
d7040cdb 7792
d7040cdb
SE
7793
7794
7795
7796
7797
7798
d7040cdb 7799
d7040cdb 7800
d7040cdb 7801
d7040cdb
SE
7802
7803
7804
7805
7806
7807
d7040cdb 7808
d7040cdb 7809
d7040cdb
SE
7810
7811
7812
7813
7814
dabbade6 7815test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
7816
7817
d7040cdb 7818
d7040cdb 7819
d7040cdb
SE
7820
7821
7822
7823
7824
7825
dabbade6
L
7826
7827
7828
7829
7830if test -n "${ZSH_VERSION+set}" ; then
7831 setopt NO_GLOB_SUBST
7832fi
7833
81ecdfbb
RW
7834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7835$as_echo_n "checking for objdir... " >&6; }
7836if test "${lt_cv_objdir+set}" = set; then :
7837 $as_echo_n "(cached) " >&6
d7040cdb 7838else
dabbade6
L
7839 rm -f .libs 2>/dev/null
7840mkdir .libs 2>/dev/null
7841if test -d .libs; then
7842 lt_cv_objdir=.libs
7843else
7844 # MS-DOS does not allow filenames that begin with a dot.
7845 lt_cv_objdir=_libs
d7040cdb 7846fi
dabbade6
L
7847rmdir .libs 2>/dev/null
7848fi
81ecdfbb
RW
7849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7850$as_echo "$lt_cv_objdir" >&6; }
dabbade6 7851objdir=$lt_cv_objdir
d7040cdb
SE
7852
7853
7854
7855
d7040cdb 7856
dabbade6
L
7857cat >>confdefs.h <<_ACEOF
7858#define LT_OBJDIR "$lt_cv_objdir/"
7859_ACEOF
d7040cdb
SE
7860
7861
7862
7863
7864
d7040cdb 7865
d7040cdb 7866
d7040cdb 7867
d7040cdb 7868
d7040cdb 7869
d7040cdb 7870
d7040cdb 7871
d7040cdb 7872
d7040cdb 7873
d7040cdb 7874
d7040cdb 7875
d7040cdb 7876
dabbade6
L
7877case $host_os in
7878aix3*)
7879 # AIX sometimes has problems with the GCC collect2 program. For some
7880 # reason, if we set the COLLECT_NAMES environment variable, the problems
7881 # vanish in a puff of smoke.
7882 if test "X${COLLECT_NAMES+set}" != Xset; then
7883 COLLECT_NAMES=
7884 export COLLECT_NAMES
7885 fi
7886 ;;
7887esac
d7040cdb 7888
dabbade6
L
7889# Sed substitution that helps us do robust quoting. It backslashifies
7890# metacharacters that are still active within double-quoted strings.
7891sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 7892
dabbade6
L
7893# Same as above, but do not quote variable references.
7894double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 7895
dabbade6
L
7896# Sed substitution to delay expansion of an escaped shell variable in a
7897# double_quote_subst'ed string.
7898delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 7899
dabbade6
L
7900# Sed substitution to delay expansion of an escaped single quote.
7901delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 7902
dabbade6
L
7903# Sed substitution to avoid accidental globbing in evaled expressions
7904no_glob_subst='s/\*/\\\*/g'
d7040cdb 7905
dabbade6
L
7906# Global variables:
7907ofile=libtool
7908can_build_shared=yes
d7040cdb 7909
dabbade6
L
7910# All known linkers require a `.a' archive for static linking (except MSVC,
7911# which needs '.lib').
7912libext=a
d7040cdb 7913
dabbade6 7914with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 7915
dabbade6
L
7916old_CC="$CC"
7917old_CFLAGS="$CFLAGS"
d7040cdb 7918
dabbade6
L
7919# Set sane defaults for various variables
7920test -z "$CC" && CC=cc
7921test -z "$LTCC" && LTCC=$CC
7922test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7923test -z "$LD" && LD=ld
7924test -z "$ac_objext" && ac_objext=o
7925
7926for cc_temp in $compiler""; do
7927 case $cc_temp in
7928 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7929 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7930 \-*) ;;
7931 *) break;;
7932 esac
7933done
7934cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7935
7936
7937# Only perform the check for file, if the check method requires it
7938test -z "$MAGIC_CMD" && MAGIC_CMD=file
7939case $deplibs_check_method in
7940file_magic*)
7941 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7943$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7944if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7945 $as_echo_n "(cached) " >&6
dabbade6
L
7946else
7947 case $MAGIC_CMD in
7948[\\/*] | ?:[\\/]*)
7949 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7950 ;;
7951*)
7952 lt_save_MAGIC_CMD="$MAGIC_CMD"
7953 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7954 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7955 for ac_dir in $ac_dummy; do
7956 IFS="$lt_save_ifs"
7957 test -z "$ac_dir" && ac_dir=.
7958 if test -f $ac_dir/${ac_tool_prefix}file; then
7959 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7960 if test -n "$file_magic_test_file"; then
7961 case $deplibs_check_method in
7962 "file_magic "*)
7963 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7964 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7965 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7966 $EGREP "$file_magic_regex" > /dev/null; then
7967 :
d7040cdb 7968 else
dabbade6 7969 cat <<_LT_EOF 1>&2
d7040cdb 7970
dabbade6
L
7971*** Warning: the command libtool uses to detect shared libraries,
7972*** $file_magic_cmd, produces output that libtool cannot recognize.
7973*** The result is that libtool may fail to recognize shared libraries
7974*** as such. This will affect the creation of libtool libraries that
7975*** depend on shared libraries, but programs linked with such libtool
7976*** libraries will work regardless of this problem. Nevertheless, you
7977*** may want to report the problem to your system manager and/or to
7978*** bug-libtool@gnu.org
d7040cdb 7979
dabbade6
L
7980_LT_EOF
7981 fi ;;
7982 esac
d7040cdb 7983 fi
dabbade6 7984 break
d7040cdb 7985 fi
dabbade6
L
7986 done
7987 IFS="$lt_save_ifs"
7988 MAGIC_CMD="$lt_save_MAGIC_CMD"
7989 ;;
7990esac
7991fi
d7040cdb 7992
dabbade6
L
7993MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7994if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7996$as_echo "$MAGIC_CMD" >&6; }
dabbade6 7997else
81ecdfbb
RW
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999$as_echo "no" >&6; }
dabbade6 8000fi
d7040cdb 8001
d7040cdb 8002
d7040cdb 8003
d7040cdb 8004
d7040cdb 8005
dabbade6
L
8006if test -z "$lt_cv_path_MAGIC_CMD"; then
8007 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8009$as_echo_n "checking for file... " >&6; }
8010if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8011 $as_echo_n "(cached) " >&6
dabbade6
L
8012else
8013 case $MAGIC_CMD in
8014[\\/*] | ?:[\\/]*)
8015 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8016 ;;
8017*)
8018 lt_save_MAGIC_CMD="$MAGIC_CMD"
8019 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8020 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8021 for ac_dir in $ac_dummy; do
8022 IFS="$lt_save_ifs"
8023 test -z "$ac_dir" && ac_dir=.
8024 if test -f $ac_dir/file; then
8025 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8026 if test -n "$file_magic_test_file"; then
8027 case $deplibs_check_method in
8028 "file_magic "*)
8029 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8030 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8031 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8032 $EGREP "$file_magic_regex" > /dev/null; then
8033 :
d7040cdb 8034 else
dabbade6 8035 cat <<_LT_EOF 1>&2
d7040cdb 8036
dabbade6
L
8037*** Warning: the command libtool uses to detect shared libraries,
8038*** $file_magic_cmd, produces output that libtool cannot recognize.
8039*** The result is that libtool may fail to recognize shared libraries
8040*** as such. This will affect the creation of libtool libraries that
8041*** depend on shared libraries, but programs linked with such libtool
8042*** libraries will work regardless of this problem. Nevertheless, you
8043*** may want to report the problem to your system manager and/or to
8044*** bug-libtool@gnu.org
d7040cdb 8045
dabbade6
L
8046_LT_EOF
8047 fi ;;
8048 esac
8049 fi
8050 break
8051 fi
8052 done
8053 IFS="$lt_save_ifs"
8054 MAGIC_CMD="$lt_save_MAGIC_CMD"
8055 ;;
8056esac
d7040cdb 8057fi
dabbade6
L
8058
8059MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8060if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8062$as_echo "$MAGIC_CMD" >&6; }
d7040cdb 8063else
81ecdfbb
RW
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065$as_echo "no" >&6; }
dabbade6
L
8066fi
8067
d7040cdb 8068
dabbade6
L
8069 else
8070 MAGIC_CMD=:
8071 fi
d7040cdb 8072fi
d7040cdb 8073
dabbade6
L
8074 fi
8075 ;;
8076esac
d7040cdb 8077
dabbade6 8078# Use C for the default configuration in the libtool script
d7040cdb 8079
dabbade6
L
8080lt_save_CC="$CC"
8081ac_ext=c
8082ac_cpp='$CPP $CPPFLAGS'
8083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8085ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 8086
d7040cdb 8087
dabbade6
L
8088# Source file extension for C test sources.
8089ac_ext=c
d7040cdb 8090
dabbade6
L
8091# Object file extension for compiled C test sources.
8092objext=o
8093objext=$objext
8094
8095# Code to be used in simple compile tests
8096lt_simple_compile_test_code="int some_variable = 0;"
8097
8098# Code to be used in simple link tests
8099lt_simple_link_test_code='int main(){return(0);}'
8100
8101
8102
8103
8104
8105
8106
8107# If no C compiler was specified, use CC.
8108LTCC=${LTCC-"$CC"}
8109
8110# If no C compiler flags were specified, use CFLAGS.
8111LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8112
8113# Allow CC to be a program name with arguments.
8114compiler=$CC
8115
8116# Save the default compiler, since it gets overwritten when the other
8117# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8118compiler_DEFAULT=$CC
8119
8120# save warnings/boilerplate of simple test code
8121ac_outfile=conftest.$ac_objext
8122echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8123eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8124_lt_compiler_boilerplate=`cat conftest.err`
8125$RM conftest*
8126
8127ac_outfile=conftest.$ac_objext
8128echo "$lt_simple_link_test_code" >conftest.$ac_ext
8129eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8130_lt_linker_boilerplate=`cat conftest.err`
1927a18f 8131$RM -r conftest*
dabbade6
L
8132
8133
8134## CAVEAT EMPTOR:
8135## There is no encapsulation within the following macros, do not change
8136## the running order or otherwise move them around unless you know exactly
8137## what you are doing...
8138if test -n "$compiler"; then
8139
8140lt_prog_compiler_no_builtin_flag=
8141
8142if test "$GCC" = yes; then
8143 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8144
81ecdfbb
RW
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8146$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8147if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8148 $as_echo_n "(cached) " >&6
dabbade6
L
8149else
8150 lt_cv_prog_compiler_rtti_exceptions=no
8151 ac_outfile=conftest.$ac_objext
8152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8153 lt_compiler_flag="-fno-rtti -fno-exceptions"
8154 # Insert the option either (1) after the last *FLAGS variable, or
8155 # (2) before a word containing "conftest.", or (3) at the end.
8156 # Note that $ac_compile itself does not contain backslashes and begins
8157 # with a dollar sign (not a hyphen), so the echo should work correctly.
8158 # The option is referenced via a variable to avoid confusing sed.
8159 lt_compile=`echo "$ac_compile" | $SED \
8160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8162 -e 's:$: $lt_compiler_flag:'`
2eee5593 8163 (eval echo "\"\$as_me:8163: $lt_compile\"" >&5)
dabbade6
L
8164 (eval "$lt_compile" 2>conftest.err)
8165 ac_status=$?
8166 cat conftest.err >&5
2eee5593 8167 echo "$as_me:8167: \$? = $ac_status" >&5
dabbade6
L
8168 if (exit $ac_status) && test -s "$ac_outfile"; then
8169 # The compiler can only warn and ignore the option if not recognized
8170 # So say no if there are warnings other than the usual output.
8171 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8173 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8174 lt_cv_prog_compiler_rtti_exceptions=yes
8175 fi
8176 fi
8177 $RM conftest*
8178
8179fi
81ecdfbb
RW
8180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8181$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
dabbade6
L
8182
8183if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8184 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8185else
8186 :
8187fi
8188
8189fi
8190
8191
8192
8193
8194
8195
8196 lt_prog_compiler_wl=
8197lt_prog_compiler_pic=
8198lt_prog_compiler_static=
8199
81ecdfbb
RW
8200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8201$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
dabbade6
L
8202
8203 if test "$GCC" = yes; then
8204 lt_prog_compiler_wl='-Wl,'
8205 lt_prog_compiler_static='-static'
8206
8207 case $host_os in
8208 aix*)
8209 # All AIX code is PIC.
8210 if test "$host_cpu" = ia64; then
8211 # AIX 5 now supports IA64 processor
8212 lt_prog_compiler_static='-Bstatic'
8213 fi
8214 ;;
d7040cdb
SE
8215
8216 amigaos*)
1927a18f
L
8217 case $host_cpu in
8218 powerpc)
8219 # see comment about AmigaOS4 .so support
8220 lt_prog_compiler_pic='-fPIC'
8221 ;;
8222 m68k)
8223 # FIXME: we need at least 68020 code to build shared libraries, but
8224 # adding the `-m68020' flag to GCC prevents building anything better,
8225 # like `-m68040'.
8226 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8227 ;;
8228 esac
d7040cdb
SE
8229 ;;
8230
dabbade6
L
8231 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8232 # PIC is the default for these OSes.
d7040cdb
SE
8233 ;;
8234
1927a18f 8235 mingw* | cygwin* | pw32* | os2* | cegcc*)
dabbade6
L
8236 # This hack is so that the source file can tell whether it is being
8237 # built for inclusion in a dll (and should export symbols for example).
8238 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8239 # (--disable-auto-import) libraries
8240 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8241 ;;
8242
8243 darwin* | rhapsody*)
dabbade6
L
8244 # PIC is the default on this platform
8245 # Common symbols not allowed in MH_DYLIB files
8246 lt_prog_compiler_pic='-fno-common'
8247 ;;
8248
8249 hpux*)
1927a18f
L
8250 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8251 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8252 # sets the default TLS model and affects inlining.
dabbade6 8253 case $host_cpu in
1927a18f 8254 hppa*64*)
dabbade6 8255 # +Z the default
d7040cdb 8256 ;;
dabbade6
L
8257 *)
8258 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
8259 ;;
8260 esac
dabbade6 8261 ;;
d7040cdb 8262
dabbade6
L
8263 interix[3-9]*)
8264 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8265 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
8266 ;;
8267
dabbade6
L
8268 msdosdjgpp*)
8269 # Just because we use GCC doesn't mean we suddenly get shared libraries
8270 # on systems that don't support them.
8271 lt_prog_compiler_can_build_shared=no
8272 enable_shared=no
d7040cdb
SE
8273 ;;
8274
dabbade6
L
8275 *nto* | *qnx*)
8276 # QNX uses GNU C++, but need to define -shared option too, otherwise
8277 # it will coredump.
8278 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8279 ;;
8280
dabbade6
L
8281 sysv4*MP*)
8282 if test -d /usr/nec; then
8283 lt_prog_compiler_pic=-Kconform_pic
8284 fi
d7040cdb
SE
8285 ;;
8286
dabbade6
L
8287 *)
8288 lt_prog_compiler_pic='-fPIC'
d7040cdb 8289 ;;
dabbade6
L
8290 esac
8291 else
8292 # PORTME Check for flag to pass linker flags through the system compiler.
8293 case $host_os in
8294 aix*)
8295 lt_prog_compiler_wl='-Wl,'
8296 if test "$host_cpu" = ia64; then
8297 # AIX 5 now supports IA64 processor
8298 lt_prog_compiler_static='-Bstatic'
d7040cdb 8299 else
dabbade6 8300 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 8301 fi
dabbade6 8302 ;;
d7040cdb 8303
1927a18f 8304 mingw* | cygwin* | pw32* | os2* | cegcc*)
dabbade6
L
8305 # This hack is so that the source file can tell whether it is being
8306 # built for inclusion in a dll (and should export symbols for example).
8307 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8308 ;;
8309
dabbade6
L
8310 hpux9* | hpux10* | hpux11*)
8311 lt_prog_compiler_wl='-Wl,'
8312 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8313 # not for PA HP-UX.
8314 case $host_cpu in
8315 hppa*64*|ia64*)
8316 # +Z the default
8317 ;;
8318 *)
8319 lt_prog_compiler_pic='+Z'
8320 ;;
8321 esac
8322 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8323 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
8324 ;;
8325
dabbade6
L
8326 irix5* | irix6* | nonstopux*)
8327 lt_prog_compiler_wl='-Wl,'
8328 # PIC (with -KPIC) is the default.
8329 lt_prog_compiler_static='-non_shared'
8330 ;;
d7040cdb 8331
58e24671 8332 linux* | k*bsd*-gnu | kopensolaris*-gnu)
dabbade6 8333 case $cc_basename in
1927a18f
L
8334 # old Intel for x86_64 which still supported -KPIC.
8335 ecc*)
dabbade6
L
8336 lt_prog_compiler_wl='-Wl,'
8337 lt_prog_compiler_pic='-KPIC'
8338 lt_prog_compiler_static='-static'
8339 ;;
1927a18f
L
8340 # icc used to be incompatible with GCC.
8341 # ICC 10 doesn't accept -KPIC any more.
8342 icc* | ifort*)
8343 lt_prog_compiler_wl='-Wl,'
8344 lt_prog_compiler_pic='-fPIC'
8345 lt_prog_compiler_static='-static'
8346 ;;
8347 # Lahey Fortran 8.1.
8348 lf95*)
8349 lt_prog_compiler_wl='-Wl,'
8350 lt_prog_compiler_pic='--shared'
8351 lt_prog_compiler_static='--static'
8352 ;;
dabbade6
L
8353 pgcc* | pgf77* | pgf90* | pgf95*)
8354 # Portland Group compilers (*not* the Pentium gcc compiler,
8355 # which looks to be a dead project)
8356 lt_prog_compiler_wl='-Wl,'
8357 lt_prog_compiler_pic='-fpic'
8358 lt_prog_compiler_static='-Bstatic'
8359 ;;
8360 ccc*)
8361 lt_prog_compiler_wl='-Wl,'
8362 # All Alpha code is PIC.
8363 lt_prog_compiler_static='-non_shared'
8364 ;;
1927a18f
L
8365 xl*)
8366 # IBM XL C 8.0/Fortran 10.1 on PPC
8367 lt_prog_compiler_wl='-Wl,'
8368 lt_prog_compiler_pic='-qpic'
8369 lt_prog_compiler_static='-qstaticlink'
8370 ;;
dabbade6
L
8371 *)
8372 case `$CC -V 2>&1 | sed 5q` in
8373 *Sun\ C*)
8374 # Sun C 5.9
8375 lt_prog_compiler_pic='-KPIC'
8376 lt_prog_compiler_static='-Bstatic'
8377 lt_prog_compiler_wl='-Wl,'
d7040cdb 8378 ;;
dabbade6
L
8379 *Sun\ F*)
8380 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8381 lt_prog_compiler_pic='-KPIC'
8382 lt_prog_compiler_static='-Bstatic'
8383 lt_prog_compiler_wl=''
d7040cdb
SE
8384 ;;
8385 esac
dabbade6
L
8386 ;;
8387 esac
d7040cdb
SE
8388 ;;
8389
dabbade6
L
8390 newsos6)
8391 lt_prog_compiler_pic='-KPIC'
8392 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8393 ;;
8394
dabbade6
L
8395 *nto* | *qnx*)
8396 # QNX uses GNU C++, but need to define -shared option too, otherwise
8397 # it will coredump.
8398 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8399 ;;
8400
dabbade6
L
8401 osf3* | osf4* | osf5*)
8402 lt_prog_compiler_wl='-Wl,'
8403 # All OSF/1 code is PIC.
8404 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8405 ;;
8406
dabbade6
L
8407 rdos*)
8408 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8409 ;;
8410
8411 solaris*)
dabbade6
L
8412 lt_prog_compiler_pic='-KPIC'
8413 lt_prog_compiler_static='-Bstatic'
8414 case $cc_basename in
8415 f77* | f90* | f95*)
8416 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 8417 *)
dabbade6 8418 lt_prog_compiler_wl='-Wl,';;
d7040cdb 8419 esac
d7040cdb
SE
8420 ;;
8421
8422 sunos4*)
dabbade6
L
8423 lt_prog_compiler_wl='-Qoption ld '
8424 lt_prog_compiler_pic='-PIC'
8425 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8426 ;;
8427
dabbade6
L
8428 sysv4 | sysv4.2uw2* | sysv4.3*)
8429 lt_prog_compiler_wl='-Wl,'
8430 lt_prog_compiler_pic='-KPIC'
8431 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8432 ;;
8433
8434 sysv4*MP*)
dabbade6
L
8435 if test -d /usr/nec ;then
8436 lt_prog_compiler_pic='-Kconform_pic'
8437 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8438 fi
8439 ;;
8440
dabbade6
L
8441 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8442 lt_prog_compiler_wl='-Wl,'
8443 lt_prog_compiler_pic='-KPIC'
8444 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8445 ;;
8446
dabbade6
L
8447 unicos*)
8448 lt_prog_compiler_wl='-Wl,'
8449 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8450 ;;
8451
8452 uts4*)
dabbade6
L
8453 lt_prog_compiler_pic='-pic'
8454 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8455 ;;
8456
8457 *)
dabbade6 8458 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8459 ;;
8460 esac
d7040cdb
SE
8461 fi
8462
dabbade6
L
8463case $host_os in
8464 # For platforms which do not support PIC, -DPIC is meaningless:
8465 *djgpp*)
8466 lt_prog_compiler_pic=
8467 ;;
8468 *)
8469 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8470 ;;
8471esac
81ecdfbb
RW
8472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8473$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8474
8475
8476
8477
8478
8479
8480#
dabbade6 8481# Check to make sure the PIC flag actually works.
d7040cdb 8482#
dabbade6 8483if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8485$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8486if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8487 $as_echo_n "(cached) " >&6
dabbade6 8488else
1927a18f 8489 lt_cv_prog_compiler_pic_works=no
dabbade6
L
8490 ac_outfile=conftest.$ac_objext
8491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8492 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8493 # Insert the option either (1) after the last *FLAGS variable, or
8494 # (2) before a word containing "conftest.", or (3) at the end.
8495 # Note that $ac_compile itself does not contain backslashes and begins
8496 # with a dollar sign (not a hyphen), so the echo should work correctly.
8497 # The option is referenced via a variable to avoid confusing sed.
8498 lt_compile=`echo "$ac_compile" | $SED \
8499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8501 -e 's:$: $lt_compiler_flag:'`
2eee5593 8502 (eval echo "\"\$as_me:8502: $lt_compile\"" >&5)
dabbade6
L
8503 (eval "$lt_compile" 2>conftest.err)
8504 ac_status=$?
8505 cat conftest.err >&5
2eee5593 8506 echo "$as_me:8506: \$? = $ac_status" >&5
dabbade6
L
8507 if (exit $ac_status) && test -s "$ac_outfile"; then
8508 # The compiler can only warn and ignore the option if not recognized
8509 # So say no if there are warnings other than the usual output.
8510 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8512 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1927a18f 8513 lt_cv_prog_compiler_pic_works=yes
dabbade6
L
8514 fi
8515 fi
8516 $RM conftest*
d7040cdb 8517
dabbade6 8518fi
81ecdfbb
RW
8519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8520$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8521
1927a18f 8522if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
dabbade6
L
8523 case $lt_prog_compiler_pic in
8524 "" | " "*) ;;
8525 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8526 esac
8527else
8528 lt_prog_compiler_pic=
8529 lt_prog_compiler_can_build_shared=no
8530fi
d7040cdb 8531
dabbade6 8532fi
d7040cdb
SE
8533
8534
8535
8536
8537
8538
dabbade6
L
8539#
8540# Check to make sure the static flag actually works.
8541#
8542wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8544$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8545if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8546 $as_echo_n "(cached) " >&6
dabbade6 8547else
1927a18f 8548 lt_cv_prog_compiler_static_works=no
dabbade6
L
8549 save_LDFLAGS="$LDFLAGS"
8550 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8551 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8552 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8553 # The linker can only warn and ignore the option if not recognized
8554 # So say no if there are warnings
8555 if test -s conftest.err; then
8556 # Append any errors to the config.log.
8557 cat conftest.err 1>&5
8558 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8560 if diff conftest.exp conftest.er2 >/dev/null; then
1927a18f 8561 lt_cv_prog_compiler_static_works=yes
dabbade6
L
8562 fi
8563 else
1927a18f 8564 lt_cv_prog_compiler_static_works=yes
dabbade6
L
8565 fi
8566 fi
1927a18f 8567 $RM -r conftest*
dabbade6 8568 LDFLAGS="$save_LDFLAGS"
d7040cdb 8569
dabbade6 8570fi
81ecdfbb
RW
8571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8572$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8573
1927a18f 8574if test x"$lt_cv_prog_compiler_static_works" = xyes; then
dabbade6
L
8575 :
8576else
8577 lt_prog_compiler_static=
8578fi
d7040cdb
SE
8579
8580
8581
8582
8583
8584
8585
81ecdfbb
RW
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8587$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8588if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8589 $as_echo_n "(cached) " >&6
dabbade6
L
8590else
8591 lt_cv_prog_compiler_c_o=no
8592 $RM -r conftest 2>/dev/null
8593 mkdir conftest
8594 cd conftest
8595 mkdir out
8596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8597
dabbade6
L
8598 lt_compiler_flag="-o out/conftest2.$ac_objext"
8599 # Insert the option either (1) after the last *FLAGS variable, or
8600 # (2) before a word containing "conftest.", or (3) at the end.
8601 # Note that $ac_compile itself does not contain backslashes and begins
8602 # with a dollar sign (not a hyphen), so the echo should work correctly.
8603 lt_compile=`echo "$ac_compile" | $SED \
8604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8606 -e 's:$: $lt_compiler_flag:'`
2eee5593 8607 (eval echo "\"\$as_me:8607: $lt_compile\"" >&5)
dabbade6
L
8608 (eval "$lt_compile" 2>out/conftest.err)
8609 ac_status=$?
8610 cat out/conftest.err >&5
2eee5593 8611 echo "$as_me:8611: \$? = $ac_status" >&5
dabbade6
L
8612 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8613 then
8614 # The compiler can only warn and ignore the option if not recognized
8615 # So say no if there are warnings
8616 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8617 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8618 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8619 lt_cv_prog_compiler_c_o=yes
8620 fi
8621 fi
8622 chmod u+w . 2>&5
8623 $RM conftest*
8624 # SGI C++ compiler will create directory out/ii_files/ for
8625 # template instantiation
8626 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8627 $RM out/* && rmdir out
8628 cd ..
8629 $RM -r conftest
8630 $RM conftest*
d7040cdb 8631
dabbade6 8632fi
81ecdfbb
RW
8633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8634$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8635
8636
8637
8638
8639
8640
81ecdfbb
RW
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8642$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8643if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8644 $as_echo_n "(cached) " >&6
dabbade6
L
8645else
8646 lt_cv_prog_compiler_c_o=no
8647 $RM -r conftest 2>/dev/null
8648 mkdir conftest
8649 cd conftest
8650 mkdir out
8651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8652
dabbade6
L
8653 lt_compiler_flag="-o out/conftest2.$ac_objext"
8654 # Insert the option either (1) after the last *FLAGS variable, or
8655 # (2) before a word containing "conftest.", or (3) at the end.
8656 # Note that $ac_compile itself does not contain backslashes and begins
8657 # with a dollar sign (not a hyphen), so the echo should work correctly.
8658 lt_compile=`echo "$ac_compile" | $SED \
8659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8661 -e 's:$: $lt_compiler_flag:'`
2eee5593 8662 (eval echo "\"\$as_me:8662: $lt_compile\"" >&5)
dabbade6
L
8663 (eval "$lt_compile" 2>out/conftest.err)
8664 ac_status=$?
8665 cat out/conftest.err >&5
2eee5593 8666 echo "$as_me:8666: \$? = $ac_status" >&5
dabbade6
L
8667 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8668 then
8669 # The compiler can only warn and ignore the option if not recognized
8670 # So say no if there are warnings
8671 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8672 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8673 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8674 lt_cv_prog_compiler_c_o=yes
8675 fi
8676 fi
8677 chmod u+w . 2>&5
8678 $RM conftest*
8679 # SGI C++ compiler will create directory out/ii_files/ for
8680 # template instantiation
8681 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8682 $RM out/* && rmdir out
8683 cd ..
8684 $RM -r conftest
8685 $RM conftest*
d7040cdb 8686
dabbade6 8687fi
81ecdfbb
RW
8688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8689$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8690
8691
8692
8693
dabbade6
L
8694hard_links="nottested"
8695if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8696 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8698$as_echo_n "checking if we can lock with hard links... " >&6; }
dabbade6
L
8699 hard_links=yes
8700 $RM conftest*
8701 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8702 touch conftest.a
8703 ln conftest.a conftest.b 2>&5 || hard_links=no
8704 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8706$as_echo "$hard_links" >&6; }
dabbade6 8707 if test "$hard_links" = no; then
81ecdfbb
RW
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8709$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
dabbade6
L
8710 need_locks=warn
8711 fi
8712else
8713 need_locks=no
8714fi
d7040cdb
SE
8715
8716
8717
8718
8719
8720
81ecdfbb
RW
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8722$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 8723
dabbade6
L
8724 runpath_var=
8725 allow_undefined_flag=
8726 always_export_symbols=no
8727 archive_cmds=
8728 archive_expsym_cmds=
8729 compiler_needs_object=no
8730 enable_shared_with_static_runtimes=no
8731 export_dynamic_flag_spec=
8732 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8733 hardcode_automatic=no
8734 hardcode_direct=no
8735 hardcode_direct_absolute=no
8736 hardcode_libdir_flag_spec=
8737 hardcode_libdir_flag_spec_ld=
8738 hardcode_libdir_separator=
8739 hardcode_minus_L=no
8740 hardcode_shlibpath_var=unsupported
8741 inherit_rpath=no
8742 link_all_deplibs=unknown
8743 module_cmds=
8744 module_expsym_cmds=
8745 old_archive_from_new_cmds=
8746 old_archive_from_expsyms_cmds=
8747 thread_safe_flag_spec=
8748 whole_archive_flag_spec=
8749 # include_expsyms should be a list of space-separated symbols to be *always*
8750 # included in the symbol list
8751 include_expsyms=
8752 # exclude_expsyms can be an extended regexp of symbols to exclude
8753 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8754 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8755 # as well as any symbol that contains `d'.
1927a18f 8756 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
dabbade6
L
8757 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8758 # platforms (ab)use it in PIC code, but their linkers get confused if
8759 # the symbol is explicitly referenced. Since portable code cannot
8760 # rely on this symbol name, it's probably fine to never include it in
8761 # preloaded symbol tables.
1927a18f 8762 # Exclude shared library initialization/finalization symbols.
dabbade6 8763 extract_expsyms_cmds=
d7040cdb 8764
dabbade6 8765 case $host_os in
1927a18f 8766 cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
8767 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8768 # When not using gcc, we currently assume that we are using
8769 # Microsoft Visual C++.
8770 if test "$GCC" != yes; then
8771 with_gnu_ld=no
8772 fi
8773 ;;
8774 interix*)
8775 # we just hope/assume this is gcc and not c89 (= MSVC++)
8776 with_gnu_ld=yes
8777 ;;
8778 openbsd*)
8779 with_gnu_ld=no
8780 ;;
8781 esac
d7040cdb 8782
dabbade6
L
8783 ld_shlibs=yes
8784 if test "$with_gnu_ld" = yes; then
8785 # If archive_cmds runs LD, not CC, wlarc should be empty
8786 wlarc='${wl}'
d7040cdb 8787
dabbade6
L
8788 # Set some defaults for GNU ld with shared library support. These
8789 # are reset later if shared libraries are not supported. Putting them
8790 # here allows them to be overridden if necessary.
8791 runpath_var=LD_RUN_PATH
8792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8793 export_dynamic_flag_spec='${wl}--export-dynamic'
8794 # ancient GNU ld didn't support --whole-archive et. al.
8795 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8796 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8797 else
8798 whole_archive_flag_spec=
8799 fi
8800 supports_anon_versioning=no
8801 case `$LD -v 2>&1` in
8802 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8803 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8804 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8805 *\ 2.11.*) ;; # other 2.11 versions
8806 *) supports_anon_versioning=yes ;;
8807 esac
d7040cdb 8808
dabbade6
L
8809 # See if GNU ld supports shared libraries.
8810 case $host_os in
50e7d84b 8811 aix[3-9]*)
dabbade6
L
8812 # On AIX/PPC, the GNU linker is very broken
8813 if test "$host_cpu" != ia64; then
8814 ld_shlibs=no
8815 cat <<_LT_EOF 1>&2
d7040cdb 8816
dabbade6
L
8817*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8818*** to be unable to reliably create shared libraries on AIX.
8819*** Therefore, libtool is disabling shared libraries support. If you
8820*** really care for shared libraries, you may want to modify your PATH
8821*** so that a non-GNU linker is found, and then restart.
d7040cdb 8822
dabbade6
L
8823_LT_EOF
8824 fi
8825 ;;
d7040cdb 8826
dabbade6 8827 amigaos*)
1927a18f
L
8828 case $host_cpu in
8829 powerpc)
8830 # see comment about AmigaOS4 .so support
8831 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8832 archive_expsym_cmds=''
8833 ;;
8834 m68k)
8835 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)'
8836 hardcode_libdir_flag_spec='-L$libdir'
8837 hardcode_minus_L=yes
8838 ;;
8839 esac
dabbade6 8840 ;;
d7040cdb 8841
dabbade6
L
8842 beos*)
8843 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8844 allow_undefined_flag=unsupported
8845 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8846 # support --undefined. This deserves some investigation. FIXME
8847 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8848 else
8849 ld_shlibs=no
8850 fi
8851 ;;
d7040cdb 8852
1927a18f 8853 cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
8854 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8855 # as there is no search path for DLLs.
8856 hardcode_libdir_flag_spec='-L$libdir'
8857 allow_undefined_flag=unsupported
8858 always_export_symbols=no
8859 enable_shared_with_static_runtimes=yes
8860 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 8861
dabbade6
L
8862 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8864 # If the export-symbols file already is a .def file (1st line
8865 # is EXPORTS), use it as is; otherwise, prepend...
8866 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8867 cp $export_symbols $output_objdir/$soname.def;
8868 else
8869 echo EXPORTS > $output_objdir/$soname.def;
8870 cat $export_symbols >> $output_objdir/$soname.def;
8871 fi~
8872 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8873 else
8874 ld_shlibs=no
8875 fi
8876 ;;
d7040cdb 8877
dabbade6
L
8878 interix[3-9]*)
8879 hardcode_direct=no
8880 hardcode_shlibpath_var=no
8881 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8882 export_dynamic_flag_spec='${wl}-E'
8883 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8884 # Instead, shared libraries are loaded at an image base (0x10000000 by
8885 # default) and relocated if they conflict, which is a slow very memory
8886 # consuming and fragmenting process. To avoid this, we pick a random,
8887 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8888 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8889 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8890 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'
8891 ;;
d7040cdb 8892
58e24671 8893 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
dabbade6
L
8894 tmp_diet=no
8895 if test "$host_os" = linux-dietlibc; then
8896 case $cc_basename in
8897 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8898 esac
8899 fi
8900 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8901 && test "$tmp_diet" = no
8902 then
8903 tmp_addflag=
1927a18f 8904 tmp_sharedflag='-shared'
dabbade6
L
8905 case $cc_basename,$host_cpu in
8906 pgcc*) # Portland Group C compiler
8907 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'
8908 tmp_addflag=' $pic_flag'
8909 ;;
8910 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8911 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'
8912 tmp_addflag=' $pic_flag -Mnomain' ;;
8913 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8914 tmp_addflag=' -i_dynamic' ;;
8915 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8916 tmp_addflag=' -i_dynamic -nofor_main' ;;
8917 ifc* | ifort*) # Intel Fortran compiler
8918 tmp_addflag=' -nofor_main' ;;
1927a18f
L
8919 lf95*) # Lahey Fortran 8.1
8920 whole_archive_flag_spec=
8921 tmp_sharedflag='--shared' ;;
8922 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8923 tmp_sharedflag='-qmkshrobj'
8924 tmp_addflag= ;;
dabbade6
L
8925 esac
8926 case `$CC -V 2>&1 | sed 5q` in
8927 *Sun\ C*) # Sun C 5.9
8928 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'
8929 compiler_needs_object=yes
8930 tmp_sharedflag='-G' ;;
8931 *Sun\ F*) # Sun Fortran 8.3
8932 tmp_sharedflag='-G' ;;
dabbade6
L
8933 esac
8934 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 8935
dabbade6
L
8936 if test "x$supports_anon_versioning" = xyes; then
8937 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8938 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8939 echo "local: *; };" >> $output_objdir/$libname.ver~
8940 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8941 fi
1927a18f
L
8942
8943 case $cc_basename in
8944 xlf*)
8945 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8946 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8947 hardcode_libdir_flag_spec=
8948 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8949 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8950 if test "x$supports_anon_versioning" = xyes; then
8951 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8952 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8953 echo "local: *; };" >> $output_objdir/$libname.ver~
8954 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8955 fi
8956 ;;
8957 esac
dabbade6
L
8958 else
8959 ld_shlibs=no
8960 fi
8961 ;;
d7040cdb 8962
dabbade6
L
8963 netbsd*)
8964 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8965 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8966 wlarc=
8967 else
8968 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8969 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8970 fi
8971 ;;
d7040cdb 8972
dabbade6
L
8973 solaris*)
8974 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8975 ld_shlibs=no
8976 cat <<_LT_EOF 1>&2
d7040cdb 8977
dabbade6
L
8978*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8979*** create shared libraries on Solaris systems. Therefore, libtool
8980*** is disabling shared libraries support. We urge you to upgrade GNU
8981*** binutils to release 2.9.1 or newer. Another option is to modify
8982*** your PATH or compiler configuration so that the native linker is
8983*** used, and then restart.
d7040cdb 8984
dabbade6
L
8985_LT_EOF
8986 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8987 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8988 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8989 else
8990 ld_shlibs=no
8991 fi
8992 ;;
d7040cdb 8993
dabbade6
L
8994 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8995 case `$LD -v 2>&1` in
8996 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8997 ld_shlibs=no
8998 cat <<_LT_EOF 1>&2
d7040cdb 8999
dabbade6
L
9000*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9001*** reliably create shared libraries on SCO systems. Therefore, libtool
9002*** is disabling shared libraries support. We urge you to upgrade GNU
9003*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9004*** your PATH or compiler configuration so that the native linker is
9005*** used, and then restart.
d7040cdb 9006
dabbade6
L
9007_LT_EOF
9008 ;;
9009 *)
9010 # For security reasons, it is highly recommended that you always
9011 # use absolute paths for naming shared libraries, and exclude the
9012 # DT_RUNPATH tag from executables and libraries. But doing so
9013 # requires that you compile everything twice, which is a pain.
9014 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9017 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9018 else
9019 ld_shlibs=no
9020 fi
9021 ;;
9022 esac
9023 ;;
d7040cdb 9024
dabbade6
L
9025 sunos4*)
9026 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9027 wlarc=
9028 hardcode_direct=yes
9029 hardcode_shlibpath_var=no
9030 ;;
d7040cdb 9031
dabbade6
L
9032 *)
9033 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9035 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9036 else
9037 ld_shlibs=no
9038 fi
9039 ;;
9040 esac
d7040cdb 9041
dabbade6
L
9042 if test "$ld_shlibs" = no; then
9043 runpath_var=
9044 hardcode_libdir_flag_spec=
9045 export_dynamic_flag_spec=
9046 whole_archive_flag_spec=
9047 fi
9048 else
9049 # PORTME fill in a description of your system's linker (not GNU ld)
9050 case $host_os in
9051 aix3*)
9052 allow_undefined_flag=unsupported
9053 always_export_symbols=yes
9054 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'
9055 # Note: this linker hardcodes the directories in LIBPATH if there
9056 # are no directories specified by -L.
9057 hardcode_minus_L=yes
9058 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9059 # Neither direct hardcoding nor static linking is supported with a
9060 # broken collect2.
9061 hardcode_direct=unsupported
9062 fi
9063 ;;
d7040cdb 9064
50e7d84b 9065 aix[4-9]*)
dabbade6
L
9066 if test "$host_cpu" = ia64; then
9067 # On IA64, the linker does run time linking by default, so we don't
9068 # have to do anything special.
9069 aix_use_runtimelinking=no
9070 exp_sym_flag='-Bexport'
9071 no_entry_flag=""
9072 else
9073 # If we're using GNU nm, then we don't want the "-C" option.
9074 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9075 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9076 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'
9077 else
9078 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'
9079 fi
9080 aix_use_runtimelinking=no
d7040cdb 9081
dabbade6
L
9082 # Test if we are trying to use run time linking or normal
9083 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9084 # need to do runtime linking.
50e7d84b 9085 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
dabbade6
L
9086 for ld_flag in $LDFLAGS; do
9087 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9088 aix_use_runtimelinking=yes
9089 break
9090 fi
9091 done
9092 ;;
9093 esac
d7040cdb 9094
dabbade6
L
9095 exp_sym_flag='-bexport'
9096 no_entry_flag='-bnoentry'
9097 fi
d7040cdb 9098
dabbade6
L
9099 # When large executables or shared objects are built, AIX ld can
9100 # have problems creating the table of contents. If linking a library
9101 # or program results in "error TOC overflow" add -mminimal-toc to
9102 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9103 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 9104
dabbade6
L
9105 archive_cmds=''
9106 hardcode_direct=yes
9107 hardcode_direct_absolute=yes
9108 hardcode_libdir_separator=':'
9109 link_all_deplibs=yes
9110 file_list_spec='${wl}-f,'
d7040cdb 9111
dabbade6
L
9112 if test "$GCC" = yes; then
9113 case $host_os in aix4.[012]|aix4.[012].*)
9114 # We only want to do this on AIX 4.2 and lower, the check
9115 # below for broken collect2 doesn't work under 4.3+
9116 collect2name=`${CC} -print-prog-name=collect2`
9117 if test -f "$collect2name" &&
9118 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9119 then
9120 # We have reworked collect2
9121 :
9122 else
9123 # We have old collect2
9124 hardcode_direct=unsupported
9125 # It fails to find uninstalled libraries when the uninstalled
9126 # path is not listed in the libpath. Setting hardcode_minus_L
9127 # to unsupported forces relinking
9128 hardcode_minus_L=yes
9129 hardcode_libdir_flag_spec='-L$libdir'
9130 hardcode_libdir_separator=
9131 fi
9132 ;;
9133 esac
9134 shared_flag='-shared'
9135 if test "$aix_use_runtimelinking" = yes; then
9136 shared_flag="$shared_flag "'${wl}-G'
9137 fi
9138 else
9139 # not using gcc
9140 if test "$host_cpu" = ia64; then
9141 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9142 # chokes on -Wl,-G. The following line is correct:
9143 shared_flag='-G'
9144 else
9145 if test "$aix_use_runtimelinking" = yes; then
9146 shared_flag='${wl}-G'
9147 else
9148 shared_flag='${wl}-bM:SRE'
9149 fi
9150 fi
9151 fi
d7040cdb 9152
1927a18f 9153 export_dynamic_flag_spec='${wl}-bexpall'
dabbade6
L
9154 # It seems that -bexpall does not export symbols beginning with
9155 # underscore (_), so it is better to generate a list of symbols to export.
9156 always_export_symbols=yes
9157 if test "$aix_use_runtimelinking" = yes; then
9158 # Warning - without using the other runtime loading flags (-brtl),
9159 # -berok will link without error, but may produce a broken library.
9160 allow_undefined_flag='-berok'
9161 # Determine the default libpath from the value encoded in an
9162 # empty executable.
81ecdfbb 9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 9164/* end confdefs.h. */
d7040cdb 9165
dabbade6
L
9166int
9167main ()
9168{
d7040cdb 9169
dabbade6
L
9170 ;
9171 return 0;
9172}
9173_ACEOF
81ecdfbb 9174if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9175
dabbade6
L
9176lt_aix_libpath_sed='
9177 /Import File Strings/,/^$/ {
9178 /^0/ {
9179 s/^0 *\(.*\)$/\1/
9180 p
9181 }
9182 }'
9183aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9184# Check for a 64-bit object if we didn't find anything.
9185if test -z "$aix_libpath"; then
9186 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9187fi
dabbade6 9188fi
81ecdfbb
RW
9189rm -f core conftest.err conftest.$ac_objext \
9190 conftest$ac_exeext conftest.$ac_ext
dabbade6 9191if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9192
dabbade6
L
9193 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9194 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"
9195 else
9196 if test "$host_cpu" = ia64; then
9197 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9198 allow_undefined_flag="-z nodefs"
9199 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"
9200 else
9201 # Determine the default libpath from the value encoded in an
9202 # empty executable.
81ecdfbb 9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 9204/* end confdefs.h. */
d7040cdb 9205
dabbade6
L
9206int
9207main ()
9208{
d7040cdb 9209
dabbade6
L
9210 ;
9211 return 0;
9212}
9213_ACEOF
81ecdfbb 9214if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9215
dabbade6
L
9216lt_aix_libpath_sed='
9217 /Import File Strings/,/^$/ {
9218 /^0/ {
9219 s/^0 *\(.*\)$/\1/
9220 p
9221 }
9222 }'
9223aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9224# Check for a 64-bit object if we didn't find anything.
9225if test -z "$aix_libpath"; then
9226 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9227fi
dabbade6 9228fi
81ecdfbb
RW
9229rm -f core conftest.err conftest.$ac_objext \
9230 conftest$ac_exeext conftest.$ac_ext
dabbade6 9231if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9232
dabbade6
L
9233 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9234 # Warning - without using the other run time loading flags,
9235 # -berok will link without error, but may produce a broken library.
9236 no_undefined_flag=' ${wl}-bernotok'
9237 allow_undefined_flag=' ${wl}-berok'
9238 # Exported symbols can be pulled into shared objects from archives
9239 whole_archive_flag_spec='$convenience'
9240 archive_cmds_need_lc=yes
9241 # This is similar to how AIX traditionally builds its shared libraries.
9242 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'
9243 fi
9244 fi
9245 ;;
d7040cdb 9246
dabbade6 9247 amigaos*)
1927a18f
L
9248 case $host_cpu in
9249 powerpc)
9250 # see comment about AmigaOS4 .so support
9251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9252 archive_expsym_cmds=''
9253 ;;
9254 m68k)
9255 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)'
9256 hardcode_libdir_flag_spec='-L$libdir'
9257 hardcode_minus_L=yes
9258 ;;
9259 esac
dabbade6 9260 ;;
d7040cdb 9261
dabbade6
L
9262 bsdi[45]*)
9263 export_dynamic_flag_spec=-rdynamic
9264 ;;
d7040cdb 9265
1927a18f 9266 cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
9267 # When not using gcc, we currently assume that we are using
9268 # Microsoft Visual C++.
9269 # hardcode_libdir_flag_spec is actually meaningless, as there is
9270 # no search path for DLLs.
9271 hardcode_libdir_flag_spec=' '
9272 allow_undefined_flag=unsupported
9273 # Tell ltmain to make .lib files, not .a files.
9274 libext=lib
9275 # Tell ltmain to make .dll files, not .so files.
9276 shrext_cmds=".dll"
9277 # FIXME: Setting linknames here is a bad hack.
9278 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9279 # The linker will automatically build a .lib file if we build a DLL.
9280 old_archive_from_new_cmds='true'
9281 # FIXME: Should let the user specify the lib program.
9282 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9283 fix_srcfile_path='`cygpath -w "$srcfile"`'
9284 enable_shared_with_static_runtimes=yes
9285 ;;
d7040cdb 9286
dabbade6 9287 darwin* | rhapsody*)
d7040cdb 9288
1927a18f
L
9289
9290 archive_cmds_need_lc=no
9291 hardcode_direct=no
9292 hardcode_automatic=yes
9293 hardcode_shlibpath_var=unsupported
9294 whole_archive_flag_spec=''
9295 link_all_deplibs=yes
9296 allow_undefined_flag="$_lt_dar_allow_undefined"
9297 case $cc_basename in
9298 ifort*) _lt_dar_can_shared=yes ;;
9299 *) _lt_dar_can_shared=$GCC ;;
9300 esac
9301 if test "$_lt_dar_can_shared" = "yes"; then
9302 output_verbose_link_cmd=echo
9303 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9304 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9305 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}"
9306 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}"
9307
9308 else
9309 ld_shlibs=no
9310 fi
9311
dabbade6 9312 ;;
d7040cdb 9313
dabbade6
L
9314 dgux*)
9315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9316 hardcode_libdir_flag_spec='-L$libdir'
9317 hardcode_shlibpath_var=no
9318 ;;
d7040cdb 9319
dabbade6
L
9320 freebsd1*)
9321 ld_shlibs=no
9322 ;;
d7040cdb 9323
dabbade6
L
9324 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9325 # support. Future versions do this automatically, but an explicit c++rt0.o
9326 # does not break anything, and helps significantly (at the cost of a little
9327 # extra space).
9328 freebsd2.2*)
9329 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9330 hardcode_libdir_flag_spec='-R$libdir'
9331 hardcode_direct=yes
9332 hardcode_shlibpath_var=no
9333 ;;
d7040cdb 9334
dabbade6
L
9335 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9336 freebsd2*)
9337 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9338 hardcode_direct=yes
9339 hardcode_minus_L=yes
9340 hardcode_shlibpath_var=no
9341 ;;
d7040cdb 9342
dabbade6
L
9343 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9344 freebsd* | dragonfly*)
9345 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9346 hardcode_libdir_flag_spec='-R$libdir'
9347 hardcode_direct=yes
9348 hardcode_shlibpath_var=no
9349 ;;
d7040cdb 9350
dabbade6
L
9351 hpux9*)
9352 if test "$GCC" = yes; then
9353 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'
9354 else
9355 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'
9356 fi
9357 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9358 hardcode_libdir_separator=:
9359 hardcode_direct=yes
d7040cdb 9360
dabbade6
L
9361 # hardcode_minus_L: Not really in the search PATH,
9362 # but as the default location of the library.
9363 hardcode_minus_L=yes
9364 export_dynamic_flag_spec='${wl}-E'
9365 ;;
d7040cdb 9366
dabbade6
L
9367 hpux10*)
9368 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9369 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9370 else
9371 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9372 fi
9373 if test "$with_gnu_ld" = no; then
9374 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9375 hardcode_libdir_flag_spec_ld='+b $libdir'
9376 hardcode_libdir_separator=:
9377 hardcode_direct=yes
9378 hardcode_direct_absolute=yes
9379 export_dynamic_flag_spec='${wl}-E'
9380 # hardcode_minus_L: Not really in the search PATH,
9381 # but as the default location of the library.
9382 hardcode_minus_L=yes
9383 fi
9384 ;;
d7040cdb 9385
dabbade6
L
9386 hpux11*)
9387 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9388 case $host_cpu in
9389 hppa*64*)
9390 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9391 ;;
9392 ia64*)
1927a18f 9393 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
dabbade6
L
9394 ;;
9395 *)
9396 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9397 ;;
9398 esac
9399 else
9400 case $host_cpu in
9401 hppa*64*)
9402 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9403 ;;
9404 ia64*)
9405 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9406 ;;
9407 *)
9408 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9409 ;;
9410 esac
9411 fi
9412 if test "$with_gnu_ld" = no; then
9413 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9414 hardcode_libdir_separator=:
d7040cdb 9415
dabbade6
L
9416 case $host_cpu in
9417 hppa*64*|ia64*)
9418 hardcode_direct=no
9419 hardcode_shlibpath_var=no
9420 ;;
9421 *)
9422 hardcode_direct=yes
9423 hardcode_direct_absolute=yes
9424 export_dynamic_flag_spec='${wl}-E'
d7040cdb 9425
dabbade6
L
9426 # hardcode_minus_L: Not really in the search PATH,
9427 # but as the default location of the library.
9428 hardcode_minus_L=yes
9429 ;;
9430 esac
9431 fi
9432 ;;
d7040cdb 9433
dabbade6
L
9434 irix5* | irix6* | nonstopux*)
9435 if test "$GCC" = yes; then
9436 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'
9437 # Try to use the -exported_symbol ld option, if it does not
9438 # work, assume that -exports_file does not work either and
9439 # implicitly export all symbols.
9440 save_LDFLAGS="$LDFLAGS"
9441 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443/* end confdefs.h. */
dabbade6
L
9444int foo(void) {}
9445_ACEOF
81ecdfbb 9446if ac_fn_c_try_link "$LINENO"; then :
dabbade6 9447 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'
d7040cdb 9448
d7040cdb 9449fi
81ecdfbb
RW
9450rm -f core conftest.err conftest.$ac_objext \
9451 conftest$ac_exeext conftest.$ac_ext
dabbade6
L
9452 LDFLAGS="$save_LDFLAGS"
9453 else
9454 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'
9455 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'
9456 fi
9457 archive_cmds_need_lc='no'
9458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9459 hardcode_libdir_separator=:
9460 inherit_rpath=yes
9461 link_all_deplibs=yes
9462 ;;
d7040cdb 9463
dabbade6
L
9464 netbsd*)
9465 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9466 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9467 else
9468 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9469 fi
9470 hardcode_libdir_flag_spec='-R$libdir'
9471 hardcode_direct=yes
9472 hardcode_shlibpath_var=no
9473 ;;
d7040cdb 9474
dabbade6
L
9475 newsos6)
9476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9477 hardcode_direct=yes
9478 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9479 hardcode_libdir_separator=:
9480 hardcode_shlibpath_var=no
9481 ;;
d7040cdb 9482
dabbade6
L
9483 *nto* | *qnx*)
9484 ;;
d7040cdb 9485
dabbade6 9486 openbsd*)
1927a18f
L
9487 if test -f /usr/libexec/ld.so; then
9488 hardcode_direct=yes
9489 hardcode_shlibpath_var=no
9490 hardcode_direct_absolute=yes
9491 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
dabbade6 9492 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1927a18f 9493 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
dabbade6 9494 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
1927a18f
L
9495 export_dynamic_flag_spec='${wl}-E'
9496 else
9497 case $host_os in
9498 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9499 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9500 hardcode_libdir_flag_spec='-R$libdir'
9501 ;;
9502 *)
9503 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9504 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9505 ;;
9506 esac
9507 fi
9508 else
9509 ld_shlibs=no
d7040cdb
SE
9510 fi
9511 ;;
d7040cdb 9512
dabbade6
L
9513 os2*)
9514 hardcode_libdir_flag_spec='-L$libdir'
9515 hardcode_minus_L=yes
9516 allow_undefined_flag=unsupported
9517 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'
9518 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9519 ;;
d7040cdb 9520
dabbade6
L
9521 osf3*)
9522 if test "$GCC" = yes; then
9523 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9524 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'
9525 else
9526 allow_undefined_flag=' -expect_unresolved \*'
9527 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'
9528 fi
9529 archive_cmds_need_lc='no'
9530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9531 hardcode_libdir_separator=:
9532 ;;
d7040cdb 9533
dabbade6
L
9534 osf4* | osf5*) # as osf3* with the addition of -msym flag
9535 if test "$GCC" = yes; then
9536 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9537 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'
9538 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9539 else
9540 allow_undefined_flag=' -expect_unresolved \*'
9541 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'
9542 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~
9543 $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'
d7040cdb 9544
dabbade6
L
9545 # Both c and cxx compiler support -rpath directly
9546 hardcode_libdir_flag_spec='-rpath $libdir'
9547 fi
9548 archive_cmds_need_lc='no'
9549 hardcode_libdir_separator=:
9550 ;;
d7040cdb 9551
dabbade6
L
9552 solaris*)
9553 no_undefined_flag=' -z defs'
9554 if test "$GCC" = yes; then
9555 wlarc='${wl}'
9556 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9557 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9558 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9559 else
9560 case `$CC -V 2>&1` in
9561 *"Compilers 5.0"*)
9562 wlarc=''
9563 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9564 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9565 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9566 ;;
9567 *)
9568 wlarc='${wl}'
9569 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9570 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9571 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9572 ;;
9573 esac
9574 fi
9575 hardcode_libdir_flag_spec='-R$libdir'
9576 hardcode_shlibpath_var=no
9577 case $host_os in
9578 solaris2.[0-5] | solaris2.[0-5].*) ;;
9579 *)
9580 # The compiler driver will combine and reorder linker options,
9581 # but understands `-z linker_flag'. GCC discards it without `$wl',
9582 # but is careful enough not to reorder.
9583 # Supported since Solaris 2.6 (maybe 2.5.1?)
9584 if test "$GCC" = yes; then
9585 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9586 else
9587 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9588 fi
9589 ;;
9590 esac
9591 link_all_deplibs=yes
d7040cdb 9592 ;;
dabbade6
L
9593
9594 sunos4*)
9595 if test "x$host_vendor" = xsequent; then
9596 # Use $CC to link under sequent, because it throws in some extra .o
9597 # files that make .init and .fini sections work.
9598 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 9599 else
dabbade6 9600 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 9601 fi
dabbade6
L
9602 hardcode_libdir_flag_spec='-L$libdir'
9603 hardcode_direct=yes
9604 hardcode_minus_L=yes
9605 hardcode_shlibpath_var=no
d7040cdb 9606 ;;
dabbade6
L
9607
9608 sysv4)
9609 case $host_vendor in
9610 sni)
9611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9612 hardcode_direct=yes # is this really true???
9613 ;;
9614 siemens)
9615 ## LD is ld it makes a PLAMLIB
9616 ## CC just makes a GrossModule.
9617 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9618 reload_cmds='$CC -r -o $output$reload_objs'
9619 hardcode_direct=no
9620 ;;
9621 motorola)
9622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9623 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9624 ;;
9625 esac
9626 runpath_var='LD_RUN_PATH'
9627 hardcode_shlibpath_var=no
d7040cdb 9628 ;;
d7040cdb 9629
dabbade6
L
9630 sysv4.3*)
9631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9632 hardcode_shlibpath_var=no
9633 export_dynamic_flag_spec='-Bexport'
9634 ;;
d7040cdb 9635
dabbade6
L
9636 sysv4*MP*)
9637 if test -d /usr/nec; then
9638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9639 hardcode_shlibpath_var=no
9640 runpath_var=LD_RUN_PATH
9641 hardcode_runpath_var=yes
9642 ld_shlibs=yes
9643 fi
9644 ;;
d7040cdb 9645
dabbade6
L
9646 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9647 no_undefined_flag='${wl}-z,text'
9648 archive_cmds_need_lc=no
9649 hardcode_shlibpath_var=no
9650 runpath_var='LD_RUN_PATH'
d7040cdb 9651
dabbade6
L
9652 if test "$GCC" = yes; then
9653 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9654 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9655 else
9656 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9657 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9658 fi
9659 ;;
d7040cdb 9660
dabbade6
L
9661 sysv5* | sco3.2v5* | sco5v6*)
9662 # Note: We can NOT use -z defs as we might desire, because we do not
9663 # link with -lc, and that would cause any symbols used from libc to
9664 # always be unresolved, which means just about no library would
9665 # ever link correctly. If we're not using GNU ld we use -z text
9666 # though, which does catch some bad symbols but isn't as heavy-handed
9667 # as -z defs.
9668 no_undefined_flag='${wl}-z,text'
9669 allow_undefined_flag='${wl}-z,nodefs'
9670 archive_cmds_need_lc=no
9671 hardcode_shlibpath_var=no
9672 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9673 hardcode_libdir_separator=':'
9674 link_all_deplibs=yes
9675 export_dynamic_flag_spec='${wl}-Bexport'
9676 runpath_var='LD_RUN_PATH'
d7040cdb 9677
dabbade6
L
9678 if test "$GCC" = yes; then
9679 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9680 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9681 else
9682 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9683 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9684 fi
d7040cdb 9685 ;;
d7040cdb 9686
dabbade6
L
9687 uts4*)
9688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9689 hardcode_libdir_flag_spec='-L$libdir'
9690 hardcode_shlibpath_var=no
9691 ;;
d7040cdb 9692
dabbade6
L
9693 *)
9694 ld_shlibs=no
9695 ;;
9696 esac
9697
9698 if test x$host_vendor = xsni; then
9699 case $host in
9700 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9701 export_dynamic_flag_spec='${wl}-Blargedynsym'
9702 ;;
9703 esac
d7040cdb 9704 fi
dabbade6 9705 fi
d7040cdb 9706
81ecdfbb
RW
9707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9708$as_echo "$ld_shlibs" >&6; }
dabbade6 9709test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 9710
dabbade6 9711with_gnu_ld=$with_gnu_ld
d7040cdb 9712
d7040cdb 9713
d7040cdb 9714
d7040cdb 9715
d7040cdb 9716
d7040cdb 9717
d7040cdb 9718
d7040cdb 9719
d7040cdb 9720
d7040cdb 9721
d7040cdb 9722
d7040cdb 9723
d7040cdb 9724
d7040cdb 9725
d7040cdb 9726
dabbade6
L
9727#
9728# Do we need to explicitly link libc?
9729#
9730case "x$archive_cmds_need_lc" in
9731x|xyes)
9732 # Assume -lc should be added
9733 archive_cmds_need_lc=yes
d7040cdb 9734
dabbade6
L
9735 if test "$enable_shared" = yes && test "$GCC" = yes; then
9736 case $archive_cmds in
9737 *'~'*)
9738 # FIXME: we may have to deal with multi-command sequences.
9739 ;;
9740 '$CC '*)
9741 # Test whether the compiler implicitly links with -lc since on some
9742 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9743 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9745$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9746if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9747 $as_echo_n "(cached) " >&6
39144654
RW
9748else
9749 $RM conftest*
9750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9751
81ecdfbb 9752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
dabbade6
L
9753 (eval $ac_compile) 2>&5
9754 ac_status=$?
81ecdfbb
RW
9755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9756 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9757 soname=conftest
9758 lib=conftest
9759 libobjs=conftest.$ac_objext
9760 deplibs=
9761 wl=$lt_prog_compiler_wl
9762 pic_flag=$lt_prog_compiler_pic
9763 compiler_flags=-v
9764 linker_flags=-v
9765 verstring=
9766 output_objdir=.
9767 libname=conftest
9768 lt_save_allow_undefined_flag=$allow_undefined_flag
9769 allow_undefined_flag=
81ecdfbb 9770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
dabbade6
L
9771 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9772 ac_status=$?
81ecdfbb
RW
9773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9774 test $ac_status = 0; }
39144654
RW
9775 then
9776 lt_cv_archive_cmds_need_lc=no
9777 else
9778 lt_cv_archive_cmds_need_lc=yes
9779 fi
9780 allow_undefined_flag=$lt_save_allow_undefined_flag
9781 else
9782 cat conftest.err 1>&5
9783 fi
9784 $RM conftest*
9785
9786fi
81ecdfbb
RW
9787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9788$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9789 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
dabbade6
L
9790 ;;
9791 esac
d7040cdb 9792 fi
d7040cdb 9793 ;;
dabbade6 9794esac
d7040cdb 9795
d7040cdb 9796
d7040cdb 9797
d7040cdb 9798
d7040cdb 9799
d7040cdb 9800
d7040cdb 9801
d7040cdb
SE
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
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
d7040cdb 9889
d7040cdb 9890
d7040cdb
SE
9891
9892
9893
9894
9895
9896
d7040cdb 9897
d7040cdb 9898
d7040cdb 9899
d7040cdb 9900
d7040cdb 9901
d7040cdb 9902
d7040cdb 9903
d7040cdb 9904
d7040cdb 9905
d7040cdb 9906
d7040cdb 9907
d7040cdb 9908
d7040cdb 9909
d7040cdb 9910
d7040cdb 9911
d7040cdb 9912
d7040cdb 9913
d7040cdb 9914
d7040cdb 9915
d7040cdb 9916
d7040cdb 9917
d7040cdb 9918
d7040cdb 9919
d7040cdb 9920
dabbade6
L
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
81ecdfbb
RW
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9953$as_echo_n "checking dynamic linker characteristics... " >&6; }
1927a18f
L
9954
9955if test "$GCC" = yes; then
dabbade6
L
9956 case $host_os in
9957 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9958 *) lt_awk_arg="/^libraries:/" ;;
9959 esac
9960 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9961 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9962 # if the path contains ";" then we assume it to be the separator
9963 # otherwise default to the standard path separator (i.e. ":") - it is
9964 # assumed that no part of a normal pathname contains ";" but that should
9965 # okay in the real world where ";" in dirpaths is itself problematic.
9966 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9967 else
9968 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9969 fi
9970 # Ok, now we have the path, separated by spaces, we can step through it
9971 # and add multilib dir if necessary.
9972 lt_tmp_lt_search_path_spec=
9973 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9974 for lt_sys_path in $lt_search_path_spec; do
9975 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9976 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9977 else
9978 test -d "$lt_sys_path" && \
9979 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9980 fi
9981 done
9982 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9983BEGIN {RS=" "; FS="/|\n";} {
9984 lt_foo="";
9985 lt_count=0;
9986 for (lt_i = NF; lt_i > 0; lt_i--) {
9987 if ($lt_i != "" && $lt_i != ".") {
9988 if ($lt_i == "..") {
9989 lt_count++;
9990 } else {
9991 if (lt_count == 0) {
9992 lt_foo="/" $lt_i lt_foo;
9993 } else {
9994 lt_count--;
9995 }
9996 }
9997 }
9998 }
9999 if (lt_foo != "") { lt_freq[lt_foo]++; }
10000 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10001}'`
10002 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
d7040cdb 10003else
dabbade6
L
10004 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10005fi
10006library_names_spec=
10007libname_spec='lib$name'
10008soname_spec=
10009shrext_cmds=".so"
10010postinstall_cmds=
10011postuninstall_cmds=
10012finish_cmds=
10013finish_eval=
10014shlibpath_var=
10015shlibpath_overrides_runpath=unknown
10016version_type=none
10017dynamic_linker="$host_os ld.so"
10018sys_lib_dlsearch_path_spec="/lib /usr/lib"
10019need_lib_prefix=unknown
10020hardcode_into_libs=no
10021
10022# when you set need_version to no, make sure it does not cause -set_version
10023# flags to be left without arguments
10024need_version=unknown
10025
10026case $host_os in
10027aix3*)
10028 version_type=linux
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10030 shlibpath_var=LIBPATH
10031
10032 # AIX 3 has no versioning support, so we append a major version to the name.
10033 soname_spec='${libname}${release}${shared_ext}$major'
10034 ;;
10035
50e7d84b 10036aix[4-9]*)
dabbade6
L
10037 version_type=linux
10038 need_lib_prefix=no
10039 need_version=no
10040 hardcode_into_libs=yes
10041 if test "$host_cpu" = ia64; then
10042 # AIX 5 supports IA64
10043 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10044 shlibpath_var=LD_LIBRARY_PATH
10045 else
10046 # With GCC up to 2.95.x, collect2 would create an import file
10047 # for dependence libraries. The import file would start with
10048 # the line `#! .'. This would cause the generated library to
10049 # depend on `.', always an invalid library. This was fixed in
10050 # development snapshots of GCC prior to 3.0.
10051 case $host_os in
10052 aix4 | aix4.[01] | aix4.[01].*)
10053 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10054 echo ' yes '
10055 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10056 :
10057 else
10058 can_build_shared=no
10059 fi
10060 ;;
10061 esac
10062 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10063 # soname into executable. Probably we can add versioning support to
10064 # collect2, so additional links can be useful in future.
10065 if test "$aix_use_runtimelinking" = yes; then
10066 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10067 # instead of lib<name>.a to let people know that these are not
10068 # typical AIX shared libraries.
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10070 else
10071 # We preserve .a as extension for shared libraries through AIX4.2
10072 # and later when we are not doing run time linking.
10073 library_names_spec='${libname}${release}.a $libname.a'
10074 soname_spec='${libname}${release}${shared_ext}$major'
10075 fi
10076 shlibpath_var=LIBPATH
10077 fi
10078 ;;
10079
10080amigaos*)
1927a18f
L
10081 case $host_cpu in
10082 powerpc)
10083 # Since July 2007 AmigaOS4 officially supports .so libraries.
10084 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10086 ;;
10087 m68k)
dabbade6
L
10088 library_names_spec='$libname.ixlibrary $libname.a'
10089 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10090 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'
1927a18f
L
10091 ;;
10092 esac
dabbade6
L
10093 ;;
10094
10095beos*)
10096 library_names_spec='${libname}${shared_ext}'
10097 dynamic_linker="$host_os ld.so"
10098 shlibpath_var=LIBRARY_PATH
10099 ;;
10100
10101bsdi[45]*)
10102 version_type=linux
10103 need_version=no
10104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10105 soname_spec='${libname}${release}${shared_ext}$major'
10106 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10107 shlibpath_var=LD_LIBRARY_PATH
10108 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10109 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10110 # the default ld.so.conf also contains /usr/contrib/lib and
10111 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10112 # libtool to hard-code these into programs
10113 ;;
10114
1927a18f 10115cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
10116 version_type=windows
10117 shrext_cmds=".dll"
10118 need_version=no
10119 need_lib_prefix=no
10120
1927a18f
L
10121 case $GCC,$host_os in
10122 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
dabbade6
L
10123 library_names_spec='$libname.dll.a'
10124 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10125 postinstall_cmds='base_file=`basename \${file}`~
10126 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10127 dldir=$destdir/`dirname \$dlpath`~
10128 test -d \$dldir || mkdir -p \$dldir~
10129 $install_prog $dir/$dlname \$dldir/$dlname~
10130 chmod a+x \$dldir/$dlname~
10131 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10132 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10133 fi'
10134 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10135 dlpath=$dir/\$dldll~
10136 $RM \$dlpath'
10137 shlibpath_overrides_runpath=yes
10138
10139 case $host_os in
10140 cygwin*)
10141 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10142 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10143 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10144 ;;
1927a18f 10145 mingw* | cegcc*)
dabbade6
L
10146 # MinGW DLLs use traditional 'lib' prefix
10147 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10148 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10149 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10150 # It is most probably a Windows format PATH printed by
10151 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10152 # path with ; separators, and with drive letters. We can handle the
10153 # drive letters (cygwin fileutils understands them), so leave them,
10154 # especially as we might pass files found there to a mingw objdump,
10155 # which wouldn't understand a cygwinified path. Ahh.
10156 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10157 else
10158 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10159 fi
10160 ;;
10161 pw32*)
10162 # pw32 DLLs use 'pw' prefix rather than 'lib'
10163 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10164 ;;
10165 esac
10166 ;;
10167
10168 *)
10169 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10170 ;;
10171 esac
10172 dynamic_linker='Win32 ld.exe'
10173 # FIXME: first we should search . and the directory the executable is in
10174 shlibpath_var=PATH
10175 ;;
10176
10177darwin* | rhapsody*)
10178 dynamic_linker="$host_os dyld"
10179 version_type=darwin
10180 need_lib_prefix=no
10181 need_version=no
10182 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10183 soname_spec='${libname}${release}${major}$shared_ext'
10184 shlibpath_overrides_runpath=yes
10185 shlibpath_var=DYLD_LIBRARY_PATH
10186 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10187
10188 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10189 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10190 ;;
10191
10192dgux*)
10193 version_type=linux
10194 need_lib_prefix=no
10195 need_version=no
10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10197 soname_spec='${libname}${release}${shared_ext}$major'
10198 shlibpath_var=LD_LIBRARY_PATH
10199 ;;
10200
10201freebsd1*)
10202 dynamic_linker=no
10203 ;;
10204
10205freebsd* | dragonfly*)
10206 # DragonFly does not have aout. When/if they implement a new
10207 # versioning mechanism, adjust this.
10208 if test -x /usr/bin/objformat; then
10209 objformat=`/usr/bin/objformat`
10210 else
10211 case $host_os in
10212 freebsd[123]*) objformat=aout ;;
10213 *) objformat=elf ;;
10214 esac
10215 fi
10216 version_type=freebsd-$objformat
10217 case $version_type in
10218 freebsd-elf*)
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10220 need_version=no
10221 need_lib_prefix=no
10222 ;;
10223 freebsd-*)
10224 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10225 need_version=yes
10226 ;;
10227 esac
10228 shlibpath_var=LD_LIBRARY_PATH
10229 case $host_os in
10230 freebsd2*)
10231 shlibpath_overrides_runpath=yes
10232 ;;
10233 freebsd3.[01]* | freebsdelf3.[01]*)
10234 shlibpath_overrides_runpath=yes
10235 hardcode_into_libs=yes
10236 ;;
10237 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10238 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10239 shlibpath_overrides_runpath=no
10240 hardcode_into_libs=yes
10241 ;;
10242 *) # from 4.6 on, and DragonFly
10243 shlibpath_overrides_runpath=yes
10244 hardcode_into_libs=yes
10245 ;;
10246 esac
10247 ;;
10248
10249gnu*)
10250 version_type=linux
10251 need_lib_prefix=no
10252 need_version=no
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10254 soname_spec='${libname}${release}${shared_ext}$major'
10255 shlibpath_var=LD_LIBRARY_PATH
10256 hardcode_into_libs=yes
10257 ;;
10258
10259hpux9* | hpux10* | hpux11*)
10260 # Give a soname corresponding to the major version so that dld.sl refuses to
10261 # link against other versions.
10262 version_type=sunos
10263 need_lib_prefix=no
10264 need_version=no
10265 case $host_cpu in
10266 ia64*)
10267 shrext_cmds='.so'
10268 hardcode_into_libs=yes
10269 dynamic_linker="$host_os dld.so"
10270 shlibpath_var=LD_LIBRARY_PATH
10271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10273 soname_spec='${libname}${release}${shared_ext}$major'
10274 if test "X$HPUX_IA64_MODE" = X32; then
10275 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10276 else
10277 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10278 fi
10279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10280 ;;
10281 hppa*64*)
10282 shrext_cmds='.sl'
10283 hardcode_into_libs=yes
10284 dynamic_linker="$host_os dld.sl"
10285 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10286 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10290 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10291 ;;
10292 *)
10293 shrext_cmds='.sl'
10294 dynamic_linker="$host_os dld.sl"
10295 shlibpath_var=SHLIB_PATH
10296 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10298 soname_spec='${libname}${release}${shared_ext}$major'
10299 ;;
10300 esac
10301 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10302 postinstall_cmds='chmod 555 $lib'
10303 ;;
10304
10305interix[3-9]*)
10306 version_type=linux
10307 need_lib_prefix=no
10308 need_version=no
10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10310 soname_spec='${libname}${release}${shared_ext}$major'
10311 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10312 shlibpath_var=LD_LIBRARY_PATH
10313 shlibpath_overrides_runpath=no
10314 hardcode_into_libs=yes
10315 ;;
10316
10317irix5* | irix6* | nonstopux*)
10318 case $host_os in
10319 nonstopux*) version_type=nonstopux ;;
10320 *)
10321 if test "$lt_cv_prog_gnu_ld" = yes; then
10322 version_type=linux
10323 else
10324 version_type=irix
10325 fi ;;
10326 esac
10327 need_lib_prefix=no
10328 need_version=no
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10331 case $host_os in
10332 irix5* | nonstopux*)
10333 libsuff= shlibsuff=
10334 ;;
10335 *)
10336 case $LD in # libtool.m4 will add one of these switches to LD
10337 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10338 libsuff= shlibsuff= libmagic=32-bit;;
10339 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10340 libsuff=32 shlibsuff=N32 libmagic=N32;;
10341 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10342 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10343 *) libsuff= shlibsuff= libmagic=never-match;;
10344 esac
10345 ;;
10346 esac
10347 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10348 shlibpath_overrides_runpath=no
10349 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10350 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10351 hardcode_into_libs=yes
10352 ;;
10353
10354# No shared lib support for Linux oldld, aout, or coff.
10355linux*oldld* | linux*aout* | linux*coff*)
10356 dynamic_linker=no
10357 ;;
10358
10359# This must be Linux ELF.
58e24671 10360linux* | k*bsd*-gnu | kopensolaris*-gnu)
dabbade6
L
10361 version_type=linux
10362 need_lib_prefix=no
10363 need_version=no
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10367 shlibpath_var=LD_LIBRARY_PATH
10368 shlibpath_overrides_runpath=no
39144654 10369
dabbade6 10370 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10371 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10372 $as_echo_n "(cached) " >&6
39144654
RW
10373else
10374 lt_cv_shlibpath_overrides_runpath=no
10375 save_LDFLAGS=$LDFLAGS
10376 save_libdir=$libdir
10377 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10378 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10380/* end confdefs.h. */
10381
d7040cdb
SE
10382int
10383main ()
10384{
dabbade6 10385
d7040cdb
SE
10386 ;
10387 return 0;
10388}
10389_ACEOF
81ecdfbb
RW
10390if ac_fn_c_try_link "$LINENO"; then :
10391 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10392 lt_cv_shlibpath_overrides_runpath=yes
dabbade6 10393fi
d7040cdb 10394fi
81ecdfbb
RW
10395rm -f core conftest.err conftest.$ac_objext \
10396 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10397 LDFLAGS=$save_LDFLAGS
10398 libdir=$save_libdir
10399
10400fi
10401
10402 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
dabbade6
L
10403
10404 # This implies no fast_install, which is unacceptable.
10405 # Some rework will be needed to allow for fast_install
10406 # before this can be enabled.
10407 hardcode_into_libs=yes
10408
10409 # Append ld.so.conf contents to the search path
10410 if test -f /etc/ld.so.conf; then
1927a18f 10411 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' ' '`
dabbade6
L
10412 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10413 fi
10414
10415 # We used to test for /lib/ld.so.1 and disable shared libraries on
10416 # powerpc, because MkLinux only supported shared libraries with the
10417 # GNU dynamic linker. Since this was broken with cross compilers,
10418 # most powerpc-linux boxes support dynamic linking these days and
10419 # people can always --disable-shared, the test was removed, and we
10420 # assume the GNU/Linux dynamic linker is in use.
10421 dynamic_linker='GNU/Linux ld.so'
10422 ;;
10423
10424netbsd*)
10425 version_type=sunos
10426 need_lib_prefix=no
10427 need_version=no
10428 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10431 dynamic_linker='NetBSD (a.out) ld.so'
10432 else
10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10434 soname_spec='${libname}${release}${shared_ext}$major'
10435 dynamic_linker='NetBSD ld.elf_so'
10436 fi
10437 shlibpath_var=LD_LIBRARY_PATH
10438 shlibpath_overrides_runpath=yes
10439 hardcode_into_libs=yes
10440 ;;
10441
10442newsos6)
10443 version_type=linux
10444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10445 shlibpath_var=LD_LIBRARY_PATH
10446 shlibpath_overrides_runpath=yes
10447 ;;
10448
10449*nto* | *qnx*)
10450 version_type=qnx
10451 need_lib_prefix=no
10452 need_version=no
10453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10454 soname_spec='${libname}${release}${shared_ext}$major'
10455 shlibpath_var=LD_LIBRARY_PATH
10456 shlibpath_overrides_runpath=no
10457 hardcode_into_libs=yes
10458 dynamic_linker='ldqnx.so'
10459 ;;
10460
10461openbsd*)
10462 version_type=sunos
10463 sys_lib_dlsearch_path_spec="/usr/lib"
10464 need_lib_prefix=no
10465 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10466 case $host_os in
10467 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10468 *) need_version=no ;;
10469 esac
10470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10472 shlibpath_var=LD_LIBRARY_PATH
10473 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10474 case $host_os in
10475 openbsd2.[89] | openbsd2.[89].*)
10476 shlibpath_overrides_runpath=no
10477 ;;
10478 *)
10479 shlibpath_overrides_runpath=yes
10480 ;;
10481 esac
10482 else
10483 shlibpath_overrides_runpath=yes
10484 fi
10485 ;;
10486
10487os2*)
10488 libname_spec='$name'
10489 shrext_cmds=".dll"
10490 need_lib_prefix=no
10491 library_names_spec='$libname${shared_ext} $libname.a'
10492 dynamic_linker='OS/2 ld.exe'
10493 shlibpath_var=LIBPATH
10494 ;;
10495
10496osf3* | osf4* | osf5*)
10497 version_type=osf
10498 need_lib_prefix=no
10499 need_version=no
10500 soname_spec='${libname}${release}${shared_ext}$major'
10501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10502 shlibpath_var=LD_LIBRARY_PATH
10503 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10504 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10505 ;;
10506
10507rdos*)
10508 dynamic_linker=no
10509 ;;
10510
10511solaris*)
10512 version_type=linux
10513 need_lib_prefix=no
10514 need_version=no
10515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10516 soname_spec='${libname}${release}${shared_ext}$major'
10517 shlibpath_var=LD_LIBRARY_PATH
10518 shlibpath_overrides_runpath=yes
10519 hardcode_into_libs=yes
10520 # ldd complains unless libraries are executable
10521 postinstall_cmds='chmod +x $lib'
10522 ;;
10523
10524sunos4*)
10525 version_type=sunos
10526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10527 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10528 shlibpath_var=LD_LIBRARY_PATH
10529 shlibpath_overrides_runpath=yes
10530 if test "$with_gnu_ld" = yes; then
10531 need_lib_prefix=no
10532 fi
10533 need_version=yes
10534 ;;
10535
10536sysv4 | sysv4.3*)
10537 version_type=linux
10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10539 soname_spec='${libname}${release}${shared_ext}$major'
10540 shlibpath_var=LD_LIBRARY_PATH
10541 case $host_vendor in
10542 sni)
10543 shlibpath_overrides_runpath=no
10544 need_lib_prefix=no
10545 runpath_var=LD_RUN_PATH
10546 ;;
10547 siemens)
10548 need_lib_prefix=no
10549 ;;
10550 motorola)
10551 need_lib_prefix=no
10552 need_version=no
10553 shlibpath_overrides_runpath=no
10554 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10555 ;;
10556 esac
10557 ;;
10558
10559sysv4*MP*)
10560 if test -d /usr/nec ;then
10561 version_type=linux
10562 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10563 soname_spec='$libname${shared_ext}.$major'
10564 shlibpath_var=LD_LIBRARY_PATH
10565 fi
10566 ;;
10567
10568sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10569 version_type=freebsd-elf
10570 need_lib_prefix=no
10571 need_version=no
10572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10573 soname_spec='${libname}${release}${shared_ext}$major'
10574 shlibpath_var=LD_LIBRARY_PATH
10575 shlibpath_overrides_runpath=yes
10576 hardcode_into_libs=yes
10577 if test "$with_gnu_ld" = yes; then
10578 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10579 else
10580 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10581 case $host_os in
10582 sco3.2v5*)
10583 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10584 ;;
10585 esac
10586 fi
10587 sys_lib_dlsearch_path_spec='/usr/lib'
10588 ;;
10589
10590tpf*)
10591 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10592 version_type=linux
10593 need_lib_prefix=no
10594 need_version=no
1927a18f 10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
dabbade6
L
10596 shlibpath_var=LD_LIBRARY_PATH
10597 shlibpath_overrides_runpath=no
10598 hardcode_into_libs=yes
10599 ;;
10600
10601uts4*)
10602 version_type=linux
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604 soname_spec='${libname}${release}${shared_ext}$major'
10605 shlibpath_var=LD_LIBRARY_PATH
10606 ;;
d7040cdb 10607
dabbade6
L
10608*)
10609 dynamic_linker=no
10610 ;;
10611esac
81ecdfbb
RW
10612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10613$as_echo "$dynamic_linker" >&6; }
dabbade6 10614test "$dynamic_linker" = no && can_build_shared=no
d7040cdb 10615
dabbade6
L
10616variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10617if test "$GCC" = yes; then
10618 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 10619fi
d7040cdb 10620
1927a18f
L
10621if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10622 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10623fi
10624if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10625 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10626fi
10627
d7040cdb 10628
d7040cdb
SE
10629
10630
d7040cdb
SE
10631
10632
d7040cdb
SE
10633
10634
d7040cdb
SE
10635
10636
d7040cdb
SE
10637
10638
d7040cdb 10639
d7040cdb 10640
d7040cdb 10641
d7040cdb 10642
d7040cdb 10643
d7040cdb 10644
d7040cdb 10645
d7040cdb 10646
d7040cdb 10647
d7040cdb 10648
d7040cdb 10649
d7040cdb 10650
d7040cdb 10651
d7040cdb 10652
d7040cdb
SE
10653
10654
d7040cdb 10655
d7040cdb 10656
d7040cdb 10657
d7040cdb 10658
d7040cdb 10659
d7040cdb 10660
d7040cdb 10661
d7040cdb 10662
d7040cdb 10663
d7040cdb
SE
10664
10665
d7040cdb 10666
d7040cdb 10667
d7040cdb 10668
d7040cdb
SE
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
d7040cdb
SE
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
d7040cdb 10698
d7040cdb 10699
dabbade6
L
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
81ecdfbb
RW
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10715$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
dabbade6
L
10716hardcode_action=
10717if test -n "$hardcode_libdir_flag_spec" ||
10718 test -n "$runpath_var" ||
10719 test "X$hardcode_automatic" = "Xyes" ; then
10720
10721 # We can hardcode non-existent directories.
10722 if test "$hardcode_direct" != no &&
10723 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10724 # have to relink, otherwise we might link with an installed library
10725 # when we should be linking with a yet-to-be-installed one
10726 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10727 test "$hardcode_minus_L" != no; then
10728 # Linking always hardcodes the temporary library directory.
10729 hardcode_action=relink
10730 else
10731 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10732 hardcode_action=immediate
10733 fi
10734else
10735 # We cannot hardcode anything, or else we can only hardcode existing
10736 # directories.
10737 hardcode_action=unsupported
10738fi
81ecdfbb
RW
10739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10740$as_echo "$hardcode_action" >&6; }
dabbade6
L
10741
10742if test "$hardcode_action" = relink ||
10743 test "$inherit_rpath" = yes; then
10744 # Fast installation is not supported
10745 enable_fast_install=no
10746elif test "$shlibpath_overrides_runpath" = yes ||
10747 test "$enable_shared" = no; then
10748 # Fast installation is not necessary
10749 enable_fast_install=needless
10750fi
10751
10752
10753
10754
10755
10756
10757 if test "x$enable_dlopen" != xyes; then
10758 enable_dlopen=unknown
10759 enable_dlopen_self=unknown
10760 enable_dlopen_self_static=unknown
10761else
10762 lt_cv_dlopen=no
10763 lt_cv_dlopen_libs=
10764
d7040cdb 10765 case $host_os in
dabbade6
L
10766 beos*)
10767 lt_cv_dlopen="load_add_on"
10768 lt_cv_dlopen_libs=
10769 lt_cv_dlopen_self=yes
d7040cdb
SE
10770 ;;
10771
1927a18f 10772 mingw* | pw32* | cegcc*)
dabbade6
L
10773 lt_cv_dlopen="LoadLibrary"
10774 lt_cv_dlopen_libs=
d7040cdb 10775 ;;
d7040cdb 10776
dabbade6
L
10777 cygwin*)
10778 lt_cv_dlopen="dlopen"
10779 lt_cv_dlopen_libs=
10780 ;;
d7040cdb 10781
dabbade6
L
10782 darwin*)
10783 # if libdl is installed we need to link against it
81ecdfbb
RW
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10785$as_echo_n "checking for dlopen in -ldl... " >&6; }
10786if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10787 $as_echo_n "(cached) " >&6
dabbade6
L
10788else
10789 ac_check_lib_save_LIBS=$LIBS
10790LIBS="-ldl $LIBS"
81ecdfbb 10791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 10792/* end confdefs.h. */
d7040cdb 10793
81ecdfbb
RW
10794/* Override any GCC internal prototype to avoid an error.
10795 Use char because int might match the return type of a GCC
10796 builtin and then its argument prototype would still apply. */
dabbade6
L
10797#ifdef __cplusplus
10798extern "C"
10799#endif
dabbade6
L
10800char dlopen ();
10801int
10802main ()
10803{
81ecdfbb 10804return dlopen ();
dabbade6
L
10805 ;
10806 return 0;
10807}
10808_ACEOF
81ecdfbb 10809if ac_fn_c_try_link "$LINENO"; then :
dabbade6
L
10810 ac_cv_lib_dl_dlopen=yes
10811else
81ecdfbb 10812 ac_cv_lib_dl_dlopen=no
d7040cdb 10813fi
81ecdfbb
RW
10814rm -f core conftest.err conftest.$ac_objext \
10815 conftest$ac_exeext conftest.$ac_ext
dabbade6
L
10816LIBS=$ac_check_lib_save_LIBS
10817fi
81ecdfbb
RW
10818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10819$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10820if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
dabbade6
L
10821 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10822else
d7040cdb 10823
dabbade6
L
10824 lt_cv_dlopen="dyld"
10825 lt_cv_dlopen_libs=
10826 lt_cv_dlopen_self=yes
d7040cdb 10827
81ecdfbb 10828fi
d7040cdb 10829
81ecdfbb
RW
10830 ;;
10831
10832 *)
10833 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10834if test "x$ac_cv_func_shl_load" = x""yes; then :
10835 lt_cv_dlopen="shl_load"
10836else
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10838$as_echo_n "checking for shl_load in -ldld... " >&6; }
10839if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10840 $as_echo_n "(cached) " >&6
10841else
10842 ac_check_lib_save_LIBS=$LIBS
10843LIBS="-ldld $LIBS"
10844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845/* end confdefs.h. */
10846
10847/* Override any GCC internal prototype to avoid an error.
10848 Use char because int might match the return type of a GCC
dabbade6 10849 builtin and then its argument prototype would still apply. */
dabbade6 10850#ifdef __cplusplus
81ecdfbb 10851extern "C"
dabbade6 10852#endif
81ecdfbb 10853char shl_load ();
dabbade6
L
10854int
10855main ()
10856{
81ecdfbb 10857return shl_load ();
dabbade6
L
10858 ;
10859 return 0;
10860}
10861_ACEOF
81ecdfbb
RW
10862if ac_fn_c_try_link "$LINENO"; then :
10863 ac_cv_lib_dld_shl_load=yes
dabbade6 10864else
81ecdfbb 10865 ac_cv_lib_dld_shl_load=no
dabbade6 10866fi
81ecdfbb
RW
10867rm -f core conftest.err conftest.$ac_objext \
10868 conftest$ac_exeext conftest.$ac_ext
10869LIBS=$ac_check_lib_save_LIBS
dabbade6 10870fi
81ecdfbb
RW
10871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10872$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10873if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10874 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10875else
10876 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10877if test "x$ac_cv_func_dlopen" = x""yes; then :
dabbade6
L
10878 lt_cv_dlopen="dlopen"
10879else
81ecdfbb
RW
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10881$as_echo_n "checking for dlopen in -ldl... " >&6; }
10882if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10883 $as_echo_n "(cached) " >&6
dabbade6
L
10884else
10885 ac_check_lib_save_LIBS=$LIBS
10886LIBS="-ldl $LIBS"
81ecdfbb 10887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 10888/* end confdefs.h. */
d7040cdb 10889
81ecdfbb
RW
10890/* Override any GCC internal prototype to avoid an error.
10891 Use char because int might match the return type of a GCC
10892 builtin and then its argument prototype would still apply. */
dabbade6
L
10893#ifdef __cplusplus
10894extern "C"
10895#endif
dabbade6
L
10896char dlopen ();
10897int
10898main ()
10899{
81ecdfbb 10900return dlopen ();
dabbade6
L
10901 ;
10902 return 0;
10903}
10904_ACEOF
81ecdfbb 10905if ac_fn_c_try_link "$LINENO"; then :
dabbade6
L
10906 ac_cv_lib_dl_dlopen=yes
10907else
81ecdfbb 10908 ac_cv_lib_dl_dlopen=no
dabbade6 10909fi
81ecdfbb
RW
10910rm -f core conftest.err conftest.$ac_objext \
10911 conftest$ac_exeext conftest.$ac_ext
dabbade6
L
10912LIBS=$ac_check_lib_save_LIBS
10913fi
81ecdfbb
RW
10914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10915$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10916if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
dabbade6
L
10917 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10918else
81ecdfbb
RW
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10920$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10921if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10922 $as_echo_n "(cached) " >&6
dabbade6
L
10923else
10924 ac_check_lib_save_LIBS=$LIBS
10925LIBS="-lsvld $LIBS"
81ecdfbb 10926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 10927/* end confdefs.h. */
d7040cdb 10928
81ecdfbb
RW
10929/* Override any GCC internal prototype to avoid an error.
10930 Use char because int might match the return type of a GCC
10931 builtin and then its argument prototype would still apply. */
dabbade6
L
10932#ifdef __cplusplus
10933extern "C"
10934#endif
dabbade6
L
10935char dlopen ();
10936int
10937main ()
10938{
81ecdfbb 10939return dlopen ();
dabbade6
L
10940 ;
10941 return 0;
10942}
10943_ACEOF
81ecdfbb 10944if ac_fn_c_try_link "$LINENO"; then :
dabbade6
L
10945 ac_cv_lib_svld_dlopen=yes
10946else
81ecdfbb 10947 ac_cv_lib_svld_dlopen=no
dabbade6 10948fi
81ecdfbb
RW
10949rm -f core conftest.err conftest.$ac_objext \
10950 conftest$ac_exeext conftest.$ac_ext
dabbade6
L
10951LIBS=$ac_check_lib_save_LIBS
10952fi
81ecdfbb
RW
10953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10954$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10955if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
dabbade6
L
10956 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10957else
81ecdfbb
RW
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10959$as_echo_n "checking for dld_link in -ldld... " >&6; }
10960if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10961 $as_echo_n "(cached) " >&6
dabbade6
L
10962else
10963 ac_check_lib_save_LIBS=$LIBS
10964LIBS="-ldld $LIBS"
81ecdfbb 10965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 10966/* end confdefs.h. */
d7040cdb 10967
81ecdfbb
RW
10968/* Override any GCC internal prototype to avoid an error.
10969 Use char because int might match the return type of a GCC
10970 builtin and then its argument prototype would still apply. */
dabbade6
L
10971#ifdef __cplusplus
10972extern "C"
10973#endif
dabbade6
L
10974char dld_link ();
10975int
10976main ()
10977{
81ecdfbb 10978return dld_link ();
dabbade6
L
10979 ;
10980 return 0;
10981}
10982_ACEOF
81ecdfbb 10983if ac_fn_c_try_link "$LINENO"; then :
dabbade6
L
10984 ac_cv_lib_dld_dld_link=yes
10985else
81ecdfbb 10986 ac_cv_lib_dld_dld_link=no
d7040cdb 10987fi
81ecdfbb
RW
10988rm -f core conftest.err conftest.$ac_objext \
10989 conftest$ac_exeext conftest.$ac_ext
dabbade6 10990LIBS=$ac_check_lib_save_LIBS
d7040cdb 10991fi
81ecdfbb
RW
10992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10993$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10994if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
1927a18f 10995 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
10996fi
10997
d7040cdb 10998
d7040cdb
SE
10999fi
11000
11001
dabbade6 11002fi
d7040cdb
SE
11003
11004
dabbade6 11005fi
d7040cdb
SE
11006
11007
d7040cdb
SE
11008fi
11009
979273e3 11010
252b5132 11011fi
252b5132 11012
dabbade6
L
11013 ;;
11014 esac
252b5132 11015
dabbade6
L
11016 if test "x$lt_cv_dlopen" != xno; then
11017 enable_dlopen=yes
11018 else
11019 enable_dlopen=no
11020 fi
1c0d3aa6 11021
dabbade6
L
11022 case $lt_cv_dlopen in
11023 dlopen)
11024 save_CPPFLAGS="$CPPFLAGS"
11025 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20e95c23 11026
dabbade6
L
11027 save_LDFLAGS="$LDFLAGS"
11028 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20e95c23 11029
dabbade6
L
11030 save_LIBS="$LIBS"
11031 LIBS="$lt_cv_dlopen_libs $LIBS"
20e95c23 11032
81ecdfbb
RW
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11034$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11035if test "${lt_cv_dlopen_self+set}" = set; then :
11036 $as_echo_n "(cached) " >&6
d7040cdb 11037else
dabbade6
L
11038 if test "$cross_compiling" = yes; then :
11039 lt_cv_dlopen_self=cross
d7040cdb 11040else
dabbade6
L
11041 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11042 lt_status=$lt_dlunknown
11043 cat > conftest.$ac_ext <<_LT_EOF
2eee5593 11044#line 11044 "configure"
dabbade6 11045#include "confdefs.h"
20e95c23 11046
dabbade6
L
11047#if HAVE_DLFCN_H
11048#include <dlfcn.h>
11049#endif
20e95c23 11050
dabbade6 11051#include <stdio.h>
20e95c23 11052
dabbade6
L
11053#ifdef RTLD_GLOBAL
11054# define LT_DLGLOBAL RTLD_GLOBAL
11055#else
11056# ifdef DL_GLOBAL
11057# define LT_DLGLOBAL DL_GLOBAL
11058# else
11059# define LT_DLGLOBAL 0
11060# endif
11061#endif
20e95c23 11062
dabbade6
L
11063/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11064 find out it does not work in some platform. */
11065#ifndef LT_DLLAZY_OR_NOW
11066# ifdef RTLD_LAZY
11067# define LT_DLLAZY_OR_NOW RTLD_LAZY
11068# else
11069# ifdef DL_LAZY
11070# define LT_DLLAZY_OR_NOW DL_LAZY
11071# else
11072# ifdef RTLD_NOW
11073# define LT_DLLAZY_OR_NOW RTLD_NOW
11074# else
11075# ifdef DL_NOW
11076# define LT_DLLAZY_OR_NOW DL_NOW
11077# else
11078# define LT_DLLAZY_OR_NOW 0
11079# endif
11080# endif
11081# endif
11082# endif
11083#endif
20e95c23 11084
dabbade6
L
11085void fnord() { int i=42;}
11086int main ()
11087{
11088 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11089 int status = $lt_dlunknown;
20e95c23 11090
dabbade6
L
11091 if (self)
11092 {
11093 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11094 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11095 /* dlclose (self); */
11096 }
11097 else
11098 puts (dlerror ());
d7040cdb 11099
1927a18f 11100 return status;
dabbade6
L
11101}
11102_LT_EOF
81ecdfbb 11103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
dabbade6
L
11104 (eval $ac_link) 2>&5
11105 ac_status=$?
81ecdfbb
RW
11106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11107 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
dabbade6
L
11108 (./conftest; exit; ) >&5 2>/dev/null
11109 lt_status=$?
11110 case x$lt_status in
11111 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11112 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11113 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11114 esac
11115 else :
11116 # compilation failed
11117 lt_cv_dlopen_self=no
11118 fi
d7040cdb 11119fi
dabbade6
L
11120rm -fr conftest*
11121
252b5132 11122
d7040cdb 11123fi
81ecdfbb
RW
11124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11125$as_echo "$lt_cv_dlopen_self" >&6; }
d7040cdb 11126
dabbade6
L
11127 if test "x$lt_cv_dlopen_self" = xyes; then
11128 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11130$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11131if test "${lt_cv_dlopen_self_static+set}" = set; then :
11132 $as_echo_n "(cached) " >&6
252b5132 11133else
dabbade6
L
11134 if test "$cross_compiling" = yes; then :
11135 lt_cv_dlopen_self_static=cross
d7040cdb 11136else
dabbade6
L
11137 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11138 lt_status=$lt_dlunknown
11139 cat > conftest.$ac_ext <<_LT_EOF
2eee5593 11140#line 11140 "configure"
dabbade6 11141#include "confdefs.h"
252b5132 11142
dabbade6
L
11143#if HAVE_DLFCN_H
11144#include <dlfcn.h>
11145#endif
252b5132 11146
dabbade6 11147#include <stdio.h>
d7040cdb 11148
dabbade6
L
11149#ifdef RTLD_GLOBAL
11150# define LT_DLGLOBAL RTLD_GLOBAL
11151#else
11152# ifdef DL_GLOBAL
11153# define LT_DLGLOBAL DL_GLOBAL
11154# else
11155# define LT_DLGLOBAL 0
11156# endif
11157#endif
20e95c23 11158
dabbade6
L
11159/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11160 find out it does not work in some platform. */
11161#ifndef LT_DLLAZY_OR_NOW
11162# ifdef RTLD_LAZY
11163# define LT_DLLAZY_OR_NOW RTLD_LAZY
11164# else
11165# ifdef DL_LAZY
11166# define LT_DLLAZY_OR_NOW DL_LAZY
11167# else
11168# ifdef RTLD_NOW
11169# define LT_DLLAZY_OR_NOW RTLD_NOW
11170# else
11171# ifdef DL_NOW
11172# define LT_DLLAZY_OR_NOW DL_NOW
11173# else
11174# define LT_DLLAZY_OR_NOW 0
11175# endif
11176# endif
11177# endif
11178# endif
11179#endif
979273e3 11180
dabbade6
L
11181void fnord() { int i=42;}
11182int main ()
11183{
11184 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11185 int status = $lt_dlunknown;
d7040cdb 11186
dabbade6
L
11187 if (self)
11188 {
11189 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11190 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11191 /* dlclose (self); */
11192 }
11193 else
11194 puts (dlerror ());
d7040cdb 11195
1927a18f 11196 return status;
dabbade6
L
11197}
11198_LT_EOF
81ecdfbb 11199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
dabbade6
L
11200 (eval $ac_link) 2>&5
11201 ac_status=$?
81ecdfbb
RW
11202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11203 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
dabbade6
L
11204 (./conftest; exit; ) >&5 2>/dev/null
11205 lt_status=$?
11206 case x$lt_status in
11207 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11208 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11209 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11210 esac
11211 else :
11212 # compilation failed
11213 lt_cv_dlopen_self_static=no
11214 fi
20e95c23 11215fi
dabbade6 11216rm -fr conftest*
979273e3 11217
d7040cdb
SE
11218
11219fi
81ecdfbb
RW
11220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11221$as_echo "$lt_cv_dlopen_self_static" >&6; }
dabbade6
L
11222 fi
11223
11224 CPPFLAGS="$save_CPPFLAGS"
11225 LDFLAGS="$save_LDFLAGS"
11226 LIBS="$save_LIBS"
11227 ;;
11228 esac
11229
11230 case $lt_cv_dlopen_self in
11231 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11232 *) enable_dlopen_self=unknown ;;
11233 esac
11234
11235 case $lt_cv_dlopen_self_static in
11236 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11237 *) enable_dlopen_self_static=unknown ;;
11238 esac
d7040cdb 11239fi
dabbade6
L
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257striplib=
11258old_striplib=
81ecdfbb
RW
11259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11260$as_echo_n "checking whether stripping libraries is possible... " >&6; }
dabbade6
L
11261if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11262 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11263 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11265$as_echo "yes" >&6; }
d7040cdb 11266else
dabbade6
L
11267# FIXME - insert some real tests, host_os isn't really good enough
11268 case $host_os in
11269 darwin*)
11270 if test -n "$STRIP" ; then
11271 striplib="$STRIP -x"
11272 old_striplib="$STRIP -S"
81ecdfbb
RW
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11274$as_echo "yes" >&6; }
dabbade6 11275 else
81ecdfbb
RW
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277$as_echo "no" >&6; }
dabbade6
L
11278 fi
11279 ;;
11280 *)
81ecdfbb
RW
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282$as_echo "no" >&6; }
dabbade6
L
11283 ;;
11284 esac
d7040cdb 11285fi
20e95c23 11286
979273e3 11287
dabbade6
L
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298 # Report which library types will actually be built
81ecdfbb
RW
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11300$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11302$as_echo "$can_build_shared" >&6; }
dabbade6 11303
81ecdfbb
RW
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11305$as_echo_n "checking whether to build shared libraries... " >&6; }
dabbade6
L
11306 test "$can_build_shared" = "no" && enable_shared=no
11307
11308 # On AIX, shared libraries and static libraries use the same namespace, and
11309 # are all built from PIC.
11310 case $host_os in
11311 aix3*)
11312 test "$enable_shared" = yes && enable_static=no
11313 if test -n "$RANLIB"; then
11314 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11315 postinstall_cmds='$RANLIB $lib'
11316 fi
11317 ;;
11318
50e7d84b 11319 aix[4-9]*)
dabbade6
L
11320 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11321 test "$enable_shared" = yes && enable_static=no
11322 fi
11323 ;;
11324 esac
81ecdfbb
RW
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11326$as_echo "$enable_shared" >&6; }
dabbade6 11327
81ecdfbb
RW
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11329$as_echo_n "checking whether to build static libraries... " >&6; }
dabbade6
L
11330 # Make sure either enable_shared or enable_static is yes.
11331 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11333$as_echo "$enable_static" >&6; }
dabbade6
L
11334
11335
11336
d7040cdb 11337
252b5132 11338fi
dabbade6
L
11339ac_ext=c
11340ac_cpp='$CPP $CPPFLAGS'
11341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11343ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 11344
dabbade6 11345CC="$lt_save_CC"
20e95c23 11346
20e95c23 11347
d7040cdb 11348
d7040cdb 11349
d7040cdb 11350
20e95c23 11351
dabbade6
L
11352
11353
11354
11355
11356
11357
11358
81ecdfbb 11359 ac_config_commands="$ac_config_commands libtool"
dabbade6
L
11360
11361
11362
11363
11364# Only expand once:
11365
11366
11367
81ecdfbb
RW
11368# Check whether --enable-targets was given.
11369if test "${enable_targets+set}" = set; then :
11370 enableval=$enable_targets; case "${enableval}" in
11371 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
dabbade6
L
11372 ;;
11373 no) enable_targets= ;;
11374 *) enable_targets=$enableval ;;
11375esac
81ecdfbb
RW
11376fi
11377
dabbade6
L
11378
11379GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11380
81ecdfbb
RW
11381# Check whether --enable-werror was given.
11382if test "${enable_werror+set}" = set; then :
11383 enableval=$enable_werror; case "${enableval}" in
dabbade6
L
11384 yes | y) ERROR_ON_WARNING="yes" ;;
11385 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 11386 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
dabbade6 11387 esac
81ecdfbb
RW
11388fi
11389
dabbade6 11390
bb8541b9
L
11391# Enable -Wno-format by default when using gcc on mingw
11392case "${host}" in
11393 *-*-mingw32*)
11394 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11395 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11396 fi
11397 ;;
11398 *) ;;
11399esac
11400
dabbade6
L
11401# Enable -Werror by default when using gcc
11402if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11403 ERROR_ON_WARNING=yes
d7040cdb 11404fi
20e95c23 11405
dabbade6
L
11406NO_WERROR=
11407if test "${ERROR_ON_WARNING}" = yes ; then
11408 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11409 NO_WERROR="-Wno-error"
20e95c23 11410fi
d7040cdb 11411
dabbade6
L
11412if test "${GCC}" = yes ; then
11413 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11414fi
d7040cdb 11415
81ecdfbb
RW
11416# Check whether --enable-build-warnings was given.
11417if test "${enable_build_warnings+set}" = set; then :
11418 enableval=$enable_build_warnings; case "${enableval}" in
dabbade6
L
11419 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11420 no) if test "${GCC}" = yes ; then
11421 WARN_CFLAGS="-w"
11422 fi;;
11423 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11424 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11425 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11426 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11427 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11428esac
81ecdfbb
RW
11429fi
11430
979273e3 11431
dabbade6
L
11432if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11433 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
d7040cdb 11434fi
dabbade6
L
11435
11436
11437
11438
11439
81ecdfbb 11440ac_config_headers="$ac_config_headers config.h:config.in"
dabbade6
L
11441
11442
11443if test -z "$target" ; then
81ecdfbb 11444 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
d7040cdb 11445fi
dabbade6 11446
81ecdfbb
RW
11447
11448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11449$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11450 # Check whether --enable-maintainer-mode was given.
11451if test "${enable_maintainer_mode+set}" = set; then :
11452 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
d7040cdb 11453else
dabbade6 11454 USE_MAINTAINER_MODE=no
81ecdfbb 11455fi
d7040cdb 11456
81ecdfbb
RW
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11458$as_echo "$USE_MAINTAINER_MODE" >&6; }
11459 if test $USE_MAINTAINER_MODE = yes; then
dabbade6
L
11460 MAINTAINER_MODE_TRUE=
11461 MAINTAINER_MODE_FALSE='#'
252b5132 11462else
dabbade6
L
11463 MAINTAINER_MODE_TRUE='#'
11464 MAINTAINER_MODE_FALSE=
252b5132 11465fi
d7040cdb 11466
dabbade6
L
11467 MAINT=$MAINTAINER_MODE_TRUE
11468
11469
11470 case ${build_alias} in
11471 "") build_noncanonical=${build} ;;
11472 *) build_noncanonical=${build_alias} ;;
11473esac
11474
11475 case ${host_alias} in
11476 "") host_noncanonical=${build_noncanonical} ;;
11477 *) host_noncanonical=${host_alias} ;;
11478esac
979273e3 11479
dabbade6
L
11480 case ${target_alias} in
11481 "") target_noncanonical=${host_noncanonical} ;;
11482 *) target_noncanonical=${target_alias} ;;
d7040cdb 11483esac
252b5132 11484
81ecdfbb
RW
11485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
11486$as_echo_n "checking whether to install libbfd... " >&6; }
11487 # Check whether --enable-install-libbfd was given.
11488if test "${enable_install_libbfd+set}" = set; then :
11489 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
979273e3 11490else
dabbade6
L
11491 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
11492 install_libbfd_p=yes
11493 else
11494 install_libbfd_p=no
11495 fi
81ecdfbb 11496fi
d7040cdb 11497
81ecdfbb
RW
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
11499$as_echo "$install_libbfd_p" >&6; }
11500 if test $install_libbfd_p = yes; then
dabbade6
L
11501 INSTALL_LIBBFD_TRUE=
11502 INSTALL_LIBBFD_FALSE='#'
11503else
11504 INSTALL_LIBBFD_TRUE='#'
11505 INSTALL_LIBBFD_FALSE=
d7040cdb
SE
11506fi
11507
dabbade6 11508 # Need _noncanonical variables for this.
979273e3 11509
d7040cdb
SE
11510
11511
dabbade6
L
11512
11513 # libbfd.a is a host library containing target dependent code
11514 bfdlibdir='$(libdir)'
11515 bfdincludedir='$(includedir)'
11516 if test "${host}" != "${target}"; then
11517 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
11518 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
11519 fi
11520
11521
11522
11523
11524
11525
573e8a1c
RW
11526
11527
dabbade6
L
11528# host-specific stuff:
11529
d7040cdb
SE
11530ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga zh_CN"
11531# If we haven't got the data from the intl directory,
11532# assume NLS is disabled.
11533USE_NLS=no
11534LIBINTL=
11535LIBINTL_DEP=
11536INCINTL=
11537XGETTEXT=
11538GMSGFMT=
11539POSUB=
11540
11541if test -f ../intl/config.intl; then
11542 . ../intl/config.intl
11543fi
81ecdfbb
RW
11544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11545$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 11546if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548$as_echo "no" >&6; }
d7040cdb 11549else
81ecdfbb
RW
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11551$as_echo "yes" >&6; }
d7040cdb 11552
81ecdfbb 11553$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
11554
11555
81ecdfbb
RW
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11557$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
11558 # Look for .po and .gmo files in the source directory.
11559 CATALOGS=
11560 XLINGUAS=
11561 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11562 # If there aren't any .gmo files the shell will give us the
11563 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11564 # weeded out.
11565 case "$cat" in *\**)
11566 continue;;
11567 esac
11568 # The quadruple backslash is collapsed to a double backslash
11569 # by the backticks, then collapsed again by the double quotes,
11570 # leaving us with one backslash in the sed expression (right
11571 # before the dot that mustn't act as a wildcard).
11572 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11573 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11574 # The user is allowed to set LINGUAS to a list of languages to
11575 # install catalogs for. If it's empty that means "all of them."
11576 if test "x$LINGUAS" = x; then
11577 CATALOGS="$CATALOGS $cat"
11578 XLINGUAS="$XLINGUAS $lang"
11579 else
11580 case "$LINGUAS" in *$lang*)
11581 CATALOGS="$CATALOGS $cat"
11582 XLINGUAS="$XLINGUAS $lang"
11583 ;;
11584 esac
11585 fi
11586 done
11587 LINGUAS="$XLINGUAS"
81ecdfbb
RW
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11589$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
11590
11591
11592 DATADIRNAME=share
11593
11594 INSTOBJEXT=.mo
11595
11596 GENCAT=gencat
11597
11598 CATOBJEXT=.gmo
11599
11600fi
11601
11602 MKINSTALLDIRS=
11603 if test -n "$ac_aux_dir"; then
11604 case "$ac_aux_dir" in
11605 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11606 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11607 esac
11608 fi
11609 if test -z "$MKINSTALLDIRS"; then
11610 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11611 fi
11612
11613
11614
81ecdfbb
RW
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11616$as_echo_n "checking whether NLS is requested... " >&6; }
11617 # Check whether --enable-nls was given.
11618if test "${enable_nls+set}" = set; then :
11619 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
11620else
11621 USE_NLS=yes
81ecdfbb
RW
11622fi
11623
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11625$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
11626
11627
11628
11629
11630
11631
11632# Prepare PATH_SEPARATOR.
11633# The user is always right.
11634if test "${PATH_SEPARATOR+set}" != set; then
11635 echo "#! /bin/sh" >conf$$.sh
11636 echo "exit 0" >>conf$$.sh
11637 chmod +x conf$$.sh
11638 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11639 PATH_SEPARATOR=';'
11640 else
11641 PATH_SEPARATOR=:
11642 fi
11643 rm -f conf$$.sh
11644fi
979273e3 11645
d7040cdb
SE
11646# Find out how to test for executable files. Don't use a zero-byte file,
11647# as systems may use methods other than mode bits to determine executability.
11648cat >conf$$.file <<_ASEOF
11649#! /bin/sh
11650exit 0
11651_ASEOF
11652chmod +x conf$$.file
11653if test -x conf$$.file >/dev/null 2>&1; then
11654 ac_executable_p="test -x"
252b5132 11655else
d7040cdb 11656 ac_executable_p="test -f"
252b5132 11657fi
d7040cdb 11658rm -f conf$$.file
252b5132 11659
d7040cdb
SE
11660# Extract the first word of "msgfmt", so it can be a program name with args.
11661set dummy msgfmt; ac_word=$2
81ecdfbb
RW
11662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11663$as_echo_n "checking for $ac_word... " >&6; }
11664if test "${ac_cv_path_MSGFMT+set}" = set; then :
11665 $as_echo_n "(cached) " >&6
252b5132 11666else
d7040cdb
SE
11667 case "$MSGFMT" in
11668 [\\/]* | ?:[\\/]*)
11669 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11670 ;;
11671 *)
11672 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11673 for ac_dir in $PATH; do
11674 IFS="$ac_save_IFS"
11675 test -z "$ac_dir" && ac_dir=.
11676 for ac_exec_ext in '' $ac_executable_extensions; do
11677 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11678 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11679 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11680 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11681 break 2
11682 fi
11683 fi
11684 done
11685 done
11686 IFS="$ac_save_IFS"
11687 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11688 ;;
11689esac
11690fi
11691MSGFMT="$ac_cv_path_MSGFMT"
11692if test "$MSGFMT" != ":"; then
81ecdfbb
RW
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11694$as_echo "$MSGFMT" >&6; }
d7040cdb 11695else
81ecdfbb
RW
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697$as_echo "no" >&6; }
252b5132
RH
11698fi
11699
d7040cdb
SE
11700 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11701set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
11702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11703$as_echo_n "checking for $ac_word... " >&6; }
11704if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11705 $as_echo_n "(cached) " >&6
20e95c23 11706else
d7040cdb
SE
11707 case $GMSGFMT in
11708 [\\/]* | ?:[\\/]*)
11709 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11710 ;;
11711 *)
11712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11713for as_dir in $PATH
11714do
11715 IFS=$as_save_IFS
11716 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11717 for ac_exec_ext in '' $ac_executable_extensions; do
11718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 11719 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
11721 break 2
11722 fi
11723done
81ecdfbb
RW
11724 done
11725IFS=$as_save_IFS
252b5132 11726
d7040cdb
SE
11727 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11728 ;;
11729esac
11730fi
11731GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 11732if test -n "$GMSGFMT"; then
81ecdfbb
RW
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11734$as_echo "$GMSGFMT" >&6; }
252b5132 11735else
81ecdfbb
RW
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737$as_echo "no" >&6; }
252b5132
RH
11738fi
11739
11740
20e95c23 11741
81ecdfbb 11742
d7040cdb
SE
11743# Prepare PATH_SEPARATOR.
11744# The user is always right.
11745if test "${PATH_SEPARATOR+set}" != set; then
11746 echo "#! /bin/sh" >conf$$.sh
11747 echo "exit 0" >>conf$$.sh
11748 chmod +x conf$$.sh
11749 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11750 PATH_SEPARATOR=';'
11751 else
11752 PATH_SEPARATOR=:
11753 fi
11754 rm -f conf$$.sh
252b5132
RH
11755fi
11756
d7040cdb
SE
11757# Find out how to test for executable files. Don't use a zero-byte file,
11758# as systems may use methods other than mode bits to determine executability.
11759cat >conf$$.file <<_ASEOF
11760#! /bin/sh
11761exit 0
11762_ASEOF
11763chmod +x conf$$.file
11764if test -x conf$$.file >/dev/null 2>&1; then
11765 ac_executable_p="test -x"
11766else
11767 ac_executable_p="test -f"
11768fi
11769rm -f conf$$.file
20e95c23 11770
d7040cdb
SE
11771# Extract the first word of "xgettext", so it can be a program name with args.
11772set dummy xgettext; ac_word=$2
81ecdfbb
RW
11773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11774$as_echo_n "checking for $ac_word... " >&6; }
11775if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11776 $as_echo_n "(cached) " >&6
252b5132 11777else
d7040cdb
SE
11778 case "$XGETTEXT" in
11779 [\\/]* | ?:[\\/]*)
11780 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11781 ;;
11782 *)
11783 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11784 for ac_dir in $PATH; do
11785 IFS="$ac_save_IFS"
11786 test -z "$ac_dir" && ac_dir=.
11787 for ac_exec_ext in '' $ac_executable_extensions; do
11788 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11789 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11790 (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
11791 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11792 break 2
11793 fi
11794 fi
11795 done
11796 done
11797 IFS="$ac_save_IFS"
11798 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11799 ;;
11800esac
20e95c23 11801fi
d7040cdb
SE
11802XGETTEXT="$ac_cv_path_XGETTEXT"
11803if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11805$as_echo "$XGETTEXT" >&6; }
d7040cdb 11806else
81ecdfbb
RW
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808$as_echo "no" >&6; }
d7040cdb
SE
11809fi
11810
11811 rm -f messages.po
11812
979273e3 11813
d7040cdb
SE
11814# Prepare PATH_SEPARATOR.
11815# The user is always right.
11816if test "${PATH_SEPARATOR+set}" != set; then
11817 echo "#! /bin/sh" >conf$$.sh
11818 echo "exit 0" >>conf$$.sh
11819 chmod +x conf$$.sh
11820 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11821 PATH_SEPARATOR=';'
11822 else
11823 PATH_SEPARATOR=:
11824 fi
11825 rm -f conf$$.sh
252b5132 11826fi
979273e3 11827
d7040cdb
SE
11828# Find out how to test for executable files. Don't use a zero-byte file,
11829# as systems may use methods other than mode bits to determine executability.
11830cat >conf$$.file <<_ASEOF
11831#! /bin/sh
11832exit 0
11833_ASEOF
11834chmod +x conf$$.file
11835if test -x conf$$.file >/dev/null 2>&1; then
11836 ac_executable_p="test -x"
252b5132 11837else
d7040cdb
SE
11838 ac_executable_p="test -f"
11839fi
11840rm -f conf$$.file
252b5132 11841
d7040cdb
SE
11842# Extract the first word of "msgmerge", so it can be a program name with args.
11843set dummy msgmerge; ac_word=$2
81ecdfbb
RW
11844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11845$as_echo_n "checking for $ac_word... " >&6; }
11846if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11847 $as_echo_n "(cached) " >&6
252b5132 11848else
d7040cdb
SE
11849 case "$MSGMERGE" in
11850 [\\/]* | ?:[\\/]*)
11851 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11852 ;;
11853 *)
11854 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11855 for ac_dir in $PATH; do
11856 IFS="$ac_save_IFS"
11857 test -z "$ac_dir" && ac_dir=.
11858 for ac_exec_ext in '' $ac_executable_extensions; do
11859 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11860 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11861 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11862 break 2
11863 fi
11864 fi
11865 done
11866 done
11867 IFS="$ac_save_IFS"
11868 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11869 ;;
11870esac
20e95c23 11871fi
d7040cdb
SE
11872MSGMERGE="$ac_cv_path_MSGMERGE"
11873if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11875$as_echo "$MSGMERGE" >&6; }
d7040cdb 11876else
81ecdfbb
RW
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878$as_echo "no" >&6; }
20e95c23 11879fi
252b5132 11880
979273e3 11881
d7040cdb
SE
11882 if test "$GMSGFMT" != ":"; then
11883 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11884 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11885 : ;
11886 else
11887 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11889$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
11890 GMSGFMT=":"
11891 fi
11892 fi
979273e3 11893
d7040cdb
SE
11894 if test "$XGETTEXT" != ":"; then
11895 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11896 (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
11897 : ;
11898 else
81ecdfbb
RW
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11900$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
11901 XGETTEXT=":"
11902 fi
11903 rm -f messages.po
11904 fi
979273e3 11905
81ecdfbb 11906 ac_config_commands="$ac_config_commands default-1"
979273e3 11907
979273e3 11908
979273e3 11909
81ecdfbb 11910. ${srcdir}/../bfd/configure.host
252b5132 11911
81ecdfbb
RW
11912# Put a plausible default for CC_FOR_BUILD in Makefile.
11913if test -z "$CC_FOR_BUILD"; then
11914 if test "x$cross_compiling" = "xno"; then
11915 CC_FOR_BUILD='$(CC)'
11916 else
11917 CC_FOR_BUILD=gcc
11918 fi
11919fi
252b5132 11920
81ecdfbb
RW
11921# Also set EXEEXT_FOR_BUILD.
11922if test "x$cross_compiling" = "xno"; then
11923 EXEEXT_FOR_BUILD='$(EXEEXT)'
4bd60896 11924else
81ecdfbb
RW
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
11926$as_echo_n "checking for build system executable suffix... " >&6; }
11927if test "${bfd_cv_build_exeext+set}" = set; then :
11928 $as_echo_n "(cached) " >&6
4bd60896 11929else
81ecdfbb
RW
11930 rm -f conftest*
11931 echo 'int main () { return 0; }' > conftest.c
11932 bfd_cv_build_exeext=
11933 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11934 for file in conftest.*; do
11935 case $file in
11936 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11937 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11938 esac
11939 done
11940 rm -f conftest*
11941 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
4bd60896 11942fi
81ecdfbb
RW
11943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
11944$as_echo "$bfd_cv_build_exeext" >&6; }
11945 EXEEXT_FOR_BUILD=""
11946 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4bd60896 11947fi
4bd60896 11948
4bd60896
JG
11949
11950
81ecdfbb
RW
11951
11952
11953for ac_header in string.h strings.h stdlib.h limits.h
11954do :
11955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11956ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11957eval as_val=\$$as_ac_Header
11958 if test "x$as_val" = x""yes; then :
4bd60896 11959 cat >>confdefs.h <<_ACEOF
81ecdfbb 11960#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4bd60896
JG
11961_ACEOF
11962
dabbade6 11963fi
dabbade6 11964
81ecdfbb 11965done
dabbade6 11966
81ecdfbb
RW
11967
11968ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
11969if test "x$ac_cv_have_decl_basename" = x""yes; then :
11970 ac_have_decl=1
11971else
11972 ac_have_decl=0
dabbade6 11973fi
dabbade6
L
11974
11975cat >>confdefs.h <<_ACEOF
81ecdfbb 11976#define HAVE_DECL_BASENAME $ac_have_decl
dabbade6 11977_ACEOF
81ecdfbb
RW
11978ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
11979if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
11980 ac_have_decl=1
dabbade6 11981else
81ecdfbb 11982 ac_have_decl=0
4bd60896
JG
11983fi
11984
81ecdfbb
RW
11985cat >>confdefs.h <<_ACEOF
11986#define HAVE_DECL_STPCPY $ac_have_decl
11987_ACEOF
4bd60896
JG
11988
11989
6e31aea3
BE
11990cgen_maint=no
11991cgendir='$(srcdir)/../cgen'
11992
81ecdfbb
RW
11993# Check whether --enable-cgen-maint was given.
11994if test "${enable_cgen_maint+set}" = set; then :
11995 enableval=$enable_cgen_maint; case "${enableval}" in
6e31aea3
BE
11996 yes) cgen_maint=yes ;;
11997 no) cgen_maint=no ;;
11998 *)
11999 # argument is cgen install directory (not implemented yet).
12000 # Having a `share' directory might be more appropriate for the .scm,
12001 # .cpu, etc. files.
12002 cgen_maint=yes
12003 cgendir=${cgen_maint}/lib/cgen
12004 ;;
12005esac
81ecdfbb
RW
12006fi
12007 if test x${cgen_maint} = xyes; then
6e31aea3
BE
12008 CGEN_MAINT_TRUE=
12009 CGEN_MAINT_FALSE='#'
12010else
12011 CGEN_MAINT_TRUE='#'
12012 CGEN_MAINT_FALSE=
12013fi
12014
252b5132 12015
8ae85421 12016
252b5132
RH
12017using_cgen=no
12018
51dec227 12019# Check if linker supports --as-needed and --no-as-needed options
81ecdfbb
RW
12020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
12021$as_echo_n "checking linker --as-needed support... " >&6; }
12022if test "${bfd_cv_ld_as_needed+set}" = set; then :
12023 $as_echo_n "(cached) " >&6
51dec227
AM
12024else
12025 bfd_cv_ld_as_needed=no
12026 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
12027 bfd_cv_ld_as_needed=yes
12028 fi
12029
12030fi
81ecdfbb
RW
12031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
12032$as_echo "$bfd_cv_ld_as_needed" >&6; }
51dec227
AM
12033
12034LIBM=
12035case $host in
12036*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
12037 # These system don't have libm, or don't need it
12038 ;;
12039*-ncr-sysv4.3*)
81ecdfbb
RW
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
12041$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
12042if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
12043 $as_echo_n "(cached) " >&6
51dec227
AM
12044else
12045 ac_check_lib_save_LIBS=$LIBS
12046LIBS="-lmw $LIBS"
81ecdfbb 12047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51dec227
AM
12048/* end confdefs.h. */
12049
81ecdfbb
RW
12050/* Override any GCC internal prototype to avoid an error.
12051 Use char because int might match the return type of a GCC
12052 builtin and then its argument prototype would still apply. */
51dec227
AM
12053#ifdef __cplusplus
12054extern "C"
12055#endif
51dec227
AM
12056char _mwvalidcheckl ();
12057int
12058main ()
12059{
81ecdfbb 12060return _mwvalidcheckl ();
51dec227
AM
12061 ;
12062 return 0;
12063}
12064_ACEOF
81ecdfbb 12065if ac_fn_c_try_link "$LINENO"; then :
51dec227
AM
12066 ac_cv_lib_mw__mwvalidcheckl=yes
12067else
81ecdfbb 12068 ac_cv_lib_mw__mwvalidcheckl=no
51dec227 12069fi
81ecdfbb
RW
12070rm -f core conftest.err conftest.$ac_objext \
12071 conftest$ac_exeext conftest.$ac_ext
51dec227
AM
12072LIBS=$ac_check_lib_save_LIBS
12073fi
81ecdfbb
RW
12074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12075$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
12076if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
51dec227
AM
12077 LIBM="-lmw"
12078fi
12079
81ecdfbb
RW
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12081$as_echo_n "checking for cos in -lm... " >&6; }
12082if test "${ac_cv_lib_m_cos+set}" = set; then :
12083 $as_echo_n "(cached) " >&6
51dec227
AM
12084else
12085 ac_check_lib_save_LIBS=$LIBS
12086LIBS="-lm $LIBS"
81ecdfbb 12087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51dec227
AM
12088/* end confdefs.h. */
12089
81ecdfbb
RW
12090/* Override any GCC internal prototype to avoid an error.
12091 Use char because int might match the return type of a GCC
12092 builtin and then its argument prototype would still apply. */
51dec227
AM
12093#ifdef __cplusplus
12094extern "C"
12095#endif
51dec227
AM
12096char cos ();
12097int
12098main ()
12099{
81ecdfbb 12100return cos ();
51dec227
AM
12101 ;
12102 return 0;
12103}
12104_ACEOF
81ecdfbb 12105if ac_fn_c_try_link "$LINENO"; then :
51dec227
AM
12106 ac_cv_lib_m_cos=yes
12107else
81ecdfbb 12108 ac_cv_lib_m_cos=no
51dec227 12109fi
81ecdfbb
RW
12110rm -f core conftest.err conftest.$ac_objext \
12111 conftest$ac_exeext conftest.$ac_ext
51dec227
AM
12112LIBS=$ac_check_lib_save_LIBS
12113fi
81ecdfbb
RW
12114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12115$as_echo "$ac_cv_lib_m_cos" >&6; }
12116if test "x$ac_cv_lib_m_cos" = x""yes; then :
51dec227
AM
12117 LIBM="$LIBM -lm"
12118fi
12119
12120 ;;
12121*)
81ecdfbb
RW
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12123$as_echo_n "checking for cos in -lm... " >&6; }
12124if test "${ac_cv_lib_m_cos+set}" = set; then :
12125 $as_echo_n "(cached) " >&6
51dec227
AM
12126else
12127 ac_check_lib_save_LIBS=$LIBS
12128LIBS="-lm $LIBS"
81ecdfbb 12129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51dec227
AM
12130/* end confdefs.h. */
12131
81ecdfbb
RW
12132/* Override any GCC internal prototype to avoid an error.
12133 Use char because int might match the return type of a GCC
12134 builtin and then its argument prototype would still apply. */
51dec227
AM
12135#ifdef __cplusplus
12136extern "C"
12137#endif
51dec227
AM
12138char cos ();
12139int
12140main ()
12141{
81ecdfbb 12142return cos ();
51dec227
AM
12143 ;
12144 return 0;
12145}
12146_ACEOF
81ecdfbb 12147if ac_fn_c_try_link "$LINENO"; then :
51dec227
AM
12148 ac_cv_lib_m_cos=yes
12149else
81ecdfbb 12150 ac_cv_lib_m_cos=no
51dec227 12151fi
81ecdfbb
RW
12152rm -f core conftest.err conftest.$ac_objext \
12153 conftest$ac_exeext conftest.$ac_ext
51dec227
AM
12154LIBS=$ac_check_lib_save_LIBS
12155fi
81ecdfbb
RW
12156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12157$as_echo "$ac_cv_lib_m_cos" >&6; }
12158if test "x$ac_cv_lib_m_cos" = x""yes; then :
51dec227
AM
12159 LIBM="-lm"
12160fi
12161
12162 ;;
12163esac
12164
12165
12166
2eee5593
AM
12167#Libs for generator progs
12168if test "x$cross_compiling" = "xno"; then
12169 BUILD_LIBS=../libiberty/libiberty.a
12170 BUILD_LIB_DEPS=$BUILD_LIBS
12171else
12172 # if cross-compiling, assume that the system provides -liberty
12173 # and that the version is compatible with new headers.
12174 BUILD_LIBS=-liberty
12175 BUILD_LIB_DEPS=
12176fi
12177BUILD_LIBS="$BUILD_LIBS $LIBINTL"
12178BUILD_LIB_DEPS="$BUILD_LIB_DEPS $LIBINTL_DEP"
12179
12180
12181
12182
45d42143
NC
12183# Horrible hacks to build DLLs on Windows and a shared library elsewhere.
12184SHARED_LDFLAGS=
12185SHARED_LIBADD=
12186SHARED_DEPENDENCIES=
12187if test "$enable_shared" = "yes"; then
29670fb9
AM
12188# When building a shared libopcodes, link against the pic version of libiberty
12189# so that apps that use libopcodes won't need libiberty just to satisfy any
12190# libopcodes references.
12191# We can't do that if a pic libiberty is unavailable since including non-pic
12192# code would insert text relocations into libopcodes.
12193# Note that linking against libbfd as we do here, which is itself linked
12194# against libiberty, may not satisfy all the libopcodes libiberty references
12195# since libbfd may not pull in the entirety of libiberty.
12196 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
12197 if test -n "$x"; then
12198 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
12199 fi
12200
45d42143
NC
12201 case "${host}" in
12202 *-*-cygwin*)
12203 SHARED_LDFLAGS="-no-undefined"
12204 SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
12205 ;;
0e336180 12206 *-*-darwin*)
29670fb9 12207 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib ${SHARED_LIBADD}"
0e336180
NC
12208 SHARED_DEPENDENCIES="../bfd/libbfd.la"
12209 ;;
45d42143 12210 *)
0e336180
NC
12211 case "$host_vendor" in
12212 hp)
29670fb9 12213 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl ${SHARED_LIBADD}"
0e336180
NC
12214 ;;
12215 *)
29670fb9 12216 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so ${SHARED_LIBADD}"
0e336180
NC
12217 ;;
12218 esac
4267b19f 12219 SHARED_DEPENDENCIES="../bfd/libbfd.la"
45d42143
NC
12220 ;;
12221 esac
51dec227
AM
12222
12223 if test -n "$SHARED_LIBADD"; then
12224 if test -n "$LIBM"; then
12225 if test x"$bfd_cv_ld_as_needed" = xyes; then
12226 # Link against libm only when needed. Put -lc, -lm inside -Wl
12227 # to stop libtool reordering these options.
12228 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
12229 else
12230 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
12231 fi
12232 fi
12233 fi
45d42143
NC
12234fi
12235
252b5132
RH
12236
12237
12238
12239# target-specific stuff:
12240
12241# Canonicalize the secondary target names.
12242if test -n "$enable_targets" ; then
12243 for targ in `echo $enable_targets | sed 's/,/ /g'`
12244 do
6d83c84b 12245 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
12246 if test -n "$result" ; then
12247 canon_targets="$canon_targets $result"
12248 else
12249 # Allow targets that config.sub doesn't recognize, like "all".
12250 canon_targets="$canon_targets $targ"
12251 fi
12252 done
12253fi
12254
12255all_targets=false
12256selarchs=
12257for targ in $target $canon_targets
12258do
12259 if test "x$targ" = "xall" ; then
12260 all_targets=true
12261 else
12262 . $srcdir/../bfd/config.bfd
12263 selarchs="$selarchs $targ_archs"
12264 fi
979273e3 12265done
252b5132
RH
12266
12267# Utility var, documents generic cgen support files.
12268
3609e0fe 12269cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
252b5132
RH
12270
12271# We don't do any links based on the target system, just makefile config.
12272
12273if test x${all_targets} = xfalse ; then
12274
12275 # Target architecture .o files.
12276 ta=
12277
12278 for arch in $selarchs
12279 do
12280 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
12281 archdefs="$archdefs -DARCH_$ad"
12282 case "$arch" in
252b5132 12283 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
0d2bcfaf 12284 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
252b5132 12285 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
adde6300 12286 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
4b7f6baa 12287 bfd_bfin_arch) ta="$ta bfin-dis.lo" ;;
3d3d428f 12288 bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;;
3609e0fe 12289 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
1fe1f39c 12290 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
252b5132
RH
12291 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
12292 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
d172d4ba 12293 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
252b5132 12294 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
c5f5f1f4 12295 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
20135e4c 12296 bfd_moxie_arch) ta="$ta moxie-dis.lo moxie-opc.lo" ;;
252b5132
RH
12297 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
12298 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
12299 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
5b93d8bb 12300 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
8a9036a4
L
12301 bfd_i386_arch|bfd_l1om_arch)
12302 ta="$ta i386-dis.lo i386-opc.lo" ;;
9d751335 12303 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
252b5132 12304 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
800eeca4 12305 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
a40cbfa3 12306 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
47b1a55a 12307 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
84e94c90 12308 bfd_lm32_arch) ta="$ta lm32-asm.lo lm32-desc.lo lm32-dis.lo lm32-ibld.lo lm32-opc.lo lm32-opinst.lo" using_cgen=yes ;;
c5f5f1f4 12309 bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
252b5132 12310 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
60bcf0fa
NC
12311 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
12312 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
252b5132
RH
12313 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
12314 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
7499d566 12315 bfd_maxq_arch) ta="$ta maxq-dis.lo" ;;
252b5132 12316 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
bd2f2e55 12317 bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
7ba29e2a 12318 bfd_microblaze_arch) ta="$ta microblaze-dis.lo" ;;
252b5132 12319 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
3c3bdf30 12320 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
252b5132
RH
12321 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
12322 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
d031aafb 12323 bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
2469cfa2 12324 bfd_msp430_arch) ta="$ta msp430-dis.lo" ;;
252b5132 12325 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
87e6d782 12326 bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
3b16e843 12327 bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
e135f41b 12328 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
1e608f98 12329 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
252b5132 12330 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
a85d7ed0 12331 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
5dd0794d 12332 bfd_pyramid_arch) ;;
252b5132
RH
12333 bfd_romp_arch) ;;
12334 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
a85d7ed0 12335 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
c3b7224a 12336 bfd_score_arch) ta="$ta score-dis.lo score7-dis.lo" ;;
09919455 12337 bfd_sh_arch)
d28847ce 12338 # We can't decide what we want just from the CPU family.
e8b872bb
AO
12339 # We want SH5 support unless a specific version of sh is
12340 # specified, as in sh3-elf, sh3b-linux-gnu, etc.
ca0f2ed6
HPN
12341 # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
12342 for t in $target $canon_targets; do
12343 case $t in
5b0e55b6 12344 all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
942e7dd9 12345 sh-*-linux* | shl-*-linux*)
d28847ce 12346 ta="$ta sh64-dis.lo sh64-opc.lo"
ca0f2ed6
HPN
12347 archdefs="$archdefs -DINCLUDE_SHMEDIA"
12348 break;;
12349 esac;
12350 done
d3f1a427 12351 ta="$ta sh-dis.lo cgen-bitset.lo" ;;
252b5132 12352 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
e9f53129 12353 bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;;
252b5132
RH
12354 bfd_tahoe_arch) ;;
12355 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
026df7c5 12356 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
5c84d377 12357 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
252b5132
RH
12358 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
12359 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12360 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12361 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12362 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
12363 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
12364 bfd_we32k_arch) ;;
d70c5fc7 12365 bfd_xc16x_arch) ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;;
93fbbb04 12366 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
e0001a05 12367 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
3c9b82ba 12368 bfd_z80_arch) ta="$ta z80-dis.lo" ;;
252b5132
RH
12369 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
12370
12371 "") ;;
81ecdfbb 12372 *) as_fn_error "*** unknown target architecture $arch" "$LINENO" 5 ;;
252b5132
RH
12373 esac
12374 done
12375
12376 if test $using_cgen = yes ; then
12377 ta="$ta $cgen_files"
12378 fi
12379
12380 # Weed out duplicate .o files.
12381 f=""
12382 for i in $ta ; do
12383 case " $f " in
12384 *" $i "*) ;;
12385 *) f="$f $i" ;;
12386 esac
12387 done
12388 ta="$f"
12389
12390 # And duplicate -D flags.
12391 f=""
12392 for i in $archdefs ; do
12393 case " $f " in
12394 *" $i "*) ;;
12395 *) f="$f $i" ;;
12396 esac
12397 done
12398 archdefs="$f"
12399
12400 BFD_MACHINES="$ta"
12401
12402else # all_targets is true
12403 archdefs=-DARCH_all
12404 BFD_MACHINES='$(ALL_MACHINES)'
12405fi
12406
12407
12408
12409
81ecdfbb 12410ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
979273e3 12411
979273e3 12412cat >confcache <<\_ACEOF
252b5132
RH
12413# This file is a shell script that caches the results of configure
12414# tests run on this system so they can be shared between configure
979273e3
NN
12415# scripts and configure runs, see configure's option --config-cache.
12416# It is not useful on other systems. If it contains results you don't
12417# want to keep, you may remove or edit it.
252b5132 12418#
979273e3
NN
12419# config.status only pays attention to the cache file if you give it
12420# the --recheck option to rerun configure.
252b5132 12421#
979273e3
NN
12422# `ac_cv_env_foo' variables (set or unset) will be overridden when
12423# loading this file, other *unset* `ac_cv_foo' will be assigned the
12424# following values.
12425
12426_ACEOF
12427
252b5132
RH
12428# The following way of writing the cache mishandles newlines in values,
12429# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 12430# So, we kill variables containing newlines.
252b5132
RH
12431# Ultrix sh set writes to stderr and can't be redirected directly,
12432# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
12433(
12434 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12435 eval ac_val=\$$ac_var
12436 case $ac_val in #(
12437 *${as_nl}*)
12438 case $ac_var in #(
12439 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12440$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12441 esac
12442 case $ac_var in #(
12443 _ | IFS | as_nl) ;; #(
12444 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12445 *) { eval $ac_var=; unset $ac_var;} ;;
12446 esac ;;
12447 esac
12448 done
12449
979273e3 12450 (set) 2>&1 |
81ecdfbb
RW
12451 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12452 *${as_nl}ac_space=\ *)
12453 # `set' does not quote correctly, so add quotes: double-quote
12454 # substitution turns \\\\ into \\, and sed turns \\ into \.
979273e3
NN
12455 sed -n \
12456 "s/'/'\\\\''/g;
12457 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 12458 ;; #(
979273e3
NN
12459 *)
12460 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 12461 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
979273e3 12462 ;;
81ecdfbb
RW
12463 esac |
12464 sort
12465) |
979273e3 12466 sed '
81ecdfbb 12467 /^ac_cv_env_/b end
979273e3 12468 t clear
81ecdfbb 12469 :clear
979273e3
NN
12470 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12471 t end
81ecdfbb
RW
12472 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12473 :end' >>confcache
12474if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12475 if test -w "$cache_file"; then
12476 test "x$cache_file" != "x/dev/null" &&
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12478$as_echo "$as_me: updating cache $cache_file" >&6;}
979273e3 12479 cat confcache >$cache_file
252b5132 12480 else
81ecdfbb
RW
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12482$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
252b5132
RH
12483 fi
12484fi
12485rm -f confcache
12486
252b5132
RH
12487test "x$prefix" = xNONE && prefix=$ac_default_prefix
12488# Let make expand exec_prefix.
12489test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12490
252b5132
RH
12491DEFS=-DHAVE_CONFIG_H
12492
979273e3
NN
12493ac_libobjs=
12494ac_ltlibobjs=
12495for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12496 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
12497 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12498 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12499 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12500 # will be set to the directory where LIBOBJS objects are built.
12501 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12502 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
979273e3
NN
12503done
12504LIBOBJS=$ac_libobjs
252b5132 12505
979273e3
NN
12506LTLIBOBJS=$ac_ltlibobjs
12507
12508
8ae85421 12509if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
12510 as_fn_error "conditional \"AMDEP\" was never defined.
12511Usually this means the macro was only invoked conditionally." "$LINENO" 5
8ae85421
AM
12512fi
12513if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
12514 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12515Usually this means the macro was only invoked conditionally." "$LINENO" 5
12516fi
12517 if test -n "$EXEEXT"; then
12518 am__EXEEXT_TRUE=
12519 am__EXEEXT_FALSE='#'
12520else
12521 am__EXEEXT_TRUE='#'
12522 am__EXEEXT_FALSE=
8ae85421 12523fi
81ecdfbb 12524
8ae85421 12525if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
12526 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12527Usually this means the macro was only invoked conditionally." "$LINENO" 5
8ae85421
AM
12528fi
12529if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
81ecdfbb
RW
12530 as_fn_error "conditional \"INSTALL_LIBBFD\" was never defined.
12531Usually this means the macro was only invoked conditionally." "$LINENO" 5
8ae85421
AM
12532fi
12533if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
81ecdfbb
RW
12534 as_fn_error "conditional \"CGEN_MAINT\" was never defined.
12535Usually this means the macro was only invoked conditionally." "$LINENO" 5
8ae85421 12536fi
979273e3
NN
12537
12538: ${CONFIG_STATUS=./config.status}
81ecdfbb 12539ac_write_fail=0
979273e3
NN
12540ac_clean_files_save=$ac_clean_files
12541ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
12542{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12543$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12544as_write_fail=0
12545cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
979273e3
NN
12546#! $SHELL
12547# Generated by $as_me.
252b5132 12548# Run this file to recreate the current configuration.
252b5132 12549# Compiler output produced by configure, useful for debugging
979273e3 12550# configure, is in config.log if it exists.
252b5132 12551
979273e3
NN
12552debug=false
12553ac_cs_recheck=false
12554ac_cs_silent=false
979273e3 12555
81ecdfbb
RW
12556SHELL=\${CONFIG_SHELL-$SHELL}
12557export SHELL
12558_ASEOF
12559cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12560## -------------------- ##
12561## M4sh Initialization. ##
12562## -------------------- ##
979273e3 12563
81ecdfbb
RW
12564# Be more Bourne compatible
12565DUALCASE=1; export DUALCASE # for MKS sh
12566if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
979273e3
NN
12567 emulate sh
12568 NULLCMD=:
81ecdfbb 12569 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
979273e3
NN
12570 # is contrary to our usage. Disable this feature.
12571 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
12572 setopt NO_GLOB_SUBST
12573else
12574 case `(set -o) 2>/dev/null` in #(
12575 *posix*) :
12576 set -o posix ;; #(
12577 *) :
12578 ;;
12579esac
979273e3 12580fi
979273e3 12581
81ecdfbb
RW
12582
12583as_nl='
12584'
12585export as_nl
12586# Printing a long string crashes Solaris 7 /usr/bin/printf.
12587as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12588as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12589as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12590# Prefer a ksh shell builtin over an external printf program on Solaris,
12591# but without wasting forks for bash or zsh.
12592if test -z "$BASH_VERSION$ZSH_VERSION" \
12593 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12594 as_echo='print -r --'
12595 as_echo_n='print -rn --'
12596elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12597 as_echo='printf %s\n'
12598 as_echo_n='printf %s'
12599else
12600 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12601 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12602 as_echo_n='/usr/ucb/echo -n'
12603 else
12604 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12605 as_echo_n_body='eval
12606 arg=$1;
12607 case $arg in #(
12608 *"$as_nl"*)
12609 expr "X$arg" : "X\\(.*\\)$as_nl";
12610 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12611 esac;
12612 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12613 '
12614 export as_echo_n_body
12615 as_echo_n='sh -c $as_echo_n_body as_echo'
12616 fi
12617 export as_echo_body
12618 as_echo='sh -c $as_echo_body as_echo'
12619fi
12620
12621# The user is always right.
12622if test "${PATH_SEPARATOR+set}" != set; then
12623 PATH_SEPARATOR=:
12624 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12625 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12626 PATH_SEPARATOR=';'
12627 }
979273e3
NN
12628fi
12629
12630
81ecdfbb
RW
12631# IFS
12632# We need space, tab and new line, in precisely that order. Quoting is
12633# there to prevent editors from complaining about space-tab.
12634# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12635# splitting by setting IFS to empty value.)
12636IFS=" "" $as_nl"
12637
12638# Find who we are. Look in the path if we contain no directory separator.
12639case $0 in #((
12640 *[\\/]* ) as_myself=$0 ;;
12641 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12642for as_dir in $PATH
12643do
12644 IFS=$as_save_IFS
12645 test -z "$as_dir" && as_dir=.
12646 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12647 done
12648IFS=$as_save_IFS
12649
12650 ;;
12651esac
12652# We did not find ourselves, most probably we were run as `sh COMMAND'
12653# in which case we are not to be found in the path.
12654if test "x$as_myself" = x; then
12655 as_myself=$0
12656fi
12657if test ! -f "$as_myself"; then
12658 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12659 exit 1
12660fi
12661
12662# Unset variables that we do not need and which cause bugs (e.g. in
12663# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12664# suppresses any "Segmentation fault" message there. '((' could
12665# trigger a bug in pdksh 5.2.14.
12666for as_var in BASH_ENV ENV MAIL MAILPATH
12667do eval test x\${$as_var+set} = xset \
12668 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12669done
979273e3
NN
12670PS1='$ '
12671PS2='> '
12672PS4='+ '
12673
12674# NLS nuisances.
81ecdfbb
RW
12675LC_ALL=C
12676export LC_ALL
12677LANGUAGE=C
12678export LANGUAGE
12679
12680# CDPATH.
12681(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12682
12683
12684# as_fn_error ERROR [LINENO LOG_FD]
12685# ---------------------------------
12686# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12687# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12688# script with status $?, using 1 if that was 0.
12689as_fn_error ()
12690{
12691 as_status=$?; test $as_status -eq 0 && as_status=1
12692 if test "$3"; then
12693 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12694 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
979273e3 12695 fi
81ecdfbb
RW
12696 $as_echo "$as_me: error: $1" >&2
12697 as_fn_exit $as_status
12698} # as_fn_error
12699
12700
12701# as_fn_set_status STATUS
12702# -----------------------
12703# Set $? to STATUS, without forking.
12704as_fn_set_status ()
12705{
12706 return $1
12707} # as_fn_set_status
12708
12709# as_fn_exit STATUS
12710# -----------------
12711# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12712as_fn_exit ()
12713{
12714 set +e
12715 as_fn_set_status $1
12716 exit $1
12717} # as_fn_exit
12718
12719# as_fn_unset VAR
12720# ---------------
12721# Portably unset VAR.
12722as_fn_unset ()
12723{
12724 { eval $1=; unset $1;}
12725}
12726as_unset=as_fn_unset
12727# as_fn_append VAR VALUE
12728# ----------------------
12729# Append the text in VALUE to the end of the definition contained in VAR. Take
12730# advantage of any shell optimizations that allow amortized linear growth over
12731# repeated appends, instead of the typical quadratic growth present in naive
12732# implementations.
12733if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12734 eval 'as_fn_append ()
12735 {
12736 eval $1+=\$2
12737 }'
12738else
12739 as_fn_append ()
12740 {
12741 eval $1=\$$1\$2
12742 }
12743fi # as_fn_append
12744
12745# as_fn_arith ARG...
12746# ------------------
12747# Perform arithmetic evaluation on the ARGs, and store the result in the
12748# global $as_val. Take advantage of shells that can avoid forks. The arguments
12749# must be portable across $(()) and expr.
12750if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12751 eval 'as_fn_arith ()
12752 {
12753 as_val=$(( $* ))
12754 }'
12755else
12756 as_fn_arith ()
12757 {
12758 as_val=`expr "$@" || test $? -eq 1`
12759 }
12760fi # as_fn_arith
12761
252b5132 12762
81ecdfbb
RW
12763if expr a : '\(a\)' >/dev/null 2>&1 &&
12764 test "X`expr 00001 : '.*\(...\)'`" = X001; then
979273e3
NN
12765 as_expr=expr
12766else
12767 as_expr=false
12768fi
12769
81ecdfbb 12770if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
979273e3
NN
12771 as_basename=basename
12772else
12773 as_basename=false
12774fi
252b5132 12775
81ecdfbb
RW
12776if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12777 as_dirname=dirname
12778else
12779 as_dirname=false
12780fi
252b5132 12781
81ecdfbb 12782as_me=`$as_basename -- "$0" ||
979273e3
NN
12783$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12784 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
12785 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12786$as_echo X/"$0" |
12787 sed '/^.*\/\([^/][^/]*\)\/*$/{
12788 s//\1/
12789 q
12790 }
12791 /^X\/\(\/\/\)$/{
12792 s//\1/
12793 q
12794 }
12795 /^X\/\(\/\).*/{
12796 s//\1/
12797 q
12798 }
12799 s/.*/./; q'`
252b5132 12800
979273e3
NN
12801# Avoid depending upon Character Ranges.
12802as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12803as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12804as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12805as_cr_digits='0123456789'
12806as_cr_alnum=$as_cr_Letters$as_cr_digits
12807
81ecdfbb
RW
12808ECHO_C= ECHO_N= ECHO_T=
12809case `echo -n x` in #(((((
12810-n*)
12811 case `echo 'xy\c'` in
12812 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12813 xy) ECHO_C='\c';;
12814 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12815 ECHO_T=' ';;
12816 esac;;
12817*)
12818 ECHO_N='-n';;
979273e3
NN
12819esac
12820
81ecdfbb
RW
12821rm -f conf$$ conf$$.exe conf$$.file
12822if test -d conf$$.dir; then
12823 rm -f conf$$.dir/conf$$.file
979273e3 12824else
81ecdfbb
RW
12825 rm -f conf$$.dir
12826 mkdir conf$$.dir 2>/dev/null
979273e3 12827fi
81ecdfbb
RW
12828if (echo >conf$$.file) 2>/dev/null; then
12829 if ln -s conf$$.file conf$$ 2>/dev/null; then
979273e3 12830 as_ln_s='ln -s'
81ecdfbb
RW
12831 # ... but there are two gotchas:
12832 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12833 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12834 # In both cases, we have to default to `cp -p'.
12835 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12836 as_ln_s='cp -p'
12837 elif ln conf$$.file conf$$ 2>/dev/null; then
12838 as_ln_s=ln
12839 else
12840 as_ln_s='cp -p'
252b5132 12841 fi
979273e3
NN
12842else
12843 as_ln_s='cp -p'
12844fi
81ecdfbb
RW
12845rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12846rmdir conf$$.dir 2>/dev/null
12847
12848
12849# as_fn_mkdir_p
12850# -------------
12851# Create "$as_dir" as a directory, including parents if necessary.
12852as_fn_mkdir_p ()
12853{
12854
12855 case $as_dir in #(
12856 -*) as_dir=./$as_dir;;
12857 esac
12858 test -d "$as_dir" || eval $as_mkdir_p || {
12859 as_dirs=
12860 while :; do
12861 case $as_dir in #(
12862 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12863 *) as_qdir=$as_dir;;
12864 esac
12865 as_dirs="'$as_qdir' $as_dirs"
12866 as_dir=`$as_dirname -- "$as_dir" ||
12867$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12868 X"$as_dir" : 'X\(//\)[^/]' \| \
12869 X"$as_dir" : 'X\(//\)$' \| \
12870 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12871$as_echo X"$as_dir" |
12872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12873 s//\1/
12874 q
12875 }
12876 /^X\(\/\/\)[^/].*/{
12877 s//\1/
12878 q
12879 }
12880 /^X\(\/\/\)$/{
12881 s//\1/
12882 q
12883 }
12884 /^X\(\/\).*/{
12885 s//\1/
12886 q
12887 }
12888 s/.*/./; q'`
12889 test -d "$as_dir" && break
12890 done
12891 test -z "$as_dirs" || eval "mkdir $as_dirs"
12892 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
979273e3 12893
81ecdfbb
RW
12894
12895} # as_fn_mkdir_p
979273e3 12896if mkdir -p . 2>/dev/null; then
81ecdfbb 12897 as_mkdir_p='mkdir -p "$as_dir"'
979273e3
NN
12898else
12899 test -d ./-p && rmdir ./-p
12900 as_mkdir_p=false
12901fi
12902
81ecdfbb
RW
12903if test -x / >/dev/null 2>&1; then
12904 as_test_x='test -x'
12905else
12906 if ls -dL / >/dev/null 2>&1; then
12907 as_ls_L_option=L
12908 else
12909 as_ls_L_option=
12910 fi
12911 as_test_x='
12912 eval sh -c '\''
12913 if test -d "$1"; then
12914 test -d "$1/.";
12915 else
12916 case $1 in #(
12917 -*)set "./$1";;
12918 esac;
12919 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12920 ???[sx]*):;;*)false;;esac;fi
12921 '\'' sh
12922 '
12923fi
12924as_executable_p=$as_test_x
979273e3
NN
12925
12926# Sed expression to map a string onto a valid CPP name.
12927as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12928
12929# Sed expression to map a string onto a valid variable name.
12930as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12931
12932
979273e3 12933exec 6>&1
81ecdfbb
RW
12934## ----------------------------------- ##
12935## Main body of $CONFIG_STATUS script. ##
12936## ----------------------------------- ##
12937_ASEOF
12938test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
979273e3 12939
81ecdfbb
RW
12940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12941# Save the log message, to keep $0 and so on meaningful, and to
979273e3 12942# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
12943# values after options handling.
12944ac_log="
979273e3 12945This file was extended by $as_me, which was
81ecdfbb 12946generated by GNU Autoconf 2.64. Invocation command line was
979273e3
NN
12947
12948 CONFIG_FILES = $CONFIG_FILES
12949 CONFIG_HEADERS = $CONFIG_HEADERS
12950 CONFIG_LINKS = $CONFIG_LINKS
12951 CONFIG_COMMANDS = $CONFIG_COMMANDS
12952 $ $0 $@
12953
81ecdfbb
RW
12954on `(hostname || uname -n) 2>/dev/null | sed 1q`
12955"
12956
979273e3
NN
12957_ACEOF
12958
81ecdfbb
RW
12959case $ac_config_files in *"
12960"*) set x $ac_config_files; shift; ac_config_files=$*;;
12961esac
979273e3 12962
81ecdfbb
RW
12963case $ac_config_headers in *"
12964"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12965esac
979273e3 12966
979273e3 12967
81ecdfbb
RW
12968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12969# Files that config.status was made for.
12970config_files="$ac_config_files"
12971config_headers="$ac_config_headers"
12972config_commands="$ac_config_commands"
979273e3 12973
81ecdfbb 12974_ACEOF
979273e3 12975
81ecdfbb 12976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
979273e3 12977ac_cs_usage="\
81ecdfbb
RW
12978\`$as_me' instantiates files and other configuration actions
12979from templates according to the current configuration. Unless the files
12980and actions are specified as TAGs, all are instantiated by default.
979273e3 12981
81ecdfbb 12982Usage: $0 [OPTION]... [TAG]...
979273e3
NN
12983
12984 -h, --help print this help, then exit
81ecdfbb
RW
12985 -V, --version print version number and configuration settings, then exit
12986 -q, --quiet, --silent
12987 do not print progress messages
979273e3
NN
12988 -d, --debug don't remove temporary files
12989 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
12990 --file=FILE[:TEMPLATE]
12991 instantiate the configuration file FILE
12992 --header=FILE[:TEMPLATE]
12993 instantiate the configuration header FILE
979273e3
NN
12994
12995Configuration files:
12996$config_files
12997
12998Configuration headers:
12999$config_headers
13000
13001Configuration commands:
13002$config_commands
13003
81ecdfbb 13004Report bugs to the package provider."
979273e3 13005
81ecdfbb
RW
13006_ACEOF
13007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
979273e3
NN
13008ac_cs_version="\\
13009config.status
81ecdfbb
RW
13010configured by $0, generated by GNU Autoconf 2.64,
13011 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
979273e3 13012
81ecdfbb 13013Copyright (C) 2009 Free Software Foundation, Inc.
979273e3
NN
13014This config.status script is free software; the Free Software Foundation
13015gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
13016
13017ac_pwd='$ac_pwd'
13018srcdir='$srcdir'
13019INSTALL='$INSTALL'
13020MKDIR_P='$MKDIR_P'
13021AWK='$AWK'
13022test -n "\$AWK" || AWK=awk
979273e3
NN
13023_ACEOF
13024
81ecdfbb
RW
13025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13026# The default lists apply if the user does not specify any file.
979273e3
NN
13027ac_need_defaults=:
13028while test $# != 0
13029do
13030 case $1 in
13031 --*=*)
81ecdfbb
RW
13032 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13033 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
979273e3
NN
13034 ac_shift=:
13035 ;;
81ecdfbb 13036 *)
979273e3
NN
13037 ac_option=$1
13038 ac_optarg=$2
13039 ac_shift=shift
13040 ;;
979273e3
NN
13041 esac
13042
13043 case $ac_option in
13044 # Handling of the options.
979273e3
NN
13045 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13046 ac_cs_recheck=: ;;
81ecdfbb
RW
13047 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13048 $as_echo "$ac_cs_version"; exit ;;
13049 --debug | --debu | --deb | --de | --d | -d )
979273e3
NN
13050 debug=: ;;
13051 --file | --fil | --fi | --f )
13052 $ac_shift
81ecdfbb
RW
13053 case $ac_optarg in
13054 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13055 esac
13056 as_fn_append CONFIG_FILES " '$ac_optarg'"
979273e3
NN
13057 ac_need_defaults=false;;
13058 --header | --heade | --head | --hea )
13059 $ac_shift
81ecdfbb
RW
13060 case $ac_optarg in
13061 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13062 esac
13063 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
979273e3 13064 ac_need_defaults=false;;
81ecdfbb
RW
13065 --he | --h)
13066 # Conflict between --help and --header
13067 as_fn_error "ambiguous option: \`$1'
13068Try \`$0 --help' for more information.";;
13069 --help | --hel | -h )
13070 $as_echo "$ac_cs_usage"; exit ;;
979273e3
NN
13071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13072 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13073 ac_cs_silent=: ;;
13074
13075 # This is an error.
81ecdfbb
RW
13076 -*) as_fn_error "unrecognized option: \`$1'
13077Try \`$0 --help' for more information." ;;
979273e3 13078
81ecdfbb
RW
13079 *) as_fn_append ac_config_targets " $1"
13080 ac_need_defaults=false ;;
979273e3
NN
13081
13082 esac
13083 shift
252b5132 13084done
979273e3
NN
13085
13086ac_configure_extra_args=
13087
13088if $ac_cs_silent; then
13089 exec 6>/dev/null
13090 ac_configure_extra_args="$ac_configure_extra_args --silent"
252b5132 13091fi
252b5132 13092
979273e3 13093_ACEOF
81ecdfbb 13094cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
979273e3 13095if \$ac_cs_recheck; then
81ecdfbb
RW
13096 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13097 shift
13098 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13099 CONFIG_SHELL='$SHELL'
13100 export CONFIG_SHELL
13101 exec "\$@"
979273e3 13102fi
252b5132 13103
979273e3 13104_ACEOF
81ecdfbb
RW
13105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13106exec 5>>config.log
13107{
13108 echo
13109 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13110## Running $as_me. ##
13111_ASBOX
13112 $as_echo "$ac_log"
13113} >&5
979273e3 13114
81ecdfbb
RW
13115_ACEOF
13116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
979273e3 13117#
81ecdfbb 13118# INIT-COMMANDS
979273e3 13119#
8ae85421 13120AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
13121
13122
13123# The HP-UX ksh and POSIX shell print the target directory to stdout
13124# if CDPATH is set.
13125(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13126
13127sed_quote_subst='$sed_quote_subst'
13128double_quote_subst='$double_quote_subst'
13129delay_variable_subst='$delay_variable_subst'
13130enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13131macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13132macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13133enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13134pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13135enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13136host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13137host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13138host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13139build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13140build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13141build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13142SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13143Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13144GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13145EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13146FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13147LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13148NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13149LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13150max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13151ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13152exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13153lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13154lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13155lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13156reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13157reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
1927a18f 13158OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
13159deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13160file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13161AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13162AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13163STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13164RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13165old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13166old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13167old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13168CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13169CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13170compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13171GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13172lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13173lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13174lt_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"`'
1927a18f 13175lt_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
13176objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13177SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13178ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13179MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13180lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13181lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13182lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13183lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13184lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13185need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
1927a18f
L
13186DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13187NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13188LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13189OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13190OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
13191libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13192shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13193extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13194archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13195enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13196export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13197whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13198compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13199old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13200old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13201archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13202archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13203module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13204module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13205with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13206allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13207no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13208hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13209hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13210hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13211hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13212hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13213hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13214hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13215hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13216inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13217link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13218fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13219always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13220export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13221exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13222include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13223prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13224file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13225variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13226need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13227need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13228version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13229runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13230shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13231shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13232libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13233library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13234soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13235postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13236postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13237finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13238finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13239hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13240sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13241sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13242hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13243enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13244enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13245enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13246old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13247striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13248
13249LTCC='$LTCC'
13250LTCFLAGS='$LTCFLAGS'
13251compiler='$compiler_DEFAULT'
13252
13253# Quote evaled strings.
13254for var in SED \
13255GREP \
13256EGREP \
13257FGREP \
13258LD \
13259NM \
13260LN_S \
13261lt_SP2NL \
13262lt_NL2SP \
13263reload_flag \
1927a18f 13264OBJDUMP \
d7040cdb
SE
13265deplibs_check_method \
13266file_magic_cmd \
13267AR \
13268AR_FLAGS \
13269STRIP \
13270RANLIB \
13271CC \
13272CFLAGS \
13273compiler \
13274lt_cv_sys_global_symbol_pipe \
13275lt_cv_sys_global_symbol_to_cdecl \
13276lt_cv_sys_global_symbol_to_c_name_address \
1927a18f 13277lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
13278SHELL \
13279ECHO \
13280lt_prog_compiler_no_builtin_flag \
13281lt_prog_compiler_wl \
13282lt_prog_compiler_pic \
13283lt_prog_compiler_static \
13284lt_cv_prog_compiler_c_o \
13285need_locks \
1927a18f
L
13286DSYMUTIL \
13287NMEDIT \
13288LIPO \
13289OTOOL \
13290OTOOL64 \
d7040cdb
SE
13291shrext_cmds \
13292export_dynamic_flag_spec \
13293whole_archive_flag_spec \
13294compiler_needs_object \
13295with_gnu_ld \
13296allow_undefined_flag \
13297no_undefined_flag \
13298hardcode_libdir_flag_spec \
13299hardcode_libdir_flag_spec_ld \
13300hardcode_libdir_separator \
13301fix_srcfile_path \
13302exclude_expsyms \
13303include_expsyms \
13304file_list_spec \
13305variables_saved_for_relink \
13306libname_spec \
13307library_names_spec \
13308soname_spec \
13309finish_eval \
13310old_striplib \
13311striplib; do
13312 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13313 *[\\\\\\\`\\"\\\$]*)
13314 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13315 ;;
13316 *)
13317 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13318 ;;
13319 esac
13320done
13321
13322# Double-quote double-evaled strings.
13323for var in reload_cmds \
13324old_postinstall_cmds \
13325old_postuninstall_cmds \
13326old_archive_cmds \
13327extract_expsyms_cmds \
13328old_archive_from_new_cmds \
13329old_archive_from_expsyms_cmds \
13330archive_cmds \
13331archive_expsym_cmds \
13332module_cmds \
13333module_expsym_cmds \
13334export_symbols_cmds \
13335prelink_cmds \
13336postinstall_cmds \
13337postuninstall_cmds \
13338finish_cmds \
13339sys_lib_search_path_spec \
13340sys_lib_dlsearch_path_spec; do
13341 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13342 *[\\\\\\\`\\"\\\$]*)
13343 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13344 ;;
13345 *)
13346 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13347 ;;
13348 esac
13349done
13350
13351# Fix-up fallback echo if it was mangled by the above quoting rules.
13352case \$lt_ECHO in
13353*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13354 ;;
13355esac
13356
13357ac_aux_dir='$ac_aux_dir'
13358xsi_shell='$xsi_shell'
13359lt_shell_append='$lt_shell_append'
13360
13361# See if we are running on zsh, and set the options which allow our
13362# commands through without removal of \ escapes INIT.
13363if test -n "\${ZSH_VERSION+set}" ; then
13364 setopt NO_GLOB_SUBST
13365fi
13366
13367
13368 PACKAGE='$PACKAGE'
13369 VERSION='$VERSION'
13370 TIMESTAMP='$TIMESTAMP'
13371 RM='$RM'
13372 ofile='$ofile'
13373
13374
13375
20e95c23
DJ
13376# Capture the value of obsolete ALL_LINGUAS because we need it to compute
13377 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13378 # from automake.
13379 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13380 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13381 LINGUAS="${LINGUAS-%UNSET%}"
979273e3
NN
13382
13383
13384_ACEOF
13385
81ecdfbb 13386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
979273e3 13387
81ecdfbb 13388# Handling of arguments.
979273e3
NN
13389for ac_config_target in $ac_config_targets
13390do
81ecdfbb
RW
13391 case $ac_config_target in
13392 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13393 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13394 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13395 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13396 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13397 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13398
13399 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132 13400 esac
979273e3 13401done
252b5132 13402
81ecdfbb 13403
979273e3
NN
13404# If the user did not use the arguments to specify the items to instantiate,
13405# then the envvar interface is used. Set only those that are not.
13406# We use the long form for the default assignment because of an extremely
13407# bizarre bug on SunOS 4.1.3.
13408if $ac_need_defaults; then
13409 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13410 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13411 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13412fi
13413
13414# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 13415# simply because there is no reason against having it here, and in addition,
979273e3 13416# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
13417# Hook for its removal unless debugging.
13418# Note that there is a small window in which the directory will not be cleaned:
13419# after its creation but before its name has been assigned to `$tmp'.
979273e3
NN
13420$debug ||
13421{
81ecdfbb
RW
13422 tmp=
13423 trap 'exit_status=$?
13424 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13425' 0
13426 trap 'as_fn_exit 1' 1 2 13 15
979273e3 13427}
979273e3
NN
13428# Create a (secure) tmp directory for tmp files.
13429
13430{
81ecdfbb 13431 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
979273e3
NN
13432 test -n "$tmp" && test -d "$tmp"
13433} ||
13434{
81ecdfbb
RW
13435 tmp=./conf$$-$RANDOM
13436 (umask 077 && mkdir "$tmp")
13437} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13438
13439# Set up the scripts for CONFIG_FILES section.
13440# No need to generate them if there are no CONFIG_FILES.
13441# This happens for instance with `./config.status config.h'.
13442if test -n "$CONFIG_FILES"; then
13443
13444
13445ac_cr=`echo X | tr X '\015'`
13446# On cygwin, bash can eat \r inside `` if the user requested igncr.
13447# But we know of no other shell where ac_cr would be empty at this
13448# point, so we can use a bashism as a fallback.
13449if test "x$ac_cr" = x; then
13450 eval ac_cr=\$\'\\r\'
13451fi
13452ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13453if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13454 ac_cs_awk_cr='\r'
13455else
13456 ac_cs_awk_cr=$ac_cr
13457fi
13458
13459echo 'BEGIN {' >"$tmp/subs1.awk" &&
13460_ACEOF
13461
13462
13463{
13464 echo "cat >conf$$subs.awk <<_ACEOF" &&
13465 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13466 echo "_ACEOF"
13467} >conf$$subs.sh ||
13468 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13469ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13470ac_delim='%!_!# '
13471for ac_last_try in false false false false false :; do
13472 . ./conf$$subs.sh ||
13473 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13474
13475 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13476 if test $ac_delim_n = $ac_delim_num; then
13477 break
13478 elif $ac_last_try; then
13479 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13480 else
13481 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13482 fi
13483done
13484rm -f conf$$subs.sh
13485
13486cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13487cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13488_ACEOF
13489sed -n '
13490h
13491s/^/S["/; s/!.*/"]=/
13492p
13493g
13494s/^[^!]*!//
13495:repl
13496t repl
13497s/'"$ac_delim"'$//
13498t delim
13499:nl
13500h
13501s/\(.\{148\}\).*/\1/
13502t more1
13503s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13504p
13505n
13506b repl
13507:more1
13508s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13509p
13510g
13511s/.\{148\}//
13512t nl
13513:delim
13514h
13515s/\(.\{148\}\).*/\1/
13516t more2
13517s/["\\]/\\&/g; s/^/"/; s/$/"/
13518p
13519b
13520:more2
13521s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13522p
13523g
13524s/.\{148\}//
13525t delim
13526' <conf$$subs.awk | sed '
13527/^[^""]/{
13528 N
13529 s/\n//
13530}
13531' >>$CONFIG_STATUS || ac_write_fail=1
13532rm -f conf$$subs.awk
13533cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13534_ACAWK
13535cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13536 for (key in S) S_is_set[key] = 1
13537 FS = "\a"
13538
13539}
979273e3 13540{
81ecdfbb
RW
13541 line = $ 0
13542 nfields = split(line, field, "@")
13543 substed = 0
13544 len = length(field[1])
13545 for (i = 2; i < nfields; i++) {
13546 key = field[i]
13547 keylen = length(key)
13548 if (S_is_set[key]) {
13549 value = S[key]
13550 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13551 len += length(value) + length(field[++i])
13552 substed = 1
13553 } else
13554 len += 1 + keylen
13555 }
13556
13557 print line
979273e3
NN
13558}
13559
81ecdfbb
RW
13560_ACAWK
13561_ACEOF
13562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13563if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13564 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13565else
13566 cat
13567fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13568 || as_fn_error "could not setup config files machinery" "$LINENO" 5
979273e3
NN
13569_ACEOF
13570
81ecdfbb
RW
13571# VPATH may cause trouble with some makes, so we remove $(srcdir),
13572# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13573# trailing colons and then remove the whole line if VPATH becomes empty
13574# (actually we leave an empty line to preserve line numbers).
13575if test "x$srcdir" = x.; then
13576 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13577s/:*\$(srcdir):*/:/
13578s/:*\${srcdir}:*/:/
13579s/:*@srcdir@:*/:/
13580s/^\([^=]*=[ ]*\):*/\1/
13581s/:*$//
13582s/^[^=]*=[ ]*$//
13583}'
13584fi
13585
13586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13587fi # test -n "$CONFIG_FILES"
979273e3 13588
81ecdfbb
RW
13589# Set up the scripts for CONFIG_HEADERS section.
13590# No need to generate them if there are no CONFIG_HEADERS.
13591# This happens for instance with `./config.status Makefile'.
13592if test -n "$CONFIG_HEADERS"; then
13593cat >"$tmp/defines.awk" <<\_ACAWK ||
13594BEGIN {
13595_ACEOF
979273e3 13596
81ecdfbb
RW
13597# Transform confdefs.h into an awk script `defines.awk', embedded as
13598# here-document in config.status, that substitutes the proper values into
13599# config.h.in to produce config.h.
979273e3 13600
81ecdfbb
RW
13601# Create a delimiter string that does not exist in confdefs.h, to ease
13602# handling of long lines.
13603ac_delim='%!_!# '
13604for ac_last_try in false false :; do
13605 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13606 if test -z "$ac_t"; then
13607 break
13608 elif $ac_last_try; then
13609 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13610 else
13611 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13612 fi
13613done
13614
13615# For the awk script, D is an array of macro values keyed by name,
13616# likewise P contains macro parameters if any. Preserve backslash
13617# newline sequences.
13618
13619ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13620sed -n '
13621s/.\{148\}/&'"$ac_delim"'/g
13622t rset
13623:rset
13624s/^[ ]*#[ ]*define[ ][ ]*/ /
13625t def
13626d
13627:def
13628s/\\$//
13629t bsnl
13630s/["\\]/\\&/g
13631s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13632D["\1"]=" \3"/p
13633s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13634d
13635:bsnl
13636s/["\\]/\\&/g
13637s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13638D["\1"]=" \3\\\\\\n"\\/p
13639t cont
13640s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13641t cont
13642d
13643:cont
13644n
13645s/.\{148\}/&'"$ac_delim"'/g
13646t clear
13647:clear
13648s/\\$//
13649t bsnlc
13650s/["\\]/\\&/g; s/^/"/; s/$/"/p
13651d
13652:bsnlc
13653s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13654b cont
13655' <confdefs.h | sed '
13656s/'"$ac_delim"'/"\\\
13657"/g' >>$CONFIG_STATUS || ac_write_fail=1
13658
13659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13660 for (key in D) D_is_set[key] = 1
13661 FS = "\a"
13662}
13663/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13664 line = \$ 0
13665 split(line, arg, " ")
13666 if (arg[1] == "#") {
13667 defundef = arg[2]
13668 mac1 = arg[3]
13669 } else {
13670 defundef = substr(arg[1], 2)
13671 mac1 = arg[2]
13672 }
13673 split(mac1, mac2, "(") #)
13674 macro = mac2[1]
13675 prefix = substr(line, 1, index(line, defundef) - 1)
13676 if (D_is_set[macro]) {
13677 # Preserve the white space surrounding the "#".
13678 print prefix "define", macro P[macro] D[macro]
13679 next
13680 } else {
13681 # Replace #undef with comments. This is necessary, for example,
13682 # in the case of _POSIX_SOURCE, which is predefined and required
13683 # on some systems where configure will not decide to define it.
13684 if (defundef == "undef") {
13685 print "/*", prefix defundef, macro, "*/"
13686 next
13687 }
13688 }
13689}
13690{ print }
13691_ACAWK
979273e3 13692_ACEOF
81ecdfbb
RW
13693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13694 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13695fi # test -n "$CONFIG_HEADERS"
979273e3 13696
81ecdfbb
RW
13697
13698eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13699shift
13700for ac_tag
13701do
13702 case $ac_tag in
13703 :[FHLC]) ac_mode=$ac_tag; continue;;
13704 esac
13705 case $ac_mode$ac_tag in
13706 :[FHL]*:*);;
13707 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13708 :[FH]-) ac_tag=-:-;;
13709 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13710 esac
13711 ac_save_IFS=$IFS
13712 IFS=:
13713 set x $ac_tag
13714 IFS=$ac_save_IFS
13715 shift
13716 ac_file=$1
13717 shift
13718
13719 case $ac_mode in
13720 :L) ac_source=$1;;
13721 :[FH])
13722 ac_file_inputs=
13723 for ac_f
13724 do
13725 case $ac_f in
13726 -) ac_f="$tmp/stdin";;
13727 *) # Look for the file first in the build tree, then in the source tree
13728 # (if the path is not absolute). The absolute path cannot be DOS-style,
13729 # because $ac_f cannot contain `:'.
13730 test -f "$ac_f" ||
13731 case $ac_f in
13732 [\\/$]*) false;;
13733 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13734 esac ||
13735 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13736 esac
13737 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13738 as_fn_append ac_file_inputs " '$ac_f'"
13739 done
13740
13741 # Let's still pretend it is `configure' which instantiates (i.e., don't
13742 # use $as_me), people would be surprised to read:
13743 # /* config.h. Generated by config.status. */
13744 configure_input='Generated from '`
13745 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13746 `' by configure.'
13747 if test x"$ac_file" != x-; then
13748 configure_input="$ac_file. $configure_input"
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13750$as_echo "$as_me: creating $ac_file" >&6;}
979273e3 13751 fi
81ecdfbb
RW
13752 # Neutralize special characters interpreted by sed in replacement strings.
13753 case $configure_input in #(
13754 *\&* | *\|* | *\\* )
13755 ac_sed_conf_input=`$as_echo "$configure_input" |
13756 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13757 *) ac_sed_conf_input=$configure_input;;
13758 esac
252b5132 13759
81ecdfbb
RW
13760 case $ac_tag in
13761 *:-:* | *:-) cat >"$tmp/stdin" \
13762 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13763 esac
13764 ;;
252b5132
RH
13765 esac
13766
81ecdfbb 13767 ac_dir=`$as_dirname -- "$ac_file" ||
979273e3
NN
13768$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13769 X"$ac_file" : 'X\(//\)[^/]' \| \
13770 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
13771 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13772$as_echo X"$ac_file" |
13773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13774 s//\1/
13775 q
13776 }
13777 /^X\(\/\/\)[^/].*/{
13778 s//\1/
13779 q
13780 }
13781 /^X\(\/\/\)$/{
13782 s//\1/
13783 q
13784 }
13785 /^X\(\/\).*/{
13786 s//\1/
13787 q
13788 }
13789 s/.*/./; q'`
13790 as_dir="$ac_dir"; as_fn_mkdir_p
979273e3
NN
13791 ac_builddir=.
13792
81ecdfbb
RW
13793case "$ac_dir" in
13794.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13795*)
13796 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13797 # A ".." for each directory in $ac_dir_suffix.
13798 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13799 case $ac_top_builddir_sub in
13800 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13801 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13802 esac ;;
13803esac
13804ac_abs_top_builddir=$ac_pwd
13805ac_abs_builddir=$ac_pwd$ac_dir_suffix
13806# for backward compatibility:
13807ac_top_builddir=$ac_top_build_prefix
979273e3
NN
13808
13809case $srcdir in
81ecdfbb 13810 .) # We are building in place.
979273e3 13811 ac_srcdir=.
81ecdfbb
RW
13812 ac_top_srcdir=$ac_top_builddir_sub
13813 ac_abs_top_srcdir=$ac_pwd ;;
13814 [\\/]* | ?:[\\/]* ) # Absolute name.
979273e3 13815 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
13816 ac_top_srcdir=$srcdir
13817 ac_abs_top_srcdir=$srcdir ;;
13818 *) # Relative name.
13819 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13820 ac_top_srcdir=$ac_top_build_prefix$srcdir
13821 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
979273e3 13822esac
81ecdfbb 13823ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
979273e3 13824
252b5132 13825
81ecdfbb
RW
13826 case $ac_mode in
13827 :F)
13828 #
13829 # CONFIG_FILE
13830 #
979273e3
NN
13831
13832 case $INSTALL in
13833 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
13834 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13835 esac
13836 ac_MKDIR_P=$MKDIR_P
13837 case $MKDIR_P in
13838 [\\/$]* | ?:[\\/]* ) ;;
13839 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
252b5132 13840 esac
81ecdfbb 13841_ACEOF
252b5132 13842
81ecdfbb
RW
13843cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13844# If the template does not know about datarootdir, expand it.
13845# FIXME: This hack should be removed a few years after 2.60.
13846ac_datarootdir_hack=; ac_datarootdir_seen=
13847ac_sed_dataroot='
13848/datarootdir/ {
13849 p
13850 q
13851}
13852/@datadir@/p
13853/@docdir@/p
13854/@infodir@/p
13855/@localedir@/p
13856/@mandir@/p'
13857case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13858*datarootdir*) ac_datarootdir_seen=yes;;
13859*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13861$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13862_ACEOF
13863cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13864 ac_datarootdir_hack='
13865 s&@datadir@&$datadir&g
13866 s&@docdir@&$docdir&g
13867 s&@infodir@&$infodir&g
13868 s&@localedir@&$localedir&g
13869 s&@mandir@&$mandir&g
13870 s&\\\${datarootdir}&$datarootdir&g' ;;
13871esac
979273e3 13872_ACEOF
81ecdfbb
RW
13873
13874# Neutralize VPATH when `$srcdir' = `.'.
13875# Shell code in configure.ac might set extrasub.
13876# FIXME: do we really want to maintain this feature?
13877cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13878ac_sed_extra="$ac_vpsub
979273e3
NN
13879$extrasub
13880_ACEOF
81ecdfbb 13881cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
979273e3
NN
13882:t
13883/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
13884s|@configure_input@|$ac_sed_conf_input|;t t
13885s&@top_builddir@&$ac_top_builddir_sub&;t t
13886s&@top_build_prefix@&$ac_top_build_prefix&;t t
13887s&@srcdir@&$ac_srcdir&;t t
13888s&@abs_srcdir@&$ac_abs_srcdir&;t t
13889s&@top_srcdir@&$ac_top_srcdir&;t t
13890s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13891s&@builddir@&$ac_builddir&;t t
13892s&@abs_builddir@&$ac_abs_builddir&;t t
13893s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13894s&@INSTALL@&$ac_INSTALL&;t t
13895s&@MKDIR_P@&$ac_MKDIR_P&;t t
13896$ac_datarootdir_hack
13897"
13898eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13899 || as_fn_error "could not create $ac_file" "$LINENO" 5
13900
13901test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13902 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13903 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13905which seems to be undefined. Please make sure it is defined." >&5
13906$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13907which seems to be undefined. Please make sure it is defined." >&2;}
13908
13909 rm -f "$tmp/stdin"
979273e3 13910 case $ac_file in
81ecdfbb
RW
13911 -) cat "$tmp/out" && rm -f "$tmp/out";;
13912 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13913 esac \
13914 || as_fn_error "could not create $ac_file" "$LINENO" 5
13915 ;;
13916 :H)
13917 #
13918 # CONFIG_HEADER
13919 #
979273e3 13920 if test x"$ac_file" != x-; then
81ecdfbb
RW
13921 {
13922 $as_echo "/* $configure_input */" \
13923 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13924 } >"$tmp/config.h" \
13925 || as_fn_error "could not create $ac_file" "$LINENO" 5
13926 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13928$as_echo "$as_me: $ac_file is unchanged" >&6;}
979273e3 13929 else
81ecdfbb
RW
13930 rm -f "$ac_file"
13931 mv "$tmp/config.h" "$ac_file" \
13932 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 13933 fi
979273e3 13934 else
81ecdfbb
RW
13935 $as_echo "/* $configure_input */" \
13936 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13937 || as_fn_error "could not create -" "$LINENO" 5
252b5132 13938 fi
81ecdfbb
RW
13939# Compute "$ac_file"'s index in $config_headers.
13940_am_arg="$ac_file"
8ae85421
AM
13941_am_stamp_count=1
13942for _am_header in $config_headers :; do
13943 case $_am_header in
81ecdfbb 13944 $_am_arg | $_am_arg:* )
8ae85421
AM
13945 break ;;
13946 * )
13947 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13948 esac
13949done
81ecdfbb
RW
13950echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13951$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13952 X"$_am_arg" : 'X\(//\)[^/]' \| \
13953 X"$_am_arg" : 'X\(//\)$' \| \
13954 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13955$as_echo X"$_am_arg" |
13956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13957 s//\1/
13958 q
13959 }
13960 /^X\(\/\/\)[^/].*/{
13961 s//\1/
13962 q
13963 }
13964 /^X\(\/\/\)$/{
13965 s//\1/
13966 q
13967 }
13968 /^X\(\/\).*/{
13969 s//\1/
13970 q
13971 }
13972 s/.*/./; q'`/stamp-h$_am_stamp_count
13973 ;;
979273e3 13974
81ecdfbb
RW
13975 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13976$as_echo "$as_me: executing $ac_file commands" >&6;}
13977 ;;
13978 esac
979273e3
NN
13979
13980
81ecdfbb
RW
13981 case $ac_file$ac_mode in
13982 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13983 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13984 # are listed without --file. Let's play safe and only enable the eval
13985 # if we detect the quoting.
13986 case $CONFIG_FILES in
13987 *\'*) eval set x "$CONFIG_FILES" ;;
13988 *) set x $CONFIG_FILES ;;
13989 esac
13990 shift
13991 for mf
13992 do
13993 # Strip MF so we end up with the name of the file.
13994 mf=`echo "$mf" | sed -e 's/:.*$//'`
13995 # Check whether this is an Automake generated Makefile or not.
13996 # We used to match only the files named `Makefile.in', but
13997 # some people rename them; so instead we look at the file content.
13998 # Grep'ing the first line is not enough: some people post-process
13999 # each Makefile.in and add a new line on top of each file to say so.
14000 # Grep'ing the whole file is not good either: AIX grep has a line
14001 # limit of 2048, but all sed's we know have understand at least 4000.
14002 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14003 dirpart=`$as_dirname -- "$mf" ||
8ae85421
AM
14004$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14005 X"$mf" : 'X\(//\)[^/]' \| \
14006 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
14007 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14008$as_echo X"$mf" |
14009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14010 s//\1/
14011 q
14012 }
14013 /^X\(\/\/\)[^/].*/{
14014 s//\1/
14015 q
14016 }
14017 /^X\(\/\/\)$/{
14018 s//\1/
14019 q
14020 }
14021 /^X\(\/\).*/{
14022 s//\1/
14023 q
14024 }
14025 s/.*/./; q'`
14026 else
14027 continue
14028 fi
14029 # Extract the definition of DEPDIR, am__include, and am__quote
14030 # from the Makefile without running `make'.
14031 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14032 test -z "$DEPDIR" && continue
14033 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14034 test -z "am__include" && continue
14035 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14036 # When using ansi2knr, U may be empty or an underscore; expand it
14037 U=`sed -n 's/^U = //p' < "$mf"`
14038 # Find all dependency output files, they are included files with
14039 # $(DEPDIR) in their names. We invoke sed twice because it is the
14040 # simplest approach to changing $(DEPDIR) to its actual value in the
14041 # expansion.
14042 for file in `sed -n "
14043 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14044 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14045 # Make sure the directory exists.
14046 test -f "$dirpart/$file" && continue
14047 fdir=`$as_dirname -- "$file" ||
8ae85421
AM
14048$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14049 X"$file" : 'X\(//\)[^/]' \| \
14050 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
14051 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14052$as_echo X"$file" |
14053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14054 s//\1/
14055 q
14056 }
14057 /^X\(\/\/\)[^/].*/{
14058 s//\1/
14059 q
14060 }
14061 /^X\(\/\/\)$/{
14062 s//\1/
14063 q
14064 }
14065 /^X\(\/\).*/{
14066 s//\1/
14067 q
14068 }
14069 s/.*/./; q'`
14070 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14071 # echo "creating $dirpart/$file"
14072 echo '# dummy' > "$dirpart/$file"
8ae85421 14073 done
8ae85421 14074 done
81ecdfbb 14075}
d7040cdb 14076 ;;
81ecdfbb 14077 "libtool":C)
d7040cdb
SE
14078
14079 # See if we are running on zsh, and set the options which allow our
14080 # commands through without removal of \ escapes.
14081 if test -n "${ZSH_VERSION+set}" ; then
14082 setopt NO_GLOB_SUBST
14083 fi
14084
14085 cfgfile="${ofile}T"
14086 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14087 $RM "$cfgfile"
14088
14089 cat <<_LT_EOF >> "$cfgfile"
14090#! $SHELL
14091
14092# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1927a18f 14093# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
14094# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14095# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14096#
1927a18f
L
14097# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14098# 2006, 2007, 2008 Free Software Foundation, Inc.
14099# Written by Gordon Matzigkeit, 1996
d7040cdb 14100#
1927a18f 14101# This file is part of GNU Libtool.
d7040cdb 14102#
1927a18f
L
14103# GNU Libtool is free software; you can redistribute it and/or
14104# modify it under the terms of the GNU General Public License as
14105# published by the Free Software Foundation; either version 2 of
14106# the License, or (at your option) any later version.
d7040cdb 14107#
1927a18f
L
14108# As a special exception to the GNU General Public License,
14109# if you distribute this file as part of a program or library that
14110# is built using GNU Libtool, you may include this file under the
14111# same distribution terms that you use for the rest of that program.
d7040cdb 14112#
1927a18f
L
14113# GNU Libtool is distributed in the hope that it will be useful,
14114# but WITHOUT ANY WARRANTY; without even the implied warranty of
14115# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14116# GNU General Public License for more details.
d7040cdb 14117#
1927a18f
L
14118# You should have received a copy of the GNU General Public License
14119# along with GNU Libtool; see the file COPYING. If not, a copy
14120# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14121# obtained by writing to the Free Software Foundation, Inc.,
14122# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
14123
14124
14125# The names of the tagged configurations supported by this script.
14126available_tags=""
14127
14128# ### BEGIN LIBTOOL CONFIG
14129
14130# Whether or not to build shared libraries.
14131build_libtool_libs=$enable_shared
14132
14133# Which release of libtool.m4 was used?
14134macro_version=$macro_version
14135macro_revision=$macro_revision
14136
14137# Whether or not to build static libraries.
14138build_old_libs=$enable_static
14139
14140# What type of objects to build.
14141pic_mode=$pic_mode
14142
14143# Whether or not to optimize for fast installation.
14144fast_install=$enable_fast_install
14145
14146# The host system.
14147host_alias=$host_alias
14148host=$host
14149host_os=$host_os
14150
14151# The build system.
14152build_alias=$build_alias
14153build=$build
14154build_os=$build_os
14155
14156# A sed program that does not truncate output.
14157SED=$lt_SED
14158
14159# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14160Xsed="\$SED -e 1s/^X//"
14161
14162# A grep program that handles long lines.
14163GREP=$lt_GREP
14164
14165# An ERE matcher.
14166EGREP=$lt_EGREP
14167
14168# A literal string matcher.
14169FGREP=$lt_FGREP
14170
14171# A BSD- or MS-compatible name lister.
14172NM=$lt_NM
14173
14174# Whether we need soft or hard links.
14175LN_S=$lt_LN_S
14176
14177# What is the maximum length of a command?
14178max_cmd_len=$max_cmd_len
14179
14180# Object file suffix (normally "o").
14181objext=$ac_objext
14182
14183# Executable file suffix (normally "").
14184exeext=$exeext
14185
14186# whether the shell understands "unset".
14187lt_unset=$lt_unset
14188
14189# turn spaces into newlines.
14190SP2NL=$lt_lt_SP2NL
14191
14192# turn newlines into spaces.
14193NL2SP=$lt_lt_NL2SP
14194
14195# How to create reloadable object files.
14196reload_flag=$lt_reload_flag
14197reload_cmds=$lt_reload_cmds
14198
1927a18f
L
14199# An object symbol dumper.
14200OBJDUMP=$lt_OBJDUMP
14201
d7040cdb
SE
14202# Method to check whether dependent libraries are shared objects.
14203deplibs_check_method=$lt_deplibs_check_method
14204
14205# Command to use when deplibs_check_method == "file_magic".
14206file_magic_cmd=$lt_file_magic_cmd
14207
14208# The archiver.
14209AR=$lt_AR
14210AR_FLAGS=$lt_AR_FLAGS
14211
14212# A symbol stripping program.
14213STRIP=$lt_STRIP
14214
14215# Commands used to install an old-style archive.
14216RANLIB=$lt_RANLIB
14217old_postinstall_cmds=$lt_old_postinstall_cmds
14218old_postuninstall_cmds=$lt_old_postuninstall_cmds
14219
14220# A C compiler.
14221LTCC=$lt_CC
14222
14223# LTCC compiler flags.
14224LTCFLAGS=$lt_CFLAGS
14225
14226# Take the output of nm and produce a listing of raw symbols and C names.
14227global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14228
14229# Transform the output of nm in a proper C declaration.
14230global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14231
14232# Transform the output of nm in a C name address pair.
14233global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14234
1927a18f
L
14235# Transform the output of nm in a C name address pair when lib prefix is needed.
14236global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14237
d7040cdb
SE
14238# The name of the directory that contains temporary libtool files.
14239objdir=$objdir
14240
14241# Shell to use when invoking shell scripts.
14242SHELL=$lt_SHELL
14243
14244# An echo program that does not interpret backslashes.
14245ECHO=$lt_ECHO
14246
14247# Used to examine libraries when file_magic_cmd begins with "file".
14248MAGIC_CMD=$MAGIC_CMD
14249
14250# Must we lock files when doing compilation?
14251need_locks=$lt_need_locks
14252
1927a18f
L
14253# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14254DSYMUTIL=$lt_DSYMUTIL
14255
14256# Tool to change global to local symbols on Mac OS X.
14257NMEDIT=$lt_NMEDIT
14258
14259# Tool to manipulate fat objects and archives on Mac OS X.
14260LIPO=$lt_LIPO
14261
14262# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14263OTOOL=$lt_OTOOL
14264
14265# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14266OTOOL64=$lt_OTOOL64
14267
d7040cdb
SE
14268# Old archive suffix (normally "a").
14269libext=$libext
14270
14271# Shared library suffix (normally ".so").
14272shrext_cmds=$lt_shrext_cmds
14273
14274# The commands to extract the exported symbol list from a shared archive.
14275extract_expsyms_cmds=$lt_extract_expsyms_cmds
14276
14277# Variables whose values should be saved in libtool wrapper scripts and
14278# restored at link time.
14279variables_saved_for_relink=$lt_variables_saved_for_relink
14280
14281# Do we need the "lib" prefix for modules?
14282need_lib_prefix=$need_lib_prefix
14283
14284# Do we need a version for libraries?
14285need_version=$need_version
14286
14287# Library versioning type.
14288version_type=$version_type
14289
14290# Shared library runtime path variable.
14291runpath_var=$runpath_var
14292
14293# Shared library path variable.
14294shlibpath_var=$shlibpath_var
14295
14296# Is shlibpath searched before the hard-coded library search path?
14297shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14298
14299# Format of library name prefix.
14300libname_spec=$lt_libname_spec
14301
14302# List of archive names. First name is the real one, the rest are links.
14303# The last name is the one that the linker finds with -lNAME
14304library_names_spec=$lt_library_names_spec
14305
14306# The coded name of the library, if different from the real name.
14307soname_spec=$lt_soname_spec
14308
14309# Command to use after installation of a shared archive.
14310postinstall_cmds=$lt_postinstall_cmds
14311
14312# Command to use after uninstallation of a shared archive.
14313postuninstall_cmds=$lt_postuninstall_cmds
14314
14315# Commands used to finish a libtool library installation in a directory.
14316finish_cmds=$lt_finish_cmds
14317
14318# As "finish_cmds", except a single script fragment to be evaled but
14319# not shown.
14320finish_eval=$lt_finish_eval
14321
14322# Whether we should hardcode library paths into libraries.
14323hardcode_into_libs=$hardcode_into_libs
14324
14325# Compile-time system search path for libraries.
14326sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14327
14328# Run-time system search path for libraries.
14329sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14330
14331# Whether dlopen is supported.
14332dlopen_support=$enable_dlopen
14333
14334# Whether dlopen of programs is supported.
14335dlopen_self=$enable_dlopen_self
14336
14337# Whether dlopen of statically linked programs is supported.
14338dlopen_self_static=$enable_dlopen_self_static
14339
14340# Commands to strip libraries.
14341old_striplib=$lt_old_striplib
14342striplib=$lt_striplib
14343
14344
14345# The linker used to build libraries.
14346LD=$lt_LD
14347
14348# Commands used to build an old-style archive.
14349old_archive_cmds=$lt_old_archive_cmds
14350
14351# A language specific compiler.
14352CC=$lt_compiler
14353
14354# Is the compiler the GNU compiler?
14355with_gcc=$GCC
14356
14357# Compiler flag to turn off builtin functions.
14358no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14359
14360# How to pass a linker flag through the compiler.
14361wl=$lt_lt_prog_compiler_wl
14362
14363# Additional compiler flags for building library objects.
14364pic_flag=$lt_lt_prog_compiler_pic
14365
14366# Compiler flag to prevent dynamic linking.
14367link_static_flag=$lt_lt_prog_compiler_static
14368
14369# Does compiler simultaneously support -c and -o options?
14370compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14371
14372# Whether or not to add -lc for building shared libraries.
14373build_libtool_need_lc=$archive_cmds_need_lc
14374
14375# Whether or not to disallow shared libs when runtime libs are static.
14376allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14377
14378# Compiler flag to allow reflexive dlopens.
14379export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14380
14381# Compiler flag to generate shared objects directly from archives.
14382whole_archive_flag_spec=$lt_whole_archive_flag_spec
14383
14384# Whether the compiler copes with passing no objects directly.
14385compiler_needs_object=$lt_compiler_needs_object
14386
14387# Create an old-style archive from a shared archive.
14388old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14389
14390# Create a temporary old-style archive to link instead of a shared archive.
14391old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14392
14393# Commands used to build a shared archive.
14394archive_cmds=$lt_archive_cmds
14395archive_expsym_cmds=$lt_archive_expsym_cmds
14396
14397# Commands used to build a loadable module if different from building
14398# a shared archive.
14399module_cmds=$lt_module_cmds
14400module_expsym_cmds=$lt_module_expsym_cmds
14401
14402# Whether we are building with GNU ld or not.
14403with_gnu_ld=$lt_with_gnu_ld
14404
14405# Flag that allows shared libraries with undefined symbols to be built.
14406allow_undefined_flag=$lt_allow_undefined_flag
14407
14408# Flag that enforces no undefined symbols.
14409no_undefined_flag=$lt_no_undefined_flag
14410
14411# Flag to hardcode \$libdir into a binary during linking.
14412# This must work even if \$libdir does not exist
14413hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14414
14415# If ld is used when linking, flag to hardcode \$libdir into a binary
14416# during linking. This must work even if \$libdir does not exist.
14417hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14418
14419# Whether we need a single "-rpath" flag with a separated argument.
14420hardcode_libdir_separator=$lt_hardcode_libdir_separator
14421
14422# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14423# DIR into the resulting binary.
14424hardcode_direct=$hardcode_direct
14425
14426# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14427# DIR into the resulting binary and the resulting library dependency is
14428# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14429# library is relocated.
14430hardcode_direct_absolute=$hardcode_direct_absolute
14431
14432# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14433# into the resulting binary.
14434hardcode_minus_L=$hardcode_minus_L
14435
14436# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14437# into the resulting binary.
14438hardcode_shlibpath_var=$hardcode_shlibpath_var
14439
14440# Set to "yes" if building a shared library automatically hardcodes DIR
14441# into the library and all subsequent libraries and executables linked
14442# against it.
14443hardcode_automatic=$hardcode_automatic
14444
14445# Set to yes if linker adds runtime paths of dependent libraries
14446# to runtime path list.
14447inherit_rpath=$inherit_rpath
14448
14449# Whether libtool must link a program against all its dependency libraries.
14450link_all_deplibs=$link_all_deplibs
14451
14452# Fix the shell variable \$srcfile for the compiler.
14453fix_srcfile_path=$lt_fix_srcfile_path
14454
14455# Set to "yes" if exported symbols are required.
14456always_export_symbols=$always_export_symbols
14457
14458# The commands to list exported symbols.
14459export_symbols_cmds=$lt_export_symbols_cmds
14460
14461# Symbols that should not be listed in the preloaded symbols.
14462exclude_expsyms=$lt_exclude_expsyms
14463
14464# Symbols that must always be exported.
14465include_expsyms=$lt_include_expsyms
14466
14467# Commands necessary for linking programs (against libraries) with templates.
14468prelink_cmds=$lt_prelink_cmds
14469
14470# Specify filename containing input files.
14471file_list_spec=$lt_file_list_spec
14472
14473# How to hardcode a shared library path into an executable.
14474hardcode_action=$hardcode_action
14475
14476# ### END LIBTOOL CONFIG
14477
14478_LT_EOF
14479
14480 case $host_os in
14481 aix3*)
14482 cat <<\_LT_EOF >> "$cfgfile"
14483# AIX sometimes has problems with the GCC collect2 program. For some
14484# reason, if we set the COLLECT_NAMES environment variable, the problems
14485# vanish in a puff of smoke.
14486if test "X${COLLECT_NAMES+set}" != Xset; then
14487 COLLECT_NAMES=
14488 export COLLECT_NAMES
14489fi
14490_LT_EOF
14491 ;;
14492 esac
14493
14494
14495ltmain="$ac_aux_dir/ltmain.sh"
14496
14497
14498 # We use sed instead of cat because bash on DJGPP gets confused if
14499 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14500 # text mode, it properly converts lines to CR/LF. This bash problem
14501 # is reportedly fixed, but why not run on old versions too?
14502 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14503 || (rm -f "$cfgfile"; exit 1)
14504
14505 case $xsi_shell in
14506 yes)
14507 cat << \_LT_EOF >> "$cfgfile"
1927a18f 14508
d7040cdb
SE
14509# func_dirname file append nondir_replacement
14510# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14511# otherwise set result to NONDIR_REPLACEMENT.
14512func_dirname ()
14513{
14514 case ${1} in
14515 */*) func_dirname_result="${1%/*}${2}" ;;
14516 * ) func_dirname_result="${3}" ;;
14517 esac
14518}
14519
14520# func_basename file
14521func_basename ()
14522{
14523 func_basename_result="${1##*/}"
14524}
14525
1927a18f
L
14526# func_dirname_and_basename file append nondir_replacement
14527# perform func_basename and func_dirname in a single function
14528# call:
14529# dirname: Compute the dirname of FILE. If nonempty,
14530# add APPEND to the result, otherwise set result
14531# to NONDIR_REPLACEMENT.
14532# value returned in "$func_dirname_result"
14533# basename: Compute filename of FILE.
14534# value retuned in "$func_basename_result"
14535# Implementation must be kept synchronized with func_dirname
14536# and func_basename. For efficiency, we do not delegate to
14537# those functions but instead duplicate the functionality here.
14538func_dirname_and_basename ()
14539{
14540 case ${1} in
14541 */*) func_dirname_result="${1%/*}${2}" ;;
14542 * ) func_dirname_result="${3}" ;;
14543 esac
14544 func_basename_result="${1##*/}"
14545}
14546
d7040cdb
SE
14547# func_stripname prefix suffix name
14548# strip PREFIX and SUFFIX off of NAME.
14549# PREFIX and SUFFIX must not contain globbing or regex special
14550# characters, hashes, percent signs, but SUFFIX may contain a leading
14551# dot (in which case that matches only a dot).
14552func_stripname ()
14553{
14554 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14555 # positional parameters, so assign one to ordinary parameter first.
14556 func_stripname_result=${3}
14557 func_stripname_result=${func_stripname_result#"${1}"}
14558 func_stripname_result=${func_stripname_result%"${2}"}
14559}
14560
14561# func_opt_split
14562func_opt_split ()
14563{
14564 func_opt_split_opt=${1%%=*}
14565 func_opt_split_arg=${1#*=}
14566}
14567
14568# func_lo2o object
14569func_lo2o ()
14570{
14571 case ${1} in
14572 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14573 *) func_lo2o_result=${1} ;;
14574 esac
14575}
1927a18f
L
14576
14577# func_xform libobj-or-source
14578func_xform ()
14579{
14580 func_xform_result=${1%.*}.lo
14581}
14582
14583# func_arith arithmetic-term...
14584func_arith ()
14585{
14586 func_arith_result=$(( $* ))
14587}
14588
14589# func_len string
14590# STRING may not start with a hyphen.
14591func_len ()
14592{
14593 func_len_result=${#1}
14594}
14595
d7040cdb
SE
14596_LT_EOF
14597 ;;
14598 *) # Bourne compatible functions.
14599 cat << \_LT_EOF >> "$cfgfile"
1927a18f 14600
d7040cdb
SE
14601# func_dirname file append nondir_replacement
14602# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14603# otherwise set result to NONDIR_REPLACEMENT.
14604func_dirname ()
14605{
14606 # Extract subdirectory from the argument.
14607 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14608 if test "X$func_dirname_result" = "X${1}"; then
14609 func_dirname_result="${3}"
14610 else
14611 func_dirname_result="$func_dirname_result${2}"
14612 fi
14613}
14614
14615# func_basename file
14616func_basename ()
14617{
14618 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14619}
14620
1927a18f 14621
d7040cdb
SE
14622# func_stripname prefix suffix name
14623# strip PREFIX and SUFFIX off of NAME.
14624# PREFIX and SUFFIX must not contain globbing or regex special
14625# characters, hashes, percent signs, but SUFFIX may contain a leading
14626# dot (in which case that matches only a dot).
14627# func_strip_suffix prefix name
14628func_stripname ()
14629{
14630 case ${2} in
14631 .*) func_stripname_result=`$ECHO "X${3}" \
14632 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14633 *) func_stripname_result=`$ECHO "X${3}" \
14634 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14635 esac
14636}
14637
14638# sed scripts:
14639my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14640my_sed_long_arg='1s/^-[^=]*=//'
14641
14642# func_opt_split
14643func_opt_split ()
14644{
14645 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14646 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14647}
14648
14649# func_lo2o object
14650func_lo2o ()
14651{
14652 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14653}
1927a18f
L
14654
14655# func_xform libobj-or-source
14656func_xform ()
14657{
14658 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14659}
14660
14661# func_arith arithmetic-term...
14662func_arith ()
14663{
14664 func_arith_result=`expr "$@"`
14665}
14666
14667# func_len string
14668# STRING may not start with a hyphen.
14669func_len ()
14670{
14671 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14672}
14673
d7040cdb
SE
14674_LT_EOF
14675esac
14676
14677case $lt_shell_append in
14678 yes)
14679 cat << \_LT_EOF >> "$cfgfile"
14680
14681# func_append var value
14682# Append VALUE to the end of shell variable VAR.
14683func_append ()
14684{
14685 eval "$1+=\$2"
14686}
14687_LT_EOF
14688 ;;
14689 *)
14690 cat << \_LT_EOF >> "$cfgfile"
14691
14692# func_append var value
14693# Append VALUE to the end of shell variable VAR.
14694func_append ()
14695{
14696 eval "$1=\$$1\$2"
14697}
1927a18f 14698
d7040cdb
SE
14699_LT_EOF
14700 ;;
14701 esac
14702
14703
14704 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14705 || (rm -f "$cfgfile"; exit 1)
14706
14707 mv -f "$cfgfile" "$ofile" ||
14708 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14709 chmod +x "$ofile"
14710
8ae85421 14711 ;;
81ecdfbb 14712 "default-1":C)
20e95c23
DJ
14713 for ac_file in $CONFIG_FILES; do
14714 # Support "outfile[:infile[:infile...]]"
14715 case "$ac_file" in
14716 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14717 esac
14718 # PO directories have a Makefile.in generated from Makefile.in.in.
14719 case "$ac_file" in */Makefile.in)
14720 # Adjust a relative srcdir.
14721 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14722 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
14723 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14724 # In autoconf-2.13 it is called $ac_given_srcdir.
14725 # In autoconf-2.50 it is called $srcdir.
14726 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14727 case "$ac_given_srcdir" in
14728 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14729 /*) top_srcdir="$ac_given_srcdir" ;;
14730 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14731 esac
14732 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14733 rm -f "$ac_dir/POTFILES"
14734 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14735 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14736 POMAKEFILEDEPS="POTFILES.in"
14737 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
14738 # on $ac_dir but don't depend on user-specified configuration
14739 # parameters.
14740 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14741 # The LINGUAS file contains the set of available languages.
14742 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14743 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14744 fi
14745 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14746 # Hide the ALL_LINGUAS assigment from automake.
14747 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14748 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14749 else
14750 # The set of available languages was given in configure.in.
14751 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14752 fi
14753 case "$ac_given_srcdir" in
14754 .) srcdirpre= ;;
14755 *) srcdirpre='$(srcdir)/' ;;
14756 esac
14757 POFILES=
14758 GMOFILES=
14759 UPDATEPOFILES=
14760 DUMMYPOFILES=
14761 for lang in $ALL_LINGUAS; do
14762 POFILES="$POFILES $srcdirpre$lang.po"
14763 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14764 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14765 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14766 done
14767 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14768 # environment variable.
14769 INST_LINGUAS=
14770 if test -n "$ALL_LINGUAS"; then
14771 for presentlang in $ALL_LINGUAS; do
14772 useit=no
14773 if test "%UNSET%" != "$LINGUAS"; then
14774 desiredlanguages="$LINGUAS"
14775 else
14776 desiredlanguages="$ALL_LINGUAS"
14777 fi
14778 for desiredlang in $desiredlanguages; do
14779 # Use the presentlang catalog if desiredlang is
14780 # a. equal to presentlang, or
14781 # b. a variant of presentlang (because in this case,
14782 # presentlang can be used as a fallback for messages
14783 # which are not translated in the desiredlang catalog).
14784 case "$desiredlang" in
14785 "$presentlang"*) useit=yes;;
14786 esac
14787 done
14788 if test $useit = yes; then
14789 INST_LINGUAS="$INST_LINGUAS $presentlang"
14790 fi
14791 done
14792 fi
14793 CATALOGS=
14794 if test -n "$INST_LINGUAS"; then
14795 for lang in $INST_LINGUAS; do
14796 CATALOGS="$CATALOGS $lang.gmo"
14797 done
14798 fi
14799 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14800 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"
14801 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14802 if test -f "$f"; then
14803 case "$f" in
14804 *.orig | *.bak | *~) ;;
14805 *) cat "$f" >> "$ac_dir/Makefile" ;;
14806 esac
14807 fi
14808 done
14809 fi
14810 ;;
14811 esac
14812 done ;;
81ecdfbb 14813
979273e3 14814 esac
81ecdfbb 14815done # for ac_tag
979273e3 14816
979273e3 14817
81ecdfbb 14818as_fn_exit 0
979273e3 14819_ACEOF
979273e3
NN
14820ac_clean_files=$ac_clean_files_save
14821
81ecdfbb
RW
14822test $ac_write_fail = 0 ||
14823 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14824
979273e3
NN
14825
14826# configure is writing to config.log, and then calls config.status.
14827# config.status does its own redirection, appending to config.log.
14828# Unfortunately, on DOS this fails, as config.log is still kept open
14829# by configure, so config.status won't be able to write to it; its
14830# output is simply discarded. So we exec the FD to /dev/null,
14831# effectively closing config.log, so it can be properly (re)opened and
14832# appended to by config.status. When coming back to configure, we
14833# need to make the FD available again.
14834if test "$no_create" != yes; then
14835 ac_cs_success=:
14836 ac_config_status_args=
14837 test "$silent" = yes &&
14838 ac_config_status_args="$ac_config_status_args --quiet"
14839 exec 5>/dev/null
14840 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14841 exec 5>>config.log
14842 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14843 # would make configure fail if this is the last instruction.
81ecdfbb
RW
14844 $ac_cs_success || as_fn_exit $?
14845fi
14846if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14848$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
979273e3 14849fi
252b5132 14850
This page took 1.677326 seconds and 4 git commands to generate.