Fix yacc and lex reruns with maintainer-mode off.
[deliverable/binutils-gdb.git] / gas / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
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.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
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 :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
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 }
79fi
80
81
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
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
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
184do
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."
228 else
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."
233 fi
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
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376else
377 as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382else
383 as_basename=false
384fi
385
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
391
392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
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'`
410
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
418
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 |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
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; }
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
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448}
449
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';;
461esac
462
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469fi
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
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'
483 fi
484else
485 as_ln_s='cp -p'
486fi
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
489
490if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
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
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
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
676exec 7<&0 </dev/null 6>&1
677
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`
682
683#
684# Initializations.
685#
686ac_default_prefix=/usr/local
687ac_clean_files=
688ac_config_libobj_dir=.
689LIBOBJS=
690cross_compiling=no
691subdirs=
692MFLAGS=
693MAKEFLAGS=
694
695# Identity of this package.
696PACKAGE_NAME=
697PACKAGE_TARNAME=
698PACKAGE_VERSION=
699PACKAGE_STRING=
700PACKAGE_BUGREPORT=
701PACKAGE_URL=
702
703ac_unique_file="as.h"
704# Factoring default headers for most tests.
705ac_includes_default="\
706#include <stdio.h>
707#ifdef HAVE_SYS_TYPES_H
708# include <sys/types.h>
709#endif
710#ifdef HAVE_SYS_STAT_H
711# include <sys/stat.h>
712#endif
713#ifdef STDC_HEADERS
714# include <stdlib.h>
715# include <stddef.h>
716#else
717# ifdef HAVE_STDLIB_H
718# include <stdlib.h>
719# endif
720#endif
721#ifdef HAVE_STRING_H
722# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
723# include <memory.h>
724# endif
725# include <string.h>
726#endif
727#ifdef HAVE_STRINGS_H
728# include <strings.h>
729#endif
730#ifdef HAVE_INTTYPES_H
731# include <inttypes.h>
732#endif
733#ifdef HAVE_STDINT_H
734# include <stdint.h>
735#endif
736#ifdef HAVE_UNISTD_H
737# include <unistd.h>
738#endif"
739
740ac_subst_vars='am__EXEEXT_FALSE
741am__EXEEXT_TRUE
742LTLIBOBJS
743LIBOBJS
744LIBM
745ALLOCA
746GENINSRC_NEVER_FALSE
747GENINSRC_NEVER_TRUE
748MAINT
749MAINTAINER_MODE_FALSE
750MAINTAINER_MODE_TRUE
751MSGMERGE
752MSGFMT
753MKINSTALLDIRS
754CATOBJEXT
755GENCAT
756INSTOBJEXT
757DATADIRNAME
758CATALOGS
759POSUB
760GMSGFMT
761XGETTEXT
762INCINTL
763LIBINTL_DEP
764LIBINTL
765USE_NLS
766LEXLIB
767LEX_OUTPUT_ROOT
768LEX
769YFLAGS
770YACC
771OPCODES_LIB
772atof
773install_tooldir
774te_file
775obj_format
776target_cpu_type
777extra_objects
778cgen_cpu_prefix
779GDBINIT
780NO_WERROR
781WARN_CFLAGS
782OTOOL64
783OTOOL
784LIPO
785NMEDIT
786DSYMUTIL
787lt_ECHO
788RANLIB
789AR
790OBJDUMP
791LN_S
792NM
793ac_ct_DUMPBIN
794DUMPBIN
795LD
796FGREP
797SED
798LIBTOOL
799EGREP
800GREP
801CPP
802am__fastdepCC_FALSE
803am__fastdepCC_TRUE
804CCDEPMODE
805AMDEPBACKSLASH
806AMDEP_FALSE
807AMDEP_TRUE
808am__quote
809am__include
810DEPDIR
811am__untar
812am__tar
813AMTAR
814am__leading_dot
815SET_MAKE
816AWK
817mkdir_p
818MKDIR_P
819INSTALL_STRIP_PROGRAM
820STRIP
821install_sh
822MAKEINFO
823AUTOHEADER
824AUTOMAKE
825AUTOCONF
826ACLOCAL
827VERSION
828PACKAGE
829CYGPATH_W
830am__isrc
831INSTALL_DATA
832INSTALL_SCRIPT
833INSTALL_PROGRAM
834OBJEXT
835EXEEXT
836ac_ct_CC
837CPPFLAGS
838LDFLAGS
839CFLAGS
840CC
841target_os
842target_vendor
843target_cpu
844target
845host_os
846host_vendor
847host_cpu
848host
849build_os
850build_vendor
851build_cpu
852build
853target_alias
854host_alias
855build_alias
856LIBS
857ECHO_T
858ECHO_N
859ECHO_C
860DEFS
861mandir
862localedir
863libdir
864psdir
865pdfdir
866dvidir
867htmldir
868infodir
869docdir
870oldincludedir
871includedir
872localstatedir
873sharedstatedir
874sysconfdir
875datadir
876datarootdir
877libexecdir
878sbindir
879bindir
880program_transform_name
881prefix
882exec_prefix
883PACKAGE_URL
884PACKAGE_BUGREPORT
885PACKAGE_STRING
886PACKAGE_VERSION
887PACKAGE_TARNAME
888PACKAGE_NAME
889PATH_SEPARATOR
890SHELL'
891ac_subst_files=''
892ac_user_opts='
893enable_option_checking
894enable_dependency_tracking
895enable_largefile
896enable_shared
897enable_static
898with_pic
899enable_fast_install
900with_gnu_ld
901enable_libtool_lock
902enable_targets
903enable_checking
904enable_werror
905enable_build_warnings
906enable_nls
907enable_maintainer_mode
908'
909 ac_precious_vars='build_alias
910host_alias
911target_alias
912CC
913CFLAGS
914LDFLAGS
915LIBS
916CPPFLAGS
917CPP
918YACC
919YFLAGS'
920
921
922# Initialize some variables set by options.
923ac_init_help=
924ac_init_version=false
925ac_unrecognized_opts=
926ac_unrecognized_sep=
927# The variables have the same names as the options, with
928# dashes changed to underlines.
929cache_file=/dev/null
930exec_prefix=NONE
931no_create=
932no_recursion=
933prefix=NONE
934program_prefix=NONE
935program_suffix=NONE
936program_transform_name=s,x,x,
937silent=
938site=
939srcdir=
940verbose=
941x_includes=NONE
942x_libraries=NONE
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.
949# (The list follows the same order as the GNU Coding Standards.)
950bindir='${exec_prefix}/bin'
951sbindir='${exec_prefix}/sbin'
952libexecdir='${exec_prefix}/libexec'
953datarootdir='${prefix}/share'
954datadir='${datarootdir}'
955sysconfdir='${prefix}/etc'
956sharedstatedir='${prefix}/com'
957localstatedir='${prefix}/var'
958includedir='${prefix}/include'
959oldincludedir='/usr/include'
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'
969
970ac_prev=
971ac_dashdash=
972for ac_option
973do
974 # If the previous option needs an argument, assign it.
975 if test -n "$ac_prev"; then
976 eval $ac_prev=\$ac_option
977 ac_prev=
978 continue
979 fi
980
981 case $ac_option in
982 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983 *) ac_optarg=yes ;;
984 esac
985
986 # Accept the important Cygnus configure options, so we can diagnose typos.
987
988 case $ac_dashdash$ac_option in
989 --)
990 ac_dashdash=yes ;;
991
992 -bindir | --bindir | --bindi | --bind | --bin | --bi)
993 ac_prev=bindir ;;
994 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995 bindir=$ac_optarg ;;
996
997 -build | --build | --buil | --bui | --bu)
998 ac_prev=build_alias ;;
999 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000 build_alias=$ac_optarg ;;
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=*)
1007 cache_file=$ac_optarg ;;
1008
1009 --config-cache | -C)
1010 cache_file=config.cache ;;
1011
1012 -datadir | --datadir | --datadi | --datad)
1013 ac_prev=datadir ;;
1014 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015 datadir=$ac_optarg ;;
1016
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
1024 -disable-* | --disable-*)
1025 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026 # Reject names that are not valid shell variable names.
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 ;;
1049
1050 -enable-* | --enable-*)
1051 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1052 # Reject names that are not valid shell variable names.
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=', ';;
1063 esac
1064 eval enable_$ac_useropt=\$ac_optarg ;;
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=*)
1073 exec_prefix=$ac_optarg ;;
1074
1075 -gas | --gas | --ga | --g)
1076 # Obsolete; use --with-gas.
1077 with_gas=yes ;;
1078
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 ;;
1085
1086 -host | --host | --hos | --ho)
1087 ac_prev=host_alias ;;
1088 -host=* | --host=* | --hos=* | --ho=*)
1089 host_alias=$ac_optarg ;;
1090
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
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=*)
1102 includedir=$ac_optarg ;;
1103
1104 -infodir | --infodir | --infodi | --infod | --info | --inf)
1105 ac_prev=infodir ;;
1106 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1107 infodir=$ac_optarg ;;
1108
1109 -libdir | --libdir | --libdi | --libd)
1110 ac_prev=libdir ;;
1111 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1112 libdir=$ac_optarg ;;
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=*)
1119 libexecdir=$ac_optarg ;;
1120
1121 -localedir | --localedir | --localedi | --localed | --locale)
1122 ac_prev=localedir ;;
1123 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1124 localedir=$ac_optarg ;;
1125
1126 -localstatedir | --localstatedir | --localstatedi | --localstated \
1127 | --localstate | --localstat | --localsta | --localst | --locals)
1128 ac_prev=localstatedir ;;
1129 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1130 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1131 localstatedir=$ac_optarg ;;
1132
1133 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134 ac_prev=mandir ;;
1135 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1136 mandir=$ac_optarg ;;
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 \
1143 | --no-cr | --no-c | -n)
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=*)
1157 oldincludedir=$ac_optarg ;;
1158
1159 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160 ac_prev=prefix ;;
1161 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1162 prefix=$ac_optarg ;;
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=*)
1169 program_prefix=$ac_optarg ;;
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=*)
1176 program_suffix=$ac_optarg ;;
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=*)
1193 program_transform_name=$ac_optarg ;;
1194
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
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=*)
1213 sbindir=$ac_optarg ;;
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=*)
1224 sharedstatedir=$ac_optarg ;;
1225
1226 -site | --site | --sit)
1227 ac_prev=site ;;
1228 -site=* | --site=* | --sit=*)
1229 site=$ac_optarg ;;
1230
1231 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232 ac_prev=srcdir ;;
1233 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1234 srcdir=$ac_optarg ;;
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=*)
1241 sysconfdir=$ac_optarg ;;
1242
1243 -target | --target | --targe | --targ | --tar | --ta | --t)
1244 ac_prev=target_alias ;;
1245 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1246 target_alias=$ac_optarg ;;
1247
1248 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1249 verbose=yes ;;
1250
1251 -version | --version | --versio | --versi | --vers | -V)
1252 ac_init_version=: ;;
1253
1254 -with-* | --with-*)
1255 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256 # Reject names that are not valid shell variable names.
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=', ';;
1267 esac
1268 eval with_$ac_useropt=\$ac_optarg ;;
1269
1270 -without-* | --without-*)
1271 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272 # Reject names that are not valid shell variable names.
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 ;;
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=*)
1295 x_includes=$ac_optarg ;;
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=*)
1302 x_libraries=$ac_optarg ;;
1303
1304 -*) as_fn_error "unrecognized option: \`$ac_option'
1305Try \`$0 --help' for more information."
1306 ;;
1307
1308 *=*)
1309 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310 # Reject names that are not valid shell variable names.
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
1316 export $ac_envvar ;;
1317
1318 *)
1319 # FIXME: should be removed in autoconf 3.0.
1320 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1324 ;;
1325
1326 esac
1327done
1328
1329if test -n "$ac_prev"; then
1330 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331 as_fn_error "missing argument to $ac_option"
1332fi
1333
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 ;;
1339 esac
1340fi
1341
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
1347do
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.
1356 case $ac_val in
1357 [\\/$]* | ?:[\\/]* ) continue;;
1358 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359 esac
1360 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1361done
1362
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
1374 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
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
1380
1381ac_tool_prefix=
1382test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383
1384test "$silent" = yes && exec 6>/dev/null
1385
1386
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
1395# Find the source files, if location was not specified.
1396if test -z "$srcdir"; then
1397 ac_srcdir_defaulted=yes
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'`
1422 srcdir=$ac_confdir
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1424 srcdir=..
1425 fi
1426else
1427 ac_srcdir_defaulted=no
1428fi
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
1453
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.
1462
1463Usage: $0 [OPTION]... [VAR=VALUE]...
1464
1465To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466VAR=VALUE. See below for descriptions of some of the useful variables.
1467
1468Defaults for the options are specified in brackets.
1469
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
1481Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
1483 [$ac_default_prefix]
1484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1485 [PREFIX]
1486
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'.
1491
1492For better control, use the options below.
1493
1494Fine tuning of the installation directories:
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]
1514_ACEOF
1515
1516 cat <<\_ACEOF
1517
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
1522
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
1528fi
1529
1530if test -n "$ac_init_help"; then
1531
1532 cat <<\_ACEOF
1533
1534Optional Features:
1535 --disable-option-checking ignore unrecognized --enable/--with options
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1538 --disable-dependency-tracking speeds up one-time build
1539 --enable-dependency-tracking do not reject slow dependency extractors
1540 --disable-largefile omit support for large files
1541 --enable-shared[=PKGS] build shared libraries [default=yes]
1542 --enable-static[=PKGS] build static libraries [default=yes]
1543 --enable-fast-install[=PKGS]
1544 optimize for fast installation [default=yes]
1545 --disable-libtool-lock avoid locking (might break parallel builds)
1546 --enable-targets alternative target configurations besides the primary
1547 --enable-checking enable run-time checks
1548 --enable-werror treat compile warnings as errors
1549 --enable-build-warnings enable build-time compiler warnings
1550 --disable-nls do not use Native Language Support
1551 --enable-maintainer-mode enable make rules and dependencies not useful
1552 (and sometimes confusing) to the casual installer
1553
1554Optional Packages:
1555 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1556 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
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]
1560
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>
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>
1569 CPP C preprocessor
1570 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1571 the first program found out of: `bison -y', `byacc', `yacc'.
1572 YFLAGS The list of arguments that will be passed by default to $YACC.
1573 This script will default YFLAGS to the empty string to avoid a
1574 default value of `-d' given by some make applications.
1575
1576Use these variables to override the choices made by `configure' or to help
1577it to find libraries and programs with nonstandard names/locations.
1578
1579Report bugs to the package provider.
1580_ACEOF
1581ac_status=$?
1582fi
1583
1584if test "$ac_init_help" = "recursive"; then
1585 # If there are subdirs, report their specific --help.
1586 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1587 test -d "$ac_dir" ||
1588 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1589 continue
1590 ac_builddir=.
1591
1592case "$ac_dir" in
1593.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594*)
1595 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1596 # A ".." for each directory in $ac_dir_suffix.
1597 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1598 case $ac_top_builddir_sub in
1599 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1601 esac ;;
1602esac
1603ac_abs_top_builddir=$ac_pwd
1604ac_abs_builddir=$ac_pwd$ac_dir_suffix
1605# for backward compatibility:
1606ac_top_builddir=$ac_top_build_prefix
1607
1608case $srcdir in
1609 .) # We are building in place.
1610 ac_srcdir=.
1611 ac_top_srcdir=$ac_top_builddir_sub
1612 ac_abs_top_srcdir=$ac_pwd ;;
1613 [\\/]* | ?:[\\/]* ) # Absolute name.
1614 ac_srcdir=$srcdir$ac_dir_suffix;
1615 ac_top_srcdir=$srcdir
1616 ac_abs_top_srcdir=$srcdir ;;
1617 *) # Relative name.
1618 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1619 ac_top_srcdir=$ac_top_build_prefix$srcdir
1620 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1621esac
1622ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1623
1624 cd "$ac_dir" || { ac_status=$?; continue; }
1625 # Check for guested configure.
1626 if test -f "$ac_srcdir/configure.gnu"; then
1627 echo &&
1628 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1629 elif test -f "$ac_srcdir/configure"; then
1630 echo &&
1631 $SHELL "$ac_srcdir/configure" --help=recursive
1632 else
1633 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1634 fi || ac_status=$?
1635 cd "$ac_pwd" || { ac_status=$?; break; }
1636 done
1637fi
1638
1639test -n "$ac_init_help" && exit $ac_status
1640if $ac_init_version; then
1641 cat <<\_ACEOF
1642configure
1643generated by GNU Autoconf 2.64
1644
1645Copyright (C) 2009 Free Software Foundation, Inc.
1646This configure script is free software; the Free Software Foundation
1647gives unlimited permission to copy, distribute and modify it.
1648_ACEOF
1649 exit
1650fi
1651
1652## ------------------------ ##
1653## Autoconf initialization. ##
1654## ------------------------ ##
1655
1656# ac_fn_c_try_compile LINENO
1657# --------------------------
1658# Try to compile conftest.$ac_ext, and return whether this succeeded.
1659ac_fn_c_try_compile ()
1660{
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 rm -f conftest.$ac_objext
1663 if { { ac_try="$ac_compile"
1664case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_compile") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && {
1679 test -z "$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 } && test -s conftest.$ac_objext; then :
1682 ac_retval=0
1683else
1684 $as_echo "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1
1688fi
1689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690 return $ac_retval
1691
1692} # ac_fn_c_try_compile
1693
1694# ac_fn_c_try_link LINENO
1695# -----------------------
1696# Try to link conftest.$ac_ext, and return whether this succeeded.
1697ac_fn_c_try_link ()
1698{
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 rm -f conftest.$ac_objext conftest$ac_exeext
1701 if { { ac_try="$ac_link"
1702case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1714 fi
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && {
1717 test -z "$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 } && test -s conftest$ac_exeext && {
1720 test "$cross_compiling" = yes ||
1721 $as_test_x conftest$ac_exeext
1722 }; then :
1723 ac_retval=0
1724else
1725 $as_echo "$as_me: failed program was:" >&5
1726sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=1
1729fi
1730 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1731 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1732 # interfere with the next link command; also delete a directory that is
1733 # left behind by Apple's compiler. We do this before executing the actions.
1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1736 return $ac_retval
1737
1738} # ac_fn_c_try_link
1739
1740# ac_fn_c_try_cpp LINENO
1741# ----------------------
1742# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1743ac_fn_c_try_cpp ()
1744{
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if { { ac_try="$ac_cpp conftest.$ac_ext"
1747case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750esac
1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752$as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1754 ac_status=$?
1755 if test -s conftest.err; then
1756 grep -v '^ *+' conftest.err >conftest.er1
1757 cat conftest.er1 >&5
1758 mv -f conftest.er1 conftest.err
1759 fi
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } >/dev/null && {
1762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1763 test ! -s conftest.err
1764 }; then :
1765 ac_retval=0
1766else
1767 $as_echo "$as_me: failed program was:" >&5
1768sed 's/^/| /' conftest.$ac_ext >&5
1769
1770 ac_retval=1
1771fi
1772 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773 return $ac_retval
1774
1775} # ac_fn_c_try_cpp
1776
1777# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1778# -------------------------------------------------------
1779# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1780# the include files in INCLUDES and setting the cache variable VAR
1781# accordingly.
1782ac_fn_c_check_header_mongrel ()
1783{
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787$as_echo_n "checking for $2... " >&6; }
1788if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1789 $as_echo_n "(cached) " >&6
1790fi
1791eval ac_res=\$$3
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793$as_echo "$ac_res" >&6; }
1794else
1795 # Is the header compilable?
1796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1797$as_echo_n "checking $2 usability... " >&6; }
1798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799/* end confdefs.h. */
1800$4
1801#include <$2>
1802_ACEOF
1803if ac_fn_c_try_compile "$LINENO"; then :
1804 ac_header_compiler=yes
1805else
1806 ac_header_compiler=no
1807fi
1808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1810$as_echo "$ac_header_compiler" >&6; }
1811
1812# Is the header present?
1813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1814$as_echo_n "checking $2 presence... " >&6; }
1815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816/* end confdefs.h. */
1817#include <$2>
1818_ACEOF
1819if ac_fn_c_try_cpp "$LINENO"; then :
1820 ac_header_preproc=yes
1821else
1822 ac_header_preproc=no
1823fi
1824rm -f conftest.err conftest.$ac_ext
1825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1826$as_echo "$ac_header_preproc" >&6; }
1827
1828# So? What about this header?
1829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1830 yes:no: )
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1832$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1834$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835 ;;
1836 no:yes:* )
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1838$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1840$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1842$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1844$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847 ;;
1848esac
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850$as_echo_n "checking for $2... " >&6; }
1851if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1852 $as_echo_n "(cached) " >&6
1853else
1854 eval "$3=\$ac_header_compiler"
1855fi
1856eval ac_res=\$$3
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858$as_echo "$ac_res" >&6; }
1859fi
1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861
1862} # ac_fn_c_check_header_mongrel
1863
1864# ac_fn_c_try_run LINENO
1865# ----------------------
1866# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1867# that executables *can* be run.
1868ac_fn_c_try_run ()
1869{
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 if { { ac_try="$ac_link"
1872case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1875esac
1876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877$as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_link") 2>&5
1879 ac_status=$?
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1882 { { case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885esac
1886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887$as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_try") 2>&5
1889 ac_status=$?
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; }; }; then :
1892 ac_retval=0
1893else
1894 $as_echo "$as_me: program exited with status $ac_status" >&5
1895 $as_echo "$as_me: failed program was:" >&5
1896sed 's/^/| /' conftest.$ac_ext >&5
1897
1898 ac_retval=$ac_status
1899fi
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902 return $ac_retval
1903
1904} # ac_fn_c_try_run
1905
1906# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1907# -------------------------------------------------------
1908# Tests whether HEADER exists and can be compiled using the include files in
1909# INCLUDES, setting the cache variable VAR accordingly.
1910ac_fn_c_check_header_compile ()
1911{
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914$as_echo_n "checking for $2... " >&6; }
1915if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1916 $as_echo_n "(cached) " >&6
1917else
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h. */
1920$4
1921#include <$2>
1922_ACEOF
1923if ac_fn_c_try_compile "$LINENO"; then :
1924 eval "$3=yes"
1925else
1926 eval "$3=no"
1927fi
1928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929fi
1930eval ac_res=\$$3
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932$as_echo "$ac_res" >&6; }
1933 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1934
1935} # ac_fn_c_check_header_compile
1936
1937# ac_fn_c_check_func LINENO FUNC VAR
1938# ----------------------------------
1939# Tests whether FUNC exists, setting the cache variable VAR accordingly
1940ac_fn_c_check_func ()
1941{
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944$as_echo_n "checking for $2... " >&6; }
1945if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1946 $as_echo_n "(cached) " >&6
1947else
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h. */
1950/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1952#define $2 innocuous_$2
1953
1954/* System header to define __stub macros and hopefully few prototypes,
1955 which can conflict with char $2 (); below.
1956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1957 <limits.h> exists even on freestanding compilers. */
1958
1959#ifdef __STDC__
1960# include <limits.h>
1961#else
1962# include <assert.h>
1963#endif
1964
1965#undef $2
1966
1967/* Override any GCC internal prototype to avoid an error.
1968 Use char because int might match the return type of a GCC
1969 builtin and then its argument prototype would still apply. */
1970#ifdef __cplusplus
1971extern "C"
1972#endif
1973char $2 ();
1974/* The GNU C library defines this for functions which it implements
1975 to always fail with ENOSYS. Some functions are actually named
1976 something starting with __ and the normal name is an alias. */
1977#if defined __stub_$2 || defined __stub___$2
1978choke me
1979#endif
1980
1981int
1982main ()
1983{
1984return $2 ();
1985 ;
1986 return 0;
1987}
1988_ACEOF
1989if ac_fn_c_try_link "$LINENO"; then :
1990 eval "$3=yes"
1991else
1992 eval "$3=no"
1993fi
1994rm -f core conftest.err conftest.$ac_objext \
1995 conftest$ac_exeext conftest.$ac_ext
1996fi
1997eval ac_res=\$$3
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999$as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2001
2002} # ac_fn_c_check_func
2003
2004# ac_fn_c_check_decl LINENO SYMBOL VAR
2005# ------------------------------------
2006# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2007ac_fn_c_check_decl ()
2008{
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2011$as_echo_n "checking whether $2 is declared... " >&6; }
2012if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2013 $as_echo_n "(cached) " >&6
2014else
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h. */
2017$4
2018int
2019main ()
2020{
2021#ifndef $2
2022 (void) $2;
2023#endif
2024
2025 ;
2026 return 0;
2027}
2028_ACEOF
2029if ac_fn_c_try_compile "$LINENO"; then :
2030 eval "$3=yes"
2031else
2032 eval "$3=no"
2033fi
2034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035fi
2036eval ac_res=\$$3
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038$as_echo "$ac_res" >&6; }
2039 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2040
2041} # ac_fn_c_check_decl
2042cat >config.log <<_ACEOF
2043This file contains any messages produced by compilers while
2044running configure, to aid debugging if configure makes a mistake.
2045
2046It was created by $as_me, which was
2047generated by GNU Autoconf 2.64. Invocation command line was
2048
2049 $ $0 $@
2050
2051_ACEOF
2052exec 5>>config.log
2053{
2054cat <<_ASUNAME
2055## --------- ##
2056## Platform. ##
2057## --------- ##
2058
2059hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2060uname -m = `(uname -m) 2>/dev/null || echo unknown`
2061uname -r = `(uname -r) 2>/dev/null || echo unknown`
2062uname -s = `(uname -s) 2>/dev/null || echo unknown`
2063uname -v = `(uname -v) 2>/dev/null || echo unknown`
2064
2065/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2066/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2067
2068/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2069/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2070/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2071/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2072/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2073/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2074/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2075
2076_ASUNAME
2077
2078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079for as_dir in $PATH
2080do
2081 IFS=$as_save_IFS
2082 test -z "$as_dir" && as_dir=.
2083 $as_echo "PATH: $as_dir"
2084 done
2085IFS=$as_save_IFS
2086
2087} >&5
2088
2089cat >&5 <<_ACEOF
2090
2091
2092## ----------- ##
2093## Core tests. ##
2094## ----------- ##
2095
2096_ACEOF
2097
2098
2099# Keep a trace of the command line.
2100# Strip out --no-create and --no-recursion so they do not pile up.
2101# Strip out --silent because we don't want to record it for future runs.
2102# Also quote any args containing shell meta-characters.
2103# Make two passes to allow for proper duplicate-argument suppression.
2104ac_configure_args=
2105ac_configure_args0=
2106ac_configure_args1=
2107ac_must_keep_next=false
2108for ac_pass in 1 2
2109do
2110 for ac_arg
2111 do
2112 case $ac_arg in
2113 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2115 | -silent | --silent | --silen | --sile | --sil)
2116 continue ;;
2117 *\'*)
2118 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2119 esac
2120 case $ac_pass in
2121 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2122 2)
2123 as_fn_append ac_configure_args1 " '$ac_arg'"
2124 if test $ac_must_keep_next = true; then
2125 ac_must_keep_next=false # Got value, back to normal.
2126 else
2127 case $ac_arg in
2128 *=* | --config-cache | -C | -disable-* | --disable-* \
2129 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2130 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2131 | -with-* | --with-* | -without-* | --without-* | --x)
2132 case "$ac_configure_args0 " in
2133 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2134 esac
2135 ;;
2136 -* ) ac_must_keep_next=true ;;
2137 esac
2138 fi
2139 as_fn_append ac_configure_args " '$ac_arg'"
2140 ;;
2141 esac
2142 done
2143done
2144{ ac_configure_args0=; unset ac_configure_args0;}
2145{ ac_configure_args1=; unset ac_configure_args1;}
2146
2147# When interrupted or exit'd, cleanup temporary files, and complete
2148# config.log. We remove comments because anyway the quotes in there
2149# would cause problems or look ugly.
2150# WARNING: Use '\'' to represent an apostrophe within the trap.
2151# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2152trap 'exit_status=$?
2153 # Save into config.log some information that might help in debugging.
2154 {
2155 echo
2156
2157 cat <<\_ASBOX
2158## ---------------- ##
2159## Cache variables. ##
2160## ---------------- ##
2161_ASBOX
2162 echo
2163 # The following way of writing the cache mishandles newlines in values,
2164(
2165 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2166 eval ac_val=\$$ac_var
2167 case $ac_val in #(
2168 *${as_nl}*)
2169 case $ac_var in #(
2170 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2171$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2172 esac
2173 case $ac_var in #(
2174 _ | IFS | as_nl) ;; #(
2175 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2176 *) { eval $ac_var=; unset $ac_var;} ;;
2177 esac ;;
2178 esac
2179 done
2180 (set) 2>&1 |
2181 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2182 *${as_nl}ac_space=\ *)
2183 sed -n \
2184 "s/'\''/'\''\\\\'\'''\''/g;
2185 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2186 ;; #(
2187 *)
2188 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2189 ;;
2190 esac |
2191 sort
2192)
2193 echo
2194
2195 cat <<\_ASBOX
2196## ----------------- ##
2197## Output variables. ##
2198## ----------------- ##
2199_ASBOX
2200 echo
2201 for ac_var in $ac_subst_vars
2202 do
2203 eval ac_val=\$$ac_var
2204 case $ac_val in
2205 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2206 esac
2207 $as_echo "$ac_var='\''$ac_val'\''"
2208 done | sort
2209 echo
2210
2211 if test -n "$ac_subst_files"; then
2212 cat <<\_ASBOX
2213## ------------------- ##
2214## File substitutions. ##
2215## ------------------- ##
2216_ASBOX
2217 echo
2218 for ac_var in $ac_subst_files
2219 do
2220 eval ac_val=\$$ac_var
2221 case $ac_val in
2222 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2223 esac
2224 $as_echo "$ac_var='\''$ac_val'\''"
2225 done | sort
2226 echo
2227 fi
2228
2229 if test -s confdefs.h; then
2230 cat <<\_ASBOX
2231## ----------- ##
2232## confdefs.h. ##
2233## ----------- ##
2234_ASBOX
2235 echo
2236 cat confdefs.h
2237 echo
2238 fi
2239 test "$ac_signal" != 0 &&
2240 $as_echo "$as_me: caught signal $ac_signal"
2241 $as_echo "$as_me: exit $exit_status"
2242 } >&5
2243 rm -f core *.core core.conftest.* &&
2244 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2245 exit $exit_status
2246' 0
2247for ac_signal in 1 2 13 15; do
2248 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2249done
2250ac_signal=0
2251
2252# confdefs.h avoids OS command line length limits that DEFS can exceed.
2253rm -f -r conftest* confdefs.h
2254
2255$as_echo "/* confdefs.h */" > confdefs.h
2256
2257# Predefined preprocessor variables.
2258
2259cat >>confdefs.h <<_ACEOF
2260#define PACKAGE_NAME "$PACKAGE_NAME"
2261_ACEOF
2262
2263cat >>confdefs.h <<_ACEOF
2264#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2265_ACEOF
2266
2267cat >>confdefs.h <<_ACEOF
2268#define PACKAGE_VERSION "$PACKAGE_VERSION"
2269_ACEOF
2270
2271cat >>confdefs.h <<_ACEOF
2272#define PACKAGE_STRING "$PACKAGE_STRING"
2273_ACEOF
2274
2275cat >>confdefs.h <<_ACEOF
2276#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2277_ACEOF
2278
2279cat >>confdefs.h <<_ACEOF
2280#define PACKAGE_URL "$PACKAGE_URL"
2281_ACEOF
2282
2283
2284# Let the site file select an alternate cache file if it wants to.
2285# Prefer an explicitly selected file to automatically selected ones.
2286ac_site_file1=NONE
2287ac_site_file2=NONE
2288if test -n "$CONFIG_SITE"; then
2289 ac_site_file1=$CONFIG_SITE
2290elif test "x$prefix" != xNONE; then
2291 ac_site_file1=$prefix/share/config.site
2292 ac_site_file2=$prefix/etc/config.site
2293else
2294 ac_site_file1=$ac_default_prefix/share/config.site
2295 ac_site_file2=$ac_default_prefix/etc/config.site
2296fi
2297for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2298do
2299 test "x$ac_site_file" = xNONE && continue
2300 if test -r "$ac_site_file"; then
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2302$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2303 sed 's/^/| /' "$ac_site_file" >&5
2304 . "$ac_site_file"
2305 fi
2306done
2307
2308if test -r "$cache_file"; then
2309 # Some versions of bash will fail to source /dev/null (special
2310 # files actually), so we avoid doing that.
2311 if test -f "$cache_file"; then
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2313$as_echo "$as_me: loading cache $cache_file" >&6;}
2314 case $cache_file in
2315 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2316 *) . "./$cache_file";;
2317 esac
2318 fi
2319else
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2321$as_echo "$as_me: creating cache $cache_file" >&6;}
2322 >$cache_file
2323fi
2324
2325# Check that the precious variables saved in the cache have kept the same
2326# value.
2327ac_cache_corrupted=false
2328for ac_var in $ac_precious_vars; do
2329 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2330 eval ac_new_set=\$ac_env_${ac_var}_set
2331 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2332 eval ac_new_val=\$ac_env_${ac_var}_value
2333 case $ac_old_set,$ac_new_set in
2334 set,)
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2336$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2337 ac_cache_corrupted=: ;;
2338 ,set)
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2340$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2341 ac_cache_corrupted=: ;;
2342 ,);;
2343 *)
2344 if test "x$ac_old_val" != "x$ac_new_val"; then
2345 # differences in whitespace do not lead to failure.
2346 ac_old_val_w=`echo x $ac_old_val`
2347 ac_new_val_w=`echo x $ac_new_val`
2348 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2350$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2351 ac_cache_corrupted=:
2352 else
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2354$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2355 eval $ac_var=\$ac_old_val
2356 fi
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2358$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2360$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2361 fi;;
2362 esac
2363 # Pass precious variables to config.status.
2364 if test "$ac_new_set" = set; then
2365 case $ac_new_val in
2366 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2367 *) ac_arg=$ac_var=$ac_new_val ;;
2368 esac
2369 case " $ac_configure_args " in
2370 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2371 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2372 esac
2373 fi
2374done
2375if $ac_cache_corrupted; then
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2379$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2380 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2381fi
2382## -------------------- ##
2383## Main body of script. ##
2384## -------------------- ##
2385
2386ac_ext=c
2387ac_cpp='$CPP $CPPFLAGS'
2388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391
2392
2393
2394
2395
2396
2397
2398ac_aux_dir=
2399for ac_dir in .. "$srcdir"/..; do
2400 for ac_t in install-sh install.sh shtool; do
2401 if test -f "$ac_dir/$ac_t"; then
2402 ac_aux_dir=$ac_dir
2403 ac_install_sh="$ac_aux_dir/$ac_t -c"
2404 break 2
2405 fi
2406 done
2407done
2408if test -z "$ac_aux_dir"; then
2409 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2410fi
2411
2412# These three variables are undocumented and unsupported,
2413# and are intended to be withdrawn in a future Autoconf release.
2414# They can cause serious problems if a builder's source tree is in a directory
2415# whose full name contains unusual characters.
2416ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2417ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2418ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2419
2420
2421# Make sure we can run config.sub.
2422$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2423 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2424
2425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2426$as_echo_n "checking build system type... " >&6; }
2427if test "${ac_cv_build+set}" = set; then :
2428 $as_echo_n "(cached) " >&6
2429else
2430 ac_build_alias=$build_alias
2431test "x$ac_build_alias" = x &&
2432 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2433test "x$ac_build_alias" = x &&
2434 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2435ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2436 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2437
2438fi
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2440$as_echo "$ac_cv_build" >&6; }
2441case $ac_cv_build in
2442*-*-*) ;;
2443*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2444esac
2445build=$ac_cv_build
2446ac_save_IFS=$IFS; IFS='-'
2447set x $ac_cv_build
2448shift
2449build_cpu=$1
2450build_vendor=$2
2451shift; shift
2452# Remember, the first character of IFS is used to create $*,
2453# except with old shells:
2454build_os=$*
2455IFS=$ac_save_IFS
2456case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2457
2458
2459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2460$as_echo_n "checking host system type... " >&6; }
2461if test "${ac_cv_host+set}" = set; then :
2462 $as_echo_n "(cached) " >&6
2463else
2464 if test "x$host_alias" = x; then
2465 ac_cv_host=$ac_cv_build
2466else
2467 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2468 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2469fi
2470
2471fi
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2473$as_echo "$ac_cv_host" >&6; }
2474case $ac_cv_host in
2475*-*-*) ;;
2476*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2477esac
2478host=$ac_cv_host
2479ac_save_IFS=$IFS; IFS='-'
2480set x $ac_cv_host
2481shift
2482host_cpu=$1
2483host_vendor=$2
2484shift; shift
2485# Remember, the first character of IFS is used to create $*,
2486# except with old shells:
2487host_os=$*
2488IFS=$ac_save_IFS
2489case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2490
2491
2492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2493$as_echo_n "checking target system type... " >&6; }
2494if test "${ac_cv_target+set}" = set; then :
2495 $as_echo_n "(cached) " >&6
2496else
2497 if test "x$target_alias" = x; then
2498 ac_cv_target=$ac_cv_host
2499else
2500 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2501 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2502fi
2503
2504fi
2505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2506$as_echo "$ac_cv_target" >&6; }
2507case $ac_cv_target in
2508*-*-*) ;;
2509*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2510esac
2511target=$ac_cv_target
2512ac_save_IFS=$IFS; IFS='-'
2513set x $ac_cv_target
2514shift
2515target_cpu=$1
2516target_vendor=$2
2517shift; shift
2518# Remember, the first character of IFS is used to create $*,
2519# except with old shells:
2520target_os=$*
2521IFS=$ac_save_IFS
2522case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2523
2524
2525# The aliases save the names the user supplied, while $host etc.
2526# will get canonicalized.
2527test -n "$target_alias" &&
2528 test "$program_prefix$program_suffix$program_transform_name" = \
2529 NONENONEs,x,x, &&
2530 program_prefix=${target_alias}-
2531ac_ext=c
2532ac_cpp='$CPP $CPPFLAGS'
2533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536if test -n "$ac_tool_prefix"; then
2537 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2538set dummy ${ac_tool_prefix}gcc; ac_word=$2
2539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2540$as_echo_n "checking for $ac_word... " >&6; }
2541if test "${ac_cv_prog_CC+set}" = set; then :
2542 $as_echo_n "(cached) " >&6
2543else
2544 if test -n "$CC"; then
2545 ac_cv_prog_CC="$CC" # Let the user override the test.
2546else
2547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548for as_dir in $PATH
2549do
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2554 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 break 2
2557 fi
2558done
2559 done
2560IFS=$as_save_IFS
2561
2562fi
2563fi
2564CC=$ac_cv_prog_CC
2565if test -n "$CC"; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2567$as_echo "$CC" >&6; }
2568else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2570$as_echo "no" >&6; }
2571fi
2572
2573
2574fi
2575if test -z "$ac_cv_prog_CC"; then
2576 ac_ct_CC=$CC
2577 # Extract the first word of "gcc", so it can be a program name with args.
2578set dummy gcc; ac_word=$2
2579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580$as_echo_n "checking for $ac_word... " >&6; }
2581if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2582 $as_echo_n "(cached) " >&6
2583else
2584 if test -n "$ac_ct_CC"; then
2585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2586else
2587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588for as_dir in $PATH
2589do
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594 ac_cv_prog_ac_ct_CC="gcc"
2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 break 2
2597 fi
2598done
2599 done
2600IFS=$as_save_IFS
2601
2602fi
2603fi
2604ac_ct_CC=$ac_cv_prog_ac_ct_CC
2605if test -n "$ac_ct_CC"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2607$as_echo "$ac_ct_CC" >&6; }
2608else
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610$as_echo "no" >&6; }
2611fi
2612
2613 if test "x$ac_ct_CC" = x; then
2614 CC=""
2615 else
2616 case $cross_compiling:$ac_tool_warned in
2617yes:)
2618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2620ac_tool_warned=yes ;;
2621esac
2622 CC=$ac_ct_CC
2623 fi
2624else
2625 CC="$ac_cv_prog_CC"
2626fi
2627
2628if test -z "$CC"; then
2629 if test -n "$ac_tool_prefix"; then
2630 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2631set dummy ${ac_tool_prefix}cc; ac_word=$2
2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633$as_echo_n "checking for $ac_word... " >&6; }
2634if test "${ac_cv_prog_CC+set}" = set; then :
2635 $as_echo_n "(cached) " >&6
2636else
2637 if test -n "$CC"; then
2638 ac_cv_prog_CC="$CC" # Let the user override the test.
2639else
2640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641for as_dir in $PATH
2642do
2643 IFS=$as_save_IFS
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2647 ac_cv_prog_CC="${ac_tool_prefix}cc"
2648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 break 2
2650 fi
2651done
2652 done
2653IFS=$as_save_IFS
2654
2655fi
2656fi
2657CC=$ac_cv_prog_CC
2658if test -n "$CC"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2660$as_echo "$CC" >&6; }
2661else
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663$as_echo "no" >&6; }
2664fi
2665
2666
2667 fi
2668fi
2669if test -z "$CC"; then
2670 # Extract the first word of "cc", so it can be a program name with args.
2671set dummy cc; ac_word=$2
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673$as_echo_n "checking for $ac_word... " >&6; }
2674if test "${ac_cv_prog_CC+set}" = set; then :
2675 $as_echo_n "(cached) " >&6
2676else
2677 if test -n "$CC"; then
2678 ac_cv_prog_CC="$CC" # Let the user override the test.
2679else
2680 ac_prog_rejected=no
2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2689 ac_prog_rejected=yes
2690 continue
2691 fi
2692 ac_cv_prog_CC="cc"
2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2695 fi
2696done
2697 done
2698IFS=$as_save_IFS
2699
2700if test $ac_prog_rejected = yes; then
2701 # We found a bogon in the path, so make sure we never use it.
2702 set dummy $ac_cv_prog_CC
2703 shift
2704 if test $# != 0; then
2705 # We chose a different compiler from the bogus one.
2706 # However, it has the same basename, so the bogon will be chosen
2707 # first if we set CC to just the basename; use the full file name.
2708 shift
2709 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2710 fi
2711fi
2712fi
2713fi
2714CC=$ac_cv_prog_CC
2715if test -n "$CC"; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2717$as_echo "$CC" >&6; }
2718else
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720$as_echo "no" >&6; }
2721fi
2722
2723
2724fi
2725if test -z "$CC"; then
2726 if test -n "$ac_tool_prefix"; then
2727 for ac_prog in cl.exe
2728 do
2729 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2730set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732$as_echo_n "checking for $ac_word... " >&6; }
2733if test "${ac_cv_prog_CC+set}" = set; then :
2734 $as_echo_n "(cached) " >&6
2735else
2736 if test -n "$CC"; then
2737 ac_cv_prog_CC="$CC" # Let the user override the test.
2738else
2739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740for as_dir in $PATH
2741do
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2746 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 break 2
2749 fi
2750done
2751 done
2752IFS=$as_save_IFS
2753
2754fi
2755fi
2756CC=$ac_cv_prog_CC
2757if test -n "$CC"; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2759$as_echo "$CC" >&6; }
2760else
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762$as_echo "no" >&6; }
2763fi
2764
2765
2766 test -n "$CC" && break
2767 done
2768fi
2769if test -z "$CC"; then
2770 ac_ct_CC=$CC
2771 for ac_prog in cl.exe
2772do
2773 # Extract the first word of "$ac_prog", so it can be a program name with args.
2774set dummy $ac_prog; ac_word=$2
2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776$as_echo_n "checking for $ac_word... " >&6; }
2777if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2778 $as_echo_n "(cached) " >&6
2779else
2780 if test -n "$ac_ct_CC"; then
2781 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2782else
2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784for as_dir in $PATH
2785do
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790 ac_cv_prog_ac_ct_CC="$ac_prog"
2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2793 fi
2794done
2795 done
2796IFS=$as_save_IFS
2797
2798fi
2799fi
2800ac_ct_CC=$ac_cv_prog_ac_ct_CC
2801if test -n "$ac_ct_CC"; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2803$as_echo "$ac_ct_CC" >&6; }
2804else
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806$as_echo "no" >&6; }
2807fi
2808
2809
2810 test -n "$ac_ct_CC" && break
2811done
2812
2813 if test "x$ac_ct_CC" = x; then
2814 CC=""
2815 else
2816 case $cross_compiling:$ac_tool_warned in
2817yes:)
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2820ac_tool_warned=yes ;;
2821esac
2822 CC=$ac_ct_CC
2823 fi
2824fi
2825
2826fi
2827
2828
2829test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2830$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2831as_fn_error "no acceptable C compiler found in \$PATH
2832See \`config.log' for more details." "$LINENO" 5; }
2833
2834# Provide some information about the compiler.
2835$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2836set X $ac_compile
2837ac_compiler=$2
2838for ac_option in --version -v -V -qversion; do
2839 { { ac_try="$ac_compiler $ac_option >&5"
2840case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2843esac
2844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2845$as_echo "$ac_try_echo"; } >&5
2846 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2847 ac_status=$?
2848 if test -s conftest.err; then
2849 sed '10a\
2850... rest of stderr output deleted ...
2851 10q' conftest.err >conftest.er1
2852 cat conftest.er1 >&5
2853 rm -f conftest.er1 conftest.err
2854 fi
2855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2856 test $ac_status = 0; }
2857done
2858
2859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2860/* end confdefs.h. */
2861
2862int
2863main ()
2864{
2865
2866 ;
2867 return 0;
2868}
2869_ACEOF
2870ac_clean_files_save=$ac_clean_files
2871ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2872# Try to create an executable without -o first, disregard a.out.
2873# It will help us diagnose broken compilers, and finding out an intuition
2874# of exeext.
2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2876$as_echo_n "checking for C compiler default output file name... " >&6; }
2877ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2878
2879# The possible output files:
2880ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2881
2882ac_rmfiles=
2883for ac_file in $ac_files
2884do
2885 case $ac_file in
2886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2887 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2888 esac
2889done
2890rm -f $ac_rmfiles
2891
2892if { { ac_try="$ac_link_default"
2893case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896esac
2897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2898$as_echo "$ac_try_echo"; } >&5
2899 (eval "$ac_link_default") 2>&5
2900 ac_status=$?
2901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2902 test $ac_status = 0; }; then :
2903 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2904# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2905# in a Makefile. We should not override ac_cv_exeext if it was cached,
2906# so that the user can short-circuit this test for compilers unknown to
2907# Autoconf.
2908for ac_file in $ac_files ''
2909do
2910 test -f "$ac_file" || continue
2911 case $ac_file in
2912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2913 ;;
2914 [ab].out )
2915 # We found the default executable, but exeext='' is most
2916 # certainly right.
2917 break;;
2918 *.* )
2919 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2920 then :; else
2921 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2922 fi
2923 # We set ac_cv_exeext here because the later test for it is not
2924 # safe: cross compilers may not add the suffix if given an `-o'
2925 # argument, so we may need to know it at that point already.
2926 # Even if this section looks crufty: it has the advantage of
2927 # actually working.
2928 break;;
2929 * )
2930 break;;
2931 esac
2932done
2933test "$ac_cv_exeext" = no && ac_cv_exeext=
2934
2935else
2936 ac_file=''
2937fi
2938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2939$as_echo "$ac_file" >&6; }
2940if test -z "$ac_file"; then :
2941 $as_echo "$as_me: failed program was:" >&5
2942sed 's/^/| /' conftest.$ac_ext >&5
2943
2944{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2946{ as_fn_set_status 77
2947as_fn_error "C compiler cannot create executables
2948See \`config.log' for more details." "$LINENO" 5; }; }
2949fi
2950ac_exeext=$ac_cv_exeext
2951
2952# Check that the compiler produces executables we can run. If not, either
2953# the compiler is broken, or we cross compile.
2954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2955$as_echo_n "checking whether the C compiler works... " >&6; }
2956# If not cross compiling, check that we can run a simple program.
2957if test "$cross_compiling" != yes; then
2958 if { ac_try='./$ac_file'
2959 { { case "(($ac_try" in
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2962esac
2963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2964$as_echo "$ac_try_echo"; } >&5
2965 (eval "$ac_try") 2>&5
2966 ac_status=$?
2967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2968 test $ac_status = 0; }; }; then
2969 cross_compiling=no
2970 else
2971 if test "$cross_compiling" = maybe; then
2972 cross_compiling=yes
2973 else
2974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2976as_fn_error "cannot run C compiled programs.
2977If you meant to cross compile, use \`--host'.
2978See \`config.log' for more details." "$LINENO" 5; }
2979 fi
2980 fi
2981fi
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2983$as_echo "yes" >&6; }
2984
2985rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2986ac_clean_files=$ac_clean_files_save
2987# Check that the compiler produces executables we can run. If not, either
2988# the compiler is broken, or we cross compile.
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2990$as_echo_n "checking whether we are cross compiling... " >&6; }
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2992$as_echo "$cross_compiling" >&6; }
2993
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2995$as_echo_n "checking for suffix of executables... " >&6; }
2996if { { ac_try="$ac_link"
2997case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000esac
3001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3002$as_echo "$ac_try_echo"; } >&5
3003 (eval "$ac_link") 2>&5
3004 ac_status=$?
3005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3006 test $ac_status = 0; }; then :
3007 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3008# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3009# work properly (i.e., refer to `conftest.exe'), while it won't with
3010# `rm'.
3011for ac_file in conftest.exe conftest conftest.*; do
3012 test -f "$ac_file" || continue
3013 case $ac_file in
3014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3015 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3016 break;;
3017 * ) break;;
3018 esac
3019done
3020else
3021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3022$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3023as_fn_error "cannot compute suffix of executables: cannot compile and link
3024See \`config.log' for more details." "$LINENO" 5; }
3025fi
3026rm -f conftest$ac_cv_exeext
3027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3028$as_echo "$ac_cv_exeext" >&6; }
3029
3030rm -f conftest.$ac_ext
3031EXEEXT=$ac_cv_exeext
3032ac_exeext=$EXEEXT
3033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3034$as_echo_n "checking for suffix of object files... " >&6; }
3035if test "${ac_cv_objext+set}" = set; then :
3036 $as_echo_n "(cached) " >&6
3037else
3038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3039/* end confdefs.h. */
3040
3041int
3042main ()
3043{
3044
3045 ;
3046 return 0;
3047}
3048_ACEOF
3049rm -f conftest.o conftest.obj
3050if { { ac_try="$ac_compile"
3051case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054esac
3055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056$as_echo "$ac_try_echo"; } >&5
3057 (eval "$ac_compile") 2>&5
3058 ac_status=$?
3059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3060 test $ac_status = 0; }; then :
3061 for ac_file in conftest.o conftest.obj conftest.*; do
3062 test -f "$ac_file" || continue;
3063 case $ac_file in
3064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3065 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3066 break;;
3067 esac
3068done
3069else
3070 $as_echo "$as_me: failed program was:" >&5
3071sed 's/^/| /' conftest.$ac_ext >&5
3072
3073{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3074$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3075as_fn_error "cannot compute suffix of object files: cannot compile
3076See \`config.log' for more details." "$LINENO" 5; }
3077fi
3078rm -f conftest.$ac_cv_objext conftest.$ac_ext
3079fi
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3081$as_echo "$ac_cv_objext" >&6; }
3082OBJEXT=$ac_cv_objext
3083ac_objext=$OBJEXT
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3085$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3086if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3088else
3089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090/* end confdefs.h. */
3091
3092int
3093main ()
3094{
3095#ifndef __GNUC__
3096 choke me
3097#endif
3098
3099 ;
3100 return 0;
3101}
3102_ACEOF
3103if ac_fn_c_try_compile "$LINENO"; then :
3104 ac_compiler_gnu=yes
3105else
3106 ac_compiler_gnu=no
3107fi
3108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109ac_cv_c_compiler_gnu=$ac_compiler_gnu
3110
3111fi
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3113$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3114if test $ac_compiler_gnu = yes; then
3115 GCC=yes
3116else
3117 GCC=
3118fi
3119ac_test_CFLAGS=${CFLAGS+set}
3120ac_save_CFLAGS=$CFLAGS
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3122$as_echo_n "checking whether $CC accepts -g... " >&6; }
3123if test "${ac_cv_prog_cc_g+set}" = set; then :
3124 $as_echo_n "(cached) " >&6
3125else
3126 ac_save_c_werror_flag=$ac_c_werror_flag
3127 ac_c_werror_flag=yes
3128 ac_cv_prog_cc_g=no
3129 CFLAGS="-g"
3130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3131/* end confdefs.h. */
3132
3133int
3134main ()
3135{
3136
3137 ;
3138 return 0;
3139}
3140_ACEOF
3141if ac_fn_c_try_compile "$LINENO"; then :
3142 ac_cv_prog_cc_g=yes
3143else
3144 CFLAGS=""
3145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146/* end confdefs.h. */
3147
3148int
3149main ()
3150{
3151
3152 ;
3153 return 0;
3154}
3155_ACEOF
3156if ac_fn_c_try_compile "$LINENO"; then :
3157
3158else
3159 ac_c_werror_flag=$ac_save_c_werror_flag
3160 CFLAGS="-g"
3161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162/* end confdefs.h. */
3163
3164int
3165main ()
3166{
3167
3168 ;
3169 return 0;
3170}
3171_ACEOF
3172if ac_fn_c_try_compile "$LINENO"; then :
3173 ac_cv_prog_cc_g=yes
3174fi
3175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176fi
3177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178fi
3179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 ac_c_werror_flag=$ac_save_c_werror_flag
3181fi
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3183$as_echo "$ac_cv_prog_cc_g" >&6; }
3184if test "$ac_test_CFLAGS" = set; then
3185 CFLAGS=$ac_save_CFLAGS
3186elif test $ac_cv_prog_cc_g = yes; then
3187 if test "$GCC" = yes; then
3188 CFLAGS="-g -O2"
3189 else
3190 CFLAGS="-g"
3191 fi
3192else
3193 if test "$GCC" = yes; then
3194 CFLAGS="-O2"
3195 else
3196 CFLAGS=
3197 fi
3198fi
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3200$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3201if test "${ac_cv_prog_cc_c89+set}" = set; then :
3202 $as_echo_n "(cached) " >&6
3203else
3204 ac_cv_prog_cc_c89=no
3205ac_save_CC=$CC
3206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207/* end confdefs.h. */
3208#include <stdarg.h>
3209#include <stdio.h>
3210#include <sys/types.h>
3211#include <sys/stat.h>
3212/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3213struct buf { int x; };
3214FILE * (*rcsopen) (struct buf *, struct stat *, int);
3215static char *e (p, i)
3216 char **p;
3217 int i;
3218{
3219 return p[i];
3220}
3221static char *f (char * (*g) (char **, int), char **p, ...)
3222{
3223 char *s;
3224 va_list v;
3225 va_start (v,p);
3226 s = g (p, va_arg (v,int));
3227 va_end (v);
3228 return s;
3229}
3230
3231/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3232 function prototypes and stuff, but not '\xHH' hex character constants.
3233 These don't provoke an error unfortunately, instead are silently treated
3234 as 'x'. The following induces an error, until -std is added to get
3235 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3236 array size at least. It's necessary to write '\x00'==0 to get something
3237 that's true only with -std. */
3238int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3239
3240/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3241 inside strings and character constants. */
3242#define FOO(x) 'x'
3243int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3244
3245int test (int i, double x);
3246struct s1 {int (*f) (int a);};
3247struct s2 {int (*f) (double a);};
3248int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3249int argc;
3250char **argv;
3251int
3252main ()
3253{
3254return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3255 ;
3256 return 0;
3257}
3258_ACEOF
3259for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3260 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3261do
3262 CC="$ac_save_CC $ac_arg"
3263 if ac_fn_c_try_compile "$LINENO"; then :
3264 ac_cv_prog_cc_c89=$ac_arg
3265fi
3266rm -f core conftest.err conftest.$ac_objext
3267 test "x$ac_cv_prog_cc_c89" != "xno" && break
3268done
3269rm -f conftest.$ac_ext
3270CC=$ac_save_CC
3271
3272fi
3273# AC_CACHE_VAL
3274case "x$ac_cv_prog_cc_c89" in
3275 x)
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3277$as_echo "none needed" >&6; } ;;
3278 xno)
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3280$as_echo "unsupported" >&6; } ;;
3281 *)
3282 CC="$CC $ac_cv_prog_cc_c89"
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3284$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3285esac
3286if test "x$ac_cv_prog_cc_c89" != xno; then :
3287
3288fi
3289
3290ac_ext=c
3291ac_cpp='$CPP $CPPFLAGS'
3292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294ac_compiler_gnu=$ac_cv_c_compiler_gnu
3295
3296
3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3298$as_echo_n "checking for library containing strerror... " >&6; }
3299if test "${ac_cv_search_strerror+set}" = set; then :
3300 $as_echo_n "(cached) " >&6
3301else
3302 ac_func_search_save_LIBS=$LIBS
3303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304/* end confdefs.h. */
3305
3306/* Override any GCC internal prototype to avoid an error.
3307 Use char because int might match the return type of a GCC
3308 builtin and then its argument prototype would still apply. */
3309#ifdef __cplusplus
3310extern "C"
3311#endif
3312char strerror ();
3313int
3314main ()
3315{
3316return strerror ();
3317 ;
3318 return 0;
3319}
3320_ACEOF
3321for ac_lib in '' cposix; do
3322 if test -z "$ac_lib"; then
3323 ac_res="none required"
3324 else
3325 ac_res=-l$ac_lib
3326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3327 fi
3328 if ac_fn_c_try_link "$LINENO"; then :
3329 ac_cv_search_strerror=$ac_res
3330fi
3331rm -f core conftest.err conftest.$ac_objext \
3332 conftest$ac_exeext
3333 if test "${ac_cv_search_strerror+set}" = set; then :
3334 break
3335fi
3336done
3337if test "${ac_cv_search_strerror+set}" = set; then :
3338
3339else
3340 ac_cv_search_strerror=no
3341fi
3342rm conftest.$ac_ext
3343LIBS=$ac_func_search_save_LIBS
3344fi
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3346$as_echo "$ac_cv_search_strerror" >&6; }
3347ac_res=$ac_cv_search_strerror
3348if test "$ac_res" != no; then :
3349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3350
3351fi
3352
3353
3354BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
3355am__api_version='1.11'
3356
3357# Find a good install program. We prefer a C program (faster),
3358# so one script is as good as another. But avoid the broken or
3359# incompatible versions:
3360# SysV /etc/install, /usr/sbin/install
3361# SunOS /usr/etc/install
3362# IRIX /sbin/install
3363# AIX /bin/install
3364# AmigaOS /C/install, which installs bootblocks on floppy discs
3365# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3366# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3367# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3368# OS/2's system install, which has a completely different semantic
3369# ./install, which can be erroneously created by make from ./install.sh.
3370# Reject install programs that cannot install multiple files.
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3372$as_echo_n "checking for a BSD-compatible install... " >&6; }
3373if test -z "$INSTALL"; then
3374if test "${ac_cv_path_install+set}" = set; then :
3375 $as_echo_n "(cached) " >&6
3376else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378for as_dir in $PATH
3379do
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 # Account for people who put trailing slashes in PATH elements.
3383case $as_dir/ in #((
3384 ./ | .// | /[cC]/* | \
3385 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3386 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3387 /usr/ucb/* ) ;;
3388 *)
3389 # OSF1 and SCO ODT 3.0 have their own names for install.
3390 # Don't use installbsd from OSF since it installs stuff as root
3391 # by default.
3392 for ac_prog in ginstall scoinst install; do
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3395 if test $ac_prog = install &&
3396 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3397 # AIX install. It has an incompatible calling convention.
3398 :
3399 elif test $ac_prog = install &&
3400 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3401 # program-specific install script used by HP pwplus--don't use.
3402 :
3403 else
3404 rm -rf conftest.one conftest.two conftest.dir
3405 echo one > conftest.one
3406 echo two > conftest.two
3407 mkdir conftest.dir
3408 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3409 test -s conftest.one && test -s conftest.two &&
3410 test -s conftest.dir/conftest.one &&
3411 test -s conftest.dir/conftest.two
3412 then
3413 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3414 break 3
3415 fi
3416 fi
3417 fi
3418 done
3419 done
3420 ;;
3421esac
3422
3423 done
3424IFS=$as_save_IFS
3425
3426rm -rf conftest.one conftest.two conftest.dir
3427
3428fi
3429 if test "${ac_cv_path_install+set}" = set; then
3430 INSTALL=$ac_cv_path_install
3431 else
3432 # As a last resort, use the slow shell script. Don't cache a
3433 # value for INSTALL within a source directory, because that will
3434 # break other packages using the cache if that directory is
3435 # removed, or if the value is a relative name.
3436 INSTALL=$ac_install_sh
3437 fi
3438fi
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3440$as_echo "$INSTALL" >&6; }
3441
3442# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3443# It thinks the first close brace ends the variable substitution.
3444test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3445
3446test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3447
3448test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3449
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3451$as_echo_n "checking whether build environment is sane... " >&6; }
3452# Just in case
3453sleep 1
3454echo timestamp > conftest.file
3455# Reject unsafe characters in $srcdir or the absolute working directory
3456# name. Accept space and tab only in the latter.
3457am_lf='
3458'
3459case `pwd` in
3460 *[\\\"\#\$\&\'\`$am_lf]*)
3461 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3462esac
3463case $srcdir in
3464 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3465 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3466esac
3467
3468# Do `set' in a subshell so we don't clobber the current shell's
3469# arguments. Must try -L first in case configure is actually a
3470# symlink; some systems play weird games with the mod time of symlinks
3471# (eg FreeBSD returns the mod time of the symlink's containing
3472# directory).
3473if (
3474 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3475 if test "$*" = "X"; then
3476 # -L didn't work.
3477 set X `ls -t "$srcdir/configure" conftest.file`
3478 fi
3479 rm -f conftest.file
3480 if test "$*" != "X $srcdir/configure conftest.file" \
3481 && test "$*" != "X conftest.file $srcdir/configure"; then
3482
3483 # If neither matched, then we have a broken ls. This can happen
3484 # if, for instance, CONFIG_SHELL is bash and it inherits a
3485 # broken ls alias from the environment. This has actually
3486 # happened. Such a system could not be considered "sane".
3487 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3488alias in your environment" "$LINENO" 5
3489 fi
3490
3491 test "$2" = conftest.file
3492 )
3493then
3494 # Ok.
3495 :
3496else
3497 as_fn_error "newly created file is older than distributed files!
3498Check your system clock" "$LINENO" 5
3499fi
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3501$as_echo "yes" >&6; }
3502test "$program_prefix" != NONE &&
3503 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3504# Use a double $ so make ignores it.
3505test "$program_suffix" != NONE &&
3506 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3507# Double any \ or $.
3508# By default was `s,x,x', remove it if useless.
3509ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3510program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3511
3512# expand $ac_aux_dir to an absolute path
3513am_aux_dir=`cd $ac_aux_dir && pwd`
3514
3515if test x"${MISSING+set}" != xset; then
3516 case $am_aux_dir in
3517 *\ * | *\ *)
3518 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3519 *)
3520 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3521 esac
3522fi
3523# Use eval to expand $SHELL
3524if eval "$MISSING --run true"; then
3525 am_missing_run="$MISSING --run "
3526else
3527 am_missing_run=
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3529$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3530fi
3531
3532if test x"${install_sh}" != xset; then
3533 case $am_aux_dir in
3534 *\ * | *\ *)
3535 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3536 *)
3537 install_sh="\${SHELL} $am_aux_dir/install-sh"
3538 esac
3539fi
3540
3541# Installed binaries are usually stripped using `strip' when the user
3542# run `make install-strip'. However `strip' might not be the right
3543# tool to use in cross-compilation environments, therefore Automake
3544# will honor the `STRIP' environment variable to overrule this program.
3545if test "$cross_compiling" != no; then
3546 if test -n "$ac_tool_prefix"; then
3547 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3548set dummy ${ac_tool_prefix}strip; ac_word=$2
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550$as_echo_n "checking for $ac_word... " >&6; }
3551if test "${ac_cv_prog_STRIP+set}" = set; then :
3552 $as_echo_n "(cached) " >&6
3553else
3554 if test -n "$STRIP"; then
3555 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3556else
3557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558for as_dir in $PATH
3559do
3560 IFS=$as_save_IFS
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 break 2
3567 fi
3568done
3569 done
3570IFS=$as_save_IFS
3571
3572fi
3573fi
3574STRIP=$ac_cv_prog_STRIP
3575if test -n "$STRIP"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3577$as_echo "$STRIP" >&6; }
3578else
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580$as_echo "no" >&6; }
3581fi
3582
3583
3584fi
3585if test -z "$ac_cv_prog_STRIP"; then
3586 ac_ct_STRIP=$STRIP
3587 # Extract the first word of "strip", so it can be a program name with args.
3588set dummy strip; ac_word=$2
3589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590$as_echo_n "checking for $ac_word... " >&6; }
3591if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3593else
3594 if test -n "$ac_ct_STRIP"; then
3595 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3596else
3597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598for as_dir in $PATH
3599do
3600 IFS=$as_save_IFS
3601 test -z "$as_dir" && as_dir=.
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3604 ac_cv_prog_ac_ct_STRIP="strip"
3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 break 2
3607 fi
3608done
3609 done
3610IFS=$as_save_IFS
3611
3612fi
3613fi
3614ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3615if test -n "$ac_ct_STRIP"; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3617$as_echo "$ac_ct_STRIP" >&6; }
3618else
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620$as_echo "no" >&6; }
3621fi
3622
3623 if test "x$ac_ct_STRIP" = x; then
3624 STRIP=":"
3625 else
3626 case $cross_compiling:$ac_tool_warned in
3627yes:)
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3630ac_tool_warned=yes ;;
3631esac
3632 STRIP=$ac_ct_STRIP
3633 fi
3634else
3635 STRIP="$ac_cv_prog_STRIP"
3636fi
3637
3638fi
3639INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3640
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3642$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3643if test -z "$MKDIR_P"; then
3644 if test "${ac_cv_path_mkdir+set}" = set; then :
3645 $as_echo_n "(cached) " >&6
3646else
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3649do
3650 IFS=$as_save_IFS
3651 test -z "$as_dir" && as_dir=.
3652 for ac_prog in mkdir gmkdir; do
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3655 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3656 'mkdir (GNU coreutils) '* | \
3657 'mkdir (coreutils) '* | \
3658 'mkdir (fileutils) '4.1*)
3659 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3660 break 3;;
3661 esac
3662 done
3663 done
3664 done
3665IFS=$as_save_IFS
3666
3667fi
3668
3669 if test "${ac_cv_path_mkdir+set}" = set; then
3670 MKDIR_P="$ac_cv_path_mkdir -p"
3671 else
3672 # As a last resort, use the slow shell script. Don't cache a
3673 # value for MKDIR_P within a source directory, because that will
3674 # break other packages using the cache if that directory is
3675 # removed, or if the value is a relative name.
3676 test -d ./--version && rmdir ./--version
3677 MKDIR_P="$ac_install_sh -d"
3678 fi
3679fi
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3681$as_echo "$MKDIR_P" >&6; }
3682
3683mkdir_p="$MKDIR_P"
3684case $mkdir_p in
3685 [\\/$]* | ?:[\\/]*) ;;
3686 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3687esac
3688
3689for ac_prog in gawk mawk nawk awk
3690do
3691 # Extract the first word of "$ac_prog", so it can be a program name with args.
3692set dummy $ac_prog; ac_word=$2
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694$as_echo_n "checking for $ac_word... " >&6; }
3695if test "${ac_cv_prog_AWK+set}" = set; then :
3696 $as_echo_n "(cached) " >&6
3697else
3698 if test -n "$AWK"; then
3699 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3700else
3701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702for as_dir in $PATH
3703do
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3708 ac_cv_prog_AWK="$ac_prog"
3709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 break 2
3711 fi
3712done
3713 done
3714IFS=$as_save_IFS
3715
3716fi
3717fi
3718AWK=$ac_cv_prog_AWK
3719if test -n "$AWK"; then
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3721$as_echo "$AWK" >&6; }
3722else
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724$as_echo "no" >&6; }
3725fi
3726
3727
3728 test -n "$AWK" && break
3729done
3730
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3732$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3733set x ${MAKE-make}
3734ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3735if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3736 $as_echo_n "(cached) " >&6
3737else
3738 cat >conftest.make <<\_ACEOF
3739SHELL = /bin/sh
3740all:
3741 @echo '@@@%%%=$(MAKE)=@@@%%%'
3742_ACEOF
3743# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3744case `${MAKE-make} -f conftest.make 2>/dev/null` in
3745 *@@@%%%=?*=@@@%%%*)
3746 eval ac_cv_prog_make_${ac_make}_set=yes;;
3747 *)
3748 eval ac_cv_prog_make_${ac_make}_set=no;;
3749esac
3750rm -f conftest.make
3751fi
3752if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3754$as_echo "yes" >&6; }
3755 SET_MAKE=
3756else
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758$as_echo "no" >&6; }
3759 SET_MAKE="MAKE=${MAKE-make}"
3760fi
3761
3762rm -rf .tst 2>/dev/null
3763mkdir .tst 2>/dev/null
3764if test -d .tst; then
3765 am__leading_dot=.
3766else
3767 am__leading_dot=_
3768fi
3769rmdir .tst 2>/dev/null
3770
3771DEPDIR="${am__leading_dot}deps"
3772
3773ac_config_commands="$ac_config_commands depfiles"
3774
3775
3776am_make=${MAKE-make}
3777cat > confinc << 'END'
3778am__doit:
3779 @echo this is the am__doit target
3780.PHONY: am__doit
3781END
3782# If we don't find an include directive, just comment out the code.
3783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3784$as_echo_n "checking for style of include used by $am_make... " >&6; }
3785am__include="#"
3786am__quote=
3787_am_result=none
3788# First try GNU make style include.
3789echo "include confinc" > confmf
3790# Ignore all kinds of additional output from `make'.
3791case `$am_make -s -f confmf 2> /dev/null` in #(
3792*the\ am__doit\ target*)
3793 am__include=include
3794 am__quote=
3795 _am_result=GNU
3796 ;;
3797esac
3798# Now try BSD make style include.
3799if test "$am__include" = "#"; then
3800 echo '.include "confinc"' > confmf
3801 case `$am_make -s -f confmf 2> /dev/null` in #(
3802 *the\ am__doit\ target*)
3803 am__include=.include
3804 am__quote="\""
3805 _am_result=BSD
3806 ;;
3807 esac
3808fi
3809
3810
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3812$as_echo "$_am_result" >&6; }
3813rm -f confinc confmf
3814
3815# Check whether --enable-dependency-tracking was given.
3816if test "${enable_dependency_tracking+set}" = set; then :
3817 enableval=$enable_dependency_tracking;
3818fi
3819
3820if test "x$enable_dependency_tracking" != xno; then
3821 am_depcomp="$ac_aux_dir/depcomp"
3822 AMDEPBACKSLASH='\'
3823fi
3824 if test "x$enable_dependency_tracking" != xno; then
3825 AMDEP_TRUE=
3826 AMDEP_FALSE='#'
3827else
3828 AMDEP_TRUE='#'
3829 AMDEP_FALSE=
3830fi
3831
3832
3833if test "`cd $srcdir && pwd`" != "`pwd`"; then
3834 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3835 # is not polluted with repeated "-I."
3836 am__isrc=' -I$(srcdir)'
3837 # test to see if srcdir already configured
3838 if test -f $srcdir/config.status; then
3839 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3840 fi
3841fi
3842
3843# test whether we have cygpath
3844if test -z "$CYGPATH_W"; then
3845 if (cygpath --version) >/dev/null 2>/dev/null; then
3846 CYGPATH_W='cygpath -w'
3847 else
3848 CYGPATH_W=echo
3849 fi
3850fi
3851
3852
3853# Define the identity of the package.
3854 PACKAGE=gas
3855 VERSION=${BFD_VERSION}
3856
3857
3858cat >>confdefs.h <<_ACEOF
3859#define PACKAGE "$PACKAGE"
3860_ACEOF
3861
3862
3863cat >>confdefs.h <<_ACEOF
3864#define VERSION "$VERSION"
3865_ACEOF
3866
3867# Some tools Automake needs.
3868
3869ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3870
3871
3872AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3873
3874
3875AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3876
3877
3878AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3879
3880
3881MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3882
3883# We need awk for the "check" target. The system "awk" is bad on
3884# some platforms.
3885# Always define AMTAR for backward compatibility.
3886
3887AMTAR=${AMTAR-"${am_missing_run}tar"}
3888
3889am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3890
3891
3892
3893
3894depcc="$CC" am_compiler_list=
3895
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3897$as_echo_n "checking dependency style of $depcc... " >&6; }
3898if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3899 $as_echo_n "(cached) " >&6
3900else
3901 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3902 # We make a subdir and do the tests there. Otherwise we can end up
3903 # making bogus files that we don't know about and never remove. For
3904 # instance it was reported that on HP-UX the gcc test will end up
3905 # making a dummy file named `D' -- because `-MD' means `put the output
3906 # in D'.
3907 mkdir conftest.dir
3908 # Copy depcomp to subdir because otherwise we won't find it if we're
3909 # using a relative directory.
3910 cp "$am_depcomp" conftest.dir
3911 cd conftest.dir
3912 # We will build objects and dependencies in a subdirectory because
3913 # it helps to detect inapplicable dependency modes. For instance
3914 # both Tru64's cc and ICC support -MD to output dependencies as a
3915 # side effect of compilation, but ICC will put the dependencies in
3916 # the current directory while Tru64 will put them in the object
3917 # directory.
3918 mkdir sub
3919
3920 am_cv_CC_dependencies_compiler_type=none
3921 if test "$am_compiler_list" = ""; then
3922 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3923 fi
3924 am__universal=false
3925 case " $depcc " in #(
3926 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3927 esac
3928
3929 for depmode in $am_compiler_list; do
3930 # Setup a source with many dependencies, because some compilers
3931 # like to wrap large dependency lists on column 80 (with \), and
3932 # we should not choose a depcomp mode which is confused by this.
3933 #
3934 # We need to recreate these files for each test, as the compiler may
3935 # overwrite some of them when testing with obscure command lines.
3936 # This happens at least with the AIX C compiler.
3937 : > sub/conftest.c
3938 for i in 1 2 3 4 5 6; do
3939 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3940 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3941 # Solaris 8's {/usr,}/bin/sh.
3942 touch sub/conftst$i.h
3943 done
3944 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3945
3946 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3947 # mode. It turns out that the SunPro C++ compiler does not properly
3948 # handle `-M -o', and we need to detect this. Also, some Intel
3949 # versions had trouble with output in subdirs
3950 am__obj=sub/conftest.${OBJEXT-o}
3951 am__minus_obj="-o $am__obj"
3952 case $depmode in
3953 gcc)
3954 # This depmode causes a compiler race in universal mode.
3955 test "$am__universal" = false || continue
3956 ;;
3957 nosideeffect)
3958 # after this tag, mechanisms are not by side-effect, so they'll
3959 # only be used when explicitly requested
3960 if test "x$enable_dependency_tracking" = xyes; then
3961 continue
3962 else
3963 break
3964 fi
3965 ;;
3966 msvisualcpp | msvcmsys)
3967 # This compiler won't grok `-c -o', but also, the minuso test has
3968 # not run yet. These depmodes are late enough in the game, and
3969 # so weak that their functioning should not be impacted.
3970 am__obj=conftest.${OBJEXT-o}
3971 am__minus_obj=
3972 ;;
3973 none) break ;;
3974 esac
3975 if depmode=$depmode \
3976 source=sub/conftest.c object=$am__obj \
3977 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3978 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3979 >/dev/null 2>conftest.err &&
3980 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3981 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3982 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3983 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3984 # icc doesn't choke on unknown options, it will just issue warnings
3985 # or remarks (even with -Werror). So we grep stderr for any message
3986 # that says an option was ignored or not supported.
3987 # When given -MP, icc 7.0 and 7.1 complain thusly:
3988 # icc: Command line warning: ignoring option '-M'; no argument required
3989 # The diagnosis changed in icc 8.0:
3990 # icc: Command line remark: option '-MP' not supported
3991 if (grep 'ignoring option' conftest.err ||
3992 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3993 am_cv_CC_dependencies_compiler_type=$depmode
3994 break
3995 fi
3996 fi
3997 done
3998
3999 cd ..
4000 rm -rf conftest.dir
4001else
4002 am_cv_CC_dependencies_compiler_type=none
4003fi
4004
4005fi
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4007$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4008CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4009
4010 if
4011 test "x$enable_dependency_tracking" != xno \
4012 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4013 am__fastdepCC_TRUE=
4014 am__fastdepCC_FALSE='#'
4015else
4016 am__fastdepCC_TRUE='#'
4017 am__fastdepCC_FALSE=
4018fi
4019
4020
4021
4022
4023ac_ext=c
4024ac_cpp='$CPP $CPPFLAGS'
4025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4027ac_compiler_gnu=$ac_cv_c_compiler_gnu
4028if test -n "$ac_tool_prefix"; then
4029 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4030set dummy ${ac_tool_prefix}gcc; ac_word=$2
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4032$as_echo_n "checking for $ac_word... " >&6; }
4033if test "${ac_cv_prog_CC+set}" = set; then :
4034 $as_echo_n "(cached) " >&6
4035else
4036 if test -n "$CC"; then
4037 ac_cv_prog_CC="$CC" # Let the user override the test.
4038else
4039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040for as_dir in $PATH
4041do
4042 IFS=$as_save_IFS
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4046 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 break 2
4049 fi
4050done
4051 done
4052IFS=$as_save_IFS
4053
4054fi
4055fi
4056CC=$ac_cv_prog_CC
4057if test -n "$CC"; then
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4059$as_echo "$CC" >&6; }
4060else
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062$as_echo "no" >&6; }
4063fi
4064
4065
4066fi
4067if test -z "$ac_cv_prog_CC"; then
4068 ac_ct_CC=$CC
4069 # Extract the first word of "gcc", so it can be a program name with args.
4070set dummy gcc; ac_word=$2
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4072$as_echo_n "checking for $ac_word... " >&6; }
4073if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
4075else
4076 if test -n "$ac_ct_CC"; then
4077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4078else
4079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080for as_dir in $PATH
4081do
4082 IFS=$as_save_IFS
4083 test -z "$as_dir" && as_dir=.
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4086 ac_cv_prog_ac_ct_CC="gcc"
4087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4088 break 2
4089 fi
4090done
4091 done
4092IFS=$as_save_IFS
4093
4094fi
4095fi
4096ac_ct_CC=$ac_cv_prog_ac_ct_CC
4097if test -n "$ac_ct_CC"; then
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4099$as_echo "$ac_ct_CC" >&6; }
4100else
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102$as_echo "no" >&6; }
4103fi
4104
4105 if test "x$ac_ct_CC" = x; then
4106 CC=""
4107 else
4108 case $cross_compiling:$ac_tool_warned in
4109yes:)
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4112ac_tool_warned=yes ;;
4113esac
4114 CC=$ac_ct_CC
4115 fi
4116else
4117 CC="$ac_cv_prog_CC"
4118fi
4119
4120if test -z "$CC"; then
4121 if test -n "$ac_tool_prefix"; then
4122 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4123set dummy ${ac_tool_prefix}cc; ac_word=$2
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4125$as_echo_n "checking for $ac_word... " >&6; }
4126if test "${ac_cv_prog_CC+set}" = set; then :
4127 $as_echo_n "(cached) " >&6
4128else
4129 if test -n "$CC"; then
4130 ac_cv_prog_CC="$CC" # Let the user override the test.
4131else
4132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133for as_dir in $PATH
4134do
4135 IFS=$as_save_IFS
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4139 ac_cv_prog_CC="${ac_tool_prefix}cc"
4140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4141 break 2
4142 fi
4143done
4144 done
4145IFS=$as_save_IFS
4146
4147fi
4148fi
4149CC=$ac_cv_prog_CC
4150if test -n "$CC"; then
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4152$as_echo "$CC" >&6; }
4153else
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155$as_echo "no" >&6; }
4156fi
4157
4158
4159 fi
4160fi
4161if test -z "$CC"; then
4162 # Extract the first word of "cc", so it can be a program name with args.
4163set dummy cc; ac_word=$2
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165$as_echo_n "checking for $ac_word... " >&6; }
4166if test "${ac_cv_prog_CC+set}" = set; then :
4167 $as_echo_n "(cached) " >&6
4168else
4169 if test -n "$CC"; then
4170 ac_cv_prog_CC="$CC" # Let the user override the test.
4171else
4172 ac_prog_rejected=no
4173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174for as_dir in $PATH
4175do
4176 IFS=$as_save_IFS
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4180 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4181 ac_prog_rejected=yes
4182 continue
4183 fi
4184 ac_cv_prog_CC="cc"
4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 break 2
4187 fi
4188done
4189 done
4190IFS=$as_save_IFS
4191
4192if test $ac_prog_rejected = yes; then
4193 # We found a bogon in the path, so make sure we never use it.
4194 set dummy $ac_cv_prog_CC
4195 shift
4196 if test $# != 0; then
4197 # We chose a different compiler from the bogus one.
4198 # However, it has the same basename, so the bogon will be chosen
4199 # first if we set CC to just the basename; use the full file name.
4200 shift
4201 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4202 fi
4203fi
4204fi
4205fi
4206CC=$ac_cv_prog_CC
4207if test -n "$CC"; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4209$as_echo "$CC" >&6; }
4210else
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212$as_echo "no" >&6; }
4213fi
4214
4215
4216fi
4217if test -z "$CC"; then
4218 if test -n "$ac_tool_prefix"; then
4219 for ac_prog in cl.exe
4220 do
4221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4222set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4224$as_echo_n "checking for $ac_word... " >&6; }
4225if test "${ac_cv_prog_CC+set}" = set; then :
4226 $as_echo_n "(cached) " >&6
4227else
4228 if test -n "$CC"; then
4229 ac_cv_prog_CC="$CC" # Let the user override the test.
4230else
4231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232for as_dir in $PATH
4233do
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 break 2
4241 fi
4242done
4243 done
4244IFS=$as_save_IFS
4245
4246fi
4247fi
4248CC=$ac_cv_prog_CC
4249if test -n "$CC"; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4251$as_echo "$CC" >&6; }
4252else
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254$as_echo "no" >&6; }
4255fi
4256
4257
4258 test -n "$CC" && break
4259 done
4260fi
4261if test -z "$CC"; then
4262 ac_ct_CC=$CC
4263 for ac_prog in cl.exe
4264do
4265 # Extract the first word of "$ac_prog", so it can be a program name with args.
4266set dummy $ac_prog; ac_word=$2
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268$as_echo_n "checking for $ac_word... " >&6; }
4269if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4270 $as_echo_n "(cached) " >&6
4271else
4272 if test -n "$ac_ct_CC"; then
4273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4274else
4275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276for as_dir in $PATH
4277do
4278 IFS=$as_save_IFS
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282 ac_cv_prog_ac_ct_CC="$ac_prog"
4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 break 2
4285 fi
4286done
4287 done
4288IFS=$as_save_IFS
4289
4290fi
4291fi
4292ac_ct_CC=$ac_cv_prog_ac_ct_CC
4293if test -n "$ac_ct_CC"; then
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4295$as_echo "$ac_ct_CC" >&6; }
4296else
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298$as_echo "no" >&6; }
4299fi
4300
4301
4302 test -n "$ac_ct_CC" && break
4303done
4304
4305 if test "x$ac_ct_CC" = x; then
4306 CC=""
4307 else
4308 case $cross_compiling:$ac_tool_warned in
4309yes:)
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4311$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4312ac_tool_warned=yes ;;
4313esac
4314 CC=$ac_ct_CC
4315 fi
4316fi
4317
4318fi
4319
4320
4321test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4322$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4323as_fn_error "no acceptable C compiler found in \$PATH
4324See \`config.log' for more details." "$LINENO" 5; }
4325
4326# Provide some information about the compiler.
4327$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4328set X $ac_compile
4329ac_compiler=$2
4330for ac_option in --version -v -V -qversion; do
4331 { { ac_try="$ac_compiler $ac_option >&5"
4332case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4335esac
4336eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4337$as_echo "$ac_try_echo"; } >&5
4338 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4339 ac_status=$?
4340 if test -s conftest.err; then
4341 sed '10a\
4342... rest of stderr output deleted ...
4343 10q' conftest.err >conftest.er1
4344 cat conftest.er1 >&5
4345 rm -f conftest.er1 conftest.err
4346 fi
4347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4348 test $ac_status = 0; }
4349done
4350
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4352$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4353if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4354 $as_echo_n "(cached) " >&6
4355else
4356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357/* end confdefs.h. */
4358
4359int
4360main ()
4361{
4362#ifndef __GNUC__
4363 choke me
4364#endif
4365
4366 ;
4367 return 0;
4368}
4369_ACEOF
4370if ac_fn_c_try_compile "$LINENO"; then :
4371 ac_compiler_gnu=yes
4372else
4373 ac_compiler_gnu=no
4374fi
4375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376ac_cv_c_compiler_gnu=$ac_compiler_gnu
4377
4378fi
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4380$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4381if test $ac_compiler_gnu = yes; then
4382 GCC=yes
4383else
4384 GCC=
4385fi
4386ac_test_CFLAGS=${CFLAGS+set}
4387ac_save_CFLAGS=$CFLAGS
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4389$as_echo_n "checking whether $CC accepts -g... " >&6; }
4390if test "${ac_cv_prog_cc_g+set}" = set; then :
4391 $as_echo_n "(cached) " >&6
4392else
4393 ac_save_c_werror_flag=$ac_c_werror_flag
4394 ac_c_werror_flag=yes
4395 ac_cv_prog_cc_g=no
4396 CFLAGS="-g"
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398/* end confdefs.h. */
4399
4400int
4401main ()
4402{
4403
4404 ;
4405 return 0;
4406}
4407_ACEOF
4408if ac_fn_c_try_compile "$LINENO"; then :
4409 ac_cv_prog_cc_g=yes
4410else
4411 CFLAGS=""
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413/* end confdefs.h. */
4414
4415int
4416main ()
4417{
4418
4419 ;
4420 return 0;
4421}
4422_ACEOF
4423if ac_fn_c_try_compile "$LINENO"; then :
4424
4425else
4426 ac_c_werror_flag=$ac_save_c_werror_flag
4427 CFLAGS="-g"
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429/* end confdefs.h. */
4430
4431int
4432main ()
4433{
4434
4435 ;
4436 return 0;
4437}
4438_ACEOF
4439if ac_fn_c_try_compile "$LINENO"; then :
4440 ac_cv_prog_cc_g=yes
4441fi
4442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4443fi
4444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445fi
4446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447 ac_c_werror_flag=$ac_save_c_werror_flag
4448fi
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4450$as_echo "$ac_cv_prog_cc_g" >&6; }
4451if test "$ac_test_CFLAGS" = set; then
4452 CFLAGS=$ac_save_CFLAGS
4453elif test $ac_cv_prog_cc_g = yes; then
4454 if test "$GCC" = yes; then
4455 CFLAGS="-g -O2"
4456 else
4457 CFLAGS="-g"
4458 fi
4459else
4460 if test "$GCC" = yes; then
4461 CFLAGS="-O2"
4462 else
4463 CFLAGS=
4464 fi
4465fi
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4467$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4468if test "${ac_cv_prog_cc_c89+set}" = set; then :
4469 $as_echo_n "(cached) " >&6
4470else
4471 ac_cv_prog_cc_c89=no
4472ac_save_CC=$CC
4473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474/* end confdefs.h. */
4475#include <stdarg.h>
4476#include <stdio.h>
4477#include <sys/types.h>
4478#include <sys/stat.h>
4479/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4480struct buf { int x; };
4481FILE * (*rcsopen) (struct buf *, struct stat *, int);
4482static char *e (p, i)
4483 char **p;
4484 int i;
4485{
4486 return p[i];
4487}
4488static char *f (char * (*g) (char **, int), char **p, ...)
4489{
4490 char *s;
4491 va_list v;
4492 va_start (v,p);
4493 s = g (p, va_arg (v,int));
4494 va_end (v);
4495 return s;
4496}
4497
4498/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4499 function prototypes and stuff, but not '\xHH' hex character constants.
4500 These don't provoke an error unfortunately, instead are silently treated
4501 as 'x'. The following induces an error, until -std is added to get
4502 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4503 array size at least. It's necessary to write '\x00'==0 to get something
4504 that's true only with -std. */
4505int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4506
4507/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4508 inside strings and character constants. */
4509#define FOO(x) 'x'
4510int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4511
4512int test (int i, double x);
4513struct s1 {int (*f) (int a);};
4514struct s2 {int (*f) (double a);};
4515int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4516int argc;
4517char **argv;
4518int
4519main ()
4520{
4521return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4522 ;
4523 return 0;
4524}
4525_ACEOF
4526for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4527 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4528do
4529 CC="$ac_save_CC $ac_arg"
4530 if ac_fn_c_try_compile "$LINENO"; then :
4531 ac_cv_prog_cc_c89=$ac_arg
4532fi
4533rm -f core conftest.err conftest.$ac_objext
4534 test "x$ac_cv_prog_cc_c89" != "xno" && break
4535done
4536rm -f conftest.$ac_ext
4537CC=$ac_save_CC
4538
4539fi
4540# AC_CACHE_VAL
4541case "x$ac_cv_prog_cc_c89" in
4542 x)
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4544$as_echo "none needed" >&6; } ;;
4545 xno)
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4547$as_echo "unsupported" >&6; } ;;
4548 *)
4549 CC="$CC $ac_cv_prog_cc_c89"
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4551$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4552esac
4553if test "x$ac_cv_prog_cc_c89" != xno; then :
4554
4555fi
4556
4557ac_ext=c
4558ac_cpp='$CPP $CPPFLAGS'
4559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561ac_compiler_gnu=$ac_cv_c_compiler_gnu
4562
4563ac_ext=c
4564ac_cpp='$CPP $CPPFLAGS'
4565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4567ac_compiler_gnu=$ac_cv_c_compiler_gnu
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4569$as_echo_n "checking how to run the C preprocessor... " >&6; }
4570# On Suns, sometimes $CPP names a directory.
4571if test -n "$CPP" && test -d "$CPP"; then
4572 CPP=
4573fi
4574if test -z "$CPP"; then
4575 if test "${ac_cv_prog_CPP+set}" = set; then :
4576 $as_echo_n "(cached) " >&6
4577else
4578 # Double quotes because CPP needs to be expanded
4579 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4580 do
4581 ac_preproc_ok=false
4582for ac_c_preproc_warn_flag in '' yes
4583do
4584 # Use a header file that comes with gcc, so configuring glibc
4585 # with a fresh cross-compiler works.
4586 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4587 # <limits.h> exists even on freestanding compilers.
4588 # On the NeXT, cc -E runs the code through the compiler's parser,
4589 # not just through cpp. "Syntax error" is here to catch this case.
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591/* end confdefs.h. */
4592#ifdef __STDC__
4593# include <limits.h>
4594#else
4595# include <assert.h>
4596#endif
4597 Syntax error
4598_ACEOF
4599if ac_fn_c_try_cpp "$LINENO"; then :
4600
4601else
4602 # Broken: fails on valid input.
4603continue
4604fi
4605rm -f conftest.err conftest.$ac_ext
4606
4607 # OK, works on sane cases. Now check whether nonexistent headers
4608 # can be detected and how.
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610/* end confdefs.h. */
4611#include <ac_nonexistent.h>
4612_ACEOF
4613if ac_fn_c_try_cpp "$LINENO"; then :
4614 # Broken: success on invalid input.
4615continue
4616else
4617 # Passes both tests.
4618ac_preproc_ok=:
4619break
4620fi
4621rm -f conftest.err conftest.$ac_ext
4622
4623done
4624# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4625rm -f conftest.err conftest.$ac_ext
4626if $ac_preproc_ok; then :
4627 break
4628fi
4629
4630 done
4631 ac_cv_prog_CPP=$CPP
4632
4633fi
4634 CPP=$ac_cv_prog_CPP
4635else
4636 ac_cv_prog_CPP=$CPP
4637fi
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4639$as_echo "$CPP" >&6; }
4640ac_preproc_ok=false
4641for ac_c_preproc_warn_flag in '' yes
4642do
4643 # Use a header file that comes with gcc, so configuring glibc
4644 # with a fresh cross-compiler works.
4645 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4646 # <limits.h> exists even on freestanding compilers.
4647 # On the NeXT, cc -E runs the code through the compiler's parser,
4648 # not just through cpp. "Syntax error" is here to catch this case.
4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650/* end confdefs.h. */
4651#ifdef __STDC__
4652# include <limits.h>
4653#else
4654# include <assert.h>
4655#endif
4656 Syntax error
4657_ACEOF
4658if ac_fn_c_try_cpp "$LINENO"; then :
4659
4660else
4661 # Broken: fails on valid input.
4662continue
4663fi
4664rm -f conftest.err conftest.$ac_ext
4665
4666 # OK, works on sane cases. Now check whether nonexistent headers
4667 # can be detected and how.
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669/* end confdefs.h. */
4670#include <ac_nonexistent.h>
4671_ACEOF
4672if ac_fn_c_try_cpp "$LINENO"; then :
4673 # Broken: success on invalid input.
4674continue
4675else
4676 # Passes both tests.
4677ac_preproc_ok=:
4678break
4679fi
4680rm -f conftest.err conftest.$ac_ext
4681
4682done
4683# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4684rm -f conftest.err conftest.$ac_ext
4685if $ac_preproc_ok; then :
4686
4687else
4688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4690as_fn_error "C preprocessor \"$CPP\" fails sanity check
4691See \`config.log' for more details." "$LINENO" 5; }
4692fi
4693
4694ac_ext=c
4695ac_cpp='$CPP $CPPFLAGS'
4696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4698ac_compiler_gnu=$ac_cv_c_compiler_gnu
4699
4700
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4702$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4703if test "${ac_cv_path_GREP+set}" = set; then :
4704 $as_echo_n "(cached) " >&6
4705else
4706 if test -z "$GREP"; then
4707 ac_path_GREP_found=false
4708 # Loop through the user's path and test for each of PROGNAME-LIST
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4711do
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_prog in grep ggrep; do
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4717 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4718# Check for GNU ac_path_GREP and select it if it is found.
4719 # Check for GNU $ac_path_GREP
4720case `"$ac_path_GREP" --version 2>&1` in
4721*GNU*)
4722 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4723*)
4724 ac_count=0
4725 $as_echo_n 0123456789 >"conftest.in"
4726 while :
4727 do
4728 cat "conftest.in" "conftest.in" >"conftest.tmp"
4729 mv "conftest.tmp" "conftest.in"
4730 cp "conftest.in" "conftest.nl"
4731 $as_echo 'GREP' >> "conftest.nl"
4732 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4734 as_fn_arith $ac_count + 1 && ac_count=$as_val
4735 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4736 # Best one so far, save it but keep looking for a better one
4737 ac_cv_path_GREP="$ac_path_GREP"
4738 ac_path_GREP_max=$ac_count
4739 fi
4740 # 10*(2^10) chars as input seems more than enough
4741 test $ac_count -gt 10 && break
4742 done
4743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4744esac
4745
4746 $ac_path_GREP_found && break 3
4747 done
4748 done
4749 done
4750IFS=$as_save_IFS
4751 if test -z "$ac_cv_path_GREP"; then
4752 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4753 fi
4754else
4755 ac_cv_path_GREP=$GREP
4756fi
4757
4758fi
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4760$as_echo "$ac_cv_path_GREP" >&6; }
4761 GREP="$ac_cv_path_GREP"
4762
4763
4764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4765$as_echo_n "checking for egrep... " >&6; }
4766if test "${ac_cv_path_EGREP+set}" = set; then :
4767 $as_echo_n "(cached) " >&6
4768else
4769 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4770 then ac_cv_path_EGREP="$GREP -E"
4771 else
4772 if test -z "$EGREP"; then
4773 ac_path_EGREP_found=false
4774 # Loop through the user's path and test for each of PROGNAME-LIST
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4777do
4778 IFS=$as_save_IFS
4779 test -z "$as_dir" && as_dir=.
4780 for ac_prog in egrep; do
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4783 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4784# Check for GNU ac_path_EGREP and select it if it is found.
4785 # Check for GNU $ac_path_EGREP
4786case `"$ac_path_EGREP" --version 2>&1` in
4787*GNU*)
4788 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4789*)
4790 ac_count=0
4791 $as_echo_n 0123456789 >"conftest.in"
4792 while :
4793 do
4794 cat "conftest.in" "conftest.in" >"conftest.tmp"
4795 mv "conftest.tmp" "conftest.in"
4796 cp "conftest.in" "conftest.nl"
4797 $as_echo 'EGREP' >> "conftest.nl"
4798 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4799 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4800 as_fn_arith $ac_count + 1 && ac_count=$as_val
4801 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4802 # Best one so far, save it but keep looking for a better one
4803 ac_cv_path_EGREP="$ac_path_EGREP"
4804 ac_path_EGREP_max=$ac_count
4805 fi
4806 # 10*(2^10) chars as input seems more than enough
4807 test $ac_count -gt 10 && break
4808 done
4809 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4810esac
4811
4812 $ac_path_EGREP_found && break 3
4813 done
4814 done
4815 done
4816IFS=$as_save_IFS
4817 if test -z "$ac_cv_path_EGREP"; then
4818 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4819 fi
4820else
4821 ac_cv_path_EGREP=$EGREP
4822fi
4823
4824 fi
4825fi
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4827$as_echo "$ac_cv_path_EGREP" >&6; }
4828 EGREP="$ac_cv_path_EGREP"
4829
4830
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4832$as_echo_n "checking for ANSI C header files... " >&6; }
4833if test "${ac_cv_header_stdc+set}" = set; then :
4834 $as_echo_n "(cached) " >&6
4835else
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837/* end confdefs.h. */
4838#include <stdlib.h>
4839#include <stdarg.h>
4840#include <string.h>
4841#include <float.h>
4842
4843int
4844main ()
4845{
4846
4847 ;
4848 return 0;
4849}
4850_ACEOF
4851if ac_fn_c_try_compile "$LINENO"; then :
4852 ac_cv_header_stdc=yes
4853else
4854 ac_cv_header_stdc=no
4855fi
4856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857
4858if test $ac_cv_header_stdc = yes; then
4859 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861/* end confdefs.h. */
4862#include <string.h>
4863
4864_ACEOF
4865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4866 $EGREP "memchr" >/dev/null 2>&1; then :
4867
4868else
4869 ac_cv_header_stdc=no
4870fi
4871rm -f conftest*
4872
4873fi
4874
4875if test $ac_cv_header_stdc = yes; then
4876 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878/* end confdefs.h. */
4879#include <stdlib.h>
4880
4881_ACEOF
4882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4883 $EGREP "free" >/dev/null 2>&1; then :
4884
4885else
4886 ac_cv_header_stdc=no
4887fi
4888rm -f conftest*
4889
4890fi
4891
4892if test $ac_cv_header_stdc = yes; then
4893 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4894 if test "$cross_compiling" = yes; then :
4895 :
4896else
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898/* end confdefs.h. */
4899#include <ctype.h>
4900#include <stdlib.h>
4901#if ((' ' & 0x0FF) == 0x020)
4902# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4903# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4904#else
4905# define ISLOWER(c) \
4906 (('a' <= (c) && (c) <= 'i') \
4907 || ('j' <= (c) && (c) <= 'r') \
4908 || ('s' <= (c) && (c) <= 'z'))
4909# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4910#endif
4911
4912#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4913int
4914main ()
4915{
4916 int i;
4917 for (i = 0; i < 256; i++)
4918 if (XOR (islower (i), ISLOWER (i))
4919 || toupper (i) != TOUPPER (i))
4920 return 2;
4921 return 0;
4922}
4923_ACEOF
4924if ac_fn_c_try_run "$LINENO"; then :
4925
4926else
4927 ac_cv_header_stdc=no
4928fi
4929rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4930 conftest.$ac_objext conftest.beam conftest.$ac_ext
4931fi
4932
4933fi
4934fi
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4936$as_echo "$ac_cv_header_stdc" >&6; }
4937if test $ac_cv_header_stdc = yes; then
4938
4939$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4940
4941fi
4942
4943# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4944for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4945 inttypes.h stdint.h unistd.h
4946do :
4947 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4948ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4949"
4950eval as_val=\$$as_ac_Header
4951 if test "x$as_val" = x""yes; then :
4952 cat >>confdefs.h <<_ACEOF
4953#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4954_ACEOF
4955
4956fi
4957
4958done
4959
4960
4961
4962 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4963if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4964 MINIX=yes
4965else
4966 MINIX=
4967fi
4968
4969
4970 if test "$MINIX" = yes; then
4971
4972$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4973
4974
4975$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4976
4977
4978$as_echo "#define _MINIX 1" >>confdefs.h
4979
4980 fi
4981
4982
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4984$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4985if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4986 $as_echo_n "(cached) " >&6
4987else
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989/* end confdefs.h. */
4990
4991# define __EXTENSIONS__ 1
4992 $ac_includes_default
4993int
4994main ()
4995{
4996
4997 ;
4998 return 0;
4999}
5000_ACEOF
5001if ac_fn_c_try_compile "$LINENO"; then :
5002 ac_cv_safe_to_define___extensions__=yes
5003else
5004 ac_cv_safe_to_define___extensions__=no
5005fi
5006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007fi
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5009$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5010 test $ac_cv_safe_to_define___extensions__ = yes &&
5011 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5012
5013 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5014
5015 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5016
5017 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5018
5019 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5020
5021
5022
5023
5024# Check whether --enable-largefile was given.
5025if test "${enable_largefile+set}" = set; then :
5026 enableval=$enable_largefile;
5027fi
5028
5029if test "$enable_largefile" != no; then
5030
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5032$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5033if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5034 $as_echo_n "(cached) " >&6
5035else
5036 ac_cv_sys_largefile_CC=no
5037 if test "$GCC" != yes; then
5038 ac_save_CC=$CC
5039 while :; do
5040 # IRIX 6.2 and later do not support large files by default,
5041 # so use the C compiler's -n32 option if that helps.
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043/* end confdefs.h. */
5044#include <sys/types.h>
5045 /* Check that off_t can represent 2**63 - 1 correctly.
5046 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5047 since some C++ compilers masquerading as C compilers
5048 incorrectly reject 9223372036854775807. */
5049#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5050 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5051 && LARGE_OFF_T % 2147483647 == 1)
5052 ? 1 : -1];
5053int
5054main ()
5055{
5056
5057 ;
5058 return 0;
5059}
5060_ACEOF
5061 if ac_fn_c_try_compile "$LINENO"; then :
5062 break
5063fi
5064rm -f core conftest.err conftest.$ac_objext
5065 CC="$CC -n32"
5066 if ac_fn_c_try_compile "$LINENO"; then :
5067 ac_cv_sys_largefile_CC=' -n32'; break
5068fi
5069rm -f core conftest.err conftest.$ac_objext
5070 break
5071 done
5072 CC=$ac_save_CC
5073 rm -f conftest.$ac_ext
5074 fi
5075fi
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5077$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5078 if test "$ac_cv_sys_largefile_CC" != no; then
5079 CC=$CC$ac_cv_sys_largefile_CC
5080 fi
5081
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5083$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5084if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5085 $as_echo_n "(cached) " >&6
5086else
5087 while :; do
5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089/* end confdefs.h. */
5090#include <sys/types.h>
5091 /* Check that off_t can represent 2**63 - 1 correctly.
5092 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5093 since some C++ compilers masquerading as C compilers
5094 incorrectly reject 9223372036854775807. */
5095#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5096 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5097 && LARGE_OFF_T % 2147483647 == 1)
5098 ? 1 : -1];
5099int
5100main ()
5101{
5102
5103 ;
5104 return 0;
5105}
5106_ACEOF
5107if ac_fn_c_try_compile "$LINENO"; then :
5108 ac_cv_sys_file_offset_bits=no; break
5109fi
5110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112/* end confdefs.h. */
5113#define _FILE_OFFSET_BITS 64
5114#include <sys/types.h>
5115 /* Check that off_t can represent 2**63 - 1 correctly.
5116 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5117 since some C++ compilers masquerading as C compilers
5118 incorrectly reject 9223372036854775807. */
5119#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5120 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5121 && LARGE_OFF_T % 2147483647 == 1)
5122 ? 1 : -1];
5123int
5124main ()
5125{
5126
5127 ;
5128 return 0;
5129}
5130_ACEOF
5131if ac_fn_c_try_compile "$LINENO"; then :
5132 ac_cv_sys_file_offset_bits=64; break
5133fi
5134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5135 ac_cv_sys_file_offset_bits=unknown
5136 break
5137done
5138fi
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5140$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5141case $ac_cv_sys_file_offset_bits in #(
5142 no | unknown) ;;
5143 *)
5144cat >>confdefs.h <<_ACEOF
5145#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5146_ACEOF
5147;;
5148esac
5149rm -rf conftest*
5150 if test $ac_cv_sys_file_offset_bits = unknown; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5152$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5153if test "${ac_cv_sys_large_files+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5155else
5156 while :; do
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158/* end confdefs.h. */
5159#include <sys/types.h>
5160 /* Check that off_t can represent 2**63 - 1 correctly.
5161 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5162 since some C++ compilers masquerading as C compilers
5163 incorrectly reject 9223372036854775807. */
5164#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5165 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5166 && LARGE_OFF_T % 2147483647 == 1)
5167 ? 1 : -1];
5168int
5169main ()
5170{
5171
5172 ;
5173 return 0;
5174}
5175_ACEOF
5176if ac_fn_c_try_compile "$LINENO"; then :
5177 ac_cv_sys_large_files=no; break
5178fi
5179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181/* end confdefs.h. */
5182#define _LARGE_FILES 1
5183#include <sys/types.h>
5184 /* Check that off_t can represent 2**63 - 1 correctly.
5185 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5186 since some C++ compilers masquerading as C compilers
5187 incorrectly reject 9223372036854775807. */
5188#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5189 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5190 && LARGE_OFF_T % 2147483647 == 1)
5191 ? 1 : -1];
5192int
5193main ()
5194{
5195
5196 ;
5197 return 0;
5198}
5199_ACEOF
5200if ac_fn_c_try_compile "$LINENO"; then :
5201 ac_cv_sys_large_files=1; break
5202fi
5203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5204 ac_cv_sys_large_files=unknown
5205 break
5206done
5207fi
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5209$as_echo "$ac_cv_sys_large_files" >&6; }
5210case $ac_cv_sys_large_files in #(
5211 no | unknown) ;;
5212 *)
5213cat >>confdefs.h <<_ACEOF
5214#define _LARGE_FILES $ac_cv_sys_large_files
5215_ACEOF
5216;;
5217esac
5218rm -rf conftest*
5219 fi
5220fi
5221
5222
5223case `pwd` in
5224 *\ * | *\ *)
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5226$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5227esac
5228
5229
5230
5231macro_version='2.2.6'
5232macro_revision='1.3012'
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246ltmain="$ac_aux_dir/ltmain.sh"
5247
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5249$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5250if test "${ac_cv_path_SED+set}" = set; then :
5251 $as_echo_n "(cached) " >&6
5252else
5253 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5254 for ac_i in 1 2 3 4 5 6 7; do
5255 ac_script="$ac_script$as_nl$ac_script"
5256 done
5257 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5258 { ac_script=; unset ac_script;}
5259 if test -z "$SED"; then
5260 ac_path_SED_found=false
5261 # Loop through the user's path and test for each of PROGNAME-LIST
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263for as_dir in $PATH
5264do
5265 IFS=$as_save_IFS
5266 test -z "$as_dir" && as_dir=.
5267 for ac_prog in sed gsed; do
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5270 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5271# Check for GNU ac_path_SED and select it if it is found.
5272 # Check for GNU $ac_path_SED
5273case `"$ac_path_SED" --version 2>&1` in
5274*GNU*)
5275 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5276*)
5277 ac_count=0
5278 $as_echo_n 0123456789 >"conftest.in"
5279 while :
5280 do
5281 cat "conftest.in" "conftest.in" >"conftest.tmp"
5282 mv "conftest.tmp" "conftest.in"
5283 cp "conftest.in" "conftest.nl"
5284 $as_echo '' >> "conftest.nl"
5285 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5286 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5287 as_fn_arith $ac_count + 1 && ac_count=$as_val
5288 if test $ac_count -gt ${ac_path_SED_max-0}; then
5289 # Best one so far, save it but keep looking for a better one
5290 ac_cv_path_SED="$ac_path_SED"
5291 ac_path_SED_max=$ac_count
5292 fi
5293 # 10*(2^10) chars as input seems more than enough
5294 test $ac_count -gt 10 && break
5295 done
5296 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5297esac
5298
5299 $ac_path_SED_found && break 3
5300 done
5301 done
5302 done
5303IFS=$as_save_IFS
5304 if test -z "$ac_cv_path_SED"; then
5305 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5306 fi
5307else
5308 ac_cv_path_SED=$SED
5309fi
5310
5311fi
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5313$as_echo "$ac_cv_path_SED" >&6; }
5314 SED="$ac_cv_path_SED"
5315 rm -f conftest.sed
5316
5317test -z "$SED" && SED=sed
5318Xsed="$SED -e 1s/^X//"
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5331$as_echo_n "checking for fgrep... " >&6; }
5332if test "${ac_cv_path_FGREP+set}" = set; then :
5333 $as_echo_n "(cached) " >&6
5334else
5335 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5336 then ac_cv_path_FGREP="$GREP -F"
5337 else
5338 if test -z "$FGREP"; then
5339 ac_path_FGREP_found=false
5340 # Loop through the user's path and test for each of PROGNAME-LIST
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5343do
5344 IFS=$as_save_IFS
5345 test -z "$as_dir" && as_dir=.
5346 for ac_prog in fgrep; do
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5349 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5350# Check for GNU ac_path_FGREP and select it if it is found.
5351 # Check for GNU $ac_path_FGREP
5352case `"$ac_path_FGREP" --version 2>&1` in
5353*GNU*)
5354 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5355*)
5356 ac_count=0
5357 $as_echo_n 0123456789 >"conftest.in"
5358 while :
5359 do
5360 cat "conftest.in" "conftest.in" >"conftest.tmp"
5361 mv "conftest.tmp" "conftest.in"
5362 cp "conftest.in" "conftest.nl"
5363 $as_echo 'FGREP' >> "conftest.nl"
5364 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5365 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5366 as_fn_arith $ac_count + 1 && ac_count=$as_val
5367 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5368 # Best one so far, save it but keep looking for a better one
5369 ac_cv_path_FGREP="$ac_path_FGREP"
5370 ac_path_FGREP_max=$ac_count
5371 fi
5372 # 10*(2^10) chars as input seems more than enough
5373 test $ac_count -gt 10 && break
5374 done
5375 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5376esac
5377
5378 $ac_path_FGREP_found && break 3
5379 done
5380 done
5381 done
5382IFS=$as_save_IFS
5383 if test -z "$ac_cv_path_FGREP"; then
5384 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5385 fi
5386else
5387 ac_cv_path_FGREP=$FGREP
5388fi
5389
5390 fi
5391fi
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5393$as_echo "$ac_cv_path_FGREP" >&6; }
5394 FGREP="$ac_cv_path_FGREP"
5395
5396
5397test -z "$GREP" && GREP=grep
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417# Check whether --with-gnu-ld was given.
5418if test "${with_gnu_ld+set}" = set; then :
5419 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5420else
5421 with_gnu_ld=no
5422fi
5423
5424ac_prog=ld
5425if test "$GCC" = yes; then
5426 # Check if gcc -print-prog-name=ld gives a path.
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5428$as_echo_n "checking for ld used by $CC... " >&6; }
5429 case $host in
5430 *-*-mingw*)
5431 # gcc leaves a trailing carriage return which upsets mingw
5432 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5433 *)
5434 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5435 esac
5436 case $ac_prog in
5437 # Accept absolute paths.
5438 [\\/]* | ?:[\\/]*)
5439 re_direlt='/[^/][^/]*/\.\./'
5440 # Canonicalize the pathname of ld
5441 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5442 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5443 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5444 done
5445 test -z "$LD" && LD="$ac_prog"
5446 ;;
5447 "")
5448 # If it fails, then pretend we aren't using GCC.
5449 ac_prog=ld
5450 ;;
5451 *)
5452 # If it is relative, then search for the first ld in PATH.
5453 with_gnu_ld=unknown
5454 ;;
5455 esac
5456elif test "$with_gnu_ld" = yes; then
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5458$as_echo_n "checking for GNU ld... " >&6; }
5459else
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5461$as_echo_n "checking for non-GNU ld... " >&6; }
5462fi
5463if test "${lt_cv_path_LD+set}" = set; then :
5464 $as_echo_n "(cached) " >&6
5465else
5466 if test -z "$LD"; then
5467 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5468 for ac_dir in $PATH; do
5469 IFS="$lt_save_ifs"
5470 test -z "$ac_dir" && ac_dir=.
5471 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5472 lt_cv_path_LD="$ac_dir/$ac_prog"
5473 # Check to see if the program is GNU ld. I'd rather use --version,
5474 # but apparently some variants of GNU ld only accept -v.
5475 # Break only if it was the GNU/non-GNU ld that we prefer.
5476 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5477 *GNU* | *'with BFD'*)
5478 test "$with_gnu_ld" != no && break
5479 ;;
5480 *)
5481 test "$with_gnu_ld" != yes && break
5482 ;;
5483 esac
5484 fi
5485 done
5486 IFS="$lt_save_ifs"
5487else
5488 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5489fi
5490fi
5491
5492LD="$lt_cv_path_LD"
5493if test -n "$LD"; then
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5495$as_echo "$LD" >&6; }
5496else
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498$as_echo "no" >&6; }
5499fi
5500test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5502$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5503if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5504 $as_echo_n "(cached) " >&6
5505else
5506 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5507case `$LD -v 2>&1 </dev/null` in
5508*GNU* | *'with BFD'*)
5509 lt_cv_prog_gnu_ld=yes
5510 ;;
5511*)
5512 lt_cv_prog_gnu_ld=no
5513 ;;
5514esac
5515fi
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5517$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5518with_gnu_ld=$lt_cv_prog_gnu_ld
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5529$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5530if test "${lt_cv_path_NM+set}" = set; then :
5531 $as_echo_n "(cached) " >&6
5532else
5533 if test -n "$NM"; then
5534 # Let the user override the test.
5535 lt_cv_path_NM="$NM"
5536else
5537 lt_nm_to_check="${ac_tool_prefix}nm"
5538 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5539 lt_nm_to_check="$lt_nm_to_check nm"
5540 fi
5541 for lt_tmp_nm in $lt_nm_to_check; do
5542 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5543 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5544 IFS="$lt_save_ifs"
5545 test -z "$ac_dir" && ac_dir=.
5546 tmp_nm="$ac_dir/$lt_tmp_nm"
5547 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5548 # Check to see if the nm accepts a BSD-compat flag.
5549 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5550 # nm: unknown option "B" ignored
5551 # Tru64's nm complains that /dev/null is an invalid object file
5552 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5553 */dev/null* | *'Invalid file or object type'*)
5554 lt_cv_path_NM="$tmp_nm -B"
5555 break
5556 ;;
5557 *)
5558 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5559 */dev/null*)
5560 lt_cv_path_NM="$tmp_nm -p"
5561 break
5562 ;;
5563 *)
5564 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5565 continue # so that we can try to find one that supports BSD flags
5566 ;;
5567 esac
5568 ;;
5569 esac
5570 fi
5571 done
5572 IFS="$lt_save_ifs"
5573 done
5574 : ${lt_cv_path_NM=no}
5575fi
5576fi
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5578$as_echo "$lt_cv_path_NM" >&6; }
5579if test "$lt_cv_path_NM" != "no"; then
5580 NM="$lt_cv_path_NM"
5581else
5582 # Didn't find any BSD compatible name lister, look for dumpbin.
5583 if test -n "$ac_tool_prefix"; then
5584 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5585 do
5586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5587set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5589$as_echo_n "checking for $ac_word... " >&6; }
5590if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5591 $as_echo_n "(cached) " >&6
5592else
5593 if test -n "$DUMPBIN"; then
5594 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5595else
5596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597for as_dir in $PATH
5598do
5599 IFS=$as_save_IFS
5600 test -z "$as_dir" && as_dir=.
5601 for ac_exec_ext in '' $ac_executable_extensions; do
5602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5603 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605 break 2
5606 fi
5607done
5608 done
5609IFS=$as_save_IFS
5610
5611fi
5612fi
5613DUMPBIN=$ac_cv_prog_DUMPBIN
5614if test -n "$DUMPBIN"; then
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5616$as_echo "$DUMPBIN" >&6; }
5617else
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619$as_echo "no" >&6; }
5620fi
5621
5622
5623 test -n "$DUMPBIN" && break
5624 done
5625fi
5626if test -z "$DUMPBIN"; then
5627 ac_ct_DUMPBIN=$DUMPBIN
5628 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5629do
5630 # Extract the first word of "$ac_prog", so it can be a program name with args.
5631set dummy $ac_prog; ac_word=$2
5632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633$as_echo_n "checking for $ac_word... " >&6; }
5634if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5635 $as_echo_n "(cached) " >&6
5636else
5637 if test -n "$ac_ct_DUMPBIN"; then
5638 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5639else
5640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641for as_dir in $PATH
5642do
5643 IFS=$as_save_IFS
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5647 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 break 2
5650 fi
5651done
5652 done
5653IFS=$as_save_IFS
5654
5655fi
5656fi
5657ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5658if test -n "$ac_ct_DUMPBIN"; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5660$as_echo "$ac_ct_DUMPBIN" >&6; }
5661else
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663$as_echo "no" >&6; }
5664fi
5665
5666
5667 test -n "$ac_ct_DUMPBIN" && break
5668done
5669
5670 if test "x$ac_ct_DUMPBIN" = x; then
5671 DUMPBIN=":"
5672 else
5673 case $cross_compiling:$ac_tool_warned in
5674yes:)
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5677ac_tool_warned=yes ;;
5678esac
5679 DUMPBIN=$ac_ct_DUMPBIN
5680 fi
5681fi
5682
5683
5684 if test "$DUMPBIN" != ":"; then
5685 NM="$DUMPBIN"
5686 fi
5687fi
5688test -z "$NM" && NM=nm
5689
5690
5691
5692
5693
5694
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5696$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5697if test "${lt_cv_nm_interface+set}" = set; then :
5698 $as_echo_n "(cached) " >&6
5699else
5700 lt_cv_nm_interface="BSD nm"
5701 echo "int some_variable = 0;" > conftest.$ac_ext
5702 (eval echo "\"\$as_me:5702: $ac_compile\"" >&5)
5703 (eval "$ac_compile" 2>conftest.err)
5704 cat conftest.err >&5
5705 (eval echo "\"\$as_me:5705: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5706 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5707 cat conftest.err >&5
5708 (eval echo "\"\$as_me:5708: output\"" >&5)
5709 cat conftest.out >&5
5710 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5711 lt_cv_nm_interface="MS dumpbin"
5712 fi
5713 rm -f conftest*
5714fi
5715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5716$as_echo "$lt_cv_nm_interface" >&6; }
5717
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5719$as_echo_n "checking whether ln -s works... " >&6; }
5720LN_S=$as_ln_s
5721if test "$LN_S" = "ln -s"; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5723$as_echo "yes" >&6; }
5724else
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5726$as_echo "no, using $LN_S" >&6; }
5727fi
5728
5729# find the maximum length of command line arguments
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5731$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5732if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5733 $as_echo_n "(cached) " >&6
5734else
5735 i=0
5736 teststring="ABCD"
5737
5738 case $build_os in
5739 msdosdjgpp*)
5740 # On DJGPP, this test can blow up pretty badly due to problems in libc
5741 # (any single argument exceeding 2000 bytes causes a buffer overrun
5742 # during glob expansion). Even if it were fixed, the result of this
5743 # check would be larger than it should be.
5744 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5745 ;;
5746
5747 gnu*)
5748 # Under GNU Hurd, this test is not required because there is
5749 # no limit to the length of command line arguments.
5750 # Libtool will interpret -1 as no limit whatsoever
5751 lt_cv_sys_max_cmd_len=-1;
5752 ;;
5753
5754 cygwin* | mingw* | cegcc*)
5755 # On Win9x/ME, this test blows up -- it succeeds, but takes
5756 # about 5 minutes as the teststring grows exponentially.
5757 # Worse, since 9x/ME are not pre-emptively multitasking,
5758 # you end up with a "frozen" computer, even though with patience
5759 # the test eventually succeeds (with a max line length of 256k).
5760 # Instead, let's just punt: use the minimum linelength reported by
5761 # all of the supported platforms: 8192 (on NT/2K/XP).
5762 lt_cv_sys_max_cmd_len=8192;
5763 ;;
5764
5765 amigaos*)
5766 # On AmigaOS with pdksh, this test takes hours, literally.
5767 # So we just punt and use a minimum line length of 8192.
5768 lt_cv_sys_max_cmd_len=8192;
5769 ;;
5770
5771 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5772 # This has been around since 386BSD, at least. Likely further.
5773 if test -x /sbin/sysctl; then
5774 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5775 elif test -x /usr/sbin/sysctl; then
5776 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5777 else
5778 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5779 fi
5780 # And add a safety zone
5781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5783 ;;
5784
5785 interix*)
5786 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5787 lt_cv_sys_max_cmd_len=196608
5788 ;;
5789
5790 osf*)
5791 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5792 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5793 # nice to cause kernel panics so lets avoid the loop below.
5794 # First set a reasonable default.
5795 lt_cv_sys_max_cmd_len=16384
5796 #
5797 if test -x /sbin/sysconfig; then
5798 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5799 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5800 esac
5801 fi
5802 ;;
5803 sco3.2v5*)
5804 lt_cv_sys_max_cmd_len=102400
5805 ;;
5806 sysv5* | sco5v6* | sysv4.2uw2*)
5807 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5808 if test -n "$kargmax"; then
5809 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5810 else
5811 lt_cv_sys_max_cmd_len=32768
5812 fi
5813 ;;
5814 *)
5815 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5816 if test -n "$lt_cv_sys_max_cmd_len"; then
5817 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5818 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5819 else
5820 # Make teststring a little bigger before we do anything with it.
5821 # a 1K string should be a reasonable start.
5822 for i in 1 2 3 4 5 6 7 8 ; do
5823 teststring=$teststring$teststring
5824 done
5825 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5826 # If test is not a shell built-in, we'll probably end up computing a
5827 # maximum length that is only half of the actual maximum length, but
5828 # we can't tell.
5829 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5830 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5831 test $i != 17 # 1/2 MB should be enough
5832 do
5833 i=`expr $i + 1`
5834 teststring=$teststring$teststring
5835 done
5836 # Only check the string length outside the loop.
5837 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5838 teststring=
5839 # Add a significant safety factor because C++ compilers can tack on
5840 # massive amounts of additional arguments before passing them to the
5841 # linker. It appears as though 1/2 is a usable value.
5842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5843 fi
5844 ;;
5845 esac
5846
5847fi
5848
5849if test -n $lt_cv_sys_max_cmd_len ; then
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5851$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5852else
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5854$as_echo "none" >&6; }
5855fi
5856max_cmd_len=$lt_cv_sys_max_cmd_len
5857
5858
5859
5860
5861
5862
5863: ${CP="cp -f"}
5864: ${MV="mv -f"}
5865: ${RM="rm -f"}
5866
5867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5868$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5869# Try some XSI features
5870xsi_shell=no
5871( _lt_dummy="a/b/c"
5872 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5873 = c,a/b,, \
5874 && eval 'test $(( 1 + 1 )) -eq 2 \
5875 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5876 && xsi_shell=yes
5877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5878$as_echo "$xsi_shell" >&6; }
5879
5880
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5882$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5883lt_shell_append=no
5884( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5885 >/dev/null 2>&1 \
5886 && lt_shell_append=yes
5887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5888$as_echo "$lt_shell_append" >&6; }
5889
5890
5891if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5892 lt_unset=unset
5893else
5894 lt_unset=false
5895fi
5896
5897
5898
5899
5900
5901# test EBCDIC or ASCII
5902case `echo X|tr X '\101'` in
5903 A) # ASCII based system
5904 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5905 lt_SP2NL='tr \040 \012'
5906 lt_NL2SP='tr \015\012 \040\040'
5907 ;;
5908 *) # EBCDIC based system
5909 lt_SP2NL='tr \100 \n'
5910 lt_NL2SP='tr \r\n \100\100'
5911 ;;
5912esac
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5923$as_echo_n "checking for $LD option to reload object files... " >&6; }
5924if test "${lt_cv_ld_reload_flag+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5926else
5927 lt_cv_ld_reload_flag='-r'
5928fi
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5930$as_echo "$lt_cv_ld_reload_flag" >&6; }
5931reload_flag=$lt_cv_ld_reload_flag
5932case $reload_flag in
5933"" | " "*) ;;
5934*) reload_flag=" $reload_flag" ;;
5935esac
5936reload_cmds='$LD$reload_flag -o $output$reload_objs'
5937case $host_os in
5938 darwin*)
5939 if test "$GCC" = yes; then
5940 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5941 else
5942 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5943 fi
5944 ;;
5945esac
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955if test -n "$ac_tool_prefix"; then
5956 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5957set dummy ${ac_tool_prefix}objdump; ac_word=$2
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959$as_echo_n "checking for $ac_word... " >&6; }
5960if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5961 $as_echo_n "(cached) " >&6
5962else
5963 if test -n "$OBJDUMP"; then
5964 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5965else
5966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967for as_dir in $PATH
5968do
5969 IFS=$as_save_IFS
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5973 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 break 2
5976 fi
5977done
5978 done
5979IFS=$as_save_IFS
5980
5981fi
5982fi
5983OBJDUMP=$ac_cv_prog_OBJDUMP
5984if test -n "$OBJDUMP"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5986$as_echo "$OBJDUMP" >&6; }
5987else
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989$as_echo "no" >&6; }
5990fi
5991
5992
5993fi
5994if test -z "$ac_cv_prog_OBJDUMP"; then
5995 ac_ct_OBJDUMP=$OBJDUMP
5996 # Extract the first word of "objdump", so it can be a program name with args.
5997set dummy objdump; ac_word=$2
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999$as_echo_n "checking for $ac_word... " >&6; }
6000if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6001 $as_echo_n "(cached) " >&6
6002else
6003 if test -n "$ac_ct_OBJDUMP"; then
6004 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6005else
6006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007for as_dir in $PATH
6008do
6009 IFS=$as_save_IFS
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6013 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 break 2
6016 fi
6017done
6018 done
6019IFS=$as_save_IFS
6020
6021fi
6022fi
6023ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6024if test -n "$ac_ct_OBJDUMP"; then
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6026$as_echo "$ac_ct_OBJDUMP" >&6; }
6027else
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029$as_echo "no" >&6; }
6030fi
6031
6032 if test "x$ac_ct_OBJDUMP" = x; then
6033 OBJDUMP="false"
6034 else
6035 case $cross_compiling:$ac_tool_warned in
6036yes:)
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6039ac_tool_warned=yes ;;
6040esac
6041 OBJDUMP=$ac_ct_OBJDUMP
6042 fi
6043else
6044 OBJDUMP="$ac_cv_prog_OBJDUMP"
6045fi
6046
6047test -z "$OBJDUMP" && OBJDUMP=objdump
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6058$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6059if test "${lt_cv_deplibs_check_method+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6061else
6062 lt_cv_file_magic_cmd='$MAGIC_CMD'
6063lt_cv_file_magic_test_file=
6064lt_cv_deplibs_check_method='unknown'
6065# Need to set the preceding variable on all platforms that support
6066# interlibrary dependencies.
6067# 'none' -- dependencies not supported.
6068# `unknown' -- same as none, but documents that we really don't know.
6069# 'pass_all' -- all dependencies passed with no checks.
6070# 'test_compile' -- check by making test program.
6071# 'file_magic [[regex]]' -- check by looking for files in library path
6072# which responds to the $file_magic_cmd with a given extended regex.
6073# If you have `file' or equivalent on your system and you're not sure
6074# whether `pass_all' will *always* work, you probably want this one.
6075
6076case $host_os in
6077aix[4-9]*)
6078 lt_cv_deplibs_check_method=pass_all
6079 ;;
6080
6081beos*)
6082 lt_cv_deplibs_check_method=pass_all
6083 ;;
6084
6085bsdi[45]*)
6086 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6087 lt_cv_file_magic_cmd='/usr/bin/file -L'
6088 lt_cv_file_magic_test_file=/shlib/libc.so
6089 ;;
6090
6091cygwin*)
6092 # func_win32_libid is a shell function defined in ltmain.sh
6093 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6094 lt_cv_file_magic_cmd='func_win32_libid'
6095 ;;
6096
6097mingw* | pw32*)
6098 # Base MSYS/MinGW do not provide the 'file' command needed by
6099 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6100 # unless we find 'file', for example because we are cross-compiling.
6101 if ( file / ) >/dev/null 2>&1; then
6102 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6103 lt_cv_file_magic_cmd='func_win32_libid'
6104 else
6105 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6106 lt_cv_file_magic_cmd='$OBJDUMP -f'
6107 fi
6108 ;;
6109
6110cegcc)
6111 # use the weaker test based on 'objdump'. See mingw*.
6112 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6113 lt_cv_file_magic_cmd='$OBJDUMP -f'
6114 ;;
6115
6116darwin* | rhapsody*)
6117 lt_cv_deplibs_check_method=pass_all
6118 ;;
6119
6120freebsd* | dragonfly*)
6121 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6122 case $host_cpu in
6123 i*86 )
6124 # Not sure whether the presence of OpenBSD here was a mistake.
6125 # Let's accept both of them until this is cleared up.
6126 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6127 lt_cv_file_magic_cmd=/usr/bin/file
6128 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6129 ;;
6130 esac
6131 else
6132 lt_cv_deplibs_check_method=pass_all
6133 fi
6134 ;;
6135
6136gnu*)
6137 lt_cv_deplibs_check_method=pass_all
6138 ;;
6139
6140hpux10.20* | hpux11*)
6141 lt_cv_file_magic_cmd=/usr/bin/file
6142 case $host_cpu in
6143 ia64*)
6144 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6145 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6146 ;;
6147 hppa*64*)
6148 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]'
6149 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6150 ;;
6151 *)
6152 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6153 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6154 ;;
6155 esac
6156 ;;
6157
6158interix[3-9]*)
6159 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6160 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6161 ;;
6162
6163irix5* | irix6* | nonstopux*)
6164 case $LD in
6165 *-32|*"-32 ") libmagic=32-bit;;
6166 *-n32|*"-n32 ") libmagic=N32;;
6167 *-64|*"-64 ") libmagic=64-bit;;
6168 *) libmagic=never-match;;
6169 esac
6170 lt_cv_deplibs_check_method=pass_all
6171 ;;
6172
6173# This must be Linux ELF.
6174linux* | k*bsd*-gnu | kopensolaris*-gnu)
6175 lt_cv_deplibs_check_method=pass_all
6176 ;;
6177
6178netbsd*)
6179 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6180 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6181 else
6182 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6183 fi
6184 ;;
6185
6186newos6*)
6187 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6188 lt_cv_file_magic_cmd=/usr/bin/file
6189 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6190 ;;
6191
6192*nto* | *qnx*)
6193 lt_cv_deplibs_check_method=pass_all
6194 ;;
6195
6196openbsd*)
6197 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6199 else
6200 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6201 fi
6202 ;;
6203
6204osf3* | osf4* | osf5*)
6205 lt_cv_deplibs_check_method=pass_all
6206 ;;
6207
6208rdos*)
6209 lt_cv_deplibs_check_method=pass_all
6210 ;;
6211
6212solaris*)
6213 lt_cv_deplibs_check_method=pass_all
6214 ;;
6215
6216sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6217 lt_cv_deplibs_check_method=pass_all
6218 ;;
6219
6220sysv4 | sysv4.3*)
6221 case $host_vendor in
6222 motorola)
6223 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]'
6224 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6225 ;;
6226 ncr)
6227 lt_cv_deplibs_check_method=pass_all
6228 ;;
6229 sequent)
6230 lt_cv_file_magic_cmd='/bin/file'
6231 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6232 ;;
6233 sni)
6234 lt_cv_file_magic_cmd='/bin/file'
6235 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6236 lt_cv_file_magic_test_file=/lib/libc.so
6237 ;;
6238 siemens)
6239 lt_cv_deplibs_check_method=pass_all
6240 ;;
6241 pc)
6242 lt_cv_deplibs_check_method=pass_all
6243 ;;
6244 esac
6245 ;;
6246
6247tpf*)
6248 lt_cv_deplibs_check_method=pass_all
6249 ;;
6250esac
6251
6252fi
6253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6254$as_echo "$lt_cv_deplibs_check_method" >&6; }
6255file_magic_cmd=$lt_cv_file_magic_cmd
6256deplibs_check_method=$lt_cv_deplibs_check_method
6257test -z "$deplibs_check_method" && deplibs_check_method=unknown
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270if test -n "$ac_tool_prefix"; then
6271 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6272set dummy ${ac_tool_prefix}ar; ac_word=$2
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274$as_echo_n "checking for $ac_word... " >&6; }
6275if test "${ac_cv_prog_AR+set}" = set; then :
6276 $as_echo_n "(cached) " >&6
6277else
6278 if test -n "$AR"; then
6279 ac_cv_prog_AR="$AR" # Let the user override the test.
6280else
6281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282for as_dir in $PATH
6283do
6284 IFS=$as_save_IFS
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6288 ac_cv_prog_AR="${ac_tool_prefix}ar"
6289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6290 break 2
6291 fi
6292done
6293 done
6294IFS=$as_save_IFS
6295
6296fi
6297fi
6298AR=$ac_cv_prog_AR
6299if test -n "$AR"; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6301$as_echo "$AR" >&6; }
6302else
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304$as_echo "no" >&6; }
6305fi
6306
6307
6308fi
6309if test -z "$ac_cv_prog_AR"; then
6310 ac_ct_AR=$AR
6311 # Extract the first word of "ar", so it can be a program name with args.
6312set dummy ar; ac_word=$2
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6314$as_echo_n "checking for $ac_word... " >&6; }
6315if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6316 $as_echo_n "(cached) " >&6
6317else
6318 if test -n "$ac_ct_AR"; then
6319 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6320else
6321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322for as_dir in $PATH
6323do
6324 IFS=$as_save_IFS
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6328 ac_cv_prog_ac_ct_AR="ar"
6329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 break 2
6331 fi
6332done
6333 done
6334IFS=$as_save_IFS
6335
6336fi
6337fi
6338ac_ct_AR=$ac_cv_prog_ac_ct_AR
6339if test -n "$ac_ct_AR"; then
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6341$as_echo "$ac_ct_AR" >&6; }
6342else
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344$as_echo "no" >&6; }
6345fi
6346
6347 if test "x$ac_ct_AR" = x; then
6348 AR="false"
6349 else
6350 case $cross_compiling:$ac_tool_warned in
6351yes:)
6352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6354ac_tool_warned=yes ;;
6355esac
6356 AR=$ac_ct_AR
6357 fi
6358else
6359 AR="$ac_cv_prog_AR"
6360fi
6361
6362test -z "$AR" && AR=ar
6363test -z "$AR_FLAGS" && AR_FLAGS=cru
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375if test -n "$ac_tool_prefix"; then
6376 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6377set dummy ${ac_tool_prefix}strip; ac_word=$2
6378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379$as_echo_n "checking for $ac_word... " >&6; }
6380if test "${ac_cv_prog_STRIP+set}" = set; then :
6381 $as_echo_n "(cached) " >&6
6382else
6383 if test -n "$STRIP"; then
6384 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6385else
6386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387for as_dir in $PATH
6388do
6389 IFS=$as_save_IFS
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6393 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 break 2
6396 fi
6397done
6398 done
6399IFS=$as_save_IFS
6400
6401fi
6402fi
6403STRIP=$ac_cv_prog_STRIP
6404if test -n "$STRIP"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6406$as_echo "$STRIP" >&6; }
6407else
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409$as_echo "no" >&6; }
6410fi
6411
6412
6413fi
6414if test -z "$ac_cv_prog_STRIP"; then
6415 ac_ct_STRIP=$STRIP
6416 # Extract the first word of "strip", so it can be a program name with args.
6417set dummy strip; ac_word=$2
6418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419$as_echo_n "checking for $ac_word... " >&6; }
6420if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6421 $as_echo_n "(cached) " >&6
6422else
6423 if test -n "$ac_ct_STRIP"; then
6424 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6425else
6426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427for as_dir in $PATH
6428do
6429 IFS=$as_save_IFS
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6433 ac_cv_prog_ac_ct_STRIP="strip"
6434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 break 2
6436 fi
6437done
6438 done
6439IFS=$as_save_IFS
6440
6441fi
6442fi
6443ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6444if test -n "$ac_ct_STRIP"; then
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6446$as_echo "$ac_ct_STRIP" >&6; }
6447else
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449$as_echo "no" >&6; }
6450fi
6451
6452 if test "x$ac_ct_STRIP" = x; then
6453 STRIP=":"
6454 else
6455 case $cross_compiling:$ac_tool_warned in
6456yes:)
6457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6459ac_tool_warned=yes ;;
6460esac
6461 STRIP=$ac_ct_STRIP
6462 fi
6463else
6464 STRIP="$ac_cv_prog_STRIP"
6465fi
6466
6467test -z "$STRIP" && STRIP=:
6468
6469
6470
6471
6472
6473
6474if test -n "$ac_tool_prefix"; then
6475 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6476set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478$as_echo_n "checking for $ac_word... " >&6; }
6479if test "${ac_cv_prog_RANLIB+set}" = set; then :
6480 $as_echo_n "(cached) " >&6
6481else
6482 if test -n "$RANLIB"; then
6483 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6484else
6485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486for as_dir in $PATH
6487do
6488 IFS=$as_save_IFS
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6492 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 break 2
6495 fi
6496done
6497 done
6498IFS=$as_save_IFS
6499
6500fi
6501fi
6502RANLIB=$ac_cv_prog_RANLIB
6503if test -n "$RANLIB"; then
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6505$as_echo "$RANLIB" >&6; }
6506else
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6508$as_echo "no" >&6; }
6509fi
6510
6511
6512fi
6513if test -z "$ac_cv_prog_RANLIB"; then
6514 ac_ct_RANLIB=$RANLIB
6515 # Extract the first word of "ranlib", so it can be a program name with args.
6516set dummy ranlib; ac_word=$2
6517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518$as_echo_n "checking for $ac_word... " >&6; }
6519if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6520 $as_echo_n "(cached) " >&6
6521else
6522 if test -n "$ac_ct_RANLIB"; then
6523 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6524else
6525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526for as_dir in $PATH
6527do
6528 IFS=$as_save_IFS
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532 ac_cv_prog_ac_ct_RANLIB="ranlib"
6533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 break 2
6535 fi
6536done
6537 done
6538IFS=$as_save_IFS
6539
6540fi
6541fi
6542ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6543if test -n "$ac_ct_RANLIB"; then
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6545$as_echo "$ac_ct_RANLIB" >&6; }
6546else
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548$as_echo "no" >&6; }
6549fi
6550
6551 if test "x$ac_ct_RANLIB" = x; then
6552 RANLIB=":"
6553 else
6554 case $cross_compiling:$ac_tool_warned in
6555yes:)
6556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6558ac_tool_warned=yes ;;
6559esac
6560 RANLIB=$ac_ct_RANLIB
6561 fi
6562else
6563 RANLIB="$ac_cv_prog_RANLIB"
6564fi
6565
6566test -z "$RANLIB" && RANLIB=:
6567
6568
6569
6570
6571
6572
6573# Determine commands to create old-style static archives.
6574old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6575old_postinstall_cmds='chmod 644 $oldlib'
6576old_postuninstall_cmds=
6577
6578if test -n "$RANLIB"; then
6579 case $host_os in
6580 openbsd*)
6581 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6582 ;;
6583 *)
6584 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6585 ;;
6586 esac
6587 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6588fi
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623# If no C compiler was specified, use CC.
6624LTCC=${LTCC-"$CC"}
6625
6626# If no C compiler flags were specified, use CFLAGS.
6627LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6628
6629# Allow CC to be a program name with arguments.
6630compiler=$CC
6631
6632
6633# Check for command to grab the raw symbol name followed by C symbol from nm.
6634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6635$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6636if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6637 $as_echo_n "(cached) " >&6
6638else
6639
6640# These are sane defaults that work on at least a few old systems.
6641# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6642
6643# Character class describing NM global symbol codes.
6644symcode='[BCDEGRST]'
6645
6646# Regexp to match symbols that can be accessed directly from C.
6647sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6648
6649# Define system-specific variables.
6650case $host_os in
6651aix*)
6652 symcode='[BCDT]'
6653 ;;
6654cygwin* | mingw* | pw32* | cegcc*)
6655 symcode='[ABCDGISTW]'
6656 ;;
6657hpux*)
6658 if test "$host_cpu" = ia64; then
6659 symcode='[ABCDEGRST]'
6660 fi
6661 ;;
6662irix* | nonstopux*)
6663 symcode='[BCDEGRST]'
6664 ;;
6665osf*)
6666 symcode='[BCDEGQRST]'
6667 ;;
6668solaris*)
6669 symcode='[BDRT]'
6670 ;;
6671sco3.2v5*)
6672 symcode='[DT]'
6673 ;;
6674sysv4.2uw2*)
6675 symcode='[DT]'
6676 ;;
6677sysv5* | sco5v6* | unixware* | OpenUNIX*)
6678 symcode='[ABDT]'
6679 ;;
6680sysv4)
6681 symcode='[DFNSTU]'
6682 ;;
6683esac
6684
6685# If we're using GNU nm, then use its standard symbol codes.
6686case `$NM -V 2>&1` in
6687*GNU* | *'with BFD'*)
6688 symcode='[ABCDGIRSTW]' ;;
6689esac
6690
6691# Transform an extracted symbol line into a proper C declaration.
6692# Some systems (esp. on ia64) link data and code symbols differently,
6693# so use this general approach.
6694lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6695
6696# Transform an extracted symbol line into symbol name and symbol address
6697lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6698lt_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'"
6699
6700# Handle CRLF in mingw tool chain
6701opt_cr=
6702case $build_os in
6703mingw*)
6704 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6705 ;;
6706esac
6707
6708# Try without a prefix underscore, then with it.
6709for ac_symprfx in "" "_"; do
6710
6711 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6712 symxfrm="\\1 $ac_symprfx\\2 \\2"
6713
6714 # Write the raw and C identifiers.
6715 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6716 # Fake it for dumpbin and say T for any non-static function
6717 # and D for any global variable.
6718 # Also find C++ and __fastcall symbols from MSVC++,
6719 # which start with @ or ?.
6720 lt_cv_sys_global_symbol_pipe="$AWK '"\
6721" {last_section=section; section=\$ 3};"\
6722" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6723" \$ 0!~/External *\|/{next};"\
6724" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6725" {if(hide[section]) next};"\
6726" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6727" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6728" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6729" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6730" ' prfx=^$ac_symprfx"
6731 else
6732 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6733 fi
6734
6735 # Check to see that the pipe works correctly.
6736 pipe_works=no
6737
6738 rm -f conftest*
6739 cat > conftest.$ac_ext <<_LT_EOF
6740#ifdef __cplusplus
6741extern "C" {
6742#endif
6743char nm_test_var;
6744void nm_test_func(void);
6745void nm_test_func(void){}
6746#ifdef __cplusplus
6747}
6748#endif
6749int main(){nm_test_var='a';nm_test_func();return(0);}
6750_LT_EOF
6751
6752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6753 (eval $ac_compile) 2>&5
6754 ac_status=$?
6755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6756 test $ac_status = 0; }; then
6757 # Now try to grab the symbols.
6758 nlist=conftest.nm
6759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6760 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6761 ac_status=$?
6762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6763 test $ac_status = 0; } && test -s "$nlist"; then
6764 # Try sorting and uniquifying the output.
6765 if sort "$nlist" | uniq > "$nlist"T; then
6766 mv -f "$nlist"T "$nlist"
6767 else
6768 rm -f "$nlist"T
6769 fi
6770
6771 # Make sure that we snagged all the symbols we need.
6772 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6773 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6774 cat <<_LT_EOF > conftest.$ac_ext
6775#ifdef __cplusplus
6776extern "C" {
6777#endif
6778
6779_LT_EOF
6780 # Now generate the symbol file.
6781 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6782
6783 cat <<_LT_EOF >> conftest.$ac_ext
6784
6785/* The mapping between symbol names and symbols. */
6786const struct {
6787 const char *name;
6788 void *address;
6789}
6790lt__PROGRAM__LTX_preloaded_symbols[] =
6791{
6792 { "@PROGRAM@", (void *) 0 },
6793_LT_EOF
6794 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6795 cat <<\_LT_EOF >> conftest.$ac_ext
6796 {0, (void *) 0}
6797};
6798
6799/* This works around a problem in FreeBSD linker */
6800#ifdef FREEBSD_WORKAROUND
6801static const void *lt_preloaded_setup() {
6802 return lt__PROGRAM__LTX_preloaded_symbols;
6803}
6804#endif
6805
6806#ifdef __cplusplus
6807}
6808#endif
6809_LT_EOF
6810 # Now try linking the two files.
6811 mv conftest.$ac_objext conftstm.$ac_objext
6812 lt_save_LIBS="$LIBS"
6813 lt_save_CFLAGS="$CFLAGS"
6814 LIBS="conftstm.$ac_objext"
6815 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6817 (eval $ac_link) 2>&5
6818 ac_status=$?
6819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6820 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6821 pipe_works=yes
6822 fi
6823 LIBS="$lt_save_LIBS"
6824 CFLAGS="$lt_save_CFLAGS"
6825 else
6826 echo "cannot find nm_test_func in $nlist" >&5
6827 fi
6828 else
6829 echo "cannot find nm_test_var in $nlist" >&5
6830 fi
6831 else
6832 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6833 fi
6834 else
6835 echo "$progname: failed program was:" >&5
6836 cat conftest.$ac_ext >&5
6837 fi
6838 rm -rf conftest* conftst*
6839
6840 # Do not use the global_symbol_pipe unless it works.
6841 if test "$pipe_works" = yes; then
6842 break
6843 else
6844 lt_cv_sys_global_symbol_pipe=
6845 fi
6846done
6847
6848fi
6849
6850if test -z "$lt_cv_sys_global_symbol_pipe"; then
6851 lt_cv_sys_global_symbol_to_cdecl=
6852fi
6853if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6855$as_echo "failed" >&6; }
6856else
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6858$as_echo "ok" >&6; }
6859fi
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882# Check whether --enable-libtool-lock was given.
6883if test "${enable_libtool_lock+set}" = set; then :
6884 enableval=$enable_libtool_lock;
6885fi
6886
6887test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6888
6889# Some flags need to be propagated to the compiler or linker for good
6890# libtool support.
6891case $host in
6892ia64-*-hpux*)
6893 # Find out which ABI we are using.
6894 echo 'int i;' > conftest.$ac_ext
6895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6896 (eval $ac_compile) 2>&5
6897 ac_status=$?
6898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6899 test $ac_status = 0; }; then
6900 case `/usr/bin/file conftest.$ac_objext` in
6901 *ELF-32*)
6902 HPUX_IA64_MODE="32"
6903 ;;
6904 *ELF-64*)
6905 HPUX_IA64_MODE="64"
6906 ;;
6907 esac
6908 fi
6909 rm -rf conftest*
6910 ;;
6911*-*-irix6*)
6912 # Find out which ABI we are using.
6913 echo '#line 6913 "configure"' > conftest.$ac_ext
6914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6915 (eval $ac_compile) 2>&5
6916 ac_status=$?
6917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6918 test $ac_status = 0; }; then
6919 if test "$lt_cv_prog_gnu_ld" = yes; then
6920 case `/usr/bin/file conftest.$ac_objext` in
6921 *32-bit*)
6922 LD="${LD-ld} -melf32bsmip"
6923 ;;
6924 *N32*)
6925 LD="${LD-ld} -melf32bmipn32"
6926 ;;
6927 *64-bit*)
6928 LD="${LD-ld} -melf64bmip"
6929 ;;
6930 esac
6931 else
6932 case `/usr/bin/file conftest.$ac_objext` in
6933 *32-bit*)
6934 LD="${LD-ld} -32"
6935 ;;
6936 *N32*)
6937 LD="${LD-ld} -n32"
6938 ;;
6939 *64-bit*)
6940 LD="${LD-ld} -64"
6941 ;;
6942 esac
6943 fi
6944 fi
6945 rm -rf conftest*
6946 ;;
6947
6948x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6949s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6950 # Find out which ABI we are using.
6951 echo 'int i;' > conftest.$ac_ext
6952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6953 (eval $ac_compile) 2>&5
6954 ac_status=$?
6955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6956 test $ac_status = 0; }; then
6957 case `/usr/bin/file conftest.o` in
6958 *32-bit*)
6959 case $host in
6960 x86_64-*kfreebsd*-gnu)
6961 LD="${LD-ld} -m elf_i386_fbsd"
6962 ;;
6963 x86_64-*linux*)
6964 LD="${LD-ld} -m elf_i386"
6965 ;;
6966 ppc64-*linux*|powerpc64-*linux*)
6967 LD="${LD-ld} -m elf32ppclinux"
6968 ;;
6969 s390x-*linux*)
6970 LD="${LD-ld} -m elf_s390"
6971 ;;
6972 sparc64-*linux*)
6973 LD="${LD-ld} -m elf32_sparc"
6974 ;;
6975 esac
6976 ;;
6977 *64-bit*)
6978 case $host in
6979 x86_64-*kfreebsd*-gnu)
6980 LD="${LD-ld} -m elf_x86_64_fbsd"
6981 ;;
6982 x86_64-*linux*)
6983 LD="${LD-ld} -m elf_x86_64"
6984 ;;
6985 ppc*-*linux*|powerpc*-*linux*)
6986 LD="${LD-ld} -m elf64ppc"
6987 ;;
6988 s390*-*linux*|s390*-*tpf*)
6989 LD="${LD-ld} -m elf64_s390"
6990 ;;
6991 sparc*-*linux*)
6992 LD="${LD-ld} -m elf64_sparc"
6993 ;;
6994 esac
6995 ;;
6996 esac
6997 fi
6998 rm -rf conftest*
6999 ;;
7000
7001*-*-sco3.2v5*)
7002 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7003 SAVE_CFLAGS="$CFLAGS"
7004 CFLAGS="$CFLAGS -belf"
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7006$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7007if test "${lt_cv_cc_needs_belf+set}" = set; then :
7008 $as_echo_n "(cached) " >&6
7009else
7010 ac_ext=c
7011ac_cpp='$CPP $CPPFLAGS'
7012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7014ac_compiler_gnu=$ac_cv_c_compiler_gnu
7015
7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017/* end confdefs.h. */
7018
7019int
7020main ()
7021{
7022
7023 ;
7024 return 0;
7025}
7026_ACEOF
7027if ac_fn_c_try_link "$LINENO"; then :
7028 lt_cv_cc_needs_belf=yes
7029else
7030 lt_cv_cc_needs_belf=no
7031fi
7032rm -f core conftest.err conftest.$ac_objext \
7033 conftest$ac_exeext conftest.$ac_ext
7034 ac_ext=c
7035ac_cpp='$CPP $CPPFLAGS'
7036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7038ac_compiler_gnu=$ac_cv_c_compiler_gnu
7039
7040fi
7041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7042$as_echo "$lt_cv_cc_needs_belf" >&6; }
7043 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7044 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7045 CFLAGS="$SAVE_CFLAGS"
7046 fi
7047 ;;
7048sparc*-*solaris*)
7049 # Find out which ABI we are using.
7050 echo 'int i;' > conftest.$ac_ext
7051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7052 (eval $ac_compile) 2>&5
7053 ac_status=$?
7054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7055 test $ac_status = 0; }; then
7056 case `/usr/bin/file conftest.o` in
7057 *64-bit*)
7058 case $lt_cv_prog_gnu_ld in
7059 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7060 *)
7061 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7062 LD="${LD-ld} -64"
7063 fi
7064 ;;
7065 esac
7066 ;;
7067 esac
7068 fi
7069 rm -rf conftest*
7070 ;;
7071esac
7072
7073need_locks="$enable_libtool_lock"
7074
7075
7076 case $host_os in
7077 rhapsody* | darwin*)
7078 if test -n "$ac_tool_prefix"; then
7079 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7080set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082$as_echo_n "checking for $ac_word... " >&6; }
7083if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7084 $as_echo_n "(cached) " >&6
7085else
7086 if test -n "$DSYMUTIL"; then
7087 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7088else
7089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090for as_dir in $PATH
7091do
7092 IFS=$as_save_IFS
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7096 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 break 2
7099 fi
7100done
7101 done
7102IFS=$as_save_IFS
7103
7104fi
7105fi
7106DSYMUTIL=$ac_cv_prog_DSYMUTIL
7107if test -n "$DSYMUTIL"; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7109$as_echo "$DSYMUTIL" >&6; }
7110else
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112$as_echo "no" >&6; }
7113fi
7114
7115
7116fi
7117if test -z "$ac_cv_prog_DSYMUTIL"; then
7118 ac_ct_DSYMUTIL=$DSYMUTIL
7119 # Extract the first word of "dsymutil", so it can be a program name with args.
7120set dummy dsymutil; ac_word=$2
7121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122$as_echo_n "checking for $ac_word... " >&6; }
7123if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7124 $as_echo_n "(cached) " >&6
7125else
7126 if test -n "$ac_ct_DSYMUTIL"; then
7127 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7128else
7129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130for as_dir in $PATH
7131do
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7136 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 break 2
7139 fi
7140done
7141 done
7142IFS=$as_save_IFS
7143
7144fi
7145fi
7146ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7147if test -n "$ac_ct_DSYMUTIL"; then
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7149$as_echo "$ac_ct_DSYMUTIL" >&6; }
7150else
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152$as_echo "no" >&6; }
7153fi
7154
7155 if test "x$ac_ct_DSYMUTIL" = x; then
7156 DSYMUTIL=":"
7157 else
7158 case $cross_compiling:$ac_tool_warned in
7159yes:)
7160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7162ac_tool_warned=yes ;;
7163esac
7164 DSYMUTIL=$ac_ct_DSYMUTIL
7165 fi
7166else
7167 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7168fi
7169
7170 if test -n "$ac_tool_prefix"; then
7171 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7172set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174$as_echo_n "checking for $ac_word... " >&6; }
7175if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7176 $as_echo_n "(cached) " >&6
7177else
7178 if test -n "$NMEDIT"; then
7179 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7180else
7181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182for as_dir in $PATH
7183do
7184 IFS=$as_save_IFS
7185 test -z "$as_dir" && as_dir=.
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7188 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 break 2
7191 fi
7192done
7193 done
7194IFS=$as_save_IFS
7195
7196fi
7197fi
7198NMEDIT=$ac_cv_prog_NMEDIT
7199if test -n "$NMEDIT"; then
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7201$as_echo "$NMEDIT" >&6; }
7202else
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204$as_echo "no" >&6; }
7205fi
7206
7207
7208fi
7209if test -z "$ac_cv_prog_NMEDIT"; then
7210 ac_ct_NMEDIT=$NMEDIT
7211 # Extract the first word of "nmedit", so it can be a program name with args.
7212set dummy nmedit; ac_word=$2
7213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7214$as_echo_n "checking for $ac_word... " >&6; }
7215if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7216 $as_echo_n "(cached) " >&6
7217else
7218 if test -n "$ac_ct_NMEDIT"; then
7219 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7220else
7221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222for as_dir in $PATH
7223do
7224 IFS=$as_save_IFS
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7228 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 break 2
7231 fi
7232done
7233 done
7234IFS=$as_save_IFS
7235
7236fi
7237fi
7238ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7239if test -n "$ac_ct_NMEDIT"; then
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7241$as_echo "$ac_ct_NMEDIT" >&6; }
7242else
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244$as_echo "no" >&6; }
7245fi
7246
7247 if test "x$ac_ct_NMEDIT" = x; then
7248 NMEDIT=":"
7249 else
7250 case $cross_compiling:$ac_tool_warned in
7251yes:)
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7254ac_tool_warned=yes ;;
7255esac
7256 NMEDIT=$ac_ct_NMEDIT
7257 fi
7258else
7259 NMEDIT="$ac_cv_prog_NMEDIT"
7260fi
7261
7262 if test -n "$ac_tool_prefix"; then
7263 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7264set dummy ${ac_tool_prefix}lipo; ac_word=$2
7265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266$as_echo_n "checking for $ac_word... " >&6; }
7267if test "${ac_cv_prog_LIPO+set}" = set; then :
7268 $as_echo_n "(cached) " >&6
7269else
7270 if test -n "$LIPO"; then
7271 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7272else
7273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274for as_dir in $PATH
7275do
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7280 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 break 2
7283 fi
7284done
7285 done
7286IFS=$as_save_IFS
7287
7288fi
7289fi
7290LIPO=$ac_cv_prog_LIPO
7291if test -n "$LIPO"; then
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7293$as_echo "$LIPO" >&6; }
7294else
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296$as_echo "no" >&6; }
7297fi
7298
7299
7300fi
7301if test -z "$ac_cv_prog_LIPO"; then
7302 ac_ct_LIPO=$LIPO
7303 # Extract the first word of "lipo", so it can be a program name with args.
7304set dummy lipo; ac_word=$2
7305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306$as_echo_n "checking for $ac_word... " >&6; }
7307if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7308 $as_echo_n "(cached) " >&6
7309else
7310 if test -n "$ac_ct_LIPO"; then
7311 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7312else
7313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314for as_dir in $PATH
7315do
7316 IFS=$as_save_IFS
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7320 ac_cv_prog_ac_ct_LIPO="lipo"
7321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 break 2
7323 fi
7324done
7325 done
7326IFS=$as_save_IFS
7327
7328fi
7329fi
7330ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7331if test -n "$ac_ct_LIPO"; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7333$as_echo "$ac_ct_LIPO" >&6; }
7334else
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336$as_echo "no" >&6; }
7337fi
7338
7339 if test "x$ac_ct_LIPO" = x; then
7340 LIPO=":"
7341 else
7342 case $cross_compiling:$ac_tool_warned in
7343yes:)
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7346ac_tool_warned=yes ;;
7347esac
7348 LIPO=$ac_ct_LIPO
7349 fi
7350else
7351 LIPO="$ac_cv_prog_LIPO"
7352fi
7353
7354 if test -n "$ac_tool_prefix"; then
7355 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7356set dummy ${ac_tool_prefix}otool; ac_word=$2
7357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358$as_echo_n "checking for $ac_word... " >&6; }
7359if test "${ac_cv_prog_OTOOL+set}" = set; then :
7360 $as_echo_n "(cached) " >&6
7361else
7362 if test -n "$OTOOL"; then
7363 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7364else
7365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366for as_dir in $PATH
7367do
7368 IFS=$as_save_IFS
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7372 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 break 2
7375 fi
7376done
7377 done
7378IFS=$as_save_IFS
7379
7380fi
7381fi
7382OTOOL=$ac_cv_prog_OTOOL
7383if test -n "$OTOOL"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7385$as_echo "$OTOOL" >&6; }
7386else
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388$as_echo "no" >&6; }
7389fi
7390
7391
7392fi
7393if test -z "$ac_cv_prog_OTOOL"; then
7394 ac_ct_OTOOL=$OTOOL
7395 # Extract the first word of "otool", so it can be a program name with args.
7396set dummy otool; ac_word=$2
7397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398$as_echo_n "checking for $ac_word... " >&6; }
7399if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7400 $as_echo_n "(cached) " >&6
7401else
7402 if test -n "$ac_ct_OTOOL"; then
7403 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7404else
7405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406for as_dir in $PATH
7407do
7408 IFS=$as_save_IFS
7409 test -z "$as_dir" && as_dir=.
7410 for ac_exec_ext in '' $ac_executable_extensions; do
7411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7412 ac_cv_prog_ac_ct_OTOOL="otool"
7413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 break 2
7415 fi
7416done
7417 done
7418IFS=$as_save_IFS
7419
7420fi
7421fi
7422ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7423if test -n "$ac_ct_OTOOL"; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7425$as_echo "$ac_ct_OTOOL" >&6; }
7426else
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428$as_echo "no" >&6; }
7429fi
7430
7431 if test "x$ac_ct_OTOOL" = x; then
7432 OTOOL=":"
7433 else
7434 case $cross_compiling:$ac_tool_warned in
7435yes:)
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7438ac_tool_warned=yes ;;
7439esac
7440 OTOOL=$ac_ct_OTOOL
7441 fi
7442else
7443 OTOOL="$ac_cv_prog_OTOOL"
7444fi
7445
7446 if test -n "$ac_tool_prefix"; then
7447 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7448set dummy ${ac_tool_prefix}otool64; ac_word=$2
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450$as_echo_n "checking for $ac_word... " >&6; }
7451if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7452 $as_echo_n "(cached) " >&6
7453else
7454 if test -n "$OTOOL64"; then
7455 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7456else
7457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458for as_dir in $PATH
7459do
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7464 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 break 2
7467 fi
7468done
7469 done
7470IFS=$as_save_IFS
7471
7472fi
7473fi
7474OTOOL64=$ac_cv_prog_OTOOL64
7475if test -n "$OTOOL64"; then
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7477$as_echo "$OTOOL64" >&6; }
7478else
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480$as_echo "no" >&6; }
7481fi
7482
7483
7484fi
7485if test -z "$ac_cv_prog_OTOOL64"; then
7486 ac_ct_OTOOL64=$OTOOL64
7487 # Extract the first word of "otool64", so it can be a program name with args.
7488set dummy otool64; ac_word=$2
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490$as_echo_n "checking for $ac_word... " >&6; }
7491if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7492 $as_echo_n "(cached) " >&6
7493else
7494 if test -n "$ac_ct_OTOOL64"; then
7495 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7496else
7497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498for as_dir in $PATH
7499do
7500 IFS=$as_save_IFS
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7504 ac_cv_prog_ac_ct_OTOOL64="otool64"
7505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 break 2
7507 fi
7508done
7509 done
7510IFS=$as_save_IFS
7511
7512fi
7513fi
7514ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7515if test -n "$ac_ct_OTOOL64"; then
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7517$as_echo "$ac_ct_OTOOL64" >&6; }
7518else
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520$as_echo "no" >&6; }
7521fi
7522
7523 if test "x$ac_ct_OTOOL64" = x; then
7524 OTOOL64=":"
7525 else
7526 case $cross_compiling:$ac_tool_warned in
7527yes:)
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7530ac_tool_warned=yes ;;
7531esac
7532 OTOOL64=$ac_ct_OTOOL64
7533 fi
7534else
7535 OTOOL64="$ac_cv_prog_OTOOL64"
7536fi
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7565$as_echo_n "checking for -single_module linker flag... " >&6; }
7566if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7567 $as_echo_n "(cached) " >&6
7568else
7569 lt_cv_apple_cc_single_mod=no
7570 if test -z "${LT_MULTI_MODULE}"; then
7571 # By default we will add the -single_module flag. You can override
7572 # by either setting the environment variable LT_MULTI_MODULE
7573 # non-empty at configure time, or by adding -multi_module to the
7574 # link flags.
7575 rm -rf libconftest.dylib*
7576 echo "int foo(void){return 1;}" > conftest.c
7577 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7578-dynamiclib -Wl,-single_module conftest.c" >&5
7579 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7580 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7581 _lt_result=$?
7582 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7583 lt_cv_apple_cc_single_mod=yes
7584 else
7585 cat conftest.err >&5
7586 fi
7587 rm -rf libconftest.dylib*
7588 rm -f conftest.*
7589 fi
7590fi
7591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7592$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7594$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7595if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7596 $as_echo_n "(cached) " >&6
7597else
7598 lt_cv_ld_exported_symbols_list=no
7599 save_LDFLAGS=$LDFLAGS
7600 echo "_main" > conftest.sym
7601 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603/* end confdefs.h. */
7604
7605int
7606main ()
7607{
7608
7609 ;
7610 return 0;
7611}
7612_ACEOF
7613if ac_fn_c_try_link "$LINENO"; then :
7614 lt_cv_ld_exported_symbols_list=yes
7615else
7616 lt_cv_ld_exported_symbols_list=no
7617fi
7618rm -f core conftest.err conftest.$ac_objext \
7619 conftest$ac_exeext conftest.$ac_ext
7620 LDFLAGS="$save_LDFLAGS"
7621
7622fi
7623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7624$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7625 case $host_os in
7626 rhapsody* | darwin1.[012])
7627 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7628 darwin1.*)
7629 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7630 darwin*) # darwin 5.x on
7631 # if running on 10.5 or later, the deployment target defaults
7632 # to the OS version, if on x86, and 10.4, the deployment
7633 # target defaults to 10.4. Don't you love it?
7634 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7635 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7636 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7637 10.[012]*)
7638 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7639 10.*)
7640 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7641 esac
7642 ;;
7643 esac
7644 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7645 _lt_dar_single_mod='$single_module'
7646 fi
7647 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7648 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7649 else
7650 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7651 fi
7652 if test "$DSYMUTIL" != ":"; then
7653 _lt_dsymutil='~$DSYMUTIL $lib || :'
7654 else
7655 _lt_dsymutil=
7656 fi
7657 ;;
7658 esac
7659
7660for ac_header in dlfcn.h
7661do :
7662 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7663"
7664if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7665 cat >>confdefs.h <<_ACEOF
7666#define HAVE_DLFCN_H 1
7667_ACEOF
7668
7669fi
7670
7671done
7672
7673
7674
7675# Set options
7676
7677
7678
7679 enable_dlopen=no
7680
7681
7682 enable_win32_dll=no
7683
7684
7685 # Check whether --enable-shared was given.
7686if test "${enable_shared+set}" = set; then :
7687 enableval=$enable_shared; p=${PACKAGE-default}
7688 case $enableval in
7689 yes) enable_shared=yes ;;
7690 no) enable_shared=no ;;
7691 *)
7692 enable_shared=no
7693 # Look at the argument we got. We use all the common list separators.
7694 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7695 for pkg in $enableval; do
7696 IFS="$lt_save_ifs"
7697 if test "X$pkg" = "X$p"; then
7698 enable_shared=yes
7699 fi
7700 done
7701 IFS="$lt_save_ifs"
7702 ;;
7703 esac
7704else
7705 enable_shared=yes
7706fi
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716 # Check whether --enable-static was given.
7717if test "${enable_static+set}" = set; then :
7718 enableval=$enable_static; p=${PACKAGE-default}
7719 case $enableval in
7720 yes) enable_static=yes ;;
7721 no) enable_static=no ;;
7722 *)
7723 enable_static=no
7724 # Look at the argument we got. We use all the common list separators.
7725 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7726 for pkg in $enableval; do
7727 IFS="$lt_save_ifs"
7728 if test "X$pkg" = "X$p"; then
7729 enable_static=yes
7730 fi
7731 done
7732 IFS="$lt_save_ifs"
7733 ;;
7734 esac
7735else
7736 enable_static=yes
7737fi
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748# Check whether --with-pic was given.
7749if test "${with_pic+set}" = set; then :
7750 withval=$with_pic; pic_mode="$withval"
7751else
7752 pic_mode=default
7753fi
7754
7755
7756test -z "$pic_mode" && pic_mode=default
7757
7758
7759
7760
7761
7762
7763
7764 # Check whether --enable-fast-install was given.
7765if test "${enable_fast_install+set}" = set; then :
7766 enableval=$enable_fast_install; p=${PACKAGE-default}
7767 case $enableval in
7768 yes) enable_fast_install=yes ;;
7769 no) enable_fast_install=no ;;
7770 *)
7771 enable_fast_install=no
7772 # Look at the argument we got. We use all the common list separators.
7773 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7774 for pkg in $enableval; do
7775 IFS="$lt_save_ifs"
7776 if test "X$pkg" = "X$p"; then
7777 enable_fast_install=yes
7778 fi
7779 done
7780 IFS="$lt_save_ifs"
7781 ;;
7782 esac
7783else
7784 enable_fast_install=yes
7785fi
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797# This can be used to rebuild libtool when needed
7798LIBTOOL_DEPS="$ltmain"
7799
7800# Always use our own libtool.
7801LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827test -z "$LN_S" && LN_S="ln -s"
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842if test -n "${ZSH_VERSION+set}" ; then
7843 setopt NO_GLOB_SUBST
7844fi
7845
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7847$as_echo_n "checking for objdir... " >&6; }
7848if test "${lt_cv_objdir+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7850else
7851 rm -f .libs 2>/dev/null
7852mkdir .libs 2>/dev/null
7853if test -d .libs; then
7854 lt_cv_objdir=.libs
7855else
7856 # MS-DOS does not allow filenames that begin with a dot.
7857 lt_cv_objdir=_libs
7858fi
7859rmdir .libs 2>/dev/null
7860fi
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7862$as_echo "$lt_cv_objdir" >&6; }
7863objdir=$lt_cv_objdir
7864
7865
7866
7867
7868
7869cat >>confdefs.h <<_ACEOF
7870#define LT_OBJDIR "$lt_cv_objdir/"
7871_ACEOF
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889case $host_os in
7890aix3*)
7891 # AIX sometimes has problems with the GCC collect2 program. For some
7892 # reason, if we set the COLLECT_NAMES environment variable, the problems
7893 # vanish in a puff of smoke.
7894 if test "X${COLLECT_NAMES+set}" != Xset; then
7895 COLLECT_NAMES=
7896 export COLLECT_NAMES
7897 fi
7898 ;;
7899esac
7900
7901# Sed substitution that helps us do robust quoting. It backslashifies
7902# metacharacters that are still active within double-quoted strings.
7903sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7904
7905# Same as above, but do not quote variable references.
7906double_quote_subst='s/\(["`\\]\)/\\\1/g'
7907
7908# Sed substitution to delay expansion of an escaped shell variable in a
7909# double_quote_subst'ed string.
7910delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7911
7912# Sed substitution to delay expansion of an escaped single quote.
7913delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7914
7915# Sed substitution to avoid accidental globbing in evaled expressions
7916no_glob_subst='s/\*/\\\*/g'
7917
7918# Global variables:
7919ofile=libtool
7920can_build_shared=yes
7921
7922# All known linkers require a `.a' archive for static linking (except MSVC,
7923# which needs '.lib').
7924libext=a
7925
7926with_gnu_ld="$lt_cv_prog_gnu_ld"
7927
7928old_CC="$CC"
7929old_CFLAGS="$CFLAGS"
7930
7931# Set sane defaults for various variables
7932test -z "$CC" && CC=cc
7933test -z "$LTCC" && LTCC=$CC
7934test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7935test -z "$LD" && LD=ld
7936test -z "$ac_objext" && ac_objext=o
7937
7938for cc_temp in $compiler""; do
7939 case $cc_temp in
7940 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7941 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7942 \-*) ;;
7943 *) break;;
7944 esac
7945done
7946cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7947
7948
7949# Only perform the check for file, if the check method requires it
7950test -z "$MAGIC_CMD" && MAGIC_CMD=file
7951case $deplibs_check_method in
7952file_magic*)
7953 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7955$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7956if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7957 $as_echo_n "(cached) " >&6
7958else
7959 case $MAGIC_CMD in
7960[\\/*] | ?:[\\/]*)
7961 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7962 ;;
7963*)
7964 lt_save_MAGIC_CMD="$MAGIC_CMD"
7965 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7966 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7967 for ac_dir in $ac_dummy; do
7968 IFS="$lt_save_ifs"
7969 test -z "$ac_dir" && ac_dir=.
7970 if test -f $ac_dir/${ac_tool_prefix}file; then
7971 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7972 if test -n "$file_magic_test_file"; then
7973 case $deplibs_check_method in
7974 "file_magic "*)
7975 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7976 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7977 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7978 $EGREP "$file_magic_regex" > /dev/null; then
7979 :
7980 else
7981 cat <<_LT_EOF 1>&2
7982
7983*** Warning: the command libtool uses to detect shared libraries,
7984*** $file_magic_cmd, produces output that libtool cannot recognize.
7985*** The result is that libtool may fail to recognize shared libraries
7986*** as such. This will affect the creation of libtool libraries that
7987*** depend on shared libraries, but programs linked with such libtool
7988*** libraries will work regardless of this problem. Nevertheless, you
7989*** may want to report the problem to your system manager and/or to
7990*** bug-libtool@gnu.org
7991
7992_LT_EOF
7993 fi ;;
7994 esac
7995 fi
7996 break
7997 fi
7998 done
7999 IFS="$lt_save_ifs"
8000 MAGIC_CMD="$lt_save_MAGIC_CMD"
8001 ;;
8002esac
8003fi
8004
8005MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8006if test -n "$MAGIC_CMD"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8008$as_echo "$MAGIC_CMD" >&6; }
8009else
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011$as_echo "no" >&6; }
8012fi
8013
8014
8015
8016
8017
8018if test -z "$lt_cv_path_MAGIC_CMD"; then
8019 if test -n "$ac_tool_prefix"; then
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8021$as_echo_n "checking for file... " >&6; }
8022if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8023 $as_echo_n "(cached) " >&6
8024else
8025 case $MAGIC_CMD in
8026[\\/*] | ?:[\\/]*)
8027 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8028 ;;
8029*)
8030 lt_save_MAGIC_CMD="$MAGIC_CMD"
8031 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8032 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8033 for ac_dir in $ac_dummy; do
8034 IFS="$lt_save_ifs"
8035 test -z "$ac_dir" && ac_dir=.
8036 if test -f $ac_dir/file; then
8037 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8038 if test -n "$file_magic_test_file"; then
8039 case $deplibs_check_method in
8040 "file_magic "*)
8041 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8043 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8044 $EGREP "$file_magic_regex" > /dev/null; then
8045 :
8046 else
8047 cat <<_LT_EOF 1>&2
8048
8049*** Warning: the command libtool uses to detect shared libraries,
8050*** $file_magic_cmd, produces output that libtool cannot recognize.
8051*** The result is that libtool may fail to recognize shared libraries
8052*** as such. This will affect the creation of libtool libraries that
8053*** depend on shared libraries, but programs linked with such libtool
8054*** libraries will work regardless of this problem. Nevertheless, you
8055*** may want to report the problem to your system manager and/or to
8056*** bug-libtool@gnu.org
8057
8058_LT_EOF
8059 fi ;;
8060 esac
8061 fi
8062 break
8063 fi
8064 done
8065 IFS="$lt_save_ifs"
8066 MAGIC_CMD="$lt_save_MAGIC_CMD"
8067 ;;
8068esac
8069fi
8070
8071MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8072if test -n "$MAGIC_CMD"; then
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8074$as_echo "$MAGIC_CMD" >&6; }
8075else
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077$as_echo "no" >&6; }
8078fi
8079
8080
8081 else
8082 MAGIC_CMD=:
8083 fi
8084fi
8085
8086 fi
8087 ;;
8088esac
8089
8090# Use C for the default configuration in the libtool script
8091
8092lt_save_CC="$CC"
8093ac_ext=c
8094ac_cpp='$CPP $CPPFLAGS'
8095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8097ac_compiler_gnu=$ac_cv_c_compiler_gnu
8098
8099
8100# Source file extension for C test sources.
8101ac_ext=c
8102
8103# Object file extension for compiled C test sources.
8104objext=o
8105objext=$objext
8106
8107# Code to be used in simple compile tests
8108lt_simple_compile_test_code="int some_variable = 0;"
8109
8110# Code to be used in simple link tests
8111lt_simple_link_test_code='int main(){return(0);}'
8112
8113
8114
8115
8116
8117
8118
8119# If no C compiler was specified, use CC.
8120LTCC=${LTCC-"$CC"}
8121
8122# If no C compiler flags were specified, use CFLAGS.
8123LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8124
8125# Allow CC to be a program name with arguments.
8126compiler=$CC
8127
8128# Save the default compiler, since it gets overwritten when the other
8129# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8130compiler_DEFAULT=$CC
8131
8132# save warnings/boilerplate of simple test code
8133ac_outfile=conftest.$ac_objext
8134echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8135eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8136_lt_compiler_boilerplate=`cat conftest.err`
8137$RM conftest*
8138
8139ac_outfile=conftest.$ac_objext
8140echo "$lt_simple_link_test_code" >conftest.$ac_ext
8141eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8142_lt_linker_boilerplate=`cat conftest.err`
8143$RM -r conftest*
8144
8145
8146## CAVEAT EMPTOR:
8147## There is no encapsulation within the following macros, do not change
8148## the running order or otherwise move them around unless you know exactly
8149## what you are doing...
8150if test -n "$compiler"; then
8151
8152lt_prog_compiler_no_builtin_flag=
8153
8154if test "$GCC" = yes; then
8155 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8156
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8158$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8159if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8160 $as_echo_n "(cached) " >&6
8161else
8162 lt_cv_prog_compiler_rtti_exceptions=no
8163 ac_outfile=conftest.$ac_objext
8164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8165 lt_compiler_flag="-fno-rtti -fno-exceptions"
8166 # Insert the option either (1) after the last *FLAGS variable, or
8167 # (2) before a word containing "conftest.", or (3) at the end.
8168 # Note that $ac_compile itself does not contain backslashes and begins
8169 # with a dollar sign (not a hyphen), so the echo should work correctly.
8170 # The option is referenced via a variable to avoid confusing sed.
8171 lt_compile=`echo "$ac_compile" | $SED \
8172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8174 -e 's:$: $lt_compiler_flag:'`
8175 (eval echo "\"\$as_me:8175: $lt_compile\"" >&5)
8176 (eval "$lt_compile" 2>conftest.err)
8177 ac_status=$?
8178 cat conftest.err >&5
8179 echo "$as_me:8179: \$? = $ac_status" >&5
8180 if (exit $ac_status) && test -s "$ac_outfile"; then
8181 # The compiler can only warn and ignore the option if not recognized
8182 # So say no if there are warnings other than the usual output.
8183 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8184 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8185 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8186 lt_cv_prog_compiler_rtti_exceptions=yes
8187 fi
8188 fi
8189 $RM conftest*
8190
8191fi
8192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8193$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8194
8195if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8196 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8197else
8198 :
8199fi
8200
8201fi
8202
8203
8204
8205
8206
8207
8208 lt_prog_compiler_wl=
8209lt_prog_compiler_pic=
8210lt_prog_compiler_static=
8211
8212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8213$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8214
8215 if test "$GCC" = yes; then
8216 lt_prog_compiler_wl='-Wl,'
8217 lt_prog_compiler_static='-static'
8218
8219 case $host_os in
8220 aix*)
8221 # All AIX code is PIC.
8222 if test "$host_cpu" = ia64; then
8223 # AIX 5 now supports IA64 processor
8224 lt_prog_compiler_static='-Bstatic'
8225 fi
8226 ;;
8227
8228 amigaos*)
8229 case $host_cpu in
8230 powerpc)
8231 # see comment about AmigaOS4 .so support
8232 lt_prog_compiler_pic='-fPIC'
8233 ;;
8234 m68k)
8235 # FIXME: we need at least 68020 code to build shared libraries, but
8236 # adding the `-m68020' flag to GCC prevents building anything better,
8237 # like `-m68040'.
8238 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8239 ;;
8240 esac
8241 ;;
8242
8243 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8244 # PIC is the default for these OSes.
8245 ;;
8246
8247 mingw* | cygwin* | pw32* | os2* | cegcc*)
8248 # This hack is so that the source file can tell whether it is being
8249 # built for inclusion in a dll (and should export symbols for example).
8250 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8251 # (--disable-auto-import) libraries
8252 lt_prog_compiler_pic='-DDLL_EXPORT'
8253 ;;
8254
8255 darwin* | rhapsody*)
8256 # PIC is the default on this platform
8257 # Common symbols not allowed in MH_DYLIB files
8258 lt_prog_compiler_pic='-fno-common'
8259 ;;
8260
8261 hpux*)
8262 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8263 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8264 # sets the default TLS model and affects inlining.
8265 case $host_cpu in
8266 hppa*64*)
8267 # +Z the default
8268 ;;
8269 *)
8270 lt_prog_compiler_pic='-fPIC'
8271 ;;
8272 esac
8273 ;;
8274
8275 interix[3-9]*)
8276 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8277 # Instead, we relocate shared libraries at runtime.
8278 ;;
8279
8280 msdosdjgpp*)
8281 # Just because we use GCC doesn't mean we suddenly get shared libraries
8282 # on systems that don't support them.
8283 lt_prog_compiler_can_build_shared=no
8284 enable_shared=no
8285 ;;
8286
8287 *nto* | *qnx*)
8288 # QNX uses GNU C++, but need to define -shared option too, otherwise
8289 # it will coredump.
8290 lt_prog_compiler_pic='-fPIC -shared'
8291 ;;
8292
8293 sysv4*MP*)
8294 if test -d /usr/nec; then
8295 lt_prog_compiler_pic=-Kconform_pic
8296 fi
8297 ;;
8298
8299 *)
8300 lt_prog_compiler_pic='-fPIC'
8301 ;;
8302 esac
8303 else
8304 # PORTME Check for flag to pass linker flags through the system compiler.
8305 case $host_os in
8306 aix*)
8307 lt_prog_compiler_wl='-Wl,'
8308 if test "$host_cpu" = ia64; then
8309 # AIX 5 now supports IA64 processor
8310 lt_prog_compiler_static='-Bstatic'
8311 else
8312 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8313 fi
8314 ;;
8315
8316 mingw* | cygwin* | pw32* | os2* | cegcc*)
8317 # This hack is so that the source file can tell whether it is being
8318 # built for inclusion in a dll (and should export symbols for example).
8319 lt_prog_compiler_pic='-DDLL_EXPORT'
8320 ;;
8321
8322 hpux9* | hpux10* | hpux11*)
8323 lt_prog_compiler_wl='-Wl,'
8324 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8325 # not for PA HP-UX.
8326 case $host_cpu in
8327 hppa*64*|ia64*)
8328 # +Z the default
8329 ;;
8330 *)
8331 lt_prog_compiler_pic='+Z'
8332 ;;
8333 esac
8334 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8335 lt_prog_compiler_static='${wl}-a ${wl}archive'
8336 ;;
8337
8338 irix5* | irix6* | nonstopux*)
8339 lt_prog_compiler_wl='-Wl,'
8340 # PIC (with -KPIC) is the default.
8341 lt_prog_compiler_static='-non_shared'
8342 ;;
8343
8344 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8345 case $cc_basename in
8346 # old Intel for x86_64 which still supported -KPIC.
8347 ecc*)
8348 lt_prog_compiler_wl='-Wl,'
8349 lt_prog_compiler_pic='-KPIC'
8350 lt_prog_compiler_static='-static'
8351 ;;
8352 # icc used to be incompatible with GCC.
8353 # ICC 10 doesn't accept -KPIC any more.
8354 icc* | ifort*)
8355 lt_prog_compiler_wl='-Wl,'
8356 lt_prog_compiler_pic='-fPIC'
8357 lt_prog_compiler_static='-static'
8358 ;;
8359 # Lahey Fortran 8.1.
8360 lf95*)
8361 lt_prog_compiler_wl='-Wl,'
8362 lt_prog_compiler_pic='--shared'
8363 lt_prog_compiler_static='--static'
8364 ;;
8365 pgcc* | pgf77* | pgf90* | pgf95*)
8366 # Portland Group compilers (*not* the Pentium gcc compiler,
8367 # which looks to be a dead project)
8368 lt_prog_compiler_wl='-Wl,'
8369 lt_prog_compiler_pic='-fpic'
8370 lt_prog_compiler_static='-Bstatic'
8371 ;;
8372 ccc*)
8373 lt_prog_compiler_wl='-Wl,'
8374 # All Alpha code is PIC.
8375 lt_prog_compiler_static='-non_shared'
8376 ;;
8377 xl*)
8378 # IBM XL C 8.0/Fortran 10.1 on PPC
8379 lt_prog_compiler_wl='-Wl,'
8380 lt_prog_compiler_pic='-qpic'
8381 lt_prog_compiler_static='-qstaticlink'
8382 ;;
8383 *)
8384 case `$CC -V 2>&1 | sed 5q` in
8385 *Sun\ C*)
8386 # Sun C 5.9
8387 lt_prog_compiler_pic='-KPIC'
8388 lt_prog_compiler_static='-Bstatic'
8389 lt_prog_compiler_wl='-Wl,'
8390 ;;
8391 *Sun\ F*)
8392 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8393 lt_prog_compiler_pic='-KPIC'
8394 lt_prog_compiler_static='-Bstatic'
8395 lt_prog_compiler_wl=''
8396 ;;
8397 esac
8398 ;;
8399 esac
8400 ;;
8401
8402 newsos6)
8403 lt_prog_compiler_pic='-KPIC'
8404 lt_prog_compiler_static='-Bstatic'
8405 ;;
8406
8407 *nto* | *qnx*)
8408 # QNX uses GNU C++, but need to define -shared option too, otherwise
8409 # it will coredump.
8410 lt_prog_compiler_pic='-fPIC -shared'
8411 ;;
8412
8413 osf3* | osf4* | osf5*)
8414 lt_prog_compiler_wl='-Wl,'
8415 # All OSF/1 code is PIC.
8416 lt_prog_compiler_static='-non_shared'
8417 ;;
8418
8419 rdos*)
8420 lt_prog_compiler_static='-non_shared'
8421 ;;
8422
8423 solaris*)
8424 lt_prog_compiler_pic='-KPIC'
8425 lt_prog_compiler_static='-Bstatic'
8426 case $cc_basename in
8427 f77* | f90* | f95*)
8428 lt_prog_compiler_wl='-Qoption ld ';;
8429 *)
8430 lt_prog_compiler_wl='-Wl,';;
8431 esac
8432 ;;
8433
8434 sunos4*)
8435 lt_prog_compiler_wl='-Qoption ld '
8436 lt_prog_compiler_pic='-PIC'
8437 lt_prog_compiler_static='-Bstatic'
8438 ;;
8439
8440 sysv4 | sysv4.2uw2* | sysv4.3*)
8441 lt_prog_compiler_wl='-Wl,'
8442 lt_prog_compiler_pic='-KPIC'
8443 lt_prog_compiler_static='-Bstatic'
8444 ;;
8445
8446 sysv4*MP*)
8447 if test -d /usr/nec ;then
8448 lt_prog_compiler_pic='-Kconform_pic'
8449 lt_prog_compiler_static='-Bstatic'
8450 fi
8451 ;;
8452
8453 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8454 lt_prog_compiler_wl='-Wl,'
8455 lt_prog_compiler_pic='-KPIC'
8456 lt_prog_compiler_static='-Bstatic'
8457 ;;
8458
8459 unicos*)
8460 lt_prog_compiler_wl='-Wl,'
8461 lt_prog_compiler_can_build_shared=no
8462 ;;
8463
8464 uts4*)
8465 lt_prog_compiler_pic='-pic'
8466 lt_prog_compiler_static='-Bstatic'
8467 ;;
8468
8469 *)
8470 lt_prog_compiler_can_build_shared=no
8471 ;;
8472 esac
8473 fi
8474
8475case $host_os in
8476 # For platforms which do not support PIC, -DPIC is meaningless:
8477 *djgpp*)
8478 lt_prog_compiler_pic=
8479 ;;
8480 *)
8481 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8482 ;;
8483esac
8484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8485$as_echo "$lt_prog_compiler_pic" >&6; }
8486
8487
8488
8489
8490
8491
8492#
8493# Check to make sure the PIC flag actually works.
8494#
8495if test -n "$lt_prog_compiler_pic"; then
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8497$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8498if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8499 $as_echo_n "(cached) " >&6
8500else
8501 lt_cv_prog_compiler_pic_works=no
8502 ac_outfile=conftest.$ac_objext
8503 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8504 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8505 # Insert the option either (1) after the last *FLAGS variable, or
8506 # (2) before a word containing "conftest.", or (3) at the end.
8507 # Note that $ac_compile itself does not contain backslashes and begins
8508 # with a dollar sign (not a hyphen), so the echo should work correctly.
8509 # The option is referenced via a variable to avoid confusing sed.
8510 lt_compile=`echo "$ac_compile" | $SED \
8511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8513 -e 's:$: $lt_compiler_flag:'`
8514 (eval echo "\"\$as_me:8514: $lt_compile\"" >&5)
8515 (eval "$lt_compile" 2>conftest.err)
8516 ac_status=$?
8517 cat conftest.err >&5
8518 echo "$as_me:8518: \$? = $ac_status" >&5
8519 if (exit $ac_status) && test -s "$ac_outfile"; then
8520 # The compiler can only warn and ignore the option if not recognized
8521 # So say no if there are warnings other than the usual output.
8522 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8524 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8525 lt_cv_prog_compiler_pic_works=yes
8526 fi
8527 fi
8528 $RM conftest*
8529
8530fi
8531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8532$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8533
8534if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8535 case $lt_prog_compiler_pic in
8536 "" | " "*) ;;
8537 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8538 esac
8539else
8540 lt_prog_compiler_pic=
8541 lt_prog_compiler_can_build_shared=no
8542fi
8543
8544fi
8545
8546
8547
8548
8549
8550
8551#
8552# Check to make sure the static flag actually works.
8553#
8554wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8556$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8557if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8558 $as_echo_n "(cached) " >&6
8559else
8560 lt_cv_prog_compiler_static_works=no
8561 save_LDFLAGS="$LDFLAGS"
8562 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8563 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8564 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8565 # The linker can only warn and ignore the option if not recognized
8566 # So say no if there are warnings
8567 if test -s conftest.err; then
8568 # Append any errors to the config.log.
8569 cat conftest.err 1>&5
8570 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8571 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8572 if diff conftest.exp conftest.er2 >/dev/null; then
8573 lt_cv_prog_compiler_static_works=yes
8574 fi
8575 else
8576 lt_cv_prog_compiler_static_works=yes
8577 fi
8578 fi
8579 $RM -r conftest*
8580 LDFLAGS="$save_LDFLAGS"
8581
8582fi
8583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8584$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8585
8586if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8587 :
8588else
8589 lt_prog_compiler_static=
8590fi
8591
8592
8593
8594
8595
8596
8597
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8599$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8600if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8601 $as_echo_n "(cached) " >&6
8602else
8603 lt_cv_prog_compiler_c_o=no
8604 $RM -r conftest 2>/dev/null
8605 mkdir conftest
8606 cd conftest
8607 mkdir out
8608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8609
8610 lt_compiler_flag="-o out/conftest2.$ac_objext"
8611 # Insert the option either (1) after the last *FLAGS variable, or
8612 # (2) before a word containing "conftest.", or (3) at the end.
8613 # Note that $ac_compile itself does not contain backslashes and begins
8614 # with a dollar sign (not a hyphen), so the echo should work correctly.
8615 lt_compile=`echo "$ac_compile" | $SED \
8616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8618 -e 's:$: $lt_compiler_flag:'`
8619 (eval echo "\"\$as_me:8619: $lt_compile\"" >&5)
8620 (eval "$lt_compile" 2>out/conftest.err)
8621 ac_status=$?
8622 cat out/conftest.err >&5
8623 echo "$as_me:8623: \$? = $ac_status" >&5
8624 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8625 then
8626 # The compiler can only warn and ignore the option if not recognized
8627 # So say no if there are warnings
8628 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8629 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8630 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8631 lt_cv_prog_compiler_c_o=yes
8632 fi
8633 fi
8634 chmod u+w . 2>&5
8635 $RM conftest*
8636 # SGI C++ compiler will create directory out/ii_files/ for
8637 # template instantiation
8638 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8639 $RM out/* && rmdir out
8640 cd ..
8641 $RM -r conftest
8642 $RM conftest*
8643
8644fi
8645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8646$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8647
8648
8649
8650
8651
8652
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8654$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8655if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8656 $as_echo_n "(cached) " >&6
8657else
8658 lt_cv_prog_compiler_c_o=no
8659 $RM -r conftest 2>/dev/null
8660 mkdir conftest
8661 cd conftest
8662 mkdir out
8663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8664
8665 lt_compiler_flag="-o out/conftest2.$ac_objext"
8666 # Insert the option either (1) after the last *FLAGS variable, or
8667 # (2) before a word containing "conftest.", or (3) at the end.
8668 # Note that $ac_compile itself does not contain backslashes and begins
8669 # with a dollar sign (not a hyphen), so the echo should work correctly.
8670 lt_compile=`echo "$ac_compile" | $SED \
8671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8672 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8673 -e 's:$: $lt_compiler_flag:'`
8674 (eval echo "\"\$as_me:8674: $lt_compile\"" >&5)
8675 (eval "$lt_compile" 2>out/conftest.err)
8676 ac_status=$?
8677 cat out/conftest.err >&5
8678 echo "$as_me:8678: \$? = $ac_status" >&5
8679 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8680 then
8681 # The compiler can only warn and ignore the option if not recognized
8682 # So say no if there are warnings
8683 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8684 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8685 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8686 lt_cv_prog_compiler_c_o=yes
8687 fi
8688 fi
8689 chmod u+w . 2>&5
8690 $RM conftest*
8691 # SGI C++ compiler will create directory out/ii_files/ for
8692 # template instantiation
8693 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8694 $RM out/* && rmdir out
8695 cd ..
8696 $RM -r conftest
8697 $RM conftest*
8698
8699fi
8700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8701$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8702
8703
8704
8705
8706hard_links="nottested"
8707if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8708 # do not overwrite the value of need_locks provided by the user
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8710$as_echo_n "checking if we can lock with hard links... " >&6; }
8711 hard_links=yes
8712 $RM conftest*
8713 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8714 touch conftest.a
8715 ln conftest.a conftest.b 2>&5 || hard_links=no
8716 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8718$as_echo "$hard_links" >&6; }
8719 if test "$hard_links" = no; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8721$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8722 need_locks=warn
8723 fi
8724else
8725 need_locks=no
8726fi
8727
8728
8729
8730
8731
8732
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8734$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8735
8736 runpath_var=
8737 allow_undefined_flag=
8738 always_export_symbols=no
8739 archive_cmds=
8740 archive_expsym_cmds=
8741 compiler_needs_object=no
8742 enable_shared_with_static_runtimes=no
8743 export_dynamic_flag_spec=
8744 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8745 hardcode_automatic=no
8746 hardcode_direct=no
8747 hardcode_direct_absolute=no
8748 hardcode_libdir_flag_spec=
8749 hardcode_libdir_flag_spec_ld=
8750 hardcode_libdir_separator=
8751 hardcode_minus_L=no
8752 hardcode_shlibpath_var=unsupported
8753 inherit_rpath=no
8754 link_all_deplibs=unknown
8755 module_cmds=
8756 module_expsym_cmds=
8757 old_archive_from_new_cmds=
8758 old_archive_from_expsyms_cmds=
8759 thread_safe_flag_spec=
8760 whole_archive_flag_spec=
8761 # include_expsyms should be a list of space-separated symbols to be *always*
8762 # included in the symbol list
8763 include_expsyms=
8764 # exclude_expsyms can be an extended regexp of symbols to exclude
8765 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8766 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8767 # as well as any symbol that contains `d'.
8768 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8769 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8770 # platforms (ab)use it in PIC code, but their linkers get confused if
8771 # the symbol is explicitly referenced. Since portable code cannot
8772 # rely on this symbol name, it's probably fine to never include it in
8773 # preloaded symbol tables.
8774 # Exclude shared library initialization/finalization symbols.
8775 extract_expsyms_cmds=
8776
8777 case $host_os in
8778 cygwin* | mingw* | pw32* | cegcc*)
8779 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8780 # When not using gcc, we currently assume that we are using
8781 # Microsoft Visual C++.
8782 if test "$GCC" != yes; then
8783 with_gnu_ld=no
8784 fi
8785 ;;
8786 interix*)
8787 # we just hope/assume this is gcc and not c89 (= MSVC++)
8788 with_gnu_ld=yes
8789 ;;
8790 openbsd*)
8791 with_gnu_ld=no
8792 ;;
8793 esac
8794
8795 ld_shlibs=yes
8796 if test "$with_gnu_ld" = yes; then
8797 # If archive_cmds runs LD, not CC, wlarc should be empty
8798 wlarc='${wl}'
8799
8800 # Set some defaults for GNU ld with shared library support. These
8801 # are reset later if shared libraries are not supported. Putting them
8802 # here allows them to be overridden if necessary.
8803 runpath_var=LD_RUN_PATH
8804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8805 export_dynamic_flag_spec='${wl}--export-dynamic'
8806 # ancient GNU ld didn't support --whole-archive et. al.
8807 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8808 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8809 else
8810 whole_archive_flag_spec=
8811 fi
8812 supports_anon_versioning=no
8813 case `$LD -v 2>&1` in
8814 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8815 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8816 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8817 *\ 2.11.*) ;; # other 2.11 versions
8818 *) supports_anon_versioning=yes ;;
8819 esac
8820
8821 # See if GNU ld supports shared libraries.
8822 case $host_os in
8823 aix[3-9]*)
8824 # On AIX/PPC, the GNU linker is very broken
8825 if test "$host_cpu" != ia64; then
8826 ld_shlibs=no
8827 cat <<_LT_EOF 1>&2
8828
8829*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8830*** to be unable to reliably create shared libraries on AIX.
8831*** Therefore, libtool is disabling shared libraries support. If you
8832*** really care for shared libraries, you may want to modify your PATH
8833*** so that a non-GNU linker is found, and then restart.
8834
8835_LT_EOF
8836 fi
8837 ;;
8838
8839 amigaos*)
8840 case $host_cpu in
8841 powerpc)
8842 # see comment about AmigaOS4 .so support
8843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8844 archive_expsym_cmds=''
8845 ;;
8846 m68k)
8847 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)'
8848 hardcode_libdir_flag_spec='-L$libdir'
8849 hardcode_minus_L=yes
8850 ;;
8851 esac
8852 ;;
8853
8854 beos*)
8855 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8856 allow_undefined_flag=unsupported
8857 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8858 # support --undefined. This deserves some investigation. FIXME
8859 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8860 else
8861 ld_shlibs=no
8862 fi
8863 ;;
8864
8865 cygwin* | mingw* | pw32* | cegcc*)
8866 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8867 # as there is no search path for DLLs.
8868 hardcode_libdir_flag_spec='-L$libdir'
8869 allow_undefined_flag=unsupported
8870 always_export_symbols=no
8871 enable_shared_with_static_runtimes=yes
8872 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8873
8874 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8875 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8876 # If the export-symbols file already is a .def file (1st line
8877 # is EXPORTS), use it as is; otherwise, prepend...
8878 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8879 cp $export_symbols $output_objdir/$soname.def;
8880 else
8881 echo EXPORTS > $output_objdir/$soname.def;
8882 cat $export_symbols >> $output_objdir/$soname.def;
8883 fi~
8884 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8885 else
8886 ld_shlibs=no
8887 fi
8888 ;;
8889
8890 interix[3-9]*)
8891 hardcode_direct=no
8892 hardcode_shlibpath_var=no
8893 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8894 export_dynamic_flag_spec='${wl}-E'
8895 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8896 # Instead, shared libraries are loaded at an image base (0x10000000 by
8897 # default) and relocated if they conflict, which is a slow very memory
8898 # consuming and fragmenting process. To avoid this, we pick a random,
8899 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8900 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8901 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8902 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'
8903 ;;
8904
8905 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8906 tmp_diet=no
8907 if test "$host_os" = linux-dietlibc; then
8908 case $cc_basename in
8909 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8910 esac
8911 fi
8912 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8913 && test "$tmp_diet" = no
8914 then
8915 tmp_addflag=
8916 tmp_sharedflag='-shared'
8917 case $cc_basename,$host_cpu in
8918 pgcc*) # Portland Group C compiler
8919 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'
8920 tmp_addflag=' $pic_flag'
8921 ;;
8922 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8923 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'
8924 tmp_addflag=' $pic_flag -Mnomain' ;;
8925 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8926 tmp_addflag=' -i_dynamic' ;;
8927 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8928 tmp_addflag=' -i_dynamic -nofor_main' ;;
8929 ifc* | ifort*) # Intel Fortran compiler
8930 tmp_addflag=' -nofor_main' ;;
8931 lf95*) # Lahey Fortran 8.1
8932 whole_archive_flag_spec=
8933 tmp_sharedflag='--shared' ;;
8934 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8935 tmp_sharedflag='-qmkshrobj'
8936 tmp_addflag= ;;
8937 esac
8938 case `$CC -V 2>&1 | sed 5q` in
8939 *Sun\ C*) # Sun C 5.9
8940 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'
8941 compiler_needs_object=yes
8942 tmp_sharedflag='-G' ;;
8943 *Sun\ F*) # Sun Fortran 8.3
8944 tmp_sharedflag='-G' ;;
8945 esac
8946 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8947
8948 if test "x$supports_anon_versioning" = xyes; then
8949 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8950 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8951 echo "local: *; };" >> $output_objdir/$libname.ver~
8952 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8953 fi
8954
8955 case $cc_basename in
8956 xlf*)
8957 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8958 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8959 hardcode_libdir_flag_spec=
8960 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8961 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8962 if test "x$supports_anon_versioning" = xyes; then
8963 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8964 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8965 echo "local: *; };" >> $output_objdir/$libname.ver~
8966 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8967 fi
8968 ;;
8969 esac
8970 else
8971 ld_shlibs=no
8972 fi
8973 ;;
8974
8975 netbsd*)
8976 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8977 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8978 wlarc=
8979 else
8980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8981 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8982 fi
8983 ;;
8984
8985 solaris*)
8986 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8987 ld_shlibs=no
8988 cat <<_LT_EOF 1>&2
8989
8990*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8991*** create shared libraries on Solaris systems. Therefore, libtool
8992*** is disabling shared libraries support. We urge you to upgrade GNU
8993*** binutils to release 2.9.1 or newer. Another option is to modify
8994*** your PATH or compiler configuration so that the native linker is
8995*** used, and then restart.
8996
8997_LT_EOF
8998 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9000 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9001 else
9002 ld_shlibs=no
9003 fi
9004 ;;
9005
9006 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9007 case `$LD -v 2>&1` in
9008 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9009 ld_shlibs=no
9010 cat <<_LT_EOF 1>&2
9011
9012*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9013*** reliably create shared libraries on SCO systems. Therefore, libtool
9014*** is disabling shared libraries support. We urge you to upgrade GNU
9015*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9016*** your PATH or compiler configuration so that the native linker is
9017*** used, and then restart.
9018
9019_LT_EOF
9020 ;;
9021 *)
9022 # For security reasons, it is highly recommended that you always
9023 # use absolute paths for naming shared libraries, and exclude the
9024 # DT_RUNPATH tag from executables and libraries. But doing so
9025 # requires that you compile everything twice, which is a pain.
9026 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9027 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9029 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9030 else
9031 ld_shlibs=no
9032 fi
9033 ;;
9034 esac
9035 ;;
9036
9037 sunos4*)
9038 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9039 wlarc=
9040 hardcode_direct=yes
9041 hardcode_shlibpath_var=no
9042 ;;
9043
9044 *)
9045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9047 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9048 else
9049 ld_shlibs=no
9050 fi
9051 ;;
9052 esac
9053
9054 if test "$ld_shlibs" = no; then
9055 runpath_var=
9056 hardcode_libdir_flag_spec=
9057 export_dynamic_flag_spec=
9058 whole_archive_flag_spec=
9059 fi
9060 else
9061 # PORTME fill in a description of your system's linker (not GNU ld)
9062 case $host_os in
9063 aix3*)
9064 allow_undefined_flag=unsupported
9065 always_export_symbols=yes
9066 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'
9067 # Note: this linker hardcodes the directories in LIBPATH if there
9068 # are no directories specified by -L.
9069 hardcode_minus_L=yes
9070 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9071 # Neither direct hardcoding nor static linking is supported with a
9072 # broken collect2.
9073 hardcode_direct=unsupported
9074 fi
9075 ;;
9076
9077 aix[4-9]*)
9078 if test "$host_cpu" = ia64; then
9079 # On IA64, the linker does run time linking by default, so we don't
9080 # have to do anything special.
9081 aix_use_runtimelinking=no
9082 exp_sym_flag='-Bexport'
9083 no_entry_flag=""
9084 else
9085 # If we're using GNU nm, then we don't want the "-C" option.
9086 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9087 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9088 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'
9089 else
9090 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'
9091 fi
9092 aix_use_runtimelinking=no
9093
9094 # Test if we are trying to use run time linking or normal
9095 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9096 # need to do runtime linking.
9097 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9098 for ld_flag in $LDFLAGS; do
9099 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9100 aix_use_runtimelinking=yes
9101 break
9102 fi
9103 done
9104 ;;
9105 esac
9106
9107 exp_sym_flag='-bexport'
9108 no_entry_flag='-bnoentry'
9109 fi
9110
9111 # When large executables or shared objects are built, AIX ld can
9112 # have problems creating the table of contents. If linking a library
9113 # or program results in "error TOC overflow" add -mminimal-toc to
9114 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9115 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9116
9117 archive_cmds=''
9118 hardcode_direct=yes
9119 hardcode_direct_absolute=yes
9120 hardcode_libdir_separator=':'
9121 link_all_deplibs=yes
9122 file_list_spec='${wl}-f,'
9123
9124 if test "$GCC" = yes; then
9125 case $host_os in aix4.[012]|aix4.[012].*)
9126 # We only want to do this on AIX 4.2 and lower, the check
9127 # below for broken collect2 doesn't work under 4.3+
9128 collect2name=`${CC} -print-prog-name=collect2`
9129 if test -f "$collect2name" &&
9130 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9131 then
9132 # We have reworked collect2
9133 :
9134 else
9135 # We have old collect2
9136 hardcode_direct=unsupported
9137 # It fails to find uninstalled libraries when the uninstalled
9138 # path is not listed in the libpath. Setting hardcode_minus_L
9139 # to unsupported forces relinking
9140 hardcode_minus_L=yes
9141 hardcode_libdir_flag_spec='-L$libdir'
9142 hardcode_libdir_separator=
9143 fi
9144 ;;
9145 esac
9146 shared_flag='-shared'
9147 if test "$aix_use_runtimelinking" = yes; then
9148 shared_flag="$shared_flag "'${wl}-G'
9149 fi
9150 else
9151 # not using gcc
9152 if test "$host_cpu" = ia64; then
9153 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9154 # chokes on -Wl,-G. The following line is correct:
9155 shared_flag='-G'
9156 else
9157 if test "$aix_use_runtimelinking" = yes; then
9158 shared_flag='${wl}-G'
9159 else
9160 shared_flag='${wl}-bM:SRE'
9161 fi
9162 fi
9163 fi
9164
9165 export_dynamic_flag_spec='${wl}-bexpall'
9166 # It seems that -bexpall does not export symbols beginning with
9167 # underscore (_), so it is better to generate a list of symbols to export.
9168 always_export_symbols=yes
9169 if test "$aix_use_runtimelinking" = yes; then
9170 # Warning - without using the other runtime loading flags (-brtl),
9171 # -berok will link without error, but may produce a broken library.
9172 allow_undefined_flag='-berok'
9173 # Determine the default libpath from the value encoded in an
9174 # empty executable.
9175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176/* end confdefs.h. */
9177
9178int
9179main ()
9180{
9181
9182 ;
9183 return 0;
9184}
9185_ACEOF
9186if ac_fn_c_try_link "$LINENO"; then :
9187
9188lt_aix_libpath_sed='
9189 /Import File Strings/,/^$/ {
9190 /^0/ {
9191 s/^0 *\(.*\)$/\1/
9192 p
9193 }
9194 }'
9195aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9196# Check for a 64-bit object if we didn't find anything.
9197if test -z "$aix_libpath"; then
9198 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9199fi
9200fi
9201rm -f core conftest.err conftest.$ac_objext \
9202 conftest$ac_exeext conftest.$ac_ext
9203if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9204
9205 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9206 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"
9207 else
9208 if test "$host_cpu" = ia64; then
9209 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9210 allow_undefined_flag="-z nodefs"
9211 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"
9212 else
9213 # Determine the default libpath from the value encoded in an
9214 # empty executable.
9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216/* end confdefs.h. */
9217
9218int
9219main ()
9220{
9221
9222 ;
9223 return 0;
9224}
9225_ACEOF
9226if ac_fn_c_try_link "$LINENO"; then :
9227
9228lt_aix_libpath_sed='
9229 /Import File Strings/,/^$/ {
9230 /^0/ {
9231 s/^0 *\(.*\)$/\1/
9232 p
9233 }
9234 }'
9235aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9236# Check for a 64-bit object if we didn't find anything.
9237if test -z "$aix_libpath"; then
9238 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9239fi
9240fi
9241rm -f core conftest.err conftest.$ac_objext \
9242 conftest$ac_exeext conftest.$ac_ext
9243if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9244
9245 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9246 # Warning - without using the other run time loading flags,
9247 # -berok will link without error, but may produce a broken library.
9248 no_undefined_flag=' ${wl}-bernotok'
9249 allow_undefined_flag=' ${wl}-berok'
9250 # Exported symbols can be pulled into shared objects from archives
9251 whole_archive_flag_spec='$convenience'
9252 archive_cmds_need_lc=yes
9253 # This is similar to how AIX traditionally builds its shared libraries.
9254 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'
9255 fi
9256 fi
9257 ;;
9258
9259 amigaos*)
9260 case $host_cpu in
9261 powerpc)
9262 # see comment about AmigaOS4 .so support
9263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9264 archive_expsym_cmds=''
9265 ;;
9266 m68k)
9267 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)'
9268 hardcode_libdir_flag_spec='-L$libdir'
9269 hardcode_minus_L=yes
9270 ;;
9271 esac
9272 ;;
9273
9274 bsdi[45]*)
9275 export_dynamic_flag_spec=-rdynamic
9276 ;;
9277
9278 cygwin* | mingw* | pw32* | cegcc*)
9279 # When not using gcc, we currently assume that we are using
9280 # Microsoft Visual C++.
9281 # hardcode_libdir_flag_spec is actually meaningless, as there is
9282 # no search path for DLLs.
9283 hardcode_libdir_flag_spec=' '
9284 allow_undefined_flag=unsupported
9285 # Tell ltmain to make .lib files, not .a files.
9286 libext=lib
9287 # Tell ltmain to make .dll files, not .so files.
9288 shrext_cmds=".dll"
9289 # FIXME: Setting linknames here is a bad hack.
9290 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9291 # The linker will automatically build a .lib file if we build a DLL.
9292 old_archive_from_new_cmds='true'
9293 # FIXME: Should let the user specify the lib program.
9294 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9295 fix_srcfile_path='`cygpath -w "$srcfile"`'
9296 enable_shared_with_static_runtimes=yes
9297 ;;
9298
9299 darwin* | rhapsody*)
9300
9301
9302 archive_cmds_need_lc=no
9303 hardcode_direct=no
9304 hardcode_automatic=yes
9305 hardcode_shlibpath_var=unsupported
9306 whole_archive_flag_spec=''
9307 link_all_deplibs=yes
9308 allow_undefined_flag="$_lt_dar_allow_undefined"
9309 case $cc_basename in
9310 ifort*) _lt_dar_can_shared=yes ;;
9311 *) _lt_dar_can_shared=$GCC ;;
9312 esac
9313 if test "$_lt_dar_can_shared" = "yes"; then
9314 output_verbose_link_cmd=echo
9315 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9316 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9317 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}"
9318 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}"
9319
9320 else
9321 ld_shlibs=no
9322 fi
9323
9324 ;;
9325
9326 dgux*)
9327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9328 hardcode_libdir_flag_spec='-L$libdir'
9329 hardcode_shlibpath_var=no
9330 ;;
9331
9332 freebsd1*)
9333 ld_shlibs=no
9334 ;;
9335
9336 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9337 # support. Future versions do this automatically, but an explicit c++rt0.o
9338 # does not break anything, and helps significantly (at the cost of a little
9339 # extra space).
9340 freebsd2.2*)
9341 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9342 hardcode_libdir_flag_spec='-R$libdir'
9343 hardcode_direct=yes
9344 hardcode_shlibpath_var=no
9345 ;;
9346
9347 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9348 freebsd2*)
9349 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9350 hardcode_direct=yes
9351 hardcode_minus_L=yes
9352 hardcode_shlibpath_var=no
9353 ;;
9354
9355 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9356 freebsd* | dragonfly*)
9357 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9358 hardcode_libdir_flag_spec='-R$libdir'
9359 hardcode_direct=yes
9360 hardcode_shlibpath_var=no
9361 ;;
9362
9363 hpux9*)
9364 if test "$GCC" = yes; then
9365 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'
9366 else
9367 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'
9368 fi
9369 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9370 hardcode_libdir_separator=:
9371 hardcode_direct=yes
9372
9373 # hardcode_minus_L: Not really in the search PATH,
9374 # but as the default location of the library.
9375 hardcode_minus_L=yes
9376 export_dynamic_flag_spec='${wl}-E'
9377 ;;
9378
9379 hpux10*)
9380 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9381 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9382 else
9383 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9384 fi
9385 if test "$with_gnu_ld" = no; then
9386 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9387 hardcode_libdir_flag_spec_ld='+b $libdir'
9388 hardcode_libdir_separator=:
9389 hardcode_direct=yes
9390 hardcode_direct_absolute=yes
9391 export_dynamic_flag_spec='${wl}-E'
9392 # hardcode_minus_L: Not really in the search PATH,
9393 # but as the default location of the library.
9394 hardcode_minus_L=yes
9395 fi
9396 ;;
9397
9398 hpux11*)
9399 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9400 case $host_cpu in
9401 hppa*64*)
9402 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9403 ;;
9404 ia64*)
9405 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9406 ;;
9407 *)
9408 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9409 ;;
9410 esac
9411 else
9412 case $host_cpu in
9413 hppa*64*)
9414 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9415 ;;
9416 ia64*)
9417 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9418 ;;
9419 *)
9420 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9421 ;;
9422 esac
9423 fi
9424 if test "$with_gnu_ld" = no; then
9425 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9426 hardcode_libdir_separator=:
9427
9428 case $host_cpu in
9429 hppa*64*|ia64*)
9430 hardcode_direct=no
9431 hardcode_shlibpath_var=no
9432 ;;
9433 *)
9434 hardcode_direct=yes
9435 hardcode_direct_absolute=yes
9436 export_dynamic_flag_spec='${wl}-E'
9437
9438 # hardcode_minus_L: Not really in the search PATH,
9439 # but as the default location of the library.
9440 hardcode_minus_L=yes
9441 ;;
9442 esac
9443 fi
9444 ;;
9445
9446 irix5* | irix6* | nonstopux*)
9447 if test "$GCC" = yes; then
9448 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'
9449 # Try to use the -exported_symbol ld option, if it does not
9450 # work, assume that -exports_file does not work either and
9451 # implicitly export all symbols.
9452 save_LDFLAGS="$LDFLAGS"
9453 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455/* end confdefs.h. */
9456int foo(void) {}
9457_ACEOF
9458if ac_fn_c_try_link "$LINENO"; then :
9459 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'
9460
9461fi
9462rm -f core conftest.err conftest.$ac_objext \
9463 conftest$ac_exeext conftest.$ac_ext
9464 LDFLAGS="$save_LDFLAGS"
9465 else
9466 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'
9467 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'
9468 fi
9469 archive_cmds_need_lc='no'
9470 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9471 hardcode_libdir_separator=:
9472 inherit_rpath=yes
9473 link_all_deplibs=yes
9474 ;;
9475
9476 netbsd*)
9477 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9478 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9479 else
9480 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9481 fi
9482 hardcode_libdir_flag_spec='-R$libdir'
9483 hardcode_direct=yes
9484 hardcode_shlibpath_var=no
9485 ;;
9486
9487 newsos6)
9488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9489 hardcode_direct=yes
9490 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9491 hardcode_libdir_separator=:
9492 hardcode_shlibpath_var=no
9493 ;;
9494
9495 *nto* | *qnx*)
9496 ;;
9497
9498 openbsd*)
9499 if test -f /usr/libexec/ld.so; then
9500 hardcode_direct=yes
9501 hardcode_shlibpath_var=no
9502 hardcode_direct_absolute=yes
9503 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9504 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9505 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9506 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9507 export_dynamic_flag_spec='${wl}-E'
9508 else
9509 case $host_os in
9510 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9511 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9512 hardcode_libdir_flag_spec='-R$libdir'
9513 ;;
9514 *)
9515 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9516 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9517 ;;
9518 esac
9519 fi
9520 else
9521 ld_shlibs=no
9522 fi
9523 ;;
9524
9525 os2*)
9526 hardcode_libdir_flag_spec='-L$libdir'
9527 hardcode_minus_L=yes
9528 allow_undefined_flag=unsupported
9529 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'
9530 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9531 ;;
9532
9533 osf3*)
9534 if test "$GCC" = yes; then
9535 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9536 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'
9537 else
9538 allow_undefined_flag=' -expect_unresolved \*'
9539 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'
9540 fi
9541 archive_cmds_need_lc='no'
9542 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9543 hardcode_libdir_separator=:
9544 ;;
9545
9546 osf4* | osf5*) # as osf3* with the addition of -msym flag
9547 if test "$GCC" = yes; then
9548 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9549 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'
9550 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9551 else
9552 allow_undefined_flag=' -expect_unresolved \*'
9553 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'
9554 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~
9555 $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'
9556
9557 # Both c and cxx compiler support -rpath directly
9558 hardcode_libdir_flag_spec='-rpath $libdir'
9559 fi
9560 archive_cmds_need_lc='no'
9561 hardcode_libdir_separator=:
9562 ;;
9563
9564 solaris*)
9565 no_undefined_flag=' -z defs'
9566 if test "$GCC" = yes; then
9567 wlarc='${wl}'
9568 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9569 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9570 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9571 else
9572 case `$CC -V 2>&1` in
9573 *"Compilers 5.0"*)
9574 wlarc=''
9575 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9576 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9577 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9578 ;;
9579 *)
9580 wlarc='${wl}'
9581 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9582 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9583 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9584 ;;
9585 esac
9586 fi
9587 hardcode_libdir_flag_spec='-R$libdir'
9588 hardcode_shlibpath_var=no
9589 case $host_os in
9590 solaris2.[0-5] | solaris2.[0-5].*) ;;
9591 *)
9592 # The compiler driver will combine and reorder linker options,
9593 # but understands `-z linker_flag'. GCC discards it without `$wl',
9594 # but is careful enough not to reorder.
9595 # Supported since Solaris 2.6 (maybe 2.5.1?)
9596 if test "$GCC" = yes; then
9597 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9598 else
9599 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9600 fi
9601 ;;
9602 esac
9603 link_all_deplibs=yes
9604 ;;
9605
9606 sunos4*)
9607 if test "x$host_vendor" = xsequent; then
9608 # Use $CC to link under sequent, because it throws in some extra .o
9609 # files that make .init and .fini sections work.
9610 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9611 else
9612 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9613 fi
9614 hardcode_libdir_flag_spec='-L$libdir'
9615 hardcode_direct=yes
9616 hardcode_minus_L=yes
9617 hardcode_shlibpath_var=no
9618 ;;
9619
9620 sysv4)
9621 case $host_vendor in
9622 sni)
9623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9624 hardcode_direct=yes # is this really true???
9625 ;;
9626 siemens)
9627 ## LD is ld it makes a PLAMLIB
9628 ## CC just makes a GrossModule.
9629 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9630 reload_cmds='$CC -r -o $output$reload_objs'
9631 hardcode_direct=no
9632 ;;
9633 motorola)
9634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9635 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9636 ;;
9637 esac
9638 runpath_var='LD_RUN_PATH'
9639 hardcode_shlibpath_var=no
9640 ;;
9641
9642 sysv4.3*)
9643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9644 hardcode_shlibpath_var=no
9645 export_dynamic_flag_spec='-Bexport'
9646 ;;
9647
9648 sysv4*MP*)
9649 if test -d /usr/nec; then
9650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9651 hardcode_shlibpath_var=no
9652 runpath_var=LD_RUN_PATH
9653 hardcode_runpath_var=yes
9654 ld_shlibs=yes
9655 fi
9656 ;;
9657
9658 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9659 no_undefined_flag='${wl}-z,text'
9660 archive_cmds_need_lc=no
9661 hardcode_shlibpath_var=no
9662 runpath_var='LD_RUN_PATH'
9663
9664 if test "$GCC" = yes; then
9665 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9666 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9667 else
9668 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9669 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9670 fi
9671 ;;
9672
9673 sysv5* | sco3.2v5* | sco5v6*)
9674 # Note: We can NOT use -z defs as we might desire, because we do not
9675 # link with -lc, and that would cause any symbols used from libc to
9676 # always be unresolved, which means just about no library would
9677 # ever link correctly. If we're not using GNU ld we use -z text
9678 # though, which does catch some bad symbols but isn't as heavy-handed
9679 # as -z defs.
9680 no_undefined_flag='${wl}-z,text'
9681 allow_undefined_flag='${wl}-z,nodefs'
9682 archive_cmds_need_lc=no
9683 hardcode_shlibpath_var=no
9684 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9685 hardcode_libdir_separator=':'
9686 link_all_deplibs=yes
9687 export_dynamic_flag_spec='${wl}-Bexport'
9688 runpath_var='LD_RUN_PATH'
9689
9690 if test "$GCC" = yes; then
9691 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9692 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9693 else
9694 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9695 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9696 fi
9697 ;;
9698
9699 uts4*)
9700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9701 hardcode_libdir_flag_spec='-L$libdir'
9702 hardcode_shlibpath_var=no
9703 ;;
9704
9705 *)
9706 ld_shlibs=no
9707 ;;
9708 esac
9709
9710 if test x$host_vendor = xsni; then
9711 case $host in
9712 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9713 export_dynamic_flag_spec='${wl}-Blargedynsym'
9714 ;;
9715 esac
9716 fi
9717 fi
9718
9719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9720$as_echo "$ld_shlibs" >&6; }
9721test "$ld_shlibs" = no && can_build_shared=no
9722
9723with_gnu_ld=$with_gnu_ld
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739#
9740# Do we need to explicitly link libc?
9741#
9742case "x$archive_cmds_need_lc" in
9743x|xyes)
9744 # Assume -lc should be added
9745 archive_cmds_need_lc=yes
9746
9747 if test "$enable_shared" = yes && test "$GCC" = yes; then
9748 case $archive_cmds in
9749 *'~'*)
9750 # FIXME: we may have to deal with multi-command sequences.
9751 ;;
9752 '$CC '*)
9753 # Test whether the compiler implicitly links with -lc since on some
9754 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9755 # to ld, don't add -lc before -lgcc.
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9757$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9758if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9759 $as_echo_n "(cached) " >&6
9760else
9761 $RM conftest*
9762 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9763
9764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9765 (eval $ac_compile) 2>&5
9766 ac_status=$?
9767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9768 test $ac_status = 0; } 2>conftest.err; then
9769 soname=conftest
9770 lib=conftest
9771 libobjs=conftest.$ac_objext
9772 deplibs=
9773 wl=$lt_prog_compiler_wl
9774 pic_flag=$lt_prog_compiler_pic
9775 compiler_flags=-v
9776 linker_flags=-v
9777 verstring=
9778 output_objdir=.
9779 libname=conftest
9780 lt_save_allow_undefined_flag=$allow_undefined_flag
9781 allow_undefined_flag=
9782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9783 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9784 ac_status=$?
9785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9786 test $ac_status = 0; }
9787 then
9788 lt_cv_archive_cmds_need_lc=no
9789 else
9790 lt_cv_archive_cmds_need_lc=yes
9791 fi
9792 allow_undefined_flag=$lt_save_allow_undefined_flag
9793 else
9794 cat conftest.err 1>&5
9795 fi
9796 $RM conftest*
9797
9798fi
9799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9800$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9801 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9802 ;;
9803 esac
9804 fi
9805 ;;
9806esac
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
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9965$as_echo_n "checking dynamic linker characteristics... " >&6; }
9966
9967if test "$GCC" = yes; then
9968 case $host_os in
9969 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9970 *) lt_awk_arg="/^libraries:/" ;;
9971 esac
9972 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9973 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9974 # if the path contains ";" then we assume it to be the separator
9975 # otherwise default to the standard path separator (i.e. ":") - it is
9976 # assumed that no part of a normal pathname contains ";" but that should
9977 # okay in the real world where ";" in dirpaths is itself problematic.
9978 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9979 else
9980 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9981 fi
9982 # Ok, now we have the path, separated by spaces, we can step through it
9983 # and add multilib dir if necessary.
9984 lt_tmp_lt_search_path_spec=
9985 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9986 for lt_sys_path in $lt_search_path_spec; do
9987 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9988 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9989 else
9990 test -d "$lt_sys_path" && \
9991 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9992 fi
9993 done
9994 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9995BEGIN {RS=" "; FS="/|\n";} {
9996 lt_foo="";
9997 lt_count=0;
9998 for (lt_i = NF; lt_i > 0; lt_i--) {
9999 if ($lt_i != "" && $lt_i != ".") {
10000 if ($lt_i == "..") {
10001 lt_count++;
10002 } else {
10003 if (lt_count == 0) {
10004 lt_foo="/" $lt_i lt_foo;
10005 } else {
10006 lt_count--;
10007 }
10008 }
10009 }
10010 }
10011 if (lt_foo != "") { lt_freq[lt_foo]++; }
10012 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10013}'`
10014 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10015else
10016 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10017fi
10018library_names_spec=
10019libname_spec='lib$name'
10020soname_spec=
10021shrext_cmds=".so"
10022postinstall_cmds=
10023postuninstall_cmds=
10024finish_cmds=
10025finish_eval=
10026shlibpath_var=
10027shlibpath_overrides_runpath=unknown
10028version_type=none
10029dynamic_linker="$host_os ld.so"
10030sys_lib_dlsearch_path_spec="/lib /usr/lib"
10031need_lib_prefix=unknown
10032hardcode_into_libs=no
10033
10034# when you set need_version to no, make sure it does not cause -set_version
10035# flags to be left without arguments
10036need_version=unknown
10037
10038case $host_os in
10039aix3*)
10040 version_type=linux
10041 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10042 shlibpath_var=LIBPATH
10043
10044 # AIX 3 has no versioning support, so we append a major version to the name.
10045 soname_spec='${libname}${release}${shared_ext}$major'
10046 ;;
10047
10048aix[4-9]*)
10049 version_type=linux
10050 need_lib_prefix=no
10051 need_version=no
10052 hardcode_into_libs=yes
10053 if test "$host_cpu" = ia64; then
10054 # AIX 5 supports IA64
10055 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10056 shlibpath_var=LD_LIBRARY_PATH
10057 else
10058 # With GCC up to 2.95.x, collect2 would create an import file
10059 # for dependence libraries. The import file would start with
10060 # the line `#! .'. This would cause the generated library to
10061 # depend on `.', always an invalid library. This was fixed in
10062 # development snapshots of GCC prior to 3.0.
10063 case $host_os in
10064 aix4 | aix4.[01] | aix4.[01].*)
10065 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10066 echo ' yes '
10067 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10068 :
10069 else
10070 can_build_shared=no
10071 fi
10072 ;;
10073 esac
10074 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10075 # soname into executable. Probably we can add versioning support to
10076 # collect2, so additional links can be useful in future.
10077 if test "$aix_use_runtimelinking" = yes; then
10078 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10079 # instead of lib<name>.a to let people know that these are not
10080 # typical AIX shared libraries.
10081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10082 else
10083 # We preserve .a as extension for shared libraries through AIX4.2
10084 # and later when we are not doing run time linking.
10085 library_names_spec='${libname}${release}.a $libname.a'
10086 soname_spec='${libname}${release}${shared_ext}$major'
10087 fi
10088 shlibpath_var=LIBPATH
10089 fi
10090 ;;
10091
10092amigaos*)
10093 case $host_cpu in
10094 powerpc)
10095 # Since July 2007 AmigaOS4 officially supports .so libraries.
10096 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10098 ;;
10099 m68k)
10100 library_names_spec='$libname.ixlibrary $libname.a'
10101 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10102 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'
10103 ;;
10104 esac
10105 ;;
10106
10107beos*)
10108 library_names_spec='${libname}${shared_ext}'
10109 dynamic_linker="$host_os ld.so"
10110 shlibpath_var=LIBRARY_PATH
10111 ;;
10112
10113bsdi[45]*)
10114 version_type=linux
10115 need_version=no
10116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117 soname_spec='${libname}${release}${shared_ext}$major'
10118 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10119 shlibpath_var=LD_LIBRARY_PATH
10120 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10121 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10122 # the default ld.so.conf also contains /usr/contrib/lib and
10123 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10124 # libtool to hard-code these into programs
10125 ;;
10126
10127cygwin* | mingw* | pw32* | cegcc*)
10128 version_type=windows
10129 shrext_cmds=".dll"
10130 need_version=no
10131 need_lib_prefix=no
10132
10133 case $GCC,$host_os in
10134 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10135 library_names_spec='$libname.dll.a'
10136 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10137 postinstall_cmds='base_file=`basename \${file}`~
10138 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10139 dldir=$destdir/`dirname \$dlpath`~
10140 test -d \$dldir || mkdir -p \$dldir~
10141 $install_prog $dir/$dlname \$dldir/$dlname~
10142 chmod a+x \$dldir/$dlname~
10143 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10144 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10145 fi'
10146 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10147 dlpath=$dir/\$dldll~
10148 $RM \$dlpath'
10149 shlibpath_overrides_runpath=yes
10150
10151 case $host_os in
10152 cygwin*)
10153 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10154 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10155 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10156 ;;
10157 mingw* | cegcc*)
10158 # MinGW DLLs use traditional 'lib' prefix
10159 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10160 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10161 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10162 # It is most probably a Windows format PATH printed by
10163 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10164 # path with ; separators, and with drive letters. We can handle the
10165 # drive letters (cygwin fileutils understands them), so leave them,
10166 # especially as we might pass files found there to a mingw objdump,
10167 # which wouldn't understand a cygwinified path. Ahh.
10168 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10169 else
10170 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10171 fi
10172 ;;
10173 pw32*)
10174 # pw32 DLLs use 'pw' prefix rather than 'lib'
10175 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10176 ;;
10177 esac
10178 ;;
10179
10180 *)
10181 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10182 ;;
10183 esac
10184 dynamic_linker='Win32 ld.exe'
10185 # FIXME: first we should search . and the directory the executable is in
10186 shlibpath_var=PATH
10187 ;;
10188
10189darwin* | rhapsody*)
10190 dynamic_linker="$host_os dyld"
10191 version_type=darwin
10192 need_lib_prefix=no
10193 need_version=no
10194 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10195 soname_spec='${libname}${release}${major}$shared_ext'
10196 shlibpath_overrides_runpath=yes
10197 shlibpath_var=DYLD_LIBRARY_PATH
10198 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10199
10200 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10201 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10202 ;;
10203
10204dgux*)
10205 version_type=linux
10206 need_lib_prefix=no
10207 need_version=no
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10209 soname_spec='${libname}${release}${shared_ext}$major'
10210 shlibpath_var=LD_LIBRARY_PATH
10211 ;;
10212
10213freebsd1*)
10214 dynamic_linker=no
10215 ;;
10216
10217freebsd* | dragonfly*)
10218 # DragonFly does not have aout. When/if they implement a new
10219 # versioning mechanism, adjust this.
10220 if test -x /usr/bin/objformat; then
10221 objformat=`/usr/bin/objformat`
10222 else
10223 case $host_os in
10224 freebsd[123]*) objformat=aout ;;
10225 *) objformat=elf ;;
10226 esac
10227 fi
10228 version_type=freebsd-$objformat
10229 case $version_type in
10230 freebsd-elf*)
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10232 need_version=no
10233 need_lib_prefix=no
10234 ;;
10235 freebsd-*)
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10237 need_version=yes
10238 ;;
10239 esac
10240 shlibpath_var=LD_LIBRARY_PATH
10241 case $host_os in
10242 freebsd2*)
10243 shlibpath_overrides_runpath=yes
10244 ;;
10245 freebsd3.[01]* | freebsdelf3.[01]*)
10246 shlibpath_overrides_runpath=yes
10247 hardcode_into_libs=yes
10248 ;;
10249 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10250 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10251 shlibpath_overrides_runpath=no
10252 hardcode_into_libs=yes
10253 ;;
10254 *) # from 4.6 on, and DragonFly
10255 shlibpath_overrides_runpath=yes
10256 hardcode_into_libs=yes
10257 ;;
10258 esac
10259 ;;
10260
10261gnu*)
10262 version_type=linux
10263 need_lib_prefix=no
10264 need_version=no
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10266 soname_spec='${libname}${release}${shared_ext}$major'
10267 shlibpath_var=LD_LIBRARY_PATH
10268 hardcode_into_libs=yes
10269 ;;
10270
10271hpux9* | hpux10* | hpux11*)
10272 # Give a soname corresponding to the major version so that dld.sl refuses to
10273 # link against other versions.
10274 version_type=sunos
10275 need_lib_prefix=no
10276 need_version=no
10277 case $host_cpu in
10278 ia64*)
10279 shrext_cmds='.so'
10280 hardcode_into_libs=yes
10281 dynamic_linker="$host_os dld.so"
10282 shlibpath_var=LD_LIBRARY_PATH
10283 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10285 soname_spec='${libname}${release}${shared_ext}$major'
10286 if test "X$HPUX_IA64_MODE" = X32; then
10287 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10288 else
10289 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10290 fi
10291 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10292 ;;
10293 hppa*64*)
10294 shrext_cmds='.sl'
10295 hardcode_into_libs=yes
10296 dynamic_linker="$host_os dld.sl"
10297 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10298 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300 soname_spec='${libname}${release}${shared_ext}$major'
10301 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10302 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10303 ;;
10304 *)
10305 shrext_cmds='.sl'
10306 dynamic_linker="$host_os dld.sl"
10307 shlibpath_var=SHLIB_PATH
10308 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
10312 esac
10313 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10314 postinstall_cmds='chmod 555 $lib'
10315 ;;
10316
10317interix[3-9]*)
10318 version_type=linux
10319 need_lib_prefix=no
10320 need_version=no
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10322 soname_spec='${libname}${release}${shared_ext}$major'
10323 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 shlibpath_overrides_runpath=no
10326 hardcode_into_libs=yes
10327 ;;
10328
10329irix5* | irix6* | nonstopux*)
10330 case $host_os in
10331 nonstopux*) version_type=nonstopux ;;
10332 *)
10333 if test "$lt_cv_prog_gnu_ld" = yes; then
10334 version_type=linux
10335 else
10336 version_type=irix
10337 fi ;;
10338 esac
10339 need_lib_prefix=no
10340 need_version=no
10341 soname_spec='${libname}${release}${shared_ext}$major'
10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10343 case $host_os in
10344 irix5* | nonstopux*)
10345 libsuff= shlibsuff=
10346 ;;
10347 *)
10348 case $LD in # libtool.m4 will add one of these switches to LD
10349 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10350 libsuff= shlibsuff= libmagic=32-bit;;
10351 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10352 libsuff=32 shlibsuff=N32 libmagic=N32;;
10353 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10354 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10355 *) libsuff= shlibsuff= libmagic=never-match;;
10356 esac
10357 ;;
10358 esac
10359 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10360 shlibpath_overrides_runpath=no
10361 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10362 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10363 hardcode_into_libs=yes
10364 ;;
10365
10366# No shared lib support for Linux oldld, aout, or coff.
10367linux*oldld* | linux*aout* | linux*coff*)
10368 dynamic_linker=no
10369 ;;
10370
10371# This must be Linux ELF.
10372linux* | k*bsd*-gnu | kopensolaris*-gnu)
10373 version_type=linux
10374 need_lib_prefix=no
10375 need_version=no
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10379 shlibpath_var=LD_LIBRARY_PATH
10380 shlibpath_overrides_runpath=no
10381
10382 # Some binutils ld are patched to set DT_RUNPATH
10383 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10384 $as_echo_n "(cached) " >&6
10385else
10386 lt_cv_shlibpath_overrides_runpath=no
10387 save_LDFLAGS=$LDFLAGS
10388 save_libdir=$libdir
10389 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10390 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392/* end confdefs.h. */
10393
10394int
10395main ()
10396{
10397
10398 ;
10399 return 0;
10400}
10401_ACEOF
10402if ac_fn_c_try_link "$LINENO"; then :
10403 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10404 lt_cv_shlibpath_overrides_runpath=yes
10405fi
10406fi
10407rm -f core conftest.err conftest.$ac_objext \
10408 conftest$ac_exeext conftest.$ac_ext
10409 LDFLAGS=$save_LDFLAGS
10410 libdir=$save_libdir
10411
10412fi
10413
10414 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10415
10416 # This implies no fast_install, which is unacceptable.
10417 # Some rework will be needed to allow for fast_install
10418 # before this can be enabled.
10419 hardcode_into_libs=yes
10420
10421 # Append ld.so.conf contents to the search path
10422 if test -f /etc/ld.so.conf; then
10423 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' ' '`
10424 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10425 fi
10426
10427 # We used to test for /lib/ld.so.1 and disable shared libraries on
10428 # powerpc, because MkLinux only supported shared libraries with the
10429 # GNU dynamic linker. Since this was broken with cross compilers,
10430 # most powerpc-linux boxes support dynamic linking these days and
10431 # people can always --disable-shared, the test was removed, and we
10432 # assume the GNU/Linux dynamic linker is in use.
10433 dynamic_linker='GNU/Linux ld.so'
10434 ;;
10435
10436netbsd*)
10437 version_type=sunos
10438 need_lib_prefix=no
10439 need_version=no
10440 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10443 dynamic_linker='NetBSD (a.out) ld.so'
10444 else
10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10446 soname_spec='${libname}${release}${shared_ext}$major'
10447 dynamic_linker='NetBSD ld.elf_so'
10448 fi
10449 shlibpath_var=LD_LIBRARY_PATH
10450 shlibpath_overrides_runpath=yes
10451 hardcode_into_libs=yes
10452 ;;
10453
10454newsos6)
10455 version_type=linux
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10457 shlibpath_var=LD_LIBRARY_PATH
10458 shlibpath_overrides_runpath=yes
10459 ;;
10460
10461*nto* | *qnx*)
10462 version_type=qnx
10463 need_lib_prefix=no
10464 need_version=no
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466 soname_spec='${libname}${release}${shared_ext}$major'
10467 shlibpath_var=LD_LIBRARY_PATH
10468 shlibpath_overrides_runpath=no
10469 hardcode_into_libs=yes
10470 dynamic_linker='ldqnx.so'
10471 ;;
10472
10473openbsd*)
10474 version_type=sunos
10475 sys_lib_dlsearch_path_spec="/usr/lib"
10476 need_lib_prefix=no
10477 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10478 case $host_os in
10479 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10480 *) need_version=no ;;
10481 esac
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10484 shlibpath_var=LD_LIBRARY_PATH
10485 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10486 case $host_os in
10487 openbsd2.[89] | openbsd2.[89].*)
10488 shlibpath_overrides_runpath=no
10489 ;;
10490 *)
10491 shlibpath_overrides_runpath=yes
10492 ;;
10493 esac
10494 else
10495 shlibpath_overrides_runpath=yes
10496 fi
10497 ;;
10498
10499os2*)
10500 libname_spec='$name'
10501 shrext_cmds=".dll"
10502 need_lib_prefix=no
10503 library_names_spec='$libname${shared_ext} $libname.a'
10504 dynamic_linker='OS/2 ld.exe'
10505 shlibpath_var=LIBPATH
10506 ;;
10507
10508osf3* | osf4* | osf5*)
10509 version_type=osf
10510 need_lib_prefix=no
10511 need_version=no
10512 soname_spec='${libname}${release}${shared_ext}$major'
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10514 shlibpath_var=LD_LIBRARY_PATH
10515 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10516 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10517 ;;
10518
10519rdos*)
10520 dynamic_linker=no
10521 ;;
10522
10523solaris*)
10524 version_type=linux
10525 need_lib_prefix=no
10526 need_version=no
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528 soname_spec='${libname}${release}${shared_ext}$major'
10529 shlibpath_var=LD_LIBRARY_PATH
10530 shlibpath_overrides_runpath=yes
10531 hardcode_into_libs=yes
10532 # ldd complains unless libraries are executable
10533 postinstall_cmds='chmod +x $lib'
10534 ;;
10535
10536sunos4*)
10537 version_type=sunos
10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10539 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10540 shlibpath_var=LD_LIBRARY_PATH
10541 shlibpath_overrides_runpath=yes
10542 if test "$with_gnu_ld" = yes; then
10543 need_lib_prefix=no
10544 fi
10545 need_version=yes
10546 ;;
10547
10548sysv4 | sysv4.3*)
10549 version_type=linux
10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551 soname_spec='${libname}${release}${shared_ext}$major'
10552 shlibpath_var=LD_LIBRARY_PATH
10553 case $host_vendor in
10554 sni)
10555 shlibpath_overrides_runpath=no
10556 need_lib_prefix=no
10557 runpath_var=LD_RUN_PATH
10558 ;;
10559 siemens)
10560 need_lib_prefix=no
10561 ;;
10562 motorola)
10563 need_lib_prefix=no
10564 need_version=no
10565 shlibpath_overrides_runpath=no
10566 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10567 ;;
10568 esac
10569 ;;
10570
10571sysv4*MP*)
10572 if test -d /usr/nec ;then
10573 version_type=linux
10574 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10575 soname_spec='$libname${shared_ext}.$major'
10576 shlibpath_var=LD_LIBRARY_PATH
10577 fi
10578 ;;
10579
10580sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10581 version_type=freebsd-elf
10582 need_lib_prefix=no
10583 need_version=no
10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10585 soname_spec='${libname}${release}${shared_ext}$major'
10586 shlibpath_var=LD_LIBRARY_PATH
10587 shlibpath_overrides_runpath=yes
10588 hardcode_into_libs=yes
10589 if test "$with_gnu_ld" = yes; then
10590 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10591 else
10592 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10593 case $host_os in
10594 sco3.2v5*)
10595 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10596 ;;
10597 esac
10598 fi
10599 sys_lib_dlsearch_path_spec='/usr/lib'
10600 ;;
10601
10602tpf*)
10603 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10604 version_type=linux
10605 need_lib_prefix=no
10606 need_version=no
10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608 shlibpath_var=LD_LIBRARY_PATH
10609 shlibpath_overrides_runpath=no
10610 hardcode_into_libs=yes
10611 ;;
10612
10613uts4*)
10614 version_type=linux
10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10616 soname_spec='${libname}${release}${shared_ext}$major'
10617 shlibpath_var=LD_LIBRARY_PATH
10618 ;;
10619
10620*)
10621 dynamic_linker=no
10622 ;;
10623esac
10624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10625$as_echo "$dynamic_linker" >&6; }
10626test "$dynamic_linker" = no && can_build_shared=no
10627
10628variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10629if test "$GCC" = yes; then
10630 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10631fi
10632
10633if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10634 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10635fi
10636if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10637 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10638fi
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10727$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10728hardcode_action=
10729if test -n "$hardcode_libdir_flag_spec" ||
10730 test -n "$runpath_var" ||
10731 test "X$hardcode_automatic" = "Xyes" ; then
10732
10733 # We can hardcode non-existent directories.
10734 if test "$hardcode_direct" != no &&
10735 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10736 # have to relink, otherwise we might link with an installed library
10737 # when we should be linking with a yet-to-be-installed one
10738 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10739 test "$hardcode_minus_L" != no; then
10740 # Linking always hardcodes the temporary library directory.
10741 hardcode_action=relink
10742 else
10743 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10744 hardcode_action=immediate
10745 fi
10746else
10747 # We cannot hardcode anything, or else we can only hardcode existing
10748 # directories.
10749 hardcode_action=unsupported
10750fi
10751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10752$as_echo "$hardcode_action" >&6; }
10753
10754if test "$hardcode_action" = relink ||
10755 test "$inherit_rpath" = yes; then
10756 # Fast installation is not supported
10757 enable_fast_install=no
10758elif test "$shlibpath_overrides_runpath" = yes ||
10759 test "$enable_shared" = no; then
10760 # Fast installation is not necessary
10761 enable_fast_install=needless
10762fi
10763
10764
10765
10766
10767
10768
10769 if test "x$enable_dlopen" != xyes; then
10770 enable_dlopen=unknown
10771 enable_dlopen_self=unknown
10772 enable_dlopen_self_static=unknown
10773else
10774 lt_cv_dlopen=no
10775 lt_cv_dlopen_libs=
10776
10777 case $host_os in
10778 beos*)
10779 lt_cv_dlopen="load_add_on"
10780 lt_cv_dlopen_libs=
10781 lt_cv_dlopen_self=yes
10782 ;;
10783
10784 mingw* | pw32* | cegcc*)
10785 lt_cv_dlopen="LoadLibrary"
10786 lt_cv_dlopen_libs=
10787 ;;
10788
10789 cygwin*)
10790 lt_cv_dlopen="dlopen"
10791 lt_cv_dlopen_libs=
10792 ;;
10793
10794 darwin*)
10795 # if libdl is installed we need to link against it
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10797$as_echo_n "checking for dlopen in -ldl... " >&6; }
10798if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10799 $as_echo_n "(cached) " >&6
10800else
10801 ac_check_lib_save_LIBS=$LIBS
10802LIBS="-ldl $LIBS"
10803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10804/* end confdefs.h. */
10805
10806/* Override any GCC internal prototype to avoid an error.
10807 Use char because int might match the return type of a GCC
10808 builtin and then its argument prototype would still apply. */
10809#ifdef __cplusplus
10810extern "C"
10811#endif
10812char dlopen ();
10813int
10814main ()
10815{
10816return dlopen ();
10817 ;
10818 return 0;
10819}
10820_ACEOF
10821if ac_fn_c_try_link "$LINENO"; then :
10822 ac_cv_lib_dl_dlopen=yes
10823else
10824 ac_cv_lib_dl_dlopen=no
10825fi
10826rm -f core conftest.err conftest.$ac_objext \
10827 conftest$ac_exeext conftest.$ac_ext
10828LIBS=$ac_check_lib_save_LIBS
10829fi
10830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10831$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10832if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10833 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10834else
10835
10836 lt_cv_dlopen="dyld"
10837 lt_cv_dlopen_libs=
10838 lt_cv_dlopen_self=yes
10839
10840fi
10841
10842 ;;
10843
10844 *)
10845 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10846if test "x$ac_cv_func_shl_load" = x""yes; then :
10847 lt_cv_dlopen="shl_load"
10848else
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10850$as_echo_n "checking for shl_load in -ldld... " >&6; }
10851if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10852 $as_echo_n "(cached) " >&6
10853else
10854 ac_check_lib_save_LIBS=$LIBS
10855LIBS="-ldld $LIBS"
10856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857/* end confdefs.h. */
10858
10859/* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
10862#ifdef __cplusplus
10863extern "C"
10864#endif
10865char shl_load ();
10866int
10867main ()
10868{
10869return shl_load ();
10870 ;
10871 return 0;
10872}
10873_ACEOF
10874if ac_fn_c_try_link "$LINENO"; then :
10875 ac_cv_lib_dld_shl_load=yes
10876else
10877 ac_cv_lib_dld_shl_load=no
10878fi
10879rm -f core conftest.err conftest.$ac_objext \
10880 conftest$ac_exeext conftest.$ac_ext
10881LIBS=$ac_check_lib_save_LIBS
10882fi
10883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10884$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10885if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10886 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10887else
10888 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10889if test "x$ac_cv_func_dlopen" = x""yes; then :
10890 lt_cv_dlopen="dlopen"
10891else
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10893$as_echo_n "checking for dlopen in -ldl... " >&6; }
10894if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10895 $as_echo_n "(cached) " >&6
10896else
10897 ac_check_lib_save_LIBS=$LIBS
10898LIBS="-ldl $LIBS"
10899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900/* end confdefs.h. */
10901
10902/* Override any GCC internal prototype to avoid an error.
10903 Use char because int might match the return type of a GCC
10904 builtin and then its argument prototype would still apply. */
10905#ifdef __cplusplus
10906extern "C"
10907#endif
10908char dlopen ();
10909int
10910main ()
10911{
10912return dlopen ();
10913 ;
10914 return 0;
10915}
10916_ACEOF
10917if ac_fn_c_try_link "$LINENO"; then :
10918 ac_cv_lib_dl_dlopen=yes
10919else
10920 ac_cv_lib_dl_dlopen=no
10921fi
10922rm -f core conftest.err conftest.$ac_objext \
10923 conftest$ac_exeext conftest.$ac_ext
10924LIBS=$ac_check_lib_save_LIBS
10925fi
10926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10927$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10928if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10929 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10930else
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10932$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10933if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10934 $as_echo_n "(cached) " >&6
10935else
10936 ac_check_lib_save_LIBS=$LIBS
10937LIBS="-lsvld $LIBS"
10938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939/* end confdefs.h. */
10940
10941/* Override any GCC internal prototype to avoid an error.
10942 Use char because int might match the return type of a GCC
10943 builtin and then its argument prototype would still apply. */
10944#ifdef __cplusplus
10945extern "C"
10946#endif
10947char dlopen ();
10948int
10949main ()
10950{
10951return dlopen ();
10952 ;
10953 return 0;
10954}
10955_ACEOF
10956if ac_fn_c_try_link "$LINENO"; then :
10957 ac_cv_lib_svld_dlopen=yes
10958else
10959 ac_cv_lib_svld_dlopen=no
10960fi
10961rm -f core conftest.err conftest.$ac_objext \
10962 conftest$ac_exeext conftest.$ac_ext
10963LIBS=$ac_check_lib_save_LIBS
10964fi
10965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10966$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10967if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10968 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10969else
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10971$as_echo_n "checking for dld_link in -ldld... " >&6; }
10972if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10973 $as_echo_n "(cached) " >&6
10974else
10975 ac_check_lib_save_LIBS=$LIBS
10976LIBS="-ldld $LIBS"
10977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978/* end confdefs.h. */
10979
10980/* Override any GCC internal prototype to avoid an error.
10981 Use char because int might match the return type of a GCC
10982 builtin and then its argument prototype would still apply. */
10983#ifdef __cplusplus
10984extern "C"
10985#endif
10986char dld_link ();
10987int
10988main ()
10989{
10990return dld_link ();
10991 ;
10992 return 0;
10993}
10994_ACEOF
10995if ac_fn_c_try_link "$LINENO"; then :
10996 ac_cv_lib_dld_dld_link=yes
10997else
10998 ac_cv_lib_dld_dld_link=no
10999fi
11000rm -f core conftest.err conftest.$ac_objext \
11001 conftest$ac_exeext conftest.$ac_ext
11002LIBS=$ac_check_lib_save_LIBS
11003fi
11004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11005$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11006if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11007 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11008fi
11009
11010
11011fi
11012
11013
11014fi
11015
11016
11017fi
11018
11019
11020fi
11021
11022
11023fi
11024
11025 ;;
11026 esac
11027
11028 if test "x$lt_cv_dlopen" != xno; then
11029 enable_dlopen=yes
11030 else
11031 enable_dlopen=no
11032 fi
11033
11034 case $lt_cv_dlopen in
11035 dlopen)
11036 save_CPPFLAGS="$CPPFLAGS"
11037 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11038
11039 save_LDFLAGS="$LDFLAGS"
11040 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11041
11042 save_LIBS="$LIBS"
11043 LIBS="$lt_cv_dlopen_libs $LIBS"
11044
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11046$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11047if test "${lt_cv_dlopen_self+set}" = set; then :
11048 $as_echo_n "(cached) " >&6
11049else
11050 if test "$cross_compiling" = yes; then :
11051 lt_cv_dlopen_self=cross
11052else
11053 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11054 lt_status=$lt_dlunknown
11055 cat > conftest.$ac_ext <<_LT_EOF
11056#line 11056 "configure"
11057#include "confdefs.h"
11058
11059#if HAVE_DLFCN_H
11060#include <dlfcn.h>
11061#endif
11062
11063#include <stdio.h>
11064
11065#ifdef RTLD_GLOBAL
11066# define LT_DLGLOBAL RTLD_GLOBAL
11067#else
11068# ifdef DL_GLOBAL
11069# define LT_DLGLOBAL DL_GLOBAL
11070# else
11071# define LT_DLGLOBAL 0
11072# endif
11073#endif
11074
11075/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11076 find out it does not work in some platform. */
11077#ifndef LT_DLLAZY_OR_NOW
11078# ifdef RTLD_LAZY
11079# define LT_DLLAZY_OR_NOW RTLD_LAZY
11080# else
11081# ifdef DL_LAZY
11082# define LT_DLLAZY_OR_NOW DL_LAZY
11083# else
11084# ifdef RTLD_NOW
11085# define LT_DLLAZY_OR_NOW RTLD_NOW
11086# else
11087# ifdef DL_NOW
11088# define LT_DLLAZY_OR_NOW DL_NOW
11089# else
11090# define LT_DLLAZY_OR_NOW 0
11091# endif
11092# endif
11093# endif
11094# endif
11095#endif
11096
11097void fnord() { int i=42;}
11098int main ()
11099{
11100 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11101 int status = $lt_dlunknown;
11102
11103 if (self)
11104 {
11105 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11106 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11107 /* dlclose (self); */
11108 }
11109 else
11110 puts (dlerror ());
11111
11112 return status;
11113}
11114_LT_EOF
11115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11116 (eval $ac_link) 2>&5
11117 ac_status=$?
11118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11119 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11120 (./conftest; exit; ) >&5 2>/dev/null
11121 lt_status=$?
11122 case x$lt_status in
11123 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11124 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11125 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11126 esac
11127 else :
11128 # compilation failed
11129 lt_cv_dlopen_self=no
11130 fi
11131fi
11132rm -fr conftest*
11133
11134
11135fi
11136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11137$as_echo "$lt_cv_dlopen_self" >&6; }
11138
11139 if test "x$lt_cv_dlopen_self" = xyes; then
11140 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11142$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11143if test "${lt_cv_dlopen_self_static+set}" = set; then :
11144 $as_echo_n "(cached) " >&6
11145else
11146 if test "$cross_compiling" = yes; then :
11147 lt_cv_dlopen_self_static=cross
11148else
11149 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11150 lt_status=$lt_dlunknown
11151 cat > conftest.$ac_ext <<_LT_EOF
11152#line 11152 "configure"
11153#include "confdefs.h"
11154
11155#if HAVE_DLFCN_H
11156#include <dlfcn.h>
11157#endif
11158
11159#include <stdio.h>
11160
11161#ifdef RTLD_GLOBAL
11162# define LT_DLGLOBAL RTLD_GLOBAL
11163#else
11164# ifdef DL_GLOBAL
11165# define LT_DLGLOBAL DL_GLOBAL
11166# else
11167# define LT_DLGLOBAL 0
11168# endif
11169#endif
11170
11171/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11172 find out it does not work in some platform. */
11173#ifndef LT_DLLAZY_OR_NOW
11174# ifdef RTLD_LAZY
11175# define LT_DLLAZY_OR_NOW RTLD_LAZY
11176# else
11177# ifdef DL_LAZY
11178# define LT_DLLAZY_OR_NOW DL_LAZY
11179# else
11180# ifdef RTLD_NOW
11181# define LT_DLLAZY_OR_NOW RTLD_NOW
11182# else
11183# ifdef DL_NOW
11184# define LT_DLLAZY_OR_NOW DL_NOW
11185# else
11186# define LT_DLLAZY_OR_NOW 0
11187# endif
11188# endif
11189# endif
11190# endif
11191#endif
11192
11193void fnord() { int i=42;}
11194int main ()
11195{
11196 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11197 int status = $lt_dlunknown;
11198
11199 if (self)
11200 {
11201 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11202 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11203 /* dlclose (self); */
11204 }
11205 else
11206 puts (dlerror ());
11207
11208 return status;
11209}
11210_LT_EOF
11211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11212 (eval $ac_link) 2>&5
11213 ac_status=$?
11214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11215 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11216 (./conftest; exit; ) >&5 2>/dev/null
11217 lt_status=$?
11218 case x$lt_status in
11219 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11220 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11221 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11222 esac
11223 else :
11224 # compilation failed
11225 lt_cv_dlopen_self_static=no
11226 fi
11227fi
11228rm -fr conftest*
11229
11230
11231fi
11232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11233$as_echo "$lt_cv_dlopen_self_static" >&6; }
11234 fi
11235
11236 CPPFLAGS="$save_CPPFLAGS"
11237 LDFLAGS="$save_LDFLAGS"
11238 LIBS="$save_LIBS"
11239 ;;
11240 esac
11241
11242 case $lt_cv_dlopen_self in
11243 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11244 *) enable_dlopen_self=unknown ;;
11245 esac
11246
11247 case $lt_cv_dlopen_self_static in
11248 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11249 *) enable_dlopen_self_static=unknown ;;
11250 esac
11251fi
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269striplib=
11270old_striplib=
11271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11272$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11273if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11274 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11275 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11277$as_echo "yes" >&6; }
11278else
11279# FIXME - insert some real tests, host_os isn't really good enough
11280 case $host_os in
11281 darwin*)
11282 if test -n "$STRIP" ; then
11283 striplib="$STRIP -x"
11284 old_striplib="$STRIP -S"
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11286$as_echo "yes" >&6; }
11287 else
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11289$as_echo "no" >&6; }
11290 fi
11291 ;;
11292 *)
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11294$as_echo "no" >&6; }
11295 ;;
11296 esac
11297fi
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310 # Report which library types will actually be built
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11312$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11314$as_echo "$can_build_shared" >&6; }
11315
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11317$as_echo_n "checking whether to build shared libraries... " >&6; }
11318 test "$can_build_shared" = "no" && enable_shared=no
11319
11320 # On AIX, shared libraries and static libraries use the same namespace, and
11321 # are all built from PIC.
11322 case $host_os in
11323 aix3*)
11324 test "$enable_shared" = yes && enable_static=no
11325 if test -n "$RANLIB"; then
11326 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11327 postinstall_cmds='$RANLIB $lib'
11328 fi
11329 ;;
11330
11331 aix[4-9]*)
11332 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11333 test "$enable_shared" = yes && enable_static=no
11334 fi
11335 ;;
11336 esac
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11338$as_echo "$enable_shared" >&6; }
11339
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11341$as_echo_n "checking whether to build static libraries... " >&6; }
11342 # Make sure either enable_shared or enable_static is yes.
11343 test "$enable_shared" = yes || enable_static=yes
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11345$as_echo "$enable_static" >&6; }
11346
11347
11348
11349
11350fi
11351ac_ext=c
11352ac_cpp='$CPP $CPPFLAGS'
11353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11355ac_compiler_gnu=$ac_cv_c_compiler_gnu
11356
11357CC="$lt_save_CC"
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371 ac_config_commands="$ac_config_commands libtool"
11372
11373
11374
11375
11376# Only expand once:
11377
11378
11379
11380# Check whether --enable-targets was given.
11381if test "${enable_targets+set}" = set; then :
11382 enableval=$enable_targets; case "${enableval}" in
11383 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
11384 ;;
11385 no) enable_targets= ;;
11386 *) enable_targets=$enableval ;;
11387esac
11388fi
11389
11390ac_checking=yes
11391if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
11392 ac_checking=
11393fi
11394# Check whether --enable-checking was given.
11395if test "${enable_checking+set}" = set; then :
11396 enableval=$enable_checking; case "${enableval}" in
11397 no|none) ac_checking= ;;
11398 *) ac_checking=yes ;;
11399esac
11400fi
11401if test x$ac_checking != x ; then
11402
11403$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11404
11405fi
11406
11407using_cgen=no
11408
11409
11410GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11411
11412# Check whether --enable-werror was given.
11413if test "${enable_werror+set}" = set; then :
11414 enableval=$enable_werror; case "${enableval}" in
11415 yes | y) ERROR_ON_WARNING="yes" ;;
11416 no | n) ERROR_ON_WARNING="no" ;;
11417 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11418 esac
11419fi
11420
11421
11422# Enable -Wno-format by default when using gcc on mingw
11423case "${host}" in
11424 *-*-mingw32*)
11425 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11426 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11427 fi
11428 ;;
11429 *) ;;
11430esac
11431
11432# Enable -Werror by default when using gcc
11433if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11434 ERROR_ON_WARNING=yes
11435fi
11436
11437NO_WERROR=
11438if test "${ERROR_ON_WARNING}" = yes ; then
11439 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11440 NO_WERROR="-Wno-error"
11441fi
11442
11443if test "${GCC}" = yes ; then
11444 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11445fi
11446
11447# Check whether --enable-build-warnings was given.
11448if test "${enable_build_warnings+set}" = set; then :
11449 enableval=$enable_build_warnings; case "${enableval}" in
11450 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11451 no) if test "${GCC}" = yes ; then
11452 WARN_CFLAGS="-w"
11453 fi;;
11454 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11455 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11456 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11457 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11458 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11459esac
11460fi
11461
11462
11463if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11464 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11465fi
11466
11467
11468
11469
11470
11471# Generate a header file
11472ac_config_headers="$ac_config_headers config.h:config.in"
11473
11474
11475# If we are on a DOS filesystem, we must use gdb.ini rather than
11476# .gdbinit.
11477case "${host}" in
11478 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11479 GDBINIT="gdb.ini"
11480 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
11481
11482 ;;
11483 *)
11484 GDBINIT=".gdbinit"
11485 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
11486
11487 ;;
11488esac
11489
11490
11491#We need this for the host. BOUT header is in host order.
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11493$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11494if test "${ac_cv_c_bigendian+set}" = set; then :
11495 $as_echo_n "(cached) " >&6
11496else
11497 ac_cv_c_bigendian=unknown
11498 # See if we're dealing with a universal compiler.
11499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11500/* end confdefs.h. */
11501#ifndef __APPLE_CC__
11502 not a universal capable compiler
11503 #endif
11504 typedef int dummy;
11505
11506_ACEOF
11507if ac_fn_c_try_compile "$LINENO"; then :
11508
11509 # Check for potential -arch flags. It is not universal unless
11510 # there are at least two -arch flags with different values.
11511 ac_arch=
11512 ac_prev=
11513 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11514 if test -n "$ac_prev"; then
11515 case $ac_word in
11516 i?86 | x86_64 | ppc | ppc64)
11517 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11518 ac_arch=$ac_word
11519 else
11520 ac_cv_c_bigendian=universal
11521 break
11522 fi
11523 ;;
11524 esac
11525 ac_prev=
11526 elif test "x$ac_word" = "x-arch"; then
11527 ac_prev=arch
11528 fi
11529 done
11530fi
11531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11532 if test $ac_cv_c_bigendian = unknown; then
11533 # See if sys/param.h defines the BYTE_ORDER macro.
11534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535/* end confdefs.h. */
11536#include <sys/types.h>
11537 #include <sys/param.h>
11538
11539int
11540main ()
11541{
11542#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11543 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11544 && LITTLE_ENDIAN)
11545 bogus endian macros
11546 #endif
11547
11548 ;
11549 return 0;
11550}
11551_ACEOF
11552if ac_fn_c_try_compile "$LINENO"; then :
11553 # It does; now see whether it defined to BIG_ENDIAN or not.
11554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555/* end confdefs.h. */
11556#include <sys/types.h>
11557 #include <sys/param.h>
11558
11559int
11560main ()
11561{
11562#if BYTE_ORDER != BIG_ENDIAN
11563 not big endian
11564 #endif
11565
11566 ;
11567 return 0;
11568}
11569_ACEOF
11570if ac_fn_c_try_compile "$LINENO"; then :
11571 ac_cv_c_bigendian=yes
11572else
11573 ac_cv_c_bigendian=no
11574fi
11575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11576fi
11577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11578 fi
11579 if test $ac_cv_c_bigendian = unknown; then
11580 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582/* end confdefs.h. */
11583#include <limits.h>
11584
11585int
11586main ()
11587{
11588#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11589 bogus endian macros
11590 #endif
11591
11592 ;
11593 return 0;
11594}
11595_ACEOF
11596if ac_fn_c_try_compile "$LINENO"; then :
11597 # It does; now see whether it defined to _BIG_ENDIAN or not.
11598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11599/* end confdefs.h. */
11600#include <limits.h>
11601
11602int
11603main ()
11604{
11605#ifndef _BIG_ENDIAN
11606 not big endian
11607 #endif
11608
11609 ;
11610 return 0;
11611}
11612_ACEOF
11613if ac_fn_c_try_compile "$LINENO"; then :
11614 ac_cv_c_bigendian=yes
11615else
11616 ac_cv_c_bigendian=no
11617fi
11618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11619fi
11620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11621 fi
11622 if test $ac_cv_c_bigendian = unknown; then
11623 # Compile a test program.
11624 if test "$cross_compiling" = yes; then :
11625 # Try to guess by grepping values from an object file.
11626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627/* end confdefs.h. */
11628short int ascii_mm[] =
11629 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11630 short int ascii_ii[] =
11631 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11632 int use_ascii (int i) {
11633 return ascii_mm[i] + ascii_ii[i];
11634 }
11635 short int ebcdic_ii[] =
11636 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11637 short int ebcdic_mm[] =
11638 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11639 int use_ebcdic (int i) {
11640 return ebcdic_mm[i] + ebcdic_ii[i];
11641 }
11642 extern int foo;
11643
11644int
11645main ()
11646{
11647return use_ascii (foo) == use_ebcdic (foo);
11648 ;
11649 return 0;
11650}
11651_ACEOF
11652if ac_fn_c_try_compile "$LINENO"; then :
11653 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11654 ac_cv_c_bigendian=yes
11655 fi
11656 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11657 if test "$ac_cv_c_bigendian" = unknown; then
11658 ac_cv_c_bigendian=no
11659 else
11660 # finding both strings is unlikely to happen, but who knows?
11661 ac_cv_c_bigendian=unknown
11662 fi
11663 fi
11664fi
11665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11666else
11667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668/* end confdefs.h. */
11669$ac_includes_default
11670int
11671main ()
11672{
11673
11674 /* Are we little or big endian? From Harbison&Steele. */
11675 union
11676 {
11677 long int l;
11678 char c[sizeof (long int)];
11679 } u;
11680 u.l = 1;
11681 return u.c[sizeof (long int) - 1] == 1;
11682
11683 ;
11684 return 0;
11685}
11686_ACEOF
11687if ac_fn_c_try_run "$LINENO"; then :
11688 ac_cv_c_bigendian=no
11689else
11690 ac_cv_c_bigendian=yes
11691fi
11692rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11693 conftest.$ac_objext conftest.beam conftest.$ac_ext
11694fi
11695
11696 fi
11697fi
11698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11699$as_echo "$ac_cv_c_bigendian" >&6; }
11700 case $ac_cv_c_bigendian in #(
11701 yes)
11702 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11703;; #(
11704 no)
11705 ;; #(
11706 universal)
11707
11708$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11709
11710 ;; #(
11711 *)
11712 as_fn_error "unknown endianness
11713 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11714 esac
11715
11716
11717te_file=generic
11718
11719# Makefile target for installing gas in $(tooldir)/bin.
11720install_tooldir=install-exec-tooldir
11721
11722canon_targets=""
11723all_targets=no
11724if test -n "$enable_targets" ; then
11725 for t in `echo $enable_targets | sed 's/,/ /g'`; do
11726 if test $t = "all"; then
11727 all_targets=yes
11728 continue
11729 fi
11730 result=`$ac_config_sub $t 2>/dev/null`
11731 if test -n "$result" ; then
11732 canon_targets="$canon_targets $result"
11733# else
11734# # Permit "all", etc. We don't support it yet though.
11735# canon_targets="$canon_targets $t"
11736 fi
11737 done
11738 _gas_uniq_list="$canon_targets"
11739_gas_uniq_newlist=""
11740for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11741 case $_gas_uniq_i in
11742 _gas_uniq_dummy) ;;
11743 *) case " $_gas_uniq_newlist " in
11744 *" $_gas_uniq_i "*) ;;
11745 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11746 esac ;;
11747 esac
11748done
11749canon_targets=$_gas_uniq_newlist
11750
11751fi
11752
11753emulations=""
11754
11755for this_target in $target $canon_targets ; do
11756
11757 targ=${this_target}
11758 . ${srcdir}/configure.tgt
11759
11760 case ${target_cpu} in
11761 crisv32)
11762
11763cat >>confdefs.h <<_ACEOF
11764#define DEFAULT_CRIS_ARCH $arch
11765_ACEOF
11766
11767 ;;
11768 esac
11769
11770 if test ${this_target} = $target ; then
11771 target_cpu_type=${cpu_type}
11772 elif test ${target_cpu_type} != ${cpu_type} ; then
11773 continue
11774 fi
11775
11776 generic_target=${cpu_type}-${target_vendor}-${target_os}
11777 case ${generic_target} in
11778 i386-*-sco3.2v5*)
11779 if test ${this_target} = $target; then
11780
11781$as_echo "#define SCO_ELF 1" >>confdefs.h
11782
11783 fi
11784 ;;
11785
11786 i386-*-msdosdjgpp* \
11787 | i386-*-go32* \
11788 | i386-go32-rtems*)
11789
11790$as_echo "#define STRICTCOFF 1" >>confdefs.h
11791
11792 ;;
11793
11794 i860-*-*)
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
11796$as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
11797 ;;
11798
11799 microblaze*)
11800 ;;
11801
11802 mips-sony-bsd*)
11803 ;;
11804 mips-*-bsd*)
11805 as_fn_error "Unknown vendor for mips-bsd configuration." "$LINENO" 5
11806 ;;
11807
11808 ppc-*-aix[5-9].*)
11809
11810$as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
11811
11812 ;;
11813 ppc-*-linux-*)
11814 case "$endian" in
11815 big) ;;
11816 *) as_fn_error "GNU/Linux must be configured big endian" "$LINENO" 5 ;;
11817 esac
11818 ;;
11819 ppc-*-solaris*)
11820 if test ${this_target} = $target; then
11821
11822$as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
11823
11824 fi
11825 if test x${endian} = xbig; then
11826 as_fn_error "Solaris must be configured little endian" "$LINENO" 5
11827 fi
11828 ;;
11829
11830 sh*-*-symbianelf*)
11831
11832$as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h
11833
11834 ;;
11835 esac
11836
11837 if test ${this_target} = $target ; then
11838 endian_def=
11839 if test x${endian} = xbig; then
11840 endian_def=1
11841 elif test x${endian} = xlittle; then
11842 endian_def=0
11843 fi
11844 if test x${endian_def} != x; then
11845
11846cat >>confdefs.h <<_ACEOF
11847#define TARGET_BYTES_BIG_ENDIAN $endian_def
11848_ACEOF
11849
11850 fi
11851 fi
11852
11853# Other random stuff.
11854
11855 case ${cpu_type} in
11856 mips)
11857 # Set mips_cpu to the name of the default CPU.
11858 case ${target_cpu} in
11859 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
11860 mips_cpu=from-abi
11861 ;;
11862 mipsisa32 | mipsisa32el)
11863 mips_cpu=mips32
11864 ;;
11865 mipsisa32r2 | mipsisa32r2el)
11866 mips_cpu=mips32r2
11867 ;;
11868 mipsisa64 | mipsisa64el)
11869 mips_cpu=mips64
11870 ;;
11871 mipsisa64r2 | mipsisa64r2el)
11872 mips_cpu=mips64r2
11873 ;;
11874 mipstx39 | mipstx39el)
11875 mips_cpu=r3900
11876 ;;
11877 mips64vr | mips64vrel)
11878 mips_cpu=vr4100
11879 ;;
11880 mipsisa32r2* | mipsisa64r2*)
11881 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
11882 ;;
11883 mips64* | mipsisa64* | mipsisa32*)
11884 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
11885 ;;
11886 *)
11887 as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
11888 ;;
11889 esac
11890 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
11891 # binaries. It's a GNU extension that some OSes don't understand.
11892 # The value only matters on ELF targets.
11893 case ${target} in
11894 *-*-irix*)
11895 use_e_mips_abi_o32=0
11896 ;;
11897 *)
11898 use_e_mips_abi_o32=1
11899 ;;
11900 esac
11901 # Decide whether to generate 32-bit or 64-bit code by default.
11902 # Used to resolve -march=from-abi when an embedded ABI is selected.
11903 case ${target} in
11904 mips64*-*-* | mipsisa64*-*-*)
11905 mips_default_64bit=1
11906 ;;
11907 *)
11908 mips_default_64bit=0
11909 ;;
11910 esac
11911 # Decide which ABI to target by default.
11912 case ${target} in
11913 mips64*-linux* | mips-sgi-irix6*)
11914 mips_default_abi=N32_ABI
11915 ;;
11916 mips*-linux*)
11917 mips_default_abi=O32_ABI
11918 ;;
11919 mips64*-openbsd*)
11920 mips_default_abi=N64_ABI
11921 ;;
11922 *)
11923 mips_default_abi=NO_ABI
11924 ;;
11925 esac
11926
11927cat >>confdefs.h <<_ACEOF
11928#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
11929_ACEOF
11930
11931
11932cat >>confdefs.h <<_ACEOF
11933#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
11934_ACEOF
11935
11936
11937cat >>confdefs.h <<_ACEOF
11938#define MIPS_DEFAULT_64BIT $mips_default_64bit
11939_ACEOF
11940
11941
11942cat >>confdefs.h <<_ACEOF
11943#define MIPS_DEFAULT_ABI $mips_default_abi
11944_ACEOF
11945
11946 ;;
11947 esac
11948
11949 # Do we need the opcodes library?
11950 case ${cpu_type} in
11951 vax | tic30)
11952 ;;
11953
11954 *)
11955 need_opcodes=yes
11956
11957 case "${enable_shared}" in
11958 yes) shared_opcodes=true ;;
11959 *opcodes*) shared_opcodes=true ;;
11960 *) shared_opcodes=false ;;
11961 esac
11962 ;;
11963 esac
11964
11965 # Any other special object files needed ?
11966 case ${cpu_type} in
11967
11968 bfin)
11969 echo ${extra_objects} | grep -s "bfin-parse.o"
11970 if test $? -ne 0 ; then
11971 extra_objects="$extra_objects bfin-parse.o"
11972 fi
11973
11974 echo ${extra_objects} | grep -s "bfin-lex.o"
11975 if test $? -ne 0 ; then
11976 extra_objects="$extra_objects bfin-lex.o"
11977 fi
11978 ;;
11979
11980 fr30 | ip2k | iq2000 | lm32 | m32r | openrisc)
11981 using_cgen=yes
11982 ;;
11983
11984 m32c)
11985 using_cgen=yes
11986 ;;
11987 frv)
11988 using_cgen=yes
11989 ;;
11990 m68k)
11991 case ${extra_objects} in
11992 *m68k-parse.o*) ;;
11993 *) extra_objects="$extra_objects m68k-parse.o" ;;
11994 esac
11995 ;;
11996
11997 mep)
11998 using_cgen=yes
11999 ;;
12000
12001 mips)
12002 echo ${extra_objects} | grep -s "itbl-parse.o"
12003 if test $? -ne 0 ; then
12004 extra_objects="$extra_objects itbl-parse.o"
12005 fi
12006
12007 echo ${extra_objects} | grep -s "itbl-lex.o"
12008 if test $? -ne 0 ; then
12009 extra_objects="$extra_objects itbl-lex.o"
12010 fi
12011
12012 echo ${extra_objects} | grep -s "itbl-ops.o"
12013 if test $? -ne 0 ; then
12014 extra_objects="$extra_objects itbl-ops.o"
12015 fi
12016 ;;
12017
12018 mt)
12019 using_cgen=yes
12020 ;;
12021
12022 i386 | s390 | sparc)
12023 if test $this_target = $target ; then
12024
12025cat >>confdefs.h <<_ACEOF
12026#define DEFAULT_ARCH "${arch}"
12027_ACEOF
12028
12029 fi
12030 ;;
12031
12032 xstormy16)
12033 using_cgen=yes
12034 ;;
12035
12036 xc16x)
12037 using_cgen=yes
12038 ;;
12039
12040 xtensa)
12041 echo ${extra_objects} | grep -s "xtensa-relax.o"
12042 if test $? -ne 0 ; then
12043 extra_objects="$extra_objects xtensa-relax.o"
12044 fi
12045 ;;
12046
12047 *)
12048 ;;
12049 esac
12050
12051 if test $using_cgen = yes ; then
12052 case "x${extra_objects}" in
12053 *cgen.o*) ;;
12054 *) extra_objects="$extra_objects cgen.o" ;;
12055 esac
12056 fi
12057
12058# See if we really can support this configuration with the emulation code.
12059
12060 if test $this_target = $target ; then
12061 obj_format=$fmt
12062 te_file=$em
12063 fi
12064
12065# From target name and format, produce a list of supported emulations.
12066
12067 case ${generic_target}-${fmt} in
12068 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
12069 mips*-*-linux*-*) case "$endian" in
12070 big) emulation="mipsbelf mipslelf mipself" ;;
12071 *) emulation="mipslelf mipsbelf mipself" ;;
12072 esac ;;
12073 mips-*-lnews*-ecoff) ;;
12074 mips-*-*-ecoff) case "$endian" in
12075 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
12076 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
12077 esac ;;
12078 mips-*-*-elf) case "$endian" in
12079 big) emulation="mipsbelf mipslelf mipself" ;;
12080 *) emulation="mipslelf mipsbelf mipself" ;;
12081 esac ;;
12082 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
12083 # i386-pc-pe-coff != i386-pc-coff.
12084 i386-*-pe-coff) ;;
12085 # Uncommenting the next line will turn on support for i386 AOUT
12086 # for the default linux configuration
12087 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12088 #
12089 i386-*-aout) emulation="i386aout" ;;
12090 i386-*-coff) emulation="i386coff" ;;
12091 i386-*-elf) emulation="i386elf" ;;
12092
12093 # Always all formats. The first stated emulation becomes the default.
12094 cris-*-*aout*) emulation="crisaout criself" ;;
12095 cris-*-*) emulation="criself crisaout" ;;
12096 esac
12097
12098 emulations="$emulations $emulation"
12099
12100done
12101
12102# Turn on all targets if possible
12103if test ${all_targets} = "yes"; then
12104 case ${target_cpu_type} in
12105 i386)
12106 case ${obj_format} in
12107 aout)
12108 emulations="$emulations i386coff i386elf"
12109 ;;
12110 coff)
12111 emulations="$emulations i386aout i386elf"
12112 ;;
12113 elf)
12114 emulations="$emulations i386aout i386coff"
12115 ;;
12116 esac
12117 ;;
12118 x86_64)
12119 case ${obj_format} in
12120 aout)
12121 emulations="$emulations i386coff i386elf"
12122 ;;
12123 coff)
12124 emulations="$emulations i386aout i386elf"
12125 ;;
12126 elf)
12127 emulations="$emulations i386aout i386coff"
12128 ;;
12129 esac
12130 ;;
12131 esac
12132fi
12133
12134# Assign floating point type. Most processors with FP support
12135# IEEE FP. On those that don't support FP at all, usually IEEE
12136# is emulated.
12137case ${target_cpu} in
12138 vax | pdp11 ) atof=vax ;;
12139 *) atof=ieee ;;
12140esac
12141
12142case "${obj_format}" in
12143 "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
12144esac
12145
12146# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12147cgen_cpu_prefix=""
12148if test $using_cgen = yes ; then
12149 case ${target_cpu} in
12150 *) cgen_cpu_prefix=${target_cpu} ;;
12151 esac
12152
12153
12154$as_echo "#define USING_CGEN 1" >>confdefs.h
12155
12156fi
12157
12158
12159if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
12160 as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
12161fi
12162
12163if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
12164 as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
12165fi
12166
12167# Some COFF configurations want these random other flags set.
12168case ${obj_format} in
12169 coff)
12170 case ${target_cpu_type} in
12171 i386)
12172$as_echo "#define I386COFF 1" >>confdefs.h
12173 ;;
12174 m68k)
12175$as_echo "#define M68KCOFF 1" >>confdefs.h
12176 ;;
12177 m88k)
12178$as_echo "#define M88KCOFF 1" >>confdefs.h
12179 ;;
12180 x86_64)
12181$as_echo "#define I386COFF 1" >>confdefs.h
12182 ;;
12183 esac
12184 ;;
12185esac
12186
12187# Getting this done right is going to be a bitch. Each configuration specified
12188# with --enable-targets=... should be checked for environment, format, cpu
12189# setting.
12190#
12191# For each configuration, the necessary object file support code must be linked
12192# in. This might be only one, it might be up to four. The necessary emulation
12193# code needs to be provided, too.
12194#
12195# And then there's "--enable-targets=all"....
12196#
12197# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
12198
12199formats="${obj_format}"
12200emfiles=""
12201EMULATIONS=""
12202_gas_uniq_list="$emulations"
12203_gas_uniq_newlist=""
12204for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12205 case $_gas_uniq_i in
12206 _gas_uniq_dummy) ;;
12207 *) case " $_gas_uniq_newlist " in
12208 *" $_gas_uniq_i "*) ;;
12209 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12210 esac ;;
12211 esac
12212done
12213emulations=$_gas_uniq_newlist
12214
12215for em in . $emulations ; do
12216 case $em in
12217 .) continue ;;
12218 mipsbelf | mipslelf | mipself)
12219 fmt=elf file=mipself ;;
12220 mipsbecoff | mipslecoff | mipsecoff)
12221 fmt=ecoff file=mipsecoff ;;
12222 *coff)
12223 fmt=coff file=$em ;;
12224 *aout)
12225 fmt=aout file=$em ;;
12226 *elf)
12227 fmt=elf file=$em ;;
12228 esac
12229 formats="$formats $fmt"
12230 emfiles="$emfiles e-$file.o"
12231 EMULATIONS="$EMULATIONS &$em,"
12232done
12233_gas_uniq_list="$formats"
12234_gas_uniq_newlist=""
12235for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12236 case $_gas_uniq_i in
12237 _gas_uniq_dummy) ;;
12238 *) case " $_gas_uniq_newlist " in
12239 *" $_gas_uniq_i "*) ;;
12240 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12241 esac ;;
12242 esac
12243done
12244formats=$_gas_uniq_newlist
12245
12246_gas_uniq_list="$emfiles"
12247_gas_uniq_newlist=""
12248for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12249 case $_gas_uniq_i in
12250 _gas_uniq_dummy) ;;
12251 *) case " $_gas_uniq_newlist " in
12252 *" $_gas_uniq_i "*) ;;
12253 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12254 esac ;;
12255 esac
12256done
12257emfiles=$_gas_uniq_newlist
12258
12259if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12260 for fmt in $formats ; do
12261 case $fmt in
12262 aout)
12263$as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
12264 ;;
12265 bout)
12266$as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h
12267 ;;
12268 coff)
12269$as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
12270 ;;
12271 ecoff)
12272$as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
12273 ;;
12274 elf)
12275$as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
12276 ;;
12277 generic)
12278$as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
12279 ;;
12280 som)
12281$as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
12282 ;;
12283 esac
12284 extra_objects="$extra_objects obj-$fmt.o"
12285 done
12286 obj_format=multi
12287fi
12288if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12289 DEFAULT_EMULATION=`set . $emulations ; echo $2`
12290 # e-mips* has more than one emulation per file, e-i386* has just one at the
12291 # moment. If only one emulation is specified, then don't define
12292 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12293 case "${obj_format}${emfiles}" in
12294 multi* | *mips*)
12295 extra_objects="$extra_objects $emfiles"
12296
12297$as_echo "#define USE_EMULATIONS 1" >>confdefs.h
12298 ;;
12299 esac
12300fi
12301
12302
12303cat >>confdefs.h <<_ACEOF
12304#define EMULATIONS $EMULATIONS
12305_ACEOF
12306
12307
12308cat >>confdefs.h <<_ACEOF
12309#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
12310_ACEOF
12311
12312
12313reject_dev_configs=yes
12314
12315case ${reject_dev_configs}-${dev} in
12316 yes-yes) # Oops.
12317 as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5
12318 ;;
12319esac
12320
12321
12322
12323
12324
12325
12326
12327# do we need the opcodes library?
12328case "${need_opcodes}" in
12329yes)
12330 OPCODES_LIB=../opcodes/libopcodes.la
12331 ;;
12332esac
12333
12334
12335
12336
12337cat >>confdefs.h <<_ACEOF
12338#define TARGET_ALIAS "${target_alias}"
12339_ACEOF
12340
12341
12342cat >>confdefs.h <<_ACEOF
12343#define TARGET_CANONICAL "${target}"
12344_ACEOF
12345
12346
12347cat >>confdefs.h <<_ACEOF
12348#define TARGET_CPU "${target_cpu}"
12349_ACEOF
12350
12351
12352cat >>confdefs.h <<_ACEOF
12353#define TARGET_VENDOR "${target_vendor}"
12354_ACEOF
12355
12356
12357cat >>confdefs.h <<_ACEOF
12358#define TARGET_OS "${target_os}"
12359_ACEOF
12360
12361
12362for ac_prog in 'bison -y' byacc
12363do
12364 # Extract the first word of "$ac_prog", so it can be a program name with args.
12365set dummy $ac_prog; ac_word=$2
12366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12367$as_echo_n "checking for $ac_word... " >&6; }
12368if test "${ac_cv_prog_YACC+set}" = set; then :
12369 $as_echo_n "(cached) " >&6
12370else
12371 if test -n "$YACC"; then
12372 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12373else
12374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375for as_dir in $PATH
12376do
12377 IFS=$as_save_IFS
12378 test -z "$as_dir" && as_dir=.
12379 for ac_exec_ext in '' $ac_executable_extensions; do
12380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12381 ac_cv_prog_YACC="$ac_prog"
12382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12383 break 2
12384 fi
12385done
12386 done
12387IFS=$as_save_IFS
12388
12389fi
12390fi
12391YACC=$ac_cv_prog_YACC
12392if test -n "$YACC"; then
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12394$as_echo "$YACC" >&6; }
12395else
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397$as_echo "no" >&6; }
12398fi
12399
12400
12401 test -n "$YACC" && break
12402done
12403test -n "$YACC" || YACC="yacc"
12404
12405for ac_prog in flex lex
12406do
12407 # Extract the first word of "$ac_prog", so it can be a program name with args.
12408set dummy $ac_prog; ac_word=$2
12409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12410$as_echo_n "checking for $ac_word... " >&6; }
12411if test "${ac_cv_prog_LEX+set}" = set; then :
12412 $as_echo_n "(cached) " >&6
12413else
12414 if test -n "$LEX"; then
12415 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12416else
12417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12418for as_dir in $PATH
12419do
12420 IFS=$as_save_IFS
12421 test -z "$as_dir" && as_dir=.
12422 for ac_exec_ext in '' $ac_executable_extensions; do
12423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12424 ac_cv_prog_LEX="$ac_prog"
12425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12426 break 2
12427 fi
12428done
12429 done
12430IFS=$as_save_IFS
12431
12432fi
12433fi
12434LEX=$ac_cv_prog_LEX
12435if test -n "$LEX"; then
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12437$as_echo "$LEX" >&6; }
12438else
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440$as_echo "no" >&6; }
12441fi
12442
12443
12444 test -n "$LEX" && break
12445done
12446test -n "$LEX" || LEX=":"
12447
12448if test "x$LEX" != "x:"; then
12449 cat >conftest.l <<_ACEOF
12450%%
12451a { ECHO; }
12452b { REJECT; }
12453c { yymore (); }
12454d { yyless (1); }
12455e { yyless (input () != 0); }
12456f { unput (yytext[0]); }
12457. { BEGIN INITIAL; }
12458%%
12459#ifdef YYTEXT_POINTER
12460extern char *yytext;
12461#endif
12462int
12463main (void)
12464{
12465 return ! yylex () + ! yywrap ();
12466}
12467_ACEOF
12468{ { ac_try="$LEX conftest.l"
12469case "(($ac_try" in
12470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12471 *) ac_try_echo=$ac_try;;
12472esac
12473eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12474$as_echo "$ac_try_echo"; } >&5
12475 (eval "$LEX conftest.l") 2>&5
12476 ac_status=$?
12477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12478 test $ac_status = 0; }
12479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12480$as_echo_n "checking lex output file root... " >&6; }
12481if test "${ac_cv_prog_lex_root+set}" = set; then :
12482 $as_echo_n "(cached) " >&6
12483else
12484
12485if test -f lex.yy.c; then
12486 ac_cv_prog_lex_root=lex.yy
12487elif test -f lexyy.c; then
12488 ac_cv_prog_lex_root=lexyy
12489else
12490 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12491fi
12492fi
12493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12494$as_echo "$ac_cv_prog_lex_root" >&6; }
12495LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12496
12497if test -z "${LEXLIB+set}"; then
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12499$as_echo_n "checking lex library... " >&6; }
12500if test "${ac_cv_lib_lex+set}" = set; then :
12501 $as_echo_n "(cached) " >&6
12502else
12503
12504 ac_save_LIBS=$LIBS
12505 ac_cv_lib_lex='none needed'
12506 for ac_lib in '' -lfl -ll; do
12507 LIBS="$ac_lib $ac_save_LIBS"
12508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509/* end confdefs.h. */
12510`cat $LEX_OUTPUT_ROOT.c`
12511_ACEOF
12512if ac_fn_c_try_link "$LINENO"; then :
12513 ac_cv_lib_lex=$ac_lib
12514fi
12515rm -f core conftest.err conftest.$ac_objext \
12516 conftest$ac_exeext conftest.$ac_ext
12517 test "$ac_cv_lib_lex" != 'none needed' && break
12518 done
12519 LIBS=$ac_save_LIBS
12520
12521fi
12522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12523$as_echo "$ac_cv_lib_lex" >&6; }
12524 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12525fi
12526
12527
12528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12529$as_echo_n "checking whether yytext is a pointer... " >&6; }
12530if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12531 $as_echo_n "(cached) " >&6
12532else
12533 # POSIX says lex can declare yytext either as a pointer or an array; the
12534# default is implementation-dependent. Figure out which it is, since
12535# not all implementations provide the %pointer and %array declarations.
12536ac_cv_prog_lex_yytext_pointer=no
12537ac_save_LIBS=$LIBS
12538LIBS="$LEXLIB $ac_save_LIBS"
12539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540/* end confdefs.h. */
12541#define YYTEXT_POINTER 1
12542`cat $LEX_OUTPUT_ROOT.c`
12543_ACEOF
12544if ac_fn_c_try_link "$LINENO"; then :
12545 ac_cv_prog_lex_yytext_pointer=yes
12546fi
12547rm -f core conftest.err conftest.$ac_objext \
12548 conftest$ac_exeext conftest.$ac_ext
12549LIBS=$ac_save_LIBS
12550
12551fi
12552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12553$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12554if test $ac_cv_prog_lex_yytext_pointer = yes; then
12555
12556$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12557
12558fi
12559rm -f conftest.l $LEX_OUTPUT_ROOT.c
12560
12561fi
12562if test "$LEX" = :; then
12563 LEX=${am_missing_run}flex
12564fi
12565
12566ALL_LINGUAS="fr tr es rw id"
12567# If we haven't got the data from the intl directory,
12568# assume NLS is disabled.
12569USE_NLS=no
12570LIBINTL=
12571LIBINTL_DEP=
12572INCINTL=
12573XGETTEXT=
12574GMSGFMT=
12575POSUB=
12576
12577if test -f ../intl/config.intl; then
12578 . ../intl/config.intl
12579fi
12580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12581$as_echo_n "checking whether NLS is requested... " >&6; }
12582if test x"$USE_NLS" != xyes; then
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12584$as_echo "no" >&6; }
12585else
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12587$as_echo "yes" >&6; }
12588
12589$as_echo "#define ENABLE_NLS 1" >>confdefs.h
12590
12591
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12593$as_echo_n "checking for catalogs to be installed... " >&6; }
12594 # Look for .po and .gmo files in the source directory.
12595 CATALOGS=
12596 XLINGUAS=
12597 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12598 # If there aren't any .gmo files the shell will give us the
12599 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12600 # weeded out.
12601 case "$cat" in *\**)
12602 continue;;
12603 esac
12604 # The quadruple backslash is collapsed to a double backslash
12605 # by the backticks, then collapsed again by the double quotes,
12606 # leaving us with one backslash in the sed expression (right
12607 # before the dot that mustn't act as a wildcard).
12608 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12609 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12610 # The user is allowed to set LINGUAS to a list of languages to
12611 # install catalogs for. If it's empty that means "all of them."
12612 if test "x$LINGUAS" = x; then
12613 CATALOGS="$CATALOGS $cat"
12614 XLINGUAS="$XLINGUAS $lang"
12615 else
12616 case "$LINGUAS" in *$lang*)
12617 CATALOGS="$CATALOGS $cat"
12618 XLINGUAS="$XLINGUAS $lang"
12619 ;;
12620 esac
12621 fi
12622 done
12623 LINGUAS="$XLINGUAS"
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12625$as_echo "$LINGUAS" >&6; }
12626
12627
12628 DATADIRNAME=share
12629
12630 INSTOBJEXT=.mo
12631
12632 GENCAT=gencat
12633
12634 CATOBJEXT=.gmo
12635
12636fi
12637
12638 MKINSTALLDIRS=
12639 if test -n "$ac_aux_dir"; then
12640 case "$ac_aux_dir" in
12641 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12642 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12643 esac
12644 fi
12645 if test -z "$MKINSTALLDIRS"; then
12646 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12647 fi
12648
12649
12650
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12652$as_echo_n "checking whether NLS is requested... " >&6; }
12653 # Check whether --enable-nls was given.
12654if test "${enable_nls+set}" = set; then :
12655 enableval=$enable_nls; USE_NLS=$enableval
12656else
12657 USE_NLS=yes
12658fi
12659
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12661$as_echo "$USE_NLS" >&6; }
12662
12663
12664
12665
12666
12667
12668# Prepare PATH_SEPARATOR.
12669# The user is always right.
12670if test "${PATH_SEPARATOR+set}" != set; then
12671 echo "#! /bin/sh" >conf$$.sh
12672 echo "exit 0" >>conf$$.sh
12673 chmod +x conf$$.sh
12674 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12675 PATH_SEPARATOR=';'
12676 else
12677 PATH_SEPARATOR=:
12678 fi
12679 rm -f conf$$.sh
12680fi
12681
12682# Find out how to test for executable files. Don't use a zero-byte file,
12683# as systems may use methods other than mode bits to determine executability.
12684cat >conf$$.file <<_ASEOF
12685#! /bin/sh
12686exit 0
12687_ASEOF
12688chmod +x conf$$.file
12689if test -x conf$$.file >/dev/null 2>&1; then
12690 ac_executable_p="test -x"
12691else
12692 ac_executable_p="test -f"
12693fi
12694rm -f conf$$.file
12695
12696# Extract the first word of "msgfmt", so it can be a program name with args.
12697set dummy msgfmt; ac_word=$2
12698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12699$as_echo_n "checking for $ac_word... " >&6; }
12700if test "${ac_cv_path_MSGFMT+set}" = set; then :
12701 $as_echo_n "(cached) " >&6
12702else
12703 case "$MSGFMT" in
12704 [\\/]* | ?:[\\/]*)
12705 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12706 ;;
12707 *)
12708 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12709 for ac_dir in $PATH; do
12710 IFS="$ac_save_IFS"
12711 test -z "$ac_dir" && ac_dir=.
12712 for ac_exec_ext in '' $ac_executable_extensions; do
12713 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12714 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12715 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12716 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12717 break 2
12718 fi
12719 fi
12720 done
12721 done
12722 IFS="$ac_save_IFS"
12723 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12724 ;;
12725esac
12726fi
12727MSGFMT="$ac_cv_path_MSGFMT"
12728if test "$MSGFMT" != ":"; then
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12730$as_echo "$MSGFMT" >&6; }
12731else
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733$as_echo "no" >&6; }
12734fi
12735
12736 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12737set dummy gmsgfmt; ac_word=$2
12738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12739$as_echo_n "checking for $ac_word... " >&6; }
12740if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12741 $as_echo_n "(cached) " >&6
12742else
12743 case $GMSGFMT in
12744 [\\/]* | ?:[\\/]*)
12745 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12746 ;;
12747 *)
12748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12749for as_dir in $PATH
12750do
12751 IFS=$as_save_IFS
12752 test -z "$as_dir" && as_dir=.
12753 for ac_exec_ext in '' $ac_executable_extensions; do
12754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12755 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12757 break 2
12758 fi
12759done
12760 done
12761IFS=$as_save_IFS
12762
12763 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12764 ;;
12765esac
12766fi
12767GMSGFMT=$ac_cv_path_GMSGFMT
12768if test -n "$GMSGFMT"; then
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12770$as_echo "$GMSGFMT" >&6; }
12771else
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12773$as_echo "no" >&6; }
12774fi
12775
12776
12777
12778
12779# Prepare PATH_SEPARATOR.
12780# The user is always right.
12781if test "${PATH_SEPARATOR+set}" != set; then
12782 echo "#! /bin/sh" >conf$$.sh
12783 echo "exit 0" >>conf$$.sh
12784 chmod +x conf$$.sh
12785 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12786 PATH_SEPARATOR=';'
12787 else
12788 PATH_SEPARATOR=:
12789 fi
12790 rm -f conf$$.sh
12791fi
12792
12793# Find out how to test for executable files. Don't use a zero-byte file,
12794# as systems may use methods other than mode bits to determine executability.
12795cat >conf$$.file <<_ASEOF
12796#! /bin/sh
12797exit 0
12798_ASEOF
12799chmod +x conf$$.file
12800if test -x conf$$.file >/dev/null 2>&1; then
12801 ac_executable_p="test -x"
12802else
12803 ac_executable_p="test -f"
12804fi
12805rm -f conf$$.file
12806
12807# Extract the first word of "xgettext", so it can be a program name with args.
12808set dummy xgettext; ac_word=$2
12809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12810$as_echo_n "checking for $ac_word... " >&6; }
12811if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12812 $as_echo_n "(cached) " >&6
12813else
12814 case "$XGETTEXT" in
12815 [\\/]* | ?:[\\/]*)
12816 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12817 ;;
12818 *)
12819 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12820 for ac_dir in $PATH; do
12821 IFS="$ac_save_IFS"
12822 test -z "$ac_dir" && ac_dir=.
12823 for ac_exec_ext in '' $ac_executable_extensions; do
12824 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12825 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12826 (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
12827 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12828 break 2
12829 fi
12830 fi
12831 done
12832 done
12833 IFS="$ac_save_IFS"
12834 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12835 ;;
12836esac
12837fi
12838XGETTEXT="$ac_cv_path_XGETTEXT"
12839if test "$XGETTEXT" != ":"; then
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12841$as_echo "$XGETTEXT" >&6; }
12842else
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844$as_echo "no" >&6; }
12845fi
12846
12847 rm -f messages.po
12848
12849
12850# Prepare PATH_SEPARATOR.
12851# The user is always right.
12852if test "${PATH_SEPARATOR+set}" != set; then
12853 echo "#! /bin/sh" >conf$$.sh
12854 echo "exit 0" >>conf$$.sh
12855 chmod +x conf$$.sh
12856 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12857 PATH_SEPARATOR=';'
12858 else
12859 PATH_SEPARATOR=:
12860 fi
12861 rm -f conf$$.sh
12862fi
12863
12864# Find out how to test for executable files. Don't use a zero-byte file,
12865# as systems may use methods other than mode bits to determine executability.
12866cat >conf$$.file <<_ASEOF
12867#! /bin/sh
12868exit 0
12869_ASEOF
12870chmod +x conf$$.file
12871if test -x conf$$.file >/dev/null 2>&1; then
12872 ac_executable_p="test -x"
12873else
12874 ac_executable_p="test -f"
12875fi
12876rm -f conf$$.file
12877
12878# Extract the first word of "msgmerge", so it can be a program name with args.
12879set dummy msgmerge; ac_word=$2
12880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12881$as_echo_n "checking for $ac_word... " >&6; }
12882if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12883 $as_echo_n "(cached) " >&6
12884else
12885 case "$MSGMERGE" in
12886 [\\/]* | ?:[\\/]*)
12887 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12888 ;;
12889 *)
12890 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12891 for ac_dir in $PATH; do
12892 IFS="$ac_save_IFS"
12893 test -z "$ac_dir" && ac_dir=.
12894 for ac_exec_ext in '' $ac_executable_extensions; do
12895 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12896 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12897 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12898 break 2
12899 fi
12900 fi
12901 done
12902 done
12903 IFS="$ac_save_IFS"
12904 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12905 ;;
12906esac
12907fi
12908MSGMERGE="$ac_cv_path_MSGMERGE"
12909if test "$MSGMERGE" != ":"; then
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12911$as_echo "$MSGMERGE" >&6; }
12912else
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12914$as_echo "no" >&6; }
12915fi
12916
12917
12918 if test "$GMSGFMT" != ":"; then
12919 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12920 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12921 : ;
12922 else
12923 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12925$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12926 GMSGFMT=":"
12927 fi
12928 fi
12929
12930 if test "$XGETTEXT" != ":"; then
12931 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12932 (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
12933 : ;
12934 else
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12936$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12937 XGETTEXT=":"
12938 fi
12939 rm -f messages.po
12940 fi
12941
12942 ac_config_commands="$ac_config_commands default-1"
12943
12944
12945
12946
12947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12948$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12949 # Check whether --enable-maintainer-mode was given.
12950if test "${enable_maintainer_mode+set}" = set; then :
12951 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12952else
12953 USE_MAINTAINER_MODE=no
12954fi
12955
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12957$as_echo "$USE_MAINTAINER_MODE" >&6; }
12958 if test $USE_MAINTAINER_MODE = yes; then
12959 MAINTAINER_MODE_TRUE=
12960 MAINTAINER_MODE_FALSE='#'
12961else
12962 MAINTAINER_MODE_TRUE='#'
12963 MAINTAINER_MODE_FALSE=
12964fi
12965
12966 MAINT=$MAINTAINER_MODE_TRUE
12967
12968
12969 if false; then
12970 GENINSRC_NEVER_TRUE=
12971 GENINSRC_NEVER_FALSE='#'
12972else
12973 GENINSRC_NEVER_TRUE='#'
12974 GENINSRC_NEVER_FALSE=
12975fi
12976
12977
12978
12979for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h limits.h
12980do :
12981 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12982ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12983eval as_val=\$$as_ac_Header
12984 if test "x$as_val" = x""yes; then :
12985 cat >>confdefs.h <<_ACEOF
12986#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12987_ACEOF
12988
12989fi
12990
12991done
12992
12993
12994# Put this here so that autoconf's "cross-compiling" message doesn't confuse
12995# people who are not cross-compiling but are compiling cross-assemblers.
12996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
12997$as_echo_n "checking whether compiling a cross-assembler... " >&6; }
12998if test "${host}" = "${target}"; then
12999 cross_gas=no
13000else
13001 cross_gas=yes
13002
13003$as_echo "#define CROSS_COMPILE 1" >>confdefs.h
13004
13005fi
13006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13007$as_echo "$cross_gas" >&6; }
13008
13009# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13010# for constant arguments. Useless!
13011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13012$as_echo_n "checking for working alloca.h... " >&6; }
13013if test "${ac_cv_working_alloca_h+set}" = set; then :
13014 $as_echo_n "(cached) " >&6
13015else
13016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13017/* end confdefs.h. */
13018#include <alloca.h>
13019int
13020main ()
13021{
13022char *p = (char *) alloca (2 * sizeof (int));
13023 if (p) return 0;
13024 ;
13025 return 0;
13026}
13027_ACEOF
13028if ac_fn_c_try_link "$LINENO"; then :
13029 ac_cv_working_alloca_h=yes
13030else
13031 ac_cv_working_alloca_h=no
13032fi
13033rm -f core conftest.err conftest.$ac_objext \
13034 conftest$ac_exeext conftest.$ac_ext
13035fi
13036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13037$as_echo "$ac_cv_working_alloca_h" >&6; }
13038if test $ac_cv_working_alloca_h = yes; then
13039
13040$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13041
13042fi
13043
13044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13045$as_echo_n "checking for alloca... " >&6; }
13046if test "${ac_cv_func_alloca_works+set}" = set; then :
13047 $as_echo_n "(cached) " >&6
13048else
13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050/* end confdefs.h. */
13051#ifdef __GNUC__
13052# define alloca __builtin_alloca
13053#else
13054# ifdef _MSC_VER
13055# include <malloc.h>
13056# define alloca _alloca
13057# else
13058# ifdef HAVE_ALLOCA_H
13059# include <alloca.h>
13060# else
13061# ifdef _AIX
13062 #pragma alloca
13063# else
13064# ifndef alloca /* predefined by HP cc +Olibcalls */
13065char *alloca ();
13066# endif
13067# endif
13068# endif
13069# endif
13070#endif
13071
13072int
13073main ()
13074{
13075char *p = (char *) alloca (1);
13076 if (p) return 0;
13077 ;
13078 return 0;
13079}
13080_ACEOF
13081if ac_fn_c_try_link "$LINENO"; then :
13082 ac_cv_func_alloca_works=yes
13083else
13084 ac_cv_func_alloca_works=no
13085fi
13086rm -f core conftest.err conftest.$ac_objext \
13087 conftest$ac_exeext conftest.$ac_ext
13088fi
13089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13090$as_echo "$ac_cv_func_alloca_works" >&6; }
13091
13092if test $ac_cv_func_alloca_works = yes; then
13093
13094$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13095
13096else
13097 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13098# that cause trouble. Some versions do not even contain alloca or
13099# contain a buggy version. If you still want to use their alloca,
13100# use ar to extract alloca.o from them instead of compiling alloca.c.
13101
13102ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13103
13104$as_echo "#define C_ALLOCA 1" >>confdefs.h
13105
13106
13107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13108$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13109if test "${ac_cv_os_cray+set}" = set; then :
13110 $as_echo_n "(cached) " >&6
13111else
13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113/* end confdefs.h. */
13114#if defined CRAY && ! defined CRAY2
13115webecray
13116#else
13117wenotbecray
13118#endif
13119
13120_ACEOF
13121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13122 $EGREP "webecray" >/dev/null 2>&1; then :
13123 ac_cv_os_cray=yes
13124else
13125 ac_cv_os_cray=no
13126fi
13127rm -f conftest*
13128
13129fi
13130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13131$as_echo "$ac_cv_os_cray" >&6; }
13132if test $ac_cv_os_cray = yes; then
13133 for ac_func in _getb67 GETB67 getb67; do
13134 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13135ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13136eval as_val=\$$as_ac_var
13137 if test "x$as_val" = x""yes; then :
13138
13139cat >>confdefs.h <<_ACEOF
13140#define CRAY_STACKSEG_END $ac_func
13141_ACEOF
13142
13143 break
13144fi
13145
13146 done
13147fi
13148
13149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13150$as_echo_n "checking stack direction for C alloca... " >&6; }
13151if test "${ac_cv_c_stack_direction+set}" = set; then :
13152 $as_echo_n "(cached) " >&6
13153else
13154 if test "$cross_compiling" = yes; then :
13155 ac_cv_c_stack_direction=0
13156else
13157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158/* end confdefs.h. */
13159$ac_includes_default
13160int
13161find_stack_direction ()
13162{
13163 static char *addr = 0;
13164 auto char dummy;
13165 if (addr == 0)
13166 {
13167 addr = &dummy;
13168 return find_stack_direction ();
13169 }
13170 else
13171 return (&dummy > addr) ? 1 : -1;
13172}
13173
13174int
13175main ()
13176{
13177 return find_stack_direction () < 0;
13178}
13179_ACEOF
13180if ac_fn_c_try_run "$LINENO"; then :
13181 ac_cv_c_stack_direction=1
13182else
13183 ac_cv_c_stack_direction=-1
13184fi
13185rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13186 conftest.$ac_objext conftest.beam conftest.$ac_ext
13187fi
13188
13189fi
13190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13191$as_echo "$ac_cv_c_stack_direction" >&6; }
13192cat >>confdefs.h <<_ACEOF
13193#define STACK_DIRECTION $ac_cv_c_stack_direction
13194_ACEOF
13195
13196
13197fi
13198
13199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13200$as_echo_n "checking for inline... " >&6; }
13201if test "${ac_cv_c_inline+set}" = set; then :
13202 $as_echo_n "(cached) " >&6
13203else
13204 ac_cv_c_inline=no
13205for ac_kw in inline __inline__ __inline; do
13206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207/* end confdefs.h. */
13208#ifndef __cplusplus
13209typedef int foo_t;
13210static $ac_kw foo_t static_foo () {return 0; }
13211$ac_kw foo_t foo () {return 0; }
13212#endif
13213
13214_ACEOF
13215if ac_fn_c_try_compile "$LINENO"; then :
13216 ac_cv_c_inline=$ac_kw
13217fi
13218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13219 test "$ac_cv_c_inline" != no && break
13220done
13221
13222fi
13223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13224$as_echo "$ac_cv_c_inline" >&6; }
13225
13226case $ac_cv_c_inline in
13227 inline | yes) ;;
13228 *)
13229 case $ac_cv_c_inline in
13230 no) ac_val=;;
13231 *) ac_val=$ac_cv_c_inline;;
13232 esac
13233 cat >>confdefs.h <<_ACEOF
13234#ifndef __cplusplus
13235#define inline $ac_val
13236#endif
13237_ACEOF
13238 ;;
13239esac
13240
13241
13242# VMS doesn't have unlink.
13243for ac_func in unlink remove
13244do :
13245 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13246ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13247eval as_val=\$$as_ac_var
13248 if test "x$as_val" = x""yes; then :
13249 cat >>confdefs.h <<_ACEOF
13250#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13251_ACEOF
13252 break
13253fi
13254done
13255
13256
13257# Some systems don't have sbrk().
13258for ac_func in sbrk
13259do :
13260 ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
13261if test "x$ac_cv_func_sbrk" = x""yes; then :
13262 cat >>confdefs.h <<_ACEOF
13263#define HAVE_SBRK 1
13264_ACEOF
13265
13266fi
13267done
13268
13269
13270# do we need the math library?
13271case "${need_libm}" in
13272yes)
13273 LIBM=
13274case $host in
13275*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
13276 # These system don't have libm, or don't need it
13277 ;;
13278*-ncr-sysv4.3*)
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13280$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13281if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
13282 $as_echo_n "(cached) " >&6
13283else
13284 ac_check_lib_save_LIBS=$LIBS
13285LIBS="-lmw $LIBS"
13286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287/* end confdefs.h. */
13288
13289/* Override any GCC internal prototype to avoid an error.
13290 Use char because int might match the return type of a GCC
13291 builtin and then its argument prototype would still apply. */
13292#ifdef __cplusplus
13293extern "C"
13294#endif
13295char _mwvalidcheckl ();
13296int
13297main ()
13298{
13299return _mwvalidcheckl ();
13300 ;
13301 return 0;
13302}
13303_ACEOF
13304if ac_fn_c_try_link "$LINENO"; then :
13305 ac_cv_lib_mw__mwvalidcheckl=yes
13306else
13307 ac_cv_lib_mw__mwvalidcheckl=no
13308fi
13309rm -f core conftest.err conftest.$ac_objext \
13310 conftest$ac_exeext conftest.$ac_ext
13311LIBS=$ac_check_lib_save_LIBS
13312fi
13313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13314$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13315if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
13316 LIBM="-lmw"
13317fi
13318
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13320$as_echo_n "checking for cos in -lm... " >&6; }
13321if test "${ac_cv_lib_m_cos+set}" = set; then :
13322 $as_echo_n "(cached) " >&6
13323else
13324 ac_check_lib_save_LIBS=$LIBS
13325LIBS="-lm $LIBS"
13326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13327/* end confdefs.h. */
13328
13329/* Override any GCC internal prototype to avoid an error.
13330 Use char because int might match the return type of a GCC
13331 builtin and then its argument prototype would still apply. */
13332#ifdef __cplusplus
13333extern "C"
13334#endif
13335char cos ();
13336int
13337main ()
13338{
13339return cos ();
13340 ;
13341 return 0;
13342}
13343_ACEOF
13344if ac_fn_c_try_link "$LINENO"; then :
13345 ac_cv_lib_m_cos=yes
13346else
13347 ac_cv_lib_m_cos=no
13348fi
13349rm -f core conftest.err conftest.$ac_objext \
13350 conftest$ac_exeext conftest.$ac_ext
13351LIBS=$ac_check_lib_save_LIBS
13352fi
13353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13354$as_echo "$ac_cv_lib_m_cos" >&6; }
13355if test "x$ac_cv_lib_m_cos" = x""yes; then :
13356 LIBM="$LIBM -lm"
13357fi
13358
13359 ;;
13360*)
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13362$as_echo_n "checking for cos in -lm... " >&6; }
13363if test "${ac_cv_lib_m_cos+set}" = set; then :
13364 $as_echo_n "(cached) " >&6
13365else
13366 ac_check_lib_save_LIBS=$LIBS
13367LIBS="-lm $LIBS"
13368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13369/* end confdefs.h. */
13370
13371/* Override any GCC internal prototype to avoid an error.
13372 Use char because int might match the return type of a GCC
13373 builtin and then its argument prototype would still apply. */
13374#ifdef __cplusplus
13375extern "C"
13376#endif
13377char cos ();
13378int
13379main ()
13380{
13381return cos ();
13382 ;
13383 return 0;
13384}
13385_ACEOF
13386if ac_fn_c_try_link "$LINENO"; then :
13387 ac_cv_lib_m_cos=yes
13388else
13389 ac_cv_lib_m_cos=no
13390fi
13391rm -f core conftest.err conftest.$ac_objext \
13392 conftest$ac_exeext conftest.$ac_ext
13393LIBS=$ac_check_lib_save_LIBS
13394fi
13395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13396$as_echo "$ac_cv_lib_m_cos" >&6; }
13397if test "x$ac_cv_lib_m_cos" = x""yes; then :
13398 LIBM="-lm"
13399fi
13400
13401 ;;
13402esac
13403
13404
13405
13406 ;;
13407esac
13408
13409# Some non-ANSI preprocessors botch requoting inside strings. That's bad
13410# enough, but on some of those systems, the assert macro relies on requoting
13411# working properly!
13412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
13413$as_echo_n "checking for working assert macro... " >&6; }
13414if test "${gas_cv_assert_ok+set}" = set; then :
13415 $as_echo_n "(cached) " >&6
13416else
13417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418/* end confdefs.h. */
13419#include <assert.h>
13420#include <stdio.h>
13421int
13422main ()
13423{
13424
13425/* check for requoting problems */
13426static int a, b, c, d;
13427static char *s;
13428assert (!strcmp(s, "foo bar baz quux"));
13429/* check for newline handling */
13430assert (a == b
13431 || c == d);
13432
13433 ;
13434 return 0;
13435}
13436_ACEOF
13437if ac_fn_c_try_link "$LINENO"; then :
13438 gas_cv_assert_ok=yes
13439else
13440 gas_cv_assert_ok=no
13441fi
13442rm -f core conftest.err conftest.$ac_objext \
13443 conftest$ac_exeext conftest.$ac_ext
13444fi
13445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
13446$as_echo "$gas_cv_assert_ok" >&6; }
13447test $gas_cv_assert_ok = yes ||
13448$as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
13449
13450
13451
13452# On some systems, the system header files may not declare malloc, realloc,
13453# and free. There are places where gas needs these functions to have been
13454# declared -- such as when taking their addresses.
13455gas_test_headers="
13456#ifdef HAVE_MEMORY_H
13457#include <memory.h>
13458#endif
13459#ifdef HAVE_STRING_H
13460#include <string.h>
13461#else
13462#ifdef HAVE_STRINGS_H
13463#include <strings.h>
13464#endif
13465#endif
13466#ifdef HAVE_STDLIB_H
13467#include <stdlib.h>
13468#endif
13469#ifdef HAVE_UNISTD_H
13470#include <unistd.h>
13471#endif
13472"
13473
13474# Does errno.h declare errno, or do we have to add a separate declaration
13475# for it?
13476
13477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
13478$as_echo_n "checking whether declaration is required for errno... " >&6; }
13479if test "${gas_cv_decl_needed_errno+set}" = set; then :
13480 $as_echo_n "(cached) " >&6
13481else
13482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13483/* end confdefs.h. */
13484
13485#ifdef HAVE_ERRNO_H
13486#include <errno.h>
13487#endif
13488
13489int
13490main ()
13491{
13492
13493typedef int f;
13494f x;
13495x = (f) errno;
13496
13497 ;
13498 return 0;
13499}
13500_ACEOF
13501if ac_fn_c_try_link "$LINENO"; then :
13502 gas_cv_decl_needed_errno=no
13503else
13504 gas_cv_decl_needed_errno=yes
13505fi
13506rm -f core conftest.err conftest.$ac_objext \
13507 conftest$ac_exeext conftest.$ac_ext
13508fi
13509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
13510$as_echo "$gas_cv_decl_needed_errno" >&6; }
13511if test $gas_cv_decl_needed_errno = yes; then
13512
13513$as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
13514
13515fi
13516
13517
13518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13519$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13520if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then :
13521 $as_echo_n "(cached) " >&6
13522else
13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524/* end confdefs.h. */
13525#include <unistd.h>
13526int
13527main ()
13528{
13529extern int getopt (int, char *const*, const char *);
13530 ;
13531 return 0;
13532}
13533_ACEOF
13534if ac_fn_c_try_compile "$LINENO"; then :
13535 gas_cv_decl_getopt_unistd_h=yes
13536else
13537 gas_cv_decl_getopt_unistd_h=no
13538fi
13539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13540fi
13541
13542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
13543$as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
13544if test $gas_cv_decl_getopt_unistd_h = yes; then
13545
13546$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13547
13548fi
13549
13550
13551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
13552$as_echo_n "checking whether declaration is required for environ... " >&6; }
13553if test "${gas_cv_decl_needed_environ+set}" = set; then :
13554 $as_echo_n "(cached) " >&6
13555else
13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557/* end confdefs.h. */
13558$gas_test_headers
13559int
13560main ()
13561{
13562
13563typedef char **f;
13564f x;
13565x = (f) environ;
13566
13567 ;
13568 return 0;
13569}
13570_ACEOF
13571if ac_fn_c_try_link "$LINENO"; then :
13572 gas_cv_decl_needed_environ=no
13573else
13574 gas_cv_decl_needed_environ=yes
13575fi
13576rm -f core conftest.err conftest.$ac_objext \
13577 conftest$ac_exeext conftest.$ac_ext
13578fi
13579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
13580$as_echo "$gas_cv_decl_needed_environ" >&6; }
13581if test $gas_cv_decl_needed_environ = yes; then
13582
13583$as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
13584
13585fi
13586
13587
13588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
13589$as_echo_n "checking whether declaration is required for ffs... " >&6; }
13590if test "${gas_cv_decl_needed_ffs+set}" = set; then :
13591 $as_echo_n "(cached) " >&6
13592else
13593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13594/* end confdefs.h. */
13595$gas_test_headers
13596int
13597main ()
13598{
13599
13600typedef int (*f)(int);
13601f x;
13602x = (f) ffs;
13603
13604 ;
13605 return 0;
13606}
13607_ACEOF
13608if ac_fn_c_try_link "$LINENO"; then :
13609 gas_cv_decl_needed_ffs=no
13610else
13611 gas_cv_decl_needed_ffs=yes
13612fi
13613rm -f core conftest.err conftest.$ac_objext \
13614 conftest$ac_exeext conftest.$ac_ext
13615fi
13616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
13617$as_echo "$gas_cv_decl_needed_ffs" >&6; }
13618if test $gas_cv_decl_needed_ffs = yes; then
13619
13620$as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
13621
13622fi
13623
13624
13625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
13626$as_echo_n "checking whether declaration is required for free... " >&6; }
13627if test "${gas_cv_decl_needed_free+set}" = set; then :
13628 $as_echo_n "(cached) " >&6
13629else
13630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13631/* end confdefs.h. */
13632$gas_test_headers
13633int
13634main ()
13635{
13636
13637typedef void (*f)();
13638f x;
13639x = (f) free;
13640
13641 ;
13642 return 0;
13643}
13644_ACEOF
13645if ac_fn_c_try_link "$LINENO"; then :
13646 gas_cv_decl_needed_free=no
13647else
13648 gas_cv_decl_needed_free=yes
13649fi
13650rm -f core conftest.err conftest.$ac_objext \
13651 conftest$ac_exeext conftest.$ac_ext
13652fi
13653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
13654$as_echo "$gas_cv_decl_needed_free" >&6; }
13655if test $gas_cv_decl_needed_free = yes; then
13656
13657$as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
13658
13659fi
13660
13661
13662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
13663$as_echo_n "checking whether declaration is required for malloc... " >&6; }
13664if test "${gas_cv_decl_needed_malloc+set}" = set; then :
13665 $as_echo_n "(cached) " >&6
13666else
13667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13668/* end confdefs.h. */
13669$gas_test_headers
13670int
13671main ()
13672{
13673
13674typedef char *(*f)();
13675f x;
13676x = (f) malloc;
13677
13678 ;
13679 return 0;
13680}
13681_ACEOF
13682if ac_fn_c_try_link "$LINENO"; then :
13683 gas_cv_decl_needed_malloc=no
13684else
13685 gas_cv_decl_needed_malloc=yes
13686fi
13687rm -f core conftest.err conftest.$ac_objext \
13688 conftest$ac_exeext conftest.$ac_ext
13689fi
13690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
13691$as_echo "$gas_cv_decl_needed_malloc" >&6; }
13692if test $gas_cv_decl_needed_malloc = yes; then
13693
13694$as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
13695
13696fi
13697
13698
13699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
13700$as_echo_n "checking whether declaration is required for sbrk... " >&6; }
13701if test "${gas_cv_decl_needed_sbrk+set}" = set; then :
13702 $as_echo_n "(cached) " >&6
13703else
13704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705/* end confdefs.h. */
13706$gas_test_headers
13707int
13708main ()
13709{
13710
13711typedef char *(*f)();
13712f x;
13713x = (f) sbrk;
13714
13715 ;
13716 return 0;
13717}
13718_ACEOF
13719if ac_fn_c_try_link "$LINENO"; then :
13720 gas_cv_decl_needed_sbrk=no
13721else
13722 gas_cv_decl_needed_sbrk=yes
13723fi
13724rm -f core conftest.err conftest.$ac_objext \
13725 conftest$ac_exeext conftest.$ac_ext
13726fi
13727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
13728$as_echo "$gas_cv_decl_needed_sbrk" >&6; }
13729if test $gas_cv_decl_needed_sbrk = yes; then
13730
13731$as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
13732
13733fi
13734
13735
13736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
13737$as_echo_n "checking whether declaration is required for strstr... " >&6; }
13738if test "${gas_cv_decl_needed_strstr+set}" = set; then :
13739 $as_echo_n "(cached) " >&6
13740else
13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742/* end confdefs.h. */
13743$gas_test_headers
13744int
13745main ()
13746{
13747
13748typedef char *(*f)();
13749f x;
13750x = (f) strstr;
13751
13752 ;
13753 return 0;
13754}
13755_ACEOF
13756if ac_fn_c_try_link "$LINENO"; then :
13757 gas_cv_decl_needed_strstr=no
13758else
13759 gas_cv_decl_needed_strstr=yes
13760fi
13761rm -f core conftest.err conftest.$ac_objext \
13762 conftest$ac_exeext conftest.$ac_ext
13763fi
13764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
13765$as_echo "$gas_cv_decl_needed_strstr" >&6; }
13766if test $gas_cv_decl_needed_strstr = yes; then
13767
13768$as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
13769
13770fi
13771
13772
13773ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13774if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
13775 ac_have_decl=1
13776else
13777 ac_have_decl=0
13778fi
13779
13780cat >>confdefs.h <<_ACEOF
13781#define HAVE_DECL_VSNPRINTF $ac_have_decl
13782_ACEOF
13783
13784
13785
13786case "${host}" in
13787*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13788
13789$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13790 ;;
13791esac
13792
13793
13794
13795
13796
13797
13798
13799
13800ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13801
13802ac_config_commands="$ac_config_commands default"
13803
13804
13805cat >confcache <<\_ACEOF
13806# This file is a shell script that caches the results of configure
13807# tests run on this system so they can be shared between configure
13808# scripts and configure runs, see configure's option --config-cache.
13809# It is not useful on other systems. If it contains results you don't
13810# want to keep, you may remove or edit it.
13811#
13812# config.status only pays attention to the cache file if you give it
13813# the --recheck option to rerun configure.
13814#
13815# `ac_cv_env_foo' variables (set or unset) will be overridden when
13816# loading this file, other *unset* `ac_cv_foo' will be assigned the
13817# following values.
13818
13819_ACEOF
13820
13821# The following way of writing the cache mishandles newlines in values,
13822# but we know of no workaround that is simple, portable, and efficient.
13823# So, we kill variables containing newlines.
13824# Ultrix sh set writes to stderr and can't be redirected directly,
13825# and sets the high bit in the cache file unless we assign to the vars.
13826(
13827 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13828 eval ac_val=\$$ac_var
13829 case $ac_val in #(
13830 *${as_nl}*)
13831 case $ac_var in #(
13832 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13833$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13834 esac
13835 case $ac_var in #(
13836 _ | IFS | as_nl) ;; #(
13837 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13838 *) { eval $ac_var=; unset $ac_var;} ;;
13839 esac ;;
13840 esac
13841 done
13842
13843 (set) 2>&1 |
13844 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13845 *${as_nl}ac_space=\ *)
13846 # `set' does not quote correctly, so add quotes: double-quote
13847 # substitution turns \\\\ into \\, and sed turns \\ into \.
13848 sed -n \
13849 "s/'/'\\\\''/g;
13850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13851 ;; #(
13852 *)
13853 # `set' quotes correctly as required by POSIX, so do not add quotes.
13854 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13855 ;;
13856 esac |
13857 sort
13858) |
13859 sed '
13860 /^ac_cv_env_/b end
13861 t clear
13862 :clear
13863 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13864 t end
13865 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13866 :end' >>confcache
13867if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13868 if test -w "$cache_file"; then
13869 test "x$cache_file" != "x/dev/null" &&
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13871$as_echo "$as_me: updating cache $cache_file" >&6;}
13872 cat confcache >$cache_file
13873 else
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13875$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13876 fi
13877fi
13878rm -f confcache
13879
13880test "x$prefix" = xNONE && prefix=$ac_default_prefix
13881# Let make expand exec_prefix.
13882test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13883
13884DEFS=-DHAVE_CONFIG_H
13885
13886ac_libobjs=
13887ac_ltlibobjs=
13888for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13889 # 1. Remove the extension, and $U if already installed.
13890 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13891 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13892 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13893 # will be set to the directory where LIBOBJS objects are built.
13894 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13895 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13896done
13897LIBOBJS=$ac_libobjs
13898
13899LTLIBOBJS=$ac_ltlibobjs
13900
13901
13902if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13903 as_fn_error "conditional \"AMDEP\" was never defined.
13904Usually this means the macro was only invoked conditionally." "$LINENO" 5
13905fi
13906if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13907 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13908Usually this means the macro was only invoked conditionally." "$LINENO" 5
13909fi
13910 if test -n "$EXEEXT"; then
13911 am__EXEEXT_TRUE=
13912 am__EXEEXT_FALSE='#'
13913else
13914 am__EXEEXT_TRUE='#'
13915 am__EXEEXT_FALSE=
13916fi
13917
13918
13919if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13920 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13921Usually this means the macro was only invoked conditionally." "$LINENO" 5
13922fi
13923if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13924 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
13925Usually this means the macro was only invoked conditionally." "$LINENO" 5
13926fi
13927
13928: ${CONFIG_STATUS=./config.status}
13929ac_write_fail=0
13930ac_clean_files_save=$ac_clean_files
13931ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13932{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13933$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13934as_write_fail=0
13935cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13936#! $SHELL
13937# Generated by $as_me.
13938# Run this file to recreate the current configuration.
13939# Compiler output produced by configure, useful for debugging
13940# configure, is in config.log if it exists.
13941
13942debug=false
13943ac_cs_recheck=false
13944ac_cs_silent=false
13945
13946SHELL=\${CONFIG_SHELL-$SHELL}
13947export SHELL
13948_ASEOF
13949cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13950## -------------------- ##
13951## M4sh Initialization. ##
13952## -------------------- ##
13953
13954# Be more Bourne compatible
13955DUALCASE=1; export DUALCASE # for MKS sh
13956if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13957 emulate sh
13958 NULLCMD=:
13959 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13960 # is contrary to our usage. Disable this feature.
13961 alias -g '${1+"$@"}'='"$@"'
13962 setopt NO_GLOB_SUBST
13963else
13964 case `(set -o) 2>/dev/null` in #(
13965 *posix*) :
13966 set -o posix ;; #(
13967 *) :
13968 ;;
13969esac
13970fi
13971
13972
13973as_nl='
13974'
13975export as_nl
13976# Printing a long string crashes Solaris 7 /usr/bin/printf.
13977as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13978as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13979as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13980# Prefer a ksh shell builtin over an external printf program on Solaris,
13981# but without wasting forks for bash or zsh.
13982if test -z "$BASH_VERSION$ZSH_VERSION" \
13983 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13984 as_echo='print -r --'
13985 as_echo_n='print -rn --'
13986elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13987 as_echo='printf %s\n'
13988 as_echo_n='printf %s'
13989else
13990 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13991 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13992 as_echo_n='/usr/ucb/echo -n'
13993 else
13994 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13995 as_echo_n_body='eval
13996 arg=$1;
13997 case $arg in #(
13998 *"$as_nl"*)
13999 expr "X$arg" : "X\\(.*\\)$as_nl";
14000 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14001 esac;
14002 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14003 '
14004 export as_echo_n_body
14005 as_echo_n='sh -c $as_echo_n_body as_echo'
14006 fi
14007 export as_echo_body
14008 as_echo='sh -c $as_echo_body as_echo'
14009fi
14010
14011# The user is always right.
14012if test "${PATH_SEPARATOR+set}" != set; then
14013 PATH_SEPARATOR=:
14014 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14015 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14016 PATH_SEPARATOR=';'
14017 }
14018fi
14019
14020
14021# IFS
14022# We need space, tab and new line, in precisely that order. Quoting is
14023# there to prevent editors from complaining about space-tab.
14024# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14025# splitting by setting IFS to empty value.)
14026IFS=" "" $as_nl"
14027
14028# Find who we are. Look in the path if we contain no directory separator.
14029case $0 in #((
14030 *[\\/]* ) as_myself=$0 ;;
14031 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14032for as_dir in $PATH
14033do
14034 IFS=$as_save_IFS
14035 test -z "$as_dir" && as_dir=.
14036 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14037 done
14038IFS=$as_save_IFS
14039
14040 ;;
14041esac
14042# We did not find ourselves, most probably we were run as `sh COMMAND'
14043# in which case we are not to be found in the path.
14044if test "x$as_myself" = x; then
14045 as_myself=$0
14046fi
14047if test ! -f "$as_myself"; then
14048 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14049 exit 1
14050fi
14051
14052# Unset variables that we do not need and which cause bugs (e.g. in
14053# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14054# suppresses any "Segmentation fault" message there. '((' could
14055# trigger a bug in pdksh 5.2.14.
14056for as_var in BASH_ENV ENV MAIL MAILPATH
14057do eval test x\${$as_var+set} = xset \
14058 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14059done
14060PS1='$ '
14061PS2='> '
14062PS4='+ '
14063
14064# NLS nuisances.
14065LC_ALL=C
14066export LC_ALL
14067LANGUAGE=C
14068export LANGUAGE
14069
14070# CDPATH.
14071(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14072
14073
14074# as_fn_error ERROR [LINENO LOG_FD]
14075# ---------------------------------
14076# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14077# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14078# script with status $?, using 1 if that was 0.
14079as_fn_error ()
14080{
14081 as_status=$?; test $as_status -eq 0 && as_status=1
14082 if test "$3"; then
14083 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14084 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14085 fi
14086 $as_echo "$as_me: error: $1" >&2
14087 as_fn_exit $as_status
14088} # as_fn_error
14089
14090
14091# as_fn_set_status STATUS
14092# -----------------------
14093# Set $? to STATUS, without forking.
14094as_fn_set_status ()
14095{
14096 return $1
14097} # as_fn_set_status
14098
14099# as_fn_exit STATUS
14100# -----------------
14101# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14102as_fn_exit ()
14103{
14104 set +e
14105 as_fn_set_status $1
14106 exit $1
14107} # as_fn_exit
14108
14109# as_fn_unset VAR
14110# ---------------
14111# Portably unset VAR.
14112as_fn_unset ()
14113{
14114 { eval $1=; unset $1;}
14115}
14116as_unset=as_fn_unset
14117# as_fn_append VAR VALUE
14118# ----------------------
14119# Append the text in VALUE to the end of the definition contained in VAR. Take
14120# advantage of any shell optimizations that allow amortized linear growth over
14121# repeated appends, instead of the typical quadratic growth present in naive
14122# implementations.
14123if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14124 eval 'as_fn_append ()
14125 {
14126 eval $1+=\$2
14127 }'
14128else
14129 as_fn_append ()
14130 {
14131 eval $1=\$$1\$2
14132 }
14133fi # as_fn_append
14134
14135# as_fn_arith ARG...
14136# ------------------
14137# Perform arithmetic evaluation on the ARGs, and store the result in the
14138# global $as_val. Take advantage of shells that can avoid forks. The arguments
14139# must be portable across $(()) and expr.
14140if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14141 eval 'as_fn_arith ()
14142 {
14143 as_val=$(( $* ))
14144 }'
14145else
14146 as_fn_arith ()
14147 {
14148 as_val=`expr "$@" || test $? -eq 1`
14149 }
14150fi # as_fn_arith
14151
14152
14153if expr a : '\(a\)' >/dev/null 2>&1 &&
14154 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14155 as_expr=expr
14156else
14157 as_expr=false
14158fi
14159
14160if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14161 as_basename=basename
14162else
14163 as_basename=false
14164fi
14165
14166if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14167 as_dirname=dirname
14168else
14169 as_dirname=false
14170fi
14171
14172as_me=`$as_basename -- "$0" ||
14173$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14174 X"$0" : 'X\(//\)$' \| \
14175 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14176$as_echo X/"$0" |
14177 sed '/^.*\/\([^/][^/]*\)\/*$/{
14178 s//\1/
14179 q
14180 }
14181 /^X\/\(\/\/\)$/{
14182 s//\1/
14183 q
14184 }
14185 /^X\/\(\/\).*/{
14186 s//\1/
14187 q
14188 }
14189 s/.*/./; q'`
14190
14191# Avoid depending upon Character Ranges.
14192as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14193as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14194as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14195as_cr_digits='0123456789'
14196as_cr_alnum=$as_cr_Letters$as_cr_digits
14197
14198ECHO_C= ECHO_N= ECHO_T=
14199case `echo -n x` in #(((((
14200-n*)
14201 case `echo 'xy\c'` in
14202 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14203 xy) ECHO_C='\c';;
14204 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14205 ECHO_T=' ';;
14206 esac;;
14207*)
14208 ECHO_N='-n';;
14209esac
14210
14211rm -f conf$$ conf$$.exe conf$$.file
14212if test -d conf$$.dir; then
14213 rm -f conf$$.dir/conf$$.file
14214else
14215 rm -f conf$$.dir
14216 mkdir conf$$.dir 2>/dev/null
14217fi
14218if (echo >conf$$.file) 2>/dev/null; then
14219 if ln -s conf$$.file conf$$ 2>/dev/null; then
14220 as_ln_s='ln -s'
14221 # ... but there are two gotchas:
14222 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14223 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14224 # In both cases, we have to default to `cp -p'.
14225 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14226 as_ln_s='cp -p'
14227 elif ln conf$$.file conf$$ 2>/dev/null; then
14228 as_ln_s=ln
14229 else
14230 as_ln_s='cp -p'
14231 fi
14232else
14233 as_ln_s='cp -p'
14234fi
14235rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14236rmdir conf$$.dir 2>/dev/null
14237
14238
14239# as_fn_mkdir_p
14240# -------------
14241# Create "$as_dir" as a directory, including parents if necessary.
14242as_fn_mkdir_p ()
14243{
14244
14245 case $as_dir in #(
14246 -*) as_dir=./$as_dir;;
14247 esac
14248 test -d "$as_dir" || eval $as_mkdir_p || {
14249 as_dirs=
14250 while :; do
14251 case $as_dir in #(
14252 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14253 *) as_qdir=$as_dir;;
14254 esac
14255 as_dirs="'$as_qdir' $as_dirs"
14256 as_dir=`$as_dirname -- "$as_dir" ||
14257$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14258 X"$as_dir" : 'X\(//\)[^/]' \| \
14259 X"$as_dir" : 'X\(//\)$' \| \
14260 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14261$as_echo X"$as_dir" |
14262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14263 s//\1/
14264 q
14265 }
14266 /^X\(\/\/\)[^/].*/{
14267 s//\1/
14268 q
14269 }
14270 /^X\(\/\/\)$/{
14271 s//\1/
14272 q
14273 }
14274 /^X\(\/\).*/{
14275 s//\1/
14276 q
14277 }
14278 s/.*/./; q'`
14279 test -d "$as_dir" && break
14280 done
14281 test -z "$as_dirs" || eval "mkdir $as_dirs"
14282 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14283
14284
14285} # as_fn_mkdir_p
14286if mkdir -p . 2>/dev/null; then
14287 as_mkdir_p='mkdir -p "$as_dir"'
14288else
14289 test -d ./-p && rmdir ./-p
14290 as_mkdir_p=false
14291fi
14292
14293if test -x / >/dev/null 2>&1; then
14294 as_test_x='test -x'
14295else
14296 if ls -dL / >/dev/null 2>&1; then
14297 as_ls_L_option=L
14298 else
14299 as_ls_L_option=
14300 fi
14301 as_test_x='
14302 eval sh -c '\''
14303 if test -d "$1"; then
14304 test -d "$1/.";
14305 else
14306 case $1 in #(
14307 -*)set "./$1";;
14308 esac;
14309 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14310 ???[sx]*):;;*)false;;esac;fi
14311 '\'' sh
14312 '
14313fi
14314as_executable_p=$as_test_x
14315
14316# Sed expression to map a string onto a valid CPP name.
14317as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14318
14319# Sed expression to map a string onto a valid variable name.
14320as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14321
14322
14323exec 6>&1
14324## ----------------------------------- ##
14325## Main body of $CONFIG_STATUS script. ##
14326## ----------------------------------- ##
14327_ASEOF
14328test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14329
14330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14331# Save the log message, to keep $0 and so on meaningful, and to
14332# report actual input values of CONFIG_FILES etc. instead of their
14333# values after options handling.
14334ac_log="
14335This file was extended by $as_me, which was
14336generated by GNU Autoconf 2.64. Invocation command line was
14337
14338 CONFIG_FILES = $CONFIG_FILES
14339 CONFIG_HEADERS = $CONFIG_HEADERS
14340 CONFIG_LINKS = $CONFIG_LINKS
14341 CONFIG_COMMANDS = $CONFIG_COMMANDS
14342 $ $0 $@
14343
14344on `(hostname || uname -n) 2>/dev/null | sed 1q`
14345"
14346
14347_ACEOF
14348
14349case $ac_config_files in *"
14350"*) set x $ac_config_files; shift; ac_config_files=$*;;
14351esac
14352
14353case $ac_config_headers in *"
14354"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14355esac
14356
14357
14358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14359# Files that config.status was made for.
14360config_files="$ac_config_files"
14361config_headers="$ac_config_headers"
14362config_commands="$ac_config_commands"
14363
14364_ACEOF
14365
14366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14367ac_cs_usage="\
14368\`$as_me' instantiates files and other configuration actions
14369from templates according to the current configuration. Unless the files
14370and actions are specified as TAGs, all are instantiated by default.
14371
14372Usage: $0 [OPTION]... [TAG]...
14373
14374 -h, --help print this help, then exit
14375 -V, --version print version number and configuration settings, then exit
14376 -q, --quiet, --silent
14377 do not print progress messages
14378 -d, --debug don't remove temporary files
14379 --recheck update $as_me by reconfiguring in the same conditions
14380 --file=FILE[:TEMPLATE]
14381 instantiate the configuration file FILE
14382 --header=FILE[:TEMPLATE]
14383 instantiate the configuration header FILE
14384
14385Configuration files:
14386$config_files
14387
14388Configuration headers:
14389$config_headers
14390
14391Configuration commands:
14392$config_commands
14393
14394Report bugs to the package provider."
14395
14396_ACEOF
14397cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14398ac_cs_version="\\
14399config.status
14400configured by $0, generated by GNU Autoconf 2.64,
14401 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14402
14403Copyright (C) 2009 Free Software Foundation, Inc.
14404This config.status script is free software; the Free Software Foundation
14405gives unlimited permission to copy, distribute and modify it."
14406
14407ac_pwd='$ac_pwd'
14408srcdir='$srcdir'
14409INSTALL='$INSTALL'
14410MKDIR_P='$MKDIR_P'
14411AWK='$AWK'
14412test -n "\$AWK" || AWK=awk
14413_ACEOF
14414
14415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14416# The default lists apply if the user does not specify any file.
14417ac_need_defaults=:
14418while test $# != 0
14419do
14420 case $1 in
14421 --*=*)
14422 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14423 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14424 ac_shift=:
14425 ;;
14426 *)
14427 ac_option=$1
14428 ac_optarg=$2
14429 ac_shift=shift
14430 ;;
14431 esac
14432
14433 case $ac_option in
14434 # Handling of the options.
14435 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14436 ac_cs_recheck=: ;;
14437 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14438 $as_echo "$ac_cs_version"; exit ;;
14439 --debug | --debu | --deb | --de | --d | -d )
14440 debug=: ;;
14441 --file | --fil | --fi | --f )
14442 $ac_shift
14443 case $ac_optarg in
14444 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14445 esac
14446 as_fn_append CONFIG_FILES " '$ac_optarg'"
14447 ac_need_defaults=false;;
14448 --header | --heade | --head | --hea )
14449 $ac_shift
14450 case $ac_optarg in
14451 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14452 esac
14453 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14454 ac_need_defaults=false;;
14455 --he | --h)
14456 # Conflict between --help and --header
14457 as_fn_error "ambiguous option: \`$1'
14458Try \`$0 --help' for more information.";;
14459 --help | --hel | -h )
14460 $as_echo "$ac_cs_usage"; exit ;;
14461 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14462 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14463 ac_cs_silent=: ;;
14464
14465 # This is an error.
14466 -*) as_fn_error "unrecognized option: \`$1'
14467Try \`$0 --help' for more information." ;;
14468
14469 *) as_fn_append ac_config_targets " $1"
14470 ac_need_defaults=false ;;
14471
14472 esac
14473 shift
14474done
14475
14476ac_configure_extra_args=
14477
14478if $ac_cs_silent; then
14479 exec 6>/dev/null
14480 ac_configure_extra_args="$ac_configure_extra_args --silent"
14481fi
14482
14483_ACEOF
14484cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14485if \$ac_cs_recheck; then
14486 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14487 shift
14488 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14489 CONFIG_SHELL='$SHELL'
14490 export CONFIG_SHELL
14491 exec "\$@"
14492fi
14493
14494_ACEOF
14495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14496exec 5>>config.log
14497{
14498 echo
14499 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14500## Running $as_me. ##
14501_ASBOX
14502 $as_echo "$ac_log"
14503} >&5
14504
14505_ACEOF
14506cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14507#
14508# INIT-COMMANDS
14509#
14510AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14511
14512
14513# The HP-UX ksh and POSIX shell print the target directory to stdout
14514# if CDPATH is set.
14515(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14516
14517sed_quote_subst='$sed_quote_subst'
14518double_quote_subst='$double_quote_subst'
14519delay_variable_subst='$delay_variable_subst'
14520macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14521macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14522enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14523enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14524pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14525enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14526host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14527host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14528host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14529build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14530build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14531build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14532SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14533Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14534GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14535EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14536FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14537LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14538NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14539LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14540max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14541ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14542exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14543lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14544lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14545lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14546reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14547reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14548OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14549deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14550file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14551AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14552AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14553STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14554RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14555old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14556old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14557old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14558CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14559CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14560compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14561GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14562lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14563lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14564lt_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"`'
14565lt_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"`'
14566objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14567SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14568ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14569MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14570lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14571lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14572lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14573lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14574lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14575need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14576DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14577NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14578LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14579OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14580OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14581libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14582shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14583extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14584archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14585enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14586export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14587whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14588compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14589old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14590old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14591archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14592archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14593module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14594module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14595with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14596allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14597no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14598hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14599hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14600hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14601hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14602hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14603hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14604hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14605hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14606inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14607link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14608fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14609always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14610export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14611exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14612include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14613prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14614file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14615variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14616need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14617need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14618version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14619runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14620shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14621shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14622libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14623library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14624soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14625postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14626postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14627finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14628finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14629hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14630sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14631sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14632hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14633enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14634enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14635enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14636old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14637striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14638
14639LTCC='$LTCC'
14640LTCFLAGS='$LTCFLAGS'
14641compiler='$compiler_DEFAULT'
14642
14643# Quote evaled strings.
14644for var in SED \
14645GREP \
14646EGREP \
14647FGREP \
14648LD \
14649NM \
14650LN_S \
14651lt_SP2NL \
14652lt_NL2SP \
14653reload_flag \
14654OBJDUMP \
14655deplibs_check_method \
14656file_magic_cmd \
14657AR \
14658AR_FLAGS \
14659STRIP \
14660RANLIB \
14661CC \
14662CFLAGS \
14663compiler \
14664lt_cv_sys_global_symbol_pipe \
14665lt_cv_sys_global_symbol_to_cdecl \
14666lt_cv_sys_global_symbol_to_c_name_address \
14667lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14668SHELL \
14669ECHO \
14670lt_prog_compiler_no_builtin_flag \
14671lt_prog_compiler_wl \
14672lt_prog_compiler_pic \
14673lt_prog_compiler_static \
14674lt_cv_prog_compiler_c_o \
14675need_locks \
14676DSYMUTIL \
14677NMEDIT \
14678LIPO \
14679OTOOL \
14680OTOOL64 \
14681shrext_cmds \
14682export_dynamic_flag_spec \
14683whole_archive_flag_spec \
14684compiler_needs_object \
14685with_gnu_ld \
14686allow_undefined_flag \
14687no_undefined_flag \
14688hardcode_libdir_flag_spec \
14689hardcode_libdir_flag_spec_ld \
14690hardcode_libdir_separator \
14691fix_srcfile_path \
14692exclude_expsyms \
14693include_expsyms \
14694file_list_spec \
14695variables_saved_for_relink \
14696libname_spec \
14697library_names_spec \
14698soname_spec \
14699finish_eval \
14700old_striplib \
14701striplib; do
14702 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14703 *[\\\\\\\`\\"\\\$]*)
14704 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14705 ;;
14706 *)
14707 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14708 ;;
14709 esac
14710done
14711
14712# Double-quote double-evaled strings.
14713for var in reload_cmds \
14714old_postinstall_cmds \
14715old_postuninstall_cmds \
14716old_archive_cmds \
14717extract_expsyms_cmds \
14718old_archive_from_new_cmds \
14719old_archive_from_expsyms_cmds \
14720archive_cmds \
14721archive_expsym_cmds \
14722module_cmds \
14723module_expsym_cmds \
14724export_symbols_cmds \
14725prelink_cmds \
14726postinstall_cmds \
14727postuninstall_cmds \
14728finish_cmds \
14729sys_lib_search_path_spec \
14730sys_lib_dlsearch_path_spec; do
14731 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14732 *[\\\\\\\`\\"\\\$]*)
14733 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14734 ;;
14735 *)
14736 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14737 ;;
14738 esac
14739done
14740
14741# Fix-up fallback echo if it was mangled by the above quoting rules.
14742case \$lt_ECHO in
14743*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14744 ;;
14745esac
14746
14747ac_aux_dir='$ac_aux_dir'
14748xsi_shell='$xsi_shell'
14749lt_shell_append='$lt_shell_append'
14750
14751# See if we are running on zsh, and set the options which allow our
14752# commands through without removal of \ escapes INIT.
14753if test -n "\${ZSH_VERSION+set}" ; then
14754 setopt NO_GLOB_SUBST
14755fi
14756
14757
14758 PACKAGE='$PACKAGE'
14759 VERSION='$VERSION'
14760 TIMESTAMP='$TIMESTAMP'
14761 RM='$RM'
14762 ofile='$ofile'
14763
14764
14765
14766# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14767 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14768 # from automake.
14769 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14770 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14771 LINGUAS="${LINGUAS-%UNSET%}"
14772
14773target_cpu_type=${target_cpu_type}
14774 cgen_cpu_prefix=${cgen_cpu_prefix}
14775 obj_format=${obj_format}
14776 te_file=${te_file}
14777
14778_ACEOF
14779
14780cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14781
14782# Handling of arguments.
14783for ac_config_target in $ac_config_targets
14784do
14785 case $ac_config_target in
14786 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14787 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14788 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14789 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
14790 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
14791 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14792 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14793 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14794 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14795 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14796
14797 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14798 esac
14799done
14800
14801
14802# If the user did not use the arguments to specify the items to instantiate,
14803# then the envvar interface is used. Set only those that are not.
14804# We use the long form for the default assignment because of an extremely
14805# bizarre bug on SunOS 4.1.3.
14806if $ac_need_defaults; then
14807 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14808 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14809 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14810fi
14811
14812# Have a temporary directory for convenience. Make it in the build tree
14813# simply because there is no reason against having it here, and in addition,
14814# creating and moving files from /tmp can sometimes cause problems.
14815# Hook for its removal unless debugging.
14816# Note that there is a small window in which the directory will not be cleaned:
14817# after its creation but before its name has been assigned to `$tmp'.
14818$debug ||
14819{
14820 tmp=
14821 trap 'exit_status=$?
14822 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14823' 0
14824 trap 'as_fn_exit 1' 1 2 13 15
14825}
14826# Create a (secure) tmp directory for tmp files.
14827
14828{
14829 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14830 test -n "$tmp" && test -d "$tmp"
14831} ||
14832{
14833 tmp=./conf$$-$RANDOM
14834 (umask 077 && mkdir "$tmp")
14835} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14836
14837# Set up the scripts for CONFIG_FILES section.
14838# No need to generate them if there are no CONFIG_FILES.
14839# This happens for instance with `./config.status config.h'.
14840if test -n "$CONFIG_FILES"; then
14841
14842
14843ac_cr=`echo X | tr X '\015'`
14844# On cygwin, bash can eat \r inside `` if the user requested igncr.
14845# But we know of no other shell where ac_cr would be empty at this
14846# point, so we can use a bashism as a fallback.
14847if test "x$ac_cr" = x; then
14848 eval ac_cr=\$\'\\r\'
14849fi
14850ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14851if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14852 ac_cs_awk_cr='\r'
14853else
14854 ac_cs_awk_cr=$ac_cr
14855fi
14856
14857echo 'BEGIN {' >"$tmp/subs1.awk" &&
14858_ACEOF
14859
14860
14861{
14862 echo "cat >conf$$subs.awk <<_ACEOF" &&
14863 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14864 echo "_ACEOF"
14865} >conf$$subs.sh ||
14866 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14867ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14868ac_delim='%!_!# '
14869for ac_last_try in false false false false false :; do
14870 . ./conf$$subs.sh ||
14871 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14872
14873 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14874 if test $ac_delim_n = $ac_delim_num; then
14875 break
14876 elif $ac_last_try; then
14877 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14878 else
14879 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14880 fi
14881done
14882rm -f conf$$subs.sh
14883
14884cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14885cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14886_ACEOF
14887sed -n '
14888h
14889s/^/S["/; s/!.*/"]=/
14890p
14891g
14892s/^[^!]*!//
14893:repl
14894t repl
14895s/'"$ac_delim"'$//
14896t delim
14897:nl
14898h
14899s/\(.\{148\}\).*/\1/
14900t more1
14901s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14902p
14903n
14904b repl
14905:more1
14906s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14907p
14908g
14909s/.\{148\}//
14910t nl
14911:delim
14912h
14913s/\(.\{148\}\).*/\1/
14914t more2
14915s/["\\]/\\&/g; s/^/"/; s/$/"/
14916p
14917b
14918:more2
14919s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14920p
14921g
14922s/.\{148\}//
14923t delim
14924' <conf$$subs.awk | sed '
14925/^[^""]/{
14926 N
14927 s/\n//
14928}
14929' >>$CONFIG_STATUS || ac_write_fail=1
14930rm -f conf$$subs.awk
14931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14932_ACAWK
14933cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14934 for (key in S) S_is_set[key] = 1
14935 FS = "\a"
14936
14937}
14938{
14939 line = $ 0
14940 nfields = split(line, field, "@")
14941 substed = 0
14942 len = length(field[1])
14943 for (i = 2; i < nfields; i++) {
14944 key = field[i]
14945 keylen = length(key)
14946 if (S_is_set[key]) {
14947 value = S[key]
14948 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14949 len += length(value) + length(field[++i])
14950 substed = 1
14951 } else
14952 len += 1 + keylen
14953 }
14954
14955 print line
14956}
14957
14958_ACAWK
14959_ACEOF
14960cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14961if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14962 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14963else
14964 cat
14965fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14966 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14967_ACEOF
14968
14969# VPATH may cause trouble with some makes, so we remove $(srcdir),
14970# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14971# trailing colons and then remove the whole line if VPATH becomes empty
14972# (actually we leave an empty line to preserve line numbers).
14973if test "x$srcdir" = x.; then
14974 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14975s/:*\$(srcdir):*/:/
14976s/:*\${srcdir}:*/:/
14977s/:*@srcdir@:*/:/
14978s/^\([^=]*=[ ]*\):*/\1/
14979s/:*$//
14980s/^[^=]*=[ ]*$//
14981}'
14982fi
14983
14984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14985fi # test -n "$CONFIG_FILES"
14986
14987# Set up the scripts for CONFIG_HEADERS section.
14988# No need to generate them if there are no CONFIG_HEADERS.
14989# This happens for instance with `./config.status Makefile'.
14990if test -n "$CONFIG_HEADERS"; then
14991cat >"$tmp/defines.awk" <<\_ACAWK ||
14992BEGIN {
14993_ACEOF
14994
14995# Transform confdefs.h into an awk script `defines.awk', embedded as
14996# here-document in config.status, that substitutes the proper values into
14997# config.h.in to produce config.h.
14998
14999# Create a delimiter string that does not exist in confdefs.h, to ease
15000# handling of long lines.
15001ac_delim='%!_!# '
15002for ac_last_try in false false :; do
15003 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15004 if test -z "$ac_t"; then
15005 break
15006 elif $ac_last_try; then
15007 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15008 else
15009 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15010 fi
15011done
15012
15013# For the awk script, D is an array of macro values keyed by name,
15014# likewise P contains macro parameters if any. Preserve backslash
15015# newline sequences.
15016
15017ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15018sed -n '
15019s/.\{148\}/&'"$ac_delim"'/g
15020t rset
15021:rset
15022s/^[ ]*#[ ]*define[ ][ ]*/ /
15023t def
15024d
15025:def
15026s/\\$//
15027t bsnl
15028s/["\\]/\\&/g
15029s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15030D["\1"]=" \3"/p
15031s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15032d
15033:bsnl
15034s/["\\]/\\&/g
15035s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15036D["\1"]=" \3\\\\\\n"\\/p
15037t cont
15038s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15039t cont
15040d
15041:cont
15042n
15043s/.\{148\}/&'"$ac_delim"'/g
15044t clear
15045:clear
15046s/\\$//
15047t bsnlc
15048s/["\\]/\\&/g; s/^/"/; s/$/"/p
15049d
15050:bsnlc
15051s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15052b cont
15053' <confdefs.h | sed '
15054s/'"$ac_delim"'/"\\\
15055"/g' >>$CONFIG_STATUS || ac_write_fail=1
15056
15057cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15058 for (key in D) D_is_set[key] = 1
15059 FS = "\a"
15060}
15061/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15062 line = \$ 0
15063 split(line, arg, " ")
15064 if (arg[1] == "#") {
15065 defundef = arg[2]
15066 mac1 = arg[3]
15067 } else {
15068 defundef = substr(arg[1], 2)
15069 mac1 = arg[2]
15070 }
15071 split(mac1, mac2, "(") #)
15072 macro = mac2[1]
15073 prefix = substr(line, 1, index(line, defundef) - 1)
15074 if (D_is_set[macro]) {
15075 # Preserve the white space surrounding the "#".
15076 print prefix "define", macro P[macro] D[macro]
15077 next
15078 } else {
15079 # Replace #undef with comments. This is necessary, for example,
15080 # in the case of _POSIX_SOURCE, which is predefined and required
15081 # on some systems where configure will not decide to define it.
15082 if (defundef == "undef") {
15083 print "/*", prefix defundef, macro, "*/"
15084 next
15085 }
15086 }
15087}
15088{ print }
15089_ACAWK
15090_ACEOF
15091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15092 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15093fi # test -n "$CONFIG_HEADERS"
15094
15095
15096eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15097shift
15098for ac_tag
15099do
15100 case $ac_tag in
15101 :[FHLC]) ac_mode=$ac_tag; continue;;
15102 esac
15103 case $ac_mode$ac_tag in
15104 :[FHL]*:*);;
15105 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15106 :[FH]-) ac_tag=-:-;;
15107 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15108 esac
15109 ac_save_IFS=$IFS
15110 IFS=:
15111 set x $ac_tag
15112 IFS=$ac_save_IFS
15113 shift
15114 ac_file=$1
15115 shift
15116
15117 case $ac_mode in
15118 :L) ac_source=$1;;
15119 :[FH])
15120 ac_file_inputs=
15121 for ac_f
15122 do
15123 case $ac_f in
15124 -) ac_f="$tmp/stdin";;
15125 *) # Look for the file first in the build tree, then in the source tree
15126 # (if the path is not absolute). The absolute path cannot be DOS-style,
15127 # because $ac_f cannot contain `:'.
15128 test -f "$ac_f" ||
15129 case $ac_f in
15130 [\\/$]*) false;;
15131 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15132 esac ||
15133 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15134 esac
15135 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15136 as_fn_append ac_file_inputs " '$ac_f'"
15137 done
15138
15139 # Let's still pretend it is `configure' which instantiates (i.e., don't
15140 # use $as_me), people would be surprised to read:
15141 # /* config.h. Generated by config.status. */
15142 configure_input='Generated from '`
15143 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15144 `' by configure.'
15145 if test x"$ac_file" != x-; then
15146 configure_input="$ac_file. $configure_input"
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15148$as_echo "$as_me: creating $ac_file" >&6;}
15149 fi
15150 # Neutralize special characters interpreted by sed in replacement strings.
15151 case $configure_input in #(
15152 *\&* | *\|* | *\\* )
15153 ac_sed_conf_input=`$as_echo "$configure_input" |
15154 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15155 *) ac_sed_conf_input=$configure_input;;
15156 esac
15157
15158 case $ac_tag in
15159 *:-:* | *:-) cat >"$tmp/stdin" \
15160 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15161 esac
15162 ;;
15163 esac
15164
15165 ac_dir=`$as_dirname -- "$ac_file" ||
15166$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15167 X"$ac_file" : 'X\(//\)[^/]' \| \
15168 X"$ac_file" : 'X\(//\)$' \| \
15169 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15170$as_echo X"$ac_file" |
15171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15172 s//\1/
15173 q
15174 }
15175 /^X\(\/\/\)[^/].*/{
15176 s//\1/
15177 q
15178 }
15179 /^X\(\/\/\)$/{
15180 s//\1/
15181 q
15182 }
15183 /^X\(\/\).*/{
15184 s//\1/
15185 q
15186 }
15187 s/.*/./; q'`
15188 as_dir="$ac_dir"; as_fn_mkdir_p
15189 ac_builddir=.
15190
15191case "$ac_dir" in
15192.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15193*)
15194 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15195 # A ".." for each directory in $ac_dir_suffix.
15196 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15197 case $ac_top_builddir_sub in
15198 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15199 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15200 esac ;;
15201esac
15202ac_abs_top_builddir=$ac_pwd
15203ac_abs_builddir=$ac_pwd$ac_dir_suffix
15204# for backward compatibility:
15205ac_top_builddir=$ac_top_build_prefix
15206
15207case $srcdir in
15208 .) # We are building in place.
15209 ac_srcdir=.
15210 ac_top_srcdir=$ac_top_builddir_sub
15211 ac_abs_top_srcdir=$ac_pwd ;;
15212 [\\/]* | ?:[\\/]* ) # Absolute name.
15213 ac_srcdir=$srcdir$ac_dir_suffix;
15214 ac_top_srcdir=$srcdir
15215 ac_abs_top_srcdir=$srcdir ;;
15216 *) # Relative name.
15217 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15218 ac_top_srcdir=$ac_top_build_prefix$srcdir
15219 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15220esac
15221ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15222
15223
15224 case $ac_mode in
15225 :F)
15226 #
15227 # CONFIG_FILE
15228 #
15229
15230 case $INSTALL in
15231 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15232 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15233 esac
15234 ac_MKDIR_P=$MKDIR_P
15235 case $MKDIR_P in
15236 [\\/$]* | ?:[\\/]* ) ;;
15237 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15238 esac
15239_ACEOF
15240
15241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15242# If the template does not know about datarootdir, expand it.
15243# FIXME: This hack should be removed a few years after 2.60.
15244ac_datarootdir_hack=; ac_datarootdir_seen=
15245ac_sed_dataroot='
15246/datarootdir/ {
15247 p
15248 q
15249}
15250/@datadir@/p
15251/@docdir@/p
15252/@infodir@/p
15253/@localedir@/p
15254/@mandir@/p'
15255case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15256*datarootdir*) ac_datarootdir_seen=yes;;
15257*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15259$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15260_ACEOF
15261cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15262 ac_datarootdir_hack='
15263 s&@datadir@&$datadir&g
15264 s&@docdir@&$docdir&g
15265 s&@infodir@&$infodir&g
15266 s&@localedir@&$localedir&g
15267 s&@mandir@&$mandir&g
15268 s&\\\${datarootdir}&$datarootdir&g' ;;
15269esac
15270_ACEOF
15271
15272# Neutralize VPATH when `$srcdir' = `.'.
15273# Shell code in configure.ac might set extrasub.
15274# FIXME: do we really want to maintain this feature?
15275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15276ac_sed_extra="$ac_vpsub
15277$extrasub
15278_ACEOF
15279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15280:t
15281/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15282s|@configure_input@|$ac_sed_conf_input|;t t
15283s&@top_builddir@&$ac_top_builddir_sub&;t t
15284s&@top_build_prefix@&$ac_top_build_prefix&;t t
15285s&@srcdir@&$ac_srcdir&;t t
15286s&@abs_srcdir@&$ac_abs_srcdir&;t t
15287s&@top_srcdir@&$ac_top_srcdir&;t t
15288s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15289s&@builddir@&$ac_builddir&;t t
15290s&@abs_builddir@&$ac_abs_builddir&;t t
15291s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15292s&@INSTALL@&$ac_INSTALL&;t t
15293s&@MKDIR_P@&$ac_MKDIR_P&;t t
15294$ac_datarootdir_hack
15295"
15296eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15297 || as_fn_error "could not create $ac_file" "$LINENO" 5
15298
15299test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15300 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15301 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15303which seems to be undefined. Please make sure it is defined." >&5
15304$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15305which seems to be undefined. Please make sure it is defined." >&2;}
15306
15307 rm -f "$tmp/stdin"
15308 case $ac_file in
15309 -) cat "$tmp/out" && rm -f "$tmp/out";;
15310 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15311 esac \
15312 || as_fn_error "could not create $ac_file" "$LINENO" 5
15313 ;;
15314 :H)
15315 #
15316 # CONFIG_HEADER
15317 #
15318 if test x"$ac_file" != x-; then
15319 {
15320 $as_echo "/* $configure_input */" \
15321 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15322 } >"$tmp/config.h" \
15323 || as_fn_error "could not create $ac_file" "$LINENO" 5
15324 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15326$as_echo "$as_me: $ac_file is unchanged" >&6;}
15327 else
15328 rm -f "$ac_file"
15329 mv "$tmp/config.h" "$ac_file" \
15330 || as_fn_error "could not create $ac_file" "$LINENO" 5
15331 fi
15332 else
15333 $as_echo "/* $configure_input */" \
15334 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15335 || as_fn_error "could not create -" "$LINENO" 5
15336 fi
15337# Compute "$ac_file"'s index in $config_headers.
15338_am_arg="$ac_file"
15339_am_stamp_count=1
15340for _am_header in $config_headers :; do
15341 case $_am_header in
15342 $_am_arg | $_am_arg:* )
15343 break ;;
15344 * )
15345 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15346 esac
15347done
15348echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15349$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15350 X"$_am_arg" : 'X\(//\)[^/]' \| \
15351 X"$_am_arg" : 'X\(//\)$' \| \
15352 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15353$as_echo X"$_am_arg" |
15354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15355 s//\1/
15356 q
15357 }
15358 /^X\(\/\/\)[^/].*/{
15359 s//\1/
15360 q
15361 }
15362 /^X\(\/\/\)$/{
15363 s//\1/
15364 q
15365 }
15366 /^X\(\/\).*/{
15367 s//\1/
15368 q
15369 }
15370 s/.*/./; q'`/stamp-h$_am_stamp_count
15371 ;;
15372
15373 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15374$as_echo "$as_me: executing $ac_file commands" >&6;}
15375 ;;
15376 esac
15377
15378
15379 case $ac_file$ac_mode in
15380 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15381 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15382 # are listed without --file. Let's play safe and only enable the eval
15383 # if we detect the quoting.
15384 case $CONFIG_FILES in
15385 *\'*) eval set x "$CONFIG_FILES" ;;
15386 *) set x $CONFIG_FILES ;;
15387 esac
15388 shift
15389 for mf
15390 do
15391 # Strip MF so we end up with the name of the file.
15392 mf=`echo "$mf" | sed -e 's/:.*$//'`
15393 # Check whether this is an Automake generated Makefile or not.
15394 # We used to match only the files named `Makefile.in', but
15395 # some people rename them; so instead we look at the file content.
15396 # Grep'ing the first line is not enough: some people post-process
15397 # each Makefile.in and add a new line on top of each file to say so.
15398 # Grep'ing the whole file is not good either: AIX grep has a line
15399 # limit of 2048, but all sed's we know have understand at least 4000.
15400 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15401 dirpart=`$as_dirname -- "$mf" ||
15402$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15403 X"$mf" : 'X\(//\)[^/]' \| \
15404 X"$mf" : 'X\(//\)$' \| \
15405 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15406$as_echo X"$mf" |
15407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15408 s//\1/
15409 q
15410 }
15411 /^X\(\/\/\)[^/].*/{
15412 s//\1/
15413 q
15414 }
15415 /^X\(\/\/\)$/{
15416 s//\1/
15417 q
15418 }
15419 /^X\(\/\).*/{
15420 s//\1/
15421 q
15422 }
15423 s/.*/./; q'`
15424 else
15425 continue
15426 fi
15427 # Extract the definition of DEPDIR, am__include, and am__quote
15428 # from the Makefile without running `make'.
15429 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15430 test -z "$DEPDIR" && continue
15431 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15432 test -z "am__include" && continue
15433 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15434 # When using ansi2knr, U may be empty or an underscore; expand it
15435 U=`sed -n 's/^U = //p' < "$mf"`
15436 # Find all dependency output files, they are included files with
15437 # $(DEPDIR) in their names. We invoke sed twice because it is the
15438 # simplest approach to changing $(DEPDIR) to its actual value in the
15439 # expansion.
15440 for file in `sed -n "
15441 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15442 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15443 # Make sure the directory exists.
15444 test -f "$dirpart/$file" && continue
15445 fdir=`$as_dirname -- "$file" ||
15446$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15447 X"$file" : 'X\(//\)[^/]' \| \
15448 X"$file" : 'X\(//\)$' \| \
15449 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15450$as_echo X"$file" |
15451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15452 s//\1/
15453 q
15454 }
15455 /^X\(\/\/\)[^/].*/{
15456 s//\1/
15457 q
15458 }
15459 /^X\(\/\/\)$/{
15460 s//\1/
15461 q
15462 }
15463 /^X\(\/\).*/{
15464 s//\1/
15465 q
15466 }
15467 s/.*/./; q'`
15468 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15469 # echo "creating $dirpart/$file"
15470 echo '# dummy' > "$dirpart/$file"
15471 done
15472 done
15473}
15474 ;;
15475 "libtool":C)
15476
15477 # See if we are running on zsh, and set the options which allow our
15478 # commands through without removal of \ escapes.
15479 if test -n "${ZSH_VERSION+set}" ; then
15480 setopt NO_GLOB_SUBST
15481 fi
15482
15483 cfgfile="${ofile}T"
15484 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15485 $RM "$cfgfile"
15486
15487 cat <<_LT_EOF >> "$cfgfile"
15488#! $SHELL
15489
15490# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15491# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15492# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15493# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15494#
15495# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15496# 2006, 2007, 2008 Free Software Foundation, Inc.
15497# Written by Gordon Matzigkeit, 1996
15498#
15499# This file is part of GNU Libtool.
15500#
15501# GNU Libtool is free software; you can redistribute it and/or
15502# modify it under the terms of the GNU General Public License as
15503# published by the Free Software Foundation; either version 2 of
15504# the License, or (at your option) any later version.
15505#
15506# As a special exception to the GNU General Public License,
15507# if you distribute this file as part of a program or library that
15508# is built using GNU Libtool, you may include this file under the
15509# same distribution terms that you use for the rest of that program.
15510#
15511# GNU Libtool is distributed in the hope that it will be useful,
15512# but WITHOUT ANY WARRANTY; without even the implied warranty of
15513# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15514# GNU General Public License for more details.
15515#
15516# You should have received a copy of the GNU General Public License
15517# along with GNU Libtool; see the file COPYING. If not, a copy
15518# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15519# obtained by writing to the Free Software Foundation, Inc.,
15520# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15521
15522
15523# The names of the tagged configurations supported by this script.
15524available_tags=""
15525
15526# ### BEGIN LIBTOOL CONFIG
15527
15528# Which release of libtool.m4 was used?
15529macro_version=$macro_version
15530macro_revision=$macro_revision
15531
15532# Whether or not to build shared libraries.
15533build_libtool_libs=$enable_shared
15534
15535# Whether or not to build static libraries.
15536build_old_libs=$enable_static
15537
15538# What type of objects to build.
15539pic_mode=$pic_mode
15540
15541# Whether or not to optimize for fast installation.
15542fast_install=$enable_fast_install
15543
15544# The host system.
15545host_alias=$host_alias
15546host=$host
15547host_os=$host_os
15548
15549# The build system.
15550build_alias=$build_alias
15551build=$build
15552build_os=$build_os
15553
15554# A sed program that does not truncate output.
15555SED=$lt_SED
15556
15557# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15558Xsed="\$SED -e 1s/^X//"
15559
15560# A grep program that handles long lines.
15561GREP=$lt_GREP
15562
15563# An ERE matcher.
15564EGREP=$lt_EGREP
15565
15566# A literal string matcher.
15567FGREP=$lt_FGREP
15568
15569# A BSD- or MS-compatible name lister.
15570NM=$lt_NM
15571
15572# Whether we need soft or hard links.
15573LN_S=$lt_LN_S
15574
15575# What is the maximum length of a command?
15576max_cmd_len=$max_cmd_len
15577
15578# Object file suffix (normally "o").
15579objext=$ac_objext
15580
15581# Executable file suffix (normally "").
15582exeext=$exeext
15583
15584# whether the shell understands "unset".
15585lt_unset=$lt_unset
15586
15587# turn spaces into newlines.
15588SP2NL=$lt_lt_SP2NL
15589
15590# turn newlines into spaces.
15591NL2SP=$lt_lt_NL2SP
15592
15593# How to create reloadable object files.
15594reload_flag=$lt_reload_flag
15595reload_cmds=$lt_reload_cmds
15596
15597# An object symbol dumper.
15598OBJDUMP=$lt_OBJDUMP
15599
15600# Method to check whether dependent libraries are shared objects.
15601deplibs_check_method=$lt_deplibs_check_method
15602
15603# Command to use when deplibs_check_method == "file_magic".
15604file_magic_cmd=$lt_file_magic_cmd
15605
15606# The archiver.
15607AR=$lt_AR
15608AR_FLAGS=$lt_AR_FLAGS
15609
15610# A symbol stripping program.
15611STRIP=$lt_STRIP
15612
15613# Commands used to install an old-style archive.
15614RANLIB=$lt_RANLIB
15615old_postinstall_cmds=$lt_old_postinstall_cmds
15616old_postuninstall_cmds=$lt_old_postuninstall_cmds
15617
15618# A C compiler.
15619LTCC=$lt_CC
15620
15621# LTCC compiler flags.
15622LTCFLAGS=$lt_CFLAGS
15623
15624# Take the output of nm and produce a listing of raw symbols and C names.
15625global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15626
15627# Transform the output of nm in a proper C declaration.
15628global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15629
15630# Transform the output of nm in a C name address pair.
15631global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15632
15633# Transform the output of nm in a C name address pair when lib prefix is needed.
15634global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15635
15636# The name of the directory that contains temporary libtool files.
15637objdir=$objdir
15638
15639# Shell to use when invoking shell scripts.
15640SHELL=$lt_SHELL
15641
15642# An echo program that does not interpret backslashes.
15643ECHO=$lt_ECHO
15644
15645# Used to examine libraries when file_magic_cmd begins with "file".
15646MAGIC_CMD=$MAGIC_CMD
15647
15648# Must we lock files when doing compilation?
15649need_locks=$lt_need_locks
15650
15651# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15652DSYMUTIL=$lt_DSYMUTIL
15653
15654# Tool to change global to local symbols on Mac OS X.
15655NMEDIT=$lt_NMEDIT
15656
15657# Tool to manipulate fat objects and archives on Mac OS X.
15658LIPO=$lt_LIPO
15659
15660# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15661OTOOL=$lt_OTOOL
15662
15663# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15664OTOOL64=$lt_OTOOL64
15665
15666# Old archive suffix (normally "a").
15667libext=$libext
15668
15669# Shared library suffix (normally ".so").
15670shrext_cmds=$lt_shrext_cmds
15671
15672# The commands to extract the exported symbol list from a shared archive.
15673extract_expsyms_cmds=$lt_extract_expsyms_cmds
15674
15675# Variables whose values should be saved in libtool wrapper scripts and
15676# restored at link time.
15677variables_saved_for_relink=$lt_variables_saved_for_relink
15678
15679# Do we need the "lib" prefix for modules?
15680need_lib_prefix=$need_lib_prefix
15681
15682# Do we need a version for libraries?
15683need_version=$need_version
15684
15685# Library versioning type.
15686version_type=$version_type
15687
15688# Shared library runtime path variable.
15689runpath_var=$runpath_var
15690
15691# Shared library path variable.
15692shlibpath_var=$shlibpath_var
15693
15694# Is shlibpath searched before the hard-coded library search path?
15695shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15696
15697# Format of library name prefix.
15698libname_spec=$lt_libname_spec
15699
15700# List of archive names. First name is the real one, the rest are links.
15701# The last name is the one that the linker finds with -lNAME
15702library_names_spec=$lt_library_names_spec
15703
15704# The coded name of the library, if different from the real name.
15705soname_spec=$lt_soname_spec
15706
15707# Command to use after installation of a shared archive.
15708postinstall_cmds=$lt_postinstall_cmds
15709
15710# Command to use after uninstallation of a shared archive.
15711postuninstall_cmds=$lt_postuninstall_cmds
15712
15713# Commands used to finish a libtool library installation in a directory.
15714finish_cmds=$lt_finish_cmds
15715
15716# As "finish_cmds", except a single script fragment to be evaled but
15717# not shown.
15718finish_eval=$lt_finish_eval
15719
15720# Whether we should hardcode library paths into libraries.
15721hardcode_into_libs=$hardcode_into_libs
15722
15723# Compile-time system search path for libraries.
15724sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15725
15726# Run-time system search path for libraries.
15727sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15728
15729# Whether dlopen is supported.
15730dlopen_support=$enable_dlopen
15731
15732# Whether dlopen of programs is supported.
15733dlopen_self=$enable_dlopen_self
15734
15735# Whether dlopen of statically linked programs is supported.
15736dlopen_self_static=$enable_dlopen_self_static
15737
15738# Commands to strip libraries.
15739old_striplib=$lt_old_striplib
15740striplib=$lt_striplib
15741
15742
15743# The linker used to build libraries.
15744LD=$lt_LD
15745
15746# Commands used to build an old-style archive.
15747old_archive_cmds=$lt_old_archive_cmds
15748
15749# A language specific compiler.
15750CC=$lt_compiler
15751
15752# Is the compiler the GNU compiler?
15753with_gcc=$GCC
15754
15755# Compiler flag to turn off builtin functions.
15756no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15757
15758# How to pass a linker flag through the compiler.
15759wl=$lt_lt_prog_compiler_wl
15760
15761# Additional compiler flags for building library objects.
15762pic_flag=$lt_lt_prog_compiler_pic
15763
15764# Compiler flag to prevent dynamic linking.
15765link_static_flag=$lt_lt_prog_compiler_static
15766
15767# Does compiler simultaneously support -c and -o options?
15768compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15769
15770# Whether or not to add -lc for building shared libraries.
15771build_libtool_need_lc=$archive_cmds_need_lc
15772
15773# Whether or not to disallow shared libs when runtime libs are static.
15774allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15775
15776# Compiler flag to allow reflexive dlopens.
15777export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15778
15779# Compiler flag to generate shared objects directly from archives.
15780whole_archive_flag_spec=$lt_whole_archive_flag_spec
15781
15782# Whether the compiler copes with passing no objects directly.
15783compiler_needs_object=$lt_compiler_needs_object
15784
15785# Create an old-style archive from a shared archive.
15786old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15787
15788# Create a temporary old-style archive to link instead of a shared archive.
15789old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15790
15791# Commands used to build a shared archive.
15792archive_cmds=$lt_archive_cmds
15793archive_expsym_cmds=$lt_archive_expsym_cmds
15794
15795# Commands used to build a loadable module if different from building
15796# a shared archive.
15797module_cmds=$lt_module_cmds
15798module_expsym_cmds=$lt_module_expsym_cmds
15799
15800# Whether we are building with GNU ld or not.
15801with_gnu_ld=$lt_with_gnu_ld
15802
15803# Flag that allows shared libraries with undefined symbols to be built.
15804allow_undefined_flag=$lt_allow_undefined_flag
15805
15806# Flag that enforces no undefined symbols.
15807no_undefined_flag=$lt_no_undefined_flag
15808
15809# Flag to hardcode \$libdir into a binary during linking.
15810# This must work even if \$libdir does not exist
15811hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15812
15813# If ld is used when linking, flag to hardcode \$libdir into a binary
15814# during linking. This must work even if \$libdir does not exist.
15815hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15816
15817# Whether we need a single "-rpath" flag with a separated argument.
15818hardcode_libdir_separator=$lt_hardcode_libdir_separator
15819
15820# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15821# DIR into the resulting binary.
15822hardcode_direct=$hardcode_direct
15823
15824# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15825# DIR into the resulting binary and the resulting library dependency is
15826# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15827# library is relocated.
15828hardcode_direct_absolute=$hardcode_direct_absolute
15829
15830# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15831# into the resulting binary.
15832hardcode_minus_L=$hardcode_minus_L
15833
15834# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15835# into the resulting binary.
15836hardcode_shlibpath_var=$hardcode_shlibpath_var
15837
15838# Set to "yes" if building a shared library automatically hardcodes DIR
15839# into the library and all subsequent libraries and executables linked
15840# against it.
15841hardcode_automatic=$hardcode_automatic
15842
15843# Set to yes if linker adds runtime paths of dependent libraries
15844# to runtime path list.
15845inherit_rpath=$inherit_rpath
15846
15847# Whether libtool must link a program against all its dependency libraries.
15848link_all_deplibs=$link_all_deplibs
15849
15850# Fix the shell variable \$srcfile for the compiler.
15851fix_srcfile_path=$lt_fix_srcfile_path
15852
15853# Set to "yes" if exported symbols are required.
15854always_export_symbols=$always_export_symbols
15855
15856# The commands to list exported symbols.
15857export_symbols_cmds=$lt_export_symbols_cmds
15858
15859# Symbols that should not be listed in the preloaded symbols.
15860exclude_expsyms=$lt_exclude_expsyms
15861
15862# Symbols that must always be exported.
15863include_expsyms=$lt_include_expsyms
15864
15865# Commands necessary for linking programs (against libraries) with templates.
15866prelink_cmds=$lt_prelink_cmds
15867
15868# Specify filename containing input files.
15869file_list_spec=$lt_file_list_spec
15870
15871# How to hardcode a shared library path into an executable.
15872hardcode_action=$hardcode_action
15873
15874# ### END LIBTOOL CONFIG
15875
15876_LT_EOF
15877
15878 case $host_os in
15879 aix3*)
15880 cat <<\_LT_EOF >> "$cfgfile"
15881# AIX sometimes has problems with the GCC collect2 program. For some
15882# reason, if we set the COLLECT_NAMES environment variable, the problems
15883# vanish in a puff of smoke.
15884if test "X${COLLECT_NAMES+set}" != Xset; then
15885 COLLECT_NAMES=
15886 export COLLECT_NAMES
15887fi
15888_LT_EOF
15889 ;;
15890 esac
15891
15892
15893ltmain="$ac_aux_dir/ltmain.sh"
15894
15895
15896 # We use sed instead of cat because bash on DJGPP gets confused if
15897 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15898 # text mode, it properly converts lines to CR/LF. This bash problem
15899 # is reportedly fixed, but why not run on old versions too?
15900 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15901 || (rm -f "$cfgfile"; exit 1)
15902
15903 case $xsi_shell in
15904 yes)
15905 cat << \_LT_EOF >> "$cfgfile"
15906
15907# func_dirname file append nondir_replacement
15908# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15909# otherwise set result to NONDIR_REPLACEMENT.
15910func_dirname ()
15911{
15912 case ${1} in
15913 */*) func_dirname_result="${1%/*}${2}" ;;
15914 * ) func_dirname_result="${3}" ;;
15915 esac
15916}
15917
15918# func_basename file
15919func_basename ()
15920{
15921 func_basename_result="${1##*/}"
15922}
15923
15924# func_dirname_and_basename file append nondir_replacement
15925# perform func_basename and func_dirname in a single function
15926# call:
15927# dirname: Compute the dirname of FILE. If nonempty,
15928# add APPEND to the result, otherwise set result
15929# to NONDIR_REPLACEMENT.
15930# value returned in "$func_dirname_result"
15931# basename: Compute filename of FILE.
15932# value retuned in "$func_basename_result"
15933# Implementation must be kept synchronized with func_dirname
15934# and func_basename. For efficiency, we do not delegate to
15935# those functions but instead duplicate the functionality here.
15936func_dirname_and_basename ()
15937{
15938 case ${1} in
15939 */*) func_dirname_result="${1%/*}${2}" ;;
15940 * ) func_dirname_result="${3}" ;;
15941 esac
15942 func_basename_result="${1##*/}"
15943}
15944
15945# func_stripname prefix suffix name
15946# strip PREFIX and SUFFIX off of NAME.
15947# PREFIX and SUFFIX must not contain globbing or regex special
15948# characters, hashes, percent signs, but SUFFIX may contain a leading
15949# dot (in which case that matches only a dot).
15950func_stripname ()
15951{
15952 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15953 # positional parameters, so assign one to ordinary parameter first.
15954 func_stripname_result=${3}
15955 func_stripname_result=${func_stripname_result#"${1}"}
15956 func_stripname_result=${func_stripname_result%"${2}"}
15957}
15958
15959# func_opt_split
15960func_opt_split ()
15961{
15962 func_opt_split_opt=${1%%=*}
15963 func_opt_split_arg=${1#*=}
15964}
15965
15966# func_lo2o object
15967func_lo2o ()
15968{
15969 case ${1} in
15970 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15971 *) func_lo2o_result=${1} ;;
15972 esac
15973}
15974
15975# func_xform libobj-or-source
15976func_xform ()
15977{
15978 func_xform_result=${1%.*}.lo
15979}
15980
15981# func_arith arithmetic-term...
15982func_arith ()
15983{
15984 func_arith_result=$(( $* ))
15985}
15986
15987# func_len string
15988# STRING may not start with a hyphen.
15989func_len ()
15990{
15991 func_len_result=${#1}
15992}
15993
15994_LT_EOF
15995 ;;
15996 *) # Bourne compatible functions.
15997 cat << \_LT_EOF >> "$cfgfile"
15998
15999# func_dirname file append nondir_replacement
16000# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16001# otherwise set result to NONDIR_REPLACEMENT.
16002func_dirname ()
16003{
16004 # Extract subdirectory from the argument.
16005 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16006 if test "X$func_dirname_result" = "X${1}"; then
16007 func_dirname_result="${3}"
16008 else
16009 func_dirname_result="$func_dirname_result${2}"
16010 fi
16011}
16012
16013# func_basename file
16014func_basename ()
16015{
16016 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16017}
16018
16019
16020# func_stripname prefix suffix name
16021# strip PREFIX and SUFFIX off of NAME.
16022# PREFIX and SUFFIX must not contain globbing or regex special
16023# characters, hashes, percent signs, but SUFFIX may contain a leading
16024# dot (in which case that matches only a dot).
16025# func_strip_suffix prefix name
16026func_stripname ()
16027{
16028 case ${2} in
16029 .*) func_stripname_result=`$ECHO "X${3}" \
16030 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16031 *) func_stripname_result=`$ECHO "X${3}" \
16032 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16033 esac
16034}
16035
16036# sed scripts:
16037my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16038my_sed_long_arg='1s/^-[^=]*=//'
16039
16040# func_opt_split
16041func_opt_split ()
16042{
16043 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16044 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16045}
16046
16047# func_lo2o object
16048func_lo2o ()
16049{
16050 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16051}
16052
16053# func_xform libobj-or-source
16054func_xform ()
16055{
16056 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16057}
16058
16059# func_arith arithmetic-term...
16060func_arith ()
16061{
16062 func_arith_result=`expr "$@"`
16063}
16064
16065# func_len string
16066# STRING may not start with a hyphen.
16067func_len ()
16068{
16069 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16070}
16071
16072_LT_EOF
16073esac
16074
16075case $lt_shell_append in
16076 yes)
16077 cat << \_LT_EOF >> "$cfgfile"
16078
16079# func_append var value
16080# Append VALUE to the end of shell variable VAR.
16081func_append ()
16082{
16083 eval "$1+=\$2"
16084}
16085_LT_EOF
16086 ;;
16087 *)
16088 cat << \_LT_EOF >> "$cfgfile"
16089
16090# func_append var value
16091# Append VALUE to the end of shell variable VAR.
16092func_append ()
16093{
16094 eval "$1=\$$1\$2"
16095}
16096
16097_LT_EOF
16098 ;;
16099 esac
16100
16101
16102 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16103 || (rm -f "$cfgfile"; exit 1)
16104
16105 mv -f "$cfgfile" "$ofile" ||
16106 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16107 chmod +x "$ofile"
16108
16109 ;;
16110 "default-1":C)
16111 for ac_file in $CONFIG_FILES; do
16112 # Support "outfile[:infile[:infile...]]"
16113 case "$ac_file" in
16114 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16115 esac
16116 # PO directories have a Makefile.in generated from Makefile.in.in.
16117 case "$ac_file" in */Makefile.in)
16118 # Adjust a relative srcdir.
16119 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16120 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16121 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16122 # In autoconf-2.13 it is called $ac_given_srcdir.
16123 # In autoconf-2.50 it is called $srcdir.
16124 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16125 case "$ac_given_srcdir" in
16126 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16127 /*) top_srcdir="$ac_given_srcdir" ;;
16128 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16129 esac
16130 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16131 rm -f "$ac_dir/POTFILES"
16132 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16133 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16134 POMAKEFILEDEPS="POTFILES.in"
16135 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16136 # on $ac_dir but don't depend on user-specified configuration
16137 # parameters.
16138 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16139 # The LINGUAS file contains the set of available languages.
16140 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16141 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16142 fi
16143 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16144 # Hide the ALL_LINGUAS assigment from automake.
16145 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16146 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16147 else
16148 # The set of available languages was given in configure.in.
16149 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16150 fi
16151 case "$ac_given_srcdir" in
16152 .) srcdirpre= ;;
16153 *) srcdirpre='$(srcdir)/' ;;
16154 esac
16155 POFILES=
16156 GMOFILES=
16157 UPDATEPOFILES=
16158 DUMMYPOFILES=
16159 for lang in $ALL_LINGUAS; do
16160 POFILES="$POFILES $srcdirpre$lang.po"
16161 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16162 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16163 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16164 done
16165 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16166 # environment variable.
16167 INST_LINGUAS=
16168 if test -n "$ALL_LINGUAS"; then
16169 for presentlang in $ALL_LINGUAS; do
16170 useit=no
16171 if test "%UNSET%" != "$LINGUAS"; then
16172 desiredlanguages="$LINGUAS"
16173 else
16174 desiredlanguages="$ALL_LINGUAS"
16175 fi
16176 for desiredlang in $desiredlanguages; do
16177 # Use the presentlang catalog if desiredlang is
16178 # a. equal to presentlang, or
16179 # b. a variant of presentlang (because in this case,
16180 # presentlang can be used as a fallback for messages
16181 # which are not translated in the desiredlang catalog).
16182 case "$desiredlang" in
16183 "$presentlang"*) useit=yes;;
16184 esac
16185 done
16186 if test $useit = yes; then
16187 INST_LINGUAS="$INST_LINGUAS $presentlang"
16188 fi
16189 done
16190 fi
16191 CATALOGS=
16192 if test -n "$INST_LINGUAS"; then
16193 for lang in $INST_LINGUAS; do
16194 CATALOGS="$CATALOGS $lang.gmo"
16195 done
16196 fi
16197 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16198 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"
16199 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16200 if test -f "$f"; then
16201 case "$f" in
16202 *.orig | *.bak | *~) ;;
16203 *) cat "$f" >> "$ac_dir/Makefile" ;;
16204 esac
16205 fi
16206 done
16207 fi
16208 ;;
16209 esac
16210 done ;;
16211 "default":C) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
16212 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16213 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16214 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16215 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16216 if test "x$cgen_cpu_prefix" != x ; then
16217 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
16218 fi ;;
16219
16220 esac
16221done # for ac_tag
16222
16223
16224as_fn_exit 0
16225_ACEOF
16226ac_clean_files=$ac_clean_files_save
16227
16228test $ac_write_fail = 0 ||
16229 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16230
16231
16232# configure is writing to config.log, and then calls config.status.
16233# config.status does its own redirection, appending to config.log.
16234# Unfortunately, on DOS this fails, as config.log is still kept open
16235# by configure, so config.status won't be able to write to it; its
16236# output is simply discarded. So we exec the FD to /dev/null,
16237# effectively closing config.log, so it can be properly (re)opened and
16238# appended to by config.status. When coming back to configure, we
16239# need to make the FD available again.
16240if test "$no_create" != yes; then
16241 ac_cs_success=:
16242 ac_config_status_args=
16243 test "$silent" = yes &&
16244 ac_config_status_args="$ac_config_status_args --quiet"
16245 exec 5>/dev/null
16246 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16247 exec 5>>config.log
16248 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16249 # would make configure fail if this is the last instruction.
16250 $ac_cs_success || as_fn_exit $?
16251fi
16252if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16254$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16255fi
16256
This page took 0.077433 seconds and 4 git commands to generate.