* doc/as.texinfo: Add mention of RX port and inclusion of RX
[binutils.git] / gas / configure
blob374a6b092ed5716ac5884d44c644b7bc83321f56
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
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.
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 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if 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
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_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.
43 if 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 --'
47 elif (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'
50 else
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if 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=';'
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.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
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
99 IFS=$as_save_IFS
102 esac
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.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
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.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if 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
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test 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
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
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
200 done;;
201 esac
202 as_found=false
203 done
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
207 fi; }
208 IFS=$as_save_IFS
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+"$@"}
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."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
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/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
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"
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.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
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.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
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.
362 as_fn_error ()
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
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_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/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
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 '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
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; }
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
450 ECHO_C= ECHO_N= ECHO_T=
451 case `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;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (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'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
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
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
531 case X$lt_ECHO in
532 X*--fallback-echo)
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
536 esac
538 ECHO=${lt_ECHO-echo}
539 if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
541 shift
542 elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
548 else
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
555 shift
556 cat <<_LT_EOF
558 _LT_EOF
559 exit 0
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
566 if 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
576 done
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
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'
588 # So, first we look for a working echo in the user's PATH.
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
600 done
601 IFS="$lt_save_ifs"
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
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=:
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
649 prev="$cmd"
650 done
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
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.
668 lt_ECHO=$ECHO
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 exec 7<&0 </dev/null 6>&1
678 # Name of the host.
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
684 # Initializations.
686 ac_default_prefix=/usr/local
687 ac_clean_files=
688 ac_config_libobj_dir=.
689 LIBOBJS=
690 cross_compiling=no
691 subdirs=
692 MFLAGS=
693 MAKEFLAGS=
695 # Identity of this package.
696 PACKAGE_NAME=
697 PACKAGE_TARNAME=
698 PACKAGE_VERSION=
699 PACKAGE_STRING=
700 PACKAGE_BUGREPORT=
701 PACKAGE_URL=
703 ac_unique_file="as.h"
704 # Factoring default headers for most tests.
705 ac_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"
740 ac_subst_vars='am__EXEEXT_FALSE
741 am__EXEEXT_TRUE
742 LTLIBOBJS
743 LIBOBJS
744 LIBM
745 ALLOCA
746 GENINSRC_NEVER_FALSE
747 GENINSRC_NEVER_TRUE
748 MAINT
749 MAINTAINER_MODE_FALSE
750 MAINTAINER_MODE_TRUE
751 MSGMERGE
752 MSGFMT
753 MKINSTALLDIRS
754 CATOBJEXT
755 GENCAT
756 INSTOBJEXT
757 DATADIRNAME
758 CATALOGS
759 POSUB
760 GMSGFMT
761 XGETTEXT
762 INCINTL
763 LIBINTL_DEP
764 LIBINTL
765 USE_NLS
766 LEXLIB
767 LEX_OUTPUT_ROOT
769 YFLAGS
770 YACC
771 OPCODES_LIB
772 atof
773 install_tooldir
774 te_file
775 obj_format
776 target_cpu_type
777 extra_objects
778 cgen_cpu_prefix
779 GDBINIT
780 NO_WERROR
781 WARN_CFLAGS
782 OTOOL64
783 OTOOL
784 LIPO
785 NMEDIT
786 DSYMUTIL
787 lt_ECHO
788 RANLIB
790 OBJDUMP
791 LN_S
793 ac_ct_DUMPBIN
794 DUMPBIN
796 FGREP
798 LIBTOOL
799 EGREP
800 GREP
802 am__fastdepCC_FALSE
803 am__fastdepCC_TRUE
804 CCDEPMODE
805 AMDEPBACKSLASH
806 AMDEP_FALSE
807 AMDEP_TRUE
808 am__quote
809 am__include
810 DEPDIR
811 am__untar
812 am__tar
813 AMTAR
814 am__leading_dot
815 SET_MAKE
817 mkdir_p
818 MKDIR_P
819 INSTALL_STRIP_PROGRAM
820 STRIP
821 install_sh
822 MAKEINFO
823 AUTOHEADER
824 AUTOMAKE
825 AUTOCONF
826 ACLOCAL
827 VERSION
828 PACKAGE
829 CYGPATH_W
830 am__isrc
831 INSTALL_DATA
832 INSTALL_SCRIPT
833 INSTALL_PROGRAM
834 OBJEXT
835 EXEEXT
836 ac_ct_CC
837 CPPFLAGS
838 LDFLAGS
839 CFLAGS
841 target_os
842 target_vendor
843 target_cpu
844 target
845 host_os
846 host_vendor
847 host_cpu
848 host
849 build_os
850 build_vendor
851 build_cpu
852 build
853 target_alias
854 host_alias
855 build_alias
856 LIBS
857 ECHO_T
858 ECHO_N
859 ECHO_C
860 DEFS
861 mandir
862 localedir
863 libdir
864 psdir
865 pdfdir
866 dvidir
867 htmldir
868 infodir
869 docdir
870 oldincludedir
871 includedir
872 localstatedir
873 sharedstatedir
874 sysconfdir
875 datadir
876 datarootdir
877 libexecdir
878 sbindir
879 bindir
880 program_transform_name
881 prefix
882 exec_prefix
883 PACKAGE_URL
884 PACKAGE_BUGREPORT
885 PACKAGE_STRING
886 PACKAGE_VERSION
887 PACKAGE_TARNAME
888 PACKAGE_NAME
889 PATH_SEPARATOR
890 SHELL'
891 ac_subst_files=''
892 ac_user_opts='
893 enable_option_checking
894 enable_dependency_tracking
895 enable_largefile
896 enable_shared
897 enable_static
898 with_pic
899 enable_fast_install
900 with_gnu_ld
901 enable_libtool_lock
902 enable_targets
903 enable_checking
904 enable_werror
905 enable_build_warnings
906 enable_nls
907 enable_maintainer_mode
909 ac_precious_vars='build_alias
910 host_alias
911 target_alias
913 CFLAGS
914 LDFLAGS
915 LIBS
916 CPPFLAGS
918 YACC
919 YFLAGS'
922 # Initialize some variables set by options.
923 ac_init_help=
924 ac_init_version=false
925 ac_unrecognized_opts=
926 ac_unrecognized_sep=
927 # The variables have the same names as the options, with
928 # dashes changed to underlines.
929 cache_file=/dev/null
930 exec_prefix=NONE
931 no_create=
932 no_recursion=
933 prefix=NONE
934 program_prefix=NONE
935 program_suffix=NONE
936 program_transform_name=s,x,x,
937 silent=
938 site=
939 srcdir=
940 verbose=
941 x_includes=NONE
942 x_libraries=NONE
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.)
950 bindir='${exec_prefix}/bin'
951 sbindir='${exec_prefix}/sbin'
952 libexecdir='${exec_prefix}/libexec'
953 datarootdir='${prefix}/share'
954 datadir='${datarootdir}'
955 sysconfdir='${prefix}/etc'
956 sharedstatedir='${prefix}/com'
957 localstatedir='${prefix}/var'
958 includedir='${prefix}/include'
959 oldincludedir='/usr/include'
960 docdir='${datarootdir}/doc/${PACKAGE}'
961 infodir='${datarootdir}/info'
962 htmldir='${docdir}'
963 dvidir='${docdir}'
964 pdfdir='${docdir}'
965 psdir='${docdir}'
966 libdir='${exec_prefix}/lib'
967 localedir='${datarootdir}/locale'
968 mandir='${datarootdir}/man'
970 ac_prev=
971 ac_dashdash=
972 for ac_option
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
981 case $ac_option in
982 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983 *) ac_optarg=yes ;;
984 esac
986 # Accept the important Cygnus configure options, so we can diagnose typos.
988 case $ac_dashdash$ac_option in
990 ac_dashdash=yes ;;
992 -bindir | --bindir | --bindi | --bind | --bin | --bi)
993 ac_prev=bindir ;;
994 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995 bindir=$ac_optarg ;;
997 -build | --build | --buil | --bui | --bu)
998 ac_prev=build_alias ;;
999 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000 build_alias=$ac_optarg ;;
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 ;;
1009 --config-cache | -C)
1010 cache_file=config.cache ;;
1012 -datadir | --datadir | --datadi | --datad)
1013 ac_prev=datadir ;;
1014 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015 datadir=$ac_optarg ;;
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 ;;
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
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 ;;
1040 -docdir | --docdir | --docdi | --doc | --do)
1041 ac_prev=docdir ;;
1042 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1043 docdir=$ac_optarg ;;
1045 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046 ac_prev=dvidir ;;
1047 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1048 dvidir=$ac_optarg ;;
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
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 ;;
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 ;;
1075 -gas | --gas | --ga | --g)
1076 # Obsolete; use --with-gas.
1077 with_gas=yes ;;
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 ;;
1086 -host | --host | --hos | --ho)
1087 ac_prev=host_alias ;;
1088 -host=* | --host=* | --hos=* | --ho=*)
1089 host_alias=$ac_optarg ;;
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 ;;
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 ;;
1104 -infodir | --infodir | --infodi | --infod | --info | --inf)
1105 ac_prev=infodir ;;
1106 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1107 infodir=$ac_optarg ;;
1109 -libdir | --libdir | --libdi | --libd)
1110 ac_prev=libdir ;;
1111 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1112 libdir=$ac_optarg ;;
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 ;;
1121 -localedir | --localedir | --localedi | --localed | --locale)
1122 ac_prev=localedir ;;
1123 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1124 localedir=$ac_optarg ;;
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 ;;
1133 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134 ac_prev=mandir ;;
1135 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1136 mandir=$ac_optarg ;;
1138 -nfp | --nfp | --nf)
1139 # Obsolete; use --without-fp.
1140 with_fp=no ;;
1142 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1143 | --no-cr | --no-c | -n)
1144 no_create=yes ;;
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 ;;
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 ;;
1159 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160 ac_prev=prefix ;;
1161 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1162 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
1195 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196 ac_prev=pdfdir ;;
1197 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1198 pdfdir=$ac_optarg ;;
1200 -psdir | --psdir | --psdi | --psd | --ps)
1201 ac_prev=psdir ;;
1202 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1203 psdir=$ac_optarg ;;
1205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1206 | -silent | --silent | --silen | --sile | --sil)
1207 silent=yes ;;
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 ;;
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 ;;
1226 -site | --site | --sit)
1227 ac_prev=site ;;
1228 -site=* | --site=* | --sit=*)
1229 site=$ac_optarg ;;
1231 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232 ac_prev=srcdir ;;
1233 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1234 srcdir=$ac_optarg ;;
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 ;;
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 ;;
1248 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1249 verbose=yes ;;
1251 -version | --version | --versio | --versi | --vers | -V)
1252 ac_init_version=: ;;
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
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 ;;
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
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 ;;
1286 --x)
1287 # Obsolete; use --with-x.
1288 with_x=yes ;;
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 ;;
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 ;;
1304 -*) as_fn_error "unrecognized option: \`$ac_option'
1305 Try \`$0 --help' for more information."
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 ;;
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}
1326 esac
1327 done
1329 if test -n "$ac_prev"; then
1330 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331 as_fn_error "missing argument to $ac_option"
1334 if 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
1342 # Check all directory arguments for consistency.
1343 for 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
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"
1361 done
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.
1366 build=$build_alias
1367 host=$host_alias
1368 target=$target_alias
1370 # FIXME: To remove some day.
1371 if 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
1381 ac_tool_prefix=
1382 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1384 test "$silent" = yes && exec 6>/dev/null
1387 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388 ac_ls_di=`ls -di .` &&
1389 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390 as_fn_error "working directory cannot be determined"
1391 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1392 as_fn_error "pwd does not report name of working directory"
1395 # Find the source files, if location was not specified.
1396 if 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/
1409 /^X\(\/\/\)[^/].*/{
1410 s//\1/
1413 /^X\(\/\/\)$/{
1414 s//\1/
1417 /^X\(\/\).*/{
1418 s//\1/
1421 s/.*/./; q'`
1422 srcdir=$ac_confdir
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1424 srcdir=..
1426 else
1427 ac_srcdir_defaulted=no
1429 if 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"
1433 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434 ac_abs_confdir=`(
1435 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1436 pwd)`
1437 # When building in place, set srcdir=.
1438 if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 srcdir=.
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.
1444 case $srcdir in
1445 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446 esac
1447 for 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}
1452 done
1455 # Report the --help message.
1457 if 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.
1463 Usage: $0 [OPTION]... [VAR=VALUE]...
1465 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466 VAR=VALUE. See below for descriptions of some of the useful variables.
1468 Defaults for the options are specified in brackets.
1470 Configuration:
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 \`..']
1481 Installation 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]
1487 By default, \`make install' will install all the files in
1488 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490 for instance \`--prefix=\$HOME'.
1492 For better control, use the options below.
1494 Fine 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
1516 cat <<\_ACEOF
1518 Program 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
1523 System 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
1530 if test -n "$ac_init_help"; then
1532 cat <<\_ACEOF
1534 Optional 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
1554 Optional 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]
1561 Some 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.
1576 Use these variables to override the choices made by `configure' or to help
1577 it to find libraries and programs with nonstandard names/locations.
1579 Report bugs to the package provider.
1580 _ACEOF
1581 ac_status=$?
1584 if 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=.
1592 case "$ac_dir" in
1593 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
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 ;;
1602 esac
1603 ac_abs_top_builddir=$ac_pwd
1604 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1605 # for backward compatibility:
1606 ac_top_builddir=$ac_top_build_prefix
1608 case $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 ;;
1621 esac
1622 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
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
1639 test -n "$ac_init_help" && exit $ac_status
1640 if $ac_init_version; then
1641 cat <<\_ACEOF
1642 configure
1643 generated by GNU Autoconf 2.64
1645 Copyright (C) 2009 Free Software Foundation, Inc.
1646 This configure script is free software; the Free Software Foundation
1647 gives unlimited permission to copy, distribute and modify it.
1648 _ACEOF
1649 exit
1652 ## ------------------------ ##
1653 ## Autoconf initialization. ##
1654 ## ------------------------ ##
1656 # ac_fn_c_try_compile LINENO
1657 # --------------------------
1658 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1659 ac_fn_c_try_compile ()
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"
1664 case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667 esac
1668 eval 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
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
1683 else
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1687 ac_retval=1
1689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690 return $ac_retval
1692 } # ac_fn_c_try_compile
1694 # ac_fn_c_try_link LINENO
1695 # -----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded.
1697 ac_fn_c_try_link ()
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"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval 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
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
1724 else
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1728 ac_retval=1
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
1738 } # ac_fn_c_try_link
1740 # ac_fn_c_try_cpp LINENO
1741 # ----------------------
1742 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_c_try_cpp ()
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if { { ac_try="$ac_cpp conftest.$ac_ext"
1747 case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval 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
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
1766 else
1767 $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1770 ac_retval=1
1772 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773 return $ac_retval
1775 } # ac_fn_c_try_cpp
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.
1782 ac_fn_c_check_header_mongrel ()
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; }
1788 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1789 $as_echo_n "(cached) " >&6
1791 eval ac_res=\$$3
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 $as_echo "$ac_res" >&6; }
1794 else
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; }
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1801 #include <$2>
1802 _ACEOF
1803 if ac_fn_c_try_compile "$LINENO"; then :
1804 ac_header_compiler=yes
1805 else
1806 ac_header_compiler=no
1808 rm -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; }
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; }
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1817 #include <$2>
1818 _ACEOF
1819 if ac_fn_c_try_cpp "$LINENO"; then :
1820 ac_header_preproc=yes
1821 else
1822 ac_header_preproc=no
1824 rm -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; }
1828 # So? What about this header?
1829 case $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;}
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;}
1848 esac
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1852 $as_echo_n "(cached) " >&6
1853 else
1854 eval "$3=\$ac_header_compiler"
1856 eval ac_res=\$$3
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1862 } # ac_fn_c_check_header_mongrel
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.
1868 ac_fn_c_try_run ()
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 if { { ac_try="$ac_link"
1872 case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1875 esac
1876 eval 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;;
1885 esac
1886 eval 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
1893 else
1894 $as_echo "$as_me: program exited with status $ac_status" >&5
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1898 ac_retval=$ac_status
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
1904 } # ac_fn_c_try_run
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.
1910 ac_fn_c_check_header_compile ()
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; }
1915 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1916 $as_echo_n "(cached) " >&6
1917 else
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1921 #include <$2>
1922 _ACEOF
1923 if ac_fn_c_try_compile "$LINENO"; then :
1924 eval "$3=yes"
1925 else
1926 eval "$3=no"
1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 eval 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;}
1935 } # ac_fn_c_check_header_compile
1937 # ac_fn_c_check_func LINENO FUNC VAR
1938 # ----------------------------------
1939 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1940 ac_fn_c_check_func ()
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; }
1945 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1946 $as_echo_n "(cached) " >&6
1947 else
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
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. */
1959 #ifdef __STDC__
1960 # include <limits.h>
1961 #else
1962 # include <assert.h>
1963 #endif
1965 #undef $2
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
1971 extern "C"
1972 #endif
1973 char $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
1978 choke me
1979 #endif
1982 main ()
1984 return $2 ();
1986 return 0;
1988 _ACEOF
1989 if ac_fn_c_try_link "$LINENO"; then :
1990 eval "$3=yes"
1991 else
1992 eval "$3=no"
1994 rm -f core conftest.err conftest.$ac_objext \
1995 conftest$ac_exeext conftest.$ac_ext
1997 eval 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;}
2002 } # ac_fn_c_check_func
2004 # ac_fn_c_check_decl LINENO SYMBOL VAR
2005 # ------------------------------------
2006 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2007 ac_fn_c_check_decl ()
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; }
2012 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2013 $as_echo_n "(cached) " >&6
2014 else
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2019 main ()
2021 #ifndef $2
2022 (void) $2;
2023 #endif
2026 return 0;
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 eval "$3=yes"
2031 else
2032 eval "$3=no"
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 eval 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;}
2041 } # ac_fn_c_check_decl
2042 cat >config.log <<_ACEOF
2043 This file contains any messages produced by compilers while
2044 running configure, to aid debugging if configure makes a mistake.
2046 It was created by $as_me, which was
2047 generated by GNU Autoconf 2.64. Invocation command line was
2049 $ $0 $@
2051 _ACEOF
2052 exec 5>>config.log
2054 cat <<_ASUNAME
2055 ## --------- ##
2056 ## Platform. ##
2057 ## --------- ##
2059 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2060 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2061 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2062 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2063 uname -v = `(uname -v) 2>/dev/null || echo unknown`
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`
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`
2076 _ASUNAME
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2081 IFS=$as_save_IFS
2082 test -z "$as_dir" && as_dir=.
2083 $as_echo "PATH: $as_dir"
2084 done
2085 IFS=$as_save_IFS
2087 } >&5
2089 cat >&5 <<_ACEOF
2092 ## ----------- ##
2093 ## Core tests. ##
2094 ## ----------- ##
2096 _ACEOF
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.
2104 ac_configure_args=
2105 ac_configure_args0=
2106 ac_configure_args1=
2107 ac_must_keep_next=false
2108 for ac_pass in 1 2
2110 for ac_arg
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'" ;;
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
2136 -* ) ac_must_keep_next=true ;;
2137 esac
2139 as_fn_append ac_configure_args " '$ac_arg'"
2141 esac
2142 done
2143 done
2144 { ac_configure_args0=; unset ac_configure_args0;}
2145 { ac_configure_args1=; unset ac_configure_args1;}
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.
2152 trap 'exit_status=$?
2153 # Save into config.log some information that might help in debugging.
2155 echo
2157 cat <<\_ASBOX
2158 ## ---------------- ##
2159 ## Cache variables. ##
2160 ## ---------------- ##
2161 _ASBOX
2162 echo
2163 # The following way of writing the cache mishandles newlines in values,
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 ;; #(
2188 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2190 esac |
2191 sort
2193 echo
2195 cat <<\_ASBOX
2196 ## ----------------- ##
2197 ## Output variables. ##
2198 ## ----------------- ##
2199 _ASBOX
2200 echo
2201 for ac_var in $ac_subst_vars
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
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
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
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
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
2247 for ac_signal in 1 2 13 15; do
2248 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2249 done
2250 ac_signal=0
2252 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2253 rm -f -r conftest* confdefs.h
2255 $as_echo "/* confdefs.h */" > confdefs.h
2257 # Predefined preprocessor variables.
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_NAME "$PACKAGE_NAME"
2261 _ACEOF
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2265 _ACEOF
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2269 _ACEOF
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_STRING "$PACKAGE_STRING"
2273 _ACEOF
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2277 _ACEOF
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_URL "$PACKAGE_URL"
2281 _ACEOF
2284 # Let the site file select an alternate cache file if it wants to.
2285 # Prefer an explicitly selected file to automatically selected ones.
2286 ac_site_file1=NONE
2287 ac_site_file2=NONE
2288 if test -n "$CONFIG_SITE"; then
2289 ac_site_file1=$CONFIG_SITE
2290 elif test "x$prefix" != xNONE; then
2291 ac_site_file1=$prefix/share/config.site
2292 ac_site_file2=$prefix/etc/config.site
2293 else
2294 ac_site_file1=$ac_default_prefix/share/config.site
2295 ac_site_file2=$ac_default_prefix/etc/config.site
2297 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
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"
2306 done
2308 if 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
2319 else
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
2325 # Check that the precious variables saved in the cache have kept the same
2326 # value.
2327 ac_cache_corrupted=false
2328 for 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 ,);;
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
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
2374 done
2375 if $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
2382 ## -------------------- ##
2383 ## Main body of script. ##
2384 ## -------------------- ##
2386 ac_ext=c
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2398 ac_aux_dir=
2399 for 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
2406 done
2407 done
2408 if test -z "$ac_aux_dir"; then
2409 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
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.
2416 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2417 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2418 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
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
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2426 $as_echo_n "checking build system type... " >&6; }
2427 if test "${ac_cv_build+set}" = set; then :
2428 $as_echo_n "(cached) " >&6
2429 else
2430 ac_build_alias=$build_alias
2431 test "x$ac_build_alias" = x &&
2432 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2433 test "x$ac_build_alias" = x &&
2434 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2435 ac_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
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2440 $as_echo "$ac_cv_build" >&6; }
2441 case $ac_cv_build in
2442 *-*-*) ;;
2443 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2444 esac
2445 build=$ac_cv_build
2446 ac_save_IFS=$IFS; IFS='-'
2447 set x $ac_cv_build
2448 shift
2449 build_cpu=$1
2450 build_vendor=$2
2451 shift; shift
2452 # Remember, the first character of IFS is used to create $*,
2453 # except with old shells:
2454 build_os=$*
2455 IFS=$ac_save_IFS
2456 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2460 $as_echo_n "checking host system type... " >&6; }
2461 if test "${ac_cv_host+set}" = set; then :
2462 $as_echo_n "(cached) " >&6
2463 else
2464 if test "x$host_alias" = x; then
2465 ac_cv_host=$ac_cv_build
2466 else
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
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2473 $as_echo "$ac_cv_host" >&6; }
2474 case $ac_cv_host in
2475 *-*-*) ;;
2476 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2477 esac
2478 host=$ac_cv_host
2479 ac_save_IFS=$IFS; IFS='-'
2480 set x $ac_cv_host
2481 shift
2482 host_cpu=$1
2483 host_vendor=$2
2484 shift; shift
2485 # Remember, the first character of IFS is used to create $*,
2486 # except with old shells:
2487 host_os=$*
2488 IFS=$ac_save_IFS
2489 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2493 $as_echo_n "checking target system type... " >&6; }
2494 if test "${ac_cv_target+set}" = set; then :
2495 $as_echo_n "(cached) " >&6
2496 else
2497 if test "x$target_alias" = x; then
2498 ac_cv_target=$ac_cv_host
2499 else
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
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2506 $as_echo "$ac_cv_target" >&6; }
2507 case $ac_cv_target in
2508 *-*-*) ;;
2509 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2510 esac
2511 target=$ac_cv_target
2512 ac_save_IFS=$IFS; IFS='-'
2513 set x $ac_cv_target
2514 shift
2515 target_cpu=$1
2516 target_vendor=$2
2517 shift; shift
2518 # Remember, the first character of IFS is used to create $*,
2519 # except with old shells:
2520 target_os=$*
2521 IFS=$ac_save_IFS
2522 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2525 # The aliases save the names the user supplied, while $host etc.
2526 # will get canonicalized.
2527 test -n "$target_alias" &&
2528 test "$program_prefix$program_suffix$program_transform_name" = \
2529 NONENONEs,x,x, &&
2530 program_prefix=${target_alias}-
2531 ac_ext=c
2532 ac_cpp='$CPP $CPPFLAGS'
2533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536 if 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.
2538 set 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; }
2541 if test "${ac_cv_prog_CC+set}" = set; then :
2542 $as_echo_n "(cached) " >&6
2543 else
2544 if test -n "$CC"; then
2545 ac_cv_prog_CC="$CC" # Let the user override the test.
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
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
2558 done
2559 done
2560 IFS=$as_save_IFS
2564 CC=$ac_cv_prog_CC
2565 if test -n "$CC"; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2567 $as_echo "$CC" >&6; }
2568 else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2570 $as_echo "no" >&6; }
2575 if 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.
2578 set 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; }
2581 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2582 $as_echo_n "(cached) " >&6
2583 else
2584 if test -n "$ac_ct_CC"; then
2585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
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
2598 done
2599 done
2600 IFS=$as_save_IFS
2604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2605 if 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; }
2608 else
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610 $as_echo "no" >&6; }
2613 if test "x$ac_ct_CC" = x; then
2614 CC=""
2615 else
2616 case $cross_compiling:$ac_tool_warned in
2617 yes:)
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;}
2620 ac_tool_warned=yes ;;
2621 esac
2622 CC=$ac_ct_CC
2624 else
2625 CC="$ac_cv_prog_CC"
2628 if 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.
2631 set 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; }
2634 if test "${ac_cv_prog_CC+set}" = set; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 if test -n "$CC"; then
2638 ac_cv_prog_CC="$CC" # Let the user override the test.
2639 else
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
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
2651 done
2652 done
2653 IFS=$as_save_IFS
2657 CC=$ac_cv_prog_CC
2658 if test -n "$CC"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2660 $as_echo "$CC" >&6; }
2661 else
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663 $as_echo "no" >&6; }
2669 if test -z "$CC"; then
2670 # Extract the first word of "cc", so it can be a program name with args.
2671 set 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; }
2674 if test "${ac_cv_prog_CC+set}" = set; then :
2675 $as_echo_n "(cached) " >&6
2676 else
2677 if test -n "$CC"; then
2678 ac_cv_prog_CC="$CC" # Let the user override the test.
2679 else
2680 ac_prog_rejected=no
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
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
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
2696 done
2697 done
2698 IFS=$as_save_IFS
2700 if 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+' '}$@"
2714 CC=$ac_cv_prog_CC
2715 if test -n "$CC"; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2717 $as_echo "$CC" >&6; }
2718 else
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720 $as_echo "no" >&6; }
2725 if test -z "$CC"; then
2726 if test -n "$ac_tool_prefix"; then
2727 for ac_prog in cl.exe
2729 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2730 set 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; }
2733 if test "${ac_cv_prog_CC+set}" = set; then :
2734 $as_echo_n "(cached) " >&6
2735 else
2736 if test -n "$CC"; then
2737 ac_cv_prog_CC="$CC" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
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
2750 done
2751 done
2752 IFS=$as_save_IFS
2756 CC=$ac_cv_prog_CC
2757 if test -n "$CC"; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2759 $as_echo "$CC" >&6; }
2760 else
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762 $as_echo "no" >&6; }
2766 test -n "$CC" && break
2767 done
2769 if test -z "$CC"; then
2770 ac_ct_CC=$CC
2771 for ac_prog in cl.exe
2773 # Extract the first word of "$ac_prog", so it can be a program name with args.
2774 set 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; }
2777 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2778 $as_echo_n "(cached) " >&6
2779 else
2780 if test -n "$ac_ct_CC"; then
2781 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
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
2794 done
2795 done
2796 IFS=$as_save_IFS
2800 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2801 if 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; }
2804 else
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806 $as_echo "no" >&6; }
2810 test -n "$ac_ct_CC" && break
2811 done
2813 if test "x$ac_ct_CC" = x; then
2814 CC=""
2815 else
2816 case $cross_compiling:$ac_tool_warned in
2817 yes:)
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;}
2820 ac_tool_warned=yes ;;
2821 esac
2822 CC=$ac_ct_CC
2829 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2831 as_fn_error "no acceptable C compiler found in \$PATH
2832 See \`config.log' for more details." "$LINENO" 5; }
2834 # Provide some information about the compiler.
2835 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2836 set X $ac_compile
2837 ac_compiler=$2
2838 for ac_option in --version -v -V -qversion; do
2839 { { ac_try="$ac_compiler $ac_option >&5"
2840 case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2843 esac
2844 eval 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
2855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2856 test $ac_status = 0; }
2857 done
2859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2860 /* end confdefs.h. */
2863 main ()
2867 return 0;
2869 _ACEOF
2870 ac_clean_files_save=$ac_clean_files
2871 ac_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; }
2877 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2879 # The possible output files:
2880 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2882 ac_rmfiles=
2883 for ac_file in $ac_files
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
2889 done
2890 rm -f $ac_rmfiles
2892 if { { ac_try="$ac_link_default"
2893 case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896 esac
2897 eval 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.
2908 for ac_file in $ac_files ''
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 )
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" : '[^.]*\(\..*\)'`
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;;
2930 break;;
2931 esac
2932 done
2933 test "$ac_cv_exeext" = no && ac_cv_exeext=
2935 else
2936 ac_file=''
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2939 $as_echo "$ac_file" >&6; }
2940 if test -z "$ac_file"; then :
2941 $as_echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
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
2947 as_fn_error "C compiler cannot create executables
2948 See \`config.log' for more details." "$LINENO" 5; }; }
2950 ac_exeext=$ac_cv_exeext
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.
2957 if 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;;
2962 esac
2963 eval 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;}
2976 as_fn_error "cannot run C compiled programs.
2977 If you meant to cross compile, use \`--host'.
2978 See \`config.log' for more details." "$LINENO" 5; }
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2983 $as_echo "yes" >&6; }
2985 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2986 ac_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; }
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2995 $as_echo_n "checking for suffix of executables... " >&6; }
2996 if { { ac_try="$ac_link"
2997 case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000 esac
3001 eval 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'.
3011 for 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
3019 done
3020 else
3021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3023 as_fn_error "cannot compute suffix of executables: cannot compile and link
3024 See \`config.log' for more details." "$LINENO" 5; }
3026 rm -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; }
3030 rm -f conftest.$ac_ext
3031 EXEEXT=$ac_cv_exeext
3032 ac_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; }
3035 if test "${ac_cv_objext+set}" = set; then :
3036 $as_echo_n "(cached) " >&6
3037 else
3038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3039 /* end confdefs.h. */
3042 main ()
3046 return 0;
3048 _ACEOF
3049 rm -f conftest.o conftest.obj
3050 if { { ac_try="$ac_compile"
3051 case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054 esac
3055 eval 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
3068 done
3069 else
3070 $as_echo "$as_me: failed program was:" >&5
3071 sed 's/^/| /' conftest.$ac_ext >&5
3073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3075 as_fn_error "cannot compute suffix of object files: cannot compile
3076 See \`config.log' for more details." "$LINENO" 5; }
3078 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3081 $as_echo "$ac_cv_objext" >&6; }
3082 OBJEXT=$ac_cv_objext
3083 ac_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; }
3086 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090 /* end confdefs.h. */
3093 main ()
3095 #ifndef __GNUC__
3096 choke me
3097 #endif
3100 return 0;
3102 _ACEOF
3103 if ac_fn_c_try_compile "$LINENO"; then :
3104 ac_compiler_gnu=yes
3105 else
3106 ac_compiler_gnu=no
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3113 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3114 if test $ac_compiler_gnu = yes; then
3115 GCC=yes
3116 else
3117 GCC=
3119 ac_test_CFLAGS=${CFLAGS+set}
3120 ac_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; }
3123 if test "${ac_cv_prog_cc_g+set}" = set; then :
3124 $as_echo_n "(cached) " >&6
3125 else
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. */
3134 main ()
3138 return 0;
3140 _ACEOF
3141 if ac_fn_c_try_compile "$LINENO"; then :
3142 ac_cv_prog_cc_g=yes
3143 else
3144 CFLAGS=""
3145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146 /* end confdefs.h. */
3149 main ()
3153 return 0;
3155 _ACEOF
3156 if ac_fn_c_try_compile "$LINENO"; then :
3158 else
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. */
3165 main ()
3169 return 0;
3171 _ACEOF
3172 if ac_fn_c_try_compile "$LINENO"; then :
3173 ac_cv_prog_cc_g=yes
3175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 ac_c_werror_flag=$ac_save_c_werror_flag
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3183 $as_echo "$ac_cv_prog_cc_g" >&6; }
3184 if test "$ac_test_CFLAGS" = set; then
3185 CFLAGS=$ac_save_CFLAGS
3186 elif test $ac_cv_prog_cc_g = yes; then
3187 if test "$GCC" = yes; then
3188 CFLAGS="-g -O2"
3189 else
3190 CFLAGS="-g"
3192 else
3193 if test "$GCC" = yes; then
3194 CFLAGS="-O2"
3195 else
3196 CFLAGS=
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; }
3201 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3202 $as_echo_n "(cached) " >&6
3203 else
3204 ac_cv_prog_cc_c89=no
3205 ac_save_CC=$CC
3206 cat 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. */
3213 struct buf { int x; };
3214 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3215 static char *e (p, i)
3216 char **p;
3217 int i;
3219 return p[i];
3221 static char *f (char * (*g) (char **, int), char **p, ...)
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;
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. */
3238 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
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'
3243 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3245 int test (int i, double x);
3246 struct s1 {int (*f) (int a);};
3247 struct s2 {int (*f) (double a);};
3248 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3249 int argc;
3250 char **argv;
3252 main ()
3254 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3256 return 0;
3258 _ACEOF
3259 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3260 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3262 CC="$ac_save_CC $ac_arg"
3263 if ac_fn_c_try_compile "$LINENO"; then :
3264 ac_cv_prog_cc_c89=$ac_arg
3266 rm -f core conftest.err conftest.$ac_objext
3267 test "x$ac_cv_prog_cc_c89" != "xno" && break
3268 done
3269 rm -f conftest.$ac_ext
3270 CC=$ac_save_CC
3273 # AC_CACHE_VAL
3274 case "x$ac_cv_prog_cc_c89" in
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; } ;;
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; } ;;
3285 esac
3286 if test "x$ac_cv_prog_cc_c89" != xno; then :
3290 ac_ext=c
3291 ac_cpp='$CPP $CPPFLAGS'
3292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3298 $as_echo_n "checking for library containing strerror... " >&6; }
3299 if test "${ac_cv_search_strerror+set}" = set; then :
3300 $as_echo_n "(cached) " >&6
3301 else
3302 ac_func_search_save_LIBS=$LIBS
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
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
3310 extern "C"
3311 #endif
3312 char strerror ();
3314 main ()
3316 return strerror ();
3318 return 0;
3320 _ACEOF
3321 for 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"
3328 if ac_fn_c_try_link "$LINENO"; then :
3329 ac_cv_search_strerror=$ac_res
3331 rm -f core conftest.err conftest.$ac_objext \
3332 conftest$ac_exeext
3333 if test "${ac_cv_search_strerror+set}" = set; then :
3334 break
3336 done
3337 if test "${ac_cv_search_strerror+set}" = set; then :
3339 else
3340 ac_cv_search_strerror=no
3342 rm conftest.$ac_ext
3343 LIBS=$ac_func_search_save_LIBS
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3346 $as_echo "$ac_cv_search_strerror" >&6; }
3347 ac_res=$ac_cv_search_strerror
3348 if test "$ac_res" != no; then :
3349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3354 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
3355 am__api_version='1.11'
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; }
3373 if test -z "$INSTALL"; then
3374 if test "${ac_cv_path_install+set}" = set; then :
3375 $as_echo_n "(cached) " >&6
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 # Account for people who put trailing slashes in PATH elements.
3383 case $as_dir/ in #((
3384 ./ | .// | /[cC]/* | \
3385 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3386 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3387 /usr/ucb/* ) ;;
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.
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.
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
3418 done
3419 done
3421 esac
3423 done
3424 IFS=$as_save_IFS
3426 rm -rf conftest.one conftest.two conftest.dir
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
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3440 $as_echo "$INSTALL" >&6; }
3442 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3443 # It thinks the first close brace ends the variable substitution.
3444 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3446 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3448 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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
3453 sleep 1
3454 echo timestamp > conftest.file
3455 # Reject unsafe characters in $srcdir or the absolute working directory
3456 # name. Accept space and tab only in the latter.
3457 am_lf='
3459 case `pwd` in
3460 *[\\\"\#\$\&\'\`$am_lf]*)
3461 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3462 esac
3463 case $srcdir in
3464 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3465 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3466 esac
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).
3473 if (
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`
3479 rm -f conftest.file
3480 if test "$*" != "X $srcdir/configure conftest.file" \
3481 && test "$*" != "X conftest.file $srcdir/configure"; then
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
3488 alias in your environment" "$LINENO" 5
3491 test "$2" = conftest.file
3493 then
3494 # Ok.
3496 else
3497 as_fn_error "newly created file is older than distributed files!
3498 Check your system clock" "$LINENO" 5
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3501 $as_echo "yes" >&6; }
3502 test "$program_prefix" != NONE &&
3503 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3504 # Use a double $ so make ignores it.
3505 test "$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.
3509 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3510 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3512 # expand $ac_aux_dir to an absolute path
3513 am_aux_dir=`cd $ac_aux_dir && pwd`
3515 if test x"${MISSING+set}" != xset; then
3516 case $am_aux_dir in
3517 *\ * | *\ *)
3518 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3520 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3521 esac
3523 # Use eval to expand $SHELL
3524 if eval "$MISSING --run true"; then
3525 am_missing_run="$MISSING --run "
3526 else
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;}
3532 if test x"${install_sh}" != xset; then
3533 case $am_aux_dir in
3534 *\ * | *\ *)
3535 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3537 install_sh="\${SHELL} $am_aux_dir/install-sh"
3538 esac
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.
3545 if 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.
3548 set 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; }
3551 if test "${ac_cv_prog_STRIP+set}" = set; then :
3552 $as_echo_n "(cached) " >&6
3553 else
3554 if test -n "$STRIP"; then
3555 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3556 else
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
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
3568 done
3569 done
3570 IFS=$as_save_IFS
3574 STRIP=$ac_cv_prog_STRIP
3575 if test -n "$STRIP"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3577 $as_echo "$STRIP" >&6; }
3578 else
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3585 if 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.
3588 set 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; }
3591 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 if test -n "$ac_ct_STRIP"; then
3595 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3596 else
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
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
3608 done
3609 done
3610 IFS=$as_save_IFS
3614 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3615 if 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; }
3618 else
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 $as_echo "no" >&6; }
3623 if test "x$ac_ct_STRIP" = x; then
3624 STRIP=":"
3625 else
3626 case $cross_compiling:$ac_tool_warned in
3627 yes:)
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;}
3630 ac_tool_warned=yes ;;
3631 esac
3632 STRIP=$ac_ct_STRIP
3634 else
3635 STRIP="$ac_cv_prog_STRIP"
3639 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
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; }
3643 if test -z "$MKDIR_P"; then
3644 if test "${ac_cv_path_mkdir+set}" = set; then :
3645 $as_echo_n "(cached) " >&6
3646 else
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
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
3665 IFS=$as_save_IFS
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"
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3681 $as_echo "$MKDIR_P" >&6; }
3683 mkdir_p="$MKDIR_P"
3684 case $mkdir_p in
3685 [\\/$]* | ?:[\\/]*) ;;
3686 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3687 esac
3689 for ac_prog in gawk mawk nawk awk
3691 # Extract the first word of "$ac_prog", so it can be a program name with args.
3692 set 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; }
3695 if test "${ac_cv_prog_AWK+set}" = set; then :
3696 $as_echo_n "(cached) " >&6
3697 else
3698 if test -n "$AWK"; then
3699 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3700 else
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH
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
3712 done
3713 done
3714 IFS=$as_save_IFS
3718 AWK=$ac_cv_prog_AWK
3719 if test -n "$AWK"; then
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3721 $as_echo "$AWK" >&6; }
3722 else
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3728 test -n "$AWK" && break
3729 done
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; }
3733 set x ${MAKE-make}
3734 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3735 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 cat >conftest.make <<\_ACEOF
3739 SHELL = /bin/sh
3740 all:
3741 @echo '@@@%%%=$(MAKE)=@@@%%%'
3742 _ACEOF
3743 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3744 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3745 *@@@%%%=?*=@@@%%%*)
3746 eval ac_cv_prog_make_${ac_make}_set=yes;;
3748 eval ac_cv_prog_make_${ac_make}_set=no;;
3749 esac
3750 rm -f conftest.make
3752 if 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=
3756 else
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758 $as_echo "no" >&6; }
3759 SET_MAKE="MAKE=${MAKE-make}"
3762 rm -rf .tst 2>/dev/null
3763 mkdir .tst 2>/dev/null
3764 if test -d .tst; then
3765 am__leading_dot=.
3766 else
3767 am__leading_dot=_
3769 rmdir .tst 2>/dev/null
3771 DEPDIR="${am__leading_dot}deps"
3773 ac_config_commands="$ac_config_commands depfiles"
3776 am_make=${MAKE-make}
3777 cat > confinc << 'END'
3778 am__doit:
3779 @echo this is the am__doit target
3780 .PHONY: am__doit
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; }
3785 am__include="#"
3786 am__quote=
3787 _am_result=none
3788 # First try GNU make style include.
3789 echo "include confinc" > confmf
3790 # Ignore all kinds of additional output from `make'.
3791 case `$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
3797 esac
3798 # Now try BSD make style include.
3799 if 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
3807 esac
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3812 $as_echo "$_am_result" >&6; }
3813 rm -f confinc confmf
3815 # Check whether --enable-dependency-tracking was given.
3816 if test "${enable_dependency_tracking+set}" = set; then :
3817 enableval=$enable_dependency_tracking;
3820 if test "x$enable_dependency_tracking" != xno; then
3821 am_depcomp="$ac_aux_dir/depcomp"
3822 AMDEPBACKSLASH='\'
3824 if test "x$enable_dependency_tracking" != xno; then
3825 AMDEP_TRUE=
3826 AMDEP_FALSE='#'
3827 else
3828 AMDEP_TRUE='#'
3829 AMDEP_FALSE=
3833 if 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
3843 # test whether we have cygpath
3844 if 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
3853 # Define the identity of the package.
3854 PACKAGE=gas
3855 VERSION=${BFD_VERSION}
3858 cat >>confdefs.h <<_ACEOF
3859 #define PACKAGE "$PACKAGE"
3860 _ACEOF
3863 cat >>confdefs.h <<_ACEOF
3864 #define VERSION "$VERSION"
3865 _ACEOF
3867 # Some tools Automake needs.
3869 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3872 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3875 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3878 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3881 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3883 # We need awk for the "check" target. The system "awk" is bad on
3884 # some platforms.
3885 # Always define AMTAR for backward compatibility.
3887 AMTAR=${AMTAR-"${am_missing_run}tar"}
3889 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3894 depcc="$CC" am_compiler_list=
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3897 $as_echo_n "checking dependency style of $depcc... " >&6; }
3898 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3899 $as_echo_n "(cached) " >&6
3900 else
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
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`
3924 am__universal=false
3925 case " $depcc " in #(
3926 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3927 esac
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.
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
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
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
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=
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
3997 done
3999 cd ..
4000 rm -rf conftest.dir
4001 else
4002 am_cv_CC_dependencies_compiler_type=none
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; }
4008 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
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='#'
4015 else
4016 am__fastdepCC_TRUE='#'
4017 am__fastdepCC_FALSE=
4023 ac_ext=c
4024 ac_cpp='$CPP $CPPFLAGS'
4025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4028 if 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.
4030 set 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; }
4033 if test "${ac_cv_prog_CC+set}" = set; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 if test -n "$CC"; then
4037 ac_cv_prog_CC="$CC" # Let the user override the test.
4038 else
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
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
4050 done
4051 done
4052 IFS=$as_save_IFS
4056 CC=$ac_cv_prog_CC
4057 if test -n "$CC"; then
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4059 $as_echo "$CC" >&6; }
4060 else
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 $as_echo "no" >&6; }
4067 if 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.
4070 set 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; }
4073 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 if test -n "$ac_ct_CC"; then
4077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4078 else
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 for as_dir in $PATH
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
4090 done
4091 done
4092 IFS=$as_save_IFS
4096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4097 if 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; }
4100 else
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 $as_echo "no" >&6; }
4105 if test "x$ac_ct_CC" = x; then
4106 CC=""
4107 else
4108 case $cross_compiling:$ac_tool_warned in
4109 yes:)
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;}
4112 ac_tool_warned=yes ;;
4113 esac
4114 CC=$ac_ct_CC
4116 else
4117 CC="$ac_cv_prog_CC"
4120 if 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.
4123 set 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; }
4126 if test "${ac_cv_prog_CC+set}" = set; then :
4127 $as_echo_n "(cached) " >&6
4128 else
4129 if test -n "$CC"; then
4130 ac_cv_prog_CC="$CC" # Let the user override the test.
4131 else
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
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
4143 done
4144 done
4145 IFS=$as_save_IFS
4149 CC=$ac_cv_prog_CC
4150 if test -n "$CC"; then
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4152 $as_echo "$CC" >&6; }
4153 else
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155 $as_echo "no" >&6; }
4161 if test -z "$CC"; then
4162 # Extract the first word of "cc", so it can be a program name with args.
4163 set 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; }
4166 if test "${ac_cv_prog_CC+set}" = set; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 if test -n "$CC"; then
4170 ac_cv_prog_CC="$CC" # Let the user override the test.
4171 else
4172 ac_prog_rejected=no
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
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
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
4188 done
4189 done
4190 IFS=$as_save_IFS
4192 if 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+' '}$@"
4206 CC=$ac_cv_prog_CC
4207 if test -n "$CC"; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4209 $as_echo "$CC" >&6; }
4210 else
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 $as_echo "no" >&6; }
4217 if test -z "$CC"; then
4218 if test -n "$ac_tool_prefix"; then
4219 for ac_prog in cl.exe
4221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4222 set 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; }
4225 if test "${ac_cv_prog_CC+set}" = set; then :
4226 $as_echo_n "(cached) " >&6
4227 else
4228 if test -n "$CC"; then
4229 ac_cv_prog_CC="$CC" # Let the user override the test.
4230 else
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH
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
4242 done
4243 done
4244 IFS=$as_save_IFS
4248 CC=$ac_cv_prog_CC
4249 if test -n "$CC"; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4251 $as_echo "$CC" >&6; }
4252 else
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254 $as_echo "no" >&6; }
4258 test -n "$CC" && break
4259 done
4261 if test -z "$CC"; then
4262 ac_ct_CC=$CC
4263 for ac_prog in cl.exe
4265 # Extract the first word of "$ac_prog", so it can be a program name with args.
4266 set 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; }
4269 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 if test -n "$ac_ct_CC"; then
4273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4274 else
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH
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
4286 done
4287 done
4288 IFS=$as_save_IFS
4292 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4293 if 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; }
4296 else
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4302 test -n "$ac_ct_CC" && break
4303 done
4305 if test "x$ac_ct_CC" = x; then
4306 CC=""
4307 else
4308 case $cross_compiling:$ac_tool_warned in
4309 yes:)
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;}
4312 ac_tool_warned=yes ;;
4313 esac
4314 CC=$ac_ct_CC
4321 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4323 as_fn_error "no acceptable C compiler found in \$PATH
4324 See \`config.log' for more details." "$LINENO" 5; }
4326 # Provide some information about the compiler.
4327 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4328 set X $ac_compile
4329 ac_compiler=$2
4330 for ac_option in --version -v -V -qversion; do
4331 { { ac_try="$ac_compiler $ac_option >&5"
4332 case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4335 esac
4336 eval 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
4347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4348 test $ac_status = 0; }
4349 done
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; }
4353 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4354 $as_echo_n "(cached) " >&6
4355 else
4356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h. */
4360 main ()
4362 #ifndef __GNUC__
4363 choke me
4364 #endif
4367 return 0;
4369 _ACEOF
4370 if ac_fn_c_try_compile "$LINENO"; then :
4371 ac_compiler_gnu=yes
4372 else
4373 ac_compiler_gnu=no
4375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4380 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4381 if test $ac_compiler_gnu = yes; then
4382 GCC=yes
4383 else
4384 GCC=
4386 ac_test_CFLAGS=${CFLAGS+set}
4387 ac_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; }
4390 if test "${ac_cv_prog_cc_g+set}" = set; then :
4391 $as_echo_n "(cached) " >&6
4392 else
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. */
4401 main ()
4405 return 0;
4407 _ACEOF
4408 if ac_fn_c_try_compile "$LINENO"; then :
4409 ac_cv_prog_cc_g=yes
4410 else
4411 CFLAGS=""
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4416 main ()
4420 return 0;
4422 _ACEOF
4423 if ac_fn_c_try_compile "$LINENO"; then :
4425 else
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. */
4432 main ()
4436 return 0;
4438 _ACEOF
4439 if ac_fn_c_try_compile "$LINENO"; then :
4440 ac_cv_prog_cc_g=yes
4442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447 ac_c_werror_flag=$ac_save_c_werror_flag
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4450 $as_echo "$ac_cv_prog_cc_g" >&6; }
4451 if test "$ac_test_CFLAGS" = set; then
4452 CFLAGS=$ac_save_CFLAGS
4453 elif test $ac_cv_prog_cc_g = yes; then
4454 if test "$GCC" = yes; then
4455 CFLAGS="-g -O2"
4456 else
4457 CFLAGS="-g"
4459 else
4460 if test "$GCC" = yes; then
4461 CFLAGS="-O2"
4462 else
4463 CFLAGS=
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; }
4468 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4469 $as_echo_n "(cached) " >&6
4470 else
4471 ac_cv_prog_cc_c89=no
4472 ac_save_CC=$CC
4473 cat 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. */
4480 struct buf { int x; };
4481 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4482 static char *e (p, i)
4483 char **p;
4484 int i;
4486 return p[i];
4488 static char *f (char * (*g) (char **, int), char **p, ...)
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;
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. */
4505 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
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'
4510 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4512 int test (int i, double x);
4513 struct s1 {int (*f) (int a);};
4514 struct s2 {int (*f) (double a);};
4515 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4516 int argc;
4517 char **argv;
4519 main ()
4521 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4523 return 0;
4525 _ACEOF
4526 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4527 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4529 CC="$ac_save_CC $ac_arg"
4530 if ac_fn_c_try_compile "$LINENO"; then :
4531 ac_cv_prog_cc_c89=$ac_arg
4533 rm -f core conftest.err conftest.$ac_objext
4534 test "x$ac_cv_prog_cc_c89" != "xno" && break
4535 done
4536 rm -f conftest.$ac_ext
4537 CC=$ac_save_CC
4540 # AC_CACHE_VAL
4541 case "x$ac_cv_prog_cc_c89" in
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; } ;;
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; } ;;
4552 esac
4553 if test "x$ac_cv_prog_cc_c89" != xno; then :
4557 ac_ext=c
4558 ac_cpp='$CPP $CPPFLAGS'
4559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4563 ac_ext=c
4564 ac_cpp='$CPP $CPPFLAGS'
4565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4567 ac_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.
4571 if test -n "$CPP" && test -d "$CPP"; then
4572 CPP=
4574 if test -z "$CPP"; then
4575 if test "${ac_cv_prog_CPP+set}" = set; then :
4576 $as_echo_n "(cached) " >&6
4577 else
4578 # Double quotes because CPP needs to be expanded
4579 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4581 ac_preproc_ok=false
4582 for ac_c_preproc_warn_flag in '' yes
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
4599 if ac_fn_c_try_cpp "$LINENO"; then :
4601 else
4602 # Broken: fails on valid input.
4603 continue
4605 rm -f conftest.err conftest.$ac_ext
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
4613 if ac_fn_c_try_cpp "$LINENO"; then :
4614 # Broken: success on invalid input.
4615 continue
4616 else
4617 # Passes both tests.
4618 ac_preproc_ok=:
4619 break
4621 rm -f conftest.err conftest.$ac_ext
4623 done
4624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4625 rm -f conftest.err conftest.$ac_ext
4626 if $ac_preproc_ok; then :
4627 break
4630 done
4631 ac_cv_prog_CPP=$CPP
4634 CPP=$ac_cv_prog_CPP
4635 else
4636 ac_cv_prog_CPP=$CPP
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4639 $as_echo "$CPP" >&6; }
4640 ac_preproc_ok=false
4641 for ac_c_preproc_warn_flag in '' yes
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
4658 if ac_fn_c_try_cpp "$LINENO"; then :
4660 else
4661 # Broken: fails on valid input.
4662 continue
4664 rm -f conftest.err conftest.$ac_ext
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
4672 if ac_fn_c_try_cpp "$LINENO"; then :
4673 # Broken: success on invalid input.
4674 continue
4675 else
4676 # Passes both tests.
4677 ac_preproc_ok=:
4678 break
4680 rm -f conftest.err conftest.$ac_ext
4682 done
4683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4684 rm -f conftest.err conftest.$ac_ext
4685 if $ac_preproc_ok; then :
4687 else
4688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4690 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4691 See \`config.log' for more details." "$LINENO" 5; }
4694 ac_ext=c
4695 ac_cpp='$CPP $CPPFLAGS'
4696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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; }
4703 if test "${ac_cv_path_GREP+set}" = set; then :
4704 $as_echo_n "(cached) " >&6
4705 else
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
4710 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
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
4720 case `"$ac_path_GREP" --version 2>&1` in
4721 *GNU*)
4722 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4724 ac_count=0
4725 $as_echo_n 0123456789 >"conftest.in"
4726 while :
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
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;;
4744 esac
4746 $ac_path_GREP_found && break 3
4747 done
4748 done
4749 done
4750 IFS=$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
4754 else
4755 ac_cv_path_GREP=$GREP
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"
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4765 $as_echo_n "checking for egrep... " >&6; }
4766 if test "${ac_cv_path_EGREP+set}" = set; then :
4767 $as_echo_n "(cached) " >&6
4768 else
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
4776 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
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
4786 case `"$ac_path_EGREP" --version 2>&1` in
4787 *GNU*)
4788 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4790 ac_count=0
4791 $as_echo_n 0123456789 >"conftest.in"
4792 while :
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
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;;
4810 esac
4812 $ac_path_EGREP_found && break 3
4813 done
4814 done
4815 done
4816 IFS=$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
4820 else
4821 ac_cv_path_EGREP=$EGREP
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"
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; }
4833 if test "${ac_cv_header_stdc+set}" = set; then :
4834 $as_echo_n "(cached) " >&6
4835 else
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>
4844 main ()
4848 return 0;
4850 _ACEOF
4851 if ac_fn_c_try_compile "$LINENO"; then :
4852 ac_cv_header_stdc=yes
4853 else
4854 ac_cv_header_stdc=no
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4858 if 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>
4864 _ACEOF
4865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4866 $EGREP "memchr" >/dev/null 2>&1; then :
4868 else
4869 ac_cv_header_stdc=no
4871 rm -f conftest*
4875 if 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>
4881 _ACEOF
4882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4883 $EGREP "free" >/dev/null 2>&1; then :
4885 else
4886 ac_cv_header_stdc=no
4888 rm -f conftest*
4892 if 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 :
4896 else
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
4912 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4914 main ()
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;
4923 _ACEOF
4924 if ac_fn_c_try_run "$LINENO"; then :
4926 else
4927 ac_cv_header_stdc=no
4929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4930 conftest.$ac_objext conftest.beam conftest.$ac_ext
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4936 $as_echo "$ac_cv_header_stdc" >&6; }
4937 if test $ac_cv_header_stdc = yes; then
4939 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4943 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4944 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4945 inttypes.h stdint.h unistd.h
4946 do :
4947 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4948 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4950 eval 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
4958 done
4962 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4963 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4964 MINIX=yes
4965 else
4966 MINIX=
4970 if test "$MINIX" = yes; then
4972 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4975 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4978 $as_echo "#define _MINIX 1" >>confdefs.h
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; }
4985 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4991 # define __EXTENSIONS__ 1
4992 $ac_includes_default
4994 main ()
4998 return 0;
5000 _ACEOF
5001 if ac_fn_c_try_compile "$LINENO"; then :
5002 ac_cv_safe_to_define___extensions__=yes
5003 else
5004 ac_cv_safe_to_define___extensions__=no
5006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
5013 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5015 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5017 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5019 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5024 # Check whether --enable-largefile was given.
5025 if test "${enable_largefile+set}" = set; then :
5026 enableval=$enable_largefile;
5029 if test "$enable_largefile" != no; then
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; }
5033 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5034 $as_echo_n "(cached) " >&6
5035 else
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];
5054 main ()
5058 return 0;
5060 _ACEOF
5061 if ac_fn_c_try_compile "$LINENO"; then :
5062 break
5064 rm -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
5069 rm -f core conftest.err conftest.$ac_objext
5070 break
5071 done
5072 CC=$ac_save_CC
5073 rm -f conftest.$ac_ext
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
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; }
5084 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5085 $as_echo_n "(cached) " >&6
5086 else
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];
5100 main ()
5104 return 0;
5106 _ACEOF
5107 if ac_fn_c_try_compile "$LINENO"; then :
5108 ac_cv_sys_file_offset_bits=no; break
5110 rm -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];
5124 main ()
5128 return 0;
5130 _ACEOF
5131 if ac_fn_c_try_compile "$LINENO"; then :
5132 ac_cv_sys_file_offset_bits=64; break
5134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5135 ac_cv_sys_file_offset_bits=unknown
5136 break
5137 done
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; }
5141 case $ac_cv_sys_file_offset_bits in #(
5142 no | unknown) ;;
5144 cat >>confdefs.h <<_ACEOF
5145 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5146 _ACEOF
5148 esac
5149 rm -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; }
5153 if test "${ac_cv_sys_large_files+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5155 else
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];
5169 main ()
5173 return 0;
5175 _ACEOF
5176 if ac_fn_c_try_compile "$LINENO"; then :
5177 ac_cv_sys_large_files=no; break
5179 rm -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];
5193 main ()
5197 return 0;
5199 _ACEOF
5200 if ac_fn_c_try_compile "$LINENO"; then :
5201 ac_cv_sys_large_files=1; break
5203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5204 ac_cv_sys_large_files=unknown
5205 break
5206 done
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5209 $as_echo "$ac_cv_sys_large_files" >&6; }
5210 case $ac_cv_sys_large_files in #(
5211 no | unknown) ;;
5213 cat >>confdefs.h <<_ACEOF
5214 #define _LARGE_FILES $ac_cv_sys_large_files
5215 _ACEOF
5217 esac
5218 rm -rf conftest*
5223 case `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;} ;;
5227 esac
5231 macro_version='2.2.6'
5232 macro_revision='1.3012'
5246 ltmain="$ac_aux_dir/ltmain.sh"
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; }
5250 if test "${ac_cv_path_SED+set}" = set; then :
5251 $as_echo_n "(cached) " >&6
5252 else
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
5263 for as_dir in $PATH
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
5273 case `"$ac_path_SED" --version 2>&1` in
5274 *GNU*)
5275 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5277 ac_count=0
5278 $as_echo_n 0123456789 >"conftest.in"
5279 while :
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
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;;
5297 esac
5299 $ac_path_SED_found && break 3
5300 done
5301 done
5302 done
5303 IFS=$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
5307 else
5308 ac_cv_path_SED=$SED
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
5317 test -z "$SED" && SED=sed
5318 Xsed="$SED -e 1s/^X//"
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5331 $as_echo_n "checking for fgrep... " >&6; }
5332 if test "${ac_cv_path_FGREP+set}" = set; then :
5333 $as_echo_n "(cached) " >&6
5334 else
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
5342 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
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
5352 case `"$ac_path_FGREP" --version 2>&1` in
5353 *GNU*)
5354 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5356 ac_count=0
5357 $as_echo_n 0123456789 >"conftest.in"
5358 while :
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
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;;
5376 esac
5378 $ac_path_FGREP_found && break 3
5379 done
5380 done
5381 done
5382 IFS=$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
5386 else
5387 ac_cv_path_FGREP=$FGREP
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"
5397 test -z "$GREP" && GREP=grep
5417 # Check whether --with-gnu-ld was given.
5418 if test "${with_gnu_ld+set}" = set; then :
5419 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5420 else
5421 with_gnu_ld=no
5424 ac_prog=ld
5425 if 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'` ;;
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"
5448 # If it fails, then pretend we aren't using GCC.
5449 ac_prog=ld
5452 # If it is relative, then search for the first ld in PATH.
5453 with_gnu_ld=unknown
5455 esac
5456 elif 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; }
5459 else
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5461 $as_echo_n "checking for non-GNU ld... " >&6; }
5463 if test "${lt_cv_path_LD+set}" = set; then :
5464 $as_echo_n "(cached) " >&6
5465 else
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
5481 test "$with_gnu_ld" != yes && break
5483 esac
5485 done
5486 IFS="$lt_save_ifs"
5487 else
5488 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5492 LD="$lt_cv_path_LD"
5493 if test -n "$LD"; then
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5495 $as_echo "$LD" >&6; }
5496 else
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5500 test -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; }
5503 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5507 case `$LD -v 2>&1 </dev/null` in
5508 *GNU* | *'with BFD'*)
5509 lt_cv_prog_gnu_ld=yes
5512 lt_cv_prog_gnu_ld=no
5514 esac
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5517 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5518 with_gnu_ld=$lt_cv_prog_gnu_ld
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; }
5530 if test "${lt_cv_path_NM+set}" = set; then :
5531 $as_echo_n "(cached) " >&6
5532 else
5533 if test -n "$NM"; then
5534 # Let the user override the test.
5535 lt_cv_path_NM="$NM"
5536 else
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"
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
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
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
5567 esac
5569 esac
5571 done
5572 IFS="$lt_save_ifs"
5573 done
5574 : ${lt_cv_path_NM=no}
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5578 $as_echo "$lt_cv_path_NM" >&6; }
5579 if test "$lt_cv_path_NM" != "no"; then
5580 NM="$lt_cv_path_NM"
5581 else
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"
5586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5587 set 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; }
5590 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5591 $as_echo_n "(cached) " >&6
5592 else
5593 if test -n "$DUMPBIN"; then
5594 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5595 else
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 for as_dir in $PATH
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
5607 done
5608 done
5609 IFS=$as_save_IFS
5613 DUMPBIN=$ac_cv_prog_DUMPBIN
5614 if test -n "$DUMPBIN"; then
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5616 $as_echo "$DUMPBIN" >&6; }
5617 else
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619 $as_echo "no" >&6; }
5623 test -n "$DUMPBIN" && break
5624 done
5626 if test -z "$DUMPBIN"; then
5627 ac_ct_DUMPBIN=$DUMPBIN
5628 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5630 # Extract the first word of "$ac_prog", so it can be a program name with args.
5631 set 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; }
5634 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 if test -n "$ac_ct_DUMPBIN"; then
5638 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5639 else
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH
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
5651 done
5652 done
5653 IFS=$as_save_IFS
5657 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5658 if 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; }
5661 else
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5667 test -n "$ac_ct_DUMPBIN" && break
5668 done
5670 if test "x$ac_ct_DUMPBIN" = x; then
5671 DUMPBIN=":"
5672 else
5673 case $cross_compiling:$ac_tool_warned in
5674 yes:)
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;}
5677 ac_tool_warned=yes ;;
5678 esac
5679 DUMPBIN=$ac_ct_DUMPBIN
5684 if test "$DUMPBIN" != ":"; then
5685 NM="$DUMPBIN"
5688 test -z "$NM" && NM=nm
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; }
5697 if test "${lt_cv_nm_interface+set}" = set; then :
5698 $as_echo_n "(cached) " >&6
5699 else
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"
5713 rm -f conftest*
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5716 $as_echo "$lt_cv_nm_interface" >&6; }
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5719 $as_echo_n "checking whether ln -s works... " >&6; }
5720 LN_S=$as_ln_s
5721 if test "$LN_S" = "ln -s"; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5723 $as_echo "yes" >&6; }
5724 else
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5726 $as_echo "no, using $LN_S" >&6; }
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; }
5732 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5736 teststring="ABCD"
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
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;
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;
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;
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
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`
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
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
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
5803 sco3.2v5*)
5804 lt_cv_sys_max_cmd_len=102400
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
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
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`
5845 esac
5849 if 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; }
5852 else
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5854 $as_echo "none" >&6; }
5856 max_cmd_len=$lt_cv_sys_max_cmd_len
5863 : ${CP="cp -f"}
5864 : ${MV="mv -f"}
5865 : ${RM="rm -f"}
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
5870 xsi_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; }
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5882 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5883 lt_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; }
5891 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5892 lt_unset=unset
5893 else
5894 lt_unset=false
5901 # test EBCDIC or ASCII
5902 case `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'
5908 *) # EBCDIC based system
5909 lt_SP2NL='tr \100 \n'
5910 lt_NL2SP='tr \r\n \100\100'
5912 esac
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; }
5924 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 lt_cv_ld_reload_flag='-r'
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5930 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5931 reload_flag=$lt_cv_ld_reload_flag
5932 case $reload_flag in
5933 "" | " "*) ;;
5934 *) reload_flag=" $reload_flag" ;;
5935 esac
5936 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5937 case $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'
5945 esac
5955 if 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.
5957 set 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; }
5960 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 if test -n "$OBJDUMP"; then
5964 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5965 else
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
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
5977 done
5978 done
5979 IFS=$as_save_IFS
5983 OBJDUMP=$ac_cv_prog_OBJDUMP
5984 if test -n "$OBJDUMP"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5986 $as_echo "$OBJDUMP" >&6; }
5987 else
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 $as_echo "no" >&6; }
5994 if 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.
5997 set 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; }
6000 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6001 $as_echo_n "(cached) " >&6
6002 else
6003 if test -n "$ac_ct_OBJDUMP"; then
6004 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6005 else
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH
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
6017 done
6018 done
6019 IFS=$as_save_IFS
6023 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6024 if 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; }
6027 else
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029 $as_echo "no" >&6; }
6032 if test "x$ac_ct_OBJDUMP" = x; then
6033 OBJDUMP="false"
6034 else
6035 case $cross_compiling:$ac_tool_warned in
6036 yes:)
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;}
6039 ac_tool_warned=yes ;;
6040 esac
6041 OBJDUMP=$ac_ct_OBJDUMP
6043 else
6044 OBJDUMP="$ac_cv_prog_OBJDUMP"
6047 test -z "$OBJDUMP" && OBJDUMP=objdump
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; }
6059 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6062 lt_cv_file_magic_cmd='$MAGIC_CMD'
6063 lt_cv_file_magic_test_file=
6064 lt_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.
6076 case $host_os in
6077 aix[4-9]*)
6078 lt_cv_deplibs_check_method=pass_all
6081 beos*)
6082 lt_cv_deplibs_check_method=pass_all
6085 bsdi[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
6091 cygwin*)
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'
6097 mingw* | 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'
6110 cegcc)
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'
6116 darwin* | rhapsody*)
6117 lt_cv_deplibs_check_method=pass_all
6120 freebsd* | 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.*`
6130 esac
6131 else
6132 lt_cv_deplibs_check_method=pass_all
6136 gnu*)
6137 lt_cv_deplibs_check_method=pass_all
6140 hpux10.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
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
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
6155 esac
6158 interix[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)$'
6163 irix5* | 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
6173 # This must be Linux ELF.
6174 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6175 lt_cv_deplibs_check_method=pass_all
6178 netbsd*)
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)$'
6186 newos6*)
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
6192 *nto* | *qnx*)
6193 lt_cv_deplibs_check_method=pass_all
6196 openbsd*)
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)$'
6204 osf3* | osf4* | osf5*)
6205 lt_cv_deplibs_check_method=pass_all
6208 rdos*)
6209 lt_cv_deplibs_check_method=pass_all
6212 solaris*)
6213 lt_cv_deplibs_check_method=pass_all
6216 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6217 lt_cv_deplibs_check_method=pass_all
6220 sysv4 | 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*`
6226 ncr)
6227 lt_cv_deplibs_check_method=pass_all
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 )'
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
6238 siemens)
6239 lt_cv_deplibs_check_method=pass_all
6242 lt_cv_deplibs_check_method=pass_all
6244 esac
6247 tpf*)
6248 lt_cv_deplibs_check_method=pass_all
6250 esac
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6254 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6255 file_magic_cmd=$lt_cv_file_magic_cmd
6256 deplibs_check_method=$lt_cv_deplibs_check_method
6257 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6270 if 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.
6272 set 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; }
6275 if test "${ac_cv_prog_AR+set}" = set; then :
6276 $as_echo_n "(cached) " >&6
6277 else
6278 if test -n "$AR"; then
6279 ac_cv_prog_AR="$AR" # Let the user override the test.
6280 else
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
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
6292 done
6293 done
6294 IFS=$as_save_IFS
6298 AR=$ac_cv_prog_AR
6299 if test -n "$AR"; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6301 $as_echo "$AR" >&6; }
6302 else
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304 $as_echo "no" >&6; }
6309 if 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.
6312 set 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; }
6315 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6316 $as_echo_n "(cached) " >&6
6317 else
6318 if test -n "$ac_ct_AR"; then
6319 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6320 else
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 for as_dir in $PATH
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
6332 done
6333 done
6334 IFS=$as_save_IFS
6338 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6339 if 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; }
6342 else
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344 $as_echo "no" >&6; }
6347 if test "x$ac_ct_AR" = x; then
6348 AR="false"
6349 else
6350 case $cross_compiling:$ac_tool_warned in
6351 yes:)
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;}
6354 ac_tool_warned=yes ;;
6355 esac
6356 AR=$ac_ct_AR
6358 else
6359 AR="$ac_cv_prog_AR"
6362 test -z "$AR" && AR=ar
6363 test -z "$AR_FLAGS" && AR_FLAGS=cru
6375 if 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.
6377 set 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; }
6380 if test "${ac_cv_prog_STRIP+set}" = set; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 if test -n "$STRIP"; then
6384 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6385 else
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
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
6397 done
6398 done
6399 IFS=$as_save_IFS
6403 STRIP=$ac_cv_prog_STRIP
6404 if test -n "$STRIP"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6406 $as_echo "$STRIP" >&6; }
6407 else
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6414 if 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.
6417 set 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; }
6420 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6421 $as_echo_n "(cached) " >&6
6422 else
6423 if test -n "$ac_ct_STRIP"; then
6424 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6425 else
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 for as_dir in $PATH
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
6437 done
6438 done
6439 IFS=$as_save_IFS
6443 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6444 if 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; }
6447 else
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 $as_echo "no" >&6; }
6452 if test "x$ac_ct_STRIP" = x; then
6453 STRIP=":"
6454 else
6455 case $cross_compiling:$ac_tool_warned in
6456 yes:)
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;}
6459 ac_tool_warned=yes ;;
6460 esac
6461 STRIP=$ac_ct_STRIP
6463 else
6464 STRIP="$ac_cv_prog_STRIP"
6467 test -z "$STRIP" && STRIP=:
6474 if 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.
6476 set 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; }
6479 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6480 $as_echo_n "(cached) " >&6
6481 else
6482 if test -n "$RANLIB"; then
6483 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6484 else
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
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
6496 done
6497 done
6498 IFS=$as_save_IFS
6502 RANLIB=$ac_cv_prog_RANLIB
6503 if test -n "$RANLIB"; then
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6505 $as_echo "$RANLIB" >&6; }
6506 else
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6508 $as_echo "no" >&6; }
6513 if 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.
6516 set 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; }
6519 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6520 $as_echo_n "(cached) " >&6
6521 else
6522 if test -n "$ac_ct_RANLIB"; then
6523 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6524 else
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
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
6536 done
6537 done
6538 IFS=$as_save_IFS
6542 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6543 if 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; }
6546 else
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6551 if test "x$ac_ct_RANLIB" = x; then
6552 RANLIB=":"
6553 else
6554 case $cross_compiling:$ac_tool_warned in
6555 yes:)
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;}
6558 ac_tool_warned=yes ;;
6559 esac
6560 RANLIB=$ac_ct_RANLIB
6562 else
6563 RANLIB="$ac_cv_prog_RANLIB"
6566 test -z "$RANLIB" && RANLIB=:
6573 # Determine commands to create old-style static archives.
6574 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6575 old_postinstall_cmds='chmod 644 $oldlib'
6576 old_postuninstall_cmds=
6578 if test -n "$RANLIB"; then
6579 case $host_os in
6580 openbsd*)
6581 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6584 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6586 esac
6587 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6623 # If no C compiler was specified, use CC.
6624 LTCC=${LTCC-"$CC"}
6626 # If no C compiler flags were specified, use CFLAGS.
6627 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6629 # Allow CC to be a program name with arguments.
6630 compiler=$CC
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; }
6636 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6637 $as_echo_n "(cached) " >&6
6638 else
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?!! ;)]
6643 # Character class describing NM global symbol codes.
6644 symcode='[BCDEGRST]'
6646 # Regexp to match symbols that can be accessed directly from C.
6647 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6649 # Define system-specific variables.
6650 case $host_os in
6651 aix*)
6652 symcode='[BCDT]'
6654 cygwin* | mingw* | pw32* | cegcc*)
6655 symcode='[ABCDGISTW]'
6657 hpux*)
6658 if test "$host_cpu" = ia64; then
6659 symcode='[ABCDEGRST]'
6662 irix* | nonstopux*)
6663 symcode='[BCDEGRST]'
6665 osf*)
6666 symcode='[BCDEGQRST]'
6668 solaris*)
6669 symcode='[BDRT]'
6671 sco3.2v5*)
6672 symcode='[DT]'
6674 sysv4.2uw2*)
6675 symcode='[DT]'
6677 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6678 symcode='[ABDT]'
6680 sysv4)
6681 symcode='[DFNSTU]'
6683 esac
6685 # If we're using GNU nm, then use its standard symbol codes.
6686 case `$NM -V 2>&1` in
6687 *GNU* | *'with BFD'*)
6688 symcode='[ABCDGIRSTW]' ;;
6689 esac
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.
6694 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6696 # Transform an extracted symbol line into symbol name and symbol address
6697 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6698 lt_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'"
6700 # Handle CRLF in mingw tool chain
6701 opt_cr=
6702 case $build_os in
6703 mingw*)
6704 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6706 esac
6708 # Try without a prefix underscore, then with it.
6709 for ac_symprfx in "" "_"; do
6711 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6712 symxfrm="\\1 $ac_symprfx\\2 \\2"
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'"
6735 # Check to see that the pipe works correctly.
6736 pipe_works=no
6738 rm -f conftest*
6739 cat > conftest.$ac_ext <<_LT_EOF
6740 #ifdef __cplusplus
6741 extern "C" {
6742 #endif
6743 char nm_test_var;
6744 void nm_test_func(void);
6745 void nm_test_func(void){}
6746 #ifdef __cplusplus
6748 #endif
6749 int main(){nm_test_var='a';nm_test_func();return(0);}
6750 _LT_EOF
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
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
6776 extern "C" {
6777 #endif
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'
6783 cat <<_LT_EOF >> conftest.$ac_ext
6785 /* The mapping between symbol names and symbols. */
6786 const struct {
6787 const char *name;
6788 void *address;
6790 lt__PROGRAM__LTX_preloaded_symbols[] =
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}
6799 /* This works around a problem in FreeBSD linker */
6800 #ifdef FREEBSD_WORKAROUND
6801 static const void *lt_preloaded_setup() {
6802 return lt__PROGRAM__LTX_preloaded_symbols;
6804 #endif
6806 #ifdef __cplusplus
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
6823 LIBS="$lt_save_LIBS"
6824 CFLAGS="$lt_save_CFLAGS"
6825 else
6826 echo "cannot find nm_test_func in $nlist" >&5
6828 else
6829 echo "cannot find nm_test_var in $nlist" >&5
6831 else
6832 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6834 else
6835 echo "$progname: failed program was:" >&5
6836 cat conftest.$ac_ext >&5
6838 rm -rf conftest* conftst*
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=
6846 done
6850 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6851 lt_cv_sys_global_symbol_to_cdecl=
6853 if 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; }
6856 else
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6858 $as_echo "ok" >&6; }
6882 # Check whether --enable-libtool-lock was given.
6883 if test "${enable_libtool_lock+set}" = set; then :
6884 enableval=$enable_libtool_lock;
6887 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6889 # Some flags need to be propagated to the compiler or linker for good
6890 # libtool support.
6891 case $host in
6892 ia64-*-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"
6904 *ELF-64*)
6905 HPUX_IA64_MODE="64"
6907 esac
6909 rm -rf conftest*
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"
6924 *N32*)
6925 LD="${LD-ld} -melf32bmipn32"
6927 *64-bit*)
6928 LD="${LD-ld} -melf64bmip"
6930 esac
6931 else
6932 case `/usr/bin/file conftest.$ac_objext` in
6933 *32-bit*)
6934 LD="${LD-ld} -32"
6936 *N32*)
6937 LD="${LD-ld} -n32"
6939 *64-bit*)
6940 LD="${LD-ld} -64"
6942 esac
6945 rm -rf conftest*
6948 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6949 s390*-*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"
6963 x86_64-*linux*)
6964 LD="${LD-ld} -m elf_i386"
6966 ppc64-*linux*|powerpc64-*linux*)
6967 LD="${LD-ld} -m elf32ppclinux"
6969 s390x-*linux*)
6970 LD="${LD-ld} -m elf_s390"
6972 sparc64-*linux*)
6973 LD="${LD-ld} -m elf32_sparc"
6975 esac
6977 *64-bit*)
6978 case $host in
6979 x86_64-*kfreebsd*-gnu)
6980 LD="${LD-ld} -m elf_x86_64_fbsd"
6982 x86_64-*linux*)
6983 LD="${LD-ld} -m elf_x86_64"
6985 ppc*-*linux*|powerpc*-*linux*)
6986 LD="${LD-ld} -m elf64ppc"
6988 s390*-*linux*|s390*-*tpf*)
6989 LD="${LD-ld} -m elf64_s390"
6991 sparc*-*linux*)
6992 LD="${LD-ld} -m elf64_sparc"
6994 esac
6996 esac
6998 rm -rf conftest*
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; }
7007 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7008 $as_echo_n "(cached) " >&6
7009 else
7010 ac_ext=c
7011 ac_cpp='$CPP $CPPFLAGS'
7012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7020 main ()
7024 return 0;
7026 _ACEOF
7027 if ac_fn_c_try_link "$LINENO"; then :
7028 lt_cv_cc_needs_belf=yes
7029 else
7030 lt_cv_cc_needs_belf=no
7032 rm -f core conftest.err conftest.$ac_objext \
7033 conftest$ac_exeext conftest.$ac_ext
7034 ac_ext=c
7035 ac_cpp='$CPP $CPPFLAGS'
7036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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"
7048 sparc*-*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" ;;
7061 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7062 LD="${LD-ld} -64"
7065 esac
7067 esac
7069 rm -rf conftest*
7071 esac
7073 need_locks="$enable_libtool_lock"
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.
7080 set 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; }
7083 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7084 $as_echo_n "(cached) " >&6
7085 else
7086 if test -n "$DSYMUTIL"; then
7087 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
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
7100 done
7101 done
7102 IFS=$as_save_IFS
7106 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7107 if test -n "$DSYMUTIL"; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7109 $as_echo "$DSYMUTIL" >&6; }
7110 else
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7117 if 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.
7120 set 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; }
7123 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 if test -n "$ac_ct_DSYMUTIL"; then
7127 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
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
7140 done
7141 done
7142 IFS=$as_save_IFS
7146 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7147 if 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; }
7150 else
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7155 if test "x$ac_ct_DSYMUTIL" = x; then
7156 DSYMUTIL=":"
7157 else
7158 case $cross_compiling:$ac_tool_warned in
7159 yes:)
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;}
7162 ac_tool_warned=yes ;;
7163 esac
7164 DSYMUTIL=$ac_ct_DSYMUTIL
7166 else
7167 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
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.
7172 set 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; }
7175 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 if test -n "$NMEDIT"; then
7179 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7180 else
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 for as_dir in $PATH
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
7192 done
7193 done
7194 IFS=$as_save_IFS
7198 NMEDIT=$ac_cv_prog_NMEDIT
7199 if test -n "$NMEDIT"; then
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7201 $as_echo "$NMEDIT" >&6; }
7202 else
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204 $as_echo "no" >&6; }
7209 if 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.
7212 set 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; }
7215 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7216 $as_echo_n "(cached) " >&6
7217 else
7218 if test -n "$ac_ct_NMEDIT"; then
7219 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7220 else
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 for as_dir in $PATH
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
7232 done
7233 done
7234 IFS=$as_save_IFS
7238 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7239 if 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; }
7242 else
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244 $as_echo "no" >&6; }
7247 if test "x$ac_ct_NMEDIT" = x; then
7248 NMEDIT=":"
7249 else
7250 case $cross_compiling:$ac_tool_warned in
7251 yes:)
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;}
7254 ac_tool_warned=yes ;;
7255 esac
7256 NMEDIT=$ac_ct_NMEDIT
7258 else
7259 NMEDIT="$ac_cv_prog_NMEDIT"
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.
7264 set 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; }
7267 if test "${ac_cv_prog_LIPO+set}" = set; then :
7268 $as_echo_n "(cached) " >&6
7269 else
7270 if test -n "$LIPO"; then
7271 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7272 else
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
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
7284 done
7285 done
7286 IFS=$as_save_IFS
7290 LIPO=$ac_cv_prog_LIPO
7291 if test -n "$LIPO"; then
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7293 $as_echo "$LIPO" >&6; }
7294 else
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296 $as_echo "no" >&6; }
7301 if 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.
7304 set 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; }
7307 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7308 $as_echo_n "(cached) " >&6
7309 else
7310 if test -n "$ac_ct_LIPO"; then
7311 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7312 else
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
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
7324 done
7325 done
7326 IFS=$as_save_IFS
7330 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7331 if 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; }
7334 else
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7339 if test "x$ac_ct_LIPO" = x; then
7340 LIPO=":"
7341 else
7342 case $cross_compiling:$ac_tool_warned in
7343 yes:)
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;}
7346 ac_tool_warned=yes ;;
7347 esac
7348 LIPO=$ac_ct_LIPO
7350 else
7351 LIPO="$ac_cv_prog_LIPO"
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.
7356 set 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; }
7359 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 if test -n "$OTOOL"; then
7363 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7364 else
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
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
7376 done
7377 done
7378 IFS=$as_save_IFS
7382 OTOOL=$ac_cv_prog_OTOOL
7383 if test -n "$OTOOL"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7385 $as_echo "$OTOOL" >&6; }
7386 else
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7393 if 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.
7396 set 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; }
7399 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7400 $as_echo_n "(cached) " >&6
7401 else
7402 if test -n "$ac_ct_OTOOL"; then
7403 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7404 else
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 for as_dir in $PATH
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
7416 done
7417 done
7418 IFS=$as_save_IFS
7422 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7423 if 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; }
7426 else
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428 $as_echo "no" >&6; }
7431 if test "x$ac_ct_OTOOL" = x; then
7432 OTOOL=":"
7433 else
7434 case $cross_compiling:$ac_tool_warned in
7435 yes:)
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;}
7438 ac_tool_warned=yes ;;
7439 esac
7440 OTOOL=$ac_ct_OTOOL
7442 else
7443 OTOOL="$ac_cv_prog_OTOOL"
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.
7448 set 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; }
7451 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7452 $as_echo_n "(cached) " >&6
7453 else
7454 if test -n "$OTOOL64"; then
7455 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
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
7468 done
7469 done
7470 IFS=$as_save_IFS
7474 OTOOL64=$ac_cv_prog_OTOOL64
7475 if test -n "$OTOOL64"; then
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7477 $as_echo "$OTOOL64" >&6; }
7478 else
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7485 if 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.
7488 set 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; }
7491 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7492 $as_echo_n "(cached) " >&6
7493 else
7494 if test -n "$ac_ct_OTOOL64"; then
7495 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7496 else
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH
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
7508 done
7509 done
7510 IFS=$as_save_IFS
7514 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7515 if 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; }
7518 else
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7523 if test "x$ac_ct_OTOOL64" = x; then
7524 OTOOL64=":"
7525 else
7526 case $cross_compiling:$ac_tool_warned in
7527 yes:)
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;}
7530 ac_tool_warned=yes ;;
7531 esac
7532 OTOOL64=$ac_ct_OTOOL64
7534 else
7535 OTOOL64="$ac_cv_prog_OTOOL64"
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; }
7566 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7567 $as_echo_n "(cached) " >&6
7568 else
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
7587 rm -rf libconftest.dylib*
7588 rm -f conftest.*
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; }
7595 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7596 $as_echo_n "(cached) " >&6
7597 else
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. */
7606 main ()
7610 return 0;
7612 _ACEOF
7613 if ac_fn_c_try_link "$LINENO"; then :
7614 lt_cv_ld_exported_symbols_list=yes
7615 else
7616 lt_cv_ld_exported_symbols_list=no
7618 rm -f core conftest.err conftest.$ac_objext \
7619 conftest$ac_exeext conftest.$ac_ext
7620 LDFLAGS="$save_LDFLAGS"
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
7643 esac
7644 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7645 _lt_dar_single_mod='$single_module'
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}'
7652 if test "$DSYMUTIL" != ":"; then
7653 _lt_dsymutil='~$DSYMUTIL $lib || :'
7654 else
7655 _lt_dsymutil=
7658 esac
7660 for ac_header in dlfcn.h
7661 do :
7662 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7664 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7665 cat >>confdefs.h <<_ACEOF
7666 #define HAVE_DLFCN_H 1
7667 _ACEOF
7671 done
7675 # Set options
7679 enable_dlopen=no
7682 enable_win32_dll=no
7685 # Check whether --enable-shared was given.
7686 if 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 ;;
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
7700 done
7701 IFS="$lt_save_ifs"
7703 esac
7704 else
7705 enable_shared=yes
7716 # Check whether --enable-static was given.
7717 if 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 ;;
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
7731 done
7732 IFS="$lt_save_ifs"
7734 esac
7735 else
7736 enable_static=yes
7748 # Check whether --with-pic was given.
7749 if test "${with_pic+set}" = set; then :
7750 withval=$with_pic; pic_mode="$withval"
7751 else
7752 pic_mode=default
7756 test -z "$pic_mode" && pic_mode=default
7764 # Check whether --enable-fast-install was given.
7765 if 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 ;;
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
7779 done
7780 IFS="$lt_save_ifs"
7782 esac
7783 else
7784 enable_fast_install=yes
7797 # This can be used to rebuild libtool when needed
7798 LIBTOOL_DEPS="$ltmain"
7800 # Always use our own libtool.
7801 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7827 test -z "$LN_S" && LN_S="ln -s"
7842 if test -n "${ZSH_VERSION+set}" ; then
7843 setopt NO_GLOB_SUBST
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7847 $as_echo_n "checking for objdir... " >&6; }
7848 if test "${lt_cv_objdir+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 rm -f .libs 2>/dev/null
7852 mkdir .libs 2>/dev/null
7853 if test -d .libs; then
7854 lt_cv_objdir=.libs
7855 else
7856 # MS-DOS does not allow filenames that begin with a dot.
7857 lt_cv_objdir=_libs
7859 rmdir .libs 2>/dev/null
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7862 $as_echo "$lt_cv_objdir" >&6; }
7863 objdir=$lt_cv_objdir
7869 cat >>confdefs.h <<_ACEOF
7870 #define LT_OBJDIR "$lt_cv_objdir/"
7871 _ACEOF
7889 case $host_os in
7890 aix3*)
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
7899 esac
7901 # Sed substitution that helps us do robust quoting. It backslashifies
7902 # metacharacters that are still active within double-quoted strings.
7903 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7905 # Same as above, but do not quote variable references.
7906 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7908 # Sed substitution to delay expansion of an escaped shell variable in a
7909 # double_quote_subst'ed string.
7910 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7912 # Sed substitution to delay expansion of an escaped single quote.
7913 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7915 # Sed substitution to avoid accidental globbing in evaled expressions
7916 no_glob_subst='s/\*/\\\*/g'
7918 # Global variables:
7919 ofile=libtool
7920 can_build_shared=yes
7922 # All known linkers require a `.a' archive for static linking (except MSVC,
7923 # which needs '.lib').
7924 libext=a
7926 with_gnu_ld="$lt_cv_prog_gnu_ld"
7928 old_CC="$CC"
7929 old_CFLAGS="$CFLAGS"
7931 # Set sane defaults for various variables
7932 test -z "$CC" && CC=cc
7933 test -z "$LTCC" && LTCC=$CC
7934 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7935 test -z "$LD" && LD=ld
7936 test -z "$ac_objext" && ac_objext=o
7938 for 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
7945 done
7946 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7949 # Only perform the check for file, if the check method requires it
7950 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7951 case $deplibs_check_method in
7952 file_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; }
7956 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7957 $as_echo_n "(cached) " >&6
7958 else
7959 case $MAGIC_CMD in
7960 [\\/*] | ?:[\\/]*)
7961 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
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
7980 else
7981 cat <<_LT_EOF 1>&2
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
7992 _LT_EOF
7993 fi ;;
7994 esac
7996 break
7998 done
7999 IFS="$lt_save_ifs"
8000 MAGIC_CMD="$lt_save_MAGIC_CMD"
8002 esac
8005 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8006 if test -n "$MAGIC_CMD"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8008 $as_echo "$MAGIC_CMD" >&6; }
8009 else
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8018 if 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; }
8022 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8023 $as_echo_n "(cached) " >&6
8024 else
8025 case $MAGIC_CMD in
8026 [\\/*] | ?:[\\/]*)
8027 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
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
8046 else
8047 cat <<_LT_EOF 1>&2
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
8058 _LT_EOF
8059 fi ;;
8060 esac
8062 break
8064 done
8065 IFS="$lt_save_ifs"
8066 MAGIC_CMD="$lt_save_MAGIC_CMD"
8068 esac
8071 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8072 if test -n "$MAGIC_CMD"; then
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8074 $as_echo "$MAGIC_CMD" >&6; }
8075 else
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077 $as_echo "no" >&6; }
8081 else
8082 MAGIC_CMD=:
8088 esac
8090 # Use C for the default configuration in the libtool script
8092 lt_save_CC="$CC"
8093 ac_ext=c
8094 ac_cpp='$CPP $CPPFLAGS'
8095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8100 # Source file extension for C test sources.
8101 ac_ext=c
8103 # Object file extension for compiled C test sources.
8104 objext=o
8105 objext=$objext
8107 # Code to be used in simple compile tests
8108 lt_simple_compile_test_code="int some_variable = 0;"
8110 # Code to be used in simple link tests
8111 lt_simple_link_test_code='int main(){return(0);}'
8119 # If no C compiler was specified, use CC.
8120 LTCC=${LTCC-"$CC"}
8122 # If no C compiler flags were specified, use CFLAGS.
8123 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8125 # Allow CC to be a program name with arguments.
8126 compiler=$CC
8128 # Save the default compiler, since it gets overwritten when the other
8129 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8130 compiler_DEFAULT=$CC
8132 # save warnings/boilerplate of simple test code
8133 ac_outfile=conftest.$ac_objext
8134 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8135 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8136 _lt_compiler_boilerplate=`cat conftest.err`
8137 $RM conftest*
8139 ac_outfile=conftest.$ac_objext
8140 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8141 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8142 _lt_linker_boilerplate=`cat conftest.err`
8143 $RM -r conftest*
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...
8150 if test -n "$compiler"; then
8152 lt_prog_compiler_no_builtin_flag=
8154 if test "$GCC" = yes; then
8155 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
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; }
8159 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8160 $as_echo_n "(cached) " >&6
8161 else
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
8189 $RM conftest*
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; }
8195 if 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"
8197 else
8208 lt_prog_compiler_wl=
8209 lt_prog_compiler_pic=
8210 lt_prog_compiler_static=
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; }
8215 if test "$GCC" = yes; then
8216 lt_prog_compiler_wl='-Wl,'
8217 lt_prog_compiler_static='-static'
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'
8228 amigaos*)
8229 case $host_cpu in
8230 powerpc)
8231 # see comment about AmigaOS4 .so support
8232 lt_prog_compiler_pic='-fPIC'
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'
8240 esac
8243 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8244 # PIC is the default for these OSes.
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'
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'
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
8270 lt_prog_compiler_pic='-fPIC'
8272 esac
8275 interix[3-9]*)
8276 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8277 # Instead, we relocate shared libraries at runtime.
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
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'
8293 sysv4*MP*)
8294 if test -d /usr/nec; then
8295 lt_prog_compiler_pic=-Kconform_pic
8300 lt_prog_compiler_pic='-fPIC'
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'
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'
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
8331 lt_prog_compiler_pic='+Z'
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'
8338 irix5* | irix6* | nonstopux*)
8339 lt_prog_compiler_wl='-Wl,'
8340 # PIC (with -KPIC) is the default.
8341 lt_prog_compiler_static='-non_shared'
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'
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'
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'
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'
8372 ccc*)
8373 lt_prog_compiler_wl='-Wl,'
8374 # All Alpha code is PIC.
8375 lt_prog_compiler_static='-non_shared'
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'
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,'
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=''
8397 esac
8399 esac
8402 newsos6)
8403 lt_prog_compiler_pic='-KPIC'
8404 lt_prog_compiler_static='-Bstatic'
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'
8413 osf3* | osf4* | osf5*)
8414 lt_prog_compiler_wl='-Wl,'
8415 # All OSF/1 code is PIC.
8416 lt_prog_compiler_static='-non_shared'
8419 rdos*)
8420 lt_prog_compiler_static='-non_shared'
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 ';;
8430 lt_prog_compiler_wl='-Wl,';;
8431 esac
8434 sunos4*)
8435 lt_prog_compiler_wl='-Qoption ld '
8436 lt_prog_compiler_pic='-PIC'
8437 lt_prog_compiler_static='-Bstatic'
8440 sysv4 | sysv4.2uw2* | sysv4.3*)
8441 lt_prog_compiler_wl='-Wl,'
8442 lt_prog_compiler_pic='-KPIC'
8443 lt_prog_compiler_static='-Bstatic'
8446 sysv4*MP*)
8447 if test -d /usr/nec ;then
8448 lt_prog_compiler_pic='-Kconform_pic'
8449 lt_prog_compiler_static='-Bstatic'
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'
8459 unicos*)
8460 lt_prog_compiler_wl='-Wl,'
8461 lt_prog_compiler_can_build_shared=no
8464 uts4*)
8465 lt_prog_compiler_pic='-pic'
8466 lt_prog_compiler_static='-Bstatic'
8470 lt_prog_compiler_can_build_shared=no
8472 esac
8475 case $host_os in
8476 # For platforms which do not support PIC, -DPIC is meaningless:
8477 *djgpp*)
8478 lt_prog_compiler_pic=
8481 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8483 esac
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8485 $as_echo "$lt_prog_compiler_pic" >&6; }
8493 # Check to make sure the PIC flag actually works.
8495 if 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; }
8498 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8499 $as_echo_n "(cached) " >&6
8500 else
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
8528 $RM conftest*
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; }
8534 if 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
8539 else
8540 lt_prog_compiler_pic=
8541 lt_prog_compiler_can_build_shared=no
8552 # Check to make sure the static flag actually works.
8554 wl=$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; }
8557 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8558 $as_echo_n "(cached) " >&6
8559 else
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
8575 else
8576 lt_cv_prog_compiler_static_works=yes
8579 $RM -r conftest*
8580 LDFLAGS="$save_LDFLAGS"
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; }
8586 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8588 else
8589 lt_prog_compiler_static=
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; }
8600 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8601 $as_echo_n "(cached) " >&6
8602 else
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
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
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*
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; }
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; }
8655 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8656 $as_echo_n "(cached) " >&6
8657 else
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
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
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*
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; }
8706 hard_links="nottested"
8707 if 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
8724 else
8725 need_locks=no
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; }
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=
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
8786 interix*)
8787 # we just hope/assume this is gcc and not c89 (= MSVC++)
8788 with_gnu_ld=yes
8790 openbsd*)
8791 with_gnu_ld=no
8793 esac
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}'
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=
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
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
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.
8835 _LT_EOF
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=''
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
8851 esac
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
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'
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;
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
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'
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
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'
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'
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'
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'
8969 esac
8970 else
8971 ld_shlibs=no
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'
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
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.
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
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
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.
9019 _LT_EOF
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
9034 esac
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
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
9052 esac
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=
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
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'
9092 aix_use_runtimelinking=no
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
9103 done
9105 esac
9107 exp_sym_flag='-bexport'
9108 no_entry_flag='-bnoentry'
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.
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,'
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
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=
9145 esac
9146 shared_flag='-shared'
9147 if test "$aix_use_runtimelinking" = yes; then
9148 shared_flag="$shared_flag "'${wl}-G'
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'
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. */
9179 main ()
9183 return 0;
9185 _ACEOF
9186 if ac_fn_c_try_link "$LINENO"; then :
9188 lt_aix_libpath_sed='
9189 /Import File Strings/,/^$/ {
9190 /^0/ {
9191 s/^0 *\(.*\)$/\1/
9195 aix_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.
9197 if test -z "$aix_libpath"; then
9198 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9201 rm -f core conftest.err conftest.$ac_objext \
9202 conftest$ac_exeext conftest.$ac_ext
9203 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
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. */
9219 main ()
9223 return 0;
9225 _ACEOF
9226 if ac_fn_c_try_link "$LINENO"; then :
9228 lt_aix_libpath_sed='
9229 /Import File Strings/,/^$/ {
9230 /^0/ {
9231 s/^0 *\(.*\)$/\1/
9235 aix_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.
9237 if test -z "$aix_libpath"; then
9238 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9241 rm -f core conftest.err conftest.$ac_objext \
9242 conftest$ac_exeext conftest.$ac_ext
9243 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
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'
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=''
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
9271 esac
9274 bsdi[45]*)
9275 export_dynamic_flag_spec=-rdynamic
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
9299 darwin* | rhapsody*)
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}"
9320 else
9321 ld_shlibs=no
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
9332 freebsd1*)
9333 ld_shlibs=no
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
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
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
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'
9369 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9370 hardcode_libdir_separator=:
9371 hardcode_direct=yes
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'
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'
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
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'
9404 ia64*)
9405 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9408 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
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'
9416 ia64*)
9417 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9420 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9422 esac
9424 if test "$with_gnu_ld" = no; then
9425 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9426 hardcode_libdir_separator=:
9428 case $host_cpu in
9429 hppa*64*|ia64*)
9430 hardcode_direct=no
9431 hardcode_shlibpath_var=no
9434 hardcode_direct=yes
9435 hardcode_direct_absolute=yes
9436 export_dynamic_flag_spec='${wl}-E'
9438 # hardcode_minus_L: Not really in the search PATH,
9439 # but as the default location of the library.
9440 hardcode_minus_L=yes
9442 esac
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. */
9456 int foo(void) {}
9457 _ACEOF
9458 if 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'
9462 rm -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'
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
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
9482 hardcode_libdir_flag_spec='-R$libdir'
9483 hardcode_direct=yes
9484 hardcode_shlibpath_var=no
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
9495 *nto* | *qnx*)
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'
9515 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9516 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9518 esac
9520 else
9521 ld_shlibs=no
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'
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'
9541 archive_cmds_need_lc='no'
9542 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9543 hardcode_libdir_separator=:
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'
9557 # Both c and cxx compiler support -rpath directly
9558 hardcode_libdir_flag_spec='-rpath $libdir'
9560 archive_cmds_need_lc='no'
9561 hardcode_libdir_separator=:
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'
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'
9585 esac
9587 hardcode_libdir_flag_spec='-R$libdir'
9588 hardcode_shlibpath_var=no
9589 case $host_os in
9590 solaris2.[0-5] | solaris2.[0-5].*) ;;
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'
9602 esac
9603 link_all_deplibs=yes
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'
9614 hardcode_libdir_flag_spec='-L$libdir'
9615 hardcode_direct=yes
9616 hardcode_minus_L=yes
9617 hardcode_shlibpath_var=no
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???
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
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
9637 esac
9638 runpath_var='LD_RUN_PATH'
9639 hardcode_shlibpath_var=no
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'
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
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'
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'
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'
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'
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
9706 ld_shlibs=no
9708 esac
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'
9715 esac
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9720 $as_echo "$ld_shlibs" >&6; }
9721 test "$ld_shlibs" = no && can_build_shared=no
9723 with_gnu_ld=$with_gnu_ld
9740 # Do we need to explicitly link libc?
9742 case "x$archive_cmds_need_lc" in
9743 x|xyes)
9744 # Assume -lc should be added
9745 archive_cmds_need_lc=yes
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.
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; }
9758 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9759 $as_echo_n "(cached) " >&6
9760 else
9761 $RM conftest*
9762 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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
9792 allow_undefined_flag=$lt_save_allow_undefined_flag
9793 else
9794 cat conftest.err 1>&5
9796 $RM conftest*
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
9803 esac
9806 esac
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9965 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9967 if 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"`
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"
9993 done
9994 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9995 BEGIN {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--;
10011 if (lt_foo != "") { lt_freq[lt_foo]++; }
10012 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10014 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10015 else
10016 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10018 library_names_spec=
10019 libname_spec='lib$name'
10020 soname_spec=
10021 shrext_cmds=".so"
10022 postinstall_cmds=
10023 postuninstall_cmds=
10024 finish_cmds=
10025 finish_eval=
10026 shlibpath_var=
10027 shlibpath_overrides_runpath=unknown
10028 version_type=none
10029 dynamic_linker="$host_os ld.so"
10030 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10031 need_lib_prefix=unknown
10032 hardcode_into_libs=no
10034 # when you set need_version to no, make sure it does not cause -set_version
10035 # flags to be left without arguments
10036 need_version=unknown
10038 case $host_os in
10039 aix3*)
10040 version_type=linux
10041 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10042 shlibpath_var=LIBPATH
10044 # AIX 3 has no versioning support, so we append a major version to the name.
10045 soname_spec='${libname}${release}${shared_ext}$major'
10048 aix[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
10069 else
10070 can_build_shared=no
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'
10088 shlibpath_var=LIBPATH
10092 amigaos*)
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}'
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'
10104 esac
10107 beos*)
10108 library_names_spec='${libname}${shared_ext}'
10109 dynamic_linker="$host_os ld.so"
10110 shlibpath_var=LIBRARY_PATH
10113 bsdi[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
10127 cygwin* | mingw* | pw32* | cegcc*)
10128 version_type=windows
10129 shrext_cmds=".dll"
10130 need_version=no
10131 need_lib_prefix=no
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 \$?;
10146 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10147 dlpath=$dir/\$dldll~
10148 $RM \$dlpath'
10149 shlibpath_overrides_runpath=yes
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"
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"`
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}'
10177 esac
10181 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
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
10189 darwin* | 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`'
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'
10204 dgux*)
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
10213 freebsd1*)
10214 dynamic_linker=no
10217 freebsd* | 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
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
10235 freebsd-*)
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10237 need_version=yes
10239 esac
10240 shlibpath_var=LD_LIBRARY_PATH
10241 case $host_os in
10242 freebsd2*)
10243 shlibpath_overrides_runpath=yes
10245 freebsd3.[01]* | freebsdelf3.[01]*)
10246 shlibpath_overrides_runpath=yes
10247 hardcode_into_libs=yes
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
10254 *) # from 4.6 on, and DragonFly
10255 shlibpath_overrides_runpath=yes
10256 hardcode_into_libs=yes
10258 esac
10261 gnu*)
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
10271 hpux9* | 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"
10291 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
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
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'
10312 esac
10313 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10314 postinstall_cmds='chmod 555 $lib'
10317 interix[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
10329 irix5* | irix6* | nonstopux*)
10330 case $host_os in
10331 nonstopux*) version_type=nonstopux ;;
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=
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
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
10366 # No shared lib support for Linux oldld, aout, or coff.
10367 linux*oldld* | linux*aout* | linux*coff*)
10368 dynamic_linker=no
10371 # This must be Linux ELF.
10372 linux* | 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
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
10385 else
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. */
10395 main ()
10399 return 0;
10401 _ACEOF
10402 if 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
10407 rm -f core conftest.err conftest.$ac_objext \
10408 conftest$ac_exeext conftest.$ac_ext
10409 LDFLAGS=$save_LDFLAGS
10410 libdir=$save_libdir
10414 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
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
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"
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'
10436 netbsd*)
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'
10449 shlibpath_var=LD_LIBRARY_PATH
10450 shlibpath_overrides_runpath=yes
10451 hardcode_into_libs=yes
10454 newsos6)
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
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'
10473 openbsd*)
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
10491 shlibpath_overrides_runpath=yes
10493 esac
10494 else
10495 shlibpath_overrides_runpath=yes
10499 os2*)
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
10508 osf3* | 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"
10519 rdos*)
10520 dynamic_linker=no
10523 solaris*)
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'
10536 sunos4*)
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
10545 need_version=yes
10548 sysv4 | 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
10559 siemens)
10560 need_lib_prefix=no
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'
10568 esac
10571 sysv4*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
10580 sysv5* | 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"
10597 esac
10599 sys_lib_dlsearch_path_spec='/usr/lib'
10602 tpf*)
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
10613 uts4*)
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
10621 dynamic_linker=no
10623 esac
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10625 $as_echo "$dynamic_linker" >&6; }
10626 test "$dynamic_linker" = no && can_build_shared=no
10628 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10629 if test "$GCC" = yes; then
10630 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10633 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10634 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10636 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10637 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
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; }
10728 hardcode_action=
10729 if test -n "$hardcode_libdir_flag_spec" ||
10730 test -n "$runpath_var" ||
10731 test "X$hardcode_automatic" = "Xyes" ; then
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
10746 else
10747 # We cannot hardcode anything, or else we can only hardcode existing
10748 # directories.
10749 hardcode_action=unsupported
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10752 $as_echo "$hardcode_action" >&6; }
10754 if test "$hardcode_action" = relink ||
10755 test "$inherit_rpath" = yes; then
10756 # Fast installation is not supported
10757 enable_fast_install=no
10758 elif test "$shlibpath_overrides_runpath" = yes ||
10759 test "$enable_shared" = no; then
10760 # Fast installation is not necessary
10761 enable_fast_install=needless
10769 if test "x$enable_dlopen" != xyes; then
10770 enable_dlopen=unknown
10771 enable_dlopen_self=unknown
10772 enable_dlopen_self_static=unknown
10773 else
10774 lt_cv_dlopen=no
10775 lt_cv_dlopen_libs=
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
10784 mingw* | pw32* | cegcc*)
10785 lt_cv_dlopen="LoadLibrary"
10786 lt_cv_dlopen_libs=
10789 cygwin*)
10790 lt_cv_dlopen="dlopen"
10791 lt_cv_dlopen_libs=
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; }
10798 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10799 $as_echo_n "(cached) " >&6
10800 else
10801 ac_check_lib_save_LIBS=$LIBS
10802 LIBS="-ldl $LIBS"
10803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10804 /* end confdefs.h. */
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
10810 extern "C"
10811 #endif
10812 char dlopen ();
10814 main ()
10816 return dlopen ();
10818 return 0;
10820 _ACEOF
10821 if ac_fn_c_try_link "$LINENO"; then :
10822 ac_cv_lib_dl_dlopen=yes
10823 else
10824 ac_cv_lib_dl_dlopen=no
10826 rm -f core conftest.err conftest.$ac_objext \
10827 conftest$ac_exeext conftest.$ac_ext
10828 LIBS=$ac_check_lib_save_LIBS
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10831 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10832 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10833 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10834 else
10836 lt_cv_dlopen="dyld"
10837 lt_cv_dlopen_libs=
10838 lt_cv_dlopen_self=yes
10845 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10846 if test "x$ac_cv_func_shl_load" = x""yes; then :
10847 lt_cv_dlopen="shl_load"
10848 else
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; }
10851 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 ac_check_lib_save_LIBS=$LIBS
10855 LIBS="-ldld $LIBS"
10856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
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
10863 extern "C"
10864 #endif
10865 char shl_load ();
10867 main ()
10869 return shl_load ();
10871 return 0;
10873 _ACEOF
10874 if ac_fn_c_try_link "$LINENO"; then :
10875 ac_cv_lib_dld_shl_load=yes
10876 else
10877 ac_cv_lib_dld_shl_load=no
10879 rm -f core conftest.err conftest.$ac_objext \
10880 conftest$ac_exeext conftest.$ac_ext
10881 LIBS=$ac_check_lib_save_LIBS
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; }
10885 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10886 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10887 else
10888 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10889 if test "x$ac_cv_func_dlopen" = x""yes; then :
10890 lt_cv_dlopen="dlopen"
10891 else
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10893 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10894 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10895 $as_echo_n "(cached) " >&6
10896 else
10897 ac_check_lib_save_LIBS=$LIBS
10898 LIBS="-ldl $LIBS"
10899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900 /* end confdefs.h. */
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
10906 extern "C"
10907 #endif
10908 char dlopen ();
10910 main ()
10912 return dlopen ();
10914 return 0;
10916 _ACEOF
10917 if ac_fn_c_try_link "$LINENO"; then :
10918 ac_cv_lib_dl_dlopen=yes
10919 else
10920 ac_cv_lib_dl_dlopen=no
10922 rm -f core conftest.err conftest.$ac_objext \
10923 conftest$ac_exeext conftest.$ac_ext
10924 LIBS=$ac_check_lib_save_LIBS
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10927 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10928 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10929 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10930 else
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10932 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10933 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10934 $as_echo_n "(cached) " >&6
10935 else
10936 ac_check_lib_save_LIBS=$LIBS
10937 LIBS="-lsvld $LIBS"
10938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h. */
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
10945 extern "C"
10946 #endif
10947 char dlopen ();
10949 main ()
10951 return dlopen ();
10953 return 0;
10955 _ACEOF
10956 if ac_fn_c_try_link "$LINENO"; then :
10957 ac_cv_lib_svld_dlopen=yes
10958 else
10959 ac_cv_lib_svld_dlopen=no
10961 rm -f core conftest.err conftest.$ac_objext \
10962 conftest$ac_exeext conftest.$ac_ext
10963 LIBS=$ac_check_lib_save_LIBS
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10966 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10967 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10968 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10969 else
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; }
10972 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10973 $as_echo_n "(cached) " >&6
10974 else
10975 ac_check_lib_save_LIBS=$LIBS
10976 LIBS="-ldld $LIBS"
10977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978 /* end confdefs.h. */
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
10984 extern "C"
10985 #endif
10986 char dld_link ();
10988 main ()
10990 return dld_link ();
10992 return 0;
10994 _ACEOF
10995 if ac_fn_c_try_link "$LINENO"; then :
10996 ac_cv_lib_dld_dld_link=yes
10997 else
10998 ac_cv_lib_dld_dld_link=no
11000 rm -f core conftest.err conftest.$ac_objext \
11001 conftest$ac_exeext conftest.$ac_ext
11002 LIBS=$ac_check_lib_save_LIBS
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; }
11006 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11007 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11026 esac
11028 if test "x$lt_cv_dlopen" != xno; then
11029 enable_dlopen=yes
11030 else
11031 enable_dlopen=no
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"
11039 save_LDFLAGS="$LDFLAGS"
11040 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11042 save_LIBS="$LIBS"
11043 LIBS="$lt_cv_dlopen_libs $LIBS"
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; }
11047 if test "${lt_cv_dlopen_self+set}" = set; then :
11048 $as_echo_n "(cached) " >&6
11049 else
11050 if test "$cross_compiling" = yes; then :
11051 lt_cv_dlopen_self=cross
11052 else
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"
11059 #if HAVE_DLFCN_H
11060 #include <dlfcn.h>
11061 #endif
11063 #include <stdio.h>
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
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
11097 void fnord() { int i=42;}
11098 int main ()
11100 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11101 int status = $lt_dlunknown;
11103 if (self)
11105 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11106 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11107 /* dlclose (self); */
11109 else
11110 puts (dlerror ());
11112 return status;
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
11132 rm -fr conftest*
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11137 $as_echo "$lt_cv_dlopen_self" >&6; }
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; }
11143 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11144 $as_echo_n "(cached) " >&6
11145 else
11146 if test "$cross_compiling" = yes; then :
11147 lt_cv_dlopen_self_static=cross
11148 else
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"
11155 #if HAVE_DLFCN_H
11156 #include <dlfcn.h>
11157 #endif
11159 #include <stdio.h>
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
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
11193 void fnord() { int i=42;}
11194 int main ()
11196 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11197 int status = $lt_dlunknown;
11199 if (self)
11201 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11202 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11203 /* dlclose (self); */
11205 else
11206 puts (dlerror ());
11208 return status;
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
11228 rm -fr conftest*
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11233 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11236 CPPFLAGS="$save_CPPFLAGS"
11237 LDFLAGS="$save_LDFLAGS"
11238 LIBS="$save_LIBS"
11240 esac
11242 case $lt_cv_dlopen_self in
11243 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11244 *) enable_dlopen_self=unknown ;;
11245 esac
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
11269 striplib=
11270 old_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; }
11273 if 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; }
11278 else
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; }
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11294 $as_echo "no" >&6; }
11296 esac
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; }
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
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'
11331 aix[4-9]*)
11332 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11333 test "$enable_shared" = yes && enable_static=no
11336 esac
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11338 $as_echo "$enable_shared" >&6; }
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; }
11351 ac_ext=c
11352 ac_cpp='$CPP $CPPFLAGS'
11353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11357 CC="$lt_save_CC"
11371 ac_config_commands="$ac_config_commands libtool"
11376 # Only expand once:
11380 # Check whether --enable-targets was given.
11381 if 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
11385 no) enable_targets= ;;
11386 *) enable_targets=$enableval ;;
11387 esac
11390 ac_checking=yes
11391 if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
11392 ac_checking=
11394 # Check whether --enable-checking was given.
11395 if test "${enable_checking+set}" = set; then :
11396 enableval=$enable_checking; case "${enableval}" in
11397 no|none) ac_checking= ;;
11398 *) ac_checking=yes ;;
11399 esac
11401 if test x$ac_checking != x ; then
11403 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11407 using_cgen=no
11410 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11412 # Check whether --enable-werror was given.
11413 if 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
11422 # Enable -Wno-format by default when using gcc on mingw
11423 case "${host}" in
11424 *-*-mingw32*)
11425 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11426 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11429 *) ;;
11430 esac
11432 # Enable -Werror by default when using gcc
11433 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11434 ERROR_ON_WARNING=yes
11437 NO_WERROR=
11438 if test "${ERROR_ON_WARNING}" = yes ; then
11439 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11440 NO_WERROR="-Wno-error"
11443 if test "${GCC}" = yes ; then
11444 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11447 # Check whether --enable-build-warnings was given.
11448 if 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"`;;
11459 esac
11463 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11464 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11471 # Generate a header file
11472 ac_config_headers="$ac_config_headers config.h:config.in"
11475 # If we are on a DOS filesystem, we must use gdb.ini rather than
11476 # .gdbinit.
11477 case "${host}" in
11478 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11479 GDBINIT="gdb.ini"
11480 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
11484 GDBINIT=".gdbinit"
11485 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
11488 esac
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; }
11494 if test "${ac_cv_c_bigendian+set}" = set; then :
11495 $as_echo_n "(cached) " >&6
11496 else
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;
11506 _ACEOF
11507 if ac_fn_c_try_compile "$LINENO"; then :
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
11524 esac
11525 ac_prev=
11526 elif test "x$ac_word" = "x-arch"; then
11527 ac_prev=arch
11529 done
11531 rm -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>
11540 main ()
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
11549 return 0;
11551 _ACEOF
11552 if 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>
11560 main ()
11562 #if BYTE_ORDER != BIG_ENDIAN
11563 not big endian
11564 #endif
11567 return 0;
11569 _ACEOF
11570 if ac_fn_c_try_compile "$LINENO"; then :
11571 ac_cv_c_bigendian=yes
11572 else
11573 ac_cv_c_bigendian=no
11575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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>
11586 main ()
11588 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11589 bogus endian macros
11590 #endif
11593 return 0;
11595 _ACEOF
11596 if 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>
11603 main ()
11605 #ifndef _BIG_ENDIAN
11606 not big endian
11607 #endif
11610 return 0;
11612 _ACEOF
11613 if ac_fn_c_try_compile "$LINENO"; then :
11614 ac_cv_c_bigendian=yes
11615 else
11616 ac_cv_c_bigendian=no
11618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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. */
11628 short 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];
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];
11642 extern int foo;
11645 main ()
11647 return use_ascii (foo) == use_ebcdic (foo);
11649 return 0;
11651 _ACEOF
11652 if ac_fn_c_try_compile "$LINENO"; then :
11653 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11654 ac_cv_c_bigendian=yes
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
11665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11666 else
11667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h. */
11669 $ac_includes_default
11671 main ()
11674 /* Are we little or big endian? From Harbison&Steele. */
11675 union
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;
11684 return 0;
11686 _ACEOF
11687 if ac_fn_c_try_run "$LINENO"; then :
11688 ac_cv_c_bigendian=no
11689 else
11690 ac_cv_c_bigendian=yes
11692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11693 conftest.$ac_objext conftest.beam conftest.$ac_ext
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 ;; #(
11705 ;; #(
11706 universal)
11708 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11710 ;; #(
11712 as_fn_error "unknown endianness
11713 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11714 esac
11717 te_file=generic
11719 # Makefile target for installing gas in $(tooldir)/bin.
11720 install_tooldir=install-exec-tooldir
11722 canon_targets=""
11723 all_targets=no
11724 if 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
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"
11737 done
11738 _gas_uniq_list="$canon_targets"
11739 _gas_uniq_newlist=""
11740 for _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
11748 done
11749 canon_targets=$_gas_uniq_newlist
11753 emulations=""
11755 for this_target in $target $canon_targets ; do
11757 targ=${this_target}
11758 . ${srcdir}/configure.tgt
11760 case ${target_cpu} in
11761 crisv32)
11763 cat >>confdefs.h <<_ACEOF
11764 #define DEFAULT_CRIS_ARCH $arch
11765 _ACEOF
11768 esac
11770 if test ${this_target} = $target ; then
11771 target_cpu_type=${cpu_type}
11772 elif test ${target_cpu_type} != ${cpu_type} ; then
11773 continue
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
11781 $as_echo "#define SCO_ELF 1" >>confdefs.h
11786 i386-*-msdosdjgpp* \
11787 | i386-*-go32* \
11788 | i386-go32-rtems*)
11790 $as_echo "#define STRICTCOFF 1" >>confdefs.h
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;}
11799 microblaze*)
11802 mips-sony-bsd*)
11804 mips-*-bsd*)
11805 as_fn_error "Unknown vendor for mips-bsd configuration." "$LINENO" 5
11808 ppc-*-aix[5-9].*)
11810 $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
11813 ppc-*-linux-*)
11814 case "$endian" in
11815 big) ;;
11816 *) as_fn_error "GNU/Linux must be configured big endian" "$LINENO" 5 ;;
11817 esac
11819 ppc-*-solaris*)
11820 if test ${this_target} = $target; then
11822 $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
11825 if test x${endian} = xbig; then
11826 as_fn_error "Solaris must be configured little endian" "$LINENO" 5
11830 sh*-*-symbianelf*)
11832 $as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h
11835 esac
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
11844 if test x${endian_def} != x; then
11846 cat >>confdefs.h <<_ACEOF
11847 #define TARGET_BYTES_BIG_ENDIAN $endian_def
11848 _ACEOF
11853 # Other random stuff.
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
11862 mipsisa32 | mipsisa32el)
11863 mips_cpu=mips32
11865 mipsisa32r2 | mipsisa32r2el)
11866 mips_cpu=mips32r2
11868 mipsisa64 | mipsisa64el)
11869 mips_cpu=mips64
11871 mipsisa64r2 | mipsisa64r2el)
11872 mips_cpu=mips64r2
11874 mipstx39 | mipstx39el)
11875 mips_cpu=r3900
11877 mips64vr | mips64vrel)
11878 mips_cpu=vr4100
11880 mipsisa32r2* | mipsisa64r2*)
11881 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
11883 mips64* | mipsisa64* | mipsisa32*)
11884 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
11887 as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
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
11898 use_e_mips_abi_o32=1
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
11908 mips_default_64bit=0
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
11916 mips*-linux*)
11917 mips_default_abi=O32_ABI
11919 mips64*-openbsd*)
11920 mips_default_abi=N64_ABI
11923 mips_default_abi=NO_ABI
11925 esac
11927 cat >>confdefs.h <<_ACEOF
11928 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
11929 _ACEOF
11932 cat >>confdefs.h <<_ACEOF
11933 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
11934 _ACEOF
11937 cat >>confdefs.h <<_ACEOF
11938 #define MIPS_DEFAULT_64BIT $mips_default_64bit
11939 _ACEOF
11942 cat >>confdefs.h <<_ACEOF
11943 #define MIPS_DEFAULT_ABI $mips_default_abi
11944 _ACEOF
11947 esac
11949 # Do we need the opcodes library?
11950 case ${cpu_type} in
11951 vax | tic30)
11955 need_opcodes=yes
11957 case "${enable_shared}" in
11958 yes) shared_opcodes=true ;;
11959 *opcodes*) shared_opcodes=true ;;
11960 *) shared_opcodes=false ;;
11961 esac
11963 esac
11965 # Any other special object files needed ?
11966 case ${cpu_type} in
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"
11974 echo ${extra_objects} | grep -s "bfin-lex.o"
11975 if test $? -ne 0 ; then
11976 extra_objects="$extra_objects bfin-lex.o"
11980 fr30 | ip2k | iq2000 | lm32 | m32r | openrisc)
11981 using_cgen=yes
11984 m32c)
11985 using_cgen=yes
11987 frv)
11988 using_cgen=yes
11990 m68k)
11991 case ${extra_objects} in
11992 *m68k-parse.o*) ;;
11993 *) extra_objects="$extra_objects m68k-parse.o" ;;
11994 esac
11997 mep)
11998 using_cgen=yes
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"
12007 echo ${extra_objects} | grep -s "itbl-lex.o"
12008 if test $? -ne 0 ; then
12009 extra_objects="$extra_objects itbl-lex.o"
12012 echo ${extra_objects} | grep -s "itbl-ops.o"
12013 if test $? -ne 0 ; then
12014 extra_objects="$extra_objects itbl-ops.o"
12019 using_cgen=yes
12022 i386 | s390 | sparc)
12023 if test $this_target = $target ; then
12025 cat >>confdefs.h <<_ACEOF
12026 #define DEFAULT_ARCH "${arch}"
12027 _ACEOF
12033 echo ${extra_objects} | grep -s "rx-parse.o"
12034 if test $? -ne 0 ; then
12035 extra_objects="$extra_objects rx-parse.o"
12039 xstormy16)
12040 using_cgen=yes
12043 xc16x)
12044 using_cgen=yes
12047 xtensa)
12048 echo ${extra_objects} | grep -s "xtensa-relax.o"
12049 if test $? -ne 0 ; then
12050 extra_objects="$extra_objects xtensa-relax.o"
12056 esac
12058 if test $using_cgen = yes ; then
12059 case "x${extra_objects}" in
12060 *cgen.o*) ;;
12061 *) extra_objects="$extra_objects cgen.o" ;;
12062 esac
12065 # See if we really can support this configuration with the emulation code.
12067 if test $this_target = $target ; then
12068 obj_format=$fmt
12069 te_file=$em
12072 case ${te_file} in
12073 vms) extra_objects="$extra_objects te-vms.o" ;;
12074 esac
12076 # From target name and format, produce a list of supported emulations.
12078 case ${generic_target}-${fmt} in
12079 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
12080 mips*-*-linux*-*) case "$endian" in
12081 big) emulation="mipsbelf mipslelf mipself" ;;
12082 *) emulation="mipslelf mipsbelf mipself" ;;
12083 esac ;;
12084 mips-*-lnews*-ecoff) ;;
12085 mips-*-*-ecoff) case "$endian" in
12086 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
12087 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
12088 esac ;;
12089 mips-*-*-elf) case "$endian" in
12090 big) emulation="mipsbelf mipslelf mipself" ;;
12091 *) emulation="mipslelf mipsbelf mipself" ;;
12092 esac ;;
12093 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
12094 # i386-pc-pe-coff != i386-pc-coff.
12095 i386-*-pe-coff) ;;
12096 # Uncommenting the next line will turn on support for i386 AOUT
12097 # for the default linux configuration
12098 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12100 i386-*-aout) emulation="i386aout" ;;
12101 i386-*-coff) emulation="i386coff" ;;
12102 i386-*-elf) emulation="i386elf" ;;
12104 # Always all formats. The first stated emulation becomes the default.
12105 cris-*-*aout*) emulation="crisaout criself" ;;
12106 cris-*-*) emulation="criself crisaout" ;;
12107 esac
12109 emulations="$emulations $emulation"
12111 done
12113 # Turn on all targets if possible
12114 if test ${all_targets} = "yes"; then
12115 case ${target_cpu_type} in
12116 i386)
12117 case ${obj_format} in
12118 aout)
12119 emulations="$emulations i386coff i386elf"
12121 coff)
12122 emulations="$emulations i386aout i386elf"
12124 elf)
12125 emulations="$emulations i386aout i386coff"
12127 esac
12129 x86_64)
12130 case ${obj_format} in
12131 aout)
12132 emulations="$emulations i386coff i386elf"
12134 coff)
12135 emulations="$emulations i386aout i386elf"
12137 elf)
12138 emulations="$emulations i386aout i386coff"
12140 esac
12142 esac
12145 # Assign floating point type. Most processors with FP support
12146 # IEEE FP. On those that don't support FP at all, usually IEEE
12147 # is emulated.
12148 case ${target_cpu} in
12149 vax | pdp11 ) atof=vax ;;
12150 *) atof=ieee ;;
12151 esac
12153 case "${obj_format}" in
12154 "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
12155 esac
12157 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12158 cgen_cpu_prefix=""
12159 if test $using_cgen = yes ; then
12160 case ${target_cpu} in
12161 *) cgen_cpu_prefix=${target_cpu} ;;
12162 esac
12165 $as_echo "#define USING_CGEN 1" >>confdefs.h
12170 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
12171 as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
12174 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
12175 as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
12178 # Some COFF configurations want these random other flags set.
12179 case ${obj_format} in
12180 coff)
12181 case ${target_cpu_type} in
12182 i386)
12183 $as_echo "#define I386COFF 1" >>confdefs.h
12185 m68k)
12186 $as_echo "#define M68KCOFF 1" >>confdefs.h
12188 m88k)
12189 $as_echo "#define M88KCOFF 1" >>confdefs.h
12191 x86_64)
12192 $as_echo "#define I386COFF 1" >>confdefs.h
12194 esac
12196 esac
12198 # Getting this done right is going to be a bitch. Each configuration specified
12199 # with --enable-targets=... should be checked for environment, format, cpu
12200 # setting.
12202 # For each configuration, the necessary object file support code must be linked
12203 # in. This might be only one, it might be up to four. The necessary emulation
12204 # code needs to be provided, too.
12206 # And then there's "--enable-targets=all"....
12208 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
12210 formats="${obj_format}"
12211 emfiles=""
12212 EMULATIONS=""
12213 _gas_uniq_list="$emulations"
12214 _gas_uniq_newlist=""
12215 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12216 case $_gas_uniq_i in
12217 _gas_uniq_dummy) ;;
12218 *) case " $_gas_uniq_newlist " in
12219 *" $_gas_uniq_i "*) ;;
12220 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12221 esac ;;
12222 esac
12223 done
12224 emulations=$_gas_uniq_newlist
12226 for em in . $emulations ; do
12227 case $em in
12228 .) continue ;;
12229 mipsbelf | mipslelf | mipself)
12230 fmt=elf file=mipself ;;
12231 mipsbecoff | mipslecoff | mipsecoff)
12232 fmt=ecoff file=mipsecoff ;;
12233 *coff)
12234 fmt=coff file=$em ;;
12235 *aout)
12236 fmt=aout file=$em ;;
12237 *elf)
12238 fmt=elf file=$em ;;
12239 esac
12240 formats="$formats $fmt"
12241 emfiles="$emfiles e-$file.o"
12242 EMULATIONS="$EMULATIONS &$em,"
12243 done
12244 _gas_uniq_list="$formats"
12245 _gas_uniq_newlist=""
12246 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12247 case $_gas_uniq_i in
12248 _gas_uniq_dummy) ;;
12249 *) case " $_gas_uniq_newlist " in
12250 *" $_gas_uniq_i "*) ;;
12251 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12252 esac ;;
12253 esac
12254 done
12255 formats=$_gas_uniq_newlist
12257 _gas_uniq_list="$emfiles"
12258 _gas_uniq_newlist=""
12259 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12260 case $_gas_uniq_i in
12261 _gas_uniq_dummy) ;;
12262 *) case " $_gas_uniq_newlist " in
12263 *" $_gas_uniq_i "*) ;;
12264 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12265 esac ;;
12266 esac
12267 done
12268 emfiles=$_gas_uniq_newlist
12270 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12271 for fmt in $formats ; do
12272 case $fmt in
12273 aout)
12274 $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
12276 bout)
12277 $as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h
12279 coff)
12280 $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
12282 ecoff)
12283 $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
12285 elf)
12286 $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
12288 generic)
12289 $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
12291 som)
12292 $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
12294 esac
12295 extra_objects="$extra_objects obj-$fmt.o"
12296 done
12297 obj_format=multi
12299 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12300 DEFAULT_EMULATION=`set . $emulations ; echo $2`
12301 # e-mips* has more than one emulation per file, e-i386* has just one at the
12302 # moment. If only one emulation is specified, then don't define
12303 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12304 case "${obj_format}${emfiles}" in
12305 multi* | *mips*)
12306 extra_objects="$extra_objects $emfiles"
12308 $as_echo "#define USE_EMULATIONS 1" >>confdefs.h
12310 esac
12314 cat >>confdefs.h <<_ACEOF
12315 #define EMULATIONS $EMULATIONS
12316 _ACEOF
12319 cat >>confdefs.h <<_ACEOF
12320 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
12321 _ACEOF
12324 reject_dev_configs=yes
12326 case ${reject_dev_configs}-${dev} in
12327 yes-yes) # Oops.
12328 as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5
12330 esac
12338 # do we need the opcodes library?
12339 case "${need_opcodes}" in
12340 yes)
12341 OPCODES_LIB=../opcodes/libopcodes.la
12343 esac
12348 cat >>confdefs.h <<_ACEOF
12349 #define TARGET_ALIAS "${target_alias}"
12350 _ACEOF
12353 cat >>confdefs.h <<_ACEOF
12354 #define TARGET_CANONICAL "${target}"
12355 _ACEOF
12358 cat >>confdefs.h <<_ACEOF
12359 #define TARGET_CPU "${target_cpu}"
12360 _ACEOF
12363 cat >>confdefs.h <<_ACEOF
12364 #define TARGET_VENDOR "${target_vendor}"
12365 _ACEOF
12368 cat >>confdefs.h <<_ACEOF
12369 #define TARGET_OS "${target_os}"
12370 _ACEOF
12373 for ac_prog in 'bison -y' byacc
12375 # Extract the first word of "$ac_prog", so it can be a program name with args.
12376 set dummy $ac_prog; ac_word=$2
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12378 $as_echo_n "checking for $ac_word... " >&6; }
12379 if test "${ac_cv_prog_YACC+set}" = set; then :
12380 $as_echo_n "(cached) " >&6
12381 else
12382 if test -n "$YACC"; then
12383 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12384 else
12385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12386 for as_dir in $PATH
12388 IFS=$as_save_IFS
12389 test -z "$as_dir" && as_dir=.
12390 for ac_exec_ext in '' $ac_executable_extensions; do
12391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12392 ac_cv_prog_YACC="$ac_prog"
12393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12394 break 2
12396 done
12397 done
12398 IFS=$as_save_IFS
12402 YACC=$ac_cv_prog_YACC
12403 if test -n "$YACC"; then
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12405 $as_echo "$YACC" >&6; }
12406 else
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12408 $as_echo "no" >&6; }
12412 test -n "$YACC" && break
12413 done
12414 test -n "$YACC" || YACC="yacc"
12416 for ac_prog in flex lex
12418 # Extract the first word of "$ac_prog", so it can be a program name with args.
12419 set dummy $ac_prog; ac_word=$2
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12421 $as_echo_n "checking for $ac_word... " >&6; }
12422 if test "${ac_cv_prog_LEX+set}" = set; then :
12423 $as_echo_n "(cached) " >&6
12424 else
12425 if test -n "$LEX"; then
12426 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12427 else
12428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429 for as_dir in $PATH
12431 IFS=$as_save_IFS
12432 test -z "$as_dir" && as_dir=.
12433 for ac_exec_ext in '' $ac_executable_extensions; do
12434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12435 ac_cv_prog_LEX="$ac_prog"
12436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12437 break 2
12439 done
12440 done
12441 IFS=$as_save_IFS
12445 LEX=$ac_cv_prog_LEX
12446 if test -n "$LEX"; then
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12448 $as_echo "$LEX" >&6; }
12449 else
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12451 $as_echo "no" >&6; }
12455 test -n "$LEX" && break
12456 done
12457 test -n "$LEX" || LEX=":"
12459 if test "x$LEX" != "x:"; then
12460 cat >conftest.l <<_ACEOF
12462 a { ECHO; }
12463 b { REJECT; }
12464 c { yymore (); }
12465 d { yyless (1); }
12466 e { yyless (input () != 0); }
12467 f { unput (yytext[0]); }
12468 . { BEGIN INITIAL; }
12470 #ifdef YYTEXT_POINTER
12471 extern char *yytext;
12472 #endif
12474 main (void)
12476 return ! yylex () + ! yywrap ();
12478 _ACEOF
12479 { { ac_try="$LEX conftest.l"
12480 case "(($ac_try" in
12481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482 *) ac_try_echo=$ac_try;;
12483 esac
12484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12485 $as_echo "$ac_try_echo"; } >&5
12486 (eval "$LEX conftest.l") 2>&5
12487 ac_status=$?
12488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12489 test $ac_status = 0; }
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12491 $as_echo_n "checking lex output file root... " >&6; }
12492 if test "${ac_cv_prog_lex_root+set}" = set; then :
12493 $as_echo_n "(cached) " >&6
12494 else
12496 if test -f lex.yy.c; then
12497 ac_cv_prog_lex_root=lex.yy
12498 elif test -f lexyy.c; then
12499 ac_cv_prog_lex_root=lexyy
12500 else
12501 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12505 $as_echo "$ac_cv_prog_lex_root" >&6; }
12506 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12508 if test -z "${LEXLIB+set}"; then
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12510 $as_echo_n "checking lex library... " >&6; }
12511 if test "${ac_cv_lib_lex+set}" = set; then :
12512 $as_echo_n "(cached) " >&6
12513 else
12515 ac_save_LIBS=$LIBS
12516 ac_cv_lib_lex='none needed'
12517 for ac_lib in '' -lfl -ll; do
12518 LIBS="$ac_lib $ac_save_LIBS"
12519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12520 /* end confdefs.h. */
12521 `cat $LEX_OUTPUT_ROOT.c`
12522 _ACEOF
12523 if ac_fn_c_try_link "$LINENO"; then :
12524 ac_cv_lib_lex=$ac_lib
12526 rm -f core conftest.err conftest.$ac_objext \
12527 conftest$ac_exeext conftest.$ac_ext
12528 test "$ac_cv_lib_lex" != 'none needed' && break
12529 done
12530 LIBS=$ac_save_LIBS
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12534 $as_echo "$ac_cv_lib_lex" >&6; }
12535 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12540 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12541 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12542 $as_echo_n "(cached) " >&6
12543 else
12544 # POSIX says lex can declare yytext either as a pointer or an array; the
12545 # default is implementation-dependent. Figure out which it is, since
12546 # not all implementations provide the %pointer and %array declarations.
12547 ac_cv_prog_lex_yytext_pointer=no
12548 ac_save_LIBS=$LIBS
12549 LIBS="$LEXLIB $ac_save_LIBS"
12550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12551 /* end confdefs.h. */
12552 #define YYTEXT_POINTER 1
12553 `cat $LEX_OUTPUT_ROOT.c`
12554 _ACEOF
12555 if ac_fn_c_try_link "$LINENO"; then :
12556 ac_cv_prog_lex_yytext_pointer=yes
12558 rm -f core conftest.err conftest.$ac_objext \
12559 conftest$ac_exeext conftest.$ac_ext
12560 LIBS=$ac_save_LIBS
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12564 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12565 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12567 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12570 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12573 if test "$LEX" = :; then
12574 LEX=${am_missing_run}flex
12577 ALL_LINGUAS="fr tr es rw id"
12578 # If we haven't got the data from the intl directory,
12579 # assume NLS is disabled.
12580 USE_NLS=no
12581 LIBINTL=
12582 LIBINTL_DEP=
12583 INCINTL=
12584 XGETTEXT=
12585 GMSGFMT=
12586 POSUB=
12588 if test -f ../intl/config.intl; then
12589 . ../intl/config.intl
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12592 $as_echo_n "checking whether NLS is requested... " >&6; }
12593 if test x"$USE_NLS" != xyes; then
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12595 $as_echo "no" >&6; }
12596 else
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12598 $as_echo "yes" >&6; }
12600 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12604 $as_echo_n "checking for catalogs to be installed... " >&6; }
12605 # Look for .po and .gmo files in the source directory.
12606 CATALOGS=
12607 XLINGUAS=
12608 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12609 # If there aren't any .gmo files the shell will give us the
12610 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12611 # weeded out.
12612 case "$cat" in *\**)
12613 continue;;
12614 esac
12615 # The quadruple backslash is collapsed to a double backslash
12616 # by the backticks, then collapsed again by the double quotes,
12617 # leaving us with one backslash in the sed expression (right
12618 # before the dot that mustn't act as a wildcard).
12619 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12620 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12621 # The user is allowed to set LINGUAS to a list of languages to
12622 # install catalogs for. If it's empty that means "all of them."
12623 if test "x$LINGUAS" = x; then
12624 CATALOGS="$CATALOGS $cat"
12625 XLINGUAS="$XLINGUAS $lang"
12626 else
12627 case "$LINGUAS" in *$lang*)
12628 CATALOGS="$CATALOGS $cat"
12629 XLINGUAS="$XLINGUAS $lang"
12631 esac
12633 done
12634 LINGUAS="$XLINGUAS"
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12636 $as_echo "$LINGUAS" >&6; }
12639 DATADIRNAME=share
12641 INSTOBJEXT=.mo
12643 GENCAT=gencat
12645 CATOBJEXT=.gmo
12649 MKINSTALLDIRS=
12650 if test -n "$ac_aux_dir"; then
12651 case "$ac_aux_dir" in
12652 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12653 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12654 esac
12656 if test -z "$MKINSTALLDIRS"; then
12657 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12663 $as_echo_n "checking whether NLS is requested... " >&6; }
12664 # Check whether --enable-nls was given.
12665 if test "${enable_nls+set}" = set; then :
12666 enableval=$enable_nls; USE_NLS=$enableval
12667 else
12668 USE_NLS=yes
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12672 $as_echo "$USE_NLS" >&6; }
12679 # Prepare PATH_SEPARATOR.
12680 # The user is always right.
12681 if test "${PATH_SEPARATOR+set}" != set; then
12682 echo "#! /bin/sh" >conf$$.sh
12683 echo "exit 0" >>conf$$.sh
12684 chmod +x conf$$.sh
12685 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12686 PATH_SEPARATOR=';'
12687 else
12688 PATH_SEPARATOR=:
12690 rm -f conf$$.sh
12693 # Find out how to test for executable files. Don't use a zero-byte file,
12694 # as systems may use methods other than mode bits to determine executability.
12695 cat >conf$$.file <<_ASEOF
12696 #! /bin/sh
12697 exit 0
12698 _ASEOF
12699 chmod +x conf$$.file
12700 if test -x conf$$.file >/dev/null 2>&1; then
12701 ac_executable_p="test -x"
12702 else
12703 ac_executable_p="test -f"
12705 rm -f conf$$.file
12707 # Extract the first word of "msgfmt", so it can be a program name with args.
12708 set dummy msgfmt; ac_word=$2
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12710 $as_echo_n "checking for $ac_word... " >&6; }
12711 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12712 $as_echo_n "(cached) " >&6
12713 else
12714 case "$MSGFMT" in
12715 [\\/]* | ?:[\\/]*)
12716 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12719 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12720 for ac_dir in $PATH; do
12721 IFS="$ac_save_IFS"
12722 test -z "$ac_dir" && ac_dir=.
12723 for ac_exec_ext in '' $ac_executable_extensions; do
12724 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12725 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12726 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12727 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12728 break 2
12731 done
12732 done
12733 IFS="$ac_save_IFS"
12734 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12736 esac
12738 MSGFMT="$ac_cv_path_MSGFMT"
12739 if test "$MSGFMT" != ":"; then
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12741 $as_echo "$MSGFMT" >&6; }
12742 else
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12744 $as_echo "no" >&6; }
12747 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12748 set dummy gmsgfmt; ac_word=$2
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12750 $as_echo_n "checking for $ac_word... " >&6; }
12751 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12752 $as_echo_n "(cached) " >&6
12753 else
12754 case $GMSGFMT in
12755 [\\/]* | ?:[\\/]*)
12756 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12760 for as_dir in $PATH
12762 IFS=$as_save_IFS
12763 test -z "$as_dir" && as_dir=.
12764 for ac_exec_ext in '' $ac_executable_extensions; do
12765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12766 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12768 break 2
12770 done
12771 done
12772 IFS=$as_save_IFS
12774 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12776 esac
12778 GMSGFMT=$ac_cv_path_GMSGFMT
12779 if test -n "$GMSGFMT"; then
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12781 $as_echo "$GMSGFMT" >&6; }
12782 else
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12784 $as_echo "no" >&6; }
12790 # Prepare PATH_SEPARATOR.
12791 # The user is always right.
12792 if test "${PATH_SEPARATOR+set}" != set; then
12793 echo "#! /bin/sh" >conf$$.sh
12794 echo "exit 0" >>conf$$.sh
12795 chmod +x conf$$.sh
12796 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12797 PATH_SEPARATOR=';'
12798 else
12799 PATH_SEPARATOR=:
12801 rm -f conf$$.sh
12804 # Find out how to test for executable files. Don't use a zero-byte file,
12805 # as systems may use methods other than mode bits to determine executability.
12806 cat >conf$$.file <<_ASEOF
12807 #! /bin/sh
12808 exit 0
12809 _ASEOF
12810 chmod +x conf$$.file
12811 if test -x conf$$.file >/dev/null 2>&1; then
12812 ac_executable_p="test -x"
12813 else
12814 ac_executable_p="test -f"
12816 rm -f conf$$.file
12818 # Extract the first word of "xgettext", so it can be a program name with args.
12819 set dummy xgettext; ac_word=$2
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12821 $as_echo_n "checking for $ac_word... " >&6; }
12822 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12823 $as_echo_n "(cached) " >&6
12824 else
12825 case "$XGETTEXT" in
12826 [\\/]* | ?:[\\/]*)
12827 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12830 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12831 for ac_dir in $PATH; do
12832 IFS="$ac_save_IFS"
12833 test -z "$ac_dir" && ac_dir=.
12834 for ac_exec_ext in '' $ac_executable_extensions; do
12835 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12836 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12837 (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
12838 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12839 break 2
12842 done
12843 done
12844 IFS="$ac_save_IFS"
12845 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12847 esac
12849 XGETTEXT="$ac_cv_path_XGETTEXT"
12850 if test "$XGETTEXT" != ":"; then
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12852 $as_echo "$XGETTEXT" >&6; }
12853 else
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12855 $as_echo "no" >&6; }
12858 rm -f messages.po
12861 # Prepare PATH_SEPARATOR.
12862 # The user is always right.
12863 if test "${PATH_SEPARATOR+set}" != set; then
12864 echo "#! /bin/sh" >conf$$.sh
12865 echo "exit 0" >>conf$$.sh
12866 chmod +x conf$$.sh
12867 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12868 PATH_SEPARATOR=';'
12869 else
12870 PATH_SEPARATOR=:
12872 rm -f conf$$.sh
12875 # Find out how to test for executable files. Don't use a zero-byte file,
12876 # as systems may use methods other than mode bits to determine executability.
12877 cat >conf$$.file <<_ASEOF
12878 #! /bin/sh
12879 exit 0
12880 _ASEOF
12881 chmod +x conf$$.file
12882 if test -x conf$$.file >/dev/null 2>&1; then
12883 ac_executable_p="test -x"
12884 else
12885 ac_executable_p="test -f"
12887 rm -f conf$$.file
12889 # Extract the first word of "msgmerge", so it can be a program name with args.
12890 set dummy msgmerge; ac_word=$2
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12892 $as_echo_n "checking for $ac_word... " >&6; }
12893 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12894 $as_echo_n "(cached) " >&6
12895 else
12896 case "$MSGMERGE" in
12897 [\\/]* | ?:[\\/]*)
12898 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12901 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12902 for ac_dir in $PATH; do
12903 IFS="$ac_save_IFS"
12904 test -z "$ac_dir" && ac_dir=.
12905 for ac_exec_ext in '' $ac_executable_extensions; do
12906 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12907 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12908 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12909 break 2
12912 done
12913 done
12914 IFS="$ac_save_IFS"
12915 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12917 esac
12919 MSGMERGE="$ac_cv_path_MSGMERGE"
12920 if test "$MSGMERGE" != ":"; then
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12922 $as_echo "$MSGMERGE" >&6; }
12923 else
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12925 $as_echo "no" >&6; }
12929 if test "$GMSGFMT" != ":"; then
12930 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12931 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12933 else
12934 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12936 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12937 GMSGFMT=":"
12941 if test "$XGETTEXT" != ":"; then
12942 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12943 (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
12945 else
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12947 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12948 XGETTEXT=":"
12950 rm -f messages.po
12953 ac_config_commands="$ac_config_commands default-1"
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12959 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12960 # Check whether --enable-maintainer-mode was given.
12961 if test "${enable_maintainer_mode+set}" = set; then :
12962 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12963 else
12964 USE_MAINTAINER_MODE=no
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12968 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12969 if test $USE_MAINTAINER_MODE = yes; then
12970 MAINTAINER_MODE_TRUE=
12971 MAINTAINER_MODE_FALSE='#'
12972 else
12973 MAINTAINER_MODE_TRUE='#'
12974 MAINTAINER_MODE_FALSE=
12977 MAINT=$MAINTAINER_MODE_TRUE
12980 if false; then
12981 GENINSRC_NEVER_TRUE=
12982 GENINSRC_NEVER_FALSE='#'
12983 else
12984 GENINSRC_NEVER_TRUE='#'
12985 GENINSRC_NEVER_FALSE=
12990 for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h limits.h time.h sys/stat.h
12991 do :
12992 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12993 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12994 eval as_val=\$$as_ac_Header
12995 if test "x$as_val" = x""yes; then :
12996 cat >>confdefs.h <<_ACEOF
12997 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12998 _ACEOF
13002 done
13005 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
13006 # people who are not cross-compiling but are compiling cross-assemblers.
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13008 $as_echo_n "checking whether compiling a cross-assembler... " >&6; }
13009 if test "${host}" = "${target}"; then
13010 cross_gas=no
13011 else
13012 cross_gas=yes
13014 $as_echo "#define CROSS_COMPILE 1" >>confdefs.h
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13018 $as_echo "$cross_gas" >&6; }
13020 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13021 # for constant arguments. Useless!
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13023 $as_echo_n "checking for working alloca.h... " >&6; }
13024 if test "${ac_cv_working_alloca_h+set}" = set; then :
13025 $as_echo_n "(cached) " >&6
13026 else
13027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028 /* end confdefs.h. */
13029 #include <alloca.h>
13031 main ()
13033 char *p = (char *) alloca (2 * sizeof (int));
13034 if (p) return 0;
13036 return 0;
13038 _ACEOF
13039 if ac_fn_c_try_link "$LINENO"; then :
13040 ac_cv_working_alloca_h=yes
13041 else
13042 ac_cv_working_alloca_h=no
13044 rm -f core conftest.err conftest.$ac_objext \
13045 conftest$ac_exeext conftest.$ac_ext
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13048 $as_echo "$ac_cv_working_alloca_h" >&6; }
13049 if test $ac_cv_working_alloca_h = yes; then
13051 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13056 $as_echo_n "checking for alloca... " >&6; }
13057 if test "${ac_cv_func_alloca_works+set}" = set; then :
13058 $as_echo_n "(cached) " >&6
13059 else
13060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061 /* end confdefs.h. */
13062 #ifdef __GNUC__
13063 # define alloca __builtin_alloca
13064 #else
13065 # ifdef _MSC_VER
13066 # include <malloc.h>
13067 # define alloca _alloca
13068 # else
13069 # ifdef HAVE_ALLOCA_H
13070 # include <alloca.h>
13071 # else
13072 # ifdef _AIX
13073 #pragma alloca
13074 # else
13075 # ifndef alloca /* predefined by HP cc +Olibcalls */
13076 char *alloca ();
13077 # endif
13078 # endif
13079 # endif
13080 # endif
13081 #endif
13084 main ()
13086 char *p = (char *) alloca (1);
13087 if (p) return 0;
13089 return 0;
13091 _ACEOF
13092 if ac_fn_c_try_link "$LINENO"; then :
13093 ac_cv_func_alloca_works=yes
13094 else
13095 ac_cv_func_alloca_works=no
13097 rm -f core conftest.err conftest.$ac_objext \
13098 conftest$ac_exeext conftest.$ac_ext
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13101 $as_echo "$ac_cv_func_alloca_works" >&6; }
13103 if test $ac_cv_func_alloca_works = yes; then
13105 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13107 else
13108 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13109 # that cause trouble. Some versions do not even contain alloca or
13110 # contain a buggy version. If you still want to use their alloca,
13111 # use ar to extract alloca.o from them instead of compiling alloca.c.
13113 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13115 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13119 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13120 if test "${ac_cv_os_cray+set}" = set; then :
13121 $as_echo_n "(cached) " >&6
13122 else
13123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13124 /* end confdefs.h. */
13125 #if defined CRAY && ! defined CRAY2
13126 webecray
13127 #else
13128 wenotbecray
13129 #endif
13131 _ACEOF
13132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13133 $EGREP "webecray" >/dev/null 2>&1; then :
13134 ac_cv_os_cray=yes
13135 else
13136 ac_cv_os_cray=no
13138 rm -f conftest*
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13142 $as_echo "$ac_cv_os_cray" >&6; }
13143 if test $ac_cv_os_cray = yes; then
13144 for ac_func in _getb67 GETB67 getb67; do
13145 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13146 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13147 eval as_val=\$$as_ac_var
13148 if test "x$as_val" = x""yes; then :
13150 cat >>confdefs.h <<_ACEOF
13151 #define CRAY_STACKSEG_END $ac_func
13152 _ACEOF
13154 break
13157 done
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13161 $as_echo_n "checking stack direction for C alloca... " >&6; }
13162 if test "${ac_cv_c_stack_direction+set}" = set; then :
13163 $as_echo_n "(cached) " >&6
13164 else
13165 if test "$cross_compiling" = yes; then :
13166 ac_cv_c_stack_direction=0
13167 else
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13170 $ac_includes_default
13172 find_stack_direction ()
13174 static char *addr = 0;
13175 auto char dummy;
13176 if (addr == 0)
13178 addr = &dummy;
13179 return find_stack_direction ();
13181 else
13182 return (&dummy > addr) ? 1 : -1;
13186 main ()
13188 return find_stack_direction () < 0;
13190 _ACEOF
13191 if ac_fn_c_try_run "$LINENO"; then :
13192 ac_cv_c_stack_direction=1
13193 else
13194 ac_cv_c_stack_direction=-1
13196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13197 conftest.$ac_objext conftest.beam conftest.$ac_ext
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13202 $as_echo "$ac_cv_c_stack_direction" >&6; }
13203 cat >>confdefs.h <<_ACEOF
13204 #define STACK_DIRECTION $ac_cv_c_stack_direction
13205 _ACEOF
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13211 $as_echo_n "checking for inline... " >&6; }
13212 if test "${ac_cv_c_inline+set}" = set; then :
13213 $as_echo_n "(cached) " >&6
13214 else
13215 ac_cv_c_inline=no
13216 for ac_kw in inline __inline__ __inline; do
13217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218 /* end confdefs.h. */
13219 #ifndef __cplusplus
13220 typedef int foo_t;
13221 static $ac_kw foo_t static_foo () {return 0; }
13222 $ac_kw foo_t foo () {return 0; }
13223 #endif
13225 _ACEOF
13226 if ac_fn_c_try_compile "$LINENO"; then :
13227 ac_cv_c_inline=$ac_kw
13229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13230 test "$ac_cv_c_inline" != no && break
13231 done
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13235 $as_echo "$ac_cv_c_inline" >&6; }
13237 case $ac_cv_c_inline in
13238 inline | yes) ;;
13240 case $ac_cv_c_inline in
13241 no) ac_val=;;
13242 *) ac_val=$ac_cv_c_inline;;
13243 esac
13244 cat >>confdefs.h <<_ACEOF
13245 #ifndef __cplusplus
13246 #define inline $ac_val
13247 #endif
13248 _ACEOF
13250 esac
13253 # VMS doesn't have unlink.
13254 for ac_func in unlink remove
13255 do :
13256 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13257 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13258 eval as_val=\$$as_ac_var
13259 if test "x$as_val" = x""yes; then :
13260 cat >>confdefs.h <<_ACEOF
13261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13262 _ACEOF
13263 break
13265 done
13268 # Some systems don't have sbrk().
13269 for ac_func in sbrk
13270 do :
13271 ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
13272 if test "x$ac_cv_func_sbrk" = x""yes; then :
13273 cat >>confdefs.h <<_ACEOF
13274 #define HAVE_SBRK 1
13275 _ACEOF
13278 done
13281 # do we need the math library?
13282 case "${need_libm}" in
13283 yes)
13284 LIBM=
13285 case $host in
13286 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
13287 # These system don't have libm, or don't need it
13289 *-ncr-sysv4.3*)
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13291 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13292 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
13293 $as_echo_n "(cached) " >&6
13294 else
13295 ac_check_lib_save_LIBS=$LIBS
13296 LIBS="-lmw $LIBS"
13297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13298 /* end confdefs.h. */
13300 /* Override any GCC internal prototype to avoid an error.
13301 Use char because int might match the return type of a GCC
13302 builtin and then its argument prototype would still apply. */
13303 #ifdef __cplusplus
13304 extern "C"
13305 #endif
13306 char _mwvalidcheckl ();
13308 main ()
13310 return _mwvalidcheckl ();
13312 return 0;
13314 _ACEOF
13315 if ac_fn_c_try_link "$LINENO"; then :
13316 ac_cv_lib_mw__mwvalidcheckl=yes
13317 else
13318 ac_cv_lib_mw__mwvalidcheckl=no
13320 rm -f core conftest.err conftest.$ac_objext \
13321 conftest$ac_exeext conftest.$ac_ext
13322 LIBS=$ac_check_lib_save_LIBS
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13325 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13326 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
13327 LIBM="-lmw"
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13331 $as_echo_n "checking for cos in -lm... " >&6; }
13332 if test "${ac_cv_lib_m_cos+set}" = set; then :
13333 $as_echo_n "(cached) " >&6
13334 else
13335 ac_check_lib_save_LIBS=$LIBS
13336 LIBS="-lm $LIBS"
13337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338 /* end confdefs.h. */
13340 /* Override any GCC internal prototype to avoid an error.
13341 Use char because int might match the return type of a GCC
13342 builtin and then its argument prototype would still apply. */
13343 #ifdef __cplusplus
13344 extern "C"
13345 #endif
13346 char cos ();
13348 main ()
13350 return cos ();
13352 return 0;
13354 _ACEOF
13355 if ac_fn_c_try_link "$LINENO"; then :
13356 ac_cv_lib_m_cos=yes
13357 else
13358 ac_cv_lib_m_cos=no
13360 rm -f core conftest.err conftest.$ac_objext \
13361 conftest$ac_exeext conftest.$ac_ext
13362 LIBS=$ac_check_lib_save_LIBS
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13365 $as_echo "$ac_cv_lib_m_cos" >&6; }
13366 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13367 LIBM="$LIBM -lm"
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13373 $as_echo_n "checking for cos in -lm... " >&6; }
13374 if test "${ac_cv_lib_m_cos+set}" = set; then :
13375 $as_echo_n "(cached) " >&6
13376 else
13377 ac_check_lib_save_LIBS=$LIBS
13378 LIBS="-lm $LIBS"
13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13380 /* end confdefs.h. */
13382 /* Override any GCC internal prototype to avoid an error.
13383 Use char because int might match the return type of a GCC
13384 builtin and then its argument prototype would still apply. */
13385 #ifdef __cplusplus
13386 extern "C"
13387 #endif
13388 char cos ();
13390 main ()
13392 return cos ();
13394 return 0;
13396 _ACEOF
13397 if ac_fn_c_try_link "$LINENO"; then :
13398 ac_cv_lib_m_cos=yes
13399 else
13400 ac_cv_lib_m_cos=no
13402 rm -f core conftest.err conftest.$ac_objext \
13403 conftest$ac_exeext conftest.$ac_ext
13404 LIBS=$ac_check_lib_save_LIBS
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13407 $as_echo "$ac_cv_lib_m_cos" >&6; }
13408 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13409 LIBM="-lm"
13413 esac
13418 esac
13420 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
13421 # enough, but on some of those systems, the assert macro relies on requoting
13422 # working properly!
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
13424 $as_echo_n "checking for working assert macro... " >&6; }
13425 if test "${gas_cv_assert_ok+set}" = set; then :
13426 $as_echo_n "(cached) " >&6
13427 else
13428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13429 /* end confdefs.h. */
13430 #include <assert.h>
13431 #include <stdio.h>
13433 main ()
13436 /* check for requoting problems */
13437 static int a, b, c, d;
13438 static char *s;
13439 assert (!strcmp(s, "foo bar baz quux"));
13440 /* check for newline handling */
13441 assert (a == b
13442 || c == d);
13445 return 0;
13447 _ACEOF
13448 if ac_fn_c_try_link "$LINENO"; then :
13449 gas_cv_assert_ok=yes
13450 else
13451 gas_cv_assert_ok=no
13453 rm -f core conftest.err conftest.$ac_objext \
13454 conftest$ac_exeext conftest.$ac_ext
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
13457 $as_echo "$gas_cv_assert_ok" >&6; }
13458 test $gas_cv_assert_ok = yes ||
13459 $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
13463 # On some systems, the system header files may not declare malloc, realloc,
13464 # and free. There are places where gas needs these functions to have been
13465 # declared -- such as when taking their addresses.
13466 gas_test_headers="
13467 #ifdef HAVE_MEMORY_H
13468 #include <memory.h>
13469 #endif
13470 #ifdef HAVE_STRING_H
13471 #include <string.h>
13472 #else
13473 #ifdef HAVE_STRINGS_H
13474 #include <strings.h>
13475 #endif
13476 #endif
13477 #ifdef HAVE_STDLIB_H
13478 #include <stdlib.h>
13479 #endif
13480 #ifdef HAVE_UNISTD_H
13481 #include <unistd.h>
13482 #endif
13485 # Does errno.h declare errno, or do we have to add a separate declaration
13486 # for it?
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
13489 $as_echo_n "checking whether declaration is required for errno... " >&6; }
13490 if test "${gas_cv_decl_needed_errno+set}" = set; then :
13491 $as_echo_n "(cached) " >&6
13492 else
13493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h. */
13496 #ifdef HAVE_ERRNO_H
13497 #include <errno.h>
13498 #endif
13501 main ()
13504 typedef int f;
13505 f x;
13506 x = (f) errno;
13509 return 0;
13511 _ACEOF
13512 if ac_fn_c_try_link "$LINENO"; then :
13513 gas_cv_decl_needed_errno=no
13514 else
13515 gas_cv_decl_needed_errno=yes
13517 rm -f core conftest.err conftest.$ac_objext \
13518 conftest$ac_exeext conftest.$ac_ext
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
13521 $as_echo "$gas_cv_decl_needed_errno" >&6; }
13522 if test $gas_cv_decl_needed_errno = yes; then
13524 $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13530 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13531 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then :
13532 $as_echo_n "(cached) " >&6
13533 else
13534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13535 /* end confdefs.h. */
13536 #include <unistd.h>
13538 main ()
13540 extern int getopt (int, char *const*, const char *);
13542 return 0;
13544 _ACEOF
13545 if ac_fn_c_try_compile "$LINENO"; then :
13546 gas_cv_decl_getopt_unistd_h=yes
13547 else
13548 gas_cv_decl_getopt_unistd_h=no
13550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
13554 $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
13555 if test $gas_cv_decl_getopt_unistd_h = yes; then
13557 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
13563 $as_echo_n "checking whether declaration is required for environ... " >&6; }
13564 if test "${gas_cv_decl_needed_environ+set}" = set; then :
13565 $as_echo_n "(cached) " >&6
13566 else
13567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13568 /* end confdefs.h. */
13569 $gas_test_headers
13571 main ()
13574 typedef char **f;
13575 f x;
13576 x = (f) environ;
13579 return 0;
13581 _ACEOF
13582 if ac_fn_c_try_link "$LINENO"; then :
13583 gas_cv_decl_needed_environ=no
13584 else
13585 gas_cv_decl_needed_environ=yes
13587 rm -f core conftest.err conftest.$ac_objext \
13588 conftest$ac_exeext conftest.$ac_ext
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
13591 $as_echo "$gas_cv_decl_needed_environ" >&6; }
13592 if test $gas_cv_decl_needed_environ = yes; then
13594 $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
13600 $as_echo_n "checking whether declaration is required for ffs... " >&6; }
13601 if test "${gas_cv_decl_needed_ffs+set}" = set; then :
13602 $as_echo_n "(cached) " >&6
13603 else
13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13606 $gas_test_headers
13608 main ()
13611 typedef int (*f)(int);
13612 f x;
13613 x = (f) ffs;
13616 return 0;
13618 _ACEOF
13619 if ac_fn_c_try_link "$LINENO"; then :
13620 gas_cv_decl_needed_ffs=no
13621 else
13622 gas_cv_decl_needed_ffs=yes
13624 rm -f core conftest.err conftest.$ac_objext \
13625 conftest$ac_exeext conftest.$ac_ext
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
13628 $as_echo "$gas_cv_decl_needed_ffs" >&6; }
13629 if test $gas_cv_decl_needed_ffs = yes; then
13631 $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
13637 $as_echo_n "checking whether declaration is required for free... " >&6; }
13638 if test "${gas_cv_decl_needed_free+set}" = set; then :
13639 $as_echo_n "(cached) " >&6
13640 else
13641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13642 /* end confdefs.h. */
13643 $gas_test_headers
13645 main ()
13648 typedef void (*f)();
13649 f x;
13650 x = (f) free;
13653 return 0;
13655 _ACEOF
13656 if ac_fn_c_try_link "$LINENO"; then :
13657 gas_cv_decl_needed_free=no
13658 else
13659 gas_cv_decl_needed_free=yes
13661 rm -f core conftest.err conftest.$ac_objext \
13662 conftest$ac_exeext conftest.$ac_ext
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
13665 $as_echo "$gas_cv_decl_needed_free" >&6; }
13666 if test $gas_cv_decl_needed_free = yes; then
13668 $as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
13674 $as_echo_n "checking whether declaration is required for malloc... " >&6; }
13675 if test "${gas_cv_decl_needed_malloc+set}" = set; then :
13676 $as_echo_n "(cached) " >&6
13677 else
13678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13679 /* end confdefs.h. */
13680 $gas_test_headers
13682 main ()
13685 typedef char *(*f)();
13686 f x;
13687 x = (f) malloc;
13690 return 0;
13692 _ACEOF
13693 if ac_fn_c_try_link "$LINENO"; then :
13694 gas_cv_decl_needed_malloc=no
13695 else
13696 gas_cv_decl_needed_malloc=yes
13698 rm -f core conftest.err conftest.$ac_objext \
13699 conftest$ac_exeext conftest.$ac_ext
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
13702 $as_echo "$gas_cv_decl_needed_malloc" >&6; }
13703 if test $gas_cv_decl_needed_malloc = yes; then
13705 $as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
13711 $as_echo_n "checking whether declaration is required for sbrk... " >&6; }
13712 if test "${gas_cv_decl_needed_sbrk+set}" = set; then :
13713 $as_echo_n "(cached) " >&6
13714 else
13715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13716 /* end confdefs.h. */
13717 $gas_test_headers
13719 main ()
13722 typedef char *(*f)();
13723 f x;
13724 x = (f) sbrk;
13727 return 0;
13729 _ACEOF
13730 if ac_fn_c_try_link "$LINENO"; then :
13731 gas_cv_decl_needed_sbrk=no
13732 else
13733 gas_cv_decl_needed_sbrk=yes
13735 rm -f core conftest.err conftest.$ac_objext \
13736 conftest$ac_exeext conftest.$ac_ext
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
13739 $as_echo "$gas_cv_decl_needed_sbrk" >&6; }
13740 if test $gas_cv_decl_needed_sbrk = yes; then
13742 $as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
13748 $as_echo_n "checking whether declaration is required for strstr... " >&6; }
13749 if test "${gas_cv_decl_needed_strstr+set}" = set; then :
13750 $as_echo_n "(cached) " >&6
13751 else
13752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13753 /* end confdefs.h. */
13754 $gas_test_headers
13756 main ()
13759 typedef char *(*f)();
13760 f x;
13761 x = (f) strstr;
13764 return 0;
13766 _ACEOF
13767 if ac_fn_c_try_link "$LINENO"; then :
13768 gas_cv_decl_needed_strstr=no
13769 else
13770 gas_cv_decl_needed_strstr=yes
13772 rm -f core conftest.err conftest.$ac_objext \
13773 conftest$ac_exeext conftest.$ac_ext
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
13776 $as_echo "$gas_cv_decl_needed_strstr" >&6; }
13777 if test $gas_cv_decl_needed_strstr = yes; then
13779 $as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
13784 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13785 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
13786 ac_have_decl=1
13787 else
13788 ac_have_decl=0
13791 cat >>confdefs.h <<_ACEOF
13792 #define HAVE_DECL_VSNPRINTF $ac_have_decl
13793 _ACEOF
13797 case "${host}" in
13798 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13800 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13802 esac
13804 # Support for VMS timestamps via cross compile
13806 if test "$ac_cv_header_time_h" = yes; then
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
13808 $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
13809 if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then :
13810 $as_echo_n "(cached) " >&6
13811 else
13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h. */
13815 #define _BSD_SOURCE 1
13816 #include <time.h>
13818 main ()
13820 struct tm avar; void* aref = (void*) &avar.tm_gmtoff
13822 return 0;
13824 _ACEOF
13825 if ac_fn_c_try_compile "$LINENO"; then :
13826 gas_cv_have_time_type_member_tm_gmtoff=yes
13827 else
13828 gas_cv_have_time_type_member_tm_gmtoff=no
13831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13834 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
13836 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
13840 $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
13844 if test "$ac_cv_header_sys_stat_h" = yes; then
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
13846 $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
13847 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then :
13848 $as_echo_n "(cached) " >&6
13849 else
13850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13851 /* end confdefs.h. */
13853 #define _BSD_SOURCE 1
13854 #include <sys/stat.h>
13856 main ()
13858 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
13860 return 0;
13862 _ACEOF
13863 if ac_fn_c_try_compile "$LINENO"; then :
13864 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
13865 else
13866 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
13869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13872 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
13874 $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
13878 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
13881 $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
13882 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then :
13883 $as_echo_n "(cached) " >&6
13884 else
13885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13886 /* end confdefs.h. */
13888 #define _BSD_SOURCE 1
13889 #include <sys/stat.h>
13891 main ()
13893 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
13895 return 0;
13897 _ACEOF
13898 if ac_fn_c_try_compile "$LINENO"; then :
13899 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
13900 else
13901 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
13904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13907 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
13909 $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
13913 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
13925 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13927 ac_config_commands="$ac_config_commands default"
13930 cat >confcache <<\_ACEOF
13931 # This file is a shell script that caches the results of configure
13932 # tests run on this system so they can be shared between configure
13933 # scripts and configure runs, see configure's option --config-cache.
13934 # It is not useful on other systems. If it contains results you don't
13935 # want to keep, you may remove or edit it.
13937 # config.status only pays attention to the cache file if you give it
13938 # the --recheck option to rerun configure.
13940 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13941 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13942 # following values.
13944 _ACEOF
13946 # The following way of writing the cache mishandles newlines in values,
13947 # but we know of no workaround that is simple, portable, and efficient.
13948 # So, we kill variables containing newlines.
13949 # Ultrix sh set writes to stderr and can't be redirected directly,
13950 # and sets the high bit in the cache file unless we assign to the vars.
13952 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13953 eval ac_val=\$$ac_var
13954 case $ac_val in #(
13955 *${as_nl}*)
13956 case $ac_var in #(
13957 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13958 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13959 esac
13960 case $ac_var in #(
13961 _ | IFS | as_nl) ;; #(
13962 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13963 *) { eval $ac_var=; unset $ac_var;} ;;
13964 esac ;;
13965 esac
13966 done
13968 (set) 2>&1 |
13969 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13970 *${as_nl}ac_space=\ *)
13971 # `set' does not quote correctly, so add quotes: double-quote
13972 # substitution turns \\\\ into \\, and sed turns \\ into \.
13973 sed -n \
13974 "s/'/'\\\\''/g;
13975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13976 ;; #(
13978 # `set' quotes correctly as required by POSIX, so do not add quotes.
13979 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13981 esac |
13982 sort
13984 sed '
13985 /^ac_cv_env_/b end
13986 t clear
13987 :clear
13988 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13989 t end
13990 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13991 :end' >>confcache
13992 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13993 if test -w "$cache_file"; then
13994 test "x$cache_file" != "x/dev/null" &&
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13996 $as_echo "$as_me: updating cache $cache_file" >&6;}
13997 cat confcache >$cache_file
13998 else
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14000 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14003 rm -f confcache
14005 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14006 # Let make expand exec_prefix.
14007 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14009 DEFS=-DHAVE_CONFIG_H
14011 ac_libobjs=
14012 ac_ltlibobjs=
14013 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14014 # 1. Remove the extension, and $U if already installed.
14015 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14016 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14017 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14018 # will be set to the directory where LIBOBJS objects are built.
14019 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14020 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14021 done
14022 LIBOBJS=$ac_libobjs
14024 LTLIBOBJS=$ac_ltlibobjs
14027 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14028 as_fn_error "conditional \"AMDEP\" was never defined.
14029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14031 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14032 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14035 if test -n "$EXEEXT"; then
14036 am__EXEEXT_TRUE=
14037 am__EXEEXT_FALSE='#'
14038 else
14039 am__EXEEXT_TRUE='#'
14040 am__EXEEXT_FALSE=
14044 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14045 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14048 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14049 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14053 : ${CONFIG_STATUS=./config.status}
14054 ac_write_fail=0
14055 ac_clean_files_save=$ac_clean_files
14056 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14058 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14059 as_write_fail=0
14060 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14061 #! $SHELL
14062 # Generated by $as_me.
14063 # Run this file to recreate the current configuration.
14064 # Compiler output produced by configure, useful for debugging
14065 # configure, is in config.log if it exists.
14067 debug=false
14068 ac_cs_recheck=false
14069 ac_cs_silent=false
14071 SHELL=\${CONFIG_SHELL-$SHELL}
14072 export SHELL
14073 _ASEOF
14074 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14075 ## -------------------- ##
14076 ## M4sh Initialization. ##
14077 ## -------------------- ##
14079 # Be more Bourne compatible
14080 DUALCASE=1; export DUALCASE # for MKS sh
14081 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14082 emulate sh
14083 NULLCMD=:
14084 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14085 # is contrary to our usage. Disable this feature.
14086 alias -g '${1+"$@"}'='"$@"'
14087 setopt NO_GLOB_SUBST
14088 else
14089 case `(set -o) 2>/dev/null` in #(
14090 *posix*) :
14091 set -o posix ;; #(
14092 *) :
14094 esac
14098 as_nl='
14100 export as_nl
14101 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14102 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14103 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14104 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14105 # Prefer a ksh shell builtin over an external printf program on Solaris,
14106 # but without wasting forks for bash or zsh.
14107 if test -z "$BASH_VERSION$ZSH_VERSION" \
14108 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14109 as_echo='print -r --'
14110 as_echo_n='print -rn --'
14111 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14112 as_echo='printf %s\n'
14113 as_echo_n='printf %s'
14114 else
14115 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14116 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14117 as_echo_n='/usr/ucb/echo -n'
14118 else
14119 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14120 as_echo_n_body='eval
14121 arg=$1;
14122 case $arg in #(
14123 *"$as_nl"*)
14124 expr "X$arg" : "X\\(.*\\)$as_nl";
14125 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14126 esac;
14127 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14129 export as_echo_n_body
14130 as_echo_n='sh -c $as_echo_n_body as_echo'
14132 export as_echo_body
14133 as_echo='sh -c $as_echo_body as_echo'
14136 # The user is always right.
14137 if test "${PATH_SEPARATOR+set}" != set; then
14138 PATH_SEPARATOR=:
14139 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14140 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14141 PATH_SEPARATOR=';'
14146 # IFS
14147 # We need space, tab and new line, in precisely that order. Quoting is
14148 # there to prevent editors from complaining about space-tab.
14149 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14150 # splitting by setting IFS to empty value.)
14151 IFS=" "" $as_nl"
14153 # Find who we are. Look in the path if we contain no directory separator.
14154 case $0 in #((
14155 *[\\/]* ) as_myself=$0 ;;
14156 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14157 for as_dir in $PATH
14159 IFS=$as_save_IFS
14160 test -z "$as_dir" && as_dir=.
14161 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14162 done
14163 IFS=$as_save_IFS
14166 esac
14167 # We did not find ourselves, most probably we were run as `sh COMMAND'
14168 # in which case we are not to be found in the path.
14169 if test "x$as_myself" = x; then
14170 as_myself=$0
14172 if test ! -f "$as_myself"; then
14173 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14174 exit 1
14177 # Unset variables that we do not need and which cause bugs (e.g. in
14178 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14179 # suppresses any "Segmentation fault" message there. '((' could
14180 # trigger a bug in pdksh 5.2.14.
14181 for as_var in BASH_ENV ENV MAIL MAILPATH
14182 do eval test x\${$as_var+set} = xset \
14183 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14184 done
14185 PS1='$ '
14186 PS2='> '
14187 PS4='+ '
14189 # NLS nuisances.
14190 LC_ALL=C
14191 export LC_ALL
14192 LANGUAGE=C
14193 export LANGUAGE
14195 # CDPATH.
14196 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14199 # as_fn_error ERROR [LINENO LOG_FD]
14200 # ---------------------------------
14201 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14202 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14203 # script with status $?, using 1 if that was 0.
14204 as_fn_error ()
14206 as_status=$?; test $as_status -eq 0 && as_status=1
14207 if test "$3"; then
14208 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14209 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14211 $as_echo "$as_me: error: $1" >&2
14212 as_fn_exit $as_status
14213 } # as_fn_error
14216 # as_fn_set_status STATUS
14217 # -----------------------
14218 # Set $? to STATUS, without forking.
14219 as_fn_set_status ()
14221 return $1
14222 } # as_fn_set_status
14224 # as_fn_exit STATUS
14225 # -----------------
14226 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14227 as_fn_exit ()
14229 set +e
14230 as_fn_set_status $1
14231 exit $1
14232 } # as_fn_exit
14234 # as_fn_unset VAR
14235 # ---------------
14236 # Portably unset VAR.
14237 as_fn_unset ()
14239 { eval $1=; unset $1;}
14241 as_unset=as_fn_unset
14242 # as_fn_append VAR VALUE
14243 # ----------------------
14244 # Append the text in VALUE to the end of the definition contained in VAR. Take
14245 # advantage of any shell optimizations that allow amortized linear growth over
14246 # repeated appends, instead of the typical quadratic growth present in naive
14247 # implementations.
14248 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14249 eval 'as_fn_append ()
14251 eval $1+=\$2
14253 else
14254 as_fn_append ()
14256 eval $1=\$$1\$2
14258 fi # as_fn_append
14260 # as_fn_arith ARG...
14261 # ------------------
14262 # Perform arithmetic evaluation on the ARGs, and store the result in the
14263 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14264 # must be portable across $(()) and expr.
14265 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14266 eval 'as_fn_arith ()
14268 as_val=$(( $* ))
14270 else
14271 as_fn_arith ()
14273 as_val=`expr "$@" || test $? -eq 1`
14275 fi # as_fn_arith
14278 if expr a : '\(a\)' >/dev/null 2>&1 &&
14279 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14280 as_expr=expr
14281 else
14282 as_expr=false
14285 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14286 as_basename=basename
14287 else
14288 as_basename=false
14291 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14292 as_dirname=dirname
14293 else
14294 as_dirname=false
14297 as_me=`$as_basename -- "$0" ||
14298 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14299 X"$0" : 'X\(//\)$' \| \
14300 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14301 $as_echo X/"$0" |
14302 sed '/^.*\/\([^/][^/]*\)\/*$/{
14303 s//\1/
14306 /^X\/\(\/\/\)$/{
14307 s//\1/
14310 /^X\/\(\/\).*/{
14311 s//\1/
14314 s/.*/./; q'`
14316 # Avoid depending upon Character Ranges.
14317 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14318 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14319 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14320 as_cr_digits='0123456789'
14321 as_cr_alnum=$as_cr_Letters$as_cr_digits
14323 ECHO_C= ECHO_N= ECHO_T=
14324 case `echo -n x` in #(((((
14325 -n*)
14326 case `echo 'xy\c'` in
14327 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14328 xy) ECHO_C='\c';;
14329 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14330 ECHO_T=' ';;
14331 esac;;
14333 ECHO_N='-n';;
14334 esac
14336 rm -f conf$$ conf$$.exe conf$$.file
14337 if test -d conf$$.dir; then
14338 rm -f conf$$.dir/conf$$.file
14339 else
14340 rm -f conf$$.dir
14341 mkdir conf$$.dir 2>/dev/null
14343 if (echo >conf$$.file) 2>/dev/null; then
14344 if ln -s conf$$.file conf$$ 2>/dev/null; then
14345 as_ln_s='ln -s'
14346 # ... but there are two gotchas:
14347 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14348 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14349 # In both cases, we have to default to `cp -p'.
14350 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14351 as_ln_s='cp -p'
14352 elif ln conf$$.file conf$$ 2>/dev/null; then
14353 as_ln_s=ln
14354 else
14355 as_ln_s='cp -p'
14357 else
14358 as_ln_s='cp -p'
14360 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14361 rmdir conf$$.dir 2>/dev/null
14364 # as_fn_mkdir_p
14365 # -------------
14366 # Create "$as_dir" as a directory, including parents if necessary.
14367 as_fn_mkdir_p ()
14370 case $as_dir in #(
14371 -*) as_dir=./$as_dir;;
14372 esac
14373 test -d "$as_dir" || eval $as_mkdir_p || {
14374 as_dirs=
14375 while :; do
14376 case $as_dir in #(
14377 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14378 *) as_qdir=$as_dir;;
14379 esac
14380 as_dirs="'$as_qdir' $as_dirs"
14381 as_dir=`$as_dirname -- "$as_dir" ||
14382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14383 X"$as_dir" : 'X\(//\)[^/]' \| \
14384 X"$as_dir" : 'X\(//\)$' \| \
14385 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14386 $as_echo X"$as_dir" |
14387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14388 s//\1/
14391 /^X\(\/\/\)[^/].*/{
14392 s//\1/
14395 /^X\(\/\/\)$/{
14396 s//\1/
14399 /^X\(\/\).*/{
14400 s//\1/
14403 s/.*/./; q'`
14404 test -d "$as_dir" && break
14405 done
14406 test -z "$as_dirs" || eval "mkdir $as_dirs"
14407 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14410 } # as_fn_mkdir_p
14411 if mkdir -p . 2>/dev/null; then
14412 as_mkdir_p='mkdir -p "$as_dir"'
14413 else
14414 test -d ./-p && rmdir ./-p
14415 as_mkdir_p=false
14418 if test -x / >/dev/null 2>&1; then
14419 as_test_x='test -x'
14420 else
14421 if ls -dL / >/dev/null 2>&1; then
14422 as_ls_L_option=L
14423 else
14424 as_ls_L_option=
14426 as_test_x='
14427 eval sh -c '\''
14428 if test -d "$1"; then
14429 test -d "$1/.";
14430 else
14431 case $1 in #(
14432 -*)set "./$1";;
14433 esac;
14434 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14435 ???[sx]*):;;*)false;;esac;fi
14436 '\'' sh
14439 as_executable_p=$as_test_x
14441 # Sed expression to map a string onto a valid CPP name.
14442 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14444 # Sed expression to map a string onto a valid variable name.
14445 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14448 exec 6>&1
14449 ## ----------------------------------- ##
14450 ## Main body of $CONFIG_STATUS script. ##
14451 ## ----------------------------------- ##
14452 _ASEOF
14453 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14456 # Save the log message, to keep $0 and so on meaningful, and to
14457 # report actual input values of CONFIG_FILES etc. instead of their
14458 # values after options handling.
14459 ac_log="
14460 This file was extended by $as_me, which was
14461 generated by GNU Autoconf 2.64. Invocation command line was
14463 CONFIG_FILES = $CONFIG_FILES
14464 CONFIG_HEADERS = $CONFIG_HEADERS
14465 CONFIG_LINKS = $CONFIG_LINKS
14466 CONFIG_COMMANDS = $CONFIG_COMMANDS
14467 $ $0 $@
14469 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14472 _ACEOF
14474 case $ac_config_files in *"
14475 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14476 esac
14478 case $ac_config_headers in *"
14479 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14480 esac
14483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14484 # Files that config.status was made for.
14485 config_files="$ac_config_files"
14486 config_headers="$ac_config_headers"
14487 config_commands="$ac_config_commands"
14489 _ACEOF
14491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14492 ac_cs_usage="\
14493 \`$as_me' instantiates files and other configuration actions
14494 from templates according to the current configuration. Unless the files
14495 and actions are specified as TAGs, all are instantiated by default.
14497 Usage: $0 [OPTION]... [TAG]...
14499 -h, --help print this help, then exit
14500 -V, --version print version number and configuration settings, then exit
14501 -q, --quiet, --silent
14502 do not print progress messages
14503 -d, --debug don't remove temporary files
14504 --recheck update $as_me by reconfiguring in the same conditions
14505 --file=FILE[:TEMPLATE]
14506 instantiate the configuration file FILE
14507 --header=FILE[:TEMPLATE]
14508 instantiate the configuration header FILE
14510 Configuration files:
14511 $config_files
14513 Configuration headers:
14514 $config_headers
14516 Configuration commands:
14517 $config_commands
14519 Report bugs to the package provider."
14521 _ACEOF
14522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14523 ac_cs_version="\\
14524 config.status
14525 configured by $0, generated by GNU Autoconf 2.64,
14526 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14528 Copyright (C) 2009 Free Software Foundation, Inc.
14529 This config.status script is free software; the Free Software Foundation
14530 gives unlimited permission to copy, distribute and modify it."
14532 ac_pwd='$ac_pwd'
14533 srcdir='$srcdir'
14534 INSTALL='$INSTALL'
14535 MKDIR_P='$MKDIR_P'
14536 AWK='$AWK'
14537 test -n "\$AWK" || AWK=awk
14538 _ACEOF
14540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14541 # The default lists apply if the user does not specify any file.
14542 ac_need_defaults=:
14543 while test $# != 0
14545 case $1 in
14546 --*=*)
14547 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14548 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14549 ac_shift=:
14552 ac_option=$1
14553 ac_optarg=$2
14554 ac_shift=shift
14556 esac
14558 case $ac_option in
14559 # Handling of the options.
14560 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14561 ac_cs_recheck=: ;;
14562 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14563 $as_echo "$ac_cs_version"; exit ;;
14564 --debug | --debu | --deb | --de | --d | -d )
14565 debug=: ;;
14566 --file | --fil | --fi | --f )
14567 $ac_shift
14568 case $ac_optarg in
14569 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14570 esac
14571 as_fn_append CONFIG_FILES " '$ac_optarg'"
14572 ac_need_defaults=false;;
14573 --header | --heade | --head | --hea )
14574 $ac_shift
14575 case $ac_optarg in
14576 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14577 esac
14578 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14579 ac_need_defaults=false;;
14580 --he | --h)
14581 # Conflict between --help and --header
14582 as_fn_error "ambiguous option: \`$1'
14583 Try \`$0 --help' for more information.";;
14584 --help | --hel | -h )
14585 $as_echo "$ac_cs_usage"; exit ;;
14586 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14587 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14588 ac_cs_silent=: ;;
14590 # This is an error.
14591 -*) as_fn_error "unrecognized option: \`$1'
14592 Try \`$0 --help' for more information." ;;
14594 *) as_fn_append ac_config_targets " $1"
14595 ac_need_defaults=false ;;
14597 esac
14598 shift
14599 done
14601 ac_configure_extra_args=
14603 if $ac_cs_silent; then
14604 exec 6>/dev/null
14605 ac_configure_extra_args="$ac_configure_extra_args --silent"
14608 _ACEOF
14609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14610 if \$ac_cs_recheck; then
14611 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14612 shift
14613 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14614 CONFIG_SHELL='$SHELL'
14615 export CONFIG_SHELL
14616 exec "\$@"
14619 _ACEOF
14620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14621 exec 5>>config.log
14623 echo
14624 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14625 ## Running $as_me. ##
14626 _ASBOX
14627 $as_echo "$ac_log"
14628 } >&5
14630 _ACEOF
14631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14633 # INIT-COMMANDS
14635 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14638 # The HP-UX ksh and POSIX shell print the target directory to stdout
14639 # if CDPATH is set.
14640 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14642 sed_quote_subst='$sed_quote_subst'
14643 double_quote_subst='$double_quote_subst'
14644 delay_variable_subst='$delay_variable_subst'
14645 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14646 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14647 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14648 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14649 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14650 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14651 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14652 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14653 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14654 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14655 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14656 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14657 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14658 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14659 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14660 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14661 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14662 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14663 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14664 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14665 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14666 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14667 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14668 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14669 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14670 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14671 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14672 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14673 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14674 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14675 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14676 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14677 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14678 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14679 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14680 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14681 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14682 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14683 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14684 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14685 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14686 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14687 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14688 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14689 lt_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"`'
14690 lt_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"`'
14691 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14692 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14693 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14694 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14695 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14696 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14697 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14698 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14699 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14700 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14701 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14702 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14703 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14704 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14705 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14706 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14707 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14708 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14709 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14710 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14711 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14712 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14713 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14714 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14715 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14716 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14717 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14718 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14719 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14720 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14721 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14722 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14723 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14724 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14725 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14726 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14727 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14728 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14729 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14730 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14731 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14732 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14733 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14734 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14735 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14736 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14737 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14738 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14739 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14740 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14741 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14742 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14743 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14744 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14745 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14746 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14747 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14748 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14749 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14750 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14751 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14752 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14753 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14754 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14755 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14756 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14757 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14758 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14759 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14760 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14761 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14762 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14764 LTCC='$LTCC'
14765 LTCFLAGS='$LTCFLAGS'
14766 compiler='$compiler_DEFAULT'
14768 # Quote evaled strings.
14769 for var in SED \
14770 GREP \
14771 EGREP \
14772 FGREP \
14773 LD \
14774 NM \
14775 LN_S \
14776 lt_SP2NL \
14777 lt_NL2SP \
14778 reload_flag \
14779 OBJDUMP \
14780 deplibs_check_method \
14781 file_magic_cmd \
14782 AR \
14783 AR_FLAGS \
14784 STRIP \
14785 RANLIB \
14786 CC \
14787 CFLAGS \
14788 compiler \
14789 lt_cv_sys_global_symbol_pipe \
14790 lt_cv_sys_global_symbol_to_cdecl \
14791 lt_cv_sys_global_symbol_to_c_name_address \
14792 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14793 SHELL \
14794 ECHO \
14795 lt_prog_compiler_no_builtin_flag \
14796 lt_prog_compiler_wl \
14797 lt_prog_compiler_pic \
14798 lt_prog_compiler_static \
14799 lt_cv_prog_compiler_c_o \
14800 need_locks \
14801 DSYMUTIL \
14802 NMEDIT \
14803 LIPO \
14804 OTOOL \
14805 OTOOL64 \
14806 shrext_cmds \
14807 export_dynamic_flag_spec \
14808 whole_archive_flag_spec \
14809 compiler_needs_object \
14810 with_gnu_ld \
14811 allow_undefined_flag \
14812 no_undefined_flag \
14813 hardcode_libdir_flag_spec \
14814 hardcode_libdir_flag_spec_ld \
14815 hardcode_libdir_separator \
14816 fix_srcfile_path \
14817 exclude_expsyms \
14818 include_expsyms \
14819 file_list_spec \
14820 variables_saved_for_relink \
14821 libname_spec \
14822 library_names_spec \
14823 soname_spec \
14824 finish_eval \
14825 old_striplib \
14826 striplib; do
14827 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14828 *[\\\\\\\`\\"\\\$]*)
14829 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14832 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14834 esac
14835 done
14837 # Double-quote double-evaled strings.
14838 for var in reload_cmds \
14839 old_postinstall_cmds \
14840 old_postuninstall_cmds \
14841 old_archive_cmds \
14842 extract_expsyms_cmds \
14843 old_archive_from_new_cmds \
14844 old_archive_from_expsyms_cmds \
14845 archive_cmds \
14846 archive_expsym_cmds \
14847 module_cmds \
14848 module_expsym_cmds \
14849 export_symbols_cmds \
14850 prelink_cmds \
14851 postinstall_cmds \
14852 postuninstall_cmds \
14853 finish_cmds \
14854 sys_lib_search_path_spec \
14855 sys_lib_dlsearch_path_spec; do
14856 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14857 *[\\\\\\\`\\"\\\$]*)
14858 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14861 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14863 esac
14864 done
14866 # Fix-up fallback echo if it was mangled by the above quoting rules.
14867 case \$lt_ECHO in
14868 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14870 esac
14872 ac_aux_dir='$ac_aux_dir'
14873 xsi_shell='$xsi_shell'
14874 lt_shell_append='$lt_shell_append'
14876 # See if we are running on zsh, and set the options which allow our
14877 # commands through without removal of \ escapes INIT.
14878 if test -n "\${ZSH_VERSION+set}" ; then
14879 setopt NO_GLOB_SUBST
14883 PACKAGE='$PACKAGE'
14884 VERSION='$VERSION'
14885 TIMESTAMP='$TIMESTAMP'
14886 RM='$RM'
14887 ofile='$ofile'
14891 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14892 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14893 # from automake.
14894 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14895 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14896 LINGUAS="${LINGUAS-%UNSET%}"
14898 target_cpu_type=${target_cpu_type}
14899 cgen_cpu_prefix=${cgen_cpu_prefix}
14900 obj_format=${obj_format}
14901 te_file=${te_file}
14903 _ACEOF
14905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14907 # Handling of arguments.
14908 for ac_config_target in $ac_config_targets
14910 case $ac_config_target in
14911 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14912 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14913 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14914 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
14915 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
14916 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14917 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14918 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14919 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14920 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14922 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14923 esac
14924 done
14927 # If the user did not use the arguments to specify the items to instantiate,
14928 # then the envvar interface is used. Set only those that are not.
14929 # We use the long form for the default assignment because of an extremely
14930 # bizarre bug on SunOS 4.1.3.
14931 if $ac_need_defaults; then
14932 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14933 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14934 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14937 # Have a temporary directory for convenience. Make it in the build tree
14938 # simply because there is no reason against having it here, and in addition,
14939 # creating and moving files from /tmp can sometimes cause problems.
14940 # Hook for its removal unless debugging.
14941 # Note that there is a small window in which the directory will not be cleaned:
14942 # after its creation but before its name has been assigned to `$tmp'.
14943 $debug ||
14945 tmp=
14946 trap 'exit_status=$?
14947 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14949 trap 'as_fn_exit 1' 1 2 13 15
14951 # Create a (secure) tmp directory for tmp files.
14954 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14955 test -n "$tmp" && test -d "$tmp"
14956 } ||
14958 tmp=./conf$$-$RANDOM
14959 (umask 077 && mkdir "$tmp")
14960 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14962 # Set up the scripts for CONFIG_FILES section.
14963 # No need to generate them if there are no CONFIG_FILES.
14964 # This happens for instance with `./config.status config.h'.
14965 if test -n "$CONFIG_FILES"; then
14968 ac_cr=`echo X | tr X '\015'`
14969 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14970 # But we know of no other shell where ac_cr would be empty at this
14971 # point, so we can use a bashism as a fallback.
14972 if test "x$ac_cr" = x; then
14973 eval ac_cr=\$\'\\r\'
14975 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14976 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14977 ac_cs_awk_cr='\r'
14978 else
14979 ac_cs_awk_cr=$ac_cr
14982 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14983 _ACEOF
14987 echo "cat >conf$$subs.awk <<_ACEOF" &&
14988 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14989 echo "_ACEOF"
14990 } >conf$$subs.sh ||
14991 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14992 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14993 ac_delim='%!_!# '
14994 for ac_last_try in false false false false false :; do
14995 . ./conf$$subs.sh ||
14996 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14998 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14999 if test $ac_delim_n = $ac_delim_num; then
15000 break
15001 elif $ac_last_try; then
15002 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15003 else
15004 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15006 done
15007 rm -f conf$$subs.sh
15009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15010 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15011 _ACEOF
15012 sed -n '
15014 s/^/S["/; s/!.*/"]=/
15017 s/^[^!]*!//
15018 :repl
15019 t repl
15020 s/'"$ac_delim"'$//
15021 t delim
15024 s/\(.\{148\}\).*/\1/
15025 t more1
15026 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15029 b repl
15030 :more1
15031 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15034 s/.\{148\}//
15035 t nl
15036 :delim
15038 s/\(.\{148\}\).*/\1/
15039 t more2
15040 s/["\\]/\\&/g; s/^/"/; s/$/"/
15043 :more2
15044 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15047 s/.\{148\}//
15048 t delim
15049 ' <conf$$subs.awk | sed '
15050 /^[^""]/{
15052 s/\n//
15054 ' >>$CONFIG_STATUS || ac_write_fail=1
15055 rm -f conf$$subs.awk
15056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15057 _ACAWK
15058 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15059 for (key in S) S_is_set[key] = 1
15060 FS = "\a"
15064 line = $ 0
15065 nfields = split(line, field, "@")
15066 substed = 0
15067 len = length(field[1])
15068 for (i = 2; i < nfields; i++) {
15069 key = field[i]
15070 keylen = length(key)
15071 if (S_is_set[key]) {
15072 value = S[key]
15073 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15074 len += length(value) + length(field[++i])
15075 substed = 1
15076 } else
15077 len += 1 + keylen
15080 print line
15083 _ACAWK
15084 _ACEOF
15085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15086 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15087 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15088 else
15090 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15091 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15092 _ACEOF
15094 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15095 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15096 # trailing colons and then remove the whole line if VPATH becomes empty
15097 # (actually we leave an empty line to preserve line numbers).
15098 if test "x$srcdir" = x.; then
15099 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15100 s/:*\$(srcdir):*/:/
15101 s/:*\${srcdir}:*/:/
15102 s/:*@srcdir@:*/:/
15103 s/^\([^=]*=[ ]*\):*/\1/
15104 s/:*$//
15105 s/^[^=]*=[ ]*$//
15109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15110 fi # test -n "$CONFIG_FILES"
15112 # Set up the scripts for CONFIG_HEADERS section.
15113 # No need to generate them if there are no CONFIG_HEADERS.
15114 # This happens for instance with `./config.status Makefile'.
15115 if test -n "$CONFIG_HEADERS"; then
15116 cat >"$tmp/defines.awk" <<\_ACAWK ||
15117 BEGIN {
15118 _ACEOF
15120 # Transform confdefs.h into an awk script `defines.awk', embedded as
15121 # here-document in config.status, that substitutes the proper values into
15122 # config.h.in to produce config.h.
15124 # Create a delimiter string that does not exist in confdefs.h, to ease
15125 # handling of long lines.
15126 ac_delim='%!_!# '
15127 for ac_last_try in false false :; do
15128 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15129 if test -z "$ac_t"; then
15130 break
15131 elif $ac_last_try; then
15132 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15133 else
15134 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15136 done
15138 # For the awk script, D is an array of macro values keyed by name,
15139 # likewise P contains macro parameters if any. Preserve backslash
15140 # newline sequences.
15142 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15143 sed -n '
15144 s/.\{148\}/&'"$ac_delim"'/g
15145 t rset
15146 :rset
15147 s/^[ ]*#[ ]*define[ ][ ]*/ /
15148 t def
15150 :def
15151 s/\\$//
15152 t bsnl
15153 s/["\\]/\\&/g
15154 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15155 D["\1"]=" \3"/p
15156 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15158 :bsnl
15159 s/["\\]/\\&/g
15160 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15161 D["\1"]=" \3\\\\\\n"\\/p
15162 t cont
15163 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15164 t cont
15166 :cont
15168 s/.\{148\}/&'"$ac_delim"'/g
15169 t clear
15170 :clear
15171 s/\\$//
15172 t bsnlc
15173 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15175 :bsnlc
15176 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15177 b cont
15178 ' <confdefs.h | sed '
15179 s/'"$ac_delim"'/"\\\
15180 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15183 for (key in D) D_is_set[key] = 1
15184 FS = "\a"
15186 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15187 line = \$ 0
15188 split(line, arg, " ")
15189 if (arg[1] == "#") {
15190 defundef = arg[2]
15191 mac1 = arg[3]
15192 } else {
15193 defundef = substr(arg[1], 2)
15194 mac1 = arg[2]
15196 split(mac1, mac2, "(") #)
15197 macro = mac2[1]
15198 prefix = substr(line, 1, index(line, defundef) - 1)
15199 if (D_is_set[macro]) {
15200 # Preserve the white space surrounding the "#".
15201 print prefix "define", macro P[macro] D[macro]
15202 next
15203 } else {
15204 # Replace #undef with comments. This is necessary, for example,
15205 # in the case of _POSIX_SOURCE, which is predefined and required
15206 # on some systems where configure will not decide to define it.
15207 if (defundef == "undef") {
15208 print "/*", prefix defundef, macro, "*/"
15209 next
15213 { print }
15214 _ACAWK
15215 _ACEOF
15216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15217 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15218 fi # test -n "$CONFIG_HEADERS"
15221 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15222 shift
15223 for ac_tag
15225 case $ac_tag in
15226 :[FHLC]) ac_mode=$ac_tag; continue;;
15227 esac
15228 case $ac_mode$ac_tag in
15229 :[FHL]*:*);;
15230 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15231 :[FH]-) ac_tag=-:-;;
15232 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15233 esac
15234 ac_save_IFS=$IFS
15235 IFS=:
15236 set x $ac_tag
15237 IFS=$ac_save_IFS
15238 shift
15239 ac_file=$1
15240 shift
15242 case $ac_mode in
15243 :L) ac_source=$1;;
15244 :[FH])
15245 ac_file_inputs=
15246 for ac_f
15248 case $ac_f in
15249 -) ac_f="$tmp/stdin";;
15250 *) # Look for the file first in the build tree, then in the source tree
15251 # (if the path is not absolute). The absolute path cannot be DOS-style,
15252 # because $ac_f cannot contain `:'.
15253 test -f "$ac_f" ||
15254 case $ac_f in
15255 [\\/$]*) false;;
15256 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15257 esac ||
15258 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15259 esac
15260 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15261 as_fn_append ac_file_inputs " '$ac_f'"
15262 done
15264 # Let's still pretend it is `configure' which instantiates (i.e., don't
15265 # use $as_me), people would be surprised to read:
15266 # /* config.h. Generated by config.status. */
15267 configure_input='Generated from '`
15268 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15269 `' by configure.'
15270 if test x"$ac_file" != x-; then
15271 configure_input="$ac_file. $configure_input"
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15273 $as_echo "$as_me: creating $ac_file" >&6;}
15275 # Neutralize special characters interpreted by sed in replacement strings.
15276 case $configure_input in #(
15277 *\&* | *\|* | *\\* )
15278 ac_sed_conf_input=`$as_echo "$configure_input" |
15279 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15280 *) ac_sed_conf_input=$configure_input;;
15281 esac
15283 case $ac_tag in
15284 *:-:* | *:-) cat >"$tmp/stdin" \
15285 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15286 esac
15288 esac
15290 ac_dir=`$as_dirname -- "$ac_file" ||
15291 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15292 X"$ac_file" : 'X\(//\)[^/]' \| \
15293 X"$ac_file" : 'X\(//\)$' \| \
15294 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15295 $as_echo X"$ac_file" |
15296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15297 s//\1/
15300 /^X\(\/\/\)[^/].*/{
15301 s//\1/
15304 /^X\(\/\/\)$/{
15305 s//\1/
15308 /^X\(\/\).*/{
15309 s//\1/
15312 s/.*/./; q'`
15313 as_dir="$ac_dir"; as_fn_mkdir_p
15314 ac_builddir=.
15316 case "$ac_dir" in
15317 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15319 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15320 # A ".." for each directory in $ac_dir_suffix.
15321 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15322 case $ac_top_builddir_sub in
15323 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15324 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15325 esac ;;
15326 esac
15327 ac_abs_top_builddir=$ac_pwd
15328 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15329 # for backward compatibility:
15330 ac_top_builddir=$ac_top_build_prefix
15332 case $srcdir in
15333 .) # We are building in place.
15334 ac_srcdir=.
15335 ac_top_srcdir=$ac_top_builddir_sub
15336 ac_abs_top_srcdir=$ac_pwd ;;
15337 [\\/]* | ?:[\\/]* ) # Absolute name.
15338 ac_srcdir=$srcdir$ac_dir_suffix;
15339 ac_top_srcdir=$srcdir
15340 ac_abs_top_srcdir=$srcdir ;;
15341 *) # Relative name.
15342 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15343 ac_top_srcdir=$ac_top_build_prefix$srcdir
15344 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15345 esac
15346 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15349 case $ac_mode in
15352 # CONFIG_FILE
15355 case $INSTALL in
15356 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15357 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15358 esac
15359 ac_MKDIR_P=$MKDIR_P
15360 case $MKDIR_P in
15361 [\\/$]* | ?:[\\/]* ) ;;
15362 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15363 esac
15364 _ACEOF
15366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15367 # If the template does not know about datarootdir, expand it.
15368 # FIXME: This hack should be removed a few years after 2.60.
15369 ac_datarootdir_hack=; ac_datarootdir_seen=
15370 ac_sed_dataroot='
15371 /datarootdir/ {
15375 /@datadir@/p
15376 /@docdir@/p
15377 /@infodir@/p
15378 /@localedir@/p
15379 /@mandir@/p'
15380 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15381 *datarootdir*) ac_datarootdir_seen=yes;;
15382 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15384 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15385 _ACEOF
15386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15387 ac_datarootdir_hack='
15388 s&@datadir@&$datadir&g
15389 s&@docdir@&$docdir&g
15390 s&@infodir@&$infodir&g
15391 s&@localedir@&$localedir&g
15392 s&@mandir@&$mandir&g
15393 s&\\\${datarootdir}&$datarootdir&g' ;;
15394 esac
15395 _ACEOF
15397 # Neutralize VPATH when `$srcdir' = `.'.
15398 # Shell code in configure.ac might set extrasub.
15399 # FIXME: do we really want to maintain this feature?
15400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15401 ac_sed_extra="$ac_vpsub
15402 $extrasub
15403 _ACEOF
15404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15407 s|@configure_input@|$ac_sed_conf_input|;t t
15408 s&@top_builddir@&$ac_top_builddir_sub&;t t
15409 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15410 s&@srcdir@&$ac_srcdir&;t t
15411 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15412 s&@top_srcdir@&$ac_top_srcdir&;t t
15413 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15414 s&@builddir@&$ac_builddir&;t t
15415 s&@abs_builddir@&$ac_abs_builddir&;t t
15416 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15417 s&@INSTALL@&$ac_INSTALL&;t t
15418 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15419 $ac_datarootdir_hack
15421 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15422 || as_fn_error "could not create $ac_file" "$LINENO" 5
15424 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15425 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15426 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15428 which seems to be undefined. Please make sure it is defined." >&5
15429 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15430 which seems to be undefined. Please make sure it is defined." >&2;}
15432 rm -f "$tmp/stdin"
15433 case $ac_file in
15434 -) cat "$tmp/out" && rm -f "$tmp/out";;
15435 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15436 esac \
15437 || as_fn_error "could not create $ac_file" "$LINENO" 5
15441 # CONFIG_HEADER
15443 if test x"$ac_file" != x-; then
15445 $as_echo "/* $configure_input */" \
15446 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15447 } >"$tmp/config.h" \
15448 || as_fn_error "could not create $ac_file" "$LINENO" 5
15449 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15451 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15452 else
15453 rm -f "$ac_file"
15454 mv "$tmp/config.h" "$ac_file" \
15455 || as_fn_error "could not create $ac_file" "$LINENO" 5
15457 else
15458 $as_echo "/* $configure_input */" \
15459 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15460 || as_fn_error "could not create -" "$LINENO" 5
15462 # Compute "$ac_file"'s index in $config_headers.
15463 _am_arg="$ac_file"
15464 _am_stamp_count=1
15465 for _am_header in $config_headers :; do
15466 case $_am_header in
15467 $_am_arg | $_am_arg:* )
15468 break ;;
15470 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15471 esac
15472 done
15473 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15474 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15475 X"$_am_arg" : 'X\(//\)[^/]' \| \
15476 X"$_am_arg" : 'X\(//\)$' \| \
15477 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15478 $as_echo X"$_am_arg" |
15479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15480 s//\1/
15483 /^X\(\/\/\)[^/].*/{
15484 s//\1/
15487 /^X\(\/\/\)$/{
15488 s//\1/
15491 /^X\(\/\).*/{
15492 s//\1/
15495 s/.*/./; q'`/stamp-h$_am_stamp_count
15498 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15499 $as_echo "$as_me: executing $ac_file commands" >&6;}
15501 esac
15504 case $ac_file$ac_mode in
15505 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15506 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15507 # are listed without --file. Let's play safe and only enable the eval
15508 # if we detect the quoting.
15509 case $CONFIG_FILES in
15510 *\'*) eval set x "$CONFIG_FILES" ;;
15511 *) set x $CONFIG_FILES ;;
15512 esac
15513 shift
15514 for mf
15516 # Strip MF so we end up with the name of the file.
15517 mf=`echo "$mf" | sed -e 's/:.*$//'`
15518 # Check whether this is an Automake generated Makefile or not.
15519 # We used to match only the files named `Makefile.in', but
15520 # some people rename them; so instead we look at the file content.
15521 # Grep'ing the first line is not enough: some people post-process
15522 # each Makefile.in and add a new line on top of each file to say so.
15523 # Grep'ing the whole file is not good either: AIX grep has a line
15524 # limit of 2048, but all sed's we know have understand at least 4000.
15525 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15526 dirpart=`$as_dirname -- "$mf" ||
15527 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15528 X"$mf" : 'X\(//\)[^/]' \| \
15529 X"$mf" : 'X\(//\)$' \| \
15530 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15531 $as_echo X"$mf" |
15532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15533 s//\1/
15536 /^X\(\/\/\)[^/].*/{
15537 s//\1/
15540 /^X\(\/\/\)$/{
15541 s//\1/
15544 /^X\(\/\).*/{
15545 s//\1/
15548 s/.*/./; q'`
15549 else
15550 continue
15552 # Extract the definition of DEPDIR, am__include, and am__quote
15553 # from the Makefile without running `make'.
15554 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15555 test -z "$DEPDIR" && continue
15556 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15557 test -z "am__include" && continue
15558 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15559 # When using ansi2knr, U may be empty or an underscore; expand it
15560 U=`sed -n 's/^U = //p' < "$mf"`
15561 # Find all dependency output files, they are included files with
15562 # $(DEPDIR) in their names. We invoke sed twice because it is the
15563 # simplest approach to changing $(DEPDIR) to its actual value in the
15564 # expansion.
15565 for file in `sed -n "
15566 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15567 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15568 # Make sure the directory exists.
15569 test -f "$dirpart/$file" && continue
15570 fdir=`$as_dirname -- "$file" ||
15571 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15572 X"$file" : 'X\(//\)[^/]' \| \
15573 X"$file" : 'X\(//\)$' \| \
15574 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15575 $as_echo X"$file" |
15576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15577 s//\1/
15580 /^X\(\/\/\)[^/].*/{
15581 s//\1/
15584 /^X\(\/\/\)$/{
15585 s//\1/
15588 /^X\(\/\).*/{
15589 s//\1/
15592 s/.*/./; q'`
15593 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15594 # echo "creating $dirpart/$file"
15595 echo '# dummy' > "$dirpart/$file"
15596 done
15597 done
15600 "libtool":C)
15602 # See if we are running on zsh, and set the options which allow our
15603 # commands through without removal of \ escapes.
15604 if test -n "${ZSH_VERSION+set}" ; then
15605 setopt NO_GLOB_SUBST
15608 cfgfile="${ofile}T"
15609 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15610 $RM "$cfgfile"
15612 cat <<_LT_EOF >> "$cfgfile"
15613 #! $SHELL
15615 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15616 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15617 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15618 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15620 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15621 # 2006, 2007, 2008 Free Software Foundation, Inc.
15622 # Written by Gordon Matzigkeit, 1996
15624 # This file is part of GNU Libtool.
15626 # GNU Libtool is free software; you can redistribute it and/or
15627 # modify it under the terms of the GNU General Public License as
15628 # published by the Free Software Foundation; either version 2 of
15629 # the License, or (at your option) any later version.
15631 # As a special exception to the GNU General Public License,
15632 # if you distribute this file as part of a program or library that
15633 # is built using GNU Libtool, you may include this file under the
15634 # same distribution terms that you use for the rest of that program.
15636 # GNU Libtool is distributed in the hope that it will be useful,
15637 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15638 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15639 # GNU General Public License for more details.
15641 # You should have received a copy of the GNU General Public License
15642 # along with GNU Libtool; see the file COPYING. If not, a copy
15643 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15644 # obtained by writing to the Free Software Foundation, Inc.,
15645 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15648 # The names of the tagged configurations supported by this script.
15649 available_tags=""
15651 # ### BEGIN LIBTOOL CONFIG
15653 # Which release of libtool.m4 was used?
15654 macro_version=$macro_version
15655 macro_revision=$macro_revision
15657 # Whether or not to build shared libraries.
15658 build_libtool_libs=$enable_shared
15660 # Whether or not to build static libraries.
15661 build_old_libs=$enable_static
15663 # What type of objects to build.
15664 pic_mode=$pic_mode
15666 # Whether or not to optimize for fast installation.
15667 fast_install=$enable_fast_install
15669 # The host system.
15670 host_alias=$host_alias
15671 host=$host
15672 host_os=$host_os
15674 # The build system.
15675 build_alias=$build_alias
15676 build=$build
15677 build_os=$build_os
15679 # A sed program that does not truncate output.
15680 SED=$lt_SED
15682 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15683 Xsed="\$SED -e 1s/^X//"
15685 # A grep program that handles long lines.
15686 GREP=$lt_GREP
15688 # An ERE matcher.
15689 EGREP=$lt_EGREP
15691 # A literal string matcher.
15692 FGREP=$lt_FGREP
15694 # A BSD- or MS-compatible name lister.
15695 NM=$lt_NM
15697 # Whether we need soft or hard links.
15698 LN_S=$lt_LN_S
15700 # What is the maximum length of a command?
15701 max_cmd_len=$max_cmd_len
15703 # Object file suffix (normally "o").
15704 objext=$ac_objext
15706 # Executable file suffix (normally "").
15707 exeext=$exeext
15709 # whether the shell understands "unset".
15710 lt_unset=$lt_unset
15712 # turn spaces into newlines.
15713 SP2NL=$lt_lt_SP2NL
15715 # turn newlines into spaces.
15716 NL2SP=$lt_lt_NL2SP
15718 # How to create reloadable object files.
15719 reload_flag=$lt_reload_flag
15720 reload_cmds=$lt_reload_cmds
15722 # An object symbol dumper.
15723 OBJDUMP=$lt_OBJDUMP
15725 # Method to check whether dependent libraries are shared objects.
15726 deplibs_check_method=$lt_deplibs_check_method
15728 # Command to use when deplibs_check_method == "file_magic".
15729 file_magic_cmd=$lt_file_magic_cmd
15731 # The archiver.
15732 AR=$lt_AR
15733 AR_FLAGS=$lt_AR_FLAGS
15735 # A symbol stripping program.
15736 STRIP=$lt_STRIP
15738 # Commands used to install an old-style archive.
15739 RANLIB=$lt_RANLIB
15740 old_postinstall_cmds=$lt_old_postinstall_cmds
15741 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15743 # A C compiler.
15744 LTCC=$lt_CC
15746 # LTCC compiler flags.
15747 LTCFLAGS=$lt_CFLAGS
15749 # Take the output of nm and produce a listing of raw symbols and C names.
15750 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15752 # Transform the output of nm in a proper C declaration.
15753 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15755 # Transform the output of nm in a C name address pair.
15756 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15758 # Transform the output of nm in a C name address pair when lib prefix is needed.
15759 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15761 # The name of the directory that contains temporary libtool files.
15762 objdir=$objdir
15764 # Shell to use when invoking shell scripts.
15765 SHELL=$lt_SHELL
15767 # An echo program that does not interpret backslashes.
15768 ECHO=$lt_ECHO
15770 # Used to examine libraries when file_magic_cmd begins with "file".
15771 MAGIC_CMD=$MAGIC_CMD
15773 # Must we lock files when doing compilation?
15774 need_locks=$lt_need_locks
15776 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15777 DSYMUTIL=$lt_DSYMUTIL
15779 # Tool to change global to local symbols on Mac OS X.
15780 NMEDIT=$lt_NMEDIT
15782 # Tool to manipulate fat objects and archives on Mac OS X.
15783 LIPO=$lt_LIPO
15785 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15786 OTOOL=$lt_OTOOL
15788 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15789 OTOOL64=$lt_OTOOL64
15791 # Old archive suffix (normally "a").
15792 libext=$libext
15794 # Shared library suffix (normally ".so").
15795 shrext_cmds=$lt_shrext_cmds
15797 # The commands to extract the exported symbol list from a shared archive.
15798 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15800 # Variables whose values should be saved in libtool wrapper scripts and
15801 # restored at link time.
15802 variables_saved_for_relink=$lt_variables_saved_for_relink
15804 # Do we need the "lib" prefix for modules?
15805 need_lib_prefix=$need_lib_prefix
15807 # Do we need a version for libraries?
15808 need_version=$need_version
15810 # Library versioning type.
15811 version_type=$version_type
15813 # Shared library runtime path variable.
15814 runpath_var=$runpath_var
15816 # Shared library path variable.
15817 shlibpath_var=$shlibpath_var
15819 # Is shlibpath searched before the hard-coded library search path?
15820 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15822 # Format of library name prefix.
15823 libname_spec=$lt_libname_spec
15825 # List of archive names. First name is the real one, the rest are links.
15826 # The last name is the one that the linker finds with -lNAME
15827 library_names_spec=$lt_library_names_spec
15829 # The coded name of the library, if different from the real name.
15830 soname_spec=$lt_soname_spec
15832 # Command to use after installation of a shared archive.
15833 postinstall_cmds=$lt_postinstall_cmds
15835 # Command to use after uninstallation of a shared archive.
15836 postuninstall_cmds=$lt_postuninstall_cmds
15838 # Commands used to finish a libtool library installation in a directory.
15839 finish_cmds=$lt_finish_cmds
15841 # As "finish_cmds", except a single script fragment to be evaled but
15842 # not shown.
15843 finish_eval=$lt_finish_eval
15845 # Whether we should hardcode library paths into libraries.
15846 hardcode_into_libs=$hardcode_into_libs
15848 # Compile-time system search path for libraries.
15849 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15851 # Run-time system search path for libraries.
15852 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15854 # Whether dlopen is supported.
15855 dlopen_support=$enable_dlopen
15857 # Whether dlopen of programs is supported.
15858 dlopen_self=$enable_dlopen_self
15860 # Whether dlopen of statically linked programs is supported.
15861 dlopen_self_static=$enable_dlopen_self_static
15863 # Commands to strip libraries.
15864 old_striplib=$lt_old_striplib
15865 striplib=$lt_striplib
15868 # The linker used to build libraries.
15869 LD=$lt_LD
15871 # Commands used to build an old-style archive.
15872 old_archive_cmds=$lt_old_archive_cmds
15874 # A language specific compiler.
15875 CC=$lt_compiler
15877 # Is the compiler the GNU compiler?
15878 with_gcc=$GCC
15880 # Compiler flag to turn off builtin functions.
15881 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15883 # How to pass a linker flag through the compiler.
15884 wl=$lt_lt_prog_compiler_wl
15886 # Additional compiler flags for building library objects.
15887 pic_flag=$lt_lt_prog_compiler_pic
15889 # Compiler flag to prevent dynamic linking.
15890 link_static_flag=$lt_lt_prog_compiler_static
15892 # Does compiler simultaneously support -c and -o options?
15893 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15895 # Whether or not to add -lc for building shared libraries.
15896 build_libtool_need_lc=$archive_cmds_need_lc
15898 # Whether or not to disallow shared libs when runtime libs are static.
15899 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15901 # Compiler flag to allow reflexive dlopens.
15902 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15904 # Compiler flag to generate shared objects directly from archives.
15905 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15907 # Whether the compiler copes with passing no objects directly.
15908 compiler_needs_object=$lt_compiler_needs_object
15910 # Create an old-style archive from a shared archive.
15911 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15913 # Create a temporary old-style archive to link instead of a shared archive.
15914 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15916 # Commands used to build a shared archive.
15917 archive_cmds=$lt_archive_cmds
15918 archive_expsym_cmds=$lt_archive_expsym_cmds
15920 # Commands used to build a loadable module if different from building
15921 # a shared archive.
15922 module_cmds=$lt_module_cmds
15923 module_expsym_cmds=$lt_module_expsym_cmds
15925 # Whether we are building with GNU ld or not.
15926 with_gnu_ld=$lt_with_gnu_ld
15928 # Flag that allows shared libraries with undefined symbols to be built.
15929 allow_undefined_flag=$lt_allow_undefined_flag
15931 # Flag that enforces no undefined symbols.
15932 no_undefined_flag=$lt_no_undefined_flag
15934 # Flag to hardcode \$libdir into a binary during linking.
15935 # This must work even if \$libdir does not exist
15936 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15938 # If ld is used when linking, flag to hardcode \$libdir into a binary
15939 # during linking. This must work even if \$libdir does not exist.
15940 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15942 # Whether we need a single "-rpath" flag with a separated argument.
15943 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15945 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15946 # DIR into the resulting binary.
15947 hardcode_direct=$hardcode_direct
15949 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15950 # DIR into the resulting binary and the resulting library dependency is
15951 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15952 # library is relocated.
15953 hardcode_direct_absolute=$hardcode_direct_absolute
15955 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15956 # into the resulting binary.
15957 hardcode_minus_L=$hardcode_minus_L
15959 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15960 # into the resulting binary.
15961 hardcode_shlibpath_var=$hardcode_shlibpath_var
15963 # Set to "yes" if building a shared library automatically hardcodes DIR
15964 # into the library and all subsequent libraries and executables linked
15965 # against it.
15966 hardcode_automatic=$hardcode_automatic
15968 # Set to yes if linker adds runtime paths of dependent libraries
15969 # to runtime path list.
15970 inherit_rpath=$inherit_rpath
15972 # Whether libtool must link a program against all its dependency libraries.
15973 link_all_deplibs=$link_all_deplibs
15975 # Fix the shell variable \$srcfile for the compiler.
15976 fix_srcfile_path=$lt_fix_srcfile_path
15978 # Set to "yes" if exported symbols are required.
15979 always_export_symbols=$always_export_symbols
15981 # The commands to list exported symbols.
15982 export_symbols_cmds=$lt_export_symbols_cmds
15984 # Symbols that should not be listed in the preloaded symbols.
15985 exclude_expsyms=$lt_exclude_expsyms
15987 # Symbols that must always be exported.
15988 include_expsyms=$lt_include_expsyms
15990 # Commands necessary for linking programs (against libraries) with templates.
15991 prelink_cmds=$lt_prelink_cmds
15993 # Specify filename containing input files.
15994 file_list_spec=$lt_file_list_spec
15996 # How to hardcode a shared library path into an executable.
15997 hardcode_action=$hardcode_action
15999 # ### END LIBTOOL CONFIG
16001 _LT_EOF
16003 case $host_os in
16004 aix3*)
16005 cat <<\_LT_EOF >> "$cfgfile"
16006 # AIX sometimes has problems with the GCC collect2 program. For some
16007 # reason, if we set the COLLECT_NAMES environment variable, the problems
16008 # vanish in a puff of smoke.
16009 if test "X${COLLECT_NAMES+set}" != Xset; then
16010 COLLECT_NAMES=
16011 export COLLECT_NAMES
16013 _LT_EOF
16015 esac
16018 ltmain="$ac_aux_dir/ltmain.sh"
16021 # We use sed instead of cat because bash on DJGPP gets confused if
16022 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16023 # text mode, it properly converts lines to CR/LF. This bash problem
16024 # is reportedly fixed, but why not run on old versions too?
16025 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16026 || (rm -f "$cfgfile"; exit 1)
16028 case $xsi_shell in
16029 yes)
16030 cat << \_LT_EOF >> "$cfgfile"
16032 # func_dirname file append nondir_replacement
16033 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16034 # otherwise set result to NONDIR_REPLACEMENT.
16035 func_dirname ()
16037 case ${1} in
16038 */*) func_dirname_result="${1%/*}${2}" ;;
16039 * ) func_dirname_result="${3}" ;;
16040 esac
16043 # func_basename file
16044 func_basename ()
16046 func_basename_result="${1##*/}"
16049 # func_dirname_and_basename file append nondir_replacement
16050 # perform func_basename and func_dirname in a single function
16051 # call:
16052 # dirname: Compute the dirname of FILE. If nonempty,
16053 # add APPEND to the result, otherwise set result
16054 # to NONDIR_REPLACEMENT.
16055 # value returned in "$func_dirname_result"
16056 # basename: Compute filename of FILE.
16057 # value retuned in "$func_basename_result"
16058 # Implementation must be kept synchronized with func_dirname
16059 # and func_basename. For efficiency, we do not delegate to
16060 # those functions but instead duplicate the functionality here.
16061 func_dirname_and_basename ()
16063 case ${1} in
16064 */*) func_dirname_result="${1%/*}${2}" ;;
16065 * ) func_dirname_result="${3}" ;;
16066 esac
16067 func_basename_result="${1##*/}"
16070 # func_stripname prefix suffix name
16071 # strip PREFIX and SUFFIX off of NAME.
16072 # PREFIX and SUFFIX must not contain globbing or regex special
16073 # characters, hashes, percent signs, but SUFFIX may contain a leading
16074 # dot (in which case that matches only a dot).
16075 func_stripname ()
16077 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16078 # positional parameters, so assign one to ordinary parameter first.
16079 func_stripname_result=${3}
16080 func_stripname_result=${func_stripname_result#"${1}"}
16081 func_stripname_result=${func_stripname_result%"${2}"}
16084 # func_opt_split
16085 func_opt_split ()
16087 func_opt_split_opt=${1%%=*}
16088 func_opt_split_arg=${1#*=}
16091 # func_lo2o object
16092 func_lo2o ()
16094 case ${1} in
16095 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16096 *) func_lo2o_result=${1} ;;
16097 esac
16100 # func_xform libobj-or-source
16101 func_xform ()
16103 func_xform_result=${1%.*}.lo
16106 # func_arith arithmetic-term...
16107 func_arith ()
16109 func_arith_result=$(( $* ))
16112 # func_len string
16113 # STRING may not start with a hyphen.
16114 func_len ()
16116 func_len_result=${#1}
16119 _LT_EOF
16121 *) # Bourne compatible functions.
16122 cat << \_LT_EOF >> "$cfgfile"
16124 # func_dirname file append nondir_replacement
16125 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16126 # otherwise set result to NONDIR_REPLACEMENT.
16127 func_dirname ()
16129 # Extract subdirectory from the argument.
16130 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16131 if test "X$func_dirname_result" = "X${1}"; then
16132 func_dirname_result="${3}"
16133 else
16134 func_dirname_result="$func_dirname_result${2}"
16138 # func_basename file
16139 func_basename ()
16141 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16145 # func_stripname prefix suffix name
16146 # strip PREFIX and SUFFIX off of NAME.
16147 # PREFIX and SUFFIX must not contain globbing or regex special
16148 # characters, hashes, percent signs, but SUFFIX may contain a leading
16149 # dot (in which case that matches only a dot).
16150 # func_strip_suffix prefix name
16151 func_stripname ()
16153 case ${2} in
16154 .*) func_stripname_result=`$ECHO "X${3}" \
16155 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16156 *) func_stripname_result=`$ECHO "X${3}" \
16157 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16158 esac
16161 # sed scripts:
16162 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16163 my_sed_long_arg='1s/^-[^=]*=//'
16165 # func_opt_split
16166 func_opt_split ()
16168 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16169 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16172 # func_lo2o object
16173 func_lo2o ()
16175 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16178 # func_xform libobj-or-source
16179 func_xform ()
16181 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16184 # func_arith arithmetic-term...
16185 func_arith ()
16187 func_arith_result=`expr "$@"`
16190 # func_len string
16191 # STRING may not start with a hyphen.
16192 func_len ()
16194 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16197 _LT_EOF
16198 esac
16200 case $lt_shell_append in
16201 yes)
16202 cat << \_LT_EOF >> "$cfgfile"
16204 # func_append var value
16205 # Append VALUE to the end of shell variable VAR.
16206 func_append ()
16208 eval "$1+=\$2"
16210 _LT_EOF
16213 cat << \_LT_EOF >> "$cfgfile"
16215 # func_append var value
16216 # Append VALUE to the end of shell variable VAR.
16217 func_append ()
16219 eval "$1=\$$1\$2"
16222 _LT_EOF
16224 esac
16227 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16228 || (rm -f "$cfgfile"; exit 1)
16230 mv -f "$cfgfile" "$ofile" ||
16231 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16232 chmod +x "$ofile"
16235 "default-1":C)
16236 for ac_file in $CONFIG_FILES; do
16237 # Support "outfile[:infile[:infile...]]"
16238 case "$ac_file" in
16239 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16240 esac
16241 # PO directories have a Makefile.in generated from Makefile.in.in.
16242 case "$ac_file" in */Makefile.in)
16243 # Adjust a relative srcdir.
16244 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16245 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16246 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16247 # In autoconf-2.13 it is called $ac_given_srcdir.
16248 # In autoconf-2.50 it is called $srcdir.
16249 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16250 case "$ac_given_srcdir" in
16251 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16252 /*) top_srcdir="$ac_given_srcdir" ;;
16253 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16254 esac
16255 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16256 rm -f "$ac_dir/POTFILES"
16257 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16258 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16259 POMAKEFILEDEPS="POTFILES.in"
16260 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16261 # on $ac_dir but don't depend on user-specified configuration
16262 # parameters.
16263 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16264 # The LINGUAS file contains the set of available languages.
16265 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16266 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16268 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16269 # Hide the ALL_LINGUAS assigment from automake.
16270 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16271 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16272 else
16273 # The set of available languages was given in configure.in.
16274 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16276 case "$ac_given_srcdir" in
16277 .) srcdirpre= ;;
16278 *) srcdirpre='$(srcdir)/' ;;
16279 esac
16280 POFILES=
16281 GMOFILES=
16282 UPDATEPOFILES=
16283 DUMMYPOFILES=
16284 for lang in $ALL_LINGUAS; do
16285 POFILES="$POFILES $srcdirpre$lang.po"
16286 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16287 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16288 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16289 done
16290 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16291 # environment variable.
16292 INST_LINGUAS=
16293 if test -n "$ALL_LINGUAS"; then
16294 for presentlang in $ALL_LINGUAS; do
16295 useit=no
16296 if test "%UNSET%" != "$LINGUAS"; then
16297 desiredlanguages="$LINGUAS"
16298 else
16299 desiredlanguages="$ALL_LINGUAS"
16301 for desiredlang in $desiredlanguages; do
16302 # Use the presentlang catalog if desiredlang is
16303 # a. equal to presentlang, or
16304 # b. a variant of presentlang (because in this case,
16305 # presentlang can be used as a fallback for messages
16306 # which are not translated in the desiredlang catalog).
16307 case "$desiredlang" in
16308 "$presentlang"*) useit=yes;;
16309 esac
16310 done
16311 if test $useit = yes; then
16312 INST_LINGUAS="$INST_LINGUAS $presentlang"
16314 done
16316 CATALOGS=
16317 if test -n "$INST_LINGUAS"; then
16318 for lang in $INST_LINGUAS; do
16319 CATALOGS="$CATALOGS $lang.gmo"
16320 done
16322 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16323 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"
16324 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16325 if test -f "$f"; then
16326 case "$f" in
16327 *.orig | *.bak | *~) ;;
16328 *) cat "$f" >> "$ac_dir/Makefile" ;;
16329 esac
16331 done
16334 esac
16335 done ;;
16336 "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
16337 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16338 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16339 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16340 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16341 if test "x$cgen_cpu_prefix" != x ; then
16342 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
16343 fi ;;
16345 esac
16346 done # for ac_tag
16349 as_fn_exit 0
16350 _ACEOF
16351 ac_clean_files=$ac_clean_files_save
16353 test $ac_write_fail = 0 ||
16354 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16357 # configure is writing to config.log, and then calls config.status.
16358 # config.status does its own redirection, appending to config.log.
16359 # Unfortunately, on DOS this fails, as config.log is still kept open
16360 # by configure, so config.status won't be able to write to it; its
16361 # output is simply discarded. So we exec the FD to /dev/null,
16362 # effectively closing config.log, so it can be properly (re)opened and
16363 # appended to by config.status. When coming back to configure, we
16364 # need to make the FD available again.
16365 if test "$no_create" != yes; then
16366 ac_cs_success=:
16367 ac_config_status_args=
16368 test "$silent" = yes &&
16369 ac_config_status_args="$ac_config_status_args --quiet"
16370 exec 5>/dev/null
16371 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16372 exec 5>>config.log
16373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16374 # would make configure fail if this is the last instruction.
16375 $ac_cs_success || as_fn_exit $?
16377 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16379 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}