]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/mips/configure
sim: unify bug & package settings
[thirdparty/binutils-gdb.git] / sim / mips / configure
CommitLineData
c906108c 1#! /bin/sh
b7026657 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.
81ecdfbb 7#
b7026657 8#
b7026657
AC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c906108c 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
b7026657 31fi
c906108c 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
b7026657 79fi
c906108c
SS
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 90as_myself=
81ecdfbb
RW
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
b7026657
AC
122PS1='$ '
123PS2='> '
124PS4='+ '
c906108c 125
b7026657 126# NLS nuisances.
81ecdfbb
RW
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;}
81ecdfbb
RW
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"
81ecdfbb
RW
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"
81ecdfbb
RW
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
b7026657 219do
81ecdfbb
RW
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
81ecdfbb
RW
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."
b7026657 274 else
81ecdfbb
RW
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."
b7026657 279 fi
81ecdfbb
RW
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"
81ecdfbb
RW
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
81ecdfbb
RW
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# ----------------------------------------
81ecdfbb
RW
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.
81ecdfbb
RW
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
81ecdfbb 422 fi
d0ac1c44 423 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
424 as_fn_exit $as_status
425} # as_fn_error
c906108c 426
81ecdfbb
RW
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
429 as_expr=expr
430else
431 as_expr=false
432fi
c906108c 433
81ecdfbb 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
435 as_basename=basename
436else
437 as_basename=false
438fi
c906108c 439
81ecdfbb
RW
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
c906108c 445
81ecdfbb 446as_me=`$as_basename -- "$0" ||
b7026657
AC
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
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'`
c906108c 464
b7026657
AC
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
c906108c 471
c906108c 472
81ecdfbb
RW
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 |
b7026657 482 sed '
81ecdfbb
RW
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
b7026657 487 N
81ecdfbb
RW
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b7026657 490 t loop
81ecdfbb 491 s/-\n.*//
b7026657 492 ' >$as_me.lineno &&
81ecdfbb
RW
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; }
b7026657 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
b7026657
AC
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
81ecdfbb
RW
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
b7026657
AC
504 # Exit status is that of the last command.
505 exit
506}
c906108c 507
81ecdfbb
RW
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';;
b7026657 519esac
c906108c 520
81ecdfbb
RW
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
b7026657 524else
81ecdfbb
RW
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
b7026657 527fi
81ecdfbb
RW
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 530 as_ln_s='ln -s'
81ecdfbb
RW
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'.
81ecdfbb 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 536 as_ln_s='cp -pR'
81ecdfbb
RW
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
d0ac1c44 540 as_ln_s='cp -pR'
b7026657 541 fi
b7026657 542else
d0ac1c44 543 as_ln_s='cp -pR'
b7026657 544fi
81ecdfbb
RW
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
c906108c 547
b7026657 548if mkdir -p . 2>/dev/null; then
81ecdfbb 549 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
c906108c 554
d0ac1c44
SM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
c906108c 557
b7026657
AC
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'"
c906108c 560
b7026657
AC
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c 563
6bb11ab3
L
564SHELL=${CONFIG_SHELL-/bin/sh}
565
c906108c 566
d0ac1c44
SM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
c906108c 569
b7026657 570# Name of the host.
d0ac1c44 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b7026657
AC
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
c906108c 574
c906108c 575#
b7026657 576# Initializations.
c906108c 577#
b7026657 578ac_default_prefix=/usr/local
81ecdfbb 579ac_clean_files=
b7026657 580ac_config_libobj_dir=.
81ecdfbb 581LIBOBJS=
b7026657
AC
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
b7026657
AC
586
587# Identity of this package.
588PACKAGE_NAME=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
81ecdfbb 593PACKAGE_URL=
b7026657
AC
594
595ac_unique_file="Makefile.in"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
81ecdfbb 599#ifdef HAVE_SYS_TYPES_H
b7026657
AC
600# include <sys/types.h>
601#endif
81ecdfbb 602#ifdef HAVE_SYS_STAT_H
b7026657
AC
603# include <sys/stat.h>
604#endif
81ecdfbb 605#ifdef STDC_HEADERS
b7026657
AC
606# include <stdlib.h>
607# include <stddef.h>
608#else
81ecdfbb 609# ifdef HAVE_STDLIB_H
b7026657
AC
610# include <stdlib.h>
611# endif
612#endif
81ecdfbb
RW
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
b7026657
AC
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
81ecdfbb 619#ifdef HAVE_STRINGS_H
b7026657
AC
620# include <strings.h>
621#endif
81ecdfbb 622#ifdef HAVE_INTTYPES_H
b7026657 623# include <inttypes.h>
b7026657 624#endif
81ecdfbb
RW
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
b7026657
AC
629# include <unistd.h>
630#endif"
c906108c 631
81ecdfbb
RW
632ac_subst_vars='LTLIBOBJS
633LIBOBJS
760b3e8b
MF
634sim_default_model
635sim_scache
81ecdfbb 636cgen_breaks
81ecdfbb 637XMKMF
81ecdfbb
RW
638sim_multi_obj
639sim_multi_src
640sim_multi_igen_configs
641sim_multi_flags
642sim_gen
8e394ffc
AB
643sim_micromips16_flags
644sim_micromips_flags
81ecdfbb
RW
645sim_m16_flags
646sim_igen_flags
647SIM_SUBTARGET
81ecdfbb 648MAINT
31e6ad7d
MF
649MAINTAINER_MODE_FALSE
650MAINTAINER_MODE_TRUE
6bb11ab3
L
651lt_cv_dlopen_libs
652OTOOL64
653OTOOL
654LIPO
655NMEDIT
656DSYMUTIL
657AWK
658STRIP
659OBJDUMP
660LN_S
661NM
662ac_ct_DUMPBIN
663DUMPBIN
664LD
665FGREP
666SED
667LIBTOOL
668PLUGINS_FALSE
669PLUGINS_TRUE
aadc9410
MF
670zlibinc
671zlibdir
81ecdfbb
RW
672CATOBJEXT
673GENCAT
674INSTOBJEXT
675DATADIRNAME
676CATALOGS
677POSUB
678GMSGFMT
679XGETTEXT
680INCINTL
681LIBINTL_DEP
682LIBINTL
683USE_NLS
db2e4d67
MF
684CCDEPMODE
685DEPDIR
686am__leading_dot
46f900c0 687C_DIALECT
81ecdfbb
RW
688RANLIB
689AR
c2783492 690LDFLAGS_FOR_BUILD
c25ea03d 691CFLAGS_FOR_BUILD
aa0fca16 692RANLIB_FOR_BUILD
81ecdfbb 693CC_FOR_BUILD
aa0fca16 694AR_FOR_BUILD
81ecdfbb
RW
695INSTALL_DATA
696INSTALL_SCRIPT
697INSTALL_PROGRAM
2232061b
MF
698EGREP
699GREP
c2783492
MF
700CPP
701OBJEXT
702EXEEXT
703ac_ct_CC
704CPPFLAGS
705LDFLAGS
706CFLAGS
707CC
81ecdfbb
RW
708target_os
709target_vendor
710target_cpu
711target
712host_os
713host_vendor
714host_cpu
715host
716build_os
717build_vendor
718build_cpu
719build
81ecdfbb
RW
720target_alias
721host_alias
722build_alias
723LIBS
724ECHO_T
725ECHO_N
726ECHO_C
727DEFS
728mandir
729localedir
730libdir
731psdir
732pdfdir
733dvidir
734htmldir
735infodir
736docdir
737oldincludedir
738includedir
739localstatedir
740sharedstatedir
741sysconfdir
742datadir
743datarootdir
744libexecdir
745sbindir
746bindir
747program_transform_name
748prefix
749exec_prefix
750PACKAGE_URL
751PACKAGE_BUGREPORT
752PACKAGE_STRING
753PACKAGE_VERSION
754PACKAGE_TARNAME
755PACKAGE_NAME
756PATH_SEPARATOR
136da8cd
MF
757SHELL
758WERROR_CFLAGS
759WARN_CFLAGS
760sim_reserved_bits
761sim_inline
762sim_hw
763sim_hw_objs
764sim_hw_cflags
136da8cd
MF
765sim_float
766sim_endian
767sim_bitsize
768sim_alignment'
b7026657 769ac_subst_files=''
81ecdfbb
RW
770ac_user_opts='
771enable_option_checking
aadc9410 772with_system_zlib
6bb11ab3
L
773enable_plugins
774enable_shared
775enable_static
776with_pic
777enable_fast_install
778with_gnu_ld
779enable_libtool_lock
81ecdfbb 780enable_maintainer_mode
347fe5bb 781enable_sim_inline
81ecdfbb 782enable_sim_alignment
2232061b 783enable_werror
81ecdfbb
RW
784enable_build_warnings
785enable_sim_build_warnings
786enable_sim_reserved_bits
787enable_sim_endian
788enable_sim_bitsize
789enable_sim_float
81ecdfbb
RW
790enable_sim_hardware
791with_x
792'
793 ac_precious_vars='build_alias
794host_alias
795target_alias
796CC
797CFLAGS
798LDFLAGS
799LIBS
800CPPFLAGS
801CPP
802XMKMF'
803
c906108c
SS
804
805# Initialize some variables set by options.
b7026657
AC
806ac_init_help=
807ac_init_version=false
81ecdfbb
RW
808ac_unrecognized_opts=
809ac_unrecognized_sep=
c906108c
SS
810# The variables have the same names as the options, with
811# dashes changed to underlines.
b7026657 812cache_file=/dev/null
c906108c 813exec_prefix=NONE
c906108c 814no_create=
c906108c
SS
815no_recursion=
816prefix=NONE
817program_prefix=NONE
818program_suffix=NONE
819program_transform_name=s,x,x,
820silent=
821site=
822srcdir=
c906108c
SS
823verbose=
824x_includes=NONE
825x_libraries=NONE
b7026657
AC
826
827# Installation directory options.
828# These are left unexpanded so users can "make install exec_prefix=/foo"
829# and all the variables that are supposed to be based on exec_prefix
830# by default will actually change.
831# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 832# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
833bindir='${exec_prefix}/bin'
834sbindir='${exec_prefix}/sbin'
835libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
836datarootdir='${prefix}/share'
837datadir='${datarootdir}'
c906108c
SS
838sysconfdir='${prefix}/etc'
839sharedstatedir='${prefix}/com'
840localstatedir='${prefix}/var'
c906108c
SS
841includedir='${prefix}/include'
842oldincludedir='/usr/include'
81ecdfbb
RW
843docdir='${datarootdir}/doc/${PACKAGE}'
844infodir='${datarootdir}/info'
845htmldir='${docdir}'
846dvidir='${docdir}'
847pdfdir='${docdir}'
848psdir='${docdir}'
849libdir='${exec_prefix}/lib'
850localedir='${datarootdir}/locale'
851mandir='${datarootdir}/man'
c906108c 852
c906108c 853ac_prev=
81ecdfbb 854ac_dashdash=
c906108c
SS
855for ac_option
856do
c906108c
SS
857 # If the previous option needs an argument, assign it.
858 if test -n "$ac_prev"; then
81ecdfbb 859 eval $ac_prev=\$ac_option
c906108c
SS
860 ac_prev=
861 continue
862 fi
863
81ecdfbb 864 case $ac_option in
d0ac1c44
SM
865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 *=) ac_optarg= ;;
867 *) ac_optarg=yes ;;
81ecdfbb 868 esac
c906108c
SS
869
870 # Accept the important Cygnus configure options, so we can diagnose typos.
871
81ecdfbb
RW
872 case $ac_dashdash$ac_option in
873 --)
874 ac_dashdash=yes ;;
c906108c
SS
875
876 -bindir | --bindir | --bindi | --bind | --bin | --bi)
877 ac_prev=bindir ;;
878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 879 bindir=$ac_optarg ;;
c906108c
SS
880
881 -build | --build | --buil | --bui | --bu)
b7026657 882 ac_prev=build_alias ;;
c906108c 883 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 884 build_alias=$ac_optarg ;;
c906108c
SS
885
886 -cache-file | --cache-file | --cache-fil | --cache-fi \
887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888 ac_prev=cache_file ;;
889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
891 cache_file=$ac_optarg ;;
892
893 --config-cache | -C)
894 cache_file=config.cache ;;
c906108c 895
81ecdfbb 896 -datadir | --datadir | --datadi | --datad)
c906108c 897 ac_prev=datadir ;;
81ecdfbb 898 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 899 datadir=$ac_optarg ;;
c906108c 900
81ecdfbb
RW
901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902 | --dataroo | --dataro | --datar)
903 ac_prev=datarootdir ;;
904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906 datarootdir=$ac_optarg ;;
907
c906108c 908 -disable-* | --disable-*)
81ecdfbb 909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 910 # Reject names that are not valid shell variable names.
81ecdfbb 911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 912 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
916 *"
917"enable_$ac_useropt"
918"*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=no ;;
923
924 -docdir | --docdir | --docdi | --doc | --do)
925 ac_prev=docdir ;;
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 docdir=$ac_optarg ;;
928
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930 ac_prev=dvidir ;;
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 dvidir=$ac_optarg ;;
c906108c
SS
933
934 -enable-* | --enable-*)
81ecdfbb 935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 936 # Reject names that are not valid shell variable names.
81ecdfbb 937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 938 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943"enable_$ac_useropt"
944"*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
c906108c 947 esac
81ecdfbb 948 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
949
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
b7026657 957 exec_prefix=$ac_optarg ;;
c906108c
SS
958
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
962
b7026657
AC
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
c906108c
SS
969
970 -host | --host | --hos | --ho)
b7026657 971 ac_prev=host_alias ;;
c906108c 972 -host=* | --host=* | --hos=* | --ho=*)
b7026657 973 host_alias=$ac_optarg ;;
c906108c 974
81ecdfbb
RW
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
980
c906108c
SS
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 986 includedir=$ac_optarg ;;
c906108c
SS
987
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 991 infodir=$ac_optarg ;;
c906108c
SS
992
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 996 libdir=$ac_optarg ;;
c906108c
SS
997
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
b7026657 1003 libexecdir=$ac_optarg ;;
c906108c 1004
81ecdfbb
RW
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1009
c906108c 1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1011 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 1015 localstatedir=$ac_optarg ;;
c906108c
SS
1016
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 1020 mandir=$ac_optarg ;;
c906108c
SS
1021
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1025
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 1027 | --no-cr | --no-c | -n)
c906108c
SS
1028 no_create=yes ;;
1029
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1033
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 1041 oldincludedir=$ac_optarg ;;
c906108c
SS
1042
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 1046 prefix=$ac_optarg ;;
c906108c
SS
1047
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 1053 program_prefix=$ac_optarg ;;
c906108c
SS
1054
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 1060 program_suffix=$ac_optarg ;;
c906108c
SS
1061
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 1077 program_transform_name=$ac_optarg ;;
c906108c 1078
81ecdfbb
RW
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1083
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1088
c906108c
SS
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1092
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 ac_prev=sbindir ;;
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 | --sbi=* | --sb=*)
b7026657 1097 sbindir=$ac_optarg ;;
c906108c
SS
1098
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1102 | --sha | --sh)
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 | --sha=* | --sh=*)
b7026657 1108 sharedstatedir=$ac_optarg ;;
c906108c
SS
1109
1110 -site | --site | --sit)
1111 ac_prev=site ;;
1112 -site=* | --site=* | --sit=*)
b7026657 1113 site=$ac_optarg ;;
e514a9d6 1114
c906108c
SS
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 ac_prev=srcdir ;;
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1118 srcdir=$ac_optarg ;;
c906108c
SS
1119
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1125 sysconfdir=$ac_optarg ;;
c906108c
SS
1126
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1128 ac_prev=target_alias ;;
c906108c 1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1130 target_alias=$ac_optarg ;;
c906108c
SS
1131
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 verbose=yes ;;
1134
b7026657
AC
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
c906108c
SS
1137
1138 -with-* | --with-*)
81ecdfbb 1139 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1140 # Reject names that are not valid shell variable names.
81ecdfbb 1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1142 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
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--with-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
c906108c 1151 esac
81ecdfbb 1152 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1153
1154 -without-* | --without-*)
81ecdfbb 1155 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1156 # Reject names that are not valid shell variable names.
81ecdfbb 1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1158 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163"with_$ac_useropt"
1164"*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=no ;;
c906108c
SS
1169
1170 --x)
1171 # Obsolete; use --with-x.
1172 with_x=yes ;;
1173
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1179 x_includes=$ac_optarg ;;
c906108c
SS
1180
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1186 x_libraries=$ac_optarg ;;
c906108c 1187
d0ac1c44
SM
1188 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189Try \`$0 --help' for more information"
c906108c
SS
1190 ;;
1191
b7026657
AC
1192 *=*)
1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1195 case $ac_envvar in #(
1196 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1197 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1198 esac
1199 eval $ac_envvar=\$ac_optarg
b7026657
AC
1200 export $ac_envvar ;;
1201
c906108c 1202 *)
b7026657 1203 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1204 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1206 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c906108c
SS
1208 ;;
1209
1210 esac
1211done
1212
1213if test -n "$ac_prev"; then
b7026657 1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1215 as_fn_error $? "missing argument to $ac_option"
c906108c 1216fi
c906108c 1217
81ecdfbb
RW
1218if test -n "$ac_unrecognized_opts"; then
1219 case $enable_option_checking in
1220 no) ;;
d0ac1c44 1221 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1222 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b7026657 1223 esac
81ecdfbb 1224fi
c906108c 1225
81ecdfbb
RW
1226# Check all directory arguments for consistency.
1227for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228 datadir sysconfdir sharedstatedir localstatedir includedir \
1229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230 libdir localedir mandir
c906108c 1231do
81ecdfbb
RW
1232 eval ac_val=\$$ac_var
1233 # Remove trailing slashes.
1234 case $ac_val in
1235 */ )
1236 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237 eval $ac_var=\$ac_val;;
1238 esac
1239 # Be sure to have absolute directory names.
b7026657 1240 case $ac_val in
81ecdfbb
RW
1241 [\\/$]* | ?:[\\/]* ) continue;;
1242 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1243 esac
d0ac1c44 1244 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1245done
1246
b7026657
AC
1247# There might be people who depend on the old broken behavior: `$host'
1248# used to hold the argument of --host etc.
1249# FIXME: To remove some day.
1250build=$build_alias
1251host=$host_alias
1252target=$target_alias
1253
1254# FIXME: To remove some day.
1255if test "x$host_alias" != x; then
1256 if test "x$build_alias" = x; then
1257 cross_compiling=maybe
b7026657
AC
1258 elif test "x$build_alias" != "x$host_alias"; then
1259 cross_compiling=yes
1260 fi
1261fi
c906108c 1262
b7026657
AC
1263ac_tool_prefix=
1264test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265
1266test "$silent" = yes && exec 6>/dev/null
c906108c 1267
c906108c 1268
81ecdfbb
RW
1269ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270ac_ls_di=`ls -di .` &&
1271ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1272 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1273test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1274 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1275
1276
c906108c
SS
1277# Find the source files, if location was not specified.
1278if test -z "$srcdir"; then
1279 ac_srcdir_defaulted=yes
81ecdfbb
RW
1280 # Try the directory containing this script, then the parent directory.
1281 ac_confdir=`$as_dirname -- "$as_myself" ||
1282$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283 X"$as_myself" : 'X\(//\)[^/]' \| \
1284 X"$as_myself" : 'X\(//\)$' \| \
1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286$as_echo X"$as_myself" |
1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288 s//\1/
1289 q
1290 }
1291 /^X\(\/\/\)[^/].*/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\/\)$/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\).*/{
1300 s//\1/
1301 q
1302 }
1303 s/.*/./; q'`
c906108c 1304 srcdir=$ac_confdir
81ecdfbb 1305 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1306 srcdir=..
1307 fi
1308else
1309 ac_srcdir_defaulted=no
1310fi
81ecdfbb
RW
1311if test ! -r "$srcdir/$ac_unique_file"; then
1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1313 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1314fi
1315ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316ac_abs_confdir=`(
d0ac1c44 1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1318 pwd)`
1319# When building in place, set srcdir=.
1320if test "$ac_abs_confdir" = "$ac_pwd"; then
1321 srcdir=.
1322fi
1323# Remove unnecessary trailing slashes from srcdir.
1324# Double slashes in file names in object file debugging info
1325# mess up M-x gdb in Emacs.
1326case $srcdir in
1327*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328esac
1329for ac_var in $ac_precious_vars; do
1330 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_env_${ac_var}_value=\$${ac_var}
1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334done
c906108c 1335
b7026657
AC
1336#
1337# Report the --help message.
1338#
1339if test "$ac_init_help" = "long"; then
1340 # Omit some internal or obsolete options to make the list less imposing.
1341 # This message is too long to be a string in the A/UX 3.1 sh.
1342 cat <<_ACEOF
1343\`configure' configures this package to adapt to many kinds of systems.
c906108c 1344
b7026657 1345Usage: $0 [OPTION]... [VAR=VALUE]...
c906108c 1346
b7026657
AC
1347To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348VAR=VALUE. See below for descriptions of some of the useful variables.
c906108c 1349
b7026657 1350Defaults for the options are specified in brackets.
c906108c 1351
b7026657
AC
1352Configuration:
1353 -h, --help display this help and exit
1354 --help=short display options specific to this package
1355 --help=recursive display the short help of all the included packages
1356 -V, --version display version information and exit
d0ac1c44 1357 -q, --quiet, --silent do not print \`checking ...' messages
b7026657
AC
1358 --cache-file=FILE cache test results in FILE [disabled]
1359 -C, --config-cache alias for \`--cache-file=config.cache'
1360 -n, --no-create do not create output files
1361 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1362
b7026657
AC
1363Installation directories:
1364 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1365 [$ac_default_prefix]
b7026657 1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1367 [PREFIX]
c906108c 1368
b7026657
AC
1369By default, \`make install' will install all the files in
1370\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1371an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372for instance \`--prefix=\$HOME'.
c906108c 1373
b7026657
AC
1374For better control, use the options below.
1375
1376Fine tuning of the installation directories:
81ecdfbb
RW
1377 --bindir=DIR user executables [EPREFIX/bin]
1378 --sbindir=DIR system admin executables [EPREFIX/sbin]
1379 --libexecdir=DIR program executables [EPREFIX/libexec]
1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1383 --libdir=DIR object code libraries [EPREFIX/lib]
1384 --includedir=DIR C header files [PREFIX/include]
1385 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1388 --infodir=DIR info documentation [DATAROOTDIR/info]
1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1390 --mandir=DIR man documentation [DATAROOTDIR/man]
1391 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1392 --htmldir=DIR html documentation [DOCDIR]
1393 --dvidir=DIR dvi documentation [DOCDIR]
1394 --pdfdir=DIR pdf documentation [DOCDIR]
1395 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1396_ACEOF
1397
1398 cat <<\_ACEOF
1399
1400Program names:
1401 --program-prefix=PREFIX prepend PREFIX to installed program names
1402 --program-suffix=SUFFIX append SUFFIX to installed program names
1403 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1404
1405X features:
1406 --x-includes=DIR X include files are in DIR
1407 --x-libraries=DIR X library files are in DIR
1408
1409System types:
1410 --build=BUILD configure for building on BUILD [guessed]
1411 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1412 --target=TARGET configure for building compilers for TARGET [HOST]
1413_ACEOF
c906108c 1414fi
b7026657
AC
1415
1416if test -n "$ac_init_help"; then
1417
1418 cat <<\_ACEOF
1419
1420Optional Features:
81ecdfbb 1421 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
faa743bb 1424 --enable-plugins Enable support for plugins
6bb11ab3
L
1425 --enable-shared[=PKGS] build shared libraries [default=yes]
1426 --enable-static[=PKGS] build static libraries [default=yes]
1427 --enable-fast-install[=PKGS]
1428 optimize for fast installation [default=yes]
1429 --disable-libtool-lock avoid locking (might break parallel builds)
d0ac1c44
SM
1430 --enable-maintainer-mode
1431 enable make rules and dependencies not useful (and
1432 sometimes confusing) to the casual installer
8d0978fb
MF
1433 --enable-sim-inline=inlines
1434 Specify which functions should be inlined
1435 --enable-sim-alignment=align
1436 Specify strict, nonstrict or forced alignment of
1437 memory accesses
2232061b
MF
1438 --enable-werror treat compile warnings as errors
1439 --enable-build-warnings enable build-time compiler warnings if gcc is used
1440 --enable-sim-build-warnings
1441 enable SIM specific build-time compiler warnings if
1442 gcc is used
8d0978fb
MF
1443 --enable-sim-reserved-bits
1444 Specify whether to check reserved bits in
1445 instruction
1446 --enable-sim-endian=endian
1447 Specify target byte endian orientation
1448 --enable-sim-bitsize=N Specify target bitsize (32 or 64)
1449 --enable-sim-float Specify that the target processor has floating point
1450 hardware
1517bd27
MF
1451 --enable-sim-hardware=LIST
1452 Specify the hardware to be included in the build.
b7026657
AC
1453
1454Optional Packages:
1455 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1456 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
aadc9410 1457 --with-system-zlib use installed libz
6bb11ab3
L
1458 --with-pic try to use only PIC/non-PIC objects [default=use
1459 both]
1460 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b7026657
AC
1461 --with-x use the X Window System
1462
1463Some influential environment variables:
1464 CC C compiler command
1465 CFLAGS C compiler flags
1466 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1467 nonstandard directory <lib dir>
81ecdfbb 1468 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1469 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1470 you have headers in a nonstandard directory <include dir>
b7026657 1471 CPP C preprocessor
81ecdfbb 1472 XMKMF Path to xmkmf, Makefile generator for X Window System
b7026657
AC
1473
1474Use these variables to override the choices made by `configure' or to help
1475it to find libraries and programs with nonstandard names/locations.
1476
81ecdfbb 1477Report bugs to the package provider.
b7026657 1478_ACEOF
81ecdfbb 1479ac_status=$?
c906108c
SS
1480fi
1481
b7026657
AC
1482if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
b7026657 1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1485 test -d "$ac_dir" ||
1486 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487 continue
b7026657 1488 ac_builddir=.
c906108c 1489
81ecdfbb
RW
1490case "$ac_dir" in
1491.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492*)
1493 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 esac ;;
1500esac
1501ac_abs_top_builddir=$ac_pwd
1502ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503# for backward compatibility:
1504ac_top_builddir=$ac_top_build_prefix
c906108c 1505
b7026657 1506case $srcdir in
81ecdfbb 1507 .) # We are building in place.
b7026657 1508 ac_srcdir=.
81ecdfbb
RW
1509 ac_top_srcdir=$ac_top_builddir_sub
1510 ac_abs_top_srcdir=$ac_pwd ;;
1511 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1512 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1513 ac_top_srcdir=$srcdir
1514 ac_abs_top_srcdir=$srcdir ;;
1515 *) # Relative name.
1516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 1519esac
81ecdfbb
RW
1520ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521
1522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for guested configure.
1524 if test -f "$ac_srcdir/configure.gnu"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527 elif test -f "$ac_srcdir/configure"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure" --help=recursive
b7026657 1530 else
81ecdfbb
RW
1531 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532 fi || ac_status=$?
1533 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657
AC
1534 done
1535fi
1536
81ecdfbb 1537test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1538if $ac_init_version; then
1539 cat <<\_ACEOF
81ecdfbb 1540configure
d0ac1c44 1541generated by GNU Autoconf 2.69
b7026657 1542
d0ac1c44 1543Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
1544This configure script is free software; the Free Software Foundation
1545gives unlimited permission to copy, distribute and modify it.
1546_ACEOF
81ecdfbb 1547 exit
b7026657 1548fi
b7026657 1549
81ecdfbb
RW
1550## ------------------------ ##
1551## Autoconf initialization. ##
1552## ------------------------ ##
b7026657 1553
81ecdfbb
RW
1554# ac_fn_c_try_compile LINENO
1555# --------------------------
1556# Try to compile conftest.$ac_ext, and return whether this succeeded.
1557ac_fn_c_try_compile ()
b7026657 1558{
81ecdfbb
RW
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext
1561 if { { ac_try="$ac_compile"
1562case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565esac
1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567$as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_compile") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1574 fi
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest.$ac_objext; then :
1580 ac_retval=0
1581else
1582 $as_echo "$as_me: failed program was:" >&5
1583sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1584
81ecdfbb
RW
1585 ac_retval=1
1586fi
d0ac1c44
SM
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
b7026657 1589
81ecdfbb 1590} # ac_fn_c_try_compile
b7026657 1591
81ecdfbb
RW
1592# ac_fn_c_try_cpp LINENO
1593# ----------------------
1594# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1595ac_fn_c_try_cpp ()
1596{
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 if { { ac_try="$ac_cpp conftest.$ac_ext"
1599case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602esac
1603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604$as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1606 ac_status=$?
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1611 fi
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1613 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 }; then :
1617 ac_retval=0
1618else
1619 $as_echo "$as_me: failed program was:" >&5
1620sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1621
81ecdfbb
RW
1622 ac_retval=1
1623fi
d0ac1c44
SM
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
b7026657 1626
81ecdfbb
RW
1627} # ac_fn_c_try_cpp
1628
1629# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1630# -------------------------------------------------------
1631# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1632# the include files in INCLUDES and setting the cache variable VAR
1633# accordingly.
1634ac_fn_c_check_header_mongrel ()
1635{
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1637 if eval \${$3+:} false; then :
81ecdfbb
RW
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1639$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1640if eval \${$3+:} false; then :
81ecdfbb
RW
1641 $as_echo_n "(cached) " >&6
1642fi
1643eval ac_res=\$$3
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645$as_echo "$ac_res" >&6; }
1646else
1647 # Is the header compilable?
1648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1649$as_echo_n "checking $2 usability... " >&6; }
1650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651/* end confdefs.h. */
1652$4
1653#include <$2>
1654_ACEOF
1655if ac_fn_c_try_compile "$LINENO"; then :
1656 ac_header_compiler=yes
1657else
1658 ac_header_compiler=no
1659fi
1660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1662$as_echo "$ac_header_compiler" >&6; }
1663
1664# Is the header present?
1665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1666$as_echo_n "checking $2 presence... " >&6; }
1667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668/* end confdefs.h. */
1669#include <$2>
1670_ACEOF
1671if ac_fn_c_try_cpp "$LINENO"; then :
1672 ac_header_preproc=yes
1673else
1674 ac_header_preproc=no
1675fi
d0ac1c44 1676rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1678$as_echo "$ac_header_preproc" >&6; }
1679
1680# So? What about this header?
1681case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1682 yes:no: )
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1684$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1686$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1687 ;;
1688 no:yes:* )
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1690$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1692$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1694$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1696$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1698$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1699 ;;
1700esac
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1703if eval \${$3+:} false; then :
81ecdfbb
RW
1704 $as_echo_n "(cached) " >&6
1705else
1706 eval "$3=\$ac_header_compiler"
1707fi
1708eval ac_res=\$$3
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710$as_echo "$ac_res" >&6; }
1711fi
d0ac1c44 1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1713
1714} # ac_fn_c_check_header_mongrel
1715
1716# ac_fn_c_try_run LINENO
1717# ----------------------
1718# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1719# that executables *can* be run.
1720ac_fn_c_try_run ()
1721{
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { { ac_try="$ac_link"
1724case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729$as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_link") 2>&5
1731 ac_status=$?
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1734 { { case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737esac
1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739$as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_try") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; }; }; then :
1744 ac_retval=0
1745else
1746 $as_echo "$as_me: program exited with status $ac_status" >&5
1747 $as_echo "$as_me: failed program was:" >&5
1748sed 's/^/| /' conftest.$ac_ext >&5
1749
1750 ac_retval=$ac_status
1751fi
1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
81ecdfbb
RW
1755
1756} # ac_fn_c_try_run
1757
1758# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1759# -------------------------------------------------------
1760# Tests whether HEADER exists and can be compiled using the include files in
1761# INCLUDES, setting the cache variable VAR accordingly.
1762ac_fn_c_check_header_compile ()
1763{
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1767if eval \${$3+:} false; then :
81ecdfbb
RW
1768 $as_echo_n "(cached) " >&6
1769else
1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771/* end confdefs.h. */
1772$4
1773#include <$2>
1774_ACEOF
1775if ac_fn_c_try_compile "$LINENO"; then :
1776 eval "$3=yes"
1777else
1778 eval "$3=no"
1779fi
1780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1781fi
1782eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784$as_echo "$ac_res" >&6; }
d0ac1c44 1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1786
1787} # ac_fn_c_check_header_compile
1788
1789# ac_fn_c_try_link LINENO
1790# -----------------------
1791# Try to link conftest.$ac_ext, and return whether this succeeded.
1792ac_fn_c_try_link ()
1793{
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 rm -f conftest.$ac_objext conftest$ac_exeext
1796 if { { ac_try="$ac_link"
1797case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800esac
1801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802$as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_link") 2>conftest.err
1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1809 fi
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_c_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest$ac_exeext && {
1815 test "$cross_compiling" = yes ||
d0ac1c44 1816 test -x conftest$ac_exeext
81ecdfbb
RW
1817 }; then :
1818 ac_retval=0
1819else
1820 $as_echo "$as_me: failed program was:" >&5
1821sed 's/^/| /' conftest.$ac_ext >&5
1822
1823 ac_retval=1
1824fi
1825 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1826 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1827 # interfere with the next link command; also delete a directory that is
1828 # left behind by Apple's compiler. We do this before executing the actions.
1829 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 as_fn_set_status $ac_retval
81ecdfbb
RW
1832
1833} # ac_fn_c_try_link
1834
1835# ac_fn_c_check_func LINENO FUNC VAR
1836# ----------------------------------
1837# Tests whether FUNC exists, setting the cache variable VAR accordingly
1838ac_fn_c_check_func ()
1839{
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1843if eval \${$3+:} false; then :
81ecdfbb
RW
1844 $as_echo_n "(cached) " >&6
1845else
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h. */
1848/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1850#define $2 innocuous_$2
1851
1852/* System header to define __stub macros and hopefully few prototypes,
1853 which can conflict with char $2 (); below.
1854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855 <limits.h> exists even on freestanding compilers. */
1856
1857#ifdef __STDC__
1858# include <limits.h>
1859#else
1860# include <assert.h>
1861#endif
1862
1863#undef $2
1864
1865/* Override any GCC internal prototype to avoid an error.
1866 Use char because int might match the return type of a GCC
1867 builtin and then its argument prototype would still apply. */
1868#ifdef __cplusplus
1869extern "C"
1870#endif
1871char $2 ();
1872/* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875#if defined __stub_$2 || defined __stub___$2
1876choke me
1877#endif
1878
1879int
1880main ()
1881{
1882return $2 ();
1883 ;
1884 return 0;
1885}
1886_ACEOF
1887if ac_fn_c_try_link "$LINENO"; then :
1888 eval "$3=yes"
1889else
1890 eval "$3=no"
1891fi
1892rm -f core conftest.err conftest.$ac_objext \
1893 conftest$ac_exeext conftest.$ac_ext
1894fi
1895eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897$as_echo "$ac_res" >&6; }
d0ac1c44 1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1899
1900} # ac_fn_c_check_func
1901cat >config.log <<_ACEOF
1902This file contains any messages produced by compilers while
1903running configure, to aid debugging if configure makes a mistake.
1904
1905It was created by $as_me, which was
d0ac1c44 1906generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
1907
1908 $ $0 $@
1909
1910_ACEOF
1911exec 5>>config.log
1912{
1913cat <<_ASUNAME
1914## --------- ##
1915## Platform. ##
1916## --------- ##
1917
1918hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1919uname -m = `(uname -m) 2>/dev/null || echo unknown`
1920uname -r = `(uname -r) 2>/dev/null || echo unknown`
1921uname -s = `(uname -s) 2>/dev/null || echo unknown`
1922uname -v = `(uname -v) 2>/dev/null || echo unknown`
1923
1924/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1925/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1926
1927/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1928/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1929/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1930/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1931/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1932/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1933/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1934
1935_ASUNAME
1936
1937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938for as_dir in $PATH
1939do
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 $as_echo "PATH: $as_dir"
1943 done
1944IFS=$as_save_IFS
1945
1946} >&5
1947
1948cat >&5 <<_ACEOF
b7026657
AC
1949
1950
1951## ----------- ##
1952## Core tests. ##
1953## ----------- ##
1954
1955_ACEOF
1956
1957
1958# Keep a trace of the command line.
1959# Strip out --no-create and --no-recursion so they do not pile up.
1960# Strip out --silent because we don't want to record it for future runs.
1961# Also quote any args containing shell meta-characters.
1962# Make two passes to allow for proper duplicate-argument suppression.
1963ac_configure_args=
1964ac_configure_args0=
1965ac_configure_args1=
b7026657
AC
1966ac_must_keep_next=false
1967for ac_pass in 1 2
1968do
1969 for ac_arg
1970 do
1971 case $ac_arg in
1972 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1974 | -silent | --silent | --silen | --sile | --sil)
1975 continue ;;
81ecdfbb
RW
1976 *\'*)
1977 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
1978 esac
1979 case $ac_pass in
81ecdfbb 1980 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 1981 2)
81ecdfbb 1982 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
1983 if test $ac_must_keep_next = true; then
1984 ac_must_keep_next=false # Got value, back to normal.
1985 else
1986 case $ac_arg in
1987 *=* | --config-cache | -C | -disable-* | --disable-* \
1988 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1989 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1990 | -with-* | --with-* | -without-* | --without-* | --x)
1991 case "$ac_configure_args0 " in
1992 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1993 esac
1994 ;;
1995 -* ) ac_must_keep_next=true ;;
1996 esac
1997 fi
81ecdfbb 1998 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
1999 ;;
2000 esac
2001 done
2002done
81ecdfbb
RW
2003{ ac_configure_args0=; unset ac_configure_args0;}
2004{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
2005
2006# When interrupted or exit'd, cleanup temporary files, and complete
2007# config.log. We remove comments because anyway the quotes in there
2008# would cause problems or look ugly.
81ecdfbb
RW
2009# WARNING: Use '\'' to represent an apostrophe within the trap.
2010# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
2011trap 'exit_status=$?
2012 # Save into config.log some information that might help in debugging.
2013 {
2014 echo
2015
d0ac1c44 2016 $as_echo "## ---------------- ##
b7026657 2017## Cache variables. ##
d0ac1c44 2018## ---------------- ##"
b7026657
AC
2019 echo
2020 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2021(
2022 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2023 eval ac_val=\$$ac_var
2024 case $ac_val in #(
2025 *${as_nl}*)
2026 case $ac_var in #(
2027 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2028$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2029 esac
2030 case $ac_var in #(
2031 _ | IFS | as_nl) ;; #(
2032 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2033 *) { eval $ac_var=; unset $ac_var;} ;;
2034 esac ;;
2035 esac
2036 done
b7026657 2037 (set) 2>&1 |
81ecdfbb
RW
2038 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2039 *${as_nl}ac_space=\ *)
b7026657 2040 sed -n \
81ecdfbb
RW
2041 "s/'\''/'\''\\\\'\'''\''/g;
2042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2043 ;; #(
b7026657 2044 *)
81ecdfbb 2045 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 2046 ;;
81ecdfbb
RW
2047 esac |
2048 sort
2049)
b7026657
AC
2050 echo
2051
d0ac1c44 2052 $as_echo "## ----------------- ##
b7026657 2053## Output variables. ##
d0ac1c44 2054## ----------------- ##"
b7026657
AC
2055 echo
2056 for ac_var in $ac_subst_vars
2057 do
81ecdfbb
RW
2058 eval ac_val=\$$ac_var
2059 case $ac_val in
2060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061 esac
2062 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2063 done | sort
2064 echo
2065
2066 if test -n "$ac_subst_files"; then
d0ac1c44 2067 $as_echo "## ------------------- ##
81ecdfbb 2068## File substitutions. ##
d0ac1c44 2069## ------------------- ##"
b7026657
AC
2070 echo
2071 for ac_var in $ac_subst_files
2072 do
81ecdfbb
RW
2073 eval ac_val=\$$ac_var
2074 case $ac_val in
2075 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076 esac
2077 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2078 done | sort
2079 echo
2080 fi
2081
2082 if test -s confdefs.h; then
d0ac1c44 2083 $as_echo "## ----------- ##
b7026657 2084## confdefs.h. ##
d0ac1c44 2085## ----------- ##"
b7026657 2086 echo
81ecdfbb 2087 cat confdefs.h
b7026657
AC
2088 echo
2089 fi
2090 test "$ac_signal" != 0 &&
81ecdfbb
RW
2091 $as_echo "$as_me: caught signal $ac_signal"
2092 $as_echo "$as_me: exit $exit_status"
b7026657 2093 } >&5
81ecdfbb
RW
2094 rm -f core *.core core.conftest.* &&
2095 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 2096 exit $exit_status
81ecdfbb 2097' 0
b7026657 2098for ac_signal in 1 2 13 15; do
81ecdfbb 2099 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
2100done
2101ac_signal=0
2102
2103# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2104rm -f -r conftest* confdefs.h
2105
2106$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
2107
2108# Predefined preprocessor variables.
2109
2110cat >>confdefs.h <<_ACEOF
2111#define PACKAGE_NAME "$PACKAGE_NAME"
2112_ACEOF
2113
b7026657
AC
2114cat >>confdefs.h <<_ACEOF
2115#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2116_ACEOF
2117
b7026657
AC
2118cat >>confdefs.h <<_ACEOF
2119#define PACKAGE_VERSION "$PACKAGE_VERSION"
2120_ACEOF
2121
b7026657
AC
2122cat >>confdefs.h <<_ACEOF
2123#define PACKAGE_STRING "$PACKAGE_STRING"
2124_ACEOF
2125
b7026657
AC
2126cat >>confdefs.h <<_ACEOF
2127#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2128_ACEOF
2129
81ecdfbb
RW
2130cat >>confdefs.h <<_ACEOF
2131#define PACKAGE_URL "$PACKAGE_URL"
2132_ACEOF
2133
b7026657
AC
2134
2135# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2136# Prefer an explicitly selected file to automatically selected ones.
2137ac_site_file1=NONE
2138ac_site_file2=NONE
2139if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2140 # We do not want a PATH search for config.site.
2141 case $CONFIG_SITE in #((
2142 -*) ac_site_file1=./$CONFIG_SITE;;
2143 */*) ac_site_file1=$CONFIG_SITE;;
2144 *) ac_site_file1=./$CONFIG_SITE;;
2145 esac
81ecdfbb
RW
2146elif test "x$prefix" != xNONE; then
2147 ac_site_file1=$prefix/share/config.site
2148 ac_site_file2=$prefix/etc/config.site
2149else
2150 ac_site_file1=$ac_default_prefix/share/config.site
2151 ac_site_file2=$ac_default_prefix/etc/config.site
2152fi
2153for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2154do
2155 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2156 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2158$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657 2159 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2160 . "$ac_site_file" \
2161 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2163as_fn_error $? "failed to load site script $ac_site_file
2164See \`config.log' for more details" "$LINENO" 5; }
b7026657
AC
2165 fi
2166done
2167
2168if test -r "$cache_file"; then
d0ac1c44
SM
2169 # Some versions of bash will fail to source /dev/null (special files
2170 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2171 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2173$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 2174 case $cache_file in
81ecdfbb
RW
2175 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2176 *) . "./$cache_file";;
b7026657
AC
2177 esac
2178 fi
c906108c 2179else
81ecdfbb
RW
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2181$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657
AC
2182 >$cache_file
2183fi
2184
2185# Check that the precious variables saved in the cache have kept the same
2186# value.
2187ac_cache_corrupted=false
81ecdfbb 2188for ac_var in $ac_precious_vars; do
b7026657
AC
2189 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2190 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2191 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2192 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
2193 case $ac_old_set,$ac_new_set in
2194 set,)
81ecdfbb
RW
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2196$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
2197 ac_cache_corrupted=: ;;
2198 ,set)
81ecdfbb
RW
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2200$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
2201 ac_cache_corrupted=: ;;
2202 ,);;
2203 *)
2204 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2205 # differences in whitespace do not lead to failure.
2206 ac_old_val_w=`echo x $ac_old_val`
2207 ac_new_val_w=`echo x $ac_new_val`
2208 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2210$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2211 ac_cache_corrupted=:
2212 else
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2214$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2215 eval $ac_var=\$ac_old_val
2216 fi
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2218$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2220$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
2221 fi;;
2222 esac
2223 # Pass precious variables to config.status.
2224 if test "$ac_new_set" = set; then
2225 case $ac_new_val in
81ecdfbb 2226 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2227 *) ac_arg=$ac_var=$ac_new_val ;;
2228 esac
2229 case " $ac_configure_args " in
2230 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2231 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657
AC
2232 esac
2233 fi
2234done
2235if $ac_cache_corrupted; then
81ecdfbb
RW
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2239$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2240 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c906108c 2241fi
81ecdfbb
RW
2242## -------------------- ##
2243## Main body of script. ##
2244## -------------------- ##
b7026657
AC
2245
2246ac_ext=c
2247ac_cpp='$CPP $CPPFLAGS'
2248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2250ac_compiler_gnu=$ac_cv_c_compiler_gnu
2251
2252
6bb11ab3
L
2253
2254
2255
2256
2257
c2783492
MF
2258ac_aux_dir=
2259for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2260 if test -f "$ac_dir/install-sh"; then
2261 ac_aux_dir=$ac_dir
2262 ac_install_sh="$ac_aux_dir/install-sh -c"
2263 break
2264 elif test -f "$ac_dir/install.sh"; then
2265 ac_aux_dir=$ac_dir
2266 ac_install_sh="$ac_aux_dir/install.sh -c"
2267 break
2268 elif test -f "$ac_dir/shtool"; then
2269 ac_aux_dir=$ac_dir
2270 ac_install_sh="$ac_aux_dir/shtool install -c"
2271 break
2272 fi
2273done
2274if test -z "$ac_aux_dir"; then
2275 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2276fi
2277
2278# These three variables are undocumented and unsupported,
2279# and are intended to be withdrawn in a future Autoconf release.
2280# They can cause serious problems if a builder's source tree is in a directory
2281# whose full name contains unusual characters.
2282ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2283ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2284ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2285
2286
2287# Make sure we can run config.sub.
2288$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2289 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2290
2291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2292$as_echo_n "checking build system type... " >&6; }
2293if ${ac_cv_build+:} false; then :
2294 $as_echo_n "(cached) " >&6
2295else
2296 ac_build_alias=$build_alias
2297test "x$ac_build_alias" = x &&
2298 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2299test "x$ac_build_alias" = x &&
2300 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2301ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2302 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2303
2304fi
2305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2306$as_echo "$ac_cv_build" >&6; }
2307case $ac_cv_build in
2308*-*-*) ;;
2309*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2310esac
2311build=$ac_cv_build
2312ac_save_IFS=$IFS; IFS='-'
2313set x $ac_cv_build
2314shift
2315build_cpu=$1
2316build_vendor=$2
2317shift; shift
2318# Remember, the first character of IFS is used to create $*,
2319# except with old shells:
2320build_os=$*
2321IFS=$ac_save_IFS
2322case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2323
2324
2325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2326$as_echo_n "checking host system type... " >&6; }
2327if ${ac_cv_host+:} false; then :
2328 $as_echo_n "(cached) " >&6
2329else
2330 if test "x$host_alias" = x; then
2331 ac_cv_host=$ac_cv_build
2332else
2333 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2334 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2335fi
2336
2337fi
2338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2339$as_echo "$ac_cv_host" >&6; }
2340case $ac_cv_host in
2341*-*-*) ;;
2342*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2343esac
2344host=$ac_cv_host
2345ac_save_IFS=$IFS; IFS='-'
2346set x $ac_cv_host
2347shift
2348host_cpu=$1
2349host_vendor=$2
2350shift; shift
2351# Remember, the first character of IFS is used to create $*,
2352# except with old shells:
2353host_os=$*
2354IFS=$ac_save_IFS
2355case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2356
2357
2358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2359$as_echo_n "checking target system type... " >&6; }
2360if ${ac_cv_target+:} false; then :
2361 $as_echo_n "(cached) " >&6
2362else
2363 if test "x$target_alias" = x; then
2364 ac_cv_target=$ac_cv_host
2365else
2366 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2367 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2368fi
2369
2370fi
2371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2372$as_echo "$ac_cv_target" >&6; }
2373case $ac_cv_target in
2374*-*-*) ;;
2375*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2376esac
2377target=$ac_cv_target
2378ac_save_IFS=$IFS; IFS='-'
2379set x $ac_cv_target
2380shift
2381target_cpu=$1
2382target_vendor=$2
2383shift; shift
2384# Remember, the first character of IFS is used to create $*,
2385# except with old shells:
2386target_os=$*
2387IFS=$ac_save_IFS
2388case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2389
2390
2391# The aliases save the names the user supplied, while $host etc.
2392# will get canonicalized.
2393test -n "$target_alias" &&
2394 test "$program_prefix$program_suffix$program_transform_name" = \
2395 NONENONEs,x,x, &&
2396 program_prefix=${target_alias}-
6bb11ab3
L
2397ac_ext=c
2398ac_cpp='$CPP $CPPFLAGS'
2399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2401ac_compiler_gnu=$ac_cv_c_compiler_gnu
2402if test -n "$ac_tool_prefix"; then
2403 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2404set dummy ${ac_tool_prefix}gcc; ac_word=$2
2405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2406$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2407if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2408 $as_echo_n "(cached) " >&6
2409else
2410 if test -n "$CC"; then
2411 ac_cv_prog_CC="$CC" # Let the user override the test.
2412else
2413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414for as_dir in $PATH
2415do
2416 IFS=$as_save_IFS
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2420 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 break 2
2423 fi
2424done
2425 done
2426IFS=$as_save_IFS
2427
2428fi
2429fi
2430CC=$ac_cv_prog_CC
2431if test -n "$CC"; then
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2433$as_echo "$CC" >&6; }
2434else
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2436$as_echo "no" >&6; }
2437fi
2438
2439
2440fi
2441if test -z "$ac_cv_prog_CC"; then
2442 ac_ct_CC=$CC
2443 # Extract the first word of "gcc", so it can be a program name with args.
2444set dummy gcc; ac_word=$2
2445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2446$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2447if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
2448 $as_echo_n "(cached) " >&6
2449else
2450 if test -n "$ac_ct_CC"; then
2451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2452else
2453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454for as_dir in $PATH
2455do
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2460 ac_cv_prog_ac_ct_CC="gcc"
2461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 break 2
2463 fi
2464done
2465 done
2466IFS=$as_save_IFS
2467
2468fi
2469fi
2470ac_ct_CC=$ac_cv_prog_ac_ct_CC
2471if test -n "$ac_ct_CC"; then
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2473$as_echo "$ac_ct_CC" >&6; }
2474else
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2476$as_echo "no" >&6; }
2477fi
2478
2479 if test "x$ac_ct_CC" = x; then
2480 CC=""
2481 else
2482 case $cross_compiling:$ac_tool_warned in
2483yes:)
2484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2486ac_tool_warned=yes ;;
2487esac
2488 CC=$ac_ct_CC
2489 fi
2490else
2491 CC="$ac_cv_prog_CC"
2492fi
2493
2494if test -z "$CC"; then
2495 if test -n "$ac_tool_prefix"; then
2496 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2497set dummy ${ac_tool_prefix}cc; ac_word=$2
2498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2500if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2501 $as_echo_n "(cached) " >&6
2502else
2503 if test -n "$CC"; then
2504 ac_cv_prog_CC="$CC" # Let the user override the test.
2505else
2506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507for as_dir in $PATH
2508do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2513 ac_cv_prog_CC="${ac_tool_prefix}cc"
2514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 break 2
2516 fi
2517done
2518 done
2519IFS=$as_save_IFS
2520
2521fi
2522fi
2523CC=$ac_cv_prog_CC
2524if test -n "$CC"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2526$as_echo "$CC" >&6; }
2527else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529$as_echo "no" >&6; }
2530fi
2531
2532
2533 fi
2534fi
2535if test -z "$CC"; then
2536 # Extract the first word of "cc", so it can be a program name with args.
2537set dummy cc; ac_word=$2
2538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2540if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2541 $as_echo_n "(cached) " >&6
2542else
2543 if test -n "$CC"; then
2544 ac_cv_prog_CC="$CC" # Let the user override the test.
2545else
2546 ac_prog_rejected=no
2547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548for as_dir in $PATH
2549do
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2554 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2555 ac_prog_rejected=yes
2556 continue
2557 fi
2558 ac_cv_prog_CC="cc"
2559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 break 2
2561 fi
2562done
2563 done
2564IFS=$as_save_IFS
2565
2566if test $ac_prog_rejected = yes; then
2567 # We found a bogon in the path, so make sure we never use it.
2568 set dummy $ac_cv_prog_CC
2569 shift
2570 if test $# != 0; then
2571 # We chose a different compiler from the bogus one.
2572 # However, it has the same basename, so the bogon will be chosen
2573 # first if we set CC to just the basename; use the full file name.
2574 shift
2575 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2576 fi
2577fi
2578fi
2579fi
2580CC=$ac_cv_prog_CC
2581if test -n "$CC"; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2583$as_echo "$CC" >&6; }
2584else
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2586$as_echo "no" >&6; }
2587fi
2588
2589
2590fi
2591if test -z "$CC"; then
2592 if test -n "$ac_tool_prefix"; then
2593 for ac_prog in cl.exe
2594 do
2595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2596set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2598$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2599if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2600 $as_echo_n "(cached) " >&6
2601else
2602 if test -n "$CC"; then
2603 ac_cv_prog_CC="$CC" # Let the user override the test.
2604else
2605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606for as_dir in $PATH
2607do
2608 IFS=$as_save_IFS
2609 test -z "$as_dir" && as_dir=.
2610 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2612 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 break 2
2615 fi
2616done
2617 done
2618IFS=$as_save_IFS
2619
2620fi
2621fi
2622CC=$ac_cv_prog_CC
2623if test -n "$CC"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2625$as_echo "$CC" >&6; }
2626else
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2628$as_echo "no" >&6; }
2629fi
2630
2631
2632 test -n "$CC" && break
2633 done
2634fi
2635if test -z "$CC"; then
2636 ac_ct_CC=$CC
2637 for ac_prog in cl.exe
2638do
2639 # Extract the first word of "$ac_prog", so it can be a program name with args.
2640set dummy $ac_prog; ac_word=$2
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2643if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
2644 $as_echo_n "(cached) " >&6
2645else
2646 if test -n "$ac_ct_CC"; then
2647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2648else
2649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650for as_dir in $PATH
2651do
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2656 ac_cv_prog_ac_ct_CC="$ac_prog"
2657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 break 2
2659 fi
2660done
2661 done
2662IFS=$as_save_IFS
2663
2664fi
2665fi
2666ac_ct_CC=$ac_cv_prog_ac_ct_CC
2667if test -n "$ac_ct_CC"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2669$as_echo "$ac_ct_CC" >&6; }
2670else
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672$as_echo "no" >&6; }
2673fi
2674
2675
2676 test -n "$ac_ct_CC" && break
2677done
2678
2679 if test "x$ac_ct_CC" = x; then
2680 CC=""
2681 else
2682 case $cross_compiling:$ac_tool_warned in
2683yes:)
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2686ac_tool_warned=yes ;;
2687esac
2688 CC=$ac_ct_CC
2689 fi
2690fi
2691
2692fi
2693
2694
2695test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2697as_fn_error $? "no acceptable C compiler found in \$PATH
2698See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
2699
2700# Provide some information about the compiler.
2701$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2702set X $ac_compile
2703ac_compiler=$2
2704for ac_option in --version -v -V -qversion; do
2705 { { ac_try="$ac_compiler $ac_option >&5"
2706case "(($ac_try" in
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2709esac
2710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2711$as_echo "$ac_try_echo"; } >&5
2712 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2713 ac_status=$?
2714 if test -s conftest.err; then
2715 sed '10a\
2716... rest of stderr output deleted ...
2717 10q' conftest.err >conftest.er1
2718 cat conftest.er1 >&5
6bb11ab3 2719 fi
d0ac1c44 2720 rm -f conftest.er1 conftest.err
6bb11ab3
L
2721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2722 test $ac_status = 0; }
2723done
2724
2725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2726/* end confdefs.h. */
2727
2728int
2729main ()
2730{
2731
2732 ;
2733 return 0;
2734}
2735_ACEOF
2736ac_clean_files_save=$ac_clean_files
d0ac1c44 2737ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6bb11ab3
L
2738# Try to create an executable without -o first, disregard a.out.
2739# It will help us diagnose broken compilers, and finding out an intuition
2740# of exeext.
d0ac1c44
SM
2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2742$as_echo_n "checking whether the C compiler works... " >&6; }
6bb11ab3
L
2743ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2744
2745# The possible output files:
2746ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2747
2748ac_rmfiles=
2749for ac_file in $ac_files
2750do
2751 case $ac_file in
2752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2753 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2754 esac
2755done
2756rm -f $ac_rmfiles
2757
2758if { { ac_try="$ac_link_default"
2759case "(($ac_try" in
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2762esac
2763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2764$as_echo "$ac_try_echo"; } >&5
2765 (eval "$ac_link_default") 2>&5
2766 ac_status=$?
2767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2768 test $ac_status = 0; }; then :
2769 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2770# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2771# in a Makefile. We should not override ac_cv_exeext if it was cached,
2772# so that the user can short-circuit this test for compilers unknown to
2773# Autoconf.
2774for ac_file in $ac_files ''
2775do
2776 test -f "$ac_file" || continue
2777 case $ac_file in
2778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2779 ;;
2780 [ab].out )
2781 # We found the default executable, but exeext='' is most
2782 # certainly right.
2783 break;;
2784 *.* )
2785 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2786 then :; else
2787 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2788 fi
2789 # We set ac_cv_exeext here because the later test for it is not
2790 # safe: cross compilers may not add the suffix if given an `-o'
2791 # argument, so we may need to know it at that point already.
2792 # Even if this section looks crufty: it has the advantage of
2793 # actually working.
2794 break;;
2795 * )
2796 break;;
2797 esac
2798done
2799test "$ac_cv_exeext" = no && ac_cv_exeext=
2800
2801else
2802 ac_file=''
2803fi
6bb11ab3 2804if test -z "$ac_file"; then :
d0ac1c44
SM
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806$as_echo "no" >&6; }
2807$as_echo "$as_me: failed program was:" >&5
6bb11ab3
L
2808sed 's/^/| /' conftest.$ac_ext >&5
2809
2810{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2812as_fn_error 77 "C compiler cannot create executables
2813See \`config.log' for more details" "$LINENO" 5; }
2814else
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2816$as_echo "yes" >&6; }
6bb11ab3 2817fi
d0ac1c44
SM
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2819$as_echo_n "checking for C compiler default output file name... " >&6; }
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2821$as_echo "$ac_file" >&6; }
6bb11ab3
L
2822ac_exeext=$ac_cv_exeext
2823
d0ac1c44 2824rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6bb11ab3 2825ac_clean_files=$ac_clean_files_save
6bb11ab3
L
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2827$as_echo_n "checking for suffix of executables... " >&6; }
2828if { { ac_try="$ac_link"
2829case "(($ac_try" in
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831 *) ac_try_echo=$ac_try;;
2832esac
2833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2834$as_echo "$ac_try_echo"; } >&5
2835 (eval "$ac_link") 2>&5
2836 ac_status=$?
2837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2838 test $ac_status = 0; }; then :
2839 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2840# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2841# work properly (i.e., refer to `conftest.exe'), while it won't with
2842# `rm'.
2843for ac_file in conftest.exe conftest conftest.*; do
2844 test -f "$ac_file" || continue
2845 case $ac_file in
2846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2847 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2848 break;;
2849 * ) break;;
2850 esac
2851done
2852else
2853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2855as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2856See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3 2857fi
d0ac1c44 2858rm -f conftest conftest$ac_cv_exeext
6bb11ab3
L
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2860$as_echo "$ac_cv_exeext" >&6; }
2861
2862rm -f conftest.$ac_ext
2863EXEEXT=$ac_cv_exeext
2864ac_exeext=$EXEEXT
d0ac1c44
SM
2865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866/* end confdefs.h. */
2867#include <stdio.h>
2868int
2869main ()
2870{
2871FILE *f = fopen ("conftest.out", "w");
2872 return ferror (f) || fclose (f) != 0;
2873
2874 ;
2875 return 0;
2876}
2877_ACEOF
2878ac_clean_files="$ac_clean_files conftest.out"
2879# Check that the compiler produces executables we can run. If not, either
2880# the compiler is broken, or we cross compile.
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2882$as_echo_n "checking whether we are cross compiling... " >&6; }
2883if test "$cross_compiling" != yes; then
2884 { { ac_try="$ac_link"
2885case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888esac
2889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2890$as_echo "$ac_try_echo"; } >&5
2891 (eval "$ac_link") 2>&5
2892 ac_status=$?
2893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2894 test $ac_status = 0; }
2895 if { ac_try='./conftest$ac_cv_exeext'
2896 { { case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2899esac
2900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2901$as_echo "$ac_try_echo"; } >&5
2902 (eval "$ac_try") 2>&5
2903 ac_status=$?
2904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2905 test $ac_status = 0; }; }; then
2906 cross_compiling=no
2907 else
2908 if test "$cross_compiling" = maybe; then
2909 cross_compiling=yes
2910 else
2911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2913as_fn_error $? "cannot run C compiled programs.
2914If you meant to cross compile, use \`--host'.
2915See \`config.log' for more details" "$LINENO" 5; }
2916 fi
2917 fi
2918fi
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2920$as_echo "$cross_compiling" >&6; }
2921
2922rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2923ac_clean_files=$ac_clean_files_save
6bb11ab3
L
2924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2925$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 2926if ${ac_cv_objext+:} false; then :
6bb11ab3
L
2927 $as_echo_n "(cached) " >&6
2928else
2929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2930/* end confdefs.h. */
2931
2932int
2933main ()
2934{
2935
2936 ;
2937 return 0;
2938}
2939_ACEOF
2940rm -f conftest.o conftest.obj
2941if { { ac_try="$ac_compile"
2942case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2945esac
2946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2947$as_echo "$ac_try_echo"; } >&5
2948 (eval "$ac_compile") 2>&5
2949 ac_status=$?
2950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2951 test $ac_status = 0; }; then :
2952 for ac_file in conftest.o conftest.obj conftest.*; do
2953 test -f "$ac_file" || continue;
2954 case $ac_file in
2955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2956 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2957 break;;
2958 esac
2959done
2960else
2961 $as_echo "$as_me: failed program was:" >&5
2962sed 's/^/| /' conftest.$ac_ext >&5
2963
2964{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2966as_fn_error $? "cannot compute suffix of object files: cannot compile
2967See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
2968fi
2969rm -f conftest.$ac_cv_objext conftest.$ac_ext
2970fi
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2972$as_echo "$ac_cv_objext" >&6; }
2973OBJEXT=$ac_cv_objext
2974ac_objext=$OBJEXT
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2976$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 2977if ${ac_cv_c_compiler_gnu+:} false; then :
6bb11ab3
L
2978 $as_echo_n "(cached) " >&6
2979else
2980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2981/* end confdefs.h. */
2982
2983int
2984main ()
2985{
2986#ifndef __GNUC__
2987 choke me
2988#endif
2989
2990 ;
2991 return 0;
2992}
2993_ACEOF
2994if ac_fn_c_try_compile "$LINENO"; then :
2995 ac_compiler_gnu=yes
2996else
2997 ac_compiler_gnu=no
2998fi
2999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3000ac_cv_c_compiler_gnu=$ac_compiler_gnu
3001
3002fi
3003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3004$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3005if test $ac_compiler_gnu = yes; then
3006 GCC=yes
3007else
3008 GCC=
3009fi
3010ac_test_CFLAGS=${CFLAGS+set}
3011ac_save_CFLAGS=$CFLAGS
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3013$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3014if ${ac_cv_prog_cc_g+:} false; then :
6bb11ab3
L
3015 $as_echo_n "(cached) " >&6
3016else
3017 ac_save_c_werror_flag=$ac_c_werror_flag
3018 ac_c_werror_flag=yes
3019 ac_cv_prog_cc_g=no
3020 CFLAGS="-g"
3021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022/* end confdefs.h. */
3023
3024int
3025main ()
3026{
3027
3028 ;
3029 return 0;
3030}
3031_ACEOF
3032if ac_fn_c_try_compile "$LINENO"; then :
3033 ac_cv_prog_cc_g=yes
3034else
3035 CFLAGS=""
3036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037/* end confdefs.h. */
3038
3039int
3040main ()
3041{
3042
3043 ;
3044 return 0;
3045}
3046_ACEOF
3047if ac_fn_c_try_compile "$LINENO"; then :
3048
3049else
3050 ac_c_werror_flag=$ac_save_c_werror_flag
3051 CFLAGS="-g"
3052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3053/* end confdefs.h. */
3054
3055int
3056main ()
3057{
3058
3059 ;
3060 return 0;
3061}
3062_ACEOF
3063if ac_fn_c_try_compile "$LINENO"; then :
3064 ac_cv_prog_cc_g=yes
3065fi
3066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067fi
3068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3069fi
3070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3071 ac_c_werror_flag=$ac_save_c_werror_flag
3072fi
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3074$as_echo "$ac_cv_prog_cc_g" >&6; }
3075if test "$ac_test_CFLAGS" = set; then
3076 CFLAGS=$ac_save_CFLAGS
3077elif test $ac_cv_prog_cc_g = yes; then
3078 if test "$GCC" = yes; then
3079 CFLAGS="-g -O2"
3080 else
3081 CFLAGS="-g"
3082 fi
3083else
3084 if test "$GCC" = yes; then
3085 CFLAGS="-O2"
3086 else
3087 CFLAGS=
3088 fi
3089fi
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3091$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3092if ${ac_cv_prog_cc_c89+:} false; then :
6bb11ab3
L
3093 $as_echo_n "(cached) " >&6
3094else
3095 ac_cv_prog_cc_c89=no
3096ac_save_CC=$CC
3097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098/* end confdefs.h. */
3099#include <stdarg.h>
3100#include <stdio.h>
d0ac1c44 3101struct stat;
6bb11ab3
L
3102/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3103struct buf { int x; };
3104FILE * (*rcsopen) (struct buf *, struct stat *, int);
3105static char *e (p, i)
3106 char **p;
3107 int i;
3108{
3109 return p[i];
3110}
3111static char *f (char * (*g) (char **, int), char **p, ...)
3112{
3113 char *s;
3114 va_list v;
3115 va_start (v,p);
3116 s = g (p, va_arg (v,int));
3117 va_end (v);
3118 return s;
3119}
3120
3121/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3122 function prototypes and stuff, but not '\xHH' hex character constants.
3123 These don't provoke an error unfortunately, instead are silently treated
3124 as 'x'. The following induces an error, until -std is added to get
3125 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3126 array size at least. It's necessary to write '\x00'==0 to get something
3127 that's true only with -std. */
3128int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3129
3130/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3131 inside strings and character constants. */
3132#define FOO(x) 'x'
3133int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3134
3135int test (int i, double x);
3136struct s1 {int (*f) (int a);};
3137struct s2 {int (*f) (double a);};
3138int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3139int argc;
3140char **argv;
3141int
3142main ()
3143{
3144return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3145 ;
3146 return 0;
3147}
3148_ACEOF
3149for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3150 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3151do
3152 CC="$ac_save_CC $ac_arg"
3153 if ac_fn_c_try_compile "$LINENO"; then :
3154 ac_cv_prog_cc_c89=$ac_arg
3155fi
3156rm -f core conftest.err conftest.$ac_objext
3157 test "x$ac_cv_prog_cc_c89" != "xno" && break
3158done
3159rm -f conftest.$ac_ext
3160CC=$ac_save_CC
3161
3162fi
3163# AC_CACHE_VAL
3164case "x$ac_cv_prog_cc_c89" in
3165 x)
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3167$as_echo "none needed" >&6; } ;;
3168 xno)
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3170$as_echo "unsupported" >&6; } ;;
3171 *)
3172 CC="$CC $ac_cv_prog_cc_c89"
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3174$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3175esac
3176if test "x$ac_cv_prog_cc_c89" != xno; then :
3177
3178fi
3179
3180ac_ext=c
3181ac_cpp='$CPP $CPPFLAGS'
3182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3184ac_compiler_gnu=$ac_cv_c_compiler_gnu
3185
c2783492 3186
ebe9564b
MF
3187ac_ext=c
3188ac_cpp='$CPP $CPPFLAGS'
3189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3193$as_echo_n "checking how to run the C preprocessor... " >&6; }
3194# On Suns, sometimes $CPP names a directory.
3195if test -n "$CPP" && test -d "$CPP"; then
3196 CPP=
3197fi
3198if test -z "$CPP"; then
3199 if ${ac_cv_prog_CPP+:} false; then :
3200 $as_echo_n "(cached) " >&6
3201else
3202 # Double quotes because CPP needs to be expanded
3203 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3204 do
3205 ac_preproc_ok=false
3206for ac_c_preproc_warn_flag in '' yes
3207do
3208 # Use a header file that comes with gcc, so configuring glibc
3209 # with a fresh cross-compiler works.
3210 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3211 # <limits.h> exists even on freestanding compilers.
3212 # On the NeXT, cc -E runs the code through the compiler's parser,
3213 # not just through cpp. "Syntax error" is here to catch this case.
3214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215/* end confdefs.h. */
3216#ifdef __STDC__
3217# include <limits.h>
3218#else
3219# include <assert.h>
3220#endif
3221 Syntax error
3222_ACEOF
3223if ac_fn_c_try_cpp "$LINENO"; then :
3224
3225else
3226 # Broken: fails on valid input.
3227continue
3228fi
3229rm -f conftest.err conftest.i conftest.$ac_ext
3230
3231 # OK, works on sane cases. Now check whether nonexistent headers
3232 # can be detected and how.
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234/* end confdefs.h. */
3235#include <ac_nonexistent.h>
3236_ACEOF
3237if ac_fn_c_try_cpp "$LINENO"; then :
3238 # Broken: success on invalid input.
3239continue
3240else
3241 # Passes both tests.
3242ac_preproc_ok=:
3243break
3244fi
3245rm -f conftest.err conftest.i conftest.$ac_ext
3246
3247done
3248# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3249rm -f conftest.i conftest.err conftest.$ac_ext
3250if $ac_preproc_ok; then :
3251 break
3252fi
3253
3254 done
3255 ac_cv_prog_CPP=$CPP
3256
3257fi
3258 CPP=$ac_cv_prog_CPP
3259else
3260 ac_cv_prog_CPP=$CPP
3261fi
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3263$as_echo "$CPP" >&6; }
3264ac_preproc_ok=false
3265for ac_c_preproc_warn_flag in '' yes
3266do
3267 # Use a header file that comes with gcc, so configuring glibc
3268 # with a fresh cross-compiler works.
3269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3270 # <limits.h> exists even on freestanding compilers.
3271 # On the NeXT, cc -E runs the code through the compiler's parser,
3272 # not just through cpp. "Syntax error" is here to catch this case.
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274/* end confdefs.h. */
3275#ifdef __STDC__
3276# include <limits.h>
3277#else
3278# include <assert.h>
3279#endif
3280 Syntax error
3281_ACEOF
3282if ac_fn_c_try_cpp "$LINENO"; then :
3283
3284else
3285 # Broken: fails on valid input.
3286continue
3287fi
3288rm -f conftest.err conftest.i conftest.$ac_ext
3289
3290 # OK, works on sane cases. Now check whether nonexistent headers
3291 # can be detected and how.
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293/* end confdefs.h. */
3294#include <ac_nonexistent.h>
3295_ACEOF
3296if ac_fn_c_try_cpp "$LINENO"; then :
3297 # Broken: success on invalid input.
3298continue
3299else
3300 # Passes both tests.
3301ac_preproc_ok=:
3302break
3303fi
3304rm -f conftest.err conftest.i conftest.$ac_ext
3305
3306done
3307# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3308rm -f conftest.i conftest.err conftest.$ac_ext
3309if $ac_preproc_ok; then :
3310
3311else
3312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3315See \`config.log' for more details" "$LINENO" 5; }
3316fi
3317
3318ac_ext=c
3319ac_cpp='$CPP $CPPFLAGS'
3320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3322ac_compiler_gnu=$ac_cv_c_compiler_gnu
3323
6bb11ab3
L
3324
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3326$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 3327if ${ac_cv_path_GREP+:} false; then :
6bb11ab3
L
3328 $as_echo_n "(cached) " >&6
3329else
3330 if test -z "$GREP"; then
3331 ac_path_GREP_found=false
3332 # Loop through the user's path and test for each of PROGNAME-LIST
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3335do
3336 IFS=$as_save_IFS
3337 test -z "$as_dir" && as_dir=.
3338 for ac_prog in grep ggrep; do
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3341 as_fn_executable_p "$ac_path_GREP" || continue
6bb11ab3
L
3342# Check for GNU ac_path_GREP and select it if it is found.
3343 # Check for GNU $ac_path_GREP
3344case `"$ac_path_GREP" --version 2>&1` in
3345*GNU*)
3346 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3347*)
3348 ac_count=0
3349 $as_echo_n 0123456789 >"conftest.in"
3350 while :
3351 do
3352 cat "conftest.in" "conftest.in" >"conftest.tmp"
3353 mv "conftest.tmp" "conftest.in"
3354 cp "conftest.in" "conftest.nl"
3355 $as_echo 'GREP' >> "conftest.nl"
3356 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3357 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3358 as_fn_arith $ac_count + 1 && ac_count=$as_val
3359 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3360 # Best one so far, save it but keep looking for a better one
3361 ac_cv_path_GREP="$ac_path_GREP"
3362 ac_path_GREP_max=$ac_count
3363 fi
3364 # 10*(2^10) chars as input seems more than enough
3365 test $ac_count -gt 10 && break
3366 done
3367 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3368esac
3369
3370 $ac_path_GREP_found && break 3
3371 done
3372 done
3373 done
3374IFS=$as_save_IFS
3375 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 3376 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
3377 fi
3378else
3379 ac_cv_path_GREP=$GREP
3380fi
3381
3382fi
3383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3384$as_echo "$ac_cv_path_GREP" >&6; }
3385 GREP="$ac_cv_path_GREP"
3386
3387
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3389$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 3390if ${ac_cv_path_EGREP+:} false; then :
6bb11ab3
L
3391 $as_echo_n "(cached) " >&6
3392else
3393 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3394 then ac_cv_path_EGREP="$GREP -E"
3395 else
3396 if test -z "$EGREP"; then
3397 ac_path_EGREP_found=false
3398 # Loop through the user's path and test for each of PROGNAME-LIST
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3401do
3402 IFS=$as_save_IFS
3403 test -z "$as_dir" && as_dir=.
3404 for ac_prog in egrep; do
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3407 as_fn_executable_p "$ac_path_EGREP" || continue
6bb11ab3
L
3408# Check for GNU ac_path_EGREP and select it if it is found.
3409 # Check for GNU $ac_path_EGREP
3410case `"$ac_path_EGREP" --version 2>&1` in
3411*GNU*)
3412 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3413*)
3414 ac_count=0
3415 $as_echo_n 0123456789 >"conftest.in"
3416 while :
3417 do
3418 cat "conftest.in" "conftest.in" >"conftest.tmp"
3419 mv "conftest.tmp" "conftest.in"
3420 cp "conftest.in" "conftest.nl"
3421 $as_echo 'EGREP' >> "conftest.nl"
3422 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3423 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3424 as_fn_arith $ac_count + 1 && ac_count=$as_val
3425 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3426 # Best one so far, save it but keep looking for a better one
3427 ac_cv_path_EGREP="$ac_path_EGREP"
3428 ac_path_EGREP_max=$ac_count
3429 fi
3430 # 10*(2^10) chars as input seems more than enough
3431 test $ac_count -gt 10 && break
3432 done
3433 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3434esac
3435
3436 $ac_path_EGREP_found && break 3
3437 done
3438 done
3439 done
3440IFS=$as_save_IFS
3441 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 3442 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
3443 fi
3444else
3445 ac_cv_path_EGREP=$EGREP
3446fi
3447
3448 fi
3449fi
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3451$as_echo "$ac_cv_path_EGREP" >&6; }
3452 EGREP="$ac_cv_path_EGREP"
3453
3454
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3456$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 3457if ${ac_cv_header_stdc+:} false; then :
6bb11ab3
L
3458 $as_echo_n "(cached) " >&6
3459else
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461/* end confdefs.h. */
3462#include <stdlib.h>
3463#include <stdarg.h>
3464#include <string.h>
3465#include <float.h>
3466
3467int
3468main ()
3469{
3470
3471 ;
3472 return 0;
3473}
3474_ACEOF
3475if ac_fn_c_try_compile "$LINENO"; then :
3476 ac_cv_header_stdc=yes
3477else
3478 ac_cv_header_stdc=no
3479fi
3480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481
3482if test $ac_cv_header_stdc = yes; then
3483 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485/* end confdefs.h. */
3486#include <string.h>
3487
3488_ACEOF
3489if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3490 $EGREP "memchr" >/dev/null 2>&1; then :
3491
3492else
3493 ac_cv_header_stdc=no
3494fi
3495rm -f conftest*
3496
3497fi
3498
3499if test $ac_cv_header_stdc = yes; then
3500 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502/* end confdefs.h. */
3503#include <stdlib.h>
3504
3505_ACEOF
3506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3507 $EGREP "free" >/dev/null 2>&1; then :
3508
3509else
3510 ac_cv_header_stdc=no
3511fi
3512rm -f conftest*
3513
3514fi
3515
3516if test $ac_cv_header_stdc = yes; then
3517 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3518 if test "$cross_compiling" = yes; then :
3519 :
3520else
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522/* end confdefs.h. */
3523#include <ctype.h>
3524#include <stdlib.h>
3525#if ((' ' & 0x0FF) == 0x020)
3526# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3527# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3528#else
3529# define ISLOWER(c) \
3530 (('a' <= (c) && (c) <= 'i') \
3531 || ('j' <= (c) && (c) <= 'r') \
3532 || ('s' <= (c) && (c) <= 'z'))
3533# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3534#endif
3535
3536#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3537int
3538main ()
3539{
3540 int i;
3541 for (i = 0; i < 256; i++)
3542 if (XOR (islower (i), ISLOWER (i))
3543 || toupper (i) != TOUPPER (i))
3544 return 2;
3545 return 0;
3546}
3547_ACEOF
3548if ac_fn_c_try_run "$LINENO"; then :
3549
3550else
3551 ac_cv_header_stdc=no
3552fi
3553rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3554 conftest.$ac_objext conftest.beam conftest.$ac_ext
3555fi
3556
3557fi
3558fi
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3560$as_echo "$ac_cv_header_stdc" >&6; }
3561if test $ac_cv_header_stdc = yes; then
3562
3563$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3564
3565fi
3566
3567# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3568for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3569 inttypes.h stdint.h unistd.h
3570do :
3571 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3572ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3573"
d0ac1c44 3574if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
3575 cat >>confdefs.h <<_ACEOF
3576#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3577_ACEOF
3578
3579fi
3580
3581done
3582
3583
3584
3585 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 3586if test "x$ac_cv_header_minix_config_h" = xyes; then :
6bb11ab3
L
3587 MINIX=yes
3588else
3589 MINIX=
3590fi
3591
3592
3593 if test "$MINIX" = yes; then
3594
3595$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3596
3597
3598$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3599
3600
3601$as_echo "#define _MINIX 1" >>confdefs.h
3602
3603 fi
3604
3605
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3607$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 3608if ${ac_cv_safe_to_define___extensions__+:} false; then :
6bb11ab3
L
3609 $as_echo_n "(cached) " >&6
3610else
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612/* end confdefs.h. */
3613
d0ac1c44
SM
3614# define __EXTENSIONS__ 1
3615 $ac_includes_default
6bb11ab3
L
3616int
3617main ()
3618{
3619
3620 ;
3621 return 0;
3622}
3623_ACEOF
3624if ac_fn_c_try_compile "$LINENO"; then :
3625 ac_cv_safe_to_define___extensions__=yes
3626else
3627 ac_cv_safe_to_define___extensions__=no
3628fi
3629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630fi
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3632$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3633 test $ac_cv_safe_to_define___extensions__ = yes &&
3634 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3635
3636 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3637
3638 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3639
3640 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3641
3642 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3643
3644
3645test "$program_prefix" != NONE &&
3646 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3647# Use a double $ so make ignores it.
3648test "$program_suffix" != NONE &&
3649 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3650# Double any \ or $.
3651# By default was `s,x,x', remove it if useless.
3652ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3653program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3654
3655# Find a good install program. We prefer a C program (faster),
3656# so one script is as good as another. But avoid the broken or
3657# incompatible versions:
3658# SysV /etc/install, /usr/sbin/install
3659# SunOS /usr/etc/install
3660# IRIX /sbin/install
3661# AIX /bin/install
3662# AmigaOS /C/install, which installs bootblocks on floppy discs
3663# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3664# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3665# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3666# OS/2's system install, which has a completely different semantic
3667# ./install, which can be erroneously created by make from ./install.sh.
3668# Reject install programs that cannot install multiple files.
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3670$as_echo_n "checking for a BSD-compatible install... " >&6; }
3671if test -z "$INSTALL"; then
d0ac1c44 3672if ${ac_cv_path_install+:} false; then :
6bb11ab3
L
3673 $as_echo_n "(cached) " >&6
3674else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676for as_dir in $PATH
3677do
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 # Account for people who put trailing slashes in PATH elements.
3681case $as_dir/ in #((
3682 ./ | .// | /[cC]/* | \
3683 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3684 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3685 /usr/ucb/* ) ;;
3686 *)
3687 # OSF1 and SCO ODT 3.0 have their own names for install.
3688 # Don't use installbsd from OSF since it installs stuff as root
3689 # by default.
3690 for ac_prog in ginstall scoinst install; do
3691 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3692 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6bb11ab3
L
3693 if test $ac_prog = install &&
3694 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3695 # AIX install. It has an incompatible calling convention.
3696 :
3697 elif test $ac_prog = install &&
3698 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3699 # program-specific install script used by HP pwplus--don't use.
3700 :
3701 else
3702 rm -rf conftest.one conftest.two conftest.dir
3703 echo one > conftest.one
3704 echo two > conftest.two
3705 mkdir conftest.dir
3706 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3707 test -s conftest.one && test -s conftest.two &&
3708 test -s conftest.dir/conftest.one &&
3709 test -s conftest.dir/conftest.two
3710 then
3711 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3712 break 3
3713 fi
3714 fi
3715 fi
3716 done
3717 done
3718 ;;
3719esac
3720
3721 done
3722IFS=$as_save_IFS
3723
3724rm -rf conftest.one conftest.two conftest.dir
3725
3726fi
3727 if test "${ac_cv_path_install+set}" = set; then
3728 INSTALL=$ac_cv_path_install
3729 else
3730 # As a last resort, use the slow shell script. Don't cache a
3731 # value for INSTALL within a source directory, because that will
3732 # break other packages using the cache if that directory is
3733 # removed, or if the value is a relative name.
3734 INSTALL=$ac_install_sh
3735 fi
3736fi
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3738$as_echo "$INSTALL" >&6; }
3739
3740# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3741# It thinks the first close brace ends the variable substitution.
3742test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3743
3744test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3745
3746test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3747
3748rm -rf .tst 2>/dev/null
3749mkdir .tst 2>/dev/null
3750if test -d .tst; then
3751 am__leading_dot=.
3752else
3753 am__leading_dot=_
3754fi
3755rmdir .tst 2>/dev/null
3756
3757DEPDIR="${am__leading_dot}deps"
3758
3759case `pwd` in
3760 *\ * | *\ *)
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3762$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3763esac
3764
3765
3766
3767macro_version='2.2.7a'
3768macro_revision='1.3134'
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782ltmain="$ac_aux_dir/ltmain.sh"
3783
3784# Backslashify metacharacters that are still active within
3785# double-quoted strings.
3786sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3787
3788# Same as above, but do not quote variable references.
3789double_quote_subst='s/\(["`\\]\)/\\\1/g'
3790
3791# Sed substitution to delay expansion of an escaped shell variable in a
3792# double_quote_subst'ed string.
3793delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3794
3795# Sed substitution to delay expansion of an escaped single quote.
3796delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3797
3798# Sed substitution to avoid accidental globbing in evaled expressions
3799no_glob_subst='s/\*/\\\*/g'
3800
3801ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3802ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3803ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3804
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3806$as_echo_n "checking how to print strings... " >&6; }
3807# Test print first, because it will be a builtin if present.
3808if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3809 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3810 ECHO='print -r --'
3811elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3812 ECHO='printf %s\n'
3813else
3814 # Use this function as a fallback that always works.
3815 func_fallback_echo ()
3816 {
3817 eval 'cat <<_LTECHO_EOF
3818$1
3819_LTECHO_EOF'
3820 }
3821 ECHO='func_fallback_echo'
3822fi
3823
3824# func_echo_all arg...
3825# Invoke $ECHO with all args, space-separated.
3826func_echo_all ()
3827{
3828 $ECHO ""
3829}
3830
3831case "$ECHO" in
3832 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3833$as_echo "printf" >&6; } ;;
3834 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3835$as_echo "print -r" >&6; } ;;
3836 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3837$as_echo "cat" >&6; } ;;
3838esac
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3854$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 3855if ${ac_cv_path_SED+:} false; then :
6bb11ab3
L
3856 $as_echo_n "(cached) " >&6
3857else
3858 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3859 for ac_i in 1 2 3 4 5 6 7; do
3860 ac_script="$ac_script$as_nl$ac_script"
3861 done
3862 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3863 { ac_script=; unset ac_script;}
3864 if test -z "$SED"; then
3865 ac_path_SED_found=false
3866 # Loop through the user's path and test for each of PROGNAME-LIST
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868for as_dir in $PATH
3869do
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for ac_prog in sed gsed; do
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3875 as_fn_executable_p "$ac_path_SED" || continue
6bb11ab3
L
3876# Check for GNU ac_path_SED and select it if it is found.
3877 # Check for GNU $ac_path_SED
3878case `"$ac_path_SED" --version 2>&1` in
3879*GNU*)
3880 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3881*)
3882 ac_count=0
3883 $as_echo_n 0123456789 >"conftest.in"
3884 while :
3885 do
3886 cat "conftest.in" "conftest.in" >"conftest.tmp"
3887 mv "conftest.tmp" "conftest.in"
3888 cp "conftest.in" "conftest.nl"
3889 $as_echo '' >> "conftest.nl"
3890 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3892 as_fn_arith $ac_count + 1 && ac_count=$as_val
3893 if test $ac_count -gt ${ac_path_SED_max-0}; then
3894 # Best one so far, save it but keep looking for a better one
3895 ac_cv_path_SED="$ac_path_SED"
3896 ac_path_SED_max=$ac_count
3897 fi
3898 # 10*(2^10) chars as input seems more than enough
3899 test $ac_count -gt 10 && break
3900 done
3901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3902esac
3903
3904 $ac_path_SED_found && break 3
3905 done
3906 done
3907 done
3908IFS=$as_save_IFS
3909 if test -z "$ac_cv_path_SED"; then
d0ac1c44 3910 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6bb11ab3
L
3911 fi
3912else
3913 ac_cv_path_SED=$SED
3914fi
3915
3916fi
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3918$as_echo "$ac_cv_path_SED" >&6; }
3919 SED="$ac_cv_path_SED"
3920 rm -f conftest.sed
3921
3922test -z "$SED" && SED=sed
3923Xsed="$SED -e 1s/^X//"
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3936$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 3937if ${ac_cv_path_FGREP+:} false; then :
6bb11ab3
L
3938 $as_echo_n "(cached) " >&6
3939else
3940 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3941 then ac_cv_path_FGREP="$GREP -F"
3942 else
3943 if test -z "$FGREP"; then
3944 ac_path_FGREP_found=false
3945 # Loop through the user's path and test for each of PROGNAME-LIST
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3948do
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_prog in fgrep; do
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3954 as_fn_executable_p "$ac_path_FGREP" || continue
6bb11ab3
L
3955# Check for GNU ac_path_FGREP and select it if it is found.
3956 # Check for GNU $ac_path_FGREP
3957case `"$ac_path_FGREP" --version 2>&1` in
3958*GNU*)
3959 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3960*)
3961 ac_count=0
3962 $as_echo_n 0123456789 >"conftest.in"
3963 while :
3964 do
3965 cat "conftest.in" "conftest.in" >"conftest.tmp"
3966 mv "conftest.tmp" "conftest.in"
3967 cp "conftest.in" "conftest.nl"
3968 $as_echo 'FGREP' >> "conftest.nl"
3969 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3971 as_fn_arith $ac_count + 1 && ac_count=$as_val
3972 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3973 # Best one so far, save it but keep looking for a better one
3974 ac_cv_path_FGREP="$ac_path_FGREP"
3975 ac_path_FGREP_max=$ac_count
3976 fi
3977 # 10*(2^10) chars as input seems more than enough
3978 test $ac_count -gt 10 && break
3979 done
3980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3981esac
3982
3983 $ac_path_FGREP_found && break 3
3984 done
3985 done
3986 done
3987IFS=$as_save_IFS
3988 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 3989 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
3990 fi
3991else
3992 ac_cv_path_FGREP=$FGREP
3993fi
3994
3995 fi
3996fi
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3998$as_echo "$ac_cv_path_FGREP" >&6; }
3999 FGREP="$ac_cv_path_FGREP"
4000
4001
4002test -z "$GREP" && GREP=grep
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022# Check whether --with-gnu-ld was given.
4023if test "${with_gnu_ld+set}" = set; then :
4024 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4025else
4026 with_gnu_ld=no
4027fi
4028
4029ac_prog=ld
4030if test "$GCC" = yes; then
4031 # Check if gcc -print-prog-name=ld gives a path.
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4033$as_echo_n "checking for ld used by $CC... " >&6; }
4034 case $host in
4035 *-*-mingw*)
4036 # gcc leaves a trailing carriage return which upsets mingw
4037 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4038 *)
4039 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4040 esac
4041 case $ac_prog in
4042 # Accept absolute paths.
4043 [\\/]* | ?:[\\/]*)
4044 re_direlt='/[^/][^/]*/\.\./'
4045 # Canonicalize the pathname of ld
4046 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4047 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4048 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4049 done
4050 test -z "$LD" && LD="$ac_prog"
4051 ;;
4052 "")
4053 # If it fails, then pretend we aren't using GCC.
4054 ac_prog=ld
4055 ;;
4056 *)
4057 # If it is relative, then search for the first ld in PATH.
4058 with_gnu_ld=unknown
4059 ;;
4060 esac
4061elif test "$with_gnu_ld" = yes; then
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4063$as_echo_n "checking for GNU ld... " >&6; }
4064else
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4066$as_echo_n "checking for non-GNU ld... " >&6; }
4067fi
d0ac1c44 4068if ${lt_cv_path_LD+:} false; then :
6bb11ab3
L
4069 $as_echo_n "(cached) " >&6
4070else
4071 if test -z "$LD"; then
4072 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4073 for ac_dir in $PATH; do
4074 IFS="$lt_save_ifs"
4075 test -z "$ac_dir" && ac_dir=.
4076 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4077 lt_cv_path_LD="$ac_dir/$ac_prog"
4078 # Check to see if the program is GNU ld. I'd rather use --version,
4079 # but apparently some variants of GNU ld only accept -v.
4080 # Break only if it was the GNU/non-GNU ld that we prefer.
4081 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4082 *GNU* | *'with BFD'*)
4083 test "$with_gnu_ld" != no && break
4084 ;;
4085 *)
4086 test "$with_gnu_ld" != yes && break
4087 ;;
4088 esac
4089 fi
4090 done
4091 IFS="$lt_save_ifs"
4092else
4093 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4094fi
4095fi
4096
4097LD="$lt_cv_path_LD"
4098if test -n "$LD"; then
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4100$as_echo "$LD" >&6; }
4101else
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103$as_echo "no" >&6; }
4104fi
d0ac1c44 4105test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6bb11ab3
L
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4107$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 4108if ${lt_cv_prog_gnu_ld+:} false; then :
6bb11ab3
L
4109 $as_echo_n "(cached) " >&6
4110else
4111 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4112case `$LD -v 2>&1 </dev/null` in
4113*GNU* | *'with BFD'*)
4114 lt_cv_prog_gnu_ld=yes
4115 ;;
4116*)
4117 lt_cv_prog_gnu_ld=no
4118 ;;
4119esac
4120fi
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4122$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4123with_gnu_ld=$lt_cv_prog_gnu_ld
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4134$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 4135if ${lt_cv_path_NM+:} false; then :
6bb11ab3
L
4136 $as_echo_n "(cached) " >&6
4137else
4138 if test -n "$NM"; then
4139 # Let the user override the test.
4140 lt_cv_path_NM="$NM"
4141else
4142 lt_nm_to_check="${ac_tool_prefix}nm"
4143 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4144 lt_nm_to_check="$lt_nm_to_check nm"
4145 fi
4146 for lt_tmp_nm in $lt_nm_to_check; do
4147 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4148 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4149 IFS="$lt_save_ifs"
4150 test -z "$ac_dir" && ac_dir=.
4151 tmp_nm="$ac_dir/$lt_tmp_nm"
4152 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4153 # Check to see if the nm accepts a BSD-compat flag.
4154 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4155 # nm: unknown option "B" ignored
4156 # Tru64's nm complains that /dev/null is an invalid object file
4157 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4158 */dev/null* | *'Invalid file or object type'*)
4159 lt_cv_path_NM="$tmp_nm -B"
4160 break
4161 ;;
4162 *)
4163 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4164 */dev/null*)
4165 lt_cv_path_NM="$tmp_nm -p"
4166 break
4167 ;;
4168 *)
4169 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4170 continue # so that we can try to find one that supports BSD flags
4171 ;;
4172 esac
4173 ;;
4174 esac
4175 fi
4176 done
4177 IFS="$lt_save_ifs"
4178 done
4179 : ${lt_cv_path_NM=no}
4180fi
4181fi
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4183$as_echo "$lt_cv_path_NM" >&6; }
4184if test "$lt_cv_path_NM" != "no"; then
4185 NM="$lt_cv_path_NM"
4186else
4187 # Didn't find any BSD compatible name lister, look for dumpbin.
4188 if test -n "$DUMPBIN"; then :
4189 # Let the user override the test.
4190 else
4191 if test -n "$ac_tool_prefix"; then
4192 for ac_prog in dumpbin "link -dump"
4193 do
4194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4195set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4198if ${ac_cv_prog_DUMPBIN+:} false; then :
6bb11ab3
L
4199 $as_echo_n "(cached) " >&6
4200else
4201 if test -n "$DUMPBIN"; then
4202 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4203else
4204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205for as_dir in $PATH
4206do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4211 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4214 fi
4215done
4216 done
4217IFS=$as_save_IFS
4218
4219fi
4220fi
4221DUMPBIN=$ac_cv_prog_DUMPBIN
4222if test -n "$DUMPBIN"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4224$as_echo "$DUMPBIN" >&6; }
4225else
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227$as_echo "no" >&6; }
4228fi
4229
4230
4231 test -n "$DUMPBIN" && break
4232 done
4233fi
4234if test -z "$DUMPBIN"; then
4235 ac_ct_DUMPBIN=$DUMPBIN
4236 for ac_prog in dumpbin "link -dump"
4237do
4238 # Extract the first word of "$ac_prog", so it can be a program name with args.
4239set dummy $ac_prog; ac_word=$2
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4242if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6bb11ab3
L
4243 $as_echo_n "(cached) " >&6
4244else
4245 if test -n "$ac_ct_DUMPBIN"; then
4246 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4247else
4248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249for as_dir in $PATH
4250do
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4255 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 break 2
4258 fi
4259done
4260 done
4261IFS=$as_save_IFS
4262
4263fi
4264fi
4265ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4266if test -n "$ac_ct_DUMPBIN"; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4268$as_echo "$ac_ct_DUMPBIN" >&6; }
4269else
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271$as_echo "no" >&6; }
4272fi
4273
4274
4275 test -n "$ac_ct_DUMPBIN" && break
4276done
4277
4278 if test "x$ac_ct_DUMPBIN" = x; then
4279 DUMPBIN=":"
4280 else
4281 case $cross_compiling:$ac_tool_warned in
4282yes:)
4283{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4284$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4285ac_tool_warned=yes ;;
4286esac
4287 DUMPBIN=$ac_ct_DUMPBIN
4288 fi
4289fi
4290
4291 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4292 *COFF*)
4293 DUMPBIN="$DUMPBIN -symbols"
4294 ;;
4295 *)
4296 DUMPBIN=:
4297 ;;
4298 esac
4299 fi
4300
4301 if test "$DUMPBIN" != ":"; then
4302 NM="$DUMPBIN"
4303 fi
4304fi
4305test -z "$NM" && NM=nm
4306
4307
4308
4309
4310
4311
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4313$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 4314if ${lt_cv_nm_interface+:} false; then :
6bb11ab3
L
4315 $as_echo_n "(cached) " >&6
4316else
4317 lt_cv_nm_interface="BSD nm"
4318 echo "int some_variable = 0;" > conftest.$ac_ext
4319 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4320 (eval "$ac_compile" 2>conftest.err)
4321 cat conftest.err >&5
4322 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4323 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4324 cat conftest.err >&5
4325 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4326 cat conftest.out >&5
4327 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4328 lt_cv_nm_interface="MS dumpbin"
4329 fi
4330 rm -f conftest*
4331fi
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4333$as_echo "$lt_cv_nm_interface" >&6; }
4334
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4336$as_echo_n "checking whether ln -s works... " >&6; }
4337LN_S=$as_ln_s
4338if test "$LN_S" = "ln -s"; then
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4340$as_echo "yes" >&6; }
4341else
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4343$as_echo "no, using $LN_S" >&6; }
4344fi
4345
4346# find the maximum length of command line arguments
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4348$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 4349if ${lt_cv_sys_max_cmd_len+:} false; then :
6bb11ab3
L
4350 $as_echo_n "(cached) " >&6
4351else
4352 i=0
4353 teststring="ABCD"
4354
4355 case $build_os in
4356 msdosdjgpp*)
4357 # On DJGPP, this test can blow up pretty badly due to problems in libc
4358 # (any single argument exceeding 2000 bytes causes a buffer overrun
4359 # during glob expansion). Even if it were fixed, the result of this
4360 # check would be larger than it should be.
4361 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4362 ;;
4363
4364 gnu*)
4365 # Under GNU Hurd, this test is not required because there is
4366 # no limit to the length of command line arguments.
4367 # Libtool will interpret -1 as no limit whatsoever
4368 lt_cv_sys_max_cmd_len=-1;
4369 ;;
4370
4371 cygwin* | mingw* | cegcc*)
4372 # On Win9x/ME, this test blows up -- it succeeds, but takes
4373 # about 5 minutes as the teststring grows exponentially.
4374 # Worse, since 9x/ME are not pre-emptively multitasking,
4375 # you end up with a "frozen" computer, even though with patience
4376 # the test eventually succeeds (with a max line length of 256k).
4377 # Instead, let's just punt: use the minimum linelength reported by
4378 # all of the supported platforms: 8192 (on NT/2K/XP).
4379 lt_cv_sys_max_cmd_len=8192;
4380 ;;
4381
4382 mint*)
4383 # On MiNT this can take a long time and run out of memory.
4384 lt_cv_sys_max_cmd_len=8192;
4385 ;;
4386
4387 amigaos*)
4388 # On AmigaOS with pdksh, this test takes hours, literally.
4389 # So we just punt and use a minimum line length of 8192.
4390 lt_cv_sys_max_cmd_len=8192;
4391 ;;
4392
4393 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4394 # This has been around since 386BSD, at least. Likely further.
4395 if test -x /sbin/sysctl; then
4396 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4397 elif test -x /usr/sbin/sysctl; then
4398 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4399 else
4400 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4401 fi
4402 # And add a safety zone
4403 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4404 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4405 ;;
4406
4407 interix*)
4408 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4409 lt_cv_sys_max_cmd_len=196608
4410 ;;
4411
4412 osf*)
4413 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4414 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4415 # nice to cause kernel panics so lets avoid the loop below.
4416 # First set a reasonable default.
4417 lt_cv_sys_max_cmd_len=16384
4418 #
4419 if test -x /sbin/sysconfig; then
4420 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4421 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4422 esac
4423 fi
4424 ;;
4425 sco3.2v5*)
4426 lt_cv_sys_max_cmd_len=102400
4427 ;;
4428 sysv5* | sco5v6* | sysv4.2uw2*)
4429 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4430 if test -n "$kargmax"; then
4431 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4432 else
4433 lt_cv_sys_max_cmd_len=32768
4434 fi
4435 ;;
4436 *)
4437 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4438 if test -n "$lt_cv_sys_max_cmd_len"; then
4439 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4441 else
4442 # Make teststring a little bigger before we do anything with it.
4443 # a 1K string should be a reasonable start.
4444 for i in 1 2 3 4 5 6 7 8 ; do
4445 teststring=$teststring$teststring
4446 done
4447 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4448 # If test is not a shell built-in, we'll probably end up computing a
4449 # maximum length that is only half of the actual maximum length, but
4450 # we can't tell.
4451 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4452 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4453 test $i != 17 # 1/2 MB should be enough
4454 do
4455 i=`expr $i + 1`
4456 teststring=$teststring$teststring
4457 done
4458 # Only check the string length outside the loop.
4459 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4460 teststring=
4461 # Add a significant safety factor because C++ compilers can tack on
4462 # massive amounts of additional arguments before passing them to the
4463 # linker. It appears as though 1/2 is a usable value.
4464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4465 fi
4466 ;;
4467 esac
4468
4469fi
4470
4471if test -n $lt_cv_sys_max_cmd_len ; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4473$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4474else
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4476$as_echo "none" >&6; }
4477fi
4478max_cmd_len=$lt_cv_sys_max_cmd_len
4479
4480
4481
4482
4483
4484
4485: ${CP="cp -f"}
4486: ${MV="mv -f"}
4487: ${RM="rm -f"}
4488
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4490$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4491# Try some XSI features
4492xsi_shell=no
4493( _lt_dummy="a/b/c"
4494 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4495 = c,a/b,, \
4496 && eval 'test $(( 1 + 1 )) -eq 2 \
4497 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4498 && xsi_shell=yes
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4500$as_echo "$xsi_shell" >&6; }
4501
4502
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4504$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4505lt_shell_append=no
4506( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4507 >/dev/null 2>&1 \
4508 && lt_shell_append=yes
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4510$as_echo "$lt_shell_append" >&6; }
4511
4512
4513if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4514 lt_unset=unset
4515else
4516 lt_unset=false
4517fi
4518
4519
4520
4521
4522
4523# test EBCDIC or ASCII
4524case `echo X|tr X '\101'` in
4525 A) # ASCII based system
4526 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4527 lt_SP2NL='tr \040 \012'
4528 lt_NL2SP='tr \015\012 \040\040'
4529 ;;
4530 *) # EBCDIC based system
4531 lt_SP2NL='tr \100 \n'
4532 lt_NL2SP='tr \r\n \100\100'
4533 ;;
4534esac
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4545$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 4546if ${lt_cv_ld_reload_flag+:} false; then :
6bb11ab3
L
4547 $as_echo_n "(cached) " >&6
4548else
4549 lt_cv_ld_reload_flag='-r'
4550fi
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4552$as_echo "$lt_cv_ld_reload_flag" >&6; }
4553reload_flag=$lt_cv_ld_reload_flag
4554case $reload_flag in
4555"" | " "*) ;;
4556*) reload_flag=" $reload_flag" ;;
4557esac
4558reload_cmds='$LD$reload_flag -o $output$reload_objs'
4559case $host_os in
4560 darwin*)
4561 if test "$GCC" = yes; then
4562 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4563 else
4564 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4565 fi
4566 ;;
4567esac
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577if test -n "$ac_tool_prefix"; then
4578 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4579set dummy ${ac_tool_prefix}objdump; ac_word=$2
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4582if ${ac_cv_prog_OBJDUMP+:} false; then :
6bb11ab3
L
4583 $as_echo_n "(cached) " >&6
4584else
4585 if test -n "$OBJDUMP"; then
4586 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4587else
4588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589for as_dir in $PATH
4590do
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4595 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 break 2
4598 fi
4599done
4600 done
4601IFS=$as_save_IFS
4602
4603fi
4604fi
4605OBJDUMP=$ac_cv_prog_OBJDUMP
4606if test -n "$OBJDUMP"; then
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4608$as_echo "$OBJDUMP" >&6; }
4609else
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611$as_echo "no" >&6; }
4612fi
4613
4614
4615fi
4616if test -z "$ac_cv_prog_OBJDUMP"; then
4617 ac_ct_OBJDUMP=$OBJDUMP
4618 # Extract the first word of "objdump", so it can be a program name with args.
4619set dummy objdump; ac_word=$2
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4622if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6bb11ab3
L
4623 $as_echo_n "(cached) " >&6
4624else
4625 if test -n "$ac_ct_OBJDUMP"; then
4626 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4627else
4628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629for as_dir in $PATH
4630do
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4635 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4638 fi
4639done
4640 done
4641IFS=$as_save_IFS
4642
4643fi
4644fi
4645ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4646if test -n "$ac_ct_OBJDUMP"; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4648$as_echo "$ac_ct_OBJDUMP" >&6; }
4649else
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651$as_echo "no" >&6; }
4652fi
4653
4654 if test "x$ac_ct_OBJDUMP" = x; then
4655 OBJDUMP="false"
4656 else
4657 case $cross_compiling:$ac_tool_warned in
4658yes:)
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4661ac_tool_warned=yes ;;
4662esac
4663 OBJDUMP=$ac_ct_OBJDUMP
4664 fi
4665else
4666 OBJDUMP="$ac_cv_prog_OBJDUMP"
4667fi
4668
4669test -z "$OBJDUMP" && OBJDUMP=objdump
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4680$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 4681if ${lt_cv_deplibs_check_method+:} false; then :
6bb11ab3
L
4682 $as_echo_n "(cached) " >&6
4683else
4684 lt_cv_file_magic_cmd='$MAGIC_CMD'
4685lt_cv_file_magic_test_file=
4686lt_cv_deplibs_check_method='unknown'
4687# Need to set the preceding variable on all platforms that support
4688# interlibrary dependencies.
4689# 'none' -- dependencies not supported.
4690# `unknown' -- same as none, but documents that we really don't know.
4691# 'pass_all' -- all dependencies passed with no checks.
4692# 'test_compile' -- check by making test program.
4693# 'file_magic [[regex]]' -- check by looking for files in library path
4694# which responds to the $file_magic_cmd with a given extended regex.
4695# If you have `file' or equivalent on your system and you're not sure
4696# whether `pass_all' will *always* work, you probably want this one.
4697
4698case $host_os in
4699aix[4-9]*)
4700 lt_cv_deplibs_check_method=pass_all
4701 ;;
4702
4703beos*)
4704 lt_cv_deplibs_check_method=pass_all
4705 ;;
4706
4707bsdi[45]*)
4708 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4709 lt_cv_file_magic_cmd='/usr/bin/file -L'
4710 lt_cv_file_magic_test_file=/shlib/libc.so
4711 ;;
4712
4713cygwin*)
4714 # func_win32_libid is a shell function defined in ltmain.sh
4715 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4716 lt_cv_file_magic_cmd='func_win32_libid'
4717 ;;
4718
4719mingw* | pw32*)
4720 # Base MSYS/MinGW do not provide the 'file' command needed by
4721 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4722 # unless we find 'file', for example because we are cross-compiling.
4723 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4724 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4725 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4726 lt_cv_file_magic_cmd='func_win32_libid'
4727 else
4728 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4729 lt_cv_file_magic_cmd='$OBJDUMP -f'
4730 fi
4731 ;;
4732
4733cegcc*)
4734 # use the weaker test based on 'objdump'. See mingw*.
4735 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4736 lt_cv_file_magic_cmd='$OBJDUMP -f'
4737 ;;
4738
4739darwin* | rhapsody*)
4740 lt_cv_deplibs_check_method=pass_all
4741 ;;
4742
4743freebsd* | dragonfly*)
4744 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4745 case $host_cpu in
4746 i*86 )
4747 # Not sure whether the presence of OpenBSD here was a mistake.
4748 # Let's accept both of them until this is cleared up.
4749 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4750 lt_cv_file_magic_cmd=/usr/bin/file
4751 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4752 ;;
4753 esac
4754 else
4755 lt_cv_deplibs_check_method=pass_all
4756 fi
4757 ;;
4758
4759gnu*)
4760 lt_cv_deplibs_check_method=pass_all
4761 ;;
4762
4763haiku*)
4764 lt_cv_deplibs_check_method=pass_all
4765 ;;
4766
4767hpux10.20* | hpux11*)
4768 lt_cv_file_magic_cmd=/usr/bin/file
4769 case $host_cpu in
4770 ia64*)
4771 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4772 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4773 ;;
4774 hppa*64*)
4775 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]'
4776 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4777 ;;
4778 *)
4779 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4780 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4781 ;;
4782 esac
4783 ;;
4784
4785interix[3-9]*)
4786 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4788 ;;
4789
4790irix5* | irix6* | nonstopux*)
4791 case $LD in
4792 *-32|*"-32 ") libmagic=32-bit;;
4793 *-n32|*"-n32 ") libmagic=N32;;
4794 *-64|*"-64 ") libmagic=64-bit;;
4795 *) libmagic=never-match;;
4796 esac
4797 lt_cv_deplibs_check_method=pass_all
4798 ;;
4799
4800# This must be Linux ELF.
4801linux* | k*bsd*-gnu | kopensolaris*-gnu)
4802 lt_cv_deplibs_check_method=pass_all
4803 ;;
4804
4805netbsd*)
4806 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4807 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4808 else
4809 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4810 fi
4811 ;;
4812
4813newos6*)
4814 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4815 lt_cv_file_magic_cmd=/usr/bin/file
4816 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4817 ;;
4818
4819*nto* | *qnx*)
4820 lt_cv_deplibs_check_method=pass_all
4821 ;;
4822
4823openbsd*)
4824 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4825 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4826 else
4827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4828 fi
4829 ;;
4830
4831osf3* | osf4* | osf5*)
4832 lt_cv_deplibs_check_method=pass_all
4833 ;;
4834
4835rdos*)
4836 lt_cv_deplibs_check_method=pass_all
4837 ;;
4838
4839solaris*)
4840 lt_cv_deplibs_check_method=pass_all
4841 ;;
4842
4843sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4844 lt_cv_deplibs_check_method=pass_all
4845 ;;
4846
4847sysv4 | sysv4.3*)
4848 case $host_vendor in
4849 motorola)
4850 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]'
4851 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4852 ;;
4853 ncr)
4854 lt_cv_deplibs_check_method=pass_all
4855 ;;
4856 sequent)
4857 lt_cv_file_magic_cmd='/bin/file'
4858 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4859 ;;
4860 sni)
4861 lt_cv_file_magic_cmd='/bin/file'
4862 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4863 lt_cv_file_magic_test_file=/lib/libc.so
4864 ;;
4865 siemens)
4866 lt_cv_deplibs_check_method=pass_all
4867 ;;
4868 pc)
4869 lt_cv_deplibs_check_method=pass_all
4870 ;;
4871 esac
4872 ;;
4873
4874tpf*)
4875 lt_cv_deplibs_check_method=pass_all
4876 ;;
4877esac
4878
4879fi
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4881$as_echo "$lt_cv_deplibs_check_method" >&6; }
4882file_magic_cmd=$lt_cv_file_magic_cmd
4883deplibs_check_method=$lt_cv_deplibs_check_method
4884test -z "$deplibs_check_method" && deplibs_check_method=unknown
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
68ed2854
MF
4897plugin_option=
4898plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
4899for plugin in $plugin_names; do
4900 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
4901 if test x$plugin_so = x$plugin; then
4902 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
4903 fi
4904 if test x$plugin_so != x$plugin; then
4905 plugin_option="--plugin $plugin_so"
4906 break
4907 fi
4908done
4909
6bb11ab3
L
4910if test -n "$ac_tool_prefix"; then
4911 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4912set dummy ${ac_tool_prefix}ar; ac_word=$2
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4915if ${ac_cv_prog_AR+:} false; then :
6bb11ab3
L
4916 $as_echo_n "(cached) " >&6
4917else
4918 if test -n "$AR"; then
4919 ac_cv_prog_AR="$AR" # Let the user override the test.
4920else
4921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922for as_dir in $PATH
4923do
4924 IFS=$as_save_IFS
4925 test -z "$as_dir" && as_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4928 ac_cv_prog_AR="${ac_tool_prefix}ar"
4929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 break 2
4931 fi
4932done
4933 done
4934IFS=$as_save_IFS
4935
4936fi
4937fi
4938AR=$ac_cv_prog_AR
4939if test -n "$AR"; then
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4941$as_echo "$AR" >&6; }
4942else
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944$as_echo "no" >&6; }
4945fi
4946
4947
4948fi
4949if test -z "$ac_cv_prog_AR"; then
4950 ac_ct_AR=$AR
4951 # Extract the first word of "ar", so it can be a program name with args.
4952set dummy ar; ac_word=$2
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4955if ${ac_cv_prog_ac_ct_AR+:} false; then :
6bb11ab3
L
4956 $as_echo_n "(cached) " >&6
4957else
4958 if test -n "$ac_ct_AR"; then
4959 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4960else
4961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962for as_dir in $PATH
4963do
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4968 ac_cv_prog_ac_ct_AR="ar"
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4971 fi
4972done
4973 done
4974IFS=$as_save_IFS
4975
4976fi
4977fi
4978ac_ct_AR=$ac_cv_prog_ac_ct_AR
4979if test -n "$ac_ct_AR"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4981$as_echo "$ac_ct_AR" >&6; }
4982else
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984$as_echo "no" >&6; }
4985fi
4986
4987 if test "x$ac_ct_AR" = x; then
4988 AR="false"
4989 else
4990 case $cross_compiling:$ac_tool_warned in
4991yes:)
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4994ac_tool_warned=yes ;;
4995esac
4996 AR=$ac_ct_AR
4997 fi
4998else
4999 AR="$ac_cv_prog_AR"
5000fi
5001
5002test -z "$AR" && AR=ar
68ed2854
MF
5003if test -n "$plugin_option"; then
5004 if $AR --help 2>&1 | grep -q "\--plugin"; then
aa09469f
MF
5005 touch conftest.c
5006 $AR $plugin_option rc conftest.a conftest.c
5007 if test "$?" != 0; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5009$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5010 else
5011 AR="$AR $plugin_option"
5012 fi
5013 rm -f conftest.*
68ed2854
MF
5014 fi
5015fi
6bb11ab3
L
5016test -z "$AR_FLAGS" && AR_FLAGS=cru
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028if test -n "$ac_tool_prefix"; then
5029 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5030set dummy ${ac_tool_prefix}strip; ac_word=$2
5031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5033if ${ac_cv_prog_STRIP+:} false; then :
6bb11ab3
L
5034 $as_echo_n "(cached) " >&6
5035else
5036 if test -n "$STRIP"; then
5037 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5038else
5039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040for as_dir in $PATH
5041do
5042 IFS=$as_save_IFS
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5046 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 break 2
5049 fi
5050done
5051 done
5052IFS=$as_save_IFS
5053
5054fi
5055fi
5056STRIP=$ac_cv_prog_STRIP
5057if test -n "$STRIP"; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5059$as_echo "$STRIP" >&6; }
5060else
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062$as_echo "no" >&6; }
5063fi
5064
5065
5066fi
5067if test -z "$ac_cv_prog_STRIP"; then
5068 ac_ct_STRIP=$STRIP
5069 # Extract the first word of "strip", so it can be a program name with args.
5070set dummy strip; ac_word=$2
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5072$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5073if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6bb11ab3
L
5074 $as_echo_n "(cached) " >&6
5075else
5076 if test -n "$ac_ct_STRIP"; then
5077 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5078else
5079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080for as_dir in $PATH
5081do
5082 IFS=$as_save_IFS
5083 test -z "$as_dir" && as_dir=.
5084 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5086 ac_cv_prog_ac_ct_STRIP="strip"
5087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 break 2
5089 fi
5090done
5091 done
5092IFS=$as_save_IFS
5093
5094fi
5095fi
5096ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5097if test -n "$ac_ct_STRIP"; then
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5099$as_echo "$ac_ct_STRIP" >&6; }
5100else
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102$as_echo "no" >&6; }
5103fi
5104
5105 if test "x$ac_ct_STRIP" = x; then
5106 STRIP=":"
5107 else
5108 case $cross_compiling:$ac_tool_warned in
5109yes:)
5110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5112ac_tool_warned=yes ;;
5113esac
5114 STRIP=$ac_ct_STRIP
5115 fi
5116else
5117 STRIP="$ac_cv_prog_STRIP"
5118fi
5119
5120test -z "$STRIP" && STRIP=:
5121
5122
5123
5124
5125
5126
5127if test -n "$ac_tool_prefix"; then
5128 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5129set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5131$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5132if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
5133 $as_echo_n "(cached) " >&6
5134else
5135 if test -n "$RANLIB"; then
5136 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5137else
5138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139for as_dir in $PATH
5140do
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5145 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 break 2
5148 fi
5149done
5150 done
5151IFS=$as_save_IFS
5152
5153fi
5154fi
5155RANLIB=$ac_cv_prog_RANLIB
5156if test -n "$RANLIB"; then
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5158$as_echo "$RANLIB" >&6; }
5159else
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5161$as_echo "no" >&6; }
5162fi
5163
5164
5165fi
5166if test -z "$ac_cv_prog_RANLIB"; then
5167 ac_ct_RANLIB=$RANLIB
5168 # Extract the first word of "ranlib", so it can be a program name with args.
5169set dummy ranlib; ac_word=$2
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5171$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5172if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
5173 $as_echo_n "(cached) " >&6
5174else
5175 if test -n "$ac_ct_RANLIB"; then
5176 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5177else
5178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179for as_dir in $PATH
5180do
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5185 ac_cv_prog_ac_ct_RANLIB="ranlib"
5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 break 2
5188 fi
5189done
5190 done
5191IFS=$as_save_IFS
5192
5193fi
5194fi
5195ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5196if test -n "$ac_ct_RANLIB"; then
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5198$as_echo "$ac_ct_RANLIB" >&6; }
5199else
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201$as_echo "no" >&6; }
5202fi
5203
5204 if test "x$ac_ct_RANLIB" = x; then
5205 RANLIB=":"
5206 else
5207 case $cross_compiling:$ac_tool_warned in
5208yes:)
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5211ac_tool_warned=yes ;;
5212esac
5213 RANLIB=$ac_ct_RANLIB
5214 fi
5215else
5216 RANLIB="$ac_cv_prog_RANLIB"
5217fi
5218
5219test -z "$RANLIB" && RANLIB=:
68ed2854
MF
5220if test -n "$plugin_option" && test "$RANLIB" != ":"; then
5221 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
5222 RANLIB="$RANLIB $plugin_option"
5223 fi
5224fi
6bb11ab3
L
5225
5226
5227
5228
5229
5230
5231# Determine commands to create old-style static archives.
5232old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5233old_postinstall_cmds='chmod 644 $oldlib'
5234old_postuninstall_cmds=
5235
5236if test -n "$RANLIB"; then
5237 case $host_os in
5238 openbsd*)
5239 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5240 ;;
5241 *)
5242 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5243 ;;
5244 esac
5245 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5246fi
5247
5248case $host_os in
5249 darwin*)
5250 lock_old_archive_extraction=yes ;;
5251 *)
5252 lock_old_archive_extraction=no ;;
5253esac
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275for ac_prog in gawk mawk nawk awk
5276do
5277 # Extract the first word of "$ac_prog", so it can be a program name with args.
5278set dummy $ac_prog; ac_word=$2
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5280$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5281if ${ac_cv_prog_AWK+:} false; then :
6bb11ab3
L
5282 $as_echo_n "(cached) " >&6
5283else
5284 if test -n "$AWK"; then
5285 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5286else
5287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288for as_dir in $PATH
5289do
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5294 ac_cv_prog_AWK="$ac_prog"
5295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 break 2
5297 fi
5298done
5299 done
5300IFS=$as_save_IFS
5301
5302fi
5303fi
5304AWK=$ac_cv_prog_AWK
5305if test -n "$AWK"; then
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5307$as_echo "$AWK" >&6; }
5308else
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310$as_echo "no" >&6; }
5311fi
5312
5313
5314 test -n "$AWK" && break
5315done
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335# If no C compiler was specified, use CC.
5336LTCC=${LTCC-"$CC"}
5337
5338# If no C compiler flags were specified, use CFLAGS.
5339LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5340
5341# Allow CC to be a program name with arguments.
5342compiler=$CC
5343
5344
5345# Check for command to grab the raw symbol name followed by C symbol from nm.
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5347$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 5348if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6bb11ab3
L
5349 $as_echo_n "(cached) " >&6
5350else
5351
5352# These are sane defaults that work on at least a few old systems.
5353# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5354
5355# Character class describing NM global symbol codes.
5356symcode='[BCDEGRST]'
5357
5358# Regexp to match symbols that can be accessed directly from C.
5359sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5360
5361# Define system-specific variables.
5362case $host_os in
5363aix*)
5364 symcode='[BCDT]'
5365 ;;
5366cygwin* | mingw* | pw32* | cegcc*)
5367 symcode='[ABCDGISTW]'
5368 ;;
5369hpux*)
5370 if test "$host_cpu" = ia64; then
5371 symcode='[ABCDEGRST]'
5372 fi
5373 ;;
5374irix* | nonstopux*)
5375 symcode='[BCDEGRST]'
5376 ;;
5377osf*)
5378 symcode='[BCDEGQRST]'
5379 ;;
5380solaris*)
5381 symcode='[BDRT]'
5382 ;;
5383sco3.2v5*)
5384 symcode='[DT]'
5385 ;;
5386sysv4.2uw2*)
5387 symcode='[DT]'
5388 ;;
5389sysv5* | sco5v6* | unixware* | OpenUNIX*)
5390 symcode='[ABDT]'
5391 ;;
5392sysv4)
5393 symcode='[DFNSTU]'
5394 ;;
5395esac
5396
5397# If we're using GNU nm, then use its standard symbol codes.
5398case `$NM -V 2>&1` in
5399*GNU* | *'with BFD'*)
5400 symcode='[ABCDGIRSTW]' ;;
5401esac
5402
5403# Transform an extracted symbol line into a proper C declaration.
5404# Some systems (esp. on ia64) link data and code symbols differently,
5405# so use this general approach.
5406lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5407
5408# Transform an extracted symbol line into symbol name and symbol address
5409lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5410lt_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'"
5411
5412# Handle CRLF in mingw tool chain
5413opt_cr=
5414case $build_os in
5415mingw*)
5416 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5417 ;;
5418esac
5419
5420# Try without a prefix underscore, then with it.
5421for ac_symprfx in "" "_"; do
5422
5423 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5424 symxfrm="\\1 $ac_symprfx\\2 \\2"
5425
5426 # Write the raw and C identifiers.
5427 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5428 # Fake it for dumpbin and say T for any non-static function
5429 # and D for any global variable.
5430 # Also find C++ and __fastcall symbols from MSVC++,
5431 # which start with @ or ?.
5432 lt_cv_sys_global_symbol_pipe="$AWK '"\
5433" {last_section=section; section=\$ 3};"\
5434" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5435" \$ 0!~/External *\|/{next};"\
5436" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5437" {if(hide[section]) next};"\
5438" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5439" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5440" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5441" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5442" ' prfx=^$ac_symprfx"
5443 else
5444 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5445 fi
5446
5447 # Check to see that the pipe works correctly.
5448 pipe_works=no
5449
5450 rm -f conftest*
5451 cat > conftest.$ac_ext <<_LT_EOF
5452#ifdef __cplusplus
5453extern "C" {
5454#endif
5455char nm_test_var;
5456void nm_test_func(void);
5457void nm_test_func(void){}
5458#ifdef __cplusplus
5459}
5460#endif
5461int main(){nm_test_var='a';nm_test_func();return(0);}
5462_LT_EOF
5463
5464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5465 (eval $ac_compile) 2>&5
5466 ac_status=$?
5467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5468 test $ac_status = 0; }; then
5469 # Now try to grab the symbols.
5470 nlist=conftest.nm
5471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5472 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5473 ac_status=$?
5474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5475 test $ac_status = 0; } && test -s "$nlist"; then
5476 # Try sorting and uniquifying the output.
5477 if sort "$nlist" | uniq > "$nlist"T; then
5478 mv -f "$nlist"T "$nlist"
5479 else
5480 rm -f "$nlist"T
5481 fi
5482
5483 # Make sure that we snagged all the symbols we need.
5484 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5485 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5486 cat <<_LT_EOF > conftest.$ac_ext
5487#ifdef __cplusplus
5488extern "C" {
5489#endif
5490
5491_LT_EOF
5492 # Now generate the symbol file.
5493 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5494
5495 cat <<_LT_EOF >> conftest.$ac_ext
5496
5497/* The mapping between symbol names and symbols. */
5498const struct {
5499 const char *name;
5500 void *address;
5501}
5502lt__PROGRAM__LTX_preloaded_symbols[] =
5503{
5504 { "@PROGRAM@", (void *) 0 },
5505_LT_EOF
5506 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5507 cat <<\_LT_EOF >> conftest.$ac_ext
5508 {0, (void *) 0}
5509};
5510
5511/* This works around a problem in FreeBSD linker */
5512#ifdef FREEBSD_WORKAROUND
5513static const void *lt_preloaded_setup() {
5514 return lt__PROGRAM__LTX_preloaded_symbols;
5515}
5516#endif
5517
5518#ifdef __cplusplus
5519}
5520#endif
5521_LT_EOF
5522 # Now try linking the two files.
5523 mv conftest.$ac_objext conftstm.$ac_objext
5524 lt_save_LIBS="$LIBS"
5525 lt_save_CFLAGS="$CFLAGS"
5526 LIBS="conftstm.$ac_objext"
5527 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5529 (eval $ac_link) 2>&5
5530 ac_status=$?
5531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5532 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5533 pipe_works=yes
5534 fi
5535 LIBS="$lt_save_LIBS"
5536 CFLAGS="$lt_save_CFLAGS"
5537 else
5538 echo "cannot find nm_test_func in $nlist" >&5
5539 fi
5540 else
5541 echo "cannot find nm_test_var in $nlist" >&5
5542 fi
5543 else
5544 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5545 fi
5546 else
5547 echo "$progname: failed program was:" >&5
5548 cat conftest.$ac_ext >&5
5549 fi
5550 rm -rf conftest* conftst*
5551
5552 # Do not use the global_symbol_pipe unless it works.
5553 if test "$pipe_works" = yes; then
5554 break
5555 else
5556 lt_cv_sys_global_symbol_pipe=
5557 fi
5558done
5559
5560fi
5561
5562if test -z "$lt_cv_sys_global_symbol_pipe"; then
5563 lt_cv_sys_global_symbol_to_cdecl=
5564fi
5565if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5567$as_echo "failed" >&6; }
5568else
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5570$as_echo "ok" >&6; }
5571fi
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594# Check whether --enable-libtool-lock was given.
5595if test "${enable_libtool_lock+set}" = set; then :
5596 enableval=$enable_libtool_lock;
5597fi
5598
5599test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5600
5601# Some flags need to be propagated to the compiler or linker for good
5602# libtool support.
5603case $host in
5604ia64-*-hpux*)
5605 # Find out which ABI we are using.
5606 echo 'int i;' > conftest.$ac_ext
5607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5608 (eval $ac_compile) 2>&5
5609 ac_status=$?
5610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5611 test $ac_status = 0; }; then
5612 case `/usr/bin/file conftest.$ac_objext` in
5613 *ELF-32*)
5614 HPUX_IA64_MODE="32"
5615 ;;
5616 *ELF-64*)
5617 HPUX_IA64_MODE="64"
5618 ;;
5619 esac
5620 fi
5621 rm -rf conftest*
5622 ;;
5623*-*-irix6*)
5624 # Find out which ABI we are using.
5625 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5627 (eval $ac_compile) 2>&5
5628 ac_status=$?
5629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5630 test $ac_status = 0; }; then
5631 if test "$lt_cv_prog_gnu_ld" = yes; then
5632 case `/usr/bin/file conftest.$ac_objext` in
5633 *32-bit*)
5634 LD="${LD-ld} -melf32bsmip"
5635 ;;
5636 *N32*)
5637 LD="${LD-ld} -melf32bmipn32"
5638 ;;
5639 *64-bit*)
5640 LD="${LD-ld} -melf64bmip"
5641 ;;
5642 esac
5643 else
5644 case `/usr/bin/file conftest.$ac_objext` in
5645 *32-bit*)
5646 LD="${LD-ld} -32"
5647 ;;
5648 *N32*)
5649 LD="${LD-ld} -n32"
5650 ;;
5651 *64-bit*)
5652 LD="${LD-ld} -64"
5653 ;;
5654 esac
5655 fi
5656 fi
5657 rm -rf conftest*
5658 ;;
5659
bf3d9781 5660x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6bb11ab3
L
5661s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5662 # Find out which ABI we are using.
5663 echo 'int i;' > conftest.$ac_ext
5664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5665 (eval $ac_compile) 2>&5
5666 ac_status=$?
5667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5668 test $ac_status = 0; }; then
5669 case `/usr/bin/file conftest.o` in
5670 *32-bit*)
5671 case $host in
5672 x86_64-*kfreebsd*-gnu)
5673 LD="${LD-ld} -m elf_i386_fbsd"
5674 ;;
5675 x86_64-*linux*)
5676 case `/usr/bin/file conftest.o` in
5677 *x86-64*)
5678 LD="${LD-ld} -m elf32_x86_64"
5679 ;;
5680 *)
5681 LD="${LD-ld} -m elf_i386"
5682 ;;
5683 esac
5684 ;;
bf3d9781
AM
5685 powerpc64le-*linux*)
5686 LD="${LD-ld} -m elf32lppclinux"
5687 ;;
5688 powerpc64-*linux*)
6bb11ab3
L
5689 LD="${LD-ld} -m elf32ppclinux"
5690 ;;
5691 s390x-*linux*)
5692 LD="${LD-ld} -m elf_s390"
5693 ;;
5694 sparc64-*linux*)
5695 LD="${LD-ld} -m elf32_sparc"
5696 ;;
5697 esac
5698 ;;
5699 *64-bit*)
5700 case $host in
5701 x86_64-*kfreebsd*-gnu)
5702 LD="${LD-ld} -m elf_x86_64_fbsd"
5703 ;;
5704 x86_64-*linux*)
5705 LD="${LD-ld} -m elf_x86_64"
5706 ;;
bf3d9781
AM
5707 powerpcle-*linux*)
5708 LD="${LD-ld} -m elf64lppc"
5709 ;;
5710 powerpc-*linux*)
6bb11ab3
L
5711 LD="${LD-ld} -m elf64ppc"
5712 ;;
5713 s390*-*linux*|s390*-*tpf*)
5714 LD="${LD-ld} -m elf64_s390"
5715 ;;
5716 sparc*-*linux*)
5717 LD="${LD-ld} -m elf64_sparc"
5718 ;;
5719 esac
5720 ;;
5721 esac
5722 fi
5723 rm -rf conftest*
5724 ;;
5725
5726*-*-sco3.2v5*)
5727 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5728 SAVE_CFLAGS="$CFLAGS"
5729 CFLAGS="$CFLAGS -belf"
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5731$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 5732if ${lt_cv_cc_needs_belf+:} false; then :
6bb11ab3
L
5733 $as_echo_n "(cached) " >&6
5734else
5735 ac_ext=c
5736ac_cpp='$CPP $CPPFLAGS'
5737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5739ac_compiler_gnu=$ac_cv_c_compiler_gnu
5740
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742/* end confdefs.h. */
5743
5744int
5745main ()
5746{
5747
5748 ;
5749 return 0;
5750}
5751_ACEOF
5752if ac_fn_c_try_link "$LINENO"; then :
5753 lt_cv_cc_needs_belf=yes
5754else
5755 lt_cv_cc_needs_belf=no
5756fi
5757rm -f core conftest.err conftest.$ac_objext \
5758 conftest$ac_exeext conftest.$ac_ext
5759 ac_ext=c
5760ac_cpp='$CPP $CPPFLAGS'
5761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5763ac_compiler_gnu=$ac_cv_c_compiler_gnu
5764
5765fi
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5767$as_echo "$lt_cv_cc_needs_belf" >&6; }
5768 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5769 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5770 CFLAGS="$SAVE_CFLAGS"
5771 fi
5772 ;;
5773sparc*-*solaris*)
5774 # Find out which ABI we are using.
5775 echo 'int i;' > conftest.$ac_ext
5776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5777 (eval $ac_compile) 2>&5
5778 ac_status=$?
5779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5780 test $ac_status = 0; }; then
5781 case `/usr/bin/file conftest.o` in
5782 *64-bit*)
5783 case $lt_cv_prog_gnu_ld in
5784 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5785 *)
5786 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5787 LD="${LD-ld} -64"
5788 fi
5789 ;;
5790 esac
5791 ;;
5792 esac
5793 fi
5794 rm -rf conftest*
5795 ;;
5796esac
5797
5798need_locks="$enable_libtool_lock"
5799
5800
5801 case $host_os in
5802 rhapsody* | darwin*)
5803 if test -n "$ac_tool_prefix"; then
5804 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5805set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5808if ${ac_cv_prog_DSYMUTIL+:} false; then :
6bb11ab3
L
5809 $as_echo_n "(cached) " >&6
5810else
5811 if test -n "$DSYMUTIL"; then
5812 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5813else
5814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815for as_dir in $PATH
5816do
5817 IFS=$as_save_IFS
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5821 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 break 2
5824 fi
5825done
5826 done
5827IFS=$as_save_IFS
5828
5829fi
5830fi
5831DSYMUTIL=$ac_cv_prog_DSYMUTIL
5832if test -n "$DSYMUTIL"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5834$as_echo "$DSYMUTIL" >&6; }
5835else
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837$as_echo "no" >&6; }
5838fi
5839
5840
5841fi
5842if test -z "$ac_cv_prog_DSYMUTIL"; then
5843 ac_ct_DSYMUTIL=$DSYMUTIL
5844 # Extract the first word of "dsymutil", so it can be a program name with args.
5845set dummy dsymutil; ac_word=$2
5846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5848if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6bb11ab3
L
5849 $as_echo_n "(cached) " >&6
5850else
5851 if test -n "$ac_ct_DSYMUTIL"; then
5852 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5853else
5854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855for as_dir in $PATH
5856do
5857 IFS=$as_save_IFS
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5861 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 break 2
5864 fi
5865done
5866 done
5867IFS=$as_save_IFS
5868
5869fi
5870fi
5871ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5872if test -n "$ac_ct_DSYMUTIL"; then
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5874$as_echo "$ac_ct_DSYMUTIL" >&6; }
5875else
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877$as_echo "no" >&6; }
5878fi
5879
5880 if test "x$ac_ct_DSYMUTIL" = x; then
5881 DSYMUTIL=":"
5882 else
5883 case $cross_compiling:$ac_tool_warned in
5884yes:)
5885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5887ac_tool_warned=yes ;;
5888esac
5889 DSYMUTIL=$ac_ct_DSYMUTIL
5890 fi
5891else
5892 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5893fi
5894
5895 if test -n "$ac_tool_prefix"; then
5896 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5897set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5899$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5900if ${ac_cv_prog_NMEDIT+:} false; then :
6bb11ab3
L
5901 $as_echo_n "(cached) " >&6
5902else
5903 if test -n "$NMEDIT"; then
5904 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5905else
5906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907for as_dir in $PATH
5908do
5909 IFS=$as_save_IFS
5910 test -z "$as_dir" && as_dir=.
5911 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5913 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5915 break 2
5916 fi
5917done
5918 done
5919IFS=$as_save_IFS
5920
5921fi
5922fi
5923NMEDIT=$ac_cv_prog_NMEDIT
5924if test -n "$NMEDIT"; then
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5926$as_echo "$NMEDIT" >&6; }
5927else
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5929$as_echo "no" >&6; }
5930fi
5931
5932
5933fi
5934if test -z "$ac_cv_prog_NMEDIT"; then
5935 ac_ct_NMEDIT=$NMEDIT
5936 # Extract the first word of "nmedit", so it can be a program name with args.
5937set dummy nmedit; ac_word=$2
5938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5939$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5940if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6bb11ab3
L
5941 $as_echo_n "(cached) " >&6
5942else
5943 if test -n "$ac_ct_NMEDIT"; then
5944 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5945else
5946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947for as_dir in $PATH
5948do
5949 IFS=$as_save_IFS
5950 test -z "$as_dir" && as_dir=.
5951 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5953 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5955 break 2
5956 fi
5957done
5958 done
5959IFS=$as_save_IFS
5960
5961fi
5962fi
5963ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5964if test -n "$ac_ct_NMEDIT"; then
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5966$as_echo "$ac_ct_NMEDIT" >&6; }
5967else
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969$as_echo "no" >&6; }
5970fi
5971
5972 if test "x$ac_ct_NMEDIT" = x; then
5973 NMEDIT=":"
5974 else
5975 case $cross_compiling:$ac_tool_warned in
5976yes:)
5977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5979ac_tool_warned=yes ;;
5980esac
5981 NMEDIT=$ac_ct_NMEDIT
5982 fi
5983else
5984 NMEDIT="$ac_cv_prog_NMEDIT"
5985fi
5986
5987 if test -n "$ac_tool_prefix"; then
5988 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5989set dummy ${ac_tool_prefix}lipo; ac_word=$2
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5991$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5992if ${ac_cv_prog_LIPO+:} false; then :
6bb11ab3
L
5993 $as_echo_n "(cached) " >&6
5994else
5995 if test -n "$LIPO"; then
5996 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5997else
5998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999for as_dir in $PATH
6000do
6001 IFS=$as_save_IFS
6002 test -z "$as_dir" && as_dir=.
6003 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6005 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6007 break 2
6008 fi
6009done
6010 done
6011IFS=$as_save_IFS
6012
6013fi
6014fi
6015LIPO=$ac_cv_prog_LIPO
6016if test -n "$LIPO"; then
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6018$as_echo "$LIPO" >&6; }
6019else
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6021$as_echo "no" >&6; }
6022fi
6023
6024
6025fi
6026if test -z "$ac_cv_prog_LIPO"; then
6027 ac_ct_LIPO=$LIPO
6028 # Extract the first word of "lipo", so it can be a program name with args.
6029set dummy lipo; ac_word=$2
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6032if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6bb11ab3
L
6033 $as_echo_n "(cached) " >&6
6034else
6035 if test -n "$ac_ct_LIPO"; then
6036 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6037else
6038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039for as_dir in $PATH
6040do
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6045 ac_cv_prog_ac_ct_LIPO="lipo"
6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 break 2
6048 fi
6049done
6050 done
6051IFS=$as_save_IFS
6052
6053fi
6054fi
6055ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6056if test -n "$ac_ct_LIPO"; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6058$as_echo "$ac_ct_LIPO" >&6; }
6059else
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061$as_echo "no" >&6; }
6062fi
6063
6064 if test "x$ac_ct_LIPO" = x; then
6065 LIPO=":"
6066 else
6067 case $cross_compiling:$ac_tool_warned in
6068yes:)
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6071ac_tool_warned=yes ;;
6072esac
6073 LIPO=$ac_ct_LIPO
6074 fi
6075else
6076 LIPO="$ac_cv_prog_LIPO"
6077fi
6078
6079 if test -n "$ac_tool_prefix"; then
6080 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6081set dummy ${ac_tool_prefix}otool; ac_word=$2
6082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6083$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6084if ${ac_cv_prog_OTOOL+:} false; then :
6bb11ab3
L
6085 $as_echo_n "(cached) " >&6
6086else
6087 if test -n "$OTOOL"; then
6088 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6089else
6090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091for as_dir in $PATH
6092do
6093 IFS=$as_save_IFS
6094 test -z "$as_dir" && as_dir=.
6095 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6097 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6099 break 2
6100 fi
6101done
6102 done
6103IFS=$as_save_IFS
6104
6105fi
6106fi
6107OTOOL=$ac_cv_prog_OTOOL
6108if test -n "$OTOOL"; then
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6110$as_echo "$OTOOL" >&6; }
6111else
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6113$as_echo "no" >&6; }
6114fi
6115
6116
6117fi
6118if test -z "$ac_cv_prog_OTOOL"; then
6119 ac_ct_OTOOL=$OTOOL
6120 # Extract the first word of "otool", so it can be a program name with args.
6121set dummy otool; ac_word=$2
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6123$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6124if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6bb11ab3
L
6125 $as_echo_n "(cached) " >&6
6126else
6127 if test -n "$ac_ct_OTOOL"; then
6128 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6129else
6130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131for as_dir in $PATH
6132do
6133 IFS=$as_save_IFS
6134 test -z "$as_dir" && as_dir=.
6135 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6137 ac_cv_prog_ac_ct_OTOOL="otool"
6138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6139 break 2
6140 fi
6141done
6142 done
6143IFS=$as_save_IFS
6144
6145fi
6146fi
6147ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6148if test -n "$ac_ct_OTOOL"; then
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6150$as_echo "$ac_ct_OTOOL" >&6; }
6151else
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153$as_echo "no" >&6; }
6154fi
6155
6156 if test "x$ac_ct_OTOOL" = x; then
6157 OTOOL=":"
6158 else
6159 case $cross_compiling:$ac_tool_warned in
6160yes:)
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6163ac_tool_warned=yes ;;
6164esac
6165 OTOOL=$ac_ct_OTOOL
6166 fi
6167else
6168 OTOOL="$ac_cv_prog_OTOOL"
6169fi
6170
6171 if test -n "$ac_tool_prefix"; then
6172 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6173set dummy ${ac_tool_prefix}otool64; ac_word=$2
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6175$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6176if ${ac_cv_prog_OTOOL64+:} false; then :
6bb11ab3
L
6177 $as_echo_n "(cached) " >&6
6178else
6179 if test -n "$OTOOL64"; then
6180 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6181else
6182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183for as_dir in $PATH
6184do
6185 IFS=$as_save_IFS
6186 test -z "$as_dir" && as_dir=.
6187 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6189 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6191 break 2
6192 fi
6193done
6194 done
6195IFS=$as_save_IFS
6196
6197fi
6198fi
6199OTOOL64=$ac_cv_prog_OTOOL64
6200if test -n "$OTOOL64"; then
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6202$as_echo "$OTOOL64" >&6; }
6203else
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6205$as_echo "no" >&6; }
6206fi
6207
6208
6209fi
6210if test -z "$ac_cv_prog_OTOOL64"; then
6211 ac_ct_OTOOL64=$OTOOL64
6212 # Extract the first word of "otool64", so it can be a program name with args.
6213set dummy otool64; ac_word=$2
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6215$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6216if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6bb11ab3
L
6217 $as_echo_n "(cached) " >&6
6218else
6219 if test -n "$ac_ct_OTOOL64"; then
6220 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6221else
6222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223for as_dir in $PATH
6224do
6225 IFS=$as_save_IFS
6226 test -z "$as_dir" && as_dir=.
6227 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6229 ac_cv_prog_ac_ct_OTOOL64="otool64"
6230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6231 break 2
6232 fi
6233done
6234 done
6235IFS=$as_save_IFS
6236
6237fi
6238fi
6239ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6240if test -n "$ac_ct_OTOOL64"; then
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6242$as_echo "$ac_ct_OTOOL64" >&6; }
6243else
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6245$as_echo "no" >&6; }
6246fi
6247
6248 if test "x$ac_ct_OTOOL64" = x; then
6249 OTOOL64=":"
6250 else
6251 case $cross_compiling:$ac_tool_warned in
6252yes:)
6253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6255ac_tool_warned=yes ;;
6256esac
6257 OTOOL64=$ac_ct_OTOOL64
6258 fi
6259else
6260 OTOOL64="$ac_cv_prog_OTOOL64"
6261fi
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6290$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 6291if ${lt_cv_apple_cc_single_mod+:} false; then :
6bb11ab3
L
6292 $as_echo_n "(cached) " >&6
6293else
6294 lt_cv_apple_cc_single_mod=no
6295 if test -z "${LT_MULTI_MODULE}"; then
6296 # By default we will add the -single_module flag. You can override
6297 # by either setting the environment variable LT_MULTI_MODULE
6298 # non-empty at configure time, or by adding -multi_module to the
6299 # link flags.
6300 rm -rf libconftest.dylib*
6301 echo "int foo(void){return 1;}" > conftest.c
6302 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6303-dynamiclib -Wl,-single_module conftest.c" >&5
6304 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6305 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6306 _lt_result=$?
6307 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6308 lt_cv_apple_cc_single_mod=yes
6309 else
6310 cat conftest.err >&5
6311 fi
6312 rm -rf libconftest.dylib*
6313 rm -f conftest.*
6314 fi
6315fi
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6317$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6319$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 6320if ${lt_cv_ld_exported_symbols_list+:} false; then :
6bb11ab3
L
6321 $as_echo_n "(cached) " >&6
6322else
6323 lt_cv_ld_exported_symbols_list=no
6324 save_LDFLAGS=$LDFLAGS
6325 echo "_main" > conftest.sym
6326 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328/* end confdefs.h. */
6329
6330int
6331main ()
6332{
6333
6334 ;
6335 return 0;
6336}
6337_ACEOF
6338if ac_fn_c_try_link "$LINENO"; then :
6339 lt_cv_ld_exported_symbols_list=yes
6340else
6341 lt_cv_ld_exported_symbols_list=no
6342fi
6343rm -f core conftest.err conftest.$ac_objext \
6344 conftest$ac_exeext conftest.$ac_ext
6345 LDFLAGS="$save_LDFLAGS"
6346
6347fi
6348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6349$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6351$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 6352if ${lt_cv_ld_force_load+:} false; then :
6bb11ab3
L
6353 $as_echo_n "(cached) " >&6
6354else
6355 lt_cv_ld_force_load=no
6356 cat > conftest.c << _LT_EOF
6357int forced_loaded() { return 2;}
6358_LT_EOF
6359 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6360 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6361 echo "$AR cru libconftest.a conftest.o" >&5
6362 $AR cru libconftest.a conftest.o 2>&5
6363 cat > conftest.c << _LT_EOF
6364int main() { return 0;}
6365_LT_EOF
6366 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6367 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6368 _lt_result=$?
6369 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6370 lt_cv_ld_force_load=yes
6371 else
6372 cat conftest.err >&5
6373 fi
6374 rm -f conftest.err libconftest.a conftest conftest.c
6375 rm -rf conftest.dSYM
6376
6377fi
6378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6379$as_echo "$lt_cv_ld_force_load" >&6; }
6380 case $host_os in
6381 rhapsody* | darwin1.[012])
6382 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6383 darwin1.*)
6384 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6385 darwin*) # darwin 5.x on
6386 # if running on 10.5 or later, the deployment target defaults
6387 # to the OS version, if on x86, and 10.4, the deployment
6388 # target defaults to 10.4. Don't you love it?
6389 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6390 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6391 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5cddc23a 6392 10.[012][,.]*)
6bb11ab3
L
6393 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6394 10.*)
6395 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6396 esac
6397 ;;
6398 esac
6399 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6400 _lt_dar_single_mod='$single_module'
6401 fi
6402 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6403 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6404 else
6405 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6406 fi
6407 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6408 _lt_dsymutil='~$DSYMUTIL $lib || :'
6409 else
6410 _lt_dsymutil=
6411 fi
6412 ;;
6413 esac
6414
6415for ac_header in dlfcn.h
6416do :
6417 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6418"
d0ac1c44 6419if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6bb11ab3
L
6420 cat >>confdefs.h <<_ACEOF
6421#define HAVE_DLFCN_H 1
6422_ACEOF
6423
6424fi
6425
6426done
6427
6428
6429
ebe9564b 6430
6bb11ab3 6431
0cb8d851
MF
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6433$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d0ac1c44 6434if ${ac_cv_c_bigendian+:} false; then :
0cb8d851
MF
6435 $as_echo_n "(cached) " >&6
6436else
6437 ac_cv_c_bigendian=unknown
6438 # See if we're dealing with a universal compiler.
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440/* end confdefs.h. */
6441#ifndef __APPLE_CC__
6442 not a universal capable compiler
6443 #endif
6444 typedef int dummy;
6445
6446_ACEOF
6447if ac_fn_c_try_compile "$LINENO"; then :
6448
6449 # Check for potential -arch flags. It is not universal unless
6450 # there are at least two -arch flags with different values.
6451 ac_arch=
6452 ac_prev=
6453 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6454 if test -n "$ac_prev"; then
6455 case $ac_word in
6456 i?86 | x86_64 | ppc | ppc64)
6457 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6458 ac_arch=$ac_word
6459 else
6460 ac_cv_c_bigendian=universal
6461 break
6462 fi
6463 ;;
6464 esac
6465 ac_prev=
6466 elif test "x$ac_word" = "x-arch"; then
6467 ac_prev=arch
6468 fi
6469 done
6470fi
6471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6472 if test $ac_cv_c_bigendian = unknown; then
6473 # See if sys/param.h defines the BYTE_ORDER macro.
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475/* end confdefs.h. */
6476#include <sys/types.h>
6477 #include <sys/param.h>
6478
6479int
6480main ()
6481{
6482#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6483 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6484 && LITTLE_ENDIAN)
6485 bogus endian macros
6486 #endif
6487
6488 ;
6489 return 0;
6490}
6491_ACEOF
6492if ac_fn_c_try_compile "$LINENO"; then :
6493 # It does; now see whether it defined to BIG_ENDIAN or not.
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495/* end confdefs.h. */
6496#include <sys/types.h>
6497 #include <sys/param.h>
6498
6499int
6500main ()
6501{
6502#if BYTE_ORDER != BIG_ENDIAN
6503 not big endian
6504 #endif
6505
6506 ;
6507 return 0;
6508}
6509_ACEOF
6510if ac_fn_c_try_compile "$LINENO"; then :
6511 ac_cv_c_bigendian=yes
6512else
6513 ac_cv_c_bigendian=no
6514fi
6515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516fi
6517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518 fi
6519 if test $ac_cv_c_bigendian = unknown; then
6520 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522/* end confdefs.h. */
6523#include <limits.h>
6524
6525int
6526main ()
6527{
6528#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6529 bogus endian macros
6530 #endif
6531
6532 ;
6533 return 0;
6534}
6535_ACEOF
6536if ac_fn_c_try_compile "$LINENO"; then :
6537 # It does; now see whether it defined to _BIG_ENDIAN or not.
6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539/* end confdefs.h. */
6540#include <limits.h>
6541
6542int
6543main ()
6544{
6545#ifndef _BIG_ENDIAN
6546 not big endian
6547 #endif
6548
6549 ;
6550 return 0;
6551}
6552_ACEOF
6553if ac_fn_c_try_compile "$LINENO"; then :
6554 ac_cv_c_bigendian=yes
6555else
6556 ac_cv_c_bigendian=no
6557fi
6558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6559fi
6560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6561 fi
6562 if test $ac_cv_c_bigendian = unknown; then
6563 # Compile a test program.
6564 if test "$cross_compiling" = yes; then :
6565 # Try to guess by grepping values from an object file.
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567/* end confdefs.h. */
6568short int ascii_mm[] =
6569 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6570 short int ascii_ii[] =
6571 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6572 int use_ascii (int i) {
6573 return ascii_mm[i] + ascii_ii[i];
6574 }
6575 short int ebcdic_ii[] =
6576 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6577 short int ebcdic_mm[] =
6578 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6579 int use_ebcdic (int i) {
6580 return ebcdic_mm[i] + ebcdic_ii[i];
6581 }
6582 extern int foo;
6583
6584int
6585main ()
6586{
6587return use_ascii (foo) == use_ebcdic (foo);
6588 ;
6589 return 0;
6590}
6591_ACEOF
6592if ac_fn_c_try_compile "$LINENO"; then :
6593 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6594 ac_cv_c_bigendian=yes
6595 fi
6596 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6597 if test "$ac_cv_c_bigendian" = unknown; then
6598 ac_cv_c_bigendian=no
6599 else
6600 # finding both strings is unlikely to happen, but who knows?
6601 ac_cv_c_bigendian=unknown
6602 fi
6603 fi
6604fi
6605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606else
6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608/* end confdefs.h. */
6609$ac_includes_default
6610int
6611main ()
6612{
6613
6614 /* Are we little or big endian? From Harbison&Steele. */
6615 union
6616 {
6617 long int l;
6618 char c[sizeof (long int)];
6619 } u;
6620 u.l = 1;
6621 return u.c[sizeof (long int) - 1] == 1;
6622
6623 ;
6624 return 0;
6625}
6626_ACEOF
6627if ac_fn_c_try_run "$LINENO"; then :
6628 ac_cv_c_bigendian=no
6629else
6630 ac_cv_c_bigendian=yes
6631fi
6632rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6633 conftest.$ac_objext conftest.beam conftest.$ac_ext
6634fi
6635
6636 fi
6637fi
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6639$as_echo "$ac_cv_c_bigendian" >&6; }
6640 case $ac_cv_c_bigendian in #(
6641 yes)
6642 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6643;; #(
6644 no)
6645 ;; #(
6646 universal)
6647
6648$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6649
6650 ;; #(
6651 *)
d0ac1c44 6652 as_fn_error $? "unknown endianness
0cb8d851
MF
6653 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6654 esac
6655
6bb11ab3
L
6656
6657
6658
c25ea03d 6659if test "x$cross_compiling" = "xno"; then
aa0fca16 6660 : "${AR_FOR_BUILD:=\$(AR)}"
c25ea03d 6661 : "${CC_FOR_BUILD:=\$(CC)}"
aa0fca16 6662 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
c25ea03d 6663 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
c2783492 6664 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
c25ea03d 6665else
aa0fca16 6666 : "${AR_FOR_BUILD:=ar}"
c25ea03d 6667 : "${CC_FOR_BUILD:=gcc}"
aa0fca16 6668 : "${RANLIB_FOR_BUILD:=ranlib}"
c25ea03d 6669 : "${CFLAGS_FOR_BUILD:=-g -O}"
c2783492 6670 : "${LDLFAGS_FOR_BUILD:=}"
6bb11ab3
L
6671fi
6672
6673
6674
c25ea03d 6675
c2783492 6676
aa0fca16
MF
6677
6678
a3e2cc64
MF
6679if test -n "$ac_tool_prefix"; then
6680 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6681set dummy ${ac_tool_prefix}ar; ac_word=$2
6682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683$as_echo_n "checking for $ac_word... " >&6; }
6684if ${ac_cv_prog_AR+:} false; then :
6685 $as_echo_n "(cached) " >&6
6686else
6687 if test -n "$AR"; then
6688 ac_cv_prog_AR="$AR" # Let the user override the test.
6689else
6690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691for as_dir in $PATH
6692do
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6697 ac_cv_prog_AR="${ac_tool_prefix}ar"
6698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 break 2
6700 fi
6701done
6702 done
6703IFS=$as_save_IFS
6704
6705fi
6706fi
6707AR=$ac_cv_prog_AR
6708if test -n "$AR"; then
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6710$as_echo "$AR" >&6; }
6711else
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713$as_echo "no" >&6; }
6714fi
6715
6716
6717fi
6718if test -z "$ac_cv_prog_AR"; then
6719 ac_ct_AR=$AR
6720 # Extract the first word of "ar", so it can be a program name with args.
6721set dummy ar; ac_word=$2
6722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723$as_echo_n "checking for $ac_word... " >&6; }
6724if ${ac_cv_prog_ac_ct_AR+:} false; then :
6725 $as_echo_n "(cached) " >&6
6726else
6727 if test -n "$ac_ct_AR"; then
6728 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6729else
6730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731for as_dir in $PATH
6732do
6733 IFS=$as_save_IFS
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6737 ac_cv_prog_ac_ct_AR="ar"
6738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 break 2
6740 fi
6741done
6742 done
6743IFS=$as_save_IFS
6744
6745fi
6746fi
6747ac_ct_AR=$ac_cv_prog_ac_ct_AR
6748if test -n "$ac_ct_AR"; then
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6750$as_echo "$ac_ct_AR" >&6; }
6751else
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753$as_echo "no" >&6; }
6754fi
6755
6756 if test "x$ac_ct_AR" = x; then
6757 AR=""
6758 else
6759 case $cross_compiling:$ac_tool_warned in
6760yes:)
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763ac_tool_warned=yes ;;
6764esac
6765 AR=$ac_ct_AR
6766 fi
6767else
6768 AR="$ac_cv_prog_AR"
6769fi
6bb11ab3
L
6770
6771if test -n "$ac_tool_prefix"; then
6772 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6773set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6776if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
6777 $as_echo_n "(cached) " >&6
6778else
6779 if test -n "$RANLIB"; then
6780 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6781else
6782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783for as_dir in $PATH
6784do
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6789 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6792 fi
6793done
6794 done
6795IFS=$as_save_IFS
6796
6797fi
6798fi
6799RANLIB=$ac_cv_prog_RANLIB
6800if test -n "$RANLIB"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6802$as_echo "$RANLIB" >&6; }
6803else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805$as_echo "no" >&6; }
6806fi
6807
6808
6809fi
6810if test -z "$ac_cv_prog_RANLIB"; then
6811 ac_ct_RANLIB=$RANLIB
6812 # Extract the first word of "ranlib", so it can be a program name with args.
6813set dummy ranlib; ac_word=$2
6814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6816if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
6817 $as_echo_n "(cached) " >&6
6818else
6819 if test -n "$ac_ct_RANLIB"; then
6820 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6821else
6822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823for as_dir in $PATH
6824do
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6829 ac_cv_prog_ac_ct_RANLIB="ranlib"
6830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 break 2
6832 fi
6833done
6834 done
6835IFS=$as_save_IFS
6836
6837fi
6838fi
6839ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6840if test -n "$ac_ct_RANLIB"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6842$as_echo "$ac_ct_RANLIB" >&6; }
6843else
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845$as_echo "no" >&6; }
6846fi
6847
6848 if test "x$ac_ct_RANLIB" = x; then
6849 RANLIB=":"
6850 else
6851 case $cross_compiling:$ac_tool_warned in
6852yes:)
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6855ac_tool_warned=yes ;;
6856esac
6857 RANLIB=$ac_ct_RANLIB
6858 fi
6859else
6860 RANLIB="$ac_cv_prog_RANLIB"
6861fi
6862
6863
46f900c0
MF
6864# Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
6865# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
6866# is C99. So handle it ourselves.
6867:
6868C_DIALECT=
6869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
6870$as_echo_n "checking whether C11 is supported by default... " >&6; }
6871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872/* end confdefs.h. */
6873
6874#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
6875# error "C11 support not found"
6876#endif
6877
6878_ACEOF
6879if ac_fn_c_try_compile "$LINENO"; then :
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6881$as_echo "yes" >&6; }
6882else
6883
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885$as_echo "no" >&6; }
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
6887$as_echo_n "checking for -std=c11 support... " >&6; }
6888 ac_save_CC="$CC"
6889 CC="$CC -std=c11"
6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891/* end confdefs.h. */
6892
6893#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
6894# error "C11 support not found"
6895#endif
6896
6897_ACEOF
6898if ac_fn_c_try_compile "$LINENO"; then :
6899
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6901$as_echo "yes" >&6; }
6902 CC="$ac_save_CC"
6903 C_DIALECT="-std=c11"
6904
6905else
6906 as_fn_error $? "C11 is required" "$LINENO" 5
6907fi
6908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909fi
6910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6911
6912
c2783492
MF
6913ac_config_headers="$ac_config_headers config.h:config.in"
6914
6915
6bb11ab3
L
6916# Dependency checking.
6917ac_config_commands="$ac_config_commands depdir"
6918
6919
6920depcc="$CC" am_compiler_list=
6921
6922am_depcomp=$ac_aux_dir/depcomp
6923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6924$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 6925if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6bb11ab3
L
6926 $as_echo_n "(cached) " >&6
6927else
6928 if test -f "$am_depcomp"; then
6929 # We make a subdir and do the tests there. Otherwise we can end up
6930 # making bogus files that we don't know about and never remove. For
6931 # instance it was reported that on HP-UX the gcc test will end up
6932 # making a dummy file named `D' -- because `-MD' means `put the output
6933 # in D'.
6934 mkdir conftest.dir
6935 # Copy depcomp to subdir because otherwise we won't find it if we're
6936 # using a relative directory.
6937 cp "$am_depcomp" conftest.dir
6938 cd conftest.dir
6939 # We will build objects and dependencies in a subdirectory because
6940 # it helps to detect inapplicable dependency modes. For instance
6941 # both Tru64's cc and ICC support -MD to output dependencies as a
6942 # side effect of compilation, but ICC will put the dependencies in
6943 # the current directory while Tru64 will put them in the object
6944 # directory.
6945 mkdir sub
6946
6947 am_cv_CC_dependencies_compiler_type=none
6948 if test "$am_compiler_list" = ""; then
6949 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6950 fi
6951 for depmode in $am_compiler_list; do
6952 if test $depmode = none; then break; fi
6953
6954 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6955 # Setup a source with many dependencies, because some compilers
6956 # like to wrap large dependency lists on column 80 (with \), and
6957 # we should not choose a depcomp mode which is confused by this.
6958 #
6959 # We need to recreate these files for each test, as the compiler may
6960 # overwrite some of them when testing with obscure command lines.
6961 # This happens at least with the AIX C compiler.
6962 : > sub/conftest.c
6963 for i in 1 2 3 4 5 6; do
6964 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6965 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6966 # Solaris 8's {/usr,}/bin/sh.
6967 touch sub/conftst$i.h
6968 done
6969 echo "include sub/conftest.Po" > confmf
6970
6971 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6972 # mode. It turns out that the SunPro C++ compiler does not properly
6973 # handle `-M -o', and we need to detect this.
6974 depcmd="depmode=$depmode \
6975 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6976 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6977 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6978 echo "| $depcmd" | sed -e 's/ */ /g' >&5
6979 if env $depcmd > conftest.err 2>&1 &&
6980 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
6981 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
6982 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
6983 # icc doesn't choke on unknown options, it will just issue warnings
6984 # or remarks (even with -Werror). So we grep stderr for any message
6985 # that says an option was ignored or not supported.
6986 # When given -MP, icc 7.0 and 7.1 complain thusly:
6987 # icc: Command line warning: ignoring option '-M'; no argument required
6988 # The diagnosis changed in icc 8.0:
6989 # icc: Command line remark: option '-MP' not supported
6990 if (grep 'ignoring option' conftest.err ||
6991 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6992 am_cv_CC_dependencies_compiler_type=$depmode
6993 $as_echo "$as_me:$LINENO: success" >&5
6994 break
6995 fi
6996 fi
6997 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6998 sed -e 's/^/| /' < conftest.err >&5
6999 done
7000
7001 cd ..
7002 rm -rf conftest.dir
7003else
7004 am_cv_CC_dependencies_compiler_type=none
7005fi
7006
7007fi
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7009$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7010if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
d0ac1c44 7011then as_fn_error $? "no usable dependency style found" "$LINENO" 5
6bb11ab3
L
7012else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7013
7014fi
7015
7016
6bb11ab3
L
7017ALL_LINGUAS=
7018# If we haven't got the data from the intl directory,
7019# assume NLS is disabled.
7020USE_NLS=no
7021LIBINTL=
7022LIBINTL_DEP=
7023INCINTL=
7024XGETTEXT=
7025GMSGFMT=
7026POSUB=
7027
7028if test -f ../../intl/config.intl; then
7029 . ../../intl/config.intl
7030fi
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7032$as_echo_n "checking whether NLS is requested... " >&6; }
7033if test x"$USE_NLS" != xyes; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035$as_echo "no" >&6; }
7036else
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7038$as_echo "yes" >&6; }
7039
7040$as_echo "#define ENABLE_NLS 1" >>confdefs.h
7041
7042
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7044$as_echo_n "checking for catalogs to be installed... " >&6; }
7045 # Look for .po and .gmo files in the source directory.
7046 CATALOGS=
7047 XLINGUAS=
7048 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7049 # If there aren't any .gmo files the shell will give us the
7050 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7051 # weeded out.
7052 case "$cat" in *\**)
7053 continue;;
7054 esac
7055 # The quadruple backslash is collapsed to a double backslash
7056 # by the backticks, then collapsed again by the double quotes,
7057 # leaving us with one backslash in the sed expression (right
7058 # before the dot that mustn't act as a wildcard).
7059 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7060 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7061 # The user is allowed to set LINGUAS to a list of languages to
7062 # install catalogs for. If it's empty that means "all of them."
7063 if test "x$LINGUAS" = x; then
7064 CATALOGS="$CATALOGS $cat"
7065 XLINGUAS="$XLINGUAS $lang"
7066 else
7067 case "$LINGUAS" in *$lang*)
7068 CATALOGS="$CATALOGS $cat"
7069 XLINGUAS="$XLINGUAS $lang"
7070 ;;
7071 esac
7072 fi
7073 done
7074 LINGUAS="$XLINGUAS"
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7076$as_echo "$LINGUAS" >&6; }
7077
7078
7079 DATADIRNAME=share
7080
7081 INSTOBJEXT=.mo
7082
7083 GENCAT=gencat
7084
7085 CATOBJEXT=.gmo
7086
7087fi
7088
6bb11ab3
L
7089# Check for socket libraries
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7091$as_echo_n "checking for bind in -lsocket... " >&6; }
d0ac1c44 7092if ${ac_cv_lib_socket_bind+:} false; then :
6bb11ab3
L
7093 $as_echo_n "(cached) " >&6
7094else
7095 ac_check_lib_save_LIBS=$LIBS
7096LIBS="-lsocket $LIBS"
7097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098/* end confdefs.h. */
7099
7100/* Override any GCC internal prototype to avoid an error.
7101 Use char because int might match the return type of a GCC
7102 builtin and then its argument prototype would still apply. */
7103#ifdef __cplusplus
7104extern "C"
7105#endif
7106char bind ();
7107int
7108main ()
7109{
7110return bind ();
7111 ;
7112 return 0;
7113}
7114_ACEOF
7115if ac_fn_c_try_link "$LINENO"; then :
7116 ac_cv_lib_socket_bind=yes
7117else
7118 ac_cv_lib_socket_bind=no
7119fi
7120rm -f core conftest.err conftest.$ac_objext \
7121 conftest$ac_exeext conftest.$ac_ext
7122LIBS=$ac_check_lib_save_LIBS
7123fi
7124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7125$as_echo "$ac_cv_lib_socket_bind" >&6; }
d0ac1c44 7126if test "x$ac_cv_lib_socket_bind" = xyes; then :
6bb11ab3
L
7127 cat >>confdefs.h <<_ACEOF
7128#define HAVE_LIBSOCKET 1
7129_ACEOF
7130
7131 LIBS="-lsocket $LIBS"
7132
7133fi
7134
7135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7136$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
d0ac1c44 7137if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
6bb11ab3
L
7138 $as_echo_n "(cached) " >&6
7139else
7140 ac_check_lib_save_LIBS=$LIBS
7141LIBS="-lnsl $LIBS"
7142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143/* end confdefs.h. */
7144
7145/* Override any GCC internal prototype to avoid an error.
7146 Use char because int might match the return type of a GCC
7147 builtin and then its argument prototype would still apply. */
7148#ifdef __cplusplus
7149extern "C"
7150#endif
7151char gethostbyname ();
7152int
7153main ()
7154{
7155return gethostbyname ();
7156 ;
7157 return 0;
7158}
7159_ACEOF
7160if ac_fn_c_try_link "$LINENO"; then :
7161 ac_cv_lib_nsl_gethostbyname=yes
7162else
7163 ac_cv_lib_nsl_gethostbyname=no
7164fi
7165rm -f core conftest.err conftest.$ac_objext \
7166 conftest$ac_exeext conftest.$ac_ext
7167LIBS=$ac_check_lib_save_LIBS
7168fi
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7170$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
d0ac1c44 7171if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
6bb11ab3
L
7172 cat >>confdefs.h <<_ACEOF
7173#define HAVE_LIBNSL 1
7174_ACEOF
7175
7176 LIBS="-lnsl $LIBS"
7177
7178fi
7179
7180
7181# BFD conditionally uses zlib, so we must link it in if libbfd does, by
7182# using the same condition.
7183
aadc9410 7184 # Use the system's zlib library.
7fed4b0b
L
7185 zlibdir="-L\$(top_builddir)/../zlib"
7186 zlibinc="-I\$(top_srcdir)/../zlib"
6bb11ab3 7187
aadc9410
MF
7188# Check whether --with-system-zlib was given.
7189if test "${with_system_zlib+set}" = set; then :
0ceaf1ec
L
7190 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7191 zlibdir=
7192 zlibinc=
7193 fi
6bb11ab3
L
7194
7195fi
7196
6bb11ab3 7197
6bb11ab3 7198
6bb11ab3
L
7199
7200
7201# BFD uses libdl when when plugins enabled.
7202
faa743bb
RM
7203 maybe_plugins=no
7204 for ac_header in dlfcn.h
7205do :
7206 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7207"
d0ac1c44 7208if test "x$ac_cv_header_dlfcn_h" = xyes; then :
faa743bb
RM
7209 cat >>confdefs.h <<_ACEOF
7210#define HAVE_DLFCN_H 1
7211_ACEOF
7212 maybe_plugins=yes
7213fi
7214
7215done
7216
7217 for ac_header in windows.h
7218do :
7219 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
7220"
d0ac1c44 7221if test "x$ac_cv_header_windows_h" = xyes; then :
faa743bb
RM
7222 cat >>confdefs.h <<_ACEOF
7223#define HAVE_WINDOWS_H 1
7224_ACEOF
7225 maybe_plugins=yes
7226fi
7227
7228done
7229
7230
7231 # Check whether --enable-plugins was given.
6bb11ab3
L
7232if test "${enable_plugins+set}" = set; then :
7233 enableval=$enable_plugins; case "${enableval}" in
faa743bb
RM
7234 no) plugins=no ;;
7235 *) plugins=yes
7236 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 7237 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
faa743bb
RM
7238 fi ;;
7239 esac
6bb11ab3 7240else
faa743bb
RM
7241 plugins=$maybe_plugins
7242
6bb11ab3
L
7243fi
7244
2974be62 7245 if test "$plugins" = "yes"; then
37f980dc
SM
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
7247$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 7248if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7249 $as_echo_n "(cached) " >&6
7250else
7251 ac_func_search_save_LIBS=$LIBS
7252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253/* end confdefs.h. */
7254
7255/* Override any GCC internal prototype to avoid an error.
7256 Use char because int might match the return type of a GCC
7257 builtin and then its argument prototype would still apply. */
7258#ifdef __cplusplus
7259extern "C"
7260#endif
37f980dc 7261char dlsym ();
2974be62
AM
7262int
7263main ()
7264{
37f980dc 7265return dlsym ();
2974be62
AM
7266 ;
7267 return 0;
7268}
7269_ACEOF
7270for ac_lib in '' dl; do
7271 if test -z "$ac_lib"; then
7272 ac_res="none required"
7273 else
7274 ac_res=-l$ac_lib
7275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7276 fi
7277 if ac_fn_c_try_link "$LINENO"; then :
37f980dc 7278 ac_cv_search_dlsym=$ac_res
2974be62
AM
7279fi
7280rm -f core conftest.err conftest.$ac_objext \
7281 conftest$ac_exeext
d0ac1c44 7282 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7283 break
7284fi
7285done
d0ac1c44 7286if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7287
7288else
37f980dc 7289 ac_cv_search_dlsym=no
2974be62
AM
7290fi
7291rm conftest.$ac_ext
7292LIBS=$ac_func_search_save_LIBS
7293fi
37f980dc
SM
7294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
7295$as_echo "$ac_cv_search_dlsym" >&6; }
7296ac_res=$ac_cv_search_dlsym
2974be62
AM
7297if test "$ac_res" != no; then :
7298 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7299
7300fi
7301
7302 fi
6bb11ab3
L
7303
7304 if test "$plugins" = yes; then
7305 PLUGINS_TRUE=
7306 PLUGINS_FALSE='#'
7307else
7308 PLUGINS_TRUE='#'
7309 PLUGINS_FALSE=
7310fi
7311
7312
7313
7314
7315
7316# Set options
7317enable_dlopen=yes
7318
7319
7320
7321
7322 enable_win32_dll=no
7323
7324
7325 # Check whether --enable-shared was given.
7326if test "${enable_shared+set}" = set; then :
7327 enableval=$enable_shared; p=${PACKAGE-default}
7328 case $enableval in
7329 yes) enable_shared=yes ;;
7330 no) enable_shared=no ;;
7331 *)
7332 enable_shared=no
7333 # Look at the argument we got. We use all the common list separators.
7334 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7335 for pkg in $enableval; do
7336 IFS="$lt_save_ifs"
7337 if test "X$pkg" = "X$p"; then
7338 enable_shared=yes
7339 fi
7340 done
7341 IFS="$lt_save_ifs"
7342 ;;
7343 esac
7344else
7345 enable_shared=yes
7346fi
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356 # Check whether --enable-static was given.
7357if test "${enable_static+set}" = set; then :
7358 enableval=$enable_static; p=${PACKAGE-default}
7359 case $enableval in
7360 yes) enable_static=yes ;;
7361 no) enable_static=no ;;
7362 *)
7363 enable_static=no
7364 # Look at the argument we got. We use all the common list separators.
7365 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7366 for pkg in $enableval; do
7367 IFS="$lt_save_ifs"
7368 if test "X$pkg" = "X$p"; then
7369 enable_static=yes
7370 fi
7371 done
7372 IFS="$lt_save_ifs"
7373 ;;
7374 esac
7375else
7376 enable_static=yes
7377fi
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388# Check whether --with-pic was given.
7389if test "${with_pic+set}" = set; then :
7390 withval=$with_pic; pic_mode="$withval"
7391else
7392 pic_mode=default
7393fi
7394
7395
7396test -z "$pic_mode" && pic_mode=default
7397
7398
7399
7400
7401
7402
7403
7404 # Check whether --enable-fast-install was given.
7405if test "${enable_fast_install+set}" = set; then :
7406 enableval=$enable_fast_install; p=${PACKAGE-default}
7407 case $enableval in
7408 yes) enable_fast_install=yes ;;
7409 no) enable_fast_install=no ;;
7410 *)
7411 enable_fast_install=no
7412 # Look at the argument we got. We use all the common list separators.
7413 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7414 for pkg in $enableval; do
7415 IFS="$lt_save_ifs"
7416 if test "X$pkg" = "X$p"; then
7417 enable_fast_install=yes
7418 fi
7419 done
7420 IFS="$lt_save_ifs"
7421 ;;
7422 esac
7423else
7424 enable_fast_install=yes
7425fi
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437# This can be used to rebuild libtool when needed
7438LIBTOOL_DEPS="$ltmain"
7439
7440# Always use our own libtool.
7441LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468test -z "$LN_S" && LN_S="ln -s"
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483if test -n "${ZSH_VERSION+set}" ; then
7484 setopt NO_GLOB_SUBST
7485fi
7486
7487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7488$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 7489if ${lt_cv_objdir+:} false; then :
6bb11ab3
L
7490 $as_echo_n "(cached) " >&6
7491else
7492 rm -f .libs 2>/dev/null
7493mkdir .libs 2>/dev/null
7494if test -d .libs; then
7495 lt_cv_objdir=.libs
7496else
7497 # MS-DOS does not allow filenames that begin with a dot.
7498 lt_cv_objdir=_libs
7499fi
7500rmdir .libs 2>/dev/null
7501fi
7502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7503$as_echo "$lt_cv_objdir" >&6; }
7504objdir=$lt_cv_objdir
7505
7506
7507
7508
7509
7510cat >>confdefs.h <<_ACEOF
7511#define LT_OBJDIR "$lt_cv_objdir/"
7512_ACEOF
7513
7514
7515
7516
7517case $host_os in
7518aix3*)
7519 # AIX sometimes has problems with the GCC collect2 program. For some
7520 # reason, if we set the COLLECT_NAMES environment variable, the problems
7521 # vanish in a puff of smoke.
7522 if test "X${COLLECT_NAMES+set}" != Xset; then
7523 COLLECT_NAMES=
7524 export COLLECT_NAMES
7525 fi
7526 ;;
7527esac
7528
7529# Global variables:
7530ofile=libtool
7531can_build_shared=yes
7532
7533# All known linkers require a `.a' archive for static linking (except MSVC,
7534# which needs '.lib').
7535libext=a
7536
7537with_gnu_ld="$lt_cv_prog_gnu_ld"
7538
7539old_CC="$CC"
7540old_CFLAGS="$CFLAGS"
7541
7542# Set sane defaults for various variables
7543test -z "$CC" && CC=cc
7544test -z "$LTCC" && LTCC=$CC
7545test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7546test -z "$LD" && LD=ld
7547test -z "$ac_objext" && ac_objext=o
7548
7549for cc_temp in $compiler""; do
7550 case $cc_temp in
7551 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7552 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7553 \-*) ;;
7554 *) break;;
7555 esac
7556done
7557cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7558
7559
7560# Only perform the check for file, if the check method requires it
7561test -z "$MAGIC_CMD" && MAGIC_CMD=file
7562case $deplibs_check_method in
7563file_magic*)
7564 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7566$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 7567if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
7568 $as_echo_n "(cached) " >&6
7569else
7570 case $MAGIC_CMD in
7571[\\/*] | ?:[\\/]*)
7572 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7573 ;;
7574*)
7575 lt_save_MAGIC_CMD="$MAGIC_CMD"
7576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7577 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7578 for ac_dir in $ac_dummy; do
7579 IFS="$lt_save_ifs"
7580 test -z "$ac_dir" && ac_dir=.
7581 if test -f $ac_dir/${ac_tool_prefix}file; then
7582 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7583 if test -n "$file_magic_test_file"; then
7584 case $deplibs_check_method in
7585 "file_magic "*)
7586 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7587 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7588 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7589 $EGREP "$file_magic_regex" > /dev/null; then
7590 :
7591 else
7592 cat <<_LT_EOF 1>&2
7593
7594*** Warning: the command libtool uses to detect shared libraries,
7595*** $file_magic_cmd, produces output that libtool cannot recognize.
7596*** The result is that libtool may fail to recognize shared libraries
7597*** as such. This will affect the creation of libtool libraries that
7598*** depend on shared libraries, but programs linked with such libtool
7599*** libraries will work regardless of this problem. Nevertheless, you
7600*** may want to report the problem to your system manager and/or to
7601*** bug-libtool@gnu.org
7602
7603_LT_EOF
7604 fi ;;
7605 esac
7606 fi
7607 break
7608 fi
7609 done
7610 IFS="$lt_save_ifs"
7611 MAGIC_CMD="$lt_save_MAGIC_CMD"
7612 ;;
7613esac
f0569246 7614fi
f0569246 7615
6bb11ab3
L
7616MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7617if test -n "$MAGIC_CMD"; then
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7619$as_echo "$MAGIC_CMD" >&6; }
7620else
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622$as_echo "no" >&6; }
7623fi
7624
7625
7626
7627
7628
7629if test -z "$lt_cv_path_MAGIC_CMD"; then
7630 if test -n "$ac_tool_prefix"; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7632$as_echo_n "checking for file... " >&6; }
d0ac1c44 7633if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
7634 $as_echo_n "(cached) " >&6
7635else
7636 case $MAGIC_CMD in
7637[\\/*] | ?:[\\/]*)
7638 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7639 ;;
7640*)
7641 lt_save_MAGIC_CMD="$MAGIC_CMD"
7642 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7643 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7644 for ac_dir in $ac_dummy; do
7645 IFS="$lt_save_ifs"
7646 test -z "$ac_dir" && ac_dir=.
7647 if test -f $ac_dir/file; then
7648 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7649 if test -n "$file_magic_test_file"; then
7650 case $deplibs_check_method in
7651 "file_magic "*)
7652 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7653 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7654 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7655 $EGREP "$file_magic_regex" > /dev/null; then
7656 :
7657 else
7658 cat <<_LT_EOF 1>&2
7659
7660*** Warning: the command libtool uses to detect shared libraries,
7661*** $file_magic_cmd, produces output that libtool cannot recognize.
7662*** The result is that libtool may fail to recognize shared libraries
7663*** as such. This will affect the creation of libtool libraries that
7664*** depend on shared libraries, but programs linked with such libtool
7665*** libraries will work regardless of this problem. Nevertheless, you
7666*** may want to report the problem to your system manager and/or to
7667*** bug-libtool@gnu.org
7668
7669_LT_EOF
7670 fi ;;
7671 esac
7672 fi
7673 break
7674 fi
7675 done
7676 IFS="$lt_save_ifs"
7677 MAGIC_CMD="$lt_save_MAGIC_CMD"
7678 ;;
81ecdfbb 7679esac
6bb11ab3
L
7680fi
7681
7682MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7683if test -n "$MAGIC_CMD"; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7685$as_echo "$MAGIC_CMD" >&6; }
7686else
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688$as_echo "no" >&6; }
7689fi
7690
7691
f0569246 7692 else
6bb11ab3 7693 MAGIC_CMD=:
f0569246
AC
7694 fi
7695fi
81ecdfbb 7696
6bb11ab3
L
7697 fi
7698 ;;
81ecdfbb 7699esac
6bb11ab3
L
7700
7701# Use C for the default configuration in the libtool script
7702
7703lt_save_CC="$CC"
7704ac_ext=c
7705ac_cpp='$CPP $CPPFLAGS'
7706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7708ac_compiler_gnu=$ac_cv_c_compiler_gnu
7709
7710
7711# Source file extension for C test sources.
7712ac_ext=c
7713
7714# Object file extension for compiled C test sources.
7715objext=o
7716objext=$objext
7717
7718# Code to be used in simple compile tests
7719lt_simple_compile_test_code="int some_variable = 0;"
7720
7721# Code to be used in simple link tests
7722lt_simple_link_test_code='int main(){return(0);}'
7723
7724
7725
7726
7727
7728
7729
7730# If no C compiler was specified, use CC.
7731LTCC=${LTCC-"$CC"}
7732
7733# If no C compiler flags were specified, use CFLAGS.
7734LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7735
7736# Allow CC to be a program name with arguments.
7737compiler=$CC
7738
7739# Save the default compiler, since it gets overwritten when the other
7740# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7741compiler_DEFAULT=$CC
7742
7743# save warnings/boilerplate of simple test code
7744ac_outfile=conftest.$ac_objext
7745echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7746eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7747_lt_compiler_boilerplate=`cat conftest.err`
7748$RM conftest*
7749
7750ac_outfile=conftest.$ac_objext
7751echo "$lt_simple_link_test_code" >conftest.$ac_ext
7752eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7753_lt_linker_boilerplate=`cat conftest.err`
7754$RM -r conftest*
7755
7756
7757## CAVEAT EMPTOR:
7758## There is no encapsulation within the following macros, do not change
7759## the running order or otherwise move them around unless you know exactly
7760## what you are doing...
7761if test -n "$compiler"; then
7762
7763lt_prog_compiler_no_builtin_flag=
7764
7765if test "$GCC" = yes; then
7766 case $cc_basename in
7767 nvcc*)
7768 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7769 *)
7770 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
f0569246 7771 esac
6bb11ab3
L
7772
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7774$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 7775if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6bb11ab3 7776 $as_echo_n "(cached) " >&6
f0569246 7777else
6bb11ab3
L
7778 lt_cv_prog_compiler_rtti_exceptions=no
7779 ac_outfile=conftest.$ac_objext
7780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7781 lt_compiler_flag="-fno-rtti -fno-exceptions"
7782 # Insert the option either (1) after the last *FLAGS variable, or
7783 # (2) before a word containing "conftest.", or (3) at the end.
7784 # Note that $ac_compile itself does not contain backslashes and begins
7785 # with a dollar sign (not a hyphen), so the echo should work correctly.
7786 # The option is referenced via a variable to avoid confusing sed.
7787 lt_compile=`echo "$ac_compile" | $SED \
7788 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7790 -e 's:$: $lt_compiler_flag:'`
7791 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7792 (eval "$lt_compile" 2>conftest.err)
7793 ac_status=$?
7794 cat conftest.err >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 if (exit $ac_status) && test -s "$ac_outfile"; then
7797 # The compiler can only warn and ignore the option if not recognized
7798 # So say no if there are warnings other than the usual output.
7799 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7800 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7801 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7802 lt_cv_prog_compiler_rtti_exceptions=yes
7803 fi
7804 fi
7805 $RM conftest*
7806
f0569246 7807fi
6bb11ab3
L
7808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7809$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7810
7811if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7812 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7813else
7814 :
7815fi
7816
7817fi
7818
7819
7820
7821
7822
7823
7824 lt_prog_compiler_wl=
7825lt_prog_compiler_pic=
7826lt_prog_compiler_static=
7827
7828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7829$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7830
7831 if test "$GCC" = yes; then
7832 lt_prog_compiler_wl='-Wl,'
7833 lt_prog_compiler_static='-static'
7834
7835 case $host_os in
7836 aix*)
7837 # All AIX code is PIC.
7838 if test "$host_cpu" = ia64; then
7839 # AIX 5 now supports IA64 processor
7840 lt_prog_compiler_static='-Bstatic'
7841 fi
7842 lt_prog_compiler_pic='-fPIC'
7843 ;;
7844
7845 amigaos*)
7846 case $host_cpu in
7847 powerpc)
7848 # see comment about AmigaOS4 .so support
7849 lt_prog_compiler_pic='-fPIC'
7850 ;;
7851 m68k)
7852 # FIXME: we need at least 68020 code to build shared libraries, but
7853 # adding the `-m68020' flag to GCC prevents building anything better,
7854 # like `-m68040'.
7855 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7856 ;;
7857 esac
7858 ;;
7859
7860 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7861 # PIC is the default for these OSes.
7862 ;;
7863
7864 mingw* | cygwin* | pw32* | os2* | cegcc*)
7865 # This hack is so that the source file can tell whether it is being
7866 # built for inclusion in a dll (and should export symbols for example).
7867 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7868 # (--disable-auto-import) libraries
7869 lt_prog_compiler_pic='-DDLL_EXPORT'
7870 ;;
7871
7872 darwin* | rhapsody*)
7873 # PIC is the default on this platform
7874 # Common symbols not allowed in MH_DYLIB files
7875 lt_prog_compiler_pic='-fno-common'
7876 ;;
7877
7878 haiku*)
7879 # PIC is the default for Haiku.
7880 # The "-static" flag exists, but is broken.
7881 lt_prog_compiler_static=
7882 ;;
7883
7884 hpux*)
7885 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7886 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7887 # sets the default TLS model and affects inlining.
7888 case $host_cpu in
7889 hppa*64*)
7890 # +Z the default
7891 ;;
7892 *)
7893 lt_prog_compiler_pic='-fPIC'
7894 ;;
7895 esac
7896 ;;
7897
7898 interix[3-9]*)
7899 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7900 # Instead, we relocate shared libraries at runtime.
7901 ;;
7902
7903 msdosdjgpp*)
7904 # Just because we use GCC doesn't mean we suddenly get shared libraries
7905 # on systems that don't support them.
7906 lt_prog_compiler_can_build_shared=no
7907 enable_shared=no
7908 ;;
7909
7910 *nto* | *qnx*)
7911 # QNX uses GNU C++, but need to define -shared option too, otherwise
7912 # it will coredump.
7913 lt_prog_compiler_pic='-fPIC -shared'
7914 ;;
7915
7916 sysv4*MP*)
7917 if test -d /usr/nec; then
7918 lt_prog_compiler_pic=-Kconform_pic
7919 fi
7920 ;;
7921
7922 *)
7923 lt_prog_compiler_pic='-fPIC'
7924 ;;
7925 esac
7926
7927 case $cc_basename in
7928 nvcc*) # Cuda Compiler Driver 2.2
7929 lt_prog_compiler_wl='-Xlinker '
7930 lt_prog_compiler_pic='-Xcompiler -fPIC'
7931 ;;
7932 esac
7933 else
7934 # PORTME Check for flag to pass linker flags through the system compiler.
7935 case $host_os in
7936 aix*)
7937 lt_prog_compiler_wl='-Wl,'
7938 if test "$host_cpu" = ia64; then
7939 # AIX 5 now supports IA64 processor
7940 lt_prog_compiler_static='-Bstatic'
7941 else
7942 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7943 fi
7944 ;;
7945
7946 mingw* | cygwin* | pw32* | os2* | cegcc*)
7947 # This hack is so that the source file can tell whether it is being
7948 # built for inclusion in a dll (and should export symbols for example).
7949 lt_prog_compiler_pic='-DDLL_EXPORT'
7950 ;;
7951
7952 hpux9* | hpux10* | hpux11*)
7953 lt_prog_compiler_wl='-Wl,'
7954 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7955 # not for PA HP-UX.
7956 case $host_cpu in
7957 hppa*64*|ia64*)
7958 # +Z the default
7959 ;;
7960 *)
7961 lt_prog_compiler_pic='+Z'
7962 ;;
7963 esac
7964 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7965 lt_prog_compiler_static='${wl}-a ${wl}archive'
7966 ;;
7967
7968 irix5* | irix6* | nonstopux*)
7969 lt_prog_compiler_wl='-Wl,'
7970 # PIC (with -KPIC) is the default.
7971 lt_prog_compiler_static='-non_shared'
7972 ;;
7973
7974 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7975 case $cc_basename in
7976 # old Intel for x86_64 which still supported -KPIC.
7977 ecc*)
7978 lt_prog_compiler_wl='-Wl,'
7979 lt_prog_compiler_pic='-KPIC'
7980 lt_prog_compiler_static='-static'
7981 ;;
7982 # icc used to be incompatible with GCC.
7983 # ICC 10 doesn't accept -KPIC any more.
7984 icc* | ifort*)
7985 lt_prog_compiler_wl='-Wl,'
7986 lt_prog_compiler_pic='-fPIC'
7987 lt_prog_compiler_static='-static'
7988 ;;
7989 # Lahey Fortran 8.1.
7990 lf95*)
7991 lt_prog_compiler_wl='-Wl,'
7992 lt_prog_compiler_pic='--shared'
7993 lt_prog_compiler_static='--static'
7994 ;;
7995 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7996 # Portland Group compilers (*not* the Pentium gcc compiler,
7997 # which looks to be a dead project)
7998 lt_prog_compiler_wl='-Wl,'
7999 lt_prog_compiler_pic='-fpic'
8000 lt_prog_compiler_static='-Bstatic'
8001 ;;
8002 ccc*)
8003 lt_prog_compiler_wl='-Wl,'
8004 # All Alpha code is PIC.
8005 lt_prog_compiler_static='-non_shared'
8006 ;;
8007 xl* | bgxl* | bgf* | mpixl*)
8008 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8009 lt_prog_compiler_wl='-Wl,'
8010 lt_prog_compiler_pic='-qpic'
8011 lt_prog_compiler_static='-qstaticlink'
8012 ;;
8013 *)
8014 case `$CC -V 2>&1 | sed 5q` in
8015 *Sun\ F* | *Sun*Fortran*)
8016 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8017 lt_prog_compiler_pic='-KPIC'
8018 lt_prog_compiler_static='-Bstatic'
8019 lt_prog_compiler_wl=''
8020 ;;
8021 *Sun\ C*)
8022 # Sun C 5.9
8023 lt_prog_compiler_pic='-KPIC'
8024 lt_prog_compiler_static='-Bstatic'
8025 lt_prog_compiler_wl='-Wl,'
8026 ;;
8027 esac
8028 ;;
8029 esac
8030 ;;
8031
8032 newsos6)
8033 lt_prog_compiler_pic='-KPIC'
8034 lt_prog_compiler_static='-Bstatic'
8035 ;;
8036
8037 *nto* | *qnx*)
8038 # QNX uses GNU C++, but need to define -shared option too, otherwise
8039 # it will coredump.
8040 lt_prog_compiler_pic='-fPIC -shared'
8041 ;;
8042
8043 osf3* | osf4* | osf5*)
8044 lt_prog_compiler_wl='-Wl,'
8045 # All OSF/1 code is PIC.
8046 lt_prog_compiler_static='-non_shared'
8047 ;;
8048
8049 rdos*)
8050 lt_prog_compiler_static='-non_shared'
8051 ;;
8052
8053 solaris*)
8054 lt_prog_compiler_pic='-KPIC'
8055 lt_prog_compiler_static='-Bstatic'
8056 case $cc_basename in
8057 f77* | f90* | f95*)
8058 lt_prog_compiler_wl='-Qoption ld ';;
8059 *)
8060 lt_prog_compiler_wl='-Wl,';;
8061 esac
8062 ;;
8063
8064 sunos4*)
8065 lt_prog_compiler_wl='-Qoption ld '
8066 lt_prog_compiler_pic='-PIC'
8067 lt_prog_compiler_static='-Bstatic'
8068 ;;
f0569246 8069
6bb11ab3
L
8070 sysv4 | sysv4.2uw2* | sysv4.3*)
8071 lt_prog_compiler_wl='-Wl,'
8072 lt_prog_compiler_pic='-KPIC'
8073 lt_prog_compiler_static='-Bstatic'
8074 ;;
f0569246 8075
6bb11ab3
L
8076 sysv4*MP*)
8077 if test -d /usr/nec ;then
8078 lt_prog_compiler_pic='-Kconform_pic'
8079 lt_prog_compiler_static='-Bstatic'
8080 fi
8081 ;;
f0569246 8082
6bb11ab3
L
8083 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8084 lt_prog_compiler_wl='-Wl,'
8085 lt_prog_compiler_pic='-KPIC'
8086 lt_prog_compiler_static='-Bstatic'
8087 ;;
8088
8089 unicos*)
8090 lt_prog_compiler_wl='-Wl,'
8091 lt_prog_compiler_can_build_shared=no
8092 ;;
8093
8094 uts4*)
8095 lt_prog_compiler_pic='-pic'
8096 lt_prog_compiler_static='-Bstatic'
8097 ;;
8098
8099 *)
8100 lt_prog_compiler_can_build_shared=no
8101 ;;
8102 esac
8103 fi
8104
8105case $host_os in
8106 # For platforms which do not support PIC, -DPIC is meaningless:
8107 *djgpp*)
8108 lt_prog_compiler_pic=
8109 ;;
8110 *)
8111 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8112 ;;
81ecdfbb 8113esac
6bb11ab3
L
8114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8115$as_echo "$lt_prog_compiler_pic" >&6; }
8116
8117
8118
8119
8120
8121
8122#
8123# Check to make sure the PIC flag actually works.
8124#
8125if test -n "$lt_prog_compiler_pic"; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8127$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 8128if ${lt_cv_prog_compiler_pic_works+:} false; then :
6bb11ab3 8129 $as_echo_n "(cached) " >&6
b7026657 8130else
6bb11ab3
L
8131 lt_cv_prog_compiler_pic_works=no
8132 ac_outfile=conftest.$ac_objext
8133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8134 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8135 # Insert the option either (1) after the last *FLAGS variable, or
8136 # (2) before a word containing "conftest.", or (3) at the end.
8137 # Note that $ac_compile itself does not contain backslashes and begins
8138 # with a dollar sign (not a hyphen), so the echo should work correctly.
8139 # The option is referenced via a variable to avoid confusing sed.
8140 lt_compile=`echo "$ac_compile" | $SED \
8141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8143 -e 's:$: $lt_compiler_flag:'`
8144 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8145 (eval "$lt_compile" 2>conftest.err)
8146 ac_status=$?
8147 cat conftest.err >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 if (exit $ac_status) && test -s "$ac_outfile"; then
8150 # The compiler can only warn and ignore the option if not recognized
8151 # So say no if there are warnings other than the usual output.
8152 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8154 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8155 lt_cv_prog_compiler_pic_works=yes
8156 fi
8157 fi
8158 $RM conftest*
b7026657 8159
b7026657 8160fi
6bb11ab3
L
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8162$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8163
8164if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8165 case $lt_prog_compiler_pic in
8166 "" | " "*) ;;
8167 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8168 esac
8169else
8170 lt_prog_compiler_pic=
8171 lt_prog_compiler_can_build_shared=no
f0569246 8172fi
6bb11ab3
L
8173
8174fi
8175
8176
8177
8178
8179
8180
8181#
8182# Check to make sure the static flag actually works.
8183#
8184wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8186$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 8187if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 8188 $as_echo_n "(cached) " >&6
f0569246 8189else
6bb11ab3
L
8190 lt_cv_prog_compiler_static_works=no
8191 save_LDFLAGS="$LDFLAGS"
8192 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8193 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8194 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8195 # The linker can only warn and ignore the option if not recognized
8196 # So say no if there are warnings
8197 if test -s conftest.err; then
8198 # Append any errors to the config.log.
8199 cat conftest.err 1>&5
8200 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8202 if diff conftest.exp conftest.er2 >/dev/null; then
8203 lt_cv_prog_compiler_static_works=yes
8204 fi
8205 else
8206 lt_cv_prog_compiler_static_works=yes
8207 fi
8208 fi
8209 $RM -r conftest*
8210 LDFLAGS="$save_LDFLAGS"
f0569246 8211
6bb11ab3
L
8212fi
8213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8214$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
f0569246 8215
6bb11ab3
L
8216if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8217 :
f0569246 8218else
6bb11ab3 8219 lt_prog_compiler_static=
f0569246 8220fi
b7026657 8221
6bb11ab3
L
8222
8223
8224
8225
8226
8227
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8229$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8230if ${lt_cv_prog_compiler_c_o+:} false; then :
6bb11ab3 8231 $as_echo_n "(cached) " >&6
81ecdfbb 8232else
6bb11ab3
L
8233 lt_cv_prog_compiler_c_o=no
8234 $RM -r conftest 2>/dev/null
8235 mkdir conftest
8236 cd conftest
8237 mkdir out
8238 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8239
8240 lt_compiler_flag="-o out/conftest2.$ac_objext"
8241 # Insert the option either (1) after the last *FLAGS variable, or
8242 # (2) before a word containing "conftest.", or (3) at the end.
8243 # Note that $ac_compile itself does not contain backslashes and begins
8244 # with a dollar sign (not a hyphen), so the echo should work correctly.
8245 lt_compile=`echo "$ac_compile" | $SED \
8246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8248 -e 's:$: $lt_compiler_flag:'`
8249 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8250 (eval "$lt_compile" 2>out/conftest.err)
8251 ac_status=$?
8252 cat out/conftest.err >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8255 then
8256 # The compiler can only warn and ignore the option if not recognized
8257 # So say no if there are warnings
8258 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8259 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8260 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8261 lt_cv_prog_compiler_c_o=yes
8262 fi
8263 fi
8264 chmod u+w . 2>&5
8265 $RM conftest*
8266 # SGI C++ compiler will create directory out/ii_files/ for
8267 # template instantiation
8268 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8269 $RM out/* && rmdir out
8270 cd ..
8271 $RM -r conftest
8272 $RM conftest*
8273
81ecdfbb 8274fi
6bb11ab3
L
8275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8276$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8277
8278
8279
8280
8281
8282
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8284$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8285if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb
RW
8286 $as_echo_n "(cached) " >&6
8287else
6bb11ab3
L
8288 lt_cv_prog_compiler_c_o=no
8289 $RM -r conftest 2>/dev/null
8290 mkdir conftest
8291 cd conftest
8292 mkdir out
8293 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8294
8295 lt_compiler_flag="-o out/conftest2.$ac_objext"
8296 # Insert the option either (1) after the last *FLAGS variable, or
8297 # (2) before a word containing "conftest.", or (3) at the end.
8298 # Note that $ac_compile itself does not contain backslashes and begins
8299 # with a dollar sign (not a hyphen), so the echo should work correctly.
8300 lt_compile=`echo "$ac_compile" | $SED \
8301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8303 -e 's:$: $lt_compiler_flag:'`
8304 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8305 (eval "$lt_compile" 2>out/conftest.err)
8306 ac_status=$?
8307 cat out/conftest.err >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8310 then
8311 # The compiler can only warn and ignore the option if not recognized
8312 # So say no if there are warnings
8313 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8314 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8315 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8316 lt_cv_prog_compiler_c_o=yes
8317 fi
8318 fi
8319 chmod u+w . 2>&5
8320 $RM conftest*
8321 # SGI C++ compiler will create directory out/ii_files/ for
8322 # template instantiation
8323 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8324 $RM out/* && rmdir out
8325 cd ..
8326 $RM -r conftest
8327 $RM conftest*
8328
8329fi
8330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8331$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8332
8333
8334
8335
8336hard_links="nottested"
8337if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8338 # do not overwrite the value of need_locks provided by the user
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8340$as_echo_n "checking if we can lock with hard links... " >&6; }
8341 hard_links=yes
8342 $RM conftest*
8343 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8344 touch conftest.a
8345 ln conftest.a conftest.b 2>&5 || hard_links=no
8346 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8348$as_echo "$hard_links" >&6; }
8349 if test "$hard_links" = no; then
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8351$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8352 need_locks=warn
8353 fi
8354else
8355 need_locks=no
8356fi
8357
8358
8359
8360
8361
8362
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8364$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8365
8366 runpath_var=
8367 allow_undefined_flag=
8368 always_export_symbols=no
8369 archive_cmds=
8370 archive_expsym_cmds=
8371 compiler_needs_object=no
8372 enable_shared_with_static_runtimes=no
8373 export_dynamic_flag_spec=
8374 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8375 hardcode_automatic=no
8376 hardcode_direct=no
8377 hardcode_direct_absolute=no
8378 hardcode_libdir_flag_spec=
8379 hardcode_libdir_flag_spec_ld=
8380 hardcode_libdir_separator=
8381 hardcode_minus_L=no
8382 hardcode_shlibpath_var=unsupported
8383 inherit_rpath=no
8384 link_all_deplibs=unknown
8385 module_cmds=
8386 module_expsym_cmds=
8387 old_archive_from_new_cmds=
8388 old_archive_from_expsyms_cmds=
8389 thread_safe_flag_spec=
8390 whole_archive_flag_spec=
8391 # include_expsyms should be a list of space-separated symbols to be *always*
8392 # included in the symbol list
8393 include_expsyms=
8394 # exclude_expsyms can be an extended regexp of symbols to exclude
8395 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8396 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8397 # as well as any symbol that contains `d'.
8398 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8399 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8400 # platforms (ab)use it in PIC code, but their linkers get confused if
8401 # the symbol is explicitly referenced. Since portable code cannot
8402 # rely on this symbol name, it's probably fine to never include it in
8403 # preloaded symbol tables.
8404 # Exclude shared library initialization/finalization symbols.
8405 extract_expsyms_cmds=
8406
8407 case $host_os in
8408 cygwin* | mingw* | pw32* | cegcc*)
8409 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8410 # When not using gcc, we currently assume that we are using
8411 # Microsoft Visual C++.
8412 if test "$GCC" != yes; then
8413 with_gnu_ld=no
8414 fi
8415 ;;
8416 interix*)
8417 # we just hope/assume this is gcc and not c89 (= MSVC++)
8418 with_gnu_ld=yes
8419 ;;
8420 openbsd*)
8421 with_gnu_ld=no
8422 ;;
8423 esac
f0569246 8424
6bb11ab3
L
8425 ld_shlibs=yes
8426
8427 # On some targets, GNU ld is compatible enough with the native linker
8428 # that we're better off using the native interface for both.
8429 lt_use_gnu_ld_interface=no
8430 if test "$with_gnu_ld" = yes; then
8431 case $host_os in
8432 aix*)
8433 # The AIX port of GNU ld has always aspired to compatibility
8434 # with the native linker. However, as the warning in the GNU ld
8435 # block says, versions before 2.19.5* couldn't really create working
8436 # shared libraries, regardless of the interface used.
8437 case `$LD -v 2>&1` in
8438 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8439 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8440 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8441 *)
8442 lt_use_gnu_ld_interface=yes
8443 ;;
8444 esac
8445 ;;
8446 *)
8447 lt_use_gnu_ld_interface=yes
8448 ;;
8449 esac
8450 fi
f0569246 8451
6bb11ab3
L
8452 if test "$lt_use_gnu_ld_interface" = yes; then
8453 # If archive_cmds runs LD, not CC, wlarc should be empty
8454 wlarc='${wl}'
8455
8456 # Set some defaults for GNU ld with shared library support. These
8457 # are reset later if shared libraries are not supported. Putting them
8458 # here allows them to be overridden if necessary.
8459 runpath_var=LD_RUN_PATH
8460 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8461 export_dynamic_flag_spec='${wl}--export-dynamic'
8462 # ancient GNU ld didn't support --whole-archive et. al.
8463 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8464 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8465 else
8466 whole_archive_flag_spec=
8467 fi
8468 supports_anon_versioning=no
8469 case `$LD -v 2>&1` in
8470 *GNU\ gold*) supports_anon_versioning=yes ;;
8471 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8472 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8473 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8474 *\ 2.11.*) ;; # other 2.11 versions
8475 *) supports_anon_versioning=yes ;;
8476 esac
8477
8478 # See if GNU ld supports shared libraries.
8479 case $host_os in
8480 aix[3-9]*)
8481 # On AIX/PPC, the GNU linker is very broken
8482 if test "$host_cpu" != ia64; then
8483 ld_shlibs=no
8484 cat <<_LT_EOF 1>&2
8485
8486*** Warning: the GNU linker, at least up to release 2.19, is reported
8487*** to be unable to reliably create shared libraries on AIX.
8488*** Therefore, libtool is disabling shared libraries support. If you
8489*** really care for shared libraries, you may want to install binutils
8490*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8491*** You will then need to restart the configuration process.
8492
8493_LT_EOF
8494 fi
8495 ;;
8496
8497 amigaos*)
8498 case $host_cpu in
8499 powerpc)
8500 # see comment about AmigaOS4 .so support
8501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8502 archive_expsym_cmds=''
8503 ;;
8504 m68k)
8505 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)'
8506 hardcode_libdir_flag_spec='-L$libdir'
8507 hardcode_minus_L=yes
8508 ;;
8509 esac
8510 ;;
8511
8512 beos*)
8513 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8514 allow_undefined_flag=unsupported
8515 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8516 # support --undefined. This deserves some investigation. FIXME
8517 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8518 else
8519 ld_shlibs=no
8520 fi
8521 ;;
8522
8523 cygwin* | mingw* | pw32* | cegcc*)
8524 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8525 # as there is no search path for DLLs.
8526 hardcode_libdir_flag_spec='-L$libdir'
8527 export_dynamic_flag_spec='${wl}--export-all-symbols'
8528 allow_undefined_flag=unsupported
8529 always_export_symbols=no
8530 enable_shared_with_static_runtimes=yes
8531 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8532
8533 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8535 # If the export-symbols file already is a .def file (1st line
8536 # is EXPORTS), use it as is; otherwise, prepend...
8537 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8538 cp $export_symbols $output_objdir/$soname.def;
8539 else
8540 echo EXPORTS > $output_objdir/$soname.def;
8541 cat $export_symbols >> $output_objdir/$soname.def;
8542 fi~
8543 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8544 else
8545 ld_shlibs=no
8546 fi
8547 ;;
8548
8549 haiku*)
8550 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8551 link_all_deplibs=yes
8552 ;;
8553
8554 interix[3-9]*)
8555 hardcode_direct=no
8556 hardcode_shlibpath_var=no
8557 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8558 export_dynamic_flag_spec='${wl}-E'
8559 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8560 # Instead, shared libraries are loaded at an image base (0x10000000 by
8561 # default) and relocated if they conflict, which is a slow very memory
8562 # consuming and fragmenting process. To avoid this, we pick a random,
8563 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8564 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8565 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8566 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'
8567 ;;
8568
8569 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8570 tmp_diet=no
8571 if test "$host_os" = linux-dietlibc; then
8572 case $cc_basename in
8573 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8574 esac
8575 fi
8576 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8577 && test "$tmp_diet" = no
8578 then
5cddc23a 8579 tmp_addflag=' $pic_flag'
6bb11ab3
L
8580 tmp_sharedflag='-shared'
8581 case $cc_basename,$host_cpu in
8582 pgcc*) # Portland Group C compiler
8583 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'
8584 tmp_addflag=' $pic_flag'
8585 ;;
8586 pgf77* | pgf90* | pgf95* | pgfortran*)
8587 # Portland Group f77 and f90 compilers
8588 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'
8589 tmp_addflag=' $pic_flag -Mnomain' ;;
8590 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8591 tmp_addflag=' -i_dynamic' ;;
8592 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8593 tmp_addflag=' -i_dynamic -nofor_main' ;;
8594 ifc* | ifort*) # Intel Fortran compiler
8595 tmp_addflag=' -nofor_main' ;;
8596 lf95*) # Lahey Fortran 8.1
8597 whole_archive_flag_spec=
8598 tmp_sharedflag='--shared' ;;
8599 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8600 tmp_sharedflag='-qmkshrobj'
8601 tmp_addflag= ;;
8602 nvcc*) # Cuda Compiler Driver 2.2
8603 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'
8604 compiler_needs_object=yes
8605 ;;
8606 esac
8607 case `$CC -V 2>&1 | sed 5q` in
8608 *Sun\ C*) # Sun C 5.9
8609 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'
8610 compiler_needs_object=yes
8611 tmp_sharedflag='-G' ;;
8612 *Sun\ F*) # Sun Fortran 8.3
8613 tmp_sharedflag='-G' ;;
8614 esac
8615 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8616
8617 if test "x$supports_anon_versioning" = xyes; then
8618 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8619 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8620 echo "local: *; };" >> $output_objdir/$libname.ver~
8621 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8622 fi
8623
8624 case $cc_basename in
8625 xlf* | bgf* | bgxlf* | mpixlf*)
8626 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8627 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8628 hardcode_libdir_flag_spec=
8629 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8630 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8631 if test "x$supports_anon_versioning" = xyes; then
8632 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8633 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8634 echo "local: *; };" >> $output_objdir/$libname.ver~
8635 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8636 fi
8637 ;;
8638 esac
8639 else
8640 ld_shlibs=no
8641 fi
8642 ;;
8643
8644 netbsd*)
8645 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8646 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8647 wlarc=
8648 else
8649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8650 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8651 fi
8652 ;;
8653
8654 solaris*)
8655 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8656 ld_shlibs=no
8657 cat <<_LT_EOF 1>&2
8658
8659*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8660*** create shared libraries on Solaris systems. Therefore, libtool
8661*** is disabling shared libraries support. We urge you to upgrade GNU
8662*** binutils to release 2.9.1 or newer. Another option is to modify
8663*** your PATH or compiler configuration so that the native linker is
8664*** used, and then restart.
8665
8666_LT_EOF
8667 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8668 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8669 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8670 else
8671 ld_shlibs=no
8672 fi
8673 ;;
8674
8675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8676 case `$LD -v 2>&1` in
8677 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8678 ld_shlibs=no
8679 cat <<_LT_EOF 1>&2
8680
8681*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8682*** reliably create shared libraries on SCO systems. Therefore, libtool
8683*** is disabling shared libraries support. We urge you to upgrade GNU
8684*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8685*** your PATH or compiler configuration so that the native linker is
8686*** used, and then restart.
8687
8688_LT_EOF
8689 ;;
8690 *)
8691 # For security reasons, it is highly recommended that you always
8692 # use absolute paths for naming shared libraries, and exclude the
8693 # DT_RUNPATH tag from executables and libraries. But doing so
8694 # requires that you compile everything twice, which is a pain.
8695 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8696 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8699 else
8700 ld_shlibs=no
8701 fi
8702 ;;
8703 esac
8704 ;;
8705
8706 sunos4*)
8707 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8708 wlarc=
8709 hardcode_direct=yes
8710 hardcode_shlibpath_var=no
8711 ;;
8712
8713 *)
8714 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8716 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8717 else
8718 ld_shlibs=no
8719 fi
8720 ;;
8721 esac
8722
8723 if test "$ld_shlibs" = no; then
8724 runpath_var=
8725 hardcode_libdir_flag_spec=
8726 export_dynamic_flag_spec=
8727 whole_archive_flag_spec=
8728 fi
8729 else
8730 # PORTME fill in a description of your system's linker (not GNU ld)
8731 case $host_os in
8732 aix3*)
8733 allow_undefined_flag=unsupported
8734 always_export_symbols=yes
8735 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'
8736 # Note: this linker hardcodes the directories in LIBPATH if there
8737 # are no directories specified by -L.
8738 hardcode_minus_L=yes
8739 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8740 # Neither direct hardcoding nor static linking is supported with a
8741 # broken collect2.
8742 hardcode_direct=unsupported
8743 fi
8744 ;;
8745
8746 aix[4-9]*)
8747 if test "$host_cpu" = ia64; then
8748 # On IA64, the linker does run time linking by default, so we don't
8749 # have to do anything special.
8750 aix_use_runtimelinking=no
8751 exp_sym_flag='-Bexport'
8752 no_entry_flag=""
8753 else
8754 # If we're using GNU nm, then we don't want the "-C" option.
8755 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8756 # Also, AIX nm treats weak defined symbols like other global
8757 # defined symbols, whereas GNU nm marks them as "W".
8758 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8759 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'
8760 else
5c887dd5 8761 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
8762 fi
8763 aix_use_runtimelinking=no
8764
8765 # Test if we are trying to use run time linking or normal
8766 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8767 # need to do runtime linking.
8768 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8769 for ld_flag in $LDFLAGS; do
8770 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8771 aix_use_runtimelinking=yes
8772 break
8773 fi
8774 done
8775 ;;
8776 esac
8777
8778 exp_sym_flag='-bexport'
8779 no_entry_flag='-bnoentry'
8780 fi
8781
8782 # When large executables or shared objects are built, AIX ld can
8783 # have problems creating the table of contents. If linking a library
8784 # or program results in "error TOC overflow" add -mminimal-toc to
8785 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8786 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8787
8788 archive_cmds=''
8789 hardcode_direct=yes
8790 hardcode_direct_absolute=yes
8791 hardcode_libdir_separator=':'
8792 link_all_deplibs=yes
8793 file_list_spec='${wl}-f,'
8794
8795 if test "$GCC" = yes; then
8796 case $host_os in aix4.[012]|aix4.[012].*)
8797 # We only want to do this on AIX 4.2 and lower, the check
8798 # below for broken collect2 doesn't work under 4.3+
8799 collect2name=`${CC} -print-prog-name=collect2`
8800 if test -f "$collect2name" &&
8801 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8802 then
8803 # We have reworked collect2
8804 :
8805 else
8806 # We have old collect2
8807 hardcode_direct=unsupported
8808 # It fails to find uninstalled libraries when the uninstalled
8809 # path is not listed in the libpath. Setting hardcode_minus_L
8810 # to unsupported forces relinking
8811 hardcode_minus_L=yes
8812 hardcode_libdir_flag_spec='-L$libdir'
8813 hardcode_libdir_separator=
8814 fi
8815 ;;
8816 esac
8817 shared_flag='-shared'
8818 if test "$aix_use_runtimelinking" = yes; then
8819 shared_flag="$shared_flag "'${wl}-G'
8820 fi
8821 else
8822 # not using gcc
8823 if test "$host_cpu" = ia64; then
8824 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8825 # chokes on -Wl,-G. The following line is correct:
8826 shared_flag='-G'
8827 else
8828 if test "$aix_use_runtimelinking" = yes; then
8829 shared_flag='${wl}-G'
8830 else
8831 shared_flag='${wl}-bM:SRE'
8832 fi
8833 fi
8834 fi
8835
8836 export_dynamic_flag_spec='${wl}-bexpall'
8837 # It seems that -bexpall does not export symbols beginning with
8838 # underscore (_), so it is better to generate a list of symbols to export.
8839 always_export_symbols=yes
8840 if test "$aix_use_runtimelinking" = yes; then
8841 # Warning - without using the other runtime loading flags (-brtl),
8842 # -berok will link without error, but may produce a broken library.
8843 allow_undefined_flag='-berok'
8844 # Determine the default libpath from the value encoded in an
8845 # empty executable.
8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb
RW
8847/* end confdefs.h. */
8848
8849int
8850main ()
8851{
8852
8853 ;
8854 return 0;
8855}
8856_ACEOF
6bb11ab3 8857if ac_fn_c_try_link "$LINENO"; then :
81ecdfbb 8858
6bb11ab3
L
8859lt_aix_libpath_sed='
8860 /Import File Strings/,/^$/ {
8861 /^0/ {
8862 s/^0 *\(.*\)$/\1/
8863 p
8864 }
8865 }'
8866aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8867# Check for a 64-bit object if we didn't find anything.
8868if test -z "$aix_libpath"; then
8869 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8870fi
8871fi
8872rm -f core conftest.err conftest.$ac_objext \
8873 conftest$ac_exeext conftest.$ac_ext
8874if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8875
8876 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8877 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"
8878 else
8879 if test "$host_cpu" = ia64; then
8880 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8881 allow_undefined_flag="-z nodefs"
8882 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"
8883 else
8884 # Determine the default libpath from the value encoded in an
8885 # empty executable.
81ecdfbb
RW
8886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887/* end confdefs.h. */
8888
8889int
8890main ()
8891{
b7026657 8892
81ecdfbb
RW
8893 ;
8894 return 0;
8895}
8896_ACEOF
6bb11ab3
L
8897if ac_fn_c_try_link "$LINENO"; then :
8898
8899lt_aix_libpath_sed='
8900 /Import File Strings/,/^$/ {
8901 /^0/ {
8902 s/^0 *\(.*\)$/\1/
8903 p
8904 }
8905 }'
8906aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8907# Check for a 64-bit object if we didn't find anything.
8908if test -z "$aix_libpath"; then
8909 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
f0569246 8910fi
81ecdfbb 8911fi
6bb11ab3
L
8912rm -f core conftest.err conftest.$ac_objext \
8913 conftest$ac_exeext conftest.$ac_ext
8914if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8915
8916 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8917 # Warning - without using the other run time loading flags,
8918 # -berok will link without error, but may produce a broken library.
8919 no_undefined_flag=' ${wl}-bernotok'
8920 allow_undefined_flag=' ${wl}-berok'
8921 if test "$with_gnu_ld" = yes; then
8922 # We only use this code for GNU lds that support --whole-archive.
8923 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8924 else
8925 # Exported symbols can be pulled into shared objects from archives
8926 whole_archive_flag_spec='$convenience'
8927 fi
8928 archive_cmds_need_lc=yes
8929 # This is similar to how AIX traditionally builds its shared libraries.
8930 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'
8931 fi
8932 fi
8933 ;;
8934
8935 amigaos*)
8936 case $host_cpu in
8937 powerpc)
8938 # see comment about AmigaOS4 .so support
8939 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8940 archive_expsym_cmds=''
8941 ;;
8942 m68k)
8943 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)'
8944 hardcode_libdir_flag_spec='-L$libdir'
8945 hardcode_minus_L=yes
8946 ;;
8947 esac
8948 ;;
8949
8950 bsdi[45]*)
8951 export_dynamic_flag_spec=-rdynamic
8952 ;;
8953
8954 cygwin* | mingw* | pw32* | cegcc*)
8955 # When not using gcc, we currently assume that we are using
8956 # Microsoft Visual C++.
8957 # hardcode_libdir_flag_spec is actually meaningless, as there is
8958 # no search path for DLLs.
8959 hardcode_libdir_flag_spec=' '
8960 allow_undefined_flag=unsupported
8961 # Tell ltmain to make .lib files, not .a files.
8962 libext=lib
8963 # Tell ltmain to make .dll files, not .so files.
8964 shrext_cmds=".dll"
8965 # FIXME: Setting linknames here is a bad hack.
8966 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8967 # The linker will automatically build a .lib file if we build a DLL.
8968 old_archive_from_new_cmds='true'
8969 # FIXME: Should let the user specify the lib program.
8970 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8971 fix_srcfile_path='`cygpath -w "$srcfile"`'
8972 enable_shared_with_static_runtimes=yes
8973 ;;
8974
8975 darwin* | rhapsody*)
8976
8977
8978 archive_cmds_need_lc=no
8979 hardcode_direct=no
8980 hardcode_automatic=yes
8981 hardcode_shlibpath_var=unsupported
8982 if test "$lt_cv_ld_force_load" = "yes"; then
8983 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\"`'
f0569246 8984 else
6bb11ab3 8985 whole_archive_flag_spec=''
f0569246 8986 fi
6bb11ab3
L
8987 link_all_deplibs=yes
8988 allow_undefined_flag="$_lt_dar_allow_undefined"
8989 case $cc_basename in
8990 ifort*) _lt_dar_can_shared=yes ;;
8991 *) _lt_dar_can_shared=$GCC ;;
8992 esac
8993 if test "$_lt_dar_can_shared" = "yes"; then
8994 output_verbose_link_cmd=func_echo_all
8995 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8996 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8997 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}"
8998 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}"
8999
f0569246 9000 else
6bb11ab3 9001 ld_shlibs=no
f0569246 9002 fi
6bb11ab3
L
9003
9004 ;;
9005
9006 dgux*)
9007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9008 hardcode_libdir_flag_spec='-L$libdir'
9009 hardcode_shlibpath_var=no
9010 ;;
9011
9012 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9013 # support. Future versions do this automatically, but an explicit c++rt0.o
9014 # does not break anything, and helps significantly (at the cost of a little
9015 # extra space).
9016 freebsd2.2*)
9017 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9018 hardcode_libdir_flag_spec='-R$libdir'
9019 hardcode_direct=yes
9020 hardcode_shlibpath_var=no
9021 ;;
9022
9023 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9024 freebsd2.*)
9025 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9026 hardcode_direct=yes
9027 hardcode_minus_L=yes
9028 hardcode_shlibpath_var=no
9029 ;;
9030
9031 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9032 freebsd* | dragonfly*)
9033 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9034 hardcode_libdir_flag_spec='-R$libdir'
9035 hardcode_direct=yes
9036 hardcode_shlibpath_var=no
9037 ;;
9038
9039 hpux9*)
9040 if test "$GCC" = yes; then
9041 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'
9042 else
9043 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'
9044 fi
9045 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9046 hardcode_libdir_separator=:
9047 hardcode_direct=yes
9048
9049 # hardcode_minus_L: Not really in the search PATH,
9050 # but as the default location of the library.
9051 hardcode_minus_L=yes
9052 export_dynamic_flag_spec='${wl}-E'
9053 ;;
9054
9055 hpux10*)
9056 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9057 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9058 else
9059 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9060 fi
9061 if test "$with_gnu_ld" = no; then
9062 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9063 hardcode_libdir_flag_spec_ld='+b $libdir'
9064 hardcode_libdir_separator=:
9065 hardcode_direct=yes
9066 hardcode_direct_absolute=yes
9067 export_dynamic_flag_spec='${wl}-E'
9068 # hardcode_minus_L: Not really in the search PATH,
9069 # but as the default location of the library.
9070 hardcode_minus_L=yes
9071 fi
9072 ;;
9073
9074 hpux11*)
9075 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9076 case $host_cpu in
9077 hppa*64*)
9078 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9079 ;;
9080 ia64*)
9081 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9082 ;;
9083 *)
9084 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9085 ;;
9086 esac
9087 else
9088 case $host_cpu in
9089 hppa*64*)
9090 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9091 ;;
9092 ia64*)
9093 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9094 ;;
9095 *)
9096
9097 # Older versions of the 11.00 compiler do not understand -b yet
9098 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9100$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 9101if ${lt_cv_prog_compiler__b+:} false; then :
81ecdfbb 9102 $as_echo_n "(cached) " >&6
f0569246 9103else
6bb11ab3
L
9104 lt_cv_prog_compiler__b=no
9105 save_LDFLAGS="$LDFLAGS"
9106 LDFLAGS="$LDFLAGS -b"
9107 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9108 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9109 # The linker can only warn and ignore the option if not recognized
9110 # So say no if there are warnings
9111 if test -s conftest.err; then
9112 # Append any errors to the config.log.
9113 cat conftest.err 1>&5
9114 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9115 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9116 if diff conftest.exp conftest.er2 >/dev/null; then
9117 lt_cv_prog_compiler__b=yes
9118 fi
9119 else
9120 lt_cv_prog_compiler__b=yes
9121 fi
9122 fi
9123 $RM -r conftest*
9124 LDFLAGS="$save_LDFLAGS"
f0569246 9125
6bb11ab3
L
9126fi
9127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9128$as_echo "$lt_cv_prog_compiler__b" >&6; }
f0569246 9129
6bb11ab3
L
9130if test x"$lt_cv_prog_compiler__b" = xyes; then
9131 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9132else
9133 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9134fi
81ecdfbb 9135
6bb11ab3
L
9136 ;;
9137 esac
9138 fi
9139 if test "$with_gnu_ld" = no; then
9140 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9141 hardcode_libdir_separator=:
9142
9143 case $host_cpu in
9144 hppa*64*|ia64*)
9145 hardcode_direct=no
9146 hardcode_shlibpath_var=no
9147 ;;
9148 *)
9149 hardcode_direct=yes
9150 hardcode_direct_absolute=yes
9151 export_dynamic_flag_spec='${wl}-E'
9152
9153 # hardcode_minus_L: Not really in the search PATH,
9154 # but as the default location of the library.
9155 hardcode_minus_L=yes
9156 ;;
9157 esac
9158 fi
9159 ;;
9160
9161 irix5* | irix6* | nonstopux*)
9162 if test "$GCC" = yes; then
9163 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'
9164 # Try to use the -exported_symbol ld option, if it does not
9165 # work, assume that -exports_file does not work either and
9166 # implicitly export all symbols.
9167 save_LDFLAGS="$LDFLAGS"
9168 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9170/* end confdefs.h. */
9171int foo(void) {}
b7026657 9172_ACEOF
6bb11ab3
L
9173if ac_fn_c_try_link "$LINENO"; then :
9174 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'
c906108c 9175
f0569246 9176fi
6bb11ab3
L
9177rm -f core conftest.err conftest.$ac_objext \
9178 conftest$ac_exeext conftest.$ac_ext
9179 LDFLAGS="$save_LDFLAGS"
9180 else
9181 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'
9182 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'
9183 fi
9184 archive_cmds_need_lc='no'
9185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9186 hardcode_libdir_separator=:
9187 inherit_rpath=yes
9188 link_all_deplibs=yes
9189 ;;
9190
9191 netbsd*)
9192 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9193 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9194 else
9195 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9196 fi
9197 hardcode_libdir_flag_spec='-R$libdir'
9198 hardcode_direct=yes
9199 hardcode_shlibpath_var=no
9200 ;;
9201
9202 newsos6)
9203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9204 hardcode_direct=yes
9205 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9206 hardcode_libdir_separator=:
9207 hardcode_shlibpath_var=no
9208 ;;
9209
9210 *nto* | *qnx*)
9211 ;;
9212
9213 openbsd*)
9214 if test -f /usr/libexec/ld.so; then
9215 hardcode_direct=yes
9216 hardcode_shlibpath_var=no
9217 hardcode_direct_absolute=yes
9218 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9219 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9220 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9221 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9222 export_dynamic_flag_spec='${wl}-E'
9223 else
9224 case $host_os in
9225 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9226 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9227 hardcode_libdir_flag_spec='-R$libdir'
9228 ;;
9229 *)
9230 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9231 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9232 ;;
9233 esac
9234 fi
9235 else
9236 ld_shlibs=no
9237 fi
9238 ;;
9239
9240 os2*)
9241 hardcode_libdir_flag_spec='-L$libdir'
9242 hardcode_minus_L=yes
9243 allow_undefined_flag=unsupported
9244 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'
9245 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9246 ;;
9247
9248 osf3*)
9249 if test "$GCC" = yes; then
9250 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9251 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'
9252 else
9253 allow_undefined_flag=' -expect_unresolved \*'
9254 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'
9255 fi
9256 archive_cmds_need_lc='no'
9257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9258 hardcode_libdir_separator=:
9259 ;;
9260
9261 osf4* | osf5*) # as osf3* with the addition of -msym flag
9262 if test "$GCC" = yes; then
9263 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9264 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'
9265 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9266 else
9267 allow_undefined_flag=' -expect_unresolved \*'
9268 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'
9269 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~
9270 $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'
9271
9272 # Both c and cxx compiler support -rpath directly
9273 hardcode_libdir_flag_spec='-rpath $libdir'
9274 fi
9275 archive_cmds_need_lc='no'
9276 hardcode_libdir_separator=:
9277 ;;
9278
9279 solaris*)
9280 no_undefined_flag=' -z defs'
9281 if test "$GCC" = yes; then
9282 wlarc='${wl}'
9283 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9284 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9285 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9286 else
9287 case `$CC -V 2>&1` in
9288 *"Compilers 5.0"*)
9289 wlarc=''
9290 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9291 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9292 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9293 ;;
9294 *)
9295 wlarc='${wl}'
9296 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9297 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9298 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9299 ;;
9300 esac
9301 fi
9302 hardcode_libdir_flag_spec='-R$libdir'
9303 hardcode_shlibpath_var=no
9304 case $host_os in
9305 solaris2.[0-5] | solaris2.[0-5].*) ;;
9306 *)
9307 # The compiler driver will combine and reorder linker options,
9308 # but understands `-z linker_flag'. GCC discards it without `$wl',
9309 # but is careful enough not to reorder.
9310 # Supported since Solaris 2.6 (maybe 2.5.1?)
9311 if test "$GCC" = yes; then
9312 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9313 else
9314 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9315 fi
9316 ;;
9317 esac
9318 link_all_deplibs=yes
9319 ;;
9320
9321 sunos4*)
9322 if test "x$host_vendor" = xsequent; then
9323 # Use $CC to link under sequent, because it throws in some extra .o
9324 # files that make .init and .fini sections work.
9325 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9326 else
9327 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9328 fi
9329 hardcode_libdir_flag_spec='-L$libdir'
9330 hardcode_direct=yes
9331 hardcode_minus_L=yes
9332 hardcode_shlibpath_var=no
9333 ;;
9334
9335 sysv4)
9336 case $host_vendor in
9337 sni)
9338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9339 hardcode_direct=yes # is this really true???
9340 ;;
9341 siemens)
9342 ## LD is ld it makes a PLAMLIB
9343 ## CC just makes a GrossModule.
9344 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9345 reload_cmds='$CC -r -o $output$reload_objs'
9346 hardcode_direct=no
9347 ;;
9348 motorola)
9349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9350 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9351 ;;
9352 esac
9353 runpath_var='LD_RUN_PATH'
9354 hardcode_shlibpath_var=no
9355 ;;
9356
9357 sysv4.3*)
9358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9359 hardcode_shlibpath_var=no
9360 export_dynamic_flag_spec='-Bexport'
9361 ;;
9362
9363 sysv4*MP*)
9364 if test -d /usr/nec; then
9365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9366 hardcode_shlibpath_var=no
9367 runpath_var=LD_RUN_PATH
9368 hardcode_runpath_var=yes
9369 ld_shlibs=yes
9370 fi
9371 ;;
9372
9373 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9374 no_undefined_flag='${wl}-z,text'
9375 archive_cmds_need_lc=no
9376 hardcode_shlibpath_var=no
9377 runpath_var='LD_RUN_PATH'
9378
9379 if test "$GCC" = yes; then
9380 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9381 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9382 else
9383 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9384 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9385 fi
9386 ;;
9387
9388 sysv5* | sco3.2v5* | sco5v6*)
9389 # Note: We can NOT use -z defs as we might desire, because we do not
9390 # link with -lc, and that would cause any symbols used from libc to
9391 # always be unresolved, which means just about no library would
9392 # ever link correctly. If we're not using GNU ld we use -z text
9393 # though, which does catch some bad symbols but isn't as heavy-handed
9394 # as -z defs.
9395 no_undefined_flag='${wl}-z,text'
9396 allow_undefined_flag='${wl}-z,nodefs'
9397 archive_cmds_need_lc=no
9398 hardcode_shlibpath_var=no
9399 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9400 hardcode_libdir_separator=':'
9401 link_all_deplibs=yes
9402 export_dynamic_flag_spec='${wl}-Bexport'
9403 runpath_var='LD_RUN_PATH'
9404
9405 if test "$GCC" = yes; then
9406 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9407 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9408 else
9409 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9410 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9411 fi
9412 ;;
9413
9414 uts4*)
9415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9416 hardcode_libdir_flag_spec='-L$libdir'
9417 hardcode_shlibpath_var=no
9418 ;;
9419
9420 *)
9421 ld_shlibs=no
9422 ;;
9423 esac
9424
9425 if test x$host_vendor = xsni; then
9426 case $host in
9427 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9428 export_dynamic_flag_spec='${wl}-Blargedynsym'
9429 ;;
9430 esac
9431 fi
9432 fi
9433
9434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9435$as_echo "$ld_shlibs" >&6; }
9436test "$ld_shlibs" = no && can_build_shared=no
9437
9438with_gnu_ld=$with_gnu_ld
9439
9440
9441
9442
9443
f0569246 9444
b7026657 9445
f0569246 9446
6ffe910a 9447
6ffe910a
MF
9448
9449
6ffe910a 9450
f0569246 9451
f0569246 9452
c906108c 9453
6bb11ab3
L
9454#
9455# Do we need to explicitly link libc?
9456#
9457case "x$archive_cmds_need_lc" in
9458x|xyes)
9459 # Assume -lc should be added
9460 archive_cmds_need_lc=yes
9461
9462 if test "$enable_shared" = yes && test "$GCC" = yes; then
9463 case $archive_cmds in
9464 *'~'*)
9465 # FIXME: we may have to deal with multi-command sequences.
9466 ;;
9467 '$CC '*)
9468 # Test whether the compiler implicitly links with -lc since on some
9469 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9470 # to ld, don't add -lc before -lgcc.
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9472$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 9473if ${lt_cv_archive_cmds_need_lc+:} false; then :
6ffe910a 9474 $as_echo_n "(cached) " >&6
f0569246 9475else
6bb11ab3
L
9476 $RM conftest*
9477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9478
9479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9480 (eval $ac_compile) 2>&5
9481 ac_status=$?
9482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9483 test $ac_status = 0; } 2>conftest.err; then
9484 soname=conftest
9485 lib=conftest
9486 libobjs=conftest.$ac_objext
9487 deplibs=
9488 wl=$lt_prog_compiler_wl
9489 pic_flag=$lt_prog_compiler_pic
9490 compiler_flags=-v
9491 linker_flags=-v
9492 verstring=
9493 output_objdir=.
9494 libname=conftest
9495 lt_save_allow_undefined_flag=$allow_undefined_flag
9496 allow_undefined_flag=
9497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9498 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9499 ac_status=$?
9500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9501 test $ac_status = 0; }
9502 then
9503 lt_cv_archive_cmds_need_lc=no
9504 else
9505 lt_cv_archive_cmds_need_lc=yes
9506 fi
9507 allow_undefined_flag=$lt_save_allow_undefined_flag
9508 else
9509 cat conftest.err 1>&5
9510 fi
9511 $RM conftest*
c906108c 9512
6ffe910a 9513fi
6bb11ab3
L
9514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9515$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9516 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9517 ;;
9518 esac
9519 fi
9520 ;;
6ffe910a 9521esac
c906108c 9522
c906108c 9523
6ffe910a 9524
c906108c 9525
81ecdfbb 9526
35695fd6 9527
35695fd6 9528
35695fd6 9529
f0569246 9530
c906108c 9531
f0569246 9532
b7026657 9533
f0569246 9534
c906108c 9535
81ecdfbb 9536
b7026657 9537
f0569246
AC
9538
9539
81ecdfbb 9540
81ecdfbb 9541
81ecdfbb
RW
9542
9543
81ecdfbb 9544
81ecdfbb 9545
f0569246
AC
9546
9547
c906108c 9548
f0569246 9549
c906108c 9550
c906108c 9551
81ecdfbb 9552
b7026657 9553
c906108c 9554
f0569246 9555
81ecdfbb 9556
f0569246 9557
c906108c 9558
c906108c 9559
b7026657 9560
81ecdfbb 9561
b7026657 9562
c906108c 9563
c906108c 9564
b7026657
AC
9565
9566
9567
9568
6ffe910a 9569
2232061b
MF
9570
9571
2232061b 9572
2232061b
MF
9573
9574
2232061b
MF
9575
9576
2232061b 9577
6bb11ab3
L
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
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9680$as_echo_n "checking dynamic linker characteristics... " >&6; }
9681
9682if test "$GCC" = yes; then
9683 case $host_os in
9684 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9685 *) lt_awk_arg="/^libraries:/" ;;
9686 esac
9687 case $host_os in
9688 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9689 *) lt_sed_strip_eq="s,=/,/,g" ;;
9690 esac
9691 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9692 case $lt_search_path_spec in
9693 *\;*)
9694 # if the path contains ";" then we assume it to be the separator
9695 # otherwise default to the standard path separator (i.e. ":") - it is
9696 # assumed that no part of a normal pathname contains ";" but that should
9697 # okay in the real world where ";" in dirpaths is itself problematic.
9698 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9699 ;;
9700 *)
9701 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9702 ;;
9703 esac
9704 # Ok, now we have the path, separated by spaces, we can step through it
9705 # and add multilib dir if necessary.
9706 lt_tmp_lt_search_path_spec=
9707 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9708 for lt_sys_path in $lt_search_path_spec; do
9709 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9710 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9711 else
9712 test -d "$lt_sys_path" && \
9713 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9714 fi
9715 done
9716 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9717BEGIN {RS=" "; FS="/|\n";} {
9718 lt_foo="";
9719 lt_count=0;
9720 for (lt_i = NF; lt_i > 0; lt_i--) {
9721 if ($lt_i != "" && $lt_i != ".") {
9722 if ($lt_i == "..") {
9723 lt_count++;
9724 } else {
9725 if (lt_count == 0) {
9726 lt_foo="/" $lt_i lt_foo;
9727 } else {
9728 lt_count--;
9729 }
9730 }
9731 }
9732 }
9733 if (lt_foo != "") { lt_freq[lt_foo]++; }
9734 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9735}'`
9736 # AWK program above erroneously prepends '/' to C:/dos/paths
9737 # for these hosts.
9738 case $host_os in
9739 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9740 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9741 esac
9742 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9743else
9744 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9745fi
9746library_names_spec=
9747libname_spec='lib$name'
9748soname_spec=
9749shrext_cmds=".so"
9750postinstall_cmds=
9751postuninstall_cmds=
9752finish_cmds=
9753finish_eval=
9754shlibpath_var=
9755shlibpath_overrides_runpath=unknown
9756version_type=none
9757dynamic_linker="$host_os ld.so"
9758sys_lib_dlsearch_path_spec="/lib /usr/lib"
9759need_lib_prefix=unknown
9760hardcode_into_libs=no
9761
9762# when you set need_version to no, make sure it does not cause -set_version
9763# flags to be left without arguments
9764need_version=unknown
9765
9766case $host_os in
9767aix3*)
9768 version_type=linux
9769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9770 shlibpath_var=LIBPATH
9771
9772 # AIX 3 has no versioning support, so we append a major version to the name.
9773 soname_spec='${libname}${release}${shared_ext}$major'
9774 ;;
9775
9776aix[4-9]*)
9777 version_type=linux
9778 need_lib_prefix=no
9779 need_version=no
9780 hardcode_into_libs=yes
9781 if test "$host_cpu" = ia64; then
9782 # AIX 5 supports IA64
9783 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9784 shlibpath_var=LD_LIBRARY_PATH
9785 else
9786 # With GCC up to 2.95.x, collect2 would create an import file
9787 # for dependence libraries. The import file would start with
9788 # the line `#! .'. This would cause the generated library to
9789 # depend on `.', always an invalid library. This was fixed in
9790 # development snapshots of GCC prior to 3.0.
9791 case $host_os in
9792 aix4 | aix4.[01] | aix4.[01].*)
9793 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9794 echo ' yes '
9795 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9796 :
9797 else
9798 can_build_shared=no
9799 fi
9800 ;;
9801 esac
9802 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9803 # soname into executable. Probably we can add versioning support to
9804 # collect2, so additional links can be useful in future.
9805 if test "$aix_use_runtimelinking" = yes; then
9806 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9807 # instead of lib<name>.a to let people know that these are not
9808 # typical AIX shared libraries.
9809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9810 else
9811 # We preserve .a as extension for shared libraries through AIX4.2
9812 # and later when we are not doing run time linking.
9813 library_names_spec='${libname}${release}.a $libname.a'
9814 soname_spec='${libname}${release}${shared_ext}$major'
9815 fi
9816 shlibpath_var=LIBPATH
2232061b 9817 fi
6bb11ab3
L
9818 ;;
9819
9820amigaos*)
9821 case $host_cpu in
9822 powerpc)
9823 # Since July 2007 AmigaOS4 officially supports .so libraries.
9824 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826 ;;
9827 m68k)
9828 library_names_spec='$libname.ixlibrary $libname.a'
9829 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9830 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'
9831 ;;
9832 esac
9833 ;;
9834
9835beos*)
9836 library_names_spec='${libname}${shared_ext}'
9837 dynamic_linker="$host_os ld.so"
9838 shlibpath_var=LIBRARY_PATH
9839 ;;
9840
9841bsdi[45]*)
9842 version_type=linux
9843 need_version=no
9844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9845 soname_spec='${libname}${release}${shared_ext}$major'
9846 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9847 shlibpath_var=LD_LIBRARY_PATH
9848 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9849 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9850 # the default ld.so.conf also contains /usr/contrib/lib and
9851 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9852 # libtool to hard-code these into programs
9853 ;;
9854
9855cygwin* | mingw* | pw32* | cegcc*)
9856 version_type=windows
9857 shrext_cmds=".dll"
9858 need_version=no
9859 need_lib_prefix=no
9860
9861 case $GCC,$host_os in
9862 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9863 library_names_spec='$libname.dll.a'
9864 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9865 postinstall_cmds='base_file=`basename \${file}`~
9866 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9867 dldir=$destdir/`dirname \$dlpath`~
9868 test -d \$dldir || mkdir -p \$dldir~
9869 $install_prog $dir/$dlname \$dldir/$dlname~
9870 chmod a+x \$dldir/$dlname~
9871 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9872 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9873 fi'
9874 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9875 dlpath=$dir/\$dldll~
9876 $RM \$dlpath'
9877 shlibpath_overrides_runpath=yes
9878
9879 case $host_os in
9880 cygwin*)
9881 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9882 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9883
9884 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9885 ;;
9886 mingw* | cegcc*)
9887 # MinGW DLLs use traditional 'lib' prefix
9888 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9889 ;;
9890 pw32*)
9891 # pw32 DLLs use 'pw' prefix rather than 'lib'
9892 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9893 ;;
9894 esac
9895 ;;
2232061b 9896
6bb11ab3
L
9897 *)
9898 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9899 ;;
9900 esac
9901 dynamic_linker='Win32 ld.exe'
9902 # FIXME: first we should search . and the directory the executable is in
9903 shlibpath_var=PATH
9904 ;;
9905
9906darwin* | rhapsody*)
9907 dynamic_linker="$host_os dyld"
9908 version_type=darwin
9909 need_lib_prefix=no
9910 need_version=no
9911 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9912 soname_spec='${libname}${release}${major}$shared_ext'
9913 shlibpath_overrides_runpath=yes
9914 shlibpath_var=DYLD_LIBRARY_PATH
9915 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9916
9917 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9918 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9919 ;;
9920
9921dgux*)
9922 version_type=linux
9923 need_lib_prefix=no
9924 need_version=no
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9926 soname_spec='${libname}${release}${shared_ext}$major'
9927 shlibpath_var=LD_LIBRARY_PATH
9928 ;;
9929
9930freebsd* | dragonfly*)
9931 # DragonFly does not have aout. When/if they implement a new
9932 # versioning mechanism, adjust this.
9933 if test -x /usr/bin/objformat; then
9934 objformat=`/usr/bin/objformat`
9935 else
9936 case $host_os in
9937 freebsd[23].*) objformat=aout ;;
9938 *) objformat=elf ;;
9939 esac
9940 fi
9941 version_type=freebsd-$objformat
9942 case $version_type in
9943 freebsd-elf*)
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9945 need_version=no
9946 need_lib_prefix=no
9947 ;;
9948 freebsd-*)
9949 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9950 need_version=yes
9951 ;;
9952 esac
9953 shlibpath_var=LD_LIBRARY_PATH
9954 case $host_os in
9955 freebsd2.*)
9956 shlibpath_overrides_runpath=yes
9957 ;;
9958 freebsd3.[01]* | freebsdelf3.[01]*)
9959 shlibpath_overrides_runpath=yes
9960 hardcode_into_libs=yes
9961 ;;
9962 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9963 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9964 shlibpath_overrides_runpath=no
9965 hardcode_into_libs=yes
9966 ;;
9967 *) # from 4.6 on, and DragonFly
9968 shlibpath_overrides_runpath=yes
9969 hardcode_into_libs=yes
9970 ;;
9971 esac
9972 ;;
9973
6bb11ab3
L
9974haiku*)
9975 version_type=linux
9976 need_lib_prefix=no
9977 need_version=no
9978 dynamic_linker="$host_os runtime_loader"
9979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9980 soname_spec='${libname}${release}${shared_ext}$major'
9981 shlibpath_var=LIBRARY_PATH
9982 shlibpath_overrides_runpath=yes
9983 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9984 hardcode_into_libs=yes
9985 ;;
9986
9987hpux9* | hpux10* | hpux11*)
9988 # Give a soname corresponding to the major version so that dld.sl refuses to
9989 # link against other versions.
9990 version_type=sunos
9991 need_lib_prefix=no
9992 need_version=no
9993 case $host_cpu in
9994 ia64*)
9995 shrext_cmds='.so'
9996 hardcode_into_libs=yes
9997 dynamic_linker="$host_os dld.so"
9998 shlibpath_var=LD_LIBRARY_PATH
9999 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10001 soname_spec='${libname}${release}${shared_ext}$major'
10002 if test "X$HPUX_IA64_MODE" = X32; then
10003 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10004 else
10005 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10006 fi
10007 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10008 ;;
10009 hppa*64*)
10010 shrext_cmds='.sl'
10011 hardcode_into_libs=yes
10012 dynamic_linker="$host_os dld.sl"
10013 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10014 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10016 soname_spec='${libname}${release}${shared_ext}$major'
10017 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10018 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10019 ;;
10020 *)
10021 shrext_cmds='.sl'
10022 dynamic_linker="$host_os dld.sl"
10023 shlibpath_var=SHLIB_PATH
10024 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10026 soname_spec='${libname}${release}${shared_ext}$major'
10027 ;;
10028 esac
10029 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10030 postinstall_cmds='chmod 555 $lib'
10031 # or fails outright, so override atomically:
10032 install_override_mode=555
10033 ;;
10034
10035interix[3-9]*)
10036 version_type=linux
10037 need_lib_prefix=no
10038 need_version=no
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10040 soname_spec='${libname}${release}${shared_ext}$major'
10041 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10042 shlibpath_var=LD_LIBRARY_PATH
10043 shlibpath_overrides_runpath=no
10044 hardcode_into_libs=yes
10045 ;;
10046
10047irix5* | irix6* | nonstopux*)
10048 case $host_os in
10049 nonstopux*) version_type=nonstopux ;;
10050 *)
10051 if test "$lt_cv_prog_gnu_ld" = yes; then
10052 version_type=linux
10053 else
10054 version_type=irix
10055 fi ;;
10056 esac
10057 need_lib_prefix=no
10058 need_version=no
10059 soname_spec='${libname}${release}${shared_ext}$major'
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10061 case $host_os in
10062 irix5* | nonstopux*)
10063 libsuff= shlibsuff=
10064 ;;
10065 *)
10066 case $LD in # libtool.m4 will add one of these switches to LD
10067 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10068 libsuff= shlibsuff= libmagic=32-bit;;
10069 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10070 libsuff=32 shlibsuff=N32 libmagic=N32;;
10071 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10072 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10073 *) libsuff= shlibsuff= libmagic=never-match;;
10074 esac
10075 ;;
10076 esac
10077 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10078 shlibpath_overrides_runpath=no
10079 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10080 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10081 hardcode_into_libs=yes
10082 ;;
10083
10084# No shared lib support for Linux oldld, aout, or coff.
10085linux*oldld* | linux*aout* | linux*coff*)
10086 dynamic_linker=no
10087 ;;
10088
10089# This must be Linux ELF.
46f900c0 10090linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6bb11ab3
L
10091 version_type=linux
10092 need_lib_prefix=no
10093 need_version=no
10094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10095 soname_spec='${libname}${release}${shared_ext}$major'
10096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10097 shlibpath_var=LD_LIBRARY_PATH
10098 shlibpath_overrides_runpath=no
10099
10100 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 10101 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
2232061b
MF
10102 $as_echo_n "(cached) " >&6
10103else
6bb11ab3
L
10104 lt_cv_shlibpath_overrides_runpath=no
10105 save_LDFLAGS=$LDFLAGS
10106 save_libdir=$libdir
10107 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10108 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232061b
MF
10110/* end confdefs.h. */
10111
2232061b
MF
10112int
10113main ()
10114{
10115
10116 ;
10117 return 0;
10118}
10119_ACEOF
6bb11ab3
L
10120if ac_fn_c_try_link "$LINENO"; then :
10121 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10122 lt_cv_shlibpath_overrides_runpath=yes
2232061b 10123fi
2232061b 10124fi
6bb11ab3
L
10125rm -f core conftest.err conftest.$ac_objext \
10126 conftest$ac_exeext conftest.$ac_ext
10127 LDFLAGS=$save_LDFLAGS
10128 libdir=$save_libdir
2232061b 10129
6bb11ab3 10130fi
2232061b 10131
6bb11ab3 10132 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2232061b 10133
6bb11ab3
L
10134 # This implies no fast_install, which is unacceptable.
10135 # Some rework will be needed to allow for fast_install
10136 # before this can be enabled.
10137 hardcode_into_libs=yes
2232061b 10138
6bb11ab3
L
10139 # Append ld.so.conf contents to the search path
10140 if test -f /etc/ld.so.conf; then
10141 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' ' '`
10142 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10143 fi
10144
10145 # We used to test for /lib/ld.so.1 and disable shared libraries on
10146 # powerpc, because MkLinux only supported shared libraries with the
10147 # GNU dynamic linker. Since this was broken with cross compilers,
10148 # most powerpc-linux boxes support dynamic linking these days and
10149 # people can always --disable-shared, the test was removed, and we
10150 # assume the GNU/Linux dynamic linker is in use.
10151 dynamic_linker='GNU/Linux ld.so'
10152 ;;
10153
10154netbsd*)
10155 version_type=sunos
10156 need_lib_prefix=no
10157 need_version=no
10158 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10160 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10161 dynamic_linker='NetBSD (a.out) ld.so'
2232061b 10162 else
6bb11ab3
L
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10164 soname_spec='${libname}${release}${shared_ext}$major'
10165 dynamic_linker='NetBSD ld.elf_so'
10166 fi
10167 shlibpath_var=LD_LIBRARY_PATH
10168 shlibpath_overrides_runpath=yes
10169 hardcode_into_libs=yes
10170 ;;
10171
10172newsos6)
10173 version_type=linux
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10175 shlibpath_var=LD_LIBRARY_PATH
10176 shlibpath_overrides_runpath=yes
10177 ;;
10178
10179*nto* | *qnx*)
10180 version_type=qnx
10181 need_lib_prefix=no
10182 need_version=no
10183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10184 soname_spec='${libname}${release}${shared_ext}$major'
10185 shlibpath_var=LD_LIBRARY_PATH
10186 shlibpath_overrides_runpath=no
10187 hardcode_into_libs=yes
10188 dynamic_linker='ldqnx.so'
10189 ;;
10190
10191openbsd*)
10192 version_type=sunos
10193 sys_lib_dlsearch_path_spec="/usr/lib"
10194 need_lib_prefix=no
10195 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10196 case $host_os in
10197 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10198 *) need_version=no ;;
10199 esac
10200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10202 shlibpath_var=LD_LIBRARY_PATH
10203 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10204 case $host_os in
10205 openbsd2.[89] | openbsd2.[89].*)
10206 shlibpath_overrides_runpath=no
10207 ;;
10208 *)
10209 shlibpath_overrides_runpath=yes
10210 ;;
10211 esac
10212 else
10213 shlibpath_overrides_runpath=yes
10214 fi
10215 ;;
10216
10217os2*)
10218 libname_spec='$name'
10219 shrext_cmds=".dll"
10220 need_lib_prefix=no
10221 library_names_spec='$libname${shared_ext} $libname.a'
10222 dynamic_linker='OS/2 ld.exe'
10223 shlibpath_var=LIBPATH
10224 ;;
10225
10226osf3* | osf4* | osf5*)
10227 version_type=osf
10228 need_lib_prefix=no
10229 need_version=no
10230 soname_spec='${libname}${release}${shared_ext}$major'
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10232 shlibpath_var=LD_LIBRARY_PATH
10233 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10234 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10235 ;;
10236
10237rdos*)
10238 dynamic_linker=no
10239 ;;
10240
10241solaris*)
10242 version_type=linux
10243 need_lib_prefix=no
10244 need_version=no
10245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10246 soname_spec='${libname}${release}${shared_ext}$major'
10247 shlibpath_var=LD_LIBRARY_PATH
10248 shlibpath_overrides_runpath=yes
10249 hardcode_into_libs=yes
10250 # ldd complains unless libraries are executable
10251 postinstall_cmds='chmod +x $lib'
10252 ;;
10253
10254sunos4*)
10255 version_type=sunos
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10257 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 shlibpath_overrides_runpath=yes
10260 if test "$with_gnu_ld" = yes; then
10261 need_lib_prefix=no
10262 fi
10263 need_version=yes
10264 ;;
10265
10266sysv4 | sysv4.3*)
10267 version_type=linux
10268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10269 soname_spec='${libname}${release}${shared_ext}$major'
10270 shlibpath_var=LD_LIBRARY_PATH
10271 case $host_vendor in
10272 sni)
10273 shlibpath_overrides_runpath=no
10274 need_lib_prefix=no
10275 runpath_var=LD_RUN_PATH
10276 ;;
10277 siemens)
10278 need_lib_prefix=no
10279 ;;
10280 motorola)
10281 need_lib_prefix=no
10282 need_version=no
10283 shlibpath_overrides_runpath=no
10284 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10285 ;;
10286 esac
10287 ;;
10288
10289sysv4*MP*)
10290 if test -d /usr/nec ;then
10291 version_type=linux
10292 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10293 soname_spec='$libname${shared_ext}.$major'
10294 shlibpath_var=LD_LIBRARY_PATH
10295 fi
10296 ;;
10297
10298sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10299 version_type=freebsd-elf
10300 need_lib_prefix=no
10301 need_version=no
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10303 soname_spec='${libname}${release}${shared_ext}$major'
10304 shlibpath_var=LD_LIBRARY_PATH
10305 shlibpath_overrides_runpath=yes
10306 hardcode_into_libs=yes
10307 if test "$with_gnu_ld" = yes; then
10308 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10309 else
10310 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10311 case $host_os in
10312 sco3.2v5*)
10313 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10314 ;;
10315 esac
2232061b 10316 fi
6bb11ab3
L
10317 sys_lib_dlsearch_path_spec='/usr/lib'
10318 ;;
10319
10320tpf*)
10321 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10322 version_type=linux
10323 need_lib_prefix=no
10324 need_version=no
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326 shlibpath_var=LD_LIBRARY_PATH
10327 shlibpath_overrides_runpath=no
10328 hardcode_into_libs=yes
10329 ;;
10330
10331uts4*)
10332 version_type=linux
10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10334 soname_spec='${libname}${release}${shared_ext}$major'
10335 shlibpath_var=LD_LIBRARY_PATH
10336 ;;
10337
10338*)
10339 dynamic_linker=no
10340 ;;
10341esac
10342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10343$as_echo "$dynamic_linker" >&6; }
10344test "$dynamic_linker" = no && can_build_shared=no
10345
10346variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10347if test "$GCC" = yes; then
10348 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2232061b 10349fi
2232061b 10350
6bb11ab3
L
10351if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10352 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10353fi
10354if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10355 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10356fi
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
2232061b 10380
2232061b 10381
2232061b 10382
2232061b 10383
2232061b
MF
10384
10385
6ffe910a 10386
6ffe910a
MF
10387
10388
10389
10390
10391
2232061b 10392
6ffe910a
MF
10393
10394
10395
10396
6ffe910a 10397
6ffe910a 10398
6ffe910a
MF
10399
10400
6ffe910a 10401
6ffe910a 10402
6ffe910a
MF
10403
10404
5f3ef9d0 10405
5f3ef9d0
JB
10406
10407
10408
db2e4d67
MF
10409
10410
db2e4d67 10411
db2e4d67 10412
db2e4d67 10413
db2e4d67 10414
db2e4d67 10415
db2e4d67 10416
db2e4d67 10417
db2e4d67
MF
10418
10419
db2e4d67 10420
db2e4d67
MF
10421
10422
db2e4d67 10423
db2e4d67
MF
10424
10425
6ffe910a 10426
6ffe910a 10427
6ffe910a
MF
10428
10429
6ffe910a
MF
10430
10431
6ffe910a 10432
6ffe910a 10433
6ffe910a 10434
6ffe910a 10435
6ffe910a 10436
35695fd6 10437
35695fd6 10438
35695fd6 10439
b7026657 10440
b7026657 10441
c906108c 10442
b7026657 10443
b7026657 10444
c906108c 10445
b7026657 10446
6bb11ab3
L
10447
10448
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10450$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10451hardcode_action=
10452if test -n "$hardcode_libdir_flag_spec" ||
10453 test -n "$runpath_var" ||
10454 test "X$hardcode_automatic" = "Xyes" ; then
10455
10456 # We can hardcode non-existent directories.
10457 if test "$hardcode_direct" != no &&
10458 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10459 # have to relink, otherwise we might link with an installed library
10460 # when we should be linking with a yet-to-be-installed one
10461 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10462 test "$hardcode_minus_L" != no; then
10463 # Linking always hardcodes the temporary library directory.
10464 hardcode_action=relink
10465 else
10466 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10467 hardcode_action=immediate
10468 fi
10469else
10470 # We cannot hardcode anything, or else we can only hardcode existing
10471 # directories.
10472 hardcode_action=unsupported
10473fi
10474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10475$as_echo "$hardcode_action" >&6; }
10476
10477if test "$hardcode_action" = relink ||
10478 test "$inherit_rpath" = yes; then
10479 # Fast installation is not supported
10480 enable_fast_install=no
10481elif test "$shlibpath_overrides_runpath" = yes ||
10482 test "$enable_shared" = no; then
10483 # Fast installation is not necessary
10484 enable_fast_install=needless
c906108c 10485fi
b7026657 10486
c906108c 10487
6bb11ab3
L
10488
10489
10490
10491
10492 if test "x$enable_dlopen" != xyes; then
10493 enable_dlopen=unknown
10494 enable_dlopen_self=unknown
10495 enable_dlopen_self_static=unknown
10496else
10497 lt_cv_dlopen=no
10498 lt_cv_dlopen_libs=
10499
10500 case $host_os in
10501 beos*)
10502 lt_cv_dlopen="load_add_on"
10503 lt_cv_dlopen_libs=
10504 lt_cv_dlopen_self=yes
10505 ;;
10506
10507 mingw* | pw32* | cegcc*)
10508 lt_cv_dlopen="LoadLibrary"
10509 lt_cv_dlopen_libs=
10510 ;;
10511
10512 cygwin*)
10513 lt_cv_dlopen="dlopen"
10514 lt_cv_dlopen_libs=
10515 ;;
10516
10517 darwin*)
10518 # if libdl is installed we need to link against it
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10520$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10521if ${ac_cv_lib_dl_dlopen+:} false; then :
6bb11ab3
L
10522 $as_echo_n "(cached) " >&6
10523else
10524 ac_check_lib_save_LIBS=$LIBS
10525LIBS="-ldl $LIBS"
10526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527/* end confdefs.h. */
10528
10529/* Override any GCC internal prototype to avoid an error.
10530 Use char because int might match the return type of a GCC
10531 builtin and then its argument prototype would still apply. */
10532#ifdef __cplusplus
10533extern "C"
10534#endif
10535char dlopen ();
10536int
10537main ()
10538{
10539return dlopen ();
10540 ;
10541 return 0;
10542}
b7026657 10543_ACEOF
6bb11ab3
L
10544if ac_fn_c_try_link "$LINENO"; then :
10545 ac_cv_lib_dl_dlopen=yes
10546else
10547 ac_cv_lib_dl_dlopen=no
10548fi
10549rm -f core conftest.err conftest.$ac_objext \
10550 conftest$ac_exeext conftest.$ac_ext
10551LIBS=$ac_check_lib_save_LIBS
10552fi
10553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10554$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10555if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
10556 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10557else
10558
10559 lt_cv_dlopen="dyld"
10560 lt_cv_dlopen_libs=
10561 lt_cv_dlopen_self=yes
c906108c 10562
c906108c 10563fi
c906108c 10564
6bb11ab3 10565 ;;
c906108c 10566
6bb11ab3
L
10567 *)
10568 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 10569if test "x$ac_cv_func_shl_load" = xyes; then :
6bb11ab3
L
10570 lt_cv_dlopen="shl_load"
10571else
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10573$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 10574if ${ac_cv_lib_dld_shl_load+:} false; then :
6bb11ab3
L
10575 $as_echo_n "(cached) " >&6
10576else
10577 ac_check_lib_save_LIBS=$LIBS
10578LIBS="-ldld $LIBS"
10579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10580/* end confdefs.h. */
10581
10582/* Override any GCC internal prototype to avoid an error.
10583 Use char because int might match the return type of a GCC
10584 builtin and then its argument prototype would still apply. */
10585#ifdef __cplusplus
10586extern "C"
10587#endif
10588char shl_load ();
10589int
10590main ()
10591{
10592return shl_load ();
10593 ;
10594 return 0;
10595}
10596_ACEOF
10597if ac_fn_c_try_link "$LINENO"; then :
10598 ac_cv_lib_dld_shl_load=yes
10599else
10600 ac_cv_lib_dld_shl_load=no
10601fi
10602rm -f core conftest.err conftest.$ac_objext \
10603 conftest$ac_exeext conftest.$ac_ext
10604LIBS=$ac_check_lib_save_LIBS
10605fi
10606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10607$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 10608if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6bb11ab3
L
10609 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10610else
10611 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 10612if test "x$ac_cv_func_dlopen" = xyes; then :
6bb11ab3
L
10613 lt_cv_dlopen="dlopen"
10614else
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10616$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10617if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 10618 $as_echo_n "(cached) " >&6
c906108c 10619else
b7026657 10620 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 10621LIBS="-ldl $LIBS"
81ecdfbb 10622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
10623/* end confdefs.h. */
10624
81ecdfbb
RW
10625/* Override any GCC internal prototype to avoid an error.
10626 Use char because int might match the return type of a GCC
10627 builtin and then its argument prototype would still apply. */
b7026657
AC
10628#ifdef __cplusplus
10629extern "C"
10630#endif
6bb11ab3 10631char dlopen ();
b7026657
AC
10632int
10633main ()
10634{
6bb11ab3 10635return dlopen ();
b7026657
AC
10636 ;
10637 return 0;
10638}
10639_ACEOF
81ecdfbb 10640if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 10641 ac_cv_lib_dl_dlopen=yes
b7026657 10642else
6bb11ab3 10643 ac_cv_lib_dl_dlopen=no
b7026657 10644fi
81ecdfbb
RW
10645rm -f core conftest.err conftest.$ac_objext \
10646 conftest$ac_exeext conftest.$ac_ext
b7026657
AC
10647LIBS=$ac_check_lib_save_LIBS
10648fi
6bb11ab3
L
10649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10650$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10651if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
10652 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10653else
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10655$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 10656if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 10657 $as_echo_n "(cached) " >&6
c906108c 10658else
b7026657 10659 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 10660LIBS="-lsvld $LIBS"
81ecdfbb 10661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
10662/* end confdefs.h. */
10663
81ecdfbb
RW
10664/* Override any GCC internal prototype to avoid an error.
10665 Use char because int might match the return type of a GCC
10666 builtin and then its argument prototype would still apply. */
b7026657
AC
10667#ifdef __cplusplus
10668extern "C"
10669#endif
6bb11ab3 10670char dlopen ();
b7026657
AC
10671int
10672main ()
10673{
6bb11ab3 10674return dlopen ();
b7026657
AC
10675 ;
10676 return 0;
10677}
10678_ACEOF
81ecdfbb 10679if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 10680 ac_cv_lib_svld_dlopen=yes
b7026657 10681else
6bb11ab3 10682 ac_cv_lib_svld_dlopen=no
b7026657 10683fi
81ecdfbb
RW
10684rm -f core conftest.err conftest.$ac_objext \
10685 conftest$ac_exeext conftest.$ac_ext
b7026657
AC
10686LIBS=$ac_check_lib_save_LIBS
10687fi
6bb11ab3
L
10688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10689$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 10690if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6bb11ab3 10691 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5912fadd 10692else
6bb11ab3
L
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10694$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 10695if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb
RW
10696 $as_echo_n "(cached) " >&6
10697else
6bb11ab3
L
10698 ac_check_lib_save_LIBS=$LIBS
10699LIBS="-ldld $LIBS"
81ecdfbb 10700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b5bd9624 10701/* end confdefs.h. */
81ecdfbb
RW
10702
10703/* Override any GCC internal prototype to avoid an error.
10704 Use char because int might match the return type of a GCC
10705 builtin and then its argument prototype would still apply. */
10706#ifdef __cplusplus
10707extern "C"
10708#endif
6bb11ab3 10709char dld_link ();
81ecdfbb
RW
10710int
10711main ()
10712{
6bb11ab3 10713return dld_link ();
81ecdfbb
RW
10714 ;
10715 return 0;
10716}
b5bd9624 10717_ACEOF
6bb11ab3
L
10718if ac_fn_c_try_link "$LINENO"; then :
10719 ac_cv_lib_dld_dld_link=yes
10720else
10721 ac_cv_lib_dld_dld_link=no
10722fi
10723rm -f core conftest.err conftest.$ac_objext \
10724 conftest$ac_exeext conftest.$ac_ext
10725LIBS=$ac_check_lib_save_LIBS
10726fi
10727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10728$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 10729if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6bb11ab3
L
10730 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10731fi
10732
10733
10734fi
10735
10736
10737fi
10738
10739
10740fi
10741
10742
10743fi
10744
10745
10746fi
10747
10748 ;;
10749 esac
10750
10751 if test "x$lt_cv_dlopen" != xno; then
10752 enable_dlopen=yes
b5bd9624 10753 else
6bb11ab3
L
10754 enable_dlopen=no
10755 fi
10756
10757 case $lt_cv_dlopen in
10758 dlopen)
10759 save_CPPFLAGS="$CPPFLAGS"
10760 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10761
10762 save_LDFLAGS="$LDFLAGS"
10763 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10764
10765 save_LIBS="$LIBS"
10766 LIBS="$lt_cv_dlopen_libs $LIBS"
10767
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10769$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 10770if ${lt_cv_dlopen_self+:} false; then :
6bb11ab3
L
10771 $as_echo_n "(cached) " >&6
10772else
10773 if test "$cross_compiling" = yes; then :
10774 lt_cv_dlopen_self=cross
10775else
10776 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10777 lt_status=$lt_dlunknown
10778 cat > conftest.$ac_ext <<_LT_EOF
6dd65fc0 10779#line 10779 "configure"
6bb11ab3
L
10780#include "confdefs.h"
10781
10782#if HAVE_DLFCN_H
10783#include <dlfcn.h>
10784#endif
10785
10786#include <stdio.h>
10787
10788#ifdef RTLD_GLOBAL
10789# define LT_DLGLOBAL RTLD_GLOBAL
10790#else
10791# ifdef DL_GLOBAL
10792# define LT_DLGLOBAL DL_GLOBAL
10793# else
10794# define LT_DLGLOBAL 0
10795# endif
10796#endif
10797
10798/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10799 find out it does not work in some platform. */
10800#ifndef LT_DLLAZY_OR_NOW
10801# ifdef RTLD_LAZY
10802# define LT_DLLAZY_OR_NOW RTLD_LAZY
10803# else
10804# ifdef DL_LAZY
10805# define LT_DLLAZY_OR_NOW DL_LAZY
10806# else
10807# ifdef RTLD_NOW
10808# define LT_DLLAZY_OR_NOW RTLD_NOW
10809# else
10810# ifdef DL_NOW
10811# define LT_DLLAZY_OR_NOW DL_NOW
10812# else
10813# define LT_DLLAZY_OR_NOW 0
10814# endif
10815# endif
10816# endif
10817# endif
10818#endif
10819
10820/* When -fvisbility=hidden is used, assume the code has been annotated
10821 correspondingly for the symbols needed. */
10822#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10823void fnord () __attribute__((visibility("default")));
10824#endif
10825
10826void fnord () { int i=42; }
10827int main ()
10828{
10829 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10830 int status = $lt_dlunknown;
10831
10832 if (self)
10833 {
10834 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10835 else
10836 {
10837 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10838 else puts (dlerror ());
10839 }
10840 /* dlclose (self); */
10841 }
10842 else
10843 puts (dlerror ());
10844
10845 return status;
10846}
10847_LT_EOF
10848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10849 (eval $ac_link) 2>&5
10850 ac_status=$?
10851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10852 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10853 (./conftest; exit; ) >&5 2>/dev/null
10854 lt_status=$?
10855 case x$lt_status in
10856 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10857 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10858 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10859 esac
10860 else :
10861 # compilation failed
10862 lt_cv_dlopen_self=no
b5bd9624 10863 fi
b5bd9624 10864fi
6bb11ab3
L
10865rm -fr conftest*
10866
10867
b5bd9624 10868fi
6bb11ab3
L
10869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10870$as_echo "$lt_cv_dlopen_self" >&6; }
b5bd9624 10871
6bb11ab3
L
10872 if test "x$lt_cv_dlopen_self" = xyes; then
10873 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10875$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 10876if ${lt_cv_dlopen_self_static+:} false; then :
6bb11ab3 10877 $as_echo_n "(cached) " >&6
b5bd9624 10878else
6bb11ab3
L
10879 if test "$cross_compiling" = yes; then :
10880 lt_cv_dlopen_self_static=cross
10881else
10882 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10883 lt_status=$lt_dlunknown
10884 cat > conftest.$ac_ext <<_LT_EOF
6dd65fc0 10885#line 10885 "configure"
6bb11ab3
L
10886#include "confdefs.h"
10887
10888#if HAVE_DLFCN_H
10889#include <dlfcn.h>
10890#endif
10891
10892#include <stdio.h>
10893
10894#ifdef RTLD_GLOBAL
10895# define LT_DLGLOBAL RTLD_GLOBAL
10896#else
10897# ifdef DL_GLOBAL
10898# define LT_DLGLOBAL DL_GLOBAL
10899# else
10900# define LT_DLGLOBAL 0
10901# endif
10902#endif
10903
10904/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10905 find out it does not work in some platform. */
10906#ifndef LT_DLLAZY_OR_NOW
10907# ifdef RTLD_LAZY
10908# define LT_DLLAZY_OR_NOW RTLD_LAZY
10909# else
10910# ifdef DL_LAZY
10911# define LT_DLLAZY_OR_NOW DL_LAZY
10912# else
10913# ifdef RTLD_NOW
10914# define LT_DLLAZY_OR_NOW RTLD_NOW
10915# else
10916# ifdef DL_NOW
10917# define LT_DLLAZY_OR_NOW DL_NOW
10918# else
10919# define LT_DLLAZY_OR_NOW 0
10920# endif
10921# endif
10922# endif
10923# endif
10924#endif
10925
10926/* When -fvisbility=hidden is used, assume the code has been annotated
10927 correspondingly for the symbols needed. */
10928#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10929void fnord () __attribute__((visibility("default")));
10930#endif
10931
10932void fnord () { int i=42; }
10933int main ()
10934{
10935 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10936 int status = $lt_dlunknown;
10937
10938 if (self)
10939 {
10940 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10941 else
10942 {
10943 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10944 else puts (dlerror ());
10945 }
10946 /* dlclose (self); */
10947 }
10948 else
10949 puts (dlerror ());
10950
10951 return status;
10952}
10953_LT_EOF
10954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10955 (eval $ac_link) 2>&5
10956 ac_status=$?
10957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10958 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10959 (./conftest; exit; ) >&5 2>/dev/null
10960 lt_status=$?
10961 case x$lt_status in
10962 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10963 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10964 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10965 esac
10966 else :
10967 # compilation failed
10968 lt_cv_dlopen_self_static=no
10969 fi
b5bd9624 10970fi
6bb11ab3
L
10971rm -fr conftest*
10972
10973
b5bd9624 10974fi
6bb11ab3
L
10975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10976$as_echo "$lt_cv_dlopen_self_static" >&6; }
10977 fi
10978
10979 CPPFLAGS="$save_CPPFLAGS"
10980 LDFLAGS="$save_LDFLAGS"
10981 LIBS="$save_LIBS"
10982 ;;
10983 esac
10984
10985 case $lt_cv_dlopen_self in
10986 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10987 *) enable_dlopen_self=unknown ;;
10988 esac
10989
10990 case $lt_cv_dlopen_self_static in
10991 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10992 *) enable_dlopen_self_static=unknown ;;
10993 esac
10994fi
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012striplib=
11013old_striplib=
11014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11015$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11016if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11017 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11018 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11020$as_echo "yes" >&6; }
11021else
11022# FIXME - insert some real tests, host_os isn't really good enough
11023 case $host_os in
11024 darwin*)
11025 if test -n "$STRIP" ; then
11026 striplib="$STRIP -x"
11027 old_striplib="$STRIP -S"
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11029$as_echo "yes" >&6; }
11030 else
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11032$as_echo "no" >&6; }
11033 fi
11034 ;;
11035 *)
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11037$as_echo "no" >&6; }
11038 ;;
11039 esac
11040fi
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053 # Report which library types will actually be built
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11055$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11057$as_echo "$can_build_shared" >&6; }
11058
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11060$as_echo_n "checking whether to build shared libraries... " >&6; }
11061 test "$can_build_shared" = "no" && enable_shared=no
11062
11063 # On AIX, shared libraries and static libraries use the same namespace, and
11064 # are all built from PIC.
11065 case $host_os in
11066 aix3*)
11067 test "$enable_shared" = yes && enable_static=no
11068 if test -n "$RANLIB"; then
11069 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11070 postinstall_cmds='$RANLIB $lib'
11071 fi
11072 ;;
11073
11074 aix[4-9]*)
11075 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11076 test "$enable_shared" = yes && enable_static=no
11077 fi
11078 ;;
11079 esac
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11081$as_echo "$enable_shared" >&6; }
11082
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11084$as_echo_n "checking whether to build static libraries... " >&6; }
11085 # Make sure either enable_shared or enable_static is yes.
11086 test "$enable_shared" = yes || enable_static=yes
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11088$as_echo "$enable_static" >&6; }
11089
11090
11091
11092
11093fi
11094ac_ext=c
11095ac_cpp='$CPP $CPPFLAGS'
11096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11098ac_compiler_gnu=$ac_cv_c_compiler_gnu
11099
11100CC="$lt_save_CC"
11101
11102
11103
11104
11105
11106
11107
11108
11109
b5bd9624 11110
b5bd9624 11111
b5bd9624 11112
b5bd9624 11113
6bb11ab3
L
11114 ac_config_commands="$ac_config_commands libtool"
11115
11116
11117
11118
11119# Only expand once:
11120
11121
5912fadd 11122
b5bd9624 11123
c906108c 11124
31e6ad7d
MF
11125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11126$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11127 # Check whether --enable-maintainer-mode was given.
81ecdfbb 11128if test "${enable_maintainer_mode+set}" = set; then :
31e6ad7d
MF
11129 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11130else
11131 USE_MAINTAINER_MODE=no
c906108c 11132fi
31e6ad7d
MF
11133
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11135$as_echo "$USE_MAINTAINER_MODE" >&6; }
11136 if test $USE_MAINTAINER_MODE = yes; then
11137 MAINTAINER_MODE_TRUE=
11138 MAINTAINER_MODE_FALSE='#'
c906108c 11139else
31e6ad7d
MF
11140 MAINTAINER_MODE_TRUE='#'
11141 MAINTAINER_MODE_FALSE=
81ecdfbb
RW
11142fi
11143
31e6ad7d
MF
11144 MAINT=$MAINTAINER_MODE_TRUE
11145
11146
c906108c
SS
11147
11148
347fe5bb
MF
11149sim_inline="-DDEFAULT_INLINE=0"
11150# Check whether --enable-sim-inline was given.
11151if test "${enable_sim_inline+set}" = set; then :
11152 enableval=$enable_sim_inline; sim_inline=""
11153case "$enableval" in
11154 no) sim_inline="-DDEFAULT_INLINE=0";;
11155 0) sim_inline="-DDEFAULT_INLINE=0";;
11156 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
11157 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
11158 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11159 new_flag=""
11160 case "$x" in
11161 *_INLINE=*) new_flag="-D$x";;
11162 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
11163 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
11164 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
11165 esac
11166 if test x"$sim_inline" = x""; then
11167 sim_inline="$new_flag"
11168 else
11169 sim_inline="$sim_inline $new_flag"
11170 fi
11171 done;;
11172esac
11173if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
11174 echo "Setting inline flags = $sim_inline" 6>&1
11175fi
11176fi
11177
11178
11179
6efef468 11180
c906108c 11181
c906108c
SS
11182wire_alignment="NONSTRICT_ALIGNMENT"
11183default_alignment=""
11184
81ecdfbb
RW
11185# Check whether --enable-sim-alignment was given.
11186if test "${enable_sim_alignment+set}" = set; then :
11187 enableval=$enable_sim_alignment; case "${enableval}" in
c906108c
SS
11188 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
11189 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
11190 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
11191 yes) if test x"$wire_alignment" != x; then
11192 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
11193 else
11194 if test x"$default_alignment" != x; then
11195 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
11196 else
11197 echo "No hard-wired alignment for target $target" 1>&6
11198 sim_alignment="-DWITH_ALIGNMENT=0"
11199 fi
11200 fi;;
11201 no) if test x"$default_alignment" != x; then
11202 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
11203 else
11204 if test x"$wire_alignment" != x; then
11205 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
11206 else
11207 echo "No default alignment for target $target" 1>&6
11208 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
11209 fi
11210 fi;;
d0ac1c44 11211 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
c906108c
SS
11212esac
11213if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
11214 echo "Setting alignment flags = $sim_alignment" 6>&1
11215fi
11216else
11217 if test x"$default_alignment" != x; then
11218 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
11219else
11220 if test x"$wire_alignment" != x; then
11221 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
11222 else
11223 sim_alignment=
11224 fi
11225fi
81ecdfbb
RW
11226fi
11227
c906108c 11228
2232061b
MF
11229# Check whether --enable-werror was given.
11230if test "${enable_werror+set}" = set; then :
11231 enableval=$enable_werror; case "${enableval}" in
11232 yes | y) ERROR_ON_WARNING="yes" ;;
11233 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 11234 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
2232061b
MF
11235 esac
11236fi
11237
11238
11239# Enable -Werror by default when using gcc
11240if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11241 ERROR_ON_WARNING=yes
51216631 11242fi
2232061b
MF
11243
11244WERROR_CFLAGS=""
2232061b 11245
2232061b 11246build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
1a8a700e 11247-Wpointer-sign \
2232061b 11248-Wno-unused -Wunused-value -Wunused-function \
1a8a700e
MF
11249-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
11250-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
11251-Wold-style-declaration -Wold-style-definition"
2232061b
MF
11252
11253# Enable -Wno-format by default when using gcc on mingw since many
11254# GCC versions complain about %I64.
11255case "${host}" in
11256 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
d3685d60 11257 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
2232061b
MF
11258esac
11259
81ecdfbb
RW
11260# Check whether --enable-build-warnings was given.
11261if test "${enable_build_warnings+set}" = set; then :
11262 enableval=$enable_build_warnings; case "${enableval}" in
c8cca39f
AC
11263 yes) ;;
11264 no) build_warnings="-w";;
11265 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11266 build_warnings="${build_warnings} ${t}";;
11267 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11268 build_warnings="${t} ${build_warnings}";;
11269 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11270esac
11271if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
11272 echo "Setting compiler warning flags = $build_warnings" 6>&1
11273fi
81ecdfbb
RW
11274fi
11275# Check whether --enable-sim-build-warnings was given.
11276if test "${enable_sim_build_warnings+set}" = set; then :
11277 enableval=$enable_sim_build_warnings; case "${enableval}" in
c906108c
SS
11278 yes) ;;
11279 no) build_warnings="-w";;
11280 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f 11281 build_warnings="${build_warnings} ${t}";;
c906108c 11282 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f
AC
11283 build_warnings="${t} ${build_warnings}";;
11284 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
c906108c
SS
11285esac
11286if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
c8cca39f
AC
11287 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
11288fi
81ecdfbb
RW
11289fi
11290WARN_CFLAGS=""
d4f3574e
SS
11291if test "x${build_warnings}" != x -a "x$GCC" = xyes
11292then
81ecdfbb
RW
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
11294$as_echo_n "checking compiler warning flags... " >&6; }
c8cca39f
AC
11295 # Separate out the -Werror flag as some files just cannot be
11296 # compiled with it enabled.
11297 for w in ${build_warnings}; do
11298 case $w in
11299 -Werr*) WERROR_CFLAGS=-Werror ;;
11300 *) # Check that GCC accepts it
11301 saved_CFLAGS="$CFLAGS"
1f195bc3 11302 CFLAGS="$CFLAGS -Werror $w"
81ecdfbb 11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 11304/* end confdefs.h. */
c8cca39f 11305
b7026657
AC
11306int
11307main ()
11308{
c8cca39f 11309
b7026657
AC
11310 ;
11311 return 0;
11312}
11313_ACEOF
81ecdfbb 11314if ac_fn_c_try_compile "$LINENO"; then :
c8cca39f 11315 WARN_CFLAGS="${WARN_CFLAGS} $w"
c8cca39f 11316fi
81ecdfbb 11317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c8cca39f
AC
11318 CFLAGS="$saved_CFLAGS"
11319 esac
11320 done
2232061b
MF
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
11322$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
c906108c
SS
11323fi
11324
11325
e6c674b8 11326default_sim_reserved_bits="1"
81ecdfbb
RW
11327# Check whether --enable-sim-reserved-bits was given.
11328if test "${enable_sim_reserved_bits+set}" = set; then :
11329 enableval=$enable_sim_reserved_bits; case "${enableval}" in
e6c674b8
CD
11330 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
11331 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
d0ac1c44 11332 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved_bits="";;
e6c674b8
CD
11333esac
11334if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
11335 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
11336fi
11337else
11338 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
81ecdfbb
RW
11339fi
11340
e6c674b8 11341
c906108c
SS
11342# DEPRECATED
11343#
11344# Instead of defining a `subtarget' macro, code should be checking
11345# the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
11346# in question.
11347#
11348case "${target}" in
4c54fc26 11349 mips64vr*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
c906108c 11350 mips*tx39*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
109ad085 11351 mips*-sde-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
cc220243 11352 mips*-mti-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
1e799e28
CD
11353 mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
11354 mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
c906108c
SS
11355 *) SIM_SUBTARGET="";;
11356esac
11357
11358
11359
11360
11361#
11362# Select the byte order of the target
11363#
11364mips_endian=
11365default_endian=
11366case "${target}" in
1ac72f06
MF
11367 mips64el*-*-*) mips_endian=LITTLE ;;
11368 mips64vr*el-*-*) default_endian=LITTLE ;;
11369 mips64*-*-*) default_endian=BIG ;;
11370 mips16*-*-*) default_endian=BIG ;;
11371 mipsisa32*-*-*) default_endian=BIG ;;
11372 mipsisa64*-*-*) default_endian=BIG ;;
11373 mips*-*-*) default_endian=BIG ;;
11374 *) default_endian=BIG ;;
c906108c
SS
11375esac
11376
11377wire_endian="$mips_endian"
11378default_endian="$default_endian"
81ecdfbb
RW
11379# Check whether --enable-sim-endian was given.
11380if test "${enable_sim_endian+set}" = set; then :
11381 enableval=$enable_sim_endian; case "${enableval}" in
1ac72f06
MF
11382 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_BIG";;
11383 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_LITTLE";;
c906108c 11384 yes) if test x"$wire_endian" != x; then
1ac72f06 11385 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
c906108c 11386 else
1ac72f06
MF
11387 if test x"$default_endian" != x; then
11388 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
c906108c
SS
11389 else
11390 echo "No hard-wired endian for target $target" 1>&6
1ac72f06 11391 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
c906108c
SS
11392 fi
11393 fi;;
11394 no) if test x"$default_endian" != x; then
1ac72f06 11395 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
c906108c
SS
11396 else
11397 if test x"$wire_endian" != x; then
1ac72f06 11398 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
c906108c
SS
11399 else
11400 echo "No default endian for target $target" 1>&6
1ac72f06 11401 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
c906108c
SS
11402 fi
11403 fi;;
d0ac1c44 11404 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
c906108c
SS
11405esac
11406if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
11407 echo "Setting endian flags = $sim_endian" 6>&1
11408fi
11409else
11410 if test x"$default_endian" != x; then
1ac72f06 11411 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
c906108c
SS
11412else
11413 if test x"$wire_endian" != x; then
1ac72f06 11414 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
c906108c
SS
11415 else
11416 sim_endian=
11417 fi
11418fi
81ecdfbb
RW
11419fi
11420
c906108c
SS
11421
11422
11423
11424#
11425# Select the bitsize of the target
11426#
11427mips_addr_bitsize=
11428case "${target}" in
109ad085 11429 mips*-sde-elf*) mips_bitsize=64 ; mips_msb=63 ;;
cc220243 11430 mips*-mti-elf*) mips_bitsize=64 ; mips_msb=63 ;;
c906108c
SS
11431 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
11432 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
1e799e28
CD
11433 mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
11434 mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
c906108c
SS
11435 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
11436 *) mips_bitsize=64 ; mips_msb=63 ;;
11437esac
11438wire_word_bitsize="$mips_bitsize"
11439wire_word_msb="$mips_msb"
11440wire_address_bitsize="$mips_addr_bitsize"
11441wire_cell_bitsize=""
81ecdfbb
RW
11442# Check whether --enable-sim-bitsize was given.
11443if test "${enable_sim_bitsize+set}" = set; then :
11444 enableval=$enable_sim_bitsize; sim_bitsize=
c906108c
SS
11445case "${enableval}" in
11446 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
11447 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
11448 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
11449 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
11450 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
11451 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
11452 else
11453 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
11454 fi ;;
11455 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
11456 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
11457 else
11458 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
11459 fi ;;
d0ac1c44 11460 *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
11461esac
11462# address bitsize
11463tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
11464case x"${tmp}" in
11465 x ) ;;
11466 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
11467 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
d0ac1c44 11468 * ) as_fn_error $? "\"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
11469esac
11470# cell bitsize
11471tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
11472case x"${tmp}" in
11473 x ) ;;
11474 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
11475 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
d0ac1c44 11476 * ) as_fn_error $? "\"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
11477esac
11478if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
11479 echo "Setting bitsize flags = $sim_bitsize" 6>&1
11480fi
11481else
11482 sim_bitsize=""
11483if test x"$wire_word_bitsize" != x; then
11484 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
11485fi
11486if test x"$wire_word_msb" != x; then
11487 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
11488fi
11489if test x"$wire_address_bitsize" != x; then
11490 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
11491fi
11492if test x"$wire_cell_bitsize" != x; then
11493 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
11494fi
81ecdfbb
RW
11495fi
11496
c906108c
SS
11497
11498
11499
11500#
11501# Select the floating hardware support of the target
11502#
11503mips_fpu=HARDWARE_FLOATING_POINT
11504mips_fpu_bitsize=
11505case "${target}" in
4b5d35ee 11506 mips*tx39*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
109ad085 11507 mips*-sde-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
cc220243 11508 mips*-mti-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
c906108c
SS
11509 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
11510 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
1e799e28
CD
11511 mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
11512 mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
c906108c
SS
11513 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
11514 *) mips_fpu=HARD_FLOATING_POINT ;;
11515esac
11516
11517default_sim_float="$mips_fpu"
11518default_sim_float_bitsize="$mips_fpu_bitsize"
81ecdfbb
RW
11519# Check whether --enable-sim-float was given.
11520if test "${enable_sim_float+set}" = set; then :
11521 enableval=$enable_sim_float; case "${enableval}" in
c906108c
SS
11522 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
11523 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
11524 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
11525 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
d0ac1c44 11526 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
c906108c
SS
11527esac
11528if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
11529 echo "Setting float flags = $sim_float" 6>&1
11530fi
11531else
b7026657 11532
c906108c
SS
11533sim_float=
11534if test x"${default_sim_float}" != x""; then
11535 sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
11536fi
11537if test x"${default_sim_float_bitsize}" != x""; then
11538 sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
11539fi
11540
81ecdfbb
RW
11541fi
11542
c906108c
SS
11543
11544
11545
c906108c
SS
11546#
11547# Select the IGEN architecture
11548#
11549sim_gen=IGEN
11550sim_igen_machine="-M mipsIV"
139181c8 11551sim_m16_machine="-M mips16,mipsIII"
c906108c
SS
11552sim_igen_filter="32,64,f"
11553sim_m16_filter="16"
4c54fc26
CD
11554sim_mach_default="mips8000"
11555
c906108c
SS
11556case "${target}" in
11557 mips*tx39*) sim_gen=IGEN
11558 sim_igen_filter="32,f"
11559 sim_igen_machine="-M r3900"
11560 ;;
11561 mips64vr43*-*-*) sim_gen=IGEN
11562 sim_igen_machine="-M mipsIV"
4c54fc26 11563 sim_mach_default="mips8000"
c906108c
SS
11564 ;;
11565 mips64vr5*-*-*) sim_gen=IGEN
11566 sim_igen_machine="-M vr5000"
4c54fc26 11567 sim_mach_default="mips5000"
c906108c
SS
11568 ;;
11569 mips64vr41*) sim_gen=M16
11570 sim_igen_machine="-M vr4100"
11571 sim_m16_machine="-M vr4100"
11572 sim_igen_filter="32,64,f"
11573 sim_m16_filter="16"
4c54fc26 11574 sim_mach_default="mips4100"
c906108c 11575 ;;
4c54fc26
CD
11576 mips64vr-*-* | mips64vrel-*-*)
11577 sim_gen=MULTI
11578 sim_multi_configs="\
11579 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
11580 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
11581 vr5000:mipsIV:32,64,f:mips4300,mips5000\
11582 vr5400:mipsIV,vr5400:32,64,f:mips5400\
11583 vr5500:mipsIV,vr5500:32,64,f:mips5500"
11584 sim_multi_default=mips5000
11585 ;;
cc220243 11586 mips*-sde-elf* | mips*-mti-elf*)
8e394ffc
AB
11587 sim_gen=MULTI
11588 sim_multi_configs="\
11589 micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\
11590 mips64r2:mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,64,f:mipsisa64r2"
11591 sim_multi_default=mipsisa64r2
109ad085 11592 ;;
c906108c
SS
11593 mips64*-*-*) sim_igen_filter="32,64,f"
11594 sim_gen=IGEN
11595 ;;
11596 mips16*-*-*) sim_gen=M16
11597 sim_igen_filter="32,64,f"
11598 sim_m16_filter="16"
11599 ;;
8e394ffc
AB
11600 mipsisa32r2*-*-*) sim_gen=MULTI
11601 sim_multi_configs="\
11602 micromips:micromips32,micromipsdsp:32,f:mips_micromips\
11603 mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2"
11604 sim_multi_default=mipsisa32r2
e70cb6cd 11605 ;;
d5fb0879
RS
11606 mipsisa32*-*-*) sim_gen=M16
11607 sim_igen_machine="-M mips32,mips16,mips16e,smartmips"
11608 sim_m16_machine="-M mips16,mips16e,mips32"
11609 sim_igen_filter="32,f"
11610 sim_mach_default="mipsisa32"
1e799e28 11611 ;;
d5fb0879
RS
11612 mipsisa64r2*-*-*) sim_gen=M16
11613 sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
11614 sim_m16_machine="-M mips16,mips16e,mips64r2"
11615 sim_igen_filter="32,64,f"
11616 sim_mach_default="mipsisa64r2"
e70cb6cd 11617 ;;
7cbea089 11618 mipsisa64sb1*-*-*) sim_gen=IGEN
109ad085 11619 sim_igen_machine="-M mips64,mips3d,sb1"
7cbea089 11620 sim_igen_filter="32,64,f"
4c54fc26 11621 sim_mach_default="mips_sb1"
7cbea089 11622 ;;
d5fb0879
RS
11623 mipsisa64*-*-*) sim_gen=M16
11624 sim_igen_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
11625 sim_m16_machine="-M mips16,mips16e,mips64"
11626 sim_igen_filter="32,64,f"
11627 sim_mach_default="mipsisa64"
1e799e28 11628 ;;
109ad085 11629 mips*lsi*) sim_gen=M16
c906108c
SS
11630 sim_igen_machine="-M mipsIII,mips16"
11631 sim_m16_machine="-M mips16,mipsIII"
11632 sim_igen_filter="32,f"
11633 sim_m16_filter="16"
4c54fc26 11634 sim_mach_default="mips4000"
109ad085 11635 ;;
c906108c
SS
11636 mips*-*-*) sim_gen=IGEN
11637 sim_igen_filter="32,f"
11638 ;;
11639esac
4c54fc26
CD
11640
11641# The MULTI generator can combine several simulation engines into one.
11642# executable. A configuration which uses the MULTI should set two
11643# variables: ${sim_multi_configs} and ${sim_multi_default}.
11644#
11645# ${sim_multi_configs} is the list of engines to build. Each
11646# space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
11647# where:
11648#
11649# - NAME is a C-compatible prefix for the engine,
11650# - MACHINE is a -M argument,
11651# - FILTER is a -F argument, and
11652# - BFDMACHS is a comma-separated list of bfd machines that the
11653# simulator can run.
11654#
11655# Each entry will have a separate simulation engine whose prefix is
11656# m32<NAME>. If the machine list includes "mips16", there will also
11657# be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
11658# generated using the same machine list as the 32-bit version,
11659# but the filter will be "16" instead of FILTER.
11660#
11661# The simulator compares the bfd mach against BFDMACHS to decide
11662# which engine to use. Entries in BFDMACHS should be bfd_mach
11663# values with "bfd_mach_" removed. ${sim_multi_default} says
11664# which entry should be the default.
11665if test ${sim_gen} = MULTI; then
11666
11667 # Simple sanity check.
11668 if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
d0ac1c44 11669 as_fn_error $? "Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5
4c54fc26
CD
11670 fi
11671
11672 # Start in a known state.
11673 rm -f multi-include.h multi-run.c
11674 sim_multi_flags=
11675 sim_multi_src=
8e394ffc 11676 sim_multi_obj=
4c54fc26
CD
11677 sim_multi_igen_configs=
11678 sim_seen_default=no
11679
11680 cat << __EOF__ > multi-run.c
11681/* Main entry point for MULTI simulators.
46f900c0 11682 Copyright (C) 2003-2021 Free Software Foundation, Inc.
4c54fc26
CD
11683
11684 This program is free software; you can redistribute it and/or modify
11685 it under the terms of the GNU General Public License as published by
35ee6e1e 11686 the Free Software Foundation; either version 3 of the License, or
4c54fc26
CD
11687 (at your option) any later version.
11688
11689 This program is distributed in the hope that it will be useful,
11690 but WITHOUT ANY WARRANTY; without even the implied warranty of
11691 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11692 GNU General Public License for more details.
11693
11694 You should have received a copy of the GNU General Public License
35ee6e1e 11695 along with this program. If not, see <http://www.gnu.org/licenses/>.
4c54fc26
CD
11696
11697 --
11698
11699 This file was generated by sim/mips/configure. */
11700
11701#include "sim-main.h"
11702#include "multi-include.h"
8e394ffc
AB
11703#include "elf-bfd.h"
11704#include "elf/mips.h"
4c54fc26
CD
11705
11706#define SD sd
11707#define CPU cpu
11708
11709void
11710sim_engine_run (SIM_DESC sd,
11711 int next_cpu_nr,
11712 int nr_cpus,
11713 int signal) /* ignore */
11714{
11715 int mach;
11716
11717 if (STATE_ARCHITECTURE (sd) == NULL)
11718 mach = bfd_mach_${sim_multi_default};
1554f758 11719 else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
8e394ffc
AB
11720 & EF_MIPS_ARCH_ASE_MICROMIPS)
11721 mach = bfd_mach_mips_micromips;
4c54fc26
CD
11722 else
11723 mach = STATE_ARCHITECTURE (SD)->mach;
11724
11725 switch (mach)
11726 {
11727__EOF__
11728
11729 for fc in ${sim_multi_configs}; do
11730
11731 # Split up the entry. ${c} contains the first three elements.
11732 # Note: outer sqaure brackets are m4 quotes.
11733 c=`echo ${fc} | sed 's/:[^:]*$//'`
11734 bfdmachs=`echo ${fc} | sed 's/.*://'`
11735 name=`echo ${c} | sed 's/:.*//'`
11736 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
11737 filter=`echo ${c} | sed 's/.*://'`
11738
11739 # Build the following lists:
11740 #
11741 # sim_multi_flags: all -M and -F flags used by the simulator
11742 # sim_multi_src: all makefile-generated source files
11743 # sim_multi_obj: the objects for ${sim_multi_src}
11744 # sim_multi_igen_configs: igen configuration strings.
11745 #
11746 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
11747 # or m16) followed by the NAME, MACHINE and FILTER part of
11748 # the ${sim_multi_configs} entry.
11749 sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
11750
8e394ffc 11751 # Check whether special handling is needed.
4c54fc26
CD
11752 case ${c} in
11753 *:*mips16*:*)
11754 # Run igen twice, once for normal mode and once for mips16.
11755 ws="m32 m16"
11756
11757 # The top-level function for the mips16 simulator is
11758 # in a file m16${name}_run.c, generated by the
11759 # tmp-run-multi Makefile rule.
11760 sim_multi_src="${sim_multi_src} m16${name}_run.c"
11761 sim_multi_obj="${sim_multi_obj} m16${name}_run.o"
11762 sim_multi_flags="${sim_multi_flags} -F 16"
11763 ;;
8e394ffc
AB
11764 *:*micromips32*:*)
11765 # Run igen thrice, once for micromips32, once for micromips16,
11766 # and once for m32.
11767 ws="micromips_m32 micromips16 micromips32"
11768
11769 # The top-level function for the micromips simulator is
11770 # in a file micromips${name}_run.c, generated by the
11771 # tmp-run-multi Makefile rule.
11772 sim_multi_src="${sim_multi_src} micromips${name}_run.c"
11773 sim_multi_obj="${sim_multi_obj} micromips${name}_run.o"
11774 sim_multi_flags="${sim_multi_flags} -F 16,32"
11775 ;;
11776 *:*micromips64*:*)
11777 # Run igen thrice, once for micromips64, once for micromips16,
11778 # and once for m64.
11779 ws="micromips_m64 micromips16 micromips64"
11780
11781 # The top-level function for the micromips simulator is
11782 # in a file micromips${name}_run.c, generated by the
11783 # tmp-run-multi Makefile rule.
11784 sim_multi_src="${sim_multi_src} micromips${name}_run.c"
11785 sim_multi_obj="${sim_multi_obj} micromips${name}_run.o"
11786 sim_multi_flags="${sim_multi_flags} -F 16,32,64"
11787 ;;
4c54fc26
CD
11788 *)
11789 ws=m32
11790 ;;
11791 esac
11792
11793 # Now add the list of igen-generated files to ${sim_multi_src}
11794 # and ${sim_multi_obj}.
11795 for w in ${ws}; do
11796 for base in engine icache idecode model semantics support; do
11797 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c"
11798 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h"
11799 sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o"
11800 done
11801 sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
11802 done
11803
11804 # Add an include for the engine.h file. This file declares the
11805 # top-level foo_engine_run() function.
11806 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
11807
11808 # Add case statements for this engine to sim_engine_run().
11809 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
11810 echo " case bfd_mach_${mach}:" >> multi-run.c
11811 if test ${mach} = ${sim_multi_default}; then
11812 echo " default:" >> multi-run.c
11813 sim_seen_default=yes
11814 fi
11815 done
11816 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
11817 >> multi-run.c
11818 echo " break;" >> multi-run.c
11819 done
11820
11821 # Check whether we added a 'default:' label.
11822 if test ${sim_seen_default} = no; then
d0ac1c44 11823 as_fn_error $? "Error in configure.ac: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" "$LINENO" 5
4c54fc26
CD
11824 fi
11825
11826 cat << __EOF__ >> multi-run.c
11827 }
11828}
11829
11830int
11831mips_mach_multi (SIM_DESC sd)
11832{
11833 if (STATE_ARCHITECTURE (sd) == NULL)
11834 return bfd_mach_${sim_multi_default};
11835
11836 switch (STATE_ARCHITECTURE (SD)->mach)
11837 {
11838__EOF__
11839
11840 # Add case statements for this engine to mips_mach_multi().
11841 for fc in ${sim_multi_configs}; do
11842
11843 # Split up the entry. ${c} contains the first three elements.
11844 # Note: outer sqaure brackets are m4 quotes.
11845 c=`echo ${fc} | sed 's/:[^:]*$//'`
11846 bfdmachs=`echo ${fc} | sed 's/.*://'`
11847
11848 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
11849 echo " case bfd_mach_${mach}:" >> multi-run.c
11850 done
11851 done
11852
11853 cat << __EOF__ >> multi-run.c
11854 return (STATE_ARCHITECTURE (SD)->mach);
11855 default:
11856 return bfd_mach_${sim_multi_default};
11857 }
11858}
11859__EOF__
11860
11861 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
11862else
11863 # For clean-extra
11864 sim_multi_src=doesnt-exist.c
11865
11866 if test x"${sim_mach_default}" = x""; then
d0ac1c44 11867 as_fn_error $? "Error in configure.ac: \${sim_mach_default} not defined" "$LINENO" 5
4c54fc26
CD
11868 fi
11869 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
11870fi
c906108c
SS
11871sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
11872sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
8e394ffc
AB
11873sim_micromips16_flags=" -F ${sim_micromips16_filter} ${sim_micromips16_machine} ${sim_igen_smp}"
11874sim_micromips_flags=" -F ${sim_micromips_filter} ${sim_micromips_machine} ${sim_igen_smp}"
c906108c
SS
11875
11876
11877
11878
11879
4c54fc26
CD
11880
11881
11882
11883
c906108c
SS
11884#
11885# Add simulated hardware devices
11886#
c906108c 11887
9b1af85c 11888hardware="cfi core pal glue tx3904cpu tx3904irc tx3904tmr tx3904sio"
c906108c
SS
11889sim_hw_cflags="-DWITH_HW=1"
11890sim_hw="$hardware"
11891sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
1517bd27 11892
81ecdfbb
RW
11893# Check whether --enable-sim-hardware was given.
11894if test "${enable_sim_hardware+set}" = set; then :
11895 enableval=$enable_sim_hardware;
30452bbe 11896else
9d903352 11897 enable_sim_hardware="yes"
1517bd27
MF
11898fi
11899
11900case ${enable_sim_hardware} in
64dd13df
MF
11901 yes|no) ;;
11902 ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
11903 *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
11904 *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
c906108c 11905esac
1517bd27 11906
64dd13df 11907if test "$enable_sim_hardware" = no; then
c906108c
SS
11908 sim_hw_objs=
11909 sim_hw_cflags="-DWITH_HW=0"
11910 sim_hw=
11911else
11912 sim_hw_cflags="-DWITH_HW=1"
11913 # remove duplicates
11914 sim_hw=""
11915 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
b3a3ffef
HPN
11916 for i in $hardware ; do
11917 case " $sim_hw " in
c906108c
SS
11918 *" $i "*) ;;
11919 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
11920 esac
11921 done
3be31516 11922 # mingw does not support sockser
3be31516
JS
11923 case ${host} in
11924 *mingw*) ;;
49cd1634
MF
11925 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
11926 # that you instatiate. Instead, other code will call into it directly.
11927 # At some point, we should convert it over.
11928 sim_hw_objs="$sim_hw_objs dv-sockser.o"
3be31516
JS
11929
11930cat >>confdefs.h <<_ACEOF
11931#define HAVE_DV_SOCKSER 1
11932_ACEOF
11933
11934 ;;
11935 esac
1517bd27
MF
11936 if test x"$silent" != x"yes"; then
11937 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
3be31516 11938 fi
1517bd27
MF
11939 case " $hardware " in
11940 *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
4399a56b 11941$as_echo_n "checking for log2 in -lm... " >&6; }
d0ac1c44 11942if ${ac_cv_lib_m_log2+:} false; then :
4399a56b
MF
11943 $as_echo_n "(cached) " >&6
11944else
11945 ac_check_lib_save_LIBS=$LIBS
11946LIBS="-lm $LIBS"
11947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948/* end confdefs.h. */
11949
11950/* Override any GCC internal prototype to avoid an error.
11951 Use char because int might match the return type of a GCC
11952 builtin and then its argument prototype would still apply. */
11953#ifdef __cplusplus
11954extern "C"
11955#endif
11956char log2 ();
11957int
11958main ()
11959{
11960return log2 ();
11961 ;
11962 return 0;
11963}
11964_ACEOF
11965if ac_fn_c_try_link "$LINENO"; then :
11966 ac_cv_lib_m_log2=yes
11967else
11968 ac_cv_lib_m_log2=no
11969fi
11970rm -f core conftest.err conftest.$ac_objext \
11971 conftest$ac_exeext conftest.$ac_ext
11972LIBS=$ac_check_lib_save_LIBS
11973fi
11974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
11975$as_echo "$ac_cv_lib_m_log2" >&6; }
d0ac1c44 11976if test "x$ac_cv_lib_m_log2" = xyes; then :
4399a56b
MF
11977 cat >>confdefs.h <<_ACEOF
11978#define HAVE_LIBM 1
11979_ACEOF
11980
11981 LIBS="-lm $LIBS"
11982
11983fi
11984;;
1517bd27
MF
11985 esac
11986fi
4399a56b 11987
c906108c 11988
c906108c 11989
81ecdfbb
RW
11990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11991$as_echo_n "checking for X... " >&6; }
b7026657 11992
c906108c 11993
81ecdfbb
RW
11994# Check whether --with-x was given.
11995if test "${with_x+set}" = set; then :
11996 withval=$with_x;
11997fi
c906108c
SS
11998
11999# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12000if test "x$with_x" = xno; then
12001 # The user explicitly disabled X.
12002 have_x=disabled
12003else
81ecdfbb 12004 case $x_includes,$x_libraries in #(
d0ac1c44
SM
12005 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
12006 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
81ecdfbb 12007 $as_echo_n "(cached) " >&6
c906108c
SS
12008else
12009 # One or both of the vars are not set, and there is no cached value.
b7026657 12010ac_x_includes=no ac_x_libraries=no
81ecdfbb 12011rm -f -r conftest.dir
b7026657
AC
12012if mkdir conftest.dir; then
12013 cd conftest.dir
b7026657 12014 cat >Imakefile <<'_ACEOF'
81ecdfbb
RW
12015incroot:
12016 @echo incroot='${INCROOT}'
12017usrlibdir:
12018 @echo usrlibdir='${USRLIBDIR}'
12019libdir:
12020 @echo libdir='${LIBDIR}'
12021_ACEOF
12022 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
d0ac1c44 12023 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
81ecdfbb
RW
12024 for ac_var in incroot usrlibdir libdir; do
12025 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
12026 done
c906108c 12027 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
81ecdfbb
RW
12028 for ac_extension in a so sl dylib la dll; do
12029 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
12030 test -f "$ac_im_libdir/libX11.$ac_extension"; then
b7026657 12031 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
12032 fi
12033 done
12034 # Screen out bogus values from the imake configuration. They are
12035 # bogus both because they are the default anyway, and because
12036 # using them would break gcc on systems where it needs fixed includes.
b7026657 12037 case $ac_im_incroot in
81ecdfbb 12038 /usr/include) ac_x_includes= ;;
b7026657 12039 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 12040 esac
b7026657 12041 case $ac_im_usrlibdir in
81ecdfbb 12042 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
b7026657 12043 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
12044 esac
12045 fi
12046 cd ..
81ecdfbb 12047 rm -f -r conftest.dir
c906108c
SS
12048fi
12049
b7026657
AC
12050# Standard set of common directories for X headers.
12051# Check X11 before X11Rn because it is often a symlink to the current release.
12052ac_x_header_dirs='
12053/usr/X11/include
81ecdfbb 12054/usr/X11R7/include
b7026657
AC
12055/usr/X11R6/include
12056/usr/X11R5/include
12057/usr/X11R4/include
12058
12059/usr/include/X11
81ecdfbb 12060/usr/include/X11R7
b7026657
AC
12061/usr/include/X11R6
12062/usr/include/X11R5
12063/usr/include/X11R4
12064
12065/usr/local/X11/include
81ecdfbb 12066/usr/local/X11R7/include
b7026657
AC
12067/usr/local/X11R6/include
12068/usr/local/X11R5/include
12069/usr/local/X11R4/include
12070
12071/usr/local/include/X11
81ecdfbb 12072/usr/local/include/X11R7
b7026657
AC
12073/usr/local/include/X11R6
12074/usr/local/include/X11R5
12075/usr/local/include/X11R4
12076
12077/usr/X386/include
12078/usr/x386/include
12079/usr/XFree86/include/X11
12080
12081/usr/include
12082/usr/local/include
12083/usr/unsupported/include
12084/usr/athena/include
12085/usr/local/x11r5/include
12086/usr/lpp/Xamples/include
12087
12088/usr/openwin/include
12089/usr/openwin/share/include'
12090
12091if test "$ac_x_includes" = no; then
81ecdfbb 12092 # Guess where to find include files, by looking for Xlib.h.
c906108c 12093 # First, try using that file with no special directory specified.
81ecdfbb 12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 12095/* end confdefs.h. */
81ecdfbb 12096#include <X11/Xlib.h>
b7026657 12097_ACEOF
81ecdfbb 12098if ac_fn_c_try_cpp "$LINENO"; then :
c906108c
SS
12099 # We can compile using X headers with no special include directory.
12100ac_x_includes=
12101else
b7026657 12102 for ac_dir in $ac_x_header_dirs; do
81ecdfbb 12103 if test -r "$ac_dir/X11/Xlib.h"; then
b7026657
AC
12104 ac_x_includes=$ac_dir
12105 break
12106 fi
12107done
c906108c 12108fi
d0ac1c44 12109rm -f conftest.err conftest.i conftest.$ac_ext
b7026657 12110fi # $ac_x_includes = no
c906108c 12111
b7026657 12112if test "$ac_x_libraries" = no; then
c906108c 12113 # Check for the libraries.
c906108c
SS
12114 # See if we find them without any special options.
12115 # Don't add to $LIBS permanently.
b7026657 12116 ac_save_LIBS=$LIBS
81ecdfbb
RW
12117 LIBS="-lX11 $LIBS"
12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 12119/* end confdefs.h. */
81ecdfbb 12120#include <X11/Xlib.h>
b7026657
AC
12121int
12122main ()
12123{
81ecdfbb 12124XrmInitialize ()
b7026657
AC
12125 ;
12126 return 0;
12127}
12128_ACEOF
81ecdfbb 12129if ac_fn_c_try_link "$LINENO"; then :
b7026657 12130 LIBS=$ac_save_LIBS
c906108c
SS
12131# We can link X programs with no special library path.
12132ac_x_libraries=
12133else
81ecdfbb
RW
12134 LIBS=$ac_save_LIBS
12135for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
b7026657 12136do
81ecdfbb
RW
12137 # Don't even attempt the hair of trying to link an X program!
12138 for ac_extension in a so sl dylib la dll; do
12139 if test -r "$ac_dir/libX11.$ac_extension"; then
12140 ac_x_libraries=$ac_dir
12141 break 2
12142 fi
12143 done
12144done
b7026657 12145fi
81ecdfbb
RW
12146rm -f core conftest.err conftest.$ac_objext \
12147 conftest$ac_exeext conftest.$ac_ext
12148fi # $ac_x_libraries = no
b7026657 12149
81ecdfbb
RW
12150case $ac_x_includes,$ac_x_libraries in #(
12151 no,* | *,no | *\'*)
12152 # Didn't find X, or a directory has "'" in its name.
12153 ac_cv_have_x="have_x=no";; #(
12154 *)
12155 # Record where we found X for the cache.
12156 ac_cv_have_x="have_x=yes\
12157 ac_x_includes='$ac_x_includes'\
12158 ac_x_libraries='$ac_x_libraries'"
12159esac
b7026657 12160fi
81ecdfbb
RW
12161;; #(
12162 *) have_x=yes;;
12163 esac
12164 eval "$ac_cv_have_x"
12165fi # $with_x != no
b7026657 12166
81ecdfbb
RW
12167if test "$have_x" != yes; then
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
12169$as_echo "$have_x" >&6; }
12170 no_x=yes
b7026657 12171else
81ecdfbb
RW
12172 # If each of the values was on the command line, it overrides each guess.
12173 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12174 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12175 # Update the cache value to reflect the command line values.
12176 ac_cv_have_x="have_x=yes\
12177 ac_x_includes='$x_includes'\
12178 ac_x_libraries='$x_libraries'"
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
12180$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
b7026657 12181fi
b7026657 12182
81ecdfbb 12183
81ecdfbb
RW
12184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
12185$as_echo_n "checking for fabs in -lm... " >&6; }
d0ac1c44 12186if ${ac_cv_lib_m_fabs+:} false; then :
81ecdfbb 12187 $as_echo_n "(cached) " >&6
b7026657
AC
12188else
12189 ac_check_lib_save_LIBS=$LIBS
12190LIBS="-lm $LIBS"
81ecdfbb 12191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
12192/* end confdefs.h. */
12193
81ecdfbb
RW
12194/* Override any GCC internal prototype to avoid an error.
12195 Use char because int might match the return type of a GCC
12196 builtin and then its argument prototype would still apply. */
b7026657
AC
12197#ifdef __cplusplus
12198extern "C"
12199#endif
b7026657
AC
12200char fabs ();
12201int
12202main ()
12203{
81ecdfbb 12204return fabs ();
b7026657
AC
12205 ;
12206 return 0;
12207}
12208_ACEOF
81ecdfbb 12209if ac_fn_c_try_link "$LINENO"; then :
b7026657
AC
12210 ac_cv_lib_m_fabs=yes
12211else
81ecdfbb 12212 ac_cv_lib_m_fabs=no
b7026657 12213fi
81ecdfbb
RW
12214rm -f core conftest.err conftest.$ac_objext \
12215 conftest$ac_exeext conftest.$ac_ext
b7026657
AC
12216LIBS=$ac_check_lib_save_LIBS
12217fi
81ecdfbb
RW
12218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
12219$as_echo "$ac_cv_lib_m_fabs" >&6; }
d0ac1c44 12220if test "x$ac_cv_lib_m_fabs" = xyes; then :
b7026657
AC
12221 cat >>confdefs.h <<_ACEOF
12222#define HAVE_LIBM 1
12223_ACEOF
12224
12225 LIBS="-lm $LIBS"
12226
12227fi
12228
b7026657
AC
12229
12230
b7026657
AC
12231cgen_breaks=""
12232if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
12233cgen_breaks="break cgen_rtx_error";
12234fi
12235
81ecdfbb 12236ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
38f48d72 12237
81ecdfbb 12238ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
38f48d72 12239
81ecdfbb 12240ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
38f48d72 12241
81ecdfbb 12242ac_config_commands="$ac_config_commands Makefile"
38f48d72 12243
81ecdfbb 12244ac_config_commands="$ac_config_commands stamp-h"
38f48d72 12245
760b3e8b
MF
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
b7026657
AC
12258cat >confcache <<\_ACEOF
12259# This file is a shell script that caches the results of configure
12260# tests run on this system so they can be shared between configure
12261# scripts and configure runs, see configure's option --config-cache.
12262# It is not useful on other systems. If it contains results you don't
12263# want to keep, you may remove or edit it.
12264#
12265# config.status only pays attention to the cache file if you give it
12266# the --recheck option to rerun configure.
12267#
12268# `ac_cv_env_foo' variables (set or unset) will be overridden when
12269# loading this file, other *unset* `ac_cv_foo' will be assigned the
12270# following values.
12271
12272_ACEOF
12273
12274# The following way of writing the cache mishandles newlines in values,
12275# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 12276# So, we kill variables containing newlines.
b7026657
AC
12277# Ultrix sh set writes to stderr and can't be redirected directly,
12278# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
12279(
12280 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12281 eval ac_val=\$$ac_var
12282 case $ac_val in #(
12283 *${as_nl}*)
12284 case $ac_var in #(
12285 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12286$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12287 esac
12288 case $ac_var in #(
12289 _ | IFS | as_nl) ;; #(
12290 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12291 *) { eval $ac_var=; unset $ac_var;} ;;
12292 esac ;;
12293 esac
12294 done
12295
b7026657 12296 (set) 2>&1 |
81ecdfbb
RW
12297 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12298 *${as_nl}ac_space=\ *)
12299 # `set' does not quote correctly, so add quotes: double-quote
12300 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
12301 sed -n \
12302 "s/'/'\\\\''/g;
12303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 12304 ;; #(
b7026657
AC
12305 *)
12306 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 12307 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 12308 ;;
81ecdfbb
RW
12309 esac |
12310 sort
12311) |
b7026657 12312 sed '
81ecdfbb 12313 /^ac_cv_env_/b end
b7026657 12314 t clear
81ecdfbb 12315 :clear
b7026657
AC
12316 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12317 t end
81ecdfbb
RW
12318 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12319 :end' >>confcache
12320if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12321 if test -w "$cache_file"; then
d0ac1c44 12322 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12324$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
12325 if test ! -f "$cache_file" || test -h "$cache_file"; then
12326 cat confcache >"$cache_file"
12327 else
12328 case $cache_file in #(
12329 */* | ?:*)
12330 mv -f confcache "$cache_file"$$ &&
12331 mv -f "$cache_file"$$ "$cache_file" ;; #(
12332 *)
12333 mv -f confcache "$cache_file" ;;
12334 esac
12335 fi
12336 fi
b7026657 12337 else
81ecdfbb
RW
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12339$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b7026657
AC
12340 fi
12341fi
12342rm -f confcache
12343
12344test "x$prefix" = xNONE && prefix=$ac_default_prefix
12345# Let make expand exec_prefix.
12346test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12347
b7026657
AC
12348DEFS=-DHAVE_CONFIG_H
12349
12350ac_libobjs=
12351ac_ltlibobjs=
d0ac1c44 12352U=
b7026657
AC
12353for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12354 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
12355 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12356 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12357 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12358 # will be set to the directory where LIBOBJS objects are built.
12359 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12360 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
12361done
12362LIBOBJS=$ac_libobjs
12363
12364LTLIBOBJS=$ac_ltlibobjs
12365
12366
0cb8d851 12367
6bb11ab3 12368if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
d0ac1c44 12369 as_fn_error $? "conditional \"PLUGINS\" was never defined.
6bb11ab3
L
12370Usually this means the macro was only invoked conditionally." "$LINENO" 5
12371fi
31e6ad7d 12372if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 12373 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
31e6ad7d
MF
12374Usually this means the macro was only invoked conditionally." "$LINENO" 5
12375fi
b7026657 12376
d0ac1c44 12377: "${CONFIG_STATUS=./config.status}"
81ecdfbb 12378ac_write_fail=0
b7026657
AC
12379ac_clean_files_save=$ac_clean_files
12380ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
12381{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12382$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12383as_write_fail=0
12384cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
12385#! $SHELL
12386# Generated by $as_me.
12387# Run this file to recreate the current configuration.
12388# Compiler output produced by configure, useful for debugging
12389# configure, is in config.log if it exists.
c906108c 12390
b7026657
AC
12391debug=false
12392ac_cs_recheck=false
12393ac_cs_silent=false
b7026657 12394
81ecdfbb
RW
12395SHELL=\${CONFIG_SHELL-$SHELL}
12396export SHELL
12397_ASEOF
12398cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12399## -------------------- ##
12400## M4sh Initialization. ##
12401## -------------------- ##
12402
12403# Be more Bourne compatible
12404DUALCASE=1; export DUALCASE # for MKS sh
12405if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
12406 emulate sh
12407 NULLCMD=:
81ecdfbb 12408 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
12409 # is contrary to our usage. Disable this feature.
12410 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
12411 setopt NO_GLOB_SUBST
12412else
12413 case `(set -o) 2>/dev/null` in #(
12414 *posix*) :
12415 set -o posix ;; #(
12416 *) :
12417 ;;
12418esac
c906108c 12419fi
b7026657 12420
81ecdfbb
RW
12421
12422as_nl='
12423'
12424export as_nl
12425# Printing a long string crashes Solaris 7 /usr/bin/printf.
12426as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12427as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12428as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12429# Prefer a ksh shell builtin over an external printf program on Solaris,
12430# but without wasting forks for bash or zsh.
12431if test -z "$BASH_VERSION$ZSH_VERSION" \
12432 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12433 as_echo='print -r --'
12434 as_echo_n='print -rn --'
12435elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12436 as_echo='printf %s\n'
12437 as_echo_n='printf %s'
12438else
12439 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12440 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12441 as_echo_n='/usr/ucb/echo -n'
12442 else
12443 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12444 as_echo_n_body='eval
12445 arg=$1;
12446 case $arg in #(
12447 *"$as_nl"*)
12448 expr "X$arg" : "X\\(.*\\)$as_nl";
12449 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12450 esac;
12451 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12452 '
12453 export as_echo_n_body
12454 as_echo_n='sh -c $as_echo_n_body as_echo'
12455 fi
12456 export as_echo_body
12457 as_echo='sh -c $as_echo_body as_echo'
c906108c 12458fi
b7026657 12459
81ecdfbb
RW
12460# The user is always right.
12461if test "${PATH_SEPARATOR+set}" != set; then
12462 PATH_SEPARATOR=:
12463 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12464 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12465 PATH_SEPARATOR=';'
12466 }
12467fi
12468
12469
12470# IFS
12471# We need space, tab and new line, in precisely that order. Quoting is
12472# there to prevent editors from complaining about space-tab.
12473# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12474# splitting by setting IFS to empty value.)
12475IFS=" "" $as_nl"
12476
12477# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 12478as_myself=
81ecdfbb
RW
12479case $0 in #((
12480 *[\\/]* ) as_myself=$0 ;;
12481 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12482for as_dir in $PATH
12483do
12484 IFS=$as_save_IFS
12485 test -z "$as_dir" && as_dir=.
12486 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12487 done
12488IFS=$as_save_IFS
b7026657 12489
81ecdfbb
RW
12490 ;;
12491esac
12492# We did not find ourselves, most probably we were run as `sh COMMAND'
12493# in which case we are not to be found in the path.
12494if test "x$as_myself" = x; then
12495 as_myself=$0
12496fi
12497if test ! -f "$as_myself"; then
12498 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12499 exit 1
12500fi
12501
12502# Unset variables that we do not need and which cause bugs (e.g. in
12503# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12504# suppresses any "Segmentation fault" message there. '((' could
12505# trigger a bug in pdksh 5.2.14.
12506for as_var in BASH_ENV ENV MAIL MAILPATH
12507do eval test x\${$as_var+set} = xset \
12508 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12509done
b7026657
AC
12510PS1='$ '
12511PS2='> '
12512PS4='+ '
12513
12514# NLS nuisances.
81ecdfbb
RW
12515LC_ALL=C
12516export LC_ALL
12517LANGUAGE=C
12518export LANGUAGE
12519
12520# CDPATH.
12521(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12522
12523
d0ac1c44
SM
12524# as_fn_error STATUS ERROR [LINENO LOG_FD]
12525# ----------------------------------------
81ecdfbb
RW
12526# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12527# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 12528# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
12529as_fn_error ()
12530{
d0ac1c44
SM
12531 as_status=$1; test $as_status -eq 0 && as_status=1
12532 if test "$4"; then
12533 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12534 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b7026657 12535 fi
d0ac1c44 12536 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
12537 as_fn_exit $as_status
12538} # as_fn_error
12539
12540
12541# as_fn_set_status STATUS
12542# -----------------------
12543# Set $? to STATUS, without forking.
12544as_fn_set_status ()
12545{
12546 return $1
12547} # as_fn_set_status
12548
12549# as_fn_exit STATUS
12550# -----------------
12551# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12552as_fn_exit ()
12553{
12554 set +e
12555 as_fn_set_status $1
12556 exit $1
12557} # as_fn_exit
12558
12559# as_fn_unset VAR
12560# ---------------
12561# Portably unset VAR.
12562as_fn_unset ()
12563{
12564 { eval $1=; unset $1;}
12565}
12566as_unset=as_fn_unset
12567# as_fn_append VAR VALUE
12568# ----------------------
12569# Append the text in VALUE to the end of the definition contained in VAR. Take
12570# advantage of any shell optimizations that allow amortized linear growth over
12571# repeated appends, instead of the typical quadratic growth present in naive
12572# implementations.
12573if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12574 eval 'as_fn_append ()
12575 {
12576 eval $1+=\$2
12577 }'
12578else
12579 as_fn_append ()
12580 {
12581 eval $1=\$$1\$2
12582 }
12583fi # as_fn_append
c906108c 12584
81ecdfbb
RW
12585# as_fn_arith ARG...
12586# ------------------
12587# Perform arithmetic evaluation on the ARGs, and store the result in the
12588# global $as_val. Take advantage of shells that can avoid forks. The arguments
12589# must be portable across $(()) and expr.
12590if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12591 eval 'as_fn_arith ()
12592 {
12593 as_val=$(( $* ))
12594 }'
12595else
12596 as_fn_arith ()
12597 {
12598 as_val=`expr "$@" || test $? -eq 1`
12599 }
12600fi # as_fn_arith
12601
12602
12603if expr a : '\(a\)' >/dev/null 2>&1 &&
12604 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657 12605 as_expr=expr
c906108c 12606else
b7026657 12607 as_expr=false
c906108c 12608fi
c906108c 12609
81ecdfbb 12610if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
12611 as_basename=basename
12612else
12613 as_basename=false
c906108c 12614fi
c906108c 12615
81ecdfbb
RW
12616if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12617 as_dirname=dirname
12618else
12619 as_dirname=false
12620fi
c906108c 12621
81ecdfbb 12622as_me=`$as_basename -- "$0" ||
b7026657
AC
12623$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12624 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
12625 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12626$as_echo X/"$0" |
12627 sed '/^.*\/\([^/][^/]*\)\/*$/{
12628 s//\1/
12629 q
12630 }
12631 /^X\/\(\/\/\)$/{
12632 s//\1/
12633 q
12634 }
12635 /^X\/\(\/\).*/{
12636 s//\1/
12637 q
12638 }
12639 s/.*/./; q'`
b7026657 12640
b7026657
AC
12641# Avoid depending upon Character Ranges.
12642as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12643as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12644as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12645as_cr_digits='0123456789'
12646as_cr_alnum=$as_cr_Letters$as_cr_digits
12647
81ecdfbb
RW
12648ECHO_C= ECHO_N= ECHO_T=
12649case `echo -n x` in #(((((
12650-n*)
12651 case `echo 'xy\c'` in
12652 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12653 xy) ECHO_C='\c';;
12654 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12655 ECHO_T=' ';;
12656 esac;;
12657*)
12658 ECHO_N='-n';;
b7026657 12659esac
c906108c 12660
81ecdfbb
RW
12661rm -f conf$$ conf$$.exe conf$$.file
12662if test -d conf$$.dir; then
12663 rm -f conf$$.dir/conf$$.file
c906108c 12664else
81ecdfbb
RW
12665 rm -f conf$$.dir
12666 mkdir conf$$.dir 2>/dev/null
c906108c 12667fi
81ecdfbb
RW
12668if (echo >conf$$.file) 2>/dev/null; then
12669 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 12670 as_ln_s='ln -s'
81ecdfbb
RW
12671 # ... but there are two gotchas:
12672 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12673 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 12674 # In both cases, we have to default to `cp -pR'.
81ecdfbb 12675 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 12676 as_ln_s='cp -pR'
81ecdfbb
RW
12677 elif ln conf$$.file conf$$ 2>/dev/null; then
12678 as_ln_s=ln
12679 else
d0ac1c44 12680 as_ln_s='cp -pR'
b7026657 12681 fi
b7026657 12682else
d0ac1c44 12683 as_ln_s='cp -pR'
c906108c 12684fi
81ecdfbb
RW
12685rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12686rmdir conf$$.dir 2>/dev/null
12687
12688
12689# as_fn_mkdir_p
12690# -------------
12691# Create "$as_dir" as a directory, including parents if necessary.
12692as_fn_mkdir_p ()
12693{
12694
12695 case $as_dir in #(
12696 -*) as_dir=./$as_dir;;
12697 esac
12698 test -d "$as_dir" || eval $as_mkdir_p || {
12699 as_dirs=
12700 while :; do
12701 case $as_dir in #(
12702 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12703 *) as_qdir=$as_dir;;
12704 esac
12705 as_dirs="'$as_qdir' $as_dirs"
12706 as_dir=`$as_dirname -- "$as_dir" ||
12707$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12708 X"$as_dir" : 'X\(//\)[^/]' \| \
12709 X"$as_dir" : 'X\(//\)$' \| \
12710 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12711$as_echo X"$as_dir" |
12712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12713 s//\1/
12714 q
12715 }
12716 /^X\(\/\/\)[^/].*/{
12717 s//\1/
12718 q
12719 }
12720 /^X\(\/\/\)$/{
12721 s//\1/
12722 q
12723 }
12724 /^X\(\/\).*/{
12725 s//\1/
12726 q
12727 }
12728 s/.*/./; q'`
12729 test -d "$as_dir" && break
12730 done
12731 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 12732 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 12733
c906108c 12734
81ecdfbb 12735} # as_fn_mkdir_p
b7026657 12736if mkdir -p . 2>/dev/null; then
81ecdfbb 12737 as_mkdir_p='mkdir -p "$as_dir"'
c906108c 12738else
b7026657
AC
12739 test -d ./-p && rmdir ./-p
12740 as_mkdir_p=false
c906108c 12741fi
c906108c 12742
d0ac1c44
SM
12743
12744# as_fn_executable_p FILE
12745# -----------------------
12746# Test if FILE is an executable regular file.
12747as_fn_executable_p ()
12748{
12749 test -f "$1" && test -x "$1"
12750} # as_fn_executable_p
12751as_test_x='test -x'
12752as_executable_p=as_fn_executable_p
c906108c 12753
b7026657
AC
12754# Sed expression to map a string onto a valid CPP name.
12755as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 12756
b7026657
AC
12757# Sed expression to map a string onto a valid variable name.
12758as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c 12759
b7026657 12760
b7026657 12761exec 6>&1
81ecdfbb
RW
12762## ----------------------------------- ##
12763## Main body of $CONFIG_STATUS script. ##
12764## ----------------------------------- ##
12765_ASEOF
12766test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12767
12768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12769# Save the log message, to keep $0 and so on meaningful, and to
b7026657 12770# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
12771# values after options handling.
12772ac_log="
b7026657 12773This file was extended by $as_me, which was
d0ac1c44 12774generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
12775
12776 CONFIG_FILES = $CONFIG_FILES
12777 CONFIG_HEADERS = $CONFIG_HEADERS
12778 CONFIG_LINKS = $CONFIG_LINKS
12779 CONFIG_COMMANDS = $CONFIG_COMMANDS
12780 $ $0 $@
12781
81ecdfbb
RW
12782on `(hostname || uname -n) 2>/dev/null | sed 1q`
12783"
12784
b7026657
AC
12785_ACEOF
12786
81ecdfbb
RW
12787case $ac_config_files in *"
12788"*) set x $ac_config_files; shift; ac_config_files=$*;;
12789esac
379832de 12790
81ecdfbb
RW
12791case $ac_config_headers in *"
12792"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12793esac
b7026657 12794
b7026657 12795
81ecdfbb
RW
12796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12797# Files that config.status was made for.
12798config_files="$ac_config_files"
12799config_headers="$ac_config_headers"
81ecdfbb 12800config_commands="$ac_config_commands"
b7026657 12801
81ecdfbb 12802_ACEOF
b7026657 12803
81ecdfbb 12804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 12805ac_cs_usage="\
81ecdfbb
RW
12806\`$as_me' instantiates files and other configuration actions
12807from templates according to the current configuration. Unless the files
12808and actions are specified as TAGs, all are instantiated by default.
b7026657 12809
81ecdfbb 12810Usage: $0 [OPTION]... [TAG]...
b7026657
AC
12811
12812 -h, --help print this help, then exit
81ecdfbb 12813 -V, --version print version number and configuration settings, then exit
d0ac1c44 12814 --config print configuration, then exit
81ecdfbb
RW
12815 -q, --quiet, --silent
12816 do not print progress messages
b7026657
AC
12817 -d, --debug don't remove temporary files
12818 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
12819 --file=FILE[:TEMPLATE]
12820 instantiate the configuration file FILE
12821 --header=FILE[:TEMPLATE]
12822 instantiate the configuration header FILE
b7026657
AC
12823
12824Configuration files:
12825$config_files
12826
12827Configuration headers:
12828$config_headers
12829
b7026657
AC
12830Configuration commands:
12831$config_commands
12832
81ecdfbb 12833Report bugs to the package provider."
b7026657 12834
81ecdfbb
RW
12835_ACEOF
12836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 12837ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b7026657
AC
12838ac_cs_version="\\
12839config.status
d0ac1c44
SM
12840configured by $0, generated by GNU Autoconf 2.69,
12841 with options \\"\$ac_cs_config\\"
b7026657 12842
d0ac1c44 12843Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
12844This config.status script is free software; the Free Software Foundation
12845gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
12846
12847ac_pwd='$ac_pwd'
12848srcdir='$srcdir'
12849INSTALL='$INSTALL'
6bb11ab3 12850AWK='$AWK'
81ecdfbb 12851test -n "\$AWK" || AWK=awk
b7026657
AC
12852_ACEOF
12853
81ecdfbb
RW
12854cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12855# The default lists apply if the user does not specify any file.
b7026657
AC
12856ac_need_defaults=:
12857while test $# != 0
12858do
12859 case $1 in
d0ac1c44 12860 --*=?*)
81ecdfbb
RW
12861 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12862 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657 12863 ac_shift=:
c906108c 12864 ;;
d0ac1c44
SM
12865 --*=)
12866 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12867 ac_optarg=
12868 ac_shift=:
12869 ;;
81ecdfbb 12870 *)
b7026657
AC
12871 ac_option=$1
12872 ac_optarg=$2
12873 ac_shift=shift
c906108c 12874 ;;
b7026657 12875 esac
c906108c 12876
b7026657
AC
12877 case $ac_option in
12878 # Handling of the options.
b7026657
AC
12879 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12880 ac_cs_recheck=: ;;
81ecdfbb
RW
12881 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12882 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
12883 --config | --confi | --conf | --con | --co | --c )
12884 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 12885 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
12886 debug=: ;;
12887 --file | --fil | --fi | --f )
12888 $ac_shift
81ecdfbb
RW
12889 case $ac_optarg in
12890 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 12891 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
12892 esac
12893 as_fn_append CONFIG_FILES " '$ac_optarg'"
b7026657
AC
12894 ac_need_defaults=false;;
12895 --header | --heade | --head | --hea )
12896 $ac_shift
81ecdfbb
RW
12897 case $ac_optarg in
12898 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12899 esac
12900 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
b7026657 12901 ac_need_defaults=false;;
81ecdfbb
RW
12902 --he | --h)
12903 # Conflict between --help and --header
d0ac1c44 12904 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
12905Try \`$0 --help' for more information.";;
12906 --help | --hel | -h )
12907 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
12908 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12909 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12910 ac_cs_silent=: ;;
c906108c 12911
b7026657 12912 # This is an error.
d0ac1c44 12913 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 12914Try \`$0 --help' for more information." ;;
c906108c 12915
81ecdfbb
RW
12916 *) as_fn_append ac_config_targets " $1"
12917 ac_need_defaults=false ;;
b7026657
AC
12918
12919 esac
12920 shift
12921done
12922
12923ac_configure_extra_args=
12924
12925if $ac_cs_silent; then
12926 exec 6>/dev/null
12927 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c
SS
12928fi
12929
b7026657 12930_ACEOF
81ecdfbb 12931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 12932if \$ac_cs_recheck; then
d0ac1c44 12933 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
12934 shift
12935 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12936 CONFIG_SHELL='$SHELL'
12937 export CONFIG_SHELL
12938 exec "\$@"
b7026657 12939fi
c906108c 12940
b7026657 12941_ACEOF
81ecdfbb
RW
12942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12943exec 5>>config.log
12944{
12945 echo
12946 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12947## Running $as_me. ##
12948_ASBOX
12949 $as_echo "$ac_log"
12950} >&5
c906108c 12951
81ecdfbb
RW
12952_ACEOF
12953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
db2e4d67
MF
12954#
12955# INIT-COMMANDS
12956#
12957ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
12958
6bb11ab3
L
12959
12960# The HP-UX ksh and POSIX shell print the target directory to stdout
12961# if CDPATH is set.
12962(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12963
12964sed_quote_subst='$sed_quote_subst'
12965double_quote_subst='$double_quote_subst'
12966delay_variable_subst='$delay_variable_subst'
12967macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12968macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12969enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12970enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12971pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12972enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12973SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12974ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12975host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12976host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12977host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12978build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12979build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12980build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12981SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12982Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12983GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12984EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12985FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12986LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12987NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12988LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12989max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12990ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12991exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12992lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12993lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12994lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12995reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12996reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12997OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12998deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12999file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13000AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13001AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13002STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13003RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13004old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13005old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13006old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13007lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13008CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13009CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13010compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13011GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13012lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13013lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13014lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13015lt_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"`'
13016objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13017MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13018lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13019lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13020lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13021lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13022lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13023need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13024DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13025NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13026LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13027OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13028OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13029libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13030shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13031extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13032archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13033enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13034export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13035whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13036compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13037old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13038old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13039archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13040archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13041module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13042module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13043with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13044allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13045no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13046hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13047hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13048hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13049hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13050hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13051hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13052hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13053hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13054inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13055link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13056fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13057always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13058export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13059exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13060include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13061prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13062file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13063variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13064need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13065need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13066version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13067runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13068shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13069shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13070libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13071library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13072soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13073install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13074postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13075postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13076finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13077finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13078hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13079sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13080sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13081hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13082enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13083enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13084enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13085old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13086striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13087
13088LTCC='$LTCC'
13089LTCFLAGS='$LTCFLAGS'
13090compiler='$compiler_DEFAULT'
13091
13092# A function that is used when there is no print builtin or printf.
13093func_fallback_echo ()
13094{
13095 eval 'cat <<_LTECHO_EOF
13096\$1
13097_LTECHO_EOF'
13098}
13099
13100# Quote evaled strings.
13101for var in SHELL \
13102ECHO \
13103SED \
13104GREP \
13105EGREP \
13106FGREP \
13107LD \
13108NM \
13109LN_S \
13110lt_SP2NL \
13111lt_NL2SP \
13112reload_flag \
13113OBJDUMP \
13114deplibs_check_method \
13115file_magic_cmd \
13116AR \
13117AR_FLAGS \
13118STRIP \
13119RANLIB \
13120CC \
13121CFLAGS \
13122compiler \
13123lt_cv_sys_global_symbol_pipe \
13124lt_cv_sys_global_symbol_to_cdecl \
13125lt_cv_sys_global_symbol_to_c_name_address \
13126lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13127lt_prog_compiler_no_builtin_flag \
13128lt_prog_compiler_wl \
13129lt_prog_compiler_pic \
13130lt_prog_compiler_static \
13131lt_cv_prog_compiler_c_o \
13132need_locks \
13133DSYMUTIL \
13134NMEDIT \
13135LIPO \
13136OTOOL \
13137OTOOL64 \
13138shrext_cmds \
13139export_dynamic_flag_spec \
13140whole_archive_flag_spec \
13141compiler_needs_object \
13142with_gnu_ld \
13143allow_undefined_flag \
13144no_undefined_flag \
13145hardcode_libdir_flag_spec \
13146hardcode_libdir_flag_spec_ld \
13147hardcode_libdir_separator \
13148fix_srcfile_path \
13149exclude_expsyms \
13150include_expsyms \
13151file_list_spec \
13152variables_saved_for_relink \
13153libname_spec \
13154library_names_spec \
13155soname_spec \
13156install_override_mode \
13157finish_eval \
13158old_striplib \
13159striplib; do
13160 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13161 *[\\\\\\\`\\"\\\$]*)
13162 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13163 ;;
13164 *)
13165 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13166 ;;
13167 esac
13168done
13169
13170# Double-quote double-evaled strings.
13171for var in reload_cmds \
13172old_postinstall_cmds \
13173old_postuninstall_cmds \
13174old_archive_cmds \
13175extract_expsyms_cmds \
13176old_archive_from_new_cmds \
13177old_archive_from_expsyms_cmds \
13178archive_cmds \
13179archive_expsym_cmds \
13180module_cmds \
13181module_expsym_cmds \
13182export_symbols_cmds \
13183prelink_cmds \
13184postinstall_cmds \
13185postuninstall_cmds \
13186finish_cmds \
13187sys_lib_search_path_spec \
13188sys_lib_dlsearch_path_spec; do
13189 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13190 *[\\\\\\\`\\"\\\$]*)
13191 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13192 ;;
13193 *)
13194 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13195 ;;
13196 esac
13197done
13198
13199ac_aux_dir='$ac_aux_dir'
13200xsi_shell='$xsi_shell'
13201lt_shell_append='$lt_shell_append'
13202
13203# See if we are running on zsh, and set the options which allow our
13204# commands through without removal of \ escapes INIT.
13205if test -n "\${ZSH_VERSION+set}" ; then
13206 setopt NO_GLOB_SUBST
13207fi
13208
13209
13210 PACKAGE='$PACKAGE'
13211 VERSION='$VERSION'
13212 TIMESTAMP='$TIMESTAMP'
13213 RM='$RM'
13214 ofile='$ofile'
13215
13216
13217
13218
81ecdfbb 13219_ACEOF
c906108c 13220
81ecdfbb 13221cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c906108c 13222
81ecdfbb 13223# Handling of arguments.
b7026657 13224for ac_config_target in $ac_config_targets
c906108c 13225do
81ecdfbb
RW
13226 case $ac_config_target in
13227 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
db2e4d67 13228 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
6bb11ab3 13229 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
81ecdfbb
RW
13230 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
13231 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
13232 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
13233 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
13234 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
13235
d0ac1c44 13236 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c
SS
13237 esac
13238done
13239
81ecdfbb 13240
b7026657
AC
13241# If the user did not use the arguments to specify the items to instantiate,
13242# then the envvar interface is used. Set only those that are not.
13243# We use the long form for the default assignment because of an extremely
13244# bizarre bug on SunOS 4.1.3.
13245if $ac_need_defaults; then
13246 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13247 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
b7026657
AC
13248 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13249fi
13250
13251# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 13252# simply because there is no reason against having it here, and in addition,
b7026657 13253# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
13254# Hook for its removal unless debugging.
13255# Note that there is a small window in which the directory will not be cleaned:
13256# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
13257$debug ||
13258{
d0ac1c44 13259 tmp= ac_tmp=
81ecdfbb 13260 trap 'exit_status=$?
d0ac1c44
SM
13261 : "${ac_tmp:=$tmp}"
13262 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
13263' 0
13264 trap 'as_fn_exit 1' 1 2 13 15
b7026657 13265}
b7026657 13266# Create a (secure) tmp directory for tmp files.
c906108c 13267
b7026657 13268{
81ecdfbb 13269 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 13270 test -d "$tmp"
b7026657
AC
13271} ||
13272{
81ecdfbb
RW
13273 tmp=./conf$$-$RANDOM
13274 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
13275} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13276ac_tmp=$tmp
b7026657 13277
81ecdfbb
RW
13278# Set up the scripts for CONFIG_FILES section.
13279# No need to generate them if there are no CONFIG_FILES.
13280# This happens for instance with `./config.status config.h'.
13281if test -n "$CONFIG_FILES"; then
b7026657 13282
c906108c 13283
81ecdfbb
RW
13284ac_cr=`echo X | tr X '\015'`
13285# On cygwin, bash can eat \r inside `` if the user requested igncr.
13286# But we know of no other shell where ac_cr would be empty at this
13287# point, so we can use a bashism as a fallback.
13288if test "x$ac_cr" = x; then
13289 eval ac_cr=\$\'\\r\'
13290fi
13291ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13292if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 13293 ac_cs_awk_cr='\\r'
81ecdfbb
RW
13294else
13295 ac_cs_awk_cr=$ac_cr
13296fi
b7026657 13297
d0ac1c44 13298echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
b7026657
AC
13299_ACEOF
13300
c906108c 13301
81ecdfbb
RW
13302{
13303 echo "cat >conf$$subs.awk <<_ACEOF" &&
13304 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13305 echo "_ACEOF"
13306} >conf$$subs.sh ||
d0ac1c44
SM
13307 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13308ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
13309ac_delim='%!_!# '
13310for ac_last_try in false false false false false :; do
13311 . ./conf$$subs.sh ||
d0ac1c44 13312 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
13313
13314 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13315 if test $ac_delim_n = $ac_delim_num; then
13316 break
13317 elif $ac_last_try; then
d0ac1c44 13318 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
c906108c 13319 else
81ecdfbb
RW
13320 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13321 fi
13322done
13323rm -f conf$$subs.sh
13324
13325cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 13326cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
13327_ACEOF
13328sed -n '
13329h
13330s/^/S["/; s/!.*/"]=/
13331p
13332g
13333s/^[^!]*!//
13334:repl
13335t repl
13336s/'"$ac_delim"'$//
13337t delim
13338:nl
13339h
d0ac1c44 13340s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
13341t more1
13342s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13343p
13344n
13345b repl
13346:more1
13347s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13348p
13349g
13350s/.\{148\}//
13351t nl
13352:delim
13353h
d0ac1c44 13354s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
13355t more2
13356s/["\\]/\\&/g; s/^/"/; s/$/"/
13357p
13358b
13359:more2
13360s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13361p
13362g
13363s/.\{148\}//
13364t delim
13365' <conf$$subs.awk | sed '
13366/^[^""]/{
13367 N
13368 s/\n//
13369}
13370' >>$CONFIG_STATUS || ac_write_fail=1
13371rm -f conf$$subs.awk
13372cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13373_ACAWK
d0ac1c44 13374cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
13375 for (key in S) S_is_set[key] = 1
13376 FS = "\a"
b7026657 13377
81ecdfbb
RW
13378}
13379{
13380 line = $ 0
13381 nfields = split(line, field, "@")
13382 substed = 0
13383 len = length(field[1])
13384 for (i = 2; i < nfields; i++) {
13385 key = field[i]
13386 keylen = length(key)
13387 if (S_is_set[key]) {
13388 value = S[key]
13389 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13390 len += length(value) + length(field[++i])
13391 substed = 1
13392 } else
13393 len += 1 + keylen
13394 }
13395
13396 print line
13397}
c906108c 13398
81ecdfbb
RW
13399_ACAWK
13400_ACEOF
13401cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13402if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13403 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
b7026657 13404else
81ecdfbb 13405 cat
d0ac1c44
SM
13406fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13407 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb 13408_ACEOF
b7026657 13409
d0ac1c44
SM
13410# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13411# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
13412# trailing colons and then remove the whole line if VPATH becomes empty
13413# (actually we leave an empty line to preserve line numbers).
13414if test "x$srcdir" = x.; then
d0ac1c44
SM
13415 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13416h
13417s///
13418s/^/:/
13419s/[ ]*$/:/
13420s/:\$(srcdir):/:/g
13421s/:\${srcdir}:/:/g
13422s/:@srcdir@:/:/g
13423s/^:*//
81ecdfbb 13424s/:*$//
d0ac1c44
SM
13425x
13426s/\(=[ ]*\).*/\1/
13427G
13428s/\n//
81ecdfbb
RW
13429s/^[^=]*=[ ]*$//
13430}'
13431fi
c906108c 13432
81ecdfbb
RW
13433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13434fi # test -n "$CONFIG_FILES"
c906108c 13435
81ecdfbb
RW
13436# Set up the scripts for CONFIG_HEADERS section.
13437# No need to generate them if there are no CONFIG_HEADERS.
13438# This happens for instance with `./config.status Makefile'.
13439if test -n "$CONFIG_HEADERS"; then
d0ac1c44 13440cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb
RW
13441BEGIN {
13442_ACEOF
b7026657 13443
81ecdfbb
RW
13444# Transform confdefs.h into an awk script `defines.awk', embedded as
13445# here-document in config.status, that substitutes the proper values into
13446# config.h.in to produce config.h.
c906108c 13447
81ecdfbb
RW
13448# Create a delimiter string that does not exist in confdefs.h, to ease
13449# handling of long lines.
13450ac_delim='%!_!# '
13451for ac_last_try in false false :; do
d0ac1c44
SM
13452 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13453 if test -z "$ac_tt"; then
81ecdfbb
RW
13454 break
13455 elif $ac_last_try; then
d0ac1c44 13456 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
b7026657 13457 else
81ecdfbb 13458 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
b7026657 13459 fi
b7026657 13460done
81ecdfbb
RW
13461
13462# For the awk script, D is an array of macro values keyed by name,
13463# likewise P contains macro parameters if any. Preserve backslash
13464# newline sequences.
13465
13466ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13467sed -n '
13468s/.\{148\}/&'"$ac_delim"'/g
13469t rset
13470:rset
13471s/^[ ]*#[ ]*define[ ][ ]*/ /
13472t def
13473d
13474:def
13475s/\\$//
13476t bsnl
13477s/["\\]/\\&/g
13478s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13479D["\1"]=" \3"/p
13480s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13481d
13482:bsnl
13483s/["\\]/\\&/g
13484s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13485D["\1"]=" \3\\\\\\n"\\/p
13486t cont
13487s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13488t cont
13489d
13490:cont
13491n
13492s/.\{148\}/&'"$ac_delim"'/g
13493t clear
13494:clear
13495s/\\$//
13496t bsnlc
13497s/["\\]/\\&/g; s/^/"/; s/$/"/p
13498d
13499:bsnlc
13500s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13501b cont
13502' <confdefs.h | sed '
13503s/'"$ac_delim"'/"\\\
13504"/g' >>$CONFIG_STATUS || ac_write_fail=1
13505
13506cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13507 for (key in D) D_is_set[key] = 1
13508 FS = "\a"
13509}
13510/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13511 line = \$ 0
13512 split(line, arg, " ")
13513 if (arg[1] == "#") {
13514 defundef = arg[2]
13515 mac1 = arg[3]
13516 } else {
13517 defundef = substr(arg[1], 2)
13518 mac1 = arg[2]
13519 }
13520 split(mac1, mac2, "(") #)
13521 macro = mac2[1]
13522 prefix = substr(line, 1, index(line, defundef) - 1)
13523 if (D_is_set[macro]) {
13524 # Preserve the white space surrounding the "#".
13525 print prefix "define", macro P[macro] D[macro]
13526 next
13527 } else {
13528 # Replace #undef with comments. This is necessary, for example,
13529 # in the case of _POSIX_SOURCE, which is predefined and required
13530 # on some systems where configure will not decide to define it.
13531 if (defundef == "undef") {
13532 print "/*", prefix defundef, macro, "*/"
13533 next
13534 }
13535 }
13536}
13537{ print }
13538_ACAWK
b7026657 13539_ACEOF
81ecdfbb 13540cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 13541 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb 13542fi # test -n "$CONFIG_HEADERS"
b7026657 13543
c906108c 13544
99d8e879 13545eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
81ecdfbb
RW
13546shift
13547for ac_tag
13548do
13549 case $ac_tag in
13550 :[FHLC]) ac_mode=$ac_tag; continue;;
13551 esac
13552 case $ac_mode$ac_tag in
13553 :[FHL]*:*);;
d0ac1c44 13554 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
13555 :[FH]-) ac_tag=-:-;;
13556 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
c906108c 13557 esac
81ecdfbb
RW
13558 ac_save_IFS=$IFS
13559 IFS=:
13560 set x $ac_tag
13561 IFS=$ac_save_IFS
13562 shift
13563 ac_file=$1
13564 shift
c906108c 13565
81ecdfbb
RW
13566 case $ac_mode in
13567 :L) ac_source=$1;;
13568 :[FH])
13569 ac_file_inputs=
13570 for ac_f
13571 do
13572 case $ac_f in
d0ac1c44 13573 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
13574 *) # Look for the file first in the build tree, then in the source tree
13575 # (if the path is not absolute). The absolute path cannot be DOS-style,
13576 # because $ac_f cannot contain `:'.
13577 test -f "$ac_f" ||
13578 case $ac_f in
13579 [\\/$]*) false;;
13580 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13581 esac ||
d0ac1c44 13582 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
b7026657 13583 esac
81ecdfbb
RW
13584 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13585 as_fn_append ac_file_inputs " '$ac_f'"
13586 done
b7026657 13587
81ecdfbb
RW
13588 # Let's still pretend it is `configure' which instantiates (i.e., don't
13589 # use $as_me), people would be surprised to read:
13590 # /* config.h. Generated by config.status. */
13591 configure_input='Generated from '`
13592 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13593 `' by configure.'
13594 if test x"$ac_file" != x-; then
13595 configure_input="$ac_file. $configure_input"
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13597$as_echo "$as_me: creating $ac_file" >&6;}
13598 fi
13599 # Neutralize special characters interpreted by sed in replacement strings.
13600 case $configure_input in #(
13601 *\&* | *\|* | *\\* )
13602 ac_sed_conf_input=`$as_echo "$configure_input" |
13603 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13604 *) ac_sed_conf_input=$configure_input;;
13605 esac
b7026657 13606
81ecdfbb 13607 case $ac_tag in
d0ac1c44
SM
13608 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13609 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
13610 esac
13611 ;;
13612 esac
b7026657 13613
81ecdfbb 13614 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
13615$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13616 X"$ac_file" : 'X\(//\)[^/]' \| \
13617 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
13618 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13619$as_echo X"$ac_file" |
13620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13621 s//\1/
13622 q
13623 }
13624 /^X\(\/\/\)[^/].*/{
13625 s//\1/
13626 q
13627 }
13628 /^X\(\/\/\)$/{
13629 s//\1/
13630 q
13631 }
13632 /^X\(\/\).*/{
13633 s//\1/
13634 q
13635 }
13636 s/.*/./; q'`
13637 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
13638 ac_builddir=.
13639
81ecdfbb
RW
13640case "$ac_dir" in
13641.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13642*)
13643 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13644 # A ".." for each directory in $ac_dir_suffix.
13645 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13646 case $ac_top_builddir_sub in
13647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13649 esac ;;
13650esac
13651ac_abs_top_builddir=$ac_pwd
13652ac_abs_builddir=$ac_pwd$ac_dir_suffix
13653# for backward compatibility:
13654ac_top_builddir=$ac_top_build_prefix
b7026657
AC
13655
13656case $srcdir in
81ecdfbb 13657 .) # We are building in place.
b7026657 13658 ac_srcdir=.
81ecdfbb
RW
13659 ac_top_srcdir=$ac_top_builddir_sub
13660 ac_abs_top_srcdir=$ac_pwd ;;
13661 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 13662 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
13663 ac_top_srcdir=$srcdir
13664 ac_abs_top_srcdir=$srcdir ;;
13665 *) # Relative name.
13666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13667 ac_top_srcdir=$ac_top_build_prefix$srcdir
13668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 13669esac
81ecdfbb 13670ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 13671
c906108c 13672
81ecdfbb
RW
13673 case $ac_mode in
13674 :F)
13675 #
13676 # CONFIG_FILE
13677 #
b7026657 13678
81ecdfbb
RW
13679 case $INSTALL in
13680 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13681 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 13682 esac
81ecdfbb 13683_ACEOF
c906108c 13684
81ecdfbb
RW
13685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13686# If the template does not know about datarootdir, expand it.
13687# FIXME: This hack should be removed a few years after 2.60.
13688ac_datarootdir_hack=; ac_datarootdir_seen=
13689ac_sed_dataroot='
13690/datarootdir/ {
13691 p
13692 q
13693}
13694/@datadir@/p
13695/@docdir@/p
13696/@infodir@/p
13697/@localedir@/p
13698/@mandir@/p'
13699case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13700*datarootdir*) ac_datarootdir_seen=yes;;
13701*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13703$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13704_ACEOF
13705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13706 ac_datarootdir_hack='
13707 s&@datadir@&$datadir&g
13708 s&@docdir@&$docdir&g
13709 s&@infodir@&$infodir&g
13710 s&@localedir@&$localedir&g
13711 s&@mandir@&$mandir&g
13712 s&\\\${datarootdir}&$datarootdir&g' ;;
13713esac
b7026657 13714_ACEOF
b7026657 13715
81ecdfbb
RW
13716# Neutralize VPATH when `$srcdir' = `.'.
13717# Shell code in configure.ac might set extrasub.
13718# FIXME: do we really want to maintain this feature?
13719cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13720ac_sed_extra="$ac_vpsub
13721$extrasub
13722_ACEOF
13723cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13724:t
13725/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13726s|@configure_input@|$ac_sed_conf_input|;t t
13727s&@top_builddir@&$ac_top_builddir_sub&;t t
13728s&@top_build_prefix@&$ac_top_build_prefix&;t t
13729s&@srcdir@&$ac_srcdir&;t t
13730s&@abs_srcdir@&$ac_abs_srcdir&;t t
13731s&@top_srcdir@&$ac_top_srcdir&;t t
13732s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13733s&@builddir@&$ac_builddir&;t t
13734s&@abs_builddir@&$ac_abs_builddir&;t t
13735s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13736s&@INSTALL@&$ac_INSTALL&;t t
13737$ac_datarootdir_hack
13738"
d0ac1c44
SM
13739eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13740 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
13741
13742test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
13743 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13744 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13745 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 13746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 13747which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 13748$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 13749which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 13750
d0ac1c44 13751 rm -f "$ac_tmp/stdin"
81ecdfbb 13752 case $ac_file in
d0ac1c44
SM
13753 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13754 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 13755 esac \
d0ac1c44 13756 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
13757 ;;
13758 :H)
13759 #
13760 # CONFIG_HEADER
13761 #
13762 if test x"$ac_file" != x-; then
13763 {
13764 $as_echo "/* $configure_input */" \
d0ac1c44
SM
13765 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13766 } >"$ac_tmp/config.h" \
13767 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13768 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13770$as_echo "$as_me: $ac_file is unchanged" >&6;}
13771 else
13772 rm -f "$ac_file"
d0ac1c44
SM
13773 mv "$ac_tmp/config.h" "$ac_file" \
13774 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 13775 fi
b7026657 13776 else
81ecdfbb 13777 $as_echo "/* $configure_input */" \
d0ac1c44
SM
13778 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13779 || as_fn_error $? "could not create -" "$LINENO" 5
81ecdfbb
RW
13780 fi
13781 ;;
b7026657 13782
81ecdfbb
RW
13783 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13784$as_echo "$as_me: executing $ac_file commands" >&6;}
13785 ;;
13786 esac
b7026657
AC
13787
13788
81ecdfbb 13789 case $ac_file$ac_mode in
db2e4d67 13790 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
6bb11ab3
L
13791 "libtool":C)
13792
13793 # See if we are running on zsh, and set the options which allow our
13794 # commands through without removal of \ escapes.
13795 if test -n "${ZSH_VERSION+set}" ; then
13796 setopt NO_GLOB_SUBST
13797 fi
13798
13799 cfgfile="${ofile}T"
13800 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13801 $RM "$cfgfile"
13802
13803 cat <<_LT_EOF >> "$cfgfile"
13804#! $SHELL
13805
13806# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13807# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13808# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13809# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13810#
13811# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13812# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13813# Written by Gordon Matzigkeit, 1996
13814#
13815# This file is part of GNU Libtool.
13816#
13817# GNU Libtool is free software; you can redistribute it and/or
13818# modify it under the terms of the GNU General Public License as
13819# published by the Free Software Foundation; either version 2 of
13820# the License, or (at your option) any later version.
13821#
13822# As a special exception to the GNU General Public License,
13823# if you distribute this file as part of a program or library that
13824# is built using GNU Libtool, you may include this file under the
13825# same distribution terms that you use for the rest of that program.
13826#
13827# GNU Libtool is distributed in the hope that it will be useful,
13828# but WITHOUT ANY WARRANTY; without even the implied warranty of
13829# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13830# GNU General Public License for more details.
13831#
13832# You should have received a copy of the GNU General Public License
13833# along with GNU Libtool; see the file COPYING. If not, a copy
13834# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13835# obtained by writing to the Free Software Foundation, Inc.,
13836# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13837
13838
13839# The names of the tagged configurations supported by this script.
13840available_tags=""
13841
13842# ### BEGIN LIBTOOL CONFIG
13843
13844# Which release of libtool.m4 was used?
13845macro_version=$macro_version
13846macro_revision=$macro_revision
13847
13848# Whether or not to build shared libraries.
13849build_libtool_libs=$enable_shared
13850
13851# Whether or not to build static libraries.
13852build_old_libs=$enable_static
13853
13854# What type of objects to build.
13855pic_mode=$pic_mode
13856
13857# Whether or not to optimize for fast installation.
13858fast_install=$enable_fast_install
13859
13860# Shell to use when invoking shell scripts.
13861SHELL=$lt_SHELL
13862
13863# An echo program that protects backslashes.
13864ECHO=$lt_ECHO
13865
13866# The host system.
13867host_alias=$host_alias
13868host=$host
13869host_os=$host_os
13870
13871# The build system.
13872build_alias=$build_alias
13873build=$build
13874build_os=$build_os
13875
13876# A sed program that does not truncate output.
13877SED=$lt_SED
13878
13879# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13880Xsed="\$SED -e 1s/^X//"
13881
13882# A grep program that handles long lines.
13883GREP=$lt_GREP
13884
13885# An ERE matcher.
13886EGREP=$lt_EGREP
13887
13888# A literal string matcher.
13889FGREP=$lt_FGREP
13890
13891# A BSD- or MS-compatible name lister.
13892NM=$lt_NM
13893
13894# Whether we need soft or hard links.
13895LN_S=$lt_LN_S
13896
13897# What is the maximum length of a command?
13898max_cmd_len=$max_cmd_len
13899
13900# Object file suffix (normally "o").
13901objext=$ac_objext
13902
13903# Executable file suffix (normally "").
13904exeext=$exeext
13905
13906# whether the shell understands "unset".
13907lt_unset=$lt_unset
13908
13909# turn spaces into newlines.
13910SP2NL=$lt_lt_SP2NL
13911
13912# turn newlines into spaces.
13913NL2SP=$lt_lt_NL2SP
13914
13915# An object symbol dumper.
13916OBJDUMP=$lt_OBJDUMP
13917
13918# Method to check whether dependent libraries are shared objects.
13919deplibs_check_method=$lt_deplibs_check_method
13920
13921# Command to use when deplibs_check_method == "file_magic".
13922file_magic_cmd=$lt_file_magic_cmd
13923
13924# The archiver.
13925AR=$lt_AR
13926AR_FLAGS=$lt_AR_FLAGS
13927
13928# A symbol stripping program.
13929STRIP=$lt_STRIP
13930
13931# Commands used to install an old-style archive.
13932RANLIB=$lt_RANLIB
13933old_postinstall_cmds=$lt_old_postinstall_cmds
13934old_postuninstall_cmds=$lt_old_postuninstall_cmds
13935
13936# Whether to use a lock for old archive extraction.
13937lock_old_archive_extraction=$lock_old_archive_extraction
13938
13939# A C compiler.
13940LTCC=$lt_CC
13941
13942# LTCC compiler flags.
13943LTCFLAGS=$lt_CFLAGS
13944
13945# Take the output of nm and produce a listing of raw symbols and C names.
13946global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13947
13948# Transform the output of nm in a proper C declaration.
13949global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13950
13951# Transform the output of nm in a C name address pair.
13952global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13953
13954# Transform the output of nm in a C name address pair when lib prefix is needed.
13955global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13956
13957# The name of the directory that contains temporary libtool files.
13958objdir=$objdir
13959
13960# Used to examine libraries when file_magic_cmd begins with "file".
13961MAGIC_CMD=$MAGIC_CMD
13962
13963# Must we lock files when doing compilation?
13964need_locks=$lt_need_locks
13965
13966# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13967DSYMUTIL=$lt_DSYMUTIL
13968
13969# Tool to change global to local symbols on Mac OS X.
13970NMEDIT=$lt_NMEDIT
13971
13972# Tool to manipulate fat objects and archives on Mac OS X.
13973LIPO=$lt_LIPO
13974
13975# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13976OTOOL=$lt_OTOOL
13977
13978# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13979OTOOL64=$lt_OTOOL64
13980
13981# Old archive suffix (normally "a").
13982libext=$libext
13983
13984# Shared library suffix (normally ".so").
13985shrext_cmds=$lt_shrext_cmds
13986
13987# The commands to extract the exported symbol list from a shared archive.
13988extract_expsyms_cmds=$lt_extract_expsyms_cmds
13989
13990# Variables whose values should be saved in libtool wrapper scripts and
13991# restored at link time.
13992variables_saved_for_relink=$lt_variables_saved_for_relink
13993
13994# Do we need the "lib" prefix for modules?
13995need_lib_prefix=$need_lib_prefix
13996
13997# Do we need a version for libraries?
13998need_version=$need_version
13999
14000# Library versioning type.
14001version_type=$version_type
14002
14003# Shared library runtime path variable.
14004runpath_var=$runpath_var
14005
14006# Shared library path variable.
14007shlibpath_var=$shlibpath_var
14008
14009# Is shlibpath searched before the hard-coded library search path?
14010shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14011
14012# Format of library name prefix.
14013libname_spec=$lt_libname_spec
14014
14015# List of archive names. First name is the real one, the rest are links.
14016# The last name is the one that the linker finds with -lNAME
14017library_names_spec=$lt_library_names_spec
14018
14019# The coded name of the library, if different from the real name.
14020soname_spec=$lt_soname_spec
14021
14022# Permission mode override for installation of shared libraries.
14023install_override_mode=$lt_install_override_mode
14024
14025# Command to use after installation of a shared archive.
14026postinstall_cmds=$lt_postinstall_cmds
14027
14028# Command to use after uninstallation of a shared archive.
14029postuninstall_cmds=$lt_postuninstall_cmds
14030
14031# Commands used to finish a libtool library installation in a directory.
14032finish_cmds=$lt_finish_cmds
14033
14034# As "finish_cmds", except a single script fragment to be evaled but
14035# not shown.
14036finish_eval=$lt_finish_eval
14037
14038# Whether we should hardcode library paths into libraries.
14039hardcode_into_libs=$hardcode_into_libs
14040
14041# Compile-time system search path for libraries.
14042sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14043
14044# Run-time system search path for libraries.
14045sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14046
14047# Whether dlopen is supported.
14048dlopen_support=$enable_dlopen
14049
14050# Whether dlopen of programs is supported.
14051dlopen_self=$enable_dlopen_self
14052
14053# Whether dlopen of statically linked programs is supported.
14054dlopen_self_static=$enable_dlopen_self_static
14055
14056# Commands to strip libraries.
14057old_striplib=$lt_old_striplib
14058striplib=$lt_striplib
14059
14060
14061# The linker used to build libraries.
14062LD=$lt_LD
14063
14064# How to create reloadable object files.
14065reload_flag=$lt_reload_flag
14066reload_cmds=$lt_reload_cmds
14067
14068# Commands used to build an old-style archive.
14069old_archive_cmds=$lt_old_archive_cmds
14070
14071# A language specific compiler.
14072CC=$lt_compiler
14073
14074# Is the compiler the GNU compiler?
14075with_gcc=$GCC
14076
14077# Compiler flag to turn off builtin functions.
14078no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14079
14080# How to pass a linker flag through the compiler.
14081wl=$lt_lt_prog_compiler_wl
14082
14083# Additional compiler flags for building library objects.
14084pic_flag=$lt_lt_prog_compiler_pic
14085
14086# Compiler flag to prevent dynamic linking.
14087link_static_flag=$lt_lt_prog_compiler_static
14088
14089# Does compiler simultaneously support -c and -o options?
14090compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14091
14092# Whether or not to add -lc for building shared libraries.
14093build_libtool_need_lc=$archive_cmds_need_lc
14094
14095# Whether or not to disallow shared libs when runtime libs are static.
14096allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14097
14098# Compiler flag to allow reflexive dlopens.
14099export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14100
14101# Compiler flag to generate shared objects directly from archives.
14102whole_archive_flag_spec=$lt_whole_archive_flag_spec
14103
14104# Whether the compiler copes with passing no objects directly.
14105compiler_needs_object=$lt_compiler_needs_object
14106
14107# Create an old-style archive from a shared archive.
14108old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14109
14110# Create a temporary old-style archive to link instead of a shared archive.
14111old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14112
14113# Commands used to build a shared archive.
14114archive_cmds=$lt_archive_cmds
14115archive_expsym_cmds=$lt_archive_expsym_cmds
14116
14117# Commands used to build a loadable module if different from building
14118# a shared archive.
14119module_cmds=$lt_module_cmds
14120module_expsym_cmds=$lt_module_expsym_cmds
14121
14122# Whether we are building with GNU ld or not.
14123with_gnu_ld=$lt_with_gnu_ld
14124
14125# Flag that allows shared libraries with undefined symbols to be built.
14126allow_undefined_flag=$lt_allow_undefined_flag
14127
14128# Flag that enforces no undefined symbols.
14129no_undefined_flag=$lt_no_undefined_flag
14130
14131# Flag to hardcode \$libdir into a binary during linking.
14132# This must work even if \$libdir does not exist
14133hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14134
14135# If ld is used when linking, flag to hardcode \$libdir into a binary
14136# during linking. This must work even if \$libdir does not exist.
14137hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14138
14139# Whether we need a single "-rpath" flag with a separated argument.
14140hardcode_libdir_separator=$lt_hardcode_libdir_separator
14141
14142# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14143# DIR into the resulting binary.
14144hardcode_direct=$hardcode_direct
14145
14146# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14147# DIR into the resulting binary and the resulting library dependency is
14148# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14149# library is relocated.
14150hardcode_direct_absolute=$hardcode_direct_absolute
14151
14152# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14153# into the resulting binary.
14154hardcode_minus_L=$hardcode_minus_L
14155
14156# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14157# into the resulting binary.
14158hardcode_shlibpath_var=$hardcode_shlibpath_var
14159
14160# Set to "yes" if building a shared library automatically hardcodes DIR
14161# into the library and all subsequent libraries and executables linked
14162# against it.
14163hardcode_automatic=$hardcode_automatic
14164
14165# Set to yes if linker adds runtime paths of dependent libraries
14166# to runtime path list.
14167inherit_rpath=$inherit_rpath
14168
14169# Whether libtool must link a program against all its dependency libraries.
14170link_all_deplibs=$link_all_deplibs
14171
14172# Fix the shell variable \$srcfile for the compiler.
14173fix_srcfile_path=$lt_fix_srcfile_path
14174
14175# Set to "yes" if exported symbols are required.
14176always_export_symbols=$always_export_symbols
14177
14178# The commands to list exported symbols.
14179export_symbols_cmds=$lt_export_symbols_cmds
14180
14181# Symbols that should not be listed in the preloaded symbols.
14182exclude_expsyms=$lt_exclude_expsyms
14183
14184# Symbols that must always be exported.
14185include_expsyms=$lt_include_expsyms
14186
14187# Commands necessary for linking programs (against libraries) with templates.
14188prelink_cmds=$lt_prelink_cmds
14189
14190# Specify filename containing input files.
14191file_list_spec=$lt_file_list_spec
14192
14193# How to hardcode a shared library path into an executable.
14194hardcode_action=$hardcode_action
14195
14196# ### END LIBTOOL CONFIG
14197
14198_LT_EOF
14199
14200 case $host_os in
14201 aix3*)
14202 cat <<\_LT_EOF >> "$cfgfile"
14203# AIX sometimes has problems with the GCC collect2 program. For some
14204# reason, if we set the COLLECT_NAMES environment variable, the problems
14205# vanish in a puff of smoke.
14206if test "X${COLLECT_NAMES+set}" != Xset; then
14207 COLLECT_NAMES=
14208 export COLLECT_NAMES
14209fi
14210_LT_EOF
14211 ;;
14212 esac
14213
14214
14215ltmain="$ac_aux_dir/ltmain.sh"
14216
14217
14218 # We use sed instead of cat because bash on DJGPP gets confused if
14219 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14220 # text mode, it properly converts lines to CR/LF. This bash problem
14221 # is reportedly fixed, but why not run on old versions too?
14222 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14223 || (rm -f "$cfgfile"; exit 1)
14224
14225 case $xsi_shell in
14226 yes)
14227 cat << \_LT_EOF >> "$cfgfile"
14228
14229# func_dirname file append nondir_replacement
14230# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14231# otherwise set result to NONDIR_REPLACEMENT.
14232func_dirname ()
14233{
14234 case ${1} in
14235 */*) func_dirname_result="${1%/*}${2}" ;;
14236 * ) func_dirname_result="${3}" ;;
14237 esac
14238}
14239
14240# func_basename file
14241func_basename ()
14242{
14243 func_basename_result="${1##*/}"
14244}
14245
14246# func_dirname_and_basename file append nondir_replacement
14247# perform func_basename and func_dirname in a single function
14248# call:
14249# dirname: Compute the dirname of FILE. If nonempty,
14250# add APPEND to the result, otherwise set result
14251# to NONDIR_REPLACEMENT.
14252# value returned in "$func_dirname_result"
14253# basename: Compute filename of FILE.
14254# value retuned in "$func_basename_result"
14255# Implementation must be kept synchronized with func_dirname
14256# and func_basename. For efficiency, we do not delegate to
14257# those functions but instead duplicate the functionality here.
14258func_dirname_and_basename ()
14259{
14260 case ${1} in
14261 */*) func_dirname_result="${1%/*}${2}" ;;
14262 * ) func_dirname_result="${3}" ;;
14263 esac
14264 func_basename_result="${1##*/}"
14265}
14266
14267# func_stripname prefix suffix name
14268# strip PREFIX and SUFFIX off of NAME.
14269# PREFIX and SUFFIX must not contain globbing or regex special
14270# characters, hashes, percent signs, but SUFFIX may contain a leading
14271# dot (in which case that matches only a dot).
14272func_stripname ()
14273{
14274 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14275 # positional parameters, so assign one to ordinary parameter first.
14276 func_stripname_result=${3}
14277 func_stripname_result=${func_stripname_result#"${1}"}
14278 func_stripname_result=${func_stripname_result%"${2}"}
14279}
14280
14281# func_opt_split
14282func_opt_split ()
14283{
14284 func_opt_split_opt=${1%%=*}
14285 func_opt_split_arg=${1#*=}
14286}
14287
14288# func_lo2o object
14289func_lo2o ()
14290{
14291 case ${1} in
14292 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14293 *) func_lo2o_result=${1} ;;
14294 esac
14295}
14296
14297# func_xform libobj-or-source
14298func_xform ()
14299{
14300 func_xform_result=${1%.*}.lo
14301}
14302
14303# func_arith arithmetic-term...
14304func_arith ()
14305{
14306 func_arith_result=$(( $* ))
14307}
14308
14309# func_len string
14310# STRING may not start with a hyphen.
14311func_len ()
14312{
14313 func_len_result=${#1}
14314}
14315
14316_LT_EOF
14317 ;;
14318 *) # Bourne compatible functions.
14319 cat << \_LT_EOF >> "$cfgfile"
14320
14321# func_dirname file append nondir_replacement
14322# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14323# otherwise set result to NONDIR_REPLACEMENT.
14324func_dirname ()
14325{
14326 # Extract subdirectory from the argument.
14327 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14328 if test "X$func_dirname_result" = "X${1}"; then
14329 func_dirname_result="${3}"
14330 else
14331 func_dirname_result="$func_dirname_result${2}"
14332 fi
14333}
14334
14335# func_basename file
14336func_basename ()
14337{
14338 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14339}
14340
14341
14342# func_stripname prefix suffix name
14343# strip PREFIX and SUFFIX off of NAME.
14344# PREFIX and SUFFIX must not contain globbing or regex special
14345# characters, hashes, percent signs, but SUFFIX may contain a leading
14346# dot (in which case that matches only a dot).
14347# func_strip_suffix prefix name
14348func_stripname ()
14349{
14350 case ${2} in
14351 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14352 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14353 esac
14354}
14355
14356# sed scripts:
14357my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14358my_sed_long_arg='1s/^-[^=]*=//'
14359
14360# func_opt_split
14361func_opt_split ()
14362{
14363 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14364 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14365}
14366
14367# func_lo2o object
14368func_lo2o ()
14369{
14370 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14371}
14372
14373# func_xform libobj-or-source
14374func_xform ()
14375{
14376 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14377}
14378
14379# func_arith arithmetic-term...
14380func_arith ()
14381{
14382 func_arith_result=`expr "$@"`
14383}
14384
14385# func_len string
14386# STRING may not start with a hyphen.
14387func_len ()
14388{
14389 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14390}
14391
14392_LT_EOF
14393esac
14394
14395case $lt_shell_append in
14396 yes)
14397 cat << \_LT_EOF >> "$cfgfile"
14398
14399# func_append var value
14400# Append VALUE to the end of shell variable VAR.
14401func_append ()
14402{
14403 eval "$1+=\$2"
14404}
14405_LT_EOF
14406 ;;
14407 *)
14408 cat << \_LT_EOF >> "$cfgfile"
14409
14410# func_append var value
14411# Append VALUE to the end of shell variable VAR.
14412func_append ()
14413{
14414 eval "$1=\$$1\$2"
14415}
14416
14417_LT_EOF
14418 ;;
14419 esac
14420
14421
14422 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14423 || (rm -f "$cfgfile"; exit 1)
14424
14425 mv -f "$cfgfile" "$ofile" ||
14426 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14427 chmod +x "$ofile"
14428
14429 ;;
81ecdfbb 14430 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
38f48d72
AC
14431 rm -f Makesim1.tmp Makesim2.tmp Makefile
14432 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
14433 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
14434 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
c906108c
SS
14435 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
14436 <Makefile.sim >Makefile
38f48d72 14437 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
b7026657 14438 ;;
81ecdfbb
RW
14439 "stamp-h":C) echo > stamp-h ;;
14440
b7026657 14441 esac
81ecdfbb 14442done # for ac_tag
c906108c 14443
b7026657 14444
81ecdfbb 14445as_fn_exit 0
b7026657 14446_ACEOF
b7026657
AC
14447ac_clean_files=$ac_clean_files_save
14448
81ecdfbb 14449test $ac_write_fail = 0 ||
d0ac1c44 14450 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 14451
b7026657
AC
14452
14453# configure is writing to config.log, and then calls config.status.
14454# config.status does its own redirection, appending to config.log.
14455# Unfortunately, on DOS this fails, as config.log is still kept open
14456# by configure, so config.status won't be able to write to it; its
14457# output is simply discarded. So we exec the FD to /dev/null,
14458# effectively closing config.log, so it can be properly (re)opened and
14459# appended to by config.status. When coming back to configure, we
14460# need to make the FD available again.
14461if test "$no_create" != yes; then
14462 ac_cs_success=:
14463 ac_config_status_args=
14464 test "$silent" = yes &&
14465 ac_config_status_args="$ac_config_status_args --quiet"
14466 exec 5>/dev/null
14467 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14468 exec 5>>config.log
14469 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14470 # would make configure fail if this is the last instruction.
d0ac1c44 14471 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
14472fi
14473if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14475$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b7026657 14476fi
c906108c
SS
14477
14478