]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/rx/configure
sim: unify bug & package settings
[thirdparty/binutils-gdb.git] / sim / rx / configure
CommitLineData
4f8d4a38
DD
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
d0ac1c44
SM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
4f8d4a38 7#
4f8d4a38
DD
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.
d0ac1c44 90as_myself=
4f8d4a38
DD
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
d0ac1c44
SM
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;}
4f8d4a38
DD
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
d0ac1c44
SM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
4f8d4a38
DD
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
6bb11ab3
L
199test \$(( 1 + 1 )) = 2 || exit 1
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\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
4f8d4a38
DD
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 :
d0ac1c44
SM
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
4f8d4a38
DD
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"
d0ac1c44 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4f8d4a38
DD
364
365
366} # as_fn_mkdir_p
d0ac1c44
SM
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
4f8d4a38
DD
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
d0ac1c44
SM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
4f8d4a38
DD
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
d0ac1c44 415# script with STATUS, using 1 if that was 0.
4f8d4a38
DD
416as_fn_error ()
417{
d0ac1c44
SM
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
4f8d4a38 422 fi
d0ac1c44 423 $as_echo "$as_me: error: $2" >&2
4f8d4a38
DD
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
d0ac1c44
SM
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
4f8d4a38
DD
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.
d0ac1c44 534 # In both cases, we have to default to `cp -pR'.
4f8d4a38 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 536 as_ln_s='cp -pR'
4f8d4a38
DD
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
d0ac1c44 540 as_ln_s='cp -pR'
4f8d4a38
DD
541 fi
542else
d0ac1c44 543 as_ln_s='cp -pR'
4f8d4a38
DD
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
d0ac1c44
SM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
4f8d4a38
DD
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
6bb11ab3
L
564SHELL=${CONFIG_SHELL-/bin/sh}
565
4f8d4a38 566
d0ac1c44
SM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
4f8d4a38
DD
569
570# Name of the host.
d0ac1c44 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
4f8d4a38
DD
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=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
593PACKAGE_URL=
594
595ac_unique_file="Makefile.in"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610# include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='LTLIBOBJS
633LIBOBJS
760b3e8b 634sim_reserved_bits
760b3e8b
MF
635sim_default_model
636sim_scache
637sim_float
638sim_endian
639sim_bitsize
640sim_alignment
4f8d4a38 641cgen_breaks
4f8d4a38 642MAINT
31e6ad7d
MF
643MAINTAINER_MODE_FALSE
644MAINTAINER_MODE_TRUE
6bb11ab3
L
645lt_cv_dlopen_libs
646OTOOL64
647OTOOL
648LIPO
649NMEDIT
650DSYMUTIL
651AWK
652STRIP
653OBJDUMP
654LN_S
655NM
656ac_ct_DUMPBIN
657DUMPBIN
658LD
659FGREP
660SED
661LIBTOOL
662PLUGINS_FALSE
663PLUGINS_TRUE
aadc9410
MF
664zlibinc
665zlibdir
4f8d4a38
DD
666CATOBJEXT
667GENCAT
668INSTOBJEXT
669DATADIRNAME
670CATALOGS
671POSUB
672GMSGFMT
673XGETTEXT
674INCINTL
675LIBINTL_DEP
676LIBINTL
677USE_NLS
db2e4d67
MF
678CCDEPMODE
679DEPDIR
680am__leading_dot
46f900c0 681C_DIALECT
4f8d4a38
DD
682RANLIB
683AR
c2783492 684LDFLAGS_FOR_BUILD
c25ea03d 685CFLAGS_FOR_BUILD
aa0fca16 686RANLIB_FOR_BUILD
4f8d4a38 687CC_FOR_BUILD
aa0fca16 688AR_FOR_BUILD
4f8d4a38
DD
689INSTALL_DATA
690INSTALL_SCRIPT
691INSTALL_PROGRAM
2232061b
MF
692EGREP
693GREP
c2783492
MF
694CPP
695OBJEXT
696EXEEXT
697ac_ct_CC
698CPPFLAGS
699LDFLAGS
700CFLAGS
701CC
4f8d4a38
DD
702target_os
703target_vendor
704target_cpu
705target
706host_os
707host_vendor
708host_cpu
709host
710build_os
711build_vendor
712build_cpu
713build
4f8d4a38
DD
714target_alias
715host_alias
716build_alias
717LIBS
718ECHO_T
719ECHO_N
720ECHO_C
721DEFS
722mandir
723localedir
724libdir
725psdir
726pdfdir
727dvidir
728htmldir
729infodir
730docdir
731oldincludedir
732includedir
733localstatedir
734sharedstatedir
735sysconfdir
736datadir
737datarootdir
738libexecdir
739sbindir
740bindir
741program_transform_name
742prefix
743exec_prefix
744PACKAGE_URL
745PACKAGE_BUGREPORT
746PACKAGE_STRING
747PACKAGE_VERSION
748PACKAGE_TARNAME
749PACKAGE_NAME
750PATH_SEPARATOR
136da8cd
MF
751SHELL
752WERROR_CFLAGS
753WARN_CFLAGS
66d055c7
MF
754sim_inline
755sim_hw
756sim_hw_objs
757sim_hw_cflags'
4f8d4a38
DD
758ac_subst_files=''
759ac_user_opts='
760enable_option_checking
aadc9410 761with_system_zlib
6bb11ab3
L
762enable_plugins
763enable_shared
764enable_static
765with_pic
766enable_fast_install
767with_gnu_ld
768enable_libtool_lock
4f8d4a38 769enable_maintainer_mode
347fe5bb 770enable_sim_inline
136da8cd
MF
771enable_cycle_accurate
772enable_cycle_stats
5c1008a4
MF
773enable_werror
774enable_build_warnings
775enable_sim_build_warnings
66d055c7 776enable_sim_hardware
4f8d4a38
DD
777'
778 ac_precious_vars='build_alias
779host_alias
780target_alias
781CC
782CFLAGS
783LDFLAGS
784LIBS
785CPPFLAGS
786CPP'
787
788
789# Initialize some variables set by options.
790ac_init_help=
791ac_init_version=false
792ac_unrecognized_opts=
793ac_unrecognized_sep=
794# The variables have the same names as the options, with
795# dashes changed to underlines.
796cache_file=/dev/null
797exec_prefix=NONE
798no_create=
799no_recursion=
800prefix=NONE
801program_prefix=NONE
802program_suffix=NONE
803program_transform_name=s,x,x,
804silent=
805site=
806srcdir=
807verbose=
808x_includes=NONE
809x_libraries=NONE
810
811# Installation directory options.
812# These are left unexpanded so users can "make install exec_prefix=/foo"
813# and all the variables that are supposed to be based on exec_prefix
814# by default will actually change.
815# Use braces instead of parens because sh, perl, etc. also accept them.
816# (The list follows the same order as the GNU Coding Standards.)
817bindir='${exec_prefix}/bin'
818sbindir='${exec_prefix}/sbin'
819libexecdir='${exec_prefix}/libexec'
820datarootdir='${prefix}/share'
821datadir='${datarootdir}'
822sysconfdir='${prefix}/etc'
823sharedstatedir='${prefix}/com'
824localstatedir='${prefix}/var'
825includedir='${prefix}/include'
826oldincludedir='/usr/include'
827docdir='${datarootdir}/doc/${PACKAGE}'
828infodir='${datarootdir}/info'
829htmldir='${docdir}'
830dvidir='${docdir}'
831pdfdir='${docdir}'
832psdir='${docdir}'
833libdir='${exec_prefix}/lib'
834localedir='${datarootdir}/locale'
835mandir='${datarootdir}/man'
836
837ac_prev=
838ac_dashdash=
839for ac_option
840do
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
844 ac_prev=
845 continue
846 fi
847
848 case $ac_option in
d0ac1c44
SM
849 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 *=) ac_optarg= ;;
851 *) ac_optarg=yes ;;
4f8d4a38
DD
852 esac
853
854 # Accept the important Cygnus configure options, so we can diagnose typos.
855
856 case $ac_dashdash$ac_option in
857 --)
858 ac_dashdash=yes ;;
859
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 bindir=$ac_optarg ;;
864
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
869
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
876
877 --config-cache | -C)
878 cache_file=config.cache ;;
879
880 -datadir | --datadir | --datadi | --datad)
881 ac_prev=datadir ;;
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
884
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
891
892 -disable-* | --disable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 896 as_fn_error $? "invalid feature name: $ac_useropt"
4f8d4a38
DD
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
900 *"
901"enable_$ac_useropt"
902"*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=no ;;
907
908 -docdir | --docdir | --docdi | --doc | --do)
909 ac_prev=docdir ;;
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 docdir=$ac_optarg ;;
912
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 ac_prev=dvidir ;;
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 dvidir=$ac_optarg ;;
917
918 -enable-* | --enable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 922 as_fn_error $? "invalid feature name: $ac_useropt"
4f8d4a38
DD
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927"enable_$ac_useropt"
928"*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=\$ac_optarg ;;
933
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
941 exec_prefix=$ac_optarg ;;
942
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
945 with_gas=yes ;;
946
947 -help | --help | --hel | --he | -h)
948 ac_init_help=long ;;
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
953
954 -host | --host | --hos | --ho)
955 ac_prev=host_alias ;;
956 -host=* | --host=* | --hos=* | --ho=*)
957 host_alias=$ac_optarg ;;
958
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 ac_prev=htmldir ;;
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 | --ht=*)
963 htmldir=$ac_optarg ;;
964
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
970 includedir=$ac_optarg ;;
971
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 ac_prev=infodir ;;
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975 infodir=$ac_optarg ;;
976
977 -libdir | --libdir | --libdi | --libd)
978 ac_prev=libdir ;;
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 libdir=$ac_optarg ;;
981
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
987 libexecdir=$ac_optarg ;;
988
989 -localedir | --localedir | --localedi | --localed | --locale)
990 ac_prev=localedir ;;
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
993
994 -localstatedir | --localstatedir | --localstatedi | --localstated \
995 | --localstate | --localstat | --localsta | --localst | --locals)
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999 localstatedir=$ac_optarg ;;
1000
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 ac_prev=mandir ;;
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004 mandir=$ac_optarg ;;
1005
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1008 with_fp=no ;;
1009
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n)
1012 no_create=yes ;;
1013
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 no_recursion=yes ;;
1017
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025 oldincludedir=$ac_optarg ;;
1026
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 ac_prev=prefix ;;
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030 prefix=$ac_optarg ;;
1031
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037 program_prefix=$ac_optarg ;;
1038
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044 program_suffix=$ac_optarg ;;
1045
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
1061 program_transform_name=$ac_optarg ;;
1062
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 ac_prev=pdfdir ;;
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1067
1068 -psdir | --psdir | --psdi | --psd | --ps)
1069 ac_prev=psdir ;;
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 psdir=$ac_optarg ;;
1072
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 silent=yes ;;
1076
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 ac_prev=sbindir ;;
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 | --sbi=* | --sb=*)
1081 sbindir=$ac_optarg ;;
1082
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1086 | --sha | --sh)
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 | --sha=* | --sh=*)
1092 sharedstatedir=$ac_optarg ;;
1093
1094 -site | --site | --sit)
1095 ac_prev=site ;;
1096 -site=* | --site=* | --sit=*)
1097 site=$ac_optarg ;;
1098
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 ac_prev=srcdir ;;
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102 srcdir=$ac_optarg ;;
1103
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109 sysconfdir=$ac_optarg ;;
1110
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
1112 ac_prev=target_alias ;;
1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114 target_alias=$ac_optarg ;;
1115
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 verbose=yes ;;
1118
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
1121
1122 -with-* | --with-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1126 as_fn_error $? "invalid package name: $ac_useropt"
4f8d4a38
DD
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1130 *"
1131"with_$ac_useropt"
1132"*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=\$ac_optarg ;;
1137
1138 -without-* | --without-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1142 as_fn_error $? "invalid package name: $ac_useropt"
4f8d4a38
DD
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147"with_$ac_useropt"
1148"*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=no ;;
1153
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1157
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1164
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1171
d0ac1c44
SM
1172 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173Try \`$0 --help' for more information"
4f8d4a38
DD
1174 ;;
1175
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1181 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
4f8d4a38
DD
1182 esac
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1185
1186 *)
1187 # FIXME: should be removed in autoconf 3.0.
1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1191 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
4f8d4a38
DD
1192 ;;
1193
1194 esac
1195done
1196
1197if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1199 as_fn_error $? "missing argument to $ac_option"
4f8d4a38
DD
1200fi
1201
1202if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1204 no) ;;
d0ac1c44 1205 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
4f8d4a38
DD
1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207 esac
1208fi
1209
1210# Check all directory arguments for consistency.
1211for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
1215do
1216 eval ac_val=\$$ac_var
1217 # Remove trailing slashes.
1218 case $ac_val in
1219 */ )
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1222 esac
1223 # Be sure to have absolute directory names.
1224 case $ac_val in
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 esac
d0ac1c44 1228 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
4f8d4a38
DD
1229done
1230
1231# There might be people who depend on the old broken behavior: `$host'
1232# used to hold the argument of --host etc.
1233# FIXME: To remove some day.
1234build=$build_alias
1235host=$host_alias
1236target=$target_alias
1237
1238# FIXME: To remove some day.
1239if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
4f8d4a38
DD
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1244 fi
1245fi
1246
1247ac_tool_prefix=
1248test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250test "$silent" = yes && exec 6>/dev/null
1251
1252
1253ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254ac_ls_di=`ls -di .` &&
1255ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1256 as_fn_error $? "working directory cannot be determined"
4f8d4a38 1257test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1258 as_fn_error $? "pwd does not report name of working directory"
4f8d4a38
DD
1259
1260
1261# Find the source files, if location was not specified.
1262if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270$as_echo X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\).*/{
1284 s//\1/
1285 q
1286 }
1287 s/.*/./; q'`
1288 srcdir=$ac_confdir
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 srcdir=..
1291 fi
1292else
1293 ac_srcdir_defaulted=no
1294fi
1295if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1297 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
4f8d4a38
DD
1298fi
1299ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300ac_abs_confdir=`(
d0ac1c44 1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
4f8d4a38
DD
1302 pwd)`
1303# When building in place, set srcdir=.
1304if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 srcdir=.
1306fi
1307# Remove unnecessary trailing slashes from srcdir.
1308# Double slashes in file names in object file debugging info
1309# mess up M-x gdb in Emacs.
1310case $srcdir in
1311*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312esac
1313for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318done
1319
1320#
1321# Report the --help message.
1322#
1323if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1326 cat <<_ACEOF
1327\`configure' configures this package to adapt to many kinds of systems.
1328
1329Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332VAR=VALUE. See below for descriptions of some of the useful variables.
1333
1334Defaults for the options are specified in brackets.
1335
1336Configuration:
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
d0ac1c44 1341 -q, --quiet, --silent do not print \`checking ...' messages
4f8d4a38
DD
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346
1347Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 [PREFIX]
1352
1353By default, \`make install' will install all the files in
1354\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356for instance \`--prefix=\$HOME'.
1357
1358For better control, use the options below.
1359
1360Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
1380_ACEOF
1381
1382 cat <<\_ACEOF
1383
1384Program names:
1385 --program-prefix=PREFIX prepend PREFIX to installed program names
1386 --program-suffix=SUFFIX append SUFFIX to installed program names
1387 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1388
1389System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1393_ACEOF
1394fi
1395
1396if test -n "$ac_init_help"; then
1397
1398 cat <<\_ACEOF
1399
1400Optional Features:
1401 --disable-option-checking ignore unrecognized --enable/--with options
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
faa743bb 1404 --enable-plugins Enable support for plugins
6bb11ab3
L
1405 --enable-shared[=PKGS] build shared libraries [default=yes]
1406 --enable-static[=PKGS] build static libraries [default=yes]
1407 --enable-fast-install[=PKGS]
1408 optimize for fast installation [default=yes]
1409 --disable-libtool-lock avoid locking (might break parallel builds)
d0ac1c44
SM
1410 --enable-maintainer-mode
1411 enable make rules and dependencies not useful (and
1412 sometimes confusing) to the casual installer
347fe5bb
MF
1413 --enable-sim-inline=inlines
1414 Specify which functions should be inlined
136da8cd
MF
1415 --disable-cycle-accurate
1416 Disable cycle accurate simulation (faster runtime)
1417 --disable-cycle-stats Disable cycle statistics (faster runtime)
5c1008a4
MF
1418 --enable-werror treat compile warnings as errors
1419 --enable-build-warnings enable build-time compiler warnings if gcc is used
1420 --enable-sim-build-warnings
1421 enable SIM specific build-time compiler warnings if
1422 gcc is used
66d055c7
MF
1423 --enable-sim-hardware=LIST
1424 Specify the hardware to be included in the build.
4f8d4a38
DD
1425
1426Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
aadc9410 1429 --with-system-zlib use installed libz
6bb11ab3
L
1430 --with-pic try to use only PIC/non-PIC objects [default=use
1431 both]
1432 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
4f8d4a38
DD
1433
1434Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
1439 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1440 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
4f8d4a38
DD
1441 you have headers in a nonstandard directory <include dir>
1442 CPP C preprocessor
1443
1444Use these variables to override the choices made by `configure' or to help
1445it to find libraries and programs with nonstandard names/locations.
1446
1447Report bugs to the package provider.
1448_ACEOF
1449ac_status=$?
1450fi
1451
1452if test "$ac_init_help" = "recursive"; then
1453 # If there are subdirs, report their specific --help.
1454 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1455 test -d "$ac_dir" ||
1456 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1457 continue
1458 ac_builddir=.
1459
1460case "$ac_dir" in
1461.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462*)
1463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1464 # A ".." for each directory in $ac_dir_suffix.
1465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1466 case $ac_top_builddir_sub in
1467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469 esac ;;
1470esac
1471ac_abs_top_builddir=$ac_pwd
1472ac_abs_builddir=$ac_pwd$ac_dir_suffix
1473# for backward compatibility:
1474ac_top_builddir=$ac_top_build_prefix
1475
1476case $srcdir in
1477 .) # We are building in place.
1478 ac_srcdir=.
1479 ac_top_srcdir=$ac_top_builddir_sub
1480 ac_abs_top_srcdir=$ac_pwd ;;
1481 [\\/]* | ?:[\\/]* ) # Absolute name.
1482 ac_srcdir=$srcdir$ac_dir_suffix;
1483 ac_top_srcdir=$srcdir
1484 ac_abs_top_srcdir=$srcdir ;;
1485 *) # Relative name.
1486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1487 ac_top_srcdir=$ac_top_build_prefix$srcdir
1488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489esac
1490ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491
1492 cd "$ac_dir" || { ac_status=$?; continue; }
1493 # Check for guested configure.
1494 if test -f "$ac_srcdir/configure.gnu"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1497 elif test -f "$ac_srcdir/configure"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure" --help=recursive
1500 else
1501 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502 fi || ac_status=$?
1503 cd "$ac_pwd" || { ac_status=$?; break; }
1504 done
1505fi
1506
1507test -n "$ac_init_help" && exit $ac_status
1508if $ac_init_version; then
1509 cat <<\_ACEOF
1510configure
d0ac1c44 1511generated by GNU Autoconf 2.69
4f8d4a38 1512
d0ac1c44 1513Copyright (C) 2012 Free Software Foundation, Inc.
4f8d4a38
DD
1514This configure script is free software; the Free Software Foundation
1515gives unlimited permission to copy, distribute and modify it.
1516_ACEOF
1517 exit
1518fi
1519
1520## ------------------------ ##
1521## Autoconf initialization. ##
1522## ------------------------ ##
1523
1524# ac_fn_c_try_compile LINENO
1525# --------------------------
1526# Try to compile conftest.$ac_ext, and return whether this succeeded.
1527ac_fn_c_try_compile ()
1528{
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 rm -f conftest.$ac_objext
1531 if { { ac_try="$ac_compile"
1532case "(($ac_try" in
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1535esac
1536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537$as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_compile") 2>conftest.err
1539 ac_status=$?
1540 if test -s conftest.err; then
1541 grep -v '^ *+' conftest.err >conftest.er1
1542 cat conftest.er1 >&5
1543 mv -f conftest.er1 conftest.err
1544 fi
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546 test $ac_status = 0; } && {
1547 test -z "$ac_c_werror_flag" ||
1548 test ! -s conftest.err
1549 } && test -s conftest.$ac_objext; then :
1550 ac_retval=0
1551else
1552 $as_echo "$as_me: failed program was:" >&5
1553sed 's/^/| /' conftest.$ac_ext >&5
1554
1555 ac_retval=1
1556fi
d0ac1c44
SM
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558 as_fn_set_status $ac_retval
4f8d4a38
DD
1559
1560} # ac_fn_c_try_compile
1561
1562# ac_fn_c_try_cpp LINENO
1563# ----------------------
1564# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1565ac_fn_c_try_cpp ()
1566{
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 if { { ac_try="$ac_cpp conftest.$ac_ext"
1569case "(($ac_try" in
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1572esac
1573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574$as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1576 ac_status=$?
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1581 fi
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1583 test $ac_status = 0; } > conftest.i && {
4f8d4a38
DD
1584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 }; then :
1587 ac_retval=0
1588else
1589 $as_echo "$as_me: failed program was:" >&5
1590sed 's/^/| /' conftest.$ac_ext >&5
1591
1592 ac_retval=1
1593fi
d0ac1c44
SM
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595 as_fn_set_status $ac_retval
4f8d4a38
DD
1596
1597} # ac_fn_c_try_cpp
1598
1599# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1600# -------------------------------------------------------
1601# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1602# the include files in INCLUDES and setting the cache variable VAR
1603# accordingly.
1604ac_fn_c_check_header_mongrel ()
1605{
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1607 if eval \${$3+:} false; then :
4f8d4a38
DD
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1609$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1610if eval \${$3+:} false; then :
4f8d4a38
DD
1611 $as_echo_n "(cached) " >&6
1612fi
1613eval ac_res=\$$3
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1615$as_echo "$ac_res" >&6; }
1616else
1617 # Is the header compilable?
1618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1619$as_echo_n "checking $2 usability... " >&6; }
1620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621/* end confdefs.h. */
1622$4
1623#include <$2>
1624_ACEOF
1625if ac_fn_c_try_compile "$LINENO"; then :
1626 ac_header_compiler=yes
1627else
1628 ac_header_compiler=no
1629fi
1630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1632$as_echo "$ac_header_compiler" >&6; }
1633
1634# Is the header present?
1635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1636$as_echo_n "checking $2 presence... " >&6; }
1637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638/* end confdefs.h. */
1639#include <$2>
1640_ACEOF
1641if ac_fn_c_try_cpp "$LINENO"; then :
1642 ac_header_preproc=yes
1643else
1644 ac_header_preproc=no
1645fi
d0ac1c44 1646rm -f conftest.err conftest.i conftest.$ac_ext
4f8d4a38
DD
1647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1648$as_echo "$ac_header_preproc" >&6; }
1649
1650# So? What about this header?
1651case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1652 yes:no: )
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1654$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1656$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1657 ;;
1658 no:yes:* )
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1660$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1662$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1664$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1666$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1668$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1669 ;;
1670esac
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1673if eval \${$3+:} false; then :
4f8d4a38
DD
1674 $as_echo_n "(cached) " >&6
1675else
1676 eval "$3=\$ac_header_compiler"
1677fi
1678eval ac_res=\$$3
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680$as_echo "$ac_res" >&6; }
1681fi
d0ac1c44 1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
4f8d4a38
DD
1683
1684} # ac_fn_c_check_header_mongrel
1685
1686# ac_fn_c_try_run LINENO
1687# ----------------------
1688# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1689# that executables *can* be run.
1690ac_fn_c_try_run ()
1691{
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 if { { ac_try="$ac_link"
1694case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_link") 2>&5
1701 ac_status=$?
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1704 { { case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707esac
1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709$as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_try") 2>&5
1711 ac_status=$?
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; }; }; then :
1714 ac_retval=0
1715else
1716 $as_echo "$as_me: program exited with status $ac_status" >&5
1717 $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=$ac_status
1721fi
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 as_fn_set_status $ac_retval
4f8d4a38
DD
1725
1726} # ac_fn_c_try_run
1727
1728# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1729# -------------------------------------------------------
1730# Tests whether HEADER exists and can be compiled using the include files in
1731# INCLUDES, setting the cache variable VAR accordingly.
1732ac_fn_c_check_header_compile ()
1733{
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1737if eval \${$3+:} false; then :
4f8d4a38
DD
1738 $as_echo_n "(cached) " >&6
1739else
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741/* end confdefs.h. */
1742$4
1743#include <$2>
1744_ACEOF
1745if ac_fn_c_try_compile "$LINENO"; then :
1746 eval "$3=yes"
1747else
1748 eval "$3=no"
1749fi
1750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751fi
1752eval ac_res=\$$3
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754$as_echo "$ac_res" >&6; }
d0ac1c44 1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
4f8d4a38
DD
1756
1757} # ac_fn_c_check_header_compile
1758
1759# ac_fn_c_try_link LINENO
1760# -----------------------
1761# Try to link conftest.$ac_ext, and return whether this succeeded.
1762ac_fn_c_try_link ()
1763{
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 rm -f conftest.$ac_objext conftest$ac_exeext
1766 if { { ac_try="$ac_link"
1767case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770esac
1771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772$as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_link") 2>conftest.err
1774 ac_status=$?
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1779 fi
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && {
1782 test -z "$ac_c_werror_flag" ||
1783 test ! -s conftest.err
1784 } && test -s conftest$ac_exeext && {
1785 test "$cross_compiling" = yes ||
d0ac1c44 1786 test -x conftest$ac_exeext
4f8d4a38
DD
1787 }; then :
1788 ac_retval=0
1789else
1790 $as_echo "$as_me: failed program was:" >&5
1791sed 's/^/| /' conftest.$ac_ext >&5
1792
1793 ac_retval=1
1794fi
1795 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1796 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1797 # interfere with the next link command; also delete a directory that is
1798 # left behind by Apple's compiler. We do this before executing the actions.
1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 as_fn_set_status $ac_retval
4f8d4a38
DD
1802
1803} # ac_fn_c_try_link
1804
1805# ac_fn_c_check_func LINENO FUNC VAR
1806# ----------------------------------
1807# Tests whether FUNC exists, setting the cache variable VAR accordingly
1808ac_fn_c_check_func ()
1809{
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1813if eval \${$3+:} false; then :
4f8d4a38
DD
1814 $as_echo_n "(cached) " >&6
1815else
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h. */
1818/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1820#define $2 innocuous_$2
1821
1822/* System header to define __stub macros and hopefully few prototypes,
1823 which can conflict with char $2 (); below.
1824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1825 <limits.h> exists even on freestanding compilers. */
1826
1827#ifdef __STDC__
1828# include <limits.h>
1829#else
1830# include <assert.h>
1831#endif
1832
1833#undef $2
1834
1835/* Override any GCC internal prototype to avoid an error.
1836 Use char because int might match the return type of a GCC
1837 builtin and then its argument prototype would still apply. */
1838#ifdef __cplusplus
1839extern "C"
1840#endif
1841char $2 ();
1842/* The GNU C library defines this for functions which it implements
1843 to always fail with ENOSYS. Some functions are actually named
1844 something starting with __ and the normal name is an alias. */
1845#if defined __stub_$2 || defined __stub___$2
1846choke me
1847#endif
1848
1849int
1850main ()
1851{
1852return $2 ();
1853 ;
1854 return 0;
1855}
1856_ACEOF
1857if ac_fn_c_try_link "$LINENO"; then :
1858 eval "$3=yes"
1859else
1860 eval "$3=no"
1861fi
1862rm -f core conftest.err conftest.$ac_objext \
1863 conftest$ac_exeext conftest.$ac_ext
1864fi
1865eval ac_res=\$$3
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867$as_echo "$ac_res" >&6; }
d0ac1c44 1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
4f8d4a38
DD
1869
1870} # ac_fn_c_check_func
1871cat >config.log <<_ACEOF
1872This file contains any messages produced by compilers while
1873running configure, to aid debugging if configure makes a mistake.
1874
1875It was created by $as_me, which was
d0ac1c44 1876generated by GNU Autoconf 2.69. Invocation command line was
4f8d4a38
DD
1877
1878 $ $0 $@
1879
1880_ACEOF
1881exec 5>>config.log
1882{
1883cat <<_ASUNAME
1884## --------- ##
1885## Platform. ##
1886## --------- ##
1887
1888hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1889uname -m = `(uname -m) 2>/dev/null || echo unknown`
1890uname -r = `(uname -r) 2>/dev/null || echo unknown`
1891uname -s = `(uname -s) 2>/dev/null || echo unknown`
1892uname -v = `(uname -v) 2>/dev/null || echo unknown`
1893
1894/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1895/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1896
1897/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1898/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1899/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1900/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1901/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1902/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1903/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1904
1905_ASUNAME
1906
1907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908for as_dir in $PATH
1909do
1910 IFS=$as_save_IFS
1911 test -z "$as_dir" && as_dir=.
1912 $as_echo "PATH: $as_dir"
1913 done
1914IFS=$as_save_IFS
1915
1916} >&5
1917
1918cat >&5 <<_ACEOF
1919
1920
1921## ----------- ##
1922## Core tests. ##
1923## ----------- ##
1924
1925_ACEOF
1926
1927
1928# Keep a trace of the command line.
1929# Strip out --no-create and --no-recursion so they do not pile up.
1930# Strip out --silent because we don't want to record it for future runs.
1931# Also quote any args containing shell meta-characters.
1932# Make two passes to allow for proper duplicate-argument suppression.
1933ac_configure_args=
1934ac_configure_args0=
1935ac_configure_args1=
1936ac_must_keep_next=false
1937for ac_pass in 1 2
1938do
1939 for ac_arg
1940 do
1941 case $ac_arg in
1942 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1944 | -silent | --silent | --silen | --sile | --sil)
1945 continue ;;
1946 *\'*)
1947 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1948 esac
1949 case $ac_pass in
1950 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1951 2)
1952 as_fn_append ac_configure_args1 " '$ac_arg'"
1953 if test $ac_must_keep_next = true; then
1954 ac_must_keep_next=false # Got value, back to normal.
1955 else
1956 case $ac_arg in
1957 *=* | --config-cache | -C | -disable-* | --disable-* \
1958 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1959 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1960 | -with-* | --with-* | -without-* | --without-* | --x)
1961 case "$ac_configure_args0 " in
1962 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1963 esac
1964 ;;
1965 -* ) ac_must_keep_next=true ;;
1966 esac
1967 fi
1968 as_fn_append ac_configure_args " '$ac_arg'"
1969 ;;
1970 esac
1971 done
1972done
1973{ ac_configure_args0=; unset ac_configure_args0;}
1974{ ac_configure_args1=; unset ac_configure_args1;}
1975
1976# When interrupted or exit'd, cleanup temporary files, and complete
1977# config.log. We remove comments because anyway the quotes in there
1978# would cause problems or look ugly.
1979# WARNING: Use '\'' to represent an apostrophe within the trap.
1980# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1981trap 'exit_status=$?
1982 # Save into config.log some information that might help in debugging.
1983 {
1984 echo
1985
d0ac1c44 1986 $as_echo "## ---------------- ##
4f8d4a38 1987## Cache variables. ##
d0ac1c44 1988## ---------------- ##"
4f8d4a38
DD
1989 echo
1990 # The following way of writing the cache mishandles newlines in values,
1991(
1992 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1993 eval ac_val=\$$ac_var
1994 case $ac_val in #(
1995 *${as_nl}*)
1996 case $ac_var in #(
1997 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1998$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1999 esac
2000 case $ac_var in #(
2001 _ | IFS | as_nl) ;; #(
2002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2003 *) { eval $ac_var=; unset $ac_var;} ;;
2004 esac ;;
2005 esac
2006 done
2007 (set) 2>&1 |
2008 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2009 *${as_nl}ac_space=\ *)
2010 sed -n \
2011 "s/'\''/'\''\\\\'\'''\''/g;
2012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2013 ;; #(
2014 *)
2015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2016 ;;
2017 esac |
2018 sort
2019)
2020 echo
2021
d0ac1c44 2022 $as_echo "## ----------------- ##
4f8d4a38 2023## Output variables. ##
d0ac1c44 2024## ----------------- ##"
4f8d4a38
DD
2025 echo
2026 for ac_var in $ac_subst_vars
2027 do
2028 eval ac_val=\$$ac_var
2029 case $ac_val in
2030 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031 esac
2032 $as_echo "$ac_var='\''$ac_val'\''"
2033 done | sort
2034 echo
2035
2036 if test -n "$ac_subst_files"; then
d0ac1c44 2037 $as_echo "## ------------------- ##
4f8d4a38 2038## File substitutions. ##
d0ac1c44 2039## ------------------- ##"
4f8d4a38
DD
2040 echo
2041 for ac_var in $ac_subst_files
2042 do
2043 eval ac_val=\$$ac_var
2044 case $ac_val in
2045 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046 esac
2047 $as_echo "$ac_var='\''$ac_val'\''"
2048 done | sort
2049 echo
2050 fi
2051
2052 if test -s confdefs.h; then
136da8cd
MF
2053 $as_echo "## ----------- ##
2054## confdefs.h. ##
2055## ----------- ##"
2056 echo
2057 cat confdefs.h
2058 echo
2059 fi
2060 test "$ac_signal" != 0 &&
2061 $as_echo "$as_me: caught signal $ac_signal"
2062 $as_echo "$as_me: exit $exit_status"
2063 } >&5
2064 rm -f core *.core core.conftest.* &&
2065 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2066 exit $exit_status
2067' 0
2068for ac_signal in 1 2 13 15; do
2069 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2070done
2071ac_signal=0
6bb11ab3 2072
136da8cd
MF
2073# confdefs.h avoids OS command line length limits that DEFS can exceed.
2074rm -f -r conftest* confdefs.h
6bb11ab3 2075
136da8cd 2076$as_echo "/* confdefs.h */" > confdefs.h
6bb11ab3 2077
136da8cd 2078# Predefined preprocessor variables.
6bb11ab3 2079
136da8cd
MF
2080cat >>confdefs.h <<_ACEOF
2081#define PACKAGE_NAME "$PACKAGE_NAME"
2082_ACEOF
6bb11ab3 2083
136da8cd
MF
2084cat >>confdefs.h <<_ACEOF
2085#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2086_ACEOF
6bb11ab3 2087
136da8cd
MF
2088cat >>confdefs.h <<_ACEOF
2089#define PACKAGE_VERSION "$PACKAGE_VERSION"
2090_ACEOF
6bb11ab3 2091
136da8cd
MF
2092cat >>confdefs.h <<_ACEOF
2093#define PACKAGE_STRING "$PACKAGE_STRING"
2094_ACEOF
6bb11ab3 2095
136da8cd
MF
2096cat >>confdefs.h <<_ACEOF
2097#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2098_ACEOF
6bb11ab3 2099
136da8cd
MF
2100cat >>confdefs.h <<_ACEOF
2101#define PACKAGE_URL "$PACKAGE_URL"
2102_ACEOF
6bb11ab3
L
2103
2104
136da8cd
MF
2105# Let the site file select an alternate cache file if it wants to.
2106# Prefer an explicitly selected file to automatically selected ones.
2107ac_site_file1=NONE
2108ac_site_file2=NONE
2109if test -n "$CONFIG_SITE"; then
2110 # We do not want a PATH search for config.site.
2111 case $CONFIG_SITE in #((
2112 -*) ac_site_file1=./$CONFIG_SITE;;
2113 */*) ac_site_file1=$CONFIG_SITE;;
2114 *) ac_site_file1=./$CONFIG_SITE;;
2115 esac
2116elif test "x$prefix" != xNONE; then
2117 ac_site_file1=$prefix/share/config.site
2118 ac_site_file2=$prefix/etc/config.site
2119else
2120 ac_site_file1=$ac_default_prefix/share/config.site
2121 ac_site_file2=$ac_default_prefix/etc/config.site
2122fi
2123for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2124do
2125 test "x$ac_site_file" = xNONE && continue
2126 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2128$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2129 sed 's/^/| /' "$ac_site_file" >&5
2130 . "$ac_site_file" \
2131 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2133as_fn_error $? "failed to load site script $ac_site_file
2134See \`config.log' for more details" "$LINENO" 5; }
2135 fi
2136done
6bb11ab3 2137
136da8cd
MF
2138if test -r "$cache_file"; then
2139 # Some versions of bash will fail to source /dev/null (special files
2140 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2141 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2143$as_echo "$as_me: loading cache $cache_file" >&6;}
2144 case $cache_file in
2145 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2146 *) . "./$cache_file";;
2147 esac
2148 fi
2149else
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2151$as_echo "$as_me: creating cache $cache_file" >&6;}
2152 >$cache_file
2153fi
6bb11ab3 2154
136da8cd
MF
2155# Check that the precious variables saved in the cache have kept the same
2156# value.
2157ac_cache_corrupted=false
2158for ac_var in $ac_precious_vars; do
2159 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2160 eval ac_new_set=\$ac_env_${ac_var}_set
2161 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2162 eval ac_new_val=\$ac_env_${ac_var}_value
2163 case $ac_old_set,$ac_new_set in
2164 set,)
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2166$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2167 ac_cache_corrupted=: ;;
2168 ,set)
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2170$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2171 ac_cache_corrupted=: ;;
2172 ,);;
2173 *)
2174 if test "x$ac_old_val" != "x$ac_new_val"; then
2175 # differences in whitespace do not lead to failure.
2176 ac_old_val_w=`echo x $ac_old_val`
2177 ac_new_val_w=`echo x $ac_new_val`
2178 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2180$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2181 ac_cache_corrupted=:
2182 else
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2184$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2185 eval $ac_var=\$ac_old_val
2186 fi
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2188$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2190$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2191 fi;;
2192 esac
2193 # Pass precious variables to config.status.
2194 if test "$ac_new_set" = set; then
2195 case $ac_new_val in
2196 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2197 *) ac_arg=$ac_var=$ac_new_val ;;
2198 esac
2199 case " $ac_configure_args " in
2200 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2201 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2202 esac
2203 fi
2204done
2205if $ac_cache_corrupted; then
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2209$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2210 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2211fi
2212## -------------------- ##
2213## Main body of script. ##
2214## -------------------- ##
6bb11ab3 2215
136da8cd
MF
2216ac_ext=c
2217ac_cpp='$CPP $CPPFLAGS'
2218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2220ac_compiler_gnu=$ac_cv_c_compiler_gnu
6bb11ab3
L
2221
2222
2223
2224
2225
2226
2227
c2783492
MF
2228ac_aux_dir=
2229for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2230 if test -f "$ac_dir/install-sh"; then
2231 ac_aux_dir=$ac_dir
2232 ac_install_sh="$ac_aux_dir/install-sh -c"
2233 break
2234 elif test -f "$ac_dir/install.sh"; then
2235 ac_aux_dir=$ac_dir
2236 ac_install_sh="$ac_aux_dir/install.sh -c"
2237 break
2238 elif test -f "$ac_dir/shtool"; then
2239 ac_aux_dir=$ac_dir
2240 ac_install_sh="$ac_aux_dir/shtool install -c"
2241 break
2242 fi
2243done
2244if test -z "$ac_aux_dir"; then
2245 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2246fi
2247
2248# These three variables are undocumented and unsupported,
2249# and are intended to be withdrawn in a future Autoconf release.
2250# They can cause serious problems if a builder's source tree is in a directory
2251# whose full name contains unusual characters.
2252ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2253ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2254ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2255
2256
2257# Make sure we can run config.sub.
2258$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2259 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2260
2261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2262$as_echo_n "checking build system type... " >&6; }
2263if ${ac_cv_build+:} false; then :
2264 $as_echo_n "(cached) " >&6
2265else
2266 ac_build_alias=$build_alias
2267test "x$ac_build_alias" = x &&
2268 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2269test "x$ac_build_alias" = x &&
2270 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2271ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2272 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2273
2274fi
2275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2276$as_echo "$ac_cv_build" >&6; }
2277case $ac_cv_build in
2278*-*-*) ;;
2279*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2280esac
2281build=$ac_cv_build
2282ac_save_IFS=$IFS; IFS='-'
2283set x $ac_cv_build
2284shift
2285build_cpu=$1
2286build_vendor=$2
2287shift; shift
2288# Remember, the first character of IFS is used to create $*,
2289# except with old shells:
2290build_os=$*
2291IFS=$ac_save_IFS
2292case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2293
2294
2295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2296$as_echo_n "checking host system type... " >&6; }
2297if ${ac_cv_host+:} false; then :
2298 $as_echo_n "(cached) " >&6
2299else
2300 if test "x$host_alias" = x; then
2301 ac_cv_host=$ac_cv_build
2302else
2303 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2304 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2305fi
2306
2307fi
2308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2309$as_echo "$ac_cv_host" >&6; }
2310case $ac_cv_host in
2311*-*-*) ;;
2312*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2313esac
2314host=$ac_cv_host
2315ac_save_IFS=$IFS; IFS='-'
2316set x $ac_cv_host
2317shift
2318host_cpu=$1
2319host_vendor=$2
2320shift; shift
2321# Remember, the first character of IFS is used to create $*,
2322# except with old shells:
2323host_os=$*
2324IFS=$ac_save_IFS
2325case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2326
2327
2328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2329$as_echo_n "checking target system type... " >&6; }
2330if ${ac_cv_target+:} false; then :
2331 $as_echo_n "(cached) " >&6
2332else
2333 if test "x$target_alias" = x; then
2334 ac_cv_target=$ac_cv_host
2335else
2336 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2337 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2338fi
2339
2340fi
2341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2342$as_echo "$ac_cv_target" >&6; }
2343case $ac_cv_target in
2344*-*-*) ;;
2345*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2346esac
2347target=$ac_cv_target
2348ac_save_IFS=$IFS; IFS='-'
2349set x $ac_cv_target
2350shift
2351target_cpu=$1
2352target_vendor=$2
2353shift; shift
2354# Remember, the first character of IFS is used to create $*,
2355# except with old shells:
2356target_os=$*
2357IFS=$ac_save_IFS
2358case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2359
2360
2361# The aliases save the names the user supplied, while $host etc.
2362# will get canonicalized.
2363test -n "$target_alias" &&
2364 test "$program_prefix$program_suffix$program_transform_name" = \
2365 NONENONEs,x,x, &&
2366 program_prefix=${target_alias}-
6bb11ab3
L
2367ac_ext=c
2368ac_cpp='$CPP $CPPFLAGS'
2369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2371ac_compiler_gnu=$ac_cv_c_compiler_gnu
2372if test -n "$ac_tool_prefix"; then
2373 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2374set dummy ${ac_tool_prefix}gcc; ac_word=$2
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2376$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2377if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2378 $as_echo_n "(cached) " >&6
2379else
2380 if test -n "$CC"; then
2381 ac_cv_prog_CC="$CC" # Let the user override the test.
2382else
2383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384for as_dir in $PATH
2385do
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2390 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 break 2
2393 fi
2394done
2395 done
2396IFS=$as_save_IFS
2397
2398fi
2399fi
2400CC=$ac_cv_prog_CC
2401if test -n "$CC"; then
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2403$as_echo "$CC" >&6; }
2404else
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2406$as_echo "no" >&6; }
2407fi
2408
2409
2410fi
2411if test -z "$ac_cv_prog_CC"; then
2412 ac_ct_CC=$CC
2413 # Extract the first word of "gcc", so it can be a program name with args.
2414set dummy gcc; ac_word=$2
2415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2416$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2417if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
2418 $as_echo_n "(cached) " >&6
2419else
2420 if test -n "$ac_ct_CC"; then
2421 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2422else
2423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424for as_dir in $PATH
2425do
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2430 ac_cv_prog_ac_ct_CC="gcc"
2431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 break 2
2433 fi
2434done
2435 done
2436IFS=$as_save_IFS
2437
2438fi
2439fi
2440ac_ct_CC=$ac_cv_prog_ac_ct_CC
2441if test -n "$ac_ct_CC"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2443$as_echo "$ac_ct_CC" >&6; }
2444else
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2446$as_echo "no" >&6; }
2447fi
2448
2449 if test "x$ac_ct_CC" = x; then
2450 CC=""
2451 else
2452 case $cross_compiling:$ac_tool_warned in
2453yes:)
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2456ac_tool_warned=yes ;;
2457esac
2458 CC=$ac_ct_CC
2459 fi
2460else
2461 CC="$ac_cv_prog_CC"
2462fi
2463
2464if test -z "$CC"; then
2465 if test -n "$ac_tool_prefix"; then
2466 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2467set dummy ${ac_tool_prefix}cc; ac_word=$2
2468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2469$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2470if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2471 $as_echo_n "(cached) " >&6
2472else
2473 if test -n "$CC"; then
2474 ac_cv_prog_CC="$CC" # Let the user override the test.
2475else
2476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477for as_dir in $PATH
2478do
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2483 ac_cv_prog_CC="${ac_tool_prefix}cc"
2484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 break 2
2486 fi
2487done
2488 done
2489IFS=$as_save_IFS
2490
2491fi
2492fi
2493CC=$ac_cv_prog_CC
2494if test -n "$CC"; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2496$as_echo "$CC" >&6; }
2497else
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2499$as_echo "no" >&6; }
2500fi
2501
2502
2503 fi
2504fi
2505if test -z "$CC"; then
2506 # Extract the first word of "cc", so it can be a program name with args.
2507set dummy cc; ac_word=$2
2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2509$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2510if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2511 $as_echo_n "(cached) " >&6
2512else
2513 if test -n "$CC"; then
2514 ac_cv_prog_CC="$CC" # Let the user override the test.
2515else
2516 ac_prog_rejected=no
2517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518for as_dir in $PATH
2519do
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2524 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2525 ac_prog_rejected=yes
2526 continue
2527 fi
2528 ac_cv_prog_CC="cc"
2529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 break 2
2531 fi
2532done
2533 done
2534IFS=$as_save_IFS
2535
2536if test $ac_prog_rejected = yes; then
2537 # We found a bogon in the path, so make sure we never use it.
2538 set dummy $ac_cv_prog_CC
2539 shift
2540 if test $# != 0; then
2541 # We chose a different compiler from the bogus one.
2542 # However, it has the same basename, so the bogon will be chosen
2543 # first if we set CC to just the basename; use the full file name.
2544 shift
2545 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2546 fi
2547fi
2548fi
2549fi
2550CC=$ac_cv_prog_CC
2551if test -n "$CC"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2553$as_echo "$CC" >&6; }
2554else
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2556$as_echo "no" >&6; }
2557fi
2558
2559
2560fi
2561if test -z "$CC"; then
2562 if test -n "$ac_tool_prefix"; then
2563 for ac_prog in cl.exe
2564 do
2565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2566set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2569if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2570 $as_echo_n "(cached) " >&6
2571else
2572 if test -n "$CC"; then
2573 ac_cv_prog_CC="$CC" # Let the user override the test.
2574else
2575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH
2577do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2582 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2585 fi
2586done
2587 done
2588IFS=$as_save_IFS
2589
2590fi
2591fi
2592CC=$ac_cv_prog_CC
2593if test -n "$CC"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2595$as_echo "$CC" >&6; }
2596else
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598$as_echo "no" >&6; }
2599fi
2600
2601
2602 test -n "$CC" && break
2603 done
2604fi
2605if test -z "$CC"; then
2606 ac_ct_CC=$CC
2607 for ac_prog in cl.exe
2608do
2609 # Extract the first word of "$ac_prog", so it can be a program name with args.
2610set dummy $ac_prog; ac_word=$2
2611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2612$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2613if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
2614 $as_echo_n "(cached) " >&6
2615else
2616 if test -n "$ac_ct_CC"; then
2617 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2618else
2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620for as_dir in $PATH
2621do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2626 ac_cv_prog_ac_ct_CC="$ac_prog"
2627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2629 fi
2630done
2631 done
2632IFS=$as_save_IFS
2633
2634fi
2635fi
2636ac_ct_CC=$ac_cv_prog_ac_ct_CC
2637if test -n "$ac_ct_CC"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2639$as_echo "$ac_ct_CC" >&6; }
2640else
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642$as_echo "no" >&6; }
2643fi
2644
2645
2646 test -n "$ac_ct_CC" && break
2647done
2648
2649 if test "x$ac_ct_CC" = x; then
2650 CC=""
2651 else
2652 case $cross_compiling:$ac_tool_warned in
2653yes:)
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2656ac_tool_warned=yes ;;
2657esac
2658 CC=$ac_ct_CC
2659 fi
2660fi
2661
2662fi
2663
2664
2665test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2666$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2667as_fn_error $? "no acceptable C compiler found in \$PATH
2668See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
2669
2670# Provide some information about the compiler.
2671$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2672set X $ac_compile
2673ac_compiler=$2
2674for ac_option in --version -v -V -qversion; do
2675 { { ac_try="$ac_compiler $ac_option >&5"
2676case "(($ac_try" in
2677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678 *) ac_try_echo=$ac_try;;
2679esac
2680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2681$as_echo "$ac_try_echo"; } >&5
2682 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2683 ac_status=$?
2684 if test -s conftest.err; then
2685 sed '10a\
2686... rest of stderr output deleted ...
2687 10q' conftest.err >conftest.er1
2688 cat conftest.er1 >&5
6bb11ab3 2689 fi
d0ac1c44 2690 rm -f conftest.er1 conftest.err
6bb11ab3
L
2691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2692 test $ac_status = 0; }
2693done
2694
2695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2696/* end confdefs.h. */
2697
2698int
2699main ()
2700{
2701
2702 ;
2703 return 0;
2704}
2705_ACEOF
2706ac_clean_files_save=$ac_clean_files
d0ac1c44 2707ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6bb11ab3
L
2708# Try to create an executable without -o first, disregard a.out.
2709# It will help us diagnose broken compilers, and finding out an intuition
2710# of exeext.
d0ac1c44
SM
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2712$as_echo_n "checking whether the C compiler works... " >&6; }
6bb11ab3
L
2713ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2714
2715# The possible output files:
2716ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2717
2718ac_rmfiles=
2719for ac_file in $ac_files
2720do
2721 case $ac_file in
2722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2723 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2724 esac
2725done
2726rm -f $ac_rmfiles
2727
2728if { { ac_try="$ac_link_default"
2729case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2732esac
2733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2734$as_echo "$ac_try_echo"; } >&5
2735 (eval "$ac_link_default") 2>&5
2736 ac_status=$?
2737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2738 test $ac_status = 0; }; then :
2739 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2740# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2741# in a Makefile. We should not override ac_cv_exeext if it was cached,
2742# so that the user can short-circuit this test for compilers unknown to
2743# Autoconf.
2744for ac_file in $ac_files ''
2745do
2746 test -f "$ac_file" || continue
2747 case $ac_file in
2748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2749 ;;
2750 [ab].out )
2751 # We found the default executable, but exeext='' is most
2752 # certainly right.
2753 break;;
2754 *.* )
2755 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2756 then :; else
2757 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2758 fi
2759 # We set ac_cv_exeext here because the later test for it is not
2760 # safe: cross compilers may not add the suffix if given an `-o'
2761 # argument, so we may need to know it at that point already.
2762 # Even if this section looks crufty: it has the advantage of
2763 # actually working.
2764 break;;
2765 * )
2766 break;;
2767 esac
2768done
2769test "$ac_cv_exeext" = no && ac_cv_exeext=
2770
2771else
2772 ac_file=''
2773fi
6bb11ab3 2774if test -z "$ac_file"; then :
d0ac1c44
SM
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776$as_echo "no" >&6; }
2777$as_echo "$as_me: failed program was:" >&5
6bb11ab3
L
2778sed 's/^/| /' conftest.$ac_ext >&5
2779
2780{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2782as_fn_error 77 "C compiler cannot create executables
2783See \`config.log' for more details" "$LINENO" 5; }
2784else
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2786$as_echo "yes" >&6; }
6bb11ab3 2787fi
d0ac1c44
SM
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2789$as_echo_n "checking for C compiler default output file name... " >&6; }
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2791$as_echo "$ac_file" >&6; }
6bb11ab3
L
2792ac_exeext=$ac_cv_exeext
2793
d0ac1c44 2794rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6bb11ab3 2795ac_clean_files=$ac_clean_files_save
6bb11ab3
L
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2797$as_echo_n "checking for suffix of executables... " >&6; }
2798if { { ac_try="$ac_link"
2799case "(($ac_try" in
2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2802esac
2803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2804$as_echo "$ac_try_echo"; } >&5
2805 (eval "$ac_link") 2>&5
2806 ac_status=$?
2807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2808 test $ac_status = 0; }; then :
2809 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2810# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2811# work properly (i.e., refer to `conftest.exe'), while it won't with
2812# `rm'.
2813for ac_file in conftest.exe conftest conftest.*; do
2814 test -f "$ac_file" || continue
2815 case $ac_file in
2816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2817 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2818 break;;
2819 * ) break;;
2820 esac
2821done
2822else
2823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2825as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2826See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3 2827fi
d0ac1c44 2828rm -f conftest conftest$ac_cv_exeext
6bb11ab3
L
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2830$as_echo "$ac_cv_exeext" >&6; }
2831
2832rm -f conftest.$ac_ext
2833EXEEXT=$ac_cv_exeext
2834ac_exeext=$EXEEXT
d0ac1c44
SM
2835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2836/* end confdefs.h. */
2837#include <stdio.h>
2838int
2839main ()
2840{
2841FILE *f = fopen ("conftest.out", "w");
2842 return ferror (f) || fclose (f) != 0;
2843
2844 ;
2845 return 0;
2846}
2847_ACEOF
2848ac_clean_files="$ac_clean_files conftest.out"
2849# Check that the compiler produces executables we can run. If not, either
2850# the compiler is broken, or we cross compile.
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2852$as_echo_n "checking whether we are cross compiling... " >&6; }
2853if test "$cross_compiling" != yes; then
2854 { { ac_try="$ac_link"
2855case "(($ac_try" in
2856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2857 *) ac_try_echo=$ac_try;;
2858esac
2859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2860$as_echo "$ac_try_echo"; } >&5
2861 (eval "$ac_link") 2>&5
2862 ac_status=$?
2863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2864 test $ac_status = 0; }
2865 if { ac_try='./conftest$ac_cv_exeext'
2866 { { case "(($ac_try" in
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2869esac
2870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2871$as_echo "$ac_try_echo"; } >&5
2872 (eval "$ac_try") 2>&5
2873 ac_status=$?
2874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2875 test $ac_status = 0; }; }; then
2876 cross_compiling=no
2877 else
2878 if test "$cross_compiling" = maybe; then
2879 cross_compiling=yes
2880 else
2881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2882$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2883as_fn_error $? "cannot run C compiled programs.
2884If you meant to cross compile, use \`--host'.
2885See \`config.log' for more details" "$LINENO" 5; }
2886 fi
2887 fi
2888fi
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2890$as_echo "$cross_compiling" >&6; }
2891
2892rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2893ac_clean_files=$ac_clean_files_save
6bb11ab3
L
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2895$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 2896if ${ac_cv_objext+:} false; then :
6bb11ab3
L
2897 $as_echo_n "(cached) " >&6
2898else
2899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2900/* end confdefs.h. */
2901
2902int
2903main ()
2904{
2905
2906 ;
2907 return 0;
2908}
2909_ACEOF
2910rm -f conftest.o conftest.obj
2911if { { ac_try="$ac_compile"
2912case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915esac
2916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2917$as_echo "$ac_try_echo"; } >&5
2918 (eval "$ac_compile") 2>&5
2919 ac_status=$?
2920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2921 test $ac_status = 0; }; then :
2922 for ac_file in conftest.o conftest.obj conftest.*; do
2923 test -f "$ac_file" || continue;
2924 case $ac_file in
2925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2926 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2927 break;;
2928 esac
2929done
2930else
2931 $as_echo "$as_me: failed program was:" >&5
2932sed 's/^/| /' conftest.$ac_ext >&5
2933
2934{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2936as_fn_error $? "cannot compute suffix of object files: cannot compile
2937See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
2938fi
2939rm -f conftest.$ac_cv_objext conftest.$ac_ext
2940fi
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2942$as_echo "$ac_cv_objext" >&6; }
2943OBJEXT=$ac_cv_objext
2944ac_objext=$OBJEXT
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2946$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 2947if ${ac_cv_c_compiler_gnu+:} false; then :
6bb11ab3
L
2948 $as_echo_n "(cached) " >&6
2949else
2950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2951/* end confdefs.h. */
2952
2953int
2954main ()
2955{
2956#ifndef __GNUC__
2957 choke me
2958#endif
2959
2960 ;
2961 return 0;
2962}
2963_ACEOF
2964if ac_fn_c_try_compile "$LINENO"; then :
2965 ac_compiler_gnu=yes
2966else
2967 ac_compiler_gnu=no
2968fi
2969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970ac_cv_c_compiler_gnu=$ac_compiler_gnu
2971
2972fi
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2974$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2975if test $ac_compiler_gnu = yes; then
2976 GCC=yes
2977else
2978 GCC=
2979fi
2980ac_test_CFLAGS=${CFLAGS+set}
2981ac_save_CFLAGS=$CFLAGS
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2983$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 2984if ${ac_cv_prog_cc_g+:} false; then :
6bb11ab3
L
2985 $as_echo_n "(cached) " >&6
2986else
2987 ac_save_c_werror_flag=$ac_c_werror_flag
2988 ac_c_werror_flag=yes
2989 ac_cv_prog_cc_g=no
2990 CFLAGS="-g"
2991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992/* end confdefs.h. */
2993
2994int
2995main ()
2996{
2997
2998 ;
2999 return 0;
3000}
3001_ACEOF
3002if ac_fn_c_try_compile "$LINENO"; then :
3003 ac_cv_prog_cc_g=yes
3004else
3005 CFLAGS=""
3006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3007/* end confdefs.h. */
3008
3009int
3010main ()
3011{
3012
3013 ;
3014 return 0;
3015}
3016_ACEOF
3017if ac_fn_c_try_compile "$LINENO"; then :
3018
3019else
3020 ac_c_werror_flag=$ac_save_c_werror_flag
3021 CFLAGS="-g"
3022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3023/* end confdefs.h. */
3024
3025int
3026main ()
3027{
3028
3029 ;
3030 return 0;
3031}
3032_ACEOF
3033if ac_fn_c_try_compile "$LINENO"; then :
3034 ac_cv_prog_cc_g=yes
3035fi
3036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037fi
3038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3039fi
3040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3041 ac_c_werror_flag=$ac_save_c_werror_flag
3042fi
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3044$as_echo "$ac_cv_prog_cc_g" >&6; }
3045if test "$ac_test_CFLAGS" = set; then
3046 CFLAGS=$ac_save_CFLAGS
3047elif test $ac_cv_prog_cc_g = yes; then
3048 if test "$GCC" = yes; then
3049 CFLAGS="-g -O2"
3050 else
3051 CFLAGS="-g"
3052 fi
3053else
3054 if test "$GCC" = yes; then
3055 CFLAGS="-O2"
3056 else
3057 CFLAGS=
3058 fi
3059fi
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3061$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3062if ${ac_cv_prog_cc_c89+:} false; then :
6bb11ab3
L
3063 $as_echo_n "(cached) " >&6
3064else
3065 ac_cv_prog_cc_c89=no
3066ac_save_CC=$CC
3067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3068/* end confdefs.h. */
3069#include <stdarg.h>
3070#include <stdio.h>
d0ac1c44 3071struct stat;
6bb11ab3
L
3072/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3073struct buf { int x; };
3074FILE * (*rcsopen) (struct buf *, struct stat *, int);
3075static char *e (p, i)
3076 char **p;
3077 int i;
3078{
3079 return p[i];
3080}
3081static char *f (char * (*g) (char **, int), char **p, ...)
3082{
3083 char *s;
3084 va_list v;
3085 va_start (v,p);
3086 s = g (p, va_arg (v,int));
3087 va_end (v);
3088 return s;
3089}
3090
3091/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3092 function prototypes and stuff, but not '\xHH' hex character constants.
3093 These don't provoke an error unfortunately, instead are silently treated
3094 as 'x'. The following induces an error, until -std is added to get
3095 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3096 array size at least. It's necessary to write '\x00'==0 to get something
3097 that's true only with -std. */
3098int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3099
3100/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3101 inside strings and character constants. */
3102#define FOO(x) 'x'
3103int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3104
3105int test (int i, double x);
3106struct s1 {int (*f) (int a);};
3107struct s2 {int (*f) (double a);};
3108int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3109int argc;
3110char **argv;
3111int
3112main ()
3113{
3114return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3115 ;
3116 return 0;
3117}
3118_ACEOF
3119for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3120 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3121do
3122 CC="$ac_save_CC $ac_arg"
3123 if ac_fn_c_try_compile "$LINENO"; then :
3124 ac_cv_prog_cc_c89=$ac_arg
3125fi
3126rm -f core conftest.err conftest.$ac_objext
3127 test "x$ac_cv_prog_cc_c89" != "xno" && break
3128done
3129rm -f conftest.$ac_ext
3130CC=$ac_save_CC
3131
3132fi
3133# AC_CACHE_VAL
3134case "x$ac_cv_prog_cc_c89" in
3135 x)
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3137$as_echo "none needed" >&6; } ;;
3138 xno)
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3140$as_echo "unsupported" >&6; } ;;
3141 *)
3142 CC="$CC $ac_cv_prog_cc_c89"
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3144$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3145esac
3146if test "x$ac_cv_prog_cc_c89" != xno; then :
3147
3148fi
3149
3150ac_ext=c
3151ac_cpp='$CPP $CPPFLAGS'
3152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3154ac_compiler_gnu=$ac_cv_c_compiler_gnu
3155
c2783492 3156
ebe9564b
MF
3157ac_ext=c
3158ac_cpp='$CPP $CPPFLAGS'
3159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161ac_compiler_gnu=$ac_cv_c_compiler_gnu
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3163$as_echo_n "checking how to run the C preprocessor... " >&6; }
3164# On Suns, sometimes $CPP names a directory.
3165if test -n "$CPP" && test -d "$CPP"; then
3166 CPP=
3167fi
3168if test -z "$CPP"; then
3169 if ${ac_cv_prog_CPP+:} false; then :
3170 $as_echo_n "(cached) " >&6
3171else
3172 # Double quotes because CPP needs to be expanded
3173 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3174 do
3175 ac_preproc_ok=false
3176for ac_c_preproc_warn_flag in '' yes
3177do
3178 # Use a header file that comes with gcc, so configuring glibc
3179 # with a fresh cross-compiler works.
3180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3181 # <limits.h> exists even on freestanding compilers.
3182 # On the NeXT, cc -E runs the code through the compiler's parser,
3183 # not just through cpp. "Syntax error" is here to catch this case.
3184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3185/* end confdefs.h. */
3186#ifdef __STDC__
3187# include <limits.h>
3188#else
3189# include <assert.h>
3190#endif
3191 Syntax error
3192_ACEOF
3193if ac_fn_c_try_cpp "$LINENO"; then :
3194
3195else
3196 # Broken: fails on valid input.
3197continue
3198fi
3199rm -f conftest.err conftest.i conftest.$ac_ext
3200
3201 # OK, works on sane cases. Now check whether nonexistent headers
3202 # can be detected and how.
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204/* end confdefs.h. */
3205#include <ac_nonexistent.h>
3206_ACEOF
3207if ac_fn_c_try_cpp "$LINENO"; then :
3208 # Broken: success on invalid input.
3209continue
3210else
3211 # Passes both tests.
3212ac_preproc_ok=:
3213break
3214fi
3215rm -f conftest.err conftest.i conftest.$ac_ext
3216
3217done
3218# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3219rm -f conftest.i conftest.err conftest.$ac_ext
3220if $ac_preproc_ok; then :
3221 break
3222fi
3223
3224 done
3225 ac_cv_prog_CPP=$CPP
3226
3227fi
3228 CPP=$ac_cv_prog_CPP
3229else
3230 ac_cv_prog_CPP=$CPP
3231fi
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3233$as_echo "$CPP" >&6; }
3234ac_preproc_ok=false
3235for ac_c_preproc_warn_flag in '' yes
3236do
3237 # Use a header file that comes with gcc, so configuring glibc
3238 # with a fresh cross-compiler works.
3239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3240 # <limits.h> exists even on freestanding compilers.
3241 # On the NeXT, cc -E runs the code through the compiler's parser,
3242 # not just through cpp. "Syntax error" is here to catch this case.
3243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3244/* end confdefs.h. */
3245#ifdef __STDC__
3246# include <limits.h>
3247#else
3248# include <assert.h>
3249#endif
3250 Syntax error
3251_ACEOF
3252if ac_fn_c_try_cpp "$LINENO"; then :
3253
3254else
3255 # Broken: fails on valid input.
3256continue
3257fi
3258rm -f conftest.err conftest.i conftest.$ac_ext
3259
3260 # OK, works on sane cases. Now check whether nonexistent headers
3261 # can be detected and how.
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263/* end confdefs.h. */
3264#include <ac_nonexistent.h>
3265_ACEOF
3266if ac_fn_c_try_cpp "$LINENO"; then :
3267 # Broken: success on invalid input.
3268continue
3269else
3270 # Passes both tests.
3271ac_preproc_ok=:
3272break
3273fi
3274rm -f conftest.err conftest.i conftest.$ac_ext
3275
3276done
3277# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3278rm -f conftest.i conftest.err conftest.$ac_ext
3279if $ac_preproc_ok; then :
3280
3281else
3282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3284as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3285See \`config.log' for more details" "$LINENO" 5; }
3286fi
3287
3288ac_ext=c
3289ac_cpp='$CPP $CPPFLAGS'
3290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292ac_compiler_gnu=$ac_cv_c_compiler_gnu
3293
6bb11ab3
L
3294
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3296$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 3297if ${ac_cv_path_GREP+:} false; then :
6bb11ab3
L
3298 $as_echo_n "(cached) " >&6
3299else
3300 if test -z "$GREP"; then
3301 ac_path_GREP_found=false
3302 # Loop through the user's path and test for each of PROGNAME-LIST
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3305do
3306 IFS=$as_save_IFS
3307 test -z "$as_dir" && as_dir=.
3308 for ac_prog in grep ggrep; do
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3311 as_fn_executable_p "$ac_path_GREP" || continue
6bb11ab3
L
3312# Check for GNU ac_path_GREP and select it if it is found.
3313 # Check for GNU $ac_path_GREP
3314case `"$ac_path_GREP" --version 2>&1` in
3315*GNU*)
3316 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3317*)
3318 ac_count=0
3319 $as_echo_n 0123456789 >"conftest.in"
3320 while :
3321 do
3322 cat "conftest.in" "conftest.in" >"conftest.tmp"
3323 mv "conftest.tmp" "conftest.in"
3324 cp "conftest.in" "conftest.nl"
3325 $as_echo 'GREP' >> "conftest.nl"
3326 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3328 as_fn_arith $ac_count + 1 && ac_count=$as_val
3329 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3330 # Best one so far, save it but keep looking for a better one
3331 ac_cv_path_GREP="$ac_path_GREP"
3332 ac_path_GREP_max=$ac_count
3333 fi
3334 # 10*(2^10) chars as input seems more than enough
3335 test $ac_count -gt 10 && break
3336 done
3337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3338esac
3339
3340 $ac_path_GREP_found && break 3
3341 done
3342 done
3343 done
3344IFS=$as_save_IFS
3345 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 3346 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
3347 fi
3348else
3349 ac_cv_path_GREP=$GREP
3350fi
3351
3352fi
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3354$as_echo "$ac_cv_path_GREP" >&6; }
3355 GREP="$ac_cv_path_GREP"
3356
3357
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3359$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 3360if ${ac_cv_path_EGREP+:} false; then :
6bb11ab3
L
3361 $as_echo_n "(cached) " >&6
3362else
3363 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3364 then ac_cv_path_EGREP="$GREP -E"
3365 else
3366 if test -z "$EGREP"; then
3367 ac_path_EGREP_found=false
3368 # Loop through the user's path and test for each of PROGNAME-LIST
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3371do
3372 IFS=$as_save_IFS
3373 test -z "$as_dir" && as_dir=.
3374 for ac_prog in egrep; do
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3377 as_fn_executable_p "$ac_path_EGREP" || continue
6bb11ab3
L
3378# Check for GNU ac_path_EGREP and select it if it is found.
3379 # Check for GNU $ac_path_EGREP
3380case `"$ac_path_EGREP" --version 2>&1` in
3381*GNU*)
3382 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3383*)
3384 ac_count=0
3385 $as_echo_n 0123456789 >"conftest.in"
3386 while :
3387 do
3388 cat "conftest.in" "conftest.in" >"conftest.tmp"
3389 mv "conftest.tmp" "conftest.in"
3390 cp "conftest.in" "conftest.nl"
3391 $as_echo 'EGREP' >> "conftest.nl"
3392 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3394 as_fn_arith $ac_count + 1 && ac_count=$as_val
3395 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3396 # Best one so far, save it but keep looking for a better one
3397 ac_cv_path_EGREP="$ac_path_EGREP"
3398 ac_path_EGREP_max=$ac_count
3399 fi
3400 # 10*(2^10) chars as input seems more than enough
3401 test $ac_count -gt 10 && break
3402 done
3403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3404esac
3405
3406 $ac_path_EGREP_found && break 3
3407 done
3408 done
3409 done
3410IFS=$as_save_IFS
3411 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 3412 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
3413 fi
3414else
3415 ac_cv_path_EGREP=$EGREP
3416fi
3417
3418 fi
3419fi
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3421$as_echo "$ac_cv_path_EGREP" >&6; }
3422 EGREP="$ac_cv_path_EGREP"
3423
3424
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3426$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 3427if ${ac_cv_header_stdc+:} false; then :
6bb11ab3
L
3428 $as_echo_n "(cached) " >&6
3429else
3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431/* end confdefs.h. */
3432#include <stdlib.h>
3433#include <stdarg.h>
3434#include <string.h>
3435#include <float.h>
3436
3437int
3438main ()
3439{
3440
3441 ;
3442 return 0;
3443}
3444_ACEOF
3445if ac_fn_c_try_compile "$LINENO"; then :
3446 ac_cv_header_stdc=yes
3447else
3448 ac_cv_header_stdc=no
3449fi
3450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451
3452if test $ac_cv_header_stdc = yes; then
3453 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455/* end confdefs.h. */
3456#include <string.h>
3457
3458_ACEOF
3459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3460 $EGREP "memchr" >/dev/null 2>&1; then :
3461
3462else
3463 ac_cv_header_stdc=no
3464fi
3465rm -f conftest*
3466
3467fi
3468
3469if test $ac_cv_header_stdc = yes; then
3470 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472/* end confdefs.h. */
3473#include <stdlib.h>
3474
3475_ACEOF
3476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3477 $EGREP "free" >/dev/null 2>&1; then :
3478
3479else
3480 ac_cv_header_stdc=no
3481fi
3482rm -f conftest*
3483
3484fi
3485
3486if test $ac_cv_header_stdc = yes; then
3487 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3488 if test "$cross_compiling" = yes; then :
3489 :
3490else
3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492/* end confdefs.h. */
3493#include <ctype.h>
3494#include <stdlib.h>
3495#if ((' ' & 0x0FF) == 0x020)
3496# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3497# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3498#else
3499# define ISLOWER(c) \
3500 (('a' <= (c) && (c) <= 'i') \
3501 || ('j' <= (c) && (c) <= 'r') \
3502 || ('s' <= (c) && (c) <= 'z'))
3503# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3504#endif
3505
3506#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3507int
3508main ()
3509{
3510 int i;
3511 for (i = 0; i < 256; i++)
3512 if (XOR (islower (i), ISLOWER (i))
3513 || toupper (i) != TOUPPER (i))
3514 return 2;
3515 return 0;
3516}
3517_ACEOF
3518if ac_fn_c_try_run "$LINENO"; then :
3519
3520else
3521 ac_cv_header_stdc=no
3522fi
3523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3524 conftest.$ac_objext conftest.beam conftest.$ac_ext
3525fi
3526
3527fi
3528fi
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3530$as_echo "$ac_cv_header_stdc" >&6; }
3531if test $ac_cv_header_stdc = yes; then
3532
3533$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3534
3535fi
3536
3537# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3538for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3539 inttypes.h stdint.h unistd.h
3540do :
3541 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3542ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3543"
d0ac1c44 3544if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
3545 cat >>confdefs.h <<_ACEOF
3546#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3547_ACEOF
3548
3549fi
3550
3551done
3552
3553
3554
3555 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 3556if test "x$ac_cv_header_minix_config_h" = xyes; then :
6bb11ab3
L
3557 MINIX=yes
3558else
3559 MINIX=
3560fi
3561
3562
3563 if test "$MINIX" = yes; then
3564
3565$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3566
3567
3568$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3569
3570
3571$as_echo "#define _MINIX 1" >>confdefs.h
3572
3573 fi
3574
3575
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3577$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 3578if ${ac_cv_safe_to_define___extensions__+:} false; then :
6bb11ab3
L
3579 $as_echo_n "(cached) " >&6
3580else
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582/* end confdefs.h. */
3583
d0ac1c44
SM
3584# define __EXTENSIONS__ 1
3585 $ac_includes_default
6bb11ab3
L
3586int
3587main ()
3588{
3589
3590 ;
3591 return 0;
3592}
3593_ACEOF
3594if ac_fn_c_try_compile "$LINENO"; then :
3595 ac_cv_safe_to_define___extensions__=yes
3596else
3597 ac_cv_safe_to_define___extensions__=no
3598fi
3599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600fi
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3602$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3603 test $ac_cv_safe_to_define___extensions__ = yes &&
3604 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3605
3606 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3607
3608 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3609
3610 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3611
3612 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3613
3614
3615test "$program_prefix" != NONE &&
3616 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3617# Use a double $ so make ignores it.
3618test "$program_suffix" != NONE &&
3619 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3620# Double any \ or $.
3621# By default was `s,x,x', remove it if useless.
3622ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3623program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3624
3625# Find a good install program. We prefer a C program (faster),
3626# so one script is as good as another. But avoid the broken or
3627# incompatible versions:
3628# SysV /etc/install, /usr/sbin/install
3629# SunOS /usr/etc/install
3630# IRIX /sbin/install
3631# AIX /bin/install
3632# AmigaOS /C/install, which installs bootblocks on floppy discs
3633# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3634# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3635# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3636# OS/2's system install, which has a completely different semantic
3637# ./install, which can be erroneously created by make from ./install.sh.
3638# Reject install programs that cannot install multiple files.
3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3640$as_echo_n "checking for a BSD-compatible install... " >&6; }
3641if test -z "$INSTALL"; then
d0ac1c44 3642if ${ac_cv_path_install+:} false; then :
6bb11ab3
L
3643 $as_echo_n "(cached) " >&6
3644else
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646for as_dir in $PATH
3647do
3648 IFS=$as_save_IFS
3649 test -z "$as_dir" && as_dir=.
3650 # Account for people who put trailing slashes in PATH elements.
3651case $as_dir/ in #((
3652 ./ | .// | /[cC]/* | \
3653 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3654 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3655 /usr/ucb/* ) ;;
3656 *)
3657 # OSF1 and SCO ODT 3.0 have their own names for install.
3658 # Don't use installbsd from OSF since it installs stuff as root
3659 # by default.
3660 for ac_prog in ginstall scoinst install; do
3661 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3662 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6bb11ab3
L
3663 if test $ac_prog = install &&
3664 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3665 # AIX install. It has an incompatible calling convention.
3666 :
3667 elif test $ac_prog = install &&
3668 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3669 # program-specific install script used by HP pwplus--don't use.
3670 :
3671 else
3672 rm -rf conftest.one conftest.two conftest.dir
3673 echo one > conftest.one
3674 echo two > conftest.two
3675 mkdir conftest.dir
3676 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3677 test -s conftest.one && test -s conftest.two &&
3678 test -s conftest.dir/conftest.one &&
3679 test -s conftest.dir/conftest.two
3680 then
3681 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3682 break 3
3683 fi
3684 fi
3685 fi
3686 done
3687 done
3688 ;;
3689esac
3690
3691 done
3692IFS=$as_save_IFS
3693
3694rm -rf conftest.one conftest.two conftest.dir
3695
3696fi
3697 if test "${ac_cv_path_install+set}" = set; then
3698 INSTALL=$ac_cv_path_install
3699 else
3700 # As a last resort, use the slow shell script. Don't cache a
3701 # value for INSTALL within a source directory, because that will
3702 # break other packages using the cache if that directory is
3703 # removed, or if the value is a relative name.
3704 INSTALL=$ac_install_sh
3705 fi
3706fi
3707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3708$as_echo "$INSTALL" >&6; }
3709
3710# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3711# It thinks the first close brace ends the variable substitution.
3712test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3713
3714test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3715
3716test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3717
3718rm -rf .tst 2>/dev/null
3719mkdir .tst 2>/dev/null
3720if test -d .tst; then
3721 am__leading_dot=.
3722else
3723 am__leading_dot=_
3724fi
3725rmdir .tst 2>/dev/null
3726
3727DEPDIR="${am__leading_dot}deps"
3728
3729case `pwd` in
3730 *\ * | *\ *)
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3732$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3733esac
3734
3735
3736
3737macro_version='2.2.7a'
3738macro_revision='1.3134'
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752ltmain="$ac_aux_dir/ltmain.sh"
3753
3754# Backslashify metacharacters that are still active within
3755# double-quoted strings.
3756sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3757
3758# Same as above, but do not quote variable references.
3759double_quote_subst='s/\(["`\\]\)/\\\1/g'
3760
3761# Sed substitution to delay expansion of an escaped shell variable in a
3762# double_quote_subst'ed string.
3763delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3764
3765# Sed substitution to delay expansion of an escaped single quote.
3766delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3767
3768# Sed substitution to avoid accidental globbing in evaled expressions
3769no_glob_subst='s/\*/\\\*/g'
3770
3771ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3772ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3773ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3774
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3776$as_echo_n "checking how to print strings... " >&6; }
3777# Test print first, because it will be a builtin if present.
3778if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3779 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3780 ECHO='print -r --'
3781elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3782 ECHO='printf %s\n'
3783else
3784 # Use this function as a fallback that always works.
3785 func_fallback_echo ()
3786 {
3787 eval 'cat <<_LTECHO_EOF
3788$1
3789_LTECHO_EOF'
3790 }
3791 ECHO='func_fallback_echo'
3792fi
3793
3794# func_echo_all arg...
3795# Invoke $ECHO with all args, space-separated.
3796func_echo_all ()
3797{
3798 $ECHO ""
3799}
3800
3801case "$ECHO" in
3802 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3803$as_echo "printf" >&6; } ;;
3804 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3805$as_echo "print -r" >&6; } ;;
3806 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3807$as_echo "cat" >&6; } ;;
3808esac
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3824$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 3825if ${ac_cv_path_SED+:} false; then :
6bb11ab3
L
3826 $as_echo_n "(cached) " >&6
3827else
3828 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3829 for ac_i in 1 2 3 4 5 6 7; do
3830 ac_script="$ac_script$as_nl$ac_script"
3831 done
3832 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3833 { ac_script=; unset ac_script;}
3834 if test -z "$SED"; then
3835 ac_path_SED_found=false
3836 # Loop through the user's path and test for each of PROGNAME-LIST
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838for as_dir in $PATH
3839do
3840 IFS=$as_save_IFS
3841 test -z "$as_dir" && as_dir=.
3842 for ac_prog in sed gsed; do
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3845 as_fn_executable_p "$ac_path_SED" || continue
6bb11ab3
L
3846# Check for GNU ac_path_SED and select it if it is found.
3847 # Check for GNU $ac_path_SED
3848case `"$ac_path_SED" --version 2>&1` in
3849*GNU*)
3850 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3851*)
3852 ac_count=0
3853 $as_echo_n 0123456789 >"conftest.in"
3854 while :
3855 do
3856 cat "conftest.in" "conftest.in" >"conftest.tmp"
3857 mv "conftest.tmp" "conftest.in"
3858 cp "conftest.in" "conftest.nl"
3859 $as_echo '' >> "conftest.nl"
3860 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3861 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3862 as_fn_arith $ac_count + 1 && ac_count=$as_val
3863 if test $ac_count -gt ${ac_path_SED_max-0}; then
3864 # Best one so far, save it but keep looking for a better one
3865 ac_cv_path_SED="$ac_path_SED"
3866 ac_path_SED_max=$ac_count
3867 fi
3868 # 10*(2^10) chars as input seems more than enough
3869 test $ac_count -gt 10 && break
3870 done
3871 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3872esac
3873
3874 $ac_path_SED_found && break 3
3875 done
3876 done
3877 done
3878IFS=$as_save_IFS
3879 if test -z "$ac_cv_path_SED"; then
d0ac1c44 3880 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6bb11ab3
L
3881 fi
3882else
3883 ac_cv_path_SED=$SED
3884fi
3885
3886fi
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3888$as_echo "$ac_cv_path_SED" >&6; }
3889 SED="$ac_cv_path_SED"
3890 rm -f conftest.sed
3891
3892test -z "$SED" && SED=sed
3893Xsed="$SED -e 1s/^X//"
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3906$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 3907if ${ac_cv_path_FGREP+:} false; then :
6bb11ab3
L
3908 $as_echo_n "(cached) " >&6
3909else
3910 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3911 then ac_cv_path_FGREP="$GREP -F"
3912 else
3913 if test -z "$FGREP"; then
3914 ac_path_FGREP_found=false
3915 # Loop through the user's path and test for each of PROGNAME-LIST
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3918do
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
3921 for ac_prog in fgrep; do
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3924 as_fn_executable_p "$ac_path_FGREP" || continue
6bb11ab3
L
3925# Check for GNU ac_path_FGREP and select it if it is found.
3926 # Check for GNU $ac_path_FGREP
3927case `"$ac_path_FGREP" --version 2>&1` in
3928*GNU*)
3929 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3930*)
3931 ac_count=0
3932 $as_echo_n 0123456789 >"conftest.in"
3933 while :
3934 do
3935 cat "conftest.in" "conftest.in" >"conftest.tmp"
3936 mv "conftest.tmp" "conftest.in"
3937 cp "conftest.in" "conftest.nl"
3938 $as_echo 'FGREP' >> "conftest.nl"
3939 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3940 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3941 as_fn_arith $ac_count + 1 && ac_count=$as_val
3942 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3943 # Best one so far, save it but keep looking for a better one
3944 ac_cv_path_FGREP="$ac_path_FGREP"
3945 ac_path_FGREP_max=$ac_count
3946 fi
3947 # 10*(2^10) chars as input seems more than enough
3948 test $ac_count -gt 10 && break
3949 done
3950 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3951esac
3952
3953 $ac_path_FGREP_found && break 3
3954 done
3955 done
3956 done
3957IFS=$as_save_IFS
3958 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 3959 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
3960 fi
3961else
3962 ac_cv_path_FGREP=$FGREP
3963fi
3964
3965 fi
3966fi
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3968$as_echo "$ac_cv_path_FGREP" >&6; }
3969 FGREP="$ac_cv_path_FGREP"
3970
3971
3972test -z "$GREP" && GREP=grep
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992# Check whether --with-gnu-ld was given.
3993if test "${with_gnu_ld+set}" = set; then :
3994 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3995else
3996 with_gnu_ld=no
3997fi
3998
3999ac_prog=ld
4000if test "$GCC" = yes; then
4001 # Check if gcc -print-prog-name=ld gives a path.
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4003$as_echo_n "checking for ld used by $CC... " >&6; }
4004 case $host in
4005 *-*-mingw*)
4006 # gcc leaves a trailing carriage return which upsets mingw
4007 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4008 *)
4009 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4010 esac
4011 case $ac_prog in
4012 # Accept absolute paths.
4013 [\\/]* | ?:[\\/]*)
4014 re_direlt='/[^/][^/]*/\.\./'
4015 # Canonicalize the pathname of ld
4016 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4017 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4018 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4019 done
4020 test -z "$LD" && LD="$ac_prog"
4021 ;;
4022 "")
4023 # If it fails, then pretend we aren't using GCC.
4024 ac_prog=ld
4025 ;;
4026 *)
4027 # If it is relative, then search for the first ld in PATH.
4028 with_gnu_ld=unknown
4029 ;;
4030 esac
4031elif test "$with_gnu_ld" = yes; then
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4033$as_echo_n "checking for GNU ld... " >&6; }
4034else
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4036$as_echo_n "checking for non-GNU ld... " >&6; }
4037fi
d0ac1c44 4038if ${lt_cv_path_LD+:} false; then :
6bb11ab3
L
4039 $as_echo_n "(cached) " >&6
4040else
4041 if test -z "$LD"; then
4042 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4043 for ac_dir in $PATH; do
4044 IFS="$lt_save_ifs"
4045 test -z "$ac_dir" && ac_dir=.
4046 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4047 lt_cv_path_LD="$ac_dir/$ac_prog"
4048 # Check to see if the program is GNU ld. I'd rather use --version,
4049 # but apparently some variants of GNU ld only accept -v.
4050 # Break only if it was the GNU/non-GNU ld that we prefer.
4051 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4052 *GNU* | *'with BFD'*)
4053 test "$with_gnu_ld" != no && break
4054 ;;
4055 *)
4056 test "$with_gnu_ld" != yes && break
4057 ;;
4058 esac
4059 fi
4060 done
4061 IFS="$lt_save_ifs"
4062else
4063 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4064fi
4065fi
4066
4067LD="$lt_cv_path_LD"
4068if test -n "$LD"; then
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4070$as_echo "$LD" >&6; }
4071else
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4073$as_echo "no" >&6; }
4074fi
d0ac1c44 4075test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6bb11ab3
L
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4077$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 4078if ${lt_cv_prog_gnu_ld+:} false; then :
6bb11ab3
L
4079 $as_echo_n "(cached) " >&6
4080else
4081 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4082case `$LD -v 2>&1 </dev/null` in
4083*GNU* | *'with BFD'*)
4084 lt_cv_prog_gnu_ld=yes
4085 ;;
4086*)
4087 lt_cv_prog_gnu_ld=no
4088 ;;
4089esac
4090fi
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4092$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4093with_gnu_ld=$lt_cv_prog_gnu_ld
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4104$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 4105if ${lt_cv_path_NM+:} false; then :
6bb11ab3
L
4106 $as_echo_n "(cached) " >&6
4107else
4108 if test -n "$NM"; then
4109 # Let the user override the test.
4110 lt_cv_path_NM="$NM"
4111else
4112 lt_nm_to_check="${ac_tool_prefix}nm"
4113 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4114 lt_nm_to_check="$lt_nm_to_check nm"
4115 fi
4116 for lt_tmp_nm in $lt_nm_to_check; do
4117 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4118 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4119 IFS="$lt_save_ifs"
4120 test -z "$ac_dir" && ac_dir=.
4121 tmp_nm="$ac_dir/$lt_tmp_nm"
4122 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4123 # Check to see if the nm accepts a BSD-compat flag.
4124 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4125 # nm: unknown option "B" ignored
4126 # Tru64's nm complains that /dev/null is an invalid object file
4127 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4128 */dev/null* | *'Invalid file or object type'*)
4129 lt_cv_path_NM="$tmp_nm -B"
4130 break
4131 ;;
4132 *)
4133 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4134 */dev/null*)
4135 lt_cv_path_NM="$tmp_nm -p"
4136 break
4137 ;;
4138 *)
4139 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4140 continue # so that we can try to find one that supports BSD flags
4141 ;;
4142 esac
4143 ;;
4144 esac
4145 fi
4146 done
4147 IFS="$lt_save_ifs"
4148 done
4149 : ${lt_cv_path_NM=no}
4150fi
4151fi
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4153$as_echo "$lt_cv_path_NM" >&6; }
4154if test "$lt_cv_path_NM" != "no"; then
4155 NM="$lt_cv_path_NM"
4156else
4157 # Didn't find any BSD compatible name lister, look for dumpbin.
4158 if test -n "$DUMPBIN"; then :
4159 # Let the user override the test.
4160 else
4161 if test -n "$ac_tool_prefix"; then
4162 for ac_prog in dumpbin "link -dump"
4163 do
4164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4165set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4168if ${ac_cv_prog_DUMPBIN+:} false; then :
6bb11ab3
L
4169 $as_echo_n "(cached) " >&6
4170else
4171 if test -n "$DUMPBIN"; then
4172 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4173else
4174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175for as_dir in $PATH
4176do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4181 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 break 2
4184 fi
4185done
4186 done
4187IFS=$as_save_IFS
4188
4189fi
4190fi
4191DUMPBIN=$ac_cv_prog_DUMPBIN
4192if test -n "$DUMPBIN"; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4194$as_echo "$DUMPBIN" >&6; }
4195else
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197$as_echo "no" >&6; }
4198fi
4199
4200
4201 test -n "$DUMPBIN" && break
4202 done
4203fi
4204if test -z "$DUMPBIN"; then
4205 ac_ct_DUMPBIN=$DUMPBIN
4206 for ac_prog in dumpbin "link -dump"
4207do
4208 # Extract the first word of "$ac_prog", so it can be a program name with args.
4209set dummy $ac_prog; ac_word=$2
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4212if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6bb11ab3
L
4213 $as_echo_n "(cached) " >&6
4214else
4215 if test -n "$ac_ct_DUMPBIN"; then
4216 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4217else
4218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219for as_dir in $PATH
4220do
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
4223 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4225 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 break 2
4228 fi
4229done
4230 done
4231IFS=$as_save_IFS
4232
4233fi
4234fi
4235ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4236if test -n "$ac_ct_DUMPBIN"; then
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4238$as_echo "$ac_ct_DUMPBIN" >&6; }
4239else
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241$as_echo "no" >&6; }
4242fi
4243
4244
4245 test -n "$ac_ct_DUMPBIN" && break
4246done
4247
4248 if test "x$ac_ct_DUMPBIN" = x; then
4249 DUMPBIN=":"
4250 else
4251 case $cross_compiling:$ac_tool_warned in
4252yes:)
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4255ac_tool_warned=yes ;;
4256esac
4257 DUMPBIN=$ac_ct_DUMPBIN
4258 fi
4259fi
4260
4261 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4262 *COFF*)
4263 DUMPBIN="$DUMPBIN -symbols"
4264 ;;
4265 *)
4266 DUMPBIN=:
4267 ;;
4268 esac
4269 fi
4270
4271 if test "$DUMPBIN" != ":"; then
4272 NM="$DUMPBIN"
4273 fi
4274fi
4275test -z "$NM" && NM=nm
4276
4277
4278
4279
4280
4281
4282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4283$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 4284if ${lt_cv_nm_interface+:} false; then :
6bb11ab3
L
4285 $as_echo_n "(cached) " >&6
4286else
4287 lt_cv_nm_interface="BSD nm"
4288 echo "int some_variable = 0;" > conftest.$ac_ext
4289 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4290 (eval "$ac_compile" 2>conftest.err)
4291 cat conftest.err >&5
4292 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4293 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4294 cat conftest.err >&5
4295 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4296 cat conftest.out >&5
4297 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4298 lt_cv_nm_interface="MS dumpbin"
4299 fi
4300 rm -f conftest*
4301fi
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4303$as_echo "$lt_cv_nm_interface" >&6; }
4304
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4306$as_echo_n "checking whether ln -s works... " >&6; }
4307LN_S=$as_ln_s
4308if test "$LN_S" = "ln -s"; then
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4310$as_echo "yes" >&6; }
4311else
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4313$as_echo "no, using $LN_S" >&6; }
4314fi
4315
4316# find the maximum length of command line arguments
4317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4318$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 4319if ${lt_cv_sys_max_cmd_len+:} false; then :
6bb11ab3
L
4320 $as_echo_n "(cached) " >&6
4321else
4322 i=0
4323 teststring="ABCD"
4324
4325 case $build_os in
4326 msdosdjgpp*)
4327 # On DJGPP, this test can blow up pretty badly due to problems in libc
4328 # (any single argument exceeding 2000 bytes causes a buffer overrun
4329 # during glob expansion). Even if it were fixed, the result of this
4330 # check would be larger than it should be.
4331 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4332 ;;
4333
4334 gnu*)
4335 # Under GNU Hurd, this test is not required because there is
4336 # no limit to the length of command line arguments.
4337 # Libtool will interpret -1 as no limit whatsoever
4338 lt_cv_sys_max_cmd_len=-1;
4339 ;;
4340
4341 cygwin* | mingw* | cegcc*)
4342 # On Win9x/ME, this test blows up -- it succeeds, but takes
4343 # about 5 minutes as the teststring grows exponentially.
4344 # Worse, since 9x/ME are not pre-emptively multitasking,
4345 # you end up with a "frozen" computer, even though with patience
4346 # the test eventually succeeds (with a max line length of 256k).
4347 # Instead, let's just punt: use the minimum linelength reported by
4348 # all of the supported platforms: 8192 (on NT/2K/XP).
4349 lt_cv_sys_max_cmd_len=8192;
4350 ;;
4351
4352 mint*)
4353 # On MiNT this can take a long time and run out of memory.
4354 lt_cv_sys_max_cmd_len=8192;
4355 ;;
4356
4357 amigaos*)
4358 # On AmigaOS with pdksh, this test takes hours, literally.
4359 # So we just punt and use a minimum line length of 8192.
4360 lt_cv_sys_max_cmd_len=8192;
4361 ;;
4362
4363 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4364 # This has been around since 386BSD, at least. Likely further.
4365 if test -x /sbin/sysctl; then
4366 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4367 elif test -x /usr/sbin/sysctl; then
4368 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4369 else
4370 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4371 fi
4372 # And add a safety zone
4373 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4374 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4375 ;;
4376
4377 interix*)
4378 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4379 lt_cv_sys_max_cmd_len=196608
4380 ;;
4381
4382 osf*)
4383 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4384 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4385 # nice to cause kernel panics so lets avoid the loop below.
4386 # First set a reasonable default.
4387 lt_cv_sys_max_cmd_len=16384
4388 #
4389 if test -x /sbin/sysconfig; then
4390 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4391 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4392 esac
4393 fi
4394 ;;
4395 sco3.2v5*)
4396 lt_cv_sys_max_cmd_len=102400
4397 ;;
4398 sysv5* | sco5v6* | sysv4.2uw2*)
4399 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4400 if test -n "$kargmax"; then
4401 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4402 else
4403 lt_cv_sys_max_cmd_len=32768
4404 fi
4405 ;;
4406 *)
4407 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4408 if test -n "$lt_cv_sys_max_cmd_len"; then
4409 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4411 else
4412 # Make teststring a little bigger before we do anything with it.
4413 # a 1K string should be a reasonable start.
4414 for i in 1 2 3 4 5 6 7 8 ; do
4415 teststring=$teststring$teststring
4416 done
4417 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4418 # If test is not a shell built-in, we'll probably end up computing a
4419 # maximum length that is only half of the actual maximum length, but
4420 # we can't tell.
4421 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4422 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4423 test $i != 17 # 1/2 MB should be enough
4424 do
4425 i=`expr $i + 1`
4426 teststring=$teststring$teststring
4427 done
4428 # Only check the string length outside the loop.
4429 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4430 teststring=
4431 # Add a significant safety factor because C++ compilers can tack on
4432 # massive amounts of additional arguments before passing them to the
4433 # linker. It appears as though 1/2 is a usable value.
4434 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4435 fi
4436 ;;
4437 esac
4438
4439fi
4440
4441if test -n $lt_cv_sys_max_cmd_len ; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4443$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4444else
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4446$as_echo "none" >&6; }
4447fi
4448max_cmd_len=$lt_cv_sys_max_cmd_len
4449
4450
4451
4452
4453
4454
4455: ${CP="cp -f"}
4456: ${MV="mv -f"}
4457: ${RM="rm -f"}
4458
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4460$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4461# Try some XSI features
4462xsi_shell=no
4463( _lt_dummy="a/b/c"
4464 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4465 = c,a/b,, \
4466 && eval 'test $(( 1 + 1 )) -eq 2 \
4467 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4468 && xsi_shell=yes
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4470$as_echo "$xsi_shell" >&6; }
4471
4472
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4474$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4475lt_shell_append=no
4476( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4477 >/dev/null 2>&1 \
4478 && lt_shell_append=yes
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4480$as_echo "$lt_shell_append" >&6; }
4481
4482
4483if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4484 lt_unset=unset
4485else
4486 lt_unset=false
4487fi
4488
4489
4490
4491
4492
4493# test EBCDIC or ASCII
4494case `echo X|tr X '\101'` in
4495 A) # ASCII based system
4496 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4497 lt_SP2NL='tr \040 \012'
4498 lt_NL2SP='tr \015\012 \040\040'
4499 ;;
4500 *) # EBCDIC based system
4501 lt_SP2NL='tr \100 \n'
4502 lt_NL2SP='tr \r\n \100\100'
4503 ;;
4504esac
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4515$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 4516if ${lt_cv_ld_reload_flag+:} false; then :
6bb11ab3
L
4517 $as_echo_n "(cached) " >&6
4518else
4519 lt_cv_ld_reload_flag='-r'
4520fi
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4522$as_echo "$lt_cv_ld_reload_flag" >&6; }
4523reload_flag=$lt_cv_ld_reload_flag
4524case $reload_flag in
4525"" | " "*) ;;
4526*) reload_flag=" $reload_flag" ;;
4527esac
4528reload_cmds='$LD$reload_flag -o $output$reload_objs'
4529case $host_os in
4530 darwin*)
4531 if test "$GCC" = yes; then
4532 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4533 else
4534 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4535 fi
4536 ;;
4537esac
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547if test -n "$ac_tool_prefix"; then
4548 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4549set dummy ${ac_tool_prefix}objdump; ac_word=$2
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4551$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4552if ${ac_cv_prog_OBJDUMP+:} false; then :
6bb11ab3
L
4553 $as_echo_n "(cached) " >&6
4554else
4555 if test -n "$OBJDUMP"; then
4556 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4557else
4558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559for as_dir in $PATH
4560do
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4565 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 break 2
4568 fi
4569done
4570 done
4571IFS=$as_save_IFS
4572
4573fi
4574fi
4575OBJDUMP=$ac_cv_prog_OBJDUMP
4576if test -n "$OBJDUMP"; then
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4578$as_echo "$OBJDUMP" >&6; }
4579else
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581$as_echo "no" >&6; }
4582fi
4583
4584
4585fi
4586if test -z "$ac_cv_prog_OBJDUMP"; then
4587 ac_ct_OBJDUMP=$OBJDUMP
4588 # Extract the first word of "objdump", so it can be a program name with args.
4589set dummy objdump; ac_word=$2
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4591$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4592if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6bb11ab3
L
4593 $as_echo_n "(cached) " >&6
4594else
4595 if test -n "$ac_ct_OBJDUMP"; then
4596 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4597else
4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4605 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 break 2
4608 fi
4609done
4610 done
4611IFS=$as_save_IFS
4612
4613fi
4614fi
4615ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4616if test -n "$ac_ct_OBJDUMP"; then
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4618$as_echo "$ac_ct_OBJDUMP" >&6; }
4619else
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621$as_echo "no" >&6; }
4622fi
4623
4624 if test "x$ac_ct_OBJDUMP" = x; then
4625 OBJDUMP="false"
4626 else
4627 case $cross_compiling:$ac_tool_warned in
4628yes:)
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4631ac_tool_warned=yes ;;
4632esac
4633 OBJDUMP=$ac_ct_OBJDUMP
4634 fi
4635else
4636 OBJDUMP="$ac_cv_prog_OBJDUMP"
4637fi
4638
4639test -z "$OBJDUMP" && OBJDUMP=objdump
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4650$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 4651if ${lt_cv_deplibs_check_method+:} false; then :
6bb11ab3
L
4652 $as_echo_n "(cached) " >&6
4653else
4654 lt_cv_file_magic_cmd='$MAGIC_CMD'
4655lt_cv_file_magic_test_file=
4656lt_cv_deplibs_check_method='unknown'
4657# Need to set the preceding variable on all platforms that support
4658# interlibrary dependencies.
4659# 'none' -- dependencies not supported.
4660# `unknown' -- same as none, but documents that we really don't know.
4661# 'pass_all' -- all dependencies passed with no checks.
4662# 'test_compile' -- check by making test program.
4663# 'file_magic [[regex]]' -- check by looking for files in library path
4664# which responds to the $file_magic_cmd with a given extended regex.
4665# If you have `file' or equivalent on your system and you're not sure
4666# whether `pass_all' will *always* work, you probably want this one.
4667
4668case $host_os in
4669aix[4-9]*)
4670 lt_cv_deplibs_check_method=pass_all
4671 ;;
4672
4673beos*)
4674 lt_cv_deplibs_check_method=pass_all
4675 ;;
4676
4677bsdi[45]*)
4678 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4679 lt_cv_file_magic_cmd='/usr/bin/file -L'
4680 lt_cv_file_magic_test_file=/shlib/libc.so
4681 ;;
4682
4683cygwin*)
4684 # func_win32_libid is a shell function defined in ltmain.sh
4685 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4686 lt_cv_file_magic_cmd='func_win32_libid'
4687 ;;
4688
4689mingw* | pw32*)
4690 # Base MSYS/MinGW do not provide the 'file' command needed by
4691 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4692 # unless we find 'file', for example because we are cross-compiling.
4693 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4694 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4695 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4696 lt_cv_file_magic_cmd='func_win32_libid'
4697 else
4698 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4699 lt_cv_file_magic_cmd='$OBJDUMP -f'
4700 fi
4701 ;;
4702
4703cegcc*)
4704 # use the weaker test based on 'objdump'. See mingw*.
4705 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4706 lt_cv_file_magic_cmd='$OBJDUMP -f'
4707 ;;
4708
4709darwin* | rhapsody*)
4710 lt_cv_deplibs_check_method=pass_all
4711 ;;
4712
4713freebsd* | dragonfly*)
4714 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4715 case $host_cpu in
4716 i*86 )
4717 # Not sure whether the presence of OpenBSD here was a mistake.
4718 # Let's accept both of them until this is cleared up.
4719 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4720 lt_cv_file_magic_cmd=/usr/bin/file
4721 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4722 ;;
4723 esac
4724 else
4725 lt_cv_deplibs_check_method=pass_all
4726 fi
4727 ;;
4728
4729gnu*)
4730 lt_cv_deplibs_check_method=pass_all
4731 ;;
4732
4733haiku*)
4734 lt_cv_deplibs_check_method=pass_all
4735 ;;
4736
4737hpux10.20* | hpux11*)
4738 lt_cv_file_magic_cmd=/usr/bin/file
4739 case $host_cpu in
4740 ia64*)
4741 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4742 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4743 ;;
4744 hppa*64*)
4745 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]'
4746 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4747 ;;
4748 *)
4749 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4750 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4751 ;;
4752 esac
4753 ;;
4754
4755interix[3-9]*)
4756 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4757 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4758 ;;
4759
4760irix5* | irix6* | nonstopux*)
4761 case $LD in
4762 *-32|*"-32 ") libmagic=32-bit;;
4763 *-n32|*"-n32 ") libmagic=N32;;
4764 *-64|*"-64 ") libmagic=64-bit;;
4765 *) libmagic=never-match;;
4766 esac
4767 lt_cv_deplibs_check_method=pass_all
4768 ;;
4769
4770# This must be Linux ELF.
4771linux* | k*bsd*-gnu | kopensolaris*-gnu)
4772 lt_cv_deplibs_check_method=pass_all
4773 ;;
4774
4775netbsd*)
4776 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4777 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4778 else
4779 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4780 fi
4781 ;;
4782
4783newos6*)
4784 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4785 lt_cv_file_magic_cmd=/usr/bin/file
4786 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4787 ;;
4788
4789*nto* | *qnx*)
4790 lt_cv_deplibs_check_method=pass_all
4791 ;;
4792
4793openbsd*)
4794 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4795 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4796 else
4797 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4798 fi
4799 ;;
4800
4801osf3* | osf4* | osf5*)
4802 lt_cv_deplibs_check_method=pass_all
4803 ;;
4804
4805rdos*)
4806 lt_cv_deplibs_check_method=pass_all
4807 ;;
4808
4809solaris*)
4810 lt_cv_deplibs_check_method=pass_all
4811 ;;
4812
4813sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4814 lt_cv_deplibs_check_method=pass_all
4815 ;;
4816
4817sysv4 | sysv4.3*)
4818 case $host_vendor in
4819 motorola)
4820 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]'
4821 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4822 ;;
4823 ncr)
4824 lt_cv_deplibs_check_method=pass_all
4825 ;;
4826 sequent)
4827 lt_cv_file_magic_cmd='/bin/file'
4828 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4829 ;;
4830 sni)
4831 lt_cv_file_magic_cmd='/bin/file'
4832 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4833 lt_cv_file_magic_test_file=/lib/libc.so
4834 ;;
4835 siemens)
4836 lt_cv_deplibs_check_method=pass_all
4837 ;;
4838 pc)
4839 lt_cv_deplibs_check_method=pass_all
4840 ;;
4841 esac
4842 ;;
4843
4844tpf*)
4845 lt_cv_deplibs_check_method=pass_all
4846 ;;
4847esac
4848
4849fi
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4851$as_echo "$lt_cv_deplibs_check_method" >&6; }
4852file_magic_cmd=$lt_cv_file_magic_cmd
4853deplibs_check_method=$lt_cv_deplibs_check_method
4854test -z "$deplibs_check_method" && deplibs_check_method=unknown
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
68ed2854
MF
4867plugin_option=
4868plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
4869for plugin in $plugin_names; do
4870 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
4871 if test x$plugin_so = x$plugin; then
4872 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
4873 fi
4874 if test x$plugin_so != x$plugin; then
4875 plugin_option="--plugin $plugin_so"
4876 break
4877 fi
4878done
4879
6bb11ab3
L
4880if test -n "$ac_tool_prefix"; then
4881 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4882set dummy ${ac_tool_prefix}ar; ac_word=$2
4883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4884$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4885if ${ac_cv_prog_AR+:} false; then :
6bb11ab3
L
4886 $as_echo_n "(cached) " >&6
4887else
4888 if test -n "$AR"; then
4889 ac_cv_prog_AR="$AR" # Let the user override the test.
4890else
4891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892for as_dir in $PATH
4893do
4894 IFS=$as_save_IFS
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4898 ac_cv_prog_AR="${ac_tool_prefix}ar"
4899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4900 break 2
4901 fi
4902done
4903 done
4904IFS=$as_save_IFS
4905
4906fi
4907fi
4908AR=$ac_cv_prog_AR
4909if test -n "$AR"; then
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4911$as_echo "$AR" >&6; }
4912else
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914$as_echo "no" >&6; }
4915fi
4916
4917
4918fi
4919if test -z "$ac_cv_prog_AR"; then
4920 ac_ct_AR=$AR
4921 # Extract the first word of "ar", so it can be a program name with args.
4922set dummy ar; ac_word=$2
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4925if ${ac_cv_prog_ac_ct_AR+:} false; then :
6bb11ab3
L
4926 $as_echo_n "(cached) " >&6
4927else
4928 if test -n "$ac_ct_AR"; then
4929 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4930else
4931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932for as_dir in $PATH
4933do
4934 IFS=$as_save_IFS
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4938 ac_cv_prog_ac_ct_AR="ar"
4939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 break 2
4941 fi
4942done
4943 done
4944IFS=$as_save_IFS
4945
4946fi
4947fi
4948ac_ct_AR=$ac_cv_prog_ac_ct_AR
4949if test -n "$ac_ct_AR"; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4951$as_echo "$ac_ct_AR" >&6; }
4952else
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954$as_echo "no" >&6; }
4955fi
4956
4957 if test "x$ac_ct_AR" = x; then
4958 AR="false"
4959 else
4960 case $cross_compiling:$ac_tool_warned in
4961yes:)
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4964ac_tool_warned=yes ;;
4965esac
4966 AR=$ac_ct_AR
4967 fi
4968else
4969 AR="$ac_cv_prog_AR"
4970fi
4971
4972test -z "$AR" && AR=ar
68ed2854
MF
4973if test -n "$plugin_option"; then
4974 if $AR --help 2>&1 | grep -q "\--plugin"; then
aa09469f
MF
4975 touch conftest.c
4976 $AR $plugin_option rc conftest.a conftest.c
4977 if test "$?" != 0; then
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
4979$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
4980 else
4981 AR="$AR $plugin_option"
4982 fi
4983 rm -f conftest.*
68ed2854
MF
4984 fi
4985fi
6bb11ab3
L
4986test -z "$AR_FLAGS" && AR_FLAGS=cru
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998if test -n "$ac_tool_prefix"; then
4999 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5000set dummy ${ac_tool_prefix}strip; ac_word=$2
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5003if ${ac_cv_prog_STRIP+:} false; then :
6bb11ab3
L
5004 $as_echo_n "(cached) " >&6
5005else
5006 if test -n "$STRIP"; then
5007 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5008else
5009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010for as_dir in $PATH
5011do
5012 IFS=$as_save_IFS
5013 test -z "$as_dir" && as_dir=.
5014 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5016 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 break 2
5019 fi
5020done
5021 done
5022IFS=$as_save_IFS
5023
5024fi
5025fi
5026STRIP=$ac_cv_prog_STRIP
5027if test -n "$STRIP"; then
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5029$as_echo "$STRIP" >&6; }
5030else
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032$as_echo "no" >&6; }
5033fi
5034
5035
5036fi
5037if test -z "$ac_cv_prog_STRIP"; then
5038 ac_ct_STRIP=$STRIP
5039 # Extract the first word of "strip", so it can be a program name with args.
5040set dummy strip; ac_word=$2
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5042$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5043if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6bb11ab3
L
5044 $as_echo_n "(cached) " >&6
5045else
5046 if test -n "$ac_ct_STRIP"; then
5047 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5048else
5049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050for as_dir in $PATH
5051do
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5056 ac_cv_prog_ac_ct_STRIP="strip"
5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5059 fi
5060done
5061 done
5062IFS=$as_save_IFS
5063
5064fi
5065fi
5066ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5067if test -n "$ac_ct_STRIP"; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5069$as_echo "$ac_ct_STRIP" >&6; }
5070else
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072$as_echo "no" >&6; }
5073fi
5074
5075 if test "x$ac_ct_STRIP" = x; then
5076 STRIP=":"
5077 else
5078 case $cross_compiling:$ac_tool_warned in
5079yes:)
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5082ac_tool_warned=yes ;;
5083esac
5084 STRIP=$ac_ct_STRIP
5085 fi
5086else
5087 STRIP="$ac_cv_prog_STRIP"
5088fi
5089
5090test -z "$STRIP" && STRIP=:
5091
5092
5093
5094
5095
5096
5097if test -n "$ac_tool_prefix"; then
5098 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5099set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5102if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
5103 $as_echo_n "(cached) " >&6
5104else
5105 if test -n "$RANLIB"; then
5106 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5107else
5108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109for as_dir in $PATH
5110do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5115 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5118 fi
5119done
5120 done
5121IFS=$as_save_IFS
5122
5123fi
5124fi
5125RANLIB=$ac_cv_prog_RANLIB
5126if test -n "$RANLIB"; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5128$as_echo "$RANLIB" >&6; }
5129else
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131$as_echo "no" >&6; }
5132fi
5133
5134
5135fi
5136if test -z "$ac_cv_prog_RANLIB"; then
5137 ac_ct_RANLIB=$RANLIB
5138 # Extract the first word of "ranlib", so it can be a program name with args.
5139set dummy ranlib; ac_word=$2
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5142if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
5143 $as_echo_n "(cached) " >&6
5144else
5145 if test -n "$ac_ct_RANLIB"; then
5146 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5147else
5148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5155 ac_cv_prog_ac_ct_RANLIB="ranlib"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5158 fi
5159done
5160 done
5161IFS=$as_save_IFS
5162
5163fi
5164fi
5165ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5166if test -n "$ac_ct_RANLIB"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5168$as_echo "$ac_ct_RANLIB" >&6; }
5169else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171$as_echo "no" >&6; }
5172fi
5173
5174 if test "x$ac_ct_RANLIB" = x; then
5175 RANLIB=":"
5176 else
5177 case $cross_compiling:$ac_tool_warned in
5178yes:)
5179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5181ac_tool_warned=yes ;;
5182esac
5183 RANLIB=$ac_ct_RANLIB
5184 fi
5185else
5186 RANLIB="$ac_cv_prog_RANLIB"
5187fi
5188
5189test -z "$RANLIB" && RANLIB=:
68ed2854
MF
5190if test -n "$plugin_option" && test "$RANLIB" != ":"; then
5191 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
5192 RANLIB="$RANLIB $plugin_option"
5193 fi
5194fi
6bb11ab3
L
5195
5196
5197
5198
5199
5200
5201# Determine commands to create old-style static archives.
5202old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5203old_postinstall_cmds='chmod 644 $oldlib'
5204old_postuninstall_cmds=
5205
5206if test -n "$RANLIB"; then
5207 case $host_os in
5208 openbsd*)
5209 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5210 ;;
5211 *)
5212 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5213 ;;
5214 esac
5215 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5216fi
5217
5218case $host_os in
5219 darwin*)
5220 lock_old_archive_extraction=yes ;;
5221 *)
5222 lock_old_archive_extraction=no ;;
5223esac
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245for ac_prog in gawk mawk nawk awk
5246do
5247 # Extract the first word of "$ac_prog", so it can be a program name with args.
5248set dummy $ac_prog; ac_word=$2
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5251if ${ac_cv_prog_AWK+:} false; then :
6bb11ab3
L
5252 $as_echo_n "(cached) " >&6
5253else
5254 if test -n "$AWK"; then
5255 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5256else
5257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258for as_dir in $PATH
5259do
5260 IFS=$as_save_IFS
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5264 ac_cv_prog_AWK="$ac_prog"
5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5266 break 2
5267 fi
5268done
5269 done
5270IFS=$as_save_IFS
5271
5272fi
5273fi
5274AWK=$ac_cv_prog_AWK
5275if test -n "$AWK"; then
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5277$as_echo "$AWK" >&6; }
5278else
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280$as_echo "no" >&6; }
5281fi
5282
5283
5284 test -n "$AWK" && break
5285done
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305# If no C compiler was specified, use CC.
5306LTCC=${LTCC-"$CC"}
5307
5308# If no C compiler flags were specified, use CFLAGS.
5309LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5310
5311# Allow CC to be a program name with arguments.
5312compiler=$CC
5313
5314
5315# Check for command to grab the raw symbol name followed by C symbol from nm.
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5317$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 5318if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6bb11ab3
L
5319 $as_echo_n "(cached) " >&6
5320else
5321
5322# These are sane defaults that work on at least a few old systems.
5323# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5324
5325# Character class describing NM global symbol codes.
5326symcode='[BCDEGRST]'
5327
5328# Regexp to match symbols that can be accessed directly from C.
5329sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5330
5331# Define system-specific variables.
5332case $host_os in
5333aix*)
5334 symcode='[BCDT]'
5335 ;;
5336cygwin* | mingw* | pw32* | cegcc*)
5337 symcode='[ABCDGISTW]'
5338 ;;
5339hpux*)
5340 if test "$host_cpu" = ia64; then
5341 symcode='[ABCDEGRST]'
5342 fi
5343 ;;
5344irix* | nonstopux*)
5345 symcode='[BCDEGRST]'
5346 ;;
5347osf*)
5348 symcode='[BCDEGQRST]'
5349 ;;
5350solaris*)
5351 symcode='[BDRT]'
5352 ;;
5353sco3.2v5*)
5354 symcode='[DT]'
5355 ;;
5356sysv4.2uw2*)
5357 symcode='[DT]'
5358 ;;
5359sysv5* | sco5v6* | unixware* | OpenUNIX*)
5360 symcode='[ABDT]'
5361 ;;
5362sysv4)
5363 symcode='[DFNSTU]'
5364 ;;
5365esac
5366
5367# If we're using GNU nm, then use its standard symbol codes.
5368case `$NM -V 2>&1` in
5369*GNU* | *'with BFD'*)
5370 symcode='[ABCDGIRSTW]' ;;
5371esac
5372
5373# Transform an extracted symbol line into a proper C declaration.
5374# Some systems (esp. on ia64) link data and code symbols differently,
5375# so use this general approach.
5376lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5377
5378# Transform an extracted symbol line into symbol name and symbol address
5379lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5380lt_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'"
5381
5382# Handle CRLF in mingw tool chain
5383opt_cr=
5384case $build_os in
5385mingw*)
5386 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5387 ;;
5388esac
5389
5390# Try without a prefix underscore, then with it.
5391for ac_symprfx in "" "_"; do
5392
5393 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5394 symxfrm="\\1 $ac_symprfx\\2 \\2"
5395
5396 # Write the raw and C identifiers.
5397 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5398 # Fake it for dumpbin and say T for any non-static function
5399 # and D for any global variable.
5400 # Also find C++ and __fastcall symbols from MSVC++,
5401 # which start with @ or ?.
5402 lt_cv_sys_global_symbol_pipe="$AWK '"\
5403" {last_section=section; section=\$ 3};"\
5404" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5405" \$ 0!~/External *\|/{next};"\
5406" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5407" {if(hide[section]) next};"\
5408" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5409" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5410" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5411" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5412" ' prfx=^$ac_symprfx"
5413 else
5414 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5415 fi
5416
5417 # Check to see that the pipe works correctly.
5418 pipe_works=no
5419
5420 rm -f conftest*
5421 cat > conftest.$ac_ext <<_LT_EOF
5422#ifdef __cplusplus
5423extern "C" {
5424#endif
5425char nm_test_var;
5426void nm_test_func(void);
5427void nm_test_func(void){}
5428#ifdef __cplusplus
5429}
5430#endif
5431int main(){nm_test_var='a';nm_test_func();return(0);}
5432_LT_EOF
5433
5434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5435 (eval $ac_compile) 2>&5
5436 ac_status=$?
5437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5438 test $ac_status = 0; }; then
5439 # Now try to grab the symbols.
5440 nlist=conftest.nm
5441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5442 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5443 ac_status=$?
5444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5445 test $ac_status = 0; } && test -s "$nlist"; then
5446 # Try sorting and uniquifying the output.
5447 if sort "$nlist" | uniq > "$nlist"T; then
5448 mv -f "$nlist"T "$nlist"
5449 else
5450 rm -f "$nlist"T
5451 fi
5452
5453 # Make sure that we snagged all the symbols we need.
5454 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5455 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5456 cat <<_LT_EOF > conftest.$ac_ext
5457#ifdef __cplusplus
5458extern "C" {
5459#endif
5460
5461_LT_EOF
5462 # Now generate the symbol file.
5463 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5464
5465 cat <<_LT_EOF >> conftest.$ac_ext
5466
5467/* The mapping between symbol names and symbols. */
5468const struct {
5469 const char *name;
5470 void *address;
5471}
5472lt__PROGRAM__LTX_preloaded_symbols[] =
5473{
5474 { "@PROGRAM@", (void *) 0 },
5475_LT_EOF
5476 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5477 cat <<\_LT_EOF >> conftest.$ac_ext
5478 {0, (void *) 0}
5479};
5480
5481/* This works around a problem in FreeBSD linker */
5482#ifdef FREEBSD_WORKAROUND
5483static const void *lt_preloaded_setup() {
5484 return lt__PROGRAM__LTX_preloaded_symbols;
5485}
5486#endif
5487
5488#ifdef __cplusplus
5489}
5490#endif
5491_LT_EOF
5492 # Now try linking the two files.
5493 mv conftest.$ac_objext conftstm.$ac_objext
5494 lt_save_LIBS="$LIBS"
5495 lt_save_CFLAGS="$CFLAGS"
5496 LIBS="conftstm.$ac_objext"
5497 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5499 (eval $ac_link) 2>&5
5500 ac_status=$?
5501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5502 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5503 pipe_works=yes
5504 fi
5505 LIBS="$lt_save_LIBS"
5506 CFLAGS="$lt_save_CFLAGS"
5507 else
5508 echo "cannot find nm_test_func in $nlist" >&5
5509 fi
5510 else
5511 echo "cannot find nm_test_var in $nlist" >&5
5512 fi
5513 else
5514 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5515 fi
5516 else
5517 echo "$progname: failed program was:" >&5
5518 cat conftest.$ac_ext >&5
5519 fi
5520 rm -rf conftest* conftst*
5521
5522 # Do not use the global_symbol_pipe unless it works.
5523 if test "$pipe_works" = yes; then
5524 break
5525 else
5526 lt_cv_sys_global_symbol_pipe=
5527 fi
5528done
5529
5530fi
5531
5532if test -z "$lt_cv_sys_global_symbol_pipe"; then
5533 lt_cv_sys_global_symbol_to_cdecl=
5534fi
5535if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5537$as_echo "failed" >&6; }
5538else
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5540$as_echo "ok" >&6; }
5541fi
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564# Check whether --enable-libtool-lock was given.
5565if test "${enable_libtool_lock+set}" = set; then :
5566 enableval=$enable_libtool_lock;
5567fi
5568
5569test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5570
5571# Some flags need to be propagated to the compiler or linker for good
5572# libtool support.
5573case $host in
5574ia64-*-hpux*)
5575 # Find out which ABI we are using.
5576 echo 'int i;' > conftest.$ac_ext
5577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5578 (eval $ac_compile) 2>&5
5579 ac_status=$?
5580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5581 test $ac_status = 0; }; then
5582 case `/usr/bin/file conftest.$ac_objext` in
5583 *ELF-32*)
5584 HPUX_IA64_MODE="32"
5585 ;;
5586 *ELF-64*)
5587 HPUX_IA64_MODE="64"
5588 ;;
5589 esac
5590 fi
5591 rm -rf conftest*
5592 ;;
5593*-*-irix6*)
5594 # Find out which ABI we are using.
5595 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5597 (eval $ac_compile) 2>&5
5598 ac_status=$?
5599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5600 test $ac_status = 0; }; then
5601 if test "$lt_cv_prog_gnu_ld" = yes; then
5602 case `/usr/bin/file conftest.$ac_objext` in
5603 *32-bit*)
5604 LD="${LD-ld} -melf32bsmip"
5605 ;;
5606 *N32*)
5607 LD="${LD-ld} -melf32bmipn32"
5608 ;;
5609 *64-bit*)
5610 LD="${LD-ld} -melf64bmip"
5611 ;;
5612 esac
5613 else
5614 case `/usr/bin/file conftest.$ac_objext` in
5615 *32-bit*)
5616 LD="${LD-ld} -32"
5617 ;;
5618 *N32*)
5619 LD="${LD-ld} -n32"
5620 ;;
5621 *64-bit*)
5622 LD="${LD-ld} -64"
5623 ;;
5624 esac
5625 fi
5626 fi
5627 rm -rf conftest*
5628 ;;
5629
bf3d9781 5630x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6bb11ab3
L
5631s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5632 # Find out which ABI we are using.
5633 echo 'int i;' > conftest.$ac_ext
5634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5635 (eval $ac_compile) 2>&5
5636 ac_status=$?
5637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5638 test $ac_status = 0; }; then
5639 case `/usr/bin/file conftest.o` in
5640 *32-bit*)
5641 case $host in
5642 x86_64-*kfreebsd*-gnu)
5643 LD="${LD-ld} -m elf_i386_fbsd"
5644 ;;
5645 x86_64-*linux*)
5646 case `/usr/bin/file conftest.o` in
5647 *x86-64*)
5648 LD="${LD-ld} -m elf32_x86_64"
5649 ;;
5650 *)
5651 LD="${LD-ld} -m elf_i386"
5652 ;;
5653 esac
5654 ;;
bf3d9781
AM
5655 powerpc64le-*linux*)
5656 LD="${LD-ld} -m elf32lppclinux"
5657 ;;
5658 powerpc64-*linux*)
6bb11ab3
L
5659 LD="${LD-ld} -m elf32ppclinux"
5660 ;;
5661 s390x-*linux*)
5662 LD="${LD-ld} -m elf_s390"
5663 ;;
5664 sparc64-*linux*)
5665 LD="${LD-ld} -m elf32_sparc"
5666 ;;
5667 esac
5668 ;;
5669 *64-bit*)
5670 case $host in
5671 x86_64-*kfreebsd*-gnu)
5672 LD="${LD-ld} -m elf_x86_64_fbsd"
5673 ;;
5674 x86_64-*linux*)
5675 LD="${LD-ld} -m elf_x86_64"
5676 ;;
bf3d9781
AM
5677 powerpcle-*linux*)
5678 LD="${LD-ld} -m elf64lppc"
5679 ;;
5680 powerpc-*linux*)
6bb11ab3
L
5681 LD="${LD-ld} -m elf64ppc"
5682 ;;
5683 s390*-*linux*|s390*-*tpf*)
5684 LD="${LD-ld} -m elf64_s390"
5685 ;;
5686 sparc*-*linux*)
5687 LD="${LD-ld} -m elf64_sparc"
5688 ;;
5689 esac
5690 ;;
5691 esac
5692 fi
5693 rm -rf conftest*
5694 ;;
5695
5696*-*-sco3.2v5*)
5697 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5698 SAVE_CFLAGS="$CFLAGS"
5699 CFLAGS="$CFLAGS -belf"
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5701$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 5702if ${lt_cv_cc_needs_belf+:} false; then :
6bb11ab3
L
5703 $as_echo_n "(cached) " >&6
5704else
5705 ac_ext=c
5706ac_cpp='$CPP $CPPFLAGS'
5707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5709ac_compiler_gnu=$ac_cv_c_compiler_gnu
5710
5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712/* end confdefs.h. */
5713
5714int
5715main ()
5716{
5717
5718 ;
5719 return 0;
5720}
5721_ACEOF
5722if ac_fn_c_try_link "$LINENO"; then :
5723 lt_cv_cc_needs_belf=yes
5724else
5725 lt_cv_cc_needs_belf=no
5726fi
5727rm -f core conftest.err conftest.$ac_objext \
5728 conftest$ac_exeext conftest.$ac_ext
5729 ac_ext=c
5730ac_cpp='$CPP $CPPFLAGS'
5731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5733ac_compiler_gnu=$ac_cv_c_compiler_gnu
5734
5735fi
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5737$as_echo "$lt_cv_cc_needs_belf" >&6; }
5738 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5739 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5740 CFLAGS="$SAVE_CFLAGS"
5741 fi
5742 ;;
5743sparc*-*solaris*)
5744 # Find out which ABI we are using.
5745 echo 'int i;' > conftest.$ac_ext
5746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5747 (eval $ac_compile) 2>&5
5748 ac_status=$?
5749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5750 test $ac_status = 0; }; then
5751 case `/usr/bin/file conftest.o` in
5752 *64-bit*)
5753 case $lt_cv_prog_gnu_ld in
5754 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5755 *)
5756 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5757 LD="${LD-ld} -64"
5758 fi
5759 ;;
5760 esac
5761 ;;
5762 esac
5763 fi
5764 rm -rf conftest*
5765 ;;
5766esac
5767
5768need_locks="$enable_libtool_lock"
5769
5770
5771 case $host_os in
5772 rhapsody* | darwin*)
5773 if test -n "$ac_tool_prefix"; then
5774 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5775set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5777$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5778if ${ac_cv_prog_DSYMUTIL+:} false; then :
6bb11ab3
L
5779 $as_echo_n "(cached) " >&6
5780else
5781 if test -n "$DSYMUTIL"; then
5782 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5783else
5784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785for as_dir in $PATH
5786do
5787 IFS=$as_save_IFS
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5791 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 break 2
5794 fi
5795done
5796 done
5797IFS=$as_save_IFS
5798
5799fi
5800fi
5801DSYMUTIL=$ac_cv_prog_DSYMUTIL
5802if test -n "$DSYMUTIL"; then
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5804$as_echo "$DSYMUTIL" >&6; }
5805else
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807$as_echo "no" >&6; }
5808fi
5809
5810
5811fi
5812if test -z "$ac_cv_prog_DSYMUTIL"; then
5813 ac_ct_DSYMUTIL=$DSYMUTIL
5814 # Extract the first word of "dsymutil", so it can be a program name with args.
5815set dummy dsymutil; ac_word=$2
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5818if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6bb11ab3
L
5819 $as_echo_n "(cached) " >&6
5820else
5821 if test -n "$ac_ct_DSYMUTIL"; then
5822 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5823else
5824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825for as_dir in $PATH
5826do
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5831 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 break 2
5834 fi
5835done
5836 done
5837IFS=$as_save_IFS
5838
5839fi
5840fi
5841ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5842if test -n "$ac_ct_DSYMUTIL"; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5844$as_echo "$ac_ct_DSYMUTIL" >&6; }
5845else
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847$as_echo "no" >&6; }
5848fi
5849
5850 if test "x$ac_ct_DSYMUTIL" = x; then
5851 DSYMUTIL=":"
5852 else
5853 case $cross_compiling:$ac_tool_warned in
5854yes:)
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5857ac_tool_warned=yes ;;
5858esac
5859 DSYMUTIL=$ac_ct_DSYMUTIL
5860 fi
5861else
5862 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5863fi
5864
5865 if test -n "$ac_tool_prefix"; then
5866 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5867set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5869$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5870if ${ac_cv_prog_NMEDIT+:} false; then :
6bb11ab3
L
5871 $as_echo_n "(cached) " >&6
5872else
5873 if test -n "$NMEDIT"; then
5874 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5875else
5876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877for as_dir in $PATH
5878do
5879 IFS=$as_save_IFS
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5883 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 break 2
5886 fi
5887done
5888 done
5889IFS=$as_save_IFS
5890
5891fi
5892fi
5893NMEDIT=$ac_cv_prog_NMEDIT
5894if test -n "$NMEDIT"; then
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5896$as_echo "$NMEDIT" >&6; }
5897else
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5899$as_echo "no" >&6; }
5900fi
5901
5902
5903fi
5904if test -z "$ac_cv_prog_NMEDIT"; then
5905 ac_ct_NMEDIT=$NMEDIT
5906 # Extract the first word of "nmedit", so it can be a program name with args.
5907set dummy nmedit; ac_word=$2
5908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5910if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6bb11ab3
L
5911 $as_echo_n "(cached) " >&6
5912else
5913 if test -n "$ac_ct_NMEDIT"; then
5914 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5915else
5916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917for as_dir in $PATH
5918do
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5923 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 break 2
5926 fi
5927done
5928 done
5929IFS=$as_save_IFS
5930
5931fi
5932fi
5933ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5934if test -n "$ac_ct_NMEDIT"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5936$as_echo "$ac_ct_NMEDIT" >&6; }
5937else
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939$as_echo "no" >&6; }
5940fi
5941
5942 if test "x$ac_ct_NMEDIT" = x; then
5943 NMEDIT=":"
5944 else
5945 case $cross_compiling:$ac_tool_warned in
5946yes:)
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5949ac_tool_warned=yes ;;
5950esac
5951 NMEDIT=$ac_ct_NMEDIT
5952 fi
5953else
5954 NMEDIT="$ac_cv_prog_NMEDIT"
5955fi
5956
5957 if test -n "$ac_tool_prefix"; then
5958 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5959set dummy ${ac_tool_prefix}lipo; ac_word=$2
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5961$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5962if ${ac_cv_prog_LIPO+:} false; then :
6bb11ab3
L
5963 $as_echo_n "(cached) " >&6
5964else
5965 if test -n "$LIPO"; then
5966 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5967else
5968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969for as_dir in $PATH
5970do
5971 IFS=$as_save_IFS
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5975 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 break 2
5978 fi
5979done
5980 done
5981IFS=$as_save_IFS
5982
5983fi
5984fi
5985LIPO=$ac_cv_prog_LIPO
5986if test -n "$LIPO"; then
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5988$as_echo "$LIPO" >&6; }
5989else
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5991$as_echo "no" >&6; }
5992fi
5993
5994
5995fi
5996if test -z "$ac_cv_prog_LIPO"; then
5997 ac_ct_LIPO=$LIPO
5998 # Extract the first word of "lipo", so it can be a program name with args.
5999set dummy lipo; ac_word=$2
6000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6001$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6002if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6bb11ab3
L
6003 $as_echo_n "(cached) " >&6
6004else
6005 if test -n "$ac_ct_LIPO"; then
6006 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6007else
6008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009for as_dir in $PATH
6010do
6011 IFS=$as_save_IFS
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6015 ac_cv_prog_ac_ct_LIPO="lipo"
6016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6017 break 2
6018 fi
6019done
6020 done
6021IFS=$as_save_IFS
6022
6023fi
6024fi
6025ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6026if test -n "$ac_ct_LIPO"; then
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6028$as_echo "$ac_ct_LIPO" >&6; }
6029else
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031$as_echo "no" >&6; }
6032fi
6033
6034 if test "x$ac_ct_LIPO" = x; then
6035 LIPO=":"
6036 else
6037 case $cross_compiling:$ac_tool_warned in
6038yes:)
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6041ac_tool_warned=yes ;;
6042esac
6043 LIPO=$ac_ct_LIPO
6044 fi
6045else
6046 LIPO="$ac_cv_prog_LIPO"
6047fi
6048
6049 if test -n "$ac_tool_prefix"; then
6050 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6051set dummy ${ac_tool_prefix}otool; ac_word=$2
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6054if ${ac_cv_prog_OTOOL+:} false; then :
6bb11ab3
L
6055 $as_echo_n "(cached) " >&6
6056else
6057 if test -n "$OTOOL"; then
6058 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6059else
6060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061for as_dir in $PATH
6062do
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6067 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6070 fi
6071done
6072 done
6073IFS=$as_save_IFS
6074
6075fi
6076fi
6077OTOOL=$ac_cv_prog_OTOOL
6078if test -n "$OTOOL"; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6080$as_echo "$OTOOL" >&6; }
6081else
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083$as_echo "no" >&6; }
6084fi
6085
6086
6087fi
6088if test -z "$ac_cv_prog_OTOOL"; then
6089 ac_ct_OTOOL=$OTOOL
6090 # Extract the first word of "otool", so it can be a program name with args.
6091set dummy otool; ac_word=$2
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6094if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6bb11ab3
L
6095 $as_echo_n "(cached) " >&6
6096else
6097 if test -n "$ac_ct_OTOOL"; then
6098 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6099else
6100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101for as_dir in $PATH
6102do
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6107 ac_cv_prog_ac_ct_OTOOL="otool"
6108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109 break 2
6110 fi
6111done
6112 done
6113IFS=$as_save_IFS
6114
6115fi
6116fi
6117ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6118if test -n "$ac_ct_OTOOL"; then
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6120$as_echo "$ac_ct_OTOOL" >&6; }
6121else
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123$as_echo "no" >&6; }
6124fi
6125
6126 if test "x$ac_ct_OTOOL" = x; then
6127 OTOOL=":"
6128 else
6129 case $cross_compiling:$ac_tool_warned in
6130yes:)
6131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6133ac_tool_warned=yes ;;
6134esac
6135 OTOOL=$ac_ct_OTOOL
6136 fi
6137else
6138 OTOOL="$ac_cv_prog_OTOOL"
6139fi
6140
6141 if test -n "$ac_tool_prefix"; then
6142 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6143set dummy ${ac_tool_prefix}otool64; ac_word=$2
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6146if ${ac_cv_prog_OTOOL64+:} false; then :
6bb11ab3
L
6147 $as_echo_n "(cached) " >&6
6148else
6149 if test -n "$OTOOL64"; then
6150 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6151else
6152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153for as_dir in $PATH
6154do
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6159 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 break 2
6162 fi
6163done
6164 done
6165IFS=$as_save_IFS
6166
6167fi
6168fi
6169OTOOL64=$ac_cv_prog_OTOOL64
6170if test -n "$OTOOL64"; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6172$as_echo "$OTOOL64" >&6; }
6173else
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175$as_echo "no" >&6; }
6176fi
6177
6178
6179fi
6180if test -z "$ac_cv_prog_OTOOL64"; then
6181 ac_ct_OTOOL64=$OTOOL64
6182 # Extract the first word of "otool64", so it can be a program name with args.
6183set dummy otool64; ac_word=$2
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6186if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6bb11ab3
L
6187 $as_echo_n "(cached) " >&6
6188else
6189 if test -n "$ac_ct_OTOOL64"; then
6190 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6191else
6192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193for as_dir in $PATH
6194do
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6199 ac_cv_prog_ac_ct_OTOOL64="otool64"
6200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 break 2
6202 fi
6203done
6204 done
6205IFS=$as_save_IFS
6206
6207fi
6208fi
6209ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6210if test -n "$ac_ct_OTOOL64"; then
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6212$as_echo "$ac_ct_OTOOL64" >&6; }
6213else
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215$as_echo "no" >&6; }
6216fi
6217
6218 if test "x$ac_ct_OTOOL64" = x; then
6219 OTOOL64=":"
6220 else
6221 case $cross_compiling:$ac_tool_warned in
6222yes:)
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6225ac_tool_warned=yes ;;
6226esac
6227 OTOOL64=$ac_ct_OTOOL64
6228 fi
6229else
6230 OTOOL64="$ac_cv_prog_OTOOL64"
6231fi
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6260$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 6261if ${lt_cv_apple_cc_single_mod+:} false; then :
6bb11ab3
L
6262 $as_echo_n "(cached) " >&6
6263else
6264 lt_cv_apple_cc_single_mod=no
6265 if test -z "${LT_MULTI_MODULE}"; then
6266 # By default we will add the -single_module flag. You can override
6267 # by either setting the environment variable LT_MULTI_MODULE
6268 # non-empty at configure time, or by adding -multi_module to the
6269 # link flags.
6270 rm -rf libconftest.dylib*
6271 echo "int foo(void){return 1;}" > conftest.c
6272 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6273-dynamiclib -Wl,-single_module conftest.c" >&5
6274 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6275 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6276 _lt_result=$?
6277 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6278 lt_cv_apple_cc_single_mod=yes
6279 else
6280 cat conftest.err >&5
6281 fi
6282 rm -rf libconftest.dylib*
6283 rm -f conftest.*
6284 fi
6285fi
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6287$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6289$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 6290if ${lt_cv_ld_exported_symbols_list+:} false; then :
6bb11ab3
L
6291 $as_echo_n "(cached) " >&6
6292else
6293 lt_cv_ld_exported_symbols_list=no
6294 save_LDFLAGS=$LDFLAGS
6295 echo "_main" > conftest.sym
6296 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298/* end confdefs.h. */
6299
6300int
6301main ()
6302{
6303
6304 ;
6305 return 0;
6306}
6307_ACEOF
6308if ac_fn_c_try_link "$LINENO"; then :
6309 lt_cv_ld_exported_symbols_list=yes
6310else
6311 lt_cv_ld_exported_symbols_list=no
6312fi
6313rm -f core conftest.err conftest.$ac_objext \
6314 conftest$ac_exeext conftest.$ac_ext
6315 LDFLAGS="$save_LDFLAGS"
6316
6317fi
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6319$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6321$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 6322if ${lt_cv_ld_force_load+:} false; then :
6bb11ab3
L
6323 $as_echo_n "(cached) " >&6
6324else
6325 lt_cv_ld_force_load=no
6326 cat > conftest.c << _LT_EOF
6327int forced_loaded() { return 2;}
6328_LT_EOF
6329 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6330 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6331 echo "$AR cru libconftest.a conftest.o" >&5
6332 $AR cru libconftest.a conftest.o 2>&5
6333 cat > conftest.c << _LT_EOF
6334int main() { return 0;}
6335_LT_EOF
6336 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6337 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6338 _lt_result=$?
6339 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6340 lt_cv_ld_force_load=yes
6341 else
6342 cat conftest.err >&5
6343 fi
6344 rm -f conftest.err libconftest.a conftest conftest.c
6345 rm -rf conftest.dSYM
6346
6347fi
6348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6349$as_echo "$lt_cv_ld_force_load" >&6; }
6350 case $host_os in
6351 rhapsody* | darwin1.[012])
6352 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6353 darwin1.*)
6354 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6355 darwin*) # darwin 5.x on
6356 # if running on 10.5 or later, the deployment target defaults
6357 # to the OS version, if on x86, and 10.4, the deployment
6358 # target defaults to 10.4. Don't you love it?
6359 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6360 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6361 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ae7d0cac 6362 10.[012][,.]*)
6bb11ab3
L
6363 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6364 10.*)
6365 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6366 esac
6367 ;;
6368 esac
6369 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6370 _lt_dar_single_mod='$single_module'
6371 fi
6372 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6373 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6374 else
6375 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6376 fi
6377 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6378 _lt_dsymutil='~$DSYMUTIL $lib || :'
6379 else
6380 _lt_dsymutil=
6381 fi
6382 ;;
6383 esac
6384
6385for ac_header in dlfcn.h
6386do :
6387 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6388"
d0ac1c44 6389if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6bb11ab3
L
6390 cat >>confdefs.h <<_ACEOF
6391#define HAVE_DLFCN_H 1
6392_ACEOF
6393
6394fi
6395
6396done
6397
6398
6399
ebe9564b 6400
6bb11ab3 6401
0cb8d851
MF
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6403$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d0ac1c44 6404if ${ac_cv_c_bigendian+:} false; then :
0cb8d851
MF
6405 $as_echo_n "(cached) " >&6
6406else
6407 ac_cv_c_bigendian=unknown
6408 # See if we're dealing with a universal compiler.
6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410/* end confdefs.h. */
6411#ifndef __APPLE_CC__
6412 not a universal capable compiler
6413 #endif
6414 typedef int dummy;
6415
6416_ACEOF
6417if ac_fn_c_try_compile "$LINENO"; then :
6418
6419 # Check for potential -arch flags. It is not universal unless
6420 # there are at least two -arch flags with different values.
6421 ac_arch=
6422 ac_prev=
6423 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6424 if test -n "$ac_prev"; then
6425 case $ac_word in
6426 i?86 | x86_64 | ppc | ppc64)
6427 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6428 ac_arch=$ac_word
6429 else
6430 ac_cv_c_bigendian=universal
6431 break
6432 fi
6433 ;;
6434 esac
6435 ac_prev=
6436 elif test "x$ac_word" = "x-arch"; then
6437 ac_prev=arch
6438 fi
6439 done
6440fi
6441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442 if test $ac_cv_c_bigendian = unknown; then
6443 # See if sys/param.h defines the BYTE_ORDER macro.
6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445/* end confdefs.h. */
6446#include <sys/types.h>
6447 #include <sys/param.h>
6448
6449int
6450main ()
6451{
6452#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6453 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6454 && LITTLE_ENDIAN)
6455 bogus endian macros
6456 #endif
6457
6458 ;
6459 return 0;
6460}
6461_ACEOF
6462if ac_fn_c_try_compile "$LINENO"; then :
6463 # It does; now see whether it defined to BIG_ENDIAN or not.
6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465/* end confdefs.h. */
6466#include <sys/types.h>
6467 #include <sys/param.h>
6468
6469int
6470main ()
6471{
6472#if BYTE_ORDER != BIG_ENDIAN
6473 not big endian
6474 #endif
6475
6476 ;
6477 return 0;
6478}
6479_ACEOF
6480if ac_fn_c_try_compile "$LINENO"; then :
6481 ac_cv_c_bigendian=yes
6482else
6483 ac_cv_c_bigendian=no
6484fi
6485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6486fi
6487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488 fi
6489 if test $ac_cv_c_bigendian = unknown; then
6490 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492/* end confdefs.h. */
6493#include <limits.h>
6494
6495int
6496main ()
6497{
6498#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6499 bogus endian macros
6500 #endif
6501
6502 ;
6503 return 0;
6504}
6505_ACEOF
6506if ac_fn_c_try_compile "$LINENO"; then :
6507 # It does; now see whether it defined to _BIG_ENDIAN or not.
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509/* end confdefs.h. */
6510#include <limits.h>
6511
6512int
6513main ()
6514{
6515#ifndef _BIG_ENDIAN
6516 not big endian
6517 #endif
6518
6519 ;
6520 return 0;
6521}
6522_ACEOF
6523if ac_fn_c_try_compile "$LINENO"; then :
6524 ac_cv_c_bigendian=yes
6525else
6526 ac_cv_c_bigendian=no
6527fi
6528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6529fi
6530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 fi
6532 if test $ac_cv_c_bigendian = unknown; then
6533 # Compile a test program.
6534 if test "$cross_compiling" = yes; then :
6535 # Try to guess by grepping values from an object file.
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537/* end confdefs.h. */
6538short int ascii_mm[] =
6539 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6540 short int ascii_ii[] =
6541 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6542 int use_ascii (int i) {
6543 return ascii_mm[i] + ascii_ii[i];
6544 }
6545 short int ebcdic_ii[] =
6546 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6547 short int ebcdic_mm[] =
6548 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6549 int use_ebcdic (int i) {
6550 return ebcdic_mm[i] + ebcdic_ii[i];
6551 }
6552 extern int foo;
6553
6554int
6555main ()
6556{
6557return use_ascii (foo) == use_ebcdic (foo);
6558 ;
6559 return 0;
6560}
6561_ACEOF
6562if ac_fn_c_try_compile "$LINENO"; then :
6563 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6564 ac_cv_c_bigendian=yes
6565 fi
6566 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6567 if test "$ac_cv_c_bigendian" = unknown; then
6568 ac_cv_c_bigendian=no
6569 else
6570 # finding both strings is unlikely to happen, but who knows?
6571 ac_cv_c_bigendian=unknown
6572 fi
6573 fi
6574fi
6575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576else
6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578/* end confdefs.h. */
6579$ac_includes_default
6580int
6581main ()
6582{
6583
6584 /* Are we little or big endian? From Harbison&Steele. */
6585 union
6586 {
6587 long int l;
6588 char c[sizeof (long int)];
6589 } u;
6590 u.l = 1;
6591 return u.c[sizeof (long int) - 1] == 1;
6592
6593 ;
6594 return 0;
6595}
6596_ACEOF
6597if ac_fn_c_try_run "$LINENO"; then :
6598 ac_cv_c_bigendian=no
6599else
6600 ac_cv_c_bigendian=yes
6601fi
6602rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6603 conftest.$ac_objext conftest.beam conftest.$ac_ext
6604fi
6605
6606 fi
6607fi
6608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6609$as_echo "$ac_cv_c_bigendian" >&6; }
6610 case $ac_cv_c_bigendian in #(
6611 yes)
6612 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6613;; #(
6614 no)
6615 ;; #(
6616 universal)
6617
6618$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6619
6620 ;; #(
6621 *)
d0ac1c44 6622 as_fn_error $? "unknown endianness
0cb8d851
MF
6623 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6624 esac
6625
6bb11ab3
L
6626
6627
6628
c25ea03d 6629if test "x$cross_compiling" = "xno"; then
aa0fca16 6630 : "${AR_FOR_BUILD:=\$(AR)}"
c25ea03d 6631 : "${CC_FOR_BUILD:=\$(CC)}"
aa0fca16 6632 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
c25ea03d 6633 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
c2783492 6634 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
c25ea03d 6635else
aa0fca16 6636 : "${AR_FOR_BUILD:=ar}"
c25ea03d 6637 : "${CC_FOR_BUILD:=gcc}"
aa0fca16 6638 : "${RANLIB_FOR_BUILD:=ranlib}"
c25ea03d 6639 : "${CFLAGS_FOR_BUILD:=-g -O}"
c2783492 6640 : "${LDLFAGS_FOR_BUILD:=}"
6bb11ab3
L
6641fi
6642
6643
6644
c25ea03d 6645
c2783492 6646
aa0fca16
MF
6647
6648
a3e2cc64
MF
6649if test -n "$ac_tool_prefix"; then
6650 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6651set dummy ${ac_tool_prefix}ar; ac_word=$2
6652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653$as_echo_n "checking for $ac_word... " >&6; }
6654if ${ac_cv_prog_AR+:} false; then :
6655 $as_echo_n "(cached) " >&6
6656else
6657 if test -n "$AR"; then
6658 ac_cv_prog_AR="$AR" # Let the user override the test.
6659else
6660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661for as_dir in $PATH
6662do
6663 IFS=$as_save_IFS
6664 test -z "$as_dir" && as_dir=.
6665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6667 ac_cv_prog_AR="${ac_tool_prefix}ar"
6668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6669 break 2
6670 fi
6671done
6672 done
6673IFS=$as_save_IFS
6674
6675fi
6676fi
6677AR=$ac_cv_prog_AR
6678if test -n "$AR"; then
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6680$as_echo "$AR" >&6; }
6681else
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683$as_echo "no" >&6; }
6684fi
6685
6686
6687fi
6688if test -z "$ac_cv_prog_AR"; then
6689 ac_ct_AR=$AR
6690 # Extract the first word of "ar", so it can be a program name with args.
6691set dummy ar; ac_word=$2
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693$as_echo_n "checking for $ac_word... " >&6; }
6694if ${ac_cv_prog_ac_ct_AR+:} false; then :
6695 $as_echo_n "(cached) " >&6
6696else
6697 if test -n "$ac_ct_AR"; then
6698 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6699else
6700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701for as_dir in $PATH
6702do
6703 IFS=$as_save_IFS
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6707 ac_cv_prog_ac_ct_AR="ar"
6708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 break 2
6710 fi
6711done
6712 done
6713IFS=$as_save_IFS
6714
6715fi
6716fi
6717ac_ct_AR=$ac_cv_prog_ac_ct_AR
6718if test -n "$ac_ct_AR"; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6720$as_echo "$ac_ct_AR" >&6; }
6721else
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723$as_echo "no" >&6; }
6724fi
6725
6726 if test "x$ac_ct_AR" = x; then
6727 AR=""
6728 else
6729 case $cross_compiling:$ac_tool_warned in
6730yes:)
6731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6733ac_tool_warned=yes ;;
6734esac
6735 AR=$ac_ct_AR
6736 fi
6737else
6738 AR="$ac_cv_prog_AR"
6739fi
6bb11ab3
L
6740
6741if test -n "$ac_tool_prefix"; then
6742 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6743set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6745$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6746if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
6747 $as_echo_n "(cached) " >&6
6748else
6749 if test -n "$RANLIB"; then
6750 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6751else
6752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753for as_dir in $PATH
6754do
6755 IFS=$as_save_IFS
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6759 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 break 2
6762 fi
6763done
6764 done
6765IFS=$as_save_IFS
6766
6767fi
6768fi
6769RANLIB=$ac_cv_prog_RANLIB
6770if test -n "$RANLIB"; then
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6772$as_echo "$RANLIB" >&6; }
6773else
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6775$as_echo "no" >&6; }
6776fi
6777
6778
6779fi
6780if test -z "$ac_cv_prog_RANLIB"; then
6781 ac_ct_RANLIB=$RANLIB
6782 # Extract the first word of "ranlib", so it can be a program name with args.
6783set dummy ranlib; ac_word=$2
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6785$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6786if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
6787 $as_echo_n "(cached) " >&6
6788else
6789 if test -n "$ac_ct_RANLIB"; then
6790 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6791else
6792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793for as_dir in $PATH
6794do
6795 IFS=$as_save_IFS
6796 test -z "$as_dir" && as_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6799 ac_cv_prog_ac_ct_RANLIB="ranlib"
6800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 break 2
6802 fi
6803done
6804 done
6805IFS=$as_save_IFS
6806
6807fi
6808fi
6809ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6810if test -n "$ac_ct_RANLIB"; then
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6812$as_echo "$ac_ct_RANLIB" >&6; }
6813else
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6815$as_echo "no" >&6; }
6816fi
6817
6818 if test "x$ac_ct_RANLIB" = x; then
6819 RANLIB=":"
6820 else
6821 case $cross_compiling:$ac_tool_warned in
6822yes:)
6823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6825ac_tool_warned=yes ;;
6826esac
6827 RANLIB=$ac_ct_RANLIB
6828 fi
6829else
6830 RANLIB="$ac_cv_prog_RANLIB"
6831fi
6832
6833
46f900c0
MF
6834# Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
6835# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
6836# is C99. So handle it ourselves.
6837:
6838C_DIALECT=
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
6840$as_echo_n "checking whether C11 is supported by default... " >&6; }
6841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842/* end confdefs.h. */
6843
6844#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
6845# error "C11 support not found"
6846#endif
6847
6848_ACEOF
6849if ac_fn_c_try_compile "$LINENO"; then :
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6851$as_echo "yes" >&6; }
6852else
6853
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855$as_echo "no" >&6; }
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
6857$as_echo_n "checking for -std=c11 support... " >&6; }
6858 ac_save_CC="$CC"
6859 CC="$CC -std=c11"
6860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861/* end confdefs.h. */
6862
6863#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
6864# error "C11 support not found"
6865#endif
6866
6867_ACEOF
6868if ac_fn_c_try_compile "$LINENO"; then :
6869
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6871$as_echo "yes" >&6; }
6872 CC="$ac_save_CC"
6873 C_DIALECT="-std=c11"
6874
6875else
6876 as_fn_error $? "C11 is required" "$LINENO" 5
6877fi
6878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6879fi
6880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6881
6882
c2783492
MF
6883ac_config_headers="$ac_config_headers config.h:config.in"
6884
6885
6bb11ab3
L
6886# Dependency checking.
6887ac_config_commands="$ac_config_commands depdir"
6888
6889
6890depcc="$CC" am_compiler_list=
6891
6892am_depcomp=$ac_aux_dir/depcomp
6893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6894$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 6895if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6bb11ab3
L
6896 $as_echo_n "(cached) " >&6
6897else
6898 if test -f "$am_depcomp"; then
6899 # We make a subdir and do the tests there. Otherwise we can end up
6900 # making bogus files that we don't know about and never remove. For
6901 # instance it was reported that on HP-UX the gcc test will end up
6902 # making a dummy file named `D' -- because `-MD' means `put the output
6903 # in D'.
6904 mkdir conftest.dir
6905 # Copy depcomp to subdir because otherwise we won't find it if we're
6906 # using a relative directory.
6907 cp "$am_depcomp" conftest.dir
6908 cd conftest.dir
6909 # We will build objects and dependencies in a subdirectory because
6910 # it helps to detect inapplicable dependency modes. For instance
6911 # both Tru64's cc and ICC support -MD to output dependencies as a
6912 # side effect of compilation, but ICC will put the dependencies in
6913 # the current directory while Tru64 will put them in the object
6914 # directory.
6915 mkdir sub
6916
6917 am_cv_CC_dependencies_compiler_type=none
6918 if test "$am_compiler_list" = ""; then
6919 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6920 fi
6921 for depmode in $am_compiler_list; do
6922 if test $depmode = none; then break; fi
6923
6924 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6925 # Setup a source with many dependencies, because some compilers
6926 # like to wrap large dependency lists on column 80 (with \), and
6927 # we should not choose a depcomp mode which is confused by this.
6928 #
6929 # We need to recreate these files for each test, as the compiler may
6930 # overwrite some of them when testing with obscure command lines.
6931 # This happens at least with the AIX C compiler.
6932 : > sub/conftest.c
6933 for i in 1 2 3 4 5 6; do
6934 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6935 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6936 # Solaris 8's {/usr,}/bin/sh.
6937 touch sub/conftst$i.h
6938 done
6939 echo "include sub/conftest.Po" > confmf
6940
6941 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6942 # mode. It turns out that the SunPro C++ compiler does not properly
6943 # handle `-M -o', and we need to detect this.
6944 depcmd="depmode=$depmode \
6945 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6946 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6947 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6948 echo "| $depcmd" | sed -e 's/ */ /g' >&5
6949 if env $depcmd > conftest.err 2>&1 &&
6950 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
6951 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
6952 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
6953 # icc doesn't choke on unknown options, it will just issue warnings
6954 # or remarks (even with -Werror). So we grep stderr for any message
6955 # that says an option was ignored or not supported.
6956 # When given -MP, icc 7.0 and 7.1 complain thusly:
6957 # icc: Command line warning: ignoring option '-M'; no argument required
6958 # The diagnosis changed in icc 8.0:
6959 # icc: Command line remark: option '-MP' not supported
6960 if (grep 'ignoring option' conftest.err ||
6961 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6962 am_cv_CC_dependencies_compiler_type=$depmode
6963 $as_echo "$as_me:$LINENO: success" >&5
6964 break
6965 fi
6966 fi
6967 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6968 sed -e 's/^/| /' < conftest.err >&5
6969 done
6970
6971 cd ..
6972 rm -rf conftest.dir
6973else
6974 am_cv_CC_dependencies_compiler_type=none
6975fi
6976
6977fi
6978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6979$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6980if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
d0ac1c44 6981then as_fn_error $? "no usable dependency style found" "$LINENO" 5
6bb11ab3
L
6982else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6983
6984fi
6985
6986
6bb11ab3
L
6987ALL_LINGUAS=
6988# If we haven't got the data from the intl directory,
6989# assume NLS is disabled.
6990USE_NLS=no
6991LIBINTL=
6992LIBINTL_DEP=
6993INCINTL=
6994XGETTEXT=
6995GMSGFMT=
6996POSUB=
6997
6998if test -f ../../intl/config.intl; then
6999 . ../../intl/config.intl
7000fi
7001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7002$as_echo_n "checking whether NLS is requested... " >&6; }
7003if test x"$USE_NLS" != xyes; then
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005$as_echo "no" >&6; }
7006else
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7008$as_echo "yes" >&6; }
7009
7010$as_echo "#define ENABLE_NLS 1" >>confdefs.h
7011
7012
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7014$as_echo_n "checking for catalogs to be installed... " >&6; }
7015 # Look for .po and .gmo files in the source directory.
7016 CATALOGS=
7017 XLINGUAS=
7018 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7019 # If there aren't any .gmo files the shell will give us the
7020 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7021 # weeded out.
7022 case "$cat" in *\**)
7023 continue;;
7024 esac
7025 # The quadruple backslash is collapsed to a double backslash
7026 # by the backticks, then collapsed again by the double quotes,
7027 # leaving us with one backslash in the sed expression (right
7028 # before the dot that mustn't act as a wildcard).
7029 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7030 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7031 # The user is allowed to set LINGUAS to a list of languages to
7032 # install catalogs for. If it's empty that means "all of them."
7033 if test "x$LINGUAS" = x; then
7034 CATALOGS="$CATALOGS $cat"
7035 XLINGUAS="$XLINGUAS $lang"
7036 else
7037 case "$LINGUAS" in *$lang*)
7038 CATALOGS="$CATALOGS $cat"
7039 XLINGUAS="$XLINGUAS $lang"
7040 ;;
7041 esac
7042 fi
7043 done
7044 LINGUAS="$XLINGUAS"
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7046$as_echo "$LINGUAS" >&6; }
7047
7048
7049 DATADIRNAME=share
7050
7051 INSTOBJEXT=.mo
7052
7053 GENCAT=gencat
7054
7055 CATOBJEXT=.gmo
7056
7057fi
7058
6bb11ab3
L
7059# Check for socket libraries
7060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7061$as_echo_n "checking for bind in -lsocket... " >&6; }
d0ac1c44 7062if ${ac_cv_lib_socket_bind+:} false; then :
6bb11ab3
L
7063 $as_echo_n "(cached) " >&6
7064else
7065 ac_check_lib_save_LIBS=$LIBS
7066LIBS="-lsocket $LIBS"
7067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068/* end confdefs.h. */
7069
7070/* Override any GCC internal prototype to avoid an error.
7071 Use char because int might match the return type of a GCC
7072 builtin and then its argument prototype would still apply. */
7073#ifdef __cplusplus
7074extern "C"
7075#endif
7076char bind ();
7077int
7078main ()
7079{
7080return bind ();
7081 ;
7082 return 0;
7083}
7084_ACEOF
7085if ac_fn_c_try_link "$LINENO"; then :
7086 ac_cv_lib_socket_bind=yes
7087else
7088 ac_cv_lib_socket_bind=no
7089fi
7090rm -f core conftest.err conftest.$ac_objext \
7091 conftest$ac_exeext conftest.$ac_ext
7092LIBS=$ac_check_lib_save_LIBS
7093fi
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7095$as_echo "$ac_cv_lib_socket_bind" >&6; }
d0ac1c44 7096if test "x$ac_cv_lib_socket_bind" = xyes; then :
6bb11ab3
L
7097 cat >>confdefs.h <<_ACEOF
7098#define HAVE_LIBSOCKET 1
7099_ACEOF
7100
7101 LIBS="-lsocket $LIBS"
7102
7103fi
7104
7105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7106$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
d0ac1c44 7107if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
6bb11ab3
L
7108 $as_echo_n "(cached) " >&6
7109else
7110 ac_check_lib_save_LIBS=$LIBS
7111LIBS="-lnsl $LIBS"
7112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113/* end confdefs.h. */
7114
7115/* Override any GCC internal prototype to avoid an error.
7116 Use char because int might match the return type of a GCC
7117 builtin and then its argument prototype would still apply. */
7118#ifdef __cplusplus
7119extern "C"
7120#endif
7121char gethostbyname ();
7122int
7123main ()
7124{
7125return gethostbyname ();
7126 ;
7127 return 0;
7128}
7129_ACEOF
7130if ac_fn_c_try_link "$LINENO"; then :
7131 ac_cv_lib_nsl_gethostbyname=yes
7132else
7133 ac_cv_lib_nsl_gethostbyname=no
7134fi
7135rm -f core conftest.err conftest.$ac_objext \
7136 conftest$ac_exeext conftest.$ac_ext
7137LIBS=$ac_check_lib_save_LIBS
7138fi
7139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7140$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
d0ac1c44 7141if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
6bb11ab3
L
7142 cat >>confdefs.h <<_ACEOF
7143#define HAVE_LIBNSL 1
7144_ACEOF
7145
7146 LIBS="-lnsl $LIBS"
7147
7148fi
7149
7150
7151# BFD conditionally uses zlib, so we must link it in if libbfd does, by
7152# using the same condition.
7153
aadc9410 7154 # Use the system's zlib library.
7fed4b0b
L
7155 zlibdir="-L\$(top_builddir)/../zlib"
7156 zlibinc="-I\$(top_srcdir)/../zlib"
6bb11ab3 7157
aadc9410
MF
7158# Check whether --with-system-zlib was given.
7159if test "${with_system_zlib+set}" = set; then :
0ceaf1ec
L
7160 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7161 zlibdir=
7162 zlibinc=
7163 fi
6bb11ab3
L
7164
7165fi
7166
6bb11ab3 7167
6bb11ab3 7168
6bb11ab3
L
7169
7170
7171# BFD uses libdl when when plugins enabled.
7172
faa743bb
RM
7173 maybe_plugins=no
7174 for ac_header in dlfcn.h
7175do :
7176 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7177"
d0ac1c44 7178if test "x$ac_cv_header_dlfcn_h" = xyes; then :
faa743bb
RM
7179 cat >>confdefs.h <<_ACEOF
7180#define HAVE_DLFCN_H 1
7181_ACEOF
7182 maybe_plugins=yes
7183fi
7184
7185done
7186
7187 for ac_header in windows.h
7188do :
7189 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
7190"
d0ac1c44 7191if test "x$ac_cv_header_windows_h" = xyes; then :
faa743bb
RM
7192 cat >>confdefs.h <<_ACEOF
7193#define HAVE_WINDOWS_H 1
7194_ACEOF
7195 maybe_plugins=yes
7196fi
7197
7198done
7199
7200
7201 # Check whether --enable-plugins was given.
6bb11ab3
L
7202if test "${enable_plugins+set}" = set; then :
7203 enableval=$enable_plugins; case "${enableval}" in
faa743bb
RM
7204 no) plugins=no ;;
7205 *) plugins=yes
7206 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 7207 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
faa743bb
RM
7208 fi ;;
7209 esac
6bb11ab3 7210else
faa743bb
RM
7211 plugins=$maybe_plugins
7212
6bb11ab3
L
7213fi
7214
2974be62 7215 if test "$plugins" = "yes"; then
37f980dc
SM
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
7217$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 7218if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7219 $as_echo_n "(cached) " >&6
7220else
7221 ac_func_search_save_LIBS=$LIBS
7222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223/* end confdefs.h. */
7224
7225/* Override any GCC internal prototype to avoid an error.
7226 Use char because int might match the return type of a GCC
7227 builtin and then its argument prototype would still apply. */
7228#ifdef __cplusplus
7229extern "C"
7230#endif
37f980dc 7231char dlsym ();
2974be62
AM
7232int
7233main ()
7234{
37f980dc 7235return dlsym ();
2974be62
AM
7236 ;
7237 return 0;
7238}
7239_ACEOF
7240for ac_lib in '' dl; do
7241 if test -z "$ac_lib"; then
7242 ac_res="none required"
7243 else
7244 ac_res=-l$ac_lib
7245 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7246 fi
7247 if ac_fn_c_try_link "$LINENO"; then :
37f980dc 7248 ac_cv_search_dlsym=$ac_res
2974be62
AM
7249fi
7250rm -f core conftest.err conftest.$ac_objext \
7251 conftest$ac_exeext
d0ac1c44 7252 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7253 break
7254fi
7255done
d0ac1c44 7256if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7257
7258else
37f980dc 7259 ac_cv_search_dlsym=no
2974be62
AM
7260fi
7261rm conftest.$ac_ext
7262LIBS=$ac_func_search_save_LIBS
7263fi
37f980dc
SM
7264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
7265$as_echo "$ac_cv_search_dlsym" >&6; }
7266ac_res=$ac_cv_search_dlsym
2974be62
AM
7267if test "$ac_res" != no; then :
7268 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7269
7270fi
7271
7272 fi
6bb11ab3
L
7273
7274 if test "$plugins" = yes; then
7275 PLUGINS_TRUE=
7276 PLUGINS_FALSE='#'
7277else
7278 PLUGINS_TRUE='#'
7279 PLUGINS_FALSE=
7280fi
7281
7282
7283
7284
7285
7286# Set options
7287enable_dlopen=yes
7288
7289
7290
7291
7292 enable_win32_dll=no
7293
7294
7295 # Check whether --enable-shared was given.
7296if test "${enable_shared+set}" = set; then :
7297 enableval=$enable_shared; p=${PACKAGE-default}
7298 case $enableval in
7299 yes) enable_shared=yes ;;
7300 no) enable_shared=no ;;
7301 *)
7302 enable_shared=no
7303 # Look at the argument we got. We use all the common list separators.
7304 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7305 for pkg in $enableval; do
7306 IFS="$lt_save_ifs"
7307 if test "X$pkg" = "X$p"; then
7308 enable_shared=yes
7309 fi
7310 done
7311 IFS="$lt_save_ifs"
7312 ;;
7313 esac
7314else
7315 enable_shared=yes
7316fi
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326 # Check whether --enable-static was given.
7327if test "${enable_static+set}" = set; then :
7328 enableval=$enable_static; p=${PACKAGE-default}
7329 case $enableval in
7330 yes) enable_static=yes ;;
7331 no) enable_static=no ;;
7332 *)
7333 enable_static=no
7334 # Look at the argument we got. We use all the common list separators.
7335 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7336 for pkg in $enableval; do
7337 IFS="$lt_save_ifs"
7338 if test "X$pkg" = "X$p"; then
7339 enable_static=yes
7340 fi
7341 done
7342 IFS="$lt_save_ifs"
7343 ;;
7344 esac
7345else
7346 enable_static=yes
7347fi
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358# Check whether --with-pic was given.
7359if test "${with_pic+set}" = set; then :
7360 withval=$with_pic; pic_mode="$withval"
7361else
7362 pic_mode=default
7363fi
7364
7365
7366test -z "$pic_mode" && pic_mode=default
7367
7368
7369
7370
7371
7372
7373
7374 # Check whether --enable-fast-install was given.
7375if test "${enable_fast_install+set}" = set; then :
7376 enableval=$enable_fast_install; p=${PACKAGE-default}
7377 case $enableval in
7378 yes) enable_fast_install=yes ;;
7379 no) enable_fast_install=no ;;
7380 *)
7381 enable_fast_install=no
7382 # Look at the argument we got. We use all the common list separators.
7383 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7384 for pkg in $enableval; do
7385 IFS="$lt_save_ifs"
7386 if test "X$pkg" = "X$p"; then
7387 enable_fast_install=yes
7388 fi
7389 done
7390 IFS="$lt_save_ifs"
7391 ;;
7392 esac
7393else
7394 enable_fast_install=yes
7395fi
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407# This can be used to rebuild libtool when needed
7408LIBTOOL_DEPS="$ltmain"
7409
7410# Always use our own libtool.
7411LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438test -z "$LN_S" && LN_S="ln -s"
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453if test -n "${ZSH_VERSION+set}" ; then
7454 setopt NO_GLOB_SUBST
6ffe910a 7455fi
6ffe910a 7456
6bb11ab3
L
7457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7458$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 7459if ${lt_cv_objdir+:} false; then :
6bb11ab3
L
7460 $as_echo_n "(cached) " >&6
7461else
7462 rm -f .libs 2>/dev/null
7463mkdir .libs 2>/dev/null
7464if test -d .libs; then
7465 lt_cv_objdir=.libs
7466else
7467 # MS-DOS does not allow filenames that begin with a dot.
7468 lt_cv_objdir=_libs
7469fi
7470rmdir .libs 2>/dev/null
7471fi
7472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7473$as_echo "$lt_cv_objdir" >&6; }
7474objdir=$lt_cv_objdir
7475
7476
7477
7478
7479
7480cat >>confdefs.h <<_ACEOF
7481#define LT_OBJDIR "$lt_cv_objdir/"
7482_ACEOF
7483
7484
7485
7486
7487case $host_os in
7488aix3*)
7489 # AIX sometimes has problems with the GCC collect2 program. For some
7490 # reason, if we set the COLLECT_NAMES environment variable, the problems
7491 # vanish in a puff of smoke.
7492 if test "X${COLLECT_NAMES+set}" != Xset; then
7493 COLLECT_NAMES=
7494 export COLLECT_NAMES
7495 fi
7496 ;;
6ffe910a 7497esac
6bb11ab3
L
7498
7499# Global variables:
7500ofile=libtool
7501can_build_shared=yes
7502
7503# All known linkers require a `.a' archive for static linking (except MSVC,
7504# which needs '.lib').
7505libext=a
7506
7507with_gnu_ld="$lt_cv_prog_gnu_ld"
7508
7509old_CC="$CC"
7510old_CFLAGS="$CFLAGS"
7511
7512# Set sane defaults for various variables
7513test -z "$CC" && CC=cc
7514test -z "$LTCC" && LTCC=$CC
7515test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7516test -z "$LD" && LD=ld
7517test -z "$ac_objext" && ac_objext=o
7518
7519for cc_temp in $compiler""; do
7520 case $cc_temp in
7521 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7522 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7523 \-*) ;;
7524 *) break;;
7525 esac
7526done
7527cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7528
7529
7530# Only perform the check for file, if the check method requires it
7531test -z "$MAGIC_CMD" && MAGIC_CMD=file
7532case $deplibs_check_method in
7533file_magic*)
7534 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7536$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 7537if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
7538 $as_echo_n "(cached) " >&6
7539else
7540 case $MAGIC_CMD in
7541[\\/*] | ?:[\\/]*)
7542 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7543 ;;
7544*)
7545 lt_save_MAGIC_CMD="$MAGIC_CMD"
7546 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7547 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7548 for ac_dir in $ac_dummy; do
7549 IFS="$lt_save_ifs"
7550 test -z "$ac_dir" && ac_dir=.
7551 if test -f $ac_dir/${ac_tool_prefix}file; then
7552 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7553 if test -n "$file_magic_test_file"; then
7554 case $deplibs_check_method in
7555 "file_magic "*)
7556 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7557 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7558 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7559 $EGREP "$file_magic_regex" > /dev/null; then
7560 :
7561 else
7562 cat <<_LT_EOF 1>&2
7563
7564*** Warning: the command libtool uses to detect shared libraries,
7565*** $file_magic_cmd, produces output that libtool cannot recognize.
7566*** The result is that libtool may fail to recognize shared libraries
7567*** as such. This will affect the creation of libtool libraries that
7568*** depend on shared libraries, but programs linked with such libtool
7569*** libraries will work regardless of this problem. Nevertheless, you
7570*** may want to report the problem to your system manager and/or to
7571*** bug-libtool@gnu.org
7572
7573_LT_EOF
7574 fi ;;
7575 esac
7576 fi
7577 break
6ffe910a 7578 fi
6bb11ab3
L
7579 done
7580 IFS="$lt_save_ifs"
7581 MAGIC_CMD="$lt_save_MAGIC_CMD"
7582 ;;
7583esac
6ffe910a 7584fi
6ffe910a 7585
6bb11ab3
L
7586MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7587if test -n "$MAGIC_CMD"; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7589$as_echo "$MAGIC_CMD" >&6; }
7590else
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592$as_echo "no" >&6; }
7593fi
6ffe910a 7594
6bb11ab3
L
7595
7596
7597
7598
7599if test -z "$lt_cv_path_MAGIC_CMD"; then
7600 if test -n "$ac_tool_prefix"; then
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7602$as_echo_n "checking for file... " >&6; }
d0ac1c44 7603if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
7604 $as_echo_n "(cached) " >&6
7605else
7606 case $MAGIC_CMD in
7607[\\/*] | ?:[\\/]*)
7608 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7609 ;;
7610*)
7611 lt_save_MAGIC_CMD="$MAGIC_CMD"
7612 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7613 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7614 for ac_dir in $ac_dummy; do
7615 IFS="$lt_save_ifs"
7616 test -z "$ac_dir" && ac_dir=.
7617 if test -f $ac_dir/file; then
7618 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7619 if test -n "$file_magic_test_file"; then
7620 case $deplibs_check_method in
7621 "file_magic "*)
7622 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7623 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7624 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7625 $EGREP "$file_magic_regex" > /dev/null; then
7626 :
7627 else
7628 cat <<_LT_EOF 1>&2
7629
7630*** Warning: the command libtool uses to detect shared libraries,
7631*** $file_magic_cmd, produces output that libtool cannot recognize.
7632*** The result is that libtool may fail to recognize shared libraries
7633*** as such. This will affect the creation of libtool libraries that
7634*** depend on shared libraries, but programs linked with such libtool
7635*** libraries will work regardless of this problem. Nevertheless, you
7636*** may want to report the problem to your system manager and/or to
7637*** bug-libtool@gnu.org
7638
7639_LT_EOF
7640 fi ;;
7641 esac
7642 fi
7643 break
7644 fi
7645 done
7646 IFS="$lt_save_ifs"
7647 MAGIC_CMD="$lt_save_MAGIC_CMD"
7648 ;;
6ffe910a 7649esac
6bb11ab3
L
7650fi
7651
7652MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7653if test -n "$MAGIC_CMD"; then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7655$as_echo "$MAGIC_CMD" >&6; }
7656else
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658$as_echo "no" >&6; }
7659fi
7660
7661
7662 else
7663 MAGIC_CMD=:
7664 fi
7665fi
7666
7667 fi
7668 ;;
7669esac
7670
7671# Use C for the default configuration in the libtool script
7672
7673lt_save_CC="$CC"
7674ac_ext=c
7675ac_cpp='$CPP $CPPFLAGS'
7676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7678ac_compiler_gnu=$ac_cv_c_compiler_gnu
7679
7680
7681# Source file extension for C test sources.
7682ac_ext=c
7683
7684# Object file extension for compiled C test sources.
7685objext=o
7686objext=$objext
7687
7688# Code to be used in simple compile tests
7689lt_simple_compile_test_code="int some_variable = 0;"
7690
7691# Code to be used in simple link tests
7692lt_simple_link_test_code='int main(){return(0);}'
7693
7694
7695
7696
7697
7698
7699
7700# If no C compiler was specified, use CC.
7701LTCC=${LTCC-"$CC"}
7702
7703# If no C compiler flags were specified, use CFLAGS.
7704LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7705
7706# Allow CC to be a program name with arguments.
7707compiler=$CC
7708
7709# Save the default compiler, since it gets overwritten when the other
7710# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7711compiler_DEFAULT=$CC
7712
7713# save warnings/boilerplate of simple test code
7714ac_outfile=conftest.$ac_objext
7715echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7716eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7717_lt_compiler_boilerplate=`cat conftest.err`
7718$RM conftest*
7719
7720ac_outfile=conftest.$ac_objext
7721echo "$lt_simple_link_test_code" >conftest.$ac_ext
7722eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7723_lt_linker_boilerplate=`cat conftest.err`
7724$RM -r conftest*
7725
7726
7727## CAVEAT EMPTOR:
7728## There is no encapsulation within the following macros, do not change
7729## the running order or otherwise move them around unless you know exactly
7730## what you are doing...
7731if test -n "$compiler"; then
7732
7733lt_prog_compiler_no_builtin_flag=
7734
7735if test "$GCC" = yes; then
7736 case $cc_basename in
7737 nvcc*)
7738 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7739 *)
7740 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
6ffe910a 7741 esac
6bb11ab3
L
7742
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7744$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 7745if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6bb11ab3 7746 $as_echo_n "(cached) " >&6
6ffe910a 7747else
6bb11ab3
L
7748 lt_cv_prog_compiler_rtti_exceptions=no
7749 ac_outfile=conftest.$ac_objext
7750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7751 lt_compiler_flag="-fno-rtti -fno-exceptions"
7752 # Insert the option either (1) after the last *FLAGS variable, or
7753 # (2) before a word containing "conftest.", or (3) at the end.
7754 # Note that $ac_compile itself does not contain backslashes and begins
7755 # with a dollar sign (not a hyphen), so the echo should work correctly.
7756 # The option is referenced via a variable to avoid confusing sed.
7757 lt_compile=`echo "$ac_compile" | $SED \
7758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7760 -e 's:$: $lt_compiler_flag:'`
7761 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7762 (eval "$lt_compile" 2>conftest.err)
7763 ac_status=$?
7764 cat conftest.err >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 if (exit $ac_status) && test -s "$ac_outfile"; then
7767 # The compiler can only warn and ignore the option if not recognized
7768 # So say no if there are warnings other than the usual output.
7769 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7771 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7772 lt_cv_prog_compiler_rtti_exceptions=yes
7773 fi
7774 fi
7775 $RM conftest*
7776
6ffe910a 7777fi
6bb11ab3
L
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7779$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7780
7781if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7782 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7783else
7784 :
7785fi
7786
7787fi
7788
7789
7790
7791
7792
7793
7794 lt_prog_compiler_wl=
7795lt_prog_compiler_pic=
7796lt_prog_compiler_static=
7797
7798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7799$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7800
7801 if test "$GCC" = yes; then
7802 lt_prog_compiler_wl='-Wl,'
7803 lt_prog_compiler_static='-static'
7804
7805 case $host_os in
7806 aix*)
7807 # All AIX code is PIC.
7808 if test "$host_cpu" = ia64; then
7809 # AIX 5 now supports IA64 processor
7810 lt_prog_compiler_static='-Bstatic'
7811 fi
7812 lt_prog_compiler_pic='-fPIC'
7813 ;;
7814
7815 amigaos*)
7816 case $host_cpu in
7817 powerpc)
7818 # see comment about AmigaOS4 .so support
7819 lt_prog_compiler_pic='-fPIC'
7820 ;;
7821 m68k)
7822 # FIXME: we need at least 68020 code to build shared libraries, but
7823 # adding the `-m68020' flag to GCC prevents building anything better,
7824 # like `-m68040'.
7825 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7826 ;;
7827 esac
7828 ;;
7829
7830 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7831 # PIC is the default for these OSes.
7832 ;;
7833
7834 mingw* | cygwin* | pw32* | os2* | cegcc*)
7835 # This hack is so that the source file can tell whether it is being
7836 # built for inclusion in a dll (and should export symbols for example).
7837 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7838 # (--disable-auto-import) libraries
7839 lt_prog_compiler_pic='-DDLL_EXPORT'
7840 ;;
7841
7842 darwin* | rhapsody*)
7843 # PIC is the default on this platform
7844 # Common symbols not allowed in MH_DYLIB files
7845 lt_prog_compiler_pic='-fno-common'
7846 ;;
7847
7848 haiku*)
7849 # PIC is the default for Haiku.
7850 # The "-static" flag exists, but is broken.
7851 lt_prog_compiler_static=
7852 ;;
7853
7854 hpux*)
7855 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7856 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7857 # sets the default TLS model and affects inlining.
7858 case $host_cpu in
7859 hppa*64*)
7860 # +Z the default
7861 ;;
7862 *)
7863 lt_prog_compiler_pic='-fPIC'
7864 ;;
7865 esac
7866 ;;
7867
7868 interix[3-9]*)
7869 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7870 # Instead, we relocate shared libraries at runtime.
7871 ;;
7872
7873 msdosdjgpp*)
7874 # Just because we use GCC doesn't mean we suddenly get shared libraries
7875 # on systems that don't support them.
7876 lt_prog_compiler_can_build_shared=no
7877 enable_shared=no
7878 ;;
7879
7880 *nto* | *qnx*)
7881 # QNX uses GNU C++, but need to define -shared option too, otherwise
7882 # it will coredump.
7883 lt_prog_compiler_pic='-fPIC -shared'
7884 ;;
7885
7886 sysv4*MP*)
7887 if test -d /usr/nec; then
7888 lt_prog_compiler_pic=-Kconform_pic
7889 fi
7890 ;;
7891
7892 *)
7893 lt_prog_compiler_pic='-fPIC'
7894 ;;
7895 esac
7896
7897 case $cc_basename in
7898 nvcc*) # Cuda Compiler Driver 2.2
7899 lt_prog_compiler_wl='-Xlinker '
7900 lt_prog_compiler_pic='-Xcompiler -fPIC'
7901 ;;
7902 esac
7903 else
7904 # PORTME Check for flag to pass linker flags through the system compiler.
7905 case $host_os in
7906 aix*)
7907 lt_prog_compiler_wl='-Wl,'
7908 if test "$host_cpu" = ia64; then
7909 # AIX 5 now supports IA64 processor
7910 lt_prog_compiler_static='-Bstatic'
7911 else
7912 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7913 fi
7914 ;;
7915
7916 mingw* | cygwin* | pw32* | os2* | cegcc*)
7917 # This hack is so that the source file can tell whether it is being
7918 # built for inclusion in a dll (and should export symbols for example).
7919 lt_prog_compiler_pic='-DDLL_EXPORT'
7920 ;;
7921
7922 hpux9* | hpux10* | hpux11*)
7923 lt_prog_compiler_wl='-Wl,'
7924 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7925 # not for PA HP-UX.
7926 case $host_cpu in
7927 hppa*64*|ia64*)
7928 # +Z the default
7929 ;;
7930 *)
7931 lt_prog_compiler_pic='+Z'
7932 ;;
7933 esac
7934 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7935 lt_prog_compiler_static='${wl}-a ${wl}archive'
7936 ;;
7937
7938 irix5* | irix6* | nonstopux*)
7939 lt_prog_compiler_wl='-Wl,'
7940 # PIC (with -KPIC) is the default.
7941 lt_prog_compiler_static='-non_shared'
7942 ;;
7943
7944 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7945 case $cc_basename in
7946 # old Intel for x86_64 which still supported -KPIC.
7947 ecc*)
7948 lt_prog_compiler_wl='-Wl,'
7949 lt_prog_compiler_pic='-KPIC'
7950 lt_prog_compiler_static='-static'
7951 ;;
7952 # icc used to be incompatible with GCC.
7953 # ICC 10 doesn't accept -KPIC any more.
7954 icc* | ifort*)
7955 lt_prog_compiler_wl='-Wl,'
7956 lt_prog_compiler_pic='-fPIC'
7957 lt_prog_compiler_static='-static'
7958 ;;
7959 # Lahey Fortran 8.1.
7960 lf95*)
7961 lt_prog_compiler_wl='-Wl,'
7962 lt_prog_compiler_pic='--shared'
7963 lt_prog_compiler_static='--static'
7964 ;;
7965 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7966 # Portland Group compilers (*not* the Pentium gcc compiler,
7967 # which looks to be a dead project)
7968 lt_prog_compiler_wl='-Wl,'
7969 lt_prog_compiler_pic='-fpic'
7970 lt_prog_compiler_static='-Bstatic'
7971 ;;
7972 ccc*)
7973 lt_prog_compiler_wl='-Wl,'
7974 # All Alpha code is PIC.
7975 lt_prog_compiler_static='-non_shared'
7976 ;;
7977 xl* | bgxl* | bgf* | mpixl*)
7978 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7979 lt_prog_compiler_wl='-Wl,'
7980 lt_prog_compiler_pic='-qpic'
7981 lt_prog_compiler_static='-qstaticlink'
7982 ;;
7983 *)
7984 case `$CC -V 2>&1 | sed 5q` in
7985 *Sun\ F* | *Sun*Fortran*)
7986 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7987 lt_prog_compiler_pic='-KPIC'
7988 lt_prog_compiler_static='-Bstatic'
7989 lt_prog_compiler_wl=''
7990 ;;
7991 *Sun\ C*)
7992 # Sun C 5.9
7993 lt_prog_compiler_pic='-KPIC'
7994 lt_prog_compiler_static='-Bstatic'
7995 lt_prog_compiler_wl='-Wl,'
7996 ;;
7997 esac
7998 ;;
7999 esac
8000 ;;
8001
8002 newsos6)
8003 lt_prog_compiler_pic='-KPIC'
8004 lt_prog_compiler_static='-Bstatic'
8005 ;;
8006
8007 *nto* | *qnx*)
8008 # QNX uses GNU C++, but need to define -shared option too, otherwise
8009 # it will coredump.
8010 lt_prog_compiler_pic='-fPIC -shared'
8011 ;;
8012
8013 osf3* | osf4* | osf5*)
8014 lt_prog_compiler_wl='-Wl,'
8015 # All OSF/1 code is PIC.
8016 lt_prog_compiler_static='-non_shared'
8017 ;;
8018
8019 rdos*)
8020 lt_prog_compiler_static='-non_shared'
8021 ;;
6ffe910a 8022
6bb11ab3
L
8023 solaris*)
8024 lt_prog_compiler_pic='-KPIC'
8025 lt_prog_compiler_static='-Bstatic'
8026 case $cc_basename in
8027 f77* | f90* | f95*)
8028 lt_prog_compiler_wl='-Qoption ld ';;
8029 *)
8030 lt_prog_compiler_wl='-Wl,';;
8031 esac
8032 ;;
6ffe910a 8033
6bb11ab3
L
8034 sunos4*)
8035 lt_prog_compiler_wl='-Qoption ld '
8036 lt_prog_compiler_pic='-PIC'
8037 lt_prog_compiler_static='-Bstatic'
8038 ;;
6ffe910a 8039
6bb11ab3
L
8040 sysv4 | sysv4.2uw2* | sysv4.3*)
8041 lt_prog_compiler_wl='-Wl,'
8042 lt_prog_compiler_pic='-KPIC'
8043 lt_prog_compiler_static='-Bstatic'
8044 ;;
8045
8046 sysv4*MP*)
8047 if test -d /usr/nec ;then
8048 lt_prog_compiler_pic='-Kconform_pic'
8049 lt_prog_compiler_static='-Bstatic'
8050 fi
8051 ;;
8052
8053 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8054 lt_prog_compiler_wl='-Wl,'
8055 lt_prog_compiler_pic='-KPIC'
8056 lt_prog_compiler_static='-Bstatic'
8057 ;;
8058
8059 unicos*)
8060 lt_prog_compiler_wl='-Wl,'
8061 lt_prog_compiler_can_build_shared=no
8062 ;;
8063
8064 uts4*)
8065 lt_prog_compiler_pic='-pic'
8066 lt_prog_compiler_static='-Bstatic'
8067 ;;
8068
8069 *)
8070 lt_prog_compiler_can_build_shared=no
8071 ;;
8072 esac
8073 fi
8074
8075case $host_os in
8076 # For platforms which do not support PIC, -DPIC is meaningless:
8077 *djgpp*)
8078 lt_prog_compiler_pic=
8079 ;;
8080 *)
8081 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8082 ;;
6ffe910a 8083esac
6bb11ab3
L
8084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8085$as_echo "$lt_prog_compiler_pic" >&6; }
8086
8087
8088
8089
8090
8091
8092#
8093# Check to make sure the PIC flag actually works.
8094#
8095if test -n "$lt_prog_compiler_pic"; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8097$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 8098if ${lt_cv_prog_compiler_pic_works+:} false; then :
6bb11ab3 8099 $as_echo_n "(cached) " >&6
6ffe910a 8100else
6bb11ab3
L
8101 lt_cv_prog_compiler_pic_works=no
8102 ac_outfile=conftest.$ac_objext
8103 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8104 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8105 # Insert the option either (1) after the last *FLAGS variable, or
8106 # (2) before a word containing "conftest.", or (3) at the end.
8107 # Note that $ac_compile itself does not contain backslashes and begins
8108 # with a dollar sign (not a hyphen), so the echo should work correctly.
8109 # The option is referenced via a variable to avoid confusing sed.
8110 lt_compile=`echo "$ac_compile" | $SED \
8111 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8113 -e 's:$: $lt_compiler_flag:'`
8114 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8115 (eval "$lt_compile" 2>conftest.err)
8116 ac_status=$?
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 if (exit $ac_status) && test -s "$ac_outfile"; then
8120 # The compiler can only warn and ignore the option if not recognized
8121 # So say no if there are warnings other than the usual output.
8122 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8123 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8124 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8125 lt_cv_prog_compiler_pic_works=yes
8126 fi
8127 fi
8128 $RM conftest*
6ffe910a 8129
6ffe910a 8130fi
6bb11ab3
L
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8132$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8133
8134if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8135 case $lt_prog_compiler_pic in
8136 "" | " "*) ;;
8137 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8138 esac
8139else
8140 lt_prog_compiler_pic=
8141 lt_prog_compiler_can_build_shared=no
6ffe910a 8142fi
6bb11ab3
L
8143
8144fi
8145
8146
8147
8148
8149
8150
8151#
8152# Check to make sure the static flag actually works.
8153#
8154wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8156$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 8157if ${lt_cv_prog_compiler_static_works+:} false; then :
6ffe910a
MF
8158 $as_echo_n "(cached) " >&6
8159else
6bb11ab3
L
8160 lt_cv_prog_compiler_static_works=no
8161 save_LDFLAGS="$LDFLAGS"
8162 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8163 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8164 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8165 # The linker can only warn and ignore the option if not recognized
8166 # So say no if there are warnings
8167 if test -s conftest.err; then
8168 # Append any errors to the config.log.
8169 cat conftest.err 1>&5
8170 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8171 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8172 if diff conftest.exp conftest.er2 >/dev/null; then
8173 lt_cv_prog_compiler_static_works=yes
8174 fi
8175 else
8176 lt_cv_prog_compiler_static_works=yes
8177 fi
8178 fi
8179 $RM -r conftest*
8180 LDFLAGS="$save_LDFLAGS"
6ffe910a 8181
6bb11ab3
L
8182fi
8183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8184$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
6ffe910a 8185
6bb11ab3
L
8186if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8187 :
6ffe910a 8188else
6bb11ab3 8189 lt_prog_compiler_static=
6ffe910a 8190fi
6ffe910a 8191
6bb11ab3
L
8192
8193
8194
8195
8196
8197
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8199$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8200if ${lt_cv_prog_compiler_c_o+:} false; then :
6bb11ab3 8201 $as_echo_n "(cached) " >&6
6ffe910a 8202else
6bb11ab3
L
8203 lt_cv_prog_compiler_c_o=no
8204 $RM -r conftest 2>/dev/null
8205 mkdir conftest
8206 cd conftest
8207 mkdir out
8208 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8209
8210 lt_compiler_flag="-o out/conftest2.$ac_objext"
8211 # Insert the option either (1) after the last *FLAGS variable, or
8212 # (2) before a word containing "conftest.", or (3) at the end.
8213 # Note that $ac_compile itself does not contain backslashes and begins
8214 # with a dollar sign (not a hyphen), so the echo should work correctly.
8215 lt_compile=`echo "$ac_compile" | $SED \
8216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8218 -e 's:$: $lt_compiler_flag:'`
8219 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8220 (eval "$lt_compile" 2>out/conftest.err)
8221 ac_status=$?
8222 cat out/conftest.err >&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8225 then
8226 # The compiler can only warn and ignore the option if not recognized
8227 # So say no if there are warnings
8228 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8229 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8230 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8231 lt_cv_prog_compiler_c_o=yes
8232 fi
8233 fi
8234 chmod u+w . 2>&5
8235 $RM conftest*
8236 # SGI C++ compiler will create directory out/ii_files/ for
8237 # template instantiation
8238 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8239 $RM out/* && rmdir out
8240 cd ..
8241 $RM -r conftest
8242 $RM conftest*
8243
6ffe910a 8244fi
6bb11ab3
L
8245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8246$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8247
8248
8249
8250
8251
8252
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8254$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8255if ${lt_cv_prog_compiler_c_o+:} false; then :
6ffe910a
MF
8256 $as_echo_n "(cached) " >&6
8257else
6bb11ab3
L
8258 lt_cv_prog_compiler_c_o=no
8259 $RM -r conftest 2>/dev/null
8260 mkdir conftest
8261 cd conftest
8262 mkdir out
8263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8264
8265 lt_compiler_flag="-o out/conftest2.$ac_objext"
8266 # Insert the option either (1) after the last *FLAGS variable, or
8267 # (2) before a word containing "conftest.", or (3) at the end.
8268 # Note that $ac_compile itself does not contain backslashes and begins
8269 # with a dollar sign (not a hyphen), so the echo should work correctly.
8270 lt_compile=`echo "$ac_compile" | $SED \
8271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8273 -e 's:$: $lt_compiler_flag:'`
8274 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8275 (eval "$lt_compile" 2>out/conftest.err)
8276 ac_status=$?
8277 cat out/conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8280 then
8281 # The compiler can only warn and ignore the option if not recognized
8282 # So say no if there are warnings
8283 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8284 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8285 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8286 lt_cv_prog_compiler_c_o=yes
8287 fi
8288 fi
8289 chmod u+w . 2>&5
8290 $RM conftest*
8291 # SGI C++ compiler will create directory out/ii_files/ for
8292 # template instantiation
8293 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8294 $RM out/* && rmdir out
8295 cd ..
8296 $RM -r conftest
8297 $RM conftest*
8298
8299fi
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8301$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8302
8303
8304
8305
8306hard_links="nottested"
8307if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8308 # do not overwrite the value of need_locks provided by the user
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8310$as_echo_n "checking if we can lock with hard links... " >&6; }
8311 hard_links=yes
8312 $RM conftest*
8313 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8314 touch conftest.a
8315 ln conftest.a conftest.b 2>&5 || hard_links=no
8316 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8318$as_echo "$hard_links" >&6; }
8319 if test "$hard_links" = no; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8321$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8322 need_locks=warn
8323 fi
8324else
8325 need_locks=no
8326fi
8327
8328
8329
8330
8331
8332
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8334$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8335
8336 runpath_var=
8337 allow_undefined_flag=
8338 always_export_symbols=no
8339 archive_cmds=
8340 archive_expsym_cmds=
8341 compiler_needs_object=no
8342 enable_shared_with_static_runtimes=no
8343 export_dynamic_flag_spec=
8344 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8345 hardcode_automatic=no
8346 hardcode_direct=no
8347 hardcode_direct_absolute=no
8348 hardcode_libdir_flag_spec=
8349 hardcode_libdir_flag_spec_ld=
8350 hardcode_libdir_separator=
8351 hardcode_minus_L=no
8352 hardcode_shlibpath_var=unsupported
8353 inherit_rpath=no
8354 link_all_deplibs=unknown
8355 module_cmds=
8356 module_expsym_cmds=
8357 old_archive_from_new_cmds=
8358 old_archive_from_expsyms_cmds=
8359 thread_safe_flag_spec=
8360 whole_archive_flag_spec=
8361 # include_expsyms should be a list of space-separated symbols to be *always*
8362 # included in the symbol list
8363 include_expsyms=
8364 # exclude_expsyms can be an extended regexp of symbols to exclude
8365 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8366 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8367 # as well as any symbol that contains `d'.
8368 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8369 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8370 # platforms (ab)use it in PIC code, but their linkers get confused if
8371 # the symbol is explicitly referenced. Since portable code cannot
8372 # rely on this symbol name, it's probably fine to never include it in
8373 # preloaded symbol tables.
8374 # Exclude shared library initialization/finalization symbols.
8375 extract_expsyms_cmds=
8376
8377 case $host_os in
8378 cygwin* | mingw* | pw32* | cegcc*)
8379 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8380 # When not using gcc, we currently assume that we are using
8381 # Microsoft Visual C++.
8382 if test "$GCC" != yes; then
8383 with_gnu_ld=no
8384 fi
8385 ;;
8386 interix*)
8387 # we just hope/assume this is gcc and not c89 (= MSVC++)
8388 with_gnu_ld=yes
8389 ;;
8390 openbsd*)
8391 with_gnu_ld=no
8392 ;;
8393 esac
6ffe910a 8394
6bb11ab3
L
8395 ld_shlibs=yes
8396
8397 # On some targets, GNU ld is compatible enough with the native linker
8398 # that we're better off using the native interface for both.
8399 lt_use_gnu_ld_interface=no
8400 if test "$with_gnu_ld" = yes; then
8401 case $host_os in
8402 aix*)
8403 # The AIX port of GNU ld has always aspired to compatibility
8404 # with the native linker. However, as the warning in the GNU ld
8405 # block says, versions before 2.19.5* couldn't really create working
8406 # shared libraries, regardless of the interface used.
8407 case `$LD -v 2>&1` in
8408 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8409 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8410 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8411 *)
8412 lt_use_gnu_ld_interface=yes
8413 ;;
8414 esac
8415 ;;
8416 *)
8417 lt_use_gnu_ld_interface=yes
8418 ;;
8419 esac
8420 fi
6ffe910a 8421
6bb11ab3
L
8422 if test "$lt_use_gnu_ld_interface" = yes; then
8423 # If archive_cmds runs LD, not CC, wlarc should be empty
8424 wlarc='${wl}'
8425
8426 # Set some defaults for GNU ld with shared library support. These
8427 # are reset later if shared libraries are not supported. Putting them
8428 # here allows them to be overridden if necessary.
8429 runpath_var=LD_RUN_PATH
8430 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8431 export_dynamic_flag_spec='${wl}--export-dynamic'
8432 # ancient GNU ld didn't support --whole-archive et. al.
8433 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8434 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8435 else
8436 whole_archive_flag_spec=
8437 fi
8438 supports_anon_versioning=no
8439 case `$LD -v 2>&1` in
8440 *GNU\ gold*) supports_anon_versioning=yes ;;
8441 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8442 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8443 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8444 *\ 2.11.*) ;; # other 2.11 versions
8445 *) supports_anon_versioning=yes ;;
8446 esac
8447
8448 # See if GNU ld supports shared libraries.
8449 case $host_os in
8450 aix[3-9]*)
8451 # On AIX/PPC, the GNU linker is very broken
8452 if test "$host_cpu" != ia64; then
8453 ld_shlibs=no
8454 cat <<_LT_EOF 1>&2
8455
8456*** Warning: the GNU linker, at least up to release 2.19, is reported
8457*** to be unable to reliably create shared libraries on AIX.
8458*** Therefore, libtool is disabling shared libraries support. If you
8459*** really care for shared libraries, you may want to install binutils
8460*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8461*** You will then need to restart the configuration process.
8462
8463_LT_EOF
8464 fi
8465 ;;
8466
8467 amigaos*)
8468 case $host_cpu in
8469 powerpc)
8470 # see comment about AmigaOS4 .so support
8471 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8472 archive_expsym_cmds=''
8473 ;;
8474 m68k)
8475 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)'
8476 hardcode_libdir_flag_spec='-L$libdir'
8477 hardcode_minus_L=yes
8478 ;;
8479 esac
8480 ;;
8481
8482 beos*)
8483 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8484 allow_undefined_flag=unsupported
8485 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8486 # support --undefined. This deserves some investigation. FIXME
8487 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8488 else
8489 ld_shlibs=no
8490 fi
8491 ;;
8492
8493 cygwin* | mingw* | pw32* | cegcc*)
8494 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8495 # as there is no search path for DLLs.
8496 hardcode_libdir_flag_spec='-L$libdir'
8497 export_dynamic_flag_spec='${wl}--export-all-symbols'
8498 allow_undefined_flag=unsupported
8499 always_export_symbols=no
8500 enable_shared_with_static_runtimes=yes
8501 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8502
8503 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8504 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8505 # If the export-symbols file already is a .def file (1st line
8506 # is EXPORTS), use it as is; otherwise, prepend...
8507 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8508 cp $export_symbols $output_objdir/$soname.def;
8509 else
8510 echo EXPORTS > $output_objdir/$soname.def;
8511 cat $export_symbols >> $output_objdir/$soname.def;
8512 fi~
8513 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8514 else
8515 ld_shlibs=no
8516 fi
8517 ;;
8518
8519 haiku*)
8520 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8521 link_all_deplibs=yes
8522 ;;
8523
8524 interix[3-9]*)
8525 hardcode_direct=no
8526 hardcode_shlibpath_var=no
8527 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8528 export_dynamic_flag_spec='${wl}-E'
8529 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8530 # Instead, shared libraries are loaded at an image base (0x10000000 by
8531 # default) and relocated if they conflict, which is a slow very memory
8532 # consuming and fragmenting process. To avoid this, we pick a random,
8533 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8534 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8535 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8536 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'
8537 ;;
8538
8539 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8540 tmp_diet=no
8541 if test "$host_os" = linux-dietlibc; then
8542 case $cc_basename in
8543 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8544 esac
8545 fi
8546 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8547 && test "$tmp_diet" = no
8548 then
ae7d0cac 8549 tmp_addflag=' $pic_flag'
6bb11ab3
L
8550 tmp_sharedflag='-shared'
8551 case $cc_basename,$host_cpu in
8552 pgcc*) # Portland Group C compiler
8553 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'
8554 tmp_addflag=' $pic_flag'
8555 ;;
8556 pgf77* | pgf90* | pgf95* | pgfortran*)
8557 # Portland Group f77 and f90 compilers
8558 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'
8559 tmp_addflag=' $pic_flag -Mnomain' ;;
8560 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8561 tmp_addflag=' -i_dynamic' ;;
8562 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8563 tmp_addflag=' -i_dynamic -nofor_main' ;;
8564 ifc* | ifort*) # Intel Fortran compiler
8565 tmp_addflag=' -nofor_main' ;;
8566 lf95*) # Lahey Fortran 8.1
8567 whole_archive_flag_spec=
8568 tmp_sharedflag='--shared' ;;
8569 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8570 tmp_sharedflag='-qmkshrobj'
8571 tmp_addflag= ;;
8572 nvcc*) # Cuda Compiler Driver 2.2
8573 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'
8574 compiler_needs_object=yes
8575 ;;
8576 esac
8577 case `$CC -V 2>&1 | sed 5q` in
8578 *Sun\ C*) # Sun C 5.9
8579 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'
8580 compiler_needs_object=yes
8581 tmp_sharedflag='-G' ;;
8582 *Sun\ F*) # Sun Fortran 8.3
8583 tmp_sharedflag='-G' ;;
8584 esac
8585 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8586
8587 if test "x$supports_anon_versioning" = xyes; then
8588 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8589 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8590 echo "local: *; };" >> $output_objdir/$libname.ver~
8591 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8592 fi
8593
8594 case $cc_basename in
8595 xlf* | bgf* | bgxlf* | mpixlf*)
8596 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8597 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8598 hardcode_libdir_flag_spec=
8599 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8600 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8601 if test "x$supports_anon_versioning" = xyes; then
8602 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8603 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8604 echo "local: *; };" >> $output_objdir/$libname.ver~
8605 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8606 fi
8607 ;;
8608 esac
8609 else
8610 ld_shlibs=no
8611 fi
8612 ;;
8613
8614 netbsd*)
8615 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8616 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8617 wlarc=
8618 else
8619 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8620 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8621 fi
8622 ;;
8623
8624 solaris*)
8625 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8626 ld_shlibs=no
8627 cat <<_LT_EOF 1>&2
8628
8629*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8630*** create shared libraries on Solaris systems. Therefore, libtool
8631*** is disabling shared libraries support. We urge you to upgrade GNU
8632*** binutils to release 2.9.1 or newer. Another option is to modify
8633*** your PATH or compiler configuration so that the native linker is
8634*** used, and then restart.
8635
8636_LT_EOF
8637 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8639 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8640 else
8641 ld_shlibs=no
8642 fi
8643 ;;
8644
8645 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8646 case `$LD -v 2>&1` in
8647 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8648 ld_shlibs=no
8649 cat <<_LT_EOF 1>&2
8650
8651*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8652*** reliably create shared libraries on SCO systems. Therefore, libtool
8653*** is disabling shared libraries support. We urge you to upgrade GNU
8654*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8655*** your PATH or compiler configuration so that the native linker is
8656*** used, and then restart.
8657
8658_LT_EOF
8659 ;;
8660 *)
8661 # For security reasons, it is highly recommended that you always
8662 # use absolute paths for naming shared libraries, and exclude the
8663 # DT_RUNPATH tag from executables and libraries. But doing so
8664 # requires that you compile everything twice, which is a pain.
8665 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8666 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8668 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8669 else
8670 ld_shlibs=no
8671 fi
8672 ;;
8673 esac
8674 ;;
8675
8676 sunos4*)
8677 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8678 wlarc=
8679 hardcode_direct=yes
8680 hardcode_shlibpath_var=no
8681 ;;
8682
8683 *)
8684 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8686 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8687 else
8688 ld_shlibs=no
8689 fi
8690 ;;
8691 esac
8692
8693 if test "$ld_shlibs" = no; then
8694 runpath_var=
8695 hardcode_libdir_flag_spec=
8696 export_dynamic_flag_spec=
8697 whole_archive_flag_spec=
8698 fi
8699 else
8700 # PORTME fill in a description of your system's linker (not GNU ld)
8701 case $host_os in
8702 aix3*)
8703 allow_undefined_flag=unsupported
8704 always_export_symbols=yes
8705 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'
8706 # Note: this linker hardcodes the directories in LIBPATH if there
8707 # are no directories specified by -L.
8708 hardcode_minus_L=yes
8709 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8710 # Neither direct hardcoding nor static linking is supported with a
8711 # broken collect2.
8712 hardcode_direct=unsupported
8713 fi
8714 ;;
8715
8716 aix[4-9]*)
8717 if test "$host_cpu" = ia64; then
8718 # On IA64, the linker does run time linking by default, so we don't
8719 # have to do anything special.
8720 aix_use_runtimelinking=no
8721 exp_sym_flag='-Bexport'
8722 no_entry_flag=""
8723 else
8724 # If we're using GNU nm, then we don't want the "-C" option.
8725 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8726 # Also, AIX nm treats weak defined symbols like other global
8727 # defined symbols, whereas GNU nm marks them as "W".
8728 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8729 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'
8730 else
5c887dd5 8731 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'
6bb11ab3
L
8732 fi
8733 aix_use_runtimelinking=no
8734
8735 # Test if we are trying to use run time linking or normal
8736 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8737 # need to do runtime linking.
8738 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8739 for ld_flag in $LDFLAGS; do
8740 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8741 aix_use_runtimelinking=yes
8742 break
8743 fi
8744 done
8745 ;;
8746 esac
8747
8748 exp_sym_flag='-bexport'
8749 no_entry_flag='-bnoentry'
8750 fi
8751
8752 # When large executables or shared objects are built, AIX ld can
8753 # have problems creating the table of contents. If linking a library
8754 # or program results in "error TOC overflow" add -mminimal-toc to
8755 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8756 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8757
8758 archive_cmds=''
8759 hardcode_direct=yes
8760 hardcode_direct_absolute=yes
8761 hardcode_libdir_separator=':'
8762 link_all_deplibs=yes
8763 file_list_spec='${wl}-f,'
8764
8765 if test "$GCC" = yes; then
8766 case $host_os in aix4.[012]|aix4.[012].*)
8767 # We only want to do this on AIX 4.2 and lower, the check
8768 # below for broken collect2 doesn't work under 4.3+
8769 collect2name=`${CC} -print-prog-name=collect2`
8770 if test -f "$collect2name" &&
8771 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8772 then
8773 # We have reworked collect2
8774 :
8775 else
8776 # We have old collect2
8777 hardcode_direct=unsupported
8778 # It fails to find uninstalled libraries when the uninstalled
8779 # path is not listed in the libpath. Setting hardcode_minus_L
8780 # to unsupported forces relinking
8781 hardcode_minus_L=yes
8782 hardcode_libdir_flag_spec='-L$libdir'
8783 hardcode_libdir_separator=
8784 fi
8785 ;;
8786 esac
8787 shared_flag='-shared'
8788 if test "$aix_use_runtimelinking" = yes; then
8789 shared_flag="$shared_flag "'${wl}-G'
8790 fi
8791 else
8792 # not using gcc
8793 if test "$host_cpu" = ia64; then
8794 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8795 # chokes on -Wl,-G. The following line is correct:
8796 shared_flag='-G'
8797 else
8798 if test "$aix_use_runtimelinking" = yes; then
8799 shared_flag='${wl}-G'
8800 else
8801 shared_flag='${wl}-bM:SRE'
8802 fi
8803 fi
8804 fi
8805
8806 export_dynamic_flag_spec='${wl}-bexpall'
8807 # It seems that -bexpall does not export symbols beginning with
8808 # underscore (_), so it is better to generate a list of symbols to export.
8809 always_export_symbols=yes
8810 if test "$aix_use_runtimelinking" = yes; then
8811 # Warning - without using the other runtime loading flags (-brtl),
8812 # -berok will link without error, but may produce a broken library.
8813 allow_undefined_flag='-berok'
8814 # Determine the default libpath from the value encoded in an
8815 # empty executable.
8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6ffe910a
MF
8817/* end confdefs.h. */
8818
8819int
8820main ()
8821{
8822
8823 ;
8824 return 0;
8825}
8826_ACEOF
6bb11ab3 8827if ac_fn_c_try_link "$LINENO"; then :
6ffe910a 8828
6bb11ab3
L
8829lt_aix_libpath_sed='
8830 /Import File Strings/,/^$/ {
8831 /^0/ {
8832 s/^0 *\(.*\)$/\1/
8833 p
8834 }
8835 }'
8836aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8837# Check for a 64-bit object if we didn't find anything.
8838if test -z "$aix_libpath"; then
8839 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8840fi
8841fi
8842rm -f core conftest.err conftest.$ac_objext \
8843 conftest$ac_exeext conftest.$ac_ext
8844if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8845
8846 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8847 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"
8848 else
8849 if test "$host_cpu" = ia64; then
8850 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8851 allow_undefined_flag="-z nodefs"
8852 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"
8853 else
8854 # Determine the default libpath from the value encoded in an
8855 # empty executable.
6ffe910a
MF
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857/* end confdefs.h. */
8858
8859int
8860main ()
8861{
8862
8863 ;
8864 return 0;
8865}
8866_ACEOF
6bb11ab3
L
8867if ac_fn_c_try_link "$LINENO"; then :
8868
8869lt_aix_libpath_sed='
8870 /Import File Strings/,/^$/ {
8871 /^0/ {
8872 s/^0 *\(.*\)$/\1/
8873 p
8874 }
8875 }'
8876aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8877# Check for a 64-bit object if we didn't find anything.
8878if test -z "$aix_libpath"; then
8879 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6ffe910a 8880fi
6ffe910a 8881fi
6bb11ab3
L
8882rm -f core conftest.err conftest.$ac_objext \
8883 conftest$ac_exeext conftest.$ac_ext
8884if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8885
8886 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8887 # Warning - without using the other run time loading flags,
8888 # -berok will link without error, but may produce a broken library.
8889 no_undefined_flag=' ${wl}-bernotok'
8890 allow_undefined_flag=' ${wl}-berok'
8891 if test "$with_gnu_ld" = yes; then
8892 # We only use this code for GNU lds that support --whole-archive.
8893 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8894 else
8895 # Exported symbols can be pulled into shared objects from archives
8896 whole_archive_flag_spec='$convenience'
8897 fi
8898 archive_cmds_need_lc=yes
8899 # This is similar to how AIX traditionally builds its shared libraries.
8900 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'
8901 fi
8902 fi
8903 ;;
8904
8905 amigaos*)
8906 case $host_cpu in
8907 powerpc)
8908 # see comment about AmigaOS4 .so support
8909 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8910 archive_expsym_cmds=''
8911 ;;
8912 m68k)
8913 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)'
8914 hardcode_libdir_flag_spec='-L$libdir'
8915 hardcode_minus_L=yes
8916 ;;
8917 esac
8918 ;;
8919
8920 bsdi[45]*)
8921 export_dynamic_flag_spec=-rdynamic
8922 ;;
8923
8924 cygwin* | mingw* | pw32* | cegcc*)
8925 # When not using gcc, we currently assume that we are using
8926 # Microsoft Visual C++.
8927 # hardcode_libdir_flag_spec is actually meaningless, as there is
8928 # no search path for DLLs.
8929 hardcode_libdir_flag_spec=' '
8930 allow_undefined_flag=unsupported
8931 # Tell ltmain to make .lib files, not .a files.
8932 libext=lib
8933 # Tell ltmain to make .dll files, not .so files.
8934 shrext_cmds=".dll"
8935 # FIXME: Setting linknames here is a bad hack.
8936 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8937 # The linker will automatically build a .lib file if we build a DLL.
8938 old_archive_from_new_cmds='true'
8939 # FIXME: Should let the user specify the lib program.
8940 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8941 fix_srcfile_path='`cygpath -w "$srcfile"`'
8942 enable_shared_with_static_runtimes=yes
8943 ;;
8944
8945 darwin* | rhapsody*)
8946
8947
8948 archive_cmds_need_lc=no
8949 hardcode_direct=no
8950 hardcode_automatic=yes
8951 hardcode_shlibpath_var=unsupported
8952 if test "$lt_cv_ld_force_load" = "yes"; then
8953 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\"`'
6ffe910a 8954 else
6bb11ab3 8955 whole_archive_flag_spec=''
6ffe910a 8956 fi
6bb11ab3
L
8957 link_all_deplibs=yes
8958 allow_undefined_flag="$_lt_dar_allow_undefined"
8959 case $cc_basename in
8960 ifort*) _lt_dar_can_shared=yes ;;
8961 *) _lt_dar_can_shared=$GCC ;;
8962 esac
8963 if test "$_lt_dar_can_shared" = "yes"; then
8964 output_verbose_link_cmd=func_echo_all
8965 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8966 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8967 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}"
8968 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}"
8969
6ffe910a 8970 else
6bb11ab3 8971 ld_shlibs=no
6ffe910a 8972 fi
6bb11ab3
L
8973
8974 ;;
8975
8976 dgux*)
8977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8978 hardcode_libdir_flag_spec='-L$libdir'
8979 hardcode_shlibpath_var=no
8980 ;;
8981
8982 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8983 # support. Future versions do this automatically, but an explicit c++rt0.o
8984 # does not break anything, and helps significantly (at the cost of a little
8985 # extra space).
8986 freebsd2.2*)
8987 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8988 hardcode_libdir_flag_spec='-R$libdir'
8989 hardcode_direct=yes
8990 hardcode_shlibpath_var=no
8991 ;;
8992
8993 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8994 freebsd2.*)
8995 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8996 hardcode_direct=yes
8997 hardcode_minus_L=yes
8998 hardcode_shlibpath_var=no
8999 ;;
9000
9001 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9002 freebsd* | dragonfly*)
9003 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9004 hardcode_libdir_flag_spec='-R$libdir'
9005 hardcode_direct=yes
9006 hardcode_shlibpath_var=no
9007 ;;
9008
9009 hpux9*)
9010 if test "$GCC" = yes; then
9011 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'
9012 else
9013 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'
9014 fi
9015 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9016 hardcode_libdir_separator=:
9017 hardcode_direct=yes
9018
9019 # hardcode_minus_L: Not really in the search PATH,
9020 # but as the default location of the library.
9021 hardcode_minus_L=yes
9022 export_dynamic_flag_spec='${wl}-E'
9023 ;;
9024
9025 hpux10*)
9026 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9027 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9028 else
9029 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9030 fi
9031 if test "$with_gnu_ld" = no; then
9032 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9033 hardcode_libdir_flag_spec_ld='+b $libdir'
9034 hardcode_libdir_separator=:
9035 hardcode_direct=yes
9036 hardcode_direct_absolute=yes
9037 export_dynamic_flag_spec='${wl}-E'
9038 # hardcode_minus_L: Not really in the search PATH,
9039 # but as the default location of the library.
9040 hardcode_minus_L=yes
9041 fi
9042 ;;
9043
9044 hpux11*)
9045 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9046 case $host_cpu in
9047 hppa*64*)
9048 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9049 ;;
9050 ia64*)
9051 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9052 ;;
9053 *)
9054 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9055 ;;
9056 esac
9057 else
9058 case $host_cpu in
9059 hppa*64*)
9060 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9061 ;;
9062 ia64*)
9063 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9064 ;;
9065 *)
9066
9067 # Older versions of the 11.00 compiler do not understand -b yet
9068 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9070$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 9071if ${lt_cv_prog_compiler__b+:} false; then :
6ffe910a
MF
9072 $as_echo_n "(cached) " >&6
9073else
6bb11ab3
L
9074 lt_cv_prog_compiler__b=no
9075 save_LDFLAGS="$LDFLAGS"
9076 LDFLAGS="$LDFLAGS -b"
9077 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9078 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9079 # The linker can only warn and ignore the option if not recognized
9080 # So say no if there are warnings
9081 if test -s conftest.err; then
9082 # Append any errors to the config.log.
9083 cat conftest.err 1>&5
9084 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9085 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9086 if diff conftest.exp conftest.er2 >/dev/null; then
9087 lt_cv_prog_compiler__b=yes
9088 fi
9089 else
9090 lt_cv_prog_compiler__b=yes
9091 fi
9092 fi
9093 $RM -r conftest*
9094 LDFLAGS="$save_LDFLAGS"
6ffe910a 9095
6bb11ab3
L
9096fi
9097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9098$as_echo "$lt_cv_prog_compiler__b" >&6; }
6ffe910a 9099
6bb11ab3
L
9100if test x"$lt_cv_prog_compiler__b" = xyes; then
9101 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9102else
9103 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9104fi
6ffe910a 9105
6bb11ab3
L
9106 ;;
9107 esac
9108 fi
9109 if test "$with_gnu_ld" = no; then
9110 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9111 hardcode_libdir_separator=:
9112
9113 case $host_cpu in
9114 hppa*64*|ia64*)
9115 hardcode_direct=no
9116 hardcode_shlibpath_var=no
9117 ;;
9118 *)
9119 hardcode_direct=yes
9120 hardcode_direct_absolute=yes
9121 export_dynamic_flag_spec='${wl}-E'
9122
9123 # hardcode_minus_L: Not really in the search PATH,
9124 # but as the default location of the library.
9125 hardcode_minus_L=yes
9126 ;;
9127 esac
9128 fi
9129 ;;
9130
9131 irix5* | irix6* | nonstopux*)
9132 if test "$GCC" = yes; then
9133 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'
9134 # Try to use the -exported_symbol ld option, if it does not
9135 # work, assume that -exports_file does not work either and
9136 # implicitly export all symbols.
9137 save_LDFLAGS="$LDFLAGS"
9138 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140/* end confdefs.h. */
9141int foo(void) {}
6ffe910a 9142_ACEOF
6bb11ab3
L
9143if ac_fn_c_try_link "$LINENO"; then :
9144 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'
93378652 9145
93378652 9146fi
6bb11ab3
L
9147rm -f core conftest.err conftest.$ac_objext \
9148 conftest$ac_exeext conftest.$ac_ext
9149 LDFLAGS="$save_LDFLAGS"
9150 else
9151 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'
9152 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'
9153 fi
9154 archive_cmds_need_lc='no'
9155 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9156 hardcode_libdir_separator=:
9157 inherit_rpath=yes
9158 link_all_deplibs=yes
9159 ;;
9160
9161 netbsd*)
9162 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9163 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9164 else
9165 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9166 fi
9167 hardcode_libdir_flag_spec='-R$libdir'
9168 hardcode_direct=yes
9169 hardcode_shlibpath_var=no
9170 ;;
9171
9172 newsos6)
9173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9174 hardcode_direct=yes
9175 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9176 hardcode_libdir_separator=:
9177 hardcode_shlibpath_var=no
9178 ;;
9179
9180 *nto* | *qnx*)
9181 ;;
9182
9183 openbsd*)
9184 if test -f /usr/libexec/ld.so; then
9185 hardcode_direct=yes
9186 hardcode_shlibpath_var=no
9187 hardcode_direct_absolute=yes
9188 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9189 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9190 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9191 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9192 export_dynamic_flag_spec='${wl}-E'
9193 else
9194 case $host_os in
9195 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9196 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9197 hardcode_libdir_flag_spec='-R$libdir'
9198 ;;
9199 *)
9200 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9201 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9202 ;;
9203 esac
9204 fi
9205 else
9206 ld_shlibs=no
9207 fi
9208 ;;
9209
9210 os2*)
9211 hardcode_libdir_flag_spec='-L$libdir'
9212 hardcode_minus_L=yes
9213 allow_undefined_flag=unsupported
9214 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'
9215 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9216 ;;
9217
9218 osf3*)
9219 if test "$GCC" = yes; then
9220 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9221 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'
9222 else
9223 allow_undefined_flag=' -expect_unresolved \*'
9224 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'
9225 fi
9226 archive_cmds_need_lc='no'
9227 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9228 hardcode_libdir_separator=:
9229 ;;
9230
9231 osf4* | osf5*) # as osf3* with the addition of -msym flag
9232 if test "$GCC" = yes; then
9233 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9234 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'
9235 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9236 else
9237 allow_undefined_flag=' -expect_unresolved \*'
9238 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'
9239 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~
9240 $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'
9241
9242 # Both c and cxx compiler support -rpath directly
9243 hardcode_libdir_flag_spec='-rpath $libdir'
9244 fi
9245 archive_cmds_need_lc='no'
9246 hardcode_libdir_separator=:
9247 ;;
9248
9249 solaris*)
9250 no_undefined_flag=' -z defs'
9251 if test "$GCC" = yes; then
9252 wlarc='${wl}'
9253 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9254 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9255 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9256 else
9257 case `$CC -V 2>&1` in
9258 *"Compilers 5.0"*)
9259 wlarc=''
9260 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9261 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9262 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9263 ;;
9264 *)
9265 wlarc='${wl}'
9266 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9267 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9268 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9269 ;;
9270 esac
9271 fi
9272 hardcode_libdir_flag_spec='-R$libdir'
9273 hardcode_shlibpath_var=no
9274 case $host_os in
9275 solaris2.[0-5] | solaris2.[0-5].*) ;;
9276 *)
9277 # The compiler driver will combine and reorder linker options,
9278 # but understands `-z linker_flag'. GCC discards it without `$wl',
9279 # but is careful enough not to reorder.
9280 # Supported since Solaris 2.6 (maybe 2.5.1?)
9281 if test "$GCC" = yes; then
9282 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9283 else
9284 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9285 fi
9286 ;;
9287 esac
9288 link_all_deplibs=yes
9289 ;;
9290
9291 sunos4*)
9292 if test "x$host_vendor" = xsequent; then
9293 # Use $CC to link under sequent, because it throws in some extra .o
9294 # files that make .init and .fini sections work.
9295 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9296 else
9297 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9298 fi
9299 hardcode_libdir_flag_spec='-L$libdir'
9300 hardcode_direct=yes
9301 hardcode_minus_L=yes
9302 hardcode_shlibpath_var=no
9303 ;;
9304
9305 sysv4)
9306 case $host_vendor in
9307 sni)
9308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9309 hardcode_direct=yes # is this really true???
9310 ;;
9311 siemens)
9312 ## LD is ld it makes a PLAMLIB
9313 ## CC just makes a GrossModule.
9314 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9315 reload_cmds='$CC -r -o $output$reload_objs'
9316 hardcode_direct=no
9317 ;;
9318 motorola)
9319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9320 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9321 ;;
9322 esac
9323 runpath_var='LD_RUN_PATH'
9324 hardcode_shlibpath_var=no
9325 ;;
9326
9327 sysv4.3*)
9328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9329 hardcode_shlibpath_var=no
9330 export_dynamic_flag_spec='-Bexport'
9331 ;;
9332
9333 sysv4*MP*)
9334 if test -d /usr/nec; then
9335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9336 hardcode_shlibpath_var=no
9337 runpath_var=LD_RUN_PATH
9338 hardcode_runpath_var=yes
9339 ld_shlibs=yes
9340 fi
9341 ;;
9342
9343 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9344 no_undefined_flag='${wl}-z,text'
9345 archive_cmds_need_lc=no
9346 hardcode_shlibpath_var=no
9347 runpath_var='LD_RUN_PATH'
9348
9349 if test "$GCC" = yes; then
9350 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9351 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9352 else
9353 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9354 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9355 fi
9356 ;;
9357
9358 sysv5* | sco3.2v5* | sco5v6*)
9359 # Note: We can NOT use -z defs as we might desire, because we do not
9360 # link with -lc, and that would cause any symbols used from libc to
9361 # always be unresolved, which means just about no library would
9362 # ever link correctly. If we're not using GNU ld we use -z text
9363 # though, which does catch some bad symbols but isn't as heavy-handed
9364 # as -z defs.
9365 no_undefined_flag='${wl}-z,text'
9366 allow_undefined_flag='${wl}-z,nodefs'
9367 archive_cmds_need_lc=no
9368 hardcode_shlibpath_var=no
9369 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9370 hardcode_libdir_separator=':'
9371 link_all_deplibs=yes
9372 export_dynamic_flag_spec='${wl}-Bexport'
9373 runpath_var='LD_RUN_PATH'
9374
9375 if test "$GCC" = yes; then
9376 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9377 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9378 else
9379 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9380 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9381 fi
9382 ;;
9383
9384 uts4*)
9385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9386 hardcode_libdir_flag_spec='-L$libdir'
9387 hardcode_shlibpath_var=no
9388 ;;
9389
9390 *)
9391 ld_shlibs=no
9392 ;;
9393 esac
9394
9395 if test x$host_vendor = xsni; then
9396 case $host in
9397 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9398 export_dynamic_flag_spec='${wl}-Blargedynsym'
9399 ;;
9400 esac
9401 fi
9402 fi
9403
9404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9405$as_echo "$ld_shlibs" >&6; }
9406test "$ld_shlibs" = no && can_build_shared=no
9407
9408with_gnu_ld=$with_gnu_ld
9409
9410
9411
93378652 9412
4f8d4a38 9413
4f8d4a38 9414
4f8d4a38 9415
4f8d4a38
DD
9416
9417
4f8d4a38 9418
4f8d4a38 9419
4f8d4a38
DD
9420
9421
6bb11ab3
L
9422
9423
9424#
9425# Do we need to explicitly link libc?
9426#
9427case "x$archive_cmds_need_lc" in
9428x|xyes)
9429 # Assume -lc should be added
9430 archive_cmds_need_lc=yes
9431
9432 if test "$enable_shared" = yes && test "$GCC" = yes; then
9433 case $archive_cmds in
9434 *'~'*)
9435 # FIXME: we may have to deal with multi-command sequences.
9436 ;;
9437 '$CC '*)
9438 # Test whether the compiler implicitly links with -lc since on some
9439 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9440 # to ld, don't add -lc before -lgcc.
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9442$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 9443if ${lt_cv_archive_cmds_need_lc+:} false; then :
4f8d4a38
DD
9444 $as_echo_n "(cached) " >&6
9445else
6bb11ab3
L
9446 $RM conftest*
9447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9448
9449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9450 (eval $ac_compile) 2>&5
9451 ac_status=$?
9452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9453 test $ac_status = 0; } 2>conftest.err; then
9454 soname=conftest
9455 lib=conftest
9456 libobjs=conftest.$ac_objext
9457 deplibs=
9458 wl=$lt_prog_compiler_wl
9459 pic_flag=$lt_prog_compiler_pic
9460 compiler_flags=-v
9461 linker_flags=-v
9462 verstring=
9463 output_objdir=.
9464 libname=conftest
9465 lt_save_allow_undefined_flag=$allow_undefined_flag
9466 allow_undefined_flag=
9467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9468 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9469 ac_status=$?
9470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9471 test $ac_status = 0; }
9472 then
9473 lt_cv_archive_cmds_need_lc=no
9474 else
9475 lt_cv_archive_cmds_need_lc=yes
9476 fi
9477 allow_undefined_flag=$lt_save_allow_undefined_flag
9478 else
9479 cat conftest.err 1>&5
9480 fi
9481 $RM conftest*
4f8d4a38
DD
9482
9483fi
6bb11ab3
L
9484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9485$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9486 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9487 ;;
9488 esac
9489 fi
9490 ;;
4f8d4a38 9491esac
4f8d4a38
DD
9492
9493
4f8d4a38 9494
4f8d4a38
DD
9495
9496
4f8d4a38 9497
6ffe910a 9498
6ffe910a 9499
4f8d4a38 9500
6ffe910a 9501
6ffe910a 9502
93378652 9503
93378652 9504
6ffe910a 9505
4f8d4a38 9506
4f8d4a38 9507
4f8d4a38 9508
6ffe910a 9509
4f8d4a38 9510
4f8d4a38 9511
4f8d4a38
DD
9512
9513
6ffe910a 9514
4f8d4a38 9515
93378652
DD
9516
9517
93378652 9518
4f8d4a38 9519
93378652 9520
4f8d4a38 9521
4f8d4a38 9522
6ffe910a 9523
93378652 9524
93378652 9525
93378652 9526
6ffe910a 9527
6ffe910a 9528
6ffe910a 9529
6ffe910a 9530
93378652 9531
6ffe910a 9532
4f8d4a38 9533
4f8d4a38 9534
4f8d4a38 9535
4f8d4a38 9536
4f8d4a38 9537
4f8d4a38 9538
4f8d4a38 9539
2232061b
MF
9540
9541
2232061b 9542
2232061b
MF
9543
9544
2232061b
MF
9545
9546
2232061b 9547
2232061b
MF
9548
9549
6bb11ab3
L
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9650$as_echo_n "checking dynamic linker characteristics... " >&6; }
9651
9652if test "$GCC" = yes; then
9653 case $host_os in
9654 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9655 *) lt_awk_arg="/^libraries:/" ;;
9656 esac
9657 case $host_os in
9658 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9659 *) lt_sed_strip_eq="s,=/,/,g" ;;
9660 esac
9661 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9662 case $lt_search_path_spec in
9663 *\;*)
9664 # if the path contains ";" then we assume it to be the separator
9665 # otherwise default to the standard path separator (i.e. ":") - it is
9666 # assumed that no part of a normal pathname contains ";" but that should
9667 # okay in the real world where ";" in dirpaths is itself problematic.
9668 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9669 ;;
9670 *)
9671 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9672 ;;
9673 esac
9674 # Ok, now we have the path, separated by spaces, we can step through it
9675 # and add multilib dir if necessary.
9676 lt_tmp_lt_search_path_spec=
9677 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9678 for lt_sys_path in $lt_search_path_spec; do
9679 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9680 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9681 else
9682 test -d "$lt_sys_path" && \
9683 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9684 fi
9685 done
9686 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9687BEGIN {RS=" "; FS="/|\n";} {
9688 lt_foo="";
9689 lt_count=0;
9690 for (lt_i = NF; lt_i > 0; lt_i--) {
9691 if ($lt_i != "" && $lt_i != ".") {
9692 if ($lt_i == "..") {
9693 lt_count++;
9694 } else {
9695 if (lt_count == 0) {
9696 lt_foo="/" $lt_i lt_foo;
9697 } else {
9698 lt_count--;
9699 }
9700 }
9701 }
9702 }
9703 if (lt_foo != "") { lt_freq[lt_foo]++; }
9704 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9705}'`
9706 # AWK program above erroneously prepends '/' to C:/dos/paths
9707 # for these hosts.
9708 case $host_os in
9709 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9710 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9711 esac
9712 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9713else
9714 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9715fi
9716library_names_spec=
9717libname_spec='lib$name'
9718soname_spec=
9719shrext_cmds=".so"
9720postinstall_cmds=
9721postuninstall_cmds=
9722finish_cmds=
9723finish_eval=
9724shlibpath_var=
9725shlibpath_overrides_runpath=unknown
9726version_type=none
9727dynamic_linker="$host_os ld.so"
9728sys_lib_dlsearch_path_spec="/lib /usr/lib"
9729need_lib_prefix=unknown
9730hardcode_into_libs=no
9731
9732# when you set need_version to no, make sure it does not cause -set_version
9733# flags to be left without arguments
9734need_version=unknown
9735
9736case $host_os in
9737aix3*)
9738 version_type=linux
9739 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9740 shlibpath_var=LIBPATH
9741
9742 # AIX 3 has no versioning support, so we append a major version to the name.
9743 soname_spec='${libname}${release}${shared_ext}$major'
9744 ;;
9745
9746aix[4-9]*)
9747 version_type=linux
9748 need_lib_prefix=no
9749 need_version=no
9750 hardcode_into_libs=yes
9751 if test "$host_cpu" = ia64; then
9752 # AIX 5 supports IA64
9753 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9754 shlibpath_var=LD_LIBRARY_PATH
9755 else
9756 # With GCC up to 2.95.x, collect2 would create an import file
9757 # for dependence libraries. The import file would start with
9758 # the line `#! .'. This would cause the generated library to
9759 # depend on `.', always an invalid library. This was fixed in
9760 # development snapshots of GCC prior to 3.0.
9761 case $host_os in
9762 aix4 | aix4.[01] | aix4.[01].*)
9763 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9764 echo ' yes '
9765 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9766 :
9767 else
9768 can_build_shared=no
9769 fi
9770 ;;
9771 esac
9772 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9773 # soname into executable. Probably we can add versioning support to
9774 # collect2, so additional links can be useful in future.
9775 if test "$aix_use_runtimelinking" = yes; then
9776 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9777 # instead of lib<name>.a to let people know that these are not
9778 # typical AIX shared libraries.
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9780 else
9781 # We preserve .a as extension for shared libraries through AIX4.2
9782 # and later when we are not doing run time linking.
9783 library_names_spec='${libname}${release}.a $libname.a'
9784 soname_spec='${libname}${release}${shared_ext}$major'
9785 fi
9786 shlibpath_var=LIBPATH
9787 fi
9788 ;;
9789
9790amigaos*)
9791 case $host_cpu in
9792 powerpc)
9793 # Since July 2007 AmigaOS4 officially supports .so libraries.
9794 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9796 ;;
9797 m68k)
9798 library_names_spec='$libname.ixlibrary $libname.a'
9799 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9800 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'
9801 ;;
9802 esac
9803 ;;
9804
9805beos*)
9806 library_names_spec='${libname}${shared_ext}'
9807 dynamic_linker="$host_os ld.so"
9808 shlibpath_var=LIBRARY_PATH
9809 ;;
9810
9811bsdi[45]*)
9812 version_type=linux
9813 need_version=no
9814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9815 soname_spec='${libname}${release}${shared_ext}$major'
9816 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9817 shlibpath_var=LD_LIBRARY_PATH
9818 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9819 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9820 # the default ld.so.conf also contains /usr/contrib/lib and
9821 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9822 # libtool to hard-code these into programs
9823 ;;
9824
9825cygwin* | mingw* | pw32* | cegcc*)
9826 version_type=windows
9827 shrext_cmds=".dll"
9828 need_version=no
9829 need_lib_prefix=no
9830
9831 case $GCC,$host_os in
9832 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9833 library_names_spec='$libname.dll.a'
9834 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9835 postinstall_cmds='base_file=`basename \${file}`~
9836 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9837 dldir=$destdir/`dirname \$dlpath`~
9838 test -d \$dldir || mkdir -p \$dldir~
9839 $install_prog $dir/$dlname \$dldir/$dlname~
9840 chmod a+x \$dldir/$dlname~
9841 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9842 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9843 fi'
9844 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9845 dlpath=$dir/\$dldll~
9846 $RM \$dlpath'
9847 shlibpath_overrides_runpath=yes
9848
9849 case $host_os in
9850 cygwin*)
9851 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9852 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9853
9854 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9855 ;;
9856 mingw* | cegcc*)
9857 # MinGW DLLs use traditional 'lib' prefix
9858 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9859 ;;
9860 pw32*)
9861 # pw32 DLLs use 'pw' prefix rather than 'lib'
9862 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9863 ;;
9864 esac
9865 ;;
9866
9867 *)
9868 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9869 ;;
9870 esac
9871 dynamic_linker='Win32 ld.exe'
9872 # FIXME: first we should search . and the directory the executable is in
9873 shlibpath_var=PATH
9874 ;;
9875
9876darwin* | rhapsody*)
9877 dynamic_linker="$host_os dyld"
9878 version_type=darwin
9879 need_lib_prefix=no
9880 need_version=no
9881 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9882 soname_spec='${libname}${release}${major}$shared_ext'
9883 shlibpath_overrides_runpath=yes
9884 shlibpath_var=DYLD_LIBRARY_PATH
9885 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9886
9887 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9888 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9889 ;;
9890
9891dgux*)
9892 version_type=linux
9893 need_lib_prefix=no
9894 need_version=no
9895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9896 soname_spec='${libname}${release}${shared_ext}$major'
9897 shlibpath_var=LD_LIBRARY_PATH
9898 ;;
9899
9900freebsd* | dragonfly*)
9901 # DragonFly does not have aout. When/if they implement a new
9902 # versioning mechanism, adjust this.
9903 if test -x /usr/bin/objformat; then
9904 objformat=`/usr/bin/objformat`
9905 else
9906 case $host_os in
9907 freebsd[23].*) objformat=aout ;;
9908 *) objformat=elf ;;
9909 esac
9910 fi
9911 version_type=freebsd-$objformat
9912 case $version_type in
9913 freebsd-elf*)
9914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9915 need_version=no
9916 need_lib_prefix=no
9917 ;;
9918 freebsd-*)
9919 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9920 need_version=yes
9921 ;;
9922 esac
9923 shlibpath_var=LD_LIBRARY_PATH
9924 case $host_os in
9925 freebsd2.*)
9926 shlibpath_overrides_runpath=yes
9927 ;;
9928 freebsd3.[01]* | freebsdelf3.[01]*)
9929 shlibpath_overrides_runpath=yes
9930 hardcode_into_libs=yes
9931 ;;
9932 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9933 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9934 shlibpath_overrides_runpath=no
9935 hardcode_into_libs=yes
9936 ;;
9937 *) # from 4.6 on, and DragonFly
9938 shlibpath_overrides_runpath=yes
9939 hardcode_into_libs=yes
9940 ;;
9941 esac
9942 ;;
9943
6bb11ab3
L
9944haiku*)
9945 version_type=linux
9946 need_lib_prefix=no
9947 need_version=no
9948 dynamic_linker="$host_os runtime_loader"
9949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9950 soname_spec='${libname}${release}${shared_ext}$major'
9951 shlibpath_var=LIBRARY_PATH
9952 shlibpath_overrides_runpath=yes
9953 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9954 hardcode_into_libs=yes
9955 ;;
9956
9957hpux9* | hpux10* | hpux11*)
9958 # Give a soname corresponding to the major version so that dld.sl refuses to
9959 # link against other versions.
9960 version_type=sunos
9961 need_lib_prefix=no
9962 need_version=no
9963 case $host_cpu in
9964 ia64*)
9965 shrext_cmds='.so'
9966 hardcode_into_libs=yes
9967 dynamic_linker="$host_os dld.so"
9968 shlibpath_var=LD_LIBRARY_PATH
9969 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9971 soname_spec='${libname}${release}${shared_ext}$major'
9972 if test "X$HPUX_IA64_MODE" = X32; then
9973 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9974 else
9975 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9976 fi
9977 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9978 ;;
9979 hppa*64*)
9980 shrext_cmds='.sl'
9981 hardcode_into_libs=yes
9982 dynamic_linker="$host_os dld.sl"
9983 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9984 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9986 soname_spec='${libname}${release}${shared_ext}$major'
9987 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9989 ;;
9990 *)
9991 shrext_cmds='.sl'
9992 dynamic_linker="$host_os dld.sl"
9993 shlibpath_var=SHLIB_PATH
9994 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9996 soname_spec='${libname}${release}${shared_ext}$major'
9997 ;;
9998 esac
9999 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10000 postinstall_cmds='chmod 555 $lib'
10001 # or fails outright, so override atomically:
10002 install_override_mode=555
10003 ;;
10004
10005interix[3-9]*)
10006 version_type=linux
10007 need_lib_prefix=no
10008 need_version=no
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10010 soname_spec='${libname}${release}${shared_ext}$major'
10011 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10012 shlibpath_var=LD_LIBRARY_PATH
10013 shlibpath_overrides_runpath=no
10014 hardcode_into_libs=yes
10015 ;;
10016
10017irix5* | irix6* | nonstopux*)
10018 case $host_os in
10019 nonstopux*) version_type=nonstopux ;;
10020 *)
10021 if test "$lt_cv_prog_gnu_ld" = yes; then
10022 version_type=linux
10023 else
10024 version_type=irix
10025 fi ;;
10026 esac
10027 need_lib_prefix=no
10028 need_version=no
10029 soname_spec='${libname}${release}${shared_ext}$major'
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10031 case $host_os in
10032 irix5* | nonstopux*)
10033 libsuff= shlibsuff=
10034 ;;
10035 *)
10036 case $LD in # libtool.m4 will add one of these switches to LD
10037 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10038 libsuff= shlibsuff= libmagic=32-bit;;
10039 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10040 libsuff=32 shlibsuff=N32 libmagic=N32;;
10041 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10042 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10043 *) libsuff= shlibsuff= libmagic=never-match;;
10044 esac
10045 ;;
10046 esac
10047 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10048 shlibpath_overrides_runpath=no
10049 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10050 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10051 hardcode_into_libs=yes
10052 ;;
10053
10054# No shared lib support for Linux oldld, aout, or coff.
10055linux*oldld* | linux*aout* | linux*coff*)
10056 dynamic_linker=no
10057 ;;
10058
10059# This must be Linux ELF.
46f900c0 10060linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6bb11ab3
L
10061 version_type=linux
10062 need_lib_prefix=no
10063 need_version=no
10064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10065 soname_spec='${libname}${release}${shared_ext}$major'
10066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10067 shlibpath_var=LD_LIBRARY_PATH
10068 shlibpath_overrides_runpath=no
10069
10070 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 10071 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
2232061b
MF
10072 $as_echo_n "(cached) " >&6
10073else
6bb11ab3
L
10074 lt_cv_shlibpath_overrides_runpath=no
10075 save_LDFLAGS=$LDFLAGS
10076 save_libdir=$libdir
10077 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10078 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232061b
MF
10080/* end confdefs.h. */
10081
2232061b
MF
10082int
10083main ()
10084{
10085
10086 ;
10087 return 0;
10088}
10089_ACEOF
6bb11ab3
L
10090if ac_fn_c_try_link "$LINENO"; then :
10091 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10092 lt_cv_shlibpath_overrides_runpath=yes
2232061b 10093fi
2232061b 10094fi
6bb11ab3
L
10095rm -f core conftest.err conftest.$ac_objext \
10096 conftest$ac_exeext conftest.$ac_ext
10097 LDFLAGS=$save_LDFLAGS
10098 libdir=$save_libdir
2232061b 10099
6bb11ab3 10100fi
2232061b 10101
6bb11ab3 10102 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2232061b 10103
6bb11ab3
L
10104 # This implies no fast_install, which is unacceptable.
10105 # Some rework will be needed to allow for fast_install
10106 # before this can be enabled.
10107 hardcode_into_libs=yes
2232061b 10108
6bb11ab3
L
10109 # Append ld.so.conf contents to the search path
10110 if test -f /etc/ld.so.conf; then
10111 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' ' '`
10112 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10113 fi
2232061b 10114
6bb11ab3
L
10115 # We used to test for /lib/ld.so.1 and disable shared libraries on
10116 # powerpc, because MkLinux only supported shared libraries with the
10117 # GNU dynamic linker. Since this was broken with cross compilers,
10118 # most powerpc-linux boxes support dynamic linking these days and
10119 # people can always --disable-shared, the test was removed, and we
10120 # assume the GNU/Linux dynamic linker is in use.
10121 dynamic_linker='GNU/Linux ld.so'
10122 ;;
10123
10124netbsd*)
10125 version_type=sunos
10126 need_lib_prefix=no
10127 need_version=no
10128 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10131 dynamic_linker='NetBSD (a.out) ld.so'
2232061b 10132 else
6bb11ab3
L
10133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10134 soname_spec='${libname}${release}${shared_ext}$major'
10135 dynamic_linker='NetBSD ld.elf_so'
10136 fi
10137 shlibpath_var=LD_LIBRARY_PATH
10138 shlibpath_overrides_runpath=yes
10139 hardcode_into_libs=yes
10140 ;;
10141
10142newsos6)
10143 version_type=linux
10144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145 shlibpath_var=LD_LIBRARY_PATH
10146 shlibpath_overrides_runpath=yes
10147 ;;
10148
10149*nto* | *qnx*)
10150 version_type=qnx
10151 need_lib_prefix=no
10152 need_version=no
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154 soname_spec='${libname}${release}${shared_ext}$major'
10155 shlibpath_var=LD_LIBRARY_PATH
10156 shlibpath_overrides_runpath=no
10157 hardcode_into_libs=yes
10158 dynamic_linker='ldqnx.so'
10159 ;;
10160
10161openbsd*)
10162 version_type=sunos
10163 sys_lib_dlsearch_path_spec="/usr/lib"
10164 need_lib_prefix=no
10165 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10166 case $host_os in
10167 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10168 *) need_version=no ;;
10169 esac
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10172 shlibpath_var=LD_LIBRARY_PATH
10173 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10174 case $host_os in
10175 openbsd2.[89] | openbsd2.[89].*)
10176 shlibpath_overrides_runpath=no
10177 ;;
10178 *)
10179 shlibpath_overrides_runpath=yes
10180 ;;
10181 esac
10182 else
10183 shlibpath_overrides_runpath=yes
10184 fi
10185 ;;
10186
10187os2*)
10188 libname_spec='$name'
10189 shrext_cmds=".dll"
10190 need_lib_prefix=no
10191 library_names_spec='$libname${shared_ext} $libname.a'
10192 dynamic_linker='OS/2 ld.exe'
10193 shlibpath_var=LIBPATH
10194 ;;
10195
10196osf3* | osf4* | osf5*)
10197 version_type=osf
10198 need_lib_prefix=no
10199 need_version=no
10200 soname_spec='${libname}${release}${shared_ext}$major'
10201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10202 shlibpath_var=LD_LIBRARY_PATH
10203 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10204 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10205 ;;
10206
10207rdos*)
10208 dynamic_linker=no
10209 ;;
10210
10211solaris*)
10212 version_type=linux
10213 need_lib_prefix=no
10214 need_version=no
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10216 soname_spec='${libname}${release}${shared_ext}$major'
10217 shlibpath_var=LD_LIBRARY_PATH
10218 shlibpath_overrides_runpath=yes
10219 hardcode_into_libs=yes
10220 # ldd complains unless libraries are executable
10221 postinstall_cmds='chmod +x $lib'
10222 ;;
10223
10224sunos4*)
10225 version_type=sunos
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10227 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10228 shlibpath_var=LD_LIBRARY_PATH
10229 shlibpath_overrides_runpath=yes
10230 if test "$with_gnu_ld" = yes; then
10231 need_lib_prefix=no
10232 fi
10233 need_version=yes
10234 ;;
10235
10236sysv4 | sysv4.3*)
10237 version_type=linux
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10239 soname_spec='${libname}${release}${shared_ext}$major'
10240 shlibpath_var=LD_LIBRARY_PATH
10241 case $host_vendor in
10242 sni)
10243 shlibpath_overrides_runpath=no
10244 need_lib_prefix=no
10245 runpath_var=LD_RUN_PATH
10246 ;;
10247 siemens)
10248 need_lib_prefix=no
10249 ;;
10250 motorola)
10251 need_lib_prefix=no
10252 need_version=no
10253 shlibpath_overrides_runpath=no
10254 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10255 ;;
10256 esac
10257 ;;
10258
10259sysv4*MP*)
10260 if test -d /usr/nec ;then
10261 version_type=linux
10262 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10263 soname_spec='$libname${shared_ext}.$major'
10264 shlibpath_var=LD_LIBRARY_PATH
2232061b 10265 fi
6bb11ab3
L
10266 ;;
10267
10268sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10269 version_type=freebsd-elf
10270 need_lib_prefix=no
10271 need_version=no
10272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10273 soname_spec='${libname}${release}${shared_ext}$major'
10274 shlibpath_var=LD_LIBRARY_PATH
10275 shlibpath_overrides_runpath=yes
10276 hardcode_into_libs=yes
10277 if test "$with_gnu_ld" = yes; then
10278 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10279 else
10280 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10281 case $host_os in
10282 sco3.2v5*)
10283 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10284 ;;
10285 esac
10286 fi
10287 sys_lib_dlsearch_path_spec='/usr/lib'
10288 ;;
10289
10290tpf*)
10291 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10292 version_type=linux
10293 need_lib_prefix=no
10294 need_version=no
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296 shlibpath_var=LD_LIBRARY_PATH
10297 shlibpath_overrides_runpath=no
10298 hardcode_into_libs=yes
10299 ;;
10300
10301uts4*)
10302 version_type=linux
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10304 soname_spec='${libname}${release}${shared_ext}$major'
10305 shlibpath_var=LD_LIBRARY_PATH
10306 ;;
10307
10308*)
10309 dynamic_linker=no
10310 ;;
10311esac
10312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10313$as_echo "$dynamic_linker" >&6; }
10314test "$dynamic_linker" = no && can_build_shared=no
10315
10316variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10317if test "$GCC" = yes; then
10318 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2232061b 10319fi
2232061b 10320
6bb11ab3
L
10321if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10322 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10323fi
10324if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10325 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10326fi
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
2232061b 10353
2232061b 10354
2232061b 10355
2232061b 10356
2232061b
MF
10357
10358
93378652 10359
6ffe910a
MF
10360
10361
93378652 10362
4f8d4a38 10363
4f8d4a38 10364
2232061b 10365
4f8d4a38 10366
4f8d4a38 10367
4f8d4a38 10368
4f8d4a38 10369
93378652 10370
4f8d4a38 10371
4f8d4a38 10372
4f8d4a38 10373
93378652 10374
93378652 10375
4f8d4a38 10376
4f8d4a38 10377
5f3ef9d0 10378
5f3ef9d0
JB
10379
10380
10381
db2e4d67
MF
10382
10383
db2e4d67 10384
db2e4d67 10385
db2e4d67 10386
db2e4d67 10387
db2e4d67 10388
db2e4d67 10389
db2e4d67 10390
db2e4d67
MF
10391
10392
db2e4d67 10393
db2e4d67
MF
10394
10395
db2e4d67 10396
db2e4d67
MF
10397
10398
93378652 10399
4f8d4a38 10400
4f8d4a38 10401
4f8d4a38 10402
93378652
DD
10403
10404
93378652 10405
93378652 10406
93378652 10407
4f8d4a38
DD
10408
10409
4f8d4a38 10410
4f8d4a38 10411
4f8d4a38 10412
4f8d4a38 10413
4f8d4a38 10414
4f8d4a38 10415
4f8d4a38 10416
4f8d4a38 10417
4f8d4a38 10418
6bb11ab3
L
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10420$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10421hardcode_action=
10422if test -n "$hardcode_libdir_flag_spec" ||
10423 test -n "$runpath_var" ||
10424 test "X$hardcode_automatic" = "Xyes" ; then
4f8d4a38 10425
6bb11ab3
L
10426 # We can hardcode non-existent directories.
10427 if test "$hardcode_direct" != no &&
10428 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10429 # have to relink, otherwise we might link with an installed library
10430 # when we should be linking with a yet-to-be-installed one
10431 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10432 test "$hardcode_minus_L" != no; then
10433 # Linking always hardcodes the temporary library directory.
10434 hardcode_action=relink
10435 else
10436 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10437 hardcode_action=immediate
10438 fi
10439else
10440 # We cannot hardcode anything, or else we can only hardcode existing
10441 # directories.
10442 hardcode_action=unsupported
4f8d4a38 10443fi
6bb11ab3
L
10444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10445$as_echo "$hardcode_action" >&6; }
4f8d4a38 10446
6bb11ab3
L
10447if test "$hardcode_action" = relink ||
10448 test "$inherit_rpath" = yes; then
10449 # Fast installation is not supported
10450 enable_fast_install=no
10451elif test "$shlibpath_overrides_runpath" = yes ||
10452 test "$enable_shared" = no; then
10453 # Fast installation is not necessary
10454 enable_fast_install=needless
10455fi
4f8d4a38 10456
6bb11ab3
L
10457
10458
10459
10460
10461
10462 if test "x$enable_dlopen" != xyes; then
10463 enable_dlopen=unknown
10464 enable_dlopen_self=unknown
10465 enable_dlopen_self_static=unknown
10466else
10467 lt_cv_dlopen=no
10468 lt_cv_dlopen_libs=
10469
10470 case $host_os in
10471 beos*)
10472 lt_cv_dlopen="load_add_on"
10473 lt_cv_dlopen_libs=
10474 lt_cv_dlopen_self=yes
10475 ;;
10476
10477 mingw* | pw32* | cegcc*)
10478 lt_cv_dlopen="LoadLibrary"
10479 lt_cv_dlopen_libs=
10480 ;;
10481
10482 cygwin*)
10483 lt_cv_dlopen="dlopen"
10484 lt_cv_dlopen_libs=
10485 ;;
10486
10487 darwin*)
10488 # if libdl is installed we need to link against it
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10490$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10491if ${ac_cv_lib_dl_dlopen+:} false; then :
6bb11ab3
L
10492 $as_echo_n "(cached) " >&6
10493else
10494 ac_check_lib_save_LIBS=$LIBS
10495LIBS="-ldl $LIBS"
10496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10497/* end confdefs.h. */
10498
10499/* Override any GCC internal prototype to avoid an error.
10500 Use char because int might match the return type of a GCC
10501 builtin and then its argument prototype would still apply. */
10502#ifdef __cplusplus
10503extern "C"
10504#endif
10505char dlopen ();
10506int
10507main ()
10508{
10509return dlopen ();
10510 ;
10511 return 0;
10512}
4f8d4a38 10513_ACEOF
6bb11ab3
L
10514if ac_fn_c_try_link "$LINENO"; then :
10515 ac_cv_lib_dl_dlopen=yes
10516else
10517 ac_cv_lib_dl_dlopen=no
10518fi
10519rm -f core conftest.err conftest.$ac_objext \
10520 conftest$ac_exeext conftest.$ac_ext
10521LIBS=$ac_check_lib_save_LIBS
10522fi
10523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10524$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10525if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
10526 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10527else
10528
10529 lt_cv_dlopen="dyld"
10530 lt_cv_dlopen_libs=
10531 lt_cv_dlopen_self=yes
4f8d4a38
DD
10532
10533fi
4f8d4a38 10534
6bb11ab3 10535 ;;
4f8d4a38 10536
6bb11ab3
L
10537 *)
10538 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 10539if test "x$ac_cv_func_shl_load" = xyes; then :
6bb11ab3
L
10540 lt_cv_dlopen="shl_load"
10541else
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10543$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 10544if ${ac_cv_lib_dld_shl_load+:} false; then :
6bb11ab3
L
10545 $as_echo_n "(cached) " >&6
10546else
10547 ac_check_lib_save_LIBS=$LIBS
10548LIBS="-ldld $LIBS"
10549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10550/* end confdefs.h. */
10551
10552/* Override any GCC internal prototype to avoid an error.
10553 Use char because int might match the return type of a GCC
10554 builtin and then its argument prototype would still apply. */
10555#ifdef __cplusplus
10556extern "C"
10557#endif
10558char shl_load ();
10559int
10560main ()
10561{
10562return shl_load ();
10563 ;
10564 return 0;
10565}
10566_ACEOF
10567if ac_fn_c_try_link "$LINENO"; then :
10568 ac_cv_lib_dld_shl_load=yes
10569else
10570 ac_cv_lib_dld_shl_load=no
10571fi
10572rm -f core conftest.err conftest.$ac_objext \
10573 conftest$ac_exeext conftest.$ac_ext
10574LIBS=$ac_check_lib_save_LIBS
10575fi
10576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10577$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 10578if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6bb11ab3
L
10579 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10580else
10581 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 10582if test "x$ac_cv_func_dlopen" = xyes; then :
6bb11ab3
L
10583 lt_cv_dlopen="dlopen"
10584else
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10586$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10587if ${ac_cv_lib_dl_dlopen+:} false; then :
4f8d4a38
DD
10588 $as_echo_n "(cached) " >&6
10589else
10590 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 10591LIBS="-ldl $LIBS"
4f8d4a38
DD
10592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10593/* end confdefs.h. */
10594
10595/* Override any GCC internal prototype to avoid an error.
10596 Use char because int might match the return type of a GCC
10597 builtin and then its argument prototype would still apply. */
10598#ifdef __cplusplus
10599extern "C"
10600#endif
6bb11ab3 10601char dlopen ();
4f8d4a38
DD
10602int
10603main ()
10604{
6bb11ab3 10605return dlopen ();
4f8d4a38
DD
10606 ;
10607 return 0;
10608}
10609_ACEOF
10610if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 10611 ac_cv_lib_dl_dlopen=yes
4f8d4a38 10612else
6bb11ab3 10613 ac_cv_lib_dl_dlopen=no
4f8d4a38
DD
10614fi
10615rm -f core conftest.err conftest.$ac_objext \
10616 conftest$ac_exeext conftest.$ac_ext
10617LIBS=$ac_check_lib_save_LIBS
10618fi
6bb11ab3
L
10619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10620$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10621if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
10622 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10623else
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10625$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 10626if ${ac_cv_lib_svld_dlopen+:} false; then :
4f8d4a38
DD
10627 $as_echo_n "(cached) " >&6
10628else
10629 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 10630LIBS="-lsvld $LIBS"
4f8d4a38
DD
10631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10632/* end confdefs.h. */
10633
10634/* Override any GCC internal prototype to avoid an error.
10635 Use char because int might match the return type of a GCC
10636 builtin and then its argument prototype would still apply. */
10637#ifdef __cplusplus
10638extern "C"
10639#endif
6bb11ab3 10640char dlopen ();
4f8d4a38
DD
10641int
10642main ()
10643{
6bb11ab3 10644return dlopen ();
4f8d4a38
DD
10645 ;
10646 return 0;
10647}
10648_ACEOF
10649if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 10650 ac_cv_lib_svld_dlopen=yes
4f8d4a38 10651else
6bb11ab3 10652 ac_cv_lib_svld_dlopen=no
4f8d4a38
DD
10653fi
10654rm -f core conftest.err conftest.$ac_objext \
10655 conftest$ac_exeext conftest.$ac_ext
10656LIBS=$ac_check_lib_save_LIBS
10657fi
6bb11ab3
L
10658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10659$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 10660if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6bb11ab3 10661 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
3725885a 10662else
6bb11ab3
L
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10664$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 10665if ${ac_cv_lib_dld_dld_link+:} false; then :
4f8d4a38
DD
10666 $as_echo_n "(cached) " >&6
10667else
6bb11ab3
L
10668 ac_check_lib_save_LIBS=$LIBS
10669LIBS="-ldld $LIBS"
4f8d4a38
DD
10670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671/* end confdefs.h. */
10672
10673/* Override any GCC internal prototype to avoid an error.
10674 Use char because int might match the return type of a GCC
10675 builtin and then its argument prototype would still apply. */
10676#ifdef __cplusplus
10677extern "C"
10678#endif
6bb11ab3 10679char dld_link ();
4f8d4a38
DD
10680int
10681main ()
10682{
6bb11ab3 10683return dld_link ();
4f8d4a38
DD
10684 ;
10685 return 0;
10686}
10687_ACEOF
6bb11ab3
L
10688if ac_fn_c_try_link "$LINENO"; then :
10689 ac_cv_lib_dld_dld_link=yes
10690else
10691 ac_cv_lib_dld_dld_link=no
10692fi
10693rm -f core conftest.err conftest.$ac_objext \
10694 conftest$ac_exeext conftest.$ac_ext
10695LIBS=$ac_check_lib_save_LIBS
10696fi
10697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10698$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 10699if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6bb11ab3
L
10700 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10701fi
10702
10703
10704fi
10705
10706
10707fi
10708
10709
10710fi
10711
10712
10713fi
10714
10715
10716fi
10717
10718 ;;
10719 esac
10720
10721 if test "x$lt_cv_dlopen" != xno; then
10722 enable_dlopen=yes
4f8d4a38 10723 else
6bb11ab3
L
10724 enable_dlopen=no
10725 fi
10726
10727 case $lt_cv_dlopen in
10728 dlopen)
10729 save_CPPFLAGS="$CPPFLAGS"
10730 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10731
10732 save_LDFLAGS="$LDFLAGS"
10733 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10734
10735 save_LIBS="$LIBS"
10736 LIBS="$lt_cv_dlopen_libs $LIBS"
10737
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10739$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 10740if ${lt_cv_dlopen_self+:} false; then :
6bb11ab3
L
10741 $as_echo_n "(cached) " >&6
10742else
10743 if test "$cross_compiling" = yes; then :
10744 lt_cv_dlopen_self=cross
10745else
10746 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10747 lt_status=$lt_dlunknown
10748 cat > conftest.$ac_ext <<_LT_EOF
6dd65fc0 10749#line 10749 "configure"
6bb11ab3
L
10750#include "confdefs.h"
10751
10752#if HAVE_DLFCN_H
10753#include <dlfcn.h>
10754#endif
10755
10756#include <stdio.h>
10757
10758#ifdef RTLD_GLOBAL
10759# define LT_DLGLOBAL RTLD_GLOBAL
10760#else
10761# ifdef DL_GLOBAL
10762# define LT_DLGLOBAL DL_GLOBAL
10763# else
10764# define LT_DLGLOBAL 0
10765# endif
10766#endif
10767
10768/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10769 find out it does not work in some platform. */
10770#ifndef LT_DLLAZY_OR_NOW
10771# ifdef RTLD_LAZY
10772# define LT_DLLAZY_OR_NOW RTLD_LAZY
10773# else
10774# ifdef DL_LAZY
10775# define LT_DLLAZY_OR_NOW DL_LAZY
10776# else
10777# ifdef RTLD_NOW
10778# define LT_DLLAZY_OR_NOW RTLD_NOW
10779# else
10780# ifdef DL_NOW
10781# define LT_DLLAZY_OR_NOW DL_NOW
10782# else
10783# define LT_DLLAZY_OR_NOW 0
10784# endif
10785# endif
10786# endif
10787# endif
10788#endif
10789
10790/* When -fvisbility=hidden is used, assume the code has been annotated
10791 correspondingly for the symbols needed. */
10792#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10793void fnord () __attribute__((visibility("default")));
10794#endif
10795
10796void fnord () { int i=42; }
10797int main ()
10798{
10799 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10800 int status = $lt_dlunknown;
10801
10802 if (self)
10803 {
10804 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10805 else
10806 {
10807 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10808 else puts (dlerror ());
10809 }
10810 /* dlclose (self); */
10811 }
10812 else
10813 puts (dlerror ());
10814
10815 return status;
10816}
10817_LT_EOF
10818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10819 (eval $ac_link) 2>&5
10820 ac_status=$?
10821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10822 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10823 (./conftest; exit; ) >&5 2>/dev/null
10824 lt_status=$?
10825 case x$lt_status in
10826 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10827 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10828 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10829 esac
10830 else :
10831 # compilation failed
10832 lt_cv_dlopen_self=no
4f8d4a38 10833 fi
4f8d4a38 10834fi
6bb11ab3
L
10835rm -fr conftest*
10836
10837
4f8d4a38 10838fi
6bb11ab3
L
10839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10840$as_echo "$lt_cv_dlopen_self" >&6; }
4f8d4a38 10841
6bb11ab3
L
10842 if test "x$lt_cv_dlopen_self" = xyes; then
10843 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10845$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 10846if ${lt_cv_dlopen_self_static+:} false; then :
6bb11ab3 10847 $as_echo_n "(cached) " >&6
4f8d4a38 10848else
6bb11ab3
L
10849 if test "$cross_compiling" = yes; then :
10850 lt_cv_dlopen_self_static=cross
10851else
10852 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10853 lt_status=$lt_dlunknown
10854 cat > conftest.$ac_ext <<_LT_EOF
6dd65fc0 10855#line 10855 "configure"
6bb11ab3
L
10856#include "confdefs.h"
10857
10858#if HAVE_DLFCN_H
10859#include <dlfcn.h>
10860#endif
10861
10862#include <stdio.h>
10863
10864#ifdef RTLD_GLOBAL
10865# define LT_DLGLOBAL RTLD_GLOBAL
10866#else
10867# ifdef DL_GLOBAL
10868# define LT_DLGLOBAL DL_GLOBAL
10869# else
10870# define LT_DLGLOBAL 0
10871# endif
10872#endif
10873
10874/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10875 find out it does not work in some platform. */
10876#ifndef LT_DLLAZY_OR_NOW
10877# ifdef RTLD_LAZY
10878# define LT_DLLAZY_OR_NOW RTLD_LAZY
10879# else
10880# ifdef DL_LAZY
10881# define LT_DLLAZY_OR_NOW DL_LAZY
10882# else
10883# ifdef RTLD_NOW
10884# define LT_DLLAZY_OR_NOW RTLD_NOW
10885# else
10886# ifdef DL_NOW
10887# define LT_DLLAZY_OR_NOW DL_NOW
10888# else
10889# define LT_DLLAZY_OR_NOW 0
10890# endif
10891# endif
10892# endif
10893# endif
10894#endif
10895
10896/* When -fvisbility=hidden is used, assume the code has been annotated
10897 correspondingly for the symbols needed. */
10898#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10899void fnord () __attribute__((visibility("default")));
10900#endif
10901
10902void fnord () { int i=42; }
10903int main ()
10904{
10905 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10906 int status = $lt_dlunknown;
10907
10908 if (self)
10909 {
10910 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10911 else
10912 {
10913 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10914 else puts (dlerror ());
10915 }
10916 /* dlclose (self); */
10917 }
10918 else
10919 puts (dlerror ());
10920
10921 return status;
10922}
10923_LT_EOF
10924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10925 (eval $ac_link) 2>&5
10926 ac_status=$?
10927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10928 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10929 (./conftest; exit; ) >&5 2>/dev/null
10930 lt_status=$?
10931 case x$lt_status in
10932 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10933 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10934 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10935 esac
10936 else :
10937 # compilation failed
10938 lt_cv_dlopen_self_static=no
10939 fi
4f8d4a38 10940fi
6bb11ab3
L
10941rm -fr conftest*
10942
10943
4f8d4a38 10944fi
6bb11ab3
L
10945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10946$as_echo "$lt_cv_dlopen_self_static" >&6; }
10947 fi
10948
10949 CPPFLAGS="$save_CPPFLAGS"
10950 LDFLAGS="$save_LDFLAGS"
10951 LIBS="$save_LIBS"
10952 ;;
10953 esac
10954
10955 case $lt_cv_dlopen_self in
10956 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10957 *) enable_dlopen_self=unknown ;;
10958 esac
10959
10960 case $lt_cv_dlopen_self_static in
10961 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10962 *) enable_dlopen_self_static=unknown ;;
10963 esac
10964fi
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982striplib=
10983old_striplib=
10984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10985$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10986if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10987 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10988 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10990$as_echo "yes" >&6; }
10991else
10992# FIXME - insert some real tests, host_os isn't really good enough
10993 case $host_os in
10994 darwin*)
10995 if test -n "$STRIP" ; then
10996 striplib="$STRIP -x"
10997 old_striplib="$STRIP -S"
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10999$as_echo "yes" >&6; }
11000 else
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11002$as_echo "no" >&6; }
11003 fi
11004 ;;
11005 *)
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007$as_echo "no" >&6; }
11008 ;;
11009 esac
11010fi
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023 # Report which library types will actually be built
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11025$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11027$as_echo "$can_build_shared" >&6; }
11028
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11030$as_echo_n "checking whether to build shared libraries... " >&6; }
11031 test "$can_build_shared" = "no" && enable_shared=no
11032
11033 # On AIX, shared libraries and static libraries use the same namespace, and
11034 # are all built from PIC.
11035 case $host_os in
11036 aix3*)
11037 test "$enable_shared" = yes && enable_static=no
11038 if test -n "$RANLIB"; then
11039 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11040 postinstall_cmds='$RANLIB $lib'
11041 fi
11042 ;;
11043
11044 aix[4-9]*)
11045 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11046 test "$enable_shared" = yes && enable_static=no
11047 fi
11048 ;;
11049 esac
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11051$as_echo "$enable_shared" >&6; }
11052
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11054$as_echo_n "checking whether to build static libraries... " >&6; }
11055 # Make sure either enable_shared or enable_static is yes.
11056 test "$enable_shared" = yes || enable_static=yes
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11058$as_echo "$enable_static" >&6; }
11059
11060
11061
11062
11063fi
11064ac_ext=c
11065ac_cpp='$CPP $CPPFLAGS'
11066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11068ac_compiler_gnu=$ac_cv_c_compiler_gnu
11069
11070CC="$lt_save_CC"
11071
11072
11073
11074
11075
11076
11077
11078
11079
4f8d4a38 11080
4f8d4a38 11081
4f8d4a38 11082
4f8d4a38 11083
6bb11ab3
L
11084 ac_config_commands="$ac_config_commands libtool"
11085
11086
11087
11088
11089# Only expand once:
11090
11091
3725885a 11092
4f8d4a38 11093
4f8d4a38 11094
31e6ad7d
MF
11095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11096$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11097 # Check whether --enable-maintainer-mode was given.
4f8d4a38 11098if test "${enable_maintainer_mode+set}" = set; then :
31e6ad7d
MF
11099 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11100else
11101 USE_MAINTAINER_MODE=no
4f8d4a38 11102fi
31e6ad7d
MF
11103
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11105$as_echo "$USE_MAINTAINER_MODE" >&6; }
11106 if test $USE_MAINTAINER_MODE = yes; then
11107 MAINTAINER_MODE_TRUE=
11108 MAINTAINER_MODE_FALSE='#'
4f8d4a38 11109else
31e6ad7d
MF
11110 MAINTAINER_MODE_TRUE='#'
11111 MAINTAINER_MODE_FALSE=
4f8d4a38
DD
11112fi
11113
31e6ad7d
MF
11114 MAINT=$MAINTAINER_MODE_TRUE
11115
11116
4f8d4a38
DD
11117
11118
347fe5bb
MF
11119sim_inline="-DDEFAULT_INLINE=0"
11120# Check whether --enable-sim-inline was given.
11121if test "${enable_sim_inline+set}" = set; then :
11122 enableval=$enable_sim_inline; sim_inline=""
11123case "$enableval" in
11124 no) sim_inline="-DDEFAULT_INLINE=0";;
11125 0) sim_inline="-DDEFAULT_INLINE=0";;
11126 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
11127 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
11128 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11129 new_flag=""
11130 case "$x" in
11131 *_INLINE=*) new_flag="-D$x";;
11132 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
11133 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
11134 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
11135 esac
11136 if test x"$sim_inline" = x""; then
11137 sim_inline="$new_flag"
11138 else
11139 sim_inline="$sim_inline $new_flag"
11140 fi
11141 done;;
11142esac
11143if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
11144 echo "Setting inline flags = $sim_inline" 6>&1
11145fi
11146fi
11147
11148
11149
4f8d4a38 11150
4f8d4a38 11151
136da8cd
MF
11152# Check whether --enable-cycle-accurate was given.
11153if test "${enable_cycle_accurate+set}" = set; then :
11154 enableval=$enable_cycle_accurate; case "${enableval}" in
11155yes | no) ;;
11156*) as_fn_error $? "bad value ${enableval} given for --enable-cycle-accurate option" "$LINENO" 5 ;;
11157esac
11158fi
11159
11160
11161# Check whether --enable-cycle-stats was given.
11162if test "${enable_cycle_stats+set}" = set; then :
11163 enableval=$enable_cycle_stats; case "${enableval}" in
11164yes | no) ;;
11165*) as_fn_error $? "bad value ${enableval} given for --enable-cycle-stats option" "$LINENO" 5 ;;
11166esac
11167fi
11168
11169
11170echo enable_cycle_accurate is $enable_cycle_accurate
11171echo enable_cycle_stats is $enable_cycle_stats
11172
11173if test "x${enable_cycle_accurate}" != xno; then
11174
11175$as_echo "#define CYCLE_ACCURATE 1" >>confdefs.h
11176
11177
11178 if test "x${enable_cycle_stats}" != xno; then
11179
11180$as_echo "#define CYCLE_STATS 1" >>confdefs.h
11181
11182 fi
11183else
11184 if test "x${enable_cycle_stats}" != xno; then
11185 as_fn_error $? "cycle-stats not available without cycle-accurate" "$LINENO" 5
11186 fi
11187fi
11188
11189
5c1008a4
MF
11190# Check whether --enable-werror was given.
11191if test "${enable_werror+set}" = set; then :
11192 enableval=$enable_werror; case "${enableval}" in
11193 yes | y) ERROR_ON_WARNING="yes" ;;
11194 no | n) ERROR_ON_WARNING="no" ;;
11195 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11196 esac
11197fi
11198
11199
11200# Enable -Werror by default when using gcc
11201if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11202 ERROR_ON_WARNING=yes
11203fi
11204
11205WERROR_CFLAGS=""
6bf99988
AB
11206 if test "${ERROR_ON_WARNING}" = yes ; then
11207 WERROR_CFLAGS="-Werror"
11208 fi
5c1008a4
MF
11209
11210build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
11211-Wpointer-sign \
11212-Wno-unused -Wunused-value -Wunused-function \
11213-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
11214-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
11215-Wold-style-declaration -Wold-style-definition"
11216
11217# Enable -Wno-format by default when using gcc on mingw since many
11218# GCC versions complain about %I64.
11219case "${host}" in
11220 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
11221 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
11222esac
11223
11224# Check whether --enable-build-warnings was given.
11225if test "${enable_build_warnings+set}" = set; then :
11226 enableval=$enable_build_warnings; case "${enableval}" in
11227 yes) ;;
11228 no) build_warnings="-w";;
11229 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11230 build_warnings="${build_warnings} ${t}";;
11231 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11232 build_warnings="${t} ${build_warnings}";;
11233 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11234esac
11235if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
11236 echo "Setting compiler warning flags = $build_warnings" 6>&1
11237fi
11238fi
11239# Check whether --enable-sim-build-warnings was given.
11240if test "${enable_sim_build_warnings+set}" = set; then :
11241 enableval=$enable_sim_build_warnings; case "${enableval}" in
11242 yes) ;;
11243 no) build_warnings="-w";;
11244 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11245 build_warnings="${build_warnings} ${t}";;
11246 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11247 build_warnings="${t} ${build_warnings}";;
11248 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11249esac
11250if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
11251 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
11252fi
11253fi
11254WARN_CFLAGS=""
11255if test "x${build_warnings}" != x -a "x$GCC" = xyes
11256then
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
11258$as_echo_n "checking compiler warning flags... " >&6; }
11259 # Separate out the -Werror flag as some files just cannot be
11260 # compiled with it enabled.
11261 for w in ${build_warnings}; do
11262 case $w in
11263 -Werr*) WERROR_CFLAGS=-Werror ;;
11264 *) # Check that GCC accepts it
11265 saved_CFLAGS="$CFLAGS"
1f195bc3 11266 CFLAGS="$CFLAGS -Werror $w"
5c1008a4
MF
11267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11268/* end confdefs.h. */
11269
11270int
11271main ()
11272{
11273
11274 ;
11275 return 0;
11276}
11277_ACEOF
11278if ac_fn_c_try_compile "$LINENO"; then :
11279 WARN_CFLAGS="${WARN_CFLAGS} $w"
11280fi
11281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11282 CFLAGS="$saved_CFLAGS"
11283 esac
11284 done
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
11286$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
11287fi
11288
11289
66d055c7
MF
11290hardware="cfi core pal glue "
11291sim_hw_cflags="-DWITH_HW=1"
11292sim_hw="$hardware"
11293sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
11294
11295# Check whether --enable-sim-hardware was given.
11296if test "${enable_sim_hardware+set}" = set; then :
11297 enableval=$enable_sim_hardware;
11298else
11299 enable_sim_hardware="yes"
11300fi
11301
11302case ${enable_sim_hardware} in
11303 yes|no) ;;
11304 ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
11305 *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
11306 *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
11307esac
11308
11309if test "$enable_sim_hardware" = no; then
11310 sim_hw_objs=
11311 sim_hw_cflags="-DWITH_HW=0"
11312 sim_hw=
11313else
11314 sim_hw_cflags="-DWITH_HW=1"
11315 # remove duplicates
11316 sim_hw=""
11317 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
11318 for i in $hardware ; do
11319 case " $sim_hw " in
11320 *" $i "*) ;;
11321 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
11322 esac
11323 done
11324 # mingw does not support sockser
11325 case ${host} in
11326 *mingw*) ;;
11327 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
11328 # that you instatiate. Instead, other code will call into it directly.
11329 # At some point, we should convert it over.
11330 sim_hw_objs="$sim_hw_objs dv-sockser.o"
11331
11332cat >>confdefs.h <<_ACEOF
11333#define HAVE_DV_SOCKSER 1
11334_ACEOF
11335
11336 ;;
11337 esac
11338 if test x"$silent" != x"yes"; then
11339 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
11340 fi
11341 case " $hardware " in
11342 *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
11343$as_echo_n "checking for log2 in -lm... " >&6; }
11344if ${ac_cv_lib_m_log2+:} false; then :
11345 $as_echo_n "(cached) " >&6
11346else
11347 ac_check_lib_save_LIBS=$LIBS
11348LIBS="-lm $LIBS"
11349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350/* end confdefs.h. */
11351
11352/* Override any GCC internal prototype to avoid an error.
11353 Use char because int might match the return type of a GCC
11354 builtin and then its argument prototype would still apply. */
11355#ifdef __cplusplus
11356extern "C"
11357#endif
11358char log2 ();
11359int
11360main ()
11361{
11362return log2 ();
11363 ;
11364 return 0;
11365}
11366_ACEOF
11367if ac_fn_c_try_link "$LINENO"; then :
11368 ac_cv_lib_m_log2=yes
11369else
11370 ac_cv_lib_m_log2=no
11371fi
11372rm -f core conftest.err conftest.$ac_objext \
11373 conftest$ac_exeext conftest.$ac_ext
11374LIBS=$ac_check_lib_save_LIBS
11375fi
11376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
11377$as_echo "$ac_cv_lib_m_log2" >&6; }
11378if test "x$ac_cv_lib_m_log2" = xyes; then :
11379 cat >>confdefs.h <<_ACEOF
11380#define HAVE_LIBM 1
11381_ACEOF
11382
11383 LIBS="-lm $LIBS"
11384
11385fi
11386;;
11387 esac
11388fi
11389
11390
4f8d4a38
DD
11391cgen_breaks=""
11392if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
11393cgen_breaks="break cgen_rtx_error";
11394fi
11395
11396ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
11397
11398ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
11399
11400ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
11401
11402ac_config_commands="$ac_config_commands Makefile"
11403
11404ac_config_commands="$ac_config_commands stamp-h"
11405
760b3e8b
MF
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
4f8d4a38
DD
11418cat >confcache <<\_ACEOF
11419# This file is a shell script that caches the results of configure
11420# tests run on this system so they can be shared between configure
11421# scripts and configure runs, see configure's option --config-cache.
11422# It is not useful on other systems. If it contains results you don't
11423# want to keep, you may remove or edit it.
11424#
11425# config.status only pays attention to the cache file if you give it
11426# the --recheck option to rerun configure.
11427#
11428# `ac_cv_env_foo' variables (set or unset) will be overridden when
11429# loading this file, other *unset* `ac_cv_foo' will be assigned the
11430# following values.
11431
11432_ACEOF
11433
11434# The following way of writing the cache mishandles newlines in values,
11435# but we know of no workaround that is simple, portable, and efficient.
11436# So, we kill variables containing newlines.
11437# Ultrix sh set writes to stderr and can't be redirected directly,
11438# and sets the high bit in the cache file unless we assign to the vars.
11439(
11440 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11441 eval ac_val=\$$ac_var
11442 case $ac_val in #(
11443 *${as_nl}*)
11444 case $ac_var in #(
11445 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11446$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11447 esac
11448 case $ac_var in #(
11449 _ | IFS | as_nl) ;; #(
11450 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11451 *) { eval $ac_var=; unset $ac_var;} ;;
11452 esac ;;
11453 esac
11454 done
11455
11456 (set) 2>&1 |
11457 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11458 *${as_nl}ac_space=\ *)
11459 # `set' does not quote correctly, so add quotes: double-quote
11460 # substitution turns \\\\ into \\, and sed turns \\ into \.
11461 sed -n \
11462 "s/'/'\\\\''/g;
11463 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11464 ;; #(
11465 *)
11466 # `set' quotes correctly as required by POSIX, so do not add quotes.
11467 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11468 ;;
11469 esac |
11470 sort
11471) |
11472 sed '
11473 /^ac_cv_env_/b end
11474 t clear
11475 :clear
11476 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11477 t end
11478 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11479 :end' >>confcache
11480if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11481 if test -w "$cache_file"; then
d0ac1c44 11482 if test "x$cache_file" != "x/dev/null"; then
4f8d4a38
DD
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11484$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
11485 if test ! -f "$cache_file" || test -h "$cache_file"; then
11486 cat confcache >"$cache_file"
11487 else
11488 case $cache_file in #(
11489 */* | ?:*)
11490 mv -f confcache "$cache_file"$$ &&
11491 mv -f "$cache_file"$$ "$cache_file" ;; #(
11492 *)
11493 mv -f confcache "$cache_file" ;;
11494 esac
11495 fi
11496 fi
4f8d4a38
DD
11497 else
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11499$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11500 fi
11501fi
11502rm -f confcache
11503
11504test "x$prefix" = xNONE && prefix=$ac_default_prefix
11505# Let make expand exec_prefix.
11506test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11507
11508DEFS=-DHAVE_CONFIG_H
11509
11510ac_libobjs=
11511ac_ltlibobjs=
d0ac1c44 11512U=
4f8d4a38
DD
11513for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11514 # 1. Remove the extension, and $U if already installed.
11515 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11516 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11517 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11518 # will be set to the directory where LIBOBJS objects are built.
11519 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11520 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11521done
11522LIBOBJS=$ac_libobjs
11523
11524LTLIBOBJS=$ac_ltlibobjs
11525
11526
0cb8d851 11527
6bb11ab3 11528if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
d0ac1c44 11529 as_fn_error $? "conditional \"PLUGINS\" was never defined.
6bb11ab3
L
11530Usually this means the macro was only invoked conditionally." "$LINENO" 5
11531fi
31e6ad7d 11532if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 11533 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
31e6ad7d
MF
11534Usually this means the macro was only invoked conditionally." "$LINENO" 5
11535fi
4f8d4a38 11536
d0ac1c44 11537: "${CONFIG_STATUS=./config.status}"
4f8d4a38
DD
11538ac_write_fail=0
11539ac_clean_files_save=$ac_clean_files
11540ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11541{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11542$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11543as_write_fail=0
11544cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11545#! $SHELL
11546# Generated by $as_me.
11547# Run this file to recreate the current configuration.
11548# Compiler output produced by configure, useful for debugging
11549# configure, is in config.log if it exists.
11550
11551debug=false
11552ac_cs_recheck=false
11553ac_cs_silent=false
11554
11555SHELL=\${CONFIG_SHELL-$SHELL}
11556export SHELL
11557_ASEOF
11558cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11559## -------------------- ##
11560## M4sh Initialization. ##
11561## -------------------- ##
11562
11563# Be more Bourne compatible
11564DUALCASE=1; export DUALCASE # for MKS sh
11565if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11566 emulate sh
11567 NULLCMD=:
11568 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11569 # is contrary to our usage. Disable this feature.
11570 alias -g '${1+"$@"}'='"$@"'
11571 setopt NO_GLOB_SUBST
11572else
11573 case `(set -o) 2>/dev/null` in #(
11574 *posix*) :
11575 set -o posix ;; #(
11576 *) :
11577 ;;
11578esac
11579fi
11580
11581
11582as_nl='
11583'
11584export as_nl
11585# Printing a long string crashes Solaris 7 /usr/bin/printf.
11586as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11587as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11588as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11589# Prefer a ksh shell builtin over an external printf program on Solaris,
11590# but without wasting forks for bash or zsh.
11591if test -z "$BASH_VERSION$ZSH_VERSION" \
11592 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11593 as_echo='print -r --'
11594 as_echo_n='print -rn --'
11595elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11596 as_echo='printf %s\n'
11597 as_echo_n='printf %s'
11598else
11599 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11600 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11601 as_echo_n='/usr/ucb/echo -n'
11602 else
11603 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11604 as_echo_n_body='eval
11605 arg=$1;
11606 case $arg in #(
11607 *"$as_nl"*)
11608 expr "X$arg" : "X\\(.*\\)$as_nl";
11609 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11610 esac;
11611 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11612 '
11613 export as_echo_n_body
11614 as_echo_n='sh -c $as_echo_n_body as_echo'
11615 fi
11616 export as_echo_body
11617 as_echo='sh -c $as_echo_body as_echo'
11618fi
11619
11620# The user is always right.
11621if test "${PATH_SEPARATOR+set}" != set; then
11622 PATH_SEPARATOR=:
11623 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11624 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11625 PATH_SEPARATOR=';'
11626 }
11627fi
11628
11629
11630# IFS
11631# We need space, tab and new line, in precisely that order. Quoting is
11632# there to prevent editors from complaining about space-tab.
11633# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11634# splitting by setting IFS to empty value.)
11635IFS=" "" $as_nl"
11636
11637# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 11638as_myself=
4f8d4a38
DD
11639case $0 in #((
11640 *[\\/]* ) as_myself=$0 ;;
11641 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11642for as_dir in $PATH
11643do
11644 IFS=$as_save_IFS
11645 test -z "$as_dir" && as_dir=.
11646 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11647 done
11648IFS=$as_save_IFS
11649
11650 ;;
11651esac
11652# We did not find ourselves, most probably we were run as `sh COMMAND'
11653# in which case we are not to be found in the path.
11654if test "x$as_myself" = x; then
11655 as_myself=$0
11656fi
11657if test ! -f "$as_myself"; then
11658 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11659 exit 1
11660fi
11661
11662# Unset variables that we do not need and which cause bugs (e.g. in
11663# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11664# suppresses any "Segmentation fault" message there. '((' could
11665# trigger a bug in pdksh 5.2.14.
11666for as_var in BASH_ENV ENV MAIL MAILPATH
11667do eval test x\${$as_var+set} = xset \
11668 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11669done
11670PS1='$ '
11671PS2='> '
11672PS4='+ '
11673
11674# NLS nuisances.
11675LC_ALL=C
11676export LC_ALL
11677LANGUAGE=C
11678export LANGUAGE
11679
11680# CDPATH.
11681(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11682
11683
d0ac1c44
SM
11684# as_fn_error STATUS ERROR [LINENO LOG_FD]
11685# ----------------------------------------
4f8d4a38
DD
11686# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11687# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 11688# script with STATUS, using 1 if that was 0.
4f8d4a38
DD
11689as_fn_error ()
11690{
d0ac1c44
SM
11691 as_status=$1; test $as_status -eq 0 && as_status=1
11692 if test "$4"; then
11693 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11694 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4f8d4a38 11695 fi
d0ac1c44 11696 $as_echo "$as_me: error: $2" >&2
4f8d4a38
DD
11697 as_fn_exit $as_status
11698} # as_fn_error
11699
11700
11701# as_fn_set_status STATUS
11702# -----------------------
11703# Set $? to STATUS, without forking.
11704as_fn_set_status ()
11705{
11706 return $1
11707} # as_fn_set_status
11708
11709# as_fn_exit STATUS
11710# -----------------
11711# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11712as_fn_exit ()
11713{
11714 set +e
11715 as_fn_set_status $1
11716 exit $1
11717} # as_fn_exit
11718
11719# as_fn_unset VAR
11720# ---------------
11721# Portably unset VAR.
11722as_fn_unset ()
11723{
11724 { eval $1=; unset $1;}
11725}
11726as_unset=as_fn_unset
11727# as_fn_append VAR VALUE
11728# ----------------------
11729# Append the text in VALUE to the end of the definition contained in VAR. Take
11730# advantage of any shell optimizations that allow amortized linear growth over
11731# repeated appends, instead of the typical quadratic growth present in naive
11732# implementations.
11733if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11734 eval 'as_fn_append ()
11735 {
11736 eval $1+=\$2
11737 }'
11738else
11739 as_fn_append ()
11740 {
11741 eval $1=\$$1\$2
11742 }
11743fi # as_fn_append
11744
11745# as_fn_arith ARG...
11746# ------------------
11747# Perform arithmetic evaluation on the ARGs, and store the result in the
11748# global $as_val. Take advantage of shells that can avoid forks. The arguments
11749# must be portable across $(()) and expr.
11750if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11751 eval 'as_fn_arith ()
11752 {
11753 as_val=$(( $* ))
11754 }'
11755else
11756 as_fn_arith ()
11757 {
11758 as_val=`expr "$@" || test $? -eq 1`
11759 }
11760fi # as_fn_arith
11761
11762
11763if expr a : '\(a\)' >/dev/null 2>&1 &&
11764 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11765 as_expr=expr
11766else
11767 as_expr=false
11768fi
11769
11770if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11771 as_basename=basename
11772else
11773 as_basename=false
11774fi
11775
11776if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11777 as_dirname=dirname
11778else
11779 as_dirname=false
11780fi
11781
11782as_me=`$as_basename -- "$0" ||
11783$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11784 X"$0" : 'X\(//\)$' \| \
11785 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11786$as_echo X/"$0" |
11787 sed '/^.*\/\([^/][^/]*\)\/*$/{
11788 s//\1/
11789 q
11790 }
11791 /^X\/\(\/\/\)$/{
11792 s//\1/
11793 q
11794 }
11795 /^X\/\(\/\).*/{
11796 s//\1/
11797 q
11798 }
11799 s/.*/./; q'`
11800
11801# Avoid depending upon Character Ranges.
11802as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11803as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11804as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11805as_cr_digits='0123456789'
11806as_cr_alnum=$as_cr_Letters$as_cr_digits
11807
11808ECHO_C= ECHO_N= ECHO_T=
11809case `echo -n x` in #(((((
11810-n*)
11811 case `echo 'xy\c'` in
11812 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11813 xy) ECHO_C='\c';;
11814 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11815 ECHO_T=' ';;
11816 esac;;
11817*)
11818 ECHO_N='-n';;
11819esac
11820
11821rm -f conf$$ conf$$.exe conf$$.file
11822if test -d conf$$.dir; then
11823 rm -f conf$$.dir/conf$$.file
11824else
11825 rm -f conf$$.dir
11826 mkdir conf$$.dir 2>/dev/null
11827fi
11828if (echo >conf$$.file) 2>/dev/null; then
11829 if ln -s conf$$.file conf$$ 2>/dev/null; then
11830 as_ln_s='ln -s'
11831 # ... but there are two gotchas:
11832 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11833 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 11834 # In both cases, we have to default to `cp -pR'.
4f8d4a38 11835 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 11836 as_ln_s='cp -pR'
4f8d4a38
DD
11837 elif ln conf$$.file conf$$ 2>/dev/null; then
11838 as_ln_s=ln
11839 else
d0ac1c44 11840 as_ln_s='cp -pR'
4f8d4a38
DD
11841 fi
11842else
d0ac1c44 11843 as_ln_s='cp -pR'
4f8d4a38
DD
11844fi
11845rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11846rmdir conf$$.dir 2>/dev/null
11847
11848
11849# as_fn_mkdir_p
11850# -------------
11851# Create "$as_dir" as a directory, including parents if necessary.
11852as_fn_mkdir_p ()
11853{
11854
11855 case $as_dir in #(
11856 -*) as_dir=./$as_dir;;
11857 esac
11858 test -d "$as_dir" || eval $as_mkdir_p || {
11859 as_dirs=
11860 while :; do
11861 case $as_dir in #(
11862 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11863 *) as_qdir=$as_dir;;
11864 esac
11865 as_dirs="'$as_qdir' $as_dirs"
11866 as_dir=`$as_dirname -- "$as_dir" ||
11867$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11868 X"$as_dir" : 'X\(//\)[^/]' \| \
11869 X"$as_dir" : 'X\(//\)$' \| \
11870 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11871$as_echo X"$as_dir" |
11872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11873 s//\1/
11874 q
11875 }
11876 /^X\(\/\/\)[^/].*/{
11877 s//\1/
11878 q
11879 }
11880 /^X\(\/\/\)$/{
11881 s//\1/
11882 q
11883 }
11884 /^X\(\/\).*/{
11885 s//\1/
11886 q
11887 }
11888 s/.*/./; q'`
11889 test -d "$as_dir" && break
11890 done
11891 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 11892 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4f8d4a38
DD
11893
11894
11895} # as_fn_mkdir_p
11896if mkdir -p . 2>/dev/null; then
11897 as_mkdir_p='mkdir -p "$as_dir"'
11898else
11899 test -d ./-p && rmdir ./-p
11900 as_mkdir_p=false
11901fi
11902
d0ac1c44
SM
11903
11904# as_fn_executable_p FILE
11905# -----------------------
11906# Test if FILE is an executable regular file.
11907as_fn_executable_p ()
11908{
11909 test -f "$1" && test -x "$1"
11910} # as_fn_executable_p
11911as_test_x='test -x'
11912as_executable_p=as_fn_executable_p
4f8d4a38
DD
11913
11914# Sed expression to map a string onto a valid CPP name.
11915as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11916
11917# Sed expression to map a string onto a valid variable name.
11918as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11919
11920
11921exec 6>&1
11922## ----------------------------------- ##
11923## Main body of $CONFIG_STATUS script. ##
11924## ----------------------------------- ##
11925_ASEOF
11926test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11927
11928cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11929# Save the log message, to keep $0 and so on meaningful, and to
11930# report actual input values of CONFIG_FILES etc. instead of their
11931# values after options handling.
11932ac_log="
11933This file was extended by $as_me, which was
d0ac1c44 11934generated by GNU Autoconf 2.69. Invocation command line was
4f8d4a38
DD
11935
11936 CONFIG_FILES = $CONFIG_FILES
11937 CONFIG_HEADERS = $CONFIG_HEADERS
11938 CONFIG_LINKS = $CONFIG_LINKS
11939 CONFIG_COMMANDS = $CONFIG_COMMANDS
11940 $ $0 $@
11941
11942on `(hostname || uname -n) 2>/dev/null | sed 1q`
11943"
11944
11945_ACEOF
11946
11947case $ac_config_files in *"
11948"*) set x $ac_config_files; shift; ac_config_files=$*;;
11949esac
11950
11951case $ac_config_headers in *"
11952"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11953esac
11954
11955
11956cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11957# Files that config.status was made for.
11958config_files="$ac_config_files"
11959config_headers="$ac_config_headers"
4f8d4a38
DD
11960config_commands="$ac_config_commands"
11961
11962_ACEOF
11963
11964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11965ac_cs_usage="\
11966\`$as_me' instantiates files and other configuration actions
11967from templates according to the current configuration. Unless the files
11968and actions are specified as TAGs, all are instantiated by default.
11969
11970Usage: $0 [OPTION]... [TAG]...
11971
11972 -h, --help print this help, then exit
11973 -V, --version print version number and configuration settings, then exit
d0ac1c44 11974 --config print configuration, then exit
4f8d4a38
DD
11975 -q, --quiet, --silent
11976 do not print progress messages
11977 -d, --debug don't remove temporary files
11978 --recheck update $as_me by reconfiguring in the same conditions
11979 --file=FILE[:TEMPLATE]
11980 instantiate the configuration file FILE
11981 --header=FILE[:TEMPLATE]
11982 instantiate the configuration header FILE
11983
11984Configuration files:
11985$config_files
11986
11987Configuration headers:
11988$config_headers
11989
4f8d4a38
DD
11990Configuration commands:
11991$config_commands
11992
11993Report bugs to the package provider."
11994
11995_ACEOF
11996cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 11997ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4f8d4a38
DD
11998ac_cs_version="\\
11999config.status
d0ac1c44
SM
12000configured by $0, generated by GNU Autoconf 2.69,
12001 with options \\"\$ac_cs_config\\"
4f8d4a38 12002
d0ac1c44 12003Copyright (C) 2012 Free Software Foundation, Inc.
4f8d4a38
DD
12004This config.status script is free software; the Free Software Foundation
12005gives unlimited permission to copy, distribute and modify it."
12006
12007ac_pwd='$ac_pwd'
12008srcdir='$srcdir'
12009INSTALL='$INSTALL'
6bb11ab3 12010AWK='$AWK'
4f8d4a38
DD
12011test -n "\$AWK" || AWK=awk
12012_ACEOF
12013
12014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12015# The default lists apply if the user does not specify any file.
12016ac_need_defaults=:
12017while test $# != 0
12018do
12019 case $1 in
d0ac1c44 12020 --*=?*)
4f8d4a38
DD
12021 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12022 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12023 ac_shift=:
12024 ;;
d0ac1c44
SM
12025 --*=)
12026 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12027 ac_optarg=
12028 ac_shift=:
12029 ;;
4f8d4a38
DD
12030 *)
12031 ac_option=$1
12032 ac_optarg=$2
12033 ac_shift=shift
12034 ;;
12035 esac
12036
12037 case $ac_option in
12038 # Handling of the options.
12039 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12040 ac_cs_recheck=: ;;
12041 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12042 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
12043 --config | --confi | --conf | --con | --co | --c )
12044 $as_echo "$ac_cs_config"; exit ;;
4f8d4a38
DD
12045 --debug | --debu | --deb | --de | --d | -d )
12046 debug=: ;;
12047 --file | --fil | --fi | --f )
12048 $ac_shift
12049 case $ac_optarg in
12050 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 12051 '') as_fn_error $? "missing file argument" ;;
4f8d4a38
DD
12052 esac
12053 as_fn_append CONFIG_FILES " '$ac_optarg'"
12054 ac_need_defaults=false;;
12055 --header | --heade | --head | --hea )
12056 $ac_shift
12057 case $ac_optarg in
12058 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12059 esac
12060 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12061 ac_need_defaults=false;;
12062 --he | --h)
12063 # Conflict between --help and --header
d0ac1c44 12064 as_fn_error $? "ambiguous option: \`$1'
4f8d4a38
DD
12065Try \`$0 --help' for more information.";;
12066 --help | --hel | -h )
12067 $as_echo "$ac_cs_usage"; exit ;;
12068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12069 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12070 ac_cs_silent=: ;;
12071
12072 # This is an error.
d0ac1c44 12073 -*) as_fn_error $? "unrecognized option: \`$1'
4f8d4a38
DD
12074Try \`$0 --help' for more information." ;;
12075
12076 *) as_fn_append ac_config_targets " $1"
12077 ac_need_defaults=false ;;
12078
12079 esac
12080 shift
12081done
12082
12083ac_configure_extra_args=
12084
12085if $ac_cs_silent; then
12086 exec 6>/dev/null
12087 ac_configure_extra_args="$ac_configure_extra_args --silent"
12088fi
12089
12090_ACEOF
12091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12092if \$ac_cs_recheck; then
d0ac1c44 12093 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4f8d4a38
DD
12094 shift
12095 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12096 CONFIG_SHELL='$SHELL'
12097 export CONFIG_SHELL
12098 exec "\$@"
12099fi
12100
12101_ACEOF
12102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12103exec 5>>config.log
12104{
12105 echo
12106 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12107## Running $as_me. ##
12108_ASBOX
12109 $as_echo "$ac_log"
12110} >&5
12111
12112_ACEOF
12113cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
db2e4d67
MF
12114#
12115# INIT-COMMANDS
12116#
12117ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
12118
6bb11ab3
L
12119
12120# The HP-UX ksh and POSIX shell print the target directory to stdout
12121# if CDPATH is set.
12122(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12123
12124sed_quote_subst='$sed_quote_subst'
12125double_quote_subst='$double_quote_subst'
12126delay_variable_subst='$delay_variable_subst'
12127macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12128macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12129enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12130enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12131pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12132enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12133SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12134ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12135host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12136host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12137host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12138build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12139build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12140build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12141SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12142Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12143GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12144EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12145FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12146LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12147NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12148LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12149max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12150ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12151exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12152lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12153lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12154lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12155reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12156reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12157OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12158deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12159file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12160AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12161AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12162STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12163RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12164old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12165old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12166old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12167lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12168CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12169CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12170compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12171GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12172lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12173lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12174lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12175lt_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"`'
12176objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12177MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12178lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12179lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12180lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12181lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12182lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12183need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12184DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12185NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12186LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12187OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12188OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12189libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12190shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12191extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12192archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12193enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12194export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12195whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12196compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12197old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12198old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12199archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12200archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12201module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12202module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12203with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12204allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12205no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12206hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12207hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12208hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12209hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12210hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12211hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12212hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12213hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12214inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12215link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12216fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12217always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12218export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12219exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12220include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12221prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12222file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12223variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12224need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12225need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12226version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12227runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12228shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12229shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12230libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12231library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12232soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12233install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12234postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12235postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12236finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12237finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12238hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12239sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12240sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12241hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12242enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12243enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12244enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12245old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12246striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12247
12248LTCC='$LTCC'
12249LTCFLAGS='$LTCFLAGS'
12250compiler='$compiler_DEFAULT'
12251
12252# A function that is used when there is no print builtin or printf.
12253func_fallback_echo ()
12254{
12255 eval 'cat <<_LTECHO_EOF
12256\$1
12257_LTECHO_EOF'
12258}
12259
12260# Quote evaled strings.
12261for var in SHELL \
12262ECHO \
12263SED \
12264GREP \
12265EGREP \
12266FGREP \
12267LD \
12268NM \
12269LN_S \
12270lt_SP2NL \
12271lt_NL2SP \
12272reload_flag \
12273OBJDUMP \
12274deplibs_check_method \
12275file_magic_cmd \
12276AR \
12277AR_FLAGS \
12278STRIP \
12279RANLIB \
12280CC \
12281CFLAGS \
12282compiler \
12283lt_cv_sys_global_symbol_pipe \
12284lt_cv_sys_global_symbol_to_cdecl \
12285lt_cv_sys_global_symbol_to_c_name_address \
12286lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12287lt_prog_compiler_no_builtin_flag \
12288lt_prog_compiler_wl \
12289lt_prog_compiler_pic \
12290lt_prog_compiler_static \
12291lt_cv_prog_compiler_c_o \
12292need_locks \
12293DSYMUTIL \
12294NMEDIT \
12295LIPO \
12296OTOOL \
12297OTOOL64 \
12298shrext_cmds \
12299export_dynamic_flag_spec \
12300whole_archive_flag_spec \
12301compiler_needs_object \
12302with_gnu_ld \
12303allow_undefined_flag \
12304no_undefined_flag \
12305hardcode_libdir_flag_spec \
12306hardcode_libdir_flag_spec_ld \
12307hardcode_libdir_separator \
12308fix_srcfile_path \
12309exclude_expsyms \
12310include_expsyms \
12311file_list_spec \
12312variables_saved_for_relink \
12313libname_spec \
12314library_names_spec \
12315soname_spec \
12316install_override_mode \
12317finish_eval \
12318old_striplib \
12319striplib; do
12320 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12321 *[\\\\\\\`\\"\\\$]*)
12322 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12323 ;;
12324 *)
12325 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12326 ;;
12327 esac
12328done
12329
12330# Double-quote double-evaled strings.
12331for var in reload_cmds \
12332old_postinstall_cmds \
12333old_postuninstall_cmds \
12334old_archive_cmds \
12335extract_expsyms_cmds \
12336old_archive_from_new_cmds \
12337old_archive_from_expsyms_cmds \
12338archive_cmds \
12339archive_expsym_cmds \
12340module_cmds \
12341module_expsym_cmds \
12342export_symbols_cmds \
12343prelink_cmds \
12344postinstall_cmds \
12345postuninstall_cmds \
12346finish_cmds \
12347sys_lib_search_path_spec \
12348sys_lib_dlsearch_path_spec; do
12349 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12350 *[\\\\\\\`\\"\\\$]*)
12351 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12352 ;;
12353 *)
12354 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12355 ;;
12356 esac
12357done
12358
12359ac_aux_dir='$ac_aux_dir'
12360xsi_shell='$xsi_shell'
12361lt_shell_append='$lt_shell_append'
12362
12363# See if we are running on zsh, and set the options which allow our
12364# commands through without removal of \ escapes INIT.
12365if test -n "\${ZSH_VERSION+set}" ; then
12366 setopt NO_GLOB_SUBST
12367fi
12368
12369
12370 PACKAGE='$PACKAGE'
12371 VERSION='$VERSION'
12372 TIMESTAMP='$TIMESTAMP'
12373 RM='$RM'
12374 ofile='$ofile'
12375
12376
12377
12378
4f8d4a38
DD
12379_ACEOF
12380
12381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12382
12383# Handling of arguments.
12384for ac_config_target in $ac_config_targets
12385do
12386 case $ac_config_target in
12387 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
db2e4d67 12388 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
6bb11ab3 12389 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
4f8d4a38
DD
12390 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
12391 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
12392 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
12393 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
12394 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
12395
d0ac1c44 12396 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4f8d4a38
DD
12397 esac
12398done
12399
12400
12401# If the user did not use the arguments to specify the items to instantiate,
12402# then the envvar interface is used. Set only those that are not.
12403# We use the long form for the default assignment because of an extremely
12404# bizarre bug on SunOS 4.1.3.
12405if $ac_need_defaults; then
12406 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12407 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4f8d4a38
DD
12408 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12409fi
12410
12411# Have a temporary directory for convenience. Make it in the build tree
12412# simply because there is no reason against having it here, and in addition,
12413# creating and moving files from /tmp can sometimes cause problems.
12414# Hook for its removal unless debugging.
12415# Note that there is a small window in which the directory will not be cleaned:
12416# after its creation but before its name has been assigned to `$tmp'.
12417$debug ||
12418{
d0ac1c44 12419 tmp= ac_tmp=
4f8d4a38 12420 trap 'exit_status=$?
d0ac1c44
SM
12421 : "${ac_tmp:=$tmp}"
12422 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4f8d4a38
DD
12423' 0
12424 trap 'as_fn_exit 1' 1 2 13 15
12425}
12426# Create a (secure) tmp directory for tmp files.
12427
12428{
12429 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 12430 test -d "$tmp"
4f8d4a38
DD
12431} ||
12432{
12433 tmp=./conf$$-$RANDOM
12434 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
12435} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12436ac_tmp=$tmp
4f8d4a38
DD
12437
12438# Set up the scripts for CONFIG_FILES section.
12439# No need to generate them if there are no CONFIG_FILES.
12440# This happens for instance with `./config.status config.h'.
12441if test -n "$CONFIG_FILES"; then
12442
12443
12444ac_cr=`echo X | tr X '\015'`
12445# On cygwin, bash can eat \r inside `` if the user requested igncr.
12446# But we know of no other shell where ac_cr would be empty at this
12447# point, so we can use a bashism as a fallback.
12448if test "x$ac_cr" = x; then
12449 eval ac_cr=\$\'\\r\'
12450fi
12451ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12452if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 12453 ac_cs_awk_cr='\\r'
4f8d4a38
DD
12454else
12455 ac_cs_awk_cr=$ac_cr
12456fi
12457
d0ac1c44 12458echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4f8d4a38
DD
12459_ACEOF
12460
12461
12462{
12463 echo "cat >conf$$subs.awk <<_ACEOF" &&
12464 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12465 echo "_ACEOF"
12466} >conf$$subs.sh ||
d0ac1c44
SM
12467 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12468ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4f8d4a38
DD
12469ac_delim='%!_!# '
12470for ac_last_try in false false false false false :; do
12471 . ./conf$$subs.sh ||
d0ac1c44 12472 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4f8d4a38
DD
12473
12474 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12475 if test $ac_delim_n = $ac_delim_num; then
12476 break
12477 elif $ac_last_try; then
d0ac1c44 12478 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4f8d4a38
DD
12479 else
12480 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12481 fi
12482done
12483rm -f conf$$subs.sh
12484
12485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 12486cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4f8d4a38
DD
12487_ACEOF
12488sed -n '
12489h
12490s/^/S["/; s/!.*/"]=/
12491p
12492g
12493s/^[^!]*!//
12494:repl
12495t repl
12496s/'"$ac_delim"'$//
12497t delim
12498:nl
12499h
d0ac1c44 12500s/\(.\{148\}\)..*/\1/
4f8d4a38
DD
12501t more1
12502s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12503p
12504n
12505b repl
12506:more1
12507s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12508p
12509g
12510s/.\{148\}//
12511t nl
12512:delim
12513h
d0ac1c44 12514s/\(.\{148\}\)..*/\1/
4f8d4a38
DD
12515t more2
12516s/["\\]/\\&/g; s/^/"/; s/$/"/
12517p
12518b
12519:more2
12520s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12521p
12522g
12523s/.\{148\}//
12524t delim
12525' <conf$$subs.awk | sed '
12526/^[^""]/{
12527 N
12528 s/\n//
12529}
12530' >>$CONFIG_STATUS || ac_write_fail=1
12531rm -f conf$$subs.awk
12532cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12533_ACAWK
d0ac1c44 12534cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4f8d4a38
DD
12535 for (key in S) S_is_set[key] = 1
12536 FS = "\a"
12537
12538}
12539{
12540 line = $ 0
12541 nfields = split(line, field, "@")
12542 substed = 0
12543 len = length(field[1])
12544 for (i = 2; i < nfields; i++) {
12545 key = field[i]
12546 keylen = length(key)
12547 if (S_is_set[key]) {
12548 value = S[key]
12549 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12550 len += length(value) + length(field[++i])
12551 substed = 1
12552 } else
12553 len += 1 + keylen
12554 }
12555
12556 print line
12557}
12558
12559_ACAWK
12560_ACEOF
12561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12562if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12563 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12564else
12565 cat
d0ac1c44
SM
12566fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12567 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4f8d4a38
DD
12568_ACEOF
12569
d0ac1c44
SM
12570# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12571# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4f8d4a38
DD
12572# trailing colons and then remove the whole line if VPATH becomes empty
12573# (actually we leave an empty line to preserve line numbers).
12574if test "x$srcdir" = x.; then
d0ac1c44
SM
12575 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12576h
12577s///
12578s/^/:/
12579s/[ ]*$/:/
12580s/:\$(srcdir):/:/g
12581s/:\${srcdir}:/:/g
12582s/:@srcdir@:/:/g
12583s/^:*//
4f8d4a38 12584s/:*$//
d0ac1c44
SM
12585x
12586s/\(=[ ]*\).*/\1/
12587G
12588s/\n//
4f8d4a38
DD
12589s/^[^=]*=[ ]*$//
12590}'
12591fi
12592
12593cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12594fi # test -n "$CONFIG_FILES"
12595
12596# Set up the scripts for CONFIG_HEADERS section.
12597# No need to generate them if there are no CONFIG_HEADERS.
12598# This happens for instance with `./config.status Makefile'.
12599if test -n "$CONFIG_HEADERS"; then
d0ac1c44 12600cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4f8d4a38
DD
12601BEGIN {
12602_ACEOF
12603
12604# Transform confdefs.h into an awk script `defines.awk', embedded as
12605# here-document in config.status, that substitutes the proper values into
12606# config.h.in to produce config.h.
12607
12608# Create a delimiter string that does not exist in confdefs.h, to ease
12609# handling of long lines.
12610ac_delim='%!_!# '
12611for ac_last_try in false false :; do
d0ac1c44
SM
12612 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12613 if test -z "$ac_tt"; then
4f8d4a38
DD
12614 break
12615 elif $ac_last_try; then
d0ac1c44 12616 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4f8d4a38
DD
12617 else
12618 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12619 fi
12620done
12621
12622# For the awk script, D is an array of macro values keyed by name,
12623# likewise P contains macro parameters if any. Preserve backslash
12624# newline sequences.
12625
12626ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12627sed -n '
12628s/.\{148\}/&'"$ac_delim"'/g
12629t rset
12630:rset
12631s/^[ ]*#[ ]*define[ ][ ]*/ /
12632t def
12633d
12634:def
12635s/\\$//
12636t bsnl
12637s/["\\]/\\&/g
12638s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12639D["\1"]=" \3"/p
12640s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12641d
12642:bsnl
12643s/["\\]/\\&/g
12644s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12645D["\1"]=" \3\\\\\\n"\\/p
12646t cont
12647s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12648t cont
12649d
12650:cont
12651n
12652s/.\{148\}/&'"$ac_delim"'/g
12653t clear
12654:clear
12655s/\\$//
12656t bsnlc
12657s/["\\]/\\&/g; s/^/"/; s/$/"/p
12658d
12659:bsnlc
12660s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12661b cont
12662' <confdefs.h | sed '
12663s/'"$ac_delim"'/"\\\
12664"/g' >>$CONFIG_STATUS || ac_write_fail=1
12665
12666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12667 for (key in D) D_is_set[key] = 1
12668 FS = "\a"
12669}
12670/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12671 line = \$ 0
12672 split(line, arg, " ")
12673 if (arg[1] == "#") {
12674 defundef = arg[2]
12675 mac1 = arg[3]
12676 } else {
12677 defundef = substr(arg[1], 2)
12678 mac1 = arg[2]
12679 }
12680 split(mac1, mac2, "(") #)
12681 macro = mac2[1]
12682 prefix = substr(line, 1, index(line, defundef) - 1)
12683 if (D_is_set[macro]) {
12684 # Preserve the white space surrounding the "#".
12685 print prefix "define", macro P[macro] D[macro]
12686 next
12687 } else {
12688 # Replace #undef with comments. This is necessary, for example,
12689 # in the case of _POSIX_SOURCE, which is predefined and required
12690 # on some systems where configure will not decide to define it.
12691 if (defundef == "undef") {
12692 print "/*", prefix defundef, macro, "*/"
12693 next
12694 }
12695 }
12696}
12697{ print }
12698_ACAWK
12699_ACEOF
12700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 12701 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4f8d4a38
DD
12702fi # test -n "$CONFIG_HEADERS"
12703
12704
99d8e879 12705eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
4f8d4a38
DD
12706shift
12707for ac_tag
12708do
12709 case $ac_tag in
12710 :[FHLC]) ac_mode=$ac_tag; continue;;
12711 esac
12712 case $ac_mode$ac_tag in
12713 :[FHL]*:*);;
d0ac1c44 12714 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4f8d4a38
DD
12715 :[FH]-) ac_tag=-:-;;
12716 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12717 esac
12718 ac_save_IFS=$IFS
12719 IFS=:
12720 set x $ac_tag
12721 IFS=$ac_save_IFS
12722 shift
12723 ac_file=$1
12724 shift
12725
12726 case $ac_mode in
12727 :L) ac_source=$1;;
12728 :[FH])
12729 ac_file_inputs=
12730 for ac_f
12731 do
12732 case $ac_f in
d0ac1c44 12733 -) ac_f="$ac_tmp/stdin";;
4f8d4a38
DD
12734 *) # Look for the file first in the build tree, then in the source tree
12735 # (if the path is not absolute). The absolute path cannot be DOS-style,
12736 # because $ac_f cannot contain `:'.
12737 test -f "$ac_f" ||
12738 case $ac_f in
12739 [\\/$]*) false;;
12740 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12741 esac ||
d0ac1c44 12742 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4f8d4a38
DD
12743 esac
12744 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12745 as_fn_append ac_file_inputs " '$ac_f'"
12746 done
12747
12748 # Let's still pretend it is `configure' which instantiates (i.e., don't
12749 # use $as_me), people would be surprised to read:
12750 # /* config.h. Generated by config.status. */
12751 configure_input='Generated from '`
12752 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12753 `' by configure.'
12754 if test x"$ac_file" != x-; then
12755 configure_input="$ac_file. $configure_input"
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12757$as_echo "$as_me: creating $ac_file" >&6;}
12758 fi
12759 # Neutralize special characters interpreted by sed in replacement strings.
12760 case $configure_input in #(
12761 *\&* | *\|* | *\\* )
12762 ac_sed_conf_input=`$as_echo "$configure_input" |
12763 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12764 *) ac_sed_conf_input=$configure_input;;
12765 esac
12766
12767 case $ac_tag in
d0ac1c44
SM
12768 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12769 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4f8d4a38
DD
12770 esac
12771 ;;
12772 esac
12773
12774 ac_dir=`$as_dirname -- "$ac_file" ||
12775$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12776 X"$ac_file" : 'X\(//\)[^/]' \| \
12777 X"$ac_file" : 'X\(//\)$' \| \
12778 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12779$as_echo X"$ac_file" |
12780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12781 s//\1/
12782 q
12783 }
12784 /^X\(\/\/\)[^/].*/{
12785 s//\1/
12786 q
12787 }
12788 /^X\(\/\/\)$/{
12789 s//\1/
12790 q
12791 }
12792 /^X\(\/\).*/{
12793 s//\1/
12794 q
12795 }
12796 s/.*/./; q'`
12797 as_dir="$ac_dir"; as_fn_mkdir_p
12798 ac_builddir=.
12799
12800case "$ac_dir" in
12801.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12802*)
12803 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12804 # A ".." for each directory in $ac_dir_suffix.
12805 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12806 case $ac_top_builddir_sub in
12807 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12808 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12809 esac ;;
12810esac
12811ac_abs_top_builddir=$ac_pwd
12812ac_abs_builddir=$ac_pwd$ac_dir_suffix
12813# for backward compatibility:
12814ac_top_builddir=$ac_top_build_prefix
12815
12816case $srcdir in
12817 .) # We are building in place.
12818 ac_srcdir=.
12819 ac_top_srcdir=$ac_top_builddir_sub
12820 ac_abs_top_srcdir=$ac_pwd ;;
12821 [\\/]* | ?:[\\/]* ) # Absolute name.
12822 ac_srcdir=$srcdir$ac_dir_suffix;
12823 ac_top_srcdir=$srcdir
12824 ac_abs_top_srcdir=$srcdir ;;
12825 *) # Relative name.
12826 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12827 ac_top_srcdir=$ac_top_build_prefix$srcdir
12828 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12829esac
12830ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12831
12832
12833 case $ac_mode in
12834 :F)
12835 #
12836 # CONFIG_FILE
12837 #
12838
12839 case $INSTALL in
12840 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12841 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12842 esac
12843_ACEOF
12844
12845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12846# If the template does not know about datarootdir, expand it.
12847# FIXME: This hack should be removed a few years after 2.60.
12848ac_datarootdir_hack=; ac_datarootdir_seen=
12849ac_sed_dataroot='
12850/datarootdir/ {
12851 p
12852 q
12853}
12854/@datadir@/p
12855/@docdir@/p
12856/@infodir@/p
12857/@localedir@/p
12858/@mandir@/p'
12859case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12860*datarootdir*) ac_datarootdir_seen=yes;;
12861*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12863$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12864_ACEOF
12865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12866 ac_datarootdir_hack='
12867 s&@datadir@&$datadir&g
12868 s&@docdir@&$docdir&g
12869 s&@infodir@&$infodir&g
12870 s&@localedir@&$localedir&g
12871 s&@mandir@&$mandir&g
12872 s&\\\${datarootdir}&$datarootdir&g' ;;
12873esac
12874_ACEOF
12875
12876# Neutralize VPATH when `$srcdir' = `.'.
12877# Shell code in configure.ac might set extrasub.
12878# FIXME: do we really want to maintain this feature?
12879cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12880ac_sed_extra="$ac_vpsub
12881$extrasub
12882_ACEOF
12883cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12884:t
12885/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12886s|@configure_input@|$ac_sed_conf_input|;t t
12887s&@top_builddir@&$ac_top_builddir_sub&;t t
12888s&@top_build_prefix@&$ac_top_build_prefix&;t t
12889s&@srcdir@&$ac_srcdir&;t t
12890s&@abs_srcdir@&$ac_abs_srcdir&;t t
12891s&@top_srcdir@&$ac_top_srcdir&;t t
12892s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12893s&@builddir@&$ac_builddir&;t t
12894s&@abs_builddir@&$ac_abs_builddir&;t t
12895s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12896s&@INSTALL@&$ac_INSTALL&;t t
12897$ac_datarootdir_hack
12898"
d0ac1c44
SM
12899eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12900 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4f8d4a38
DD
12901
12902test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
12903 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12904 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12905 "$ac_tmp/out"`; test -z "$ac_out"; } &&
4f8d4a38 12906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 12907which seems to be undefined. Please make sure it is defined" >&5
4f8d4a38 12908$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 12909which seems to be undefined. Please make sure it is defined" >&2;}
4f8d4a38 12910
d0ac1c44 12911 rm -f "$ac_tmp/stdin"
4f8d4a38 12912 case $ac_file in
d0ac1c44
SM
12913 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12914 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4f8d4a38 12915 esac \
d0ac1c44 12916 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4f8d4a38
DD
12917 ;;
12918 :H)
12919 #
12920 # CONFIG_HEADER
12921 #
12922 if test x"$ac_file" != x-; then
12923 {
12924 $as_echo "/* $configure_input */" \
d0ac1c44
SM
12925 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12926 } >"$ac_tmp/config.h" \
12927 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12928 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
4f8d4a38
DD
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12930$as_echo "$as_me: $ac_file is unchanged" >&6;}
12931 else
12932 rm -f "$ac_file"
d0ac1c44
SM
12933 mv "$ac_tmp/config.h" "$ac_file" \
12934 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4f8d4a38
DD
12935 fi
12936 else
12937 $as_echo "/* $configure_input */" \
d0ac1c44
SM
12938 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12939 || as_fn_error $? "could not create -" "$LINENO" 5
4f8d4a38
DD
12940 fi
12941 ;;
4f8d4a38 12942
4f8d4a38
DD
12943 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12944$as_echo "$as_me: executing $ac_file commands" >&6;}
12945 ;;
12946 esac
12947
12948
12949 case $ac_file$ac_mode in
db2e4d67 12950 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
6bb11ab3
L
12951 "libtool":C)
12952
12953 # See if we are running on zsh, and set the options which allow our
12954 # commands through without removal of \ escapes.
12955 if test -n "${ZSH_VERSION+set}" ; then
12956 setopt NO_GLOB_SUBST
12957 fi
12958
12959 cfgfile="${ofile}T"
12960 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12961 $RM "$cfgfile"
12962
12963 cat <<_LT_EOF >> "$cfgfile"
12964#! $SHELL
12965
12966# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12967# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12968# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12969# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12970#
12971# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12972# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12973# Written by Gordon Matzigkeit, 1996
12974#
12975# This file is part of GNU Libtool.
12976#
12977# GNU Libtool is free software; you can redistribute it and/or
12978# modify it under the terms of the GNU General Public License as
12979# published by the Free Software Foundation; either version 2 of
12980# the License, or (at your option) any later version.
12981#
12982# As a special exception to the GNU General Public License,
12983# if you distribute this file as part of a program or library that
12984# is built using GNU Libtool, you may include this file under the
12985# same distribution terms that you use for the rest of that program.
12986#
12987# GNU Libtool is distributed in the hope that it will be useful,
12988# but WITHOUT ANY WARRANTY; without even the implied warranty of
12989# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12990# GNU General Public License for more details.
12991#
12992# You should have received a copy of the GNU General Public License
12993# along with GNU Libtool; see the file COPYING. If not, a copy
12994# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12995# obtained by writing to the Free Software Foundation, Inc.,
12996# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12997
12998
12999# The names of the tagged configurations supported by this script.
13000available_tags=""
13001
13002# ### BEGIN LIBTOOL CONFIG
13003
13004# Which release of libtool.m4 was used?
13005macro_version=$macro_version
13006macro_revision=$macro_revision
13007
13008# Whether or not to build shared libraries.
13009build_libtool_libs=$enable_shared
13010
13011# Whether or not to build static libraries.
13012build_old_libs=$enable_static
13013
13014# What type of objects to build.
13015pic_mode=$pic_mode
13016
13017# Whether or not to optimize for fast installation.
13018fast_install=$enable_fast_install
13019
13020# Shell to use when invoking shell scripts.
13021SHELL=$lt_SHELL
13022
13023# An echo program that protects backslashes.
13024ECHO=$lt_ECHO
13025
13026# The host system.
13027host_alias=$host_alias
13028host=$host
13029host_os=$host_os
13030
13031# The build system.
13032build_alias=$build_alias
13033build=$build
13034build_os=$build_os
13035
13036# A sed program that does not truncate output.
13037SED=$lt_SED
13038
13039# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13040Xsed="\$SED -e 1s/^X//"
13041
13042# A grep program that handles long lines.
13043GREP=$lt_GREP
13044
13045# An ERE matcher.
13046EGREP=$lt_EGREP
13047
13048# A literal string matcher.
13049FGREP=$lt_FGREP
13050
13051# A BSD- or MS-compatible name lister.
13052NM=$lt_NM
13053
13054# Whether we need soft or hard links.
13055LN_S=$lt_LN_S
13056
13057# What is the maximum length of a command?
13058max_cmd_len=$max_cmd_len
13059
13060# Object file suffix (normally "o").
13061objext=$ac_objext
13062
13063# Executable file suffix (normally "").
13064exeext=$exeext
13065
13066# whether the shell understands "unset".
13067lt_unset=$lt_unset
13068
13069# turn spaces into newlines.
13070SP2NL=$lt_lt_SP2NL
13071
13072# turn newlines into spaces.
13073NL2SP=$lt_lt_NL2SP
13074
13075# An object symbol dumper.
13076OBJDUMP=$lt_OBJDUMP
13077
13078# Method to check whether dependent libraries are shared objects.
13079deplibs_check_method=$lt_deplibs_check_method
13080
13081# Command to use when deplibs_check_method == "file_magic".
13082file_magic_cmd=$lt_file_magic_cmd
13083
13084# The archiver.
13085AR=$lt_AR
13086AR_FLAGS=$lt_AR_FLAGS
13087
13088# A symbol stripping program.
13089STRIP=$lt_STRIP
13090
13091# Commands used to install an old-style archive.
13092RANLIB=$lt_RANLIB
13093old_postinstall_cmds=$lt_old_postinstall_cmds
13094old_postuninstall_cmds=$lt_old_postuninstall_cmds
13095
13096# Whether to use a lock for old archive extraction.
13097lock_old_archive_extraction=$lock_old_archive_extraction
13098
13099# A C compiler.
13100LTCC=$lt_CC
13101
13102# LTCC compiler flags.
13103LTCFLAGS=$lt_CFLAGS
13104
13105# Take the output of nm and produce a listing of raw symbols and C names.
13106global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13107
13108# Transform the output of nm in a proper C declaration.
13109global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13110
13111# Transform the output of nm in a C name address pair.
13112global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13113
13114# Transform the output of nm in a C name address pair when lib prefix is needed.
13115global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13116
13117# The name of the directory that contains temporary libtool files.
13118objdir=$objdir
13119
13120# Used to examine libraries when file_magic_cmd begins with "file".
13121MAGIC_CMD=$MAGIC_CMD
13122
13123# Must we lock files when doing compilation?
13124need_locks=$lt_need_locks
13125
13126# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13127DSYMUTIL=$lt_DSYMUTIL
13128
13129# Tool to change global to local symbols on Mac OS X.
13130NMEDIT=$lt_NMEDIT
13131
13132# Tool to manipulate fat objects and archives on Mac OS X.
13133LIPO=$lt_LIPO
13134
13135# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13136OTOOL=$lt_OTOOL
13137
13138# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13139OTOOL64=$lt_OTOOL64
13140
13141# Old archive suffix (normally "a").
13142libext=$libext
13143
13144# Shared library suffix (normally ".so").
13145shrext_cmds=$lt_shrext_cmds
13146
13147# The commands to extract the exported symbol list from a shared archive.
13148extract_expsyms_cmds=$lt_extract_expsyms_cmds
13149
13150# Variables whose values should be saved in libtool wrapper scripts and
13151# restored at link time.
13152variables_saved_for_relink=$lt_variables_saved_for_relink
13153
13154# Do we need the "lib" prefix for modules?
13155need_lib_prefix=$need_lib_prefix
13156
13157# Do we need a version for libraries?
13158need_version=$need_version
13159
13160# Library versioning type.
13161version_type=$version_type
13162
13163# Shared library runtime path variable.
13164runpath_var=$runpath_var
13165
13166# Shared library path variable.
13167shlibpath_var=$shlibpath_var
13168
13169# Is shlibpath searched before the hard-coded library search path?
13170shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13171
13172# Format of library name prefix.
13173libname_spec=$lt_libname_spec
13174
13175# List of archive names. First name is the real one, the rest are links.
13176# The last name is the one that the linker finds with -lNAME
13177library_names_spec=$lt_library_names_spec
13178
13179# The coded name of the library, if different from the real name.
13180soname_spec=$lt_soname_spec
13181
13182# Permission mode override for installation of shared libraries.
13183install_override_mode=$lt_install_override_mode
13184
13185# Command to use after installation of a shared archive.
13186postinstall_cmds=$lt_postinstall_cmds
13187
13188# Command to use after uninstallation of a shared archive.
13189postuninstall_cmds=$lt_postuninstall_cmds
13190
13191# Commands used to finish a libtool library installation in a directory.
13192finish_cmds=$lt_finish_cmds
13193
13194# As "finish_cmds", except a single script fragment to be evaled but
13195# not shown.
13196finish_eval=$lt_finish_eval
13197
13198# Whether we should hardcode library paths into libraries.
13199hardcode_into_libs=$hardcode_into_libs
13200
13201# Compile-time system search path for libraries.
13202sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13203
13204# Run-time system search path for libraries.
13205sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13206
13207# Whether dlopen is supported.
13208dlopen_support=$enable_dlopen
13209
13210# Whether dlopen of programs is supported.
13211dlopen_self=$enable_dlopen_self
13212
13213# Whether dlopen of statically linked programs is supported.
13214dlopen_self_static=$enable_dlopen_self_static
13215
13216# Commands to strip libraries.
13217old_striplib=$lt_old_striplib
13218striplib=$lt_striplib
13219
13220
13221# The linker used to build libraries.
13222LD=$lt_LD
13223
13224# How to create reloadable object files.
13225reload_flag=$lt_reload_flag
13226reload_cmds=$lt_reload_cmds
13227
13228# Commands used to build an old-style archive.
13229old_archive_cmds=$lt_old_archive_cmds
13230
13231# A language specific compiler.
13232CC=$lt_compiler
13233
13234# Is the compiler the GNU compiler?
13235with_gcc=$GCC
13236
13237# Compiler flag to turn off builtin functions.
13238no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13239
13240# How to pass a linker flag through the compiler.
13241wl=$lt_lt_prog_compiler_wl
13242
13243# Additional compiler flags for building library objects.
13244pic_flag=$lt_lt_prog_compiler_pic
13245
13246# Compiler flag to prevent dynamic linking.
13247link_static_flag=$lt_lt_prog_compiler_static
13248
13249# Does compiler simultaneously support -c and -o options?
13250compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13251
13252# Whether or not to add -lc for building shared libraries.
13253build_libtool_need_lc=$archive_cmds_need_lc
13254
13255# Whether or not to disallow shared libs when runtime libs are static.
13256allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13257
13258# Compiler flag to allow reflexive dlopens.
13259export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13260
13261# Compiler flag to generate shared objects directly from archives.
13262whole_archive_flag_spec=$lt_whole_archive_flag_spec
13263
13264# Whether the compiler copes with passing no objects directly.
13265compiler_needs_object=$lt_compiler_needs_object
13266
13267# Create an old-style archive from a shared archive.
13268old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13269
13270# Create a temporary old-style archive to link instead of a shared archive.
13271old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13272
13273# Commands used to build a shared archive.
13274archive_cmds=$lt_archive_cmds
13275archive_expsym_cmds=$lt_archive_expsym_cmds
13276
13277# Commands used to build a loadable module if different from building
13278# a shared archive.
13279module_cmds=$lt_module_cmds
13280module_expsym_cmds=$lt_module_expsym_cmds
13281
13282# Whether we are building with GNU ld or not.
13283with_gnu_ld=$lt_with_gnu_ld
13284
13285# Flag that allows shared libraries with undefined symbols to be built.
13286allow_undefined_flag=$lt_allow_undefined_flag
13287
13288# Flag that enforces no undefined symbols.
13289no_undefined_flag=$lt_no_undefined_flag
13290
13291# Flag to hardcode \$libdir into a binary during linking.
13292# This must work even if \$libdir does not exist
13293hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13294
13295# If ld is used when linking, flag to hardcode \$libdir into a binary
13296# during linking. This must work even if \$libdir does not exist.
13297hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13298
13299# Whether we need a single "-rpath" flag with a separated argument.
13300hardcode_libdir_separator=$lt_hardcode_libdir_separator
13301
13302# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13303# DIR into the resulting binary.
13304hardcode_direct=$hardcode_direct
13305
13306# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13307# DIR into the resulting binary and the resulting library dependency is
13308# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13309# library is relocated.
13310hardcode_direct_absolute=$hardcode_direct_absolute
13311
13312# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13313# into the resulting binary.
13314hardcode_minus_L=$hardcode_minus_L
13315
13316# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13317# into the resulting binary.
13318hardcode_shlibpath_var=$hardcode_shlibpath_var
13319
13320# Set to "yes" if building a shared library automatically hardcodes DIR
13321# into the library and all subsequent libraries and executables linked
13322# against it.
13323hardcode_automatic=$hardcode_automatic
13324
13325# Set to yes if linker adds runtime paths of dependent libraries
13326# to runtime path list.
13327inherit_rpath=$inherit_rpath
13328
13329# Whether libtool must link a program against all its dependency libraries.
13330link_all_deplibs=$link_all_deplibs
13331
13332# Fix the shell variable \$srcfile for the compiler.
13333fix_srcfile_path=$lt_fix_srcfile_path
13334
13335# Set to "yes" if exported symbols are required.
13336always_export_symbols=$always_export_symbols
13337
13338# The commands to list exported symbols.
13339export_symbols_cmds=$lt_export_symbols_cmds
13340
13341# Symbols that should not be listed in the preloaded symbols.
13342exclude_expsyms=$lt_exclude_expsyms
13343
13344# Symbols that must always be exported.
13345include_expsyms=$lt_include_expsyms
13346
13347# Commands necessary for linking programs (against libraries) with templates.
13348prelink_cmds=$lt_prelink_cmds
13349
13350# Specify filename containing input files.
13351file_list_spec=$lt_file_list_spec
13352
13353# How to hardcode a shared library path into an executable.
13354hardcode_action=$hardcode_action
13355
13356# ### END LIBTOOL CONFIG
13357
13358_LT_EOF
13359
13360 case $host_os in
13361 aix3*)
13362 cat <<\_LT_EOF >> "$cfgfile"
13363# AIX sometimes has problems with the GCC collect2 program. For some
13364# reason, if we set the COLLECT_NAMES environment variable, the problems
13365# vanish in a puff of smoke.
13366if test "X${COLLECT_NAMES+set}" != Xset; then
13367 COLLECT_NAMES=
13368 export COLLECT_NAMES
13369fi
13370_LT_EOF
13371 ;;
13372 esac
13373
13374
13375ltmain="$ac_aux_dir/ltmain.sh"
13376
13377
13378 # We use sed instead of cat because bash on DJGPP gets confused if
13379 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13380 # text mode, it properly converts lines to CR/LF. This bash problem
13381 # is reportedly fixed, but why not run on old versions too?
13382 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13383 || (rm -f "$cfgfile"; exit 1)
13384
13385 case $xsi_shell in
13386 yes)
13387 cat << \_LT_EOF >> "$cfgfile"
13388
13389# func_dirname file append nondir_replacement
13390# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13391# otherwise set result to NONDIR_REPLACEMENT.
13392func_dirname ()
13393{
13394 case ${1} in
13395 */*) func_dirname_result="${1%/*}${2}" ;;
13396 * ) func_dirname_result="${3}" ;;
13397 esac
13398}
13399
13400# func_basename file
13401func_basename ()
13402{
13403 func_basename_result="${1##*/}"
13404}
13405
13406# func_dirname_and_basename file append nondir_replacement
13407# perform func_basename and func_dirname in a single function
13408# call:
13409# dirname: Compute the dirname of FILE. If nonempty,
13410# add APPEND to the result, otherwise set result
13411# to NONDIR_REPLACEMENT.
13412# value returned in "$func_dirname_result"
13413# basename: Compute filename of FILE.
13414# value retuned in "$func_basename_result"
13415# Implementation must be kept synchronized with func_dirname
13416# and func_basename. For efficiency, we do not delegate to
13417# those functions but instead duplicate the functionality here.
13418func_dirname_and_basename ()
13419{
13420 case ${1} in
13421 */*) func_dirname_result="${1%/*}${2}" ;;
13422 * ) func_dirname_result="${3}" ;;
13423 esac
13424 func_basename_result="${1##*/}"
13425}
13426
13427# func_stripname prefix suffix name
13428# strip PREFIX and SUFFIX off of NAME.
13429# PREFIX and SUFFIX must not contain globbing or regex special
13430# characters, hashes, percent signs, but SUFFIX may contain a leading
13431# dot (in which case that matches only a dot).
13432func_stripname ()
13433{
13434 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13435 # positional parameters, so assign one to ordinary parameter first.
13436 func_stripname_result=${3}
13437 func_stripname_result=${func_stripname_result#"${1}"}
13438 func_stripname_result=${func_stripname_result%"${2}"}
13439}
13440
13441# func_opt_split
13442func_opt_split ()
13443{
13444 func_opt_split_opt=${1%%=*}
13445 func_opt_split_arg=${1#*=}
13446}
13447
13448# func_lo2o object
13449func_lo2o ()
13450{
13451 case ${1} in
13452 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13453 *) func_lo2o_result=${1} ;;
13454 esac
13455}
13456
13457# func_xform libobj-or-source
13458func_xform ()
13459{
13460 func_xform_result=${1%.*}.lo
13461}
13462
13463# func_arith arithmetic-term...
13464func_arith ()
13465{
13466 func_arith_result=$(( $* ))
13467}
13468
13469# func_len string
13470# STRING may not start with a hyphen.
13471func_len ()
13472{
13473 func_len_result=${#1}
13474}
13475
13476_LT_EOF
13477 ;;
13478 *) # Bourne compatible functions.
13479 cat << \_LT_EOF >> "$cfgfile"
13480
13481# func_dirname file append nondir_replacement
13482# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13483# otherwise set result to NONDIR_REPLACEMENT.
13484func_dirname ()
13485{
13486 # Extract subdirectory from the argument.
13487 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13488 if test "X$func_dirname_result" = "X${1}"; then
13489 func_dirname_result="${3}"
13490 else
13491 func_dirname_result="$func_dirname_result${2}"
13492 fi
13493}
13494
13495# func_basename file
13496func_basename ()
13497{
13498 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13499}
13500
13501
13502# func_stripname prefix suffix name
13503# strip PREFIX and SUFFIX off of NAME.
13504# PREFIX and SUFFIX must not contain globbing or regex special
13505# characters, hashes, percent signs, but SUFFIX may contain a leading
13506# dot (in which case that matches only a dot).
13507# func_strip_suffix prefix name
13508func_stripname ()
13509{
13510 case ${2} in
13511 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13512 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13513 esac
13514}
13515
13516# sed scripts:
13517my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13518my_sed_long_arg='1s/^-[^=]*=//'
13519
13520# func_opt_split
13521func_opt_split ()
13522{
13523 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13524 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13525}
13526
13527# func_lo2o object
13528func_lo2o ()
13529{
13530 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13531}
13532
13533# func_xform libobj-or-source
13534func_xform ()
13535{
13536 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13537}
13538
13539# func_arith arithmetic-term...
13540func_arith ()
13541{
13542 func_arith_result=`expr "$@"`
13543}
13544
13545# func_len string
13546# STRING may not start with a hyphen.
13547func_len ()
13548{
13549 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13550}
13551
13552_LT_EOF
13553esac
13554
13555case $lt_shell_append in
13556 yes)
13557 cat << \_LT_EOF >> "$cfgfile"
13558
13559# func_append var value
13560# Append VALUE to the end of shell variable VAR.
13561func_append ()
13562{
13563 eval "$1+=\$2"
13564}
13565_LT_EOF
13566 ;;
13567 *)
13568 cat << \_LT_EOF >> "$cfgfile"
13569
13570# func_append var value
13571# Append VALUE to the end of shell variable VAR.
13572func_append ()
13573{
13574 eval "$1=\$$1\$2"
13575}
13576
13577_LT_EOF
13578 ;;
13579 esac
13580
13581
13582 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13583 || (rm -f "$cfgfile"; exit 1)
13584
13585 mv -f "$cfgfile" "$ofile" ||
13586 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13587 chmod +x "$ofile"
13588
13589 ;;
4f8d4a38
DD
13590 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
13591 rm -f Makesim1.tmp Makesim2.tmp Makefile
13592 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
13593 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
13594 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
13595 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
13596 <Makefile.sim >Makefile
13597 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
13598 ;;
13599 "stamp-h":C) echo > stamp-h ;;
13600
13601 esac
13602done # for ac_tag
13603
13604
13605as_fn_exit 0
13606_ACEOF
13607ac_clean_files=$ac_clean_files_save
13608
13609test $ac_write_fail = 0 ||
d0ac1c44 13610 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4f8d4a38
DD
13611
13612
13613# configure is writing to config.log, and then calls config.status.
13614# config.status does its own redirection, appending to config.log.
13615# Unfortunately, on DOS this fails, as config.log is still kept open
13616# by configure, so config.status won't be able to write to it; its
13617# output is simply discarded. So we exec the FD to /dev/null,
13618# effectively closing config.log, so it can be properly (re)opened and
13619# appended to by config.status. When coming back to configure, we
13620# need to make the FD available again.
13621if test "$no_create" != yes; then
13622 ac_cs_success=:
13623 ac_config_status_args=
13624 test "$silent" = yes &&
13625 ac_config_status_args="$ac_config_status_args --quiet"
13626 exec 5>/dev/null
13627 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13628 exec 5>>config.log
13629 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13630 # would make configure fail if this is the last instruction.
d0ac1c44 13631 $ac_cs_success || as_fn_exit 1
4f8d4a38
DD
13632fi
13633if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13635$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13636fi
13637
13638