]> git.ipfire.org Git - thirdparty/gcc.git/blame - lto-plugin/configure
Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856).
[thirdparty/gcc.git] / lto-plugin / configure
CommitLineData
d7f09764
DN
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69 for LTO plugin for ld 0.1.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
d7f09764 7#
d7f09764
DN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
22e05272 90as_myself=
d7f09764
DN
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
d7f09764
DN
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
d7f09764
DN
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
dcbc9df9 199test \$(( 1 + 1 )) = 2 || exit 1
52327858
L
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
dcbc9df9 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
d7f09764
DN
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
d7f09764
DN
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
d7f09764
DN
364
365
366} # as_fn_mkdir_p
22e05272
JM
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
d7f09764
DN
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
22e05272
JM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
d7f09764
DN
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 415# script with STATUS, using 1 if that was 0.
d7f09764
DN
416as_fn_error ()
417{
22e05272
JM
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
d7f09764 422 fi
22e05272 423 $as_echo "$as_me: error: $2" >&2
d7f09764
DN
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
22e05272
JM
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
d7f09764
DN
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 534 # In both cases, we have to default to `cp -pR'.
d7f09764 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 536 as_ln_s='cp -pR'
d7f09764
DN
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
22e05272 540 as_ln_s='cp -pR'
d7f09764
DN
541 fi
542else
22e05272 543 as_ln_s='cp -pR'
d7f09764
DN
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
22e05272
JM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
d7f09764
DN
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
d7f09764
DN
564SHELL=${CONFIG_SHELL-/bin/sh}
565
d7f09764 566
22e05272
JM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
d7f09764
DN
569
570# Name of the host.
22e05272 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
d7f09764
DN
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='LTO plugin for ld'
589PACKAGE_TARNAME='lto-plugin'
590PACKAGE_VERSION='0.1'
591PACKAGE_STRING='LTO plugin for ld 0.1'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595# Factoring default headers for most tests.
596ac_includes_default="\
597#include <stdio.h>
598#ifdef HAVE_SYS_TYPES_H
599# include <sys/types.h>
600#endif
601#ifdef HAVE_SYS_STAT_H
602# include <sys/stat.h>
603#endif
604#ifdef STDC_HEADERS
605# include <stdlib.h>
606# include <stddef.h>
607#else
608# ifdef HAVE_STDLIB_H
609# include <stdlib.h>
610# endif
611#endif
612#ifdef HAVE_STRING_H
613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614# include <memory.h>
615# endif
616# include <string.h>
617#endif
618#ifdef HAVE_STRINGS_H
619# include <strings.h>
620#endif
621#ifdef HAVE_INTTYPES_H
622# include <inttypes.h>
623#endif
624#ifdef HAVE_STDINT_H
625# include <stdint.h>
626#endif
627#ifdef HAVE_UNISTD_H
628# include <unistd.h>
629#endif"
630
631ac_subst_vars='am__EXEEXT_FALSE
632am__EXEEXT_TRUE
633LTLIBOBJS
634LIBOBJS
635target_noncanonical
7de6ba7a 636lt_host_flags
d7f09764
DN
637OTOOL64
638OTOOL
639LIPO
640NMEDIT
641DSYMUTIL
d7f09764
DN
642RANLIB
643AR
644OBJDUMP
645LN_S
646NM
647ac_ct_DUMPBIN
648DUMPBIN
649LD
650FGREP
d7f09764 651SED
d7f09764 652LIBTOOL
3c36aa6b 653get_gcc_base_ver
85c64bbe
BS
654real_target_noncanonical
655accel_dir_suffix
43f4a446 656gcc_build_dir
5523efdf 657ac_lto_plugin_ldflags
f3016c47 658ac_lto_plugin_warn_cflags
dcbc9df9
UB
659EGREP
660GREP
661CPP
d7f09764
DN
662am__fastdepCC_FALSE
663am__fastdepCC_TRUE
664CCDEPMODE
ed9b4ae3 665am__nodep
d7f09764
DN
666AMDEPBACKSLASH
667AMDEP_FALSE
668AMDEP_TRUE
669am__quote
670am__include
671DEPDIR
672OBJEXT
673EXEEXT
674ac_ct_CC
675CPPFLAGS
676LDFLAGS
677CFLAGS
678CC
2a7a8388 679with_libiberty
03428d41
RG
680MAINT
681MAINTAINER_MODE_FALSE
682MAINTAINER_MODE_TRUE
22e05272
JM
683AM_BACKSLASH
684AM_DEFAULT_VERBOSITY
685AM_DEFAULT_V
686AM_V
d7f09764
DN
687am__untar
688am__tar
689AMTAR
690am__leading_dot
691SET_MAKE
692AWK
693mkdir_p
694MKDIR_P
695INSTALL_STRIP_PROGRAM
696STRIP
697install_sh
698MAKEINFO
699AUTOHEADER
700AUTOMAKE
701AUTOCONF
702ACLOCAL
703VERSION
704PACKAGE
705CYGPATH_W
706am__isrc
707INSTALL_DATA
708INSTALL_SCRIPT
709INSTALL_PROGRAM
710target_subdir
711host_subdir
712build_subdir
713build_libsubdir
73d5e770
L
714target_os
715target_vendor
716target_cpu
717target
718host_os
719host_vendor
720host_cpu
721host
d7f09764
DN
722build_os
723build_vendor
724build_cpu
725build
726target_alias
727host_alias
728build_alias
729LIBS
730ECHO_T
731ECHO_N
732ECHO_C
733DEFS
734mandir
735localedir
736libdir
737psdir
738pdfdir
739dvidir
740htmldir
741infodir
742docdir
743oldincludedir
744includedir
745localstatedir
746sharedstatedir
747sysconfdir
748datadir
749datarootdir
750libexecdir
751sbindir
752bindir
753program_transform_name
754prefix
755exec_prefix
756PACKAGE_URL
757PACKAGE_BUGREPORT
758PACKAGE_STRING
759PACKAGE_VERSION
760PACKAGE_TARNAME
761PACKAGE_NAME
762PATH_SEPARATOR
763SHELL'
764ac_subst_files=''
765ac_user_opts='
766enable_option_checking
767with_build_libsubdir
22e05272 768enable_silent_rules
03428d41 769enable_maintainer_mode
2a7a8388 770with_libiberty
d7f09764 771enable_dependency_tracking
4c0f4b0b 772enable_largefile
3c36aa6b 773with_gcc_major_version_only
d7f09764
DN
774enable_shared
775enable_static
776with_pic
777enable_fast_install
778with_gnu_ld
779enable_libtool_lock
d7f09764
DN
780'
781 ac_precious_vars='build_alias
782host_alias
783target_alias
784CC
785CFLAGS
786LDFLAGS
787LIBS
788CPPFLAGS
d7f09764
DN
789CPP'
790
791
792# Initialize some variables set by options.
793ac_init_help=
794ac_init_version=false
795ac_unrecognized_opts=
796ac_unrecognized_sep=
797# The variables have the same names as the options, with
798# dashes changed to underlines.
799cache_file=/dev/null
800exec_prefix=NONE
801no_create=
802no_recursion=
803prefix=NONE
804program_prefix=NONE
805program_suffix=NONE
806program_transform_name=s,x,x,
807silent=
808site=
809srcdir=
810verbose=
811x_includes=NONE
812x_libraries=NONE
813
814# Installation directory options.
815# These are left unexpanded so users can "make install exec_prefix=/foo"
816# and all the variables that are supposed to be based on exec_prefix
817# by default will actually change.
818# Use braces instead of parens because sh, perl, etc. also accept them.
819# (The list follows the same order as the GNU Coding Standards.)
820bindir='${exec_prefix}/bin'
821sbindir='${exec_prefix}/sbin'
822libexecdir='${exec_prefix}/libexec'
823datarootdir='${prefix}/share'
824datadir='${datarootdir}'
825sysconfdir='${prefix}/etc'
826sharedstatedir='${prefix}/com'
827localstatedir='${prefix}/var'
828includedir='${prefix}/include'
829oldincludedir='/usr/include'
830docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831infodir='${datarootdir}/info'
832htmldir='${docdir}'
833dvidir='${docdir}'
834pdfdir='${docdir}'
835psdir='${docdir}'
836libdir='${exec_prefix}/lib'
837localedir='${datarootdir}/locale'
838mandir='${datarootdir}/man'
839
840ac_prev=
841ac_dashdash=
842for ac_option
843do
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
847 ac_prev=
848 continue
849 fi
850
851 case $ac_option in
22e05272
JM
852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *=) ac_optarg= ;;
854 *) ac_optarg=yes ;;
d7f09764
DN
855 esac
856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
862
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
867
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
882
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
887
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 899 as_fn_error $? "invalid feature name: $ac_useropt"
d7f09764
DN
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904"enable_$ac_useropt"
905"*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
910
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
915
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
920
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 925 as_fn_error $? "invalid feature name: $ac_useropt"
d7f09764
DN
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930"enable_$ac_useropt"
931"*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
936
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
945
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
949
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
956
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
961
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
967
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
974
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
979
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
984
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
991
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
996
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1003
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1008
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1012
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1016
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1020
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1029
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1034
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1041
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1048
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1065
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1070
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1075
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1079
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
1084 sbindir=$ac_optarg ;;
1085
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
1095 sharedstatedir=$ac_optarg ;;
1096
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
1100 site=$ac_optarg ;;
1101
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1106
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1113
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1118
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1121
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1124
1125 -with-* | --with-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1129 as_fn_error $? "invalid package name: $ac_useropt"
d7f09764
DN
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134"with_$ac_useropt"
1135"*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=\$ac_optarg ;;
1140
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1145 as_fn_error $? "invalid package name: $ac_useropt"
d7f09764
DN
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150"with_$ac_useropt"
1151"*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
1156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1174
22e05272
JM
1175 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176Try \`$0 --help' for more information"
d7f09764
DN
1177 ;;
1178
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
d7f09764
DN
1185 esac
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1188
1189 *)
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
d7f09764
DN
1195 ;;
1196
1197 esac
1198done
1199
1200if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1202 as_fn_error $? "missing argument to $ac_option"
d7f09764
DN
1203fi
1204
1205if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
22e05272 1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
d7f09764
DN
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 esac
1211fi
1212
1213# Check all directory arguments for consistency.
1214for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1218do
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
22e05272 1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
d7f09764
DN
1232done
1233
1234# There might be people who depend on the old broken behavior: `$host'
1235# used to hold the argument of --host etc.
1236# FIXME: To remove some day.
1237build=$build_alias
1238host=$host_alias
1239target=$target_alias
1240
1241# FIXME: To remove some day.
1242if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
d7f09764
DN
1245 elif test "x$build_alias" != "x$host_alias"; then
1246 cross_compiling=yes
1247 fi
1248fi
1249
1250ac_tool_prefix=
1251test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253test "$silent" = yes && exec 6>/dev/null
1254
1255
1256ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257ac_ls_di=`ls -di .` &&
1258ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1259 as_fn_error $? "working directory cannot be determined"
d7f09764 1260test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1261 as_fn_error $? "pwd does not report name of working directory"
d7f09764
DN
1262
1263
1264# Find the source files, if location was not specified.
1265if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273$as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1294 fi
1295else
1296 ac_srcdir_defaulted=no
1297fi
1298if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
d7f09764
DN
1301fi
1302ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303ac_abs_confdir=`(
22e05272 1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
d7f09764
DN
1305 pwd)`
1306# When building in place, set srcdir=.
1307if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 srcdir=.
1309fi
1310# Remove unnecessary trailing slashes from srcdir.
1311# Double slashes in file names in object file debugging info
1312# mess up M-x gdb in Emacs.
1313case $srcdir in
1314*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315esac
1316for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321done
1322
1323#
1324# Report the --help message.
1325#
1326if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1329 cat <<_ACEOF
1330\`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1331
1332Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335VAR=VALUE. See below for descriptions of some of the useful variables.
1336
1337Defaults for the options are specified in brackets.
1338
1339Configuration:
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
22e05272 1344 -q, --quiet, --silent do not print \`checking ...' messages
d7f09764
DN
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349
1350Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 [PREFIX]
1355
1356By default, \`make install' will install all the files in
1357\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359for instance \`--prefix=\$HOME'.
1360
1361For better control, use the options below.
1362
1363Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/lto-plugin]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1383_ACEOF
1384
1385 cat <<\_ACEOF
1386
1387Program names:
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391
1392System types:
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
73d5e770 1395 --target=TARGET configure for building compilers for TARGET [HOST]
d7f09764
DN
1396_ACEOF
1397fi
1398
1399if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1402 esac
1403 cat <<\_ACEOF
1404
1405Optional Features:
1406 --disable-option-checking ignore unrecognized --enable/--with options
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
22e05272
JM
1409 --enable-silent-rules less verbose build output (undo: "make V=1")
1410 --disable-silent-rules verbose build output (undo: "make V=0")
1411 --enable-maintainer-mode
1412 enable make rules and dependencies not useful (and
1413 sometimes confusing) to the casual installer
1414 --enable-dependency-tracking
1415 do not reject slow dependency extractors
1416 --disable-dependency-tracking
1417 speeds up one-time build
4c0f4b0b 1418 --disable-largefile omit support for large files
d7f09764
DN
1419 --enable-shared[=PKGS] build shared libraries [default=yes]
1420 --enable-static[=PKGS] build static libraries [default=yes]
1421 --enable-fast-install[=PKGS]
1422 optimize for fast installation [default=yes]
1423 --disable-libtool-lock avoid locking (might break parallel builds)
d7f09764
DN
1424
1425Optional Packages:
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1428 --with-build-libsubdir=DIR Directory where to find libraries for build system
2a7a8388
TS
1429 --with-libiberty=PATH specify the directory where to find libiberty
1430 [../libiberty]
3c36aa6b
JJ
1431 --with-gcc-major-version-only
1432 use only GCC major number in filesystem paths
d7f09764
DN
1433 --with-pic try to use only PIC/non-PIC objects [default=use
1434 both]
1435 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1436
1437Some influential environment variables:
1438 CC C compiler command
1439 CFLAGS C compiler flags
1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1441 nonstandard directory <lib dir>
1442 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
d7f09764 1444 you have headers in a nonstandard directory <include dir>
d7f09764
DN
1445 CPP C preprocessor
1446
1447Use these variables to override the choices made by `configure' or to help
1448it to find libraries and programs with nonstandard names/locations.
1449
1450Report bugs to the package provider.
1451_ACEOF
1452ac_status=$?
1453fi
1454
1455if test "$ac_init_help" = "recursive"; then
1456 # If there are subdirs, report their specific --help.
1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1458 test -d "$ac_dir" ||
1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460 continue
1461 ac_builddir=.
1462
1463case "$ac_dir" in
1464.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465*)
1466 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467 # A ".." for each directory in $ac_dir_suffix.
1468 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469 case $ac_top_builddir_sub in
1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472 esac ;;
1473esac
1474ac_abs_top_builddir=$ac_pwd
1475ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476# for backward compatibility:
1477ac_top_builddir=$ac_top_build_prefix
1478
1479case $srcdir in
1480 .) # We are building in place.
1481 ac_srcdir=.
1482 ac_top_srcdir=$ac_top_builddir_sub
1483 ac_abs_top_srcdir=$ac_pwd ;;
1484 [\\/]* | ?:[\\/]* ) # Absolute name.
1485 ac_srcdir=$srcdir$ac_dir_suffix;
1486 ac_top_srcdir=$srcdir
1487 ac_abs_top_srcdir=$srcdir ;;
1488 *) # Relative name.
1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490 ac_top_srcdir=$ac_top_build_prefix$srcdir
1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492esac
1493ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494
1495 cd "$ac_dir" || { ac_status=$?; continue; }
1496 # Check for guested configure.
1497 if test -f "$ac_srcdir/configure.gnu"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500 elif test -f "$ac_srcdir/configure"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure" --help=recursive
1503 else
1504 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505 fi || ac_status=$?
1506 cd "$ac_pwd" || { ac_status=$?; break; }
1507 done
1508fi
1509
1510test -n "$ac_init_help" && exit $ac_status
1511if $ac_init_version; then
1512 cat <<\_ACEOF
1513LTO plugin for ld configure 0.1
22e05272 1514generated by GNU Autoconf 2.69
d7f09764 1515
22e05272 1516Copyright (C) 2012 Free Software Foundation, Inc.
d7f09764
DN
1517This configure script is free software; the Free Software Foundation
1518gives unlimited permission to copy, distribute and modify it.
1519_ACEOF
1520 exit
1521fi
1522
1523## ------------------------ ##
1524## Autoconf initialization. ##
1525## ------------------------ ##
1526
1527# ac_fn_c_try_compile LINENO
1528# --------------------------
1529# Try to compile conftest.$ac_ext, and return whether this succeeded.
1530ac_fn_c_try_compile ()
1531{
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 rm -f conftest.$ac_objext
1534 if { { ac_try="$ac_compile"
1535case "(($ac_try" in
1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1538esac
1539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540$as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_compile") 2>conftest.err
1542 ac_status=$?
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1547 fi
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } && {
1550 test -z "$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1552 } && test -s conftest.$ac_objext; then :
1553 ac_retval=0
1554else
1555 $as_echo "$as_me: failed program was:" >&5
1556sed 's/^/| /' conftest.$ac_ext >&5
1557
1558 ac_retval=1
1559fi
22e05272
JM
1560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561 as_fn_set_status $ac_retval
d7f09764
DN
1562
1563} # ac_fn_c_try_compile
1564
dcbc9df9
UB
1565# ac_fn_c_try_cpp LINENO
1566# ----------------------
1567# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1568ac_fn_c_try_cpp ()
d7f09764
DN
1569{
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
dcbc9df9 1571 if { { ac_try="$ac_cpp conftest.$ac_ext"
d7f09764
DN
1572case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575esac
1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577$as_echo "$ac_try_echo"; } >&5
dcbc9df9 1578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
d7f09764
DN
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1584 fi
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1586 test $ac_status = 0; } > conftest.i && {
dcbc9df9 1587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
d7f09764 1588 test ! -s conftest.err
d7f09764
DN
1589 }; then :
1590 ac_retval=0
1591else
1592 $as_echo "$as_me: failed program was:" >&5
1593sed 's/^/| /' conftest.$ac_ext >&5
1594
dcbc9df9 1595 ac_retval=1
d7f09764 1596fi
22e05272
JM
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 as_fn_set_status $ac_retval
d7f09764 1599
dcbc9df9 1600} # ac_fn_c_try_cpp
d7f09764 1601
dcbc9df9 1602# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
d7f09764 1603# -------------------------------------------------------
dcbc9df9
UB
1604# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1605# the include files in INCLUDES and setting the cache variable VAR
1606# accordingly.
1607ac_fn_c_check_header_mongrel ()
d7f09764
DN
1608{
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1610 if eval \${$3+:} false; then :
d7f09764
DN
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1612$as_echo_n "checking for $2... " >&6; }
22e05272 1613if eval \${$3+:} false; then :
d7f09764 1614 $as_echo_n "(cached) " >&6
dcbc9df9
UB
1615fi
1616eval ac_res=\$$3
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1618$as_echo "$ac_res" >&6; }
d7f09764 1619else
dcbc9df9
UB
1620 # Is the header compilable?
1621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1622$as_echo_n "checking $2 usability... " >&6; }
1623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f09764
DN
1624/* end confdefs.h. */
1625$4
1626#include <$2>
1627_ACEOF
1628if ac_fn_c_try_compile "$LINENO"; then :
dcbc9df9 1629 ac_header_compiler=yes
d7f09764 1630else
dcbc9df9 1631 ac_header_compiler=no
d7f09764
DN
1632fi
1633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dcbc9df9
UB
1634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1635$as_echo "$ac_header_compiler" >&6; }
1636
1637# Is the header present?
1638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1639$as_echo_n "checking $2 presence... " >&6; }
1640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641/* end confdefs.h. */
1642#include <$2>
1643_ACEOF
1644if ac_fn_c_try_cpp "$LINENO"; then :
1645 ac_header_preproc=yes
1646else
1647 ac_header_preproc=no
1648fi
22e05272 1649rm -f conftest.err conftest.i conftest.$ac_ext
dcbc9df9
UB
1650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1651$as_echo "$ac_header_preproc" >&6; }
1652
1653# So? What about this header?
1654case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1655 yes:no: )
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1657$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1659$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1660 ;;
1661 no:yes:* )
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1663$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1665$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1667$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1669$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1672 ;;
1673esac
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675$as_echo_n "checking for $2... " >&6; }
22e05272 1676if eval \${$3+:} false; then :
dcbc9df9
UB
1677 $as_echo_n "(cached) " >&6
1678else
1679 eval "$3=\$ac_header_compiler"
d7f09764
DN
1680fi
1681eval ac_res=\$$3
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683$as_echo "$ac_res" >&6; }
d7f09764 1684fi
22e05272 1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d7f09764 1686
dcbc9df9 1687} # ac_fn_c_check_header_mongrel
d7f09764
DN
1688
1689# ac_fn_c_try_run LINENO
1690# ----------------------
1691# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692# that executables *can* be run.
1693ac_fn_c_try_run ()
1694{
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_link"
1697case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>&5
1704 ac_status=$?
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1707 { { case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_try") 2>&5
1714 ac_status=$?
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; }; }; then :
1717 ac_retval=0
1718else
1719 $as_echo "$as_me: program exited with status $ac_status" >&5
1720 $as_echo "$as_me: failed program was:" >&5
1721sed 's/^/| /' conftest.$ac_ext >&5
1722
1723 ac_retval=$ac_status
1724fi
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
d7f09764
DN
1728
1729} # ac_fn_c_try_run
1730
dcbc9df9
UB
1731# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732# -------------------------------------------------------
1733# Tests whether HEADER exists and can be compiled using the include files in
1734# INCLUDES, setting the cache variable VAR accordingly.
1735ac_fn_c_check_header_compile ()
1736{
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739$as_echo_n "checking for $2... " >&6; }
22e05272 1740if eval \${$3+:} false; then :
dcbc9df9
UB
1741 $as_echo_n "(cached) " >&6
1742else
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744/* end confdefs.h. */
1745$4
1746#include <$2>
1747_ACEOF
1748if ac_fn_c_try_compile "$LINENO"; then :
1749 eval "$3=yes"
1750else
1751 eval "$3=no"
1752fi
1753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754fi
1755eval ac_res=\$$3
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757$as_echo "$ac_res" >&6; }
22e05272 1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
dcbc9df9
UB
1759
1760} # ac_fn_c_check_header_compile
1761
1762# ac_fn_c_try_link LINENO
1763# -----------------------
1764# Try to link conftest.$ac_ext, and return whether this succeeded.
1765ac_fn_c_try_link ()
1766{
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext conftest$ac_exeext
1769 if { { ac_try="$ac_link"
1770case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest$ac_exeext && {
1788 test "$cross_compiling" = yes ||
22e05272 1789 test -x conftest$ac_exeext
dcbc9df9
UB
1790 }; then :
1791 ac_retval=0
1792else
1793 $as_echo "$as_me: failed program was:" >&5
1794sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 ac_retval=1
1797fi
1798 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1799 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1800 # interfere with the next link command; also delete a directory that is
1801 # left behind by Apple's compiler. We do this before executing the actions.
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 as_fn_set_status $ac_retval
dcbc9df9
UB
1805
1806} # ac_fn_c_try_link
1807
d7f09764
DN
1808# ac_fn_c_check_func LINENO FUNC VAR
1809# ----------------------------------
1810# Tests whether FUNC exists, setting the cache variable VAR accordingly
1811ac_fn_c_check_func ()
1812{
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815$as_echo_n "checking for $2... " >&6; }
22e05272 1816if eval \${$3+:} false; then :
d7f09764
DN
1817 $as_echo_n "(cached) " >&6
1818else
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820/* end confdefs.h. */
1821/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1823#define $2 innocuous_$2
1824
1825/* System header to define __stub macros and hopefully few prototypes,
1826 which can conflict with char $2 (); below.
1827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1828 <limits.h> exists even on freestanding compilers. */
1829
1830#ifdef __STDC__
1831# include <limits.h>
1832#else
1833# include <assert.h>
1834#endif
1835
1836#undef $2
1837
1838/* Override any GCC internal prototype to avoid an error.
1839 Use char because int might match the return type of a GCC
1840 builtin and then its argument prototype would still apply. */
1841#ifdef __cplusplus
1842extern "C"
1843#endif
1844char $2 ();
1845/* The GNU C library defines this for functions which it implements
1846 to always fail with ENOSYS. Some functions are actually named
1847 something starting with __ and the normal name is an alias. */
1848#if defined __stub_$2 || defined __stub___$2
1849choke me
1850#endif
1851
1852int
1853main ()
1854{
1855return $2 ();
1856 ;
1857 return 0;
1858}
1859_ACEOF
1860if ac_fn_c_try_link "$LINENO"; then :
1861 eval "$3=yes"
1862else
1863 eval "$3=no"
1864fi
1865rm -f core conftest.err conftest.$ac_objext \
1866 conftest$ac_exeext conftest.$ac_ext
1867fi
1868eval ac_res=\$$3
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870$as_echo "$ac_res" >&6; }
22e05272 1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d7f09764
DN
1872
1873} # ac_fn_c_check_func
21750c78 1874
d19e0f01
DK
1875# ac_fn_c_find_intX_t LINENO BITS VAR
1876# -----------------------------------
1877# Finds a signed integer type with width BITS, setting cache variable VAR
1878# accordingly.
1879ac_fn_c_find_intX_t ()
1880{
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1883$as_echo_n "checking for int$2_t... " >&6; }
22e05272 1884if eval \${$3+:} false; then :
d19e0f01
DK
1885 $as_echo_n "(cached) " >&6
1886else
1887 eval "$3=no"
22e05272
JM
1888 # Order is important - never check a type that is potentially smaller
1889 # than half of the expected target width.
d19e0f01
DK
1890 for ac_type in int$2_t 'int' 'long int' \
1891 'long long int' 'short int' 'signed char'; do
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893/* end confdefs.h. */
1894$ac_includes_default
22e05272 1895 enum { N = $2 / 2 - 1 };
d19e0f01
DK
1896int
1897main ()
1898{
22e05272
JM
1899static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1900test_array [0] = 0;
1901return test_array [0];
d19e0f01
DK
1902
1903 ;
1904 return 0;
1905}
1906_ACEOF
1907if ac_fn_c_try_compile "$LINENO"; then :
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909/* end confdefs.h. */
1910$ac_includes_default
22e05272 1911 enum { N = $2 / 2 - 1 };
d19e0f01
DK
1912int
1913main ()
1914{
22e05272
JM
1915static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1916 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1917test_array [0] = 0;
1918return test_array [0];
d19e0f01
DK
1919
1920 ;
1921 return 0;
1922}
1923_ACEOF
1924if ac_fn_c_try_compile "$LINENO"; then :
1925
1926else
1927 case $ac_type in #(
1928 int$2_t) :
1929 eval "$3=yes" ;; #(
1930 *) :
1931 eval "$3=\$ac_type" ;;
1932esac
1933fi
1934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935fi
1936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22e05272 1937 if eval test \"x\$"$3"\" = x"no"; then :
d19e0f01
DK
1938
1939else
1940 break
1941fi
1942 done
1943fi
1944eval ac_res=\$$3
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946$as_echo "$ac_res" >&6; }
22e05272 1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d19e0f01
DK
1948
1949} # ac_fn_c_find_intX_t
1950
21750c78
RE
1951# ac_fn_c_find_uintX_t LINENO BITS VAR
1952# ------------------------------------
1953# Finds an unsigned integer type with width BITS, setting cache variable VAR
1954# accordingly.
1955ac_fn_c_find_uintX_t ()
1956{
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1959$as_echo_n "checking for uint$2_t... " >&6; }
22e05272 1960if eval \${$3+:} false; then :
21750c78
RE
1961 $as_echo_n "(cached) " >&6
1962else
1963 eval "$3=no"
22e05272
JM
1964 # Order is important - never check a type that is potentially smaller
1965 # than half of the expected target width.
21750c78
RE
1966 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1967 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969/* end confdefs.h. */
1970$ac_includes_default
1971int
1972main ()
1973{
22e05272
JM
1974static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1975test_array [0] = 0;
1976return test_array [0];
21750c78
RE
1977
1978 ;
1979 return 0;
1980}
1981_ACEOF
1982if ac_fn_c_try_compile "$LINENO"; then :
1983 case $ac_type in #(
1984 uint$2_t) :
1985 eval "$3=yes" ;; #(
1986 *) :
1987 eval "$3=\$ac_type" ;;
1988esac
1989fi
1990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22e05272 1991 if eval test \"x\$"$3"\" = x"no"; then :
21750c78
RE
1992
1993else
1994 break
1995fi
1996 done
1997fi
1998eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000$as_echo "$ac_res" >&6; }
22e05272 2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
21750c78
RE
2002
2003} # ac_fn_c_find_uintX_t
d7f09764
DN
2004cat >config.log <<_ACEOF
2005This file contains any messages produced by compilers while
2006running configure, to aid debugging if configure makes a mistake.
2007
2008It was created by LTO plugin for ld $as_me 0.1, which was
22e05272 2009generated by GNU Autoconf 2.69. Invocation command line was
d7f09764
DN
2010
2011 $ $0 $@
2012
2013_ACEOF
2014exec 5>>config.log
2015{
2016cat <<_ASUNAME
2017## --------- ##
2018## Platform. ##
2019## --------- ##
2020
2021hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2022uname -m = `(uname -m) 2>/dev/null || echo unknown`
2023uname -r = `(uname -r) 2>/dev/null || echo unknown`
2024uname -s = `(uname -s) 2>/dev/null || echo unknown`
2025uname -v = `(uname -v) 2>/dev/null || echo unknown`
2026
2027/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2028/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2029
2030/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2031/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2032/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2033/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2034/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2035/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2036/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2037
2038_ASUNAME
2039
2040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041for as_dir in $PATH
2042do
2043 IFS=$as_save_IFS
2044 test -z "$as_dir" && as_dir=.
2045 $as_echo "PATH: $as_dir"
2046 done
2047IFS=$as_save_IFS
2048
2049} >&5
2050
2051cat >&5 <<_ACEOF
2052
2053
2054## ----------- ##
2055## Core tests. ##
2056## ----------- ##
2057
2058_ACEOF
2059
2060
2061# Keep a trace of the command line.
2062# Strip out --no-create and --no-recursion so they do not pile up.
2063# Strip out --silent because we don't want to record it for future runs.
2064# Also quote any args containing shell meta-characters.
2065# Make two passes to allow for proper duplicate-argument suppression.
2066ac_configure_args=
2067ac_configure_args0=
2068ac_configure_args1=
2069ac_must_keep_next=false
2070for ac_pass in 1 2
2071do
2072 for ac_arg
2073 do
2074 case $ac_arg in
2075 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2077 | -silent | --silent | --silen | --sile | --sil)
2078 continue ;;
2079 *\'*)
2080 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2081 esac
2082 case $ac_pass in
2083 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2084 2)
2085 as_fn_append ac_configure_args1 " '$ac_arg'"
2086 if test $ac_must_keep_next = true; then
2087 ac_must_keep_next=false # Got value, back to normal.
2088 else
2089 case $ac_arg in
2090 *=* | --config-cache | -C | -disable-* | --disable-* \
2091 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2092 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2093 | -with-* | --with-* | -without-* | --without-* | --x)
2094 case "$ac_configure_args0 " in
2095 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2096 esac
2097 ;;
2098 -* ) ac_must_keep_next=true ;;
2099 esac
2100 fi
2101 as_fn_append ac_configure_args " '$ac_arg'"
2102 ;;
2103 esac
2104 done
2105done
2106{ ac_configure_args0=; unset ac_configure_args0;}
2107{ ac_configure_args1=; unset ac_configure_args1;}
2108
2109# When interrupted or exit'd, cleanup temporary files, and complete
2110# config.log. We remove comments because anyway the quotes in there
2111# would cause problems or look ugly.
2112# WARNING: Use '\'' to represent an apostrophe within the trap.
2113# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2114trap 'exit_status=$?
2115 # Save into config.log some information that might help in debugging.
2116 {
2117 echo
2118
22e05272 2119 $as_echo "## ---------------- ##
d7f09764 2120## Cache variables. ##
22e05272 2121## ---------------- ##"
d7f09764
DN
2122 echo
2123 # The following way of writing the cache mishandles newlines in values,
2124(
2125 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2126 eval ac_val=\$$ac_var
2127 case $ac_val in #(
2128 *${as_nl}*)
2129 case $ac_var in #(
2130 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2131$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2132 esac
2133 case $ac_var in #(
2134 _ | IFS | as_nl) ;; #(
2135 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2136 *) { eval $ac_var=; unset $ac_var;} ;;
2137 esac ;;
2138 esac
2139 done
2140 (set) 2>&1 |
2141 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2142 *${as_nl}ac_space=\ *)
2143 sed -n \
2144 "s/'\''/'\''\\\\'\'''\''/g;
2145 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2146 ;; #(
2147 *)
2148 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2149 ;;
2150 esac |
2151 sort
2152)
2153 echo
2154
22e05272 2155 $as_echo "## ----------------- ##
d7f09764 2156## Output variables. ##
22e05272 2157## ----------------- ##"
d7f09764
DN
2158 echo
2159 for ac_var in $ac_subst_vars
2160 do
2161 eval ac_val=\$$ac_var
2162 case $ac_val in
2163 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2164 esac
2165 $as_echo "$ac_var='\''$ac_val'\''"
2166 done | sort
2167 echo
2168
2169 if test -n "$ac_subst_files"; then
22e05272 2170 $as_echo "## ------------------- ##
d7f09764 2171## File substitutions. ##
22e05272 2172## ------------------- ##"
d7f09764
DN
2173 echo
2174 for ac_var in $ac_subst_files
2175 do
2176 eval ac_val=\$$ac_var
2177 case $ac_val in
2178 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2179 esac
2180 $as_echo "$ac_var='\''$ac_val'\''"
2181 done | sort
2182 echo
2183 fi
2184
2185 if test -s confdefs.h; then
22e05272 2186 $as_echo "## ----------- ##
d7f09764 2187## confdefs.h. ##
22e05272 2188## ----------- ##"
d7f09764
DN
2189 echo
2190 cat confdefs.h
2191 echo
2192 fi
2193 test "$ac_signal" != 0 &&
2194 $as_echo "$as_me: caught signal $ac_signal"
2195 $as_echo "$as_me: exit $exit_status"
2196 } >&5
2197 rm -f core *.core core.conftest.* &&
2198 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2199 exit $exit_status
2200' 0
2201for ac_signal in 1 2 13 15; do
2202 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2203done
2204ac_signal=0
2205
2206# confdefs.h avoids OS command line length limits that DEFS can exceed.
2207rm -f -r conftest* confdefs.h
2208
2209$as_echo "/* confdefs.h */" > confdefs.h
2210
2211# Predefined preprocessor variables.
2212
2213cat >>confdefs.h <<_ACEOF
2214#define PACKAGE_NAME "$PACKAGE_NAME"
2215_ACEOF
2216
2217cat >>confdefs.h <<_ACEOF
2218#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2219_ACEOF
2220
2221cat >>confdefs.h <<_ACEOF
2222#define PACKAGE_VERSION "$PACKAGE_VERSION"
2223_ACEOF
2224
2225cat >>confdefs.h <<_ACEOF
2226#define PACKAGE_STRING "$PACKAGE_STRING"
2227_ACEOF
2228
2229cat >>confdefs.h <<_ACEOF
2230#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2231_ACEOF
2232
2233cat >>confdefs.h <<_ACEOF
2234#define PACKAGE_URL "$PACKAGE_URL"
2235_ACEOF
2236
2237
2238# Let the site file select an alternate cache file if it wants to.
2239# Prefer an explicitly selected file to automatically selected ones.
2240ac_site_file1=NONE
2241ac_site_file2=NONE
2242if test -n "$CONFIG_SITE"; then
22e05272
JM
2243 # We do not want a PATH search for config.site.
2244 case $CONFIG_SITE in #((
2245 -*) ac_site_file1=./$CONFIG_SITE;;
2246 */*) ac_site_file1=$CONFIG_SITE;;
2247 *) ac_site_file1=./$CONFIG_SITE;;
2248 esac
d7f09764
DN
2249elif test "x$prefix" != xNONE; then
2250 ac_site_file1=$prefix/share/config.site
2251 ac_site_file2=$prefix/etc/config.site
2252else
2253 ac_site_file1=$ac_default_prefix/share/config.site
2254 ac_site_file2=$ac_default_prefix/etc/config.site
2255fi
2256for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2257do
2258 test "x$ac_site_file" = xNONE && continue
22e05272 2259 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
d7f09764
DN
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2261$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2262 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2263 . "$ac_site_file" \
2264 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2266as_fn_error $? "failed to load site script $ac_site_file
2267See \`config.log' for more details" "$LINENO" 5; }
d7f09764
DN
2268 fi
2269done
2270
2271if test -r "$cache_file"; then
22e05272
JM
2272 # Some versions of bash will fail to source /dev/null (special files
2273 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2274 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
d7f09764
DN
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2276$as_echo "$as_me: loading cache $cache_file" >&6;}
2277 case $cache_file in
2278 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2279 *) . "./$cache_file";;
2280 esac
2281 fi
2282else
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2284$as_echo "$as_me: creating cache $cache_file" >&6;}
2285 >$cache_file
2286fi
2287
2288# Check that the precious variables saved in the cache have kept the same
2289# value.
2290ac_cache_corrupted=false
2291for ac_var in $ac_precious_vars; do
2292 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2293 eval ac_new_set=\$ac_env_${ac_var}_set
2294 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2295 eval ac_new_val=\$ac_env_${ac_var}_value
2296 case $ac_old_set,$ac_new_set in
2297 set,)
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2299$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2300 ac_cache_corrupted=: ;;
2301 ,set)
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2303$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2304 ac_cache_corrupted=: ;;
2305 ,);;
2306 *)
2307 if test "x$ac_old_val" != "x$ac_new_val"; then
2308 # differences in whitespace do not lead to failure.
2309 ac_old_val_w=`echo x $ac_old_val`
2310 ac_new_val_w=`echo x $ac_new_val`
2311 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2313$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2314 ac_cache_corrupted=:
2315 else
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2317$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2318 eval $ac_var=\$ac_old_val
2319 fi
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2321$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2323$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2324 fi;;
2325 esac
2326 # Pass precious variables to config.status.
2327 if test "$ac_new_set" = set; then
2328 case $ac_new_val in
2329 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2330 *) ac_arg=$ac_var=$ac_new_val ;;
2331 esac
2332 case " $ac_configure_args " in
2333 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2334 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2335 esac
2336 fi
2337done
2338if $ac_cache_corrupted; then
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2342$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2343 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
d7f09764
DN
2344fi
2345## -------------------- ##
2346## Main body of script. ##
2347## -------------------- ##
2348
2349ac_ext=c
2350ac_cpp='$CPP $CPPFLAGS'
2351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2353ac_compiler_gnu=$ac_cv_c_compiler_gnu
2354
2355
2356
2357
2358
2359ac_aux_dir=
2360for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2361 if test -f "$ac_dir/install-sh"; then
2362 ac_aux_dir=$ac_dir
2363 ac_install_sh="$ac_aux_dir/install-sh -c"
2364 break
2365 elif test -f "$ac_dir/install.sh"; then
2366 ac_aux_dir=$ac_dir
2367 ac_install_sh="$ac_aux_dir/install.sh -c"
2368 break
2369 elif test -f "$ac_dir/shtool"; then
2370 ac_aux_dir=$ac_dir
2371 ac_install_sh="$ac_aux_dir/shtool install -c"
2372 break
2373 fi
d7f09764
DN
2374done
2375if test -z "$ac_aux_dir"; then
22e05272 2376 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
d7f09764
DN
2377fi
2378
2379# These three variables are undocumented and unsupported,
2380# and are intended to be withdrawn in a future Autoconf release.
2381# They can cause serious problems if a builder's source tree is in a directory
2382# whose full name contains unusual characters.
2383ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2384ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2385ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2386
2387
2388# Make sure we can run config.sub.
2389$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2390 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
d7f09764
DN
2391
2392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2393$as_echo_n "checking build system type... " >&6; }
22e05272 2394if ${ac_cv_build+:} false; then :
d7f09764
DN
2395 $as_echo_n "(cached) " >&6
2396else
2397 ac_build_alias=$build_alias
2398test "x$ac_build_alias" = x &&
2399 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2400test "x$ac_build_alias" = x &&
22e05272 2401 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
d7f09764 2402ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2403 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
d7f09764
DN
2404
2405fi
2406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2407$as_echo "$ac_cv_build" >&6; }
2408case $ac_cv_build in
2409*-*-*) ;;
22e05272 2410*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
d7f09764
DN
2411esac
2412build=$ac_cv_build
2413ac_save_IFS=$IFS; IFS='-'
2414set x $ac_cv_build
2415shift
2416build_cpu=$1
2417build_vendor=$2
2418shift; shift
2419# Remember, the first character of IFS is used to create $*,
2420# except with old shells:
2421build_os=$*
2422IFS=$ac_save_IFS
2423case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2424
2425
73d5e770
L
2426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2427$as_echo_n "checking host system type... " >&6; }
22e05272 2428if ${ac_cv_host+:} false; then :
73d5e770
L
2429 $as_echo_n "(cached) " >&6
2430else
2431 if test "x$host_alias" = x; then
2432 ac_cv_host=$ac_cv_build
2433else
2434 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2435 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
73d5e770
L
2436fi
2437
2438fi
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2440$as_echo "$ac_cv_host" >&6; }
2441case $ac_cv_host in
2442*-*-*) ;;
22e05272 2443*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
73d5e770
L
2444esac
2445host=$ac_cv_host
2446ac_save_IFS=$IFS; IFS='-'
2447set x $ac_cv_host
2448shift
2449host_cpu=$1
2450host_vendor=$2
2451shift; shift
2452# Remember, the first character of IFS is used to create $*,
2453# except with old shells:
2454host_os=$*
2455IFS=$ac_save_IFS
2456case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2457
2458
2459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2460$as_echo_n "checking target system type... " >&6; }
22e05272 2461if ${ac_cv_target+:} false; then :
73d5e770
L
2462 $as_echo_n "(cached) " >&6
2463else
2464 if test "x$target_alias" = x; then
2465 ac_cv_target=$ac_cv_host
2466else
2467 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2468 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
73d5e770
L
2469fi
2470
2471fi
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2473$as_echo "$ac_cv_target" >&6; }
2474case $ac_cv_target in
2475*-*-*) ;;
22e05272 2476*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
73d5e770
L
2477esac
2478target=$ac_cv_target
2479ac_save_IFS=$IFS; IFS='-'
2480set x $ac_cv_target
2481shift
2482target_cpu=$1
2483target_vendor=$2
2484shift; shift
2485# Remember, the first character of IFS is used to create $*,
2486# except with old shells:
2487target_os=$*
2488IFS=$ac_save_IFS
2489case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2490
2491
2492# The aliases save the names the user supplied, while $host etc.
2493# will get canonicalized.
2494test -n "$target_alias" &&
2495 test "$program_prefix$program_suffix$program_transform_name" = \
2496 NONENONEs,x,x, &&
2497 program_prefix=${target_alias}-
2498
d7f09764
DN
2499 case ${build_alias} in
2500 "") build_noncanonical=${build} ;;
2501 *) build_noncanonical=${build_alias} ;;
2502esac
2503
2504 case ${host_alias} in
2505 "") host_noncanonical=${build_noncanonical} ;;
2506 *) host_noncanonical=${host_alias} ;;
2507esac
2508
2509 case ${target_alias} in
2510 "") target_noncanonical=${host_noncanonical} ;;
2511 *) target_noncanonical=${target_alias} ;;
2512esac
2513
2514
2515# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2516# have matching libraries, they should use host libraries: Makefile.tpl
2517# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2518# However, they still use the build modules, because the corresponding
2519# host modules (e.g. bison) are only built for the host when bootstrap
2520# finishes. So:
2521# - build_subdir is where we find build modules, and never changes.
2522# - build_libsubdir is where we find build libraries, and can be overridden.
2523
2524# Prefix 'build-' so this never conflicts with target_subdir.
2525build_subdir="build-${build_noncanonical}"
2526
2527# Check whether --with-build-libsubdir was given.
2528if test "${with_build_libsubdir+set}" = set; then :
2529 withval=$with_build_libsubdir; build_libsubdir="$withval"
2530else
2531 build_libsubdir="$build_subdir"
2532fi
2533
2534# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2535if ( test $srcdir = . && test -d gcc ) \
2536 || test -d $srcdir/../host-${host_noncanonical}; then
2537 host_subdir="host-${host_noncanonical}"
2538else
2539 host_subdir=.
2540fi
2541# No prefix.
2542target_subdir=${target_noncanonical}
2543
22e05272 2544am__api_version='1.15'
d7f09764
DN
2545
2546# Find a good install program. We prefer a C program (faster),
2547# so one script is as good as another. But avoid the broken or
2548# incompatible versions:
2549# SysV /etc/install, /usr/sbin/install
2550# SunOS /usr/etc/install
2551# IRIX /sbin/install
2552# AIX /bin/install
2553# AmigaOS /C/install, which installs bootblocks on floppy discs
2554# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2555# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2556# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2557# OS/2's system install, which has a completely different semantic
2558# ./install, which can be erroneously created by make from ./install.sh.
2559# Reject install programs that cannot install multiple files.
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2561$as_echo_n "checking for a BSD-compatible install... " >&6; }
2562if test -z "$INSTALL"; then
22e05272 2563if ${ac_cv_path_install+:} false; then :
d7f09764
DN
2564 $as_echo_n "(cached) " >&6
2565else
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567for as_dir in $PATH
2568do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 # Account for people who put trailing slashes in PATH elements.
2572case $as_dir/ in #((
2573 ./ | .// | /[cC]/* | \
2574 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2575 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2576 /usr/ucb/* ) ;;
2577 *)
2578 # OSF1 and SCO ODT 3.0 have their own names for install.
2579 # Don't use installbsd from OSF since it installs stuff as root
2580 # by default.
2581 for ac_prog in ginstall scoinst install; do
2582 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2583 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d7f09764
DN
2584 if test $ac_prog = install &&
2585 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2586 # AIX install. It has an incompatible calling convention.
2587 :
2588 elif test $ac_prog = install &&
2589 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2590 # program-specific install script used by HP pwplus--don't use.
2591 :
2592 else
2593 rm -rf conftest.one conftest.two conftest.dir
2594 echo one > conftest.one
2595 echo two > conftest.two
2596 mkdir conftest.dir
2597 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2598 test -s conftest.one && test -s conftest.two &&
2599 test -s conftest.dir/conftest.one &&
2600 test -s conftest.dir/conftest.two
2601 then
2602 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2603 break 3
2604 fi
2605 fi
2606 fi
2607 done
2608 done
2609 ;;
2610esac
2611
2612 done
2613IFS=$as_save_IFS
2614
2615rm -rf conftest.one conftest.two conftest.dir
2616
2617fi
2618 if test "${ac_cv_path_install+set}" = set; then
2619 INSTALL=$ac_cv_path_install
2620 else
2621 # As a last resort, use the slow shell script. Don't cache a
2622 # value for INSTALL within a source directory, because that will
2623 # break other packages using the cache if that directory is
2624 # removed, or if the value is a relative name.
2625 INSTALL=$ac_install_sh
2626 fi
2627fi
2628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2629$as_echo "$INSTALL" >&6; }
2630
2631# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2632# It thinks the first close brace ends the variable substitution.
2633test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2634
2635test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2636
2637test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2638
2639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2640$as_echo_n "checking whether build environment is sane... " >&6; }
d7f09764
DN
2641# Reject unsafe characters in $srcdir or the absolute working directory
2642# name. Accept space and tab only in the latter.
2643am_lf='
2644'
2645case `pwd` in
2646 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 2647 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
d7f09764
DN
2648esac
2649case $srcdir in
2650 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 2651 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
d7f09764
DN
2652esac
2653
22e05272 2654# Do 'set' in a subshell so we don't clobber the current shell's
d7f09764
DN
2655# arguments. Must try -L first in case configure is actually a
2656# symlink; some systems play weird games with the mod time of symlinks
2657# (eg FreeBSD returns the mod time of the symlink's containing
2658# directory).
2659if (
22e05272
JM
2660 am_has_slept=no
2661 for am_try in 1 2; do
2662 echo "timestamp, slept: $am_has_slept" > conftest.file
2663 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2664 if test "$*" = "X"; then
2665 # -L didn't work.
2666 set X `ls -t "$srcdir/configure" conftest.file`
2667 fi
2668 if test "$*" != "X $srcdir/configure conftest.file" \
2669 && test "$*" != "X conftest.file $srcdir/configure"; then
2670
2671 # If neither matched, then we have a broken ls. This can happen
2672 # if, for instance, CONFIG_SHELL is bash and it inherits a
2673 # broken ls alias from the environment. This has actually
2674 # happened. Such a system could not be considered "sane".
2675 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2676 alias in your environment" "$LINENO" 5
2677 fi
2678 if test "$2" = conftest.file || test $am_try -eq 2; then
2679 break
2680 fi
2681 # Just in case.
2682 sleep 1
2683 am_has_slept=yes
2684 done
d7f09764
DN
2685 test "$2" = conftest.file
2686 )
2687then
2688 # Ok.
2689 :
2690else
22e05272 2691 as_fn_error $? "newly created file is older than distributed files!
d7f09764
DN
2692Check your system clock" "$LINENO" 5
2693fi
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2695$as_echo "yes" >&6; }
22e05272
JM
2696# If we didn't sleep, we still need to ensure time stamps of config.status and
2697# generated files are strictly newer.
2698am_sleep_pid=
2699if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2700 ( sleep 1 ) &
2701 am_sleep_pid=$!
2702fi
2703
2704rm -f conftest.file
2705
d7f09764
DN
2706test "$program_prefix" != NONE &&
2707 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2708# Use a double $ so make ignores it.
2709test "$program_suffix" != NONE &&
2710 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2711# Double any \ or $.
2712# By default was `s,x,x', remove it if useless.
2713ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2714program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2715
22e05272
JM
2716# Expand $ac_aux_dir to an absolute path.
2717am_aux_dir=`cd "$ac_aux_dir" && pwd`
d7f09764
DN
2718
2719if test x"${MISSING+set}" != xset; then
2720 case $am_aux_dir in
2721 *\ * | *\ *)
2722 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2723 *)
2724 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2725 esac
2726fi
2727# Use eval to expand $SHELL
22e05272
JM
2728if eval "$MISSING --is-lightweight"; then
2729 am_missing_run="$MISSING "
d7f09764
DN
2730else
2731 am_missing_run=
22e05272
JM
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2733$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
d7f09764
DN
2734fi
2735
22e05272 2736if test x"${install_sh+set}" != xset; then
d7f09764
DN
2737 case $am_aux_dir in
2738 *\ * | *\ *)
2739 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2740 *)
2741 install_sh="\${SHELL} $am_aux_dir/install-sh"
2742 esac
2743fi
2744
22e05272
JM
2745# Installed binaries are usually stripped using 'strip' when the user
2746# run "make install-strip". However 'strip' might not be the right
d7f09764 2747# tool to use in cross-compilation environments, therefore Automake
22e05272 2748# will honor the 'STRIP' environment variable to overrule this program.
d7f09764
DN
2749if test "$cross_compiling" != no; then
2750 if test -n "$ac_tool_prefix"; then
2751 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2752set dummy ${ac_tool_prefix}strip; ac_word=$2
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2755if ${ac_cv_prog_STRIP+:} false; then :
d7f09764
DN
2756 $as_echo_n "(cached) " >&6
2757else
2758 if test -n "$STRIP"; then
2759 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2760else
2761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762for as_dir in $PATH
2763do
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
2768 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 break 2
2771 fi
2772done
2773 done
2774IFS=$as_save_IFS
2775
2776fi
2777fi
2778STRIP=$ac_cv_prog_STRIP
2779if test -n "$STRIP"; then
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2781$as_echo "$STRIP" >&6; }
2782else
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784$as_echo "no" >&6; }
2785fi
2786
2787
2788fi
2789if test -z "$ac_cv_prog_STRIP"; then
2790 ac_ct_STRIP=$STRIP
2791 # Extract the first word of "strip", so it can be a program name with args.
2792set dummy strip; ac_word=$2
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2795if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
d7f09764
DN
2796 $as_echo_n "(cached) " >&6
2797else
2798 if test -n "$ac_ct_STRIP"; then
2799 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2800else
2801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802for as_dir in $PATH
2803do
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
2808 ac_cv_prog_ac_ct_STRIP="strip"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2811 fi
2812done
2813 done
2814IFS=$as_save_IFS
2815
2816fi
2817fi
2818ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2819if test -n "$ac_ct_STRIP"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2821$as_echo "$ac_ct_STRIP" >&6; }
2822else
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824$as_echo "no" >&6; }
2825fi
2826
2827 if test "x$ac_ct_STRIP" = x; then
2828 STRIP=":"
2829 else
2830 case $cross_compiling:$ac_tool_warned in
2831yes:)
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2834ac_tool_warned=yes ;;
2835esac
2836 STRIP=$ac_ct_STRIP
2837 fi
2838else
2839 STRIP="$ac_cv_prog_STRIP"
2840fi
2841
2842fi
2843INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2844
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2846$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2847if test -z "$MKDIR_P"; then
22e05272 2848 if ${ac_cv_path_mkdir+:} false; then :
d7f09764
DN
2849 $as_echo_n "(cached) " >&6
2850else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2853do
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
2856 for ac_prog in mkdir gmkdir; do
2857 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2858 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
d7f09764
DN
2859 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2860 'mkdir (GNU coreutils) '* | \
2861 'mkdir (coreutils) '* | \
2862 'mkdir (fileutils) '4.1*)
2863 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2864 break 3;;
2865 esac
2866 done
2867 done
2868 done
2869IFS=$as_save_IFS
2870
2871fi
2872
22e05272 2873 test -d ./--version && rmdir ./--version
d7f09764
DN
2874 if test "${ac_cv_path_mkdir+set}" = set; then
2875 MKDIR_P="$ac_cv_path_mkdir -p"
2876 else
2877 # As a last resort, use the slow shell script. Don't cache a
2878 # value for MKDIR_P within a source directory, because that will
2879 # break other packages using the cache if that directory is
2880 # removed, or if the value is a relative name.
d7f09764
DN
2881 MKDIR_P="$ac_install_sh -d"
2882 fi
2883fi
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2885$as_echo "$MKDIR_P" >&6; }
2886
d7f09764
DN
2887for ac_prog in gawk mawk nawk awk
2888do
2889 # Extract the first word of "$ac_prog", so it can be a program name with args.
2890set dummy $ac_prog; ac_word=$2
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2893if ${ac_cv_prog_AWK+:} false; then :
d7f09764
DN
2894 $as_echo_n "(cached) " >&6
2895else
2896 if test -n "$AWK"; then
2897 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2898else
2899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900for as_dir in $PATH
2901do
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
2906 ac_cv_prog_AWK="$ac_prog"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2909 fi
2910done
2911 done
2912IFS=$as_save_IFS
2913
2914fi
2915fi
2916AWK=$ac_cv_prog_AWK
2917if test -n "$AWK"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2919$as_echo "$AWK" >&6; }
2920else
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922$as_echo "no" >&6; }
2923fi
2924
2925
2926 test -n "$AWK" && break
2927done
2928
2929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2930$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2931set x ${MAKE-make}
2932ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 2933if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
d7f09764
DN
2934 $as_echo_n "(cached) " >&6
2935else
2936 cat >conftest.make <<\_ACEOF
2937SHELL = /bin/sh
2938all:
2939 @echo '@@@%%%=$(MAKE)=@@@%%%'
2940_ACEOF
22e05272 2941# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
d7f09764
DN
2942case `${MAKE-make} -f conftest.make 2>/dev/null` in
2943 *@@@%%%=?*=@@@%%%*)
2944 eval ac_cv_prog_make_${ac_make}_set=yes;;
2945 *)
2946 eval ac_cv_prog_make_${ac_make}_set=no;;
2947esac
2948rm -f conftest.make
2949fi
2950if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2952$as_echo "yes" >&6; }
2953 SET_MAKE=
2954else
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956$as_echo "no" >&6; }
2957 SET_MAKE="MAKE=${MAKE-make}"
2958fi
2959
2960rm -rf .tst 2>/dev/null
2961mkdir .tst 2>/dev/null
2962if test -d .tst; then
2963 am__leading_dot=.
2964else
2965 am__leading_dot=_
2966fi
2967rmdir .tst 2>/dev/null
2968
22e05272
JM
2969# Check whether --enable-silent-rules was given.
2970if test "${enable_silent_rules+set}" = set; then :
2971 enableval=$enable_silent_rules;
2972fi
2973
2974case $enable_silent_rules in # (((
2975 yes) AM_DEFAULT_VERBOSITY=0;;
2976 no) AM_DEFAULT_VERBOSITY=1;;
2977 *) AM_DEFAULT_VERBOSITY=1;;
2978esac
2979am_make=${MAKE-make}
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2981$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2982if ${am_cv_make_support_nested_variables+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984else
2985 if $as_echo 'TRUE=$(BAR$(V))
2986BAR0=false
2987BAR1=true
2988V=1
2989am__doit:
2990 @$(TRUE)
2991.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2992 am_cv_make_support_nested_variables=yes
2993else
2994 am_cv_make_support_nested_variables=no
2995fi
2996fi
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2998$as_echo "$am_cv_make_support_nested_variables" >&6; }
2999if test $am_cv_make_support_nested_variables = yes; then
3000 AM_V='$(V)'
3001 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3002else
3003 AM_V=$AM_DEFAULT_VERBOSITY
3004 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3005fi
3006AM_BACKSLASH='\'
3007
d7f09764
DN
3008if test "`cd $srcdir && pwd`" != "`pwd`"; then
3009 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3010 # is not polluted with repeated "-I."
3011 am__isrc=' -I$(srcdir)'
3012 # test to see if srcdir already configured
3013 if test -f $srcdir/config.status; then
22e05272 3014 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
d7f09764
DN
3015 fi
3016fi
3017
3018# test whether we have cygpath
3019if test -z "$CYGPATH_W"; then
3020 if (cygpath --version) >/dev/null 2>/dev/null; then
3021 CYGPATH_W='cygpath -w'
3022 else
3023 CYGPATH_W=echo
3024 fi
3025fi
3026
3027
3028# Define the identity of the package.
3029 PACKAGE='lto-plugin'
3030 VERSION='0.1'
3031
3032
3033cat >>confdefs.h <<_ACEOF
3034#define PACKAGE "$PACKAGE"
3035_ACEOF
3036
3037
3038cat >>confdefs.h <<_ACEOF
3039#define VERSION "$VERSION"
3040_ACEOF
3041
3042# Some tools Automake needs.
3043
3044ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3045
3046
3047AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3048
3049
3050AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3051
3052
3053AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3054
3055
3056MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3057
22e05272
JM
3058# For better backward compatibility. To be removed once Automake 1.9.x
3059# dies out for good. For more background, see:
3060# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3061# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3062mkdir_p='$(MKDIR_P)'
3063
3064# We need awk for the "check" target (and possibly the TAP driver). The
3065# system "awk" is bad on some platforms.
ed9b4ae3
MH
3066# Always define AMTAR for backward compatibility. Yes, it's still used
3067# in the wild :-( We should find a proper way to deprecate it ...
3068AMTAR='$${TAR-tar}'
d7f09764 3069
22e05272
JM
3070
3071# We'll loop over all known methods to create a tar archive until one works.
3072_am_tools='gnutar pax cpio none'
3073
ed9b4ae3 3074am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d7f09764
DN
3075
3076
3077
3078
3079
03428d41 3080
22e05272
JM
3081# POSIX will say in a future version that running "rm -f" with no argument
3082# is OK; and we want to be able to make that assumption in our Makefile
3083# recipes. So use an aggressive probe to check that the usage we want is
3084# actually supported "in the wild" to an acceptable degree.
3085# See automake bug#10828.
3086# To make any issue more visible, cause the running configure to be aborted
3087# by default if the 'rm' program in use doesn't match our expectations; the
3088# user can still override this though.
3089if rm -f && rm -fr && rm -rf; then : OK; else
3090 cat >&2 <<'END'
3091Oops!
3092
3093Your 'rm' program seems unable to run without file operands specified
3094on the command line, even when the '-f' option is present. This is contrary
3095to the behaviour of most rm programs out there, and not conforming with
3096the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3097
3098Please tell bug-automake@gnu.org about your system, including the value
3099of your $PATH and any error possibly output before this message. This
3100can help us improve future automake versions.
3101
3102END
3103 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3104 echo 'Configuration will proceed anyway, since you have set the' >&2
3105 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3106 echo >&2
3107 else
3108 cat >&2 <<'END'
3109Aborting the configuration process, to ensure you take notice of the issue.
3110
3111You can download and install GNU coreutils to get an 'rm' implementation
3112that behaves properly: <http://www.gnu.org/software/coreutils/>.
3113
3114If you want to complete the configuration process using your problematic
3115'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3116to "yes", and re-run configure.
3117
3118END
3119 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3120 fi
3121fi
3122
3123
03428d41
RG
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3125$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3126 # Check whether --enable-maintainer-mode was given.
3127if test "${enable_maintainer_mode+set}" = set; then :
3128 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3129else
3130 USE_MAINTAINER_MODE=no
3131fi
3132
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3134$as_echo "$USE_MAINTAINER_MODE" >&6; }
3135 if test $USE_MAINTAINER_MODE = yes; then
3136 MAINTAINER_MODE_TRUE=
3137 MAINTAINER_MODE_FALSE='#'
3138else
3139 MAINTAINER_MODE_TRUE='#'
3140 MAINTAINER_MODE_FALSE=
3141fi
3142
3143 MAINT=$MAINTAINER_MODE_TRUE
3144
3145
2a7a8388
TS
3146
3147# Check whether --with-libiberty was given.
3148if test "${with_libiberty+set}" = set; then :
3149 withval=$with_libiberty;
3150else
3151 with_libiberty=../libiberty
3152fi
3153
3154
dcbc9df9
UB
3155DEPDIR="${am__leading_dot}deps"
3156
3157ac_config_commands="$ac_config_commands depfiles"
3158
3159
3160am_make=${MAKE-make}
3161cat > confinc << 'END'
3162am__doit:
3163 @echo this is the am__doit target
3164.PHONY: am__doit
3165END
3166# If we don't find an include directive, just comment out the code.
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3168$as_echo_n "checking for style of include used by $am_make... " >&6; }
3169am__include="#"
3170am__quote=
3171_am_result=none
3172# First try GNU make style include.
3173echo "include confinc" > confmf
22e05272 3174# Ignore all kinds of additional output from 'make'.
dcbc9df9
UB
3175case `$am_make -s -f confmf 2> /dev/null` in #(
3176*the\ am__doit\ target*)
3177 am__include=include
3178 am__quote=
3179 _am_result=GNU
3180 ;;
3181esac
3182# Now try BSD make style include.
3183if test "$am__include" = "#"; then
3184 echo '.include "confinc"' > confmf
3185 case `$am_make -s -f confmf 2> /dev/null` in #(
3186 *the\ am__doit\ target*)
3187 am__include=.include
3188 am__quote="\""
3189 _am_result=BSD
3190 ;;
3191 esac
3192fi
3193
3194
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3196$as_echo "$_am_result" >&6; }
3197rm -f confinc confmf
3198
3199# Check whether --enable-dependency-tracking was given.
3200if test "${enable_dependency_tracking+set}" = set; then :
3201 enableval=$enable_dependency_tracking;
3202fi
3203
3204if test "x$enable_dependency_tracking" != xno; then
3205 am_depcomp="$ac_aux_dir/depcomp"
3206 AMDEPBACKSLASH='\'
3207 am__nodep='_no'
3208fi
3209 if test "x$enable_dependency_tracking" != xno; then
3210 AMDEP_TRUE=
3211 AMDEP_FALSE='#'
3212else
3213 AMDEP_TRUE='#'
3214 AMDEP_FALSE=
3215fi
3216
3217
d7f09764
DN
3218ac_ext=c
3219ac_cpp='$CPP $CPPFLAGS'
3220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3222ac_compiler_gnu=$ac_cv_c_compiler_gnu
3223if test -n "$ac_tool_prefix"; then
3224 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3225set dummy ${ac_tool_prefix}gcc; ac_word=$2
3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3228if ${ac_cv_prog_CC+:} false; then :
d7f09764
DN
3229 $as_echo_n "(cached) " >&6
3230else
3231 if test -n "$CC"; then
3232 ac_cv_prog_CC="$CC" # Let the user override the test.
3233else
3234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235for as_dir in $PATH
3236do
3237 IFS=$as_save_IFS
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
3241 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243 break 2
3244 fi
3245done
3246 done
3247IFS=$as_save_IFS
3248
3249fi
3250fi
3251CC=$ac_cv_prog_CC
3252if test -n "$CC"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254$as_echo "$CC" >&6; }
3255else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257$as_echo "no" >&6; }
3258fi
3259
3260
3261fi
3262if test -z "$ac_cv_prog_CC"; then
3263 ac_ct_CC=$CC
3264 # Extract the first word of "gcc", so it can be a program name with args.
3265set dummy gcc; ac_word=$2
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3268if ${ac_cv_prog_ac_ct_CC+:} false; then :
d7f09764
DN
3269 $as_echo_n "(cached) " >&6
3270else
3271 if test -n "$ac_ct_CC"; then
3272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3273else
3274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275for as_dir in $PATH
3276do
3277 IFS=$as_save_IFS
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
3281 ac_cv_prog_ac_ct_CC="gcc"
3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 break 2
3284 fi
3285done
3286 done
3287IFS=$as_save_IFS
3288
3289fi
3290fi
3291ac_ct_CC=$ac_cv_prog_ac_ct_CC
3292if test -n "$ac_ct_CC"; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3294$as_echo "$ac_ct_CC" >&6; }
3295else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297$as_echo "no" >&6; }
3298fi
3299
3300 if test "x$ac_ct_CC" = x; then
3301 CC=""
3302 else
3303 case $cross_compiling:$ac_tool_warned in
3304yes:)
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3307ac_tool_warned=yes ;;
3308esac
3309 CC=$ac_ct_CC
3310 fi
3311else
3312 CC="$ac_cv_prog_CC"
3313fi
3314
3315if test -z "$CC"; then
3316 if test -n "$ac_tool_prefix"; then
3317 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3318set dummy ${ac_tool_prefix}cc; ac_word=$2
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3321if ${ac_cv_prog_CC+:} false; then :
d7f09764
DN
3322 $as_echo_n "(cached) " >&6
3323else
3324 if test -n "$CC"; then
3325 ac_cv_prog_CC="$CC" # Let the user override the test.
3326else
3327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328for as_dir in $PATH
3329do
3330 IFS=$as_save_IFS
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
3334 ac_cv_prog_CC="${ac_tool_prefix}cc"
3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 break 2
3337 fi
3338done
3339 done
3340IFS=$as_save_IFS
3341
3342fi
3343fi
3344CC=$ac_cv_prog_CC
3345if test -n "$CC"; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3347$as_echo "$CC" >&6; }
3348else
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350$as_echo "no" >&6; }
3351fi
3352
3353
3354 fi
3355fi
3356if test -z "$CC"; then
3357 # Extract the first word of "cc", so it can be a program name with args.
3358set dummy cc; ac_word=$2
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3361if ${ac_cv_prog_CC+:} false; then :
d7f09764
DN
3362 $as_echo_n "(cached) " >&6
3363else
3364 if test -n "$CC"; then
3365 ac_cv_prog_CC="$CC" # Let the user override the test.
3366else
3367 ac_prog_rejected=no
3368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369for as_dir in $PATH
3370do
3371 IFS=$as_save_IFS
3372 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
3375 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3376 ac_prog_rejected=yes
3377 continue
3378 fi
3379 ac_cv_prog_CC="cc"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 break 2
3382 fi
3383done
3384 done
3385IFS=$as_save_IFS
3386
3387if test $ac_prog_rejected = yes; then
3388 # We found a bogon in the path, so make sure we never use it.
3389 set dummy $ac_cv_prog_CC
3390 shift
3391 if test $# != 0; then
3392 # We chose a different compiler from the bogus one.
3393 # However, it has the same basename, so the bogon will be chosen
3394 # first if we set CC to just the basename; use the full file name.
3395 shift
3396 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3397 fi
3398fi
3399fi
3400fi
3401CC=$ac_cv_prog_CC
3402if test -n "$CC"; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3404$as_echo "$CC" >&6; }
3405else
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407$as_echo "no" >&6; }
3408fi
3409
3410
3411fi
3412if test -z "$CC"; then
3413 if test -n "$ac_tool_prefix"; then
3414 for ac_prog in cl.exe
3415 do
3416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3417set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3420if ${ac_cv_prog_CC+:} false; then :
d7f09764
DN
3421 $as_echo_n "(cached) " >&6
3422else
3423 if test -n "$CC"; then
3424 ac_cv_prog_CC="$CC" # Let the user override the test.
3425else
3426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427for as_dir in $PATH
3428do
3429 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
3433 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 break 2
3436 fi
3437done
3438 done
3439IFS=$as_save_IFS
3440
3441fi
3442fi
3443CC=$ac_cv_prog_CC
3444if test -n "$CC"; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3446$as_echo "$CC" >&6; }
3447else
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449$as_echo "no" >&6; }
3450fi
3451
3452
3453 test -n "$CC" && break
3454 done
3455fi
3456if test -z "$CC"; then
3457 ac_ct_CC=$CC
3458 for ac_prog in cl.exe
3459do
3460 # Extract the first word of "$ac_prog", so it can be a program name with args.
3461set dummy $ac_prog; ac_word=$2
3462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3464if ${ac_cv_prog_ac_ct_CC+:} false; then :
d7f09764
DN
3465 $as_echo_n "(cached) " >&6
3466else
3467 if test -n "$ac_ct_CC"; then
3468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3469else
3470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471for as_dir in $PATH
3472do
3473 IFS=$as_save_IFS
3474 test -z "$as_dir" && as_dir=.
3475 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
3477 ac_cv_prog_ac_ct_CC="$ac_prog"
3478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3479 break 2
3480 fi
3481done
3482 done
3483IFS=$as_save_IFS
3484
3485fi
3486fi
3487ac_ct_CC=$ac_cv_prog_ac_ct_CC
3488if test -n "$ac_ct_CC"; then
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3490$as_echo "$ac_ct_CC" >&6; }
3491else
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493$as_echo "no" >&6; }
3494fi
3495
3496
3497 test -n "$ac_ct_CC" && break
3498done
3499
3500 if test "x$ac_ct_CC" = x; then
3501 CC=""
3502 else
3503 case $cross_compiling:$ac_tool_warned in
3504yes:)
3505{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3507ac_tool_warned=yes ;;
3508esac
3509 CC=$ac_ct_CC
3510 fi
3511fi
3512
3513fi
3514
3515
3516test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3518as_fn_error $? "no acceptable C compiler found in \$PATH
3519See \`config.log' for more details" "$LINENO" 5; }
d7f09764
DN
3520
3521# Provide some information about the compiler.
3522$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3523set X $ac_compile
3524ac_compiler=$2
3525for ac_option in --version -v -V -qversion; do
3526 { { ac_try="$ac_compiler $ac_option >&5"
3527case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530esac
3531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532$as_echo "$ac_try_echo"; } >&5
3533 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3534 ac_status=$?
3535 if test -s conftest.err; then
3536 sed '10a\
3537... rest of stderr output deleted ...
3538 10q' conftest.err >conftest.er1
3539 cat conftest.er1 >&5
d7f09764 3540 fi
22e05272 3541 rm -f conftest.er1 conftest.err
d7f09764
DN
3542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543 test $ac_status = 0; }
3544done
3545
3546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547/* end confdefs.h. */
3548
3549int
3550main ()
3551{
3552
3553 ;
3554 return 0;
3555}
3556_ACEOF
3557ac_clean_files_save=$ac_clean_files
22e05272 3558ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d7f09764
DN
3559# Try to create an executable without -o first, disregard a.out.
3560# It will help us diagnose broken compilers, and finding out an intuition
3561# of exeext.
22e05272
JM
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3563$as_echo_n "checking whether the C compiler works... " >&6; }
d7f09764
DN
3564ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3565
3566# The possible output files:
3567ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3568
3569ac_rmfiles=
3570for ac_file in $ac_files
3571do
3572 case $ac_file in
3573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3574 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3575 esac
3576done
3577rm -f $ac_rmfiles
3578
3579if { { ac_try="$ac_link_default"
3580case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583esac
3584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585$as_echo "$ac_try_echo"; } >&5
3586 (eval "$ac_link_default") 2>&5
3587 ac_status=$?
3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589 test $ac_status = 0; }; then :
3590 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3591# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3592# in a Makefile. We should not override ac_cv_exeext if it was cached,
3593# so that the user can short-circuit this test for compilers unknown to
3594# Autoconf.
3595for ac_file in $ac_files ''
3596do
3597 test -f "$ac_file" || continue
3598 case $ac_file in
3599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3600 ;;
3601 [ab].out )
3602 # We found the default executable, but exeext='' is most
3603 # certainly right.
3604 break;;
3605 *.* )
3606 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3607 then :; else
3608 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3609 fi
3610 # We set ac_cv_exeext here because the later test for it is not
3611 # safe: cross compilers may not add the suffix if given an `-o'
3612 # argument, so we may need to know it at that point already.
3613 # Even if this section looks crufty: it has the advantage of
3614 # actually working.
3615 break;;
3616 * )
3617 break;;
3618 esac
3619done
3620test "$ac_cv_exeext" = no && ac_cv_exeext=
3621
3622else
3623 ac_file=''
3624fi
d7f09764 3625if test -z "$ac_file"; then :
22e05272
JM
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627$as_echo "no" >&6; }
3628$as_echo "$as_me: failed program was:" >&5
d7f09764
DN
3629sed 's/^/| /' conftest.$ac_ext >&5
3630
3631{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3633as_fn_error 77 "C compiler cannot create executables
3634See \`config.log' for more details" "$LINENO" 5; }
3635else
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3637$as_echo "yes" >&6; }
d7f09764 3638fi
22e05272
JM
3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3640$as_echo_n "checking for C compiler default output file name... " >&6; }
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3642$as_echo "$ac_file" >&6; }
d7f09764
DN
3643ac_exeext=$ac_cv_exeext
3644
22e05272 3645rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d7f09764 3646ac_clean_files=$ac_clean_files_save
d7f09764
DN
3647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3648$as_echo_n "checking for suffix of executables... " >&6; }
3649if { { ac_try="$ac_link"
3650case "(($ac_try" in
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3653esac
3654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3655$as_echo "$ac_try_echo"; } >&5
3656 (eval "$ac_link") 2>&5
3657 ac_status=$?
3658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3659 test $ac_status = 0; }; then :
3660 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3661# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3662# work properly (i.e., refer to `conftest.exe'), while it won't with
3663# `rm'.
3664for ac_file in conftest.exe conftest conftest.*; do
3665 test -f "$ac_file" || continue
3666 case $ac_file in
3667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3668 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3669 break;;
3670 * ) break;;
3671 esac
3672done
3673else
3674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3675$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3676as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3677See \`config.log' for more details" "$LINENO" 5; }
d7f09764 3678fi
22e05272 3679rm -f conftest conftest$ac_cv_exeext
d7f09764
DN
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3681$as_echo "$ac_cv_exeext" >&6; }
3682
3683rm -f conftest.$ac_ext
3684EXEEXT=$ac_cv_exeext
3685ac_exeext=$EXEEXT
22e05272
JM
3686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687/* end confdefs.h. */
3688#include <stdio.h>
3689int
3690main ()
3691{
3692FILE *f = fopen ("conftest.out", "w");
3693 return ferror (f) || fclose (f) != 0;
3694
3695 ;
3696 return 0;
3697}
3698_ACEOF
3699ac_clean_files="$ac_clean_files conftest.out"
3700# Check that the compiler produces executables we can run. If not, either
3701# the compiler is broken, or we cross compile.
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3703$as_echo_n "checking whether we are cross compiling... " >&6; }
3704if test "$cross_compiling" != yes; then
3705 { { ac_try="$ac_link"
3706case "(($ac_try" in
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3709esac
3710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3711$as_echo "$ac_try_echo"; } >&5
3712 (eval "$ac_link") 2>&5
3713 ac_status=$?
3714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715 test $ac_status = 0; }
3716 if { ac_try='./conftest$ac_cv_exeext'
3717 { { case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3720esac
3721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3722$as_echo "$ac_try_echo"; } >&5
3723 (eval "$ac_try") 2>&5
3724 ac_status=$?
3725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3726 test $ac_status = 0; }; }; then
3727 cross_compiling=no
3728 else
3729 if test "$cross_compiling" = maybe; then
3730 cross_compiling=yes
3731 else
3732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3733$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3734as_fn_error $? "cannot run C compiled programs.
3735If you meant to cross compile, use \`--host'.
3736See \`config.log' for more details" "$LINENO" 5; }
3737 fi
3738 fi
3739fi
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3741$as_echo "$cross_compiling" >&6; }
3742
3743rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3744ac_clean_files=$ac_clean_files_save
d7f09764
DN
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3746$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3747if ${ac_cv_objext+:} false; then :
d7f09764
DN
3748 $as_echo_n "(cached) " >&6
3749else
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751/* end confdefs.h. */
3752
3753int
3754main ()
3755{
3756
3757 ;
3758 return 0;
3759}
3760_ACEOF
3761rm -f conftest.o conftest.obj
3762if { { ac_try="$ac_compile"
3763case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3766esac
3767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3768$as_echo "$ac_try_echo"; } >&5
3769 (eval "$ac_compile") 2>&5
3770 ac_status=$?
3771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3772 test $ac_status = 0; }; then :
3773 for ac_file in conftest.o conftest.obj conftest.*; do
3774 test -f "$ac_file" || continue;
3775 case $ac_file in
3776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3777 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3778 break;;
3779 esac
3780done
3781else
3782 $as_echo "$as_me: failed program was:" >&5
3783sed 's/^/| /' conftest.$ac_ext >&5
3784
3785{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3787as_fn_error $? "cannot compute suffix of object files: cannot compile
3788See \`config.log' for more details" "$LINENO" 5; }
d7f09764
DN
3789fi
3790rm -f conftest.$ac_cv_objext conftest.$ac_ext
3791fi
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3793$as_echo "$ac_cv_objext" >&6; }
3794OBJEXT=$ac_cv_objext
3795ac_objext=$OBJEXT
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3797$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3798if ${ac_cv_c_compiler_gnu+:} false; then :
d7f09764
DN
3799 $as_echo_n "(cached) " >&6
3800else
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802/* end confdefs.h. */
3803
3804int
3805main ()
3806{
3807#ifndef __GNUC__
3808 choke me
3809#endif
3810
3811 ;
3812 return 0;
3813}
3814_ACEOF
3815if ac_fn_c_try_compile "$LINENO"; then :
3816 ac_compiler_gnu=yes
3817else
3818 ac_compiler_gnu=no
3819fi
3820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821ac_cv_c_compiler_gnu=$ac_compiler_gnu
3822
3823fi
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3825$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3826if test $ac_compiler_gnu = yes; then
3827 GCC=yes
3828else
3829 GCC=
3830fi
3831ac_test_CFLAGS=${CFLAGS+set}
3832ac_save_CFLAGS=$CFLAGS
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3834$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 3835if ${ac_cv_prog_cc_g+:} false; then :
d7f09764
DN
3836 $as_echo_n "(cached) " >&6
3837else
3838 ac_save_c_werror_flag=$ac_c_werror_flag
3839 ac_c_werror_flag=yes
3840 ac_cv_prog_cc_g=no
3841 CFLAGS="-g"
3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843/* end confdefs.h. */
3844
3845int
3846main ()
3847{
3848
3849 ;
3850 return 0;
3851}
3852_ACEOF
3853if ac_fn_c_try_compile "$LINENO"; then :
3854 ac_cv_prog_cc_g=yes
3855else
3856 CFLAGS=""
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858/* end confdefs.h. */
3859
3860int
3861main ()
3862{
3863
3864 ;
3865 return 0;
3866}
3867_ACEOF
3868if ac_fn_c_try_compile "$LINENO"; then :
3869
3870else
3871 ac_c_werror_flag=$ac_save_c_werror_flag
3872 CFLAGS="-g"
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874/* end confdefs.h. */
3875
3876int
3877main ()
3878{
3879
3880 ;
3881 return 0;
3882}
3883_ACEOF
3884if ac_fn_c_try_compile "$LINENO"; then :
3885 ac_cv_prog_cc_g=yes
3886fi
3887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3888fi
3889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890fi
3891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 ac_c_werror_flag=$ac_save_c_werror_flag
3893fi
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3895$as_echo "$ac_cv_prog_cc_g" >&6; }
3896if test "$ac_test_CFLAGS" = set; then
3897 CFLAGS=$ac_save_CFLAGS
3898elif test $ac_cv_prog_cc_g = yes; then
3899 if test "$GCC" = yes; then
3900 CFLAGS="-g -O2"
3901 else
3902 CFLAGS="-g"
3903 fi
3904else
3905 if test "$GCC" = yes; then
3906 CFLAGS="-O2"
3907 else
3908 CFLAGS=
3909 fi
3910fi
3911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3912$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3913if ${ac_cv_prog_cc_c89+:} false; then :
d7f09764
DN
3914 $as_echo_n "(cached) " >&6
3915else
3916 ac_cv_prog_cc_c89=no
3917ac_save_CC=$CC
3918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919/* end confdefs.h. */
3920#include <stdarg.h>
3921#include <stdio.h>
22e05272 3922struct stat;
d7f09764
DN
3923/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3924struct buf { int x; };
3925FILE * (*rcsopen) (struct buf *, struct stat *, int);
3926static char *e (p, i)
3927 char **p;
3928 int i;
3929{
3930 return p[i];
3931}
3932static char *f (char * (*g) (char **, int), char **p, ...)
3933{
3934 char *s;
3935 va_list v;
3936 va_start (v,p);
3937 s = g (p, va_arg (v,int));
3938 va_end (v);
3939 return s;
3940}
3941
3942/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3943 function prototypes and stuff, but not '\xHH' hex character constants.
3944 These don't provoke an error unfortunately, instead are silently treated
3945 as 'x'. The following induces an error, until -std is added to get
3946 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3947 array size at least. It's necessary to write '\x00'==0 to get something
3948 that's true only with -std. */
3949int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3950
3951/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3952 inside strings and character constants. */
3953#define FOO(x) 'x'
3954int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3955
3956int test (int i, double x);
3957struct s1 {int (*f) (int a);};
3958struct s2 {int (*f) (double a);};
3959int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3960int argc;
3961char **argv;
3962int
3963main ()
3964{
3965return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3966 ;
3967 return 0;
3968}
3969_ACEOF
3970for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3971 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3972do
3973 CC="$ac_save_CC $ac_arg"
3974 if ac_fn_c_try_compile "$LINENO"; then :
3975 ac_cv_prog_cc_c89=$ac_arg
3976fi
3977rm -f core conftest.err conftest.$ac_objext
3978 test "x$ac_cv_prog_cc_c89" != "xno" && break
3979done
3980rm -f conftest.$ac_ext
3981CC=$ac_save_CC
3982
3983fi
3984# AC_CACHE_VAL
3985case "x$ac_cv_prog_cc_c89" in
3986 x)
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3988$as_echo "none needed" >&6; } ;;
3989 xno)
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3991$as_echo "unsupported" >&6; } ;;
3992 *)
3993 CC="$CC $ac_cv_prog_cc_c89"
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3995$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3996esac
3997if test "x$ac_cv_prog_cc_c89" != xno; then :
3998
3999fi
4000
4001ac_ext=c
4002ac_cpp='$CPP $CPPFLAGS'
4003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7f09764 4006
22e05272
JM
4007ac_ext=c
4008ac_cpp='$CPP $CPPFLAGS'
4009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4013$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4014if ${am_cv_prog_cc_c_o+:} false; then :
4015 $as_echo_n "(cached) " >&6
4016else
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018/* end confdefs.h. */
4019
4020int
4021main ()
4022{
4023
4024 ;
4025 return 0;
4026}
4027_ACEOF
4028 # Make sure it works both with $CC and with simple cc.
4029 # Following AC_PROG_CC_C_O, we do the test twice because some
4030 # compilers refuse to overwrite an existing .o file with -o,
4031 # though they will create one.
4032 am_cv_prog_cc_c_o=yes
4033 for am_i in 1 2; do
4034 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4035 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } \
4039 && test -f conftest2.$ac_objext; then
4040 : OK
4041 else
4042 am_cv_prog_cc_c_o=no
4043 break
4044 fi
4045 done
4046 rm -f core conftest*
4047 unset am_i
4048fi
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4050$as_echo "$am_cv_prog_cc_c_o" >&6; }
4051if test "$am_cv_prog_cc_c_o" != yes; then
4052 # Losing compiler, so override with the script.
4053 # FIXME: It is wrong to rewrite CC.
4054 # But if we don't then we get into trouble of one sort or another.
4055 # A longer-term fix would be to have automake use am__CC in this case,
4056 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4057 CC="$am_aux_dir/compile $CC"
4058fi
4059ac_ext=c
4060ac_cpp='$CPP $CPPFLAGS'
4061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4063ac_compiler_gnu=$ac_cv_c_compiler_gnu
4064
4065
dcbc9df9 4066depcc="$CC" am_compiler_list=
d7f09764
DN
4067
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4069$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4070if ${am_cv_CC_dependencies_compiler_type+:} false; then :
d7f09764
DN
4071 $as_echo_n "(cached) " >&6
4072else
4073 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4074 # We make a subdir and do the tests there. Otherwise we can end up
4075 # making bogus files that we don't know about and never remove. For
4076 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4077 # making a dummy file named 'D' -- because '-MD' means "put the output
4078 # in D".
ed9b4ae3 4079 rm -rf conftest.dir
d7f09764
DN
4080 mkdir conftest.dir
4081 # Copy depcomp to subdir because otherwise we won't find it if we're
4082 # using a relative directory.
4083 cp "$am_depcomp" conftest.dir
4084 cd conftest.dir
4085 # We will build objects and dependencies in a subdirectory because
4086 # it helps to detect inapplicable dependency modes. For instance
4087 # both Tru64's cc and ICC support -MD to output dependencies as a
4088 # side effect of compilation, but ICC will put the dependencies in
4089 # the current directory while Tru64 will put them in the object
4090 # directory.
4091 mkdir sub
4092
4093 am_cv_CC_dependencies_compiler_type=none
4094 if test "$am_compiler_list" = ""; then
4095 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4096 fi
4097 am__universal=false
4098 case " $depcc " in #(
4099 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4100 esac
4101
4102 for depmode in $am_compiler_list; do
4103 # Setup a source with many dependencies, because some compilers
4104 # like to wrap large dependency lists on column 80 (with \), and
4105 # we should not choose a depcomp mode which is confused by this.
4106 #
4107 # We need to recreate these files for each test, as the compiler may
4108 # overwrite some of them when testing with obscure command lines.
4109 # This happens at least with the AIX C compiler.
4110 : > sub/conftest.c
4111 for i in 1 2 3 4 5 6; do
4112 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4113 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4114 # Solaris 10 /bin/sh.
4115 echo '/* dummy */' > sub/conftst$i.h
d7f09764
DN
4116 done
4117 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4118
22e05272 4119 # We check with '-c' and '-o' for the sake of the "dashmstdout"
d7f09764 4120 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4121 # handle '-M -o', and we need to detect this. Also, some Intel
4122 # versions had trouble with output in subdirs.
d7f09764
DN
4123 am__obj=sub/conftest.${OBJEXT-o}
4124 am__minus_obj="-o $am__obj"
4125 case $depmode in
4126 gcc)
4127 # This depmode causes a compiler race in universal mode.
4128 test "$am__universal" = false || continue
4129 ;;
4130 nosideeffect)
22e05272
JM
4131 # After this tag, mechanisms are not by side-effect, so they'll
4132 # only be used when explicitly requested.
d7f09764
DN
4133 if test "x$enable_dependency_tracking" = xyes; then
4134 continue
4135 else
4136 break
4137 fi
4138 ;;
ed9b4ae3 4139 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4140 # This compiler won't grok '-c -o', but also, the minuso test has
d7f09764
DN
4141 # not run yet. These depmodes are late enough in the game, and
4142 # so weak that their functioning should not be impacted.
4143 am__obj=conftest.${OBJEXT-o}
4144 am__minus_obj=
4145 ;;
4146 none) break ;;
4147 esac
4148 if depmode=$depmode \
4149 source=sub/conftest.c object=$am__obj \
4150 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4151 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4152 >/dev/null 2>conftest.err &&
4153 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4154 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4155 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4156 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4157 # icc doesn't choke on unknown options, it will just issue warnings
4158 # or remarks (even with -Werror). So we grep stderr for any message
4159 # that says an option was ignored or not supported.
4160 # When given -MP, icc 7.0 and 7.1 complain thusly:
4161 # icc: Command line warning: ignoring option '-M'; no argument required
4162 # The diagnosis changed in icc 8.0:
4163 # icc: Command line remark: option '-MP' not supported
4164 if (grep 'ignoring option' conftest.err ||
4165 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4166 am_cv_CC_dependencies_compiler_type=$depmode
4167 break
4168 fi
4169 fi
4170 done
4171
4172 cd ..
4173 rm -rf conftest.dir
4174else
4175 am_cv_CC_dependencies_compiler_type=none
4176fi
4177
4178fi
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4180$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4181CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4182
4183 if
4184 test "x$enable_dependency_tracking" != xno \
4185 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4186 am__fastdepCC_TRUE=
4187 am__fastdepCC_FALSE='#'
4188else
4189 am__fastdepCC_TRUE='#'
4190 am__fastdepCC_FALSE=
4191fi
4192
4193
4194
dcbc9df9
UB
4195ac_ext=c
4196ac_cpp='$CPP $CPPFLAGS'
4197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4201$as_echo_n "checking how to run the C preprocessor... " >&6; }
4202# On Suns, sometimes $CPP names a directory.
4203if test -n "$CPP" && test -d "$CPP"; then
4204 CPP=
4c0f4b0b 4205fi
dcbc9df9 4206if test -z "$CPP"; then
22e05272 4207 if ${ac_cv_prog_CPP+:} false; then :
4c0f4b0b
DG
4208 $as_echo_n "(cached) " >&6
4209else
dcbc9df9
UB
4210 # Double quotes because CPP needs to be expanded
4211 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4212 do
4213 ac_preproc_ok=false
4214for ac_c_preproc_warn_flag in '' yes
4215do
4216 # Use a header file that comes with gcc, so configuring glibc
4217 # with a fresh cross-compiler works.
4218 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4219 # <limits.h> exists even on freestanding compilers.
4220 # On the NeXT, cc -E runs the code through the compiler's parser,
4221 # not just through cpp. "Syntax error" is here to catch this case.
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c0f4b0b 4223/* end confdefs.h. */
dcbc9df9
UB
4224#ifdef __STDC__
4225# include <limits.h>
4226#else
4227# include <assert.h>
4228#endif
4229 Syntax error
4c0f4b0b 4230_ACEOF
dcbc9df9
UB
4231if ac_fn_c_try_cpp "$LINENO"; then :
4232
4233else
4234 # Broken: fails on valid input.
4235continue
4c0f4b0b 4236fi
22e05272 4237rm -f conftest.err conftest.i conftest.$ac_ext
dcbc9df9
UB
4238
4239 # OK, works on sane cases. Now check whether nonexistent headers
4240 # can be detected and how.
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242/* end confdefs.h. */
4243#include <ac_nonexistent.h>
4244_ACEOF
4245if ac_fn_c_try_cpp "$LINENO"; then :
4246 # Broken: success on invalid input.
4247continue
4248else
4249 # Passes both tests.
4250ac_preproc_ok=:
4251break
4c0f4b0b 4252fi
22e05272 4253rm -f conftest.err conftest.i conftest.$ac_ext
dcbc9df9
UB
4254
4255done
4256# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 4257rm -f conftest.i conftest.err conftest.$ac_ext
dcbc9df9
UB
4258if $ac_preproc_ok; then :
4259 break
4c0f4b0b 4260fi
4c0f4b0b 4261
dcbc9df9
UB
4262 done
4263 ac_cv_prog_CPP=$CPP
4264
4265fi
4266 CPP=$ac_cv_prog_CPP
4c0f4b0b 4267else
dcbc9df9
UB
4268 ac_cv_prog_CPP=$CPP
4269fi
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4271$as_echo "$CPP" >&6; }
4272ac_preproc_ok=false
4273for ac_c_preproc_warn_flag in '' yes
4274do
4275 # Use a header file that comes with gcc, so configuring glibc
4276 # with a fresh cross-compiler works.
4277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4278 # <limits.h> exists even on freestanding compilers.
4279 # On the NeXT, cc -E runs the code through the compiler's parser,
4280 # not just through cpp. "Syntax error" is here to catch this case.
4c0f4b0b
DG
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282/* end confdefs.h. */
dcbc9df9
UB
4283#ifdef __STDC__
4284# include <limits.h>
4285#else
4286# include <assert.h>
4287#endif
4288 Syntax error
4c0f4b0b 4289_ACEOF
dcbc9df9
UB
4290if ac_fn_c_try_cpp "$LINENO"; then :
4291
4292else
4293 # Broken: fails on valid input.
4294continue
4c0f4b0b 4295fi
22e05272 4296rm -f conftest.err conftest.i conftest.$ac_ext
dcbc9df9
UB
4297
4298 # OK, works on sane cases. Now check whether nonexistent headers
4299 # can be detected and how.
4c0f4b0b
DG
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301/* end confdefs.h. */
dcbc9df9 4302#include <ac_nonexistent.h>
4c0f4b0b 4303_ACEOF
dcbc9df9
UB
4304if ac_fn_c_try_cpp "$LINENO"; then :
4305 # Broken: success on invalid input.
4306continue
4307else
4308 # Passes both tests.
4309ac_preproc_ok=:
4310break
4c0f4b0b 4311fi
22e05272 4312rm -f conftest.err conftest.i conftest.$ac_ext
dcbc9df9 4313
4c0f4b0b 4314done
dcbc9df9 4315# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 4316rm -f conftest.i conftest.err conftest.$ac_ext
dcbc9df9
UB
4317if $ac_preproc_ok; then :
4318
4319else
4320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4322as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4323See \`config.log' for more details" "$LINENO" 5; }
4c0f4b0b 4324fi
dcbc9df9
UB
4325
4326ac_ext=c
4327ac_cpp='$CPP $CPPFLAGS'
4328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331
4332
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4334$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 4335if ${ac_cv_path_GREP+:} false; then :
4c0f4b0b
DG
4336 $as_echo_n "(cached) " >&6
4337else
dcbc9df9
UB
4338 if test -z "$GREP"; then
4339 ac_path_GREP_found=false
4340 # Loop through the user's path and test for each of PROGNAME-LIST
4341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4343do
4344 IFS=$as_save_IFS
4345 test -z "$as_dir" && as_dir=.
4346 for ac_prog in grep ggrep; do
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4349 as_fn_executable_p "$ac_path_GREP" || continue
dcbc9df9
UB
4350# Check for GNU ac_path_GREP and select it if it is found.
4351 # Check for GNU $ac_path_GREP
4352case `"$ac_path_GREP" --version 2>&1` in
4353*GNU*)
4354 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4355*)
4356 ac_count=0
4357 $as_echo_n 0123456789 >"conftest.in"
4358 while :
4359 do
4360 cat "conftest.in" "conftest.in" >"conftest.tmp"
4361 mv "conftest.tmp" "conftest.in"
4362 cp "conftest.in" "conftest.nl"
4363 $as_echo 'GREP' >> "conftest.nl"
4364 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4365 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4366 as_fn_arith $ac_count + 1 && ac_count=$as_val
4367 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4368 # Best one so far, save it but keep looking for a better one
4369 ac_cv_path_GREP="$ac_path_GREP"
4370 ac_path_GREP_max=$ac_count
4371 fi
4372 # 10*(2^10) chars as input seems more than enough
4373 test $ac_count -gt 10 && break
4374 done
4375 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4376esac
4c0f4b0b 4377
dcbc9df9
UB
4378 $ac_path_GREP_found && break 3
4379 done
4380 done
4381 done
4382IFS=$as_save_IFS
4383 if test -z "$ac_cv_path_GREP"; then
22e05272 4384 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
dcbc9df9
UB
4385 fi
4386else
4387 ac_cv_path_GREP=$GREP
4c0f4b0b 4388fi
4c0f4b0b 4389
4c0f4b0b 4390fi
dcbc9df9
UB
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4392$as_echo "$ac_cv_path_GREP" >&6; }
4393 GREP="$ac_cv_path_GREP"
4394
4395
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4397$as_echo_n "checking for egrep... " >&6; }
22e05272 4398if ${ac_cv_path_EGREP+:} false; then :
dcbc9df9
UB
4399 $as_echo_n "(cached) " >&6
4400else
4401 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4402 then ac_cv_path_EGREP="$GREP -E"
4403 else
4404 if test -z "$EGREP"; then
4405 ac_path_EGREP_found=false
4406 # Loop through the user's path and test for each of PROGNAME-LIST
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4409do
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_prog in egrep; do
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4415 as_fn_executable_p "$ac_path_EGREP" || continue
dcbc9df9
UB
4416# Check for GNU ac_path_EGREP and select it if it is found.
4417 # Check for GNU $ac_path_EGREP
4418case `"$ac_path_EGREP" --version 2>&1` in
4419*GNU*)
4420 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4421*)
4422 ac_count=0
4423 $as_echo_n 0123456789 >"conftest.in"
4424 while :
4425 do
4426 cat "conftest.in" "conftest.in" >"conftest.tmp"
4427 mv "conftest.tmp" "conftest.in"
4428 cp "conftest.in" "conftest.nl"
4429 $as_echo 'EGREP' >> "conftest.nl"
4430 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4431 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4432 as_fn_arith $ac_count + 1 && ac_count=$as_val
4433 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4434 # Best one so far, save it but keep looking for a better one
4435 ac_cv_path_EGREP="$ac_path_EGREP"
4436 ac_path_EGREP_max=$ac_count
4437 fi
4438 # 10*(2^10) chars as input seems more than enough
4439 test $ac_count -gt 10 && break
4440 done
4441 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4c0f4b0b 4442esac
dcbc9df9
UB
4443
4444 $ac_path_EGREP_found && break 3
4445 done
4446 done
4447 done
4448IFS=$as_save_IFS
4449 if test -z "$ac_cv_path_EGREP"; then
22e05272 4450 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4c0f4b0b 4451 fi
dcbc9df9
UB
4452else
4453 ac_cv_path_EGREP=$EGREP
4c0f4b0b
DG
4454fi
4455
dcbc9df9
UB
4456 fi
4457fi
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4459$as_echo "$ac_cv_path_EGREP" >&6; }
4460 EGREP="$ac_cv_path_EGREP"
f3016c47 4461
dcbc9df9
UB
4462
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4464$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 4465if ${ac_cv_header_stdc+:} false; then :
f3016c47
RG
4466 $as_echo_n "(cached) " >&6
4467else
dcbc9df9 4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f3016c47 4469/* end confdefs.h. */
dcbc9df9
UB
4470#include <stdlib.h>
4471#include <stdarg.h>
4472#include <string.h>
4473#include <float.h>
f3016c47
RG
4474
4475int
4476main ()
4477{
4478
4479 ;
4480 return 0;
4481}
4482_ACEOF
4483if ac_fn_c_try_compile "$LINENO"; then :
dcbc9df9 4484 ac_cv_header_stdc=yes
f3016c47 4485else
dcbc9df9 4486 ac_cv_header_stdc=no
f3016c47
RG
4487fi
4488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489
dcbc9df9
UB
4490if test $ac_cv_header_stdc = yes; then
4491 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2555c65 4493/* end confdefs.h. */
dcbc9df9 4494#include <string.h>
a2555c65 4495
a2555c65 4496_ACEOF
dcbc9df9
UB
4497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4498 $EGREP "memchr" >/dev/null 2>&1; then :
4499
a2555c65 4500else
dcbc9df9 4501 ac_cv_header_stdc=no
a2555c65 4502fi
dcbc9df9
UB
4503rm -f conftest*
4504
a2555c65
RO
4505fi
4506
dcbc9df9
UB
4507if test $ac_cv_header_stdc = yes; then
4508 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510/* end confdefs.h. */
4511#include <stdlib.h>
4512
4513_ACEOF
4514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4515 $EGREP "free" >/dev/null 2>&1; then :
5523efdf 4516
43f4a446 4517else
dcbc9df9 4518 ac_cv_header_stdc=no
43f4a446 4519fi
dcbc9df9 4520rm -f conftest*
43f4a446 4521
85c64bbe
BS
4522fi
4523
dcbc9df9
UB
4524if test $ac_cv_header_stdc = yes; then
4525 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4526 if test "$cross_compiling" = yes; then :
4527 :
4528else
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530/* end confdefs.h. */
4531#include <ctype.h>
4532#include <stdlib.h>
4533#if ((' ' & 0x0FF) == 0x020)
4534# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4535# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4536#else
4537# define ISLOWER(c) \
4538 (('a' <= (c) && (c) <= 'i') \
4539 || ('j' <= (c) && (c) <= 'r') \
4540 || ('s' <= (c) && (c) <= 'z'))
4541# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4542#endif
85c64bbe 4543
dcbc9df9
UB
4544#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4545int
4546main ()
4547{
4548 int i;
4549 for (i = 0; i < 256; i++)
4550 if (XOR (islower (i), ISLOWER (i))
4551 || toupper (i) != TOUPPER (i))
4552 return 2;
4553 return 0;
4554}
4555_ACEOF
4556if ac_fn_c_try_run "$LINENO"; then :
85c64bbe 4557
dcbc9df9
UB
4558else
4559 ac_cv_header_stdc=no
4560fi
4561rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4562 conftest.$ac_objext conftest.beam conftest.$ac_ext
4563fi
d7f09764 4564
dcbc9df9
UB
4565fi
4566fi
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4568$as_echo "$ac_cv_header_stdc" >&6; }
4569if test $ac_cv_header_stdc = yes; then
d7f09764 4570
dcbc9df9 4571$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7f09764 4572
dcbc9df9 4573fi
d7f09764 4574
dcbc9df9
UB
4575# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4576for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4577 inttypes.h stdint.h unistd.h
4578do :
4579 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4580ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4581"
22e05272 4582if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
dcbc9df9
UB
4583 cat >>confdefs.h <<_ACEOF
4584#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4585_ACEOF
d7f09764 4586
dcbc9df9 4587fi
d7f09764 4588
dcbc9df9 4589done
d7f09764
DN
4590
4591
4592
dcbc9df9 4593 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
22e05272 4594if test "x$ac_cv_header_minix_config_h" = xyes; then :
dcbc9df9
UB
4595 MINIX=yes
4596else
4597 MINIX=
4598fi
d7f09764
DN
4599
4600
dcbc9df9 4601 if test "$MINIX" = yes; then
d7f09764 4602
dcbc9df9 4603$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7f09764 4604
52327858 4605
dcbc9df9 4606$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
52327858 4607
52327858 4608
dcbc9df9 4609$as_echo "#define _MINIX 1" >>confdefs.h
52327858 4610
dcbc9df9 4611 fi
52327858 4612
52327858 4613
dcbc9df9
UB
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4615$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
22e05272 4616if ${ac_cv_safe_to_define___extensions__+:} false; then :
dcbc9df9 4617 $as_echo_n "(cached) " >&6
52327858 4618else
dcbc9df9
UB
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620/* end confdefs.h. */
52327858 4621
22e05272
JM
4622# define __EXTENSIONS__ 1
4623 $ac_includes_default
dcbc9df9
UB
4624int
4625main ()
52327858 4626{
52327858 4627
dcbc9df9
UB
4628 ;
4629 return 0;
4630}
4631_ACEOF
4632if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_cv_safe_to_define___extensions__=yes
4634else
4635 ac_cv_safe_to_define___extensions__=no
4636fi
4637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638fi
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4640$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4641 test $ac_cv_safe_to_define___extensions__ = yes &&
4642 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
52327858 4643
dcbc9df9 4644 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
52327858 4645
dcbc9df9 4646 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
52327858 4647
dcbc9df9 4648 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
52327858 4649
dcbc9df9 4650 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
52327858
L
4651
4652
dcbc9df9
UB
4653ac_ext=c
4654ac_cpp='$CPP $CPPFLAGS'
4655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657ac_compiler_gnu=$ac_cv_c_compiler_gnu
4658if test -n "$ac_tool_prefix"; then
4659 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4660set dummy ${ac_tool_prefix}gcc; ac_word=$2
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4663if ${ac_cv_prog_CC+:} false; then :
d7f09764
DN
4664 $as_echo_n "(cached) " >&6
4665else
dcbc9df9
UB
4666 if test -n "$CC"; then
4667 ac_cv_prog_CC="$CC" # Let the user override the test.
4668else
4669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d7f09764
DN
4670for as_dir in $PATH
4671do
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
d7f09764 4674 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
4676 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4679 fi
4680done
d7f09764
DN
4681 done
4682IFS=$as_save_IFS
dcbc9df9
UB
4683
4684fi
4685fi
4686CC=$ac_cv_prog_CC
4687if test -n "$CC"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4689$as_echo "$CC" >&6; }
d7f09764 4690else
dcbc9df9
UB
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692$as_echo "no" >&6; }
d7f09764
DN
4693fi
4694
dcbc9df9 4695
d7f09764 4696fi
dcbc9df9
UB
4697if test -z "$ac_cv_prog_CC"; then
4698 ac_ct_CC=$CC
4699 # Extract the first word of "gcc", so it can be a program name with args.
4700set dummy gcc; ac_word=$2
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4703if ${ac_cv_prog_ac_ct_CC+:} false; then :
d7f09764
DN
4704 $as_echo_n "(cached) " >&6
4705else
dcbc9df9
UB
4706 if test -n "$ac_ct_CC"; then
4707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4708else
4709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710for as_dir in $PATH
d7f09764
DN
4711do
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
d7f09764 4714 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
4716 ac_cv_prog_ac_ct_CC="gcc"
4717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 break 2
4719 fi
4720done
d7f09764
DN
4721 done
4722IFS=$as_save_IFS
dcbc9df9
UB
4723
4724fi
4725fi
4726ac_ct_CC=$ac_cv_prog_ac_ct_CC
4727if test -n "$ac_ct_CC"; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4729$as_echo "$ac_ct_CC" >&6; }
d7f09764 4730else
dcbc9df9
UB
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732$as_echo "no" >&6; }
d7f09764
DN
4733fi
4734
dcbc9df9
UB
4735 if test "x$ac_ct_CC" = x; then
4736 CC=""
4737 else
4738 case $cross_compiling:$ac_tool_warned in
4739yes:)
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4742ac_tool_warned=yes ;;
4743esac
4744 CC=$ac_ct_CC
4745 fi
4746else
4747 CC="$ac_cv_prog_CC"
d7f09764 4748fi
d7f09764 4749
dcbc9df9
UB
4750if test -z "$CC"; then
4751 if test -n "$ac_tool_prefix"; then
4752 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4753set dummy ${ac_tool_prefix}cc; ac_word=$2
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4756if ${ac_cv_prog_CC+:} false; then :
d7f09764
DN
4757 $as_echo_n "(cached) " >&6
4758else
dcbc9df9
UB
4759 if test -n "$CC"; then
4760 ac_cv_prog_CC="$CC" # Let the user override the test.
4761else
4762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763for as_dir in $PATH
d7f09764
DN
4764do
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
d7f09764 4767 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
4769 ac_cv_prog_CC="${ac_tool_prefix}cc"
4770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 break 2
4772 fi
4773done
d7f09764
DN
4774 done
4775IFS=$as_save_IFS
d7f09764 4776
d7f09764 4777fi
dcbc9df9
UB
4778fi
4779CC=$ac_cv_prog_CC
4780if test -n "$CC"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4782$as_echo "$CC" >&6; }
4783else
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785$as_echo "no" >&6; }
4786fi
d7f09764
DN
4787
4788
dcbc9df9
UB
4789 fi
4790fi
4791if test -z "$CC"; then
4792 # Extract the first word of "cc", so it can be a program name with args.
4793set dummy cc; ac_word=$2
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4796if ${ac_cv_prog_CC+:} false; then :
d7f09764
DN
4797 $as_echo_n "(cached) " >&6
4798else
dcbc9df9
UB
4799 if test -n "$CC"; then
4800 ac_cv_prog_CC="$CC" # Let the user override the test.
4801else
4802 ac_prog_rejected=no
4803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804for as_dir in $PATH
d7f09764
DN
4805do
4806 IFS=$as_save_IFS
4807 test -z "$as_dir" && as_dir=.
d7f09764 4808 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
4810 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4811 ac_prog_rejected=yes
4812 continue
4813 fi
4814 ac_cv_prog_CC="cc"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 break 2
4817 fi
4818done
d7f09764 4819 done
dcbc9df9 4820IFS=$as_save_IFS
d7f09764 4821
dcbc9df9
UB
4822if test $ac_prog_rejected = yes; then
4823 # We found a bogon in the path, so make sure we never use it.
4824 set dummy $ac_cv_prog_CC
4825 shift
4826 if test $# != 0; then
4827 # We chose a different compiler from the bogus one.
4828 # However, it has the same basename, so the bogon will be chosen
4829 # first if we set CC to just the basename; use the full file name.
4830 shift
4831 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
d7f09764 4832 fi
d7f09764 4833fi
d7f09764
DN
4834fi
4835fi
dcbc9df9
UB
4836CC=$ac_cv_prog_CC
4837if test -n "$CC"; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4839$as_echo "$CC" >&6; }
d7f09764
DN
4840else
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842$as_echo "no" >&6; }
4843fi
d7f09764
DN
4844
4845
d7f09764 4846fi
dcbc9df9
UB
4847if test -z "$CC"; then
4848 if test -n "$ac_tool_prefix"; then
4849 for ac_prog in cl.exe
d7f09764
DN
4850 do
4851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4852set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4855if ${ac_cv_prog_CC+:} false; then :
d7f09764
DN
4856 $as_echo_n "(cached) " >&6
4857else
dcbc9df9
UB
4858 if test -n "$CC"; then
4859 ac_cv_prog_CC="$CC" # Let the user override the test.
d7f09764
DN
4860else
4861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862for as_dir in $PATH
4863do
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9 4868 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
d7f09764
DN
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4871 fi
4872done
4873 done
4874IFS=$as_save_IFS
4875
4876fi
4877fi
dcbc9df9
UB
4878CC=$ac_cv_prog_CC
4879if test -n "$CC"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4881$as_echo "$CC" >&6; }
d7f09764
DN
4882else
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884$as_echo "no" >&6; }
4885fi
4886
4887
dcbc9df9 4888 test -n "$CC" && break
d7f09764
DN
4889 done
4890fi
dcbc9df9
UB
4891if test -z "$CC"; then
4892 ac_ct_CC=$CC
4893 for ac_prog in cl.exe
d7f09764
DN
4894do
4895 # Extract the first word of "$ac_prog", so it can be a program name with args.
4896set dummy $ac_prog; ac_word=$2
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4899if ${ac_cv_prog_ac_ct_CC+:} false; then :
d7f09764
DN
4900 $as_echo_n "(cached) " >&6
4901else
dcbc9df9
UB
4902 if test -n "$ac_ct_CC"; then
4903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7f09764
DN
4904else
4905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906for as_dir in $PATH
4907do
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9 4912 ac_cv_prog_ac_ct_CC="$ac_prog"
d7f09764
DN
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4915 fi
4916done
4917 done
4918IFS=$as_save_IFS
4919
4920fi
4921fi
dcbc9df9
UB
4922ac_ct_CC=$ac_cv_prog_ac_ct_CC
4923if test -n "$ac_ct_CC"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4925$as_echo "$ac_ct_CC" >&6; }
d7f09764
DN
4926else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928$as_echo "no" >&6; }
4929fi
4930
4931
dcbc9df9 4932 test -n "$ac_ct_CC" && break
d7f09764
DN
4933done
4934
dcbc9df9
UB
4935 if test "x$ac_ct_CC" = x; then
4936 CC=""
d7f09764
DN
4937 else
4938 case $cross_compiling:$ac_tool_warned in
4939yes:)
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4942ac_tool_warned=yes ;;
4943esac
dcbc9df9 4944 CC=$ac_ct_CC
d7f09764
DN
4945 fi
4946fi
4947
d7f09764 4948fi
d7f09764
DN
4949
4950
dcbc9df9
UB
4951test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4953as_fn_error $? "no acceptable C compiler found in \$PATH
4954See \`config.log' for more details" "$LINENO" 5; }
d7f09764 4955
dcbc9df9
UB
4956# Provide some information about the compiler.
4957$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4958set X $ac_compile
4959ac_compiler=$2
4960for ac_option in --version -v -V -qversion; do
4961 { { ac_try="$ac_compiler $ac_option >&5"
4962case "(($ac_try" in
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4965esac
4966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4967$as_echo "$ac_try_echo"; } >&5
4968 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4969 ac_status=$?
4970 if test -s conftest.err; then
4971 sed '10a\
4972... rest of stderr output deleted ...
4973 10q' conftest.err >conftest.er1
4974 cat conftest.er1 >&5
dcbc9df9 4975 fi
22e05272 4976 rm -f conftest.er1 conftest.err
dcbc9df9
UB
4977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4978 test $ac_status = 0; }
4979done
d7f09764 4980
dcbc9df9
UB
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4982$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4983if ${ac_cv_c_compiler_gnu+:} false; then :
dcbc9df9
UB
4984 $as_echo_n "(cached) " >&6
4985else
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987/* end confdefs.h. */
d7f09764 4988
dcbc9df9
UB
4989int
4990main ()
4991{
4992#ifndef __GNUC__
4993 choke me
4994#endif
d7f09764 4995
dcbc9df9
UB
4996 ;
4997 return 0;
4998}
4999_ACEOF
5000if ac_fn_c_try_compile "$LINENO"; then :
5001 ac_compiler_gnu=yes
d7f09764 5002else
dcbc9df9 5003 ac_compiler_gnu=no
d7f09764 5004fi
dcbc9df9
UB
5005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7f09764 5007
dcbc9df9
UB
5008fi
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5010$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5011if test $ac_compiler_gnu = yes; then
5012 GCC=yes
d7f09764 5013else
dcbc9df9 5014 GCC=
d7f09764 5015fi
dcbc9df9
UB
5016ac_test_CFLAGS=${CFLAGS+set}
5017ac_save_CFLAGS=$CFLAGS
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5019$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 5020if ${ac_cv_prog_cc_g+:} false; then :
d7f09764
DN
5021 $as_echo_n "(cached) " >&6
5022else
dcbc9df9
UB
5023 ac_save_c_werror_flag=$ac_c_werror_flag
5024 ac_c_werror_flag=yes
5025 ac_cv_prog_cc_g=no
5026 CFLAGS="-g"
5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028/* end confdefs.h. */
d7f09764 5029
dcbc9df9
UB
5030int
5031main ()
5032{
d7f09764 5033
dcbc9df9
UB
5034 ;
5035 return 0;
5036}
5037_ACEOF
5038if ac_fn_c_try_compile "$LINENO"; then :
5039 ac_cv_prog_cc_g=yes
5040else
5041 CFLAGS=""
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043/* end confdefs.h. */
d7f09764 5044
dcbc9df9
UB
5045int
5046main ()
5047{
52327858 5048
dcbc9df9
UB
5049 ;
5050 return 0;
5051}
5052_ACEOF
5053if ac_fn_c_try_compile "$LINENO"; then :
d7f09764 5054
dcbc9df9
UB
5055else
5056 ac_c_werror_flag=$ac_save_c_werror_flag
5057 CFLAGS="-g"
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059/* end confdefs.h. */
d7f09764 5060
dcbc9df9
UB
5061int
5062main ()
5063{
d7f09764 5064
dcbc9df9
UB
5065 ;
5066 return 0;
5067}
5068_ACEOF
5069if ac_fn_c_try_compile "$LINENO"; then :
5070 ac_cv_prog_cc_g=yes
5071fi
5072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073fi
5074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075fi
5076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077 ac_c_werror_flag=$ac_save_c_werror_flag
5078fi
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5080$as_echo "$ac_cv_prog_cc_g" >&6; }
5081if test "$ac_test_CFLAGS" = set; then
5082 CFLAGS=$ac_save_CFLAGS
5083elif test $ac_cv_prog_cc_g = yes; then
5084 if test "$GCC" = yes; then
5085 CFLAGS="-g -O2"
5086 else
5087 CFLAGS="-g"
5088 fi
5089else
5090 if test "$GCC" = yes; then
5091 CFLAGS="-O2"
5092 else
5093 CFLAGS=
5094 fi
5095fi
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5097$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 5098if ${ac_cv_prog_cc_c89+:} false; then :
dcbc9df9
UB
5099 $as_echo_n "(cached) " >&6
5100else
5101 ac_cv_prog_cc_c89=no
5102ac_save_CC=$CC
5103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104/* end confdefs.h. */
5105#include <stdarg.h>
5106#include <stdio.h>
22e05272 5107struct stat;
dcbc9df9
UB
5108/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5109struct buf { int x; };
5110FILE * (*rcsopen) (struct buf *, struct stat *, int);
5111static char *e (p, i)
5112 char **p;
5113 int i;
5114{
5115 return p[i];
5116}
5117static char *f (char * (*g) (char **, int), char **p, ...)
5118{
5119 char *s;
5120 va_list v;
5121 va_start (v,p);
5122 s = g (p, va_arg (v,int));
5123 va_end (v);
5124 return s;
5125}
5126
5127/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5128 function prototypes and stuff, but not '\xHH' hex character constants.
5129 These don't provoke an error unfortunately, instead are silently treated
5130 as 'x'. The following induces an error, until -std is added to get
5131 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5132 array size at least. It's necessary to write '\x00'==0 to get something
5133 that's true only with -std. */
5134int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5135
5136/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5137 inside strings and character constants. */
5138#define FOO(x) 'x'
5139int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5140
5141int test (int i, double x);
5142struct s1 {int (*f) (int a);};
5143struct s2 {int (*f) (double a);};
5144int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5145int argc;
5146char **argv;
5147int
5148main ()
5149{
5150return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5151 ;
5152 return 0;
5153}
5154_ACEOF
5155for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5156 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5157do
5158 CC="$ac_save_CC $ac_arg"
5159 if ac_fn_c_try_compile "$LINENO"; then :
5160 ac_cv_prog_cc_c89=$ac_arg
5161fi
5162rm -f core conftest.err conftest.$ac_objext
5163 test "x$ac_cv_prog_cc_c89" != "xno" && break
5164done
5165rm -f conftest.$ac_ext
5166CC=$ac_save_CC
5167
5168fi
5169# AC_CACHE_VAL
5170case "x$ac_cv_prog_cc_c89" in
5171 x)
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5173$as_echo "none needed" >&6; } ;;
5174 xno)
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5176$as_echo "unsupported" >&6; } ;;
5177 *)
5178 CC="$CC $ac_cv_prog_cc_c89"
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5180$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5181esac
5182if test "x$ac_cv_prog_cc_c89" != xno; then :
5183
5184fi
5185
5186ac_ext=c
5187ac_cpp='$CPP $CPPFLAGS'
5188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5190ac_compiler_gnu=$ac_cv_c_compiler_gnu
5191
22e05272
JM
5192ac_ext=c
5193ac_cpp='$CPP $CPPFLAGS'
5194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196ac_compiler_gnu=$ac_cv_c_compiler_gnu
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5198$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5199if ${am_cv_prog_cc_c_o+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201else
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203/* end confdefs.h. */
5204
5205int
5206main ()
5207{
5208
5209 ;
5210 return 0;
5211}
5212_ACEOF
5213 # Make sure it works both with $CC and with simple cc.
5214 # Following AC_PROG_CC_C_O, we do the test twice because some
5215 # compilers refuse to overwrite an existing .o file with -o,
5216 # though they will create one.
5217 am_cv_prog_cc_c_o=yes
5218 for am_i in 1 2; do
5219 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5220 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } \
5224 && test -f conftest2.$ac_objext; then
5225 : OK
5226 else
5227 am_cv_prog_cc_c_o=no
5228 break
5229 fi
5230 done
5231 rm -f core conftest*
5232 unset am_i
5233fi
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5235$as_echo "$am_cv_prog_cc_c_o" >&6; }
5236if test "$am_cv_prog_cc_c_o" != yes; then
5237 # Losing compiler, so override with the script.
5238 # FIXME: It is wrong to rewrite CC.
5239 # But if we don't then we get into trouble of one sort or another.
5240 # A longer-term fix would be to have automake use am__CC in this case,
5241 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5242 CC="$am_aux_dir/compile $CC"
5243fi
5244ac_ext=c
5245ac_cpp='$CPP $CPPFLAGS'
5246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5248ac_compiler_gnu=$ac_cv_c_compiler_gnu
5249
5250
dcbc9df9
UB
5251depcc="$CC" am_compiler_list=
5252
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5254$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 5255if ${am_cv_CC_dependencies_compiler_type+:} false; then :
dcbc9df9
UB
5256 $as_echo_n "(cached) " >&6
5257else
5258 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5259 # We make a subdir and do the tests there. Otherwise we can end up
5260 # making bogus files that we don't know about and never remove. For
5261 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
5262 # making a dummy file named 'D' -- because '-MD' means "put the output
5263 # in D".
dcbc9df9
UB
5264 rm -rf conftest.dir
5265 mkdir conftest.dir
5266 # Copy depcomp to subdir because otherwise we won't find it if we're
5267 # using a relative directory.
5268 cp "$am_depcomp" conftest.dir
5269 cd conftest.dir
5270 # We will build objects and dependencies in a subdirectory because
5271 # it helps to detect inapplicable dependency modes. For instance
5272 # both Tru64's cc and ICC support -MD to output dependencies as a
5273 # side effect of compilation, but ICC will put the dependencies in
5274 # the current directory while Tru64 will put them in the object
5275 # directory.
5276 mkdir sub
5277
5278 am_cv_CC_dependencies_compiler_type=none
5279 if test "$am_compiler_list" = ""; then
5280 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5281 fi
5282 am__universal=false
5283 case " $depcc " in #(
5284 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5285 esac
5286
5287 for depmode in $am_compiler_list; do
5288 # Setup a source with many dependencies, because some compilers
5289 # like to wrap large dependency lists on column 80 (with \), and
5290 # we should not choose a depcomp mode which is confused by this.
5291 #
5292 # We need to recreate these files for each test, as the compiler may
5293 # overwrite some of them when testing with obscure command lines.
5294 # This happens at least with the AIX C compiler.
5295 : > sub/conftest.c
5296 for i in 1 2 3 4 5 6; do
5297 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
5298 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5299 # Solaris 10 /bin/sh.
5300 echo '/* dummy */' > sub/conftst$i.h
dcbc9df9
UB
5301 done
5302 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5303
22e05272 5304 # We check with '-c' and '-o' for the sake of the "dashmstdout"
dcbc9df9 5305 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
5306 # handle '-M -o', and we need to detect this. Also, some Intel
5307 # versions had trouble with output in subdirs.
dcbc9df9
UB
5308 am__obj=sub/conftest.${OBJEXT-o}
5309 am__minus_obj="-o $am__obj"
5310 case $depmode in
5311 gcc)
5312 # This depmode causes a compiler race in universal mode.
5313 test "$am__universal" = false || continue
5314 ;;
5315 nosideeffect)
22e05272
JM
5316 # After this tag, mechanisms are not by side-effect, so they'll
5317 # only be used when explicitly requested.
dcbc9df9
UB
5318 if test "x$enable_dependency_tracking" = xyes; then
5319 continue
5320 else
5321 break
5322 fi
5323 ;;
5324 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 5325 # This compiler won't grok '-c -o', but also, the minuso test has
dcbc9df9
UB
5326 # not run yet. These depmodes are late enough in the game, and
5327 # so weak that their functioning should not be impacted.
5328 am__obj=conftest.${OBJEXT-o}
5329 am__minus_obj=
5330 ;;
5331 none) break ;;
5332 esac
5333 if depmode=$depmode \
5334 source=sub/conftest.c object=$am__obj \
5335 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5336 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5337 >/dev/null 2>conftest.err &&
5338 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5339 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5340 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5341 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5342 # icc doesn't choke on unknown options, it will just issue warnings
5343 # or remarks (even with -Werror). So we grep stderr for any message
5344 # that says an option was ignored or not supported.
5345 # When given -MP, icc 7.0 and 7.1 complain thusly:
5346 # icc: Command line warning: ignoring option '-M'; no argument required
5347 # The diagnosis changed in icc 8.0:
5348 # icc: Command line remark: option '-MP' not supported
5349 if (grep 'ignoring option' conftest.err ||
5350 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5351 am_cv_CC_dependencies_compiler_type=$depmode
5352 break
5353 fi
5354 fi
5355 done
5356
5357 cd ..
5358 rm -rf conftest.dir
5359else
5360 am_cv_CC_dependencies_compiler_type=none
5361fi
5362
5363fi
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5365$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5366CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5367
5368 if
5369 test "x$enable_dependency_tracking" != xno \
5370 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5371 am__fastdepCC_TRUE=
5372 am__fastdepCC_FALSE='#'
5373else
5374 am__fastdepCC_TRUE='#'
5375 am__fastdepCC_FALSE=
5376fi
5377
5378
5379# Check whether --enable-largefile was given.
5380if test "${enable_largefile+set}" = set; then :
5381 enableval=$enable_largefile;
5382fi
5383
5384if test "$enable_largefile" != no; then
5385
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5387$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
22e05272 5388if ${ac_cv_sys_largefile_CC+:} false; then :
dcbc9df9
UB
5389 $as_echo_n "(cached) " >&6
5390else
5391 ac_cv_sys_largefile_CC=no
5392 if test "$GCC" != yes; then
5393 ac_save_CC=$CC
5394 while :; do
5395 # IRIX 6.2 and later do not support large files by default,
5396 # so use the C compiler's -n32 option if that helps.
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398/* end confdefs.h. */
5399#include <sys/types.h>
5400 /* Check that off_t can represent 2**63 - 1 correctly.
5401 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5402 since some C++ compilers masquerading as C compilers
5403 incorrectly reject 9223372036854775807. */
5404#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5405 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5406 && LARGE_OFF_T % 2147483647 == 1)
5407 ? 1 : -1];
5408int
5409main ()
5410{
5411
5412 ;
5413 return 0;
5414}
5415_ACEOF
5416 if ac_fn_c_try_compile "$LINENO"; then :
5417 break
5418fi
5419rm -f core conftest.err conftest.$ac_objext
5420 CC="$CC -n32"
5421 if ac_fn_c_try_compile "$LINENO"; then :
5422 ac_cv_sys_largefile_CC=' -n32'; break
5423fi
5424rm -f core conftest.err conftest.$ac_objext
5425 break
5426 done
5427 CC=$ac_save_CC
5428 rm -f conftest.$ac_ext
5429 fi
5430fi
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5432$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5433 if test "$ac_cv_sys_largefile_CC" != no; then
5434 CC=$CC$ac_cv_sys_largefile_CC
5435 fi
5436
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5438$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
22e05272 5439if ${ac_cv_sys_file_offset_bits+:} false; then :
dcbc9df9
UB
5440 $as_echo_n "(cached) " >&6
5441else
5442 while :; do
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444/* end confdefs.h. */
5445#include <sys/types.h>
5446 /* Check that off_t can represent 2**63 - 1 correctly.
5447 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5448 since some C++ compilers masquerading as C compilers
5449 incorrectly reject 9223372036854775807. */
5450#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5451 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5452 && LARGE_OFF_T % 2147483647 == 1)
5453 ? 1 : -1];
5454int
5455main ()
5456{
5457
5458 ;
5459 return 0;
5460}
5461_ACEOF
5462if ac_fn_c_try_compile "$LINENO"; then :
5463 ac_cv_sys_file_offset_bits=no; break
5464fi
5465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467/* end confdefs.h. */
5468#define _FILE_OFFSET_BITS 64
5469#include <sys/types.h>
5470 /* Check that off_t can represent 2**63 - 1 correctly.
5471 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5472 since some C++ compilers masquerading as C compilers
5473 incorrectly reject 9223372036854775807. */
5474#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5475 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5476 && LARGE_OFF_T % 2147483647 == 1)
5477 ? 1 : -1];
5478int
5479main ()
5480{
5481
5482 ;
5483 return 0;
5484}
5485_ACEOF
5486if ac_fn_c_try_compile "$LINENO"; then :
5487 ac_cv_sys_file_offset_bits=64; break
5488fi
5489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 ac_cv_sys_file_offset_bits=unknown
5491 break
5492done
5493fi
5494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5495$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5496case $ac_cv_sys_file_offset_bits in #(
5497 no | unknown) ;;
5498 *)
5499cat >>confdefs.h <<_ACEOF
5500#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5501_ACEOF
5502;;
5503esac
5504rm -rf conftest*
5505 if test $ac_cv_sys_file_offset_bits = unknown; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5507$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
22e05272 5508if ${ac_cv_sys_large_files+:} false; then :
dcbc9df9
UB
5509 $as_echo_n "(cached) " >&6
5510else
5511 while :; do
5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513/* end confdefs.h. */
5514#include <sys/types.h>
5515 /* Check that off_t can represent 2**63 - 1 correctly.
5516 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5517 since some C++ compilers masquerading as C compilers
5518 incorrectly reject 9223372036854775807. */
5519#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5520 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5521 && LARGE_OFF_T % 2147483647 == 1)
5522 ? 1 : -1];
5523int
5524main ()
5525{
5526
5527 ;
5528 return 0;
5529}
5530_ACEOF
5531if ac_fn_c_try_compile "$LINENO"; then :
5532 ac_cv_sys_large_files=no; break
5533fi
5534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536/* end confdefs.h. */
5537#define _LARGE_FILES 1
5538#include <sys/types.h>
5539 /* Check that off_t can represent 2**63 - 1 correctly.
5540 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5541 since some C++ compilers masquerading as C compilers
5542 incorrectly reject 9223372036854775807. */
5543#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5544 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5545 && LARGE_OFF_T % 2147483647 == 1)
5546 ? 1 : -1];
5547int
5548main ()
5549{
5550
5551 ;
5552 return 0;
5553}
5554_ACEOF
5555if ac_fn_c_try_compile "$LINENO"; then :
5556 ac_cv_sys_large_files=1; break
5557fi
5558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559 ac_cv_sys_large_files=unknown
5560 break
5561done
5562fi
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5564$as_echo "$ac_cv_sys_large_files" >&6; }
5565case $ac_cv_sys_large_files in #(
5566 no | unknown) ;;
5567 *)
5568cat >>confdefs.h <<_ACEOF
5569#define _LARGE_FILES $ac_cv_sys_large_files
5570_ACEOF
5571;;
5572esac
5573rm -rf conftest*
5574 fi
22e05272
JM
5575
5576
dcbc9df9
UB
5577fi
5578
5579ac_ext=c
5580ac_cpp='$CPP $CPPFLAGS'
5581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5583ac_compiler_gnu=$ac_cv_c_compiler_gnu
5584
5585ac_lto_plugin_warn_cflags=
5586save_CFLAGS="$CFLAGS"
5587for real_option in -Wall; do
5588 # Do the check with the no- prefix removed since gcc silently
5589 # accepts any -Wno-* option on purpose
5590 case $real_option in
5591 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5592 *) option=$real_option ;;
5593 esac
5594 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5595
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5597$as_echo_n "checking whether $CC supports $option... " >&6; }
22e05272 5598if eval \${$as_acx_Woption+:} false; then :
dcbc9df9
UB
5599 $as_echo_n "(cached) " >&6
5600else
5601 CFLAGS="$option"
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603/* end confdefs.h. */
5604
5605int
5606main ()
5607{
5608
5609 ;
5610 return 0;
5611}
5612_ACEOF
5613if ac_fn_c_try_compile "$LINENO"; then :
5614 eval "$as_acx_Woption=yes"
5615else
5616 eval "$as_acx_Woption=no"
5617fi
5618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619
5620fi
5621eval ac_res=\$$as_acx_Woption
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5623$as_echo "$ac_res" >&6; }
5624 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5625 ac_lto_plugin_warn_cflags="$ac_lto_plugin_warn_cflags${ac_lto_plugin_warn_cflags:+ }$real_option"
5626fi
5627 done
5628CFLAGS="$save_CFLAGS"
5629ac_ext=c
5630ac_cpp='$CPP $CPPFLAGS'
5631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5633ac_compiler_gnu=$ac_cv_c_compiler_gnu
5634
5635
5636
5637# Check whether -static-libgcc is supported.
5638saved_LDFLAGS="$LDFLAGS"
5639LDFLAGS="$LDFLAGS -static-libgcc"
5640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-libgcc" >&5
5641$as_echo_n "checking for -static-libgcc... " >&6; }
5642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643/* end confdefs.h. */
5644
5645 int main() {}
5646_ACEOF
5647if ac_fn_c_try_link "$LINENO"; then :
5648 have_static_libgcc=yes
5649else
5650 have_static_libgcc=no
5651fi
5652rm -f core conftest.err conftest.$ac_objext \
5653 conftest$ac_exeext conftest.$ac_ext
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_static_libgcc" >&5
5655$as_echo "$have_static_libgcc" >&6; };
5656LDFLAGS="$saved_LDFLAGS"
5657# Need -Wc to get it through libtool.
5658if test "x$have_static_libgcc" = xyes; then
5659 ac_lto_plugin_ldflags="-Wc,-static-libgcc"
5660fi
5661
5662
5663if test x"$host_subdir" = x.; then
5664 gcc_build_dir=../gcc
5665else
5666 gcc_build_dir=../../$host_subdir/gcc
5667fi
5668
5669
5670# Used for constructing correct paths for offload compilers.
5671accel_dir_suffix=
5672real_target_noncanonical=${target_noncanonical}
5673if test x"$enable_as_accelerator_for" != x; then
5674 accel_dir_suffix=/accel/${target_noncanonical}
5675 real_target_noncanonical=${enable_as_accelerator_for}
5676fi
5677
5678
5679
3c36aa6b
JJ
5680# Determine what GCC version number to use in filesystem paths.
5681
5682 get_gcc_base_ver="cat"
5683
5684# Check whether --with-gcc-major-version-only was given.
5685if test "${with_gcc_major_version_only+set}" = set; then :
5686 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 5687 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
5688 fi
5689
5690fi
5691
5692
5693
5694
dcbc9df9
UB
5695case `pwd` in
5696 *\ * | *\ *)
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5698$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5699esac
5700
5701
5702
5703macro_version='2.2.7a'
5704macro_revision='1.3134'
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718ltmain="$ac_aux_dir/ltmain.sh"
5719
5720# Backslashify metacharacters that are still active within
5721# double-quoted strings.
5722sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5723
5724# Same as above, but do not quote variable references.
5725double_quote_subst='s/\(["`\\]\)/\\\1/g'
5726
5727# Sed substitution to delay expansion of an escaped shell variable in a
5728# double_quote_subst'ed string.
5729delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5730
5731# Sed substitution to delay expansion of an escaped single quote.
5732delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5733
5734# Sed substitution to avoid accidental globbing in evaled expressions
5735no_glob_subst='s/\*/\\\*/g'
5736
5737ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5738ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5739ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5740
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5742$as_echo_n "checking how to print strings... " >&6; }
5743# Test print first, because it will be a builtin if present.
5744if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5745 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5746 ECHO='print -r --'
5747elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5748 ECHO='printf %s\n'
5749else
5750 # Use this function as a fallback that always works.
5751 func_fallback_echo ()
5752 {
5753 eval 'cat <<_LTECHO_EOF
5754$1
5755_LTECHO_EOF'
5756 }
5757 ECHO='func_fallback_echo'
5758fi
5759
5760# func_echo_all arg...
5761# Invoke $ECHO with all args, space-separated.
5762func_echo_all ()
5763{
5764 $ECHO ""
5765}
5766
5767case "$ECHO" in
5768 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5769$as_echo "printf" >&6; } ;;
5770 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5771$as_echo "print -r" >&6; } ;;
5772 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5773$as_echo "cat" >&6; } ;;
5774esac
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5790$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 5791if ${ac_cv_path_SED+:} false; then :
dcbc9df9
UB
5792 $as_echo_n "(cached) " >&6
5793else
5794 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5795 for ac_i in 1 2 3 4 5 6 7; do
5796 ac_script="$ac_script$as_nl$ac_script"
5797 done
5798 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5799 { ac_script=; unset ac_script;}
5800 if test -z "$SED"; then
5801 ac_path_SED_found=false
5802 # Loop through the user's path and test for each of PROGNAME-LIST
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804for as_dir in $PATH
5805do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_prog in sed gsed; do
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5811 as_fn_executable_p "$ac_path_SED" || continue
dcbc9df9
UB
5812# Check for GNU ac_path_SED and select it if it is found.
5813 # Check for GNU $ac_path_SED
5814case `"$ac_path_SED" --version 2>&1` in
5815*GNU*)
5816 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5817*)
5818 ac_count=0
5819 $as_echo_n 0123456789 >"conftest.in"
5820 while :
5821 do
5822 cat "conftest.in" "conftest.in" >"conftest.tmp"
5823 mv "conftest.tmp" "conftest.in"
5824 cp "conftest.in" "conftest.nl"
5825 $as_echo '' >> "conftest.nl"
5826 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5827 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5828 as_fn_arith $ac_count + 1 && ac_count=$as_val
5829 if test $ac_count -gt ${ac_path_SED_max-0}; then
5830 # Best one so far, save it but keep looking for a better one
5831 ac_cv_path_SED="$ac_path_SED"
5832 ac_path_SED_max=$ac_count
5833 fi
5834 # 10*(2^10) chars as input seems more than enough
5835 test $ac_count -gt 10 && break
5836 done
5837 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5838esac
5839
5840 $ac_path_SED_found && break 3
5841 done
5842 done
5843 done
5844IFS=$as_save_IFS
5845 if test -z "$ac_cv_path_SED"; then
22e05272 5846 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
dcbc9df9
UB
5847 fi
5848else
5849 ac_cv_path_SED=$SED
5850fi
5851
5852fi
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5854$as_echo "$ac_cv_path_SED" >&6; }
5855 SED="$ac_cv_path_SED"
5856 rm -f conftest.sed
5857
5858test -z "$SED" && SED=sed
5859Xsed="$SED -e 1s/^X//"
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5872$as_echo_n "checking for fgrep... " >&6; }
22e05272 5873if ${ac_cv_path_FGREP+:} false; then :
dcbc9df9
UB
5874 $as_echo_n "(cached) " >&6
5875else
5876 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5877 then ac_cv_path_FGREP="$GREP -F"
5878 else
5879 if test -z "$FGREP"; then
5880 ac_path_FGREP_found=false
5881 # Loop through the user's path and test for each of PROGNAME-LIST
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5884do
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_prog in fgrep; do
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5890 as_fn_executable_p "$ac_path_FGREP" || continue
dcbc9df9
UB
5891# Check for GNU ac_path_FGREP and select it if it is found.
5892 # Check for GNU $ac_path_FGREP
5893case `"$ac_path_FGREP" --version 2>&1` in
5894*GNU*)
5895 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5896*)
5897 ac_count=0
5898 $as_echo_n 0123456789 >"conftest.in"
5899 while :
5900 do
5901 cat "conftest.in" "conftest.in" >"conftest.tmp"
5902 mv "conftest.tmp" "conftest.in"
5903 cp "conftest.in" "conftest.nl"
5904 $as_echo 'FGREP' >> "conftest.nl"
5905 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5906 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5907 as_fn_arith $ac_count + 1 && ac_count=$as_val
5908 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5909 # Best one so far, save it but keep looking for a better one
5910 ac_cv_path_FGREP="$ac_path_FGREP"
5911 ac_path_FGREP_max=$ac_count
5912 fi
5913 # 10*(2^10) chars as input seems more than enough
5914 test $ac_count -gt 10 && break
5915 done
5916 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5917esac
5918
5919 $ac_path_FGREP_found && break 3
5920 done
5921 done
5922 done
5923IFS=$as_save_IFS
5924 if test -z "$ac_cv_path_FGREP"; then
22e05272 5925 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
dcbc9df9
UB
5926 fi
5927else
5928 ac_cv_path_FGREP=$FGREP
5929fi
5930
5931 fi
5932fi
5933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5934$as_echo "$ac_cv_path_FGREP" >&6; }
5935 FGREP="$ac_cv_path_FGREP"
5936
5937
5938test -z "$GREP" && GREP=grep
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958# Check whether --with-gnu-ld was given.
5959if test "${with_gnu_ld+set}" = set; then :
5960 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5961else
5962 with_gnu_ld=no
5963fi
5964
5965ac_prog=ld
5966if test "$GCC" = yes; then
5967 # Check if gcc -print-prog-name=ld gives a path.
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5969$as_echo_n "checking for ld used by $CC... " >&6; }
5970 case $host in
5971 *-*-mingw*)
5972 # gcc leaves a trailing carriage return which upsets mingw
5973 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5974 *)
5975 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5976 esac
5977 case $ac_prog in
5978 # Accept absolute paths.
5979 [\\/]* | ?:[\\/]*)
5980 re_direlt='/[^/][^/]*/\.\./'
5981 # Canonicalize the pathname of ld
5982 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5983 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5984 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5985 done
5986 test -z "$LD" && LD="$ac_prog"
5987 ;;
5988 "")
5989 # If it fails, then pretend we aren't using GCC.
5990 ac_prog=ld
5991 ;;
5992 *)
5993 # If it is relative, then search for the first ld in PATH.
5994 with_gnu_ld=unknown
5995 ;;
5996 esac
5997elif test "$with_gnu_ld" = yes; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5999$as_echo_n "checking for GNU ld... " >&6; }
6000else
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6002$as_echo_n "checking for non-GNU ld... " >&6; }
6003fi
22e05272 6004if ${lt_cv_path_LD+:} false; then :
dcbc9df9
UB
6005 $as_echo_n "(cached) " >&6
6006else
6007 if test -z "$LD"; then
6008 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6009 for ac_dir in $PATH; do
6010 IFS="$lt_save_ifs"
6011 test -z "$ac_dir" && ac_dir=.
6012 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6013 lt_cv_path_LD="$ac_dir/$ac_prog"
6014 # Check to see if the program is GNU ld. I'd rather use --version,
6015 # but apparently some variants of GNU ld only accept -v.
6016 # Break only if it was the GNU/non-GNU ld that we prefer.
6017 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6018 *GNU* | *'with BFD'*)
6019 test "$with_gnu_ld" != no && break
6020 ;;
6021 *)
6022 test "$with_gnu_ld" != yes && break
6023 ;;
6024 esac
6025 fi
6026 done
6027 IFS="$lt_save_ifs"
6028else
6029 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6030fi
6031fi
6032
6033LD="$lt_cv_path_LD"
6034if test -n "$LD"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6036$as_echo "$LD" >&6; }
6037else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039$as_echo "no" >&6; }
6040fi
22e05272 6041test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
dcbc9df9
UB
6042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6043$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 6044if ${lt_cv_prog_gnu_ld+:} false; then :
dcbc9df9
UB
6045 $as_echo_n "(cached) " >&6
6046else
6047 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6048case `$LD -v 2>&1 </dev/null` in
6049*GNU* | *'with BFD'*)
6050 lt_cv_prog_gnu_ld=yes
6051 ;;
6052*)
6053 lt_cv_prog_gnu_ld=no
6054 ;;
6055esac
6056fi
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6058$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6059with_gnu_ld=$lt_cv_prog_gnu_ld
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6070$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 6071if ${lt_cv_path_NM+:} false; then :
dcbc9df9
UB
6072 $as_echo_n "(cached) " >&6
6073else
6074 if test -n "$NM"; then
6075 # Let the user override the test.
6076 lt_cv_path_NM="$NM"
6077else
6078 lt_nm_to_check="${ac_tool_prefix}nm"
6079 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6080 lt_nm_to_check="$lt_nm_to_check nm"
6081 fi
6082 for lt_tmp_nm in $lt_nm_to_check; do
6083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6084 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6085 IFS="$lt_save_ifs"
6086 test -z "$ac_dir" && ac_dir=.
6087 tmp_nm="$ac_dir/$lt_tmp_nm"
6088 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6089 # Check to see if the nm accepts a BSD-compat flag.
6090 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6091 # nm: unknown option "B" ignored
6092 # Tru64's nm complains that /dev/null is an invalid object file
6093 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6094 */dev/null* | *'Invalid file or object type'*)
6095 lt_cv_path_NM="$tmp_nm -B"
6096 break
6097 ;;
6098 *)
6099 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6100 */dev/null*)
6101 lt_cv_path_NM="$tmp_nm -p"
6102 break
6103 ;;
6104 *)
6105 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6106 continue # so that we can try to find one that supports BSD flags
6107 ;;
6108 esac
6109 ;;
6110 esac
6111 fi
6112 done
6113 IFS="$lt_save_ifs"
6114 done
6115 : ${lt_cv_path_NM=no}
6116fi
6117fi
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6119$as_echo "$lt_cv_path_NM" >&6; }
6120if test "$lt_cv_path_NM" != "no"; then
6121 NM="$lt_cv_path_NM"
6122else
6123 # Didn't find any BSD compatible name lister, look for dumpbin.
6124 if test -n "$DUMPBIN"; then :
6125 # Let the user override the test.
6126 else
6127 if test -n "$ac_tool_prefix"; then
6128 for ac_prog in dumpbin "link -dump"
6129 do
6130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6131set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6134if ${ac_cv_prog_DUMPBIN+:} false; then :
dcbc9df9
UB
6135 $as_echo_n "(cached) " >&6
6136else
6137 if test -n "$DUMPBIN"; then
6138 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6139else
6140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141for as_dir in $PATH
6142do
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
6147 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 break 2
6150 fi
6151done
6152 done
6153IFS=$as_save_IFS
6154
6155fi
6156fi
6157DUMPBIN=$ac_cv_prog_DUMPBIN
6158if test -n "$DUMPBIN"; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6160$as_echo "$DUMPBIN" >&6; }
6161else
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163$as_echo "no" >&6; }
6164fi
6165
6166
6167 test -n "$DUMPBIN" && break
6168 done
6169fi
6170if test -z "$DUMPBIN"; then
6171 ac_ct_DUMPBIN=$DUMPBIN
6172 for ac_prog in dumpbin "link -dump"
6173do
6174 # Extract the first word of "$ac_prog", so it can be a program name with args.
6175set dummy $ac_prog; ac_word=$2
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6178if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
dcbc9df9
UB
6179 $as_echo_n "(cached) " >&6
6180else
6181 if test -n "$ac_ct_DUMPBIN"; then
6182 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6183else
6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
6191 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 break 2
6194 fi
6195done
6196 done
6197IFS=$as_save_IFS
6198
6199fi
6200fi
6201ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6202if test -n "$ac_ct_DUMPBIN"; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6204$as_echo "$ac_ct_DUMPBIN" >&6; }
6205else
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207$as_echo "no" >&6; }
6208fi
6209
6210
6211 test -n "$ac_ct_DUMPBIN" && break
6212done
6213
6214 if test "x$ac_ct_DUMPBIN" = x; then
6215 DUMPBIN=":"
6216 else
6217 case $cross_compiling:$ac_tool_warned in
6218yes:)
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221ac_tool_warned=yes ;;
6222esac
6223 DUMPBIN=$ac_ct_DUMPBIN
6224 fi
6225fi
6226
6227 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6228 *COFF*)
6229 DUMPBIN="$DUMPBIN -symbols"
6230 ;;
6231 *)
6232 DUMPBIN=:
6233 ;;
6234 esac
6235 fi
6236
6237 if test "$DUMPBIN" != ":"; then
6238 NM="$DUMPBIN"
6239 fi
6240fi
6241test -z "$NM" && NM=nm
6242
6243
6244
6245
6246
6247
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6249$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 6250if ${lt_cv_nm_interface+:} false; then :
dcbc9df9
UB
6251 $as_echo_n "(cached) " >&6
6252else
6253 lt_cv_nm_interface="BSD nm"
6254 echo "int some_variable = 0;" > conftest.$ac_ext
6255 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6256 (eval "$ac_compile" 2>conftest.err)
6257 cat conftest.err >&5
6258 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6259 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6260 cat conftest.err >&5
6261 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6262 cat conftest.out >&5
6263 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6264 lt_cv_nm_interface="MS dumpbin"
6265 fi
6266 rm -f conftest*
6267fi
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6269$as_echo "$lt_cv_nm_interface" >&6; }
6270
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6272$as_echo_n "checking whether ln -s works... " >&6; }
6273LN_S=$as_ln_s
6274if test "$LN_S" = "ln -s"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6276$as_echo "yes" >&6; }
6277else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6279$as_echo "no, using $LN_S" >&6; }
6280fi
6281
6282# find the maximum length of command line arguments
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6284$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 6285if ${lt_cv_sys_max_cmd_len+:} false; then :
dcbc9df9
UB
6286 $as_echo_n "(cached) " >&6
6287else
6288 i=0
6289 teststring="ABCD"
6290
6291 case $build_os in
6292 msdosdjgpp*)
6293 # On DJGPP, this test can blow up pretty badly due to problems in libc
6294 # (any single argument exceeding 2000 bytes causes a buffer overrun
6295 # during glob expansion). Even if it were fixed, the result of this
6296 # check would be larger than it should be.
6297 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6298 ;;
6299
6300 gnu*)
6301 # Under GNU Hurd, this test is not required because there is
6302 # no limit to the length of command line arguments.
6303 # Libtool will interpret -1 as no limit whatsoever
6304 lt_cv_sys_max_cmd_len=-1;
6305 ;;
6306
6307 cygwin* | mingw* | cegcc*)
6308 # On Win9x/ME, this test blows up -- it succeeds, but takes
6309 # about 5 minutes as the teststring grows exponentially.
6310 # Worse, since 9x/ME are not pre-emptively multitasking,
6311 # you end up with a "frozen" computer, even though with patience
6312 # the test eventually succeeds (with a max line length of 256k).
6313 # Instead, let's just punt: use the minimum linelength reported by
6314 # all of the supported platforms: 8192 (on NT/2K/XP).
6315 lt_cv_sys_max_cmd_len=8192;
6316 ;;
6317
6318 mint*)
6319 # On MiNT this can take a long time and run out of memory.
6320 lt_cv_sys_max_cmd_len=8192;
6321 ;;
6322
6323 amigaos*)
6324 # On AmigaOS with pdksh, this test takes hours, literally.
6325 # So we just punt and use a minimum line length of 8192.
6326 lt_cv_sys_max_cmd_len=8192;
6327 ;;
6328
6329 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6330 # This has been around since 386BSD, at least. Likely further.
6331 if test -x /sbin/sysctl; then
6332 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6333 elif test -x /usr/sbin/sysctl; then
6334 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6335 else
6336 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6337 fi
6338 # And add a safety zone
6339 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6340 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6341 ;;
6342
6343 interix*)
6344 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6345 lt_cv_sys_max_cmd_len=196608
6346 ;;
6347
6348 osf*)
6349 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6350 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6351 # nice to cause kernel panics so lets avoid the loop below.
6352 # First set a reasonable default.
6353 lt_cv_sys_max_cmd_len=16384
6354 #
6355 if test -x /sbin/sysconfig; then
6356 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6357 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6358 esac
6359 fi
6360 ;;
6361 sco3.2v5*)
6362 lt_cv_sys_max_cmd_len=102400
6363 ;;
6364 sysv5* | sco5v6* | sysv4.2uw2*)
6365 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6366 if test -n "$kargmax"; then
6367 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6368 else
6369 lt_cv_sys_max_cmd_len=32768
6370 fi
6371 ;;
6372 *)
6373 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6374 if test -n "$lt_cv_sys_max_cmd_len"; then
6375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6377 else
6378 # Make teststring a little bigger before we do anything with it.
6379 # a 1K string should be a reasonable start.
6380 for i in 1 2 3 4 5 6 7 8 ; do
6381 teststring=$teststring$teststring
6382 done
6383 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6384 # If test is not a shell built-in, we'll probably end up computing a
6385 # maximum length that is only half of the actual maximum length, but
6386 # we can't tell.
6387 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6388 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6389 test $i != 17 # 1/2 MB should be enough
6390 do
6391 i=`expr $i + 1`
6392 teststring=$teststring$teststring
6393 done
6394 # Only check the string length outside the loop.
6395 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6396 teststring=
6397 # Add a significant safety factor because C++ compilers can tack on
6398 # massive amounts of additional arguments before passing them to the
6399 # linker. It appears as though 1/2 is a usable value.
6400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6401 fi
6402 ;;
d7f09764
DN
6403 esac
6404
6405fi
6406
6407if test -n $lt_cv_sys_max_cmd_len ; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6409$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6410else
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6412$as_echo "none" >&6; }
6413fi
6414max_cmd_len=$lt_cv_sys_max_cmd_len
6415
6416
6417
6418
6419
6420
6421: ${CP="cp -f"}
6422: ${MV="mv -f"}
6423: ${RM="rm -f"}
6424
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6426$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6427# Try some XSI features
6428xsi_shell=no
6429( _lt_dummy="a/b/c"
6430 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6431 = c,a/b,, \
6432 && eval 'test $(( 1 + 1 )) -eq 2 \
6433 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6434 && xsi_shell=yes
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6436$as_echo "$xsi_shell" >&6; }
6437
6438
6439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6440$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6441lt_shell_append=no
6442( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6443 >/dev/null 2>&1 \
6444 && lt_shell_append=yes
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6446$as_echo "$lt_shell_append" >&6; }
6447
6448
6449if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6450 lt_unset=unset
6451else
6452 lt_unset=false
6453fi
6454
6455
6456
6457
6458
6459# test EBCDIC or ASCII
6460case `echo X|tr X '\101'` in
6461 A) # ASCII based system
6462 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6463 lt_SP2NL='tr \040 \012'
6464 lt_NL2SP='tr \015\012 \040\040'
6465 ;;
6466 *) # EBCDIC based system
6467 lt_SP2NL='tr \100 \n'
6468 lt_NL2SP='tr \r\n \100\100'
6469 ;;
6470esac
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6481$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 6482if ${lt_cv_ld_reload_flag+:} false; then :
d7f09764
DN
6483 $as_echo_n "(cached) " >&6
6484else
6485 lt_cv_ld_reload_flag='-r'
6486fi
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6488$as_echo "$lt_cv_ld_reload_flag" >&6; }
6489reload_flag=$lt_cv_ld_reload_flag
6490case $reload_flag in
6491"" | " "*) ;;
6492*) reload_flag=" $reload_flag" ;;
6493esac
6494reload_cmds='$LD$reload_flag -o $output$reload_objs'
6495case $host_os in
6496 darwin*)
6497 if test "$GCC" = yes; then
6498 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6499 else
6500 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6501 fi
6502 ;;
6503esac
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513if test -n "$ac_tool_prefix"; then
6514 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6515set dummy ${ac_tool_prefix}objdump; ac_word=$2
6516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6518if ${ac_cv_prog_OBJDUMP+:} false; then :
d7f09764
DN
6519 $as_echo_n "(cached) " >&6
6520else
6521 if test -n "$OBJDUMP"; then
6522 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6523else
6524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525for as_dir in $PATH
6526do
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
6531 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 break 2
6534 fi
6535done
6536 done
6537IFS=$as_save_IFS
6538
6539fi
6540fi
6541OBJDUMP=$ac_cv_prog_OBJDUMP
6542if test -n "$OBJDUMP"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6544$as_echo "$OBJDUMP" >&6; }
6545else
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547$as_echo "no" >&6; }
6548fi
6549
6550
6551fi
6552if test -z "$ac_cv_prog_OBJDUMP"; then
6553 ac_ct_OBJDUMP=$OBJDUMP
6554 # Extract the first word of "objdump", so it can be a program name with args.
6555set dummy objdump; ac_word=$2
6556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6558if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
d7f09764
DN
6559 $as_echo_n "(cached) " >&6
6560else
6561 if test -n "$ac_ct_OBJDUMP"; then
6562 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6563else
6564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565for as_dir in $PATH
6566do
6567 IFS=$as_save_IFS
6568 test -z "$as_dir" && as_dir=.
6569 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
6571 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 break 2
6574 fi
6575done
6576 done
6577IFS=$as_save_IFS
6578
6579fi
6580fi
6581ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6582if test -n "$ac_ct_OBJDUMP"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6584$as_echo "$ac_ct_OBJDUMP" >&6; }
6585else
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587$as_echo "no" >&6; }
6588fi
6589
6590 if test "x$ac_ct_OBJDUMP" = x; then
6591 OBJDUMP="false"
6592 else
6593 case $cross_compiling:$ac_tool_warned in
6594yes:)
6595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6597ac_tool_warned=yes ;;
6598esac
6599 OBJDUMP=$ac_ct_OBJDUMP
6600 fi
6601else
6602 OBJDUMP="$ac_cv_prog_OBJDUMP"
6603fi
6604
6605test -z "$OBJDUMP" && OBJDUMP=objdump
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6616$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 6617if ${lt_cv_deplibs_check_method+:} false; then :
d7f09764
DN
6618 $as_echo_n "(cached) " >&6
6619else
6620 lt_cv_file_magic_cmd='$MAGIC_CMD'
6621lt_cv_file_magic_test_file=
6622lt_cv_deplibs_check_method='unknown'
6623# Need to set the preceding variable on all platforms that support
6624# interlibrary dependencies.
6625# 'none' -- dependencies not supported.
6626# `unknown' -- same as none, but documents that we really don't know.
6627# 'pass_all' -- all dependencies passed with no checks.
6628# 'test_compile' -- check by making test program.
6629# 'file_magic [[regex]]' -- check by looking for files in library path
6630# which responds to the $file_magic_cmd with a given extended regex.
6631# If you have `file' or equivalent on your system and you're not sure
6632# whether `pass_all' will *always* work, you probably want this one.
6633
6634case $host_os in
6635aix[4-9]*)
6636 lt_cv_deplibs_check_method=pass_all
6637 ;;
6638
6639beos*)
6640 lt_cv_deplibs_check_method=pass_all
6641 ;;
6642
6643bsdi[45]*)
6644 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6645 lt_cv_file_magic_cmd='/usr/bin/file -L'
6646 lt_cv_file_magic_test_file=/shlib/libc.so
6647 ;;
6648
6649cygwin*)
6650 # func_win32_libid is a shell function defined in ltmain.sh
6651 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6652 lt_cv_file_magic_cmd='func_win32_libid'
6653 ;;
6654
6655mingw* | pw32*)
6656 # Base MSYS/MinGW do not provide the 'file' command needed by
6657 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6658 # unless we find 'file', for example because we are cross-compiling.
52327858
L
6659 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6660 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
d7f09764
DN
6661 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6662 lt_cv_file_magic_cmd='func_win32_libid'
6663 else
6664 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6665 lt_cv_file_magic_cmd='$OBJDUMP -f'
6666 fi
6667 ;;
6668
52327858 6669cegcc*)
d7f09764
DN
6670 # use the weaker test based on 'objdump'. See mingw*.
6671 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6672 lt_cv_file_magic_cmd='$OBJDUMP -f'
6673 ;;
6674
6675darwin* | rhapsody*)
6676 lt_cv_deplibs_check_method=pass_all
6677 ;;
6678
6679freebsd* | dragonfly*)
6680 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6681 case $host_cpu in
6682 i*86 )
6683 # Not sure whether the presence of OpenBSD here was a mistake.
6684 # Let's accept both of them until this is cleared up.
6685 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6686 lt_cv_file_magic_cmd=/usr/bin/file
6687 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6688 ;;
6689 esac
6690 else
6691 lt_cv_deplibs_check_method=pass_all
6692 fi
6693 ;;
6694
6695gnu*)
6696 lt_cv_deplibs_check_method=pass_all
6697 ;;
6698
52327858
L
6699haiku*)
6700 lt_cv_deplibs_check_method=pass_all
6701 ;;
6702
d7f09764
DN
6703hpux10.20* | hpux11*)
6704 lt_cv_file_magic_cmd=/usr/bin/file
6705 case $host_cpu in
6706 ia64*)
6707 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6708 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6709 ;;
6710 hppa*64*)
52327858 6711 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
d7f09764
DN
6712 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6713 ;;
6714 *)
52327858 6715 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
d7f09764
DN
6716 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6717 ;;
6718 esac
6719 ;;
6720
6721interix[3-9]*)
6722 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6724 ;;
6725
6726irix5* | irix6* | nonstopux*)
6727 case $LD in
6728 *-32|*"-32 ") libmagic=32-bit;;
6729 *-n32|*"-n32 ") libmagic=N32;;
6730 *-64|*"-64 ") libmagic=64-bit;;
6731 *) libmagic=never-match;;
6732 esac
6733 lt_cv_deplibs_check_method=pass_all
6734 ;;
6735
6736# This must be Linux ELF.
6737linux* | k*bsd*-gnu | kopensolaris*-gnu)
6738 lt_cv_deplibs_check_method=pass_all
6739 ;;
6740
6741netbsd*)
6742 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6743 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6744 else
6745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6746 fi
6747 ;;
6748
6749newos6*)
6750 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6751 lt_cv_file_magic_cmd=/usr/bin/file
6752 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6753 ;;
6754
6755*nto* | *qnx*)
6756 lt_cv_deplibs_check_method=pass_all
6757 ;;
6758
6759openbsd*)
6760 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6761 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6762 else
6763 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6764 fi
6765 ;;
6766
6767osf3* | osf4* | osf5*)
6768 lt_cv_deplibs_check_method=pass_all
6769 ;;
6770
6771rdos*)
6772 lt_cv_deplibs_check_method=pass_all
6773 ;;
6774
6775solaris*)
6776 lt_cv_deplibs_check_method=pass_all
6777 ;;
6778
6779sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6780 lt_cv_deplibs_check_method=pass_all
6781 ;;
6782
6783sysv4 | sysv4.3*)
6784 case $host_vendor in
6785 motorola)
6786 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]'
6787 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6788 ;;
6789 ncr)
6790 lt_cv_deplibs_check_method=pass_all
6791 ;;
6792 sequent)
6793 lt_cv_file_magic_cmd='/bin/file'
6794 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6795 ;;
6796 sni)
6797 lt_cv_file_magic_cmd='/bin/file'
6798 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6799 lt_cv_file_magic_test_file=/lib/libc.so
6800 ;;
6801 siemens)
6802 lt_cv_deplibs_check_method=pass_all
6803 ;;
6804 pc)
6805 lt_cv_deplibs_check_method=pass_all
6806 ;;
6807 esac
6808 ;;
6809
6810tpf*)
6811 lt_cv_deplibs_check_method=pass_all
6812 ;;
6813esac
6814
6815fi
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6817$as_echo "$lt_cv_deplibs_check_method" >&6; }
6818file_magic_cmd=$lt_cv_file_magic_cmd
6819deplibs_check_method=$lt_cv_deplibs_check_method
6820test -z "$deplibs_check_method" && deplibs_check_method=unknown
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833if test -n "$ac_tool_prefix"; then
6834 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6835set dummy ${ac_tool_prefix}ar; ac_word=$2
6836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6838if ${ac_cv_prog_AR+:} false; then :
d7f09764
DN
6839 $as_echo_n "(cached) " >&6
6840else
6841 if test -n "$AR"; then
6842 ac_cv_prog_AR="$AR" # Let the user override the test.
6843else
6844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845for as_dir in $PATH
6846do
6847 IFS=$as_save_IFS
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
6851 ac_cv_prog_AR="${ac_tool_prefix}ar"
6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 break 2
6854 fi
6855done
6856 done
6857IFS=$as_save_IFS
6858
6859fi
6860fi
6861AR=$ac_cv_prog_AR
6862if test -n "$AR"; then
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6864$as_echo "$AR" >&6; }
6865else
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867$as_echo "no" >&6; }
6868fi
6869
6870
6871fi
6872if test -z "$ac_cv_prog_AR"; then
6873 ac_ct_AR=$AR
6874 # Extract the first word of "ar", so it can be a program name with args.
6875set dummy ar; ac_word=$2
6876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6878if ${ac_cv_prog_ac_ct_AR+:} false; then :
d7f09764
DN
6879 $as_echo_n "(cached) " >&6
6880else
6881 if test -n "$ac_ct_AR"; then
6882 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6883else
6884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885for as_dir in $PATH
6886do
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
6891 ac_cv_prog_ac_ct_AR="ar"
6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 break 2
6894 fi
6895done
6896 done
6897IFS=$as_save_IFS
6898
6899fi
6900fi
6901ac_ct_AR=$ac_cv_prog_ac_ct_AR
6902if test -n "$ac_ct_AR"; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6904$as_echo "$ac_ct_AR" >&6; }
6905else
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907$as_echo "no" >&6; }
6908fi
6909
6910 if test "x$ac_ct_AR" = x; then
6911 AR="false"
6912 else
6913 case $cross_compiling:$ac_tool_warned in
6914yes:)
6915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6917ac_tool_warned=yes ;;
6918esac
6919 AR=$ac_ct_AR
6920 fi
6921else
6922 AR="$ac_cv_prog_AR"
6923fi
6924
6925test -z "$AR" && AR=ar
6926test -z "$AR_FLAGS" && AR_FLAGS=cru
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938if test -n "$ac_tool_prefix"; then
6939 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6940set dummy ${ac_tool_prefix}strip; ac_word=$2
6941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6943if ${ac_cv_prog_STRIP+:} false; then :
d7f09764
DN
6944 $as_echo_n "(cached) " >&6
6945else
6946 if test -n "$STRIP"; then
6947 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6948else
6949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950for as_dir in $PATH
6951do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
6956 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6959 fi
6960done
6961 done
6962IFS=$as_save_IFS
6963
6964fi
6965fi
6966STRIP=$ac_cv_prog_STRIP
6967if test -n "$STRIP"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6969$as_echo "$STRIP" >&6; }
6970else
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972$as_echo "no" >&6; }
6973fi
6974
6975
6976fi
6977if test -z "$ac_cv_prog_STRIP"; then
6978 ac_ct_STRIP=$STRIP
6979 # Extract the first word of "strip", so it can be a program name with args.
6980set dummy strip; ac_word=$2
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6983if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
d7f09764
DN
6984 $as_echo_n "(cached) " >&6
6985else
6986 if test -n "$ac_ct_STRIP"; then
6987 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6988else
6989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990for as_dir in $PATH
6991do
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
6996 ac_cv_prog_ac_ct_STRIP="strip"
6997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
6999 fi
7000done
7001 done
7002IFS=$as_save_IFS
7003
7004fi
7005fi
7006ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7007if test -n "$ac_ct_STRIP"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7009$as_echo "$ac_ct_STRIP" >&6; }
7010else
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012$as_echo "no" >&6; }
7013fi
7014
7015 if test "x$ac_ct_STRIP" = x; then
7016 STRIP=":"
7017 else
7018 case $cross_compiling:$ac_tool_warned in
7019yes:)
7020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7022ac_tool_warned=yes ;;
7023esac
7024 STRIP=$ac_ct_STRIP
7025 fi
7026else
7027 STRIP="$ac_cv_prog_STRIP"
7028fi
7029
7030test -z "$STRIP" && STRIP=:
7031
7032
7033
7034
7035
7036
7037if test -n "$ac_tool_prefix"; then
7038 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7039set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7041$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7042if ${ac_cv_prog_RANLIB+:} false; then :
d7f09764
DN
7043 $as_echo_n "(cached) " >&6
7044else
7045 if test -n "$RANLIB"; then
7046 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7047else
7048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049for as_dir in $PATH
7050do
7051 IFS=$as_save_IFS
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
7055 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 break 2
7058 fi
7059done
7060 done
7061IFS=$as_save_IFS
7062
7063fi
7064fi
7065RANLIB=$ac_cv_prog_RANLIB
7066if test -n "$RANLIB"; then
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7068$as_echo "$RANLIB" >&6; }
7069else
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071$as_echo "no" >&6; }
7072fi
7073
7074
7075fi
7076if test -z "$ac_cv_prog_RANLIB"; then
7077 ac_ct_RANLIB=$RANLIB
7078 # Extract the first word of "ranlib", so it can be a program name with args.
7079set dummy ranlib; ac_word=$2
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7082if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
d7f09764
DN
7083 $as_echo_n "(cached) " >&6
7084else
7085 if test -n "$ac_ct_RANLIB"; then
7086 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7087else
7088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089for as_dir in $PATH
7090do
7091 IFS=$as_save_IFS
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
7095 ac_cv_prog_ac_ct_RANLIB="ranlib"
7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7097 break 2
7098 fi
7099done
7100 done
7101IFS=$as_save_IFS
7102
7103fi
7104fi
7105ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7106if test -n "$ac_ct_RANLIB"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7108$as_echo "$ac_ct_RANLIB" >&6; }
7109else
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111$as_echo "no" >&6; }
7112fi
7113
7114 if test "x$ac_ct_RANLIB" = x; then
7115 RANLIB=":"
7116 else
7117 case $cross_compiling:$ac_tool_warned in
7118yes:)
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7121ac_tool_warned=yes ;;
7122esac
7123 RANLIB=$ac_ct_RANLIB
7124 fi
7125else
7126 RANLIB="$ac_cv_prog_RANLIB"
7127fi
7128
7129test -z "$RANLIB" && RANLIB=:
7130
7131
7132
7133
7134
7135
7136# Determine commands to create old-style static archives.
7137old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7138old_postinstall_cmds='chmod 644 $oldlib'
7139old_postuninstall_cmds=
7140
7141if test -n "$RANLIB"; then
7142 case $host_os in
7143 openbsd*)
7144 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7145 ;;
7146 *)
7147 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7148 ;;
7149 esac
7150 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7151fi
7152
52327858
L
7153case $host_os in
7154 darwin*)
7155 lock_old_archive_extraction=yes ;;
7156 *)
7157 lock_old_archive_extraction=no ;;
7158esac
7159
7160
7161
7162
7163
7164
d7f09764
DN
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198# If no C compiler was specified, use CC.
7199LTCC=${LTCC-"$CC"}
7200
7201# If no C compiler flags were specified, use CFLAGS.
7202LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7203
7204# Allow CC to be a program name with arguments.
7205compiler=$CC
7206
7207
7208# Check for command to grab the raw symbol name followed by C symbol from nm.
7209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7210$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 7211if ${lt_cv_sys_global_symbol_pipe+:} false; then :
d7f09764
DN
7212 $as_echo_n "(cached) " >&6
7213else
7214
7215# These are sane defaults that work on at least a few old systems.
7216# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7217
7218# Character class describing NM global symbol codes.
7219symcode='[BCDEGRST]'
7220
7221# Regexp to match symbols that can be accessed directly from C.
7222sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7223
7224# Define system-specific variables.
7225case $host_os in
7226aix*)
7227 symcode='[BCDT]'
7228 ;;
7229cygwin* | mingw* | pw32* | cegcc*)
7230 symcode='[ABCDGISTW]'
7231 ;;
7232hpux*)
7233 if test "$host_cpu" = ia64; then
7234 symcode='[ABCDEGRST]'
7235 fi
7236 ;;
7237irix* | nonstopux*)
7238 symcode='[BCDEGRST]'
7239 ;;
7240osf*)
7241 symcode='[BCDEGQRST]'
7242 ;;
7243solaris*)
7244 symcode='[BDRT]'
7245 ;;
7246sco3.2v5*)
7247 symcode='[DT]'
7248 ;;
7249sysv4.2uw2*)
7250 symcode='[DT]'
7251 ;;
7252sysv5* | sco5v6* | unixware* | OpenUNIX*)
7253 symcode='[ABDT]'
7254 ;;
7255sysv4)
7256 symcode='[DFNSTU]'
7257 ;;
7258esac
7259
7260# If we're using GNU nm, then use its standard symbol codes.
7261case `$NM -V 2>&1` in
7262*GNU* | *'with BFD'*)
7263 symcode='[ABCDGIRSTW]' ;;
7264esac
7265
7266# Transform an extracted symbol line into a proper C declaration.
7267# Some systems (esp. on ia64) link data and code symbols differently,
7268# so use this general approach.
7269lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7270
7271# Transform an extracted symbol line into symbol name and symbol address
7272lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7273lt_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'"
7274
7275# Handle CRLF in mingw tool chain
7276opt_cr=
7277case $build_os in
7278mingw*)
7279 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7280 ;;
7281esac
7282
7283# Try without a prefix underscore, then with it.
7284for ac_symprfx in "" "_"; do
7285
7286 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7287 symxfrm="\\1 $ac_symprfx\\2 \\2"
7288
7289 # Write the raw and C identifiers.
7290 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7291 # Fake it for dumpbin and say T for any non-static function
7292 # and D for any global variable.
7293 # Also find C++ and __fastcall symbols from MSVC++,
7294 # which start with @ or ?.
7295 lt_cv_sys_global_symbol_pipe="$AWK '"\
7296" {last_section=section; section=\$ 3};"\
7297" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7298" \$ 0!~/External *\|/{next};"\
7299" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7300" {if(hide[section]) next};"\
7301" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7302" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7303" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7304" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7305" ' prfx=^$ac_symprfx"
7306 else
7307 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7308 fi
7309
7310 # Check to see that the pipe works correctly.
7311 pipe_works=no
7312
7313 rm -f conftest*
7314 cat > conftest.$ac_ext <<_LT_EOF
7315#ifdef __cplusplus
7316extern "C" {
7317#endif
7318char nm_test_var;
7319void nm_test_func(void);
7320void nm_test_func(void){}
7321#ifdef __cplusplus
7322}
7323#endif
7324int main(){nm_test_var='a';nm_test_func();return(0);}
7325_LT_EOF
7326
7327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7328 (eval $ac_compile) 2>&5
7329 ac_status=$?
7330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7331 test $ac_status = 0; }; then
7332 # Now try to grab the symbols.
7333 nlist=conftest.nm
52327858
L
7334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7335 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
d7f09764
DN
7336 ac_status=$?
7337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7338 test $ac_status = 0; } && test -s "$nlist"; then
7339 # Try sorting and uniquifying the output.
7340 if sort "$nlist" | uniq > "$nlist"T; then
7341 mv -f "$nlist"T "$nlist"
7342 else
7343 rm -f "$nlist"T
7344 fi
7345
7346 # Make sure that we snagged all the symbols we need.
7347 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7348 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7349 cat <<_LT_EOF > conftest.$ac_ext
7350#ifdef __cplusplus
7351extern "C" {
7352#endif
7353
7354_LT_EOF
7355 # Now generate the symbol file.
7356 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7357
7358 cat <<_LT_EOF >> conftest.$ac_ext
7359
7360/* The mapping between symbol names and symbols. */
7361const struct {
7362 const char *name;
7363 void *address;
7364}
7365lt__PROGRAM__LTX_preloaded_symbols[] =
7366{
7367 { "@PROGRAM@", (void *) 0 },
7368_LT_EOF
7369 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7370 cat <<\_LT_EOF >> conftest.$ac_ext
7371 {0, (void *) 0}
7372};
7373
7374/* This works around a problem in FreeBSD linker */
7375#ifdef FREEBSD_WORKAROUND
7376static const void *lt_preloaded_setup() {
7377 return lt__PROGRAM__LTX_preloaded_symbols;
7378}
7379#endif
7380
7381#ifdef __cplusplus
7382}
7383#endif
7384_LT_EOF
7385 # Now try linking the two files.
7386 mv conftest.$ac_objext conftstm.$ac_objext
7387 lt_save_LIBS="$LIBS"
7388 lt_save_CFLAGS="$CFLAGS"
7389 LIBS="conftstm.$ac_objext"
7390 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7392 (eval $ac_link) 2>&5
7393 ac_status=$?
7394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7395 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7396 pipe_works=yes
7397 fi
7398 LIBS="$lt_save_LIBS"
7399 CFLAGS="$lt_save_CFLAGS"
7400 else
7401 echo "cannot find nm_test_func in $nlist" >&5
7402 fi
7403 else
7404 echo "cannot find nm_test_var in $nlist" >&5
7405 fi
7406 else
7407 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7408 fi
7409 else
7410 echo "$progname: failed program was:" >&5
7411 cat conftest.$ac_ext >&5
7412 fi
7413 rm -rf conftest* conftst*
7414
7415 # Do not use the global_symbol_pipe unless it works.
7416 if test "$pipe_works" = yes; then
7417 break
7418 else
7419 lt_cv_sys_global_symbol_pipe=
7420 fi
7421done
7422
7423fi
7424
7425if test -z "$lt_cv_sys_global_symbol_pipe"; then
7426 lt_cv_sys_global_symbol_to_cdecl=
7427fi
7428if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7430$as_echo "failed" >&6; }
7431else
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7433$as_echo "ok" >&6; }
7434fi
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
d7f09764
DN
7455
7456
7457# Check whether --enable-libtool-lock was given.
7458if test "${enable_libtool_lock+set}" = set; then :
7459 enableval=$enable_libtool_lock;
7460fi
7461
7462test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7463
7464# Some flags need to be propagated to the compiler or linker for good
7465# libtool support.
7466case $host in
7467ia64-*-hpux*)
7468 # Find out which ABI we are using.
7469 echo 'int i;' > conftest.$ac_ext
7470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7471 (eval $ac_compile) 2>&5
7472 ac_status=$?
7473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7474 test $ac_status = 0; }; then
7475 case `/usr/bin/file conftest.$ac_objext` in
7476 *ELF-32*)
7477 HPUX_IA64_MODE="32"
7478 ;;
7479 *ELF-64*)
7480 HPUX_IA64_MODE="64"
7481 ;;
7482 esac
7483 fi
7484 rm -rf conftest*
7485 ;;
7486*-*-irix6*)
7487 # Find out which ABI we are using.
52327858 7488 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
d7f09764
DN
7489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7490 (eval $ac_compile) 2>&5
7491 ac_status=$?
7492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7493 test $ac_status = 0; }; then
7494 if test "$lt_cv_prog_gnu_ld" = yes; then
7495 case `/usr/bin/file conftest.$ac_objext` in
7496 *32-bit*)
7497 LD="${LD-ld} -melf32bsmip"
7498 ;;
7499 *N32*)
7500 LD="${LD-ld} -melf32bmipn32"
7501 ;;
7502 *64-bit*)
7503 LD="${LD-ld} -melf64bmip"
7504 ;;
7505 esac
7506 else
7507 case `/usr/bin/file conftest.$ac_objext` in
7508 *32-bit*)
7509 LD="${LD-ld} -32"
7510 ;;
7511 *N32*)
7512 LD="${LD-ld} -n32"
7513 ;;
7514 *64-bit*)
7515 LD="${LD-ld} -64"
7516 ;;
7517 esac
7518 fi
7519 fi
7520 rm -rf conftest*
7521 ;;
7522
3cbe17f7 7523x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
d7f09764
DN
7524s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7525 # Find out which ABI we are using.
7526 echo 'int i;' > conftest.$ac_ext
7527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7528 (eval $ac_compile) 2>&5
7529 ac_status=$?
7530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7531 test $ac_status = 0; }; then
7532 case `/usr/bin/file conftest.o` in
7533 *32-bit*)
7534 case $host in
7535 x86_64-*kfreebsd*-gnu)
7536 LD="${LD-ld} -m elf_i386_fbsd"
7537 ;;
7538 x86_64-*linux*)
e6d5f8c9
L
7539 case `/usr/bin/file conftest.o` in
7540 *x86-64*)
7541 LD="${LD-ld} -m elf32_x86_64"
7542 ;;
7543 *)
7544 LD="${LD-ld} -m elf_i386"
7545 ;;
7546 esac
d7f09764 7547 ;;
3cbe17f7
AM
7548 powerpc64le-*linux*)
7549 LD="${LD-ld} -m elf32lppclinux"
7550 ;;
7551 powerpc64-*linux*)
d7f09764
DN
7552 LD="${LD-ld} -m elf32ppclinux"
7553 ;;
7554 s390x-*linux*)
7555 LD="${LD-ld} -m elf_s390"
7556 ;;
7557 sparc64-*linux*)
7558 LD="${LD-ld} -m elf32_sparc"
7559 ;;
7560 esac
7561 ;;
7562 *64-bit*)
7563 case $host in
7564 x86_64-*kfreebsd*-gnu)
7565 LD="${LD-ld} -m elf_x86_64_fbsd"
7566 ;;
7567 x86_64-*linux*)
7568 LD="${LD-ld} -m elf_x86_64"
7569 ;;
3cbe17f7
AM
7570 powerpcle-*linux*)
7571 LD="${LD-ld} -m elf64lppc"
7572 ;;
7573 powerpc-*linux*)
d7f09764
DN
7574 LD="${LD-ld} -m elf64ppc"
7575 ;;
7576 s390*-*linux*|s390*-*tpf*)
7577 LD="${LD-ld} -m elf64_s390"
7578 ;;
7579 sparc*-*linux*)
7580 LD="${LD-ld} -m elf64_sparc"
7581 ;;
7582 esac
7583 ;;
7584 esac
7585 fi
7586 rm -rf conftest*
7587 ;;
7588
7589*-*-sco3.2v5*)
7590 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7591 SAVE_CFLAGS="$CFLAGS"
7592 CFLAGS="$CFLAGS -belf"
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7594$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 7595if ${lt_cv_cc_needs_belf+:} false; then :
d7f09764
DN
7596 $as_echo_n "(cached) " >&6
7597else
7598 ac_ext=c
7599ac_cpp='$CPP $CPPFLAGS'
7600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7602ac_compiler_gnu=$ac_cv_c_compiler_gnu
7603
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605/* end confdefs.h. */
7606
7607int
7608main ()
7609{
7610
7611 ;
7612 return 0;
7613}
7614_ACEOF
7615if ac_fn_c_try_link "$LINENO"; then :
7616 lt_cv_cc_needs_belf=yes
7617else
7618 lt_cv_cc_needs_belf=no
7619fi
7620rm -f core conftest.err conftest.$ac_objext \
7621 conftest$ac_exeext conftest.$ac_ext
7622 ac_ext=c
7623ac_cpp='$CPP $CPPFLAGS'
7624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7626ac_compiler_gnu=$ac_cv_c_compiler_gnu
7627
7628fi
7629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7630$as_echo "$lt_cv_cc_needs_belf" >&6; }
7631 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7632 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7633 CFLAGS="$SAVE_CFLAGS"
7634 fi
7635 ;;
7636sparc*-*solaris*)
7637 # Find out which ABI we are using.
7638 echo 'int i;' > conftest.$ac_ext
7639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7640 (eval $ac_compile) 2>&5
7641 ac_status=$?
7642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7643 test $ac_status = 0; }; then
7644 case `/usr/bin/file conftest.o` in
7645 *64-bit*)
7646 case $lt_cv_prog_gnu_ld in
7647 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7648 *)
7649 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7650 LD="${LD-ld} -64"
7651 fi
7652 ;;
7653 esac
7654 ;;
7655 esac
7656 fi
7657 rm -rf conftest*
7658 ;;
7659esac
7660
7661need_locks="$enable_libtool_lock"
7662
7663
7664 case $host_os in
7665 rhapsody* | darwin*)
7666 if test -n "$ac_tool_prefix"; then
7667 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7668set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7671if ${ac_cv_prog_DSYMUTIL+:} false; then :
d7f09764
DN
7672 $as_echo_n "(cached) " >&6
7673else
7674 if test -n "$DSYMUTIL"; then
7675 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7676else
7677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678for as_dir in $PATH
7679do
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
7684 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 break 2
7687 fi
7688done
7689 done
7690IFS=$as_save_IFS
7691
7692fi
7693fi
7694DSYMUTIL=$ac_cv_prog_DSYMUTIL
7695if test -n "$DSYMUTIL"; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7697$as_echo "$DSYMUTIL" >&6; }
7698else
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700$as_echo "no" >&6; }
7701fi
7702
7703
7704fi
dcbc9df9
UB
7705if test -z "$ac_cv_prog_DSYMUTIL"; then
7706 ac_ct_DSYMUTIL=$DSYMUTIL
7707 # Extract the first word of "dsymutil", so it can be a program name with args.
7708set dummy dsymutil; ac_word=$2
d7f09764
DN
7709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7711if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
d7f09764
DN
7712 $as_echo_n "(cached) " >&6
7713else
dcbc9df9
UB
7714 if test -n "$ac_ct_DSYMUTIL"; then
7715 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
d7f09764
DN
7716else
7717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718for as_dir in $PATH
7719do
7720 IFS=$as_save_IFS
7721 test -z "$as_dir" && as_dir=.
7722 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9 7724 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
d7f09764
DN
7725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 break 2
7727 fi
7728done
7729 done
7730IFS=$as_save_IFS
7731
7732fi
7733fi
dcbc9df9
UB
7734ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7735if test -n "$ac_ct_DSYMUTIL"; then
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7737$as_echo "$ac_ct_DSYMUTIL" >&6; }
d7f09764
DN
7738else
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740$as_echo "no" >&6; }
7741fi
7742
dcbc9df9
UB
7743 if test "x$ac_ct_DSYMUTIL" = x; then
7744 DSYMUTIL=":"
d7f09764
DN
7745 else
7746 case $cross_compiling:$ac_tool_warned in
7747yes:)
7748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7750ac_tool_warned=yes ;;
7751esac
dcbc9df9 7752 DSYMUTIL=$ac_ct_DSYMUTIL
d7f09764
DN
7753 fi
7754else
dcbc9df9 7755 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d7f09764
DN
7756fi
7757
7758 if test -n "$ac_tool_prefix"; then
dcbc9df9
UB
7759 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7760set dummy ${ac_tool_prefix}nmedit; ac_word=$2
d7f09764
DN
7761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7763if ${ac_cv_prog_NMEDIT+:} false; then :
d7f09764
DN
7764 $as_echo_n "(cached) " >&6
7765else
dcbc9df9
UB
7766 if test -n "$NMEDIT"; then
7767 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
d7f09764
DN
7768else
7769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770for as_dir in $PATH
7771do
7772 IFS=$as_save_IFS
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9 7776 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
d7f09764
DN
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778 break 2
7779 fi
7780done
7781 done
7782IFS=$as_save_IFS
7783
7784fi
7785fi
dcbc9df9
UB
7786NMEDIT=$ac_cv_prog_NMEDIT
7787if test -n "$NMEDIT"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7789$as_echo "$NMEDIT" >&6; }
d7f09764
DN
7790else
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792$as_echo "no" >&6; }
7793fi
7794
7795
7796fi
dcbc9df9
UB
7797if test -z "$ac_cv_prog_NMEDIT"; then
7798 ac_ct_NMEDIT=$NMEDIT
7799 # Extract the first word of "nmedit", so it can be a program name with args.
7800set dummy nmedit; ac_word=$2
d7f09764
DN
7801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7802$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7803if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
d7f09764
DN
7804 $as_echo_n "(cached) " >&6
7805else
dcbc9df9
UB
7806 if test -n "$ac_ct_NMEDIT"; then
7807 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
d7f09764
DN
7808else
7809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810for as_dir in $PATH
7811do
7812 IFS=$as_save_IFS
7813 test -z "$as_dir" && as_dir=.
7814 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9 7816 ac_cv_prog_ac_ct_NMEDIT="nmedit"
d7f09764
DN
7817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 break 2
7819 fi
7820done
7821 done
7822IFS=$as_save_IFS
7823
7824fi
7825fi
dcbc9df9
UB
7826ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7827if test -n "$ac_ct_NMEDIT"; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7829$as_echo "$ac_ct_NMEDIT" >&6; }
d7f09764
DN
7830else
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832$as_echo "no" >&6; }
7833fi
7834
dcbc9df9
UB
7835 if test "x$ac_ct_NMEDIT" = x; then
7836 NMEDIT=":"
d7f09764
DN
7837 else
7838 case $cross_compiling:$ac_tool_warned in
7839yes:)
7840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7842ac_tool_warned=yes ;;
7843esac
dcbc9df9 7844 NMEDIT=$ac_ct_NMEDIT
d7f09764
DN
7845 fi
7846else
dcbc9df9 7847 NMEDIT="$ac_cv_prog_NMEDIT"
d7f09764
DN
7848fi
7849
7850 if test -n "$ac_tool_prefix"; then
dcbc9df9
UB
7851 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7852set dummy ${ac_tool_prefix}lipo; ac_word=$2
d7f09764
DN
7853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7855if ${ac_cv_prog_LIPO+:} false; then :
d7f09764
DN
7856 $as_echo_n "(cached) " >&6
7857else
dcbc9df9
UB
7858 if test -n "$LIPO"; then
7859 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
d7f09764
DN
7860else
7861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862for as_dir in $PATH
7863do
7864 IFS=$as_save_IFS
7865 test -z "$as_dir" && as_dir=.
7866 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9 7868 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
d7f09764
DN
7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 break 2
7871 fi
7872done
7873 done
7874IFS=$as_save_IFS
7875
7876fi
7877fi
dcbc9df9
UB
7878LIPO=$ac_cv_prog_LIPO
7879if test -n "$LIPO"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7881$as_echo "$LIPO" >&6; }
d7f09764
DN
7882else
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884$as_echo "no" >&6; }
7885fi
7886
7887
7888fi
dcbc9df9
UB
7889if test -z "$ac_cv_prog_LIPO"; then
7890 ac_ct_LIPO=$LIPO
7891 # Extract the first word of "lipo", so it can be a program name with args.
7892set dummy lipo; ac_word=$2
d7f09764
DN
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7894$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7895if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
d7f09764
DN
7896 $as_echo_n "(cached) " >&6
7897else
dcbc9df9
UB
7898 if test -n "$ac_ct_LIPO"; then
7899 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
d7f09764
DN
7900else
7901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902for as_dir in $PATH
7903do
7904 IFS=$as_save_IFS
7905 test -z "$as_dir" && as_dir=.
7906 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9 7908 ac_cv_prog_ac_ct_LIPO="lipo"
d7f09764
DN
7909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7910 break 2
7911 fi
7912done
7913 done
7914IFS=$as_save_IFS
7915
7916fi
7917fi
dcbc9df9
UB
7918ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7919if test -n "$ac_ct_LIPO"; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7921$as_echo "$ac_ct_LIPO" >&6; }
d7f09764
DN
7922else
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924$as_echo "no" >&6; }
7925fi
7926
dcbc9df9
UB
7927 if test "x$ac_ct_LIPO" = x; then
7928 LIPO=":"
d7f09764
DN
7929 else
7930 case $cross_compiling:$ac_tool_warned in
7931yes:)
7932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7934ac_tool_warned=yes ;;
7935esac
dcbc9df9 7936 LIPO=$ac_ct_LIPO
d7f09764
DN
7937 fi
7938else
dcbc9df9 7939 LIPO="$ac_cv_prog_LIPO"
d7f09764
DN
7940fi
7941
dcbc9df9
UB
7942 if test -n "$ac_tool_prefix"; then
7943 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7944set dummy ${ac_tool_prefix}otool; ac_word=$2
7945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7947if ${ac_cv_prog_OTOOL+:} false; then :
d7f09764
DN
7948 $as_echo_n "(cached) " >&6
7949else
dcbc9df9
UB
7950 if test -n "$OTOOL"; then
7951 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
52327858 7952else
dcbc9df9
UB
7953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954for as_dir in $PATH
7955do
7956 IFS=$as_save_IFS
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
7960 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962 break 2
7963 fi
7964done
7965 done
7966IFS=$as_save_IFS
52327858
L
7967
7968fi
dcbc9df9
UB
7969fi
7970OTOOL=$ac_cv_prog_OTOOL
7971if test -n "$OTOOL"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7973$as_echo "$OTOOL" >&6; }
7974else
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976$as_echo "no" >&6; }
7977fi
7978
d7f09764 7979
d7f09764 7980fi
dcbc9df9
UB
7981if test -z "$ac_cv_prog_OTOOL"; then
7982 ac_ct_OTOOL=$OTOOL
7983 # Extract the first word of "otool", so it can be a program name with args.
7984set dummy otool; ac_word=$2
7985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7987if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
d7f09764
DN
7988 $as_echo_n "(cached) " >&6
7989else
dcbc9df9
UB
7990 if test -n "$ac_ct_OTOOL"; then
7991 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7992else
7993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994for as_dir in $PATH
d7f09764 7995do
dcbc9df9
UB
7996 IFS=$as_save_IFS
7997 test -z "$as_dir" && as_dir=.
7998 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
8000 ac_cv_prog_ac_ct_OTOOL="otool"
8001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8002 break 2
8003 fi
8004done
8005 done
8006IFS=$as_save_IFS
d7f09764 8007
dcbc9df9
UB
8008fi
8009fi
8010ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8011if test -n "$ac_ct_OTOOL"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8013$as_echo "$ac_ct_OTOOL" >&6; }
d7f09764 8014else
dcbc9df9
UB
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016$as_echo "no" >&6; }
d7f09764 8017fi
d7f09764 8018
dcbc9df9
UB
8019 if test "x$ac_ct_OTOOL" = x; then
8020 OTOOL=":"
8021 else
8022 case $cross_compiling:$ac_tool_warned in
8023yes:)
8024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8026ac_tool_warned=yes ;;
8027esac
8028 OTOOL=$ac_ct_OTOOL
8029 fi
d7f09764 8030else
dcbc9df9 8031 OTOOL="$ac_cv_prog_OTOOL"
d7f09764 8032fi
d7f09764 8033
dcbc9df9
UB
8034 if test -n "$ac_tool_prefix"; then
8035 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8036set dummy ${ac_tool_prefix}otool64; ac_word=$2
8037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8039if ${ac_cv_prog_OTOOL64+:} false; then :
dcbc9df9
UB
8040 $as_echo_n "(cached) " >&6
8041else
8042 if test -n "$OTOOL64"; then
8043 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8044else
8045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046for as_dir in $PATH
8047do
8048 IFS=$as_save_IFS
8049 test -z "$as_dir" && as_dir=.
8050 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
8052 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8054 break 2
8055 fi
d7f09764 8056done
dcbc9df9
UB
8057 done
8058IFS=$as_save_IFS
8059
8060fi
8061fi
8062OTOOL64=$ac_cv_prog_OTOOL64
8063if test -n "$OTOOL64"; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8065$as_echo "$OTOOL64" >&6; }
8066else
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068$as_echo "no" >&6; }
d7f09764
DN
8069fi
8070
d7f09764
DN
8071
8072fi
dcbc9df9
UB
8073if test -z "$ac_cv_prog_OTOOL64"; then
8074 ac_ct_OTOOL64=$OTOOL64
8075 # Extract the first word of "otool64", so it can be a program name with args.
8076set dummy otool64; ac_word=$2
8077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8079if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
dcbc9df9 8080 $as_echo_n "(cached) " >&6
d7f09764 8081else
dcbc9df9
UB
8082 if test -n "$ac_ct_OTOOL64"; then
8083 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8084else
8085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086for as_dir in $PATH
d7f09764 8087do
dcbc9df9
UB
8088 IFS=$as_save_IFS
8089 test -z "$as_dir" && as_dir=.
8090 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
8092 ac_cv_prog_ac_ct_OTOOL64="otool64"
8093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 break 2
8095 fi
8096done
8097 done
8098IFS=$as_save_IFS
d7f09764 8099
dcbc9df9
UB
8100fi
8101fi
8102ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8103if test -n "$ac_ct_OTOOL64"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8105$as_echo "$ac_ct_OTOOL64" >&6; }
d7f09764 8106else
dcbc9df9
UB
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108$as_echo "no" >&6; }
d7f09764 8109fi
d7f09764 8110
dcbc9df9
UB
8111 if test "x$ac_ct_OTOOL64" = x; then
8112 OTOOL64=":"
8113 else
8114 case $cross_compiling:$ac_tool_warned in
8115yes:)
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8118ac_tool_warned=yes ;;
8119esac
8120 OTOOL64=$ac_ct_OTOOL64
8121 fi
d7f09764 8122else
dcbc9df9 8123 OTOOL64="$ac_cv_prog_OTOOL64"
d7f09764 8124fi
d7f09764 8125
d7f09764 8126
d7f09764 8127
d7f09764
DN
8128
8129
d7f09764 8130
d7f09764 8131
d7f09764 8132
d7f09764 8133
d7f09764 8134
d7f09764 8135
d7f09764 8136
d7f09764 8137
d7f09764 8138
d7f09764 8139
d7f09764 8140
dcbc9df9
UB
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8153$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 8154if ${lt_cv_apple_cc_single_mod+:} false; then :
dcbc9df9 8155 $as_echo_n "(cached) " >&6
d7f09764 8156else
dcbc9df9
UB
8157 lt_cv_apple_cc_single_mod=no
8158 if test -z "${LT_MULTI_MODULE}"; then
8159 # By default we will add the -single_module flag. You can override
8160 # by either setting the environment variable LT_MULTI_MODULE
8161 # non-empty at configure time, or by adding -multi_module to the
8162 # link flags.
8163 rm -rf libconftest.dylib*
8164 echo "int foo(void){return 1;}" > conftest.c
8165 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8166-dynamiclib -Wl,-single_module conftest.c" >&5
8167 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8168 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8169 _lt_result=$?
8170 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8171 lt_cv_apple_cc_single_mod=yes
8172 else
8173 cat conftest.err >&5
8174 fi
8175 rm -rf libconftest.dylib*
8176 rm -f conftest.*
8177 fi
8178fi
8179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8180$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8182$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 8183if ${lt_cv_ld_exported_symbols_list+:} false; then :
dcbc9df9
UB
8184 $as_echo_n "(cached) " >&6
8185else
8186 lt_cv_ld_exported_symbols_list=no
8187 save_LDFLAGS=$LDFLAGS
8188 echo "_main" > conftest.sym
8189 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f09764 8191/* end confdefs.h. */
d7f09764 8192
d7f09764
DN
8193int
8194main ()
8195{
dcbc9df9
UB
8196
8197 ;
d7f09764
DN
8198 return 0;
8199}
8200_ACEOF
dcbc9df9
UB
8201if ac_fn_c_try_link "$LINENO"; then :
8202 lt_cv_ld_exported_symbols_list=yes
d7f09764 8203else
dcbc9df9 8204 lt_cv_ld_exported_symbols_list=no
d7f09764 8205fi
dcbc9df9
UB
8206rm -f core conftest.err conftest.$ac_objext \
8207 conftest$ac_exeext conftest.$ac_ext
8208 LDFLAGS="$save_LDFLAGS"
d7f09764
DN
8209
8210fi
dcbc9df9
UB
8211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8212$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8214$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 8215if ${lt_cv_ld_force_load+:} false; then :
dcbc9df9
UB
8216 $as_echo_n "(cached) " >&6
8217else
8218 lt_cv_ld_force_load=no
8219 cat > conftest.c << _LT_EOF
8220int forced_loaded() { return 2;}
8221_LT_EOF
8222 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8223 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8224 echo "$AR cru libconftest.a conftest.o" >&5
8225 $AR cru libconftest.a conftest.o 2>&5
8226 cat > conftest.c << _LT_EOF
8227int main() { return 0;}
8228_LT_EOF
8229 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8230 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8231 _lt_result=$?
8232 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8233 lt_cv_ld_force_load=yes
8234 else
8235 cat conftest.err >&5
8236 fi
8237 rm -f conftest.err libconftest.a conftest conftest.c
8238 rm -rf conftest.dSYM
d7f09764
DN
8239
8240fi
dcbc9df9
UB
8241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8242$as_echo "$lt_cv_ld_force_load" >&6; }
8243 case $host_os in
8244 rhapsody* | darwin1.[012])
8245 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8246 darwin1.*)
8247 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8248 darwin*) # darwin 5.x on
8249 # if running on 10.5 or later, the deployment target defaults
8250 # to the OS version, if on x86, and 10.4, the deployment
8251 # target defaults to 10.4. Don't you love it?
8252 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8253 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8254 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8255 10.[012][,.]*)
8256 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8257 10.*)
8258 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8259 esac
8260 ;;
8261 esac
8262 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8263 _lt_dar_single_mod='$single_module'
8264 fi
8265 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8266 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8267 else
8268 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8269 fi
8270 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8271 _lt_dsymutil='~$DSYMUTIL $lib || :'
8272 else
8273 _lt_dsymutil=
8274 fi
8275 ;;
8276 esac
d7f09764
DN
8277
8278for ac_header in dlfcn.h
8279do :
8280 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8281"
22e05272 8282if test "x$ac_cv_header_dlfcn_h" = xyes; then :
d7f09764
DN
8283 cat >>confdefs.h <<_ACEOF
8284#define HAVE_DLFCN_H 1
8285_ACEOF
8286
8287fi
8288
8289done
8290
8291
8292
52327858
L
8293
8294
d7f09764
DN
8295# Set options
8296
8297
8298
8299 enable_dlopen=no
8300
8301
8302 enable_win32_dll=no
8303
8304
8305 # Check whether --enable-shared was given.
8306if test "${enable_shared+set}" = set; then :
8307 enableval=$enable_shared; p=${PACKAGE-default}
8308 case $enableval in
8309 yes) enable_shared=yes ;;
8310 no) enable_shared=no ;;
8311 *)
8312 enable_shared=no
8313 # Look at the argument we got. We use all the common list separators.
8314 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8315 for pkg in $enableval; do
8316 IFS="$lt_save_ifs"
8317 if test "X$pkg" = "X$p"; then
8318 enable_shared=yes
8319 fi
8320 done
8321 IFS="$lt_save_ifs"
8322 ;;
8323 esac
8324else
8325 enable_shared=yes
8326fi
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336 # Check whether --enable-static was given.
8337if test "${enable_static+set}" = set; then :
8338 enableval=$enable_static; p=${PACKAGE-default}
8339 case $enableval in
8340 yes) enable_static=yes ;;
8341 no) enable_static=no ;;
8342 *)
8343 enable_static=no
8344 # Look at the argument we got. We use all the common list separators.
8345 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8346 for pkg in $enableval; do
8347 IFS="$lt_save_ifs"
8348 if test "X$pkg" = "X$p"; then
8349 enable_static=yes
8350 fi
8351 done
8352 IFS="$lt_save_ifs"
8353 ;;
8354 esac
8355else
8356 enable_static=yes
8357fi
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368# Check whether --with-pic was given.
8369if test "${with_pic+set}" = set; then :
8370 withval=$with_pic; pic_mode="$withval"
8371else
8372 pic_mode=default
8373fi
8374
8375
8376test -z "$pic_mode" && pic_mode=default
8377
8378
8379
8380
8381
8382
8383
8384 # Check whether --enable-fast-install was given.
8385if test "${enable_fast_install+set}" = set; then :
8386 enableval=$enable_fast_install; p=${PACKAGE-default}
8387 case $enableval in
8388 yes) enable_fast_install=yes ;;
8389 no) enable_fast_install=no ;;
8390 *)
8391 enable_fast_install=no
8392 # Look at the argument we got. We use all the common list separators.
8393 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8394 for pkg in $enableval; do
8395 IFS="$lt_save_ifs"
8396 if test "X$pkg" = "X$p"; then
8397 enable_fast_install=yes
8398 fi
8399 done
8400 IFS="$lt_save_ifs"
8401 ;;
8402 esac
8403else
8404 enable_fast_install=yes
8405fi
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417# This can be used to rebuild libtool when needed
8418LIBTOOL_DEPS="$ltmain"
8419
8420# Always use our own libtool.
8421LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
52327858 8445
d7f09764
DN
8446
8447
8448test -z "$LN_S" && LN_S="ln -s"
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463if test -n "${ZSH_VERSION+set}" ; then
8464 setopt NO_GLOB_SUBST
8465fi
8466
8467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8468$as_echo_n "checking for objdir... " >&6; }
22e05272 8469if ${lt_cv_objdir+:} false; then :
d7f09764
DN
8470 $as_echo_n "(cached) " >&6
8471else
8472 rm -f .libs 2>/dev/null
8473mkdir .libs 2>/dev/null
8474if test -d .libs; then
8475 lt_cv_objdir=.libs
8476else
8477 # MS-DOS does not allow filenames that begin with a dot.
8478 lt_cv_objdir=_libs
8479fi
8480rmdir .libs 2>/dev/null
8481fi
8482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8483$as_echo "$lt_cv_objdir" >&6; }
8484objdir=$lt_cv_objdir
8485
8486
8487
8488
8489
8490cat >>confdefs.h <<_ACEOF
8491#define LT_OBJDIR "$lt_cv_objdir/"
8492_ACEOF
8493
8494
8495
8496
d7f09764
DN
8497case $host_os in
8498aix3*)
8499 # AIX sometimes has problems with the GCC collect2 program. For some
8500 # reason, if we set the COLLECT_NAMES environment variable, the problems
8501 # vanish in a puff of smoke.
8502 if test "X${COLLECT_NAMES+set}" != Xset; then
8503 COLLECT_NAMES=
8504 export COLLECT_NAMES
8505 fi
8506 ;;
8507esac
8508
d7f09764
DN
8509# Global variables:
8510ofile=libtool
8511can_build_shared=yes
8512
8513# All known linkers require a `.a' archive for static linking (except MSVC,
8514# which needs '.lib').
8515libext=a
8516
8517with_gnu_ld="$lt_cv_prog_gnu_ld"
8518
8519old_CC="$CC"
8520old_CFLAGS="$CFLAGS"
8521
8522# Set sane defaults for various variables
8523test -z "$CC" && CC=cc
8524test -z "$LTCC" && LTCC=$CC
8525test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8526test -z "$LD" && LD=ld
8527test -z "$ac_objext" && ac_objext=o
8528
8529for cc_temp in $compiler""; do
8530 case $cc_temp in
8531 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8532 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8533 \-*) ;;
8534 *) break;;
8535 esac
8536done
52327858 8537cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7f09764
DN
8538
8539
8540# Only perform the check for file, if the check method requires it
8541test -z "$MAGIC_CMD" && MAGIC_CMD=file
8542case $deplibs_check_method in
8543file_magic*)
8544 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8546$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 8547if ${lt_cv_path_MAGIC_CMD+:} false; then :
d7f09764
DN
8548 $as_echo_n "(cached) " >&6
8549else
8550 case $MAGIC_CMD in
8551[\\/*] | ?:[\\/]*)
8552 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8553 ;;
8554*)
8555 lt_save_MAGIC_CMD="$MAGIC_CMD"
8556 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8557 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8558 for ac_dir in $ac_dummy; do
8559 IFS="$lt_save_ifs"
8560 test -z "$ac_dir" && ac_dir=.
8561 if test -f $ac_dir/${ac_tool_prefix}file; then
8562 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8563 if test -n "$file_magic_test_file"; then
8564 case $deplibs_check_method in
8565 "file_magic "*)
8566 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8567 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8568 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8569 $EGREP "$file_magic_regex" > /dev/null; then
8570 :
8571 else
8572 cat <<_LT_EOF 1>&2
8573
8574*** Warning: the command libtool uses to detect shared libraries,
8575*** $file_magic_cmd, produces output that libtool cannot recognize.
8576*** The result is that libtool may fail to recognize shared libraries
8577*** as such. This will affect the creation of libtool libraries that
8578*** depend on shared libraries, but programs linked with such libtool
8579*** libraries will work regardless of this problem. Nevertheless, you
8580*** may want to report the problem to your system manager and/or to
8581*** bug-libtool@gnu.org
8582
8583_LT_EOF
8584 fi ;;
8585 esac
8586 fi
8587 break
8588 fi
8589 done
8590 IFS="$lt_save_ifs"
8591 MAGIC_CMD="$lt_save_MAGIC_CMD"
8592 ;;
8593esac
8594fi
8595
8596MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8597if test -n "$MAGIC_CMD"; then
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8599$as_echo "$MAGIC_CMD" >&6; }
8600else
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602$as_echo "no" >&6; }
8603fi
8604
8605
8606
8607
8608
8609if test -z "$lt_cv_path_MAGIC_CMD"; then
8610 if test -n "$ac_tool_prefix"; then
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8612$as_echo_n "checking for file... " >&6; }
22e05272 8613if ${lt_cv_path_MAGIC_CMD+:} false; then :
d7f09764
DN
8614 $as_echo_n "(cached) " >&6
8615else
8616 case $MAGIC_CMD in
8617[\\/*] | ?:[\\/]*)
8618 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8619 ;;
8620*)
8621 lt_save_MAGIC_CMD="$MAGIC_CMD"
8622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8623 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8624 for ac_dir in $ac_dummy; do
8625 IFS="$lt_save_ifs"
8626 test -z "$ac_dir" && ac_dir=.
8627 if test -f $ac_dir/file; then
8628 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8629 if test -n "$file_magic_test_file"; then
8630 case $deplibs_check_method in
8631 "file_magic "*)
8632 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8633 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8634 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8635 $EGREP "$file_magic_regex" > /dev/null; then
8636 :
8637 else
8638 cat <<_LT_EOF 1>&2
8639
8640*** Warning: the command libtool uses to detect shared libraries,
8641*** $file_magic_cmd, produces output that libtool cannot recognize.
8642*** The result is that libtool may fail to recognize shared libraries
8643*** as such. This will affect the creation of libtool libraries that
8644*** depend on shared libraries, but programs linked with such libtool
8645*** libraries will work regardless of this problem. Nevertheless, you
8646*** may want to report the problem to your system manager and/or to
8647*** bug-libtool@gnu.org
8648
8649_LT_EOF
8650 fi ;;
8651 esac
8652 fi
8653 break
8654 fi
8655 done
8656 IFS="$lt_save_ifs"
8657 MAGIC_CMD="$lt_save_MAGIC_CMD"
8658 ;;
8659esac
8660fi
8661
8662MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8663if test -n "$MAGIC_CMD"; then
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8665$as_echo "$MAGIC_CMD" >&6; }
8666else
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668$as_echo "no" >&6; }
8669fi
8670
8671
8672 else
8673 MAGIC_CMD=:
8674 fi
8675fi
8676
8677 fi
8678 ;;
8679esac
8680
8681# Use C for the default configuration in the libtool script
8682
8683lt_save_CC="$CC"
8684ac_ext=c
8685ac_cpp='$CPP $CPPFLAGS'
8686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8688ac_compiler_gnu=$ac_cv_c_compiler_gnu
8689
8690
8691# Source file extension for C test sources.
8692ac_ext=c
8693
8694# Object file extension for compiled C test sources.
8695objext=o
8696objext=$objext
8697
8698# Code to be used in simple compile tests
8699lt_simple_compile_test_code="int some_variable = 0;"
8700
8701# Code to be used in simple link tests
8702lt_simple_link_test_code='int main(){return(0);}'
8703
8704
8705
8706
8707
8708
8709
8710# If no C compiler was specified, use CC.
8711LTCC=${LTCC-"$CC"}
8712
8713# If no C compiler flags were specified, use CFLAGS.
8714LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8715
8716# Allow CC to be a program name with arguments.
8717compiler=$CC
8718
8719# Save the default compiler, since it gets overwritten when the other
8720# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8721compiler_DEFAULT=$CC
8722
8723# save warnings/boilerplate of simple test code
8724ac_outfile=conftest.$ac_objext
8725echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8726eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8727_lt_compiler_boilerplate=`cat conftest.err`
8728$RM conftest*
8729
8730ac_outfile=conftest.$ac_objext
8731echo "$lt_simple_link_test_code" >conftest.$ac_ext
8732eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8733_lt_linker_boilerplate=`cat conftest.err`
8734$RM -r conftest*
8735
8736
8737## CAVEAT EMPTOR:
8738## There is no encapsulation within the following macros, do not change
8739## the running order or otherwise move them around unless you know exactly
8740## what you are doing...
8741if test -n "$compiler"; then
8742
8743lt_prog_compiler_no_builtin_flag=
8744
8745if test "$GCC" = yes; then
52327858
L
8746 case $cc_basename in
8747 nvcc*)
8748 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8749 *)
8750 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8751 esac
d7f09764
DN
8752
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8754$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 8755if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
d7f09764
DN
8756 $as_echo_n "(cached) " >&6
8757else
8758 lt_cv_prog_compiler_rtti_exceptions=no
8759 ac_outfile=conftest.$ac_objext
8760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8761 lt_compiler_flag="-fno-rtti -fno-exceptions"
8762 # Insert the option either (1) after the last *FLAGS variable, or
8763 # (2) before a word containing "conftest.", or (3) at the end.
8764 # Note that $ac_compile itself does not contain backslashes and begins
8765 # with a dollar sign (not a hyphen), so the echo should work correctly.
8766 # The option is referenced via a variable to avoid confusing sed.
8767 lt_compile=`echo "$ac_compile" | $SED \
8768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8770 -e 's:$: $lt_compiler_flag:'`
52327858 8771 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7f09764
DN
8772 (eval "$lt_compile" 2>conftest.err)
8773 ac_status=$?
8774 cat conftest.err >&5
52327858 8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7f09764
DN
8776 if (exit $ac_status) && test -s "$ac_outfile"; then
8777 # The compiler can only warn and ignore the option if not recognized
8778 # So say no if there are warnings other than the usual output.
52327858 8779 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7f09764
DN
8780 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8781 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8782 lt_cv_prog_compiler_rtti_exceptions=yes
8783 fi
8784 fi
8785 $RM conftest*
8786
8787fi
8788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8789$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8790
8791if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8792 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8793else
8794 :
8795fi
8796
8797fi
8798
8799
8800
8801
8802
8803
8804 lt_prog_compiler_wl=
8805lt_prog_compiler_pic=
8806lt_prog_compiler_static=
8807
8808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8809$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8810
8811 if test "$GCC" = yes; then
8812 lt_prog_compiler_wl='-Wl,'
8813 lt_prog_compiler_static='-static'
8814
8815 case $host_os in
8816 aix*)
8817 # All AIX code is PIC.
8818 if test "$host_cpu" = ia64; then
8819 # AIX 5 now supports IA64 processor
8820 lt_prog_compiler_static='-Bstatic'
8821 fi
de973ab7 8822 lt_prog_compiler_pic='-fPIC'
d7f09764
DN
8823 ;;
8824
8825 amigaos*)
8826 case $host_cpu in
8827 powerpc)
8828 # see comment about AmigaOS4 .so support
8829 lt_prog_compiler_pic='-fPIC'
8830 ;;
8831 m68k)
8832 # FIXME: we need at least 68020 code to build shared libraries, but
8833 # adding the `-m68020' flag to GCC prevents building anything better,
8834 # like `-m68040'.
8835 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8836 ;;
8837 esac
8838 ;;
8839
8840 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8841 # PIC is the default for these OSes.
8842 ;;
8843
8844 mingw* | cygwin* | pw32* | os2* | cegcc*)
8845 # This hack is so that the source file can tell whether it is being
8846 # built for inclusion in a dll (and should export symbols for example).
8847 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8848 # (--disable-auto-import) libraries
8849 lt_prog_compiler_pic='-DDLL_EXPORT'
8850 ;;
8851
8852 darwin* | rhapsody*)
8853 # PIC is the default on this platform
8854 # Common symbols not allowed in MH_DYLIB files
8855 lt_prog_compiler_pic='-fno-common'
8856 ;;
8857
52327858
L
8858 haiku*)
8859 # PIC is the default for Haiku.
8860 # The "-static" flag exists, but is broken.
8861 lt_prog_compiler_static=
8862 ;;
8863
d7f09764
DN
8864 hpux*)
8865 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8866 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8867 # sets the default TLS model and affects inlining.
8868 case $host_cpu in
8869 hppa*64*)
8870 # +Z the default
8871 ;;
8872 *)
8873 lt_prog_compiler_pic='-fPIC'
8874 ;;
8875 esac
8876 ;;
8877
8878 interix[3-9]*)
8879 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8880 # Instead, we relocate shared libraries at runtime.
8881 ;;
8882
8883 msdosdjgpp*)
8884 # Just because we use GCC doesn't mean we suddenly get shared libraries
8885 # on systems that don't support them.
8886 lt_prog_compiler_can_build_shared=no
8887 enable_shared=no
8888 ;;
8889
8890 *nto* | *qnx*)
8891 # QNX uses GNU C++, but need to define -shared option too, otherwise
8892 # it will coredump.
8893 lt_prog_compiler_pic='-fPIC -shared'
8894 ;;
8895
8896 sysv4*MP*)
8897 if test -d /usr/nec; then
8898 lt_prog_compiler_pic=-Kconform_pic
8899 fi
8900 ;;
8901
8902 *)
8903 lt_prog_compiler_pic='-fPIC'
8904 ;;
8905 esac
52327858
L
8906
8907 case $cc_basename in
8908 nvcc*) # Cuda Compiler Driver 2.2
8909 lt_prog_compiler_wl='-Xlinker '
8910 lt_prog_compiler_pic='-Xcompiler -fPIC'
8911 ;;
8912 esac
d7f09764
DN
8913 else
8914 # PORTME Check for flag to pass linker flags through the system compiler.
8915 case $host_os in
8916 aix*)
8917 lt_prog_compiler_wl='-Wl,'
8918 if test "$host_cpu" = ia64; then
8919 # AIX 5 now supports IA64 processor
8920 lt_prog_compiler_static='-Bstatic'
8921 else
8922 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8923 fi
8924 ;;
8925
8926 mingw* | cygwin* | pw32* | os2* | cegcc*)
8927 # This hack is so that the source file can tell whether it is being
8928 # built for inclusion in a dll (and should export symbols for example).
8929 lt_prog_compiler_pic='-DDLL_EXPORT'
8930 ;;
8931
8932 hpux9* | hpux10* | hpux11*)
8933 lt_prog_compiler_wl='-Wl,'
8934 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8935 # not for PA HP-UX.
8936 case $host_cpu in
8937 hppa*64*|ia64*)
8938 # +Z the default
8939 ;;
8940 *)
8941 lt_prog_compiler_pic='+Z'
8942 ;;
8943 esac
8944 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8945 lt_prog_compiler_static='${wl}-a ${wl}archive'
8946 ;;
8947
8948 irix5* | irix6* | nonstopux*)
8949 lt_prog_compiler_wl='-Wl,'
8950 # PIC (with -KPIC) is the default.
8951 lt_prog_compiler_static='-non_shared'
8952 ;;
8953
8954 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8955 case $cc_basename in
8956 # old Intel for x86_64 which still supported -KPIC.
8957 ecc*)
8958 lt_prog_compiler_wl='-Wl,'
8959 lt_prog_compiler_pic='-KPIC'
8960 lt_prog_compiler_static='-static'
8961 ;;
8962 # icc used to be incompatible with GCC.
8963 # ICC 10 doesn't accept -KPIC any more.
8964 icc* | ifort*)
8965 lt_prog_compiler_wl='-Wl,'
8966 lt_prog_compiler_pic='-fPIC'
8967 lt_prog_compiler_static='-static'
8968 ;;
8969 # Lahey Fortran 8.1.
8970 lf95*)
8971 lt_prog_compiler_wl='-Wl,'
8972 lt_prog_compiler_pic='--shared'
8973 lt_prog_compiler_static='--static'
8974 ;;
52327858 8975 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
d7f09764
DN
8976 # Portland Group compilers (*not* the Pentium gcc compiler,
8977 # which looks to be a dead project)
8978 lt_prog_compiler_wl='-Wl,'
8979 lt_prog_compiler_pic='-fpic'
8980 lt_prog_compiler_static='-Bstatic'
8981 ;;
8982 ccc*)
8983 lt_prog_compiler_wl='-Wl,'
8984 # All Alpha code is PIC.
8985 lt_prog_compiler_static='-non_shared'
8986 ;;
52327858
L
8987 xl* | bgxl* | bgf* | mpixl*)
8988 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d7f09764
DN
8989 lt_prog_compiler_wl='-Wl,'
8990 lt_prog_compiler_pic='-qpic'
8991 lt_prog_compiler_static='-qstaticlink'
8992 ;;
8993 *)
8994 case `$CC -V 2>&1 | sed 5q` in
52327858
L
8995 *Sun\ F* | *Sun*Fortran*)
8996 # Sun Fortran 8.3 passes all unrecognized flags to the linker
d7f09764
DN
8997 lt_prog_compiler_pic='-KPIC'
8998 lt_prog_compiler_static='-Bstatic'
52327858 8999 lt_prog_compiler_wl=''
d7f09764 9000 ;;
52327858
L
9001 *Sun\ C*)
9002 # Sun C 5.9
d7f09764
DN
9003 lt_prog_compiler_pic='-KPIC'
9004 lt_prog_compiler_static='-Bstatic'
52327858 9005 lt_prog_compiler_wl='-Wl,'
d7f09764
DN
9006 ;;
9007 esac
9008 ;;
9009 esac
9010 ;;
9011
9012 newsos6)
9013 lt_prog_compiler_pic='-KPIC'
9014 lt_prog_compiler_static='-Bstatic'
9015 ;;
9016
9017 *nto* | *qnx*)
9018 # QNX uses GNU C++, but need to define -shared option too, otherwise
9019 # it will coredump.
9020 lt_prog_compiler_pic='-fPIC -shared'
9021 ;;
9022
9023 osf3* | osf4* | osf5*)
9024 lt_prog_compiler_wl='-Wl,'
9025 # All OSF/1 code is PIC.
9026 lt_prog_compiler_static='-non_shared'
9027 ;;
9028
9029 rdos*)
9030 lt_prog_compiler_static='-non_shared'
9031 ;;
9032
9033 solaris*)
9034 lt_prog_compiler_pic='-KPIC'
9035 lt_prog_compiler_static='-Bstatic'
9036 case $cc_basename in
9037 f77* | f90* | f95*)
9038 lt_prog_compiler_wl='-Qoption ld ';;
9039 *)
9040 lt_prog_compiler_wl='-Wl,';;
9041 esac
9042 ;;
9043
9044 sunos4*)
9045 lt_prog_compiler_wl='-Qoption ld '
9046 lt_prog_compiler_pic='-PIC'
9047 lt_prog_compiler_static='-Bstatic'
9048 ;;
9049
9050 sysv4 | sysv4.2uw2* | sysv4.3*)
9051 lt_prog_compiler_wl='-Wl,'
9052 lt_prog_compiler_pic='-KPIC'
9053 lt_prog_compiler_static='-Bstatic'
9054 ;;
9055
9056 sysv4*MP*)
9057 if test -d /usr/nec ;then
9058 lt_prog_compiler_pic='-Kconform_pic'
9059 lt_prog_compiler_static='-Bstatic'
9060 fi
9061 ;;
9062
9063 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9064 lt_prog_compiler_wl='-Wl,'
9065 lt_prog_compiler_pic='-KPIC'
9066 lt_prog_compiler_static='-Bstatic'
9067 ;;
9068
9069 unicos*)
9070 lt_prog_compiler_wl='-Wl,'
9071 lt_prog_compiler_can_build_shared=no
9072 ;;
9073
9074 uts4*)
9075 lt_prog_compiler_pic='-pic'
9076 lt_prog_compiler_static='-Bstatic'
9077 ;;
9078
9079 *)
9080 lt_prog_compiler_can_build_shared=no
9081 ;;
9082 esac
9083 fi
9084
9085case $host_os in
9086 # For platforms which do not support PIC, -DPIC is meaningless:
9087 *djgpp*)
9088 lt_prog_compiler_pic=
9089 ;;
9090 *)
9091 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9092 ;;
9093esac
9094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9095$as_echo "$lt_prog_compiler_pic" >&6; }
9096
9097
9098
9099
9100
9101
9102#
9103# Check to make sure the PIC flag actually works.
9104#
9105if test -n "$lt_prog_compiler_pic"; then
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9107$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 9108if ${lt_cv_prog_compiler_pic_works+:} false; then :
d7f09764
DN
9109 $as_echo_n "(cached) " >&6
9110else
9111 lt_cv_prog_compiler_pic_works=no
9112 ac_outfile=conftest.$ac_objext
9113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9114 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9115 # Insert the option either (1) after the last *FLAGS variable, or
9116 # (2) before a word containing "conftest.", or (3) at the end.
9117 # Note that $ac_compile itself does not contain backslashes and begins
9118 # with a dollar sign (not a hyphen), so the echo should work correctly.
9119 # The option is referenced via a variable to avoid confusing sed.
9120 lt_compile=`echo "$ac_compile" | $SED \
9121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9123 -e 's:$: $lt_compiler_flag:'`
52327858 9124 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7f09764
DN
9125 (eval "$lt_compile" 2>conftest.err)
9126 ac_status=$?
9127 cat conftest.err >&5
52327858 9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7f09764
DN
9129 if (exit $ac_status) && test -s "$ac_outfile"; then
9130 # The compiler can only warn and ignore the option if not recognized
9131 # So say no if there are warnings other than the usual output.
52327858 9132 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7f09764
DN
9133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9134 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9135 lt_cv_prog_compiler_pic_works=yes
9136 fi
9137 fi
9138 $RM conftest*
9139
9140fi
9141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9142$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9143
9144if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9145 case $lt_prog_compiler_pic in
9146 "" | " "*) ;;
9147 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9148 esac
9149else
9150 lt_prog_compiler_pic=
9151 lt_prog_compiler_can_build_shared=no
9152fi
9153
9154fi
9155
9156
9157
9158
9159
9160
9161#
9162# Check to make sure the static flag actually works.
9163#
9164wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9166$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 9167if ${lt_cv_prog_compiler_static_works+:} false; then :
d7f09764
DN
9168 $as_echo_n "(cached) " >&6
9169else
9170 lt_cv_prog_compiler_static_works=no
9171 save_LDFLAGS="$LDFLAGS"
9172 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9173 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9174 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9175 # The linker can only warn and ignore the option if not recognized
9176 # So say no if there are warnings
9177 if test -s conftest.err; then
9178 # Append any errors to the config.log.
9179 cat conftest.err 1>&5
52327858 9180 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
d7f09764
DN
9181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9182 if diff conftest.exp conftest.er2 >/dev/null; then
9183 lt_cv_prog_compiler_static_works=yes
9184 fi
9185 else
9186 lt_cv_prog_compiler_static_works=yes
9187 fi
9188 fi
9189 $RM -r conftest*
9190 LDFLAGS="$save_LDFLAGS"
9191
9192fi
9193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9194$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9195
9196if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9197 :
9198else
9199 lt_prog_compiler_static=
9200fi
9201
9202
9203
9204
9205
9206
9207
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9209$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9210if ${lt_cv_prog_compiler_c_o+:} false; then :
d7f09764
DN
9211 $as_echo_n "(cached) " >&6
9212else
9213 lt_cv_prog_compiler_c_o=no
9214 $RM -r conftest 2>/dev/null
9215 mkdir conftest
9216 cd conftest
9217 mkdir out
9218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9219
9220 lt_compiler_flag="-o out/conftest2.$ac_objext"
9221 # Insert the option either (1) after the last *FLAGS variable, or
9222 # (2) before a word containing "conftest.", or (3) at the end.
9223 # Note that $ac_compile itself does not contain backslashes and begins
9224 # with a dollar sign (not a hyphen), so the echo should work correctly.
9225 lt_compile=`echo "$ac_compile" | $SED \
9226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9228 -e 's:$: $lt_compiler_flag:'`
52327858 9229 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7f09764
DN
9230 (eval "$lt_compile" 2>out/conftest.err)
9231 ac_status=$?
9232 cat out/conftest.err >&5
52327858 9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7f09764
DN
9234 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9235 then
9236 # The compiler can only warn and ignore the option if not recognized
9237 # So say no if there are warnings
52327858 9238 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7f09764
DN
9239 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9240 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9241 lt_cv_prog_compiler_c_o=yes
9242 fi
9243 fi
9244 chmod u+w . 2>&5
9245 $RM conftest*
9246 # SGI C++ compiler will create directory out/ii_files/ for
9247 # template instantiation
9248 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9249 $RM out/* && rmdir out
9250 cd ..
9251 $RM -r conftest
9252 $RM conftest*
9253
9254fi
9255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9256$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9257
9258
9259
9260
9261
9262
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9264$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9265if ${lt_cv_prog_compiler_c_o+:} false; then :
d7f09764
DN
9266 $as_echo_n "(cached) " >&6
9267else
9268 lt_cv_prog_compiler_c_o=no
9269 $RM -r conftest 2>/dev/null
9270 mkdir conftest
9271 cd conftest
9272 mkdir out
9273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9274
9275 lt_compiler_flag="-o out/conftest2.$ac_objext"
9276 # Insert the option either (1) after the last *FLAGS variable, or
9277 # (2) before a word containing "conftest.", or (3) at the end.
9278 # Note that $ac_compile itself does not contain backslashes and begins
9279 # with a dollar sign (not a hyphen), so the echo should work correctly.
9280 lt_compile=`echo "$ac_compile" | $SED \
9281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9283 -e 's:$: $lt_compiler_flag:'`
52327858 9284 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7f09764
DN
9285 (eval "$lt_compile" 2>out/conftest.err)
9286 ac_status=$?
9287 cat out/conftest.err >&5
52327858 9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7f09764
DN
9289 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9290 then
9291 # The compiler can only warn and ignore the option if not recognized
9292 # So say no if there are warnings
52327858 9293 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7f09764
DN
9294 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9295 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9296 lt_cv_prog_compiler_c_o=yes
9297 fi
9298 fi
9299 chmod u+w . 2>&5
9300 $RM conftest*
9301 # SGI C++ compiler will create directory out/ii_files/ for
9302 # template instantiation
9303 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9304 $RM out/* && rmdir out
9305 cd ..
9306 $RM -r conftest
9307 $RM conftest*
9308
9309fi
9310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9311$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9312
9313
9314
9315
9316hard_links="nottested"
9317if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9318 # do not overwrite the value of need_locks provided by the user
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9320$as_echo_n "checking if we can lock with hard links... " >&6; }
9321 hard_links=yes
9322 $RM conftest*
9323 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9324 touch conftest.a
9325 ln conftest.a conftest.b 2>&5 || hard_links=no
9326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9328$as_echo "$hard_links" >&6; }
9329 if test "$hard_links" = no; then
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9331$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9332 need_locks=warn
9333 fi
9334else
9335 need_locks=no
9336fi
9337
9338
9339
9340
9341
9342
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9344$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9345
9346 runpath_var=
9347 allow_undefined_flag=
9348 always_export_symbols=no
9349 archive_cmds=
9350 archive_expsym_cmds=
9351 compiler_needs_object=no
9352 enable_shared_with_static_runtimes=no
9353 export_dynamic_flag_spec=
9354 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9355 hardcode_automatic=no
9356 hardcode_direct=no
9357 hardcode_direct_absolute=no
9358 hardcode_libdir_flag_spec=
9359 hardcode_libdir_flag_spec_ld=
9360 hardcode_libdir_separator=
9361 hardcode_minus_L=no
9362 hardcode_shlibpath_var=unsupported
9363 inherit_rpath=no
9364 link_all_deplibs=unknown
9365 module_cmds=
9366 module_expsym_cmds=
9367 old_archive_from_new_cmds=
9368 old_archive_from_expsyms_cmds=
9369 thread_safe_flag_spec=
9370 whole_archive_flag_spec=
9371 # include_expsyms should be a list of space-separated symbols to be *always*
9372 # included in the symbol list
9373 include_expsyms=
9374 # exclude_expsyms can be an extended regexp of symbols to exclude
9375 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9376 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9377 # as well as any symbol that contains `d'.
9378 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9379 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9380 # platforms (ab)use it in PIC code, but their linkers get confused if
9381 # the symbol is explicitly referenced. Since portable code cannot
9382 # rely on this symbol name, it's probably fine to never include it in
9383 # preloaded symbol tables.
9384 # Exclude shared library initialization/finalization symbols.
9385 extract_expsyms_cmds=
9386
9387 case $host_os in
9388 cygwin* | mingw* | pw32* | cegcc*)
9389 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9390 # When not using gcc, we currently assume that we are using
9391 # Microsoft Visual C++.
9392 if test "$GCC" != yes; then
9393 with_gnu_ld=no
9394 fi
9395 ;;
9396 interix*)
9397 # we just hope/assume this is gcc and not c89 (= MSVC++)
9398 with_gnu_ld=yes
9399 ;;
9400 openbsd*)
9401 with_gnu_ld=no
9402 ;;
9403 esac
9404
9405 ld_shlibs=yes
52327858
L
9406
9407 # On some targets, GNU ld is compatible enough with the native linker
9408 # that we're better off using the native interface for both.
9409 lt_use_gnu_ld_interface=no
d7f09764 9410 if test "$with_gnu_ld" = yes; then
52327858
L
9411 case $host_os in
9412 aix*)
9413 # The AIX port of GNU ld has always aspired to compatibility
9414 # with the native linker. However, as the warning in the GNU ld
9415 # block says, versions before 2.19.5* couldn't really create working
9416 # shared libraries, regardless of the interface used.
9417 case `$LD -v 2>&1` in
9418 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9419 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9420 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9421 *)
9422 lt_use_gnu_ld_interface=yes
9423 ;;
9424 esac
9425 ;;
9426 *)
9427 lt_use_gnu_ld_interface=yes
9428 ;;
9429 esac
9430 fi
9431
9432 if test "$lt_use_gnu_ld_interface" = yes; then
d7f09764
DN
9433 # If archive_cmds runs LD, not CC, wlarc should be empty
9434 wlarc='${wl}'
9435
9436 # Set some defaults for GNU ld with shared library support. These
9437 # are reset later if shared libraries are not supported. Putting them
9438 # here allows them to be overridden if necessary.
9439 runpath_var=LD_RUN_PATH
9440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9441 export_dynamic_flag_spec='${wl}--export-dynamic'
9442 # ancient GNU ld didn't support --whole-archive et. al.
9443 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9444 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9445 else
9446 whole_archive_flag_spec=
9447 fi
9448 supports_anon_versioning=no
9449 case `$LD -v 2>&1` in
52327858 9450 *GNU\ gold*) supports_anon_versioning=yes ;;
d7f09764
DN
9451 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9452 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9453 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9454 *\ 2.11.*) ;; # other 2.11 versions
9455 *) supports_anon_versioning=yes ;;
9456 esac
9457
9458 # See if GNU ld supports shared libraries.
9459 case $host_os in
9460 aix[3-9]*)
9461 # On AIX/PPC, the GNU linker is very broken
9462 if test "$host_cpu" != ia64; then
9463 ld_shlibs=no
9464 cat <<_LT_EOF 1>&2
9465
52327858 9466*** Warning: the GNU linker, at least up to release 2.19, is reported
d7f09764
DN
9467*** to be unable to reliably create shared libraries on AIX.
9468*** Therefore, libtool is disabling shared libraries support. If you
52327858
L
9469*** really care for shared libraries, you may want to install binutils
9470*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9471*** You will then need to restart the configuration process.
d7f09764
DN
9472
9473_LT_EOF
9474 fi
9475 ;;
9476
9477 amigaos*)
9478 case $host_cpu in
9479 powerpc)
9480 # see comment about AmigaOS4 .so support
9481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9482 archive_expsym_cmds=''
9483 ;;
9484 m68k)
9485 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)'
9486 hardcode_libdir_flag_spec='-L$libdir'
9487 hardcode_minus_L=yes
9488 ;;
9489 esac
9490 ;;
9491
9492 beos*)
9493 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9494 allow_undefined_flag=unsupported
9495 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9496 # support --undefined. This deserves some investigation. FIXME
9497 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9498 else
9499 ld_shlibs=no
9500 fi
9501 ;;
9502
9503 cygwin* | mingw* | pw32* | cegcc*)
9504 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9505 # as there is no search path for DLLs.
9506 hardcode_libdir_flag_spec='-L$libdir'
52327858 9507 export_dynamic_flag_spec='${wl}--export-all-symbols'
d7f09764
DN
9508 allow_undefined_flag=unsupported
9509 always_export_symbols=no
9510 enable_shared_with_static_runtimes=yes
9511 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9512
9513 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9514 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9515 # If the export-symbols file already is a .def file (1st line
9516 # is EXPORTS), use it as is; otherwise, prepend...
9517 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9518 cp $export_symbols $output_objdir/$soname.def;
9519 else
9520 echo EXPORTS > $output_objdir/$soname.def;
9521 cat $export_symbols >> $output_objdir/$soname.def;
9522 fi~
9523 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9524 else
9525 ld_shlibs=no
9526 fi
9527 ;;
9528
52327858
L
9529 haiku*)
9530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9531 link_all_deplibs=yes
9532 ;;
9533
d7f09764
DN
9534 interix[3-9]*)
9535 hardcode_direct=no
9536 hardcode_shlibpath_var=no
9537 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9538 export_dynamic_flag_spec='${wl}-E'
9539 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9540 # Instead, shared libraries are loaded at an image base (0x10000000 by
9541 # default) and relocated if they conflict, which is a slow very memory
9542 # consuming and fragmenting process. To avoid this, we pick a random,
9543 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9544 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9545 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9546 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'
9547 ;;
9548
9549 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9550 tmp_diet=no
9551 if test "$host_os" = linux-dietlibc; then
9552 case $cc_basename in
9553 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9554 esac
9555 fi
9556 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9557 && test "$tmp_diet" = no
9558 then
a699d672 9559 tmp_addflag=' $pic_flag'
d7f09764
DN
9560 tmp_sharedflag='-shared'
9561 case $cc_basename,$host_cpu in
9562 pgcc*) # Portland Group C compiler
52327858 9563 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
d7f09764
DN
9564 tmp_addflag=' $pic_flag'
9565 ;;
52327858
L
9566 pgf77* | pgf90* | pgf95* | pgfortran*)
9567 # Portland Group f77 and f90 compilers
9568 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
d7f09764
DN
9569 tmp_addflag=' $pic_flag -Mnomain' ;;
9570 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9571 tmp_addflag=' -i_dynamic' ;;
9572 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9573 tmp_addflag=' -i_dynamic -nofor_main' ;;
9574 ifc* | ifort*) # Intel Fortran compiler
9575 tmp_addflag=' -nofor_main' ;;
9576 lf95*) # Lahey Fortran 8.1
9577 whole_archive_flag_spec=
9578 tmp_sharedflag='--shared' ;;
52327858 9579 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d7f09764
DN
9580 tmp_sharedflag='-qmkshrobj'
9581 tmp_addflag= ;;
52327858
L
9582 nvcc*) # Cuda Compiler Driver 2.2
9583 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9584 compiler_needs_object=yes
9585 ;;
d7f09764
DN
9586 esac
9587 case `$CC -V 2>&1 | sed 5q` in
9588 *Sun\ C*) # Sun C 5.9
52327858 9589 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
d7f09764
DN
9590 compiler_needs_object=yes
9591 tmp_sharedflag='-G' ;;
9592 *Sun\ F*) # Sun Fortran 8.3
9593 tmp_sharedflag='-G' ;;
9594 esac
9595 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9596
9597 if test "x$supports_anon_versioning" = xyes; then
9598 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9599 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9600 echo "local: *; };" >> $output_objdir/$libname.ver~
9601 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9602 fi
9603
9604 case $cc_basename in
52327858 9605 xlf* | bgf* | bgxlf* | mpixlf*)
d7f09764
DN
9606 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9607 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9608 hardcode_libdir_flag_spec=
9609 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9610 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9611 if test "x$supports_anon_versioning" = xyes; then
9612 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9613 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9614 echo "local: *; };" >> $output_objdir/$libname.ver~
9615 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9616 fi
9617 ;;
9618 esac
9619 else
9620 ld_shlibs=no
9621 fi
9622 ;;
9623
9624 netbsd*)
9625 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9626 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9627 wlarc=
9628 else
9629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9630 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9631 fi
9632 ;;
9633
9634 solaris*)
9635 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9636 ld_shlibs=no
9637 cat <<_LT_EOF 1>&2
9638
9639*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9640*** create shared libraries on Solaris systems. Therefore, libtool
9641*** is disabling shared libraries support. We urge you to upgrade GNU
9642*** binutils to release 2.9.1 or newer. Another option is to modify
9643*** your PATH or compiler configuration so that the native linker is
9644*** used, and then restart.
9645
9646_LT_EOF
9647 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9649 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9650 else
9651 ld_shlibs=no
9652 fi
9653 ;;
9654
9655 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9656 case `$LD -v 2>&1` in
9657 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9658 ld_shlibs=no
9659 cat <<_LT_EOF 1>&2
9660
9661*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9662*** reliably create shared libraries on SCO systems. Therefore, libtool
9663*** is disabling shared libraries support. We urge you to upgrade GNU
9664*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9665*** your PATH or compiler configuration so that the native linker is
9666*** used, and then restart.
9667
9668_LT_EOF
9669 ;;
9670 *)
9671 # For security reasons, it is highly recommended that you always
9672 # use absolute paths for naming shared libraries, and exclude the
9673 # DT_RUNPATH tag from executables and libraries. But doing so
9674 # requires that you compile everything twice, which is a pain.
9675 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9678 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9679 else
9680 ld_shlibs=no
9681 fi
9682 ;;
9683 esac
9684 ;;
9685
9686 sunos4*)
9687 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9688 wlarc=
9689 hardcode_direct=yes
9690 hardcode_shlibpath_var=no
9691 ;;
9692
9693 *)
9694 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9696 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9697 else
9698 ld_shlibs=no
9699 fi
9700 ;;
9701 esac
9702
9703 if test "$ld_shlibs" = no; then
9704 runpath_var=
9705 hardcode_libdir_flag_spec=
9706 export_dynamic_flag_spec=
9707 whole_archive_flag_spec=
9708 fi
9709 else
9710 # PORTME fill in a description of your system's linker (not GNU ld)
9711 case $host_os in
9712 aix3*)
9713 allow_undefined_flag=unsupported
9714 always_export_symbols=yes
9715 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'
9716 # Note: this linker hardcodes the directories in LIBPATH if there
9717 # are no directories specified by -L.
9718 hardcode_minus_L=yes
9719 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9720 # Neither direct hardcoding nor static linking is supported with a
9721 # broken collect2.
9722 hardcode_direct=unsupported
9723 fi
9724 ;;
9725
9726 aix[4-9]*)
9727 if test "$host_cpu" = ia64; then
9728 # On IA64, the linker does run time linking by default, so we don't
9729 # have to do anything special.
9730 aix_use_runtimelinking=no
9731 exp_sym_flag='-Bexport'
9732 no_entry_flag=""
9733 else
9734 # If we're using GNU nm, then we don't want the "-C" option.
9735 # -C means demangle to AIX nm, but means don't demangle with GNU nm
52327858
L
9736 # Also, AIX nm treats weak defined symbols like other global
9737 # defined symbols, whereas GNU nm marks them as "W".
d7f09764 9738 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
52327858 9739 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
d7f09764 9740 else
84c1b9d3 9741 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
d7f09764
DN
9742 fi
9743 aix_use_runtimelinking=no
9744
9745 # Test if we are trying to use run time linking or normal
9746 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9747 # need to do runtime linking.
9748 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9749 for ld_flag in $LDFLAGS; do
9750 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9751 aix_use_runtimelinking=yes
9752 break
9753 fi
9754 done
9755 ;;
9756 esac
9757
9758 exp_sym_flag='-bexport'
9759 no_entry_flag='-bnoentry'
9760 fi
9761
9762 # When large executables or shared objects are built, AIX ld can
9763 # have problems creating the table of contents. If linking a library
9764 # or program results in "error TOC overflow" add -mminimal-toc to
9765 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9766 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9767
9768 archive_cmds=''
9769 hardcode_direct=yes
9770 hardcode_direct_absolute=yes
9771 hardcode_libdir_separator=':'
9772 link_all_deplibs=yes
9773 file_list_spec='${wl}-f,'
9774
9775 if test "$GCC" = yes; then
9776 case $host_os in aix4.[012]|aix4.[012].*)
9777 # We only want to do this on AIX 4.2 and lower, the check
9778 # below for broken collect2 doesn't work under 4.3+
9779 collect2name=`${CC} -print-prog-name=collect2`
9780 if test -f "$collect2name" &&
9781 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9782 then
9783 # We have reworked collect2
9784 :
9785 else
9786 # We have old collect2
9787 hardcode_direct=unsupported
9788 # It fails to find uninstalled libraries when the uninstalled
9789 # path is not listed in the libpath. Setting hardcode_minus_L
9790 # to unsupported forces relinking
9791 hardcode_minus_L=yes
9792 hardcode_libdir_flag_spec='-L$libdir'
9793 hardcode_libdir_separator=
9794 fi
9795 ;;
9796 esac
9797 shared_flag='-shared'
9798 if test "$aix_use_runtimelinking" = yes; then
9799 shared_flag="$shared_flag "'${wl}-G'
9800 fi
9801 else
9802 # not using gcc
9803 if test "$host_cpu" = ia64; then
9804 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9805 # chokes on -Wl,-G. The following line is correct:
9806 shared_flag='-G'
9807 else
9808 if test "$aix_use_runtimelinking" = yes; then
9809 shared_flag='${wl}-G'
9810 else
9811 shared_flag='${wl}-bM:SRE'
9812 fi
9813 fi
9814 fi
9815
9816 export_dynamic_flag_spec='${wl}-bexpall'
9817 # It seems that -bexpall does not export symbols beginning with
9818 # underscore (_), so it is better to generate a list of symbols to export.
9819 always_export_symbols=yes
9820 if test "$aix_use_runtimelinking" = yes; then
9821 # Warning - without using the other runtime loading flags (-brtl),
9822 # -berok will link without error, but may produce a broken library.
9823 allow_undefined_flag='-berok'
9824 # Determine the default libpath from the value encoded in an
9825 # empty executable.
9826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827/* end confdefs.h. */
9828
9829int
9830main ()
9831{
9832
9833 ;
9834 return 0;
9835}
9836_ACEOF
9837if ac_fn_c_try_link "$LINENO"; then :
9838
9839lt_aix_libpath_sed='
9840 /Import File Strings/,/^$/ {
9841 /^0/ {
9842 s/^0 *\(.*\)$/\1/
9843 p
9844 }
9845 }'
9846aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9847# Check for a 64-bit object if we didn't find anything.
9848if test -z "$aix_libpath"; then
9849 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9850fi
9851fi
9852rm -f core conftest.err conftest.$ac_objext \
9853 conftest$ac_exeext conftest.$ac_ext
9854if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9855
9856 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
52327858 9857 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
d7f09764
DN
9858 else
9859 if test "$host_cpu" = ia64; then
9860 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9861 allow_undefined_flag="-z nodefs"
9862 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"
9863 else
9864 # Determine the default libpath from the value encoded in an
9865 # empty executable.
9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867/* end confdefs.h. */
9868
9869int
9870main ()
9871{
9872
9873 ;
9874 return 0;
9875}
9876_ACEOF
9877if ac_fn_c_try_link "$LINENO"; then :
9878
9879lt_aix_libpath_sed='
9880 /Import File Strings/,/^$/ {
9881 /^0/ {
9882 s/^0 *\(.*\)$/\1/
9883 p
9884 }
9885 }'
9886aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9887# Check for a 64-bit object if we didn't find anything.
9888if test -z "$aix_libpath"; then
9889 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9890fi
9891fi
9892rm -f core conftest.err conftest.$ac_objext \
9893 conftest$ac_exeext conftest.$ac_ext
9894if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9895
9896 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9897 # Warning - without using the other run time loading flags,
9898 # -berok will link without error, but may produce a broken library.
9899 no_undefined_flag=' ${wl}-bernotok'
9900 allow_undefined_flag=' ${wl}-berok'
52327858
L
9901 if test "$with_gnu_ld" = yes; then
9902 # We only use this code for GNU lds that support --whole-archive.
9903 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9904 else
9905 # Exported symbols can be pulled into shared objects from archives
9906 whole_archive_flag_spec='$convenience'
9907 fi
d7f09764
DN
9908 archive_cmds_need_lc=yes
9909 # This is similar to how AIX traditionally builds its shared libraries.
9910 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'
9911 fi
9912 fi
9913 ;;
9914
9915 amigaos*)
9916 case $host_cpu in
9917 powerpc)
9918 # see comment about AmigaOS4 .so support
9919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9920 archive_expsym_cmds=''
9921 ;;
9922 m68k)
9923 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)'
9924 hardcode_libdir_flag_spec='-L$libdir'
9925 hardcode_minus_L=yes
9926 ;;
9927 esac
9928 ;;
9929
9930 bsdi[45]*)
9931 export_dynamic_flag_spec=-rdynamic
9932 ;;
9933
9934 cygwin* | mingw* | pw32* | cegcc*)
9935 # When not using gcc, we currently assume that we are using
9936 # Microsoft Visual C++.
9937 # hardcode_libdir_flag_spec is actually meaningless, as there is
9938 # no search path for DLLs.
9939 hardcode_libdir_flag_spec=' '
9940 allow_undefined_flag=unsupported
9941 # Tell ltmain to make .lib files, not .a files.
9942 libext=lib
9943 # Tell ltmain to make .dll files, not .so files.
9944 shrext_cmds=".dll"
9945 # FIXME: Setting linknames here is a bad hack.
52327858 9946 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
d7f09764
DN
9947 # The linker will automatically build a .lib file if we build a DLL.
9948 old_archive_from_new_cmds='true'
9949 # FIXME: Should let the user specify the lib program.
9950 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9951 fix_srcfile_path='`cygpath -w "$srcfile"`'
9952 enable_shared_with_static_runtimes=yes
9953 ;;
9954
9955 darwin* | rhapsody*)
9956
9957
9958 archive_cmds_need_lc=no
9959 hardcode_direct=no
9960 hardcode_automatic=yes
9961 hardcode_shlibpath_var=unsupported
52327858
L
9962 if test "$lt_cv_ld_force_load" = "yes"; then
9963 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9964 else
9965 whole_archive_flag_spec=''
9966 fi
d7f09764
DN
9967 link_all_deplibs=yes
9968 allow_undefined_flag="$_lt_dar_allow_undefined"
9969 case $cc_basename in
9970 ifort*) _lt_dar_can_shared=yes ;;
9971 *) _lt_dar_can_shared=$GCC ;;
9972 esac
9973 if test "$_lt_dar_can_shared" = "yes"; then
52327858 9974 output_verbose_link_cmd=func_echo_all
d7f09764
DN
9975 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9976 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9977 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}"
9978 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}"
9979
9980 else
9981 ld_shlibs=no
9982 fi
9983
9984 ;;
9985
9986 dgux*)
9987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9988 hardcode_libdir_flag_spec='-L$libdir'
9989 hardcode_shlibpath_var=no
9990 ;;
9991
d7f09764
DN
9992 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9993 # support. Future versions do this automatically, but an explicit c++rt0.o
9994 # does not break anything, and helps significantly (at the cost of a little
9995 # extra space).
9996 freebsd2.2*)
9997 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9998 hardcode_libdir_flag_spec='-R$libdir'
9999 hardcode_direct=yes
10000 hardcode_shlibpath_var=no
10001 ;;
10002
10003 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 10004 freebsd2.*)
d7f09764
DN
10005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10006 hardcode_direct=yes
10007 hardcode_minus_L=yes
10008 hardcode_shlibpath_var=no
10009 ;;
10010
10011 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10012 freebsd* | dragonfly*)
10013 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10014 hardcode_libdir_flag_spec='-R$libdir'
10015 hardcode_direct=yes
10016 hardcode_shlibpath_var=no
10017 ;;
10018
10019 hpux9*)
10020 if test "$GCC" = yes; then
10021 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'
10022 else
10023 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'
10024 fi
10025 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10026 hardcode_libdir_separator=:
10027 hardcode_direct=yes
10028
10029 # hardcode_minus_L: Not really in the search PATH,
10030 # but as the default location of the library.
10031 hardcode_minus_L=yes
10032 export_dynamic_flag_spec='${wl}-E'
10033 ;;
10034
10035 hpux10*)
52327858 10036 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7f09764
DN
10037 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10038 else
10039 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10040 fi
10041 if test "$with_gnu_ld" = no; then
10042 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10043 hardcode_libdir_flag_spec_ld='+b $libdir'
10044 hardcode_libdir_separator=:
10045 hardcode_direct=yes
10046 hardcode_direct_absolute=yes
10047 export_dynamic_flag_spec='${wl}-E'
10048 # hardcode_minus_L: Not really in the search PATH,
10049 # but as the default location of the library.
10050 hardcode_minus_L=yes
10051 fi
10052 ;;
10053
10054 hpux11*)
52327858 10055 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7f09764
DN
10056 case $host_cpu in
10057 hppa*64*)
10058 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10059 ;;
10060 ia64*)
10061 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10062 ;;
10063 *)
10064 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10065 ;;
10066 esac
10067 else
10068 case $host_cpu in
10069 hppa*64*)
10070 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10071 ;;
10072 ia64*)
10073 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10074 ;;
10075 *)
52327858
L
10076
10077 # Older versions of the 11.00 compiler do not understand -b yet
10078 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10080$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 10081if ${lt_cv_prog_compiler__b+:} false; then :
52327858
L
10082 $as_echo_n "(cached) " >&6
10083else
10084 lt_cv_prog_compiler__b=no
10085 save_LDFLAGS="$LDFLAGS"
10086 LDFLAGS="$LDFLAGS -b"
10087 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10088 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10089 # The linker can only warn and ignore the option if not recognized
10090 # So say no if there are warnings
10091 if test -s conftest.err; then
10092 # Append any errors to the config.log.
10093 cat conftest.err 1>&5
10094 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10095 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10096 if diff conftest.exp conftest.er2 >/dev/null; then
10097 lt_cv_prog_compiler__b=yes
10098 fi
10099 else
10100 lt_cv_prog_compiler__b=yes
10101 fi
10102 fi
10103 $RM -r conftest*
10104 LDFLAGS="$save_LDFLAGS"
10105
10106fi
10107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10108$as_echo "$lt_cv_prog_compiler__b" >&6; }
10109
10110if test x"$lt_cv_prog_compiler__b" = xyes; then
10111 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10112else
10113 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10114fi
10115
d7f09764
DN
10116 ;;
10117 esac
10118 fi
10119 if test "$with_gnu_ld" = no; then
10120 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10121 hardcode_libdir_separator=:
10122
10123 case $host_cpu in
10124 hppa*64*|ia64*)
10125 hardcode_direct=no
10126 hardcode_shlibpath_var=no
10127 ;;
10128 *)
10129 hardcode_direct=yes
10130 hardcode_direct_absolute=yes
10131 export_dynamic_flag_spec='${wl}-E'
10132
10133 # hardcode_minus_L: Not really in the search PATH,
10134 # but as the default location of the library.
10135 hardcode_minus_L=yes
10136 ;;
10137 esac
10138 fi
10139 ;;
10140
10141 irix5* | irix6* | nonstopux*)
10142 if test "$GCC" = yes; then
52327858 10143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
d7f09764
DN
10144 # Try to use the -exported_symbol ld option, if it does not
10145 # work, assume that -exports_file does not work either and
10146 # implicitly export all symbols.
10147 save_LDFLAGS="$LDFLAGS"
10148 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150/* end confdefs.h. */
10151int foo(void) {}
10152_ACEOF
10153if ac_fn_c_try_link "$LINENO"; then :
52327858 10154 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
d7f09764
DN
10155
10156fi
10157rm -f core conftest.err conftest.$ac_objext \
10158 conftest$ac_exeext conftest.$ac_ext
10159 LDFLAGS="$save_LDFLAGS"
10160 else
52327858
L
10161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10162 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
d7f09764
DN
10163 fi
10164 archive_cmds_need_lc='no'
10165 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10166 hardcode_libdir_separator=:
10167 inherit_rpath=yes
10168 link_all_deplibs=yes
10169 ;;
10170
10171 netbsd*)
10172 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10174 else
10175 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10176 fi
10177 hardcode_libdir_flag_spec='-R$libdir'
10178 hardcode_direct=yes
10179 hardcode_shlibpath_var=no
10180 ;;
10181
10182 newsos6)
10183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10184 hardcode_direct=yes
10185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10186 hardcode_libdir_separator=:
10187 hardcode_shlibpath_var=no
10188 ;;
10189
10190 *nto* | *qnx*)
10191 ;;
10192
10193 openbsd*)
10194 if test -f /usr/libexec/ld.so; then
10195 hardcode_direct=yes
10196 hardcode_shlibpath_var=no
10197 hardcode_direct_absolute=yes
10198 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10199 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10200 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10201 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10202 export_dynamic_flag_spec='${wl}-E'
10203 else
10204 case $host_os in
10205 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10206 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10207 hardcode_libdir_flag_spec='-R$libdir'
10208 ;;
10209 *)
10210 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10211 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10212 ;;
10213 esac
10214 fi
10215 else
10216 ld_shlibs=no
10217 fi
10218 ;;
10219
10220 os2*)
10221 hardcode_libdir_flag_spec='-L$libdir'
10222 hardcode_minus_L=yes
10223 allow_undefined_flag=unsupported
52327858 10224 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'
d7f09764
DN
10225 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10226 ;;
10227
10228 osf3*)
10229 if test "$GCC" = yes; then
10230 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
52327858 10231 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
d7f09764
DN
10232 else
10233 allow_undefined_flag=' -expect_unresolved \*'
52327858 10234 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
d7f09764
DN
10235 fi
10236 archive_cmds_need_lc='no'
10237 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10238 hardcode_libdir_separator=:
10239 ;;
10240
10241 osf4* | osf5*) # as osf3* with the addition of -msym flag
10242 if test "$GCC" = yes; then
10243 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
52327858 10244 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
d7f09764
DN
10245 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10246 else
10247 allow_undefined_flag=' -expect_unresolved \*'
52327858 10248 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
d7f09764 10249 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~
52327858 10250 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
d7f09764
DN
10251
10252 # Both c and cxx compiler support -rpath directly
10253 hardcode_libdir_flag_spec='-rpath $libdir'
10254 fi
10255 archive_cmds_need_lc='no'
10256 hardcode_libdir_separator=:
10257 ;;
10258
10259 solaris*)
10260 no_undefined_flag=' -z defs'
10261 if test "$GCC" = yes; then
10262 wlarc='${wl}'
10263 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10264 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10265 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10266 else
10267 case `$CC -V 2>&1` in
10268 *"Compilers 5.0"*)
10269 wlarc=''
10270 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10271 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10272 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10273 ;;
10274 *)
10275 wlarc='${wl}'
10276 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10277 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10278 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10279 ;;
10280 esac
10281 fi
10282 hardcode_libdir_flag_spec='-R$libdir'
10283 hardcode_shlibpath_var=no
10284 case $host_os in
10285 solaris2.[0-5] | solaris2.[0-5].*) ;;
10286 *)
10287 # The compiler driver will combine and reorder linker options,
10288 # but understands `-z linker_flag'. GCC discards it without `$wl',
10289 # but is careful enough not to reorder.
10290 # Supported since Solaris 2.6 (maybe 2.5.1?)
10291 if test "$GCC" = yes; then
10292 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10293 else
10294 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10295 fi
10296 ;;
10297 esac
10298 link_all_deplibs=yes
10299 ;;
10300
10301 sunos4*)
10302 if test "x$host_vendor" = xsequent; then
10303 # Use $CC to link under sequent, because it throws in some extra .o
10304 # files that make .init and .fini sections work.
10305 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10306 else
10307 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10308 fi
10309 hardcode_libdir_flag_spec='-L$libdir'
10310 hardcode_direct=yes
10311 hardcode_minus_L=yes
10312 hardcode_shlibpath_var=no
10313 ;;
10314
10315 sysv4)
10316 case $host_vendor in
10317 sni)
10318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10319 hardcode_direct=yes # is this really true???
10320 ;;
10321 siemens)
10322 ## LD is ld it makes a PLAMLIB
10323 ## CC just makes a GrossModule.
10324 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10325 reload_cmds='$CC -r -o $output$reload_objs'
10326 hardcode_direct=no
10327 ;;
10328 motorola)
10329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10330 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10331 ;;
10332 esac
10333 runpath_var='LD_RUN_PATH'
10334 hardcode_shlibpath_var=no
10335 ;;
10336
10337 sysv4.3*)
10338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10339 hardcode_shlibpath_var=no
10340 export_dynamic_flag_spec='-Bexport'
10341 ;;
10342
10343 sysv4*MP*)
10344 if test -d /usr/nec; then
10345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10346 hardcode_shlibpath_var=no
10347 runpath_var=LD_RUN_PATH
10348 hardcode_runpath_var=yes
10349 ld_shlibs=yes
10350 fi
10351 ;;
10352
10353 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10354 no_undefined_flag='${wl}-z,text'
10355 archive_cmds_need_lc=no
10356 hardcode_shlibpath_var=no
10357 runpath_var='LD_RUN_PATH'
10358
10359 if test "$GCC" = yes; then
10360 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10361 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10362 else
10363 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10364 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10365 fi
10366 ;;
10367
10368 sysv5* | sco3.2v5* | sco5v6*)
10369 # Note: We can NOT use -z defs as we might desire, because we do not
10370 # link with -lc, and that would cause any symbols used from libc to
10371 # always be unresolved, which means just about no library would
10372 # ever link correctly. If we're not using GNU ld we use -z text
10373 # though, which does catch some bad symbols but isn't as heavy-handed
10374 # as -z defs.
10375 no_undefined_flag='${wl}-z,text'
10376 allow_undefined_flag='${wl}-z,nodefs'
10377 archive_cmds_need_lc=no
10378 hardcode_shlibpath_var=no
10379 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10380 hardcode_libdir_separator=':'
10381 link_all_deplibs=yes
10382 export_dynamic_flag_spec='${wl}-Bexport'
10383 runpath_var='LD_RUN_PATH'
10384
10385 if test "$GCC" = yes; then
10386 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10387 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10388 else
10389 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10390 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10391 fi
10392 ;;
10393
10394 uts4*)
10395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10396 hardcode_libdir_flag_spec='-L$libdir'
10397 hardcode_shlibpath_var=no
10398 ;;
10399
10400 *)
10401 ld_shlibs=no
10402 ;;
10403 esac
10404
10405 if test x$host_vendor = xsni; then
10406 case $host in
10407 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10408 export_dynamic_flag_spec='${wl}-Blargedynsym'
10409 ;;
10410 esac
10411 fi
10412 fi
10413
10414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10415$as_echo "$ld_shlibs" >&6; }
10416test "$ld_shlibs" = no && can_build_shared=no
10417
10418with_gnu_ld=$with_gnu_ld
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434#
10435# Do we need to explicitly link libc?
10436#
10437case "x$archive_cmds_need_lc" in
10438x|xyes)
10439 # Assume -lc should be added
10440 archive_cmds_need_lc=yes
10441
10442 if test "$enable_shared" = yes && test "$GCC" = yes; then
10443 case $archive_cmds in
10444 *'~'*)
10445 # FIXME: we may have to deal with multi-command sequences.
10446 ;;
10447 '$CC '*)
10448 # Test whether the compiler implicitly links with -lc since on some
10449 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10450 # to ld, don't add -lc before -lgcc.
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10452$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 10453if ${lt_cv_archive_cmds_need_lc+:} false; then :
d7f09764
DN
10454 $as_echo_n "(cached) " >&6
10455else
10456 $RM conftest*
10457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10458
10459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10460 (eval $ac_compile) 2>&5
10461 ac_status=$?
10462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10463 test $ac_status = 0; } 2>conftest.err; then
10464 soname=conftest
10465 lib=conftest
10466 libobjs=conftest.$ac_objext
10467 deplibs=
10468 wl=$lt_prog_compiler_wl
10469 pic_flag=$lt_prog_compiler_pic
10470 compiler_flags=-v
10471 linker_flags=-v
10472 verstring=
10473 output_objdir=.
10474 libname=conftest
10475 lt_save_allow_undefined_flag=$allow_undefined_flag
10476 allow_undefined_flag=
10477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10478 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10479 ac_status=$?
10480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10481 test $ac_status = 0; }
10482 then
10483 lt_cv_archive_cmds_need_lc=no
10484 else
10485 lt_cv_archive_cmds_need_lc=yes
10486 fi
10487 allow_undefined_flag=$lt_save_allow_undefined_flag
10488 else
10489 cat conftest.err 1>&5
10490 fi
10491 $RM conftest*
10492
10493fi
10494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10495$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10496 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10497 ;;
10498 esac
10499 fi
10500 ;;
10501esac
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10660$as_echo_n "checking dynamic linker characteristics... " >&6; }
10661
10662if test "$GCC" = yes; then
10663 case $host_os in
10664 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10665 *) lt_awk_arg="/^libraries:/" ;;
10666 esac
52327858
L
10667 case $host_os in
10668 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10669 *) lt_sed_strip_eq="s,=/,/,g" ;;
10670 esac
10671 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10672 case $lt_search_path_spec in
10673 *\;*)
d7f09764
DN
10674 # if the path contains ";" then we assume it to be the separator
10675 # otherwise default to the standard path separator (i.e. ":") - it is
10676 # assumed that no part of a normal pathname contains ";" but that should
10677 # okay in the real world where ";" in dirpaths is itself problematic.
52327858
L
10678 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10679 ;;
10680 *)
10681 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10682 ;;
10683 esac
d7f09764
DN
10684 # Ok, now we have the path, separated by spaces, we can step through it
10685 # and add multilib dir if necessary.
10686 lt_tmp_lt_search_path_spec=
10687 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10688 for lt_sys_path in $lt_search_path_spec; do
10689 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10690 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10691 else
10692 test -d "$lt_sys_path" && \
10693 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10694 fi
10695 done
52327858 10696 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
d7f09764
DN
10697BEGIN {RS=" "; FS="/|\n";} {
10698 lt_foo="";
10699 lt_count=0;
10700 for (lt_i = NF; lt_i > 0; lt_i--) {
10701 if ($lt_i != "" && $lt_i != ".") {
10702 if ($lt_i == "..") {
10703 lt_count++;
10704 } else {
10705 if (lt_count == 0) {
10706 lt_foo="/" $lt_i lt_foo;
10707 } else {
10708 lt_count--;
10709 }
10710 }
10711 }
10712 }
10713 if (lt_foo != "") { lt_freq[lt_foo]++; }
10714 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10715}'`
52327858
L
10716 # AWK program above erroneously prepends '/' to C:/dos/paths
10717 # for these hosts.
10718 case $host_os in
10719 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10720 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10721 esac
10722 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7f09764
DN
10723else
10724 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10725fi
10726library_names_spec=
10727libname_spec='lib$name'
10728soname_spec=
10729shrext_cmds=".so"
10730postinstall_cmds=
10731postuninstall_cmds=
10732finish_cmds=
10733finish_eval=
10734shlibpath_var=
10735shlibpath_overrides_runpath=unknown
10736version_type=none
10737dynamic_linker="$host_os ld.so"
10738sys_lib_dlsearch_path_spec="/lib /usr/lib"
10739need_lib_prefix=unknown
10740hardcode_into_libs=no
10741
10742# when you set need_version to no, make sure it does not cause -set_version
10743# flags to be left without arguments
10744need_version=unknown
10745
10746case $host_os in
10747aix3*)
10748 version_type=linux
10749 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10750 shlibpath_var=LIBPATH
10751
10752 # AIX 3 has no versioning support, so we append a major version to the name.
10753 soname_spec='${libname}${release}${shared_ext}$major'
10754 ;;
10755
10756aix[4-9]*)
10757 version_type=linux
10758 need_lib_prefix=no
10759 need_version=no
10760 hardcode_into_libs=yes
10761 if test "$host_cpu" = ia64; then
10762 # AIX 5 supports IA64
10763 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10764 shlibpath_var=LD_LIBRARY_PATH
10765 else
10766 # With GCC up to 2.95.x, collect2 would create an import file
10767 # for dependence libraries. The import file would start with
10768 # the line `#! .'. This would cause the generated library to
10769 # depend on `.', always an invalid library. This was fixed in
10770 # development snapshots of GCC prior to 3.0.
10771 case $host_os in
10772 aix4 | aix4.[01] | aix4.[01].*)
10773 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10774 echo ' yes '
10775 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10776 :
10777 else
10778 can_build_shared=no
10779 fi
10780 ;;
10781 esac
10782 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10783 # soname into executable. Probably we can add versioning support to
10784 # collect2, so additional links can be useful in future.
10785 if test "$aix_use_runtimelinking" = yes; then
10786 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10787 # instead of lib<name>.a to let people know that these are not
10788 # typical AIX shared libraries.
10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10790 else
10791 # We preserve .a as extension for shared libraries through AIX4.2
10792 # and later when we are not doing run time linking.
10793 library_names_spec='${libname}${release}.a $libname.a'
10794 soname_spec='${libname}${release}${shared_ext}$major'
10795 fi
10796 shlibpath_var=LIBPATH
10797 fi
10798 ;;
10799
10800amigaos*)
10801 case $host_cpu in
10802 powerpc)
10803 # Since July 2007 AmigaOS4 officially supports .so libraries.
10804 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10806 ;;
10807 m68k)
10808 library_names_spec='$libname.ixlibrary $libname.a'
10809 # Create ${libname}_ixlibrary.a entries in /sys/libs.
52327858 10810 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
d7f09764
DN
10811 ;;
10812 esac
10813 ;;
10814
10815beos*)
10816 library_names_spec='${libname}${shared_ext}'
10817 dynamic_linker="$host_os ld.so"
10818 shlibpath_var=LIBRARY_PATH
10819 ;;
10820
10821bsdi[45]*)
10822 version_type=linux
10823 need_version=no
10824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10825 soname_spec='${libname}${release}${shared_ext}$major'
10826 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10827 shlibpath_var=LD_LIBRARY_PATH
10828 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10829 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10830 # the default ld.so.conf also contains /usr/contrib/lib and
10831 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10832 # libtool to hard-code these into programs
10833 ;;
10834
10835cygwin* | mingw* | pw32* | cegcc*)
10836 version_type=windows
10837 shrext_cmds=".dll"
10838 need_version=no
10839 need_lib_prefix=no
10840
10841 case $GCC,$host_os in
10842 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10843 library_names_spec='$libname.dll.a'
10844 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10845 postinstall_cmds='base_file=`basename \${file}`~
10846 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10847 dldir=$destdir/`dirname \$dlpath`~
10848 test -d \$dldir || mkdir -p \$dldir~
10849 $install_prog $dir/$dlname \$dldir/$dlname~
10850 chmod a+x \$dldir/$dlname~
10851 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10852 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10853 fi'
10854 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10855 dlpath=$dir/\$dldll~
10856 $RM \$dlpath'
10857 shlibpath_overrides_runpath=yes
10858
10859 case $host_os in
10860 cygwin*)
10861 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10862 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
52327858
L
10863
10864 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d7f09764
DN
10865 ;;
10866 mingw* | cegcc*)
10867 # MinGW DLLs use traditional 'lib' prefix
10868 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d7f09764
DN
10869 ;;
10870 pw32*)
10871 # pw32 DLLs use 'pw' prefix rather than 'lib'
10872 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10873 ;;
10874 esac
10875 ;;
10876
10877 *)
10878 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10879 ;;
10880 esac
10881 dynamic_linker='Win32 ld.exe'
10882 # FIXME: first we should search . and the directory the executable is in
10883 shlibpath_var=PATH
10884 ;;
10885
10886darwin* | rhapsody*)
10887 dynamic_linker="$host_os dyld"
10888 version_type=darwin
10889 need_lib_prefix=no
10890 need_version=no
10891 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10892 soname_spec='${libname}${release}${major}$shared_ext'
10893 shlibpath_overrides_runpath=yes
10894 shlibpath_var=DYLD_LIBRARY_PATH
10895 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10896
10897 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10898 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10899 ;;
10900
10901dgux*)
10902 version_type=linux
10903 need_lib_prefix=no
10904 need_version=no
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10906 soname_spec='${libname}${release}${shared_ext}$major'
10907 shlibpath_var=LD_LIBRARY_PATH
10908 ;;
10909
d7f09764
DN
10910freebsd* | dragonfly*)
10911 # DragonFly does not have aout. When/if they implement a new
10912 # versioning mechanism, adjust this.
10913 if test -x /usr/bin/objformat; then
10914 objformat=`/usr/bin/objformat`
10915 else
10916 case $host_os in
c6084f68 10917 freebsd[23].*) objformat=aout ;;
d7f09764
DN
10918 *) objformat=elf ;;
10919 esac
10920 fi
10921 version_type=freebsd-$objformat
10922 case $version_type in
10923 freebsd-elf*)
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10925 need_version=no
10926 need_lib_prefix=no
10927 ;;
10928 freebsd-*)
10929 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10930 need_version=yes
10931 ;;
10932 esac
10933 shlibpath_var=LD_LIBRARY_PATH
10934 case $host_os in
c6084f68 10935 freebsd2.*)
d7f09764
DN
10936 shlibpath_overrides_runpath=yes
10937 ;;
10938 freebsd3.[01]* | freebsdelf3.[01]*)
10939 shlibpath_overrides_runpath=yes
10940 hardcode_into_libs=yes
10941 ;;
10942 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10943 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10944 shlibpath_overrides_runpath=no
10945 hardcode_into_libs=yes
10946 ;;
10947 *) # from 4.6 on, and DragonFly
10948 shlibpath_overrides_runpath=yes
10949 hardcode_into_libs=yes
10950 ;;
10951 esac
10952 ;;
10953
10954gnu*)
10955 version_type=linux
10956 need_lib_prefix=no
10957 need_version=no
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10959 soname_spec='${libname}${release}${shared_ext}$major'
10960 shlibpath_var=LD_LIBRARY_PATH
10961 hardcode_into_libs=yes
10962 ;;
10963
52327858
L
10964haiku*)
10965 version_type=linux
10966 need_lib_prefix=no
10967 need_version=no
10968 dynamic_linker="$host_os runtime_loader"
10969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10970 soname_spec='${libname}${release}${shared_ext}$major'
10971 shlibpath_var=LIBRARY_PATH
10972 shlibpath_overrides_runpath=yes
10973 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10974 hardcode_into_libs=yes
10975 ;;
10976
d7f09764
DN
10977hpux9* | hpux10* | hpux11*)
10978 # Give a soname corresponding to the major version so that dld.sl refuses to
10979 # link against other versions.
10980 version_type=sunos
10981 need_lib_prefix=no
10982 need_version=no
10983 case $host_cpu in
10984 ia64*)
10985 shrext_cmds='.so'
10986 hardcode_into_libs=yes
10987 dynamic_linker="$host_os dld.so"
10988 shlibpath_var=LD_LIBRARY_PATH
10989 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10991 soname_spec='${libname}${release}${shared_ext}$major'
10992 if test "X$HPUX_IA64_MODE" = X32; then
10993 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10994 else
10995 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10996 fi
10997 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10998 ;;
10999 hppa*64*)
11000 shrext_cmds='.sl'
11001 hardcode_into_libs=yes
11002 dynamic_linker="$host_os dld.sl"
11003 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11008 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11009 ;;
11010 *)
11011 shrext_cmds='.sl'
11012 dynamic_linker="$host_os dld.sl"
11013 shlibpath_var=SHLIB_PATH
11014 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11016 soname_spec='${libname}${release}${shared_ext}$major'
11017 ;;
11018 esac
52327858 11019 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d7f09764 11020 postinstall_cmds='chmod 555 $lib'
52327858
L
11021 # or fails outright, so override atomically:
11022 install_override_mode=555
d7f09764
DN
11023 ;;
11024
11025interix[3-9]*)
11026 version_type=linux
11027 need_lib_prefix=no
11028 need_version=no
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11030 soname_spec='${libname}${release}${shared_ext}$major'
11031 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11032 shlibpath_var=LD_LIBRARY_PATH
11033 shlibpath_overrides_runpath=no
11034 hardcode_into_libs=yes
11035 ;;
11036
11037irix5* | irix6* | nonstopux*)
11038 case $host_os in
11039 nonstopux*) version_type=nonstopux ;;
11040 *)
11041 if test "$lt_cv_prog_gnu_ld" = yes; then
11042 version_type=linux
11043 else
11044 version_type=irix
11045 fi ;;
11046 esac
11047 need_lib_prefix=no
11048 need_version=no
11049 soname_spec='${libname}${release}${shared_ext}$major'
11050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11051 case $host_os in
11052 irix5* | nonstopux*)
11053 libsuff= shlibsuff=
11054 ;;
11055 *)
11056 case $LD in # libtool.m4 will add one of these switches to LD
11057 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11058 libsuff= shlibsuff= libmagic=32-bit;;
11059 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11060 libsuff=32 shlibsuff=N32 libmagic=N32;;
11061 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11062 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11063 *) libsuff= shlibsuff= libmagic=never-match;;
11064 esac
11065 ;;
11066 esac
11067 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11068 shlibpath_overrides_runpath=no
11069 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11070 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11071 hardcode_into_libs=yes
11072 ;;
11073
11074# No shared lib support for Linux oldld, aout, or coff.
11075linux*oldld* | linux*aout* | linux*coff*)
11076 dynamic_linker=no
11077 ;;
11078
11079# This must be Linux ELF.
11080linux* | k*bsd*-gnu | kopensolaris*-gnu)
11081 version_type=linux
11082 need_lib_prefix=no
11083 need_version=no
11084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11085 soname_spec='${libname}${release}${shared_ext}$major'
11086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11087 shlibpath_var=LD_LIBRARY_PATH
11088 shlibpath_overrides_runpath=no
11089
11090 # Some binutils ld are patched to set DT_RUNPATH
22e05272 11091 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
d7f09764
DN
11092 $as_echo_n "(cached) " >&6
11093else
11094 lt_cv_shlibpath_overrides_runpath=no
11095 save_LDFLAGS=$LDFLAGS
11096 save_libdir=$libdir
11097 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11098 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11100/* end confdefs.h. */
11101
11102int
11103main ()
11104{
11105
11106 ;
11107 return 0;
11108}
11109_ACEOF
11110if ac_fn_c_try_link "$LINENO"; then :
11111 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11112 lt_cv_shlibpath_overrides_runpath=yes
11113fi
11114fi
11115rm -f core conftest.err conftest.$ac_objext \
11116 conftest$ac_exeext conftest.$ac_ext
11117 LDFLAGS=$save_LDFLAGS
11118 libdir=$save_libdir
11119
11120fi
11121
11122 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11123
11124 # This implies no fast_install, which is unacceptable.
11125 # Some rework will be needed to allow for fast_install
11126 # before this can be enabled.
11127 hardcode_into_libs=yes
11128
11129 # Append ld.so.conf contents to the search path
11130 if test -f /etc/ld.so.conf; then
52327858 11131 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;s/"//g;/^$/d' | tr '\n' ' '`
d7f09764
DN
11132 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11133 fi
11134
11135 # We used to test for /lib/ld.so.1 and disable shared libraries on
11136 # powerpc, because MkLinux only supported shared libraries with the
11137 # GNU dynamic linker. Since this was broken with cross compilers,
11138 # most powerpc-linux boxes support dynamic linking these days and
11139 # people can always --disable-shared, the test was removed, and we
11140 # assume the GNU/Linux dynamic linker is in use.
11141 dynamic_linker='GNU/Linux ld.so'
11142 ;;
11143
11144netbsd*)
11145 version_type=sunos
11146 need_lib_prefix=no
11147 need_version=no
11148 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11151 dynamic_linker='NetBSD (a.out) ld.so'
11152 else
11153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11154 soname_spec='${libname}${release}${shared_ext}$major'
11155 dynamic_linker='NetBSD ld.elf_so'
11156 fi
11157 shlibpath_var=LD_LIBRARY_PATH
11158 shlibpath_overrides_runpath=yes
11159 hardcode_into_libs=yes
11160 ;;
11161
11162newsos6)
11163 version_type=linux
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165 shlibpath_var=LD_LIBRARY_PATH
11166 shlibpath_overrides_runpath=yes
11167 ;;
11168
11169*nto* | *qnx*)
11170 version_type=qnx
11171 need_lib_prefix=no
11172 need_version=no
11173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11174 soname_spec='${libname}${release}${shared_ext}$major'
11175 shlibpath_var=LD_LIBRARY_PATH
11176 shlibpath_overrides_runpath=no
11177 hardcode_into_libs=yes
11178 dynamic_linker='ldqnx.so'
11179 ;;
11180
11181openbsd*)
11182 version_type=sunos
11183 sys_lib_dlsearch_path_spec="/usr/lib"
11184 need_lib_prefix=no
11185 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11186 case $host_os in
11187 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11188 *) need_version=no ;;
11189 esac
11190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11192 shlibpath_var=LD_LIBRARY_PATH
11193 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11194 case $host_os in
11195 openbsd2.[89] | openbsd2.[89].*)
11196 shlibpath_overrides_runpath=no
11197 ;;
11198 *)
11199 shlibpath_overrides_runpath=yes
11200 ;;
11201 esac
11202 else
11203 shlibpath_overrides_runpath=yes
11204 fi
11205 ;;
11206
11207os2*)
11208 libname_spec='$name'
11209 shrext_cmds=".dll"
11210 need_lib_prefix=no
11211 library_names_spec='$libname${shared_ext} $libname.a'
11212 dynamic_linker='OS/2 ld.exe'
11213 shlibpath_var=LIBPATH
11214 ;;
11215
11216osf3* | osf4* | osf5*)
11217 version_type=osf
11218 need_lib_prefix=no
11219 need_version=no
11220 soname_spec='${libname}${release}${shared_ext}$major'
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11222 shlibpath_var=LD_LIBRARY_PATH
11223 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11224 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11225 ;;
11226
11227rdos*)
11228 dynamic_linker=no
11229 ;;
11230
11231solaris*)
11232 version_type=linux
11233 need_lib_prefix=no
11234 need_version=no
11235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11236 soname_spec='${libname}${release}${shared_ext}$major'
11237 shlibpath_var=LD_LIBRARY_PATH
11238 shlibpath_overrides_runpath=yes
11239 hardcode_into_libs=yes
11240 # ldd complains unless libraries are executable
11241 postinstall_cmds='chmod +x $lib'
11242 ;;
11243
11244sunos4*)
11245 version_type=sunos
11246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11247 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11248 shlibpath_var=LD_LIBRARY_PATH
11249 shlibpath_overrides_runpath=yes
11250 if test "$with_gnu_ld" = yes; then
11251 need_lib_prefix=no
11252 fi
11253 need_version=yes
11254 ;;
11255
11256sysv4 | sysv4.3*)
11257 version_type=linux
11258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11259 soname_spec='${libname}${release}${shared_ext}$major'
11260 shlibpath_var=LD_LIBRARY_PATH
11261 case $host_vendor in
11262 sni)
11263 shlibpath_overrides_runpath=no
11264 need_lib_prefix=no
11265 runpath_var=LD_RUN_PATH
11266 ;;
11267 siemens)
11268 need_lib_prefix=no
11269 ;;
11270 motorola)
11271 need_lib_prefix=no
11272 need_version=no
11273 shlibpath_overrides_runpath=no
11274 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11275 ;;
11276 esac
11277 ;;
11278
11279sysv4*MP*)
11280 if test -d /usr/nec ;then
11281 version_type=linux
11282 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11283 soname_spec='$libname${shared_ext}.$major'
11284 shlibpath_var=LD_LIBRARY_PATH
11285 fi
11286 ;;
11287
11288sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11289 version_type=freebsd-elf
11290 need_lib_prefix=no
11291 need_version=no
11292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11293 soname_spec='${libname}${release}${shared_ext}$major'
11294 shlibpath_var=LD_LIBRARY_PATH
11295 shlibpath_overrides_runpath=yes
11296 hardcode_into_libs=yes
11297 if test "$with_gnu_ld" = yes; then
11298 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11299 else
11300 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11301 case $host_os in
11302 sco3.2v5*)
11303 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11304 ;;
11305 esac
11306 fi
11307 sys_lib_dlsearch_path_spec='/usr/lib'
11308 ;;
11309
11310tpf*)
11311 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11312 version_type=linux
11313 need_lib_prefix=no
11314 need_version=no
11315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11316 shlibpath_var=LD_LIBRARY_PATH
11317 shlibpath_overrides_runpath=no
11318 hardcode_into_libs=yes
11319 ;;
11320
11321uts4*)
11322 version_type=linux
11323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11324 soname_spec='${libname}${release}${shared_ext}$major'
11325 shlibpath_var=LD_LIBRARY_PATH
11326 ;;
11327
11328*)
11329 dynamic_linker=no
11330 ;;
11331esac
11332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11333$as_echo "$dynamic_linker" >&6; }
11334test "$dynamic_linker" = no && can_build_shared=no
11335
11336variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11337if test "$GCC" = yes; then
11338 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11339fi
11340
11341if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11342 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11343fi
11344if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11345 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11346fi
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
52327858
L
11428
11429
11430
11431
11432
d7f09764
DN
11433
11434
11435
11436
11437
11438
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11440$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11441hardcode_action=
11442if test -n "$hardcode_libdir_flag_spec" ||
11443 test -n "$runpath_var" ||
11444 test "X$hardcode_automatic" = "Xyes" ; then
11445
11446 # We can hardcode non-existent directories.
11447 if test "$hardcode_direct" != no &&
11448 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11449 # have to relink, otherwise we might link with an installed library
11450 # when we should be linking with a yet-to-be-installed one
11451 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11452 test "$hardcode_minus_L" != no; then
11453 # Linking always hardcodes the temporary library directory.
11454 hardcode_action=relink
11455 else
11456 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11457 hardcode_action=immediate
11458 fi
11459else
11460 # We cannot hardcode anything, or else we can only hardcode existing
11461 # directories.
11462 hardcode_action=unsupported
11463fi
11464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11465$as_echo "$hardcode_action" >&6; }
11466
11467if test "$hardcode_action" = relink ||
11468 test "$inherit_rpath" = yes; then
11469 # Fast installation is not supported
11470 enable_fast_install=no
11471elif test "$shlibpath_overrides_runpath" = yes ||
11472 test "$enable_shared" = no; then
11473 # Fast installation is not necessary
11474 enable_fast_install=needless
11475fi
11476
11477
11478
11479
11480
11481
11482 if test "x$enable_dlopen" != xyes; then
11483 enable_dlopen=unknown
11484 enable_dlopen_self=unknown
11485 enable_dlopen_self_static=unknown
11486else
11487 lt_cv_dlopen=no
11488 lt_cv_dlopen_libs=
11489
11490 case $host_os in
11491 beos*)
11492 lt_cv_dlopen="load_add_on"
11493 lt_cv_dlopen_libs=
11494 lt_cv_dlopen_self=yes
11495 ;;
11496
11497 mingw* | pw32* | cegcc*)
11498 lt_cv_dlopen="LoadLibrary"
11499 lt_cv_dlopen_libs=
11500 ;;
11501
11502 cygwin*)
11503 lt_cv_dlopen="dlopen"
11504 lt_cv_dlopen_libs=
11505 ;;
11506
11507 darwin*)
11508 # if libdl is installed we need to link against it
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11510$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11511if ${ac_cv_lib_dl_dlopen+:} false; then :
d7f09764
DN
11512 $as_echo_n "(cached) " >&6
11513else
11514 ac_check_lib_save_LIBS=$LIBS
11515LIBS="-ldl $LIBS"
11516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517/* end confdefs.h. */
11518
11519/* Override any GCC internal prototype to avoid an error.
11520 Use char because int might match the return type of a GCC
11521 builtin and then its argument prototype would still apply. */
11522#ifdef __cplusplus
11523extern "C"
11524#endif
11525char dlopen ();
11526int
11527main ()
11528{
11529return dlopen ();
11530 ;
11531 return 0;
11532}
11533_ACEOF
11534if ac_fn_c_try_link "$LINENO"; then :
11535 ac_cv_lib_dl_dlopen=yes
11536else
11537 ac_cv_lib_dl_dlopen=no
11538fi
11539rm -f core conftest.err conftest.$ac_objext \
11540 conftest$ac_exeext conftest.$ac_ext
11541LIBS=$ac_check_lib_save_LIBS
11542fi
11543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11544$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11545if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
d7f09764
DN
11546 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11547else
11548
11549 lt_cv_dlopen="dyld"
11550 lt_cv_dlopen_libs=
11551 lt_cv_dlopen_self=yes
11552
11553fi
11554
11555 ;;
11556
11557 *)
11558 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 11559if test "x$ac_cv_func_shl_load" = xyes; then :
d7f09764
DN
11560 lt_cv_dlopen="shl_load"
11561else
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11563$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 11564if ${ac_cv_lib_dld_shl_load+:} false; then :
d7f09764
DN
11565 $as_echo_n "(cached) " >&6
11566else
11567 ac_check_lib_save_LIBS=$LIBS
11568LIBS="-ldld $LIBS"
11569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570/* end confdefs.h. */
11571
11572/* Override any GCC internal prototype to avoid an error.
11573 Use char because int might match the return type of a GCC
11574 builtin and then its argument prototype would still apply. */
11575#ifdef __cplusplus
11576extern "C"
11577#endif
11578char shl_load ();
11579int
11580main ()
11581{
11582return shl_load ();
11583 ;
11584 return 0;
11585}
11586_ACEOF
11587if ac_fn_c_try_link "$LINENO"; then :
11588 ac_cv_lib_dld_shl_load=yes
11589else
11590 ac_cv_lib_dld_shl_load=no
11591fi
11592rm -f core conftest.err conftest.$ac_objext \
11593 conftest$ac_exeext conftest.$ac_ext
11594LIBS=$ac_check_lib_save_LIBS
11595fi
11596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11597$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 11598if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
d7f09764
DN
11599 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11600else
11601 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 11602if test "x$ac_cv_func_dlopen" = xyes; then :
d7f09764
DN
11603 lt_cv_dlopen="dlopen"
11604else
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11606$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11607if ${ac_cv_lib_dl_dlopen+:} false; then :
d7f09764
DN
11608 $as_echo_n "(cached) " >&6
11609else
11610 ac_check_lib_save_LIBS=$LIBS
11611LIBS="-ldl $LIBS"
11612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613/* end confdefs.h. */
11614
11615/* Override any GCC internal prototype to avoid an error.
11616 Use char because int might match the return type of a GCC
11617 builtin and then its argument prototype would still apply. */
11618#ifdef __cplusplus
11619extern "C"
11620#endif
11621char dlopen ();
11622int
11623main ()
11624{
11625return dlopen ();
11626 ;
11627 return 0;
11628}
11629_ACEOF
11630if ac_fn_c_try_link "$LINENO"; then :
11631 ac_cv_lib_dl_dlopen=yes
11632else
11633 ac_cv_lib_dl_dlopen=no
11634fi
11635rm -f core conftest.err conftest.$ac_objext \
11636 conftest$ac_exeext conftest.$ac_ext
11637LIBS=$ac_check_lib_save_LIBS
11638fi
11639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11640$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11641if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
d7f09764
DN
11642 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11643else
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11645$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 11646if ${ac_cv_lib_svld_dlopen+:} false; then :
d7f09764
DN
11647 $as_echo_n "(cached) " >&6
11648else
11649 ac_check_lib_save_LIBS=$LIBS
11650LIBS="-lsvld $LIBS"
11651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652/* end confdefs.h. */
11653
11654/* Override any GCC internal prototype to avoid an error.
11655 Use char because int might match the return type of a GCC
11656 builtin and then its argument prototype would still apply. */
11657#ifdef __cplusplus
11658extern "C"
11659#endif
11660char dlopen ();
11661int
11662main ()
11663{
11664return dlopen ();
11665 ;
11666 return 0;
11667}
11668_ACEOF
11669if ac_fn_c_try_link "$LINENO"; then :
11670 ac_cv_lib_svld_dlopen=yes
11671else
11672 ac_cv_lib_svld_dlopen=no
11673fi
11674rm -f core conftest.err conftest.$ac_objext \
11675 conftest$ac_exeext conftest.$ac_ext
11676LIBS=$ac_check_lib_save_LIBS
11677fi
11678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11679$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 11680if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
d7f09764
DN
11681 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11682else
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11684$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 11685if ${ac_cv_lib_dld_dld_link+:} false; then :
d7f09764
DN
11686 $as_echo_n "(cached) " >&6
11687else
11688 ac_check_lib_save_LIBS=$LIBS
11689LIBS="-ldld $LIBS"
11690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11691/* end confdefs.h. */
11692
11693/* Override any GCC internal prototype to avoid an error.
11694 Use char because int might match the return type of a GCC
11695 builtin and then its argument prototype would still apply. */
11696#ifdef __cplusplus
11697extern "C"
11698#endif
11699char dld_link ();
11700int
11701main ()
11702{
11703return dld_link ();
11704 ;
11705 return 0;
11706}
11707_ACEOF
11708if ac_fn_c_try_link "$LINENO"; then :
11709 ac_cv_lib_dld_dld_link=yes
11710else
11711 ac_cv_lib_dld_dld_link=no
11712fi
11713rm -f core conftest.err conftest.$ac_objext \
11714 conftest$ac_exeext conftest.$ac_ext
11715LIBS=$ac_check_lib_save_LIBS
11716fi
11717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11718$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 11719if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
d7f09764
DN
11720 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11721fi
11722
11723
11724fi
11725
11726
11727fi
11728
11729
11730fi
11731
11732
11733fi
11734
11735
11736fi
11737
11738 ;;
11739 esac
11740
11741 if test "x$lt_cv_dlopen" != xno; then
11742 enable_dlopen=yes
11743 else
11744 enable_dlopen=no
11745 fi
11746
11747 case $lt_cv_dlopen in
11748 dlopen)
11749 save_CPPFLAGS="$CPPFLAGS"
11750 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11751
11752 save_LDFLAGS="$LDFLAGS"
11753 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11754
11755 save_LIBS="$LIBS"
11756 LIBS="$lt_cv_dlopen_libs $LIBS"
11757
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11759$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 11760if ${lt_cv_dlopen_self+:} false; then :
d7f09764
DN
11761 $as_echo_n "(cached) " >&6
11762else
11763 if test "$cross_compiling" = yes; then :
11764 lt_cv_dlopen_self=cross
11765else
11766 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11767 lt_status=$lt_dlunknown
11768 cat > conftest.$ac_ext <<_LT_EOF
22e05272 11769#line 11769 "configure"
d7f09764
DN
11770#include "confdefs.h"
11771
11772#if HAVE_DLFCN_H
11773#include <dlfcn.h>
11774#endif
11775
11776#include <stdio.h>
11777
11778#ifdef RTLD_GLOBAL
11779# define LT_DLGLOBAL RTLD_GLOBAL
11780#else
11781# ifdef DL_GLOBAL
11782# define LT_DLGLOBAL DL_GLOBAL
11783# else
11784# define LT_DLGLOBAL 0
11785# endif
11786#endif
11787
11788/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11789 find out it does not work in some platform. */
11790#ifndef LT_DLLAZY_OR_NOW
11791# ifdef RTLD_LAZY
11792# define LT_DLLAZY_OR_NOW RTLD_LAZY
11793# else
11794# ifdef DL_LAZY
11795# define LT_DLLAZY_OR_NOW DL_LAZY
11796# else
11797# ifdef RTLD_NOW
11798# define LT_DLLAZY_OR_NOW RTLD_NOW
11799# else
11800# ifdef DL_NOW
11801# define LT_DLLAZY_OR_NOW DL_NOW
11802# else
11803# define LT_DLLAZY_OR_NOW 0
11804# endif
11805# endif
11806# endif
11807# endif
11808#endif
11809
52327858
L
11810/* When -fvisbility=hidden is used, assume the code has been annotated
11811 correspondingly for the symbols needed. */
11812#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11813void fnord () __attribute__((visibility("default")));
11814#endif
11815
11816void fnord () { int i=42; }
d7f09764
DN
11817int main ()
11818{
11819 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11820 int status = $lt_dlunknown;
11821
11822 if (self)
11823 {
11824 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
52327858
L
11825 else
11826 {
11827 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11828 else puts (dlerror ());
11829 }
d7f09764
DN
11830 /* dlclose (self); */
11831 }
11832 else
11833 puts (dlerror ());
11834
11835 return status;
11836}
11837_LT_EOF
11838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11839 (eval $ac_link) 2>&5
11840 ac_status=$?
11841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11842 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11843 (./conftest; exit; ) >&5 2>/dev/null
11844 lt_status=$?
11845 case x$lt_status in
11846 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11847 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11848 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11849 esac
11850 else :
11851 # compilation failed
11852 lt_cv_dlopen_self=no
11853 fi
11854fi
11855rm -fr conftest*
11856
11857
11858fi
11859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11860$as_echo "$lt_cv_dlopen_self" >&6; }
11861
11862 if test "x$lt_cv_dlopen_self" = xyes; then
11863 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11865$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 11866if ${lt_cv_dlopen_self_static+:} false; then :
d7f09764
DN
11867 $as_echo_n "(cached) " >&6
11868else
11869 if test "$cross_compiling" = yes; then :
11870 lt_cv_dlopen_self_static=cross
11871else
11872 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11873 lt_status=$lt_dlunknown
11874 cat > conftest.$ac_ext <<_LT_EOF
22e05272 11875#line 11875 "configure"
d7f09764
DN
11876#include "confdefs.h"
11877
11878#if HAVE_DLFCN_H
11879#include <dlfcn.h>
11880#endif
11881
11882#include <stdio.h>
11883
11884#ifdef RTLD_GLOBAL
11885# define LT_DLGLOBAL RTLD_GLOBAL
11886#else
11887# ifdef DL_GLOBAL
11888# define LT_DLGLOBAL DL_GLOBAL
11889# else
11890# define LT_DLGLOBAL 0
11891# endif
11892#endif
11893
11894/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11895 find out it does not work in some platform. */
11896#ifndef LT_DLLAZY_OR_NOW
11897# ifdef RTLD_LAZY
11898# define LT_DLLAZY_OR_NOW RTLD_LAZY
11899# else
11900# ifdef DL_LAZY
11901# define LT_DLLAZY_OR_NOW DL_LAZY
11902# else
11903# ifdef RTLD_NOW
11904# define LT_DLLAZY_OR_NOW RTLD_NOW
11905# else
11906# ifdef DL_NOW
11907# define LT_DLLAZY_OR_NOW DL_NOW
11908# else
11909# define LT_DLLAZY_OR_NOW 0
11910# endif
11911# endif
11912# endif
11913# endif
11914#endif
11915
52327858
L
11916/* When -fvisbility=hidden is used, assume the code has been annotated
11917 correspondingly for the symbols needed. */
11918#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11919void fnord () __attribute__((visibility("default")));
11920#endif
11921
11922void fnord () { int i=42; }
d7f09764
DN
11923int main ()
11924{
11925 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11926 int status = $lt_dlunknown;
11927
11928 if (self)
11929 {
11930 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
52327858
L
11931 else
11932 {
11933 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11934 else puts (dlerror ());
11935 }
d7f09764
DN
11936 /* dlclose (self); */
11937 }
11938 else
11939 puts (dlerror ());
11940
11941 return status;
11942}
11943_LT_EOF
11944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11945 (eval $ac_link) 2>&5
11946 ac_status=$?
11947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11948 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11949 (./conftest; exit; ) >&5 2>/dev/null
11950 lt_status=$?
11951 case x$lt_status in
11952 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11953 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11954 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11955 esac
11956 else :
11957 # compilation failed
11958 lt_cv_dlopen_self_static=no
11959 fi
11960fi
11961rm -fr conftest*
11962
11963
11964fi
11965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11966$as_echo "$lt_cv_dlopen_self_static" >&6; }
11967 fi
11968
11969 CPPFLAGS="$save_CPPFLAGS"
11970 LDFLAGS="$save_LDFLAGS"
11971 LIBS="$save_LIBS"
11972 ;;
11973 esac
11974
11975 case $lt_cv_dlopen_self in
11976 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11977 *) enable_dlopen_self=unknown ;;
11978 esac
11979
11980 case $lt_cv_dlopen_self_static in
11981 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11982 *) enable_dlopen_self_static=unknown ;;
11983 esac
11984fi
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002striplib=
12003old_striplib=
12004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12005$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12006if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12007 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12008 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12010$as_echo "yes" >&6; }
12011else
12012# FIXME - insert some real tests, host_os isn't really good enough
12013 case $host_os in
12014 darwin*)
12015 if test -n "$STRIP" ; then
12016 striplib="$STRIP -x"
12017 old_striplib="$STRIP -S"
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12019$as_echo "yes" >&6; }
12020 else
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12022$as_echo "no" >&6; }
12023 fi
12024 ;;
12025 *)
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027$as_echo "no" >&6; }
12028 ;;
12029 esac
12030fi
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043 # Report which library types will actually be built
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12045$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12047$as_echo "$can_build_shared" >&6; }
12048
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12050$as_echo_n "checking whether to build shared libraries... " >&6; }
12051 test "$can_build_shared" = "no" && enable_shared=no
12052
12053 # On AIX, shared libraries and static libraries use the same namespace, and
12054 # are all built from PIC.
12055 case $host_os in
12056 aix3*)
12057 test "$enable_shared" = yes && enable_static=no
12058 if test -n "$RANLIB"; then
12059 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12060 postinstall_cmds='$RANLIB $lib'
12061 fi
12062 ;;
12063
12064 aix[4-9]*)
12065 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12066 test "$enable_shared" = yes && enable_static=no
12067 fi
12068 ;;
12069 esac
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12071$as_echo "$enable_shared" >&6; }
12072
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12074$as_echo_n "checking whether to build static libraries... " >&6; }
12075 # Make sure either enable_shared or enable_static is yes.
12076 test "$enable_shared" = yes || enable_static=yes
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12078$as_echo "$enable_static" >&6; }
12079
12080
12081
12082
12083fi
12084ac_ext=c
12085ac_cpp='$CPP $CPPFLAGS'
12086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12088ac_compiler_gnu=$ac_cv_c_compiler_gnu
12089
12090CC="$lt_save_CC"
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104 ac_config_commands="$ac_config_commands libtool"
12105
12106
12107
12108
12109# Only expand once:
12110
12111
12112
7de6ba7a
DK
12113
12114
12115case $host in
12116 *-cygwin* | *-mingw*)
12117 # 'host' will be top-level target in the case of a target lib,
12118 # we must compare to with_cross_host to decide if this is a native
12119 # or cross-compiler and select where to install dlls appropriately.
12120 if test -n "$with_cross_host" &&
12121 test x"$with_cross_host" != x"no"; then
12122 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12123 else
12124 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12125 fi
12126 ;;
12127 *)
12128 lt_host_flags=
12129 ;;
12130esac
12131
12132
12133
12134
d19e0f01
DK
12135ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
12136case $ac_cv_c_int64_t in #(
12137 no|yes) ;; #(
12138 *)
12139
12140cat >>confdefs.h <<_ACEOF
12141#define int64_t $ac_cv_c_int64_t
12142_ACEOF
12143;;
12144esac
12145
21750c78
RE
12146ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
12147case $ac_cv_c_uint64_t in #(
12148 no|yes) ;; #(
12149 *)
12150
12151$as_echo "#define _UINT64_T 1" >>confdefs.h
12152
12153
12154cat >>confdefs.h <<_ACEOF
12155#define uint64_t $ac_cv_c_uint64_t
12156_ACEOF
12157;;
12158 esac
12159
ec692d5f
KT
12160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12161$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
22e05272 12162if ${ac_cv_header_sys_wait_h+:} false; then :
ec692d5f
KT
12163 $as_echo_n "(cached) " >&6
12164else
12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166/* end confdefs.h. */
12167#include <sys/types.h>
12168#include <sys/wait.h>
12169#ifndef WEXITSTATUS
12170# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12171#endif
12172#ifndef WIFEXITED
12173# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12174#endif
a2254c5d 12175
ec692d5f
KT
12176int
12177main ()
12178{
12179 int s;
12180 wait (&s);
12181 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12182 ;
12183 return 0;
12184}
12185_ACEOF
12186if ac_fn_c_try_compile "$LINENO"; then :
12187 ac_cv_header_sys_wait_h=yes
12188else
12189 ac_cv_header_sys_wait_h=no
12190fi
12191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a2254c5d 12192fi
ec692d5f
KT
12193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12194$as_echo "$ac_cv_header_sys_wait_h" >&6; }
12195if test $ac_cv_header_sys_wait_h = yes; then
a2254c5d 12196
ec692d5f
KT
12197$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12198
12199fi
a2254c5d 12200
d7f09764
DN
12201ac_config_files="$ac_config_files Makefile"
12202
48215350
DK
12203ac_config_headers="$ac_config_headers config.h"
12204
d7f09764
DN
12205cat >confcache <<\_ACEOF
12206# This file is a shell script that caches the results of configure
12207# tests run on this system so they can be shared between configure
12208# scripts and configure runs, see configure's option --config-cache.
12209# It is not useful on other systems. If it contains results you don't
12210# want to keep, you may remove or edit it.
12211#
12212# config.status only pays attention to the cache file if you give it
12213# the --recheck option to rerun configure.
12214#
12215# `ac_cv_env_foo' variables (set or unset) will be overridden when
12216# loading this file, other *unset* `ac_cv_foo' will be assigned the
12217# following values.
12218
12219_ACEOF
12220
12221# The following way of writing the cache mishandles newlines in values,
12222# but we know of no workaround that is simple, portable, and efficient.
12223# So, we kill variables containing newlines.
12224# Ultrix sh set writes to stderr and can't be redirected directly,
12225# and sets the high bit in the cache file unless we assign to the vars.
12226(
12227 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12228 eval ac_val=\$$ac_var
12229 case $ac_val in #(
12230 *${as_nl}*)
12231 case $ac_var in #(
12232 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12233$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12234 esac
12235 case $ac_var in #(
12236 _ | IFS | as_nl) ;; #(
12237 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12238 *) { eval $ac_var=; unset $ac_var;} ;;
12239 esac ;;
12240 esac
12241 done
12242
12243 (set) 2>&1 |
12244 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12245 *${as_nl}ac_space=\ *)
12246 # `set' does not quote correctly, so add quotes: double-quote
12247 # substitution turns \\\\ into \\, and sed turns \\ into \.
12248 sed -n \
12249 "s/'/'\\\\''/g;
12250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12251 ;; #(
12252 *)
12253 # `set' quotes correctly as required by POSIX, so do not add quotes.
12254 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12255 ;;
12256 esac |
12257 sort
12258) |
12259 sed '
12260 /^ac_cv_env_/b end
12261 t clear
12262 :clear
12263 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12264 t end
12265 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12266 :end' >>confcache
12267if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12268 if test -w "$cache_file"; then
22e05272 12269 if test "x$cache_file" != "x/dev/null"; then
d7f09764
DN
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12271$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
12272 if test ! -f "$cache_file" || test -h "$cache_file"; then
12273 cat confcache >"$cache_file"
12274 else
12275 case $cache_file in #(
12276 */* | ?:*)
12277 mv -f confcache "$cache_file"$$ &&
12278 mv -f "$cache_file"$$ "$cache_file" ;; #(
12279 *)
12280 mv -f confcache "$cache_file" ;;
12281 esac
12282 fi
12283 fi
d7f09764
DN
12284 else
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12286$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12287 fi
12288fi
12289rm -f confcache
12290
12291test "x$prefix" = xNONE && prefix=$ac_default_prefix
12292# Let make expand exec_prefix.
12293test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12294
48215350 12295DEFS=-DHAVE_CONFIG_H
d7f09764
DN
12296
12297ac_libobjs=
12298ac_ltlibobjs=
22e05272 12299U=
d7f09764
DN
12300for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12301 # 1. Remove the extension, and $U if already installed.
12302 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12303 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12304 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12305 # will be set to the directory where LIBOBJS objects are built.
12306 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12307 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12308done
12309LIBOBJS=$ac_libobjs
12310
12311LTLIBOBJS=$ac_ltlibobjs
12312
12313
22e05272
JM
12314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12315$as_echo_n "checking that generated files are newer than configure... " >&6; }
12316 if test -n "$am_sleep_pid"; then
12317 # Hide warnings about reused PIDs.
12318 wait $am_sleep_pid 2>/dev/null
12319 fi
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12321$as_echo "done" >&6; }
d7f09764
DN
12322 if test -n "$EXEEXT"; then
12323 am__EXEEXT_TRUE=
12324 am__EXEEXT_FALSE='#'
12325else
12326 am__EXEEXT_TRUE='#'
12327 am__EXEEXT_FALSE=
12328fi
12329
03428d41 12330if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 12331 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
03428d41
RG
12332Usually this means the macro was only invoked conditionally." "$LINENO" 5
12333fi
d7f09764 12334if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22e05272 12335 as_fn_error $? "conditional \"AMDEP\" was never defined.
d7f09764
DN
12336Usually this means the macro was only invoked conditionally." "$LINENO" 5
12337fi
12338if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 12339 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
d7f09764
DN
12340Usually this means the macro was only invoked conditionally." "$LINENO" 5
12341fi
dcbc9df9 12342if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 12343 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
dcbc9df9
UB
12344Usually this means the macro was only invoked conditionally." "$LINENO" 5
12345fi
d7f09764 12346
22e05272 12347: "${CONFIG_STATUS=./config.status}"
d7f09764
DN
12348ac_write_fail=0
12349ac_clean_files_save=$ac_clean_files
12350ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12351{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12352$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12353as_write_fail=0
12354cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12355#! $SHELL
12356# Generated by $as_me.
12357# Run this file to recreate the current configuration.
12358# Compiler output produced by configure, useful for debugging
12359# configure, is in config.log if it exists.
12360
12361debug=false
12362ac_cs_recheck=false
12363ac_cs_silent=false
12364
12365SHELL=\${CONFIG_SHELL-$SHELL}
12366export SHELL
12367_ASEOF
12368cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12369## -------------------- ##
12370## M4sh Initialization. ##
12371## -------------------- ##
12372
12373# Be more Bourne compatible
12374DUALCASE=1; export DUALCASE # for MKS sh
12375if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12376 emulate sh
12377 NULLCMD=:
12378 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12379 # is contrary to our usage. Disable this feature.
12380 alias -g '${1+"$@"}'='"$@"'
12381 setopt NO_GLOB_SUBST
12382else
12383 case `(set -o) 2>/dev/null` in #(
12384 *posix*) :
12385 set -o posix ;; #(
12386 *) :
12387 ;;
12388esac
12389fi
12390
12391
12392as_nl='
12393'
12394export as_nl
12395# Printing a long string crashes Solaris 7 /usr/bin/printf.
12396as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12397as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12398as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12399# Prefer a ksh shell builtin over an external printf program on Solaris,
12400# but without wasting forks for bash or zsh.
12401if test -z "$BASH_VERSION$ZSH_VERSION" \
12402 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12403 as_echo='print -r --'
12404 as_echo_n='print -rn --'
12405elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12406 as_echo='printf %s\n'
12407 as_echo_n='printf %s'
12408else
12409 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12410 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12411 as_echo_n='/usr/ucb/echo -n'
12412 else
12413 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12414 as_echo_n_body='eval
12415 arg=$1;
12416 case $arg in #(
12417 *"$as_nl"*)
12418 expr "X$arg" : "X\\(.*\\)$as_nl";
12419 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12420 esac;
12421 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12422 '
12423 export as_echo_n_body
12424 as_echo_n='sh -c $as_echo_n_body as_echo'
12425 fi
12426 export as_echo_body
12427 as_echo='sh -c $as_echo_body as_echo'
12428fi
12429
12430# The user is always right.
12431if test "${PATH_SEPARATOR+set}" != set; then
12432 PATH_SEPARATOR=:
12433 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12434 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12435 PATH_SEPARATOR=';'
12436 }
12437fi
12438
12439
12440# IFS
12441# We need space, tab and new line, in precisely that order. Quoting is
12442# there to prevent editors from complaining about space-tab.
12443# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12444# splitting by setting IFS to empty value.)
12445IFS=" "" $as_nl"
12446
12447# Find who we are. Look in the path if we contain no directory separator.
22e05272 12448as_myself=
d7f09764
DN
12449case $0 in #((
12450 *[\\/]* ) as_myself=$0 ;;
12451 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12452for as_dir in $PATH
12453do
12454 IFS=$as_save_IFS
12455 test -z "$as_dir" && as_dir=.
12456 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12457 done
12458IFS=$as_save_IFS
12459
12460 ;;
12461esac
12462# We did not find ourselves, most probably we were run as `sh COMMAND'
12463# in which case we are not to be found in the path.
12464if test "x$as_myself" = x; then
12465 as_myself=$0
12466fi
12467if test ! -f "$as_myself"; then
12468 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12469 exit 1
12470fi
12471
12472# Unset variables that we do not need and which cause bugs (e.g. in
12473# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12474# suppresses any "Segmentation fault" message there. '((' could
12475# trigger a bug in pdksh 5.2.14.
12476for as_var in BASH_ENV ENV MAIL MAILPATH
12477do eval test x\${$as_var+set} = xset \
12478 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12479done
12480PS1='$ '
12481PS2='> '
12482PS4='+ '
12483
12484# NLS nuisances.
12485LC_ALL=C
12486export LC_ALL
12487LANGUAGE=C
12488export LANGUAGE
12489
12490# CDPATH.
12491(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12492
12493
22e05272
JM
12494# as_fn_error STATUS ERROR [LINENO LOG_FD]
12495# ----------------------------------------
d7f09764
DN
12496# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12497# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 12498# script with STATUS, using 1 if that was 0.
d7f09764
DN
12499as_fn_error ()
12500{
22e05272
JM
12501 as_status=$1; test $as_status -eq 0 && as_status=1
12502 if test "$4"; then
12503 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12504 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
d7f09764 12505 fi
22e05272 12506 $as_echo "$as_me: error: $2" >&2
d7f09764
DN
12507 as_fn_exit $as_status
12508} # as_fn_error
12509
12510
12511# as_fn_set_status STATUS
12512# -----------------------
12513# Set $? to STATUS, without forking.
12514as_fn_set_status ()
12515{
12516 return $1
12517} # as_fn_set_status
12518
12519# as_fn_exit STATUS
12520# -----------------
12521# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12522as_fn_exit ()
12523{
12524 set +e
12525 as_fn_set_status $1
12526 exit $1
12527} # as_fn_exit
12528
12529# as_fn_unset VAR
12530# ---------------
12531# Portably unset VAR.
12532as_fn_unset ()
12533{
12534 { eval $1=; unset $1;}
12535}
12536as_unset=as_fn_unset
12537# as_fn_append VAR VALUE
12538# ----------------------
12539# Append the text in VALUE to the end of the definition contained in VAR. Take
12540# advantage of any shell optimizations that allow amortized linear growth over
12541# repeated appends, instead of the typical quadratic growth present in naive
12542# implementations.
12543if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12544 eval 'as_fn_append ()
12545 {
12546 eval $1+=\$2
12547 }'
12548else
12549 as_fn_append ()
12550 {
12551 eval $1=\$$1\$2
12552 }
12553fi # as_fn_append
12554
12555# as_fn_arith ARG...
12556# ------------------
12557# Perform arithmetic evaluation on the ARGs, and store the result in the
12558# global $as_val. Take advantage of shells that can avoid forks. The arguments
12559# must be portable across $(()) and expr.
12560if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12561 eval 'as_fn_arith ()
12562 {
12563 as_val=$(( $* ))
12564 }'
12565else
12566 as_fn_arith ()
12567 {
12568 as_val=`expr "$@" || test $? -eq 1`
12569 }
12570fi # as_fn_arith
12571
12572
12573if expr a : '\(a\)' >/dev/null 2>&1 &&
12574 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12575 as_expr=expr
12576else
12577 as_expr=false
12578fi
12579
12580if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12581 as_basename=basename
12582else
12583 as_basename=false
12584fi
12585
12586if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12587 as_dirname=dirname
12588else
12589 as_dirname=false
12590fi
12591
12592as_me=`$as_basename -- "$0" ||
12593$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12594 X"$0" : 'X\(//\)$' \| \
12595 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12596$as_echo X/"$0" |
12597 sed '/^.*\/\([^/][^/]*\)\/*$/{
12598 s//\1/
12599 q
12600 }
12601 /^X\/\(\/\/\)$/{
12602 s//\1/
12603 q
12604 }
12605 /^X\/\(\/\).*/{
12606 s//\1/
12607 q
12608 }
12609 s/.*/./; q'`
12610
12611# Avoid depending upon Character Ranges.
12612as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12613as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12614as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12615as_cr_digits='0123456789'
12616as_cr_alnum=$as_cr_Letters$as_cr_digits
12617
12618ECHO_C= ECHO_N= ECHO_T=
12619case `echo -n x` in #(((((
12620-n*)
12621 case `echo 'xy\c'` in
12622 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12623 xy) ECHO_C='\c';;
12624 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12625 ECHO_T=' ';;
12626 esac;;
12627*)
12628 ECHO_N='-n';;
12629esac
12630
12631rm -f conf$$ conf$$.exe conf$$.file
12632if test -d conf$$.dir; then
12633 rm -f conf$$.dir/conf$$.file
12634else
12635 rm -f conf$$.dir
12636 mkdir conf$$.dir 2>/dev/null
12637fi
12638if (echo >conf$$.file) 2>/dev/null; then
12639 if ln -s conf$$.file conf$$ 2>/dev/null; then
12640 as_ln_s='ln -s'
12641 # ... but there are two gotchas:
12642 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12643 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 12644 # In both cases, we have to default to `cp -pR'.
d7f09764 12645 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 12646 as_ln_s='cp -pR'
d7f09764
DN
12647 elif ln conf$$.file conf$$ 2>/dev/null; then
12648 as_ln_s=ln
12649 else
22e05272 12650 as_ln_s='cp -pR'
d7f09764
DN
12651 fi
12652else
22e05272 12653 as_ln_s='cp -pR'
d7f09764
DN
12654fi
12655rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12656rmdir conf$$.dir 2>/dev/null
12657
12658
12659# as_fn_mkdir_p
12660# -------------
12661# Create "$as_dir" as a directory, including parents if necessary.
12662as_fn_mkdir_p ()
12663{
12664
12665 case $as_dir in #(
12666 -*) as_dir=./$as_dir;;
12667 esac
12668 test -d "$as_dir" || eval $as_mkdir_p || {
12669 as_dirs=
12670 while :; do
12671 case $as_dir in #(
12672 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12673 *) as_qdir=$as_dir;;
12674 esac
12675 as_dirs="'$as_qdir' $as_dirs"
12676 as_dir=`$as_dirname -- "$as_dir" ||
12677$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12678 X"$as_dir" : 'X\(//\)[^/]' \| \
12679 X"$as_dir" : 'X\(//\)$' \| \
12680 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12681$as_echo X"$as_dir" |
12682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12683 s//\1/
12684 q
12685 }
12686 /^X\(\/\/\)[^/].*/{
12687 s//\1/
12688 q
12689 }
12690 /^X\(\/\/\)$/{
12691 s//\1/
12692 q
12693 }
12694 /^X\(\/\).*/{
12695 s//\1/
12696 q
12697 }
12698 s/.*/./; q'`
12699 test -d "$as_dir" && break
12700 done
12701 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 12702 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
d7f09764
DN
12703
12704
12705} # as_fn_mkdir_p
12706if mkdir -p . 2>/dev/null; then
12707 as_mkdir_p='mkdir -p "$as_dir"'
12708else
12709 test -d ./-p && rmdir ./-p
12710 as_mkdir_p=false
12711fi
12712
22e05272
JM
12713
12714# as_fn_executable_p FILE
12715# -----------------------
12716# Test if FILE is an executable regular file.
12717as_fn_executable_p ()
12718{
12719 test -f "$1" && test -x "$1"
12720} # as_fn_executable_p
12721as_test_x='test -x'
12722as_executable_p=as_fn_executable_p
d7f09764
DN
12723
12724# Sed expression to map a string onto a valid CPP name.
12725as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12726
12727# Sed expression to map a string onto a valid variable name.
12728as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12729
12730
12731exec 6>&1
12732## ----------------------------------- ##
12733## Main body of $CONFIG_STATUS script. ##
12734## ----------------------------------- ##
12735_ASEOF
12736test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12737
12738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12739# Save the log message, to keep $0 and so on meaningful, and to
12740# report actual input values of CONFIG_FILES etc. instead of their
12741# values after options handling.
12742ac_log="
12743This file was extended by LTO plugin for ld $as_me 0.1, which was
22e05272 12744generated by GNU Autoconf 2.69. Invocation command line was
d7f09764
DN
12745
12746 CONFIG_FILES = $CONFIG_FILES
12747 CONFIG_HEADERS = $CONFIG_HEADERS
12748 CONFIG_LINKS = $CONFIG_LINKS
12749 CONFIG_COMMANDS = $CONFIG_COMMANDS
12750 $ $0 $@
12751
12752on `(hostname || uname -n) 2>/dev/null | sed 1q`
12753"
12754
12755_ACEOF
12756
12757case $ac_config_files in *"
12758"*) set x $ac_config_files; shift; ac_config_files=$*;;
12759esac
12760
48215350
DK
12761case $ac_config_headers in *"
12762"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12763esac
d7f09764
DN
12764
12765
12766cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12767# Files that config.status was made for.
12768config_files="$ac_config_files"
48215350 12769config_headers="$ac_config_headers"
d7f09764
DN
12770config_commands="$ac_config_commands"
12771
12772_ACEOF
12773
12774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12775ac_cs_usage="\
12776\`$as_me' instantiates files and other configuration actions
12777from templates according to the current configuration. Unless the files
12778and actions are specified as TAGs, all are instantiated by default.
12779
12780Usage: $0 [OPTION]... [TAG]...
12781
12782 -h, --help print this help, then exit
12783 -V, --version print version number and configuration settings, then exit
22e05272 12784 --config print configuration, then exit
d7f09764
DN
12785 -q, --quiet, --silent
12786 do not print progress messages
12787 -d, --debug don't remove temporary files
12788 --recheck update $as_me by reconfiguring in the same conditions
12789 --file=FILE[:TEMPLATE]
12790 instantiate the configuration file FILE
48215350
DK
12791 --header=FILE[:TEMPLATE]
12792 instantiate the configuration header FILE
d7f09764
DN
12793
12794Configuration files:
12795$config_files
12796
48215350
DK
12797Configuration headers:
12798$config_headers
12799
d7f09764
DN
12800Configuration commands:
12801$config_commands
12802
12803Report bugs to the package provider."
12804
12805_ACEOF
12806cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 12807ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
d7f09764
DN
12808ac_cs_version="\\
12809LTO plugin for ld config.status 0.1
22e05272
JM
12810configured by $0, generated by GNU Autoconf 2.69,
12811 with options \\"\$ac_cs_config\\"
d7f09764 12812
22e05272 12813Copyright (C) 2012 Free Software Foundation, Inc.
d7f09764
DN
12814This config.status script is free software; the Free Software Foundation
12815gives unlimited permission to copy, distribute and modify it."
12816
12817ac_pwd='$ac_pwd'
12818srcdir='$srcdir'
12819INSTALL='$INSTALL'
12820MKDIR_P='$MKDIR_P'
12821AWK='$AWK'
12822test -n "\$AWK" || AWK=awk
12823_ACEOF
12824
12825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12826# The default lists apply if the user does not specify any file.
12827ac_need_defaults=:
12828while test $# != 0
12829do
12830 case $1 in
22e05272 12831 --*=?*)
d7f09764
DN
12832 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12833 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12834 ac_shift=:
12835 ;;
22e05272
JM
12836 --*=)
12837 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12838 ac_optarg=
12839 ac_shift=:
12840 ;;
d7f09764
DN
12841 *)
12842 ac_option=$1
12843 ac_optarg=$2
12844 ac_shift=shift
12845 ;;
12846 esac
12847
12848 case $ac_option in
12849 # Handling of the options.
12850 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12851 ac_cs_recheck=: ;;
12852 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12853 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
12854 --config | --confi | --conf | --con | --co | --c )
12855 $as_echo "$ac_cs_config"; exit ;;
d7f09764
DN
12856 --debug | --debu | --deb | --de | --d | -d )
12857 debug=: ;;
12858 --file | --fil | --fi | --f )
12859 $ac_shift
12860 case $ac_optarg in
12861 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 12862 '') as_fn_error $? "missing file argument" ;;
d7f09764
DN
12863 esac
12864 as_fn_append CONFIG_FILES " '$ac_optarg'"
12865 ac_need_defaults=false;;
48215350
DK
12866 --header | --heade | --head | --hea )
12867 $ac_shift
12868 case $ac_optarg in
12869 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12870 esac
12871 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12872 ac_need_defaults=false;;
12873 --he | --h)
12874 # Conflict between --help and --header
22e05272 12875 as_fn_error $? "ambiguous option: \`$1'
48215350
DK
12876Try \`$0 --help' for more information.";;
12877 --help | --hel | -h )
d7f09764
DN
12878 $as_echo "$ac_cs_usage"; exit ;;
12879 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12880 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12881 ac_cs_silent=: ;;
12882
12883 # This is an error.
22e05272 12884 -*) as_fn_error $? "unrecognized option: \`$1'
d7f09764
DN
12885Try \`$0 --help' for more information." ;;
12886
12887 *) as_fn_append ac_config_targets " $1"
12888 ac_need_defaults=false ;;
12889
12890 esac
12891 shift
12892done
12893
12894ac_configure_extra_args=
12895
12896if $ac_cs_silent; then
12897 exec 6>/dev/null
12898 ac_configure_extra_args="$ac_configure_extra_args --silent"
12899fi
12900
12901_ACEOF
12902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12903if \$ac_cs_recheck; then
22e05272 12904 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d7f09764
DN
12905 shift
12906 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12907 CONFIG_SHELL='$SHELL'
12908 export CONFIG_SHELL
12909 exec "\$@"
12910fi
12911
12912_ACEOF
12913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12914exec 5>>config.log
12915{
12916 echo
12917 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12918## Running $as_me. ##
12919_ASBOX
12920 $as_echo "$ac_log"
12921} >&5
12922
12923_ACEOF
12924cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12925#
12926# INIT-COMMANDS
12927#
12928AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12929
12930
12931# The HP-UX ksh and POSIX shell print the target directory to stdout
12932# if CDPATH is set.
12933(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12934
12935sed_quote_subst='$sed_quote_subst'
12936double_quote_subst='$double_quote_subst'
12937delay_variable_subst='$delay_variable_subst'
52327858
L
12938macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12939macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12940enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12941enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12942pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12943enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12944SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12945ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12946host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12947host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12948host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12949build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12950build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12951build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12952SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12953Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12954GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12955EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12956FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12957LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12958NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12959LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12960max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12961ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12962exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12963lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12964lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12965lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12966reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12967reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12968OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12969deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12970file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12971AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12972AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12973STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12974RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12975old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12976old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12977old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12978lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12979CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12980CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12981compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12982GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12983lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12984lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12985lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12986lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
12987objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12988MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12989lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12990lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12991lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12992lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12993lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12994need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12995DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12996NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12997LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12998OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12999OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13000libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13001shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13002extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13003archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13004enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13005export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13006whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13007compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13008old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13009old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13010archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13011archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13012module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13013module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13014with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13015allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13016no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13017hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13018hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13019hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13020hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13021hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13022hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13023hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13024hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13025inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13026link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13027fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13028always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13029export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13030exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13031include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13032prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13033file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13034variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13035need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13036need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13037version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13038runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13039shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13040shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13041libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13042library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13043soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13044install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13045postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13046postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13047finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13048finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13049hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13050sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13051sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13052hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13053enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13054enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13055enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13056old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13057striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7f09764
DN
13058
13059LTCC='$LTCC'
13060LTCFLAGS='$LTCFLAGS'
13061compiler='$compiler_DEFAULT'
13062
52327858
L
13063# A function that is used when there is no print builtin or printf.
13064func_fallback_echo ()
13065{
13066 eval 'cat <<_LTECHO_EOF
13067\$1
13068_LTECHO_EOF'
13069}
13070
d7f09764 13071# Quote evaled strings.
52327858
L
13072for var in SHELL \
13073ECHO \
13074SED \
d7f09764
DN
13075GREP \
13076EGREP \
13077FGREP \
13078LD \
13079NM \
13080LN_S \
13081lt_SP2NL \
13082lt_NL2SP \
13083reload_flag \
13084OBJDUMP \
13085deplibs_check_method \
13086file_magic_cmd \
13087AR \
13088AR_FLAGS \
13089STRIP \
13090RANLIB \
13091CC \
13092CFLAGS \
13093compiler \
13094lt_cv_sys_global_symbol_pipe \
13095lt_cv_sys_global_symbol_to_cdecl \
13096lt_cv_sys_global_symbol_to_c_name_address \
13097lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7f09764
DN
13098lt_prog_compiler_no_builtin_flag \
13099lt_prog_compiler_wl \
13100lt_prog_compiler_pic \
13101lt_prog_compiler_static \
13102lt_cv_prog_compiler_c_o \
13103need_locks \
13104DSYMUTIL \
13105NMEDIT \
13106LIPO \
13107OTOOL \
13108OTOOL64 \
13109shrext_cmds \
13110export_dynamic_flag_spec \
13111whole_archive_flag_spec \
13112compiler_needs_object \
13113with_gnu_ld \
13114allow_undefined_flag \
13115no_undefined_flag \
13116hardcode_libdir_flag_spec \
13117hardcode_libdir_flag_spec_ld \
13118hardcode_libdir_separator \
13119fix_srcfile_path \
13120exclude_expsyms \
13121include_expsyms \
13122file_list_spec \
13123variables_saved_for_relink \
13124libname_spec \
13125library_names_spec \
13126soname_spec \
52327858 13127install_override_mode \
d7f09764
DN
13128finish_eval \
13129old_striplib \
13130striplib; do
52327858 13131 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7f09764 13132 *[\\\\\\\`\\"\\\$]*)
52327858 13133 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7f09764
DN
13134 ;;
13135 *)
13136 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13137 ;;
13138 esac
13139done
13140
13141# Double-quote double-evaled strings.
13142for var in reload_cmds \
13143old_postinstall_cmds \
13144old_postuninstall_cmds \
13145old_archive_cmds \
13146extract_expsyms_cmds \
13147old_archive_from_new_cmds \
13148old_archive_from_expsyms_cmds \
13149archive_cmds \
13150archive_expsym_cmds \
13151module_cmds \
13152module_expsym_cmds \
13153export_symbols_cmds \
13154prelink_cmds \
13155postinstall_cmds \
13156postuninstall_cmds \
13157finish_cmds \
13158sys_lib_search_path_spec \
13159sys_lib_dlsearch_path_spec; do
52327858 13160 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7f09764 13161 *[\\\\\\\`\\"\\\$]*)
52327858 13162 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7f09764
DN
13163 ;;
13164 *)
13165 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13166 ;;
13167 esac
13168done
13169
d7f09764
DN
13170ac_aux_dir='$ac_aux_dir'
13171xsi_shell='$xsi_shell'
13172lt_shell_append='$lt_shell_append'
13173
13174# See if we are running on zsh, and set the options which allow our
13175# commands through without removal of \ escapes INIT.
13176if test -n "\${ZSH_VERSION+set}" ; then
13177 setopt NO_GLOB_SUBST
13178fi
13179
13180
13181 PACKAGE='$PACKAGE'
13182 VERSION='$VERSION'
13183 TIMESTAMP='$TIMESTAMP'
13184 RM='$RM'
13185 ofile='$ofile'
13186
13187
13188
13189
13190_ACEOF
13191
13192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13193
13194# Handling of arguments.
13195for ac_config_target in $ac_config_targets
13196do
13197 case $ac_config_target in
13198 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13199 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13200 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
48215350 13201 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
d7f09764 13202
22e05272 13203 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
d7f09764
DN
13204 esac
13205done
13206
13207
13208# If the user did not use the arguments to specify the items to instantiate,
13209# then the envvar interface is used. Set only those that are not.
13210# We use the long form for the default assignment because of an extremely
13211# bizarre bug on SunOS 4.1.3.
13212if $ac_need_defaults; then
13213 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
48215350 13214 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
d7f09764
DN
13215 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13216fi
13217
13218# Have a temporary directory for convenience. Make it in the build tree
13219# simply because there is no reason against having it here, and in addition,
13220# creating and moving files from /tmp can sometimes cause problems.
13221# Hook for its removal unless debugging.
13222# Note that there is a small window in which the directory will not be cleaned:
13223# after its creation but before its name has been assigned to `$tmp'.
13224$debug ||
13225{
22e05272 13226 tmp= ac_tmp=
d7f09764 13227 trap 'exit_status=$?
22e05272
JM
13228 : "${ac_tmp:=$tmp}"
13229 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
d7f09764
DN
13230' 0
13231 trap 'as_fn_exit 1' 1 2 13 15
13232}
13233# Create a (secure) tmp directory for tmp files.
13234
13235{
13236 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 13237 test -d "$tmp"
d7f09764
DN
13238} ||
13239{
13240 tmp=./conf$$-$RANDOM
13241 (umask 077 && mkdir "$tmp")
22e05272
JM
13242} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13243ac_tmp=$tmp
d7f09764
DN
13244
13245# Set up the scripts for CONFIG_FILES section.
13246# No need to generate them if there are no CONFIG_FILES.
13247# This happens for instance with `./config.status config.h'.
13248if test -n "$CONFIG_FILES"; then
13249
13250
13251ac_cr=`echo X | tr X '\015'`
13252# On cygwin, bash can eat \r inside `` if the user requested igncr.
13253# But we know of no other shell where ac_cr would be empty at this
13254# point, so we can use a bashism as a fallback.
13255if test "x$ac_cr" = x; then
13256 eval ac_cr=\$\'\\r\'
13257fi
13258ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13259if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 13260 ac_cs_awk_cr='\\r'
d7f09764
DN
13261else
13262 ac_cs_awk_cr=$ac_cr
13263fi
13264
22e05272 13265echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
d7f09764
DN
13266_ACEOF
13267
13268
13269{
13270 echo "cat >conf$$subs.awk <<_ACEOF" &&
13271 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13272 echo "_ACEOF"
13273} >conf$$subs.sh ||
22e05272
JM
13274 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13275ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
d7f09764
DN
13276ac_delim='%!_!# '
13277for ac_last_try in false false false false false :; do
13278 . ./conf$$subs.sh ||
22e05272 13279 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
d7f09764
DN
13280
13281 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13282 if test $ac_delim_n = $ac_delim_num; then
13283 break
13284 elif $ac_last_try; then
22e05272 13285 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
d7f09764
DN
13286 else
13287 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13288 fi
13289done
13290rm -f conf$$subs.sh
13291
13292cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 13293cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
d7f09764
DN
13294_ACEOF
13295sed -n '
13296h
13297s/^/S["/; s/!.*/"]=/
13298p
13299g
13300s/^[^!]*!//
13301:repl
13302t repl
13303s/'"$ac_delim"'$//
13304t delim
13305:nl
13306h
22e05272 13307s/\(.\{148\}\)..*/\1/
d7f09764
DN
13308t more1
13309s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13310p
13311n
13312b repl
13313:more1
13314s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13315p
13316g
13317s/.\{148\}//
13318t nl
13319:delim
13320h
22e05272 13321s/\(.\{148\}\)..*/\1/
d7f09764
DN
13322t more2
13323s/["\\]/\\&/g; s/^/"/; s/$/"/
13324p
13325b
13326:more2
13327s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13328p
13329g
13330s/.\{148\}//
13331t delim
13332' <conf$$subs.awk | sed '
13333/^[^""]/{
13334 N
13335 s/\n//
13336}
13337' >>$CONFIG_STATUS || ac_write_fail=1
13338rm -f conf$$subs.awk
13339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13340_ACAWK
22e05272 13341cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
d7f09764
DN
13342 for (key in S) S_is_set[key] = 1
13343 FS = "\a"
13344
13345}
13346{
13347 line = $ 0
13348 nfields = split(line, field, "@")
13349 substed = 0
13350 len = length(field[1])
13351 for (i = 2; i < nfields; i++) {
13352 key = field[i]
13353 keylen = length(key)
13354 if (S_is_set[key]) {
13355 value = S[key]
13356 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13357 len += length(value) + length(field[++i])
13358 substed = 1
13359 } else
13360 len += 1 + keylen
13361 }
13362
13363 print line
13364}
13365
13366_ACAWK
13367_ACEOF
13368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13369if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13370 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13371else
13372 cat
22e05272
JM
13373fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13374 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
d7f09764
DN
13375_ACEOF
13376
22e05272
JM
13377# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13378# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
d7f09764
DN
13379# trailing colons and then remove the whole line if VPATH becomes empty
13380# (actually we leave an empty line to preserve line numbers).
13381if test "x$srcdir" = x.; then
22e05272
JM
13382 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13383h
13384s///
13385s/^/:/
13386s/[ ]*$/:/
13387s/:\$(srcdir):/:/g
13388s/:\${srcdir}:/:/g
13389s/:@srcdir@:/:/g
13390s/^:*//
d7f09764 13391s/:*$//
22e05272
JM
13392x
13393s/\(=[ ]*\).*/\1/
13394G
13395s/\n//
d7f09764
DN
13396s/^[^=]*=[ ]*$//
13397}'
13398fi
13399
13400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13401fi # test -n "$CONFIG_FILES"
13402
48215350
DK
13403# Set up the scripts for CONFIG_HEADERS section.
13404# No need to generate them if there are no CONFIG_HEADERS.
13405# This happens for instance with `./config.status Makefile'.
13406if test -n "$CONFIG_HEADERS"; then
22e05272 13407cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
48215350
DK
13408BEGIN {
13409_ACEOF
13410
13411# Transform confdefs.h into an awk script `defines.awk', embedded as
13412# here-document in config.status, that substitutes the proper values into
13413# config.h.in to produce config.h.
d7f09764 13414
48215350
DK
13415# Create a delimiter string that does not exist in confdefs.h, to ease
13416# handling of long lines.
13417ac_delim='%!_!# '
13418for ac_last_try in false false :; do
22e05272
JM
13419 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13420 if test -z "$ac_tt"; then
48215350
DK
13421 break
13422 elif $ac_last_try; then
22e05272 13423 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
48215350
DK
13424 else
13425 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13426 fi
13427done
13428
13429# For the awk script, D is an array of macro values keyed by name,
13430# likewise P contains macro parameters if any. Preserve backslash
13431# newline sequences.
13432
13433ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13434sed -n '
13435s/.\{148\}/&'"$ac_delim"'/g
13436t rset
13437:rset
13438s/^[ ]*#[ ]*define[ ][ ]*/ /
13439t def
13440d
13441:def
13442s/\\$//
13443t bsnl
13444s/["\\]/\\&/g
13445s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13446D["\1"]=" \3"/p
13447s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13448d
13449:bsnl
13450s/["\\]/\\&/g
13451s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13452D["\1"]=" \3\\\\\\n"\\/p
13453t cont
13454s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13455t cont
13456d
13457:cont
13458n
13459s/.\{148\}/&'"$ac_delim"'/g
13460t clear
13461:clear
13462s/\\$//
13463t bsnlc
13464s/["\\]/\\&/g; s/^/"/; s/$/"/p
13465d
13466:bsnlc
13467s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13468b cont
13469' <confdefs.h | sed '
13470s/'"$ac_delim"'/"\\\
13471"/g' >>$CONFIG_STATUS || ac_write_fail=1
13472
13473cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13474 for (key in D) D_is_set[key] = 1
13475 FS = "\a"
13476}
13477/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13478 line = \$ 0
13479 split(line, arg, " ")
13480 if (arg[1] == "#") {
13481 defundef = arg[2]
13482 mac1 = arg[3]
13483 } else {
13484 defundef = substr(arg[1], 2)
13485 mac1 = arg[2]
13486 }
13487 split(mac1, mac2, "(") #)
13488 macro = mac2[1]
13489 prefix = substr(line, 1, index(line, defundef) - 1)
13490 if (D_is_set[macro]) {
13491 # Preserve the white space surrounding the "#".
13492 print prefix "define", macro P[macro] D[macro]
13493 next
13494 } else {
13495 # Replace #undef with comments. This is necessary, for example,
13496 # in the case of _POSIX_SOURCE, which is predefined and required
13497 # on some systems where configure will not decide to define it.
13498 if (defundef == "undef") {
13499 print "/*", prefix defundef, macro, "*/"
13500 next
13501 }
13502 }
13503}
13504{ print }
13505_ACAWK
13506_ACEOF
13507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 13508 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
48215350
DK
13509fi # test -n "$CONFIG_HEADERS"
13510
13511
13512eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
d7f09764
DN
13513shift
13514for ac_tag
13515do
13516 case $ac_tag in
13517 :[FHLC]) ac_mode=$ac_tag; continue;;
13518 esac
13519 case $ac_mode$ac_tag in
13520 :[FHL]*:*);;
22e05272 13521 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
d7f09764
DN
13522 :[FH]-) ac_tag=-:-;;
13523 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13524 esac
13525 ac_save_IFS=$IFS
13526 IFS=:
13527 set x $ac_tag
13528 IFS=$ac_save_IFS
13529 shift
13530 ac_file=$1
13531 shift
13532
13533 case $ac_mode in
13534 :L) ac_source=$1;;
13535 :[FH])
13536 ac_file_inputs=
13537 for ac_f
13538 do
13539 case $ac_f in
22e05272 13540 -) ac_f="$ac_tmp/stdin";;
d7f09764
DN
13541 *) # Look for the file first in the build tree, then in the source tree
13542 # (if the path is not absolute). The absolute path cannot be DOS-style,
13543 # because $ac_f cannot contain `:'.
13544 test -f "$ac_f" ||
13545 case $ac_f in
13546 [\\/$]*) false;;
13547 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13548 esac ||
22e05272 13549 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
d7f09764
DN
13550 esac
13551 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13552 as_fn_append ac_file_inputs " '$ac_f'"
13553 done
13554
13555 # Let's still pretend it is `configure' which instantiates (i.e., don't
13556 # use $as_me), people would be surprised to read:
13557 # /* config.h. Generated by config.status. */
13558 configure_input='Generated from '`
13559 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13560 `' by configure.'
13561 if test x"$ac_file" != x-; then
13562 configure_input="$ac_file. $configure_input"
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13564$as_echo "$as_me: creating $ac_file" >&6;}
13565 fi
13566 # Neutralize special characters interpreted by sed in replacement strings.
13567 case $configure_input in #(
13568 *\&* | *\|* | *\\* )
13569 ac_sed_conf_input=`$as_echo "$configure_input" |
13570 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13571 *) ac_sed_conf_input=$configure_input;;
13572 esac
13573
13574 case $ac_tag in
22e05272
JM
13575 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13576 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
d7f09764
DN
13577 esac
13578 ;;
13579 esac
13580
13581 ac_dir=`$as_dirname -- "$ac_file" ||
13582$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13583 X"$ac_file" : 'X\(//\)[^/]' \| \
13584 X"$ac_file" : 'X\(//\)$' \| \
13585 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13586$as_echo X"$ac_file" |
13587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13588 s//\1/
13589 q
13590 }
13591 /^X\(\/\/\)[^/].*/{
13592 s//\1/
13593 q
13594 }
13595 /^X\(\/\/\)$/{
13596 s//\1/
13597 q
13598 }
13599 /^X\(\/\).*/{
13600 s//\1/
13601 q
13602 }
13603 s/.*/./; q'`
13604 as_dir="$ac_dir"; as_fn_mkdir_p
13605 ac_builddir=.
13606
13607case "$ac_dir" in
13608.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13609*)
13610 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13611 # A ".." for each directory in $ac_dir_suffix.
13612 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13613 case $ac_top_builddir_sub in
13614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13616 esac ;;
13617esac
13618ac_abs_top_builddir=$ac_pwd
13619ac_abs_builddir=$ac_pwd$ac_dir_suffix
13620# for backward compatibility:
13621ac_top_builddir=$ac_top_build_prefix
13622
13623case $srcdir in
13624 .) # We are building in place.
13625 ac_srcdir=.
13626 ac_top_srcdir=$ac_top_builddir_sub
13627 ac_abs_top_srcdir=$ac_pwd ;;
13628 [\\/]* | ?:[\\/]* ) # Absolute name.
13629 ac_srcdir=$srcdir$ac_dir_suffix;
13630 ac_top_srcdir=$srcdir
13631 ac_abs_top_srcdir=$srcdir ;;
13632 *) # Relative name.
13633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13634 ac_top_srcdir=$ac_top_build_prefix$srcdir
13635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13636esac
13637ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13638
13639
13640 case $ac_mode in
13641 :F)
13642 #
13643 # CONFIG_FILE
13644 #
13645
13646 case $INSTALL in
13647 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13648 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13649 esac
13650 ac_MKDIR_P=$MKDIR_P
13651 case $MKDIR_P in
13652 [\\/$]* | ?:[\\/]* ) ;;
13653 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13654 esac
13655_ACEOF
13656
13657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13658# If the template does not know about datarootdir, expand it.
13659# FIXME: This hack should be removed a few years after 2.60.
13660ac_datarootdir_hack=; ac_datarootdir_seen=
13661ac_sed_dataroot='
13662/datarootdir/ {
13663 p
13664 q
13665}
13666/@datadir@/p
13667/@docdir@/p
13668/@infodir@/p
13669/@localedir@/p
13670/@mandir@/p'
13671case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13672*datarootdir*) ac_datarootdir_seen=yes;;
13673*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13675$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13676_ACEOF
13677cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13678 ac_datarootdir_hack='
13679 s&@datadir@&$datadir&g
13680 s&@docdir@&$docdir&g
13681 s&@infodir@&$infodir&g
13682 s&@localedir@&$localedir&g
13683 s&@mandir@&$mandir&g
13684 s&\\\${datarootdir}&$datarootdir&g' ;;
13685esac
13686_ACEOF
13687
13688# Neutralize VPATH when `$srcdir' = `.'.
13689# Shell code in configure.ac might set extrasub.
13690# FIXME: do we really want to maintain this feature?
13691cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13692ac_sed_extra="$ac_vpsub
13693$extrasub
13694_ACEOF
13695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13696:t
13697/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13698s|@configure_input@|$ac_sed_conf_input|;t t
13699s&@top_builddir@&$ac_top_builddir_sub&;t t
13700s&@top_build_prefix@&$ac_top_build_prefix&;t t
13701s&@srcdir@&$ac_srcdir&;t t
13702s&@abs_srcdir@&$ac_abs_srcdir&;t t
13703s&@top_srcdir@&$ac_top_srcdir&;t t
13704s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13705s&@builddir@&$ac_builddir&;t t
13706s&@abs_builddir@&$ac_abs_builddir&;t t
13707s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13708s&@INSTALL@&$ac_INSTALL&;t t
13709s&@MKDIR_P@&$ac_MKDIR_P&;t t
13710$ac_datarootdir_hack
13711"
22e05272
JM
13712eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13713 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d7f09764
DN
13714
13715test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
13716 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13717 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13718 "$ac_tmp/out"`; test -z "$ac_out"; } &&
d7f09764 13719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 13720which seems to be undefined. Please make sure it is defined" >&5
d7f09764 13721$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 13722which seems to be undefined. Please make sure it is defined" >&2;}
d7f09764 13723
22e05272 13724 rm -f "$ac_tmp/stdin"
d7f09764 13725 case $ac_file in
22e05272
JM
13726 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13727 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
d7f09764 13728 esac \
22e05272 13729 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d7f09764 13730 ;;
48215350
DK
13731 :H)
13732 #
13733 # CONFIG_HEADER
13734 #
13735 if test x"$ac_file" != x-; then
13736 {
13737 $as_echo "/* $configure_input */" \
22e05272
JM
13738 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13739 } >"$ac_tmp/config.h" \
13740 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13741 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
48215350
DK
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13743$as_echo "$as_me: $ac_file is unchanged" >&6;}
13744 else
13745 rm -f "$ac_file"
22e05272
JM
13746 mv "$ac_tmp/config.h" "$ac_file" \
13747 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48215350
DK
13748 fi
13749 else
13750 $as_echo "/* $configure_input */" \
22e05272
JM
13751 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13752 || as_fn_error $? "could not create -" "$LINENO" 5
48215350
DK
13753 fi
13754# Compute "$ac_file"'s index in $config_headers.
13755_am_arg="$ac_file"
13756_am_stamp_count=1
13757for _am_header in $config_headers :; do
13758 case $_am_header in
13759 $_am_arg | $_am_arg:* )
13760 break ;;
13761 * )
13762 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13763 esac
13764done
13765echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13766$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13767 X"$_am_arg" : 'X\(//\)[^/]' \| \
13768 X"$_am_arg" : 'X\(//\)$' \| \
13769 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13770$as_echo X"$_am_arg" |
13771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13772 s//\1/
13773 q
13774 }
13775 /^X\(\/\/\)[^/].*/{
13776 s//\1/
13777 q
13778 }
13779 /^X\(\/\/\)$/{
13780 s//\1/
13781 q
13782 }
13783 /^X\(\/\).*/{
13784 s//\1/
13785 q
13786 }
13787 s/.*/./; q'`/stamp-h$_am_stamp_count
13788 ;;
d7f09764
DN
13789
13790 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13791$as_echo "$as_me: executing $ac_file commands" >&6;}
13792 ;;
13793 esac
13794
13795
13796 case $ac_file$ac_mode in
13797 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22e05272 13798 # Older Autoconf quotes --file arguments for eval, but not when files
d7f09764
DN
13799 # are listed without --file. Let's play safe and only enable the eval
13800 # if we detect the quoting.
13801 case $CONFIG_FILES in
13802 *\'*) eval set x "$CONFIG_FILES" ;;
13803 *) set x $CONFIG_FILES ;;
13804 esac
13805 shift
13806 for mf
13807 do
13808 # Strip MF so we end up with the name of the file.
13809 mf=`echo "$mf" | sed -e 's/:.*$//'`
13810 # Check whether this is an Automake generated Makefile or not.
22e05272 13811 # We used to match only the files named 'Makefile.in', but
d7f09764
DN
13812 # some people rename them; so instead we look at the file content.
13813 # Grep'ing the first line is not enough: some people post-process
13814 # each Makefile.in and add a new line on top of each file to say so.
13815 # Grep'ing the whole file is not good either: AIX grep has a line
13816 # limit of 2048, but all sed's we know have understand at least 4000.
13817 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13818 dirpart=`$as_dirname -- "$mf" ||
13819$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13820 X"$mf" : 'X\(//\)[^/]' \| \
13821 X"$mf" : 'X\(//\)$' \| \
13822 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13823$as_echo X"$mf" |
13824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13825 s//\1/
13826 q
13827 }
13828 /^X\(\/\/\)[^/].*/{
13829 s//\1/
13830 q
13831 }
13832 /^X\(\/\/\)$/{
13833 s//\1/
13834 q
13835 }
13836 /^X\(\/\).*/{
13837 s//\1/
13838 q
13839 }
13840 s/.*/./; q'`
13841 else
13842 continue
13843 fi
13844 # Extract the definition of DEPDIR, am__include, and am__quote
22e05272 13845 # from the Makefile without running 'make'.
d7f09764
DN
13846 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13847 test -z "$DEPDIR" && continue
13848 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22e05272 13849 test -z "$am__include" && continue
d7f09764 13850 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
d7f09764
DN
13851 # Find all dependency output files, they are included files with
13852 # $(DEPDIR) in their names. We invoke sed twice because it is the
13853 # simplest approach to changing $(DEPDIR) to its actual value in the
13854 # expansion.
13855 for file in `sed -n "
13856 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22e05272 13857 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
d7f09764
DN
13858 # Make sure the directory exists.
13859 test -f "$dirpart/$file" && continue
13860 fdir=`$as_dirname -- "$file" ||
13861$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13862 X"$file" : 'X\(//\)[^/]' \| \
13863 X"$file" : 'X\(//\)$' \| \
13864 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13865$as_echo X"$file" |
13866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13867 s//\1/
13868 q
13869 }
13870 /^X\(\/\/\)[^/].*/{
13871 s//\1/
13872 q
13873 }
13874 /^X\(\/\/\)$/{
13875 s//\1/
13876 q
13877 }
13878 /^X\(\/\).*/{
13879 s//\1/
13880 q
13881 }
13882 s/.*/./; q'`
13883 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13884 # echo "creating $dirpart/$file"
13885 echo '# dummy' > "$dirpart/$file"
13886 done
13887 done
13888}
13889 ;;
13890 "libtool":C)
13891
13892 # See if we are running on zsh, and set the options which allow our
13893 # commands through without removal of \ escapes.
13894 if test -n "${ZSH_VERSION+set}" ; then
13895 setopt NO_GLOB_SUBST
13896 fi
13897
13898 cfgfile="${ofile}T"
13899 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13900 $RM "$cfgfile"
13901
13902 cat <<_LT_EOF >> "$cfgfile"
13903#! $SHELL
13904
13905# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13906# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13907# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13908# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13909#
13910# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
52327858 13911# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
d7f09764
DN
13912# Written by Gordon Matzigkeit, 1996
13913#
13914# This file is part of GNU Libtool.
13915#
13916# GNU Libtool is free software; you can redistribute it and/or
13917# modify it under the terms of the GNU General Public License as
13918# published by the Free Software Foundation; either version 2 of
13919# the License, or (at your option) any later version.
13920#
13921# As a special exception to the GNU General Public License,
13922# if you distribute this file as part of a program or library that
13923# is built using GNU Libtool, you may include this file under the
13924# same distribution terms that you use for the rest of that program.
13925#
13926# GNU Libtool is distributed in the hope that it will be useful,
13927# but WITHOUT ANY WARRANTY; without even the implied warranty of
13928# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13929# GNU General Public License for more details.
13930#
13931# You should have received a copy of the GNU General Public License
13932# along with GNU Libtool; see the file COPYING. If not, a copy
13933# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13934# obtained by writing to the Free Software Foundation, Inc.,
13935# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13936
13937
13938# The names of the tagged configurations supported by this script.
13939available_tags=""
13940
13941# ### BEGIN LIBTOOL CONFIG
13942
13943# Which release of libtool.m4 was used?
13944macro_version=$macro_version
13945macro_revision=$macro_revision
13946
13947# Whether or not to build shared libraries.
13948build_libtool_libs=$enable_shared
13949
13950# Whether or not to build static libraries.
13951build_old_libs=$enable_static
13952
13953# What type of objects to build.
13954pic_mode=$pic_mode
13955
13956# Whether or not to optimize for fast installation.
13957fast_install=$enable_fast_install
13958
52327858
L
13959# Shell to use when invoking shell scripts.
13960SHELL=$lt_SHELL
13961
13962# An echo program that protects backslashes.
13963ECHO=$lt_ECHO
13964
d7f09764
DN
13965# The host system.
13966host_alias=$host_alias
13967host=$host
13968host_os=$host_os
13969
13970# The build system.
13971build_alias=$build_alias
13972build=$build
13973build_os=$build_os
13974
13975# A sed program that does not truncate output.
13976SED=$lt_SED
13977
13978# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13979Xsed="\$SED -e 1s/^X//"
13980
13981# A grep program that handles long lines.
13982GREP=$lt_GREP
13983
13984# An ERE matcher.
13985EGREP=$lt_EGREP
13986
13987# A literal string matcher.
13988FGREP=$lt_FGREP
13989
13990# A BSD- or MS-compatible name lister.
13991NM=$lt_NM
13992
13993# Whether we need soft or hard links.
13994LN_S=$lt_LN_S
13995
13996# What is the maximum length of a command?
13997max_cmd_len=$max_cmd_len
13998
13999# Object file suffix (normally "o").
14000objext=$ac_objext
14001
14002# Executable file suffix (normally "").
14003exeext=$exeext
14004
14005# whether the shell understands "unset".
14006lt_unset=$lt_unset
14007
14008# turn spaces into newlines.
14009SP2NL=$lt_lt_SP2NL
14010
14011# turn newlines into spaces.
14012NL2SP=$lt_lt_NL2SP
14013
d7f09764
DN
14014# An object symbol dumper.
14015OBJDUMP=$lt_OBJDUMP
14016
14017# Method to check whether dependent libraries are shared objects.
14018deplibs_check_method=$lt_deplibs_check_method
14019
14020# Command to use when deplibs_check_method == "file_magic".
14021file_magic_cmd=$lt_file_magic_cmd
14022
14023# The archiver.
14024AR=$lt_AR
14025AR_FLAGS=$lt_AR_FLAGS
14026
14027# A symbol stripping program.
14028STRIP=$lt_STRIP
14029
14030# Commands used to install an old-style archive.
14031RANLIB=$lt_RANLIB
14032old_postinstall_cmds=$lt_old_postinstall_cmds
14033old_postuninstall_cmds=$lt_old_postuninstall_cmds
14034
52327858
L
14035# Whether to use a lock for old archive extraction.
14036lock_old_archive_extraction=$lock_old_archive_extraction
14037
d7f09764
DN
14038# A C compiler.
14039LTCC=$lt_CC
14040
14041# LTCC compiler flags.
14042LTCFLAGS=$lt_CFLAGS
14043
14044# Take the output of nm and produce a listing of raw symbols and C names.
14045global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14046
14047# Transform the output of nm in a proper C declaration.
14048global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14049
14050# Transform the output of nm in a C name address pair.
14051global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14052
14053# Transform the output of nm in a C name address pair when lib prefix is needed.
14054global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14055
14056# The name of the directory that contains temporary libtool files.
14057objdir=$objdir
14058
d7f09764
DN
14059# Used to examine libraries when file_magic_cmd begins with "file".
14060MAGIC_CMD=$MAGIC_CMD
14061
14062# Must we lock files when doing compilation?
14063need_locks=$lt_need_locks
14064
14065# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14066DSYMUTIL=$lt_DSYMUTIL
14067
14068# Tool to change global to local symbols on Mac OS X.
14069NMEDIT=$lt_NMEDIT
14070
14071# Tool to manipulate fat objects and archives on Mac OS X.
14072LIPO=$lt_LIPO
14073
14074# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14075OTOOL=$lt_OTOOL
14076
14077# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14078OTOOL64=$lt_OTOOL64
14079
14080# Old archive suffix (normally "a").
14081libext=$libext
14082
14083# Shared library suffix (normally ".so").
14084shrext_cmds=$lt_shrext_cmds
14085
14086# The commands to extract the exported symbol list from a shared archive.
14087extract_expsyms_cmds=$lt_extract_expsyms_cmds
14088
14089# Variables whose values should be saved in libtool wrapper scripts and
14090# restored at link time.
14091variables_saved_for_relink=$lt_variables_saved_for_relink
14092
14093# Do we need the "lib" prefix for modules?
14094need_lib_prefix=$need_lib_prefix
14095
14096# Do we need a version for libraries?
14097need_version=$need_version
14098
14099# Library versioning type.
14100version_type=$version_type
14101
14102# Shared library runtime path variable.
14103runpath_var=$runpath_var
14104
14105# Shared library path variable.
14106shlibpath_var=$shlibpath_var
14107
14108# Is shlibpath searched before the hard-coded library search path?
14109shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14110
14111# Format of library name prefix.
14112libname_spec=$lt_libname_spec
14113
14114# List of archive names. First name is the real one, the rest are links.
14115# The last name is the one that the linker finds with -lNAME
14116library_names_spec=$lt_library_names_spec
14117
14118# The coded name of the library, if different from the real name.
14119soname_spec=$lt_soname_spec
14120
52327858
L
14121# Permission mode override for installation of shared libraries.
14122install_override_mode=$lt_install_override_mode
14123
d7f09764
DN
14124# Command to use after installation of a shared archive.
14125postinstall_cmds=$lt_postinstall_cmds
14126
14127# Command to use after uninstallation of a shared archive.
14128postuninstall_cmds=$lt_postuninstall_cmds
14129
14130# Commands used to finish a libtool library installation in a directory.
14131finish_cmds=$lt_finish_cmds
14132
14133# As "finish_cmds", except a single script fragment to be evaled but
14134# not shown.
14135finish_eval=$lt_finish_eval
14136
14137# Whether we should hardcode library paths into libraries.
14138hardcode_into_libs=$hardcode_into_libs
14139
14140# Compile-time system search path for libraries.
14141sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14142
14143# Run-time system search path for libraries.
14144sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14145
14146# Whether dlopen is supported.
14147dlopen_support=$enable_dlopen
14148
14149# Whether dlopen of programs is supported.
14150dlopen_self=$enable_dlopen_self
14151
14152# Whether dlopen of statically linked programs is supported.
14153dlopen_self_static=$enable_dlopen_self_static
14154
14155# Commands to strip libraries.
14156old_striplib=$lt_old_striplib
14157striplib=$lt_striplib
14158
14159
14160# The linker used to build libraries.
14161LD=$lt_LD
14162
52327858
L
14163# How to create reloadable object files.
14164reload_flag=$lt_reload_flag
14165reload_cmds=$lt_reload_cmds
14166
d7f09764
DN
14167# Commands used to build an old-style archive.
14168old_archive_cmds=$lt_old_archive_cmds
14169
14170# A language specific compiler.
14171CC=$lt_compiler
14172
14173# Is the compiler the GNU compiler?
14174with_gcc=$GCC
14175
14176# Compiler flag to turn off builtin functions.
14177no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14178
14179# How to pass a linker flag through the compiler.
14180wl=$lt_lt_prog_compiler_wl
14181
14182# Additional compiler flags for building library objects.
14183pic_flag=$lt_lt_prog_compiler_pic
14184
14185# Compiler flag to prevent dynamic linking.
14186link_static_flag=$lt_lt_prog_compiler_static
14187
14188# Does compiler simultaneously support -c and -o options?
14189compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14190
14191# Whether or not to add -lc for building shared libraries.
14192build_libtool_need_lc=$archive_cmds_need_lc
14193
14194# Whether or not to disallow shared libs when runtime libs are static.
14195allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14196
14197# Compiler flag to allow reflexive dlopens.
14198export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14199
14200# Compiler flag to generate shared objects directly from archives.
14201whole_archive_flag_spec=$lt_whole_archive_flag_spec
14202
14203# Whether the compiler copes with passing no objects directly.
14204compiler_needs_object=$lt_compiler_needs_object
14205
14206# Create an old-style archive from a shared archive.
14207old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14208
14209# Create a temporary old-style archive to link instead of a shared archive.
14210old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14211
14212# Commands used to build a shared archive.
14213archive_cmds=$lt_archive_cmds
14214archive_expsym_cmds=$lt_archive_expsym_cmds
14215
14216# Commands used to build a loadable module if different from building
14217# a shared archive.
14218module_cmds=$lt_module_cmds
14219module_expsym_cmds=$lt_module_expsym_cmds
14220
14221# Whether we are building with GNU ld or not.
14222with_gnu_ld=$lt_with_gnu_ld
14223
14224# Flag that allows shared libraries with undefined symbols to be built.
14225allow_undefined_flag=$lt_allow_undefined_flag
14226
14227# Flag that enforces no undefined symbols.
14228no_undefined_flag=$lt_no_undefined_flag
14229
14230# Flag to hardcode \$libdir into a binary during linking.
14231# This must work even if \$libdir does not exist
14232hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14233
14234# If ld is used when linking, flag to hardcode \$libdir into a binary
14235# during linking. This must work even if \$libdir does not exist.
14236hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14237
14238# Whether we need a single "-rpath" flag with a separated argument.
14239hardcode_libdir_separator=$lt_hardcode_libdir_separator
14240
14241# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14242# DIR into the resulting binary.
14243hardcode_direct=$hardcode_direct
14244
14245# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14246# DIR into the resulting binary and the resulting library dependency is
14247# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14248# library is relocated.
14249hardcode_direct_absolute=$hardcode_direct_absolute
14250
14251# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14252# into the resulting binary.
14253hardcode_minus_L=$hardcode_minus_L
14254
14255# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14256# into the resulting binary.
14257hardcode_shlibpath_var=$hardcode_shlibpath_var
14258
14259# Set to "yes" if building a shared library automatically hardcodes DIR
14260# into the library and all subsequent libraries and executables linked
14261# against it.
14262hardcode_automatic=$hardcode_automatic
14263
14264# Set to yes if linker adds runtime paths of dependent libraries
14265# to runtime path list.
14266inherit_rpath=$inherit_rpath
14267
14268# Whether libtool must link a program against all its dependency libraries.
14269link_all_deplibs=$link_all_deplibs
14270
14271# Fix the shell variable \$srcfile for the compiler.
14272fix_srcfile_path=$lt_fix_srcfile_path
14273
14274# Set to "yes" if exported symbols are required.
14275always_export_symbols=$always_export_symbols
14276
14277# The commands to list exported symbols.
14278export_symbols_cmds=$lt_export_symbols_cmds
14279
14280# Symbols that should not be listed in the preloaded symbols.
14281exclude_expsyms=$lt_exclude_expsyms
14282
14283# Symbols that must always be exported.
14284include_expsyms=$lt_include_expsyms
14285
14286# Commands necessary for linking programs (against libraries) with templates.
14287prelink_cmds=$lt_prelink_cmds
14288
14289# Specify filename containing input files.
14290file_list_spec=$lt_file_list_spec
14291
14292# How to hardcode a shared library path into an executable.
14293hardcode_action=$hardcode_action
14294
14295# ### END LIBTOOL CONFIG
14296
14297_LT_EOF
14298
14299 case $host_os in
14300 aix3*)
14301 cat <<\_LT_EOF >> "$cfgfile"
14302# AIX sometimes has problems with the GCC collect2 program. For some
14303# reason, if we set the COLLECT_NAMES environment variable, the problems
14304# vanish in a puff of smoke.
14305if test "X${COLLECT_NAMES+set}" != Xset; then
14306 COLLECT_NAMES=
14307 export COLLECT_NAMES
14308fi
14309_LT_EOF
14310 ;;
14311 esac
14312
14313
14314ltmain="$ac_aux_dir/ltmain.sh"
14315
14316
14317 # We use sed instead of cat because bash on DJGPP gets confused if
14318 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14319 # text mode, it properly converts lines to CR/LF. This bash problem
14320 # is reportedly fixed, but why not run on old versions too?
14321 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14322 || (rm -f "$cfgfile"; exit 1)
14323
14324 case $xsi_shell in
14325 yes)
14326 cat << \_LT_EOF >> "$cfgfile"
14327
14328# func_dirname file append nondir_replacement
14329# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14330# otherwise set result to NONDIR_REPLACEMENT.
14331func_dirname ()
14332{
14333 case ${1} in
14334 */*) func_dirname_result="${1%/*}${2}" ;;
14335 * ) func_dirname_result="${3}" ;;
14336 esac
14337}
14338
14339# func_basename file
14340func_basename ()
14341{
14342 func_basename_result="${1##*/}"
14343}
14344
14345# func_dirname_and_basename file append nondir_replacement
14346# perform func_basename and func_dirname in a single function
14347# call:
14348# dirname: Compute the dirname of FILE. If nonempty,
14349# add APPEND to the result, otherwise set result
14350# to NONDIR_REPLACEMENT.
14351# value returned in "$func_dirname_result"
14352# basename: Compute filename of FILE.
14353# value retuned in "$func_basename_result"
14354# Implementation must be kept synchronized with func_dirname
14355# and func_basename. For efficiency, we do not delegate to
14356# those functions but instead duplicate the functionality here.
14357func_dirname_and_basename ()
14358{
14359 case ${1} in
14360 */*) func_dirname_result="${1%/*}${2}" ;;
14361 * ) func_dirname_result="${3}" ;;
14362 esac
14363 func_basename_result="${1##*/}"
14364}
14365
14366# func_stripname prefix suffix name
14367# strip PREFIX and SUFFIX off of NAME.
14368# PREFIX and SUFFIX must not contain globbing or regex special
14369# characters, hashes, percent signs, but SUFFIX may contain a leading
14370# dot (in which case that matches only a dot).
14371func_stripname ()
14372{
14373 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14374 # positional parameters, so assign one to ordinary parameter first.
14375 func_stripname_result=${3}
14376 func_stripname_result=${func_stripname_result#"${1}"}
14377 func_stripname_result=${func_stripname_result%"${2}"}
14378}
14379
14380# func_opt_split
14381func_opt_split ()
14382{
14383 func_opt_split_opt=${1%%=*}
14384 func_opt_split_arg=${1#*=}
14385}
14386
14387# func_lo2o object
14388func_lo2o ()
14389{
14390 case ${1} in
14391 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14392 *) func_lo2o_result=${1} ;;
14393 esac
14394}
14395
14396# func_xform libobj-or-source
14397func_xform ()
14398{
14399 func_xform_result=${1%.*}.lo
14400}
14401
14402# func_arith arithmetic-term...
14403func_arith ()
14404{
14405 func_arith_result=$(( $* ))
14406}
14407
14408# func_len string
14409# STRING may not start with a hyphen.
14410func_len ()
14411{
14412 func_len_result=${#1}
14413}
14414
14415_LT_EOF
14416 ;;
14417 *) # Bourne compatible functions.
14418 cat << \_LT_EOF >> "$cfgfile"
14419
14420# func_dirname file append nondir_replacement
14421# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14422# otherwise set result to NONDIR_REPLACEMENT.
14423func_dirname ()
14424{
14425 # Extract subdirectory from the argument.
52327858 14426 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7f09764
DN
14427 if test "X$func_dirname_result" = "X${1}"; then
14428 func_dirname_result="${3}"
14429 else
14430 func_dirname_result="$func_dirname_result${2}"
14431 fi
14432}
14433
14434# func_basename file
14435func_basename ()
14436{
52327858 14437 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7f09764
DN
14438}
14439
14440
14441# func_stripname prefix suffix name
14442# strip PREFIX and SUFFIX off of NAME.
14443# PREFIX and SUFFIX must not contain globbing or regex special
14444# characters, hashes, percent signs, but SUFFIX may contain a leading
14445# dot (in which case that matches only a dot).
14446# func_strip_suffix prefix name
14447func_stripname ()
14448{
14449 case ${2} in
52327858
L
14450 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14451 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7f09764
DN
14452 esac
14453}
14454
14455# sed scripts:
14456my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14457my_sed_long_arg='1s/^-[^=]*=//'
14458
14459# func_opt_split
14460func_opt_split ()
14461{
52327858
L
14462 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14463 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7f09764
DN
14464}
14465
14466# func_lo2o object
14467func_lo2o ()
14468{
52327858 14469 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7f09764
DN
14470}
14471
14472# func_xform libobj-or-source
14473func_xform ()
14474{
52327858 14475 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
d7f09764
DN
14476}
14477
14478# func_arith arithmetic-term...
14479func_arith ()
14480{
14481 func_arith_result=`expr "$@"`
14482}
14483
14484# func_len string
14485# STRING may not start with a hyphen.
14486func_len ()
14487{
14488 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14489}
14490
14491_LT_EOF
14492esac
14493
14494case $lt_shell_append in
14495 yes)
14496 cat << \_LT_EOF >> "$cfgfile"
14497
14498# func_append var value
14499# Append VALUE to the end of shell variable VAR.
14500func_append ()
14501{
14502 eval "$1+=\$2"
14503}
14504_LT_EOF
14505 ;;
14506 *)
14507 cat << \_LT_EOF >> "$cfgfile"
14508
14509# func_append var value
14510# Append VALUE to the end of shell variable VAR.
14511func_append ()
14512{
14513 eval "$1=\$$1\$2"
14514}
14515
14516_LT_EOF
14517 ;;
14518 esac
14519
14520
14521 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14522 || (rm -f "$cfgfile"; exit 1)
14523
14524 mv -f "$cfgfile" "$ofile" ||
14525 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14526 chmod +x "$ofile"
14527
14528 ;;
14529
14530 esac
14531done # for ac_tag
14532
14533
14534as_fn_exit 0
14535_ACEOF
14536ac_clean_files=$ac_clean_files_save
14537
14538test $ac_write_fail = 0 ||
22e05272 14539 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
d7f09764
DN
14540
14541
14542# configure is writing to config.log, and then calls config.status.
14543# config.status does its own redirection, appending to config.log.
14544# Unfortunately, on DOS this fails, as config.log is still kept open
14545# by configure, so config.status won't be able to write to it; its
14546# output is simply discarded. So we exec the FD to /dev/null,
14547# effectively closing config.log, so it can be properly (re)opened and
14548# appended to by config.status. When coming back to configure, we
14549# need to make the FD available again.
14550if test "$no_create" != yes; then
14551 ac_cs_success=:
14552 ac_config_status_args=
14553 test "$silent" = yes &&
14554 ac_config_status_args="$ac_config_status_args --quiet"
14555 exec 5>/dev/null
14556 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14557 exec 5>>config.log
14558 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14559 # would make configure fail if this is the last instruction.
22e05272 14560 $ac_cs_success || as_fn_exit 1
d7f09764
DN
14561fi
14562if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14564$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14565fi
14566