bfd/
[deliverable/binutils-gdb.git] / gprof / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
252b5132
RH
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
6bf9431b 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6bf9431b
BE
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6bf9431b
BE
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
6bf9431b 31fi
6bf9431b 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
6bf9431b
BE
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
6bf9431b
BE
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6bf9431b 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
6bf9431b 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
6bf9431b 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
6bf9431b 372
81ecdfbb
RW
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6bf9431b
BE
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6bf9431b
BE
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
6bf9431b 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
6bf9431b
BE
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
6bf9431b 410
0ab6f085
AM
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
1b9750d6 417
6bf9431b 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
6bf9431b 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
6bf9431b 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6bf9431b 436 t loop
81ecdfbb 437 s/-\n.*//
6bf9431b 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
6bf9431b
BE
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
6bf9431b
BE
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
6bf9431b
BE
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
6bf9431b 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
6bf9431b 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
0ab6f085 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
0ab6f085 483 fi
6bf9431b
BE
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
6bf9431b
BE
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
6bf9431b
BE
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
6bf9431b
BE
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
d7040cdb
SE
527
528# Check that we are running under the correct shell.
529SHELL=${CONFIG_SHELL-/bin/sh}
530
531case X$lt_ECHO in
532X*--fallback-echo)
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535 ;;
536esac
537
538ECHO=${lt_ECHO-echo}
539if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
541 shift
542elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
544 :
545elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
547 :
548else
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
551fi
552
553if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
555 shift
556 cat <<_LT_EOF
557$*
558_LT_EOF
559 exit 0
560fi
561
562# The HP-UX ksh and POSIX shell print the target directory to stdout
563# if CDPATH is set.
564(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
566if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573 then
574 break
575 fi
576 done
577 fi
578
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
582 :
583 else
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
587 #
588 # So, first we look for a working echo in the user's PATH.
589
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
592 IFS="$lt_save_ifs"
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 ECHO="$dir/echo"
598 break
599 fi
600 done
601 IFS="$lt_save_ifs"
602
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
609 ECHO='print -r'
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
616 export CONFIG_SHELL
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618 else
619 # Try using printf.
620 ECHO='printf %s\n'
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 # Cool, printf works
625 :
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631 export CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
633 export SHELL
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 else
641 # maybe with a smaller string...
642 prev=:
643
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646 then
647 break
648 fi
649 prev="$cmd"
650 done
651
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656 else
657 # Oops. We lost completely, so just stick with echo.
658 ECHO=echo
659 fi
660 fi
661 fi
662 fi
663 fi
664fi
665
666# Copy echo and quote the copy suitably for passing to libtool from
667# the Makefile, instead of quoting the original, which is used later.
668lt_ECHO=$ECHO
669if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671fi
672
673
674
675
81ecdfbb
RW
676exec 7<&0 </dev/null 6>&1
677
6bf9431b
BE
678# Name of the host.
679# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680# so uname gets run too.
681ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 682
6bf9431b
BE
683#
684# Initializations.
685#
252b5132 686ac_default_prefix=/usr/local
81ecdfbb 687ac_clean_files=
6bf9431b 688ac_config_libobj_dir=.
81ecdfbb 689LIBOBJS=
6bf9431b
BE
690cross_compiling=no
691subdirs=
692MFLAGS=
693MAKEFLAGS=
0ab6f085 694
6bf9431b
BE
695# Identity of this package.
696PACKAGE_NAME=
697PACKAGE_TARNAME=
698PACKAGE_VERSION=
699PACKAGE_STRING=
700PACKAGE_BUGREPORT=
81ecdfbb 701PACKAGE_URL=
6bf9431b
BE
702
703ac_unique_file="gprof.c"
704# Factoring default headers for most tests.
705ac_includes_default="\
706#include <stdio.h>
81ecdfbb 707#ifdef HAVE_SYS_TYPES_H
6bf9431b
BE
708# include <sys/types.h>
709#endif
81ecdfbb 710#ifdef HAVE_SYS_STAT_H
6bf9431b
BE
711# include <sys/stat.h>
712#endif
81ecdfbb 713#ifdef STDC_HEADERS
6bf9431b
BE
714# include <stdlib.h>
715# include <stddef.h>
716#else
81ecdfbb 717# ifdef HAVE_STDLIB_H
6bf9431b
BE
718# include <stdlib.h>
719# endif
720#endif
81ecdfbb
RW
721#ifdef HAVE_STRING_H
722# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
6bf9431b
BE
723# include <memory.h>
724# endif
725# include <string.h>
726#endif
81ecdfbb 727#ifdef HAVE_STRINGS_H
6bf9431b
BE
728# include <strings.h>
729#endif
81ecdfbb 730#ifdef HAVE_INTTYPES_H
6bf9431b 731# include <inttypes.h>
6bf9431b 732#endif
81ecdfbb
RW
733#ifdef HAVE_STDINT_H
734# include <stdint.h>
735#endif
736#ifdef HAVE_UNISTD_H
6bf9431b
BE
737# include <unistd.h>
738#endif"
739
81ecdfbb
RW
740ac_subst_vars='am__EXEEXT_FALSE
741am__EXEEXT_TRUE
742LTLIBOBJS
743LIBOBJS
744NO_WERROR
745WARN_CFLAGS
746GENINSRC_NEVER_FALSE
747GENINSRC_NEVER_TRUE
748MAINT
749MAINTAINER_MODE_FALSE
750MAINTAINER_MODE_TRUE
751MSGMERGE
752MSGFMT
753MKINSTALLDIRS
754CATOBJEXT
755GENCAT
756INSTOBJEXT
757DATADIRNAME
758CATALOGS
759POSUB
760GMSGFMT
761XGETTEXT
762INCINTL
763LIBINTL_DEP
764LIBINTL
765USE_NLS
766OTOOL64
767OTOOL
768LIPO
769NMEDIT
770DSYMUTIL
771lt_ECHO
772RANLIB
773AR
774OBJDUMP
775LN_S
776NM
777ac_ct_DUMPBIN
778DUMPBIN
779LD
780FGREP
781SED
782LIBTOOL
783EGREP
784GREP
785CPP
786am__fastdepCC_FALSE
787am__fastdepCC_TRUE
788CCDEPMODE
789AMDEPBACKSLASH
790AMDEP_FALSE
791AMDEP_TRUE
792am__quote
793am__include
794DEPDIR
795am__untar
796am__tar
797AMTAR
798am__leading_dot
799SET_MAKE
800AWK
801mkdir_p
802MKDIR_P
803INSTALL_STRIP_PROGRAM
804STRIP
805install_sh
806MAKEINFO
807AUTOHEADER
808AUTOMAKE
809AUTOCONF
810ACLOCAL
811VERSION
812PACKAGE
813CYGPATH_W
814am__isrc
815INSTALL_DATA
816INSTALL_SCRIPT
817INSTALL_PROGRAM
818OBJEXT
819EXEEXT
820ac_ct_CC
821CPPFLAGS
822LDFLAGS
823CFLAGS
824CC
825target_os
826target_vendor
827target_cpu
828target
829host_os
830host_vendor
831host_cpu
832host
833build_os
834build_vendor
835build_cpu
836build
837target_alias
838host_alias
839build_alias
840LIBS
841ECHO_T
842ECHO_N
843ECHO_C
844DEFS
845mandir
846localedir
847libdir
848psdir
849pdfdir
850dvidir
851htmldir
852infodir
853docdir
854oldincludedir
855includedir
856localstatedir
857sharedstatedir
858sysconfdir
859datadir
860datarootdir
861libexecdir
862sbindir
863bindir
864program_transform_name
865prefix
866exec_prefix
867PACKAGE_URL
868PACKAGE_BUGREPORT
869PACKAGE_STRING
870PACKAGE_VERSION
871PACKAGE_TARNAME
872PACKAGE_NAME
873PATH_SEPARATOR
874SHELL'
6bf9431b 875ac_subst_files=''
81ecdfbb
RW
876ac_user_opts='
877enable_option_checking
878enable_dependency_tracking
da2f07f1 879enable_plugins
81ecdfbb
RW
880enable_largefile
881enable_shared
882enable_static
883with_pic
884enable_fast_install
885with_gnu_ld
886enable_libtool_lock
887enable_nls
888enable_maintainer_mode
889enable_werror
890enable_build_warnings
891'
892 ac_precious_vars='build_alias
893host_alias
894target_alias
895CC
896CFLAGS
897LDFLAGS
898LIBS
899CPPFLAGS
900CPP'
901
252b5132
RH
902
903# Initialize some variables set by options.
6bf9431b
BE
904ac_init_help=
905ac_init_version=false
81ecdfbb
RW
906ac_unrecognized_opts=
907ac_unrecognized_sep=
252b5132
RH
908# The variables have the same names as the options, with
909# dashes changed to underlines.
6bf9431b 910cache_file=/dev/null
252b5132 911exec_prefix=NONE
252b5132 912no_create=
252b5132
RH
913no_recursion=
914prefix=NONE
915program_prefix=NONE
916program_suffix=NONE
917program_transform_name=s,x,x,
918silent=
919site=
920srcdir=
252b5132
RH
921verbose=
922x_includes=NONE
923x_libraries=NONE
6bf9431b
BE
924
925# Installation directory options.
926# These are left unexpanded so users can "make install exec_prefix=/foo"
927# and all the variables that are supposed to be based on exec_prefix
928# by default will actually change.
929# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 930# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
931bindir='${exec_prefix}/bin'
932sbindir='${exec_prefix}/sbin'
933libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
934datarootdir='${prefix}/share'
935datadir='${datarootdir}'
252b5132
RH
936sysconfdir='${prefix}/etc'
937sharedstatedir='${prefix}/com'
938localstatedir='${prefix}/var'
252b5132
RH
939includedir='${prefix}/include'
940oldincludedir='/usr/include'
81ecdfbb
RW
941docdir='${datarootdir}/doc/${PACKAGE}'
942infodir='${datarootdir}/info'
943htmldir='${docdir}'
944dvidir='${docdir}'
945pdfdir='${docdir}'
946psdir='${docdir}'
947libdir='${exec_prefix}/lib'
948localedir='${datarootdir}/locale'
949mandir='${datarootdir}/man'
252b5132 950
252b5132 951ac_prev=
81ecdfbb 952ac_dashdash=
252b5132
RH
953for ac_option
954do
252b5132
RH
955 # If the previous option needs an argument, assign it.
956 if test -n "$ac_prev"; then
81ecdfbb 957 eval $ac_prev=\$ac_option
252b5132
RH
958 ac_prev=
959 continue
960 fi
961
81ecdfbb
RW
962 case $ac_option in
963 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964 *) ac_optarg=yes ;;
965 esac
252b5132
RH
966
967 # Accept the important Cygnus configure options, so we can diagnose typos.
968
81ecdfbb
RW
969 case $ac_dashdash$ac_option in
970 --)
971 ac_dashdash=yes ;;
252b5132
RH
972
973 -bindir | --bindir | --bindi | --bind | --bin | --bi)
974 ac_prev=bindir ;;
975 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
6bf9431b 976 bindir=$ac_optarg ;;
252b5132
RH
977
978 -build | --build | --buil | --bui | --bu)
6bf9431b 979 ac_prev=build_alias ;;
252b5132 980 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
6bf9431b 981 build_alias=$ac_optarg ;;
252b5132
RH
982
983 -cache-file | --cache-file | --cache-fil | --cache-fi \
984 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985 ac_prev=cache_file ;;
986 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6bf9431b
BE
988 cache_file=$ac_optarg ;;
989
990 --config-cache | -C)
991 cache_file=config.cache ;;
252b5132 992
81ecdfbb 993 -datadir | --datadir | --datadi | --datad)
252b5132 994 ac_prev=datadir ;;
81ecdfbb 995 -datadir=* | --datadir=* | --datadi=* | --datad=*)
6bf9431b 996 datadir=$ac_optarg ;;
252b5132 997
81ecdfbb
RW
998 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999 | --dataroo | --dataro | --datar)
1000 ac_prev=datarootdir ;;
1001 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003 datarootdir=$ac_optarg ;;
1004
252b5132 1005 -disable-* | --disable-*)
81ecdfbb 1006 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 1007 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009 as_fn_error "invalid feature name: $ac_useropt"
1010 ac_useropt_orig=$ac_useropt
1011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1013 *"
1014"enable_$ac_useropt"
1015"*) ;;
1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1017 ac_unrecognized_sep=', ';;
1018 esac
1019 eval enable_$ac_useropt=no ;;
1020
1021 -docdir | --docdir | --docdi | --doc | --do)
1022 ac_prev=docdir ;;
1023 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1024 docdir=$ac_optarg ;;
1025
1026 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1027 ac_prev=dvidir ;;
1028 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1029 dvidir=$ac_optarg ;;
252b5132
RH
1030
1031 -enable-* | --enable-*)
81ecdfbb 1032 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 1033 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035 as_fn_error "invalid feature name: $ac_useropt"
1036 ac_useropt_orig=$ac_useropt
1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1039 *"
1040"enable_$ac_useropt"
1041"*) ;;
1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1043 ac_unrecognized_sep=', ';;
0ab6f085 1044 esac
81ecdfbb 1045 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1046
1047 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1048 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1049 | --exec | --exe | --ex)
1050 ac_prev=exec_prefix ;;
1051 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1052 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1053 | --exec=* | --exe=* | --ex=*)
6bf9431b 1054 exec_prefix=$ac_optarg ;;
252b5132
RH
1055
1056 -gas | --gas | --ga | --g)
1057 # Obsolete; use --with-gas.
1058 with_gas=yes ;;
1059
6bf9431b
BE
1060 -help | --help | --hel | --he | -h)
1061 ac_init_help=long ;;
1062 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1063 ac_init_help=recursive ;;
1064 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1065 ac_init_help=short ;;
252b5132
RH
1066
1067 -host | --host | --hos | --ho)
6bf9431b 1068 ac_prev=host_alias ;;
252b5132 1069 -host=* | --host=* | --hos=* | --ho=*)
6bf9431b 1070 host_alias=$ac_optarg ;;
252b5132 1071
81ecdfbb
RW
1072 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1073 ac_prev=htmldir ;;
1074 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1075 | --ht=*)
1076 htmldir=$ac_optarg ;;
1077
252b5132
RH
1078 -includedir | --includedir | --includedi | --included | --include \
1079 | --includ | --inclu | --incl | --inc)
1080 ac_prev=includedir ;;
1081 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1082 | --includ=* | --inclu=* | --incl=* | --inc=*)
6bf9431b 1083 includedir=$ac_optarg ;;
252b5132
RH
1084
1085 -infodir | --infodir | --infodi | --infod | --info | --inf)
1086 ac_prev=infodir ;;
1087 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
6bf9431b 1088 infodir=$ac_optarg ;;
252b5132
RH
1089
1090 -libdir | --libdir | --libdi | --libd)
1091 ac_prev=libdir ;;
1092 -libdir=* | --libdir=* | --libdi=* | --libd=*)
6bf9431b 1093 libdir=$ac_optarg ;;
252b5132
RH
1094
1095 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1096 | --libexe | --libex | --libe)
1097 ac_prev=libexecdir ;;
1098 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1099 | --libexe=* | --libex=* | --libe=*)
6bf9431b 1100 libexecdir=$ac_optarg ;;
252b5132 1101
81ecdfbb
RW
1102 -localedir | --localedir | --localedi | --localed | --locale)
1103 ac_prev=localedir ;;
1104 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1105 localedir=$ac_optarg ;;
1106
252b5132 1107 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1108 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1109 ac_prev=localstatedir ;;
1110 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1111 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
6bf9431b 1112 localstatedir=$ac_optarg ;;
252b5132
RH
1113
1114 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1115 ac_prev=mandir ;;
1116 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
6bf9431b 1117 mandir=$ac_optarg ;;
252b5132
RH
1118
1119 -nfp | --nfp | --nf)
1120 # Obsolete; use --without-fp.
1121 with_fp=no ;;
1122
1123 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
6bf9431b 1124 | --no-cr | --no-c | -n)
252b5132
RH
1125 no_create=yes ;;
1126
1127 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1128 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1129 no_recursion=yes ;;
1130
1131 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1132 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1133 | --oldin | --oldi | --old | --ol | --o)
1134 ac_prev=oldincludedir ;;
1135 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1136 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1137 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
6bf9431b 1138 oldincludedir=$ac_optarg ;;
252b5132
RH
1139
1140 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1141 ac_prev=prefix ;;
1142 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6bf9431b 1143 prefix=$ac_optarg ;;
252b5132
RH
1144
1145 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1146 | --program-pre | --program-pr | --program-p)
1147 ac_prev=program_prefix ;;
1148 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1149 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
6bf9431b 1150 program_prefix=$ac_optarg ;;
252b5132
RH
1151
1152 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1153 | --program-suf | --program-su | --program-s)
1154 ac_prev=program_suffix ;;
1155 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1156 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
6bf9431b 1157 program_suffix=$ac_optarg ;;
252b5132
RH
1158
1159 -program-transform-name | --program-transform-name \
1160 | --program-transform-nam | --program-transform-na \
1161 | --program-transform-n | --program-transform- \
1162 | --program-transform | --program-transfor \
1163 | --program-transfo | --program-transf \
1164 | --program-trans | --program-tran \
1165 | --progr-tra | --program-tr | --program-t)
1166 ac_prev=program_transform_name ;;
1167 -program-transform-name=* | --program-transform-name=* \
1168 | --program-transform-nam=* | --program-transform-na=* \
1169 | --program-transform-n=* | --program-transform-=* \
1170 | --program-transform=* | --program-transfor=* \
1171 | --program-transfo=* | --program-transf=* \
1172 | --program-trans=* | --program-tran=* \
1173 | --progr-tra=* | --program-tr=* | --program-t=*)
6bf9431b 1174 program_transform_name=$ac_optarg ;;
252b5132 1175
81ecdfbb
RW
1176 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1177 ac_prev=pdfdir ;;
1178 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1179 pdfdir=$ac_optarg ;;
1180
1181 -psdir | --psdir | --psdi | --psd | --ps)
1182 ac_prev=psdir ;;
1183 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1184 psdir=$ac_optarg ;;
1185
252b5132
RH
1186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1187 | -silent | --silent | --silen | --sile | --sil)
1188 silent=yes ;;
1189
1190 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1191 ac_prev=sbindir ;;
1192 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1193 | --sbi=* | --sb=*)
6bf9431b 1194 sbindir=$ac_optarg ;;
252b5132
RH
1195
1196 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1197 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1198 | --sharedst | --shareds | --shared | --share | --shar \
1199 | --sha | --sh)
1200 ac_prev=sharedstatedir ;;
1201 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1202 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1203 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1204 | --sha=* | --sh=*)
6bf9431b 1205 sharedstatedir=$ac_optarg ;;
252b5132
RH
1206
1207 -site | --site | --sit)
1208 ac_prev=site ;;
1209 -site=* | --site=* | --sit=*)
6bf9431b 1210 site=$ac_optarg ;;
093872ec 1211
252b5132
RH
1212 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1213 ac_prev=srcdir ;;
1214 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6bf9431b 1215 srcdir=$ac_optarg ;;
252b5132
RH
1216
1217 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1218 | --syscon | --sysco | --sysc | --sys | --sy)
1219 ac_prev=sysconfdir ;;
1220 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1221 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
6bf9431b 1222 sysconfdir=$ac_optarg ;;
252b5132
RH
1223
1224 -target | --target | --targe | --targ | --tar | --ta | --t)
6bf9431b 1225 ac_prev=target_alias ;;
252b5132 1226 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
6bf9431b 1227 target_alias=$ac_optarg ;;
252b5132
RH
1228
1229 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1230 verbose=yes ;;
1231
6bf9431b
BE
1232 -version | --version | --versio | --versi | --vers | -V)
1233 ac_init_version=: ;;
252b5132
RH
1234
1235 -with-* | --with-*)
81ecdfbb 1236 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1237 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239 as_fn_error "invalid package name: $ac_useropt"
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1243 *"
1244"with_$ac_useropt"
1245"*) ;;
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
0ab6f085 1248 esac
81ecdfbb 1249 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1250
1251 -without-* | --without-*)
81ecdfbb 1252 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1253 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255 as_fn_error "invalid package name: $ac_useropt"
1256 ac_useropt_orig=$ac_useropt
1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1259 *"
1260"with_$ac_useropt"
1261"*) ;;
1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1263 ac_unrecognized_sep=', ';;
1264 esac
1265 eval with_$ac_useropt=no ;;
252b5132
RH
1266
1267 --x)
1268 # Obsolete; use --with-x.
1269 with_x=yes ;;
1270
1271 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272 | --x-incl | --x-inc | --x-in | --x-i)
1273 ac_prev=x_includes ;;
1274 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
6bf9431b 1276 x_includes=$ac_optarg ;;
252b5132
RH
1277
1278 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280 ac_prev=x_libraries ;;
1281 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
6bf9431b 1283 x_libraries=$ac_optarg ;;
252b5132 1284
81ecdfbb
RW
1285 -*) as_fn_error "unrecognized option: \`$ac_option'
1286Try \`$0 --help' for more information."
252b5132
RH
1287 ;;
1288
6bf9431b
BE
1289 *=*)
1290 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1291 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1292 case $ac_envvar in #(
1293 '' | [0-9]* | *[!_$as_cr_alnum]* )
1294 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1295 esac
1296 eval $ac_envvar=\$ac_optarg
6bf9431b
BE
1297 export $ac_envvar ;;
1298
252b5132 1299 *)
6bf9431b 1300 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1301 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
6bf9431b 1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1303 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
6bf9431b 1304 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1305 ;;
1306
1307 esac
1308done
1309
1310if test -n "$ac_prev"; then
6bf9431b 1311 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1312 as_fn_error "missing argument to $ac_option"
252b5132
RH
1313fi
1314
81ecdfbb
RW
1315if test -n "$ac_unrecognized_opts"; then
1316 case $enable_option_checking in
1317 no) ;;
1318 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1319 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
0ab6f085 1320 esac
81ecdfbb 1321fi
0ab6f085 1322
81ecdfbb
RW
1323# Check all directory arguments for consistency.
1324for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1325 datadir sysconfdir sharedstatedir localstatedir includedir \
1326 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1327 libdir localedir mandir
0ab6f085 1328do
81ecdfbb
RW
1329 eval ac_val=\$$ac_var
1330 # Remove trailing slashes.
0ab6f085 1331 case $ac_val in
81ecdfbb
RW
1332 */ )
1333 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1334 eval $ac_var=\$ac_val;;
252b5132 1335 esac
81ecdfbb
RW
1336 # Be sure to have absolute directory names.
1337 case $ac_val in
1338 [\\/$]* | ?:[\\/]* ) continue;;
1339 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1340 esac
1341 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1342done
1343
6bf9431b
BE
1344# There might be people who depend on the old broken behavior: `$host'
1345# used to hold the argument of --host etc.
1346# FIXME: To remove some day.
1347build=$build_alias
1348host=$host_alias
1349target=$target_alias
1350
1351# FIXME: To remove some day.
1352if test "x$host_alias" != x; then
1353 if test "x$build_alias" = x; then
1354 cross_compiling=maybe
81ecdfbb 1355 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
6bf9431b
BE
1356 If a cross compiler is detected then cross compile mode will be used." >&2
1357 elif test "x$build_alias" != "x$host_alias"; then
1358 cross_compiling=yes
1359 fi
1360fi
252b5132 1361
6bf9431b
BE
1362ac_tool_prefix=
1363test -n "$host_alias" && ac_tool_prefix=$host_alias-
1364
1365test "$silent" = yes && exec 6>/dev/null
252b5132 1366
252b5132 1367
81ecdfbb
RW
1368ac_pwd=`pwd` && test -n "$ac_pwd" &&
1369ac_ls_di=`ls -di .` &&
1370ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1371 as_fn_error "working directory cannot be determined"
1372test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373 as_fn_error "pwd does not report name of working directory"
1374
1375
252b5132
RH
1376# Find the source files, if location was not specified.
1377if test -z "$srcdir"; then
1378 ac_srcdir_defaulted=yes
81ecdfbb
RW
1379 # Try the directory containing this script, then the parent directory.
1380 ac_confdir=`$as_dirname -- "$as_myself" ||
1381$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1382 X"$as_myself" : 'X\(//\)[^/]' \| \
1383 X"$as_myself" : 'X\(//\)$' \| \
1384 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1385$as_echo X"$as_myself" |
1386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1387 s//\1/
1388 q
1389 }
1390 /^X\(\/\/\)[^/].*/{
1391 s//\1/
1392 q
1393 }
1394 /^X\(\/\/\)$/{
1395 s//\1/
1396 q
1397 }
1398 /^X\(\/\).*/{
1399 s//\1/
1400 q
1401 }
1402 s/.*/./; q'`
252b5132 1403 srcdir=$ac_confdir
81ecdfbb 1404 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1405 srcdir=..
1406 fi
1407else
1408 ac_srcdir_defaulted=no
1409fi
81ecdfbb
RW
1410if test ! -r "$srcdir/$ac_unique_file"; then
1411 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1412 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1413fi
1414ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1415ac_abs_confdir=`(
1416 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1417 pwd)`
1418# When building in place, set srcdir=.
1419if test "$ac_abs_confdir" = "$ac_pwd"; then
1420 srcdir=.
1421fi
1422# Remove unnecessary trailing slashes from srcdir.
1423# Double slashes in file names in object file debugging info
1424# mess up M-x gdb in Emacs.
1425case $srcdir in
1426*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1427esac
1428for ac_var in $ac_precious_vars; do
1429 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1430 eval ac_env_${ac_var}_value=\$${ac_var}
1431 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1432 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1433done
252b5132 1434
6bf9431b
BE
1435#
1436# Report the --help message.
1437#
1438if test "$ac_init_help" = "long"; then
1439 # Omit some internal or obsolete options to make the list less imposing.
1440 # This message is too long to be a string in the A/UX 3.1 sh.
1441 cat <<_ACEOF
1442\`configure' configures this package to adapt to many kinds of systems.
252b5132 1443
6bf9431b 1444Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1445
6bf9431b
BE
1446To assign environment variables (e.g., CC, CFLAGS...), specify them as
1447VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1448
6bf9431b 1449Defaults for the options are specified in brackets.
ac48eca1 1450
6bf9431b
BE
1451Configuration:
1452 -h, --help display this help and exit
1453 --help=short display options specific to this package
1454 --help=recursive display the short help of all the included packages
1455 -V, --version display version information and exit
1456 -q, --quiet, --silent do not print \`checking...' messages
1457 --cache-file=FILE cache test results in FILE [disabled]
1458 -C, --config-cache alias for \`--cache-file=config.cache'
1459 -n, --no-create do not create output files
1460 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1461
6bf9431b
BE
1462Installation directories:
1463 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1464 [$ac_default_prefix]
6bf9431b 1465 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1466 [PREFIX]
ac48eca1 1467
6bf9431b
BE
1468By default, \`make install' will install all the files in
1469\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1470an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1471for instance \`--prefix=\$HOME'.
ac48eca1 1472
6bf9431b 1473For better control, use the options below.
ac48eca1 1474
6bf9431b 1475Fine tuning of the installation directories:
81ecdfbb
RW
1476 --bindir=DIR user executables [EPREFIX/bin]
1477 --sbindir=DIR system admin executables [EPREFIX/sbin]
1478 --libexecdir=DIR program executables [EPREFIX/libexec]
1479 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1480 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1481 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1482 --libdir=DIR object code libraries [EPREFIX/lib]
1483 --includedir=DIR C header files [PREFIX/include]
1484 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1485 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1486 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1487 --infodir=DIR info documentation [DATAROOTDIR/info]
1488 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1489 --mandir=DIR man documentation [DATAROOTDIR/man]
1490 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1491 --htmldir=DIR html documentation [DOCDIR]
1492 --dvidir=DIR dvi documentation [DOCDIR]
1493 --pdfdir=DIR pdf documentation [DOCDIR]
1494 --psdir=DIR ps documentation [DOCDIR]
6bf9431b 1495_ACEOF
ac48eca1 1496
6bf9431b 1497 cat <<\_ACEOF
252b5132 1498
6bf9431b
BE
1499Program names:
1500 --program-prefix=PREFIX prepend PREFIX to installed program names
1501 --program-suffix=SUFFIX append SUFFIX to installed program names
1502 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1503
6bf9431b
BE
1504System types:
1505 --build=BUILD configure for building on BUILD [guessed]
1506 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1507 --target=TARGET configure for building compilers for TARGET [HOST]
1508_ACEOF
252b5132 1509fi
252b5132 1510
6bf9431b 1511if test -n "$ac_init_help"; then
252b5132 1512
6bf9431b 1513 cat <<\_ACEOF
252b5132 1514
6bf9431b 1515Optional Features:
81ecdfbb 1516 --disable-option-checking ignore unrecognized --enable/--with options
6bf9431b
BE
1517 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1518 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1519 --disable-dependency-tracking speeds up one-time build
1520 --enable-dependency-tracking do not reject slow dependency extractors
da2f07f1 1521 --enable-plugins Enable support for plugins (defaults no)
d053aef8 1522 --disable-largefile omit support for large files
81ecdfbb
RW
1523 --enable-shared[=PKGS] build shared libraries [default=yes]
1524 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1525 --enable-fast-install[=PKGS]
1526 optimize for fast installation [default=yes]
6bf9431b
BE
1527 --disable-libtool-lock avoid locking (might break parallel builds)
1528 --disable-nls do not use Native Language Support
1529 --enable-maintainer-mode enable make rules and dependencies not useful
1530 (and sometimes confusing) to the casual installer
241a6c40
AM
1531 --enable-werror treat compile warnings as errors
1532 --enable-build-warnings enable build-time compiler warnings
6bf9431b
BE
1533
1534Optional Packages:
1535 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1536 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1537 --with-pic try to use only PIC/non-PIC objects [default=use
1538 both]
1539 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
252b5132 1540
6bf9431b
BE
1541Some influential environment variables:
1542 CC C compiler command
1543 CFLAGS C compiler flags
1544 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1545 nonstandard directory <lib dir>
81ecdfbb
RW
1546 LIBS libraries to pass to the linker, e.g. -l<library>
1547 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1548 you have headers in a nonstandard directory <include dir>
6bf9431b 1549 CPP C preprocessor
252b5132 1550
6bf9431b
BE
1551Use these variables to override the choices made by `configure' or to help
1552it to find libraries and programs with nonstandard names/locations.
1553
81ecdfbb 1554Report bugs to the package provider.
6bf9431b 1555_ACEOF
81ecdfbb 1556ac_status=$?
252b5132
RH
1557fi
1558
6bf9431b
BE
1559if test "$ac_init_help" = "recursive"; then
1560 # If there are subdirs, report their specific --help.
6bf9431b 1561 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1562 test -d "$ac_dir" ||
1563 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1564 continue
6bf9431b 1565 ac_builddir=.
252b5132 1566
81ecdfbb
RW
1567case "$ac_dir" in
1568.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569*)
1570 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1571 # A ".." for each directory in $ac_dir_suffix.
1572 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1573 case $ac_top_builddir_sub in
1574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576 esac ;;
1577esac
1578ac_abs_top_builddir=$ac_pwd
1579ac_abs_builddir=$ac_pwd$ac_dir_suffix
1580# for backward compatibility:
1581ac_top_builddir=$ac_top_build_prefix
6bf9431b
BE
1582
1583case $srcdir in
81ecdfbb 1584 .) # We are building in place.
6bf9431b 1585 ac_srcdir=.
81ecdfbb
RW
1586 ac_top_srcdir=$ac_top_builddir_sub
1587 ac_abs_top_srcdir=$ac_pwd ;;
1588 [\\/]* | ?:[\\/]* ) # Absolute name.
6bf9431b 1589 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1590 ac_top_srcdir=$srcdir
1591 ac_abs_top_srcdir=$srcdir ;;
1592 *) # Relative name.
1593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1594 ac_top_srcdir=$ac_top_build_prefix$srcdir
1595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
0ab6f085 1596esac
81ecdfbb
RW
1597ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1598
1599 cd "$ac_dir" || { ac_status=$?; continue; }
1600 # Check for guested configure.
1601 if test -f "$ac_srcdir/configure.gnu"; then
1602 echo &&
1603 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1604 elif test -f "$ac_srcdir/configure"; then
1605 echo &&
1606 $SHELL "$ac_srcdir/configure" --help=recursive
6bf9431b 1607 else
81ecdfbb
RW
1608 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609 fi || ac_status=$?
1610 cd "$ac_pwd" || { ac_status=$?; break; }
6bf9431b
BE
1611 done
1612fi
252b5132 1613
81ecdfbb 1614test -n "$ac_init_help" && exit $ac_status
6bf9431b
BE
1615if $ac_init_version; then
1616 cat <<\_ACEOF
81ecdfbb
RW
1617configure
1618generated by GNU Autoconf 2.64
252b5132 1619
81ecdfbb 1620Copyright (C) 2009 Free Software Foundation, Inc.
6bf9431b
BE
1621This configure script is free software; the Free Software Foundation
1622gives unlimited permission to copy, distribute and modify it.
1623_ACEOF
81ecdfbb 1624 exit
6bf9431b 1625fi
5d64ca4e 1626
81ecdfbb
RW
1627## ------------------------ ##
1628## Autoconf initialization. ##
1629## ------------------------ ##
5d64ca4e 1630
81ecdfbb
RW
1631# ac_fn_c_try_compile LINENO
1632# --------------------------
1633# Try to compile conftest.$ac_ext, and return whether this succeeded.
1634ac_fn_c_try_compile ()
6bf9431b 1635{
81ecdfbb
RW
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext
1638 if { { ac_try="$ac_compile"
1639case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642esac
1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644$as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_compile") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1651 fi
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_c_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest.$ac_objext; then :
1657 ac_retval=0
1658else
1659 $as_echo "$as_me: failed program was:" >&5
1660sed 's/^/| /' conftest.$ac_ext >&5
6bf9431b 1661
81ecdfbb
RW
1662 ac_retval=1
1663fi
1664 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1665 return $ac_retval
6bf9431b 1666
81ecdfbb 1667} # ac_fn_c_try_compile
6bf9431b 1668
81ecdfbb
RW
1669# ac_fn_c_try_link LINENO
1670# -----------------------
1671# Try to link conftest.$ac_ext, and return whether this succeeded.
1672ac_fn_c_try_link ()
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext conftest$ac_exeext
1676 if { { ac_try="$ac_link"
1677case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_link") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest$ac_exeext && {
1695 test "$cross_compiling" = yes ||
1696 $as_test_x conftest$ac_exeext
1697 }; then :
1698 ac_retval=0
1699else
1700 $as_echo "$as_me: failed program was:" >&5
1701sed 's/^/| /' conftest.$ac_ext >&5
6bf9431b 1702
81ecdfbb
RW
1703 ac_retval=1
1704fi
1705 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1706 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1707 # interfere with the next link command; also delete a directory that is
1708 # left behind by Apple's compiler. We do this before executing the actions.
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1711 return $ac_retval
6bf9431b 1712
81ecdfbb
RW
1713} # ac_fn_c_try_link
1714
1715# ac_fn_c_try_cpp LINENO
1716# ----------------------
1717# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1718ac_fn_c_try_cpp ()
1719{
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { { ac_try="$ac_cpp conftest.$ac_ext"
1722case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1729 ac_status=$?
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1734 fi
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } >/dev/null && {
1737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1739 }; then :
1740 ac_retval=0
1741else
1742 $as_echo "$as_me: failed program was:" >&5
1743sed 's/^/| /' conftest.$ac_ext >&5
1744
1745 ac_retval=1
1746fi
1747 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748 return $ac_retval
1749
1750} # ac_fn_c_try_cpp
1751
1752# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1753# -------------------------------------------------------
1754# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1755# the include files in INCLUDES and setting the cache variable VAR
1756# accordingly.
1757ac_fn_c_check_header_mongrel ()
1758{
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762$as_echo_n "checking for $2... " >&6; }
1763if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1764 $as_echo_n "(cached) " >&6
1765fi
1766eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768$as_echo "$ac_res" >&6; }
1769else
1770 # Is the header compilable?
1771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1772$as_echo_n "checking $2 usability... " >&6; }
1773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774/* end confdefs.h. */
1775$4
1776#include <$2>
1777_ACEOF
1778if ac_fn_c_try_compile "$LINENO"; then :
1779 ac_header_compiler=yes
1780else
1781 ac_header_compiler=no
1782fi
1783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1785$as_echo "$ac_header_compiler" >&6; }
1786
1787# Is the header present?
1788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1789$as_echo_n "checking $2 presence... " >&6; }
1790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791/* end confdefs.h. */
1792#include <$2>
1793_ACEOF
1794if ac_fn_c_try_cpp "$LINENO"; then :
1795 ac_header_preproc=yes
1796else
1797 ac_header_preproc=no
1798fi
1799rm -f conftest.err conftest.$ac_ext
1800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1801$as_echo "$ac_header_preproc" >&6; }
1802
1803# So? What about this header?
1804case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1805 yes:no: )
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1807$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1809$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1810 ;;
1811 no:yes:* )
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1813$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1815$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1817$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1819$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822 ;;
1823esac
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825$as_echo_n "checking for $2... " >&6; }
1826if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1827 $as_echo_n "(cached) " >&6
1828else
1829 eval "$3=\$ac_header_compiler"
1830fi
1831eval ac_res=\$$3
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833$as_echo "$ac_res" >&6; }
1834fi
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836
1837} # ac_fn_c_check_header_mongrel
1838
1839# ac_fn_c_try_run LINENO
1840# ----------------------
1841# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1842# that executables *can* be run.
1843ac_fn_c_try_run ()
1844{
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 if { { ac_try="$ac_link"
1847case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850esac
1851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852$as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_link") 2>&5
1854 ac_status=$?
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1857 { { case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860esac
1861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862$as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_try") 2>&5
1864 ac_status=$?
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; }; }; then :
1867 ac_retval=0
1868else
1869 $as_echo "$as_me: program exited with status $ac_status" >&5
1870 $as_echo "$as_me: failed program was:" >&5
1871sed 's/^/| /' conftest.$ac_ext >&5
1872
1873 ac_retval=$ac_status
1874fi
1875 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877 return $ac_retval
1878
1879} # ac_fn_c_try_run
1880
1881# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1882# -------------------------------------------------------
1883# Tests whether HEADER exists and can be compiled using the include files in
1884# INCLUDES, setting the cache variable VAR accordingly.
1885ac_fn_c_check_header_compile ()
1886{
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889$as_echo_n "checking for $2... " >&6; }
1890if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891 $as_echo_n "(cached) " >&6
1892else
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894/* end confdefs.h. */
1895$4
1896#include <$2>
1897_ACEOF
1898if ac_fn_c_try_compile "$LINENO"; then :
1899 eval "$3=yes"
1900else
1901 eval "$3=no"
1902fi
1903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904fi
1905eval ac_res=\$$3
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907$as_echo "$ac_res" >&6; }
1908 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909
1910} # ac_fn_c_check_header_compile
1911
1912# ac_fn_c_check_func LINENO FUNC VAR
1913# ----------------------------------
1914# Tests whether FUNC exists, setting the cache variable VAR accordingly
1915ac_fn_c_check_func ()
1916{
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919$as_echo_n "checking for $2... " >&6; }
1920if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1921 $as_echo_n "(cached) " >&6
1922else
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924/* end confdefs.h. */
1925/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1927#define $2 innocuous_$2
1928
1929/* System header to define __stub macros and hopefully few prototypes,
1930 which can conflict with char $2 (); below.
1931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1932 <limits.h> exists even on freestanding compilers. */
1933
1934#ifdef __STDC__
1935# include <limits.h>
1936#else
1937# include <assert.h>
1938#endif
1939
1940#undef $2
1941
1942/* Override any GCC internal prototype to avoid an error.
1943 Use char because int might match the return type of a GCC
1944 builtin and then its argument prototype would still apply. */
1945#ifdef __cplusplus
1946extern "C"
1947#endif
1948char $2 ();
1949/* The GNU C library defines this for functions which it implements
1950 to always fail with ENOSYS. Some functions are actually named
1951 something starting with __ and the normal name is an alias. */
1952#if defined __stub_$2 || defined __stub___$2
1953choke me
1954#endif
1955
1956int
1957main ()
1958{
1959return $2 ();
1960 ;
1961 return 0;
1962}
1963_ACEOF
1964if ac_fn_c_try_link "$LINENO"; then :
1965 eval "$3=yes"
1966else
1967 eval "$3=no"
1968fi
1969rm -f core conftest.err conftest.$ac_objext \
1970 conftest$ac_exeext conftest.$ac_ext
1971fi
1972eval ac_res=\$$3
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974$as_echo "$ac_res" >&6; }
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976
1977} # ac_fn_c_check_func
1978cat >config.log <<_ACEOF
1979This file contains any messages produced by compilers while
1980running configure, to aid debugging if configure makes a mistake.
1981
1982It was created by $as_me, which was
1983generated by GNU Autoconf 2.64. Invocation command line was
1984
1985 $ $0 $@
1986
1987_ACEOF
1988exec 5>>config.log
1989{
1990cat <<_ASUNAME
1991## --------- ##
1992## Platform. ##
1993## --------- ##
1994
1995hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1996uname -m = `(uname -m) 2>/dev/null || echo unknown`
1997uname -r = `(uname -r) 2>/dev/null || echo unknown`
1998uname -s = `(uname -s) 2>/dev/null || echo unknown`
1999uname -v = `(uname -v) 2>/dev/null || echo unknown`
2000
2001/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2002/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2003
2004/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2005/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2006/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2007/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2008/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2009/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2010/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2011
2012_ASUNAME
2013
2014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6bf9431b
BE
2015for as_dir in $PATH
2016do
2017 IFS=$as_save_IFS
2018 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2019 $as_echo "PATH: $as_dir"
2020 done
2021IFS=$as_save_IFS
5d64ca4e 2022
6bf9431b 2023} >&5
093872ec 2024
6bf9431b 2025cat >&5 <<_ACEOF
252b5132 2026
6bf9431b
BE
2027
2028## ----------- ##
2029## Core tests. ##
2030## ----------- ##
2031
2032_ACEOF
2033
2034
2035# Keep a trace of the command line.
2036# Strip out --no-create and --no-recursion so they do not pile up.
2037# Strip out --silent because we don't want to record it for future runs.
2038# Also quote any args containing shell meta-characters.
2039# Make two passes to allow for proper duplicate-argument suppression.
2040ac_configure_args=
2041ac_configure_args0=
2042ac_configure_args1=
6bf9431b
BE
2043ac_must_keep_next=false
2044for ac_pass in 1 2
2045do
2046 for ac_arg
2047 do
2048 case $ac_arg in
2049 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2051 | -silent | --silent | --silen | --sile | --sil)
2052 continue ;;
81ecdfbb
RW
2053 *\'*)
2054 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6bf9431b
BE
2055 esac
2056 case $ac_pass in
81ecdfbb 2057 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
6bf9431b 2058 2)
81ecdfbb 2059 as_fn_append ac_configure_args1 " '$ac_arg'"
6bf9431b
BE
2060 if test $ac_must_keep_next = true; then
2061 ac_must_keep_next=false # Got value, back to normal.
2062 else
2063 case $ac_arg in
2064 *=* | --config-cache | -C | -disable-* | --disable-* \
2065 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2066 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2067 | -with-* | --with-* | -without-* | --without-* | --x)
2068 case "$ac_configure_args0 " in
2069 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2070 esac
2071 ;;
2072 -* ) ac_must_keep_next=true ;;
2073 esac
2074 fi
81ecdfbb 2075 as_fn_append ac_configure_args " '$ac_arg'"
6bf9431b
BE
2076 ;;
2077 esac
2078 done
2079done
81ecdfbb
RW
2080{ ac_configure_args0=; unset ac_configure_args0;}
2081{ ac_configure_args1=; unset ac_configure_args1;}
6bf9431b
BE
2082
2083# When interrupted or exit'd, cleanup temporary files, and complete
2084# config.log. We remove comments because anyway the quotes in there
2085# would cause problems or look ugly.
81ecdfbb
RW
2086# WARNING: Use '\'' to represent an apostrophe within the trap.
2087# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
6bf9431b
BE
2088trap 'exit_status=$?
2089 # Save into config.log some information that might help in debugging.
2090 {
2091 echo
2092
2093 cat <<\_ASBOX
2094## ---------------- ##
2095## Cache variables. ##
2096## ---------------- ##
2097_ASBOX
2098 echo
2099 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2100(
2101 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2102 eval ac_val=\$$ac_var
2103 case $ac_val in #(
2104 *${as_nl}*)
2105 case $ac_var in #(
2106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2107$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2108 esac
2109 case $ac_var in #(
2110 _ | IFS | as_nl) ;; #(
2111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2112 *) { eval $ac_var=; unset $ac_var;} ;;
2113 esac ;;
2114 esac
2115 done
6bf9431b 2116 (set) 2>&1 |
81ecdfbb
RW
2117 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2118 *${as_nl}ac_space=\ *)
6bf9431b 2119 sed -n \
81ecdfbb
RW
2120 "s/'\''/'\''\\\\'\'''\''/g;
2121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2122 ;; #(
6bf9431b 2123 *)
81ecdfbb 2124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6bf9431b 2125 ;;
81ecdfbb
RW
2126 esac |
2127 sort
2128)
6bf9431b
BE
2129 echo
2130
2131 cat <<\_ASBOX
2132## ----------------- ##
2133## Output variables. ##
2134## ----------------- ##
2135_ASBOX
2136 echo
2137 for ac_var in $ac_subst_vars
2138 do
81ecdfbb
RW
2139 eval ac_val=\$$ac_var
2140 case $ac_val in
2141 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142 esac
2143 $as_echo "$ac_var='\''$ac_val'\''"
6bf9431b
BE
2144 done | sort
2145 echo
2146
2147 if test -n "$ac_subst_files"; then
2148 cat <<\_ASBOX
81ecdfbb
RW
2149## ------------------- ##
2150## File substitutions. ##
2151## ------------------- ##
6bf9431b
BE
2152_ASBOX
2153 echo
2154 for ac_var in $ac_subst_files
2155 do
81ecdfbb
RW
2156 eval ac_val=\$$ac_var
2157 case $ac_val in
2158 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2159 esac
2160 $as_echo "$ac_var='\''$ac_val'\''"
6bf9431b
BE
2161 done | sort
2162 echo
2163 fi
2164
2165 if test -s confdefs.h; then
2166 cat <<\_ASBOX
2167## ----------- ##
2168## confdefs.h. ##
2169## ----------- ##
2170_ASBOX
2171 echo
81ecdfbb 2172 cat confdefs.h
6bf9431b
BE
2173 echo
2174 fi
2175 test "$ac_signal" != 0 &&
81ecdfbb
RW
2176 $as_echo "$as_me: caught signal $ac_signal"
2177 $as_echo "$as_me: exit $exit_status"
6bf9431b 2178 } >&5
81ecdfbb
RW
2179 rm -f core *.core core.conftest.* &&
2180 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
6bf9431b 2181 exit $exit_status
81ecdfbb 2182' 0
6bf9431b 2183for ac_signal in 1 2 13 15; do
81ecdfbb 2184 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
6bf9431b
BE
2185done
2186ac_signal=0
2187
2188# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2189rm -f -r conftest* confdefs.h
2190
2191$as_echo "/* confdefs.h */" > confdefs.h
6bf9431b
BE
2192
2193# Predefined preprocessor variables.
2194
2195cat >>confdefs.h <<_ACEOF
2196#define PACKAGE_NAME "$PACKAGE_NAME"
2197_ACEOF
2198
6bf9431b
BE
2199cat >>confdefs.h <<_ACEOF
2200#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2201_ACEOF
2202
6bf9431b
BE
2203cat >>confdefs.h <<_ACEOF
2204#define PACKAGE_VERSION "$PACKAGE_VERSION"
2205_ACEOF
2206
6bf9431b
BE
2207cat >>confdefs.h <<_ACEOF
2208#define PACKAGE_STRING "$PACKAGE_STRING"
2209_ACEOF
2210
6bf9431b
BE
2211cat >>confdefs.h <<_ACEOF
2212#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2213_ACEOF
2214
81ecdfbb
RW
2215cat >>confdefs.h <<_ACEOF
2216#define PACKAGE_URL "$PACKAGE_URL"
2217_ACEOF
2218
6bf9431b
BE
2219
2220# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2221# Prefer an explicitly selected file to automatically selected ones.
2222ac_site_file1=NONE
2223ac_site_file2=NONE
2224if test -n "$CONFIG_SITE"; then
2225 ac_site_file1=$CONFIG_SITE
2226elif test "x$prefix" != xNONE; then
2227 ac_site_file1=$prefix/share/config.site
2228 ac_site_file2=$prefix/etc/config.site
2229else
2230 ac_site_file1=$ac_default_prefix/share/config.site
2231 ac_site_file2=$ac_default_prefix/etc/config.site
2232fi
2233for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2234do
2235 test "x$ac_site_file" = xNONE && continue
6bf9431b 2236 if test -r "$ac_site_file"; then
81ecdfbb
RW
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2238$as_echo "$as_me: loading site script $ac_site_file" >&6;}
6bf9431b
BE
2239 sed 's/^/| /' "$ac_site_file" >&5
2240 . "$ac_site_file"
2241 fi
2242done
2243
2244if test -r "$cache_file"; then
2245 # Some versions of bash will fail to source /dev/null (special
2246 # files actually), so we avoid doing that.
2247 if test -f "$cache_file"; then
81ecdfbb
RW
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2249$as_echo "$as_me: loading cache $cache_file" >&6;}
6bf9431b 2250 case $cache_file in
81ecdfbb
RW
2251 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2252 *) . "./$cache_file";;
6bf9431b
BE
2253 esac
2254 fi
2255else
81ecdfbb
RW
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2257$as_echo "$as_me: creating cache $cache_file" >&6;}
6bf9431b
BE
2258 >$cache_file
2259fi
2260
2261# Check that the precious variables saved in the cache have kept the same
2262# value.
2263ac_cache_corrupted=false
81ecdfbb 2264for ac_var in $ac_precious_vars; do
6bf9431b
BE
2265 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2266 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2267 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2268 eval ac_new_val=\$ac_env_${ac_var}_value
6bf9431b
BE
2269 case $ac_old_set,$ac_new_set in
2270 set,)
81ecdfbb
RW
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2272$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
6bf9431b
BE
2273 ac_cache_corrupted=: ;;
2274 ,set)
81ecdfbb
RW
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2276$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
6bf9431b
BE
2277 ac_cache_corrupted=: ;;
2278 ,);;
2279 *)
2280 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2281 # differences in whitespace do not lead to failure.
2282 ac_old_val_w=`echo x $ac_old_val`
2283 ac_new_val_w=`echo x $ac_new_val`
2284 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2286$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2287 ac_cache_corrupted=:
2288 else
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2290$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2291 eval $ac_var=\$ac_old_val
2292 fi
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2294$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2296$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
6bf9431b
BE
2297 fi;;
2298 esac
2299 # Pass precious variables to config.status.
2300 if test "$ac_new_set" = set; then
2301 case $ac_new_val in
81ecdfbb 2302 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
6bf9431b
BE
2303 *) ac_arg=$ac_var=$ac_new_val ;;
2304 esac
2305 case " $ac_configure_args " in
2306 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2307 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
6bf9431b
BE
2308 esac
2309 fi
2310done
2311if $ac_cache_corrupted; then
81ecdfbb
RW
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2315$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2316 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
6bf9431b 2317fi
81ecdfbb
RW
2318## -------------------- ##
2319## Main body of script. ##
2320## -------------------- ##
6bf9431b 2321
0ab6f085
AM
2322ac_ext=c
2323ac_cpp='$CPP $CPPFLAGS'
2324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2326ac_compiler_gnu=$ac_cv_c_compiler_gnu
2327
6bf9431b
BE
2328
2329
6bf9431b
BE
2330
2331
2332
2333
2334ac_aux_dir=
81ecdfbb
RW
2335for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2336 for ac_t in install-sh install.sh shtool; do
2337 if test -f "$ac_dir/$ac_t"; then
2338 ac_aux_dir=$ac_dir
2339 ac_install_sh="$ac_aux_dir/$ac_t -c"
2340 break 2
2341 fi
2342 done
6bf9431b
BE
2343done
2344if test -z "$ac_aux_dir"; then
81ecdfbb 2345 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6bf9431b 2346fi
81ecdfbb
RW
2347
2348# These three variables are undocumented and unsupported,
2349# and are intended to be withdrawn in a future Autoconf release.
2350# They can cause serious problems if a builder's source tree is in a directory
2351# whose full name contains unusual characters.
2352ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2353ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2354ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2355
6bf9431b
BE
2356
2357# Make sure we can run config.sub.
81ecdfbb
RW
2358$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2359 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2360
2361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2362$as_echo_n "checking build system type... " >&6; }
2363if test "${ac_cv_build+set}" = set; then :
2364 $as_echo_n "(cached) " >&6
2365else
2366 ac_build_alias=$build_alias
2367test "x$ac_build_alias" = x &&
2368 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2369test "x$ac_build_alias" = x &&
2370 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2371ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2372 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2373
2374fi
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2376$as_echo "$ac_cv_build" >&6; }
2377case $ac_cv_build in
2378*-*-*) ;;
2379*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2380esac
6bf9431b 2381build=$ac_cv_build
81ecdfbb
RW
2382ac_save_IFS=$IFS; IFS='-'
2383set x $ac_cv_build
2384shift
2385build_cpu=$1
2386build_vendor=$2
2387shift; shift
2388# Remember, the first character of IFS is used to create $*,
2389# except with old shells:
2390build_os=$*
2391IFS=$ac_save_IFS
2392case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
0ab6f085
AM
2393
2394
81ecdfbb
RW
2395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2396$as_echo_n "checking host system type... " >&6; }
2397if test "${ac_cv_host+set}" = set; then :
2398 $as_echo_n "(cached) " >&6
6bf9431b 2399else
81ecdfbb
RW
2400 if test "x$host_alias" = x; then
2401 ac_cv_host=$ac_cv_build
2402else
2403 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2404 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2405fi
6bf9431b
BE
2406
2407fi
81ecdfbb
RW
2408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2409$as_echo "$ac_cv_host" >&6; }
2410case $ac_cv_host in
2411*-*-*) ;;
2412*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2413esac
6bf9431b 2414host=$ac_cv_host
81ecdfbb
RW
2415ac_save_IFS=$IFS; IFS='-'
2416set x $ac_cv_host
2417shift
2418host_cpu=$1
2419host_vendor=$2
2420shift; shift
2421# Remember, the first character of IFS is used to create $*,
2422# except with old shells:
2423host_os=$*
2424IFS=$ac_save_IFS
2425case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
0ab6f085
AM
2426
2427
81ecdfbb
RW
2428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2429$as_echo_n "checking target system type... " >&6; }
2430if test "${ac_cv_target+set}" = set; then :
2431 $as_echo_n "(cached) " >&6
2432else
2433 if test "x$target_alias" = x; then
2434 ac_cv_target=$ac_cv_host
6bf9431b 2435else
81ecdfbb
RW
2436 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2437 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2438fi
6bf9431b
BE
2439
2440fi
81ecdfbb
RW
2441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2442$as_echo "$ac_cv_target" >&6; }
2443case $ac_cv_target in
2444*-*-*) ;;
2445*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2446esac
6bf9431b 2447target=$ac_cv_target
81ecdfbb
RW
2448ac_save_IFS=$IFS; IFS='-'
2449set x $ac_cv_target
2450shift
2451target_cpu=$1
2452target_vendor=$2
2453shift; shift
2454# Remember, the first character of IFS is used to create $*,
2455# except with old shells:
2456target_os=$*
2457IFS=$ac_save_IFS
2458case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6bf9431b
BE
2459
2460
2461# The aliases save the names the user supplied, while $host etc.
2462# will get canonicalized.
2463test -n "$target_alias" &&
2464 test "$program_prefix$program_suffix$program_transform_name" = \
2465 NONENONEs,x,x, &&
2466 program_prefix=${target_alias}-
2467ac_ext=c
2468ac_cpp='$CPP $CPPFLAGS'
2469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2471ac_compiler_gnu=$ac_cv_c_compiler_gnu
2472if test -n "$ac_tool_prefix"; then
2473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2474set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2476$as_echo_n "checking for $ac_word... " >&6; }
2477if test "${ac_cv_prog_CC+set}" = set; then :
2478 $as_echo_n "(cached) " >&6
6bf9431b
BE
2479else
2480 if test -n "$CC"; then
2481 ac_cv_prog_CC="$CC" # Let the user override the test.
2482else
2483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484for as_dir in $PATH
2485do
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2490 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2492 break 2
2493 fi
2494done
81ecdfbb
RW
2495 done
2496IFS=$as_save_IFS
6bf9431b
BE
2497
2498fi
2499fi
2500CC=$ac_cv_prog_CC
2501if test -n "$CC"; then
81ecdfbb
RW
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2503$as_echo "$CC" >&6; }
6bf9431b 2504else
81ecdfbb
RW
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2506$as_echo "no" >&6; }
6bf9431b
BE
2507fi
2508
81ecdfbb 2509
6bf9431b
BE
2510fi
2511if test -z "$ac_cv_prog_CC"; then
2512 ac_ct_CC=$CC
2513 # Extract the first word of "gcc", so it can be a program name with args.
2514set dummy gcc; ac_word=$2
81ecdfbb
RW
2515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516$as_echo_n "checking for $ac_word... " >&6; }
2517if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2518 $as_echo_n "(cached) " >&6
6bf9431b
BE
2519else
2520 if test -n "$ac_ct_CC"; then
2521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2522else
2523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524for as_dir in $PATH
2525do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2530 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2532 break 2
2533 fi
2534done
81ecdfbb
RW
2535 done
2536IFS=$as_save_IFS
6bf9431b
BE
2537
2538fi
2539fi
2540ac_ct_CC=$ac_cv_prog_ac_ct_CC
2541if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2543$as_echo "$ac_ct_CC" >&6; }
6bf9431b 2544else
81ecdfbb
RW
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546$as_echo "no" >&6; }
6bf9431b
BE
2547fi
2548
81ecdfbb
RW
2549 if test "x$ac_ct_CC" = x; then
2550 CC=""
2551 else
2552 case $cross_compiling:$ac_tool_warned in
2553yes:)
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2556ac_tool_warned=yes ;;
2557esac
2558 CC=$ac_ct_CC
2559 fi
6bf9431b
BE
2560else
2561 CC="$ac_cv_prog_CC"
2562fi
2563
2564if test -z "$CC"; then
81ecdfbb
RW
2565 if test -n "$ac_tool_prefix"; then
2566 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6bf9431b 2567set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2569$as_echo_n "checking for $ac_word... " >&6; }
2570if test "${ac_cv_prog_CC+set}" = set; then :
2571 $as_echo_n "(cached) " >&6
6bf9431b
BE
2572else
2573 if test -n "$CC"; then
2574 ac_cv_prog_CC="$CC" # Let the user override the test.
2575else
2576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577for as_dir in $PATH
2578do
2579 IFS=$as_save_IFS
2580 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2583 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2585 break 2
2586 fi
2587done
81ecdfbb
RW
2588 done
2589IFS=$as_save_IFS
6bf9431b
BE
2590
2591fi
2592fi
2593CC=$ac_cv_prog_CC
2594if test -n "$CC"; then
81ecdfbb
RW
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2596$as_echo "$CC" >&6; }
0ab6f085 2597else
81ecdfbb
RW
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599$as_echo "no" >&6; }
0ab6f085
AM
2600fi
2601
0ab6f085 2602
81ecdfbb 2603 fi
6bf9431b
BE
2604fi
2605if test -z "$CC"; then
2606 # Extract the first word of "cc", so it can be a program name with args.
2607set dummy cc; ac_word=$2
81ecdfbb
RW
2608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609$as_echo_n "checking for $ac_word... " >&6; }
2610if test "${ac_cv_prog_CC+set}" = set; then :
2611 $as_echo_n "(cached) " >&6
6bf9431b
BE
2612else
2613 if test -n "$CC"; then
2614 ac_cv_prog_CC="$CC" # Let the user override the test.
2615else
2616 ac_prog_rejected=no
2617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618for as_dir in $PATH
2619do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b
BE
2624 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2625 ac_prog_rejected=yes
2626 continue
2627 fi
2628 ac_cv_prog_CC="cc"
81ecdfbb 2629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2630 break 2
2631 fi
2632done
81ecdfbb
RW
2633 done
2634IFS=$as_save_IFS
6bf9431b
BE
2635
2636if test $ac_prog_rejected = yes; then
2637 # We found a bogon in the path, so make sure we never use it.
2638 set dummy $ac_cv_prog_CC
2639 shift
2640 if test $# != 0; then
2641 # We chose a different compiler from the bogus one.
2642 # However, it has the same basename, so the bogon will be chosen
2643 # first if we set CC to just the basename; use the full file name.
2644 shift
2645 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2646 fi
2647fi
2648fi
2649fi
2650CC=$ac_cv_prog_CC
2651if test -n "$CC"; then
81ecdfbb
RW
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2653$as_echo "$CC" >&6; }
6bf9431b 2654else
81ecdfbb
RW
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656$as_echo "no" >&6; }
6bf9431b
BE
2657fi
2658
81ecdfbb 2659
6bf9431b
BE
2660fi
2661if test -z "$CC"; then
2662 if test -n "$ac_tool_prefix"; then
81ecdfbb 2663 for ac_prog in cl.exe
6bf9431b
BE
2664 do
2665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2666set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668$as_echo_n "checking for $ac_word... " >&6; }
2669if test "${ac_cv_prog_CC+set}" = set; then :
2670 $as_echo_n "(cached) " >&6
6bf9431b
BE
2671else
2672 if test -n "$CC"; then
2673 ac_cv_prog_CC="$CC" # Let the user override the test.
2674else
2675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676for as_dir in $PATH
2677do
2678 IFS=$as_save_IFS
2679 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2682 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2684 break 2
2685 fi
2686done
81ecdfbb
RW
2687 done
2688IFS=$as_save_IFS
6bf9431b
BE
2689
2690fi
2691fi
2692CC=$ac_cv_prog_CC
2693if test -n "$CC"; then
81ecdfbb
RW
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2695$as_echo "$CC" >&6; }
6bf9431b 2696else
81ecdfbb
RW
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698$as_echo "no" >&6; }
6bf9431b
BE
2699fi
2700
81ecdfbb 2701
6bf9431b
BE
2702 test -n "$CC" && break
2703 done
2704fi
2705if test -z "$CC"; then
2706 ac_ct_CC=$CC
81ecdfbb 2707 for ac_prog in cl.exe
6bf9431b
BE
2708do
2709 # Extract the first word of "$ac_prog", so it can be a program name with args.
2710set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712$as_echo_n "checking for $ac_word... " >&6; }
2713if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2714 $as_echo_n "(cached) " >&6
6bf9431b
BE
2715else
2716 if test -n "$ac_ct_CC"; then
2717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2718else
2719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720for as_dir in $PATH
2721do
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2726 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2728 break 2
2729 fi
2730done
81ecdfbb
RW
2731 done
2732IFS=$as_save_IFS
6bf9431b
BE
2733
2734fi
2735fi
2736ac_ct_CC=$ac_cv_prog_ac_ct_CC
2737if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2739$as_echo "$ac_ct_CC" >&6; }
6bf9431b 2740else
81ecdfbb
RW
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742$as_echo "no" >&6; }
6bf9431b
BE
2743fi
2744
81ecdfbb 2745
6bf9431b
BE
2746 test -n "$ac_ct_CC" && break
2747done
2748
81ecdfbb
RW
2749 if test "x$ac_ct_CC" = x; then
2750 CC=""
2751 else
2752 case $cross_compiling:$ac_tool_warned in
2753yes:)
2754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2756ac_tool_warned=yes ;;
2757esac
2758 CC=$ac_ct_CC
2759 fi
6bf9431b
BE
2760fi
2761
2762fi
2763
2764
81ecdfbb
RW
2765test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2767as_fn_error "no acceptable C compiler found in \$PATH
2768See \`config.log' for more details." "$LINENO" 5; }
6bf9431b
BE
2769
2770# Provide some information about the compiler.
81ecdfbb
RW
2771$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2772set X $ac_compile
2773ac_compiler=$2
2774for ac_option in --version -v -V -qversion; do
2775 { { ac_try="$ac_compiler $ac_option >&5"
2776case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779esac
2780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2781$as_echo "$ac_try_echo"; } >&5
2782 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6bf9431b 2783 ac_status=$?
81ecdfbb
RW
2784 if test -s conftest.err; then
2785 sed '10a\
2786... rest of stderr output deleted ...
2787 10q' conftest.err >conftest.er1
2788 cat conftest.er1 >&5
2789 rm -f conftest.er1 conftest.err
2790 fi
2791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2792 test $ac_status = 0; }
2793done
6bf9431b 2794
81ecdfbb 2795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
2796/* end confdefs.h. */
2797
2798int
2799main ()
2800{
2801
2802 ;
2803 return 0;
2804}
2805_ACEOF
2806ac_clean_files_save=$ac_clean_files
81ecdfbb 2807ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
6bf9431b
BE
2808# Try to create an executable without -o first, disregard a.out.
2809# It will help us diagnose broken compilers, and finding out an intuition
2810# of exeext.
81ecdfbb
RW
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2812$as_echo_n "checking for C compiler default output file name... " >&6; }
2813ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2814
2815# The possible output files:
2816ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2817
2818ac_rmfiles=
2819for ac_file in $ac_files
2820do
2821 case $ac_file in
2822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2823 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2824 esac
2825done
2826rm -f $ac_rmfiles
2827
2828if { { ac_try="$ac_link_default"
2829case "(($ac_try" in
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831 *) ac_try_echo=$ac_try;;
2832esac
2833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2834$as_echo "$ac_try_echo"; } >&5
2835 (eval "$ac_link_default") 2>&5
2836 ac_status=$?
2837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2838 test $ac_status = 0; }; then :
2839 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2840# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2841# in a Makefile. We should not override ac_cv_exeext if it was cached,
2842# so that the user can short-circuit this test for compilers unknown to
2843# Autoconf.
2844for ac_file in $ac_files ''
6bf9431b
BE
2845do
2846 test -f "$ac_file" || continue
2847 case $ac_file in
81ecdfbb 2848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6bf9431b
BE
2849 ;;
2850 [ab].out )
2851 # We found the default executable, but exeext='' is most
2852 # certainly right.
2853 break;;
2854 *.* )
81ecdfbb
RW
2855 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2856 then :; else
2857 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2858 fi
2859 # We set ac_cv_exeext here because the later test for it is not
2860 # safe: cross compilers may not add the suffix if given an `-o'
2861 # argument, so we may need to know it at that point already.
2862 # Even if this section looks crufty: it has the advantage of
2863 # actually working.
6bf9431b
BE
2864 break;;
2865 * )
2866 break;;
2867 esac
2868done
81ecdfbb
RW
2869test "$ac_cv_exeext" = no && ac_cv_exeext=
2870
6bf9431b 2871else
81ecdfbb
RW
2872 ac_file=''
2873fi
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2875$as_echo "$ac_file" >&6; }
2876if test -z "$ac_file"; then :
2877 $as_echo "$as_me: failed program was:" >&5
6bf9431b
BE
2878sed 's/^/| /' conftest.$ac_ext >&5
2879
81ecdfbb
RW
2880{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2882{ as_fn_set_status 77
2883as_fn_error "C compiler cannot create executables
2884See \`config.log' for more details." "$LINENO" 5; }; }
6bf9431b 2885fi
6bf9431b 2886ac_exeext=$ac_cv_exeext
6bf9431b 2887
81ecdfbb 2888# Check that the compiler produces executables we can run. If not, either
6bf9431b 2889# the compiler is broken, or we cross compile.
81ecdfbb
RW
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2891$as_echo_n "checking whether the C compiler works... " >&6; }
6bf9431b
BE
2892# If not cross compiling, check that we can run a simple program.
2893if test "$cross_compiling" != yes; then
2894 if { ac_try='./$ac_file'
81ecdfbb
RW
2895 { { case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898esac
2899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2900$as_echo "$ac_try_echo"; } >&5
2901 (eval "$ac_try") 2>&5
6bf9431b 2902 ac_status=$?
81ecdfbb
RW
2903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2904 test $ac_status = 0; }; }; then
6bf9431b
BE
2905 cross_compiling=no
2906 else
2907 if test "$cross_compiling" = maybe; then
2908 cross_compiling=yes
2909 else
81ecdfbb
RW
2910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2912as_fn_error "cannot run C compiled programs.
6bf9431b 2913If you meant to cross compile, use \`--host'.
81ecdfbb 2914See \`config.log' for more details." "$LINENO" 5; }
6bf9431b
BE
2915 fi
2916 fi
2917fi
81ecdfbb
RW
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2919$as_echo "yes" >&6; }
6bf9431b 2920
81ecdfbb 2921rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
6bf9431b 2922ac_clean_files=$ac_clean_files_save
81ecdfbb 2923# Check that the compiler produces executables we can run. If not, either
6bf9431b 2924# the compiler is broken, or we cross compile.
81ecdfbb
RW
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2926$as_echo_n "checking whether we are cross compiling... " >&6; }
2927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2928$as_echo "$cross_compiling" >&6; }
2929
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2931$as_echo_n "checking for suffix of executables... " >&6; }
2932if { { ac_try="$ac_link"
2933case "(($ac_try" in
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2936esac
2937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2938$as_echo "$ac_try_echo"; } >&5
2939 (eval "$ac_link") 2>&5
6bf9431b 2940 ac_status=$?
81ecdfbb
RW
2941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2942 test $ac_status = 0; }; then :
6bf9431b
BE
2943 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2944# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2945# work properly (i.e., refer to `conftest.exe'), while it won't with
2946# `rm'.
2947for ac_file in conftest.exe conftest conftest.*; do
2948 test -f "$ac_file" || continue
2949 case $ac_file in
81ecdfbb 2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6bf9431b 2951 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6bf9431b
BE
2952 break;;
2953 * ) break;;
2954 esac
2955done
2956else
81ecdfbb
RW
2957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2958$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2959as_fn_error "cannot compute suffix of executables: cannot compile and link
2960See \`config.log' for more details." "$LINENO" 5; }
6bf9431b 2961fi
6bf9431b 2962rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2964$as_echo "$ac_cv_exeext" >&6; }
6bf9431b
BE
2965
2966rm -f conftest.$ac_ext
2967EXEEXT=$ac_cv_exeext
2968ac_exeext=$EXEEXT
81ecdfbb
RW
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2970$as_echo_n "checking for suffix of object files... " >&6; }
2971if test "${ac_cv_objext+set}" = set; then :
2972 $as_echo_n "(cached) " >&6
6bf9431b 2973else
81ecdfbb 2974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
2975/* end confdefs.h. */
2976
2977int
2978main ()
2979{
2980
2981 ;
2982 return 0;
2983}
2984_ACEOF
2985rm -f conftest.o conftest.obj
81ecdfbb
RW
2986if { { ac_try="$ac_compile"
2987case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990esac
2991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2992$as_echo "$ac_try_echo"; } >&5
2993 (eval "$ac_compile") 2>&5
2994 ac_status=$?
2995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2996 test $ac_status = 0; }; then :
2997 for ac_file in conftest.o conftest.obj conftest.*; do
2998 test -f "$ac_file" || continue;
6bf9431b 2999 case $ac_file in
81ecdfbb 3000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6bf9431b
BE
3001 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3002 break;;
3003 esac
3004done
3005else
81ecdfbb 3006 $as_echo "$as_me: failed program was:" >&5
6bf9431b
BE
3007sed 's/^/| /' conftest.$ac_ext >&5
3008
81ecdfbb
RW
3009{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3011as_fn_error "cannot compute suffix of object files: cannot compile
3012See \`config.log' for more details." "$LINENO" 5; }
6bf9431b 3013fi
6bf9431b
BE
3014rm -f conftest.$ac_cv_objext conftest.$ac_ext
3015fi
81ecdfbb
RW
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3017$as_echo "$ac_cv_objext" >&6; }
6bf9431b
BE
3018OBJEXT=$ac_cv_objext
3019ac_objext=$OBJEXT
81ecdfbb
RW
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3021$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3022if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3023 $as_echo_n "(cached) " >&6
6bf9431b 3024else
81ecdfbb 3025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
3026/* end confdefs.h. */
3027
3028int
3029main ()
3030{
3031#ifndef __GNUC__
3032 choke me
3033#endif
3034
3035 ;
3036 return 0;
3037}
3038_ACEOF
81ecdfbb 3039if ac_fn_c_try_compile "$LINENO"; then :
6bf9431b
BE
3040 ac_compiler_gnu=yes
3041else
81ecdfbb 3042 ac_compiler_gnu=no
6bf9431b 3043fi
81ecdfbb 3044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b
BE
3045ac_cv_c_compiler_gnu=$ac_compiler_gnu
3046
3047fi
81ecdfbb
RW
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3049$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3050if test $ac_compiler_gnu = yes; then
3051 GCC=yes
3052else
3053 GCC=
3054fi
6bf9431b
BE
3055ac_test_CFLAGS=${CFLAGS+set}
3056ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3058$as_echo_n "checking whether $CC accepts -g... " >&6; }
3059if test "${ac_cv_prog_cc_g+set}" = set; then :
3060 $as_echo_n "(cached) " >&6
3061else
3062 ac_save_c_werror_flag=$ac_c_werror_flag
3063 ac_c_werror_flag=yes
3064 ac_cv_prog_cc_g=no
3065 CFLAGS="-g"
3066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
3067/* end confdefs.h. */
3068
3069int
3070main ()
3071{
3072
3073 ;
3074 return 0;
3075}
3076_ACEOF
81ecdfbb 3077if ac_fn_c_try_compile "$LINENO"; then :
6bf9431b
BE
3078 ac_cv_prog_cc_g=yes
3079else
81ecdfbb
RW
3080 CFLAGS=""
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082/* end confdefs.h. */
3083
3084int
3085main ()
3086{
3087
3088 ;
3089 return 0;
3090}
3091_ACEOF
3092if ac_fn_c_try_compile "$LINENO"; then :
3093
3094else
3095 ac_c_werror_flag=$ac_save_c_werror_flag
3096 CFLAGS="-g"
3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098/* end confdefs.h. */
3099
3100int
3101main ()
3102{
6bf9431b 3103
81ecdfbb
RW
3104 ;
3105 return 0;
3106}
3107_ACEOF
3108if ac_fn_c_try_compile "$LINENO"; then :
3109 ac_cv_prog_cc_g=yes
3110fi
3111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b 3112fi
81ecdfbb 3113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b 3114fi
81ecdfbb
RW
3115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3116 ac_c_werror_flag=$ac_save_c_werror_flag
3117fi
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3119$as_echo "$ac_cv_prog_cc_g" >&6; }
6bf9431b
BE
3120if test "$ac_test_CFLAGS" = set; then
3121 CFLAGS=$ac_save_CFLAGS
3122elif test $ac_cv_prog_cc_g = yes; then
3123 if test "$GCC" = yes; then
3124 CFLAGS="-g -O2"
3125 else
3126 CFLAGS="-g"
3127 fi
3128else
3129 if test "$GCC" = yes; then
3130 CFLAGS="-O2"
3131 else
3132 CFLAGS=
3133 fi
3134fi
81ecdfbb
RW
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3136$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3137if test "${ac_cv_prog_cc_c89+set}" = set; then :
3138 $as_echo_n "(cached) " >&6
6bf9431b 3139else
81ecdfbb 3140 ac_cv_prog_cc_c89=no
6bf9431b 3141ac_save_CC=$CC
81ecdfbb 3142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
3143/* end confdefs.h. */
3144#include <stdarg.h>
3145#include <stdio.h>
3146#include <sys/types.h>
3147#include <sys/stat.h>
3148/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3149struct buf { int x; };
3150FILE * (*rcsopen) (struct buf *, struct stat *, int);
3151static char *e (p, i)
3152 char **p;
3153 int i;
3154{
3155 return p[i];
3156}
3157static char *f (char * (*g) (char **, int), char **p, ...)
3158{
3159 char *s;
3160 va_list v;
3161 va_start (v,p);
3162 s = g (p, va_arg (v,int));
3163 va_end (v);
3164 return s;
3165}
3166
3167/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3168 function prototypes and stuff, but not '\xHH' hex character constants.
3169 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3170 as 'x'. The following induces an error, until -std is added to get
6bf9431b
BE
3171 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3172 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3173 that's true only with -std. */
6bf9431b
BE
3174int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3175
81ecdfbb
RW
3176/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3177 inside strings and character constants. */
3178#define FOO(x) 'x'
3179int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3180
6bf9431b
BE
3181int test (int i, double x);
3182struct s1 {int (*f) (int a);};
3183struct s2 {int (*f) (double a);};
3184int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3185int argc;
3186char **argv;
3187int
3188main ()
3189{
3190return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3191 ;
3192 return 0;
3193}
3194_ACEOF
81ecdfbb
RW
3195for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3196 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6bf9431b
BE
3197do
3198 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3199 if ac_fn_c_try_compile "$LINENO"; then :
3200 ac_cv_prog_cc_c89=$ac_arg
6bf9431b 3201fi
81ecdfbb
RW
3202rm -f core conftest.err conftest.$ac_objext
3203 test "x$ac_cv_prog_cc_c89" != "xno" && break
6bf9431b 3204done
81ecdfbb 3205rm -f conftest.$ac_ext
6bf9431b
BE
3206CC=$ac_save_CC
3207
3208fi
81ecdfbb
RW
3209# AC_CACHE_VAL
3210case "x$ac_cv_prog_cc_c89" in
3211 x)
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3213$as_echo "none needed" >&6; } ;;
3214 xno)
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3216$as_echo "unsupported" >&6; } ;;
6bf9431b 3217 *)
81ecdfbb
RW
3218 CC="$CC $ac_cv_prog_cc_c89"
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3220$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6bf9431b 3221esac
81ecdfbb 3222if test "x$ac_cv_prog_cc_c89" != xno; then :
6bf9431b 3223
0ab6f085
AM
3224fi
3225
6bf9431b
BE
3226ac_ext=c
3227ac_cpp='$CPP $CPPFLAGS'
3228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231
3232
81ecdfbb
RW
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3234$as_echo_n "checking for library containing strerror... " >&6; }
3235if test "${ac_cv_search_strerror+set}" = set; then :
3236 $as_echo_n "(cached) " >&6
6bf9431b
BE
3237else
3238 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
3240/* end confdefs.h. */
3241
81ecdfbb
RW
3242/* Override any GCC internal prototype to avoid an error.
3243 Use char because int might match the return type of a GCC
3244 builtin and then its argument prototype would still apply. */
6bf9431b
BE
3245#ifdef __cplusplus
3246extern "C"
3247#endif
6bf9431b
BE
3248char strerror ();
3249int
3250main ()
3251{
81ecdfbb 3252return strerror ();
6bf9431b
BE
3253 ;
3254 return 0;
3255}
3256_ACEOF
81ecdfbb
RW
3257for ac_lib in '' cposix; do
3258 if test -z "$ac_lib"; then
3259 ac_res="none required"
3260 else
3261 ac_res=-l$ac_lib
0ab6f085 3262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3263 fi
3264 if ac_fn_c_try_link "$LINENO"; then :
3265 ac_cv_search_strerror=$ac_res
3266fi
3267rm -f core conftest.err conftest.$ac_objext \
3268 conftest$ac_exeext
3269 if test "${ac_cv_search_strerror+set}" = set; then :
3270 break
3271fi
3272done
3273if test "${ac_cv_search_strerror+set}" = set; then :
6bf9431b 3274
1b9750d6 3275else
81ecdfbb 3276 ac_cv_search_strerror=no
6bf9431b 3277fi
81ecdfbb 3278rm conftest.$ac_ext
6bf9431b
BE
3279LIBS=$ac_func_search_save_LIBS
3280fi
81ecdfbb
RW
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3282$as_echo "$ac_cv_search_strerror" >&6; }
3283ac_res=$ac_cv_search_strerror
3284if test "$ac_res" != no; then :
3285 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6bf9431b
BE
3286
3287fi
3288
3289
3290BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
81ecdfbb
RW
3291am__api_version='1.11'
3292
6bf9431b
BE
3293# Find a good install program. We prefer a C program (faster),
3294# so one script is as good as another. But avoid the broken or
3295# incompatible versions:
3296# SysV /etc/install, /usr/sbin/install
3297# SunOS /usr/etc/install
3298# IRIX /sbin/install
3299# AIX /bin/install
3300# AmigaOS /C/install, which installs bootblocks on floppy discs
3301# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3302# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3303# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3304# OS/2's system install, which has a completely different semantic
3305# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3306# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3308$as_echo_n "checking for a BSD-compatible install... " >&6; }
6bf9431b 3309if test -z "$INSTALL"; then
81ecdfbb
RW
3310if test "${ac_cv_path_install+set}" = set; then :
3311 $as_echo_n "(cached) " >&6
6bf9431b
BE
3312else
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314for as_dir in $PATH
3315do
3316 IFS=$as_save_IFS
3317 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3318 # Account for people who put trailing slashes in PATH elements.
3319case $as_dir/ in #((
3320 ./ | .// | /[cC]/* | \
6bf9431b 3321 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3322 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6bf9431b
BE
3323 /usr/ucb/* ) ;;
3324 *)
3325 # OSF1 and SCO ODT 3.0 have their own names for install.
3326 # Don't use installbsd from OSF since it installs stuff as root
3327 # by default.
3328 for ac_prog in ginstall scoinst install; do
3329 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3330 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6bf9431b
BE
3331 if test $ac_prog = install &&
3332 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3333 # AIX install. It has an incompatible calling convention.
3334 :
3335 elif test $ac_prog = install &&
3336 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3337 # program-specific install script used by HP pwplus--don't use.
3338 :
252b5132 3339 else
58c85be7
RW
3340 rm -rf conftest.one conftest.two conftest.dir
3341 echo one > conftest.one
3342 echo two > conftest.two
3343 mkdir conftest.dir
3344 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3345 test -s conftest.one && test -s conftest.two &&
3346 test -s conftest.dir/conftest.one &&
3347 test -s conftest.dir/conftest.two
3348 then
3349 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3350 break 3
3351 fi
252b5132
RH
3352 fi
3353 fi
3354 done
6bf9431b
BE
3355 done
3356 ;;
3357esac
81ecdfbb
RW
3358
3359 done
3360IFS=$as_save_IFS
6bf9431b 3361
58c85be7 3362rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3363
3364fi
3365 if test "${ac_cv_path_install+set}" = set; then
6bf9431b 3366 INSTALL=$ac_cv_path_install
252b5132 3367 else
58c85be7
RW
3368 # As a last resort, use the slow shell script. Don't cache a
3369 # value for INSTALL within a source directory, because that will
252b5132 3370 # break other packages using the cache if that directory is
58c85be7 3371 # removed, or if the value is a relative name.
6bf9431b 3372 INSTALL=$ac_install_sh
252b5132
RH
3373 fi
3374fi
81ecdfbb
RW
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3376$as_echo "$INSTALL" >&6; }
252b5132
RH
3377
3378# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3379# It thinks the first close brace ends the variable substitution.
3380test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3381
6bf9431b 3382test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3383
3384test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3385
81ecdfbb
RW
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3387$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3388# Just in case
3389sleep 1
6bf9431b 3390echo timestamp > conftest.file
81ecdfbb
RW
3391# Reject unsafe characters in $srcdir or the absolute working directory
3392# name. Accept space and tab only in the latter.
3393am_lf='
3394'
3395case `pwd` in
3396 *[\\\"\#\$\&\'\`$am_lf]*)
3397 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3398esac
3399case $srcdir in
3400 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3401 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3402esac
3403
252b5132
RH
3404# Do `set' in a subshell so we don't clobber the current shell's
3405# arguments. Must try -L first in case configure is actually a
3406# symlink; some systems play weird games with the mod time of symlinks
3407# (eg FreeBSD returns the mod time of the symlink's containing
3408# directory).
3409if (
81ecdfbb 3410 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3411 if test "$*" = "X"; then
3412 # -L didn't work.
81ecdfbb 3413 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3414 fi
6bf9431b
BE
3415 rm -f conftest.file
3416 if test "$*" != "X $srcdir/configure conftest.file" \
3417 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3418
3419 # If neither matched, then we have a broken ls. This can happen
3420 # if, for instance, CONFIG_SHELL is bash and it inherits a
3421 # broken ls alias from the environment. This has actually
3422 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3423 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3424alias in your environment" "$LINENO" 5
252b5132
RH
3425 fi
3426
6bf9431b 3427 test "$2" = conftest.file
252b5132
RH
3428 )
3429then
3430 # Ok.
3431 :
3432else
81ecdfbb
RW
3433 as_fn_error "newly created file is older than distributed files!
3434Check your system clock" "$LINENO" 5
252b5132 3435fi
81ecdfbb
RW
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3437$as_echo "yes" >&6; }
252b5132 3438test "$program_prefix" != NONE &&
81ecdfbb 3439 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3440# Use a double $ so make ignores it.
3441test "$program_suffix" != NONE &&
81ecdfbb
RW
3442 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3443# Double any \ or $.
6bf9431b 3444# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3445ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3446program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6bf9431b
BE
3447
3448# expand $ac_aux_dir to an absolute path
3449am_aux_dir=`cd $ac_aux_dir && pwd`
3450
81ecdfbb
RW
3451if test x"${MISSING+set}" != xset; then
3452 case $am_aux_dir in
3453 *\ * | *\ *)
3454 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3455 *)
3456 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3457 esac
3458fi
6bf9431b
BE
3459# Use eval to expand $SHELL
3460if eval "$MISSING --run true"; then
3461 am_missing_run="$MISSING --run "
3462else
3463 am_missing_run=
81ecdfbb
RW
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3465$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6bf9431b 3466fi
252b5132 3467
81ecdfbb
RW
3468if test x"${install_sh}" != xset; then
3469 case $am_aux_dir in
3470 *\ * | *\ *)
3471 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3472 *)
3473 install_sh="\${SHELL} $am_aux_dir/install-sh"
3474 esac
3475fi
3476
3477# Installed binaries are usually stripped using `strip' when the user
3478# run `make install-strip'. However `strip' might not be the right
3479# tool to use in cross-compilation environments, therefore Automake
3480# will honor the `STRIP' environment variable to overrule this program.
3481if test "$cross_compiling" != no; then
3482 if test -n "$ac_tool_prefix"; then
3483 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3484set dummy ${ac_tool_prefix}strip; ac_word=$2
3485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486$as_echo_n "checking for $ac_word... " >&6; }
3487if test "${ac_cv_prog_STRIP+set}" = set; then :
3488 $as_echo_n "(cached) " >&6
6bf9431b 3489else
81ecdfbb
RW
3490 if test -n "$STRIP"; then
3491 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6bf9431b
BE
3492else
3493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494for as_dir in $PATH
3495do
3496 IFS=$as_save_IFS
3497 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3500 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
3502 break 2
3503 fi
3504done
81ecdfbb
RW
3505 done
3506IFS=$as_save_IFS
6bf9431b
BE
3507
3508fi
3509fi
81ecdfbb
RW
3510STRIP=$ac_cv_prog_STRIP
3511if test -n "$STRIP"; then
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3513$as_echo "$STRIP" >&6; }
6bf9431b 3514else
81ecdfbb
RW
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516$as_echo "no" >&6; }
6bf9431b
BE
3517fi
3518
252b5132 3519
81ecdfbb
RW
3520fi
3521if test -z "$ac_cv_prog_STRIP"; then
3522 ac_ct_STRIP=$STRIP
3523 # Extract the first word of "strip", so it can be a program name with args.
3524set dummy strip; ac_word=$2
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526$as_echo_n "checking for $ac_word... " >&6; }
3527if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3528 $as_echo_n "(cached) " >&6
252b5132 3529else
81ecdfbb
RW
3530 if test -n "$ac_ct_STRIP"; then
3531 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
0ab6f085 3532else
81ecdfbb
RW
3533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534for as_dir in $PATH
3535do
3536 IFS=$as_save_IFS
3537 test -z "$as_dir" && as_dir=.
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3540 ac_cv_prog_ac_ct_STRIP="strip"
3541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542 break 2
3543 fi
3544done
3545 done
3546IFS=$as_save_IFS
3547
0ab6f085 3548fi
252b5132 3549fi
81ecdfbb
RW
3550ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3551if test -n "$ac_ct_STRIP"; then
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3553$as_echo "$ac_ct_STRIP" >&6; }
252b5132 3554else
81ecdfbb
RW
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556$as_echo "no" >&6; }
252b5132
RH
3557fi
3558
81ecdfbb
RW
3559 if test "x$ac_ct_STRIP" = x; then
3560 STRIP=":"
3561 else
3562 case $cross_compiling:$ac_tool_warned in
3563yes:)
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3566ac_tool_warned=yes ;;
3567esac
3568 STRIP=$ac_ct_STRIP
3569 fi
3570else
3571 STRIP="$ac_cv_prog_STRIP"
3572fi
3573
3574fi
3575INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3576
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3578$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3579if test -z "$MKDIR_P"; then
3580 if test "${ac_cv_path_mkdir+set}" = set; then :
3581 $as_echo_n "(cached) " >&6
3582else
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3585do
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
3588 for ac_prog in mkdir gmkdir; do
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3591 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3592 'mkdir (GNU coreutils) '* | \
3593 'mkdir (coreutils) '* | \
3594 'mkdir (fileutils) '4.1*)
3595 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3596 break 3;;
3597 esac
3598 done
3599 done
3600 done
3601IFS=$as_save_IFS
3602
3603fi
3604
3605 if test "${ac_cv_path_mkdir+set}" = set; then
3606 MKDIR_P="$ac_cv_path_mkdir -p"
3607 else
3608 # As a last resort, use the slow shell script. Don't cache a
3609 # value for MKDIR_P within a source directory, because that will
3610 # break other packages using the cache if that directory is
3611 # removed, or if the value is a relative name.
3612 test -d ./--version && rmdir ./--version
3613 MKDIR_P="$ac_install_sh -d"
3614 fi
3615fi
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3617$as_echo "$MKDIR_P" >&6; }
3618
3619mkdir_p="$MKDIR_P"
3620case $mkdir_p in
3621 [\\/$]* | ?:[\\/]*) ;;
3622 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3623esac
3624
3625for ac_prog in gawk mawk nawk awk
3626do
3627 # Extract the first word of "$ac_prog", so it can be a program name with args.
3628set dummy $ac_prog; ac_word=$2
3629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630$as_echo_n "checking for $ac_word... " >&6; }
3631if test "${ac_cv_prog_AWK+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3633else
3634 if test -n "$AWK"; then
3635 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3636else
3637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638for as_dir in $PATH
3639do
3640 IFS=$as_save_IFS
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3644 ac_cv_prog_AWK="$ac_prog"
3645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 break 2
3647 fi
3648done
3649 done
3650IFS=$as_save_IFS
3651
3652fi
3653fi
3654AWK=$ac_cv_prog_AWK
3655if test -n "$AWK"; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3657$as_echo "$AWK" >&6; }
3658else
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660$as_echo "no" >&6; }
3661fi
3662
3663
3664 test -n "$AWK" && break
3665done
3666
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3668$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3669set x ${MAKE-make}
3670ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3671if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3672 $as_echo_n "(cached) " >&6
3673else
3674 cat >conftest.make <<\_ACEOF
3675SHELL = /bin/sh
3676all:
3677 @echo '@@@%%%=$(MAKE)=@@@%%%'
3678_ACEOF
3679# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3680case `${MAKE-make} -f conftest.make 2>/dev/null` in
3681 *@@@%%%=?*=@@@%%%*)
3682 eval ac_cv_prog_make_${ac_make}_set=yes;;
3683 *)
3684 eval ac_cv_prog_make_${ac_make}_set=no;;
3685esac
3686rm -f conftest.make
3687fi
3688if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3690$as_echo "yes" >&6; }
3691 SET_MAKE=
3692else
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694$as_echo "no" >&6; }
3695 SET_MAKE="MAKE=${MAKE-make}"
3696fi
3697
3698rm -rf .tst 2>/dev/null
6bf9431b
BE
3699mkdir .tst 2>/dev/null
3700if test -d .tst; then
3701 am__leading_dot=.
3702else
3703 am__leading_dot=_
3704fi
3705rmdir .tst 2>/dev/null
3706
3707DEPDIR="${am__leading_dot}deps"
3708
81ecdfbb 3709ac_config_commands="$ac_config_commands depfiles"
6bf9431b
BE
3710
3711
3712am_make=${MAKE-make}
3713cat > confinc << 'END'
3714am__doit:
81ecdfbb 3715 @echo this is the am__doit target
6bf9431b
BE
3716.PHONY: am__doit
3717END
3718# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3720$as_echo_n "checking for style of include used by $am_make... " >&6; }
6bf9431b
BE
3721am__include="#"
3722am__quote=
3723_am_result=none
3724# First try GNU make style include.
3725echo "include confinc" > confmf
81ecdfbb
RW
3726# Ignore all kinds of additional output from `make'.
3727case `$am_make -s -f confmf 2> /dev/null` in #(
3728*the\ am__doit\ target*)
3729 am__include=include
3730 am__quote=
3731 _am_result=GNU
3732 ;;
3733esac
6bf9431b
BE
3734# Now try BSD make style include.
3735if test "$am__include" = "#"; then
3736 echo '.include "confinc"' > confmf
81ecdfbb
RW
3737 case `$am_make -s -f confmf 2> /dev/null` in #(
3738 *the\ am__doit\ target*)
3739 am__include=.include
3740 am__quote="\""
3741 _am_result=BSD
3742 ;;
3743 esac
6bf9431b
BE
3744fi
3745
252b5132 3746
81ecdfbb
RW
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3748$as_echo "$_am_result" >&6; }
6bf9431b 3749rm -f confinc confmf
252b5132 3750
81ecdfbb
RW
3751# Check whether --enable-dependency-tracking was given.
3752if test "${enable_dependency_tracking+set}" = set; then :
3753 enableval=$enable_dependency_tracking;
3754fi
252b5132 3755
6bf9431b
BE
3756if test "x$enable_dependency_tracking" != xno; then
3757 am_depcomp="$ac_aux_dir/depcomp"
3758 AMDEPBACKSLASH='\'
252b5132 3759fi
81ecdfbb 3760 if test "x$enable_dependency_tracking" != xno; then
6bf9431b
BE
3761 AMDEP_TRUE=
3762 AMDEP_FALSE='#'
3763else
3764 AMDEP_TRUE='#'
3765 AMDEP_FALSE=
3766fi
3767
3768
81ecdfbb
RW
3769if test "`cd $srcdir && pwd`" != "`pwd`"; then
3770 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3771 # is not polluted with repeated "-I."
3772 am__isrc=' -I$(srcdir)'
3773 # test to see if srcdir already configured
3774 if test -f $srcdir/config.status; then
3775 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3776 fi
6bf9431b
BE
3777fi
3778
3779# test whether we have cygpath
3780if test -z "$CYGPATH_W"; then
3781 if (cygpath --version) >/dev/null 2>/dev/null; then
3782 CYGPATH_W='cygpath -w'
3783 else
3784 CYGPATH_W=echo
3785 fi
3786fi
3787
3788
3789# Define the identity of the package.
3790 PACKAGE=gprof
3791 VERSION=${BFD_VERSION}
3792
3793
3794cat >>confdefs.h <<_ACEOF
252b5132 3795#define PACKAGE "$PACKAGE"
6bf9431b
BE
3796_ACEOF
3797
252b5132 3798
6bf9431b 3799cat >>confdefs.h <<_ACEOF
252b5132 3800#define VERSION "$VERSION"
6bf9431b
BE
3801_ACEOF
3802
3803# Some tools Automake needs.
3804
3805ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3806
3807
3808AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3809
3810
3811AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3812
3813
3814AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3815
3816
3817MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3818
6bf9431b
BE
3819# We need awk for the "check" target. The system "awk" is bad on
3820# some platforms.
df76639a
AM
3821# Always define AMTAR for backward compatibility.
3822
3823AMTAR=${AMTAR-"${am_missing_run}tar"}
3824
3825am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3826
3827
6bf9431b
BE
3828
3829
3830depcc="$CC" am_compiler_list=
3831
81ecdfbb
RW
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3833$as_echo_n "checking dependency style of $depcc... " >&6; }
3834if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3835 $as_echo_n "(cached) " >&6
6bf9431b
BE
3836else
3837 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3838 # We make a subdir and do the tests there. Otherwise we can end up
3839 # making bogus files that we don't know about and never remove. For
3840 # instance it was reported that on HP-UX the gcc test will end up
3841 # making a dummy file named `D' -- because `-MD' means `put the output
3842 # in D'.
3843 mkdir conftest.dir
3844 # Copy depcomp to subdir because otherwise we won't find it if we're
3845 # using a relative directory.
3846 cp "$am_depcomp" conftest.dir
3847 cd conftest.dir
3848 # We will build objects and dependencies in a subdirectory because
3849 # it helps to detect inapplicable dependency modes. For instance
3850 # both Tru64's cc and ICC support -MD to output dependencies as a
3851 # side effect of compilation, but ICC will put the dependencies in
3852 # the current directory while Tru64 will put them in the object
3853 # directory.
3854 mkdir sub
3855
3856 am_cv_CC_dependencies_compiler_type=none
3857 if test "$am_compiler_list" = ""; then
3858 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3859 fi
81ecdfbb
RW
3860 am__universal=false
3861 case " $depcc " in #(
3862 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3863 esac
3864
6bf9431b
BE
3865 for depmode in $am_compiler_list; do
3866 # Setup a source with many dependencies, because some compilers
3867 # like to wrap large dependency lists on column 80 (with \), and
3868 # we should not choose a depcomp mode which is confused by this.
3869 #
3870 # We need to recreate these files for each test, as the compiler may
3871 # overwrite some of them when testing with obscure command lines.
3872 # This happens at least with the AIX C compiler.
3873 : > sub/conftest.c
3874 for i in 1 2 3 4 5 6; do
3875 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3876 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3877 # Solaris 8's {/usr,}/bin/sh.
3878 touch sub/conftst$i.h
3879 done
3880 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3881
81ecdfbb
RW
3882 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3883 # mode. It turns out that the SunPro C++ compiler does not properly
3884 # handle `-M -o', and we need to detect this. Also, some Intel
3885 # versions had trouble with output in subdirs
3886 am__obj=sub/conftest.${OBJEXT-o}
3887 am__minus_obj="-o $am__obj"
6bf9431b 3888 case $depmode in
81ecdfbb
RW
3889 gcc)
3890 # This depmode causes a compiler race in universal mode.
3891 test "$am__universal" = false || continue
3892 ;;
6bf9431b
BE
3893 nosideeffect)
3894 # after this tag, mechanisms are not by side-effect, so they'll
3895 # only be used when explicitly requested
3896 if test "x$enable_dependency_tracking" = xyes; then
3897 continue
3898 else
3899 break
3900 fi
3901 ;;
81ecdfbb
RW
3902 msvisualcpp | msvcmsys)
3903 # This compiler won't grok `-c -o', but also, the minuso test has
3904 # not run yet. These depmodes are late enough in the game, and
3905 # so weak that their functioning should not be impacted.
3906 am__obj=conftest.${OBJEXT-o}
3907 am__minus_obj=
3908 ;;
6bf9431b
BE
3909 none) break ;;
3910 esac
6bf9431b 3911 if depmode=$depmode \
81ecdfbb 3912 source=sub/conftest.c object=$am__obj \
6bf9431b 3913 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 3914 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6bf9431b 3915 >/dev/null 2>conftest.err &&
81ecdfbb 3916 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6bf9431b 3917 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 3918 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6bf9431b
BE
3919 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3920 # icc doesn't choke on unknown options, it will just issue warnings
3921 # or remarks (even with -Werror). So we grep stderr for any message
3922 # that says an option was ignored or not supported.
3923 # When given -MP, icc 7.0 and 7.1 complain thusly:
3924 # icc: Command line warning: ignoring option '-M'; no argument required
3925 # The diagnosis changed in icc 8.0:
3926 # icc: Command line remark: option '-MP' not supported
3927 if (grep 'ignoring option' conftest.err ||
3928 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3929 am_cv_CC_dependencies_compiler_type=$depmode
3930 break
3931 fi
3932 fi
3933 done
3934
3935 cd ..
3936 rm -rf conftest.dir
252b5132 3937else
6bf9431b 3938 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3939fi
3940
252b5132 3941fi
81ecdfbb
RW
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3943$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6bf9431b
BE
3944CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3945
81ecdfbb 3946 if
6bf9431b
BE
3947 test "x$enable_dependency_tracking" != xno \
3948 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3949 am__fastdepCC_TRUE=
3950 am__fastdepCC_FALSE='#'
252b5132 3951else
6bf9431b
BE
3952 am__fastdepCC_TRUE='#'
3953 am__fastdepCC_FALSE=
252b5132
RH
3954fi
3955
3956
3957
6bf9431b 3958
81ecdfbb 3959ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
d7040cdb
SE
3960
3961
ce2cded5
L
3962ac_ext=c
3963ac_cpp='$CPP $CPPFLAGS'
3964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3966ac_compiler_gnu=$ac_cv_c_compiler_gnu
3967if test -n "$ac_tool_prefix"; then
3968 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3969set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971$as_echo_n "checking for $ac_word... " >&6; }
3972if test "${ac_cv_prog_CC+set}" = set; then :
3973 $as_echo_n "(cached) " >&6
1b9750d6 3974else
ce2cded5
L
3975 if test -n "$CC"; then
3976 ac_cv_prog_CC="$CC" # Let the user override the test.
0ab6f085 3977else
ce2cded5
L
3978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979for as_dir in $PATH
3980do
3981 IFS=$as_save_IFS
3982 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3985 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
3987 break 2
3988 fi
3989done
81ecdfbb
RW
3990 done
3991IFS=$as_save_IFS
0ab6f085 3992
ce2cded5
L
3993fi
3994fi
3995CC=$ac_cv_prog_CC
3996if test -n "$CC"; then
81ecdfbb
RW
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3998$as_echo "$CC" >&6; }
0ab6f085 3999else
81ecdfbb
RW
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001$as_echo "no" >&6; }
ce2cded5 4002fi
d7040cdb 4003
81ecdfbb 4004
ce2cded5
L
4005fi
4006if test -z "$ac_cv_prog_CC"; then
4007 ac_ct_CC=$CC
4008 # Extract the first word of "gcc", so it can be a program name with args.
4009set dummy gcc; ac_word=$2
81ecdfbb
RW
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011$as_echo_n "checking for $ac_word... " >&6; }
4012if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4013 $as_echo_n "(cached) " >&6
1b9750d6 4014else
ce2cded5
L
4015 if test -n "$ac_ct_CC"; then
4016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4017else
d7040cdb 4018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
0ab6f085 4019for as_dir in $PATH
d7040cdb
SE
4020do
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4025 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 4027 break 2
0ab6f085 4028 fi
ce2cded5 4029done
81ecdfbb
RW
4030 done
4031IFS=$as_save_IFS
d7040cdb 4032
ce2cded5
L
4033fi
4034fi
4035ac_ct_CC=$ac_cv_prog_ac_ct_CC
4036if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4038$as_echo "$ac_ct_CC" >&6; }
ce2cded5 4039else
81ecdfbb
RW
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041$as_echo "no" >&6; }
1b9750d6 4042fi
d7040cdb 4043
81ecdfbb
RW
4044 if test "x$ac_ct_CC" = x; then
4045 CC=""
4046 else
4047 case $cross_compiling:$ac_tool_warned in
4048yes:)
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4051ac_tool_warned=yes ;;
4052esac
4053 CC=$ac_ct_CC
4054 fi
ce2cded5
L
4055else
4056 CC="$ac_cv_prog_CC"
4057fi
d7040cdb 4058
ce2cded5 4059if test -z "$CC"; then
81ecdfbb
RW
4060 if test -n "$ac_tool_prefix"; then
4061 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 4062set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4064$as_echo_n "checking for $ac_word... " >&6; }
4065if test "${ac_cv_prog_CC+set}" = set; then :
4066 $as_echo_n "(cached) " >&6
d7040cdb 4067else
ce2cded5
L
4068 if test -n "$CC"; then
4069 ac_cv_prog_CC="$CC" # Let the user override the test.
0ab6f085 4070else
ce2cded5
L
4071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072for as_dir in $PATH
4073do
4074 IFS=$as_save_IFS
4075 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4078 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4080 break 2
4081 fi
4082done
81ecdfbb
RW
4083 done
4084IFS=$as_save_IFS
d7040cdb 4085
252b5132
RH
4086fi
4087fi
ce2cded5
L
4088CC=$ac_cv_prog_CC
4089if test -n "$CC"; then
81ecdfbb
RW
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4091$as_echo "$CC" >&6; }
ce2cded5 4092else
81ecdfbb
RW
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4094$as_echo "no" >&6; }
d7040cdb 4095fi
6be7c12c 4096
ce2cded5 4097
81ecdfbb 4098 fi
ce2cded5
L
4099fi
4100if test -z "$CC"; then
4101 # Extract the first word of "cc", so it can be a program name with args.
4102set dummy cc; ac_word=$2
81ecdfbb
RW
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104$as_echo_n "checking for $ac_word... " >&6; }
4105if test "${ac_cv_prog_CC+set}" = set; then :
4106 $as_echo_n "(cached) " >&6
ce2cded5
L
4107else
4108 if test -n "$CC"; then
4109 ac_cv_prog_CC="$CC" # Let the user override the test.
4110else
4111 ac_prog_rejected=no
4112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113for as_dir in $PATH
4114do
4115 IFS=$as_save_IFS
4116 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5
L
4119 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4120 ac_prog_rejected=yes
4121 continue
4122 fi
4123 ac_cv_prog_CC="cc"
81ecdfbb 4124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4125 break 2
4126 fi
4127done
81ecdfbb
RW
4128 done
4129IFS=$as_save_IFS
ce2cded5
L
4130
4131if test $ac_prog_rejected = yes; then
4132 # We found a bogon in the path, so make sure we never use it.
4133 set dummy $ac_cv_prog_CC
4134 shift
4135 if test $# != 0; then
4136 # We chose a different compiler from the bogus one.
4137 # However, it has the same basename, so the bogon will be chosen
4138 # first if we set CC to just the basename; use the full file name.
4139 shift
4140 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4141 fi
4142fi
4143fi
4144fi
4145CC=$ac_cv_prog_CC
4146if test -n "$CC"; then
81ecdfbb
RW
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4148$as_echo "$CC" >&6; }
ce2cded5 4149else
81ecdfbb
RW
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151$as_echo "no" >&6; }
ce2cded5
L
4152fi
4153
81ecdfbb 4154
ce2cded5
L
4155fi
4156if test -z "$CC"; then
4157 if test -n "$ac_tool_prefix"; then
81ecdfbb 4158 for ac_prog in cl.exe
ce2cded5
L
4159 do
4160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4161set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163$as_echo_n "checking for $ac_word... " >&6; }
4164if test "${ac_cv_prog_CC+set}" = set; then :
4165 $as_echo_n "(cached) " >&6
ce2cded5
L
4166else
4167 if test -n "$CC"; then
4168 ac_cv_prog_CC="$CC" # Let the user override the test.
4169else
4170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171for as_dir in $PATH
4172do
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4177 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4179 break 2
4180 fi
4181done
81ecdfbb
RW
4182 done
4183IFS=$as_save_IFS
ce2cded5
L
4184
4185fi
4186fi
4187CC=$ac_cv_prog_CC
4188if test -n "$CC"; then
81ecdfbb
RW
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4190$as_echo "$CC" >&6; }
ce2cded5 4191else
81ecdfbb
RW
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193$as_echo "no" >&6; }
ce2cded5
L
4194fi
4195
81ecdfbb 4196
ce2cded5 4197 test -n "$CC" && break
d7040cdb
SE
4198 done
4199fi
ce2cded5
L
4200if test -z "$CC"; then
4201 ac_ct_CC=$CC
81ecdfbb 4202 for ac_prog in cl.exe
d7040cdb
SE
4203do
4204 # Extract the first word of "$ac_prog", so it can be a program name with args.
4205set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207$as_echo_n "checking for $ac_word... " >&6; }
4208if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4209 $as_echo_n "(cached) " >&6
d7040cdb 4210else
ce2cded5
L
4211 if test -n "$ac_ct_CC"; then
4212 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
4213else
4214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215for as_dir in $PATH
4216do
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4221 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 4223 break 2
ac48eca1 4224 fi
d7040cdb 4225done
81ecdfbb
RW
4226 done
4227IFS=$as_save_IFS
ac48eca1 4228
d7040cdb
SE
4229fi
4230fi
ce2cded5
L
4231ac_ct_CC=$ac_cv_prog_ac_ct_CC
4232if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4234$as_echo "$ac_ct_CC" >&6; }
d7040cdb 4235else
81ecdfbb
RW
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237$as_echo "no" >&6; }
d7040cdb 4238fi
ac48eca1 4239
81ecdfbb 4240
ce2cded5 4241 test -n "$ac_ct_CC" && break
d7040cdb 4242done
ac48eca1 4243
81ecdfbb
RW
4244 if test "x$ac_ct_CC" = x; then
4245 CC=""
4246 else
4247 case $cross_compiling:$ac_tool_warned in
4248yes:)
4249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4251ac_tool_warned=yes ;;
4252esac
4253 CC=$ac_ct_CC
4254 fi
d7040cdb 4255fi
ac48eca1 4256
d7040cdb 4257fi
ac48eca1 4258
ac48eca1 4259
81ecdfbb
RW
4260test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4262as_fn_error "no acceptable C compiler found in \$PATH
4263See \`config.log' for more details." "$LINENO" 5; }
6be7c12c 4264
ce2cded5 4265# Provide some information about the compiler.
81ecdfbb
RW
4266$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4267set X $ac_compile
4268ac_compiler=$2
4269for ac_option in --version -v -V -qversion; do
4270 { { ac_try="$ac_compiler $ac_option >&5"
4271case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4274esac
4275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4276$as_echo "$ac_try_echo"; } >&5
4277 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4278 ac_status=$?
81ecdfbb
RW
4279 if test -s conftest.err; then
4280 sed '10a\
4281... rest of stderr output deleted ...
4282 10q' conftest.err >conftest.er1
4283 cat conftest.er1 >&5
4284 rm -f conftest.er1 conftest.err
4285 fi
4286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4287 test $ac_status = 0; }
4288done
ac48eca1 4289
81ecdfbb
RW
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4291$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4292if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4293 $as_echo_n "(cached) " >&6
d7040cdb 4294else
81ecdfbb 4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4296/* end confdefs.h. */
ac48eca1 4297
ce2cded5
L
4298int
4299main ()
4300{
4301#ifndef __GNUC__
4302 choke me
4303#endif
4304
4305 ;
4306 return 0;
4307}
4308_ACEOF
81ecdfbb 4309if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 4310 ac_compiler_gnu=yes
d7040cdb 4311else
81ecdfbb 4312 ac_compiler_gnu=no
d7040cdb 4313fi
81ecdfbb 4314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4315ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 4316
ce2cded5 4317fi
81ecdfbb
RW
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4319$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4320if test $ac_compiler_gnu = yes; then
4321 GCC=yes
4322else
4323 GCC=
4324fi
ce2cded5
L
4325ac_test_CFLAGS=${CFLAGS+set}
4326ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4328$as_echo_n "checking whether $CC accepts -g... " >&6; }
4329if test "${ac_cv_prog_cc_g+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
4331else
4332 ac_save_c_werror_flag=$ac_c_werror_flag
4333 ac_c_werror_flag=yes
4334 ac_cv_prog_cc_g=no
4335 CFLAGS="-g"
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4337/* end confdefs.h. */
d7040cdb 4338
ce2cded5
L
4339int
4340main ()
4341{
d7040cdb 4342
ce2cded5
L
4343 ;
4344 return 0;
4345}
4346_ACEOF
81ecdfbb 4347if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
4348 ac_cv_prog_cc_g=yes
4349else
81ecdfbb
RW
4350 CFLAGS=""
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352/* end confdefs.h. */
108a6f8e 4353
81ecdfbb
RW
4354int
4355main ()
4356{
4357
4358 ;
4359 return 0;
4360}
4361_ACEOF
4362if ac_fn_c_try_compile "$LINENO"; then :
4363
4364else
4365 ac_c_werror_flag=$ac_save_c_werror_flag
4366 CFLAGS="-g"
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368/* end confdefs.h. */
4369
4370int
4371main ()
4372{
4373
4374 ;
4375 return 0;
4376}
4377_ACEOF
4378if ac_fn_c_try_compile "$LINENO"; then :
4379 ac_cv_prog_cc_g=yes
4380fi
4381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382fi
4383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384fi
4385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 ac_c_werror_flag=$ac_save_c_werror_flag
4387fi
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4389$as_echo "$ac_cv_prog_cc_g" >&6; }
4390if test "$ac_test_CFLAGS" = set; then
4391 CFLAGS=$ac_save_CFLAGS
4392elif test $ac_cv_prog_cc_g = yes; then
4393 if test "$GCC" = yes; then
4394 CFLAGS="-g -O2"
4395 else
ce2cded5
L
4396 CFLAGS="-g"
4397 fi
ac48eca1 4398else
ce2cded5
L
4399 if test "$GCC" = yes; then
4400 CFLAGS="-O2"
4401 else
4402 CFLAGS=
4403 fi
ac48eca1 4404fi
81ecdfbb
RW
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4406$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4407if test "${ac_cv_prog_cc_c89+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
ac48eca1 4409else
81ecdfbb 4410 ac_cv_prog_cc_c89=no
ce2cded5 4411ac_save_CC=$CC
81ecdfbb 4412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
4413/* end confdefs.h. */
4414#include <stdarg.h>
4415#include <stdio.h>
4416#include <sys/types.h>
4417#include <sys/stat.h>
4418/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4419struct buf { int x; };
4420FILE * (*rcsopen) (struct buf *, struct stat *, int);
4421static char *e (p, i)
4422 char **p;
4423 int i;
4424{
4425 return p[i];
4426}
4427static char *f (char * (*g) (char **, int), char **p, ...)
4428{
4429 char *s;
4430 va_list v;
4431 va_start (v,p);
4432 s = g (p, va_arg (v,int));
4433 va_end (v);
4434 return s;
4435}
d7040cdb 4436
ce2cded5
L
4437/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4438 function prototypes and stuff, but not '\xHH' hex character constants.
4439 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4440 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
4441 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4442 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4443 that's true only with -std. */
ce2cded5 4444int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 4445
81ecdfbb
RW
4446/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4447 inside strings and character constants. */
4448#define FOO(x) 'x'
4449int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4450
ce2cded5
L
4451int test (int i, double x);
4452struct s1 {int (*f) (int a);};
4453struct s2 {int (*f) (double a);};
4454int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4455int argc;
4456char **argv;
4457int
4458main ()
4459{
4460return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4461 ;
4462 return 0;
4463}
4464_ACEOF
81ecdfbb
RW
4465for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4466 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
4467do
4468 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4469 if ac_fn_c_try_compile "$LINENO"; then :
4470 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 4471fi
81ecdfbb
RW
4472rm -f core conftest.err conftest.$ac_objext
4473 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 4474done
81ecdfbb 4475rm -f conftest.$ac_ext
ce2cded5 4476CC=$ac_save_CC
d7040cdb 4477
ce2cded5 4478fi
81ecdfbb
RW
4479# AC_CACHE_VAL
4480case "x$ac_cv_prog_cc_c89" in
4481 x)
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4483$as_echo "none needed" >&6; } ;;
4484 xno)
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4486$as_echo "unsupported" >&6; } ;;
ce2cded5 4487 *)
81ecdfbb
RW
4488 CC="$CC $ac_cv_prog_cc_c89"
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4490$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ce2cded5 4491esac
81ecdfbb 4492if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 4493
ce2cded5 4494fi
d7040cdb 4495
ce2cded5
L
4496ac_ext=c
4497ac_cpp='$CPP $CPPFLAGS'
4498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4501
7357c5b6
AM
4502ac_ext=c
4503ac_cpp='$CPP $CPPFLAGS'
4504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4508$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4509# On Suns, sometimes $CPP names a directory.
4510if test -n "$CPP" && test -d "$CPP"; then
4511 CPP=
4512fi
4513if test -z "$CPP"; then
81ecdfbb
RW
4514 if test "${ac_cv_prog_CPP+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
ce2cded5 4516else
7357c5b6
AM
4517 # Double quotes because CPP needs to be expanded
4518 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4519 do
4520 ac_preproc_ok=false
4521for ac_c_preproc_warn_flag in '' yes
ce2cded5 4522do
7357c5b6
AM
4523 # Use a header file that comes with gcc, so configuring glibc
4524 # with a fresh cross-compiler works.
4525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4526 # <limits.h> exists even on freestanding compilers.
4527 # On the NeXT, cc -E runs the code through the compiler's parser,
4528 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4530/* end confdefs.h. */
4531#ifdef __STDC__
4532# include <limits.h>
4533#else
4534# include <assert.h>
4535#endif
4536 Syntax error
4537_ACEOF
81ecdfbb 4538if ac_fn_c_try_cpp "$LINENO"; then :
6bf9431b 4539
81ecdfbb 4540else
7357c5b6
AM
4541 # Broken: fails on valid input.
4542continue
4543fi
4544rm -f conftest.err conftest.$ac_ext
ce2cded5 4545
81ecdfbb 4546 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4547 # can be detected and how.
81ecdfbb 4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4549/* end confdefs.h. */
4550#include <ac_nonexistent.h>
4551_ACEOF
81ecdfbb 4552if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4553 # Broken: success on invalid input.
4554continue
4555else
7357c5b6
AM
4556 # Passes both tests.
4557ac_preproc_ok=:
4558break
4559fi
4560rm -f conftest.err conftest.$ac_ext
6bf9431b 4561
7357c5b6
AM
4562done
4563# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4564rm -f conftest.err conftest.$ac_ext
81ecdfbb 4565if $ac_preproc_ok; then :
7357c5b6
AM
4566 break
4567fi
6bf9431b 4568
7357c5b6
AM
4569 done
4570 ac_cv_prog_CPP=$CPP
252b5132 4571
7357c5b6
AM
4572fi
4573 CPP=$ac_cv_prog_CPP
4574else
4575 ac_cv_prog_CPP=$CPP
4576fi
81ecdfbb
RW
4577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4578$as_echo "$CPP" >&6; }
7357c5b6
AM
4579ac_preproc_ok=false
4580for ac_c_preproc_warn_flag in '' yes
4581do
4582 # Use a header file that comes with gcc, so configuring glibc
4583 # with a fresh cross-compiler works.
4584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4585 # <limits.h> exists even on freestanding compilers.
4586 # On the NeXT, cc -E runs the code through the compiler's parser,
4587 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4589/* end confdefs.h. */
4590#ifdef __STDC__
4591# include <limits.h>
4592#else
4593# include <assert.h>
4594#endif
4595 Syntax error
4596_ACEOF
81ecdfbb 4597if ac_fn_c_try_cpp "$LINENO"; then :
6bf9431b 4598
81ecdfbb 4599else
7357c5b6
AM
4600 # Broken: fails on valid input.
4601continue
4602fi
4603rm -f conftest.err conftest.$ac_ext
252b5132 4604
81ecdfbb 4605 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4606 # can be detected and how.
81ecdfbb 4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4608/* end confdefs.h. */
4609#include <ac_nonexistent.h>
4610_ACEOF
81ecdfbb 4611if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4612 # Broken: success on invalid input.
4613continue
4614else
7357c5b6
AM
4615 # Passes both tests.
4616ac_preproc_ok=:
4617break
4618fi
4619rm -f conftest.err conftest.$ac_ext
252b5132 4620
7357c5b6
AM
4621done
4622# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4623rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
4624if $ac_preproc_ok; then :
4625
7357c5b6 4626else
81ecdfbb
RW
4627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4629as_fn_error "C preprocessor \"$CPP\" fails sanity check
4630See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 4631fi
6bf9431b 4632
7357c5b6
AM
4633ac_ext=c
4634ac_cpp='$CPP $CPPFLAGS'
4635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637ac_compiler_gnu=$ac_cv_c_compiler_gnu
252b5132 4638
252b5132 4639
81ecdfbb
RW
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4641$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4642if test "${ac_cv_path_GREP+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
ce2cded5 4644else
81ecdfbb
RW
4645 if test -z "$GREP"; then
4646 ac_path_GREP_found=false
4647 # Loop through the user's path and test for each of PROGNAME-LIST
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4650do
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_prog in grep ggrep; do
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4656 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4657# Check for GNU ac_path_GREP and select it if it is found.
4658 # Check for GNU $ac_path_GREP
4659case `"$ac_path_GREP" --version 2>&1` in
4660*GNU*)
4661 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4662*)
4663 ac_count=0
4664 $as_echo_n 0123456789 >"conftest.in"
4665 while :
4666 do
4667 cat "conftest.in" "conftest.in" >"conftest.tmp"
4668 mv "conftest.tmp" "conftest.in"
4669 cp "conftest.in" "conftest.nl"
4670 $as_echo 'GREP' >> "conftest.nl"
4671 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4673 as_fn_arith $ac_count + 1 && ac_count=$as_val
4674 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4675 # Best one so far, save it but keep looking for a better one
4676 ac_cv_path_GREP="$ac_path_GREP"
4677 ac_path_GREP_max=$ac_count
ce2cded5 4678 fi
81ecdfbb
RW
4679 # 10*(2^10) chars as input seems more than enough
4680 test $ac_count -gt 10 && break
4681 done
4682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4683esac
4684
4685 $ac_path_GREP_found && break 3
4686 done
4687 done
4688 done
4689IFS=$as_save_IFS
4690 if test -z "$ac_cv_path_GREP"; then
4691 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4692 fi
4693else
4694 ac_cv_path_GREP=$GREP
4695fi
4696
ce2cded5 4697fi
81ecdfbb
RW
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4699$as_echo "$ac_cv_path_GREP" >&6; }
4700 GREP="$ac_cv_path_GREP"
ce2cded5 4701
6bf9431b 4702
81ecdfbb
RW
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4704$as_echo_n "checking for egrep... " >&6; }
4705if test "${ac_cv_path_EGREP+set}" = set; then :
4706 $as_echo_n "(cached) " >&6
7357c5b6 4707else
81ecdfbb
RW
4708 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4709 then ac_cv_path_EGREP="$GREP -E"
4710 else
4711 if test -z "$EGREP"; then
4712 ac_path_EGREP_found=false
4713 # Loop through the user's path and test for each of PROGNAME-LIST
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4716do
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
4719 for ac_prog in egrep; do
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4722 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4723# Check for GNU ac_path_EGREP and select it if it is found.
4724 # Check for GNU $ac_path_EGREP
4725case `"$ac_path_EGREP" --version 2>&1` in
4726*GNU*)
4727 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4728*)
4729 ac_count=0
4730 $as_echo_n 0123456789 >"conftest.in"
4731 while :
4732 do
4733 cat "conftest.in" "conftest.in" >"conftest.tmp"
4734 mv "conftest.tmp" "conftest.in"
4735 cp "conftest.in" "conftest.nl"
4736 $as_echo 'EGREP' >> "conftest.nl"
4737 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4738 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4739 as_fn_arith $ac_count + 1 && ac_count=$as_val
4740 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4741 # Best one so far, save it but keep looking for a better one
4742 ac_cv_path_EGREP="$ac_path_EGREP"
4743 ac_path_EGREP_max=$ac_count
4744 fi
4745 # 10*(2^10) chars as input seems more than enough
4746 test $ac_count -gt 10 && break
4747 done
4748 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4749esac
4750
4751 $ac_path_EGREP_found && break 3
4752 done
4753 done
4754 done
4755IFS=$as_save_IFS
4756 if test -z "$ac_cv_path_EGREP"; then
4757 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4758 fi
4759else
4760 ac_cv_path_EGREP=$EGREP
4761fi
4762
4763 fi
4764fi
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4766$as_echo "$ac_cv_path_EGREP" >&6; }
4767 EGREP="$ac_cv_path_EGREP"
4768
4769
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4771$as_echo_n "checking for ANSI C header files... " >&6; }
4772if test "${ac_cv_header_stdc+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4774else
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4776/* end confdefs.h. */
4777#include <stdlib.h>
4778#include <stdarg.h>
4779#include <string.h>
4780#include <float.h>
4781
4782int
4783main ()
4784{
4785
4786 ;
4787 return 0;
4788}
4789_ACEOF
81ecdfbb 4790if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4791 ac_cv_header_stdc=yes
4792else
81ecdfbb 4793 ac_cv_header_stdc=no
7357c5b6 4794fi
81ecdfbb 4795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6
AM
4796
4797if test $ac_cv_header_stdc = yes; then
4798 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4800/* end confdefs.h. */
4801#include <string.h>
4802
4803_ACEOF
4804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4805 $EGREP "memchr" >/dev/null 2>&1; then :
4806
7357c5b6
AM
4807else
4808 ac_cv_header_stdc=no
4809fi
4810rm -f conftest*
4811
4812fi
4813
4814if test $ac_cv_header_stdc = yes; then
4815 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4817/* end confdefs.h. */
4818#include <stdlib.h>
4819
4820_ACEOF
4821if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4822 $EGREP "free" >/dev/null 2>&1; then :
4823
7357c5b6
AM
4824else
4825 ac_cv_header_stdc=no
4826fi
4827rm -f conftest*
4828
4829fi
4830
4831if test $ac_cv_header_stdc = yes; then
4832 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4833 if test "$cross_compiling" = yes; then :
7357c5b6 4834 :
ce2cded5 4835else
81ecdfbb 4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4837/* end confdefs.h. */
4838#include <ctype.h>
81ecdfbb 4839#include <stdlib.h>
7357c5b6
AM
4840#if ((' ' & 0x0FF) == 0x020)
4841# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4842# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4843#else
4844# define ISLOWER(c) \
4845 (('a' <= (c) && (c) <= 'i') \
4846 || ('j' <= (c) && (c) <= 'r') \
4847 || ('s' <= (c) && (c) <= 'z'))
4848# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4849#endif
6bf9431b 4850
7357c5b6
AM
4851#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4852int
4853main ()
4854{
4855 int i;
4856 for (i = 0; i < 256; i++)
4857 if (XOR (islower (i), ISLOWER (i))
4858 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4859 return 2;
4860 return 0;
7357c5b6
AM
4861}
4862_ACEOF
81ecdfbb 4863if ac_fn_c_try_run "$LINENO"; then :
6bf9431b 4864
81ecdfbb
RW
4865else
4866 ac_cv_header_stdc=no
7357c5b6 4867fi
81ecdfbb
RW
4868rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4869 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4870fi
81ecdfbb 4871
7357c5b6
AM
4872fi
4873fi
81ecdfbb
RW
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4875$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4876if test $ac_cv_header_stdc = yes; then
6bf9431b 4877
81ecdfbb 4878$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4879
7357c5b6 4880fi
d7040cdb 4881
7357c5b6 4882# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
4883for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4884 inttypes.h stdint.h unistd.h
81ecdfbb
RW
4885do :
4886 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4887ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4888"
4889eval as_val=\$$as_ac_Header
4890 if test "x$as_val" = x""yes; then :
7357c5b6 4891 cat >>confdefs.h <<_ACEOF
81ecdfbb 4892#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 4893_ACEOF
d7040cdb 4894
7357c5b6 4895fi
d7040cdb 4896
7357c5b6 4897done
d7040cdb
SE
4898
4899
4900
81ecdfbb
RW
4901 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4902if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6
AM
4903 MINIX=yes
4904else
4905 MINIX=
4906fi
d7040cdb
SE
4907
4908
7357c5b6 4909 if test "$MINIX" = yes; then
d7040cdb 4910
81ecdfbb 4911$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb 4912
d7040cdb 4913
81ecdfbb 4914$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb 4915
d7040cdb 4916
81ecdfbb 4917$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4918
ce2cded5 4919 fi
d7040cdb 4920
d7040cdb 4921
81ecdfbb
RW
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4923$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4924if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
ce2cded5 4926else
81ecdfbb 4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4928/* end confdefs.h. */
d7040cdb 4929
7357c5b6
AM
4930# define __EXTENSIONS__ 1
4931 $ac_includes_default
4932int
4933main ()
4934{
d7040cdb 4935
7357c5b6
AM
4936 ;
4937 return 0;
4938}
4939_ACEOF
81ecdfbb 4940if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4941 ac_cv_safe_to_define___extensions__=yes
4942else
81ecdfbb 4943 ac_cv_safe_to_define___extensions__=no
ce2cded5 4944fi
81ecdfbb 4945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4946fi
81ecdfbb
RW
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4948$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4949 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4950 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d7040cdb 4951
81ecdfbb 4952 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d7040cdb 4953
81ecdfbb 4954 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
d7040cdb 4955
81ecdfbb 4956 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
d7040cdb 4957
81ecdfbb 4958 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d7040cdb 4959
d7040cdb 4960
d053aef8 4961
81ecdfbb 4962
da2f07f1
JK
4963
4964# As the $enable_largefile decision depends on --enable-plugins we must set it
4965# even in directories otherwise not depending on the $plugins option.
4966
4967
4968# Check whether --enable-plugins was given.
4969if test "${enable_plugins+set}" = set; then :
4970 enableval=$enable_plugins; case "${enableval}" in
4971 yes | "") plugins=yes ;;
4972 no) plugins=no ;;
4973 *) plugins=yes ;;
4974 esac
4975else
4976 plugins=no
4977fi
4978
4979
4980
4981case "${host}" in
4982 sparc-*-solaris*|i[3-7]86-*-solaris*)
4983 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4984 # are mutually exclusive; and without procfs support, the bfd/ elf module
4985 # cannot provide certain routines such as elfcore_write_prpsinfo
4986 # or elfcore_write_prstatus. So unless the user explicitly requested
4987 # large-file support through the --enable-largefile switch, disable
4988 # large-file support in favor of procfs support.
4989 test "${target}" = "${host}" -a "x$plugins" = xno \
4990 && : ${enable_largefile="no"}
4991 ;;
4992esac
4993
81ecdfbb
RW
4994# Check whether --enable-largefile was given.
4995if test "${enable_largefile+set}" = set; then :
4996 enableval=$enable_largefile;
4997fi
4998
d053aef8
JK
4999if test "$enable_largefile" != no; then
5000
81ecdfbb
RW
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5002$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5003if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
d053aef8
JK
5005else
5006 ac_cv_sys_largefile_CC=no
5007 if test "$GCC" != yes; then
5008 ac_save_CC=$CC
5009 while :; do
81ecdfbb
RW
5010 # IRIX 6.2 and later do not support large files by default,
5011 # so use the C compiler's -n32 option if that helps.
5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5013/* end confdefs.h. */
5014#include <sys/types.h>
5015 /* Check that off_t can represent 2**63 - 1 correctly.
5016 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5017 since some C++ compilers masquerading as C compilers
5018 incorrectly reject 9223372036854775807. */
5019#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5020 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5021 && LARGE_OFF_T % 2147483647 == 1)
5022 ? 1 : -1];
5023int
5024main ()
5025{
5026
5027 ;
5028 return 0;
5029}
5030_ACEOF
81ecdfbb 5031 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5032 break
d053aef8 5033fi
81ecdfbb
RW
5034rm -f core conftest.err conftest.$ac_objext
5035 CC="$CC -n32"
5036 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5037 ac_cv_sys_largefile_CC=' -n32'; break
d053aef8 5038fi
81ecdfbb 5039rm -f core conftest.err conftest.$ac_objext
d053aef8
JK
5040 break
5041 done
5042 CC=$ac_save_CC
5043 rm -f conftest.$ac_ext
5044 fi
5045fi
81ecdfbb
RW
5046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5047$as_echo "$ac_cv_sys_largefile_CC" >&6; }
d053aef8
JK
5048 if test "$ac_cv_sys_largefile_CC" != no; then
5049 CC=$CC$ac_cv_sys_largefile_CC
5050 fi
5051
81ecdfbb
RW
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5053$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5054if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5055 $as_echo_n "(cached) " >&6
d053aef8
JK
5056else
5057 while :; do
81ecdfbb 5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5059/* end confdefs.h. */
5060#include <sys/types.h>
5061 /* Check that off_t can represent 2**63 - 1 correctly.
5062 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5063 since some C++ compilers masquerading as C compilers
5064 incorrectly reject 9223372036854775807. */
5065#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5066 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5067 && LARGE_OFF_T % 2147483647 == 1)
5068 ? 1 : -1];
5069int
5070main ()
5071{
5072
5073 ;
5074 return 0;
5075}
5076_ACEOF
81ecdfbb
RW
5077if ac_fn_c_try_compile "$LINENO"; then :
5078 ac_cv_sys_file_offset_bits=no; break
d053aef8 5079fi
81ecdfbb
RW
5080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5082/* end confdefs.h. */
5083#define _FILE_OFFSET_BITS 64
5084#include <sys/types.h>
5085 /* Check that off_t can represent 2**63 - 1 correctly.
5086 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5087 since some C++ compilers masquerading as C compilers
5088 incorrectly reject 9223372036854775807. */
5089#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5090 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5091 && LARGE_OFF_T % 2147483647 == 1)
5092 ? 1 : -1];
5093int
5094main ()
5095{
5096
5097 ;
5098 return 0;
5099}
5100_ACEOF
81ecdfbb 5101if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5102 ac_cv_sys_file_offset_bits=64; break
d053aef8 5103fi
81ecdfbb
RW
5104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105 ac_cv_sys_file_offset_bits=unknown
d053aef8
JK
5106 break
5107done
5108fi
81ecdfbb
RW
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5110$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5111case $ac_cv_sys_file_offset_bits in #(
5112 no | unknown) ;;
5113 *)
d053aef8
JK
5114cat >>confdefs.h <<_ACEOF
5115#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5116_ACEOF
81ecdfbb
RW
5117;;
5118esac
5119rm -rf conftest*
5120 if test $ac_cv_sys_file_offset_bits = unknown; then
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5122$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5123if test "${ac_cv_sys_large_files+set}" = set; then :
5124 $as_echo_n "(cached) " >&6
d053aef8
JK
5125else
5126 while :; do
81ecdfbb 5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5128/* end confdefs.h. */
5129#include <sys/types.h>
5130 /* Check that off_t can represent 2**63 - 1 correctly.
5131 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5132 since some C++ compilers masquerading as C compilers
5133 incorrectly reject 9223372036854775807. */
5134#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5135 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5136 && LARGE_OFF_T % 2147483647 == 1)
5137 ? 1 : -1];
5138int
5139main ()
5140{
5141
5142 ;
5143 return 0;
5144}
5145_ACEOF
81ecdfbb
RW
5146if ac_fn_c_try_compile "$LINENO"; then :
5147 ac_cv_sys_large_files=no; break
d053aef8 5148fi
81ecdfbb
RW
5149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5151/* end confdefs.h. */
5152#define _LARGE_FILES 1
5153#include <sys/types.h>
5154 /* Check that off_t can represent 2**63 - 1 correctly.
5155 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5156 since some C++ compilers masquerading as C compilers
5157 incorrectly reject 9223372036854775807. */
5158#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5159 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5160 && LARGE_OFF_T % 2147483647 == 1)
5161 ? 1 : -1];
5162int
5163main ()
5164{
5165
5166 ;
5167 return 0;
5168}
81ecdfbb
RW
5169_ACEOF
5170if ac_fn_c_try_compile "$LINENO"; then :
5171 ac_cv_sys_large_files=1; break
d053aef8 5172fi
81ecdfbb
RW
5173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5174 ac_cv_sys_large_files=unknown
d053aef8
JK
5175 break
5176done
5177fi
81ecdfbb
RW
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5179$as_echo "$ac_cv_sys_large_files" >&6; }
5180case $ac_cv_sys_large_files in #(
5181 no | unknown) ;;
5182 *)
d053aef8
JK
5183cat >>confdefs.h <<_ACEOF
5184#define _LARGE_FILES $ac_cv_sys_large_files
5185_ACEOF
81ecdfbb 5186;;
7357c5b6 5187esac
81ecdfbb 5188rm -rf conftest*
7357c5b6
AM
5189 fi
5190fi
d7040cdb 5191
d7040cdb 5192
ce2cded5 5193
da2f07f1 5194
b214d478
SE
5195case `pwd` in
5196 *\ * | *\ *)
81ecdfbb
RW
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5198$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
b214d478 5199esac
d7040cdb
SE
5200
5201
6bf9431b 5202
b214d478
SE
5203macro_version='2.2.6'
5204macro_revision='1.3012'
ce2cded5 5205
d7040cdb 5206
d7040cdb 5207
d7040cdb 5208
d7040cdb 5209
7357c5b6 5210
6bf9431b 5211
6bf9431b 5212
6bf9431b 5213
6bf9431b 5214
d7040cdb 5215
d7040cdb 5216
6bf9431b 5217
b214d478 5218ltmain="$ac_aux_dir/ltmain.sh"
d7040cdb 5219
81ecdfbb
RW
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5221$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5222if test "${ac_cv_path_SED+set}" = set; then :
5223 $as_echo_n "(cached) " >&6
5224else
5225 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5226 for ac_i in 1 2 3 4 5 6 7; do
5227 ac_script="$ac_script$as_nl$ac_script"
5228 done
5229 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5230 { ac_script=; unset ac_script;}
5231 if test -z "$SED"; then
5232 ac_path_SED_found=false
5233 # Loop through the user's path and test for each of PROGNAME-LIST
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5235for as_dir in $PATH
5236do
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
81ecdfbb 5239 for ac_prog in sed gsed; do
7357c5b6 5240 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5241 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5242 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5243# Check for GNU ac_path_SED and select it if it is found.
5244 # Check for GNU $ac_path_SED
5245case `"$ac_path_SED" --version 2>&1` in
5246*GNU*)
5247 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5248*)
5249 ac_count=0
5250 $as_echo_n 0123456789 >"conftest.in"
5251 while :
5252 do
5253 cat "conftest.in" "conftest.in" >"conftest.tmp"
5254 mv "conftest.tmp" "conftest.in"
5255 cp "conftest.in" "conftest.nl"
5256 $as_echo '' >> "conftest.nl"
5257 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5258 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5259 as_fn_arith $ac_count + 1 && ac_count=$as_val
5260 if test $ac_count -gt ${ac_path_SED_max-0}; then
5261 # Best one so far, save it but keep looking for a better one
5262 ac_cv_path_SED="$ac_path_SED"
5263 ac_path_SED_max=$ac_count
5264 fi
5265 # 10*(2^10) chars as input seems more than enough
5266 test $ac_count -gt 10 && break
5267 done
5268 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5269esac
5270
5271 $ac_path_SED_found && break 3
7357c5b6
AM
5272 done
5273 done
81ecdfbb 5274 done
7357c5b6 5275IFS=$as_save_IFS
81ecdfbb
RW
5276 if test -z "$ac_cv_path_SED"; then
5277 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5278 fi
81ecdfbb
RW
5279else
5280 ac_cv_path_SED=$SED
7357c5b6
AM
5281fi
5282
81ecdfbb
RW
5283fi
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5285$as_echo "$ac_cv_path_SED" >&6; }
5286 SED="$ac_cv_path_SED"
5287 rm -f conftest.sed
7357c5b6
AM
5288
5289test -z "$SED" && SED=sed
5290Xsed="$SED -e 1s/^X//"
5291
5292
5293
d7040cdb 5294
d7040cdb 5295
d7040cdb 5296
d7040cdb 5297
d7040cdb 5298
d7040cdb 5299
d7040cdb 5300
6bf9431b 5301
81ecdfbb
RW
5302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5303$as_echo_n "checking for fgrep... " >&6; }
5304if test "${ac_cv_path_FGREP+set}" = set; then :
5305 $as_echo_n "(cached) " >&6
7357c5b6 5306else
81ecdfbb
RW
5307 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5308 then ac_cv_path_FGREP="$GREP -F"
5309 else
5310 if test -z "$FGREP"; then
5311 ac_path_FGREP_found=false
5312 # Loop through the user's path and test for each of PROGNAME-LIST
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5315do
5316 IFS=$as_save_IFS
5317 test -z "$as_dir" && as_dir=.
5318 for ac_prog in fgrep; do
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5321 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5322# Check for GNU ac_path_FGREP and select it if it is found.
5323 # Check for GNU $ac_path_FGREP
5324case `"$ac_path_FGREP" --version 2>&1` in
5325*GNU*)
5326 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5327*)
5328 ac_count=0
5329 $as_echo_n 0123456789 >"conftest.in"
5330 while :
5331 do
5332 cat "conftest.in" "conftest.in" >"conftest.tmp"
5333 mv "conftest.tmp" "conftest.in"
5334 cp "conftest.in" "conftest.nl"
5335 $as_echo 'FGREP' >> "conftest.nl"
5336 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5337 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5338 as_fn_arith $ac_count + 1 && ac_count=$as_val
5339 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5340 # Best one so far, save it but keep looking for a better one
5341 ac_cv_path_FGREP="$ac_path_FGREP"
5342 ac_path_FGREP_max=$ac_count
7357c5b6 5343 fi
81ecdfbb
RW
5344 # 10*(2^10) chars as input seems more than enough
5345 test $ac_count -gt 10 && break
5346 done
5347 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5348esac
5349
5350 $ac_path_FGREP_found && break 3
5351 done
5352 done
5353 done
5354IFS=$as_save_IFS
5355 if test -z "$ac_cv_path_FGREP"; then
5356 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5357 fi
5358else
5359 ac_cv_path_FGREP=$FGREP
5360fi
5361
5362 fi
6bf9431b 5363fi
81ecdfbb
RW
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5365$as_echo "$ac_cv_path_FGREP" >&6; }
5366 FGREP="$ac_cv_path_FGREP"
d7040cdb 5367
6bf9431b 5368
7357c5b6 5369test -z "$GREP" && GREP=grep
252b5132 5370
6bf9431b 5371
252b5132 5372
252b5132 5373
252b5132 5374
252b5132 5375
252b5132
RH
5376
5377
6bf9431b 5378
d7040cdb 5379
6bf9431b 5380
6bf9431b 5381
7357c5b6
AM
5382
5383
5384
5385
5386
5387
5388
81ecdfbb
RW
5389# Check whether --with-gnu-ld was given.
5390if test "${with_gnu_ld+set}" = set; then :
5391 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5392else
5393 with_gnu_ld=no
81ecdfbb
RW
5394fi
5395
7357c5b6
AM
5396ac_prog=ld
5397if test "$GCC" = yes; then
5398 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5400$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5401 case $host in
5402 *-*-mingw*)
5403 # gcc leaves a trailing carriage return which upsets mingw
5404 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5405 *)
5406 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5407 esac
5408 case $ac_prog in
5409 # Accept absolute paths.
5410 [\\/]* | ?:[\\/]*)
5411 re_direlt='/[^/][^/]*/\.\./'
5412 # Canonicalize the pathname of ld
5413 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5414 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5415 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5416 done
5417 test -z "$LD" && LD="$ac_prog"
5418 ;;
5419 "")
5420 # If it fails, then pretend we aren't using GCC.
5421 ac_prog=ld
5422 ;;
5423 *)
5424 # If it is relative, then search for the first ld in PATH.
5425 with_gnu_ld=unknown
5426 ;;
5427 esac
5428elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5430$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 5431else
81ecdfbb
RW
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5433$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5434fi
81ecdfbb
RW
5435if test "${lt_cv_path_LD+set}" = set; then :
5436 $as_echo_n "(cached) " >&6
d7040cdb 5437else
7357c5b6
AM
5438 if test -z "$LD"; then
5439 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5440 for ac_dir in $PATH; do
5441 IFS="$lt_save_ifs"
5442 test -z "$ac_dir" && ac_dir=.
5443 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5444 lt_cv_path_LD="$ac_dir/$ac_prog"
5445 # Check to see if the program is GNU ld. I'd rather use --version,
5446 # but apparently some variants of GNU ld only accept -v.
5447 # Break only if it was the GNU/non-GNU ld that we prefer.
5448 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5449 *GNU* | *'with BFD'*)
5450 test "$with_gnu_ld" != no && break
5451 ;;
5452 *)
5453 test "$with_gnu_ld" != yes && break
5454 ;;
5455 esac
5456 fi
5457 done
5458 IFS="$lt_save_ifs"
6bf9431b 5459else
7357c5b6 5460 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6bf9431b 5461fi
6bf9431b 5462fi
7357c5b6
AM
5463
5464LD="$lt_cv_path_LD"
5465if test -n "$LD"; then
81ecdfbb
RW
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5467$as_echo "$LD" >&6; }
ce2cded5 5468else
81ecdfbb
RW
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470$as_echo "no" >&6; }
6bf9431b 5471fi
81ecdfbb
RW
5472test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5474$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5475if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5476 $as_echo_n "(cached) " >&6
ce2cded5 5477else
7357c5b6
AM
5478 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5479case `$LD -v 2>&1 </dev/null` in
5480*GNU* | *'with BFD'*)
5481 lt_cv_prog_gnu_ld=yes
5482 ;;
5483*)
5484 lt_cv_prog_gnu_ld=no
5485 ;;
5486esac
ce2cded5 5487fi
81ecdfbb
RW
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5489$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 5490with_gnu_ld=$lt_cv_prog_gnu_ld
20e95c23
DJ
5491
5492
5493
20e95c23 5494
d7040cdb
SE
5495
5496
5497
5498
5499
81ecdfbb
RW
5500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5501$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5502if test "${lt_cv_path_NM+set}" = set; then :
5503 $as_echo_n "(cached) " >&6
ce2cded5 5504else
7357c5b6
AM
5505 if test -n "$NM"; then
5506 # Let the user override the test.
5507 lt_cv_path_NM="$NM"
ce2cded5 5508else
7357c5b6
AM
5509 lt_nm_to_check="${ac_tool_prefix}nm"
5510 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5511 lt_nm_to_check="$lt_nm_to_check nm"
ce2cded5 5512 fi
7357c5b6
AM
5513 for lt_tmp_nm in $lt_nm_to_check; do
5514 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5515 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5516 IFS="$lt_save_ifs"
5517 test -z "$ac_dir" && ac_dir=.
5518 tmp_nm="$ac_dir/$lt_tmp_nm"
5519 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5520 # Check to see if the nm accepts a BSD-compat flag.
5521 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5522 # nm: unknown option "B" ignored
5523 # Tru64's nm complains that /dev/null is an invalid object file
5524 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5525 */dev/null* | *'Invalid file or object type'*)
5526 lt_cv_path_NM="$tmp_nm -B"
5527 break
5528 ;;
5529 *)
5530 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5531 */dev/null*)
5532 lt_cv_path_NM="$tmp_nm -p"
5533 break
5534 ;;
5535 *)
5536 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5537 continue # so that we can try to find one that supports BSD flags
5538 ;;
5539 esac
5540 ;;
5541 esac
5542 fi
5543 done
5544 IFS="$lt_save_ifs"
5545 done
5546 : ${lt_cv_path_NM=no}
ce2cded5
L
5547fi
5548fi
81ecdfbb
RW
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5550$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
5551if test "$lt_cv_path_NM" != "no"; then
5552 NM="$lt_cv_path_NM"
ce2cded5 5553else
7357c5b6
AM
5554 # Didn't find any BSD compatible name lister, look for dumpbin.
5555 if test -n "$ac_tool_prefix"; then
5556 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5557 do
5558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5559set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561$as_echo_n "checking for $ac_word... " >&6; }
5562if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5563 $as_echo_n "(cached) " >&6
ce2cded5 5564else
7357c5b6
AM
5565 if test -n "$DUMPBIN"; then
5566 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
5567else
5568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569for as_dir in $PATH
5570do
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 5575 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5577 break 2
5578 fi
5579done
81ecdfbb
RW
5580 done
5581IFS=$as_save_IFS
d7040cdb 5582
ce2cded5
L
5583fi
5584fi
7357c5b6
AM
5585DUMPBIN=$ac_cv_prog_DUMPBIN
5586if test -n "$DUMPBIN"; then
81ecdfbb
RW
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5588$as_echo "$DUMPBIN" >&6; }
ce2cded5 5589else
81ecdfbb
RW
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591$as_echo "no" >&6; }
ce2cded5 5592fi
d7040cdb 5593
81ecdfbb 5594
7357c5b6
AM
5595 test -n "$DUMPBIN" && break
5596 done
ce2cded5 5597fi
7357c5b6
AM
5598if test -z "$DUMPBIN"; then
5599 ac_ct_DUMPBIN=$DUMPBIN
5600 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5601do
5602 # Extract the first word of "$ac_prog", so it can be a program name with args.
5603set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605$as_echo_n "checking for $ac_word... " >&6; }
5606if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5607 $as_echo_n "(cached) " >&6
ce2cded5 5608else
7357c5b6
AM
5609 if test -n "$ac_ct_DUMPBIN"; then
5610 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
5611else
5612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613for as_dir in $PATH
5614do
5615 IFS=$as_save_IFS
5616 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 5619 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5621 break 2
5622 fi
5623done
81ecdfbb
RW
5624 done
5625IFS=$as_save_IFS
d7040cdb 5626
ce2cded5
L
5627fi
5628fi
7357c5b6
AM
5629ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5630if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5632$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 5633else
81ecdfbb
RW
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635$as_echo "no" >&6; }
20e95c23 5636fi
20e95c23 5637
81ecdfbb 5638
7357c5b6 5639 test -n "$ac_ct_DUMPBIN" && break
ce2cded5
L
5640done
5641
81ecdfbb
RW
5642 if test "x$ac_ct_DUMPBIN" = x; then
5643 DUMPBIN=":"
5644 else
5645 case $cross_compiling:$ac_tool_warned in
5646yes:)
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5649ac_tool_warned=yes ;;
5650esac
5651 DUMPBIN=$ac_ct_DUMPBIN
5652 fi
d7040cdb 5653fi
7357c5b6
AM
5654
5655
5656 if test "$DUMPBIN" != ":"; then
5657 NM="$DUMPBIN"
5658 fi
20e95c23 5659fi
7357c5b6
AM
5660test -z "$NM" && NM=nm
5661
5662
5663
5664
5665
5666
81ecdfbb
RW
5667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5668$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5669if test "${lt_cv_nm_interface+set}" = set; then :
5670 $as_echo_n "(cached) " >&6
ce2cded5 5671else
7357c5b6
AM
5672 lt_cv_nm_interface="BSD nm"
5673 echo "int some_variable = 0;" > conftest.$ac_ext
da2f07f1 5674 (eval echo "\"\$as_me:5674: $ac_compile\"" >&5)
7357c5b6
AM
5675 (eval "$ac_compile" 2>conftest.err)
5676 cat conftest.err >&5
da2f07f1 5677 (eval echo "\"\$as_me:5677: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
5678 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5679 cat conftest.err >&5
da2f07f1 5680 (eval echo "\"\$as_me:5680: output\"" >&5)
7357c5b6
AM
5681 cat conftest.out >&5
5682 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5683 lt_cv_nm_interface="MS dumpbin"
5684 fi
5685 rm -f conftest*
ce2cded5 5686fi
81ecdfbb
RW
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5688$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 5689
81ecdfbb
RW
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5691$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
5692LN_S=$as_ln_s
5693if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5695$as_echo "yes" >&6; }
ce2cded5 5696else
81ecdfbb
RW
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5698$as_echo "no, using $LN_S" >&6; }
ce2cded5 5699fi
d7040cdb 5700
7357c5b6 5701# find the maximum length of command line arguments
81ecdfbb
RW
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5703$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5704if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5705 $as_echo_n "(cached) " >&6
7357c5b6
AM
5706else
5707 i=0
5708 teststring="ABCD"
d7040cdb 5709
7357c5b6
AM
5710 case $build_os in
5711 msdosdjgpp*)
5712 # On DJGPP, this test can blow up pretty badly due to problems in libc
5713 # (any single argument exceeding 2000 bytes causes a buffer overrun
5714 # during glob expansion). Even if it were fixed, the result of this
5715 # check would be larger than it should be.
5716 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5717 ;;
d7040cdb 5718
7357c5b6
AM
5719 gnu*)
5720 # Under GNU Hurd, this test is not required because there is
5721 # no limit to the length of command line arguments.
5722 # Libtool will interpret -1 as no limit whatsoever
5723 lt_cv_sys_max_cmd_len=-1;
5724 ;;
d7040cdb 5725
b214d478 5726 cygwin* | mingw* | cegcc*)
7357c5b6
AM
5727 # On Win9x/ME, this test blows up -- it succeeds, but takes
5728 # about 5 minutes as the teststring grows exponentially.
5729 # Worse, since 9x/ME are not pre-emptively multitasking,
5730 # you end up with a "frozen" computer, even though with patience
5731 # the test eventually succeeds (with a max line length of 256k).
5732 # Instead, let's just punt: use the minimum linelength reported by
5733 # all of the supported platforms: 8192 (on NT/2K/XP).
5734 lt_cv_sys_max_cmd_len=8192;
5735 ;;
d7040cdb 5736
7357c5b6
AM
5737 amigaos*)
5738 # On AmigaOS with pdksh, this test takes hours, literally.
5739 # So we just punt and use a minimum line length of 8192.
5740 lt_cv_sys_max_cmd_len=8192;
5741 ;;
d7040cdb 5742
7357c5b6
AM
5743 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5744 # This has been around since 386BSD, at least. Likely further.
5745 if test -x /sbin/sysctl; then
5746 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5747 elif test -x /usr/sbin/sysctl; then
5748 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5749 else
5750 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5751 fi
5752 # And add a safety zone
5753 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5754 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5755 ;;
d7040cdb 5756
7357c5b6
AM
5757 interix*)
5758 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5759 lt_cv_sys_max_cmd_len=196608
5760 ;;
d7040cdb 5761
7357c5b6
AM
5762 osf*)
5763 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5764 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5765 # nice to cause kernel panics so lets avoid the loop below.
5766 # First set a reasonable default.
5767 lt_cv_sys_max_cmd_len=16384
5768 #
5769 if test -x /sbin/sysconfig; then
5770 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5771 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5772 esac
5773 fi
5774 ;;
5775 sco3.2v5*)
5776 lt_cv_sys_max_cmd_len=102400
5777 ;;
5778 sysv5* | sco5v6* | sysv4.2uw2*)
5779 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5780 if test -n "$kargmax"; then
5781 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5782 else
5783 lt_cv_sys_max_cmd_len=32768
5784 fi
ce2cded5
L
5785 ;;
5786 *)
b214d478
SE
5787 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5788 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
5789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5791 else
5792 # Make teststring a little bigger before we do anything with it.
5793 # a 1K string should be a reasonable start.
5794 for i in 1 2 3 4 5 6 7 8 ; do
5795 teststring=$teststring$teststring
5796 done
5797 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5798 # If test is not a shell built-in, we'll probably end up computing a
5799 # maximum length that is only half of the actual maximum length, but
5800 # we can't tell.
5801 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5802 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5803 test $i != 17 # 1/2 MB should be enough
5804 do
5805 i=`expr $i + 1`
5806 teststring=$teststring$teststring
5807 done
5808 # Only check the string length outside the loop.
5809 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5810 teststring=
5811 # Add a significant safety factor because C++ compilers can tack on
5812 # massive amounts of additional arguments before passing them to the
5813 # linker. It appears as though 1/2 is a usable value.
5814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5815 fi
ce2cded5
L
5816 ;;
5817 esac
d7040cdb 5818
7357c5b6 5819fi
d7040cdb 5820
7357c5b6 5821if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5823$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 5824else
81ecdfbb
RW
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5826$as_echo "none" >&6; }
7357c5b6
AM
5827fi
5828max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
5829
5830
5831
5832
5833
5834
7357c5b6
AM
5835: ${CP="cp -f"}
5836: ${MV="mv -f"}
5837: ${RM="rm -f"}
d7040cdb 5838
81ecdfbb
RW
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5840$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
5841# Try some XSI features
5842xsi_shell=no
5843( _lt_dummy="a/b/c"
5844 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
5845 = c,a/b,, \
5846 && eval 'test $(( 1 + 1 )) -eq 2 \
5847 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 5848 && xsi_shell=yes
81ecdfbb
RW
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5850$as_echo "$xsi_shell" >&6; }
d7040cdb
SE
5851
5852
81ecdfbb
RW
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5854$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
5855lt_shell_append=no
5856( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5857 >/dev/null 2>&1 \
5858 && lt_shell_append=yes
81ecdfbb
RW
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5860$as_echo "$lt_shell_append" >&6; }
d7040cdb 5861
d7040cdb 5862
7357c5b6
AM
5863if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5864 lt_unset=unset
5865else
5866 lt_unset=false
5867fi
d7040cdb 5868
d7040cdb 5869
d7040cdb 5870
d7040cdb 5871
d7040cdb 5872
7357c5b6
AM
5873# test EBCDIC or ASCII
5874case `echo X|tr X '\101'` in
5875 A) # ASCII based system
5876 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5877 lt_SP2NL='tr \040 \012'
5878 lt_NL2SP='tr \015\012 \040\040'
5879 ;;
5880 *) # EBCDIC based system
5881 lt_SP2NL='tr \100 \n'
5882 lt_NL2SP='tr \r\n \100\100'
5883 ;;
5884esac
d7040cdb 5885
d7040cdb 5886
d7040cdb 5887
d7040cdb 5888
d7040cdb 5889
d7040cdb
SE
5890
5891
5af11cab 5892
d7040cdb 5893
81ecdfbb
RW
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5895$as_echo_n "checking for $LD option to reload object files... " >&6; }
5896if test "${lt_cv_ld_reload_flag+set}" = set; then :
5897 $as_echo_n "(cached) " >&6
7357c5b6
AM
5898else
5899 lt_cv_ld_reload_flag='-r'
5900fi
81ecdfbb
RW
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5902$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
5903reload_flag=$lt_cv_ld_reload_flag
5904case $reload_flag in
5905"" | " "*) ;;
5906*) reload_flag=" $reload_flag" ;;
5907esac
5908reload_cmds='$LD$reload_flag -o $output$reload_objs'
5909case $host_os in
5910 darwin*)
5911 if test "$GCC" = yes; then
5912 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5913 else
5914 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5915 fi
5916 ;;
5917esac
20e95c23 5918
6bf9431b 5919
20e95c23
DJ
5920
5921
20e95c23 5922
20e95c23 5923
ce2cded5 5924
ce2cded5 5925
ce2cded5 5926
b214d478
SE
5927if test -n "$ac_tool_prefix"; then
5928 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5929set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5931$as_echo_n "checking for $ac_word... " >&6; }
5932if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5933 $as_echo_n "(cached) " >&6
b214d478
SE
5934else
5935 if test -n "$OBJDUMP"; then
5936 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5937else
5938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939for as_dir in $PATH
5940do
5941 IFS=$as_save_IFS
5942 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5943 for ac_exec_ext in '' $ac_executable_extensions; do
5944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 5945 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
5947 break 2
5948 fi
5949done
81ecdfbb
RW
5950 done
5951IFS=$as_save_IFS
b214d478
SE
5952
5953fi
5954fi
5955OBJDUMP=$ac_cv_prog_OBJDUMP
5956if test -n "$OBJDUMP"; then
81ecdfbb
RW
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5958$as_echo "$OBJDUMP" >&6; }
b214d478 5959else
81ecdfbb
RW
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961$as_echo "no" >&6; }
b214d478
SE
5962fi
5963
81ecdfbb 5964
b214d478
SE
5965fi
5966if test -z "$ac_cv_prog_OBJDUMP"; then
5967 ac_ct_OBJDUMP=$OBJDUMP
5968 # Extract the first word of "objdump", so it can be a program name with args.
5969set dummy objdump; ac_word=$2
81ecdfbb
RW
5970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971$as_echo_n "checking for $ac_word... " >&6; }
5972if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5973 $as_echo_n "(cached) " >&6
b214d478
SE
5974else
5975 if test -n "$ac_ct_OBJDUMP"; then
5976 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5977else
5978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979for as_dir in $PATH
5980do
5981 IFS=$as_save_IFS
5982 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 5985 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 5986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
5987 break 2
5988 fi
5989done
81ecdfbb
RW
5990 done
5991IFS=$as_save_IFS
b214d478 5992
b214d478
SE
5993fi
5994fi
5995ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5996if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5998$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 5999else
81ecdfbb
RW
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001$as_echo "no" >&6; }
b214d478
SE
6002fi
6003
81ecdfbb
RW
6004 if test "x$ac_ct_OBJDUMP" = x; then
6005 OBJDUMP="false"
6006 else
6007 case $cross_compiling:$ac_tool_warned in
6008yes:)
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6011ac_tool_warned=yes ;;
6012esac
6013 OBJDUMP=$ac_ct_OBJDUMP
6014 fi
b214d478
SE
6015else
6016 OBJDUMP="$ac_cv_prog_OBJDUMP"
6017fi
6018
6019test -z "$OBJDUMP" && OBJDUMP=objdump
6020
6021
6022
6023
6024
6025
6026
6027
ce2cded5 6028
81ecdfbb
RW
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6030$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6031if test "${lt_cv_deplibs_check_method+set}" = set; then :
6032 $as_echo_n "(cached) " >&6
6bf9431b 6033else
7357c5b6
AM
6034 lt_cv_file_magic_cmd='$MAGIC_CMD'
6035lt_cv_file_magic_test_file=
6036lt_cv_deplibs_check_method='unknown'
6037# Need to set the preceding variable on all platforms that support
6038# interlibrary dependencies.
6039# 'none' -- dependencies not supported.
6040# `unknown' -- same as none, but documents that we really don't know.
6041# 'pass_all' -- all dependencies passed with no checks.
6042# 'test_compile' -- check by making test program.
6043# 'file_magic [[regex]]' -- check by looking for files in library path
6044# which responds to the $file_magic_cmd with a given extended regex.
6045# If you have `file' or equivalent on your system and you're not sure
6046# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 6047
ce2cded5 6048case $host_os in
7357c5b6
AM
6049aix[4-9]*)
6050 lt_cv_deplibs_check_method=pass_all
ce2cded5 6051 ;;
7357c5b6
AM
6052
6053beos*)
6054 lt_cv_deplibs_check_method=pass_all
ce2cded5 6055 ;;
7357c5b6
AM
6056
6057bsdi[45]*)
6058 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6059 lt_cv_file_magic_cmd='/usr/bin/file -L'
6060 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 6061 ;;
7357c5b6
AM
6062
6063cygwin*)
6064 # func_win32_libid is a shell function defined in ltmain.sh
6065 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6066 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 6067 ;;
7357c5b6
AM
6068
6069mingw* | pw32*)
6070 # Base MSYS/MinGW do not provide the 'file' command needed by
6071 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6072 # unless we find 'file', for example because we are cross-compiling.
6073 if ( file / ) >/dev/null 2>&1; then
6074 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6075 lt_cv_file_magic_cmd='func_win32_libid'
6076 else
6077 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6078 lt_cv_file_magic_cmd='$OBJDUMP -f'
6079 fi
ce2cded5 6080 ;;
7357c5b6 6081
b214d478
SE
6082cegcc)
6083 # use the weaker test based on 'objdump'. See mingw*.
6084 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6085 lt_cv_file_magic_cmd='$OBJDUMP -f'
6086 ;;
6087
7357c5b6
AM
6088darwin* | rhapsody*)
6089 lt_cv_deplibs_check_method=pass_all
d7040cdb 6090 ;;
d7040cdb 6091
7357c5b6
AM
6092freebsd* | dragonfly*)
6093 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6094 case $host_cpu in
6095 i*86 )
6096 # Not sure whether the presence of OpenBSD here was a mistake.
6097 # Let's accept both of them until this is cleared up.
6098 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6099 lt_cv_file_magic_cmd=/usr/bin/file
6100 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6101 ;;
6102 esac
6103 else
6104 lt_cv_deplibs_check_method=pass_all
6105 fi
6106 ;;
20e95c23 6107
7357c5b6
AM
6108gnu*)
6109 lt_cv_deplibs_check_method=pass_all
6110 ;;
20e95c23 6111
7357c5b6
AM
6112hpux10.20* | hpux11*)
6113 lt_cv_file_magic_cmd=/usr/bin/file
6114 case $host_cpu in
6115 ia64*)
6116 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6117 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6118 ;;
6119 hppa*64*)
6120 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]'
6121 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6122 ;;
6123 *)
6124 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6125 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6126 ;;
6127 esac
6128 ;;
5af11cab 6129
7357c5b6
AM
6130interix[3-9]*)
6131 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6132 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d7040cdb 6133 ;;
20e95c23 6134
7357c5b6
AM
6135irix5* | irix6* | nonstopux*)
6136 case $LD in
6137 *-32|*"-32 ") libmagic=32-bit;;
6138 *-n32|*"-n32 ") libmagic=N32;;
6139 *-64|*"-64 ") libmagic=64-bit;;
6140 *) libmagic=never-match;;
6141 esac
6142 lt_cv_deplibs_check_method=pass_all
6143 ;;
d7040cdb 6144
7357c5b6 6145# This must be Linux ELF.
58e24671 6146linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
6147 lt_cv_deplibs_check_method=pass_all
6148 ;;
d7040cdb 6149
7357c5b6
AM
6150netbsd*)
6151 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6152 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 6153 else
7357c5b6 6154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
ce2cded5 6155 fi
7357c5b6 6156 ;;
d7040cdb 6157
7357c5b6
AM
6158newos6*)
6159 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6160 lt_cv_file_magic_cmd=/usr/bin/file
6161 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6162 ;;
d7040cdb 6163
7357c5b6
AM
6164*nto* | *qnx*)
6165 lt_cv_deplibs_check_method=pass_all
6166 ;;
d7040cdb 6167
7357c5b6
AM
6168openbsd*)
6169 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6171 else
6172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6173 fi
6174 ;;
d7040cdb 6175
7357c5b6
AM
6176osf3* | osf4* | osf5*)
6177 lt_cv_deplibs_check_method=pass_all
6178 ;;
d7040cdb 6179
7357c5b6
AM
6180rdos*)
6181 lt_cv_deplibs_check_method=pass_all
6182 ;;
d7040cdb 6183
7357c5b6
AM
6184solaris*)
6185 lt_cv_deplibs_check_method=pass_all
6186 ;;
d7040cdb 6187
7357c5b6
AM
6188sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6189 lt_cv_deplibs_check_method=pass_all
6190 ;;
d7040cdb 6191
7357c5b6
AM
6192sysv4 | sysv4.3*)
6193 case $host_vendor in
6194 motorola)
6195 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]'
6196 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6197 ;;
6198 ncr)
6199 lt_cv_deplibs_check_method=pass_all
6200 ;;
6201 sequent)
6202 lt_cv_file_magic_cmd='/bin/file'
6203 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6204 ;;
6205 sni)
6206 lt_cv_file_magic_cmd='/bin/file'
6207 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6208 lt_cv_file_magic_test_file=/lib/libc.so
6209 ;;
6210 siemens)
6211 lt_cv_deplibs_check_method=pass_all
6212 ;;
6213 pc)
6214 lt_cv_deplibs_check_method=pass_all
6215 ;;
6216 esac
6217 ;;
d7040cdb 6218
7357c5b6
AM
6219tpf*)
6220 lt_cv_deplibs_check_method=pass_all
6221 ;;
6222esac
d7040cdb 6223
ce2cded5 6224fi
81ecdfbb
RW
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6226$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
6227file_magic_cmd=$lt_cv_file_magic_cmd
6228deplibs_check_method=$lt_cv_deplibs_check_method
6229test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 6230
d7040cdb 6231
d7040cdb 6232
d7040cdb 6233
5af11cab 6234
20e95c23 6235
20e95c23 6236
20e95c23 6237
20e95c23
DJ
6238
6239
6240
20e95c23 6241
7357c5b6
AM
6242if test -n "$ac_tool_prefix"; then
6243 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6244set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246$as_echo_n "checking for $ac_word... " >&6; }
6247if test "${ac_cv_prog_AR+set}" = set; then :
6248 $as_echo_n "(cached) " >&6
7357c5b6
AM
6249else
6250 if test -n "$AR"; then
6251 ac_cv_prog_AR="$AR" # Let the user override the test.
6252else
6253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254for as_dir in $PATH
6255do
6256 IFS=$as_save_IFS
6257 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6260 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6262 break 2
ce2cded5 6263 fi
7357c5b6 6264done
81ecdfbb
RW
6265 done
6266IFS=$as_save_IFS
d5fbea21 6267
7357c5b6
AM
6268fi
6269fi
6270AR=$ac_cv_prog_AR
6271if test -n "$AR"; then
81ecdfbb
RW
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6273$as_echo "$AR" >&6; }
7357c5b6 6274else
81ecdfbb
RW
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276$as_echo "no" >&6; }
7357c5b6 6277fi
d5fbea21 6278
81ecdfbb 6279
7357c5b6
AM
6280fi
6281if test -z "$ac_cv_prog_AR"; then
6282 ac_ct_AR=$AR
6283 # Extract the first word of "ar", so it can be a program name with args.
6284set dummy ar; ac_word=$2
81ecdfbb
RW
6285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286$as_echo_n "checking for $ac_word... " >&6; }
6287if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6288 $as_echo_n "(cached) " >&6
ce2cded5 6289else
7357c5b6
AM
6290 if test -n "$ac_ct_AR"; then
6291 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6292else
6293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH
6295do
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6300 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6302 break 2
6303 fi
6304done
81ecdfbb
RW
6305 done
6306IFS=$as_save_IFS
d7040cdb 6307
7357c5b6
AM
6308fi
6309fi
6310ac_ct_AR=$ac_cv_prog_ac_ct_AR
6311if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6313$as_echo "$ac_ct_AR" >&6; }
ce2cded5 6314else
81ecdfbb
RW
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316$as_echo "no" >&6; }
ce2cded5 6317fi
d7040cdb 6318
81ecdfbb
RW
6319 if test "x$ac_ct_AR" = x; then
6320 AR="false"
6321 else
6322 case $cross_compiling:$ac_tool_warned in
6323yes:)
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6326ac_tool_warned=yes ;;
6327esac
6328 AR=$ac_ct_AR
6329 fi
7357c5b6
AM
6330else
6331 AR="$ac_cv_prog_AR"
ce2cded5 6332fi
d7040cdb 6333
7357c5b6
AM
6334test -z "$AR" && AR=ar
6335test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb 6336
7357c5b6
AM
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347if test -n "$ac_tool_prefix"; then
6348 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6349set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351$as_echo_n "checking for $ac_word... " >&6; }
6352if test "${ac_cv_prog_STRIP+set}" = set; then :
6353 $as_echo_n "(cached) " >&6
252b5132 6354else
7357c5b6
AM
6355 if test -n "$STRIP"; then
6356 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6357else
6358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359for as_dir in $PATH
ce2cded5 6360do
7357c5b6
AM
6361 IFS=$as_save_IFS
6362 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6365 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6367 break 2
ce2cded5 6368 fi
7357c5b6 6369done
81ecdfbb
RW
6370 done
6371IFS=$as_save_IFS
7357c5b6 6372
252b5132 6373fi
7357c5b6
AM
6374fi
6375STRIP=$ac_cv_prog_STRIP
6376if test -n "$STRIP"; then
81ecdfbb
RW
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6378$as_echo "$STRIP" >&6; }
252b5132 6379else
81ecdfbb
RW
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381$as_echo "no" >&6; }
252b5132 6382fi
d7040cdb 6383
81ecdfbb 6384
6bf9431b 6385fi
7357c5b6
AM
6386if test -z "$ac_cv_prog_STRIP"; then
6387 ac_ct_STRIP=$STRIP
6388 # Extract the first word of "strip", so it can be a program name with args.
6389set dummy strip; ac_word=$2
81ecdfbb
RW
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391$as_echo_n "checking for $ac_word... " >&6; }
6392if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6393 $as_echo_n "(cached) " >&6
ac48eca1 6394else
7357c5b6
AM
6395 if test -n "$ac_ct_STRIP"; then
6396 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6397else
6398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399for as_dir in $PATH
6400do
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6405 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6407 break 2
6408 fi
6409done
81ecdfbb
RW
6410 done
6411IFS=$as_save_IFS
6bf9431b 6412
7357c5b6
AM
6413fi
6414fi
6415ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6416if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6418$as_echo "$ac_ct_STRIP" >&6; }
7357c5b6 6419else
81ecdfbb
RW
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421$as_echo "no" >&6; }
6bf9431b 6422fi
6bf9431b 6423
81ecdfbb
RW
6424 if test "x$ac_ct_STRIP" = x; then
6425 STRIP=":"
6426 else
6427 case $cross_compiling:$ac_tool_warned in
6428yes:)
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6431ac_tool_warned=yes ;;
6432esac
6433 STRIP=$ac_ct_STRIP
6434 fi
7357c5b6
AM
6435else
6436 STRIP="$ac_cv_prog_STRIP"
ce2cded5 6437fi
6bf9431b 6438
7357c5b6
AM
6439test -z "$STRIP" && STRIP=:
6440
6441
6442
6443
6444
6445
6446if test -n "$ac_tool_prefix"; then
6447 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6448set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450$as_echo_n "checking for $ac_word... " >&6; }
6451if test "${ac_cv_prog_RANLIB+set}" = set; then :
6452 $as_echo_n "(cached) " >&6
7357c5b6
AM
6453else
6454 if test -n "$RANLIB"; then
6455 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6456else
6457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458for as_dir in $PATH
6459do
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6464 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6466 break 2
6467 fi
6468done
81ecdfbb
RW
6469 done
6470IFS=$as_save_IFS
6bf9431b 6471
ce2cded5 6472fi
7357c5b6
AM
6473fi
6474RANLIB=$ac_cv_prog_RANLIB
6475if test -n "$RANLIB"; then
81ecdfbb
RW
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6477$as_echo "$RANLIB" >&6; }
ac48eca1 6478else
81ecdfbb
RW
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480$as_echo "no" >&6; }
d7040cdb 6481fi
7357c5b6 6482
81ecdfbb 6483
7357c5b6
AM
6484fi
6485if test -z "$ac_cv_prog_RANLIB"; then
6486 ac_ct_RANLIB=$RANLIB
6487 # Extract the first word of "ranlib", so it can be a program name with args.
6488set dummy ranlib; ac_word=$2
81ecdfbb
RW
6489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6490$as_echo_n "checking for $ac_word... " >&6; }
6491if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6492 $as_echo_n "(cached) " >&6
7357c5b6
AM
6493else
6494 if test -n "$ac_ct_RANLIB"; then
6495 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6496else
6497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498for as_dir in $PATH
ce2cded5 6499do
7357c5b6
AM
6500 IFS=$as_save_IFS
6501 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6504 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6506 break 2
ce2cded5 6507 fi
7357c5b6 6508done
81ecdfbb
RW
6509 done
6510IFS=$as_save_IFS
7357c5b6 6511
ce2cded5 6512fi
7357c5b6
AM
6513fi
6514ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6515if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6517$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 6518else
81ecdfbb
RW
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520$as_echo "no" >&6; }
ce2cded5 6521fi
d7040cdb 6522
81ecdfbb
RW
6523 if test "x$ac_ct_RANLIB" = x; then
6524 RANLIB=":"
6525 else
6526 case $cross_compiling:$ac_tool_warned in
6527yes:)
6528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6530ac_tool_warned=yes ;;
6531esac
6532 RANLIB=$ac_ct_RANLIB
6533 fi
d7040cdb 6534else
7357c5b6 6535 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb
SE
6536fi
6537
7357c5b6
AM
6538test -z "$RANLIB" && RANLIB=:
6539
6540
6541
6542
6543
6544
6545# Determine commands to create old-style static archives.
b214d478 6546old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
6547old_postinstall_cmds='chmod 644 $oldlib'
6548old_postuninstall_cmds=
6549
6550if test -n "$RANLIB"; then
6551 case $host_os in
6552 openbsd*)
6553 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6554 ;;
6555 *)
6556 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6557 ;;
6558 esac
6559 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 6560fi
d7040cdb
SE
6561
6562
6563
6564
6565
d7040cdb 6566
7357c5b6
AM
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595# If no C compiler was specified, use CC.
6596LTCC=${LTCC-"$CC"}
6597
6598# If no C compiler flags were specified, use CFLAGS.
6599LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6600
6601# Allow CC to be a program name with arguments.
6602compiler=$CC
6603
6604
6605# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6607$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6608if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6609 $as_echo_n "(cached) " >&6
7357c5b6
AM
6610else
6611
6612# These are sane defaults that work on at least a few old systems.
6613# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6614
6615# Character class describing NM global symbol codes.
6616symcode='[BCDEGRST]'
6617
6618# Regexp to match symbols that can be accessed directly from C.
6619sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6620
6621# Define system-specific variables.
6622case $host_os in
6623aix*)
6624 symcode='[BCDT]'
6625 ;;
b214d478 6626cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
6627 symcode='[ABCDGISTW]'
6628 ;;
6629hpux*)
6630 if test "$host_cpu" = ia64; then
6631 symcode='[ABCDEGRST]'
6632 fi
6633 ;;
6634irix* | nonstopux*)
6635 symcode='[BCDEGRST]'
6636 ;;
6637osf*)
6638 symcode='[BCDEGQRST]'
6639 ;;
6640solaris*)
6641 symcode='[BDRT]'
6642 ;;
6643sco3.2v5*)
6644 symcode='[DT]'
6645 ;;
6646sysv4.2uw2*)
6647 symcode='[DT]'
6648 ;;
6649sysv5* | sco5v6* | unixware* | OpenUNIX*)
6650 symcode='[ABDT]'
6651 ;;
6652sysv4)
6653 symcode='[DFNSTU]'
6654 ;;
6655esac
6656
6657# If we're using GNU nm, then use its standard symbol codes.
6658case `$NM -V 2>&1` in
6659*GNU* | *'with BFD'*)
6660 symcode='[ABCDGIRSTW]' ;;
6661esac
6662
6663# Transform an extracted symbol line into a proper C declaration.
6664# Some systems (esp. on ia64) link data and code symbols differently,
6665# so use this general approach.
6666lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6667
6668# Transform an extracted symbol line into symbol name and symbol address
6669lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 6670lt_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'"
7357c5b6
AM
6671
6672# Handle CRLF in mingw tool chain
6673opt_cr=
6674case $build_os in
6675mingw*)
6676 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6677 ;;
6678esac
6679
6680# Try without a prefix underscore, then with it.
6681for ac_symprfx in "" "_"; do
6682
6683 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6684 symxfrm="\\1 $ac_symprfx\\2 \\2"
6685
6686 # Write the raw and C identifiers.
6687 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6688 # Fake it for dumpbin and say T for any non-static function
6689 # and D for any global variable.
6690 # Also find C++ and __fastcall symbols from MSVC++,
6691 # which start with @ or ?.
6692 lt_cv_sys_global_symbol_pipe="$AWK '"\
6693" {last_section=section; section=\$ 3};"\
6694" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6695" \$ 0!~/External *\|/{next};"\
6696" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6697" {if(hide[section]) next};"\
6698" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6699" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6700" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6701" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6702" ' prfx=^$ac_symprfx"
6703 else
6704 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6705 fi
6706
6707 # Check to see that the pipe works correctly.
6708 pipe_works=no
6709
6710 rm -f conftest*
6711 cat > conftest.$ac_ext <<_LT_EOF
6712#ifdef __cplusplus
6713extern "C" {
6714#endif
6715char nm_test_var;
6716void nm_test_func(void);
6717void nm_test_func(void){}
6718#ifdef __cplusplus
ce2cded5 6719}
7357c5b6
AM
6720#endif
6721int main(){nm_test_var='a';nm_test_func();return(0);}
6722_LT_EOF
6723
81ecdfbb 6724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6725 (eval $ac_compile) 2>&5
ce2cded5 6726 ac_status=$?
81ecdfbb
RW
6727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6728 test $ac_status = 0; }; then
7357c5b6
AM
6729 # Now try to grab the symbols.
6730 nlist=conftest.nm
81ecdfbb 6731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7357c5b6 6732 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
ce2cded5 6733 ac_status=$?
81ecdfbb
RW
6734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6735 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6736 # Try sorting and uniquifying the output.
6737 if sort "$nlist" | uniq > "$nlist"T; then
6738 mv -f "$nlist"T "$nlist"
6739 else
6740 rm -f "$nlist"T
6741 fi
6bf9431b 6742
7357c5b6
AM
6743 # Make sure that we snagged all the symbols we need.
6744 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6745 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6746 cat <<_LT_EOF > conftest.$ac_ext
6747#ifdef __cplusplus
6748extern "C" {
6749#endif
d7040cdb 6750
7357c5b6
AM
6751_LT_EOF
6752 # Now generate the symbol file.
6753 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d7040cdb 6754
7357c5b6 6755 cat <<_LT_EOF >> conftest.$ac_ext
ac48eca1 6756
7357c5b6
AM
6757/* The mapping between symbol names and symbols. */
6758const struct {
6759 const char *name;
6760 void *address;
6761}
6762lt__PROGRAM__LTX_preloaded_symbols[] =
6763{
6764 { "@PROGRAM@", (void *) 0 },
6765_LT_EOF
6766 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6767 cat <<\_LT_EOF >> conftest.$ac_ext
6768 {0, (void *) 0}
6769};
d7040cdb 6770
7357c5b6
AM
6771/* This works around a problem in FreeBSD linker */
6772#ifdef FREEBSD_WORKAROUND
6773static const void *lt_preloaded_setup() {
6774 return lt__PROGRAM__LTX_preloaded_symbols;
6775}
ce2cded5 6776#endif
d7040cdb 6777
7357c5b6 6778#ifdef __cplusplus
ce2cded5 6779}
7357c5b6
AM
6780#endif
6781_LT_EOF
6782 # Now try linking the two files.
6783 mv conftest.$ac_objext conftstm.$ac_objext
6784 lt_save_LIBS="$LIBS"
6785 lt_save_CFLAGS="$CFLAGS"
6786 LIBS="conftstm.$ac_objext"
6787 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
6789 (eval $ac_link) 2>&5
6790 ac_status=$?
81ecdfbb
RW
6791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6792 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6793 pipe_works=yes
6794 fi
6795 LIBS="$lt_save_LIBS"
6796 CFLAGS="$lt_save_CFLAGS"
6797 else
6798 echo "cannot find nm_test_func in $nlist" >&5
6799 fi
6800 else
6801 echo "cannot find nm_test_var in $nlist" >&5
6802 fi
6803 else
6804 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6805 fi
6806 else
6807 echo "$progname: failed program was:" >&5
6808 cat conftest.$ac_ext >&5
6809 fi
b214d478 6810 rm -rf conftest* conftst*
7357c5b6
AM
6811
6812 # Do not use the global_symbol_pipe unless it works.
6813 if test "$pipe_works" = yes; then
6814 break
6815 else
6816 lt_cv_sys_global_symbol_pipe=
6817 fi
6818done
d7040cdb 6819
ce2cded5 6820fi
7357c5b6
AM
6821
6822if test -z "$lt_cv_sys_global_symbol_pipe"; then
6823 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 6824fi
7357c5b6 6825if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6827$as_echo "failed" >&6; }
7357c5b6 6828else
81ecdfbb
RW
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6830$as_echo "ok" >&6; }
ce2cded5 6831fi
d7040cdb 6832
d7040cdb 6833
d7040cdb 6834
d7040cdb 6835
d7040cdb 6836
d7040cdb 6837
d7040cdb 6838
d7040cdb 6839
d7040cdb 6840
d7040cdb 6841
d7040cdb 6842
d7040cdb 6843
7357c5b6
AM
6844
6845
6846
b214d478
SE
6847
6848
6849
6850
6851
7357c5b6
AM
6852
6853
81ecdfbb
RW
6854# Check whether --enable-libtool-lock was given.
6855if test "${enable_libtool_lock+set}" = set; then :
6856 enableval=$enable_libtool_lock;
6857fi
7357c5b6 6858
7357c5b6
AM
6859test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6860
6861# Some flags need to be propagated to the compiler or linker for good
6862# libtool support.
6863case $host in
6864ia64-*-hpux*)
6865 # Find out which ABI we are using.
6866 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6868 (eval $ac_compile) 2>&5
6869 ac_status=$?
81ecdfbb
RW
6870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6871 test $ac_status = 0; }; then
7357c5b6
AM
6872 case `/usr/bin/file conftest.$ac_objext` in
6873 *ELF-32*)
6874 HPUX_IA64_MODE="32"
6875 ;;
6876 *ELF-64*)
6877 HPUX_IA64_MODE="64"
6878 ;;
6879 esac
6880 fi
6881 rm -rf conftest*
6882 ;;
6883*-*-irix6*)
6884 # Find out which ABI we are using.
da2f07f1 6885 echo '#line 6885 "configure"' > conftest.$ac_ext
81ecdfbb 6886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6887 (eval $ac_compile) 2>&5
6888 ac_status=$?
81ecdfbb
RW
6889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6890 test $ac_status = 0; }; then
7357c5b6
AM
6891 if test "$lt_cv_prog_gnu_ld" = yes; then
6892 case `/usr/bin/file conftest.$ac_objext` in
6893 *32-bit*)
6894 LD="${LD-ld} -melf32bsmip"
6895 ;;
6896 *N32*)
6897 LD="${LD-ld} -melf32bmipn32"
6898 ;;
6899 *64-bit*)
6900 LD="${LD-ld} -melf64bmip"
6901 ;;
6902 esac
6903 else
6904 case `/usr/bin/file conftest.$ac_objext` in
6905 *32-bit*)
6906 LD="${LD-ld} -32"
6907 ;;
6908 *N32*)
6909 LD="${LD-ld} -n32"
6910 ;;
6911 *64-bit*)
6912 LD="${LD-ld} -64"
6913 ;;
6914 esac
6915 fi
6916 fi
6917 rm -rf conftest*
6918 ;;
6919
6920x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6921s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6922 # Find out which ABI we are using.
6923 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6925 (eval $ac_compile) 2>&5
6926 ac_status=$?
81ecdfbb
RW
6927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6928 test $ac_status = 0; }; then
7357c5b6
AM
6929 case `/usr/bin/file conftest.o` in
6930 *32-bit*)
6931 case $host in
6932 x86_64-*kfreebsd*-gnu)
6933 LD="${LD-ld} -m elf_i386_fbsd"
6934 ;;
6935 x86_64-*linux*)
6936 LD="${LD-ld} -m elf_i386"
6937 ;;
6938 ppc64-*linux*|powerpc64-*linux*)
6939 LD="${LD-ld} -m elf32ppclinux"
6940 ;;
6941 s390x-*linux*)
6942 LD="${LD-ld} -m elf_s390"
6943 ;;
6944 sparc64-*linux*)
6945 LD="${LD-ld} -m elf32_sparc"
6946 ;;
6947 esac
6948 ;;
6949 *64-bit*)
6950 case $host in
6951 x86_64-*kfreebsd*-gnu)
6952 LD="${LD-ld} -m elf_x86_64_fbsd"
6953 ;;
6954 x86_64-*linux*)
6955 LD="${LD-ld} -m elf_x86_64"
6956 ;;
6957 ppc*-*linux*|powerpc*-*linux*)
6958 LD="${LD-ld} -m elf64ppc"
6959 ;;
6960 s390*-*linux*|s390*-*tpf*)
6961 LD="${LD-ld} -m elf64_s390"
6962 ;;
6963 sparc*-*linux*)
6964 LD="${LD-ld} -m elf64_sparc"
6965 ;;
6966 esac
6967 ;;
6968 esac
6969 fi
6970 rm -rf conftest*
6971 ;;
6972
6973*-*-sco3.2v5*)
6974 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6975 SAVE_CFLAGS="$CFLAGS"
6976 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6978$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6979if test "${lt_cv_cc_needs_belf+set}" = set; then :
6980 $as_echo_n "(cached) " >&6
ce2cded5 6981else
7357c5b6
AM
6982 ac_ext=c
6983ac_cpp='$CPP $CPPFLAGS'
6984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6986ac_compiler_gnu=$ac_cv_c_compiler_gnu
6987
81ecdfbb 6988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b 6989/* end confdefs.h. */
20e95c23 6990
7357c5b6
AM
6991int
6992main ()
6993{
6994
6995 ;
6996 return 0;
6997}
6bf9431b 6998_ACEOF
81ecdfbb 6999if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7000 lt_cv_cc_needs_belf=yes
6bf9431b 7001else
81ecdfbb 7002 lt_cv_cc_needs_belf=no
ce2cded5 7003fi
81ecdfbb
RW
7004rm -f core conftest.err conftest.$ac_objext \
7005 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7006 ac_ext=c
7007ac_cpp='$CPP $CPPFLAGS'
7008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7010ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 7011
b214d478 7012fi
81ecdfbb
RW
7013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7014$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
7015 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7016 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7017 CFLAGS="$SAVE_CFLAGS"
7018 fi
7019 ;;
7020sparc*-*solaris*)
7021 # Find out which ABI we are using.
7022 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
7024 (eval $ac_compile) 2>&5
7025 ac_status=$?
81ecdfbb
RW
7026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7027 test $ac_status = 0; }; then
b214d478
SE
7028 case `/usr/bin/file conftest.o` in
7029 *64-bit*)
7030 case $lt_cv_prog_gnu_ld in
7031 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7032 *)
7033 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7034 LD="${LD-ld} -64"
7035 fi
7036 ;;
7037 esac
7038 ;;
7039 esac
7040 fi
7041 rm -rf conftest*
7042 ;;
7043esac
7044
7045need_locks="$enable_libtool_lock"
7046
7047
7048 case $host_os in
7049 rhapsody* | darwin*)
7050 if test -n "$ac_tool_prefix"; then
7051 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7052set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7054$as_echo_n "checking for $ac_word... " >&6; }
7055if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7056 $as_echo_n "(cached) " >&6
b214d478
SE
7057else
7058 if test -n "$DSYMUTIL"; then
7059 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7060else
7061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062for as_dir in $PATH
7063do
7064 IFS=$as_save_IFS
7065 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7068 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7070 break 2
7071 fi
7072done
81ecdfbb
RW
7073 done
7074IFS=$as_save_IFS
b214d478
SE
7075
7076fi
7077fi
7078DSYMUTIL=$ac_cv_prog_DSYMUTIL
7079if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7081$as_echo "$DSYMUTIL" >&6; }
b214d478 7082else
81ecdfbb
RW
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084$as_echo "no" >&6; }
b214d478
SE
7085fi
7086
81ecdfbb 7087
b214d478
SE
7088fi
7089if test -z "$ac_cv_prog_DSYMUTIL"; then
7090 ac_ct_DSYMUTIL=$DSYMUTIL
7091 # Extract the first word of "dsymutil", so it can be a program name with args.
7092set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7094$as_echo_n "checking for $ac_word... " >&6; }
7095if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7096 $as_echo_n "(cached) " >&6
b214d478
SE
7097else
7098 if test -n "$ac_ct_DSYMUTIL"; then
7099 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7100else
7101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102for as_dir in $PATH
7103do
7104 IFS=$as_save_IFS
7105 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7108 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7110 break 2
7111 fi
7112done
81ecdfbb
RW
7113 done
7114IFS=$as_save_IFS
b214d478 7115
b214d478
SE
7116fi
7117fi
7118ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7119if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7121$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 7122else
81ecdfbb
RW
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7124$as_echo "no" >&6; }
b214d478
SE
7125fi
7126
81ecdfbb
RW
7127 if test "x$ac_ct_DSYMUTIL" = x; then
7128 DSYMUTIL=":"
7129 else
7130 case $cross_compiling:$ac_tool_warned in
7131yes:)
7132{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7133$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7134ac_tool_warned=yes ;;
7135esac
7136 DSYMUTIL=$ac_ct_DSYMUTIL
7137 fi
b214d478
SE
7138else
7139 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7140fi
7141
7142 if test -n "$ac_tool_prefix"; then
7143 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7144set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7146$as_echo_n "checking for $ac_word... " >&6; }
7147if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7148 $as_echo_n "(cached) " >&6
b214d478
SE
7149else
7150 if test -n "$NMEDIT"; then
7151 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7152else
7153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154for as_dir in $PATH
7155do
7156 IFS=$as_save_IFS
7157 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7160 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7162 break 2
7163 fi
7164done
81ecdfbb
RW
7165 done
7166IFS=$as_save_IFS
b214d478
SE
7167
7168fi
7169fi
7170NMEDIT=$ac_cv_prog_NMEDIT
7171if test -n "$NMEDIT"; then
81ecdfbb
RW
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7173$as_echo "$NMEDIT" >&6; }
b214d478 7174else
81ecdfbb
RW
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7176$as_echo "no" >&6; }
b214d478
SE
7177fi
7178
81ecdfbb 7179
b214d478
SE
7180fi
7181if test -z "$ac_cv_prog_NMEDIT"; then
7182 ac_ct_NMEDIT=$NMEDIT
7183 # Extract the first word of "nmedit", so it can be a program name with args.
7184set dummy nmedit; ac_word=$2
81ecdfbb
RW
7185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7186$as_echo_n "checking for $ac_word... " >&6; }
7187if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7188 $as_echo_n "(cached) " >&6
b214d478
SE
7189else
7190 if test -n "$ac_ct_NMEDIT"; then
7191 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7192else
7193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194for as_dir in $PATH
7195do
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7200 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7202 break 2
7203 fi
7204done
81ecdfbb
RW
7205 done
7206IFS=$as_save_IFS
b214d478 7207
b214d478
SE
7208fi
7209fi
7210ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7211if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7213$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 7214else
81ecdfbb
RW
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216$as_echo "no" >&6; }
b214d478
SE
7217fi
7218
81ecdfbb
RW
7219 if test "x$ac_ct_NMEDIT" = x; then
7220 NMEDIT=":"
7221 else
7222 case $cross_compiling:$ac_tool_warned in
7223yes:)
7224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7226ac_tool_warned=yes ;;
7227esac
7228 NMEDIT=$ac_ct_NMEDIT
7229 fi
b214d478
SE
7230else
7231 NMEDIT="$ac_cv_prog_NMEDIT"
7232fi
7233
7234 if test -n "$ac_tool_prefix"; then
7235 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7236set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238$as_echo_n "checking for $ac_word... " >&6; }
7239if test "${ac_cv_prog_LIPO+set}" = set; then :
7240 $as_echo_n "(cached) " >&6
b214d478
SE
7241else
7242 if test -n "$LIPO"; then
7243 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7244else
7245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246for as_dir in $PATH
7247do
7248 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7252 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7254 break 2
7255 fi
7256done
81ecdfbb
RW
7257 done
7258IFS=$as_save_IFS
b214d478
SE
7259
7260fi
7261fi
7262LIPO=$ac_cv_prog_LIPO
7263if test -n "$LIPO"; then
81ecdfbb
RW
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7265$as_echo "$LIPO" >&6; }
b214d478 7266else
81ecdfbb
RW
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268$as_echo "no" >&6; }
b214d478
SE
7269fi
7270
81ecdfbb 7271
b214d478
SE
7272fi
7273if test -z "$ac_cv_prog_LIPO"; then
7274 ac_ct_LIPO=$LIPO
7275 # Extract the first word of "lipo", so it can be a program name with args.
7276set dummy lipo; ac_word=$2
81ecdfbb
RW
7277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278$as_echo_n "checking for $ac_word... " >&6; }
7279if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7280 $as_echo_n "(cached) " >&6
b214d478
SE
7281else
7282 if test -n "$ac_ct_LIPO"; then
7283 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7284else
7285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286for as_dir in $PATH
7287do
7288 IFS=$as_save_IFS
7289 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7290 for ac_exec_ext in '' $ac_executable_extensions; do
7291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7292 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7294 break 2
7295 fi
7296done
81ecdfbb
RW
7297 done
7298IFS=$as_save_IFS
b214d478 7299
b214d478
SE
7300fi
7301fi
7302ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7303if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7305$as_echo "$ac_ct_LIPO" >&6; }
b214d478 7306else
81ecdfbb
RW
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308$as_echo "no" >&6; }
b214d478
SE
7309fi
7310
81ecdfbb
RW
7311 if test "x$ac_ct_LIPO" = x; then
7312 LIPO=":"
7313 else
7314 case $cross_compiling:$ac_tool_warned in
7315yes:)
7316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7318ac_tool_warned=yes ;;
7319esac
7320 LIPO=$ac_ct_LIPO
7321 fi
b214d478
SE
7322else
7323 LIPO="$ac_cv_prog_LIPO"
7324fi
7325
7326 if test -n "$ac_tool_prefix"; then
7327 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7328set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330$as_echo_n "checking for $ac_word... " >&6; }
7331if test "${ac_cv_prog_OTOOL+set}" = set; then :
7332 $as_echo_n "(cached) " >&6
b214d478
SE
7333else
7334 if test -n "$OTOOL"; then
7335 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7336else
7337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338for as_dir in $PATH
7339do
7340 IFS=$as_save_IFS
7341 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7344 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7346 break 2
7347 fi
7348done
81ecdfbb
RW
7349 done
7350IFS=$as_save_IFS
b214d478
SE
7351
7352fi
7353fi
7354OTOOL=$ac_cv_prog_OTOOL
7355if test -n "$OTOOL"; then
81ecdfbb
RW
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7357$as_echo "$OTOOL" >&6; }
b214d478 7358else
81ecdfbb
RW
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360$as_echo "no" >&6; }
b214d478
SE
7361fi
7362
81ecdfbb 7363
b214d478
SE
7364fi
7365if test -z "$ac_cv_prog_OTOOL"; then
7366 ac_ct_OTOOL=$OTOOL
7367 # Extract the first word of "otool", so it can be a program name with args.
7368set dummy otool; ac_word=$2
81ecdfbb
RW
7369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370$as_echo_n "checking for $ac_word... " >&6; }
7371if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7372 $as_echo_n "(cached) " >&6
b214d478
SE
7373else
7374 if test -n "$ac_ct_OTOOL"; then
7375 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7376else
7377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378for as_dir in $PATH
7379do
7380 IFS=$as_save_IFS
7381 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7384 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7386 break 2
7387 fi
7388done
81ecdfbb
RW
7389 done
7390IFS=$as_save_IFS
b214d478 7391
b214d478
SE
7392fi
7393fi
7394ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7395if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7397$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 7398else
81ecdfbb
RW
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400$as_echo "no" >&6; }
b214d478
SE
7401fi
7402
81ecdfbb
RW
7403 if test "x$ac_ct_OTOOL" = x; then
7404 OTOOL=":"
7405 else
7406 case $cross_compiling:$ac_tool_warned in
7407yes:)
7408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7410ac_tool_warned=yes ;;
7411esac
7412 OTOOL=$ac_ct_OTOOL
7413 fi
b214d478
SE
7414else
7415 OTOOL="$ac_cv_prog_OTOOL"
7416fi
7417
7418 if test -n "$ac_tool_prefix"; then
7419 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7420set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422$as_echo_n "checking for $ac_word... " >&6; }
7423if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7424 $as_echo_n "(cached) " >&6
b214d478
SE
7425else
7426 if test -n "$OTOOL64"; then
7427 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7428else
7429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430for as_dir in $PATH
7431do
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7436 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7438 break 2
7439 fi
7440done
81ecdfbb
RW
7441 done
7442IFS=$as_save_IFS
b214d478
SE
7443
7444fi
7445fi
7446OTOOL64=$ac_cv_prog_OTOOL64
7447if test -n "$OTOOL64"; then
81ecdfbb
RW
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7449$as_echo "$OTOOL64" >&6; }
b214d478 7450else
81ecdfbb
RW
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452$as_echo "no" >&6; }
b214d478
SE
7453fi
7454
81ecdfbb 7455
b214d478
SE
7456fi
7457if test -z "$ac_cv_prog_OTOOL64"; then
7458 ac_ct_OTOOL64=$OTOOL64
7459 # Extract the first word of "otool64", so it can be a program name with args.
7460set dummy otool64; ac_word=$2
81ecdfbb
RW
7461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462$as_echo_n "checking for $ac_word... " >&6; }
7463if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7464 $as_echo_n "(cached) " >&6
b214d478
SE
7465else
7466 if test -n "$ac_ct_OTOOL64"; then
7467 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7468else
7469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470for as_dir in $PATH
7471do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7476 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7478 break 2
7479 fi
7480done
81ecdfbb
RW
7481 done
7482IFS=$as_save_IFS
b214d478 7483
b214d478
SE
7484fi
7485fi
7486ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7487if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7489$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 7490else
81ecdfbb
RW
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492$as_echo "no" >&6; }
b214d478
SE
7493fi
7494
81ecdfbb
RW
7495 if test "x$ac_ct_OTOOL64" = x; then
7496 OTOOL64=":"
7497 else
7498 case $cross_compiling:$ac_tool_warned in
7499yes:)
7500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7502ac_tool_warned=yes ;;
7503esac
7504 OTOOL64=$ac_ct_OTOOL64
7505 fi
b214d478
SE
7506else
7507 OTOOL64="$ac_cv_prog_OTOOL64"
7508fi
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
81ecdfbb
RW
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7537$as_echo_n "checking for -single_module linker flag... " >&6; }
7538if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7539 $as_echo_n "(cached) " >&6
b214d478
SE
7540else
7541 lt_cv_apple_cc_single_mod=no
7542 if test -z "${LT_MULTI_MODULE}"; then
7543 # By default we will add the -single_module flag. You can override
7544 # by either setting the environment variable LT_MULTI_MODULE
7545 # non-empty at configure time, or by adding -multi_module to the
7546 # link flags.
7547 rm -rf libconftest.dylib*
7548 echo "int foo(void){return 1;}" > conftest.c
7549 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7550-dynamiclib -Wl,-single_module conftest.c" >&5
7551 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7552 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7553 _lt_result=$?
7554 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7555 lt_cv_apple_cc_single_mod=yes
7556 else
7557 cat conftest.err >&5
7558 fi
7559 rm -rf libconftest.dylib*
7560 rm -f conftest.*
7561 fi
7562fi
81ecdfbb
RW
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7564$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7566$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7567if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7568 $as_echo_n "(cached) " >&6
b214d478
SE
7569else
7570 lt_cv_ld_exported_symbols_list=no
7571 save_LDFLAGS=$LDFLAGS
7572 echo "_main" > conftest.sym
7573 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
7575/* end confdefs.h. */
7576
7577int
7578main ()
7579{
7580
7581 ;
7582 return 0;
7583}
7584_ACEOF
81ecdfbb 7585if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
7586 lt_cv_ld_exported_symbols_list=yes
7587else
81ecdfbb 7588 lt_cv_ld_exported_symbols_list=no
b214d478 7589fi
81ecdfbb
RW
7590rm -f core conftest.err conftest.$ac_objext \
7591 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
7592 LDFLAGS="$save_LDFLAGS"
7593
7594fi
81ecdfbb
RW
7595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7596$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
b214d478
SE
7597 case $host_os in
7598 rhapsody* | darwin1.[012])
7599 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7600 darwin1.*)
7601 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7602 darwin*) # darwin 5.x on
7603 # if running on 10.5 or later, the deployment target defaults
7604 # to the OS version, if on x86, and 10.4, the deployment
7605 # target defaults to 10.4. Don't you love it?
7606 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7607 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7608 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7609 10.[012]*)
7610 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7611 10.*)
7612 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7613 esac
7614 ;;
7615 esac
7616 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7617 _lt_dar_single_mod='$single_module'
7618 fi
7619 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7620 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7621 else
7622 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7623 fi
7624 if test "$DSYMUTIL" != ":"; then
7625 _lt_dsymutil='~$DSYMUTIL $lib || :'
7626 else
7627 _lt_dsymutil=
7628 fi
7629 ;;
7630 esac
7631
b214d478 7632for ac_header in dlfcn.h
81ecdfbb
RW
7633do :
7634 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7635"
7636if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
b214d478 7637 cat >>confdefs.h <<_ACEOF
81ecdfbb 7638#define HAVE_DLFCN_H 1
b214d478
SE
7639_ACEOF
7640
7641fi
7642
7643done
7644
7645
7646
7647# Set options
7648
7649
7650
7651 enable_dlopen=no
7652
7653
7654 enable_win32_dll=no
7655
7656
81ecdfbb
RW
7657 # Check whether --enable-shared was given.
7658if test "${enable_shared+set}" = set; then :
7659 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
7660 case $enableval in
7661 yes) enable_shared=yes ;;
7662 no) enable_shared=no ;;
7663 *)
7664 enable_shared=no
7665 # Look at the argument we got. We use all the common list separators.
7666 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7667 for pkg in $enableval; do
7668 IFS="$lt_save_ifs"
7669 if test "X$pkg" = "X$p"; then
7670 enable_shared=yes
7671 fi
7672 done
7673 IFS="$lt_save_ifs"
7674 ;;
7675 esac
7676else
7677 enable_shared=yes
81ecdfbb
RW
7678fi
7679
b214d478
SE
7680
7681
7682
7683
7684
7685
7686
7687
81ecdfbb
RW
7688 # Check whether --enable-static was given.
7689if test "${enable_static+set}" = set; then :
7690 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
7691 case $enableval in
7692 yes) enable_static=yes ;;
7693 no) enable_static=no ;;
7694 *)
7695 enable_static=no
7696 # Look at the argument we got. We use all the common list separators.
7697 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7698 for pkg in $enableval; do
7699 IFS="$lt_save_ifs"
7700 if test "X$pkg" = "X$p"; then
7701 enable_static=yes
7702 fi
7703 done
7704 IFS="$lt_save_ifs"
7705 ;;
7706 esac
7707else
7708 enable_static=yes
81ecdfbb
RW
7709fi
7710
b214d478
SE
7711
7712
7713
7714
7715
7716
7717
7718
7719
81ecdfbb
RW
7720# Check whether --with-pic was given.
7721if test "${with_pic+set}" = set; then :
7722 withval=$with_pic; pic_mode="$withval"
b214d478
SE
7723else
7724 pic_mode=default
81ecdfbb
RW
7725fi
7726
b214d478
SE
7727
7728test -z "$pic_mode" && pic_mode=default
7729
7730
7731
7732
7733
7734
7735
81ecdfbb
RW
7736 # Check whether --enable-fast-install was given.
7737if test "${enable_fast_install+set}" = set; then :
7738 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
7739 case $enableval in
7740 yes) enable_fast_install=yes ;;
7741 no) enable_fast_install=no ;;
7742 *)
7743 enable_fast_install=no
7744 # Look at the argument we got. We use all the common list separators.
7745 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7746 for pkg in $enableval; do
7747 IFS="$lt_save_ifs"
7748 if test "X$pkg" = "X$p"; then
7749 enable_fast_install=yes
7750 fi
7751 done
7752 IFS="$lt_save_ifs"
7357c5b6
AM
7753 ;;
7754 esac
b214d478
SE
7755else
7756 enable_fast_install=yes
81ecdfbb
RW
7757fi
7758
d7040cdb 7759
ce2cded5
L
7760
7761
ce2cded5 7762
252b5132 7763
d7040cdb 7764
252b5132 7765
6bf9431b 7766
252b5132 7767
6bf9431b 7768
ce2cded5
L
7769# This can be used to rebuild libtool when needed
7770LIBTOOL_DEPS="$ltmain"
6bf9431b 7771
ce2cded5
L
7772# Always use our own libtool.
7773LIBTOOL='$(SHELL) $(top_builddir)/libtool'
252b5132 7774
6bf9431b 7775
252b5132 7776
6bf9431b 7777
252b5132 7778
252b5132 7779
d7040cdb 7780
6bf9431b 7781
252b5132 7782
d7040cdb 7783
d7040cdb 7784
d7040cdb 7785
d7040cdb 7786
d7040cdb 7787
d7040cdb 7788
d7040cdb 7789
d7040cdb 7790
d7040cdb 7791
d7040cdb 7792
d7040cdb 7793
d7040cdb
SE
7794
7795
7796
7797
7798
ce2cded5 7799test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
ce2cded5
L
7814if test -n "${ZSH_VERSION+set}" ; then
7815 setopt NO_GLOB_SUBST
7816fi
d7040cdb 7817
81ecdfbb
RW
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7819$as_echo_n "checking for objdir... " >&6; }
7820if test "${lt_cv_objdir+set}" = set; then :
7821 $as_echo_n "(cached) " >&6
ce2cded5
L
7822else
7823 rm -f .libs 2>/dev/null
7824mkdir .libs 2>/dev/null
7825if test -d .libs; then
7826 lt_cv_objdir=.libs
7827else
7828 # MS-DOS does not allow filenames that begin with a dot.
7829 lt_cv_objdir=_libs
7830fi
7831rmdir .libs 2>/dev/null
7832fi
81ecdfbb
RW
7833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7834$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 7835objdir=$lt_cv_objdir
d7040cdb
SE
7836
7837
7838
7839
7840
ce2cded5
L
7841cat >>confdefs.h <<_ACEOF
7842#define LT_OBJDIR "$lt_cv_objdir/"
7843_ACEOF
d7040cdb
SE
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
ce2cded5
L
7861case $host_os in
7862aix3*)
7863 # AIX sometimes has problems with the GCC collect2 program. For some
7864 # reason, if we set the COLLECT_NAMES environment variable, the problems
7865 # vanish in a puff of smoke.
7866 if test "X${COLLECT_NAMES+set}" != Xset; then
7867 COLLECT_NAMES=
7868 export COLLECT_NAMES
7869 fi
7870 ;;
7871esac
d7040cdb 7872
ce2cded5
L
7873# Sed substitution that helps us do robust quoting. It backslashifies
7874# metacharacters that are still active within double-quoted strings.
7875sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 7876
ce2cded5
L
7877# Same as above, but do not quote variable references.
7878double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 7879
ce2cded5
L
7880# Sed substitution to delay expansion of an escaped shell variable in a
7881# double_quote_subst'ed string.
7882delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 7883
ce2cded5
L
7884# Sed substitution to delay expansion of an escaped single quote.
7885delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 7886
ce2cded5
L
7887# Sed substitution to avoid accidental globbing in evaled expressions
7888no_glob_subst='s/\*/\\\*/g'
d7040cdb 7889
ce2cded5
L
7890# Global variables:
7891ofile=libtool
7892can_build_shared=yes
d7040cdb 7893
ce2cded5
L
7894# All known linkers require a `.a' archive for static linking (except MSVC,
7895# which needs '.lib').
7896libext=a
d7040cdb 7897
ce2cded5 7898with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 7899
ce2cded5
L
7900old_CC="$CC"
7901old_CFLAGS="$CFLAGS"
d7040cdb 7902
ce2cded5
L
7903# Set sane defaults for various variables
7904test -z "$CC" && CC=cc
7905test -z "$LTCC" && LTCC=$CC
7906test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7907test -z "$LD" && LD=ld
7908test -z "$ac_objext" && ac_objext=o
d7040cdb 7909
ce2cded5
L
7910for cc_temp in $compiler""; do
7911 case $cc_temp in
7912 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7913 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7914 \-*) ;;
7915 *) break;;
7916 esac
7917done
7918cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d7040cdb
SE
7919
7920
ce2cded5
L
7921# Only perform the check for file, if the check method requires it
7922test -z "$MAGIC_CMD" && MAGIC_CMD=file
7923case $deplibs_check_method in
7924file_magic*)
7925 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7927$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7928if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
ce2cded5
L
7930else
7931 case $MAGIC_CMD in
7932[\\/*] | ?:[\\/]*)
7933 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7934 ;;
7935*)
7936 lt_save_MAGIC_CMD="$MAGIC_CMD"
7937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7938 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7939 for ac_dir in $ac_dummy; do
7940 IFS="$lt_save_ifs"
7941 test -z "$ac_dir" && ac_dir=.
7942 if test -f $ac_dir/${ac_tool_prefix}file; then
7943 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7944 if test -n "$file_magic_test_file"; then
7945 case $deplibs_check_method in
7946 "file_magic "*)
7947 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7948 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7949 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7950 $EGREP "$file_magic_regex" > /dev/null; then
7951 :
7952 else
7953 cat <<_LT_EOF 1>&2
d7040cdb 7954
ce2cded5
L
7955*** Warning: the command libtool uses to detect shared libraries,
7956*** $file_magic_cmd, produces output that libtool cannot recognize.
7957*** The result is that libtool may fail to recognize shared libraries
7958*** as such. This will affect the creation of libtool libraries that
7959*** depend on shared libraries, but programs linked with such libtool
7960*** libraries will work regardless of this problem. Nevertheless, you
7961*** may want to report the problem to your system manager and/or to
7962*** bug-libtool@gnu.org
d7040cdb 7963
ce2cded5
L
7964_LT_EOF
7965 fi ;;
7966 esac
7967 fi
7968 break
7969 fi
7970 done
7971 IFS="$lt_save_ifs"
7972 MAGIC_CMD="$lt_save_MAGIC_CMD"
7973 ;;
7974esac
7975fi
d7040cdb 7976
ce2cded5
L
7977MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7978if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7980$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 7981else
81ecdfbb
RW
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983$as_echo "no" >&6; }
ce2cded5 7984fi
d7040cdb
SE
7985
7986
7987
7988
7989
ce2cded5
L
7990if test -z "$lt_cv_path_MAGIC_CMD"; then
7991 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7993$as_echo_n "checking for file... " >&6; }
7994if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7995 $as_echo_n "(cached) " >&6
ce2cded5
L
7996else
7997 case $MAGIC_CMD in
7998[\\/*] | ?:[\\/]*)
7999 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8000 ;;
8001*)
8002 lt_save_MAGIC_CMD="$MAGIC_CMD"
8003 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8004 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8005 for ac_dir in $ac_dummy; do
8006 IFS="$lt_save_ifs"
8007 test -z "$ac_dir" && ac_dir=.
8008 if test -f $ac_dir/file; then
8009 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8010 if test -n "$file_magic_test_file"; then
8011 case $deplibs_check_method in
8012 "file_magic "*)
8013 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8014 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8015 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8016 $EGREP "$file_magic_regex" > /dev/null; then
8017 :
8018 else
8019 cat <<_LT_EOF 1>&2
d7040cdb 8020
ce2cded5
L
8021*** Warning: the command libtool uses to detect shared libraries,
8022*** $file_magic_cmd, produces output that libtool cannot recognize.
8023*** The result is that libtool may fail to recognize shared libraries
8024*** as such. This will affect the creation of libtool libraries that
8025*** depend on shared libraries, but programs linked with such libtool
8026*** libraries will work regardless of this problem. Nevertheless, you
8027*** may want to report the problem to your system manager and/or to
8028*** bug-libtool@gnu.org
d7040cdb 8029
ce2cded5
L
8030_LT_EOF
8031 fi ;;
8032 esac
8033 fi
8034 break
8035 fi
8036 done
8037 IFS="$lt_save_ifs"
8038 MAGIC_CMD="$lt_save_MAGIC_CMD"
8039 ;;
8040esac
8041fi
d7040cdb 8042
ce2cded5
L
8043MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8044if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8046$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8047else
81ecdfbb
RW
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049$as_echo "no" >&6; }
ce2cded5 8050fi
d7040cdb
SE
8051
8052
ce2cded5
L
8053 else
8054 MAGIC_CMD=:
8055 fi
8056fi
d7040cdb 8057
ce2cded5
L
8058 fi
8059 ;;
8060esac
d7040cdb 8061
ce2cded5 8062# Use C for the default configuration in the libtool script
d7040cdb 8063
ce2cded5
L
8064lt_save_CC="$CC"
8065ac_ext=c
8066ac_cpp='$CPP $CPPFLAGS'
8067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8069ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
8070
8071
ce2cded5
L
8072# Source file extension for C test sources.
8073ac_ext=c
d7040cdb 8074
ce2cded5
L
8075# Object file extension for compiled C test sources.
8076objext=o
8077objext=$objext
d7040cdb 8078
ce2cded5
L
8079# Code to be used in simple compile tests
8080lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 8081
ce2cded5
L
8082# Code to be used in simple link tests
8083lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
8084
8085
8086
8087
8088
8089
8090
ce2cded5
L
8091# If no C compiler was specified, use CC.
8092LTCC=${LTCC-"$CC"}
d7040cdb 8093
ce2cded5
L
8094# If no C compiler flags were specified, use CFLAGS.
8095LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 8096
ce2cded5
L
8097# Allow CC to be a program name with arguments.
8098compiler=$CC
d7040cdb 8099
ce2cded5
L
8100# Save the default compiler, since it gets overwritten when the other
8101# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8102compiler_DEFAULT=$CC
d7040cdb 8103
ce2cded5
L
8104# save warnings/boilerplate of simple test code
8105ac_outfile=conftest.$ac_objext
8106echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8107eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8108_lt_compiler_boilerplate=`cat conftest.err`
8109$RM conftest*
d7040cdb 8110
ce2cded5
L
8111ac_outfile=conftest.$ac_objext
8112echo "$lt_simple_link_test_code" >conftest.$ac_ext
8113eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8114_lt_linker_boilerplate=`cat conftest.err`
b214d478 8115$RM -r conftest*
d7040cdb
SE
8116
8117
ce2cded5
L
8118## CAVEAT EMPTOR:
8119## There is no encapsulation within the following macros, do not change
8120## the running order or otherwise move them around unless you know exactly
8121## what you are doing...
8122if test -n "$compiler"; then
d7040cdb 8123
ce2cded5 8124lt_prog_compiler_no_builtin_flag=
d7040cdb 8125
ce2cded5
L
8126if test "$GCC" = yes; then
8127 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d7040cdb 8128
81ecdfbb
RW
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8130$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8131if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8132 $as_echo_n "(cached) " >&6
ce2cded5
L
8133else
8134 lt_cv_prog_compiler_rtti_exceptions=no
8135 ac_outfile=conftest.$ac_objext
8136 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8137 lt_compiler_flag="-fno-rtti -fno-exceptions"
8138 # Insert the option either (1) after the last *FLAGS variable, or
8139 # (2) before a word containing "conftest.", or (3) at the end.
8140 # Note that $ac_compile itself does not contain backslashes and begins
8141 # with a dollar sign (not a hyphen), so the echo should work correctly.
8142 # The option is referenced via a variable to avoid confusing sed.
8143 lt_compile=`echo "$ac_compile" | $SED \
8144 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8145 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8146 -e 's:$: $lt_compiler_flag:'`
da2f07f1 8147 (eval echo "\"\$as_me:8147: $lt_compile\"" >&5)
ce2cded5
L
8148 (eval "$lt_compile" 2>conftest.err)
8149 ac_status=$?
8150 cat conftest.err >&5
da2f07f1 8151 echo "$as_me:8151: \$? = $ac_status" >&5
ce2cded5
L
8152 if (exit $ac_status) && test -s "$ac_outfile"; then
8153 # The compiler can only warn and ignore the option if not recognized
8154 # So say no if there are warnings other than the usual output.
8155 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8156 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8157 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8158 lt_cv_prog_compiler_rtti_exceptions=yes
8159 fi
8160 fi
8161 $RM conftest*
d7040cdb 8162
ce2cded5 8163fi
81ecdfbb
RW
8164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8165$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 8166
ce2cded5
L
8167if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8168 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8169else
8170 :
8171fi
d7040cdb 8172
ce2cded5 8173fi
d7040cdb
SE
8174
8175
8176
8177
8178
8179
ce2cded5
L
8180 lt_prog_compiler_wl=
8181lt_prog_compiler_pic=
8182lt_prog_compiler_static=
d7040cdb 8183
81ecdfbb
RW
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8185$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 8186
ce2cded5
L
8187 if test "$GCC" = yes; then
8188 lt_prog_compiler_wl='-Wl,'
8189 lt_prog_compiler_static='-static'
d7040cdb 8190
ce2cded5
L
8191 case $host_os in
8192 aix*)
8193 # All AIX code is PIC.
8194 if test "$host_cpu" = ia64; then
8195 # AIX 5 now supports IA64 processor
8196 lt_prog_compiler_static='-Bstatic'
8197 fi
8198 ;;
d7040cdb 8199
ce2cded5 8200 amigaos*)
b214d478
SE
8201 case $host_cpu in
8202 powerpc)
8203 # see comment about AmigaOS4 .so support
8204 lt_prog_compiler_pic='-fPIC'
8205 ;;
8206 m68k)
8207 # FIXME: we need at least 68020 code to build shared libraries, but
8208 # adding the `-m68020' flag to GCC prevents building anything better,
8209 # like `-m68040'.
8210 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8211 ;;
8212 esac
ce2cded5 8213 ;;
d7040cdb 8214
ce2cded5
L
8215 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8216 # PIC is the default for these OSes.
8217 ;;
d7040cdb 8218
b214d478 8219 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8220 # This hack is so that the source file can tell whether it is being
8221 # built for inclusion in a dll (and should export symbols for example).
8222 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8223 # (--disable-auto-import) libraries
8224 lt_prog_compiler_pic='-DDLL_EXPORT'
8225 ;;
d7040cdb 8226
ce2cded5
L
8227 darwin* | rhapsody*)
8228 # PIC is the default on this platform
8229 # Common symbols not allowed in MH_DYLIB files
8230 lt_prog_compiler_pic='-fno-common'
8231 ;;
d7040cdb 8232
ce2cded5 8233 hpux*)
b214d478
SE
8234 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8235 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8236 # sets the default TLS model and affects inlining.
ce2cded5 8237 case $host_cpu in
b214d478 8238 hppa*64*)
ce2cded5
L
8239 # +Z the default
8240 ;;
8241 *)
8242 lt_prog_compiler_pic='-fPIC'
8243 ;;
8244 esac
8245 ;;
d7040cdb 8246
ce2cded5
L
8247 interix[3-9]*)
8248 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8249 # Instead, we relocate shared libraries at runtime.
8250 ;;
d7040cdb 8251
ce2cded5
L
8252 msdosdjgpp*)
8253 # Just because we use GCC doesn't mean we suddenly get shared libraries
8254 # on systems that don't support them.
8255 lt_prog_compiler_can_build_shared=no
8256 enable_shared=no
8257 ;;
d7040cdb 8258
ce2cded5
L
8259 *nto* | *qnx*)
8260 # QNX uses GNU C++, but need to define -shared option too, otherwise
8261 # it will coredump.
8262 lt_prog_compiler_pic='-fPIC -shared'
8263 ;;
d7040cdb 8264
ce2cded5
L
8265 sysv4*MP*)
8266 if test -d /usr/nec; then
8267 lt_prog_compiler_pic=-Kconform_pic
8268 fi
8269 ;;
d7040cdb 8270
ce2cded5
L
8271 *)
8272 lt_prog_compiler_pic='-fPIC'
8273 ;;
8274 esac
8275 else
8276 # PORTME Check for flag to pass linker flags through the system compiler.
8277 case $host_os in
8278 aix*)
8279 lt_prog_compiler_wl='-Wl,'
8280 if test "$host_cpu" = ia64; then
8281 # AIX 5 now supports IA64 processor
8282 lt_prog_compiler_static='-Bstatic'
8283 else
8284 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8285 fi
8286 ;;
d7040cdb 8287
b214d478 8288 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8289 # This hack is so that the source file can tell whether it is being
8290 # built for inclusion in a dll (and should export symbols for example).
8291 lt_prog_compiler_pic='-DDLL_EXPORT'
8292 ;;
d7040cdb 8293
ce2cded5
L
8294 hpux9* | hpux10* | hpux11*)
8295 lt_prog_compiler_wl='-Wl,'
8296 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8297 # not for PA HP-UX.
8298 case $host_cpu in
8299 hppa*64*|ia64*)
8300 # +Z the default
8301 ;;
8302 *)
8303 lt_prog_compiler_pic='+Z'
8304 ;;
8305 esac
8306 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8307 lt_prog_compiler_static='${wl}-a ${wl}archive'
8308 ;;
d7040cdb 8309
ce2cded5
L
8310 irix5* | irix6* | nonstopux*)
8311 lt_prog_compiler_wl='-Wl,'
8312 # PIC (with -KPIC) is the default.
8313 lt_prog_compiler_static='-non_shared'
8314 ;;
d7040cdb 8315
58e24671 8316 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8317 case $cc_basename in
b214d478
SE
8318 # old Intel for x86_64 which still supported -KPIC.
8319 ecc*)
ce2cded5
L
8320 lt_prog_compiler_wl='-Wl,'
8321 lt_prog_compiler_pic='-KPIC'
8322 lt_prog_compiler_static='-static'
8323 ;;
b214d478
SE
8324 # icc used to be incompatible with GCC.
8325 # ICC 10 doesn't accept -KPIC any more.
8326 icc* | ifort*)
8327 lt_prog_compiler_wl='-Wl,'
8328 lt_prog_compiler_pic='-fPIC'
8329 lt_prog_compiler_static='-static'
8330 ;;
8331 # Lahey Fortran 8.1.
8332 lf95*)
8333 lt_prog_compiler_wl='-Wl,'
8334 lt_prog_compiler_pic='--shared'
8335 lt_prog_compiler_static='--static'
8336 ;;
ce2cded5
L
8337 pgcc* | pgf77* | pgf90* | pgf95*)
8338 # Portland Group compilers (*not* the Pentium gcc compiler,
8339 # which looks to be a dead project)
8340 lt_prog_compiler_wl='-Wl,'
8341 lt_prog_compiler_pic='-fpic'
8342 lt_prog_compiler_static='-Bstatic'
8343 ;;
8344 ccc*)
8345 lt_prog_compiler_wl='-Wl,'
8346 # All Alpha code is PIC.
8347 lt_prog_compiler_static='-non_shared'
8348 ;;
b214d478
SE
8349 xl*)
8350 # IBM XL C 8.0/Fortran 10.1 on PPC
8351 lt_prog_compiler_wl='-Wl,'
8352 lt_prog_compiler_pic='-qpic'
8353 lt_prog_compiler_static='-qstaticlink'
8354 ;;
ce2cded5
L
8355 *)
8356 case `$CC -V 2>&1 | sed 5q` in
8357 *Sun\ C*)
8358 # Sun C 5.9
8359 lt_prog_compiler_pic='-KPIC'
8360 lt_prog_compiler_static='-Bstatic'
8361 lt_prog_compiler_wl='-Wl,'
8362 ;;
8363 *Sun\ F*)
8364 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8365 lt_prog_compiler_pic='-KPIC'
8366 lt_prog_compiler_static='-Bstatic'
8367 lt_prog_compiler_wl=''
8368 ;;
8369 esac
8370 ;;
8371 esac
8372 ;;
d7040cdb 8373
ce2cded5
L
8374 newsos6)
8375 lt_prog_compiler_pic='-KPIC'
8376 lt_prog_compiler_static='-Bstatic'
8377 ;;
d7040cdb 8378
ce2cded5
L
8379 *nto* | *qnx*)
8380 # QNX uses GNU C++, but need to define -shared option too, otherwise
8381 # it will coredump.
8382 lt_prog_compiler_pic='-fPIC -shared'
8383 ;;
d7040cdb 8384
ce2cded5
L
8385 osf3* | osf4* | osf5*)
8386 lt_prog_compiler_wl='-Wl,'
8387 # All OSF/1 code is PIC.
8388 lt_prog_compiler_static='-non_shared'
8389 ;;
d7040cdb 8390
ce2cded5
L
8391 rdos*)
8392 lt_prog_compiler_static='-non_shared'
8393 ;;
d7040cdb 8394
ce2cded5
L
8395 solaris*)
8396 lt_prog_compiler_pic='-KPIC'
8397 lt_prog_compiler_static='-Bstatic'
8398 case $cc_basename in
8399 f77* | f90* | f95*)
8400 lt_prog_compiler_wl='-Qoption ld ';;
8401 *)
8402 lt_prog_compiler_wl='-Wl,';;
8403 esac
8404 ;;
d7040cdb 8405
ce2cded5
L
8406 sunos4*)
8407 lt_prog_compiler_wl='-Qoption ld '
8408 lt_prog_compiler_pic='-PIC'
8409 lt_prog_compiler_static='-Bstatic'
8410 ;;
d7040cdb 8411
ce2cded5
L
8412 sysv4 | sysv4.2uw2* | sysv4.3*)
8413 lt_prog_compiler_wl='-Wl,'
8414 lt_prog_compiler_pic='-KPIC'
8415 lt_prog_compiler_static='-Bstatic'
8416 ;;
d7040cdb 8417
ce2cded5
L
8418 sysv4*MP*)
8419 if test -d /usr/nec ;then
8420 lt_prog_compiler_pic='-Kconform_pic'
8421 lt_prog_compiler_static='-Bstatic'
8422 fi
8423 ;;
d7040cdb 8424
ce2cded5
L
8425 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8426 lt_prog_compiler_wl='-Wl,'
8427 lt_prog_compiler_pic='-KPIC'
8428 lt_prog_compiler_static='-Bstatic'
8429 ;;
d7040cdb 8430
ce2cded5
L
8431 unicos*)
8432 lt_prog_compiler_wl='-Wl,'
8433 lt_prog_compiler_can_build_shared=no
8434 ;;
d7040cdb 8435
ce2cded5
L
8436 uts4*)
8437 lt_prog_compiler_pic='-pic'
8438 lt_prog_compiler_static='-Bstatic'
8439 ;;
d7040cdb 8440
ce2cded5
L
8441 *)
8442 lt_prog_compiler_can_build_shared=no
8443 ;;
8444 esac
8445 fi
d7040cdb 8446
ce2cded5
L
8447case $host_os in
8448 # For platforms which do not support PIC, -DPIC is meaningless:
8449 *djgpp*)
8450 lt_prog_compiler_pic=
8451 ;;
8452 *)
8453 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8454 ;;
8455esac
81ecdfbb
RW
8456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8457$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8458
8459
8460
8461
8462
8463
ce2cded5
L
8464#
8465# Check to make sure the PIC flag actually works.
8466#
8467if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8469$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8470if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8471 $as_echo_n "(cached) " >&6
ce2cded5 8472else
b214d478 8473 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
8474 ac_outfile=conftest.$ac_objext
8475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8476 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8477 # Insert the option either (1) after the last *FLAGS variable, or
8478 # (2) before a word containing "conftest.", or (3) at the end.
8479 # Note that $ac_compile itself does not contain backslashes and begins
8480 # with a dollar sign (not a hyphen), so the echo should work correctly.
8481 # The option is referenced via a variable to avoid confusing sed.
8482 lt_compile=`echo "$ac_compile" | $SED \
8483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8485 -e 's:$: $lt_compiler_flag:'`
da2f07f1 8486 (eval echo "\"\$as_me:8486: $lt_compile\"" >&5)
ce2cded5
L
8487 (eval "$lt_compile" 2>conftest.err)
8488 ac_status=$?
8489 cat conftest.err >&5
da2f07f1 8490 echo "$as_me:8490: \$? = $ac_status" >&5
ce2cded5
L
8491 if (exit $ac_status) && test -s "$ac_outfile"; then
8492 # The compiler can only warn and ignore the option if not recognized
8493 # So say no if there are warnings other than the usual output.
8494 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8496 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8497 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
8498 fi
8499 fi
8500 $RM conftest*
d7040cdb 8501
ce2cded5 8502fi
81ecdfbb
RW
8503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8504$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8505
b214d478 8506if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
8507 case $lt_prog_compiler_pic in
8508 "" | " "*) ;;
8509 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8510 esac
8511else
8512 lt_prog_compiler_pic=
8513 lt_prog_compiler_can_build_shared=no
8514fi
d7040cdb 8515
ce2cded5 8516fi
d7040cdb
SE
8517
8518
8519
8520
8521
8522
ce2cded5
L
8523#
8524# Check to make sure the static flag actually works.
8525#
8526wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8528$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8529if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8530 $as_echo_n "(cached) " >&6
ce2cded5 8531else
b214d478 8532 lt_cv_prog_compiler_static_works=no
ce2cded5
L
8533 save_LDFLAGS="$LDFLAGS"
8534 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8535 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8536 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8537 # The linker can only warn and ignore the option if not recognized
8538 # So say no if there are warnings
8539 if test -s conftest.err; then
8540 # Append any errors to the config.log.
8541 cat conftest.err 1>&5
8542 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8543 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8544 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8545 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8546 fi
8547 else
b214d478 8548 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8549 fi
8550 fi
b214d478 8551 $RM -r conftest*
ce2cded5 8552 LDFLAGS="$save_LDFLAGS"
d7040cdb 8553
ce2cded5 8554fi
81ecdfbb
RW
8555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8556$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8557
b214d478 8558if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
8559 :
8560else
8561 lt_prog_compiler_static=
8562fi
d7040cdb
SE
8563
8564
8565
8566
8567
8568
8569
81ecdfbb
RW
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8571$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8572if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8573 $as_echo_n "(cached) " >&6
ce2cded5
L
8574else
8575 lt_cv_prog_compiler_c_o=no
8576 $RM -r conftest 2>/dev/null
8577 mkdir conftest
8578 cd conftest
8579 mkdir out
8580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8581
ce2cded5
L
8582 lt_compiler_flag="-o out/conftest2.$ac_objext"
8583 # Insert the option either (1) after the last *FLAGS variable, or
8584 # (2) before a word containing "conftest.", or (3) at the end.
8585 # Note that $ac_compile itself does not contain backslashes and begins
8586 # with a dollar sign (not a hyphen), so the echo should work correctly.
8587 lt_compile=`echo "$ac_compile" | $SED \
8588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8590 -e 's:$: $lt_compiler_flag:'`
da2f07f1 8591 (eval echo "\"\$as_me:8591: $lt_compile\"" >&5)
ce2cded5
L
8592 (eval "$lt_compile" 2>out/conftest.err)
8593 ac_status=$?
8594 cat out/conftest.err >&5
da2f07f1 8595 echo "$as_me:8595: \$? = $ac_status" >&5
ce2cded5
L
8596 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8597 then
8598 # The compiler can only warn and ignore the option if not recognized
8599 # So say no if there are warnings
8600 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8601 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8602 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8603 lt_cv_prog_compiler_c_o=yes
8604 fi
8605 fi
8606 chmod u+w . 2>&5
8607 $RM conftest*
8608 # SGI C++ compiler will create directory out/ii_files/ for
8609 # template instantiation
8610 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8611 $RM out/* && rmdir out
8612 cd ..
8613 $RM -r conftest
8614 $RM conftest*
8615
8616fi
81ecdfbb
RW
8617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8618$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
8619
8620
8621
8622
8623
8624
81ecdfbb
RW
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8626$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8627if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8628 $as_echo_n "(cached) " >&6
d7040cdb 8629else
ce2cded5
L
8630 lt_cv_prog_compiler_c_o=no
8631 $RM -r conftest 2>/dev/null
8632 mkdir conftest
8633 cd conftest
8634 mkdir out
8635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8636
8637 lt_compiler_flag="-o out/conftest2.$ac_objext"
8638 # Insert the option either (1) after the last *FLAGS variable, or
8639 # (2) before a word containing "conftest.", or (3) at the end.
8640 # Note that $ac_compile itself does not contain backslashes and begins
8641 # with a dollar sign (not a hyphen), so the echo should work correctly.
8642 lt_compile=`echo "$ac_compile" | $SED \
8643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8645 -e 's:$: $lt_compiler_flag:'`
da2f07f1 8646 (eval echo "\"\$as_me:8646: $lt_compile\"" >&5)
ce2cded5
L
8647 (eval "$lt_compile" 2>out/conftest.err)
8648 ac_status=$?
8649 cat out/conftest.err >&5
da2f07f1 8650 echo "$as_me:8650: \$? = $ac_status" >&5
ce2cded5
L
8651 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8652 then
8653 # The compiler can only warn and ignore the option if not recognized
8654 # So say no if there are warnings
8655 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8656 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8657 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8658 lt_cv_prog_compiler_c_o=yes
8659 fi
8660 fi
8661 chmod u+w . 2>&5
8662 $RM conftest*
8663 # SGI C++ compiler will create directory out/ii_files/ for
8664 # template instantiation
8665 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8666 $RM out/* && rmdir out
8667 cd ..
8668 $RM -r conftest
8669 $RM conftest*
8670
d7040cdb 8671fi
81ecdfbb
RW
8672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8673$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb 8674
d7040cdb 8675
d7040cdb 8676
d7040cdb 8677
ce2cded5
L
8678hard_links="nottested"
8679if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8680 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8682$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
8683 hard_links=yes
8684 $RM conftest*
8685 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8686 touch conftest.a
8687 ln conftest.a conftest.b 2>&5 || hard_links=no
8688 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8690$as_echo "$hard_links" >&6; }
ce2cded5 8691 if test "$hard_links" = no; then
81ecdfbb
RW
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8693$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 8694 need_locks=warn
d7040cdb 8695 fi
ce2cded5
L
8696else
8697 need_locks=no
8698fi
d7040cdb 8699
d7040cdb 8700
d7040cdb 8701
d7040cdb 8702
d7040cdb 8703
d7040cdb 8704
81ecdfbb
RW
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8706$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 8707
ce2cded5
L
8708 runpath_var=
8709 allow_undefined_flag=
8710 always_export_symbols=no
8711 archive_cmds=
8712 archive_expsym_cmds=
8713 compiler_needs_object=no
8714 enable_shared_with_static_runtimes=no
8715 export_dynamic_flag_spec=
8716 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8717 hardcode_automatic=no
8718 hardcode_direct=no
8719 hardcode_direct_absolute=no
8720 hardcode_libdir_flag_spec=
8721 hardcode_libdir_flag_spec_ld=
8722 hardcode_libdir_separator=
8723 hardcode_minus_L=no
8724 hardcode_shlibpath_var=unsupported
8725 inherit_rpath=no
8726 link_all_deplibs=unknown
8727 module_cmds=
8728 module_expsym_cmds=
8729 old_archive_from_new_cmds=
8730 old_archive_from_expsyms_cmds=
8731 thread_safe_flag_spec=
8732 whole_archive_flag_spec=
8733 # include_expsyms should be a list of space-separated symbols to be *always*
8734 # included in the symbol list
8735 include_expsyms=
8736 # exclude_expsyms can be an extended regexp of symbols to exclude
8737 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8738 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8739 # as well as any symbol that contains `d'.
b214d478 8740 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
8741 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8742 # platforms (ab)use it in PIC code, but their linkers get confused if
8743 # the symbol is explicitly referenced. Since portable code cannot
8744 # rely on this symbol name, it's probably fine to never include it in
8745 # preloaded symbol tables.
b214d478 8746 # Exclude shared library initialization/finalization symbols.
ce2cded5 8747 extract_expsyms_cmds=
d7040cdb 8748
d7040cdb 8749 case $host_os in
b214d478 8750 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8751 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8752 # When not using gcc, we currently assume that we are using
8753 # Microsoft Visual C++.
8754 if test "$GCC" != yes; then
8755 with_gnu_ld=no
8756 fi
d7040cdb 8757 ;;
ce2cded5
L
8758 interix*)
8759 # we just hope/assume this is gcc and not c89 (= MSVC++)
8760 with_gnu_ld=yes
d7040cdb 8761 ;;
ce2cded5
L
8762 openbsd*)
8763 with_gnu_ld=no
d7040cdb
SE
8764 ;;
8765 esac
d7040cdb 8766
ce2cded5
L
8767 ld_shlibs=yes
8768 if test "$with_gnu_ld" = yes; then
8769 # If archive_cmds runs LD, not CC, wlarc should be empty
8770 wlarc='${wl}'
d7040cdb 8771
ce2cded5
L
8772 # Set some defaults for GNU ld with shared library support. These
8773 # are reset later if shared libraries are not supported. Putting them
8774 # here allows them to be overridden if necessary.
8775 runpath_var=LD_RUN_PATH
8776 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8777 export_dynamic_flag_spec='${wl}--export-dynamic'
8778 # ancient GNU ld didn't support --whole-archive et. al.
8779 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8780 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
d7040cdb 8781 else
ce2cded5 8782 whole_archive_flag_spec=
d7040cdb 8783 fi
ce2cded5
L
8784 supports_anon_versioning=no
8785 case `$LD -v 2>&1` in
8786 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8787 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8788 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8789 *\ 2.11.*) ;; # other 2.11 versions
8790 *) supports_anon_versioning=yes ;;
8791 esac
d7040cdb 8792
ce2cded5
L
8793 # See if GNU ld supports shared libraries.
8794 case $host_os in
50e7d84b 8795 aix[3-9]*)
ce2cded5
L
8796 # On AIX/PPC, the GNU linker is very broken
8797 if test "$host_cpu" != ia64; then
8798 ld_shlibs=no
8799 cat <<_LT_EOF 1>&2
d7040cdb 8800
ce2cded5
L
8801*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8802*** to be unable to reliably create shared libraries on AIX.
8803*** Therefore, libtool is disabling shared libraries support. If you
8804*** really care for shared libraries, you may want to modify your PATH
8805*** so that a non-GNU linker is found, and then restart.
d7040cdb 8806
ce2cded5
L
8807_LT_EOF
8808 fi
8809 ;;
d7040cdb 8810
ce2cded5 8811 amigaos*)
b214d478
SE
8812 case $host_cpu in
8813 powerpc)
8814 # see comment about AmigaOS4 .so support
8815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8816 archive_expsym_cmds=''
8817 ;;
8818 m68k)
8819 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)'
8820 hardcode_libdir_flag_spec='-L$libdir'
8821 hardcode_minus_L=yes
8822 ;;
8823 esac
ce2cded5 8824 ;;
d7040cdb 8825
ce2cded5
L
8826 beos*)
8827 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8828 allow_undefined_flag=unsupported
8829 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8830 # support --undefined. This deserves some investigation. FIXME
8831 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8832 else
8833 ld_shlibs=no
8834 fi
8835 ;;
d7040cdb 8836
b214d478 8837 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8838 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8839 # as there is no search path for DLLs.
8840 hardcode_libdir_flag_spec='-L$libdir'
8841 allow_undefined_flag=unsupported
8842 always_export_symbols=no
8843 enable_shared_with_static_runtimes=yes
8844 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 8845
ce2cded5
L
8846 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8848 # If the export-symbols file already is a .def file (1st line
8849 # is EXPORTS), use it as is; otherwise, prepend...
8850 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8851 cp $export_symbols $output_objdir/$soname.def;
8852 else
8853 echo EXPORTS > $output_objdir/$soname.def;
8854 cat $export_symbols >> $output_objdir/$soname.def;
8855 fi~
8856 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8857 else
8858 ld_shlibs=no
8859 fi
8860 ;;
d7040cdb 8861
ce2cded5
L
8862 interix[3-9]*)
8863 hardcode_direct=no
8864 hardcode_shlibpath_var=no
8865 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8866 export_dynamic_flag_spec='${wl}-E'
8867 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8868 # Instead, shared libraries are loaded at an image base (0x10000000 by
8869 # default) and relocated if they conflict, which is a slow very memory
8870 # consuming and fragmenting process. To avoid this, we pick a random,
8871 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8872 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8873 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8874 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'
8875 ;;
d7040cdb 8876
58e24671 8877 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
8878 tmp_diet=no
8879 if test "$host_os" = linux-dietlibc; then
8880 case $cc_basename in
8881 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8882 esac
8883 fi
8884 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8885 && test "$tmp_diet" = no
8886 then
8887 tmp_addflag=
b214d478 8888 tmp_sharedflag='-shared'
ce2cded5
L
8889 case $cc_basename,$host_cpu in
8890 pgcc*) # Portland Group C compiler
8891 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'
8892 tmp_addflag=' $pic_flag'
8893 ;;
8894 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8895 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'
8896 tmp_addflag=' $pic_flag -Mnomain' ;;
8897 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8898 tmp_addflag=' -i_dynamic' ;;
8899 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8900 tmp_addflag=' -i_dynamic -nofor_main' ;;
8901 ifc* | ifort*) # Intel Fortran compiler
8902 tmp_addflag=' -nofor_main' ;;
b214d478
SE
8903 lf95*) # Lahey Fortran 8.1
8904 whole_archive_flag_spec=
8905 tmp_sharedflag='--shared' ;;
8906 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8907 tmp_sharedflag='-qmkshrobj'
8908 tmp_addflag= ;;
ce2cded5
L
8909 esac
8910 case `$CC -V 2>&1 | sed 5q` in
8911 *Sun\ C*) # Sun C 5.9
8912 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'
8913 compiler_needs_object=yes
8914 tmp_sharedflag='-G' ;;
8915 *Sun\ F*) # Sun Fortran 8.3
8916 tmp_sharedflag='-G' ;;
ce2cded5
L
8917 esac
8918 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 8919
ce2cded5
L
8920 if test "x$supports_anon_versioning" = xyes; then
8921 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8922 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8923 echo "local: *; };" >> $output_objdir/$libname.ver~
8924 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8925 fi
b214d478
SE
8926
8927 case $cc_basename in
8928 xlf*)
8929 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8930 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8931 hardcode_libdir_flag_spec=
8932 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8933 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8934 if test "x$supports_anon_versioning" = xyes; then
8935 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8936 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8937 echo "local: *; };" >> $output_objdir/$libname.ver~
8938 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8939 fi
8940 ;;
8941 esac
ce2cded5
L
8942 else
8943 ld_shlibs=no
8944 fi
8945 ;;
d7040cdb 8946
ce2cded5
L
8947 netbsd*)
8948 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8949 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8950 wlarc=
8951 else
8952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8953 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8954 fi
8955 ;;
d7040cdb 8956
ce2cded5
L
8957 solaris*)
8958 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8959 ld_shlibs=no
8960 cat <<_LT_EOF 1>&2
d7040cdb 8961
ce2cded5
L
8962*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8963*** create shared libraries on Solaris systems. Therefore, libtool
8964*** is disabling shared libraries support. We urge you to upgrade GNU
8965*** binutils to release 2.9.1 or newer. Another option is to modify
8966*** your PATH or compiler configuration so that the native linker is
8967*** used, and then restart.
d7040cdb 8968
ce2cded5
L
8969_LT_EOF
8970 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8971 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8972 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8973 else
8974 ld_shlibs=no
8975 fi
8976 ;;
d7040cdb 8977
ce2cded5
L
8978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8979 case `$LD -v 2>&1` in
8980 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8981 ld_shlibs=no
8982 cat <<_LT_EOF 1>&2
d7040cdb 8983
ce2cded5
L
8984*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8985*** reliably create shared libraries on SCO systems. Therefore, libtool
8986*** is disabling shared libraries support. We urge you to upgrade GNU
8987*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8988*** your PATH or compiler configuration so that the native linker is
8989*** used, and then restart.
d7040cdb 8990
ce2cded5
L
8991_LT_EOF
8992 ;;
8993 *)
8994 # For security reasons, it is highly recommended that you always
8995 # use absolute paths for naming shared libraries, and exclude the
8996 # DT_RUNPATH tag from executables and libraries. But doing so
8997 # requires that you compile everything twice, which is a pain.
8998 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8999 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9001 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9002 else
9003 ld_shlibs=no
9004 fi
9005 ;;
9006 esac
d7040cdb 9007 ;;
ce2cded5
L
9008
9009 sunos4*)
9010 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9011 wlarc=
9012 hardcode_direct=yes
9013 hardcode_shlibpath_var=no
d7040cdb 9014 ;;
d7040cdb 9015
ce2cded5
L
9016 *)
9017 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9019 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9020 else
9021 ld_shlibs=no
9022 fi
9023 ;;
9024 esac
d7040cdb 9025
ce2cded5
L
9026 if test "$ld_shlibs" = no; then
9027 runpath_var=
9028 hardcode_libdir_flag_spec=
9029 export_dynamic_flag_spec=
9030 whole_archive_flag_spec=
9031 fi
d7040cdb 9032 else
ce2cded5 9033 # PORTME fill in a description of your system's linker (not GNU ld)
d7040cdb 9034 case $host_os in
ce2cded5
L
9035 aix3*)
9036 allow_undefined_flag=unsupported
9037 always_export_symbols=yes
9038 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'
9039 # Note: this linker hardcodes the directories in LIBPATH if there
9040 # are no directories specified by -L.
9041 hardcode_minus_L=yes
9042 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9043 # Neither direct hardcoding nor static linking is supported with a
9044 # broken collect2.
9045 hardcode_direct=unsupported
9046 fi
9047 ;;
d7040cdb 9048
50e7d84b 9049 aix[4-9]*)
ce2cded5
L
9050 if test "$host_cpu" = ia64; then
9051 # On IA64, the linker does run time linking by default, so we don't
9052 # have to do anything special.
9053 aix_use_runtimelinking=no
9054 exp_sym_flag='-Bexport'
9055 no_entry_flag=""
9056 else
9057 # If we're using GNU nm, then we don't want the "-C" option.
9058 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9059 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9060 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'
9061 else
9062 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'
9063 fi
9064 aix_use_runtimelinking=no
d7040cdb 9065
ce2cded5
L
9066 # Test if we are trying to use run time linking or normal
9067 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9068 # need to do runtime linking.
50e7d84b 9069 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9070 for ld_flag in $LDFLAGS; do
9071 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9072 aix_use_runtimelinking=yes
9073 break
9074 fi
9075 done
9076 ;;
9077 esac
d7040cdb 9078
ce2cded5
L
9079 exp_sym_flag='-bexport'
9080 no_entry_flag='-bnoentry'
9081 fi
d7040cdb 9082
ce2cded5
L
9083 # When large executables or shared objects are built, AIX ld can
9084 # have problems creating the table of contents. If linking a library
9085 # or program results in "error TOC overflow" add -mminimal-toc to
9086 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9087 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 9088
ce2cded5
L
9089 archive_cmds=''
9090 hardcode_direct=yes
9091 hardcode_direct_absolute=yes
9092 hardcode_libdir_separator=':'
9093 link_all_deplibs=yes
9094 file_list_spec='${wl}-f,'
d7040cdb 9095
ce2cded5
L
9096 if test "$GCC" = yes; then
9097 case $host_os in aix4.[012]|aix4.[012].*)
9098 # We only want to do this on AIX 4.2 and lower, the check
9099 # below for broken collect2 doesn't work under 4.3+
9100 collect2name=`${CC} -print-prog-name=collect2`
9101 if test -f "$collect2name" &&
9102 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9103 then
9104 # We have reworked collect2
9105 :
9106 else
9107 # We have old collect2
9108 hardcode_direct=unsupported
9109 # It fails to find uninstalled libraries when the uninstalled
9110 # path is not listed in the libpath. Setting hardcode_minus_L
9111 # to unsupported forces relinking
9112 hardcode_minus_L=yes
9113 hardcode_libdir_flag_spec='-L$libdir'
9114 hardcode_libdir_separator=
9115 fi
9116 ;;
9117 esac
9118 shared_flag='-shared'
9119 if test "$aix_use_runtimelinking" = yes; then
9120 shared_flag="$shared_flag "'${wl}-G'
9121 fi
9122 else
9123 # not using gcc
9124 if test "$host_cpu" = ia64; then
9125 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9126 # chokes on -Wl,-G. The following line is correct:
9127 shared_flag='-G'
9128 else
9129 if test "$aix_use_runtimelinking" = yes; then
9130 shared_flag='${wl}-G'
9131 else
9132 shared_flag='${wl}-bM:SRE'
9133 fi
9134 fi
9135 fi
d7040cdb 9136
b214d478 9137 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9138 # It seems that -bexpall does not export symbols beginning with
9139 # underscore (_), so it is better to generate a list of symbols to export.
9140 always_export_symbols=yes
9141 if test "$aix_use_runtimelinking" = yes; then
9142 # Warning - without using the other runtime loading flags (-brtl),
9143 # -berok will link without error, but may produce a broken library.
9144 allow_undefined_flag='-berok'
9145 # Determine the default libpath from the value encoded in an
9146 # empty executable.
81ecdfbb 9147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
9148/* end confdefs.h. */
9149
d7040cdb
SE
9150int
9151main ()
9152{
ce2cded5 9153
d7040cdb
SE
9154 ;
9155 return 0;
9156}
9157_ACEOF
81ecdfbb 9158if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9159
ce2cded5
L
9160lt_aix_libpath_sed='
9161 /Import File Strings/,/^$/ {
9162 /^0/ {
9163 s/^0 *\(.*\)$/\1/
9164 p
9165 }
9166 }'
9167aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9168# Check for a 64-bit object if we didn't find anything.
9169if test -z "$aix_libpath"; then
9170 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d7040cdb 9171fi
d7040cdb 9172fi
81ecdfbb
RW
9173rm -f core conftest.err conftest.$ac_objext \
9174 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
9175if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9176
9177 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9178 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"
9179 else
9180 if test "$host_cpu" = ia64; then
9181 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9182 allow_undefined_flag="-z nodefs"
9183 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"
9184 else
9185 # Determine the default libpath from the value encoded in an
9186 # empty executable.
81ecdfbb 9187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
9188/* end confdefs.h. */
9189
d7040cdb
SE
9190int
9191main ()
9192{
ce2cded5 9193
d7040cdb
SE
9194 ;
9195 return 0;
9196}
9197_ACEOF
81ecdfbb 9198if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
9199
9200lt_aix_libpath_sed='
9201 /Import File Strings/,/^$/ {
9202 /^0/ {
9203 s/^0 *\(.*\)$/\1/
9204 p
9205 }
9206 }'
9207aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9208# Check for a 64-bit object if we didn't find anything.
9209if test -z "$aix_libpath"; then
9210 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9211fi
d7040cdb 9212fi
81ecdfbb
RW
9213rm -f core conftest.err conftest.$ac_objext \
9214 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9215if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9216
ce2cded5
L
9217 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9218 # Warning - without using the other run time loading flags,
9219 # -berok will link without error, but may produce a broken library.
9220 no_undefined_flag=' ${wl}-bernotok'
9221 allow_undefined_flag=' ${wl}-berok'
9222 # Exported symbols can be pulled into shared objects from archives
9223 whole_archive_flag_spec='$convenience'
9224 archive_cmds_need_lc=yes
9225 # This is similar to how AIX traditionally builds its shared libraries.
9226 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'
9227 fi
9228 fi
9229 ;;
d7040cdb 9230
ce2cded5 9231 amigaos*)
b214d478
SE
9232 case $host_cpu in
9233 powerpc)
9234 # see comment about AmigaOS4 .so support
9235 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9236 archive_expsym_cmds=''
9237 ;;
9238 m68k)
9239 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)'
9240 hardcode_libdir_flag_spec='-L$libdir'
9241 hardcode_minus_L=yes
9242 ;;
9243 esac
ce2cded5 9244 ;;
d7040cdb 9245
ce2cded5
L
9246 bsdi[45]*)
9247 export_dynamic_flag_spec=-rdynamic
9248 ;;
d7040cdb 9249
b214d478 9250 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9251 # When not using gcc, we currently assume that we are using
9252 # Microsoft Visual C++.
9253 # hardcode_libdir_flag_spec is actually meaningless, as there is
9254 # no search path for DLLs.
9255 hardcode_libdir_flag_spec=' '
9256 allow_undefined_flag=unsupported
9257 # Tell ltmain to make .lib files, not .a files.
9258 libext=lib
9259 # Tell ltmain to make .dll files, not .so files.
9260 shrext_cmds=".dll"
9261 # FIXME: Setting linknames here is a bad hack.
9262 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9263 # The linker will automatically build a .lib file if we build a DLL.
9264 old_archive_from_new_cmds='true'
9265 # FIXME: Should let the user specify the lib program.
9266 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9267 fix_srcfile_path='`cygpath -w "$srcfile"`'
9268 enable_shared_with_static_runtimes=yes
9269 ;;
d7040cdb 9270
ce2cded5 9271 darwin* | rhapsody*)
ce2cded5 9272
b214d478
SE
9273
9274 archive_cmds_need_lc=no
9275 hardcode_direct=no
9276 hardcode_automatic=yes
9277 hardcode_shlibpath_var=unsupported
9278 whole_archive_flag_spec=''
9279 link_all_deplibs=yes
9280 allow_undefined_flag="$_lt_dar_allow_undefined"
9281 case $cc_basename in
9282 ifort*) _lt_dar_can_shared=yes ;;
9283 *) _lt_dar_can_shared=$GCC ;;
9284 esac
9285 if test "$_lt_dar_can_shared" = "yes"; then
9286 output_verbose_link_cmd=echo
9287 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9288 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9289 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}"
9290 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}"
9291
9292 else
9293 ld_shlibs=no
9294 fi
9295
ce2cded5
L
9296 ;;
9297
9298 dgux*)
9299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9300 hardcode_libdir_flag_spec='-L$libdir'
9301 hardcode_shlibpath_var=no
9302 ;;
9303
9304 freebsd1*)
9305 ld_shlibs=no
9306 ;;
9307
9308 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9309 # support. Future versions do this automatically, but an explicit c++rt0.o
9310 # does not break anything, and helps significantly (at the cost of a little
9311 # extra space).
9312 freebsd2.2*)
9313 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9314 hardcode_libdir_flag_spec='-R$libdir'
9315 hardcode_direct=yes
9316 hardcode_shlibpath_var=no
9317 ;;
9318
9319 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9320 freebsd2*)
9321 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9322 hardcode_direct=yes
9323 hardcode_minus_L=yes
9324 hardcode_shlibpath_var=no
9325 ;;
9326
9327 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9328 freebsd* | dragonfly*)
9329 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9330 hardcode_libdir_flag_spec='-R$libdir'
9331 hardcode_direct=yes
9332 hardcode_shlibpath_var=no
9333 ;;
9334
9335 hpux9*)
9336 if test "$GCC" = yes; then
9337 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'
9338 else
9339 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'
9340 fi
9341 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9342 hardcode_libdir_separator=:
9343 hardcode_direct=yes
9344
9345 # hardcode_minus_L: Not really in the search PATH,
9346 # but as the default location of the library.
9347 hardcode_minus_L=yes
9348 export_dynamic_flag_spec='${wl}-E'
9349 ;;
9350
9351 hpux10*)
9352 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9353 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9354 else
9355 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9356 fi
9357 if test "$with_gnu_ld" = no; then
9358 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9359 hardcode_libdir_flag_spec_ld='+b $libdir'
9360 hardcode_libdir_separator=:
9361 hardcode_direct=yes
9362 hardcode_direct_absolute=yes
9363 export_dynamic_flag_spec='${wl}-E'
9364 # hardcode_minus_L: Not really in the search PATH,
9365 # but as the default location of the library.
9366 hardcode_minus_L=yes
9367 fi
9368 ;;
9369
9370 hpux11*)
9371 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9372 case $host_cpu in
9373 hppa*64*)
9374 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9375 ;;
9376 ia64*)
b214d478 9377 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9378 ;;
9379 *)
9380 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9381 ;;
9382 esac
9383 else
9384 case $host_cpu in
9385 hppa*64*)
9386 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9387 ;;
9388 ia64*)
9389 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9390 ;;
9391 *)
9392 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9393 ;;
9394 esac
9395 fi
9396 if test "$with_gnu_ld" = no; then
9397 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9398 hardcode_libdir_separator=:
9399
9400 case $host_cpu in
9401 hppa*64*|ia64*)
9402 hardcode_direct=no
9403 hardcode_shlibpath_var=no
9404 ;;
9405 *)
9406 hardcode_direct=yes
9407 hardcode_direct_absolute=yes
9408 export_dynamic_flag_spec='${wl}-E'
9409
9410 # hardcode_minus_L: Not really in the search PATH,
9411 # but as the default location of the library.
9412 hardcode_minus_L=yes
9413 ;;
9414 esac
9415 fi
9416 ;;
9417
9418 irix5* | irix6* | nonstopux*)
9419 if test "$GCC" = yes; then
9420 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'
9421 # Try to use the -exported_symbol ld option, if it does not
9422 # work, assume that -exports_file does not work either and
9423 # implicitly export all symbols.
9424 save_LDFLAGS="$LDFLAGS"
9425 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427/* end confdefs.h. */
ce2cded5 9428int foo(void) {}
d7040cdb 9429_ACEOF
81ecdfbb 9430if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
9431 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'
9432
d7040cdb 9433fi
81ecdfbb
RW
9434rm -f core conftest.err conftest.$ac_objext \
9435 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
9436 LDFLAGS="$save_LDFLAGS"
9437 else
9438 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'
9439 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'
9440 fi
9441 archive_cmds_need_lc='no'
9442 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9443 hardcode_libdir_separator=:
9444 inherit_rpath=yes
9445 link_all_deplibs=yes
9446 ;;
9447
9448 netbsd*)
9449 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9451 else
9452 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9453 fi
9454 hardcode_libdir_flag_spec='-R$libdir'
9455 hardcode_direct=yes
9456 hardcode_shlibpath_var=no
9457 ;;
9458
9459 newsos6)
9460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9461 hardcode_direct=yes
9462 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9463 hardcode_libdir_separator=:
9464 hardcode_shlibpath_var=no
9465 ;;
9466
9467 *nto* | *qnx*)
9468 ;;
9469
9470 openbsd*)
b214d478
SE
9471 if test -f /usr/libexec/ld.so; then
9472 hardcode_direct=yes
9473 hardcode_shlibpath_var=no
9474 hardcode_direct_absolute=yes
9475 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 9476 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 9477 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 9478 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
9479 export_dynamic_flag_spec='${wl}-E'
9480 else
9481 case $host_os in
9482 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9483 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9484 hardcode_libdir_flag_spec='-R$libdir'
9485 ;;
9486 *)
9487 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9488 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9489 ;;
9490 esac
9491 fi
9492 else
9493 ld_shlibs=no
ce2cded5
L
9494 fi
9495 ;;
9496
9497 os2*)
9498 hardcode_libdir_flag_spec='-L$libdir'
9499 hardcode_minus_L=yes
9500 allow_undefined_flag=unsupported
9501 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'
9502 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9503 ;;
9504
9505 osf3*)
9506 if test "$GCC" = yes; then
9507 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9508 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'
9509 else
9510 allow_undefined_flag=' -expect_unresolved \*'
9511 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'
9512 fi
9513 archive_cmds_need_lc='no'
9514 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9515 hardcode_libdir_separator=:
9516 ;;
9517
9518 osf4* | osf5*) # as osf3* with the addition of -msym flag
9519 if test "$GCC" = yes; then
9520 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9521 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'
9522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9523 else
9524 allow_undefined_flag=' -expect_unresolved \*'
9525 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'
9526 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~
9527 $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'
9528
9529 # Both c and cxx compiler support -rpath directly
9530 hardcode_libdir_flag_spec='-rpath $libdir'
9531 fi
9532 archive_cmds_need_lc='no'
9533 hardcode_libdir_separator=:
9534 ;;
9535
9536 solaris*)
9537 no_undefined_flag=' -z defs'
9538 if test "$GCC" = yes; then
9539 wlarc='${wl}'
9540 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9541 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9542 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9543 else
9544 case `$CC -V 2>&1` in
9545 *"Compilers 5.0"*)
9546 wlarc=''
9547 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9548 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9549 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9550 ;;
9551 *)
9552 wlarc='${wl}'
9553 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9554 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9555 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9556 ;;
9557 esac
9558 fi
9559 hardcode_libdir_flag_spec='-R$libdir'
9560 hardcode_shlibpath_var=no
9561 case $host_os in
9562 solaris2.[0-5] | solaris2.[0-5].*) ;;
9563 *)
9564 # The compiler driver will combine and reorder linker options,
9565 # but understands `-z linker_flag'. GCC discards it without `$wl',
9566 # but is careful enough not to reorder.
9567 # Supported since Solaris 2.6 (maybe 2.5.1?)
9568 if test "$GCC" = yes; then
9569 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9570 else
9571 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9572 fi
9573 ;;
9574 esac
9575 link_all_deplibs=yes
9576 ;;
9577
9578 sunos4*)
9579 if test "x$host_vendor" = xsequent; then
9580 # Use $CC to link under sequent, because it throws in some extra .o
9581 # files that make .init and .fini sections work.
9582 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9583 else
9584 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9585 fi
9586 hardcode_libdir_flag_spec='-L$libdir'
9587 hardcode_direct=yes
9588 hardcode_minus_L=yes
9589 hardcode_shlibpath_var=no
9590 ;;
9591
9592 sysv4)
9593 case $host_vendor in
9594 sni)
9595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9596 hardcode_direct=yes # is this really true???
9597 ;;
9598 siemens)
9599 ## LD is ld it makes a PLAMLIB
9600 ## CC just makes a GrossModule.
9601 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9602 reload_cmds='$CC -r -o $output$reload_objs'
9603 hardcode_direct=no
9604 ;;
9605 motorola)
9606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9607 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9608 ;;
9609 esac
9610 runpath_var='LD_RUN_PATH'
9611 hardcode_shlibpath_var=no
9612 ;;
9613
9614 sysv4.3*)
9615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9616 hardcode_shlibpath_var=no
9617 export_dynamic_flag_spec='-Bexport'
9618 ;;
9619
9620 sysv4*MP*)
9621 if test -d /usr/nec; then
9622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9623 hardcode_shlibpath_var=no
9624 runpath_var=LD_RUN_PATH
9625 hardcode_runpath_var=yes
9626 ld_shlibs=yes
9627 fi
9628 ;;
9629
9630 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9631 no_undefined_flag='${wl}-z,text'
9632 archive_cmds_need_lc=no
9633 hardcode_shlibpath_var=no
9634 runpath_var='LD_RUN_PATH'
9635
9636 if test "$GCC" = yes; then
9637 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9638 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9639 else
9640 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9641 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9642 fi
9643 ;;
9644
9645 sysv5* | sco3.2v5* | sco5v6*)
9646 # Note: We can NOT use -z defs as we might desire, because we do not
9647 # link with -lc, and that would cause any symbols used from libc to
9648 # always be unresolved, which means just about no library would
9649 # ever link correctly. If we're not using GNU ld we use -z text
9650 # though, which does catch some bad symbols but isn't as heavy-handed
9651 # as -z defs.
9652 no_undefined_flag='${wl}-z,text'
9653 allow_undefined_flag='${wl}-z,nodefs'
9654 archive_cmds_need_lc=no
9655 hardcode_shlibpath_var=no
9656 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9657 hardcode_libdir_separator=':'
9658 link_all_deplibs=yes
9659 export_dynamic_flag_spec='${wl}-Bexport'
9660 runpath_var='LD_RUN_PATH'
9661
9662 if test "$GCC" = yes; then
9663 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9664 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9665 else
9666 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9667 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9668 fi
9669 ;;
9670
9671 uts4*)
9672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9673 hardcode_libdir_flag_spec='-L$libdir'
9674 hardcode_shlibpath_var=no
9675 ;;
9676
9677 *)
9678 ld_shlibs=no
9679 ;;
9680 esac
9681
9682 if test x$host_vendor = xsni; then
9683 case $host in
9684 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9685 export_dynamic_flag_spec='${wl}-Blargedynsym'
9686 ;;
9687 esac
9688 fi
9689 fi
9690
81ecdfbb
RW
9691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9692$as_echo "$ld_shlibs" >&6; }
ce2cded5
L
9693test "$ld_shlibs" = no && can_build_shared=no
9694
9695with_gnu_ld=$with_gnu_ld
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711#
9712# Do we need to explicitly link libc?
9713#
9714case "x$archive_cmds_need_lc" in
9715x|xyes)
9716 # Assume -lc should be added
9717 archive_cmds_need_lc=yes
9718
9719 if test "$enable_shared" = yes && test "$GCC" = yes; then
9720 case $archive_cmds in
9721 *'~'*)
9722 # FIXME: we may have to deal with multi-command sequences.
9723 ;;
9724 '$CC '*)
9725 # Test whether the compiler implicitly links with -lc since on some
9726 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9727 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9729$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9730if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9731 $as_echo_n "(cached) " >&6
39144654
RW
9732else
9733 $RM conftest*
9734 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
ce2cded5 9735
81ecdfbb 9736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
9737 (eval $ac_compile) 2>&5
9738 ac_status=$?
81ecdfbb
RW
9739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9740 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9741 soname=conftest
9742 lib=conftest
9743 libobjs=conftest.$ac_objext
9744 deplibs=
9745 wl=$lt_prog_compiler_wl
9746 pic_flag=$lt_prog_compiler_pic
9747 compiler_flags=-v
9748 linker_flags=-v
9749 verstring=
9750 output_objdir=.
9751 libname=conftest
9752 lt_save_allow_undefined_flag=$allow_undefined_flag
9753 allow_undefined_flag=
81ecdfbb 9754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
9755 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9756 ac_status=$?
81ecdfbb
RW
9757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9758 test $ac_status = 0; }
39144654
RW
9759 then
9760 lt_cv_archive_cmds_need_lc=no
9761 else
9762 lt_cv_archive_cmds_need_lc=yes
9763 fi
9764 allow_undefined_flag=$lt_save_allow_undefined_flag
9765 else
9766 cat conftest.err 1>&5
9767 fi
9768 $RM conftest*
9769
9770fi
81ecdfbb
RW
9771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9772$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9773 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
9774 ;;
9775 esac
9776 fi
9777 ;;
9778esac
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
81ecdfbb
RW
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9937$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
9938
9939if test "$GCC" = yes; then
ce2cded5
L
9940 case $host_os in
9941 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9942 *) lt_awk_arg="/^libraries:/" ;;
9943 esac
9944 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9945 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9946 # if the path contains ";" then we assume it to be the separator
9947 # otherwise default to the standard path separator (i.e. ":") - it is
9948 # assumed that no part of a normal pathname contains ";" but that should
9949 # okay in the real world where ";" in dirpaths is itself problematic.
9950 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9951 else
9952 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9953 fi
9954 # Ok, now we have the path, separated by spaces, we can step through it
9955 # and add multilib dir if necessary.
9956 lt_tmp_lt_search_path_spec=
9957 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9958 for lt_sys_path in $lt_search_path_spec; do
9959 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9960 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9961 else
9962 test -d "$lt_sys_path" && \
9963 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9964 fi
9965 done
9966 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9967BEGIN {RS=" "; FS="/|\n";} {
9968 lt_foo="";
9969 lt_count=0;
9970 for (lt_i = NF; lt_i > 0; lt_i--) {
9971 if ($lt_i != "" && $lt_i != ".") {
9972 if ($lt_i == "..") {
9973 lt_count++;
9974 } else {
9975 if (lt_count == 0) {
9976 lt_foo="/" $lt_i lt_foo;
9977 } else {
9978 lt_count--;
9979 }
9980 }
9981 }
9982 }
9983 if (lt_foo != "") { lt_freq[lt_foo]++; }
9984 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9985}'`
9986 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9987else
9988 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9989fi
9990library_names_spec=
9991libname_spec='lib$name'
9992soname_spec=
9993shrext_cmds=".so"
9994postinstall_cmds=
9995postuninstall_cmds=
9996finish_cmds=
9997finish_eval=
9998shlibpath_var=
9999shlibpath_overrides_runpath=unknown
10000version_type=none
10001dynamic_linker="$host_os ld.so"
10002sys_lib_dlsearch_path_spec="/lib /usr/lib"
10003need_lib_prefix=unknown
10004hardcode_into_libs=no
10005
10006# when you set need_version to no, make sure it does not cause -set_version
10007# flags to be left without arguments
10008need_version=unknown
10009
10010case $host_os in
10011aix3*)
10012 version_type=linux
10013 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10014 shlibpath_var=LIBPATH
10015
10016 # AIX 3 has no versioning support, so we append a major version to the name.
10017 soname_spec='${libname}${release}${shared_ext}$major'
10018 ;;
10019
50e7d84b 10020aix[4-9]*)
ce2cded5
L
10021 version_type=linux
10022 need_lib_prefix=no
10023 need_version=no
10024 hardcode_into_libs=yes
10025 if test "$host_cpu" = ia64; then
10026 # AIX 5 supports IA64
10027 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10028 shlibpath_var=LD_LIBRARY_PATH
10029 else
10030 # With GCC up to 2.95.x, collect2 would create an import file
10031 # for dependence libraries. The import file would start with
10032 # the line `#! .'. This would cause the generated library to
10033 # depend on `.', always an invalid library. This was fixed in
10034 # development snapshots of GCC prior to 3.0.
10035 case $host_os in
10036 aix4 | aix4.[01] | aix4.[01].*)
10037 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10038 echo ' yes '
10039 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10040 :
10041 else
10042 can_build_shared=no
10043 fi
10044 ;;
10045 esac
10046 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10047 # soname into executable. Probably we can add versioning support to
10048 # collect2, so additional links can be useful in future.
10049 if test "$aix_use_runtimelinking" = yes; then
10050 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10051 # instead of lib<name>.a to let people know that these are not
10052 # typical AIX shared libraries.
10053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10054 else
10055 # We preserve .a as extension for shared libraries through AIX4.2
10056 # and later when we are not doing run time linking.
10057 library_names_spec='${libname}${release}.a $libname.a'
10058 soname_spec='${libname}${release}${shared_ext}$major'
10059 fi
10060 shlibpath_var=LIBPATH
10061 fi
10062 ;;
10063
10064amigaos*)
b214d478
SE
10065 case $host_cpu in
10066 powerpc)
10067 # Since July 2007 AmigaOS4 officially supports .so libraries.
10068 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10070 ;;
10071 m68k)
ce2cded5
L
10072 library_names_spec='$libname.ixlibrary $libname.a'
10073 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10074 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'
b214d478
SE
10075 ;;
10076 esac
ce2cded5
L
10077 ;;
10078
10079beos*)
10080 library_names_spec='${libname}${shared_ext}'
10081 dynamic_linker="$host_os ld.so"
10082 shlibpath_var=LIBRARY_PATH
10083 ;;
10084
10085bsdi[45]*)
10086 version_type=linux
10087 need_version=no
10088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10089 soname_spec='${libname}${release}${shared_ext}$major'
10090 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10091 shlibpath_var=LD_LIBRARY_PATH
10092 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10093 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10094 # the default ld.so.conf also contains /usr/contrib/lib and
10095 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10096 # libtool to hard-code these into programs
10097 ;;
10098
b214d478 10099cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10100 version_type=windows
10101 shrext_cmds=".dll"
10102 need_version=no
10103 need_lib_prefix=no
10104
b214d478
SE
10105 case $GCC,$host_os in
10106 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10107 library_names_spec='$libname.dll.a'
10108 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10109 postinstall_cmds='base_file=`basename \${file}`~
10110 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10111 dldir=$destdir/`dirname \$dlpath`~
10112 test -d \$dldir || mkdir -p \$dldir~
10113 $install_prog $dir/$dlname \$dldir/$dlname~
10114 chmod a+x \$dldir/$dlname~
10115 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10116 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10117 fi'
10118 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10119 dlpath=$dir/\$dldll~
10120 $RM \$dlpath'
10121 shlibpath_overrides_runpath=yes
10122
10123 case $host_os in
10124 cygwin*)
10125 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10126 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10127 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10128 ;;
b214d478 10129 mingw* | cegcc*)
ce2cded5
L
10130 # MinGW DLLs use traditional 'lib' prefix
10131 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10132 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10133 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10134 # It is most probably a Windows format PATH printed by
10135 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10136 # path with ; separators, and with drive letters. We can handle the
10137 # drive letters (cygwin fileutils understands them), so leave them,
10138 # especially as we might pass files found there to a mingw objdump,
10139 # which wouldn't understand a cygwinified path. Ahh.
10140 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10141 else
10142 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10143 fi
10144 ;;
10145 pw32*)
10146 # pw32 DLLs use 'pw' prefix rather than 'lib'
10147 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10148 ;;
10149 esac
10150 ;;
10151
10152 *)
10153 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10154 ;;
10155 esac
10156 dynamic_linker='Win32 ld.exe'
10157 # FIXME: first we should search . and the directory the executable is in
10158 shlibpath_var=PATH
10159 ;;
10160
10161darwin* | rhapsody*)
10162 dynamic_linker="$host_os dyld"
10163 version_type=darwin
10164 need_lib_prefix=no
10165 need_version=no
10166 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10167 soname_spec='${libname}${release}${major}$shared_ext'
10168 shlibpath_overrides_runpath=yes
10169 shlibpath_var=DYLD_LIBRARY_PATH
10170 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10171
10172 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10173 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10174 ;;
10175
10176dgux*)
10177 version_type=linux
10178 need_lib_prefix=no
10179 need_version=no
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10181 soname_spec='${libname}${release}${shared_ext}$major'
10182 shlibpath_var=LD_LIBRARY_PATH
10183 ;;
10184
10185freebsd1*)
10186 dynamic_linker=no
10187 ;;
10188
10189freebsd* | dragonfly*)
10190 # DragonFly does not have aout. When/if they implement a new
10191 # versioning mechanism, adjust this.
10192 if test -x /usr/bin/objformat; then
10193 objformat=`/usr/bin/objformat`
10194 else
10195 case $host_os in
10196 freebsd[123]*) objformat=aout ;;
10197 *) objformat=elf ;;
10198 esac
10199 fi
10200 version_type=freebsd-$objformat
10201 case $version_type in
10202 freebsd-elf*)
10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10204 need_version=no
10205 need_lib_prefix=no
10206 ;;
10207 freebsd-*)
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10209 need_version=yes
10210 ;;
10211 esac
10212 shlibpath_var=LD_LIBRARY_PATH
10213 case $host_os in
10214 freebsd2*)
10215 shlibpath_overrides_runpath=yes
10216 ;;
10217 freebsd3.[01]* | freebsdelf3.[01]*)
10218 shlibpath_overrides_runpath=yes
10219 hardcode_into_libs=yes
10220 ;;
10221 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10222 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10223 shlibpath_overrides_runpath=no
10224 hardcode_into_libs=yes
10225 ;;
10226 *) # from 4.6 on, and DragonFly
10227 shlibpath_overrides_runpath=yes
10228 hardcode_into_libs=yes
10229 ;;
10230 esac
10231 ;;
10232
10233gnu*)
10234 version_type=linux
10235 need_lib_prefix=no
10236 need_version=no
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10238 soname_spec='${libname}${release}${shared_ext}$major'
10239 shlibpath_var=LD_LIBRARY_PATH
10240 hardcode_into_libs=yes
10241 ;;
10242
10243hpux9* | hpux10* | hpux11*)
10244 # Give a soname corresponding to the major version so that dld.sl refuses to
10245 # link against other versions.
10246 version_type=sunos
10247 need_lib_prefix=no
10248 need_version=no
10249 case $host_cpu in
10250 ia64*)
10251 shrext_cmds='.so'
10252 hardcode_into_libs=yes
10253 dynamic_linker="$host_os dld.so"
10254 shlibpath_var=LD_LIBRARY_PATH
10255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 if test "X$HPUX_IA64_MODE" = X32; then
10259 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10260 else
10261 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10262 fi
10263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10264 ;;
10265 hppa*64*)
10266 shrext_cmds='.sl'
10267 hardcode_into_libs=yes
10268 dynamic_linker="$host_os dld.sl"
10269 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10270 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10272 soname_spec='${libname}${release}${shared_ext}$major'
10273 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10275 ;;
10276 *)
10277 shrext_cmds='.sl'
10278 dynamic_linker="$host_os dld.sl"
10279 shlibpath_var=SHLIB_PATH
10280 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10282 soname_spec='${libname}${release}${shared_ext}$major'
10283 ;;
10284 esac
10285 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10286 postinstall_cmds='chmod 555 $lib'
10287 ;;
10288
10289interix[3-9]*)
10290 version_type=linux
10291 need_lib_prefix=no
10292 need_version=no
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10294 soname_spec='${libname}${release}${shared_ext}$major'
10295 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10296 shlibpath_var=LD_LIBRARY_PATH
10297 shlibpath_overrides_runpath=no
10298 hardcode_into_libs=yes
10299 ;;
d7040cdb 10300
ce2cded5
L
10301irix5* | irix6* | nonstopux*)
10302 case $host_os in
10303 nonstopux*) version_type=nonstopux ;;
10304 *)
10305 if test "$lt_cv_prog_gnu_ld" = yes; then
10306 version_type=linux
10307 else
10308 version_type=irix
10309 fi ;;
10310 esac
10311 need_lib_prefix=no
10312 need_version=no
10313 soname_spec='${libname}${release}${shared_ext}$major'
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10315 case $host_os in
10316 irix5* | nonstopux*)
10317 libsuff= shlibsuff=
10318 ;;
10319 *)
10320 case $LD in # libtool.m4 will add one of these switches to LD
10321 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10322 libsuff= shlibsuff= libmagic=32-bit;;
10323 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10324 libsuff=32 shlibsuff=N32 libmagic=N32;;
10325 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10326 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10327 *) libsuff= shlibsuff= libmagic=never-match;;
10328 esac
10329 ;;
10330 esac
10331 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10332 shlibpath_overrides_runpath=no
10333 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10334 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10335 hardcode_into_libs=yes
10336 ;;
d7040cdb 10337
ce2cded5
L
10338# No shared lib support for Linux oldld, aout, or coff.
10339linux*oldld* | linux*aout* | linux*coff*)
10340 dynamic_linker=no
10341 ;;
10342
10343# This must be Linux ELF.
58e24671 10344linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
10345 version_type=linux
10346 need_lib_prefix=no
10347 need_version=no
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10349 soname_spec='${libname}${release}${shared_ext}$major'
10350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10351 shlibpath_var=LD_LIBRARY_PATH
10352 shlibpath_overrides_runpath=no
39144654 10353
ce2cded5 10354 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10355 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10356 $as_echo_n "(cached) " >&6
39144654
RW
10357else
10358 lt_cv_shlibpath_overrides_runpath=no
10359 save_LDFLAGS=$LDFLAGS
10360 save_libdir=$libdir
10361 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10362 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10364/* end confdefs.h. */
10365
d7040cdb
SE
10366int
10367main ()
10368{
ce2cded5 10369
d7040cdb
SE
10370 ;
10371 return 0;
10372}
10373_ACEOF
81ecdfbb
RW
10374if ac_fn_c_try_link "$LINENO"; then :
10375 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10376 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10377fi
d7040cdb 10378fi
81ecdfbb
RW
10379rm -f core conftest.err conftest.$ac_objext \
10380 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10381 LDFLAGS=$save_LDFLAGS
10382 libdir=$save_libdir
10383
10384fi
10385
10386 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 10387
ce2cded5
L
10388 # This implies no fast_install, which is unacceptable.
10389 # Some rework will be needed to allow for fast_install
10390 # before this can be enabled.
10391 hardcode_into_libs=yes
d7040cdb 10392
ce2cded5
L
10393 # Append ld.so.conf contents to the search path
10394 if test -f /etc/ld.so.conf; then
b214d478 10395 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' ' '`
ce2cded5
L
10396 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10397 fi
d7040cdb 10398
ce2cded5
L
10399 # We used to test for /lib/ld.so.1 and disable shared libraries on
10400 # powerpc, because MkLinux only supported shared libraries with the
10401 # GNU dynamic linker. Since this was broken with cross compilers,
10402 # most powerpc-linux boxes support dynamic linking these days and
10403 # people can always --disable-shared, the test was removed, and we
10404 # assume the GNU/Linux dynamic linker is in use.
10405 dynamic_linker='GNU/Linux ld.so'
10406 ;;
d7040cdb 10407
ce2cded5
L
10408netbsd*)
10409 version_type=sunos
10410 need_lib_prefix=no
10411 need_version=no
10412 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10415 dynamic_linker='NetBSD (a.out) ld.so'
10416 else
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10418 soname_spec='${libname}${release}${shared_ext}$major'
10419 dynamic_linker='NetBSD ld.elf_so'
10420 fi
10421 shlibpath_var=LD_LIBRARY_PATH
10422 shlibpath_overrides_runpath=yes
10423 hardcode_into_libs=yes
10424 ;;
d7040cdb 10425
ce2cded5
L
10426newsos6)
10427 version_type=linux
10428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10429 shlibpath_var=LD_LIBRARY_PATH
10430 shlibpath_overrides_runpath=yes
10431 ;;
d7040cdb 10432
ce2cded5
L
10433*nto* | *qnx*)
10434 version_type=qnx
10435 need_lib_prefix=no
10436 need_version=no
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438 soname_spec='${libname}${release}${shared_ext}$major'
10439 shlibpath_var=LD_LIBRARY_PATH
10440 shlibpath_overrides_runpath=no
10441 hardcode_into_libs=yes
10442 dynamic_linker='ldqnx.so'
10443 ;;
d7040cdb 10444
ce2cded5
L
10445openbsd*)
10446 version_type=sunos
10447 sys_lib_dlsearch_path_spec="/usr/lib"
10448 need_lib_prefix=no
10449 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10450 case $host_os in
10451 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10452 *) need_version=no ;;
d7040cdb 10453 esac
ce2cded5
L
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10456 shlibpath_var=LD_LIBRARY_PATH
10457 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10458 case $host_os in
10459 openbsd2.[89] | openbsd2.[89].*)
10460 shlibpath_overrides_runpath=no
10461 ;;
10462 *)
10463 shlibpath_overrides_runpath=yes
10464 ;;
10465 esac
d7040cdb 10466 else
ce2cded5 10467 shlibpath_overrides_runpath=yes
d7040cdb 10468 fi
ce2cded5 10469 ;;
d7040cdb 10470
ce2cded5
L
10471os2*)
10472 libname_spec='$name'
10473 shrext_cmds=".dll"
10474 need_lib_prefix=no
10475 library_names_spec='$libname${shared_ext} $libname.a'
10476 dynamic_linker='OS/2 ld.exe'
10477 shlibpath_var=LIBPATH
10478 ;;
d7040cdb 10479
ce2cded5
L
10480osf3* | osf4* | osf5*)
10481 version_type=osf
10482 need_lib_prefix=no
10483 need_version=no
10484 soname_spec='${libname}${release}${shared_ext}$major'
10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486 shlibpath_var=LD_LIBRARY_PATH
10487 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10488 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10489 ;;
d7040cdb 10490
ce2cded5
L
10491rdos*)
10492 dynamic_linker=no
10493 ;;
d7040cdb 10494
ce2cded5
L
10495solaris*)
10496 version_type=linux
10497 need_lib_prefix=no
10498 need_version=no
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500 soname_spec='${libname}${release}${shared_ext}$major'
10501 shlibpath_var=LD_LIBRARY_PATH
10502 shlibpath_overrides_runpath=yes
10503 hardcode_into_libs=yes
10504 # ldd complains unless libraries are executable
10505 postinstall_cmds='chmod +x $lib'
10506 ;;
d7040cdb 10507
ce2cded5
L
10508sunos4*)
10509 version_type=sunos
10510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10511 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10512 shlibpath_var=LD_LIBRARY_PATH
10513 shlibpath_overrides_runpath=yes
10514 if test "$with_gnu_ld" = yes; then
10515 need_lib_prefix=no
10516 fi
10517 need_version=yes
10518 ;;
d7040cdb 10519
ce2cded5
L
10520sysv4 | sysv4.3*)
10521 version_type=linux
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10523 soname_spec='${libname}${release}${shared_ext}$major'
10524 shlibpath_var=LD_LIBRARY_PATH
10525 case $host_vendor in
10526 sni)
10527 shlibpath_overrides_runpath=no
10528 need_lib_prefix=no
10529 runpath_var=LD_RUN_PATH
10530 ;;
10531 siemens)
10532 need_lib_prefix=no
10533 ;;
10534 motorola)
10535 need_lib_prefix=no
10536 need_version=no
10537 shlibpath_overrides_runpath=no
10538 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10539 ;;
10540 esac
10541 ;;
d7040cdb 10542
ce2cded5
L
10543sysv4*MP*)
10544 if test -d /usr/nec ;then
10545 version_type=linux
10546 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10547 soname_spec='$libname${shared_ext}.$major'
10548 shlibpath_var=LD_LIBRARY_PATH
10549 fi
10550 ;;
d7040cdb 10551
ce2cded5
L
10552sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10553 version_type=freebsd-elf
10554 need_lib_prefix=no
10555 need_version=no
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10557 soname_spec='${libname}${release}${shared_ext}$major'
10558 shlibpath_var=LD_LIBRARY_PATH
10559 shlibpath_overrides_runpath=yes
10560 hardcode_into_libs=yes
10561 if test "$with_gnu_ld" = yes; then
10562 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10563 else
10564 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10565 case $host_os in
10566 sco3.2v5*)
10567 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10568 ;;
10569 esac
10570 fi
10571 sys_lib_dlsearch_path_spec='/usr/lib'
10572 ;;
d7040cdb 10573
ce2cded5
L
10574tpf*)
10575 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10576 version_type=linux
10577 need_lib_prefix=no
10578 need_version=no
b214d478 10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
10580 shlibpath_var=LD_LIBRARY_PATH
10581 shlibpath_overrides_runpath=no
10582 hardcode_into_libs=yes
10583 ;;
d7040cdb 10584
ce2cded5
L
10585uts4*)
10586 version_type=linux
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588 soname_spec='${libname}${release}${shared_ext}$major'
10589 shlibpath_var=LD_LIBRARY_PATH
10590 ;;
d7040cdb 10591
ce2cded5
L
10592*)
10593 dynamic_linker=no
10594 ;;
10595esac
81ecdfbb
RW
10596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10597$as_echo "$dynamic_linker" >&6; }
ce2cded5 10598test "$dynamic_linker" = no && can_build_shared=no
d7040cdb 10599
ce2cded5
L
10600variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10601if test "$GCC" = yes; then
10602 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 10603fi
d7040cdb 10604
b214d478
SE
10605if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10606 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10607fi
10608if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10609 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10610fi
10611
d7040cdb 10612
d7040cdb 10613
d7040cdb 10614
d7040cdb 10615
d7040cdb 10616
d7040cdb 10617
d7040cdb 10618
d7040cdb 10619
d7040cdb 10620
d7040cdb 10621
d7040cdb
SE
10622
10623
d7040cdb 10624
d7040cdb 10625
d7040cdb 10626
d7040cdb
SE
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
d7040cdb
SE
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
d7040cdb 10656
d7040cdb 10657
d7040cdb 10658
d7040cdb 10659
d7040cdb
SE
10660
10661
10662
10663
d7040cdb 10664
d7040cdb
SE
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
d7040cdb
SE
10678
10679
10680
10681
d7040cdb
SE
10682
10683
10684
d7040cdb
SE
10685
10686
d7040cdb 10687
d7040cdb 10688
d7040cdb 10689
ce2cded5
L
10690
10691
10692
10693
10694
10695
10696
10697
81ecdfbb
RW
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10699$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
10700hardcode_action=
10701if test -n "$hardcode_libdir_flag_spec" ||
10702 test -n "$runpath_var" ||
10703 test "X$hardcode_automatic" = "Xyes" ; then
10704
10705 # We can hardcode non-existent directories.
10706 if test "$hardcode_direct" != no &&
10707 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10708 # have to relink, otherwise we might link with an installed library
10709 # when we should be linking with a yet-to-be-installed one
10710 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10711 test "$hardcode_minus_L" != no; then
10712 # Linking always hardcodes the temporary library directory.
10713 hardcode_action=relink
10714 else
10715 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10716 hardcode_action=immediate
10717 fi
d7040cdb 10718else
ce2cded5
L
10719 # We cannot hardcode anything, or else we can only hardcode existing
10720 # directories.
10721 hardcode_action=unsupported
d7040cdb 10722fi
81ecdfbb
RW
10723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10724$as_echo "$hardcode_action" >&6; }
d7040cdb 10725
ce2cded5
L
10726if test "$hardcode_action" = relink ||
10727 test "$inherit_rpath" = yes; then
10728 # Fast installation is not supported
10729 enable_fast_install=no
10730elif test "$shlibpath_overrides_runpath" = yes ||
10731 test "$enable_shared" = no; then
10732 # Fast installation is not necessary
10733 enable_fast_install=needless
d7040cdb
SE
10734fi
10735
d7040cdb 10736
d7040cdb 10737
0ab6f085 10738
0ab6f085 10739
0ab6f085 10740
ce2cded5
L
10741 if test "x$enable_dlopen" != xyes; then
10742 enable_dlopen=unknown
10743 enable_dlopen_self=unknown
10744 enable_dlopen_self_static=unknown
d7040cdb 10745else
ce2cded5
L
10746 lt_cv_dlopen=no
10747 lt_cv_dlopen_libs=
d7040cdb 10748
ce2cded5
L
10749 case $host_os in
10750 beos*)
10751 lt_cv_dlopen="load_add_on"
10752 lt_cv_dlopen_libs=
10753 lt_cv_dlopen_self=yes
10754 ;;
d7040cdb 10755
b214d478 10756 mingw* | pw32* | cegcc*)
ce2cded5
L
10757 lt_cv_dlopen="LoadLibrary"
10758 lt_cv_dlopen_libs=
10759 ;;
10760
10761 cygwin*)
10762 lt_cv_dlopen="dlopen"
10763 lt_cv_dlopen_libs=
10764 ;;
10765
10766 darwin*)
10767 # if libdl is installed we need to link against it
81ecdfbb
RW
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10769$as_echo_n "checking for dlopen in -ldl... " >&6; }
10770if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10771 $as_echo_n "(cached) " >&6
d7040cdb 10772else
ce2cded5
L
10773 ac_check_lib_save_LIBS=$LIBS
10774LIBS="-ldl $LIBS"
81ecdfbb 10775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
10776/* end confdefs.h. */
10777
81ecdfbb
RW
10778/* Override any GCC internal prototype to avoid an error.
10779 Use char because int might match the return type of a GCC
10780 builtin and then its argument prototype would still apply. */
ce2cded5
L
10781#ifdef __cplusplus
10782extern "C"
10783#endif
ce2cded5
L
10784char dlopen ();
10785int
10786main ()
10787{
81ecdfbb 10788return dlopen ();
ce2cded5
L
10789 ;
10790 return 0;
10791}
10792_ACEOF
81ecdfbb 10793if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10794 ac_cv_lib_dl_dlopen=yes
10795else
81ecdfbb 10796 ac_cv_lib_dl_dlopen=no
d7040cdb 10797fi
81ecdfbb
RW
10798rm -f core conftest.err conftest.$ac_objext \
10799 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10800LIBS=$ac_check_lib_save_LIBS
d7040cdb 10801fi
81ecdfbb
RW
10802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10803$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10804if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 10805 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10806else
d7040cdb 10807
ce2cded5
L
10808 lt_cv_dlopen="dyld"
10809 lt_cv_dlopen_libs=
10810 lt_cv_dlopen_self=yes
10811
d7040cdb 10812fi
ce2cded5
L
10813
10814 ;;
10815
10816 *)
81ecdfbb
RW
10817 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10818if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
10819 lt_cv_dlopen="shl_load"
10820else
81ecdfbb
RW
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10822$as_echo_n "checking for shl_load in -ldld... " >&6; }
10823if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10824 $as_echo_n "(cached) " >&6
ce2cded5
L
10825else
10826 ac_check_lib_save_LIBS=$LIBS
10827LIBS="-ldld $LIBS"
81ecdfbb 10828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10829/* end confdefs.h. */
d7040cdb 10830
81ecdfbb
RW
10831/* Override any GCC internal prototype to avoid an error.
10832 Use char because int might match the return type of a GCC
10833 builtin and then its argument prototype would still apply. */
ce2cded5
L
10834#ifdef __cplusplus
10835extern "C"
10836#endif
ce2cded5
L
10837char shl_load ();
10838int
10839main ()
10840{
81ecdfbb 10841return shl_load ();
ce2cded5
L
10842 ;
10843 return 0;
10844}
10845_ACEOF
81ecdfbb 10846if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10847 ac_cv_lib_dld_shl_load=yes
10848else
81ecdfbb 10849 ac_cv_lib_dld_shl_load=no
ce2cded5 10850fi
81ecdfbb
RW
10851rm -f core conftest.err conftest.$ac_objext \
10852 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10853LIBS=$ac_check_lib_save_LIBS
10854fi
81ecdfbb
RW
10855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10856$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10857if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
b214d478 10858 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 10859else
81ecdfbb
RW
10860 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10861if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
10862 lt_cv_dlopen="dlopen"
10863else
81ecdfbb
RW
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10865$as_echo_n "checking for dlopen in -ldl... " >&6; }
10866if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10867 $as_echo_n "(cached) " >&6
d7040cdb 10868else
ce2cded5
L
10869 ac_check_lib_save_LIBS=$LIBS
10870LIBS="-ldl $LIBS"
81ecdfbb 10871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10872/* end confdefs.h. */
10873
81ecdfbb
RW
10874/* Override any GCC internal prototype to avoid an error.
10875 Use char because int might match the return type of a GCC
10876 builtin and then its argument prototype would still apply. */
ce2cded5
L
10877#ifdef __cplusplus
10878extern "C"
10879#endif
ce2cded5 10880char dlopen ();
d7040cdb
SE
10881int
10882main ()
10883{
81ecdfbb 10884return dlopen ();
d7040cdb
SE
10885 ;
10886 return 0;
10887}
10888_ACEOF
81ecdfbb 10889if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 10890 ac_cv_lib_dl_dlopen=yes
d7040cdb 10891else
81ecdfbb 10892 ac_cv_lib_dl_dlopen=no
1b9750d6 10893fi
81ecdfbb
RW
10894rm -f core conftest.err conftest.$ac_objext \
10895 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10896LIBS=$ac_check_lib_save_LIBS
d7040cdb 10897fi
81ecdfbb
RW
10898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10899$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10900if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 10901 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10902else
81ecdfbb
RW
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10904$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10905if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10906 $as_echo_n "(cached) " >&6
d7040cdb 10907else
ce2cded5
L
10908 ac_check_lib_save_LIBS=$LIBS
10909LIBS="-lsvld $LIBS"
81ecdfbb 10910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10911/* end confdefs.h. */
d7040cdb 10912
81ecdfbb
RW
10913/* Override any GCC internal prototype to avoid an error.
10914 Use char because int might match the return type of a GCC
10915 builtin and then its argument prototype would still apply. */
ce2cded5
L
10916#ifdef __cplusplus
10917extern "C"
10918#endif
ce2cded5 10919char dlopen ();
d7040cdb
SE
10920int
10921main ()
10922{
81ecdfbb 10923return dlopen ();
d7040cdb
SE
10924 ;
10925 return 0;
10926}
10927_ACEOF
81ecdfbb 10928if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 10929 ac_cv_lib_svld_dlopen=yes
0ab6f085 10930else
81ecdfbb 10931 ac_cv_lib_svld_dlopen=no
0ab6f085 10932fi
81ecdfbb
RW
10933rm -f core conftest.err conftest.$ac_objext \
10934 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10935LIBS=$ac_check_lib_save_LIBS
0ab6f085 10936fi
81ecdfbb
RW
10937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10938$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10939if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
10940 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10941else
81ecdfbb
RW
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10943$as_echo_n "checking for dld_link in -ldld... " >&6; }
10944if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10945 $as_echo_n "(cached) " >&6
ce2cded5
L
10946else
10947 ac_check_lib_save_LIBS=$LIBS
10948LIBS="-ldld $LIBS"
81ecdfbb 10949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0ab6f085 10950/* end confdefs.h. */
ce2cded5 10951
81ecdfbb
RW
10952/* Override any GCC internal prototype to avoid an error.
10953 Use char because int might match the return type of a GCC
10954 builtin and then its argument prototype would still apply. */
ce2cded5
L
10955#ifdef __cplusplus
10956extern "C"
10957#endif
ce2cded5 10958char dld_link ();
0ab6f085
AM
10959int
10960main ()
10961{
81ecdfbb 10962return dld_link ();
0ab6f085
AM
10963 ;
10964 return 0;
10965}
10966_ACEOF
81ecdfbb 10967if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 10968 ac_cv_lib_dld_dld_link=yes
0ab6f085 10969else
81ecdfbb 10970 ac_cv_lib_dld_dld_link=no
0ab6f085 10971fi
81ecdfbb
RW
10972rm -f core conftest.err conftest.$ac_objext \
10973 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10974LIBS=$ac_check_lib_save_LIBS
10975fi
81ecdfbb
RW
10976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10977$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10978if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
b214d478 10979 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
10980fi
10981
10982
10983fi
10984
10985
10986fi
10987
10988
10989fi
10990
10991
10992fi
10993
10994
10995fi
10996
10997 ;;
10998 esac
10999
11000 if test "x$lt_cv_dlopen" != xno; then
11001 enable_dlopen=yes
11002 else
11003 enable_dlopen=no
11004 fi
11005
11006 case $lt_cv_dlopen in
11007 dlopen)
11008 save_CPPFLAGS="$CPPFLAGS"
11009 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11010
11011 save_LDFLAGS="$LDFLAGS"
11012 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11013
11014 save_LIBS="$LIBS"
11015 LIBS="$lt_cv_dlopen_libs $LIBS"
11016
81ecdfbb
RW
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11018$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11019if test "${lt_cv_dlopen_self+set}" = set; then :
11020 $as_echo_n "(cached) " >&6
ce2cded5
L
11021else
11022 if test "$cross_compiling" = yes; then :
11023 lt_cv_dlopen_self=cross
11024else
11025 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11026 lt_status=$lt_dlunknown
11027 cat > conftest.$ac_ext <<_LT_EOF
da2f07f1 11028#line 11028 "configure"
ce2cded5
L
11029#include "confdefs.h"
11030
11031#if HAVE_DLFCN_H
11032#include <dlfcn.h>
11033#endif
11034
11035#include <stdio.h>
11036
11037#ifdef RTLD_GLOBAL
11038# define LT_DLGLOBAL RTLD_GLOBAL
11039#else
11040# ifdef DL_GLOBAL
11041# define LT_DLGLOBAL DL_GLOBAL
11042# else
11043# define LT_DLGLOBAL 0
11044# endif
11045#endif
11046
11047/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11048 find out it does not work in some platform. */
11049#ifndef LT_DLLAZY_OR_NOW
11050# ifdef RTLD_LAZY
11051# define LT_DLLAZY_OR_NOW RTLD_LAZY
11052# else
11053# ifdef DL_LAZY
11054# define LT_DLLAZY_OR_NOW DL_LAZY
11055# else
11056# ifdef RTLD_NOW
11057# define LT_DLLAZY_OR_NOW RTLD_NOW
11058# else
11059# ifdef DL_NOW
11060# define LT_DLLAZY_OR_NOW DL_NOW
11061# else
11062# define LT_DLLAZY_OR_NOW 0
11063# endif
11064# endif
11065# endif
11066# endif
11067#endif
11068
ce2cded5
L
11069void fnord() { int i=42;}
11070int main ()
0ab6f085 11071{
ce2cded5
L
11072 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11073 int status = $lt_dlunknown;
11074
11075 if (self)
11076 {
11077 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11078 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11079 /* dlclose (self); */
11080 }
11081 else
11082 puts (dlerror ());
11083
b214d478 11084 return status;
ce2cded5
L
11085}
11086_LT_EOF
81ecdfbb 11087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
11088 (eval $ac_link) 2>&5
11089 ac_status=$?
81ecdfbb
RW
11090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11091 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11092 (./conftest; exit; ) >&5 2>/dev/null
11093 lt_status=$?
11094 case x$lt_status in
11095 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11096 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11097 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11098 esac
11099 else :
11100 # compilation failed
11101 lt_cv_dlopen_self=no
11102 fi
11103fi
11104rm -fr conftest*
11105
11106
11107fi
81ecdfbb
RW
11108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11109$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11110
11111 if test "x$lt_cv_dlopen_self" = xyes; then
11112 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11114$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11115if test "${lt_cv_dlopen_self_static+set}" = set; then :
11116 $as_echo_n "(cached) " >&6
ce2cded5
L
11117else
11118 if test "$cross_compiling" = yes; then :
11119 lt_cv_dlopen_self_static=cross
11120else
11121 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11122 lt_status=$lt_dlunknown
11123 cat > conftest.$ac_ext <<_LT_EOF
da2f07f1 11124#line 11124 "configure"
ce2cded5
L
11125#include "confdefs.h"
11126
11127#if HAVE_DLFCN_H
11128#include <dlfcn.h>
11129#endif
11130
11131#include <stdio.h>
11132
11133#ifdef RTLD_GLOBAL
11134# define LT_DLGLOBAL RTLD_GLOBAL
11135#else
11136# ifdef DL_GLOBAL
11137# define LT_DLGLOBAL DL_GLOBAL
11138# else
11139# define LT_DLGLOBAL 0
11140# endif
11141#endif
11142
11143/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11144 find out it does not work in some platform. */
11145#ifndef LT_DLLAZY_OR_NOW
11146# ifdef RTLD_LAZY
11147# define LT_DLLAZY_OR_NOW RTLD_LAZY
11148# else
11149# ifdef DL_LAZY
11150# define LT_DLLAZY_OR_NOW DL_LAZY
11151# else
11152# ifdef RTLD_NOW
11153# define LT_DLLAZY_OR_NOW RTLD_NOW
11154# else
11155# ifdef DL_NOW
11156# define LT_DLLAZY_OR_NOW DL_NOW
11157# else
11158# define LT_DLLAZY_OR_NOW 0
11159# endif
11160# endif
11161# endif
11162# endif
11163#endif
11164
ce2cded5
L
11165void fnord() { int i=42;}
11166int main ()
11167{
11168 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11169 int status = $lt_dlunknown;
11170
11171 if (self)
11172 {
11173 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11174 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11175 /* dlclose (self); */
11176 }
11177 else
11178 puts (dlerror ());
11179
b214d478 11180 return status;
0ab6f085 11181}
ce2cded5 11182_LT_EOF
81ecdfbb 11183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11184 (eval $ac_link) 2>&5
0ab6f085 11185 ac_status=$?
81ecdfbb
RW
11186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11187 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11188 (./conftest; exit; ) >&5 2>/dev/null
11189 lt_status=$?
11190 case x$lt_status in
11191 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11192 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11193 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11194 esac
11195 else :
11196 # compilation failed
11197 lt_cv_dlopen_self_static=no
11198 fi
11199fi
11200rm -fr conftest*
11201
d7040cdb
SE
11202
11203fi
81ecdfbb
RW
11204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11205$as_echo "$lt_cv_dlopen_self_static" >&6; }
ce2cded5
L
11206 fi
11207
11208 CPPFLAGS="$save_CPPFLAGS"
11209 LDFLAGS="$save_LDFLAGS"
11210 LIBS="$save_LIBS"
11211 ;;
11212 esac
11213
11214 case $lt_cv_dlopen_self in
11215 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11216 *) enable_dlopen_self=unknown ;;
11217 esac
11218
11219 case $lt_cv_dlopen_self_static in
11220 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11221 *) enable_dlopen_self_static=unknown ;;
11222 esac
d7040cdb
SE
11223fi
11224
ce2cded5
L
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241striplib=
11242old_striplib=
81ecdfbb
RW
11243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11244$as_echo_n "checking whether stripping libraries is possible... " >&6; }
ce2cded5
L
11245if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11246 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11247 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11249$as_echo "yes" >&6; }
0ab6f085 11250else
ce2cded5
L
11251# FIXME - insert some real tests, host_os isn't really good enough
11252 case $host_os in
11253 darwin*)
11254 if test -n "$STRIP" ; then
11255 striplib="$STRIP -x"
11256 old_striplib="$STRIP -S"
81ecdfbb
RW
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11258$as_echo "yes" >&6; }
ce2cded5 11259 else
81ecdfbb
RW
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11261$as_echo "no" >&6; }
ce2cded5
L
11262 fi
11263 ;;
11264 *)
81ecdfbb
RW
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11266$as_echo "no" >&6; }
ce2cded5
L
11267 ;;
11268 esac
11269fi
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282 # Report which library types will actually be built
81ecdfbb
RW
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11284$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11286$as_echo "$can_build_shared" >&6; }
ce2cded5 11287
81ecdfbb
RW
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11289$as_echo_n "checking whether to build shared libraries... " >&6; }
ce2cded5
L
11290 test "$can_build_shared" = "no" && enable_shared=no
11291
11292 # On AIX, shared libraries and static libraries use the same namespace, and
11293 # are all built from PIC.
11294 case $host_os in
11295 aix3*)
11296 test "$enable_shared" = yes && enable_static=no
11297 if test -n "$RANLIB"; then
11298 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11299 postinstall_cmds='$RANLIB $lib'
11300 fi
11301 ;;
11302
50e7d84b 11303 aix[4-9]*)
ce2cded5
L
11304 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11305 test "$enable_shared" = yes && enable_static=no
11306 fi
11307 ;;
11308 esac
81ecdfbb
RW
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11310$as_echo "$enable_shared" >&6; }
ce2cded5 11311
81ecdfbb
RW
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11313$as_echo_n "checking whether to build static libraries... " >&6; }
ce2cded5
L
11314 # Make sure either enable_shared or enable_static is yes.
11315 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11317$as_echo "$enable_static" >&6; }
ce2cded5
L
11318
11319
11320
d7040cdb 11321
0ab6f085 11322fi
d7040cdb
SE
11323ac_ext=c
11324ac_cpp='$CPP $CPPFLAGS'
11325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11327ac_compiler_gnu=$ac_cv_c_compiler_gnu
11328
ce2cded5 11329CC="$lt_save_CC"
0ab6f085 11330
0ab6f085
AM
11331
11332
d7040cdb
SE
11333
11334
d7040cdb 11335
d7040cdb 11336
d7040cdb 11337
ce2cded5
L
11338
11339
11340
11341
11342
81ecdfbb 11343 ac_config_commands="$ac_config_commands libtool"
ce2cded5
L
11344
11345
11346
11347
11348# Only expand once:
11349
d7040cdb
SE
11350
11351
d7040cdb 11352for ac_func in setmode
81ecdfbb
RW
11353do :
11354 ac_fn_c_check_func "$LINENO" "setmode" "ac_cv_func_setmode"
11355if test "x$ac_cv_func_setmode" = x""yes; then :
d7040cdb 11356 cat >>confdefs.h <<_ACEOF
81ecdfbb 11357#define HAVE_SETMODE 1
d7040cdb
SE
11358_ACEOF
11359
11360fi
11361done
11362
11363
789169e5 11364ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi nl"
d7040cdb
SE
11365# If we haven't got the data from the intl directory,
11366# assume NLS is disabled.
11367USE_NLS=no
11368LIBINTL=
11369LIBINTL_DEP=
11370INCINTL=
11371XGETTEXT=
11372GMSGFMT=
11373POSUB=
11374
11375if test -f ../intl/config.intl; then
11376 . ../intl/config.intl
11377fi
81ecdfbb
RW
11378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11379$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 11380if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11382$as_echo "no" >&6; }
d7040cdb 11383else
81ecdfbb
RW
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11385$as_echo "yes" >&6; }
d7040cdb 11386
81ecdfbb 11387$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
11388
11389
81ecdfbb
RW
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11391$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
11392 # Look for .po and .gmo files in the source directory.
11393 CATALOGS=
11394 XLINGUAS=
11395 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11396 # If there aren't any .gmo files the shell will give us the
11397 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11398 # weeded out.
11399 case "$cat" in *\**)
11400 continue;;
11401 esac
11402 # The quadruple backslash is collapsed to a double backslash
11403 # by the backticks, then collapsed again by the double quotes,
11404 # leaving us with one backslash in the sed expression (right
11405 # before the dot that mustn't act as a wildcard).
11406 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11407 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11408 # The user is allowed to set LINGUAS to a list of languages to
11409 # install catalogs for. If it's empty that means "all of them."
11410 if test "x$LINGUAS" = x; then
11411 CATALOGS="$CATALOGS $cat"
11412 XLINGUAS="$XLINGUAS $lang"
11413 else
11414 case "$LINGUAS" in *$lang*)
11415 CATALOGS="$CATALOGS $cat"
11416 XLINGUAS="$XLINGUAS $lang"
11417 ;;
11418 esac
11419 fi
11420 done
11421 LINGUAS="$XLINGUAS"
81ecdfbb
RW
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11423$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
11424
11425
11426 DATADIRNAME=share
11427
11428 INSTOBJEXT=.mo
11429
11430 GENCAT=gencat
11431
11432 CATOBJEXT=.gmo
11433
11434fi
11435
11436 MKINSTALLDIRS=
11437 if test -n "$ac_aux_dir"; then
11438 case "$ac_aux_dir" in
11439 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11440 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11441 esac
11442 fi
11443 if test -z "$MKINSTALLDIRS"; then
11444 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11445 fi
11446
11447
11448
81ecdfbb
RW
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11450$as_echo_n "checking whether NLS is requested... " >&6; }
11451 # Check whether --enable-nls was given.
11452if test "${enable_nls+set}" = set; then :
11453 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
11454else
11455 USE_NLS=yes
81ecdfbb
RW
11456fi
11457
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11459$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
11460
11461
11462
11463
11464
11465
11466# Prepare PATH_SEPARATOR.
11467# The user is always right.
11468if test "${PATH_SEPARATOR+set}" != set; then
11469 echo "#! /bin/sh" >conf$$.sh
11470 echo "exit 0" >>conf$$.sh
11471 chmod +x conf$$.sh
11472 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11473 PATH_SEPARATOR=';'
11474 else
11475 PATH_SEPARATOR=:
11476 fi
11477 rm -f conf$$.sh
11478fi
11479
11480# Find out how to test for executable files. Don't use a zero-byte file,
11481# as systems may use methods other than mode bits to determine executability.
11482cat >conf$$.file <<_ASEOF
11483#! /bin/sh
11484exit 0
11485_ASEOF
11486chmod +x conf$$.file
11487if test -x conf$$.file >/dev/null 2>&1; then
11488 ac_executable_p="test -x"
11489else
11490 ac_executable_p="test -f"
11491fi
11492rm -f conf$$.file
11493
11494# Extract the first word of "msgfmt", so it can be a program name with args.
11495set dummy msgfmt; ac_word=$2
81ecdfbb
RW
11496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11497$as_echo_n "checking for $ac_word... " >&6; }
11498if test "${ac_cv_path_MSGFMT+set}" = set; then :
11499 $as_echo_n "(cached) " >&6
d7040cdb
SE
11500else
11501 case "$MSGFMT" in
11502 [\\/]* | ?:[\\/]*)
11503 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11504 ;;
11505 *)
11506 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11507 for ac_dir in $PATH; do
11508 IFS="$ac_save_IFS"
11509 test -z "$ac_dir" && ac_dir=.
11510 for ac_exec_ext in '' $ac_executable_extensions; do
11511 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11512 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11513 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11514 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11515 break 2
11516 fi
11517 fi
11518 done
11519 done
11520 IFS="$ac_save_IFS"
11521 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11522 ;;
11523esac
11524fi
11525MSGFMT="$ac_cv_path_MSGFMT"
11526if test "$MSGFMT" != ":"; then
81ecdfbb
RW
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11528$as_echo "$MSGFMT" >&6; }
d7040cdb 11529else
81ecdfbb
RW
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11531$as_echo "no" >&6; }
d7040cdb
SE
11532fi
11533
11534 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11535set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
11536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11537$as_echo_n "checking for $ac_word... " >&6; }
11538if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11539 $as_echo_n "(cached) " >&6
d7040cdb
SE
11540else
11541 case $GMSGFMT in
11542 [\\/]* | ?:[\\/]*)
11543 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11544 ;;
11545 *)
11546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11547for as_dir in $PATH
11548do
11549 IFS=$as_save_IFS
11550 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11551 for ac_exec_ext in '' $ac_executable_extensions; do
11552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 11553 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
11555 break 2
11556 fi
11557done
81ecdfbb
RW
11558 done
11559IFS=$as_save_IFS
d7040cdb
SE
11560
11561 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11562 ;;
11563esac
11564fi
11565GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 11566if test -n "$GMSGFMT"; then
81ecdfbb
RW
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11568$as_echo "$GMSGFMT" >&6; }
d7040cdb 11569else
81ecdfbb
RW
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11571$as_echo "no" >&6; }
d7040cdb
SE
11572fi
11573
11574
11575
81ecdfbb 11576
d7040cdb
SE
11577# Prepare PATH_SEPARATOR.
11578# The user is always right.
11579if test "${PATH_SEPARATOR+set}" != set; then
11580 echo "#! /bin/sh" >conf$$.sh
11581 echo "exit 0" >>conf$$.sh
11582 chmod +x conf$$.sh
11583 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11584 PATH_SEPARATOR=';'
11585 else
11586 PATH_SEPARATOR=:
11587 fi
11588 rm -f conf$$.sh
11589fi
11590
11591# Find out how to test for executable files. Don't use a zero-byte file,
11592# as systems may use methods other than mode bits to determine executability.
11593cat >conf$$.file <<_ASEOF
11594#! /bin/sh
11595exit 0
11596_ASEOF
11597chmod +x conf$$.file
11598if test -x conf$$.file >/dev/null 2>&1; then
11599 ac_executable_p="test -x"
11600else
11601 ac_executable_p="test -f"
11602fi
11603rm -f conf$$.file
11604
11605# Extract the first word of "xgettext", so it can be a program name with args.
11606set dummy xgettext; ac_word=$2
81ecdfbb
RW
11607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11608$as_echo_n "checking for $ac_word... " >&6; }
11609if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11610 $as_echo_n "(cached) " >&6
d7040cdb
SE
11611else
11612 case "$XGETTEXT" in
11613 [\\/]* | ?:[\\/]*)
11614 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11615 ;;
11616 *)
11617 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11618 for ac_dir in $PATH; do
11619 IFS="$ac_save_IFS"
11620 test -z "$ac_dir" && ac_dir=.
11621 for ac_exec_ext in '' $ac_executable_extensions; do
11622 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11623 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11624 (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
11625 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11626 break 2
11627 fi
11628 fi
11629 done
11630 done
11631 IFS="$ac_save_IFS"
11632 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11633 ;;
11634esac
11635fi
11636XGETTEXT="$ac_cv_path_XGETTEXT"
11637if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11639$as_echo "$XGETTEXT" >&6; }
d7040cdb 11640else
81ecdfbb
RW
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642$as_echo "no" >&6; }
d7040cdb
SE
11643fi
11644
11645 rm -f messages.po
11646
11647
11648# Prepare PATH_SEPARATOR.
11649# The user is always right.
11650if test "${PATH_SEPARATOR+set}" != set; then
11651 echo "#! /bin/sh" >conf$$.sh
11652 echo "exit 0" >>conf$$.sh
11653 chmod +x conf$$.sh
11654 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11655 PATH_SEPARATOR=';'
11656 else
11657 PATH_SEPARATOR=:
11658 fi
11659 rm -f conf$$.sh
11660fi
11661
11662# Find out how to test for executable files. Don't use a zero-byte file,
11663# as systems may use methods other than mode bits to determine executability.
11664cat >conf$$.file <<_ASEOF
11665#! /bin/sh
11666exit 0
11667_ASEOF
11668chmod +x conf$$.file
11669if test -x conf$$.file >/dev/null 2>&1; then
11670 ac_executable_p="test -x"
11671else
11672 ac_executable_p="test -f"
11673fi
11674rm -f conf$$.file
11675
11676# Extract the first word of "msgmerge", so it can be a program name with args.
11677set dummy msgmerge; ac_word=$2
81ecdfbb
RW
11678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11679$as_echo_n "checking for $ac_word... " >&6; }
11680if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11681 $as_echo_n "(cached) " >&6
d7040cdb
SE
11682else
11683 case "$MSGMERGE" in
11684 [\\/]* | ?:[\\/]*)
11685 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11686 ;;
11687 *)
11688 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11689 for ac_dir in $PATH; do
11690 IFS="$ac_save_IFS"
11691 test -z "$ac_dir" && ac_dir=.
11692 for ac_exec_ext in '' $ac_executable_extensions; do
11693 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11694 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11695 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11696 break 2
11697 fi
11698 fi
11699 done
11700 done
11701 IFS="$ac_save_IFS"
11702 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11703 ;;
11704esac
11705fi
11706MSGMERGE="$ac_cv_path_MSGMERGE"
11707if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11709$as_echo "$MSGMERGE" >&6; }
d7040cdb 11710else
81ecdfbb
RW
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712$as_echo "no" >&6; }
d7040cdb
SE
11713fi
11714
11715
11716 if test "$GMSGFMT" != ":"; then
11717 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11718 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11719 : ;
11720 else
11721 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11723$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
11724 GMSGFMT=":"
11725 fi
11726 fi
11727
11728 if test "$XGETTEXT" != ":"; then
11729 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11730 (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
11731 : ;
11732 else
81ecdfbb
RW
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11734$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
11735 XGETTEXT=":"
11736 fi
11737 rm -f messages.po
11738 fi
11739
81ecdfbb
RW
11740 ac_config_commands="$ac_config_commands default-1"
11741
d7040cdb
SE
11742
11743
11744
81ecdfbb
RW
11745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11746$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11747 # Check whether --enable-maintainer-mode was given.
11748if test "${enable_maintainer_mode+set}" = set; then :
11749 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 11750else
d7040cdb 11751 USE_MAINTAINER_MODE=no
81ecdfbb 11752fi
d7040cdb 11753
81ecdfbb
RW
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11755$as_echo "$USE_MAINTAINER_MODE" >&6; }
11756 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
11757 MAINTAINER_MODE_TRUE=
11758 MAINTAINER_MODE_FALSE='#'
11759else
11760 MAINTAINER_MODE_TRUE='#'
11761 MAINTAINER_MODE_FALSE=
20e95c23 11762fi
6bf9431b 11763
d7040cdb
SE
11764 MAINT=$MAINTAINER_MODE_TRUE
11765
11766
81ecdfbb 11767 if false; then
d7040cdb
SE
11768 GENINSRC_NEVER_TRUE=
11769 GENINSRC_NEVER_FALSE='#'
11770else
11771 GENINSRC_NEVER_TRUE='#'
11772 GENINSRC_NEVER_FALSE=
20e95c23 11773fi
6bf9431b
BE
11774
11775
11776
6bf9431b 11777for ac_header in sys/gmon_out.h
81ecdfbb
RW
11778do :
11779 ac_fn_c_check_header_mongrel "$LINENO" "sys/gmon_out.h" "ac_cv_header_sys_gmon_out_h" "$ac_includes_default"
11780if test "x$ac_cv_header_sys_gmon_out_h" = x""yes; then :
6bf9431b 11781 cat >>confdefs.h <<_ACEOF
81ecdfbb 11782#define HAVE_SYS_GMON_OUT_H 1
6bf9431b
BE
11783_ACEOF
11784
11785fi
11786
11787done
11788
11789
81ecdfbb
RW
11790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
11791$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
11792if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then :
11793 $as_echo_n "(cached) " >&6
34875e64 11794else
81ecdfbb 11795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34875e64
NC
11796/* end confdefs.h. */
11797#include <unistd.h>
11798int
11799main ()
11800{
11801extern int getopt (int, char *const*, const char *);
11802 ;
11803 return 0;
11804}
11805_ACEOF
81ecdfbb 11806if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
11807 gprof_cv_decl_getopt_unistd_h=yes
11808else
81ecdfbb 11809 gprof_cv_decl_getopt_unistd_h=no
34875e64 11810fi
81ecdfbb 11811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
11812fi
11813
81ecdfbb
RW
11814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gprof_cv_decl_getopt_unistd_h" >&5
11815$as_echo "$gprof_cv_decl_getopt_unistd_h" >&6; }
34875e64
NC
11816if test $gprof_cv_decl_getopt_unistd_h = yes; then
11817
81ecdfbb 11818$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
11819
11820fi
11821
1b9750d6 11822# Some systems have fabs only in -lm, not in -lc.
81ecdfbb
RW
11823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
11824$as_echo_n "checking for library containing fabs... " >&6; }
11825if test "${ac_cv_search_fabs+set}" = set; then :
11826 $as_echo_n "(cached) " >&6
1b9750d6
NC
11827else
11828 ac_func_search_save_LIBS=$LIBS
81ecdfbb 11829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1b9750d6
NC
11830/* end confdefs.h. */
11831
81ecdfbb
RW
11832/* Override any GCC internal prototype to avoid an error.
11833 Use char because int might match the return type of a GCC
11834 builtin and then its argument prototype would still apply. */
1b9750d6
NC
11835#ifdef __cplusplus
11836extern "C"
11837#endif
11838char fabs ();
11839int
11840main ()
11841{
81ecdfbb 11842return fabs ();
1b9750d6
NC
11843 ;
11844 return 0;
11845}
11846_ACEOF
81ecdfbb
RW
11847for ac_lib in '' m; do
11848 if test -z "$ac_lib"; then
11849 ac_res="none required"
11850 else
11851 ac_res=-l$ac_lib
0ab6f085 11852 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
11853 fi
11854 if ac_fn_c_try_link "$LINENO"; then :
11855 ac_cv_search_fabs=$ac_res
11856fi
11857rm -f core conftest.err conftest.$ac_objext \
11858 conftest$ac_exeext
11859 if test "${ac_cv_search_fabs+set}" = set; then :
11860 break
11861fi
11862done
11863if test "${ac_cv_search_fabs+set}" = set; then :
1b9750d6 11864
1b9750d6 11865else
81ecdfbb 11866 ac_cv_search_fabs=no
1b9750d6 11867fi
81ecdfbb 11868rm conftest.$ac_ext
1b9750d6
NC
11869LIBS=$ac_func_search_save_LIBS
11870fi
81ecdfbb
RW
11871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
11872$as_echo "$ac_cv_search_fabs" >&6; }
11873ac_res=$ac_cv_search_fabs
11874if test "$ac_res" != no; then :
11875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1b9750d6
NC
11876
11877fi
11878
11879
9e9b66a9 11880
a541e3ce 11881GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 11882
81ecdfbb
RW
11883# Check whether --enable-werror was given.
11884if test "${enable_werror+set}" = set; then :
11885 enableval=$enable_werror; case "${enableval}" in
1ad12f97
NC
11886 yes | y) ERROR_ON_WARNING="yes" ;;
11887 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 11888 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
1ad12f97 11889 esac
81ecdfbb
RW
11890fi
11891
1ad12f97 11892
32b1cf22
L
11893# Enable -Wno-format by default when using gcc on mingw
11894case "${host}" in
11895 *-*-mingw32*)
11896 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11897 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11898 fi
11899 ;;
11900 *) ;;
11901esac
11902
9e9b66a9
AM
11903# Enable -Werror by default when using gcc
11904if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11905 ERROR_ON_WARNING=yes
11906fi
11907
11908NO_WERROR=
11909if test "${ERROR_ON_WARNING}" = yes ; then
a541e3ce 11910 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9e9b66a9 11911 NO_WERROR="-Wno-error"
1ad12f97
NC
11912fi
11913
a541e3ce
SE
11914if test "${GCC}" = yes ; then
11915 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11916fi
11917
81ecdfbb
RW
11918# Check whether --enable-build-warnings was given.
11919if test "${enable_build_warnings+set}" = set; then :
11920 enableval=$enable_build_warnings; case "${enableval}" in
a541e3ce
SE
11921 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11922 no) if test "${GCC}" = yes ; then
11923 WARN_CFLAGS="-w"
11924 fi;;
6bf9431b 11925 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 11926 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
6bf9431b 11927 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 11928 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9e9b66a9 11929 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6bf9431b 11930esac
81ecdfbb
RW
11931fi
11932
9e9b66a9
AM
11933
11934if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11935 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
6bf9431b
BE
11936fi
11937
11938
9e9b66a9
AM
11939
11940
11941
108a6f8e
CD
11942
11943
11944
11945
31dd3154 11946
81ecdfbb 11947ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
6bf9431b 11948
6bf9431b
BE
11949cat >confcache <<\_ACEOF
11950# This file is a shell script that caches the results of configure
11951# tests run on this system so they can be shared between configure
11952# scripts and configure runs, see configure's option --config-cache.
11953# It is not useful on other systems. If it contains results you don't
11954# want to keep, you may remove or edit it.
11955#
11956# config.status only pays attention to the cache file if you give it
11957# the --recheck option to rerun configure.
11958#
11959# `ac_cv_env_foo' variables (set or unset) will be overridden when
11960# loading this file, other *unset* `ac_cv_foo' will be assigned the
11961# following values.
11962
11963_ACEOF
11964
11965# The following way of writing the cache mishandles newlines in values,
11966# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 11967# So, we kill variables containing newlines.
6bf9431b
BE
11968# Ultrix sh set writes to stderr and can't be redirected directly,
11969# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
11970(
11971 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11972 eval ac_val=\$$ac_var
11973 case $ac_val in #(
11974 *${as_nl}*)
11975 case $ac_var in #(
11976 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11977$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11978 esac
11979 case $ac_var in #(
11980 _ | IFS | as_nl) ;; #(
11981 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11982 *) { eval $ac_var=; unset $ac_var;} ;;
11983 esac ;;
11984 esac
11985 done
11986
6bf9431b 11987 (set) 2>&1 |
81ecdfbb
RW
11988 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11989 *${as_nl}ac_space=\ *)
11990 # `set' does not quote correctly, so add quotes: double-quote
11991 # substitution turns \\\\ into \\, and sed turns \\ into \.
6bf9431b
BE
11992 sed -n \
11993 "s/'/'\\\\''/g;
11994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 11995 ;; #(
6bf9431b
BE
11996 *)
11997 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 11998 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6bf9431b 11999 ;;
81ecdfbb
RW
12000 esac |
12001 sort
12002) |
6bf9431b 12003 sed '
81ecdfbb 12004 /^ac_cv_env_/b end
6bf9431b 12005 t clear
81ecdfbb 12006 :clear
6bf9431b
BE
12007 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12008 t end
81ecdfbb
RW
12009 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12010 :end' >>confcache
12011if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12012 if test -w "$cache_file"; then
12013 test "x$cache_file" != "x/dev/null" &&
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12015$as_echo "$as_me: updating cache $cache_file" >&6;}
6bf9431b
BE
12016 cat confcache >$cache_file
12017 else
81ecdfbb
RW
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12019$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6bf9431b
BE
12020 fi
12021fi
12022rm -f confcache
12023
12024test "x$prefix" = xNONE && prefix=$ac_default_prefix
12025# Let make expand exec_prefix.
12026test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12027
6bf9431b
BE
12028DEFS=-DHAVE_CONFIG_H
12029
12030ac_libobjs=
12031ac_ltlibobjs=
12032for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12033 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
12034 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12035 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12036 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12037 # will be set to the directory where LIBOBJS objects are built.
12038 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12039 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6bf9431b
BE
12040done
12041LIBOBJS=$ac_libobjs
12042
12043LTLIBOBJS=$ac_ltlibobjs
12044
12045
12046if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
12047 as_fn_error "conditional \"AMDEP\" was never defined.
12048Usually this means the macro was only invoked conditionally." "$LINENO" 5
6bf9431b
BE
12049fi
12050if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
12051 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12052Usually this means the macro was only invoked conditionally." "$LINENO" 5
12053fi
12054 if test -n "$EXEEXT"; then
12055 am__EXEEXT_TRUE=
12056 am__EXEEXT_FALSE='#'
12057else
12058 am__EXEEXT_TRUE='#'
12059 am__EXEEXT_FALSE=
6bf9431b 12060fi
81ecdfbb 12061
6bf9431b 12062if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
12063 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12064Usually this means the macro was only invoked conditionally." "$LINENO" 5
6bf9431b 12065fi
d5fbea21 12066if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
12067 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
12068Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 12069fi
6bf9431b
BE
12070
12071: ${CONFIG_STATUS=./config.status}
81ecdfbb 12072ac_write_fail=0
6bf9431b
BE
12073ac_clean_files_save=$ac_clean_files
12074ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
12075{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12076$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12077as_write_fail=0
12078cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6bf9431b
BE
12079#! $SHELL
12080# Generated by $as_me.
12081# Run this file to recreate the current configuration.
12082# Compiler output produced by configure, useful for debugging
12083# configure, is in config.log if it exists.
12084
12085debug=false
12086ac_cs_recheck=false
12087ac_cs_silent=false
6bf9431b 12088
81ecdfbb
RW
12089SHELL=\${CONFIG_SHELL-$SHELL}
12090export SHELL
12091_ASEOF
12092cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12093## -------------------- ##
12094## M4sh Initialization. ##
12095## -------------------- ##
6bf9431b 12096
81ecdfbb
RW
12097# Be more Bourne compatible
12098DUALCASE=1; export DUALCASE # for MKS sh
12099if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6bf9431b
BE
12100 emulate sh
12101 NULLCMD=:
81ecdfbb 12102 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6bf9431b
BE
12103 # is contrary to our usage. Disable this feature.
12104 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
12105 setopt NO_GLOB_SUBST
12106else
12107 case `(set -o) 2>/dev/null` in #(
12108 *posix*) :
12109 set -o posix ;; #(
12110 *) :
12111 ;;
12112esac
6bf9431b 12113fi
6bf9431b 12114
81ecdfbb
RW
12115
12116as_nl='
12117'
12118export as_nl
12119# Printing a long string crashes Solaris 7 /usr/bin/printf.
12120as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12121as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12122as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12123# Prefer a ksh shell builtin over an external printf program on Solaris,
12124# but without wasting forks for bash or zsh.
12125if test -z "$BASH_VERSION$ZSH_VERSION" \
12126 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12127 as_echo='print -r --'
12128 as_echo_n='print -rn --'
12129elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12130 as_echo='printf %s\n'
12131 as_echo_n='printf %s'
12132else
12133 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12134 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12135 as_echo_n='/usr/ucb/echo -n'
12136 else
12137 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12138 as_echo_n_body='eval
12139 arg=$1;
12140 case $arg in #(
12141 *"$as_nl"*)
12142 expr "X$arg" : "X\\(.*\\)$as_nl";
12143 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12144 esac;
12145 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12146 '
12147 export as_echo_n_body
12148 as_echo_n='sh -c $as_echo_n_body as_echo'
12149 fi
12150 export as_echo_body
12151 as_echo='sh -c $as_echo_body as_echo'
12152fi
12153
12154# The user is always right.
12155if test "${PATH_SEPARATOR+set}" != set; then
12156 PATH_SEPARATOR=:
12157 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12158 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12159 PATH_SEPARATOR=';'
12160 }
6bf9431b
BE
12161fi
12162
12163
81ecdfbb
RW
12164# IFS
12165# We need space, tab and new line, in precisely that order. Quoting is
12166# there to prevent editors from complaining about space-tab.
12167# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12168# splitting by setting IFS to empty value.)
12169IFS=" "" $as_nl"
12170
12171# Find who we are. Look in the path if we contain no directory separator.
12172case $0 in #((
12173 *[\\/]* ) as_myself=$0 ;;
12174 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12175for as_dir in $PATH
12176do
12177 IFS=$as_save_IFS
12178 test -z "$as_dir" && as_dir=.
12179 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12180 done
12181IFS=$as_save_IFS
12182
12183 ;;
12184esac
12185# We did not find ourselves, most probably we were run as `sh COMMAND'
12186# in which case we are not to be found in the path.
12187if test "x$as_myself" = x; then
12188 as_myself=$0
12189fi
12190if test ! -f "$as_myself"; then
12191 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12192 exit 1
12193fi
12194
12195# Unset variables that we do not need and which cause bugs (e.g. in
12196# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12197# suppresses any "Segmentation fault" message there. '((' could
12198# trigger a bug in pdksh 5.2.14.
12199for as_var in BASH_ENV ENV MAIL MAILPATH
12200do eval test x\${$as_var+set} = xset \
12201 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12202done
6bf9431b
BE
12203PS1='$ '
12204PS2='> '
12205PS4='+ '
12206
12207# NLS nuisances.
81ecdfbb
RW
12208LC_ALL=C
12209export LC_ALL
12210LANGUAGE=C
12211export LANGUAGE
12212
12213# CDPATH.
12214(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12215
12216
12217# as_fn_error ERROR [LINENO LOG_FD]
12218# ---------------------------------
12219# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12220# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12221# script with status $?, using 1 if that was 0.
12222as_fn_error ()
12223{
12224 as_status=$?; test $as_status -eq 0 && as_status=1
12225 if test "$3"; then
12226 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12227 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6bf9431b 12228 fi
81ecdfbb
RW
12229 $as_echo "$as_me: error: $1" >&2
12230 as_fn_exit $as_status
12231} # as_fn_error
12232
12233
12234# as_fn_set_status STATUS
12235# -----------------------
12236# Set $? to STATUS, without forking.
12237as_fn_set_status ()
12238{
12239 return $1
12240} # as_fn_set_status
6bf9431b 12241
81ecdfbb
RW
12242# as_fn_exit STATUS
12243# -----------------
12244# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12245as_fn_exit ()
12246{
12247 set +e
12248 as_fn_set_status $1
12249 exit $1
12250} # as_fn_exit
12251
12252# as_fn_unset VAR
12253# ---------------
12254# Portably unset VAR.
12255as_fn_unset ()
12256{
12257 { eval $1=; unset $1;}
12258}
12259as_unset=as_fn_unset
12260# as_fn_append VAR VALUE
12261# ----------------------
12262# Append the text in VALUE to the end of the definition contained in VAR. Take
12263# advantage of any shell optimizations that allow amortized linear growth over
12264# repeated appends, instead of the typical quadratic growth present in naive
12265# implementations.
12266if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12267 eval 'as_fn_append ()
12268 {
12269 eval $1+=\$2
12270 }'
12271else
12272 as_fn_append ()
12273 {
12274 eval $1=\$$1\$2
12275 }
12276fi # as_fn_append
12277
12278# as_fn_arith ARG...
12279# ------------------
12280# Perform arithmetic evaluation on the ARGs, and store the result in the
12281# global $as_val. Take advantage of shells that can avoid forks. The arguments
12282# must be portable across $(()) and expr.
12283if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12284 eval 'as_fn_arith ()
12285 {
12286 as_val=$(( $* ))
12287 }'
12288else
12289 as_fn_arith ()
12290 {
12291 as_val=`expr "$@" || test $? -eq 1`
12292 }
12293fi # as_fn_arith
12294
12295
12296if expr a : '\(a\)' >/dev/null 2>&1 &&
12297 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6bf9431b
BE
12298 as_expr=expr
12299else
12300 as_expr=false
12301fi
12302
81ecdfbb 12303if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6bf9431b
BE
12304 as_basename=basename
12305else
12306 as_basename=false
252b5132 12307fi
252b5132 12308
81ecdfbb
RW
12309if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12310 as_dirname=dirname
12311else
12312 as_dirname=false
12313fi
252b5132 12314
81ecdfbb 12315as_me=`$as_basename -- "$0" ||
6bf9431b
BE
12316$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12317 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
12318 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12319$as_echo X/"$0" |
12320 sed '/^.*\/\([^/][^/]*\)\/*$/{
12321 s//\1/
12322 q
12323 }
12324 /^X\/\(\/\/\)$/{
12325 s//\1/
12326 q
12327 }
12328 /^X\/\(\/\).*/{
12329 s//\1/
12330 q
12331 }
12332 s/.*/./; q'`
0ab6f085 12333
0ab6f085
AM
12334# Avoid depending upon Character Ranges.
12335as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12336as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12337as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12338as_cr_digits='0123456789'
12339as_cr_alnum=$as_cr_Letters$as_cr_digits
12340
81ecdfbb
RW
12341ECHO_C= ECHO_N= ECHO_T=
12342case `echo -n x` in #(((((
12343-n*)
12344 case `echo 'xy\c'` in
12345 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12346 xy) ECHO_C='\c';;
12347 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12348 ECHO_T=' ';;
12349 esac;;
12350*)
12351 ECHO_N='-n';;
6bf9431b
BE
12352esac
12353
81ecdfbb
RW
12354rm -f conf$$ conf$$.exe conf$$.file
12355if test -d conf$$.dir; then
12356 rm -f conf$$.dir/conf$$.file
0eee5820 12357else
81ecdfbb
RW
12358 rm -f conf$$.dir
12359 mkdir conf$$.dir 2>/dev/null
0eee5820 12360fi
81ecdfbb
RW
12361if (echo >conf$$.file) 2>/dev/null; then
12362 if ln -s conf$$.file conf$$ 2>/dev/null; then
0ab6f085 12363 as_ln_s='ln -s'
81ecdfbb
RW
12364 # ... but there are two gotchas:
12365 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12366 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12367 # In both cases, we have to default to `cp -p'.
12368 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12369 as_ln_s='cp -p'
12370 elif ln conf$$.file conf$$ 2>/dev/null; then
12371 as_ln_s=ln
12372 else
12373 as_ln_s='cp -p'
0ab6f085 12374 fi
6bf9431b
BE
12375else
12376 as_ln_s='cp -p'
0eee5820 12377fi
81ecdfbb
RW
12378rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12379rmdir conf$$.dir 2>/dev/null
12380
12381
12382# as_fn_mkdir_p
12383# -------------
12384# Create "$as_dir" as a directory, including parents if necessary.
12385as_fn_mkdir_p ()
12386{
12387
12388 case $as_dir in #(
12389 -*) as_dir=./$as_dir;;
12390 esac
12391 test -d "$as_dir" || eval $as_mkdir_p || {
12392 as_dirs=
12393 while :; do
12394 case $as_dir in #(
12395 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12396 *) as_qdir=$as_dir;;
12397 esac
12398 as_dirs="'$as_qdir' $as_dirs"
12399 as_dir=`$as_dirname -- "$as_dir" ||
12400$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12401 X"$as_dir" : 'X\(//\)[^/]' \| \
12402 X"$as_dir" : 'X\(//\)$' \| \
12403 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12404$as_echo X"$as_dir" |
12405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12406 s//\1/
12407 q
12408 }
12409 /^X\(\/\/\)[^/].*/{
12410 s//\1/
12411 q
12412 }
12413 /^X\(\/\/\)$/{
12414 s//\1/
12415 q
12416 }
12417 /^X\(\/\).*/{
12418 s//\1/
12419 q
12420 }
12421 s/.*/./; q'`
12422 test -d "$as_dir" && break
12423 done
12424 test -z "$as_dirs" || eval "mkdir $as_dirs"
12425 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6bf9431b 12426
81ecdfbb
RW
12427
12428} # as_fn_mkdir_p
6bf9431b 12429if mkdir -p . 2>/dev/null; then
81ecdfbb 12430 as_mkdir_p='mkdir -p "$as_dir"'
0ab6f085
AM
12431else
12432 test -d ./-p && rmdir ./-p
12433 as_mkdir_p=false
1b9750d6 12434fi
0ab6f085 12435
81ecdfbb
RW
12436if test -x / >/dev/null 2>&1; then
12437 as_test_x='test -x'
12438else
12439 if ls -dL / >/dev/null 2>&1; then
12440 as_ls_L_option=L
12441 else
12442 as_ls_L_option=
12443 fi
12444 as_test_x='
12445 eval sh -c '\''
12446 if test -d "$1"; then
12447 test -d "$1/.";
12448 else
12449 case $1 in #(
12450 -*)set "./$1";;
12451 esac;
12452 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12453 ???[sx]*):;;*)false;;esac;fi
12454 '\'' sh
12455 '
12456fi
12457as_executable_p=$as_test_x
0eee5820 12458
6bf9431b
BE
12459# Sed expression to map a string onto a valid CPP name.
12460as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12461
12462# Sed expression to map a string onto a valid variable name.
12463as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12464
1b9750d6 12465
6bf9431b 12466exec 6>&1
81ecdfbb
RW
12467## ----------------------------------- ##
12468## Main body of $CONFIG_STATUS script. ##
12469## ----------------------------------- ##
12470_ASEOF
12471test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6bf9431b 12472
81ecdfbb
RW
12473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12474# Save the log message, to keep $0 and so on meaningful, and to
6bf9431b 12475# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
12476# values after options handling.
12477ac_log="
6bf9431b 12478This file was extended by $as_me, which was
81ecdfbb 12479generated by GNU Autoconf 2.64. Invocation command line was
6bf9431b
BE
12480
12481 CONFIG_FILES = $CONFIG_FILES
12482 CONFIG_HEADERS = $CONFIG_HEADERS
12483 CONFIG_LINKS = $CONFIG_LINKS
12484 CONFIG_COMMANDS = $CONFIG_COMMANDS
12485 $ $0 $@
12486
81ecdfbb
RW
12487on `(hostname || uname -n) 2>/dev/null | sed 1q`
12488"
12489
6bf9431b
BE
12490_ACEOF
12491
81ecdfbb
RW
12492case $ac_config_files in *"
12493"*) set x $ac_config_files; shift; ac_config_files=$*;;
12494esac
a2d91340 12495
81ecdfbb
RW
12496case $ac_config_headers in *"
12497"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12498esac
0ab6f085 12499
0ab6f085 12500
81ecdfbb
RW
12501cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12502# Files that config.status was made for.
12503config_files="$ac_config_files"
12504config_headers="$ac_config_headers"
12505config_commands="$ac_config_commands"
a2d91340 12506
81ecdfbb 12507_ACEOF
0ab6f085 12508
81ecdfbb 12509cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6bf9431b 12510ac_cs_usage="\
81ecdfbb
RW
12511\`$as_me' instantiates files and other configuration actions
12512from templates according to the current configuration. Unless the files
12513and actions are specified as TAGs, all are instantiated by default.
6bf9431b 12514
81ecdfbb 12515Usage: $0 [OPTION]... [TAG]...
6bf9431b
BE
12516
12517 -h, --help print this help, then exit
81ecdfbb
RW
12518 -V, --version print version number and configuration settings, then exit
12519 -q, --quiet, --silent
12520 do not print progress messages
6bf9431b
BE
12521 -d, --debug don't remove temporary files
12522 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
12523 --file=FILE[:TEMPLATE]
12524 instantiate the configuration file FILE
12525 --header=FILE[:TEMPLATE]
12526 instantiate the configuration header FILE
6bf9431b
BE
12527
12528Configuration files:
12529$config_files
12530
12531Configuration headers:
12532$config_headers
12533
12534Configuration commands:
12535$config_commands
12536
81ecdfbb 12537Report bugs to the package provider."
0ab6f085 12538
81ecdfbb
RW
12539_ACEOF
12540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6bf9431b
BE
12541ac_cs_version="\\
12542config.status
81ecdfbb
RW
12543configured by $0, generated by GNU Autoconf 2.64,
12544 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6bf9431b 12545
81ecdfbb 12546Copyright (C) 2009 Free Software Foundation, Inc.
6bf9431b
BE
12547This config.status script is free software; the Free Software Foundation
12548gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
12549
12550ac_pwd='$ac_pwd'
12551srcdir='$srcdir'
12552INSTALL='$INSTALL'
12553MKDIR_P='$MKDIR_P'
12554AWK='$AWK'
12555test -n "\$AWK" || AWK=awk
6bf9431b
BE
12556_ACEOF
12557
81ecdfbb
RW
12558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12559# The default lists apply if the user does not specify any file.
6bf9431b
BE
12560ac_need_defaults=:
12561while test $# != 0
12562do
12563 case $1 in
12564 --*=*)
81ecdfbb
RW
12565 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12566 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6bf9431b 12567 ac_shift=:
252b5132 12568 ;;
81ecdfbb 12569 *)
6bf9431b
BE
12570 ac_option=$1
12571 ac_optarg=$2
12572 ac_shift=shift
252b5132 12573 ;;
6bf9431b 12574 esac
252b5132 12575
6bf9431b
BE
12576 case $ac_option in
12577 # Handling of the options.
6bf9431b
BE
12578 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12579 ac_cs_recheck=: ;;
81ecdfbb
RW
12580 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12581 $as_echo "$ac_cs_version"; exit ;;
12582 --debug | --debu | --deb | --de | --d | -d )
6bf9431b
BE
12583 debug=: ;;
12584 --file | --fil | --fi | --f )
12585 $ac_shift
81ecdfbb
RW
12586 case $ac_optarg in
12587 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12588 esac
12589 as_fn_append CONFIG_FILES " '$ac_optarg'"
6bf9431b
BE
12590 ac_need_defaults=false;;
12591 --header | --heade | --head | --hea )
12592 $ac_shift
81ecdfbb
RW
12593 case $ac_optarg in
12594 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12595 esac
12596 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6bf9431b 12597 ac_need_defaults=false;;
81ecdfbb
RW
12598 --he | --h)
12599 # Conflict between --help and --header
12600 as_fn_error "ambiguous option: \`$1'
12601Try \`$0 --help' for more information.";;
12602 --help | --hel | -h )
12603 $as_echo "$ac_cs_usage"; exit ;;
6bf9431b
BE
12604 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12605 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12606 ac_cs_silent=: ;;
252b5132 12607
6bf9431b 12608 # This is an error.
81ecdfbb
RW
12609 -*) as_fn_error "unrecognized option: \`$1'
12610Try \`$0 --help' for more information." ;;
252b5132 12611
81ecdfbb
RW
12612 *) as_fn_append ac_config_targets " $1"
12613 ac_need_defaults=false ;;
252b5132 12614
6bf9431b
BE
12615 esac
12616 shift
12617done
252b5132 12618
6bf9431b 12619ac_configure_extra_args=
252b5132 12620
6bf9431b
BE
12621if $ac_cs_silent; then
12622 exec 6>/dev/null
12623 ac_configure_extra_args="$ac_configure_extra_args --silent"
12624fi
252b5132 12625
6bf9431b 12626_ACEOF
81ecdfbb 12627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6bf9431b 12628if \$ac_cs_recheck; then
81ecdfbb
RW
12629 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12630 shift
12631 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12632 CONFIG_SHELL='$SHELL'
12633 export CONFIG_SHELL
12634 exec "\$@"
6bf9431b
BE
12635fi
12636
12637_ACEOF
81ecdfbb
RW
12638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12639exec 5>>config.log
12640{
12641 echo
12642 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12643## Running $as_me. ##
12644_ASBOX
12645 $as_echo "$ac_log"
12646} >&5
6bf9431b 12647
81ecdfbb
RW
12648_ACEOF
12649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 12650#
81ecdfbb 12651# INIT-COMMANDS
252b5132 12652#
6bf9431b 12653AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
12654
12655
12656# The HP-UX ksh and POSIX shell print the target directory to stdout
12657# if CDPATH is set.
12658(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12659
12660sed_quote_subst='$sed_quote_subst'
12661double_quote_subst='$double_quote_subst'
12662delay_variable_subst='$delay_variable_subst'
12663macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12664macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12665enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12666enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12667pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12668enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12669host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12670host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12671host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12672build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12673build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12674build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12675SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12676Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12677GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12678EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12679FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12680LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12681NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12682LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12683max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12684ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12685exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12686lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12687lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12688lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12689reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12690reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
b214d478 12691OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
12692deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12693file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12694AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12695AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12696STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12697RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12698old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12699old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12700old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12701CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12702CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12703compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12704GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12705lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12706lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12707lt_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"`'
b214d478 12708lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
12709objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12710SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12711ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12712MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12713lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12714lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12715lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12716lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12717lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12718need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
b214d478
SE
12719DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12720NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12721LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12722OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12723OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
12724libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12725shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12726extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12727archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12728enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12729export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12730whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12731compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12732old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12733old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12734archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12735archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12736module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12737module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12738with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12739allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12740no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12741hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12742hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12743hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12744hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12745hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12746hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12747hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12748hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12749inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12750link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12751fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12752always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12753export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12754exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12755include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12756prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12757file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12758variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12759need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12760need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12761version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12762runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12763shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12764shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12765libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12766library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12767soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12768postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12769postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12770finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12771finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12772hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12773sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12774sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12775hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12776enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12777enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12778enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12779old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12780striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12781
12782LTCC='$LTCC'
12783LTCFLAGS='$LTCFLAGS'
12784compiler='$compiler_DEFAULT'
12785
12786# Quote evaled strings.
12787for var in SED \
12788GREP \
12789EGREP \
12790FGREP \
12791LD \
12792NM \
12793LN_S \
12794lt_SP2NL \
12795lt_NL2SP \
12796reload_flag \
b214d478 12797OBJDUMP \
d7040cdb
SE
12798deplibs_check_method \
12799file_magic_cmd \
12800AR \
12801AR_FLAGS \
12802STRIP \
12803RANLIB \
12804CC \
12805CFLAGS \
12806compiler \
12807lt_cv_sys_global_symbol_pipe \
12808lt_cv_sys_global_symbol_to_cdecl \
12809lt_cv_sys_global_symbol_to_c_name_address \
b214d478 12810lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
12811SHELL \
12812ECHO \
12813lt_prog_compiler_no_builtin_flag \
12814lt_prog_compiler_wl \
12815lt_prog_compiler_pic \
12816lt_prog_compiler_static \
12817lt_cv_prog_compiler_c_o \
12818need_locks \
b214d478
SE
12819DSYMUTIL \
12820NMEDIT \
12821LIPO \
12822OTOOL \
12823OTOOL64 \
d7040cdb
SE
12824shrext_cmds \
12825export_dynamic_flag_spec \
12826whole_archive_flag_spec \
12827compiler_needs_object \
12828with_gnu_ld \
12829allow_undefined_flag \
12830no_undefined_flag \
12831hardcode_libdir_flag_spec \
12832hardcode_libdir_flag_spec_ld \
12833hardcode_libdir_separator \
12834fix_srcfile_path \
12835exclude_expsyms \
12836include_expsyms \
12837file_list_spec \
12838variables_saved_for_relink \
12839libname_spec \
12840library_names_spec \
12841soname_spec \
12842finish_eval \
12843old_striplib \
12844striplib; do
12845 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12846 *[\\\\\\\`\\"\\\$]*)
12847 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12848 ;;
12849 *)
12850 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12851 ;;
12852 esac
12853done
12854
12855# Double-quote double-evaled strings.
12856for var in reload_cmds \
12857old_postinstall_cmds \
12858old_postuninstall_cmds \
12859old_archive_cmds \
12860extract_expsyms_cmds \
12861old_archive_from_new_cmds \
12862old_archive_from_expsyms_cmds \
12863archive_cmds \
12864archive_expsym_cmds \
12865module_cmds \
12866module_expsym_cmds \
12867export_symbols_cmds \
12868prelink_cmds \
12869postinstall_cmds \
12870postuninstall_cmds \
12871finish_cmds \
12872sys_lib_search_path_spec \
12873sys_lib_dlsearch_path_spec; do
12874 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12875 *[\\\\\\\`\\"\\\$]*)
12876 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12877 ;;
12878 *)
12879 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12880 ;;
12881 esac
12882done
12883
12884# Fix-up fallback echo if it was mangled by the above quoting rules.
12885case \$lt_ECHO in
12886*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12887 ;;
12888esac
12889
12890ac_aux_dir='$ac_aux_dir'
12891xsi_shell='$xsi_shell'
12892lt_shell_append='$lt_shell_append'
12893
12894# See if we are running on zsh, and set the options which allow our
12895# commands through without removal of \ escapes INIT.
12896if test -n "\${ZSH_VERSION+set}" ; then
12897 setopt NO_GLOB_SUBST
12898fi
12899
12900
12901 PACKAGE='$PACKAGE'
12902 VERSION='$VERSION'
12903 TIMESTAMP='$TIMESTAMP'
12904 RM='$RM'
12905 ofile='$ofile'
12906
12907
12908
20e95c23
DJ
12909# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12910 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12911 # from automake.
12912 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12913 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12914 LINGUAS="${LINGUAS-%UNSET%}"
6bf9431b
BE
12915
12916
12917_ACEOF
12918
81ecdfbb 12919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1b9750d6 12920
81ecdfbb 12921# Handling of arguments.
6bf9431b 12922for ac_config_target in $ac_config_targets
252b5132 12923do
81ecdfbb
RW
12924 case $ac_config_target in
12925 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12926 "gconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
12927 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12928 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12929 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12930 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12931
12932 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
12933 esac
12934done
12935
81ecdfbb 12936
6bf9431b
BE
12937# If the user did not use the arguments to specify the items to instantiate,
12938# then the envvar interface is used. Set only those that are not.
12939# We use the long form for the default assignment because of an extremely
12940# bizarre bug on SunOS 4.1.3.
12941if $ac_need_defaults; then
12942 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12943 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12944 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12945fi
12946
12947# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 12948# simply because there is no reason against having it here, and in addition,
6bf9431b 12949# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
12950# Hook for its removal unless debugging.
12951# Note that there is a small window in which the directory will not be cleaned:
12952# after its creation but before its name has been assigned to `$tmp'.
6bf9431b
BE
12953$debug ||
12954{
81ecdfbb
RW
12955 tmp=
12956 trap 'exit_status=$?
12957 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12958' 0
12959 trap 'as_fn_exit 1' 1 2 13 15
6bf9431b 12960}
6bf9431b 12961# Create a (secure) tmp directory for tmp files.
252b5132 12962
6bf9431b 12963{
81ecdfbb 12964 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6bf9431b
BE
12965 test -n "$tmp" && test -d "$tmp"
12966} ||
12967{
81ecdfbb
RW
12968 tmp=./conf$$-$RANDOM
12969 (umask 077 && mkdir "$tmp")
12970} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12971
12972# Set up the scripts for CONFIG_FILES section.
12973# No need to generate them if there are no CONFIG_FILES.
12974# This happens for instance with `./config.status config.h'.
12975if test -n "$CONFIG_FILES"; then
12976
12977
12978ac_cr=`echo X | tr X '\015'`
12979# On cygwin, bash can eat \r inside `` if the user requested igncr.
12980# But we know of no other shell where ac_cr would be empty at this
12981# point, so we can use a bashism as a fallback.
12982if test "x$ac_cr" = x; then
12983 eval ac_cr=\$\'\\r\'
12984fi
12985ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12986if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12987 ac_cs_awk_cr='\r'
12988else
12989 ac_cs_awk_cr=$ac_cr
12990fi
12991
12992echo 'BEGIN {' >"$tmp/subs1.awk" &&
12993_ACEOF
12994
12995
12996{
12997 echo "cat >conf$$subs.awk <<_ACEOF" &&
12998 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12999 echo "_ACEOF"
13000} >conf$$subs.sh ||
13001 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13002ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13003ac_delim='%!_!# '
13004for ac_last_try in false false false false false :; do
13005 . ./conf$$subs.sh ||
13006 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13007
13008 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13009 if test $ac_delim_n = $ac_delim_num; then
13010 break
13011 elif $ac_last_try; then
13012 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13013 else
13014 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13015 fi
13016done
13017rm -f conf$$subs.sh
13018
13019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13020cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13021_ACEOF
13022sed -n '
13023h
13024s/^/S["/; s/!.*/"]=/
13025p
13026g
13027s/^[^!]*!//
13028:repl
13029t repl
13030s/'"$ac_delim"'$//
13031t delim
13032:nl
13033h
13034s/\(.\{148\}\).*/\1/
13035t more1
13036s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13037p
13038n
13039b repl
13040:more1
13041s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13042p
13043g
13044s/.\{148\}//
13045t nl
13046:delim
13047h
13048s/\(.\{148\}\).*/\1/
13049t more2
13050s/["\\]/\\&/g; s/^/"/; s/$/"/
13051p
13052b
13053:more2
13054s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13055p
13056g
13057s/.\{148\}//
13058t delim
13059' <conf$$subs.awk | sed '
13060/^[^""]/{
13061 N
13062 s/\n//
13063}
13064' >>$CONFIG_STATUS || ac_write_fail=1
13065rm -f conf$$subs.awk
13066cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13067_ACAWK
13068cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13069 for (key in S) S_is_set[key] = 1
13070 FS = "\a"
13071
13072}
6bf9431b 13073{
81ecdfbb
RW
13074 line = $ 0
13075 nfields = split(line, field, "@")
13076 substed = 0
13077 len = length(field[1])
13078 for (i = 2; i < nfields; i++) {
13079 key = field[i]
13080 keylen = length(key)
13081 if (S_is_set[key]) {
13082 value = S[key]
13083 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13084 len += length(value) + length(field[++i])
13085 substed = 1
13086 } else
13087 len += 1 + keylen
13088 }
13089
13090 print line
6bf9431b 13091}
252b5132 13092
81ecdfbb
RW
13093_ACAWK
13094_ACEOF
13095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13096if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13097 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13098else
13099 cat
13100fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13101 || as_fn_error "could not setup config files machinery" "$LINENO" 5
0ab6f085
AM
13102_ACEOF
13103
81ecdfbb
RW
13104# VPATH may cause trouble with some makes, so we remove $(srcdir),
13105# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13106# trailing colons and then remove the whole line if VPATH becomes empty
13107# (actually we leave an empty line to preserve line numbers).
13108if test "x$srcdir" = x.; then
13109 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13110s/:*\$(srcdir):*/:/
13111s/:*\${srcdir}:*/:/
13112s/:*@srcdir@:*/:/
13113s/^\([^=]*=[ ]*\):*/\1/
13114s/:*$//
13115s/^[^=]*=[ ]*$//
13116}'
13117fi
13118
13119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13120fi # test -n "$CONFIG_FILES"
0ab6f085 13121
81ecdfbb
RW
13122# Set up the scripts for CONFIG_HEADERS section.
13123# No need to generate them if there are no CONFIG_HEADERS.
13124# This happens for instance with `./config.status Makefile'.
13125if test -n "$CONFIG_HEADERS"; then
13126cat >"$tmp/defines.awk" <<\_ACAWK ||
13127BEGIN {
13128_ACEOF
6bf9431b 13129
81ecdfbb
RW
13130# Transform confdefs.h into an awk script `defines.awk', embedded as
13131# here-document in config.status, that substitutes the proper values into
13132# config.h.in to produce config.h.
1b9750d6 13133
81ecdfbb
RW
13134# Create a delimiter string that does not exist in confdefs.h, to ease
13135# handling of long lines.
13136ac_delim='%!_!# '
13137for ac_last_try in false false :; do
13138 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13139 if test -z "$ac_t"; then
13140 break
13141 elif $ac_last_try; then
13142 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13143 else
13144 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13145 fi
13146done
13147
13148# For the awk script, D is an array of macro values keyed by name,
13149# likewise P contains macro parameters if any. Preserve backslash
13150# newline sequences.
13151
13152ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13153sed -n '
13154s/.\{148\}/&'"$ac_delim"'/g
13155t rset
13156:rset
13157s/^[ ]*#[ ]*define[ ][ ]*/ /
13158t def
13159d
13160:def
13161s/\\$//
13162t bsnl
13163s/["\\]/\\&/g
13164s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13165D["\1"]=" \3"/p
13166s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13167d
13168:bsnl
13169s/["\\]/\\&/g
13170s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13171D["\1"]=" \3\\\\\\n"\\/p
13172t cont
13173s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13174t cont
13175d
13176:cont
13177n
13178s/.\{148\}/&'"$ac_delim"'/g
13179t clear
13180:clear
13181s/\\$//
13182t bsnlc
13183s/["\\]/\\&/g; s/^/"/; s/$/"/p
13184d
13185:bsnlc
13186s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13187b cont
13188' <confdefs.h | sed '
13189s/'"$ac_delim"'/"\\\
13190"/g' >>$CONFIG_STATUS || ac_write_fail=1
13191
13192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13193 for (key in D) D_is_set[key] = 1
13194 FS = "\a"
13195}
13196/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13197 line = \$ 0
13198 split(line, arg, " ")
13199 if (arg[1] == "#") {
13200 defundef = arg[2]
13201 mac1 = arg[3]
13202 } else {
13203 defundef = substr(arg[1], 2)
13204 mac1 = arg[2]
13205 }
13206 split(mac1, mac2, "(") #)
13207 macro = mac2[1]
13208 prefix = substr(line, 1, index(line, defundef) - 1)
13209 if (D_is_set[macro]) {
13210 # Preserve the white space surrounding the "#".
13211 print prefix "define", macro P[macro] D[macro]
13212 next
13213 } else {
13214 # Replace #undef with comments. This is necessary, for example,
13215 # in the case of _POSIX_SOURCE, which is predefined and required
13216 # on some systems where configure will not decide to define it.
13217 if (defundef == "undef") {
13218 print "/*", prefix defundef, macro, "*/"
13219 next
13220 }
13221 }
13222}
13223{ print }
13224_ACAWK
1b9750d6 13225_ACEOF
81ecdfbb
RW
13226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13227 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13228fi # test -n "$CONFIG_HEADERS"
1b9750d6 13229
81ecdfbb
RW
13230
13231eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13232shift
13233for ac_tag
13234do
13235 case $ac_tag in
13236 :[FHLC]) ac_mode=$ac_tag; continue;;
13237 esac
13238 case $ac_mode$ac_tag in
13239 :[FHL]*:*);;
13240 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13241 :[FH]-) ac_tag=-:-;;
13242 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13243 esac
13244 ac_save_IFS=$IFS
13245 IFS=:
13246 set x $ac_tag
13247 IFS=$ac_save_IFS
13248 shift
13249 ac_file=$1
13250 shift
13251
13252 case $ac_mode in
13253 :L) ac_source=$1;;
13254 :[FH])
13255 ac_file_inputs=
13256 for ac_f
13257 do
13258 case $ac_f in
13259 -) ac_f="$tmp/stdin";;
13260 *) # Look for the file first in the build tree, then in the source tree
13261 # (if the path is not absolute). The absolute path cannot be DOS-style,
13262 # because $ac_f cannot contain `:'.
13263 test -f "$ac_f" ||
13264 case $ac_f in
13265 [\\/$]*) false;;
13266 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13267 esac ||
13268 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13269 esac
13270 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13271 as_fn_append ac_file_inputs " '$ac_f'"
13272 done
13273
13274 # Let's still pretend it is `configure' which instantiates (i.e., don't
13275 # use $as_me), people would be surprised to read:
13276 # /* config.h. Generated by config.status. */
13277 configure_input='Generated from '`
13278 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13279 `' by configure.'
13280 if test x"$ac_file" != x-; then
13281 configure_input="$ac_file. $configure_input"
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13283$as_echo "$as_me: creating $ac_file" >&6;}
0ab6f085 13284 fi
81ecdfbb
RW
13285 # Neutralize special characters interpreted by sed in replacement strings.
13286 case $configure_input in #(
13287 *\&* | *\|* | *\\* )
13288 ac_sed_conf_input=`$as_echo "$configure_input" |
13289 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13290 *) ac_sed_conf_input=$configure_input;;
13291 esac
1b9750d6 13292
81ecdfbb
RW
13293 case $ac_tag in
13294 *:-:* | *:-) cat >"$tmp/stdin" \
13295 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13296 esac
13297 ;;
252b5132
RH
13298 esac
13299
81ecdfbb 13300 ac_dir=`$as_dirname -- "$ac_file" ||
6bf9431b
BE
13301$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13302 X"$ac_file" : 'X\(//\)[^/]' \| \
13303 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
13304 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13305$as_echo X"$ac_file" |
13306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13307 s//\1/
13308 q
13309 }
13310 /^X\(\/\/\)[^/].*/{
13311 s//\1/
13312 q
13313 }
13314 /^X\(\/\/\)$/{
13315 s//\1/
13316 q
13317 }
13318 /^X\(\/\).*/{
13319 s//\1/
13320 q
13321 }
13322 s/.*/./; q'`
13323 as_dir="$ac_dir"; as_fn_mkdir_p
6bf9431b
BE
13324 ac_builddir=.
13325
81ecdfbb
RW
13326case "$ac_dir" in
13327.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13328*)
13329 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13330 # A ".." for each directory in $ac_dir_suffix.
13331 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13332 case $ac_top_builddir_sub in
13333 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13334 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13335 esac ;;
13336esac
13337ac_abs_top_builddir=$ac_pwd
13338ac_abs_builddir=$ac_pwd$ac_dir_suffix
13339# for backward compatibility:
13340ac_top_builddir=$ac_top_build_prefix
252b5132 13341
6bf9431b 13342case $srcdir in
81ecdfbb 13343 .) # We are building in place.
6bf9431b 13344 ac_srcdir=.
81ecdfbb
RW
13345 ac_top_srcdir=$ac_top_builddir_sub
13346 ac_abs_top_srcdir=$ac_pwd ;;
13347 [\\/]* | ?:[\\/]* ) # Absolute name.
6bf9431b 13348 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
13349 ac_top_srcdir=$srcdir
13350 ac_abs_top_srcdir=$srcdir ;;
13351 *) # Relative name.
13352 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13353 ac_top_srcdir=$ac_top_build_prefix$srcdir
13354 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6bf9431b 13355esac
81ecdfbb 13356ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 13357
252b5132 13358
81ecdfbb
RW
13359 case $ac_mode in
13360 :F)
13361 #
13362 # CONFIG_FILE
13363 #
6bf9431b
BE
13364
13365 case $INSTALL in
13366 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
13367 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13368 esac
13369 ac_MKDIR_P=$MKDIR_P
13370 case $MKDIR_P in
13371 [\\/$]* | ?:[\\/]* ) ;;
13372 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
252b5132 13373 esac
81ecdfbb 13374_ACEOF
1b9750d6 13375
81ecdfbb
RW
13376cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13377# If the template does not know about datarootdir, expand it.
13378# FIXME: This hack should be removed a few years after 2.60.
13379ac_datarootdir_hack=; ac_datarootdir_seen=
13380ac_sed_dataroot='
13381/datarootdir/ {
13382 p
13383 q
13384}
13385/@datadir@/p
13386/@docdir@/p
13387/@infodir@/p
13388/@localedir@/p
13389/@mandir@/p'
13390case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13391*datarootdir*) ac_datarootdir_seen=yes;;
13392*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13394$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13395_ACEOF
13396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13397 ac_datarootdir_hack='
13398 s&@datadir@&$datadir&g
13399 s&@docdir@&$docdir&g
13400 s&@infodir@&$infodir&g
13401 s&@localedir@&$localedir&g
13402 s&@mandir@&$mandir&g
13403 s&\\\${datarootdir}&$datarootdir&g' ;;
13404esac
6bf9431b 13405_ACEOF
81ecdfbb
RW
13406
13407# Neutralize VPATH when `$srcdir' = `.'.
13408# Shell code in configure.ac might set extrasub.
13409# FIXME: do we really want to maintain this feature?
13410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13411ac_sed_extra="$ac_vpsub
6bf9431b
BE
13412$extrasub
13413_ACEOF
81ecdfbb 13414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6bf9431b
BE
13415:t
13416/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
13417s|@configure_input@|$ac_sed_conf_input|;t t
13418s&@top_builddir@&$ac_top_builddir_sub&;t t
13419s&@top_build_prefix@&$ac_top_build_prefix&;t t
13420s&@srcdir@&$ac_srcdir&;t t
13421s&@abs_srcdir@&$ac_abs_srcdir&;t t
13422s&@top_srcdir@&$ac_top_srcdir&;t t
13423s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13424s&@builddir@&$ac_builddir&;t t
13425s&@abs_builddir@&$ac_abs_builddir&;t t
13426s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13427s&@INSTALL@&$ac_INSTALL&;t t
13428s&@MKDIR_P@&$ac_MKDIR_P&;t t
13429$ac_datarootdir_hack
13430"
13431eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13432 || as_fn_error "could not create $ac_file" "$LINENO" 5
13433
13434test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13435 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13436 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13438which seems to be undefined. Please make sure it is defined." >&5
13439$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13440which seems to be undefined. Please make sure it is defined." >&2;}
13441
13442 rm -f "$tmp/stdin"
6bf9431b 13443 case $ac_file in
81ecdfbb
RW
13444 -) cat "$tmp/out" && rm -f "$tmp/out";;
13445 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13446 esac \
13447 || as_fn_error "could not create $ac_file" "$LINENO" 5
13448 ;;
13449 :H)
13450 #
13451 # CONFIG_HEADER
13452 #
6bf9431b 13453 if test x"$ac_file" != x-; then
81ecdfbb
RW
13454 {
13455 $as_echo "/* $configure_input */" \
13456 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13457 } >"$tmp/config.h" \
13458 || as_fn_error "could not create $ac_file" "$LINENO" 5
13459 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13461$as_echo "$as_me: $ac_file is unchanged" >&6;}
6bf9431b 13462 else
81ecdfbb
RW
13463 rm -f "$ac_file"
13464 mv "$tmp/config.h" "$ac_file" \
13465 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 13466 fi
6bf9431b 13467 else
81ecdfbb
RW
13468 $as_echo "/* $configure_input */" \
13469 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13470 || as_fn_error "could not create -" "$LINENO" 5
252b5132 13471 fi
81ecdfbb
RW
13472# Compute "$ac_file"'s index in $config_headers.
13473_am_arg="$ac_file"
6bf9431b
BE
13474_am_stamp_count=1
13475for _am_header in $config_headers :; do
13476 case $_am_header in
81ecdfbb 13477 $_am_arg | $_am_arg:* )
6bf9431b
BE
13478 break ;;
13479 * )
13480 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13481 esac
13482done
81ecdfbb
RW
13483echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13484$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13485 X"$_am_arg" : 'X\(//\)[^/]' \| \
13486 X"$_am_arg" : 'X\(//\)$' \| \
13487 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13488$as_echo X"$_am_arg" |
13489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13490 s//\1/
13491 q
13492 }
13493 /^X\(\/\/\)[^/].*/{
13494 s//\1/
13495 q
13496 }
13497 /^X\(\/\/\)$/{
13498 s//\1/
13499 q
13500 }
13501 /^X\(\/\).*/{
13502 s//\1/
13503 q
13504 }
13505 s/.*/./; q'`/stamp-h$_am_stamp_count
13506 ;;
0ab6f085 13507
81ecdfbb
RW
13508 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13509$as_echo "$as_me: executing $ac_file commands" >&6;}
13510 ;;
13511 esac
6bf9431b
BE
13512
13513
81ecdfbb
RW
13514 case $ac_file$ac_mode in
13515 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13516 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13517 # are listed without --file. Let's play safe and only enable the eval
13518 # if we detect the quoting.
13519 case $CONFIG_FILES in
13520 *\'*) eval set x "$CONFIG_FILES" ;;
13521 *) set x $CONFIG_FILES ;;
13522 esac
13523 shift
13524 for mf
13525 do
13526 # Strip MF so we end up with the name of the file.
13527 mf=`echo "$mf" | sed -e 's/:.*$//'`
13528 # Check whether this is an Automake generated Makefile or not.
13529 # We used to match only the files named `Makefile.in', but
13530 # some people rename them; so instead we look at the file content.
13531 # Grep'ing the first line is not enough: some people post-process
13532 # each Makefile.in and add a new line on top of each file to say so.
13533 # Grep'ing the whole file is not good either: AIX grep has a line
13534 # limit of 2048, but all sed's we know have understand at least 4000.
13535 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13536 dirpart=`$as_dirname -- "$mf" ||
6bf9431b
BE
13537$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13538 X"$mf" : 'X\(//\)[^/]' \| \
13539 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
13540 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13541$as_echo X"$mf" |
13542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13543 s//\1/
13544 q
13545 }
13546 /^X\(\/\/\)[^/].*/{
13547 s//\1/
13548 q
13549 }
13550 /^X\(\/\/\)$/{
13551 s//\1/
13552 q
13553 }
13554 /^X\(\/\).*/{
13555 s//\1/
13556 q
13557 }
13558 s/.*/./; q'`
13559 else
13560 continue
13561 fi
13562 # Extract the definition of DEPDIR, am__include, and am__quote
13563 # from the Makefile without running `make'.
13564 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13565 test -z "$DEPDIR" && continue
13566 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13567 test -z "am__include" && continue
13568 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13569 # When using ansi2knr, U may be empty or an underscore; expand it
13570 U=`sed -n 's/^U = //p' < "$mf"`
13571 # Find all dependency output files, they are included files with
13572 # $(DEPDIR) in their names. We invoke sed twice because it is the
13573 # simplest approach to changing $(DEPDIR) to its actual value in the
13574 # expansion.
13575 for file in `sed -n "
13576 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13577 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13578 # Make sure the directory exists.
13579 test -f "$dirpart/$file" && continue
13580 fdir=`$as_dirname -- "$file" ||
6bf9431b
BE
13581$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13582 X"$file" : 'X\(//\)[^/]' \| \
13583 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
13584 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13585$as_echo X"$file" |
13586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13587 s//\1/
13588 q
13589 }
13590 /^X\(\/\/\)[^/].*/{
13591 s//\1/
13592 q
13593 }
13594 /^X\(\/\/\)$/{
13595 s//\1/
13596 q
13597 }
13598 /^X\(\/\).*/{
13599 s//\1/
13600 q
13601 }
13602 s/.*/./; q'`
13603 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13604 # echo "creating $dirpart/$file"
13605 echo '# dummy' > "$dirpart/$file"
6bf9431b 13606 done
6bf9431b 13607 done
81ecdfbb 13608}
d7040cdb 13609 ;;
81ecdfbb 13610 "libtool":C)
d7040cdb
SE
13611
13612 # See if we are running on zsh, and set the options which allow our
13613 # commands through without removal of \ escapes.
13614 if test -n "${ZSH_VERSION+set}" ; then
13615 setopt NO_GLOB_SUBST
13616 fi
13617
13618 cfgfile="${ofile}T"
13619 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13620 $RM "$cfgfile"
13621
13622 cat <<_LT_EOF >> "$cfgfile"
13623#! $SHELL
13624
13625# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 13626# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
13627# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13628# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13629#
b214d478
SE
13630# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13631# 2006, 2007, 2008 Free Software Foundation, Inc.
13632# Written by Gordon Matzigkeit, 1996
d7040cdb 13633#
b214d478 13634# This file is part of GNU Libtool.
d7040cdb 13635#
b214d478
SE
13636# GNU Libtool is free software; you can redistribute it and/or
13637# modify it under the terms of the GNU General Public License as
13638# published by the Free Software Foundation; either version 2 of
13639# the License, or (at your option) any later version.
d7040cdb 13640#
b214d478
SE
13641# As a special exception to the GNU General Public License,
13642# if you distribute this file as part of a program or library that
13643# is built using GNU Libtool, you may include this file under the
13644# same distribution terms that you use for the rest of that program.
d7040cdb 13645#
b214d478
SE
13646# GNU Libtool is distributed in the hope that it will be useful,
13647# but WITHOUT ANY WARRANTY; without even the implied warranty of
13648# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13649# GNU General Public License for more details.
d7040cdb 13650#
b214d478
SE
13651# You should have received a copy of the GNU General Public License
13652# along with GNU Libtool; see the file COPYING. If not, a copy
13653# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13654# obtained by writing to the Free Software Foundation, Inc.,
13655# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
13656
13657
13658# The names of the tagged configurations supported by this script.
13659available_tags=""
13660
13661# ### BEGIN LIBTOOL CONFIG
13662
13663# Which release of libtool.m4 was used?
13664macro_version=$macro_version
13665macro_revision=$macro_revision
13666
13667# Whether or not to build shared libraries.
13668build_libtool_libs=$enable_shared
13669
13670# Whether or not to build static libraries.
13671build_old_libs=$enable_static
13672
13673# What type of objects to build.
13674pic_mode=$pic_mode
13675
13676# Whether or not to optimize for fast installation.
13677fast_install=$enable_fast_install
13678
13679# The host system.
13680host_alias=$host_alias
13681host=$host
13682host_os=$host_os
13683
13684# The build system.
13685build_alias=$build_alias
13686build=$build
13687build_os=$build_os
13688
13689# A sed program that does not truncate output.
13690SED=$lt_SED
13691
13692# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13693Xsed="\$SED -e 1s/^X//"
13694
13695# A grep program that handles long lines.
13696GREP=$lt_GREP
13697
13698# An ERE matcher.
13699EGREP=$lt_EGREP
13700
13701# A literal string matcher.
13702FGREP=$lt_FGREP
13703
13704# A BSD- or MS-compatible name lister.
13705NM=$lt_NM
13706
13707# Whether we need soft or hard links.
13708LN_S=$lt_LN_S
13709
13710# What is the maximum length of a command?
13711max_cmd_len=$max_cmd_len
13712
13713# Object file suffix (normally "o").
13714objext=$ac_objext
13715
13716# Executable file suffix (normally "").
13717exeext=$exeext
13718
13719# whether the shell understands "unset".
13720lt_unset=$lt_unset
13721
13722# turn spaces into newlines.
13723SP2NL=$lt_lt_SP2NL
13724
13725# turn newlines into spaces.
13726NL2SP=$lt_lt_NL2SP
13727
13728# How to create reloadable object files.
13729reload_flag=$lt_reload_flag
13730reload_cmds=$lt_reload_cmds
13731
b214d478
SE
13732# An object symbol dumper.
13733OBJDUMP=$lt_OBJDUMP
13734
d7040cdb
SE
13735# Method to check whether dependent libraries are shared objects.
13736deplibs_check_method=$lt_deplibs_check_method
13737
13738# Command to use when deplibs_check_method == "file_magic".
13739file_magic_cmd=$lt_file_magic_cmd
13740
13741# The archiver.
13742AR=$lt_AR
13743AR_FLAGS=$lt_AR_FLAGS
13744
13745# A symbol stripping program.
13746STRIP=$lt_STRIP
13747
13748# Commands used to install an old-style archive.
13749RANLIB=$lt_RANLIB
13750old_postinstall_cmds=$lt_old_postinstall_cmds
13751old_postuninstall_cmds=$lt_old_postuninstall_cmds
13752
13753# A C compiler.
13754LTCC=$lt_CC
13755
13756# LTCC compiler flags.
13757LTCFLAGS=$lt_CFLAGS
13758
13759# Take the output of nm and produce a listing of raw symbols and C names.
13760global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13761
13762# Transform the output of nm in a proper C declaration.
13763global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13764
13765# Transform the output of nm in a C name address pair.
13766global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13767
b214d478
SE
13768# Transform the output of nm in a C name address pair when lib prefix is needed.
13769global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13770
d7040cdb
SE
13771# The name of the directory that contains temporary libtool files.
13772objdir=$objdir
13773
13774# Shell to use when invoking shell scripts.
13775SHELL=$lt_SHELL
13776
13777# An echo program that does not interpret backslashes.
13778ECHO=$lt_ECHO
13779
13780# Used to examine libraries when file_magic_cmd begins with "file".
13781MAGIC_CMD=$MAGIC_CMD
13782
13783# Must we lock files when doing compilation?
13784need_locks=$lt_need_locks
13785
b214d478
SE
13786# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13787DSYMUTIL=$lt_DSYMUTIL
13788
13789# Tool to change global to local symbols on Mac OS X.
13790NMEDIT=$lt_NMEDIT
13791
13792# Tool to manipulate fat objects and archives on Mac OS X.
13793LIPO=$lt_LIPO
13794
13795# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13796OTOOL=$lt_OTOOL
13797
13798# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13799OTOOL64=$lt_OTOOL64
13800
d7040cdb
SE
13801# Old archive suffix (normally "a").
13802libext=$libext
13803
13804# Shared library suffix (normally ".so").
13805shrext_cmds=$lt_shrext_cmds
13806
13807# The commands to extract the exported symbol list from a shared archive.
13808extract_expsyms_cmds=$lt_extract_expsyms_cmds
13809
13810# Variables whose values should be saved in libtool wrapper scripts and
13811# restored at link time.
13812variables_saved_for_relink=$lt_variables_saved_for_relink
13813
13814# Do we need the "lib" prefix for modules?
13815need_lib_prefix=$need_lib_prefix
13816
13817# Do we need a version for libraries?
13818need_version=$need_version
13819
13820# Library versioning type.
13821version_type=$version_type
13822
13823# Shared library runtime path variable.
13824runpath_var=$runpath_var
13825
13826# Shared library path variable.
13827shlibpath_var=$shlibpath_var
13828
13829# Is shlibpath searched before the hard-coded library search path?
13830shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13831
13832# Format of library name prefix.
13833libname_spec=$lt_libname_spec
13834
13835# List of archive names. First name is the real one, the rest are links.
13836# The last name is the one that the linker finds with -lNAME
13837library_names_spec=$lt_library_names_spec
13838
13839# The coded name of the library, if different from the real name.
13840soname_spec=$lt_soname_spec
13841
13842# Command to use after installation of a shared archive.
13843postinstall_cmds=$lt_postinstall_cmds
13844
13845# Command to use after uninstallation of a shared archive.
13846postuninstall_cmds=$lt_postuninstall_cmds
13847
13848# Commands used to finish a libtool library installation in a directory.
13849finish_cmds=$lt_finish_cmds
13850
13851# As "finish_cmds", except a single script fragment to be evaled but
13852# not shown.
13853finish_eval=$lt_finish_eval
13854
13855# Whether we should hardcode library paths into libraries.
13856hardcode_into_libs=$hardcode_into_libs
13857
13858# Compile-time system search path for libraries.
13859sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13860
13861# Run-time system search path for libraries.
13862sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13863
13864# Whether dlopen is supported.
13865dlopen_support=$enable_dlopen
13866
13867# Whether dlopen of programs is supported.
13868dlopen_self=$enable_dlopen_self
13869
13870# Whether dlopen of statically linked programs is supported.
13871dlopen_self_static=$enable_dlopen_self_static
13872
13873# Commands to strip libraries.
13874old_striplib=$lt_old_striplib
13875striplib=$lt_striplib
13876
13877
13878# The linker used to build libraries.
13879LD=$lt_LD
13880
13881# Commands used to build an old-style archive.
13882old_archive_cmds=$lt_old_archive_cmds
13883
13884# A language specific compiler.
13885CC=$lt_compiler
13886
13887# Is the compiler the GNU compiler?
13888with_gcc=$GCC
13889
13890# Compiler flag to turn off builtin functions.
13891no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13892
13893# How to pass a linker flag through the compiler.
13894wl=$lt_lt_prog_compiler_wl
13895
13896# Additional compiler flags for building library objects.
13897pic_flag=$lt_lt_prog_compiler_pic
13898
13899# Compiler flag to prevent dynamic linking.
13900link_static_flag=$lt_lt_prog_compiler_static
13901
13902# Does compiler simultaneously support -c and -o options?
13903compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13904
13905# Whether or not to add -lc for building shared libraries.
13906build_libtool_need_lc=$archive_cmds_need_lc
13907
13908# Whether or not to disallow shared libs when runtime libs are static.
13909allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13910
13911# Compiler flag to allow reflexive dlopens.
13912export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13913
13914# Compiler flag to generate shared objects directly from archives.
13915whole_archive_flag_spec=$lt_whole_archive_flag_spec
13916
13917# Whether the compiler copes with passing no objects directly.
13918compiler_needs_object=$lt_compiler_needs_object
13919
13920# Create an old-style archive from a shared archive.
13921old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13922
13923# Create a temporary old-style archive to link instead of a shared archive.
13924old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13925
13926# Commands used to build a shared archive.
13927archive_cmds=$lt_archive_cmds
13928archive_expsym_cmds=$lt_archive_expsym_cmds
13929
13930# Commands used to build a loadable module if different from building
13931# a shared archive.
13932module_cmds=$lt_module_cmds
13933module_expsym_cmds=$lt_module_expsym_cmds
13934
13935# Whether we are building with GNU ld or not.
13936with_gnu_ld=$lt_with_gnu_ld
13937
13938# Flag that allows shared libraries with undefined symbols to be built.
13939allow_undefined_flag=$lt_allow_undefined_flag
13940
13941# Flag that enforces no undefined symbols.
13942no_undefined_flag=$lt_no_undefined_flag
13943
13944# Flag to hardcode \$libdir into a binary during linking.
13945# This must work even if \$libdir does not exist
13946hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13947
13948# If ld is used when linking, flag to hardcode \$libdir into a binary
13949# during linking. This must work even if \$libdir does not exist.
13950hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13951
13952# Whether we need a single "-rpath" flag with a separated argument.
13953hardcode_libdir_separator=$lt_hardcode_libdir_separator
13954
13955# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13956# DIR into the resulting binary.
13957hardcode_direct=$hardcode_direct
13958
13959# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13960# DIR into the resulting binary and the resulting library dependency is
13961# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13962# library is relocated.
13963hardcode_direct_absolute=$hardcode_direct_absolute
13964
13965# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13966# into the resulting binary.
13967hardcode_minus_L=$hardcode_minus_L
13968
13969# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13970# into the resulting binary.
13971hardcode_shlibpath_var=$hardcode_shlibpath_var
13972
13973# Set to "yes" if building a shared library automatically hardcodes DIR
13974# into the library and all subsequent libraries and executables linked
13975# against it.
13976hardcode_automatic=$hardcode_automatic
13977
13978# Set to yes if linker adds runtime paths of dependent libraries
13979# to runtime path list.
13980inherit_rpath=$inherit_rpath
13981
13982# Whether libtool must link a program against all its dependency libraries.
13983link_all_deplibs=$link_all_deplibs
13984
13985# Fix the shell variable \$srcfile for the compiler.
13986fix_srcfile_path=$lt_fix_srcfile_path
13987
13988# Set to "yes" if exported symbols are required.
13989always_export_symbols=$always_export_symbols
13990
13991# The commands to list exported symbols.
13992export_symbols_cmds=$lt_export_symbols_cmds
13993
13994# Symbols that should not be listed in the preloaded symbols.
13995exclude_expsyms=$lt_exclude_expsyms
13996
13997# Symbols that must always be exported.
13998include_expsyms=$lt_include_expsyms
13999
14000# Commands necessary for linking programs (against libraries) with templates.
14001prelink_cmds=$lt_prelink_cmds
14002
14003# Specify filename containing input files.
14004file_list_spec=$lt_file_list_spec
14005
14006# How to hardcode a shared library path into an executable.
14007hardcode_action=$hardcode_action
14008
14009# ### END LIBTOOL CONFIG
14010
14011_LT_EOF
14012
14013 case $host_os in
14014 aix3*)
14015 cat <<\_LT_EOF >> "$cfgfile"
14016# AIX sometimes has problems with the GCC collect2 program. For some
14017# reason, if we set the COLLECT_NAMES environment variable, the problems
14018# vanish in a puff of smoke.
14019if test "X${COLLECT_NAMES+set}" != Xset; then
14020 COLLECT_NAMES=
14021 export COLLECT_NAMES
14022fi
14023_LT_EOF
14024 ;;
14025 esac
14026
14027
14028ltmain="$ac_aux_dir/ltmain.sh"
14029
14030
14031 # We use sed instead of cat because bash on DJGPP gets confused if
14032 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14033 # text mode, it properly converts lines to CR/LF. This bash problem
14034 # is reportedly fixed, but why not run on old versions too?
14035 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14036 || (rm -f "$cfgfile"; exit 1)
14037
14038 case $xsi_shell in
14039 yes)
14040 cat << \_LT_EOF >> "$cfgfile"
b214d478 14041
d7040cdb
SE
14042# func_dirname file append nondir_replacement
14043# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14044# otherwise set result to NONDIR_REPLACEMENT.
14045func_dirname ()
14046{
14047 case ${1} in
14048 */*) func_dirname_result="${1%/*}${2}" ;;
14049 * ) func_dirname_result="${3}" ;;
14050 esac
14051}
14052
14053# func_basename file
14054func_basename ()
14055{
14056 func_basename_result="${1##*/}"
14057}
14058
b214d478
SE
14059# func_dirname_and_basename file append nondir_replacement
14060# perform func_basename and func_dirname in a single function
14061# call:
14062# dirname: Compute the dirname of FILE. If nonempty,
14063# add APPEND to the result, otherwise set result
14064# to NONDIR_REPLACEMENT.
14065# value returned in "$func_dirname_result"
14066# basename: Compute filename of FILE.
14067# value retuned in "$func_basename_result"
14068# Implementation must be kept synchronized with func_dirname
14069# and func_basename. For efficiency, we do not delegate to
14070# those functions but instead duplicate the functionality here.
14071func_dirname_and_basename ()
14072{
14073 case ${1} in
14074 */*) func_dirname_result="${1%/*}${2}" ;;
14075 * ) func_dirname_result="${3}" ;;
14076 esac
14077 func_basename_result="${1##*/}"
14078}
14079
d7040cdb
SE
14080# func_stripname prefix suffix name
14081# strip PREFIX and SUFFIX off of NAME.
14082# PREFIX and SUFFIX must not contain globbing or regex special
14083# characters, hashes, percent signs, but SUFFIX may contain a leading
14084# dot (in which case that matches only a dot).
14085func_stripname ()
14086{
14087 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14088 # positional parameters, so assign one to ordinary parameter first.
14089 func_stripname_result=${3}
14090 func_stripname_result=${func_stripname_result#"${1}"}
14091 func_stripname_result=${func_stripname_result%"${2}"}
14092}
14093
14094# func_opt_split
14095func_opt_split ()
14096{
14097 func_opt_split_opt=${1%%=*}
14098 func_opt_split_arg=${1#*=}
14099}
14100
14101# func_lo2o object
14102func_lo2o ()
14103{
14104 case ${1} in
14105 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14106 *) func_lo2o_result=${1} ;;
14107 esac
14108}
b214d478
SE
14109
14110# func_xform libobj-or-source
14111func_xform ()
14112{
14113 func_xform_result=${1%.*}.lo
14114}
14115
14116# func_arith arithmetic-term...
14117func_arith ()
14118{
14119 func_arith_result=$(( $* ))
14120}
14121
14122# func_len string
14123# STRING may not start with a hyphen.
14124func_len ()
14125{
14126 func_len_result=${#1}
14127}
14128
d7040cdb
SE
14129_LT_EOF
14130 ;;
14131 *) # Bourne compatible functions.
14132 cat << \_LT_EOF >> "$cfgfile"
b214d478 14133
d7040cdb
SE
14134# func_dirname file append nondir_replacement
14135# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14136# otherwise set result to NONDIR_REPLACEMENT.
14137func_dirname ()
14138{
14139 # Extract subdirectory from the argument.
14140 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14141 if test "X$func_dirname_result" = "X${1}"; then
14142 func_dirname_result="${3}"
14143 else
14144 func_dirname_result="$func_dirname_result${2}"
14145 fi
14146}
14147
14148# func_basename file
14149func_basename ()
14150{
14151 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14152}
14153
b214d478 14154
d7040cdb
SE
14155# func_stripname prefix suffix name
14156# strip PREFIX and SUFFIX off of NAME.
14157# PREFIX and SUFFIX must not contain globbing or regex special
14158# characters, hashes, percent signs, but SUFFIX may contain a leading
14159# dot (in which case that matches only a dot).
14160# func_strip_suffix prefix name
14161func_stripname ()
14162{
14163 case ${2} in
14164 .*) func_stripname_result=`$ECHO "X${3}" \
14165 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14166 *) func_stripname_result=`$ECHO "X${3}" \
14167 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14168 esac
14169}
14170
14171# sed scripts:
14172my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14173my_sed_long_arg='1s/^-[^=]*=//'
14174
14175# func_opt_split
14176func_opt_split ()
14177{
14178 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14179 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14180}
14181
14182# func_lo2o object
14183func_lo2o ()
14184{
14185 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14186}
b214d478
SE
14187
14188# func_xform libobj-or-source
14189func_xform ()
14190{
14191 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14192}
14193
14194# func_arith arithmetic-term...
14195func_arith ()
14196{
14197 func_arith_result=`expr "$@"`
14198}
14199
14200# func_len string
14201# STRING may not start with a hyphen.
14202func_len ()
14203{
14204 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14205}
14206
d7040cdb
SE
14207_LT_EOF
14208esac
14209
14210case $lt_shell_append in
14211 yes)
14212 cat << \_LT_EOF >> "$cfgfile"
14213
14214# func_append var value
14215# Append VALUE to the end of shell variable VAR.
14216func_append ()
14217{
14218 eval "$1+=\$2"
14219}
14220_LT_EOF
14221 ;;
14222 *)
14223 cat << \_LT_EOF >> "$cfgfile"
14224
14225# func_append var value
14226# Append VALUE to the end of shell variable VAR.
14227func_append ()
14228{
14229 eval "$1=\$$1\$2"
14230}
b214d478 14231
d7040cdb
SE
14232_LT_EOF
14233 ;;
14234 esac
14235
14236
14237 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14238 || (rm -f "$cfgfile"; exit 1)
14239
14240 mv -f "$cfgfile" "$ofile" ||
14241 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14242 chmod +x "$ofile"
14243
6bf9431b 14244 ;;
81ecdfbb 14245 "default-1":C)
20e95c23
DJ
14246 for ac_file in $CONFIG_FILES; do
14247 # Support "outfile[:infile[:infile...]]"
14248 case "$ac_file" in
14249 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14250 esac
14251 # PO directories have a Makefile.in generated from Makefile.in.in.
14252 case "$ac_file" in */Makefile.in)
14253 # Adjust a relative srcdir.
14254 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14255 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
14256 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14257 # In autoconf-2.13 it is called $ac_given_srcdir.
14258 # In autoconf-2.50 it is called $srcdir.
14259 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14260 case "$ac_given_srcdir" in
14261 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14262 /*) top_srcdir="$ac_given_srcdir" ;;
14263 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14264 esac
14265 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14266 rm -f "$ac_dir/POTFILES"
14267 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14268 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14269 POMAKEFILEDEPS="POTFILES.in"
14270 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
14271 # on $ac_dir but don't depend on user-specified configuration
14272 # parameters.
14273 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14274 # The LINGUAS file contains the set of available languages.
14275 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14276 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14277 fi
14278 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14279 # Hide the ALL_LINGUAS assigment from automake.
14280 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14281 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14282 else
14283 # The set of available languages was given in configure.in.
14284 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14285 fi
14286 case "$ac_given_srcdir" in
14287 .) srcdirpre= ;;
14288 *) srcdirpre='$(srcdir)/' ;;
14289 esac
14290 POFILES=
14291 GMOFILES=
14292 UPDATEPOFILES=
14293 DUMMYPOFILES=
14294 for lang in $ALL_LINGUAS; do
14295 POFILES="$POFILES $srcdirpre$lang.po"
14296 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14297 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14298 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14299 done
14300 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14301 # environment variable.
14302 INST_LINGUAS=
14303 if test -n "$ALL_LINGUAS"; then
14304 for presentlang in $ALL_LINGUAS; do
14305 useit=no
14306 if test "%UNSET%" != "$LINGUAS"; then
14307 desiredlanguages="$LINGUAS"
14308 else
14309 desiredlanguages="$ALL_LINGUAS"
14310 fi
14311 for desiredlang in $desiredlanguages; do
14312 # Use the presentlang catalog if desiredlang is
14313 # a. equal to presentlang, or
14314 # b. a variant of presentlang (because in this case,
14315 # presentlang can be used as a fallback for messages
14316 # which are not translated in the desiredlang catalog).
14317 case "$desiredlang" in
14318 "$presentlang"*) useit=yes;;
14319 esac
14320 done
14321 if test $useit = yes; then
14322 INST_LINGUAS="$INST_LINGUAS $presentlang"
14323 fi
14324 done
14325 fi
14326 CATALOGS=
14327 if test -n "$INST_LINGUAS"; then
14328 for lang in $INST_LINGUAS; do
14329 CATALOGS="$CATALOGS $lang.gmo"
14330 done
14331 fi
14332 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14333 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"
14334 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14335 if test -f "$f"; then
14336 case "$f" in
14337 *.orig | *.bak | *~) ;;
14338 *) cat "$f" >> "$ac_dir/Makefile" ;;
14339 esac
14340 fi
14341 done
14342 fi
14343 ;;
14344 esac
14345 done ;;
81ecdfbb 14346
6bf9431b 14347 esac
81ecdfbb 14348done # for ac_tag
6bf9431b 14349
6bf9431b 14350
81ecdfbb 14351as_fn_exit 0
6bf9431b 14352_ACEOF
6bf9431b
BE
14353ac_clean_files=$ac_clean_files_save
14354
81ecdfbb
RW
14355test $ac_write_fail = 0 ||
14356 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14357
6bf9431b
BE
14358
14359# configure is writing to config.log, and then calls config.status.
14360# config.status does its own redirection, appending to config.log.
14361# Unfortunately, on DOS this fails, as config.log is still kept open
14362# by configure, so config.status won't be able to write to it; its
14363# output is simply discarded. So we exec the FD to /dev/null,
14364# effectively closing config.log, so it can be properly (re)opened and
14365# appended to by config.status. When coming back to configure, we
14366# need to make the FD available again.
14367if test "$no_create" != yes; then
14368 ac_cs_success=:
14369 ac_config_status_args=
14370 test "$silent" = yes &&
14371 ac_config_status_args="$ac_config_status_args --quiet"
14372 exec 5>/dev/null
14373 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14374 exec 5>>config.log
14375 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14376 # would make configure fail if this is the last instruction.
81ecdfbb
RW
14377 $ac_cs_success || as_fn_exit $?
14378fi
14379if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14381$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6bf9431b 14382fi
252b5132 14383
This page took 1.144636 seconds and 4 git commands to generate.